#!/usr/bin/env node
/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	var __webpack_modules__ = ({

/***/ "../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js":
/*!********************************************************************************!*\
  !*** ../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js ***!
  \********************************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenClient: () => (/* binding */ BitwardenClient),\n/* harmony export */   ClientCrypto: () => (/* binding */ ClientCrypto),\n/* harmony export */   ClientFolders: () => (/* binding */ ClientFolders),\n/* harmony export */   ClientVault: () => (/* binding */ ClientVault),\n/* harmony export */   LogLevel: () => (/* binding */ LogLevel),\n/* harmony export */   __wbg_String_b9412f8799faab3e: () => (/* binding */ __wbg_String_b9412f8799faab3e),\n/* harmony export */   __wbg_abort_c57daab47a6c1215: () => (/* binding */ __wbg_abort_c57daab47a6c1215),\n/* harmony export */   __wbg_append_43a4b1c9d5df4168: () => (/* binding */ __wbg_append_43a4b1c9d5df4168),\n/* harmony export */   __wbg_append_7ee78799a92a9731: () => (/* binding */ __wbg_append_7ee78799a92a9731),\n/* harmony export */   __wbg_append_8135c71037096394: () => (/* binding */ __wbg_append_8135c71037096394),\n/* harmony export */   __wbg_append_8b3e7f74a47ea7d5: () => (/* binding */ __wbg_append_8b3e7f74a47ea7d5),\n/* harmony export */   __wbg_buffer_ccaed51a635d8a2d: () => (/* binding */ __wbg_buffer_ccaed51a635d8a2d),\n/* harmony export */   __wbg_call_3bfa248576352471: () => (/* binding */ __wbg_call_3bfa248576352471),\n/* harmony export */   __wbg_call_a9ef466721e824f2: () => (/* binding */ __wbg_call_a9ef466721e824f2),\n/* harmony export */   __wbg_debug_a0b6c2c5ac9a4bfd: () => (/* binding */ __wbg_debug_a0b6c2c5ac9a4bfd),\n/* harmony export */   __wbg_done_983b5ffcaec8c583: () => (/* binding */ __wbg_done_983b5ffcaec8c583),\n/* harmony export */   __wbg_entries_c02034de337d3ee2: () => (/* binding */ __wbg_entries_c02034de337d3ee2),\n/* harmony export */   __wbg_error_4d17c5bb1ca90c94: () => (/* binding */ __wbg_error_4d17c5bb1ca90c94),\n/* harmony export */   __wbg_error_f851667af71bcfc6: () => (/* binding */ __wbg_error_f851667af71bcfc6),\n/* harmony export */   __wbg_fetch_1fdc4448ed9eec00: () => (/* binding */ __wbg_fetch_1fdc4448ed9eec00),\n/* harmony export */   __wbg_fetch_f8d735ba6fe1b719: () => (/* binding */ __wbg_fetch_f8d735ba6fe1b719),\n/* harmony export */   __wbg_get_5419cf6b954aa11d: () => (/* binding */ __wbg_get_5419cf6b954aa11d),\n/* harmony export */   __wbg_get_ef828680c64da212: () => (/* binding */ __wbg_get_ef828680c64da212),\n/* harmony export */   __wbg_getwithrefkey_edc2c8960f0f1191: () => (/* binding */ __wbg_getwithrefkey_edc2c8960f0f1191),\n/* harmony export */   __wbg_globalThis_05c129bf37fcf1be: () => (/* binding */ __wbg_globalThis_05c129bf37fcf1be),\n/* harmony export */   __wbg_global_3eca19bb09e9c484: () => (/* binding */ __wbg_global_3eca19bb09e9c484),\n/* harmony export */   __wbg_has_bd717f25f195f23d: () => (/* binding */ __wbg_has_bd717f25f195f23d),\n/* harmony export */   __wbg_headers_1b9bf90c73fae600: () => (/* binding */ __wbg_headers_1b9bf90c73fae600),\n/* harmony export */   __wbg_info_1c7fba7da21072d1: () => (/* binding */ __wbg_info_1c7fba7da21072d1),\n/* harmony export */   __wbg_instanceof_ArrayBuffer_74945570b4a62ec7: () => (/* binding */ __wbg_instanceof_ArrayBuffer_74945570b4a62ec7),\n/* harmony export */   __wbg_instanceof_Response_3c0e210a57ff751d: () => (/* binding */ __wbg_instanceof_Response_3c0e210a57ff751d),\n/* harmony export */   __wbg_instanceof_Uint8Array_df0761410414ef36: () => (/* binding */ __wbg_instanceof_Uint8Array_df0761410414ef36),\n/* harmony export */   __wbg_isSafeInteger_b9dff570f01a9100: () => (/* binding */ __wbg_isSafeInteger_b9dff570f01a9100),\n/* harmony export */   __wbg_iterator_695d699a44d6234c: () => (/* binding */ __wbg_iterator_695d699a44d6234c),\n/* harmony export */   __wbg_length_9254c4bd3b9f23c4: () => (/* binding */ __wbg_length_9254c4bd3b9f23c4),\n/* harmony export */   __wbg_length_f217bbbf7e8e4df4: () => (/* binding */ __wbg_length_f217bbbf7e8e4df4),\n/* harmony export */   __wbg_log_4de37a0274d94769: () => (/* binding */ __wbg_log_4de37a0274d94769),\n/* harmony export */   __wbg_new_034f913e7636e987: () => (/* binding */ __wbg_new_034f913e7636e987),\n/* harmony export */   __wbg_new_1073970097e5a420: () => (/* binding */ __wbg_new_1073970097e5a420),\n/* harmony export */   __wbg_new_4e7308fbedde3997: () => (/* binding */ __wbg_new_4e7308fbedde3997),\n/* harmony export */   __wbg_new_70a2f23d1565c04c: () => (/* binding */ __wbg_new_70a2f23d1565c04c),\n/* harmony export */   __wbg_new_75169ae5a9683c55: () => (/* binding */ __wbg_new_75169ae5a9683c55),\n/* harmony export */   __wbg_new_92c27aa873e8170e: () => (/* binding */ __wbg_new_92c27aa873e8170e),\n/* harmony export */   __wbg_new_a9ae04a5200606a5: () => (/* binding */ __wbg_new_a9ae04a5200606a5),\n/* harmony export */   __wbg_new_abda76e883ba8a5f: () => (/* binding */ __wbg_new_abda76e883ba8a5f),\n/* harmony export */   __wbg_new_e69b5f66fda8f13c: () => (/* binding */ __wbg_new_e69b5f66fda8f13c),\n/* harmony export */   __wbg_new_fec2611eb9180f95: () => (/* binding */ __wbg_new_fec2611eb9180f95),\n/* harmony export */   __wbg_newnoargs_1ede4bf2ebbaaf43: () => (/* binding */ __wbg_newnoargs_1ede4bf2ebbaaf43),\n/* harmony export */   __wbg_newwithbyteoffsetandlength_7e3eb787208af730: () => (/* binding */ __wbg_newwithbyteoffsetandlength_7e3eb787208af730),\n/* harmony export */   __wbg_newwithstrandinit_4b92c89af0a8e383: () => (/* binding */ __wbg_newwithstrandinit_4b92c89af0a8e383),\n/* harmony export */   __wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206: () => (/* binding */ __wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206),\n/* harmony export */   __wbg_next_13b477da1eaa3897: () => (/* binding */ __wbg_next_13b477da1eaa3897),\n/* harmony export */   __wbg_next_b06e115d1b01e10b: () => (/* binding */ __wbg_next_b06e115d1b01e10b),\n/* harmony export */   __wbg_push_36cf4d81d7da33d1: () => (/* binding */ __wbg_push_36cf4d81d7da33d1),\n/* harmony export */   __wbg_queueMicrotask_848aa4969108a57e: () => (/* binding */ __wbg_queueMicrotask_848aa4969108a57e),\n/* harmony export */   __wbg_queueMicrotask_c5419c06eab41e73: () => (/* binding */ __wbg_queueMicrotask_c5419c06eab41e73),\n/* harmony export */   __wbg_resolve_0aad7c1484731c99: () => (/* binding */ __wbg_resolve_0aad7c1484731c99),\n/* harmony export */   __wbg_self_bf91bf94d9e04084: () => (/* binding */ __wbg_self_bf91bf94d9e04084),\n/* harmony export */   __wbg_set_ec2fcf81bc573fd9: () => (/* binding */ __wbg_set_ec2fcf81bc573fd9),\n/* harmony export */   __wbg_set_f975102236d3c502: () => (/* binding */ __wbg_set_f975102236d3c502),\n/* harmony export */   __wbg_set_wasm: () => (/* binding */ __wbg_set_wasm),\n/* harmony export */   __wbg_setbody_aa8b691bec428bf4: () => (/* binding */ __wbg_setbody_aa8b691bec428bf4),\n/* harmony export */   __wbg_setcredentials_a4e661320cdb9738: () => (/* binding */ __wbg_setcredentials_a4e661320cdb9738),\n/* harmony export */   __wbg_setheaders_f5205d36e423a544: () => (/* binding */ __wbg_setheaders_f5205d36e423a544),\n/* harmony export */   __wbg_setmethod_ce2da76000b02f6a: () => (/* binding */ __wbg_setmethod_ce2da76000b02f6a),\n/* harmony export */   __wbg_setmode_4919fd636102c586: () => (/* binding */ __wbg_setmode_4919fd636102c586),\n/* harmony export */   __wbg_setsignal_812ccb8269a7fd90: () => (/* binding */ __wbg_setsignal_812ccb8269a7fd90),\n/* harmony export */   __wbg_settype_623d2ee701e6310a: () => (/* binding */ __wbg_settype_623d2ee701e6310a),\n/* harmony export */   __wbg_signal_9acfcec9e7dffc22: () => (/* binding */ __wbg_signal_9acfcec9e7dffc22),\n/* harmony export */   __wbg_stack_658279fe44541cf6: () => (/* binding */ __wbg_stack_658279fe44541cf6),\n/* harmony export */   __wbg_status_5f4e900d22140a18: () => (/* binding */ __wbg_status_5f4e900d22140a18),\n/* harmony export */   __wbg_stringify_eead5648c09faaf8: () => (/* binding */ __wbg_stringify_eead5648c09faaf8),\n/* harmony export */   __wbg_text_ebeee8b31af4c919: () => (/* binding */ __wbg_text_ebeee8b31af4c919),\n/* harmony export */   __wbg_then_4866a7d9f55d8f3e: () => (/* binding */ __wbg_then_4866a7d9f55d8f3e),\n/* harmony export */   __wbg_then_748f75edfb032440: () => (/* binding */ __wbg_then_748f75edfb032440),\n/* harmony export */   __wbg_url_58af972663531d16: () => (/* binding */ __wbg_url_58af972663531d16),\n/* harmony export */   __wbg_value_2ab8a198c834c26a: () => (/* binding */ __wbg_value_2ab8a198c834c26a),\n/* harmony export */   __wbg_warn_2e2787d40aad9a81: () => (/* binding */ __wbg_warn_2e2787d40aad9a81),\n/* harmony export */   __wbg_window_52dd9f07d03fd5f8: () => (/* binding */ __wbg_window_52dd9f07d03fd5f8),\n/* harmony export */   __wbindgen_as_number: () => (/* binding */ __wbindgen_as_number),\n/* harmony export */   __wbindgen_boolean_get: () => (/* binding */ __wbindgen_boolean_get),\n/* harmony export */   __wbindgen_cb_drop: () => (/* binding */ __wbindgen_cb_drop),\n/* harmony export */   __wbindgen_closure_wrapper1610: () => (/* binding */ __wbindgen_closure_wrapper1610),\n/* harmony export */   __wbindgen_debug_string: () => (/* binding */ __wbindgen_debug_string),\n/* harmony export */   __wbindgen_error_new: () => (/* binding */ __wbindgen_error_new),\n/* harmony export */   __wbindgen_in: () => (/* binding */ __wbindgen_in),\n/* harmony export */   __wbindgen_is_function: () => (/* binding */ __wbindgen_is_function),\n/* harmony export */   __wbindgen_is_object: () => (/* binding */ __wbindgen_is_object),\n/* harmony export */   __wbindgen_is_string: () => (/* binding */ __wbindgen_is_string),\n/* harmony export */   __wbindgen_is_undefined: () => (/* binding */ __wbindgen_is_undefined),\n/* harmony export */   __wbindgen_jsval_loose_eq: () => (/* binding */ __wbindgen_jsval_loose_eq),\n/* harmony export */   __wbindgen_memory: () => (/* binding */ __wbindgen_memory),\n/* harmony export */   __wbindgen_number_get: () => (/* binding */ __wbindgen_number_get),\n/* harmony export */   __wbindgen_object_clone_ref: () => (/* binding */ __wbindgen_object_clone_ref),\n/* harmony export */   __wbindgen_object_drop_ref: () => (/* binding */ __wbindgen_object_drop_ref),\n/* harmony export */   __wbindgen_string_get: () => (/* binding */ __wbindgen_string_get),\n/* harmony export */   __wbindgen_string_new: () => (/* binding */ __wbindgen_string_new),\n/* harmony export */   __wbindgen_throw: () => (/* binding */ __wbindgen_throw)\n/* harmony export */ });\n/* module decorator */ module = __webpack_require__.hmd(module);\nlet wasm;\nfunction __wbg_set_wasm(val) {\n  wasm = val;\n}\n\nconst heap = new Array(128).fill(undefined);\n\nheap.push(undefined, null, true, false);\n\nfunction getObject(idx) {\n  return heap[idx];\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nlet cachedUint8ArrayMemory0 = null;\n\nfunction getUint8ArrayMemory0() {\n  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n    cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n  }\n  return cachedUint8ArrayMemory0;\n}\n\nconst lTextEncoder =\n  typeof TextEncoder === \"undefined\" ? (0, module.require)(\"util\").TextEncoder : TextEncoder;\n\nlet cachedTextEncoder = new lTextEncoder(\"utf-8\");\n\nconst encodeString =\n  typeof cachedTextEncoder.encodeInto === \"function\"\n    ? function (arg, view) {\n        return cachedTextEncoder.encodeInto(arg, view);\n      }\n    : function (arg, view) {\n        const buf = cachedTextEncoder.encode(arg);\n        view.set(buf);\n        return {\n          read: arg.length,\n          written: buf.length,\n        };\n      };\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n  if (realloc === undefined) {\n    const buf = cachedTextEncoder.encode(arg);\n    const ptr = malloc(buf.length, 1) >>> 0;\n    getUint8ArrayMemory0()\n      .subarray(ptr, ptr + buf.length)\n      .set(buf);\n    WASM_VECTOR_LEN = buf.length;\n    return ptr;\n  }\n\n  let len = arg.length;\n  let ptr = malloc(len, 1) >>> 0;\n\n  const mem = getUint8ArrayMemory0();\n\n  let offset = 0;\n\n  for (; offset < len; offset++) {\n    const code = arg.charCodeAt(offset);\n    if (code > 0x7f) break;\n    mem[ptr + offset] = code;\n  }\n\n  if (offset !== len) {\n    if (offset !== 0) {\n      arg = arg.slice(offset);\n    }\n    ptr = realloc(ptr, len, (len = offset + arg.length * 3), 1) >>> 0;\n    const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n    const ret = encodeString(arg, view);\n\n    offset += ret.written;\n    ptr = realloc(ptr, len, offset, 1) >>> 0;\n  }\n\n  WASM_VECTOR_LEN = offset;\n  return ptr;\n}\n\nfunction isLikeNone(x) {\n  return x === undefined || x === null;\n}\n\nlet cachedDataViewMemory0 = null;\n\nfunction getDataViewMemory0() {\n  if (\n    cachedDataViewMemory0 === null ||\n    cachedDataViewMemory0.buffer.detached === true ||\n    (cachedDataViewMemory0.buffer.detached === undefined &&\n      cachedDataViewMemory0.buffer !== wasm.memory.buffer)\n  ) {\n    cachedDataViewMemory0 = new DataView(wasm.memory.buffer);\n  }\n  return cachedDataViewMemory0;\n}\n\nlet heap_next = heap.length;\n\nfunction dropObject(idx) {\n  if (idx < 132) return;\n  heap[idx] = heap_next;\n  heap_next = idx;\n}\n\nfunction takeObject(idx) {\n  const ret = getObject(idx);\n  dropObject(idx);\n  return ret;\n}\n\nfunction addHeapObject(obj) {\n  if (heap_next === heap.length) heap.push(heap.length + 1);\n  const idx = heap_next;\n  heap_next = heap[idx];\n\n  heap[idx] = obj;\n  return idx;\n}\n\nconst lTextDecoder =\n  typeof TextDecoder === \"undefined\" ? (0, module.require)(\"util\").TextDecoder : TextDecoder;\n\nlet cachedTextDecoder = new lTextDecoder(\"utf-8\", { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nfunction getStringFromWasm0(ptr, len) {\n  ptr = ptr >>> 0;\n  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nfunction debugString(val) {\n  // primitive types\n  const type = typeof val;\n  if (type == \"number\" || type == \"boolean\" || val == null) {\n    return `${val}`;\n  }\n  if (type == \"string\") {\n    return `\"${val}\"`;\n  }\n  if (type == \"symbol\") {\n    const description = val.description;\n    if (description == null) {\n      return \"Symbol\";\n    } else {\n      return `Symbol(${description})`;\n    }\n  }\n  if (type == \"function\") {\n    const name = val.name;\n    if (typeof name == \"string\" && name.length > 0) {\n      return `Function(${name})`;\n    } else {\n      return \"Function\";\n    }\n  }\n  // objects\n  if (Array.isArray(val)) {\n    const length = val.length;\n    let debug = \"[\";\n    if (length > 0) {\n      debug += debugString(val[0]);\n    }\n    for (let i = 1; i < length; i++) {\n      debug += \", \" + debugString(val[i]);\n    }\n    debug += \"]\";\n    return debug;\n  }\n  // Test for built-in\n  const builtInMatches = /\\[object ([^\\]]+)\\]/.exec(toString.call(val));\n  let className;\n  if (builtInMatches.length > 1) {\n    className = builtInMatches[1];\n  } else {\n    // Failed to match the standard '[object ClassName]'\n    return toString.call(val);\n  }\n  if (className == \"Object\") {\n    // we're a user defined class or Object\n    // JSON.stringify avoids problems with cycles, and is generally much\n    // easier than looping through ownProperties of `val`.\n    try {\n      return \"Object(\" + JSON.stringify(val) + \")\";\n    } catch (_) {\n      return \"Object\";\n    }\n  }\n  // errors\n  if (val instanceof Error) {\n    return `${val.name}: ${val.message}\\n${val.stack}`;\n  }\n  // TODO we could test for more things here, like `Set`s and `Map`s.\n  return className;\n}\n\nconst CLOSURE_DTORS =\n  typeof FinalizationRegistry === \"undefined\"\n    ? { register: () => {}, unregister: () => {} }\n    : new FinalizationRegistry((state) => {\n        wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);\n      });\n\nfunction makeMutClosure(arg0, arg1, dtor, f) {\n  const state = { a: arg0, b: arg1, cnt: 1, dtor };\n  const real = (...args) => {\n    // First up with a closure we increment the internal reference\n    // count. This ensures that the Rust closure environment won't\n    // be deallocated while we're invoking it.\n    state.cnt++;\n    const a = state.a;\n    state.a = 0;\n    try {\n      return f(a, state.b, ...args);\n    } finally {\n      if (--state.cnt === 0) {\n        wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);\n        CLOSURE_DTORS.unregister(state);\n      } else {\n        state.a = a;\n      }\n    }\n  };\n  real.original = state;\n  CLOSURE_DTORS.register(real, state, state);\n  return real;\n}\nfunction __wbg_adapter_38(arg0, arg1, arg2) {\n  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec6c9a85ed863308(\n    arg0,\n    arg1,\n    addHeapObject(arg2),\n  );\n}\n\nfunction handleError(f, args) {\n  try {\n    return f.apply(this, args);\n  } catch (e) {\n    wasm.__wbindgen_exn_store(addHeapObject(e));\n  }\n}\nfunction __wbg_adapter_100(arg0, arg1, arg2, arg3) {\n  wasm.wasm_bindgen__convert__closures__invoke2_mut__h29c3505e35b3c82d(\n    arg0,\n    arg1,\n    addHeapObject(arg2),\n    addHeapObject(arg3),\n  );\n}\n\nconst LogLevel = Object.freeze({\n  Trace: 0,\n  0: \"Trace\",\n  Debug: 1,\n  1: \"Debug\",\n  Info: 2,\n  2: \"Info\",\n  Warn: 3,\n  3: \"Warn\",\n  Error: 4,\n  4: \"Error\",\n});\n\nconst __wbindgen_enum_RequestCredentials = [\"omit\", \"same-origin\", \"include\"];\n\nconst __wbindgen_enum_RequestMode = [\"same-origin\", \"no-cors\", \"cors\", \"navigate\"];\n\nconst BitwardenClientFinalization =\n  typeof FinalizationRegistry === \"undefined\"\n    ? { register: () => {}, unregister: () => {} }\n    : new FinalizationRegistry((ptr) => wasm.__wbg_bitwardenclient_free(ptr >>> 0, 1));\n\nclass BitwardenClient {\n  __destroy_into_raw() {\n    const ptr = this.__wbg_ptr;\n    this.__wbg_ptr = 0;\n    BitwardenClientFinalization.unregister(this);\n    return ptr;\n  }\n\n  free() {\n    const ptr = this.__destroy_into_raw();\n    wasm.__wbg_bitwardenclient_free(ptr, 0);\n  }\n  /**\n   * @param {ClientSettings | undefined} [settings]\n   * @param {LogLevel | undefined} [log_level]\n   */\n  constructor(settings, log_level) {\n    const ret = wasm.bitwardenclient_new(\n      isLikeNone(settings) ? 0 : addHeapObject(settings),\n      isLikeNone(log_level) ? 5 : log_level,\n    );\n    this.__wbg_ptr = ret >>> 0;\n    BitwardenClientFinalization.register(this, this.__wbg_ptr, this);\n    return this;\n  }\n  /**\n   * Test method, echoes back the input\n   * @param {string} msg\n   * @returns {string}\n   */\n  echo(msg) {\n    let deferred2_0;\n    let deferred2_1;\n    try {\n      const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n      const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n      const len0 = WASM_VECTOR_LEN;\n      wasm.bitwardenclient_echo(retptr, this.__wbg_ptr, ptr0, len0);\n      var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n      var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n      deferred2_0 = r0;\n      deferred2_1 = r1;\n      return getStringFromWasm0(r0, r1);\n    } finally {\n      wasm.__wbindgen_add_to_stack_pointer(16);\n      wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);\n    }\n  }\n  /**\n   * @returns {string}\n   */\n  version() {\n    let deferred1_0;\n    let deferred1_1;\n    try {\n      const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n      wasm.bitwardenclient_version(retptr, this.__wbg_ptr);\n      var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n      var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n      deferred1_0 = r0;\n      deferred1_1 = r1;\n      return getStringFromWasm0(r0, r1);\n    } finally {\n      wasm.__wbindgen_add_to_stack_pointer(16);\n      wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);\n    }\n  }\n  /**\n   * @param {string} msg\n   */\n  throw(msg) {\n    try {\n      const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n      const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n      const len0 = WASM_VECTOR_LEN;\n      wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);\n      var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n      var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n      if (r1) {\n        throw takeObject(r0);\n      }\n    } finally {\n      wasm.__wbindgen_add_to_stack_pointer(16);\n    }\n  }\n  /**\n   * Test method, calls http endpoint\n   * @param {string} url\n   * @returns {Promise<string>}\n   */\n  http_get(url) {\n    const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n    const len0 = WASM_VECTOR_LEN;\n    const ret = wasm.bitwardenclient_http_get(this.__wbg_ptr, ptr0, len0);\n    return takeObject(ret);\n  }\n  /**\n   * @returns {ClientCrypto}\n   */\n  crypto() {\n    const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);\n    return ClientCrypto.__wrap(ret);\n  }\n  /**\n   * @returns {ClientVault}\n   */\n  vault() {\n    const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);\n    return ClientVault.__wrap(ret);\n  }\n}\n\nconst ClientCryptoFinalization =\n  typeof FinalizationRegistry === \"undefined\"\n    ? { register: () => {}, unregister: () => {} }\n    : new FinalizationRegistry((ptr) => wasm.__wbg_clientcrypto_free(ptr >>> 0, 1));\n\nclass ClientCrypto {\n  static __wrap(ptr) {\n    ptr = ptr >>> 0;\n    const obj = Object.create(ClientCrypto.prototype);\n    obj.__wbg_ptr = ptr;\n    ClientCryptoFinalization.register(obj, obj.__wbg_ptr, obj);\n    return obj;\n  }\n\n  __destroy_into_raw() {\n    const ptr = this.__wbg_ptr;\n    this.__wbg_ptr = 0;\n    ClientCryptoFinalization.unregister(this);\n    return ptr;\n  }\n\n  free() {\n    const ptr = this.__destroy_into_raw();\n    wasm.__wbg_clientcrypto_free(ptr, 0);\n  }\n  /**\n   * Initialization method for the user crypto. Needs to be called before any other crypto\n   * operations.\n   * @param {InitUserCryptoRequest} req\n   * @returns {Promise<void>}\n   */\n  initialize_user_crypto(req) {\n    const ret = wasm.clientcrypto_initialize_user_crypto(this.__wbg_ptr, addHeapObject(req));\n    return takeObject(ret);\n  }\n  /**\n   * Initialization method for the organization crypto. Needs to be called after\n   * `initialize_user_crypto` but before any other crypto operations.\n   * @param {InitOrgCryptoRequest} req\n   * @returns {Promise<void>}\n   */\n  initialize_org_crypto(req) {\n    const ret = wasm.clientcrypto_initialize_org_crypto(this.__wbg_ptr, addHeapObject(req));\n    return takeObject(ret);\n  }\n}\n\nconst ClientFoldersFinalization =\n  typeof FinalizationRegistry === \"undefined\"\n    ? { register: () => {}, unregister: () => {} }\n    : new FinalizationRegistry((ptr) => wasm.__wbg_clientfolders_free(ptr >>> 0, 1));\n\nclass ClientFolders {\n  static __wrap(ptr) {\n    ptr = ptr >>> 0;\n    const obj = Object.create(ClientFolders.prototype);\n    obj.__wbg_ptr = ptr;\n    ClientFoldersFinalization.register(obj, obj.__wbg_ptr, obj);\n    return obj;\n  }\n\n  __destroy_into_raw() {\n    const ptr = this.__wbg_ptr;\n    this.__wbg_ptr = 0;\n    ClientFoldersFinalization.unregister(this);\n    return ptr;\n  }\n\n  free() {\n    const ptr = this.__destroy_into_raw();\n    wasm.__wbg_clientfolders_free(ptr, 0);\n  }\n  /**\n   * Decrypt folder\n   * @param {Folder} folder\n   * @returns {FolderView}\n   */\n  decrypt(folder) {\n    try {\n      const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n      wasm.clientfolders_decrypt(retptr, this.__wbg_ptr, addHeapObject(folder));\n      var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n      var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n      var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);\n      if (r2) {\n        throw takeObject(r1);\n      }\n      return takeObject(r0);\n    } finally {\n      wasm.__wbindgen_add_to_stack_pointer(16);\n    }\n  }\n}\n\nconst ClientVaultFinalization =\n  typeof FinalizationRegistry === \"undefined\"\n    ? { register: () => {}, unregister: () => {} }\n    : new FinalizationRegistry((ptr) => wasm.__wbg_clientvault_free(ptr >>> 0, 1));\n\nclass ClientVault {\n  static __wrap(ptr) {\n    ptr = ptr >>> 0;\n    const obj = Object.create(ClientVault.prototype);\n    obj.__wbg_ptr = ptr;\n    ClientVaultFinalization.register(obj, obj.__wbg_ptr, obj);\n    return obj;\n  }\n\n  __destroy_into_raw() {\n    const ptr = this.__wbg_ptr;\n    this.__wbg_ptr = 0;\n    ClientVaultFinalization.unregister(this);\n    return ptr;\n  }\n\n  free() {\n    const ptr = this.__destroy_into_raw();\n    wasm.__wbg_clientvault_free(ptr, 0);\n  }\n  /**\n   * @returns {ClientFolders}\n   */\n  folders() {\n    const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);\n    return ClientFolders.__wrap(ret);\n  }\n}\n\nfunction __wbindgen_string_get(arg0, arg1) {\n  const obj = getObject(arg1);\n  const ret = typeof obj === \"string\" ? obj : undefined;\n  var ptr1 = isLikeNone(ret)\n    ? 0\n    : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n  var len1 = WASM_VECTOR_LEN;\n  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n}\n\nfunction __wbindgen_object_drop_ref(arg0) {\n  takeObject(arg0);\n}\n\nfunction __wbindgen_is_object(arg0) {\n  const val = getObject(arg0);\n  const ret = typeof val === \"object\" && val !== null;\n  return ret;\n}\n\nfunction __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {\n  const ret = getObject(arg0)[getObject(arg1)];\n  return addHeapObject(ret);\n}\n\nfunction __wbindgen_is_undefined(arg0) {\n  const ret = getObject(arg0) === undefined;\n  return ret;\n}\n\nfunction __wbindgen_in(arg0, arg1) {\n  const ret = getObject(arg0) in getObject(arg1);\n  return ret;\n}\n\nfunction __wbg_isSafeInteger_b9dff570f01a9100(arg0) {\n  const ret = Number.isSafeInteger(getObject(arg0));\n  return ret;\n}\n\nfunction __wbindgen_as_number(arg0) {\n  const ret = +getObject(arg0);\n  return ret;\n}\n\nfunction __wbindgen_is_string(arg0) {\n  const ret = typeof getObject(arg0) === \"string\";\n  return ret;\n}\n\nfunction __wbg_entries_c02034de337d3ee2(arg0) {\n  const ret = Object.entries(getObject(arg0));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_length_f217bbbf7e8e4df4(arg0) {\n  const ret = getObject(arg0).length;\n  return ret;\n}\n\nfunction __wbg_get_5419cf6b954aa11d(arg0, arg1) {\n  const ret = getObject(arg0)[arg1 >>> 0];\n  return addHeapObject(ret);\n}\n\nfunction __wbindgen_object_clone_ref(arg0) {\n  const ret = getObject(arg0);\n  return addHeapObject(ret);\n}\n\nfunction __wbg_next_b06e115d1b01e10b() {\n  return handleError(function (arg0) {\n    const ret = getObject(arg0).next();\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_done_983b5ffcaec8c583(arg0) {\n  const ret = getObject(arg0).done;\n  return ret;\n}\n\nfunction __wbg_value_2ab8a198c834c26a(arg0) {\n  const ret = getObject(arg0).value;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_new_92c27aa873e8170e(arg0, arg1) {\n  let deferred0_0;\n  let deferred0_1;\n  try {\n    deferred0_0 = arg0;\n    deferred0_1 = arg1;\n    const ret = new Error(getStringFromWasm0(arg0, arg1));\n    return addHeapObject(ret);\n  } finally {\n    wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);\n  }\n}\n\nfunction __wbg_call_3bfa248576352471() {\n  return handleError(function (arg0, arg1, arg2) {\n    const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_new_e69b5f66fda8f13c() {\n  const ret = new Object();\n  return addHeapObject(ret);\n}\n\nfunction __wbg_setmethod_ce2da76000b02f6a(arg0, arg1, arg2) {\n  getObject(arg0).method = getStringFromWasm0(arg1, arg2);\n}\n\nfunction __wbg_new_a9ae04a5200606a5() {\n  return handleError(function () {\n    const ret = new Headers();\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_setheaders_f5205d36e423a544(arg0, arg1) {\n  getObject(arg0).headers = getObject(arg1);\n}\n\nfunction __wbg_setmode_4919fd636102c586(arg0, arg1) {\n  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];\n}\n\nfunction __wbg_setcredentials_a4e661320cdb9738(arg0, arg1) {\n  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];\n}\n\nfunction __wbg_setbody_aa8b691bec428bf4(arg0, arg1) {\n  getObject(arg0).body = getObject(arg1);\n}\n\nfunction __wbg_signal_9acfcec9e7dffc22(arg0) {\n  const ret = getObject(arg0).signal;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_setsignal_812ccb8269a7fd90(arg0, arg1) {\n  getObject(arg0).signal = getObject(arg1);\n}\n\nfunction __wbg_append_8b3e7f74a47ea7d5() {\n  return handleError(function (arg0, arg1, arg2, arg3, arg4) {\n    getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));\n  }, arguments);\n}\n\nfunction __wbg_instanceof_Response_3c0e210a57ff751d(arg0) {\n  let result;\n  try {\n    result = getObject(arg0) instanceof Response;\n  } catch (_) {\n    result = false;\n  }\n  const ret = result;\n  return ret;\n}\n\nfunction __wbg_status_5f4e900d22140a18(arg0) {\n  const ret = getObject(arg0).status;\n  return ret;\n}\n\nfunction __wbg_url_58af972663531d16(arg0, arg1) {\n  const ret = getObject(arg1).url;\n  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n  const len1 = WASM_VECTOR_LEN;\n  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n}\n\nfunction __wbg_headers_1b9bf90c73fae600(arg0) {\n  const ret = getObject(arg0).headers;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_stringify_eead5648c09faaf8() {\n  return handleError(function (arg0) {\n    const ret = JSON.stringify(getObject(arg0));\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_abort_c57daab47a6c1215(arg0) {\n  getObject(arg0).abort();\n}\n\nfunction __wbg_text_ebeee8b31af4c919() {\n  return handleError(function (arg0) {\n    const ret = getObject(arg0).text();\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbindgen_string_new(arg0, arg1) {\n  const ret = getStringFromWasm0(arg0, arg1);\n  return addHeapObject(ret);\n}\n\nfunction __wbindgen_jsval_loose_eq(arg0, arg1) {\n  const ret = getObject(arg0) == getObject(arg1);\n  return ret;\n}\n\nfunction __wbindgen_cb_drop(arg0) {\n  const obj = takeObject(arg0).original;\n  if (obj.cnt-- == 1) {\n    obj.a = 0;\n    return true;\n  }\n  const ret = false;\n  return ret;\n}\n\nfunction __wbindgen_error_new(arg0, arg1) {\n  const ret = new Error(getStringFromWasm0(arg0, arg1));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_new_1073970097e5a420(arg0, arg1) {\n  try {\n    var state0 = { a: arg0, b: arg1 };\n    var cb0 = (arg0, arg1) => {\n      const a = state0.a;\n      state0.a = 0;\n      try {\n        return __wbg_adapter_100(a, state0.b, arg0, arg1);\n      } finally {\n        state0.a = a;\n      }\n    };\n    const ret = new Promise(cb0);\n    return addHeapObject(ret);\n  } finally {\n    state0.a = state0.b = 0;\n  }\n}\n\nfunction __wbg_set_f975102236d3c502(arg0, arg1, arg2) {\n  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);\n}\n\nfunction __wbg_new_abda76e883ba8a5f() {\n  const ret = new Error();\n  return addHeapObject(ret);\n}\n\nfunction __wbg_stack_658279fe44541cf6(arg0, arg1) {\n  const ret = getObject(arg1).stack;\n  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n  const len1 = WASM_VECTOR_LEN;\n  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n}\n\nfunction __wbg_error_f851667af71bcfc6(arg0, arg1) {\n  let deferred0_0;\n  let deferred0_1;\n  try {\n    deferred0_0 = arg0;\n    deferred0_1 = arg1;\n    console.error(getStringFromWasm0(arg0, arg1));\n  } finally {\n    wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);\n  }\n}\n\nfunction __wbg_self_bf91bf94d9e04084() {\n  return handleError(function () {\n    const ret = self.self;\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_window_52dd9f07d03fd5f8() {\n  return handleError(function () {\n    const ret = window.window;\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_globalThis_05c129bf37fcf1be() {\n  return handleError(function () {\n    const ret = globalThis.globalThis;\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_global_3eca19bb09e9c484() {\n  return handleError(function () {\n    const ret = global.global;\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_newnoargs_1ede4bf2ebbaaf43(arg0, arg1) {\n  const ret = new Function(getStringFromWasm0(arg0, arg1));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_call_a9ef466721e824f2() {\n  return handleError(function (arg0, arg1) {\n    const ret = getObject(arg0).call(getObject(arg1));\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_iterator_695d699a44d6234c() {\n  const ret = Symbol.iterator;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_get_ef828680c64da212() {\n  return handleError(function (arg0, arg1) {\n    const ret = Reflect.get(getObject(arg0), getObject(arg1));\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbindgen_is_function(arg0) {\n  const ret = typeof getObject(arg0) === \"function\";\n  return ret;\n}\n\nfunction __wbg_next_13b477da1eaa3897(arg0) {\n  const ret = getObject(arg0).next;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_new_034f913e7636e987() {\n  const ret = new Array();\n  return addHeapObject(ret);\n}\n\nfunction __wbg_push_36cf4d81d7da33d1(arg0, arg1) {\n  const ret = getObject(arg0).push(getObject(arg1));\n  return ret;\n}\n\nfunction __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) {\n  let result;\n  try {\n    result = getObject(arg0) instanceof ArrayBuffer;\n  } catch (_) {\n    result = false;\n  }\n  const ret = result;\n  return ret;\n}\n\nfunction __wbg_new_70a2f23d1565c04c(arg0, arg1) {\n  const ret = new Error(getStringFromWasm0(arg0, arg1));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_has_bd717f25f195f23d() {\n  return handleError(function (arg0, arg1) {\n    const ret = Reflect.has(getObject(arg0), getObject(arg1));\n    return ret;\n  }, arguments);\n}\n\nfunction __wbg_resolve_0aad7c1484731c99(arg0) {\n  const ret = Promise.resolve(getObject(arg0));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_then_748f75edfb032440(arg0, arg1) {\n  const ret = getObject(arg0).then(getObject(arg1));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_then_4866a7d9f55d8f3e(arg0, arg1, arg2) {\n  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));\n  return addHeapObject(ret);\n}\n\nfunction __wbindgen_memory() {\n  const ret = wasm.memory;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_buffer_ccaed51a635d8a2d(arg0) {\n  const ret = getObject(arg0).buffer;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_newwithbyteoffsetandlength_7e3eb787208af730(arg0, arg1, arg2) {\n  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);\n  return addHeapObject(ret);\n}\n\nfunction __wbg_length_9254c4bd3b9f23c4(arg0) {\n  const ret = getObject(arg0).length;\n  return ret;\n}\n\nfunction __wbg_new_fec2611eb9180f95(arg0) {\n  const ret = new Uint8Array(getObject(arg0));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) {\n  getObject(arg0).set(getObject(arg1), arg2 >>> 0);\n}\n\nfunction __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) {\n  let result;\n  try {\n    result = getObject(arg0) instanceof Uint8Array;\n  } catch (_) {\n    result = false;\n  }\n  const ret = result;\n  return ret;\n}\n\nfunction __wbg_new_4e7308fbedde3997() {\n  return handleError(function () {\n    const ret = new FormData();\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_append_43a4b1c9d5df4168() {\n  return handleError(function (arg0, arg1, arg2, arg3, arg4) {\n    getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));\n  }, arguments);\n}\n\nfunction __wbg_settype_623d2ee701e6310a(arg0, arg1, arg2) {\n  getObject(arg0).type = getStringFromWasm0(arg1, arg2);\n}\n\nfunction __wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206() {\n  return handleError(function (arg0, arg1) {\n    const ret = new Blob(getObject(arg0), getObject(arg1));\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_append_7ee78799a92a9731() {\n  return handleError(function (arg0, arg1, arg2, arg3) {\n    getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));\n  }, arguments);\n}\n\nfunction __wbg_append_8135c71037096394() {\n  return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {\n    getObject(arg0).append(\n      getStringFromWasm0(arg1, arg2),\n      getObject(arg3),\n      getStringFromWasm0(arg4, arg5),\n    );\n  }, arguments);\n}\n\nfunction __wbg_fetch_f8d735ba6fe1b719(arg0) {\n  const ret = fetch(getObject(arg0));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_fetch_1fdc4448ed9eec00(arg0, arg1) {\n  const ret = getObject(arg0).fetch(getObject(arg1));\n  return addHeapObject(ret);\n}\n\nfunction __wbg_new_75169ae5a9683c55() {\n  return handleError(function () {\n    const ret = new AbortController();\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbindgen_boolean_get(arg0) {\n  const v = getObject(arg0);\n  const ret = typeof v === \"boolean\" ? (v ? 1 : 0) : 2;\n  return ret;\n}\n\nfunction __wbindgen_number_get(arg0, arg1) {\n  const obj = getObject(arg1);\n  const ret = typeof obj === \"number\" ? obj : undefined;\n  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);\n  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);\n}\n\nfunction __wbg_String_b9412f8799faab3e(arg0, arg1) {\n  const ret = String(getObject(arg1));\n  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n  const len1 = WASM_VECTOR_LEN;\n  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n}\n\nfunction __wbindgen_debug_string(arg0, arg1) {\n  const ret = debugString(getObject(arg1));\n  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n  const len1 = WASM_VECTOR_LEN;\n  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);\n  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);\n}\n\nfunction __wbindgen_throw(arg0, arg1) {\n  throw new Error(getStringFromWasm0(arg0, arg1));\n}\n\nfunction __wbg_queueMicrotask_848aa4969108a57e(arg0) {\n  const ret = getObject(arg0).queueMicrotask;\n  return addHeapObject(ret);\n}\n\nfunction __wbg_queueMicrotask_c5419c06eab41e73(arg0) {\n  queueMicrotask(getObject(arg0));\n}\n\nfunction __wbg_newwithstrandinit_4b92c89af0a8e383() {\n  return handleError(function (arg0, arg1, arg2) {\n    const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));\n    return addHeapObject(ret);\n  }, arguments);\n}\n\nfunction __wbg_debug_a0b6c2c5ac9a4bfd(arg0, arg1, arg2, arg3) {\n  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n}\n\nfunction __wbg_error_4d17c5bb1ca90c94(arg0, arg1, arg2, arg3) {\n  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n}\n\nfunction __wbg_info_1c7fba7da21072d1(arg0, arg1, arg2, arg3) {\n  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n}\n\nfunction __wbg_log_4de37a0274d94769(arg0, arg1, arg2, arg3) {\n  console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n}\n\nfunction __wbg_warn_2e2787d40aad9a81(arg0, arg1, arg2, arg3) {\n  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n}\n\nfunction __wbindgen_closure_wrapper1610(arg0, arg1, arg2) {\n  const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_38);\n  return addHeapObject(ret);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 48220 characters]\n//# sourceURL=webpack-internal:///../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js\n");

/***/ }),

/***/ "../../node_modules/@bitwarden/sdk-internal/index.js":
/*!***********************************************************!*\
  !*** ../../node_modules/@bitwarden/sdk-internal/index.js ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenClient: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.BitwardenClient),\n/* harmony export */   ClientCrypto: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.ClientCrypto),\n/* harmony export */   ClientFolders: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.ClientFolders),\n/* harmony export */   ClientVault: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.ClientVault),\n/* harmony export */   LogLevel: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.LogLevel),\n/* harmony export */   __wbg_String_b9412f8799faab3e: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_String_b9412f8799faab3e),\n/* harmony export */   __wbg_abort_c57daab47a6c1215: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_abort_c57daab47a6c1215),\n/* harmony export */   __wbg_append_43a4b1c9d5df4168: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_append_43a4b1c9d5df4168),\n/* harmony export */   __wbg_append_7ee78799a92a9731: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_append_7ee78799a92a9731),\n/* harmony export */   __wbg_append_8135c71037096394: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_append_8135c71037096394),\n/* harmony export */   __wbg_append_8b3e7f74a47ea7d5: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_append_8b3e7f74a47ea7d5),\n/* harmony export */   __wbg_buffer_ccaed51a635d8a2d: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_buffer_ccaed51a635d8a2d),\n/* harmony export */   __wbg_call_3bfa248576352471: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_call_3bfa248576352471),\n/* harmony export */   __wbg_call_a9ef466721e824f2: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_call_a9ef466721e824f2),\n/* harmony export */   __wbg_debug_a0b6c2c5ac9a4bfd: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_debug_a0b6c2c5ac9a4bfd),\n/* harmony export */   __wbg_done_983b5ffcaec8c583: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_done_983b5ffcaec8c583),\n/* harmony export */   __wbg_entries_c02034de337d3ee2: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_entries_c02034de337d3ee2),\n/* harmony export */   __wbg_error_4d17c5bb1ca90c94: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_error_4d17c5bb1ca90c94),\n/* harmony export */   __wbg_error_f851667af71bcfc6: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_error_f851667af71bcfc6),\n/* harmony export */   __wbg_fetch_1fdc4448ed9eec00: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_fetch_1fdc4448ed9eec00),\n/* harmony export */   __wbg_fetch_f8d735ba6fe1b719: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_fetch_f8d735ba6fe1b719),\n/* harmony export */   __wbg_get_5419cf6b954aa11d: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_get_5419cf6b954aa11d),\n/* harmony export */   __wbg_get_ef828680c64da212: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_get_ef828680c64da212),\n/* harmony export */   __wbg_getwithrefkey_edc2c8960f0f1191: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_getwithrefkey_edc2c8960f0f1191),\n/* harmony export */   __wbg_globalThis_05c129bf37fcf1be: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_globalThis_05c129bf37fcf1be),\n/* harmony export */   __wbg_global_3eca19bb09e9c484: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_global_3eca19bb09e9c484),\n/* harmony export */   __wbg_has_bd717f25f195f23d: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_has_bd717f25f195f23d),\n/* harmony export */   __wbg_headers_1b9bf90c73fae600: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_headers_1b9bf90c73fae600),\n/* harmony export */   __wbg_info_1c7fba7da21072d1: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_info_1c7fba7da21072d1),\n/* harmony export */   __wbg_instanceof_ArrayBuffer_74945570b4a62ec7: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7),\n/* harmony export */   __wbg_instanceof_Response_3c0e210a57ff751d: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_instanceof_Response_3c0e210a57ff751d),\n/* harmony export */   __wbg_instanceof_Uint8Array_df0761410414ef36: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_instanceof_Uint8Array_df0761410414ef36),\n/* harmony export */   __wbg_isSafeInteger_b9dff570f01a9100: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_isSafeInteger_b9dff570f01a9100),\n/* harmony export */   __wbg_iterator_695d699a44d6234c: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_iterator_695d699a44d6234c),\n/* harmony export */   __wbg_length_9254c4bd3b9f23c4: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_length_9254c4bd3b9f23c4),\n/* harmony export */   __wbg_length_f217bbbf7e8e4df4: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_length_f217bbbf7e8e4df4),\n/* harmony export */   __wbg_log_4de37a0274d94769: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_log_4de37a0274d94769),\n/* harmony export */   __wbg_new_034f913e7636e987: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_034f913e7636e987),\n/* harmony export */   __wbg_new_1073970097e5a420: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_1073970097e5a420),\n/* harmony export */   __wbg_new_4e7308fbedde3997: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_4e7308fbedde3997),\n/* harmony export */   __wbg_new_70a2f23d1565c04c: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_70a2f23d1565c04c),\n/* harmony export */   __wbg_new_75169ae5a9683c55: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_75169ae5a9683c55),\n/* harmony export */   __wbg_new_92c27aa873e8170e: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_92c27aa873e8170e),\n/* harmony export */   __wbg_new_a9ae04a5200606a5: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_a9ae04a5200606a5),\n/* harmony export */   __wbg_new_abda76e883ba8a5f: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_abda76e883ba8a5f),\n/* harmony export */   __wbg_new_e69b5f66fda8f13c: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_e69b5f66fda8f13c),\n/* harmony export */   __wbg_new_fec2611eb9180f95: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_new_fec2611eb9180f95),\n/* harmony export */   __wbg_newnoargs_1ede4bf2ebbaaf43: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_newnoargs_1ede4bf2ebbaaf43),\n/* harmony export */   __wbg_newwithbyteoffsetandlength_7e3eb787208af730: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_newwithbyteoffsetandlength_7e3eb787208af730),\n/* harmony export */   __wbg_newwithstrandinit_4b92c89af0a8e383: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_newwithstrandinit_4b92c89af0a8e383),\n/* harmony export */   __wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206),\n/* harmony export */   __wbg_next_13b477da1eaa3897: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_next_13b477da1eaa3897),\n/* harmony export */   __wbg_next_b06e115d1b01e10b: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_next_b06e115d1b01e10b),\n/* harmony export */   __wbg_push_36cf4d81d7da33d1: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_push_36cf4d81d7da33d1),\n/* harmony export */   __wbg_queueMicrotask_848aa4969108a57e: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_queueMicrotask_848aa4969108a57e),\n/* harmony export */   __wbg_queueMicrotask_c5419c06eab41e73: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_queueMicrotask_c5419c06eab41e73),\n/* harmony export */   __wbg_resolve_0aad7c1484731c99: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_resolve_0aad7c1484731c99),\n/* harmony export */   __wbg_self_bf91bf94d9e04084: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_self_bf91bf94d9e04084),\n/* harmony export */   __wbg_set_ec2fcf81bc573fd9: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_set_ec2fcf81bc573fd9),\n/* harmony export */   __wbg_set_f975102236d3c502: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_set_f975102236d3c502),\n/* harmony export */   __wbg_set_wasm: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_set_wasm),\n/* harmony export */   __wbg_setbody_aa8b691bec428bf4: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_setbody_aa8b691bec428bf4),\n/* harmony export */   __wbg_setcredentials_a4e661320cdb9738: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_setcredentials_a4e661320cdb9738),\n/* harmony export */   __wbg_setheaders_f5205d36e423a544: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_setheaders_f5205d36e423a544),\n/* harmony export */   __wbg_setmethod_ce2da76000b02f6a: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_setmethod_ce2da76000b02f6a),\n/* harmony export */   __wbg_setmode_4919fd636102c586: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_setmode_4919fd636102c586),\n/* harmony export */   __wbg_setsignal_812ccb8269a7fd90: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_setsignal_812ccb8269a7fd90),\n/* harmony export */   __wbg_settype_623d2ee701e6310a: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_settype_623d2ee701e6310a),\n/* harmony export */   __wbg_signal_9acfcec9e7dffc22: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_signal_9acfcec9e7dffc22),\n/* harmony export */   __wbg_stack_658279fe44541cf6: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_stack_658279fe44541cf6),\n/* harmony export */   __wbg_status_5f4e900d22140a18: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_status_5f4e900d22140a18),\n/* harmony export */   __wbg_stringify_eead5648c09faaf8: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_stringify_eead5648c09faaf8),\n/* harmony export */   __wbg_text_ebeee8b31af4c919: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_text_ebeee8b31af4c919),\n/* harmony export */   __wbg_then_4866a7d9f55d8f3e: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_then_4866a7d9f55d8f3e),\n/* harmony export */   __wbg_then_748f75edfb032440: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_then_748f75edfb032440),\n/* harmony export */   __wbg_url_58af972663531d16: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_url_58af972663531d16),\n/* harmony export */   __wbg_value_2ab8a198c834c26a: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_value_2ab8a198c834c26a),\n/* harmony export */   __wbg_warn_2e2787d40aad9a81: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_warn_2e2787d40aad9a81),\n/* harmony export */   __wbg_window_52dd9f07d03fd5f8: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_window_52dd9f07d03fd5f8),\n/* harmony export */   __wbindgen_as_number: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_as_number),\n/* harmony export */   __wbindgen_boolean_get: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_boolean_get),\n/* harmony export */   __wbindgen_cb_drop: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_cb_drop),\n/* harmony export */   __wbindgen_closure_wrapper1610: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_closure_wrapper1610),\n/* harmony export */   __wbindgen_debug_string: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_debug_string),\n/* harmony export */   __wbindgen_error_new: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_error_new),\n/* harmony export */   __wbindgen_in: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_in),\n/* harmony export */   __wbindgen_is_function: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_is_function),\n/* harmony export */   __wbindgen_is_object: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_is_object),\n/* harmony export */   __wbindgen_is_string: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_is_string),\n/* harmony export */   __wbindgen_is_undefined: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_is_undefined),\n/* harmony export */   __wbindgen_jsval_loose_eq: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_jsval_loose_eq),\n/* harmony export */   __wbindgen_memory: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_memory),\n/* harmony export */   __wbindgen_number_get: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_number_get),\n/* harmony export */   __wbindgen_object_clone_ref: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_object_clone_ref),\n/* harmony export */   __wbindgen_object_drop_ref: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_object_drop_ref),\n/* harmony export */   __wbindgen_string_get: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_string_get),\n/* harmony export */   __wbindgen_string_new: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_string_new),\n/* harmony export */   __wbindgen_throw: () => (/* reexport safe */ _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbindgen_throw),\n/* harmony export */   init: () => (/* binding */ init)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bitwarden_wasm_internal_bg.js */ \"../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js\");\n\n\n// In order to support a fallback strategy for web we need to conditionally load the wasm file\nfunction init(wasm) {\n  (0,_bitwarden_wasm_internal_bg_js__WEBPACK_IMPORTED_MODULE_0__.__wbg_set_wasm)(wasm);\n}\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbm9kZV9tb2R1bGVzL0BiaXR3YXJkZW4vc2RrLWludGVybmFsL2luZGV4LmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBaUU7O0FBRWpFO0FBQ087QUFDUCxFQUFFLDhFQUFjO0FBQ2hCOztBQUVnRCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL25vZGVfbW9kdWxlcy9AYml0d2FyZGVuL3Nkay1pbnRlcm5hbC9pbmRleC5qcz82ZmQzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fd2JnX3NldF93YXNtIH0gZnJvbSBcIi4vYml0d2FyZGVuX3dhc21faW50ZXJuYWxfYmcuanNcIjtcblxuLy8gSW4gb3JkZXIgdG8gc3VwcG9ydCBhIGZhbGxiYWNrIHN0cmF0ZWd5IGZvciB3ZWIgd2UgbmVlZCB0byBjb25kaXRpb25hbGx5IGxvYWQgdGhlIHdhc20gZmlsZVxuZXhwb3J0IGZ1bmN0aW9uIGluaXQod2FzbSkge1xuICBfX3diZ19zZXRfd2FzbSh3YXNtKTtcbn1cblxuZXhwb3J0ICogZnJvbSBcIi4vYml0d2FyZGVuX3dhc21faW50ZXJuYWxfYmcuanNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../node_modules/@bitwarden/sdk-internal/index.js\n");

/***/ }),

/***/ "./src/admin-console/commands/confirm.command.ts":
/*!*******************************************************!*\
  !*** ./src/admin-console/commands/confirm.command.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConfirmCommand: () => (/* binding */ ConfirmCommand)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass ConfirmCommand {\n    constructor(apiService, keyService, encryptService, organizationUserApiService) {\n        this.apiService = apiService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.organizationUserApiService = organizationUserApiService;\n    }\n    run(object, id, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            switch (object.toLowerCase()) {\n                case \"org-member\":\n                    return yield this.confirmOrganizationMember(id, normalizedOptions);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    confirmOrganizationMember(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"--organizationid <organizationid> required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(id)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            try {\n                const orgKey = yield this.keyService.getOrgKey(options.organizationId);\n                if (orgKey == null) {\n                    throw new Error(\"No encryption key for this organization.\");\n                }\n                const orgUser = yield this.organizationUserApiService.getOrganizationUser(options.organizationId, id);\n                if (orgUser == null) {\n                    throw new Error(\"Member id does not exist for this organization.\");\n                }\n                const publicKeyResponse = yield this.apiService.getUserPublicKey(orgUser.userId);\n                const publicKey = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromB64ToArray(publicKeyResponse.publicKey);\n                const key = yield this.encryptService.rsaEncrypt(orgKey.key, publicKey);\n                const req = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserConfirmRequest();\n                req.key = key.encryptedString;\n                yield this.organizationUserApiService.postOrganizationUserConfirm(options.organizationId, id, req);\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.organizationId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationId);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7088 characters]\n//# sourceURL=webpack-internal:///./src/admin-console/commands/confirm.command.ts\n");

/***/ }),

/***/ "./src/admin-console/commands/share.command.ts":
/*!*****************************************************!*\
  !*** ./src/admin-console/commands/share.command.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ShareCommand: () => (/* binding */ ShareCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ \"./src/utils.ts\");\n/* harmony import */ var _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vault/models/cipher.response */ \"./src/vault/models/cipher.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass ShareCommand {\n    constructor(cipherService, accountService) {\n        this.cipherService = cipherService;\n        this.accountService = accountService;\n    }\n    run(id, organizationId, requestJson) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (process.env.BW_SERVE !== \"true\" && (requestJson == null || requestJson === \"\")) {\n                requestJson = yield _utils__WEBPACK_IMPORTED_MODULE_2__.CliUtils.readStdin();\n            }\n            if (requestJson == null || requestJson === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`requestJson` was not provided.\");\n            }\n            let req = [];\n            if (typeof requestJson !== \"string\") {\n                req = requestJson;\n            }\n            else {\n                try {\n                    const reqJson = Buffer.from(requestJson, \"base64\").toString();\n                    req = JSON.parse(reqJson);\n                    if (req == null || req.length === 0) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"You must provide at least one collection id for this item.\");\n                    }\n                }\n                catch (e) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"Error parsing the encoded request data.\");\n                }\n            }\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            if (organizationId != null) {\n                organizationId = organizationId.toLowerCase();\n            }\n            const cipher = yield this.cipherService.get(id);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.notFound();\n            }\n            if (cipher.organizationId != null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"This item already belongs to an organization.\");\n            }\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            const cipherView = yield cipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(cipher, activeUserId));\n            try {\n                yield this.cipherService.shareWithServer(cipherView, organizationId, req, activeUserId);\n                const updatedCipher = yield this.cipherService.get(cipher.id);\n                const decCipher = yield updatedCipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(updatedCipher, activeUserId));\n                const res = new _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_3__.CipherResponse(decCipher);\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6728 characters]\n//# sourceURL=webpack-internal:///./src/admin-console/commands/share.command.ts\n");

/***/ }),

/***/ "./src/admin-console/models/request/organization-collection.request.ts":
/*!*****************************************************************************!*\
  !*** ./src/admin-console/models/request/organization-collection.request.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationCollectionRequest: () => (/* binding */ OrganizationCollectionRequest)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/export/collection.export */ \"../../libs/common/src/models/export/collection.export.ts\");\n/* harmony import */ var _selection_read_only__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../selection-read-only */ \"./src/admin-console/models/selection-read-only.ts\");\n\n\nclass OrganizationCollectionRequest extends _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_0__.CollectionExport {\n    static template() {\n        const req = new OrganizationCollectionRequest();\n        req.organizationId = \"00000000-0000-0000-0000-000000000000\";\n        req.name = \"Collection name\";\n        req.externalId = null;\n        req.groups = [_selection_read_only__WEBPACK_IMPORTED_MODULE_1__.SelectionReadOnly.template(), _selection_read_only__WEBPACK_IMPORTED_MODULE_1__.SelectionReadOnly.template()];\n        req.users = [_selection_read_only__WEBPACK_IMPORTED_MODULE_1__.SelectionReadOnly.template(), _selection_read_only__WEBPACK_IMPORTED_MODULE_1__.SelectionReadOnly.template()];\n        return req;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZX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tIFwiLi4vc2VsZWN0aW9uLXJlYWQtb25seVwiO1xuXG5leHBvcnQgY2xhc3MgT3JnYW5pemF0aW9uQ29sbGVjdGlvblJlcXVlc3QgZXh0ZW5kcyBDb2xsZWN0aW9uRXhwb3J0IHtcbiAgc3RhdGljIHRlbXBsYXRlKCk6IE9yZ2FuaXphdGlvbkNvbGxlY3Rpb25SZXF1ZXN0IHtcbiAgICBjb25zdCByZXEgPSBuZXcgT3JnYW5pemF0aW9uQ29sbGVjdGlvblJlcXVlc3QoKTtcbiAgICByZXEub3JnYW5pemF0aW9uSWQgPSBcIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMFwiO1xuICAgIHJlcS5uYW1lID0gXCJDb2xsZWN0aW9uIG5hbWVcIjtcbiAgICByZXEuZXh0ZXJuYWxJZCA9IG51bGw7XG4gICAgcmVxLmdyb3VwcyA9IFtTZWxlY3Rpb25SZWFkT25seS50ZW1wbGF0ZSgpLCBTZWxlY3Rpb25SZWFkT25seS50ZW1wbGF0ZSgpXTtcbiAgICByZXEudXNlcnMgPSBbU2VsZWN0aW9uUmVhZE9ubHkudGVtcGxhdGUoKSwgU2VsZWN0aW9uUmVhZE9ubHkudGVtcGxhdGUoKV07XG4gICAgcmV0dXJuIHJlcTtcbiAgfVxuXG4gIGdyb3VwczogU2VsZWN0aW9uUmVhZE9ubHlbXTtcbiAgdXNlcnM6IFNlbGVjdGlvblJlYWRPbmx5W107XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/admin-console/models/request/organization-collection.request.ts\n");

/***/ }),

/***/ "./src/admin-console/models/response/organization-collection.response.ts":
/*!*******************************************************************************!*\
  !*** ./src/admin-console/models/response/organization-collection.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationCollectionResponse: () => (/* binding */ OrganizationCollectionResponse)\n/* harmony export */ });\n/* harmony import */ var _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../vault/models/collection.response */ \"./src/vault/models/collection.response.ts\");\n\nclass OrganizationCollectionResponse extends _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_0__.CollectionResponse {\n    constructor(o, groups, users) {\n        super(o);\n        this.object = \"org-collection\";\n        this.groups = groups;\n        this.users = users;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2Uvb3JnYW5pemF0aW9uLWNvbGxlY3Rpb24ucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFFK0U7QUFHeEUsTUFBTSw4QkFBK0IsU0FBUSxpRkFBa0I7SUFJcEUsWUFBWSxDQUFpQixFQUFFLE1BQTJCLEVBQUUsS0FBMEI7UUFDcEYsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ1QsSUFBSSxDQUFDLE1BQU0sR0FBRyxnQkFBZ0IsQ0FBQztRQUMvQixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUNyQixJQUFJLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztJQUNyQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy9hZG1pbi1jb25zb2xlL21vZGVscy9yZXNwb25zZS9vcmdhbml6YXRpb24tY29sbGVjdGlvbi5yZXNwb25zZS50cz9hNDdiIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbGxlY3Rpb25WaWV3IH0gZnJvbSBcIkBiaXR3YXJkZW4vYWRtaW4tY29uc29sZS9jb21tb25cIjtcblxuaW1wb3J0IHsgQ29sbGVjdGlvblJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL3ZhdWx0L21vZGVscy9jb2xsZWN0aW9uLnJlc3BvbnNlXCI7XG5pbXBvcnQgeyBTZWxlY3Rpb25SZWFkT25seSB9IGZyb20gXCIuLi9zZWxlY3Rpb24tcmVhZC1vbmx5XCI7XG5cbmV4cG9ydCBjbGFzcyBPcmdhbml6YXRpb25Db2xsZWN0aW9uUmVzcG9uc2UgZXh0ZW5kcyBDb2xsZWN0aW9uUmVzcG9uc2Uge1xuICBncm91cHM6IFNlbGVjdGlvblJlYWRPbmx5W107XG4gIHVzZXJzOiBTZWxlY3Rpb25SZWFkT25seVtdO1xuXG4gIGNvbnN0cnVjdG9yKG86IENvbGxlY3Rpb25WaWV3LCBncm91cHM6IFNlbGVjdGlvblJlYWRPbmx5W10sIHVzZXJzOiBTZWxlY3Rpb25SZWFkT25seVtdKSB7XG4gICAgc3VwZXIobyk7XG4gICAgdGhpcy5vYmplY3QgPSBcIm9yZy1jb2xsZWN0aW9uXCI7XG4gICAgdGhpcy5ncm91cHMgPSBncm91cHM7XG4gICAgdGhpcy51c2VycyA9IHVzZXJzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/admin-console/models/response/organization-collection.response.ts\n");

/***/ }),

/***/ "./src/admin-console/models/response/organization-user.response.ts":
/*!*************************************************************************!*\
  !*** ./src/admin-console/models/response/organization-user.response.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserResponse: () => (/* binding */ OrganizationUserResponse)\n/* harmony export */ });\nclass OrganizationUserResponse {\n    constructor() {\n        this.object = \"org-member\";\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2Z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Im5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/admin-console/models/response/organization-user.response.ts\n");

/***/ }),

/***/ "./src/admin-console/models/response/organization.response.ts":
/*!********************************************************************!*\
  !*** ./src/admin-console/models/response/organization.response.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationResponse: () => (/* binding */ OrganizationResponse)\n/* harmony export */ });\nclass OrganizationResponse {\n    constructor(o) {\n        this.object = \"organization\";\n        this.id = o.id;\n        this.name = o.name;\n        this.status = o.status;\n        this.type = o.type;\n        this.enabled = o.enabled;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2Uvb3JnYW5pemF0aW9uLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFRTyxNQUFNLG9CQUFvQjtJQVEvQixZQUFZLENBQWU7UUFDekIsSUFBSSxDQUFDLE1BQU0sR0FBRyxjQUFjLENBQUM7UUFDN0IsSUFBSSxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDO1FBQ2YsSUFBSSxDQUFDLElBQUksR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDO1FBQ25CLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLE1BQU0sQ0FBQztRQUN2QixJQUFJLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDbkIsSUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQUMsT0FBTyxDQUFDO0lBQzNCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2x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vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/admin-console/models/response/organization.response.ts\n");

/***/ }),

/***/ "./src/admin-console/models/selection-read-only.ts":
/*!*********************************************************!*\
  !*** ./src/admin-console/models/selection-read-only.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SelectionReadOnly: () => (/* binding */ SelectionReadOnly)\n/* harmony export */ });\nclass SelectionReadOnly {\n    static template() {\n        return new SelectionReadOnly(\"00000000-0000-0000-0000-000000000000\", false, false, false);\n    }\n    constructor(id, readOnly, hidePasswords, manage) {\n        this.id = id;\n        this.readOnly = readOnly;\n        this.hidePasswords = hidePasswords || false;\n        this.manage = manage;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvc2VsZWN0aW9uLXJlYWQtb25seS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxpQkFBaUI7SUFDNUIsTUFBTSxDQUFDLFFBQVE7UUFDYixPQUFPLElBQUksaUJBQWlCLENBQUMsc0NBQXNDLEVBQUUsS0FBSyxFQUFFLEtBQUssRUFBRSxLQUFLLENBQUMsQ0FBQztJQUM1RixDQUFDO0lBT0QsWUFBWSxFQUFVLEVBQUUsUUFBaUIsRUFBRSxhQUFzQixFQUFFLE1BQWU7UUFDaEYsSUFBSSxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUM7UUFDYixJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztRQUN6QixJQUFJLENBQUMsYUFBYSxHQUFHLGFBQWEsSUFBSSxLQUFLLENBQUM7UUFDNUMsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDdkIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvc2VsZWN0aW9uLXJlYWQtb25seS50cz82NTRmIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBTZWxlY3Rpb25SZWFkT25seSB7XG4gIHN0YXRpYyB0ZW1wbGF0ZSgpOiBTZWxlY3Rpb25SZWFkT25seSB7XG4gICAgcmV0dXJuIG5ldyBTZWxlY3Rpb25SZWFkT25seShcIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMFwiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTtcbiAgfVxuXG4gIGlkOiBzdHJpbmc7XG4gIHJlYWRPbmx5OiBib29sZWFuO1xuICBoaWRlUGFzc3dvcmRzOiBib29sZWFuO1xuICBtYW5hZ2U6IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3IoaWQ6IHN0cmluZywgcmVhZE9ubHk6IGJvb2xlYW4sIGhpZGVQYXNzd29yZHM6IGJvb2xlYW4sIG1hbmFnZTogYm9vbGVhbikge1xuICAgIHRoaXMuaWQgPSBpZDtcbiAgICB0aGlzLnJlYWRPbmx5ID0gcmVhZE9ubHk7XG4gICAgdGhpcy5oaWRlUGFzc3dvcmRzID0gaGlkZVBhc3N3b3JkcyB8fCBmYWxzZTtcbiAgICB0aGlzLm1hbmFnZSA9IG1hbmFnZTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/admin-console/models/selection-read-only.ts\n");

/***/ }),

/***/ "./src/auth/commands/lock.command.ts":
/*!*******************************************!*\
  !*** ./src/auth/commands/lock.command.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LockCommand: () => (/* binding */ LockCommand)\n/* harmony export */ });\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass LockCommand {\n    constructor(vaultTimeoutService) {\n        this.vaultTimeoutService = vaultTimeoutService;\n    }\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.vaultTimeoutService.lock();\n            process.env.BW_SESSION = null;\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_1__.MessageResponse(\"Your vault is locked.\", null);\n            return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success(res);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXV0aC9jb21tYW5kcy9sb2NrLmNvbW1hbmQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBRWlEO0FBQ3dCO0FBRWxFLE1BQU0sV0FBVztJQUN0QixZQUFvQixtQkFBd0M7UUFBeEMsd0JBQW1CLEdBQW5CLG1CQUFtQixDQUFxQjtJQUFHLENBQUM7SUFFMUQsR0FBRzs7WUFDUCxNQUFNLElBQUksQ0FBQyxtQkFBbUIsQ0FBQy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ICAgIHJldHVybiBSZXNwb25zZS5zdWNjZXNzKHJlcyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/auth/commands/lock.command.ts\n");

/***/ }),

/***/ "./src/auth/commands/login.command.ts":
/*!********************************************!*\
  !*** ./src/auth/commands/login.command.ts ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginCommand: () => (/* binding */ LoginCommand)\n/* harmony export */ });\n/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! http */ \"http\");\n/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! inquirer */ \"inquirer\");\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(inquirer__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/auth/common */ \"../../libs/auth/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_auth_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/auth/enums/two-factor-provider-type */ \"../../libs/common/src/auth/enums/two-factor-provider-type.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_password_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/password.request */ \"../../libs/common/src/auth/models/request/password.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_two_factor_email_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/two-factor-email.request */ \"../../libs/common/src/auth/models/request/two-factor-email.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_update_temp_password_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/update-temp-password.request */ \"../../libs/common/src/auth/models/request/update-temp-password.request.ts\");\n/* harmony import */ var _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitwarden/common/models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @bitwarden/node/node-utils */ \"../../libs/node/src/node-utils.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass LoginCommand {\n    constructor(loginStrategyService, authService, apiService, cryptoFunctionService, environmentService, passwordGenerationService, passwordStrengthService, platformUtilsService, accountService, keyService, policyService, twoFactorService, syncService, keyConnectorService, policyApiService, orgService, logoutCallback, kdfConfigService) {\n        this.loginStrategyService = loginStrategyService;\n        this.authService = authService;\n        this.apiService = apiService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.environmentService = environmentService;\n        this.passwordGenerationService = passwordGenerationService;\n        this.passwordStrengthService = passwordStrengthService;\n        this.platformUtilsService = platformUtilsService;\n        this.accountService = accountService;\n        this.keyService = keyService;\n        this.policyService = policyService;\n        this.twoFactorService = twoFactorService;\n        this.syncService = syncService;\n        this.keyConnectorService = keyConnectorService;\n        this.policyApiService = policyApiService;\n        this.orgService = orgService;\n        this.logoutCallback = logoutCallback;\n        this.kdfConfigService = kdfConfigService;\n        this.ssoRedirectUri = null;\n    }\n    run(email, password, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            this.options = options;\n            this.email = email;\n            this.canInteract = process.env.BW_NOINTERACTION !== \"true\";\n            let ssoCodeVerifier = null;\n            let ssoCode = null;\n            let orgIdentifier = null;\n            let clientId = null;\n            let clientSecret = null;\n            let selectedProvider = null;\n            if (options.apikey != null) {\n                const apiIdentifiers = yield this.apiIdentifiers();\n                clientId = apiIdentifiers.clientId;\n                clientSecret = apiIdentifiers.clientSecret;\n                if (clientId == null || clientId.trim() === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"client_id is required.\");\n                }\n                if (clientSecret == null || clientSecret === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"client_secret is required.\");\n                }\n            }\n            else if (options.sso != null && this.canInteract) {\n                const passwordOptions = {\n                    type: \"password\",\n                    length: 64,\n                    uppercase: true,\n                    lowercase: true,\n                    numbers: true,\n                    special: false,\n                };\n                const state = yield this.passwordGenerationService.generatePassword(passwordOptions);\n                ssoCodeVerifier = yield this.passwordGenerationService.generatePassword(passwordOptions);\n                const codeVerifierHash = yield this.cryptoFunctionService.hash(ssoCodeVerifier, \"sha256\");\n                const codeChallenge = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_11__.Utils.fromBufferToUrlB64(codeVerifierHash);\n                try {\n                    const ssoParams = yield this.openSsoPrompt(codeChallenge, state);\n                    ssoCode = ssoParams.ssoCode;\n                    orgIdentifier = ssoParams.orgIdentifier;\n                }\n                catch (_b) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"Something went wrong. Try again.\");\n                }\n            }\n            else {\n                if ((email == null || email === \"\") && this.canInteract) {\n                    const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({\n                        output: process.stderr,\n                    })({\n                        type: \"input\",\n                        name: \"email\",\n                        message: \"Email address:\",\n                    });\n                    email = answer.email;\n                }\n                if (email == null || email.trim() === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"Email address is required.\");\n                }\n                if (email.indexOf(\"@\") === -1) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"Email address is invalid.\");\n                }\n                this.email = email;\n                if (password == null || password === \"\") {\n                    if (options.passwordfile) {\n                        password = yield _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_12__.NodeUtils.readFirstLine(options.passwordfile);\n                    }\n                    else if (options.passwordenv && process.env[options.passwordenv]) {\n                        password = process.env[options.passwordenv];\n                    }\n                    else if (this.canInteract) {\n                        const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({\n                            output: process.stderr,\n                        })({\n                            type: \"password\",\n                            name: \"password\",\n                            message: \"Master password:\",\n                        });\n                        password = answer.password;\n                    }\n                }\n                if (password == null || password === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"Master password is required.\");\n                }\n            }\n            let twoFactorToken = options.code;\n            let twoFactorMethod = null;\n            try {\n                if (options.method != null) {\n                    twoFactorMethod = parseInt(options.method, null);\n                }\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Invalid two-step login method.\");\n            }\n            const twoFactor = twoFactorToken == null\n                ? null\n                : new _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__.TokenTwoFactorRequest(twoFactorMethod, twoFactorToken, false);\n            try {\n                yield this.validatedParams();\n                let response = null;\n                if (clientId != null && clientSecret != null) {\n                    if (!clientId.startsWith(\"user\")) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Invalid API Key; Organization API Key currently not supported\");\n                    }\n                    try {\n                        response = yield this.loginStrategyService.logIn(new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_3__.UserApiLoginCredentials(clientId, clientSecret));\n                    }\n                    catch (e) {\n                        // handle API key login failures\n                        // Handle invalid client error as server doesn't return a useful message\n                        if (((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.error) &&\n                            typeof e.response.error === \"string\" &&\n                            e.response.error === \"invalid_client\") {\n                            return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"client_id or client_secret is incorrect. Try again.\");\n                        }\n                        // Pass error up to be handled by the outer catch block below\n                        throw e;\n                    }\n                }\n                else if (ssoCode != null && ssoCodeVerifier != null) {\n                    response = yield this.loginStrategyService.logIn(new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_3__.SsoLoginCredentials(ssoCode, ssoCodeVerifier, this.ssoRedirectUri, orgIdentifier, undefined, // email to look up 2FA token not required as CLI can't remember 2FA token\n                    twoFactor));\n                }\n                else {\n                    response = yield this.loginStrategyService.logIn(new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_3__.PasswordLoginCredentials(email, password, null, twoFactor));\n                }\n                if (response.requiresEncryptionKeyMigration) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Encryption key migration required. Please login through the web vault to update your encryption key.\");\n                }\n                if (response.captchaSiteKey) {\n                    const credentials = new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_3__.PasswordLoginCredentials(email, password);\n                    const handledResponse = yield this.handleCaptchaRequired(twoFactor, credentials);\n                    // Error Response\n                    if (handledResponse instanceof _models_response__WEBPACK_IMPORTED_MODULE_13__.Response) {\n                        return handledResponse;\n                    }\n                    else {\n                        response = handledResponse;\n                    }\n                }\n                if (response.requiresTwoFactor) {\n                    const twoFactorProviders = yield this.twoFactorService.getSupportedProviders(null);\n                    if (twoFactorProviders.length === 0) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"No providers available for this client.\");\n                    }\n                    if (twoFactorMethod != null) {\n                        try {\n                            selectedProvider = twoFactorProviders.filter((p) => p.type === twoFactorMethod)[0];\n                        }\n                        catch (e) {\n                            return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Invalid two-step login method.\");\n                        }\n                    }\n                    if (selectedProvider == null) {\n                        if (twoFactorProviders.length === 1) {\n                            selectedProvider = twoFactorProviders[0];\n                        }\n                        else if (this.canInteract) {\n                            const twoFactorOptions = twoFactorProviders.map((p) => p.name);\n                            twoFactorOptions.push(new inquirer__WEBPACK_IMPORTED_MODULE_1__.Separator());\n                            twoFactorOptions.push(\"Cancel\");\n                            const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({\n                                output: process.stderr,\n                            })({\n                                type: \"list\",\n                                name: \"method\",\n                                message: \"Two-step login method:\",\n                                choices: twoFactorOptions,\n                            });\n                            const i = twoFactorOptions.indexOf(answer.method);\n                            if (i === twoFactorOptions.length - 1) {\n                                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Login failed.\");\n                            }\n                            selectedProvider = twoFactorProviders[i];\n                        }\n                        if (selectedProvider == null) {\n                            return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Login failed. No provider selected.\");\n                        }\n                    }\n                    if (twoFactorToken == null &&\n                        Object.keys(response.twoFactorProviders).length > 1 &&\n                        selectedProvider.type === _bitwarden_common_auth_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_4__.TwoFactorProviderType.Email) {\n                        const emailReq = new _bitwarden_common_auth_models_request_two_factor_email_request__WEBPACK_IMPORTED_MODULE_8__.TwoFactorEmailRequest();\n                        emailReq.email = yield this.loginStrategyService.getEmail();\n                        emailReq.masterPasswordHash = yield this.loginStrategyService.getMasterPasswordHash();\n                        yield this.apiService.postTwoFactorEmail(emailReq);\n                    }\n                    if (twoFactorToken == null) {\n                        if (this.canInteract) {\n                            const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({\n                                output: process.stderr,\n                            })({\n                                type: \"input\",\n                                name: \"token\",\n                                message: \"Two-step login code:\",\n                            });\n                            twoFactorToken = answer.token;\n                        }\n                        if (twoFactorToken == null || twoFactorToken === \"\") {\n                            return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"Code is required.\");\n                        }\n                    }\n                    response = yield this.loginStrategyService.logInTwoFactor(new _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__.TokenTwoFactorRequest(selectedProvider.type, twoFactorToken), null);\n                }\n                if (response.captchaSiteKey) {\n                    const twoFactorRequest = new _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__.TokenTwoFactorRequest(selectedProvider.type, twoFactorToken);\n                    const handledResponse = yield this.handleCaptchaRequired(twoFactorRequest);\n                    // Error Response\n                    if (handledResponse instanceof _models_response__WEBPACK_IMPORTED_MODULE_13__.Response) {\n                        return handledResponse;\n                    }\n                    else {\n                        response = handledResponse;\n                    }\n                }\n                if (response.requiresTwoFactor) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"Login failed.\");\n                }\n                if (response.resetMasterPassword) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(\"In order to log in with SSO from the CLI, you must first log in\" +\n                        \" through the web vault to set your master password.\");\n                }\n                // Run full sync before handling success response or password reset flows (to get Master Password Policies)\n                yield this.syncService.fullSync(true);\n                // Handle updating passwords if NOT using an API Key for authentication\n                if (response.forcePasswordReset != _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_5__.ForceSetPasswordReason.None &&\n                    clientId == null &&\n                    clientSecret == null) {\n                    if (response.forcePasswordReset === _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_5__.ForceSetPasswordReason.AdminForcePasswordReset) {\n                        return yield this.updateTempPassword();\n                    }\n                    else if (response.forcePasswordReset === _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_5__.ForceSetPasswordReason.WeakMasterPassword) {\n                        return yield this.updateWeakPassword(password);\n                    }\n                }\n                return yield this.handleSuccessResponse(response);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(e);\n            }\n        });\n    }\n    validatedParams() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const key = yield this.cryptoFunctionService.randomBytes(64);\n            process.env.BW_SESSION = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_11__.Utils.fromBufferToB64(key);\n        });\n    }\n    handleSuccessResponse(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const usesKeyConnector = yield this.keyConnectorService.getUsesKeyConnector(response.userId);\n            if ((this.options.sso != null || this.options.apikey != null) &&\n                this.canInteract &&\n                !usesKeyConnector) {\n                const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_14__.MessageResponse(\"You are logged in!\", \"\\n\" + \"To unlock your vault, use the `unlock` command. ex:\\n\" + \"$ bw unlock\");\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.success(res);\n            }\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_14__.MessageResponse(\"You are logged in!\", \"\\n\" +\n                \"To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:\\n\" +\n                '$ export BW_SESSION=\"' +\n                process.env.BW_SESSION +\n                '\"\\n' +\n                '> $env:BW_SESSION=\"' +\n                process.env.BW_SESSION +\n                '\"\\n\\n' +\n                \"You can also pass the session key to any command with the `--session` option. ex:\\n\" +\n                \"$ bw list items --session \" +\n                process.env.BW_SESSION);\n            res.raw = process.env.BW_SESSION;\n            return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.success(res);\n        });\n    }\n    handleUpdatePasswordSuccessResponse() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.logoutCallback();\n            this.authService.logOut(() => {\n                /* Do nothing */\n            });\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_14__.MessageResponse(\"Your master password has been updated!\", \"\\n\" + \"You have been logged out and must log in again to access the vault.\");\n            return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.success(res);\n        });\n    }\n    updateWeakPassword(currentPassword) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If no interaction available, alert user to use web vault\n            if (!this.canInteract) {\n                yield this.logoutCallback();\n                this.authService.logOut(() => {\n                    /* Do nothing */\n                });\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(new _models_response_message_response__WEBPACK_IMPORTED_MODULE_14__.MessageResponse(\"Your master password does not meet one or more of your organization policies. In order to access the vault, you must update your master password now via the web vault. You have been logged out.\", null));\n            }\n            try {\n                const { newPasswordHash, newUserKey, hint } = yield this.collectNewMasterPasswordDetails(\"Your master password does not meet one or more of your organization policies. In order to access the vault, you must update your master password now.\");\n                const request = new _bitwarden_common_auth_models_request_password_request__WEBPACK_IMPORTED_MODULE_7__.PasswordRequest();\n                request.masterPasswordHash = yield this.keyService.hashMasterKey(currentPassword, null);\n                request.masterPasswordHint = hint;\n                request.newMasterPasswordHash = newPasswordHash;\n                request.key = newUserKey[1].encryptedString;\n                yield this.apiService.postPassword(request);\n                return yield this.handleUpdatePasswordSuccessResponse();\n            }\n            catch (e) {\n                yield this.logoutCallback();\n                this.authService.logOut(() => {\n                    /* Do nothing */\n                });\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(e);\n            }\n        });\n    }\n    updateTempPassword() {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If no interaction available, alert user to use web vault\n            if (!this.canInteract) {\n                yield this.logoutCallback();\n                this.authService.logOut(() => {\n                    /* Do nothing */\n                });\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(new _models_response_message_response__WEBPACK_IMPORTED_MODULE_14__.MessageResponse(\"An organization administrator recently changed your master password. In order to access the vault, you must update your master password now via the web vault. You have been logged out.\", null));\n            }\n            try {\n                const { newPasswordHash, newUserKey, hint } = yield this.collectNewMasterPasswordDetails(\"An organization administrator recently changed your master password. In order to access the vault, you must update your master password now.\");\n                const request = new _bitwarden_common_auth_models_request_update_temp_password_request__WEBPACK_IMPORTED_MODULE_9__.UpdateTempPasswordRequest();\n                request.key = newUserKey[1].encryptedString;\n                request.newMasterPasswordHash = newPasswordHash;\n                request.masterPasswordHint = hint;\n                yield this.apiService.putUpdateTempPassword(request);\n                return yield this.handleUpdatePasswordSuccessResponse();\n            }\n            catch (e) {\n                yield this.logoutCallback();\n                this.authService.logOut(() => {\n                    /* Do nothing */\n                });\n                return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(e);\n            }\n        });\n    }\n    /**\n     * Collect new master password and hint from the CLI. The collected password\n     * is validated against any applicable master password policies, a new master\n     * key is generated, and we use it to re-encrypt the user key\n     * @param prompt - Message that is displayed during the initial prompt\n     * @param error\n     */\n    collectNewMasterPasswordDetails(prompt, error) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.email == null || this.email === \"undefined\") {\n                this.email = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_2__.map)((a) => a === null || a === void 0 ? void 0 : a.email)));\n            }\n            // Get New Master Password\n            const baseMessage = `${prompt}\\n` + \"Master password: \";\n            const firstMessage = error != null ? error + baseMessage : baseMessage;\n            const mp = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({ output: process.stderr })({\n                type: \"password\",\n                name: \"password\",\n                message: firstMessage,\n            });\n            const masterPassword = mp.password;\n            // Master Password Validation\n            if (masterPassword == null || masterPassword === \"\") {\n                return this.collectNewMasterPasswordDetails(prompt, \"Master password is required.\\n\");\n            }\n            if (masterPassword.length < _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_11__.Utils.minimumPasswordLength) {\n                return this.collectNewMasterPasswordDetails(prompt, `Master password must be at least ${_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_11__.Utils.minimumPasswordLength} characters long.\\n`);\n            }\n            // Strength & Policy Validation\n            const strengthResult = this.passwordStrengthService.getPasswordStrength(masterPassword, this.email);\n            const enforcedPolicyOptions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.policyService.masterPasswordPolicyOptions$());\n            // Verify master password meets policy requirements\n            if (enforcedPolicyOptions != null &&\n                !this.policyService.evaluateMasterPassword(strengthResult.score, masterPassword, enforcedPolicyOptions)) {\n                return this.collectNewMasterPasswordDetails(prompt, \"Your new master password does not meet the policy requirements.\\n\");\n            }\n            // Get New Master Password Re-type\n            const reTypeMessage = \"Re-type New Master password (Strength: \" + strengthResult.score + \")\";\n            const retype = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({ output: process.stderr })({\n                type: \"password\",\n                name: \"password\",\n                message: reTypeMessage,\n            });\n            const masterPasswordRetype = retype.password;\n            // Re-type Validation\n            if (masterPassword !== masterPasswordRetype) {\n                return this.collectNewMasterPasswordDetails(prompt, \"Master password confirmation does not match.\\n\");\n            }\n            // Get Hint (optional)\n            const hint = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({ output: process.stderr })({\n                type: \"input\",\n                name: \"input\",\n                message: \"Master Password Hint (optional):\",\n            });\n            const masterPasswordHint = hint.input;\n            const kdfConfig = yield this.kdfConfigService.getKdfConfig();\n            // Create new key and hash new password\n            const newMasterKey = yield this.keyService.makeMasterKey(masterPassword, this.email.trim().toLowerCase(), kdfConfig);\n            const newPasswordHash = yield this.keyService.hashMasterKey(masterPassword, newMasterKey);\n            // Grab user key\n            const userKey = yield this.keyService.getUserKey();\n            if (!userKey) {\n                throw new Error(\"User key not found.\");\n            }\n            // Re-encrypt user key with new master key\n            const newUserKey = yield this.keyService.encryptUserKeyWithMasterKey(newMasterKey, userKey);\n            return { newPasswordHash, newUserKey: newUserKey, hint: masterPasswordHint };\n        });\n    }\n    handleCaptchaRequired(twoFactorRequest_1) {\n        return __awaiter(this, arguments, void 0, function* (twoFactorRequest, credentials = null) {\n            const badCaptcha = _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.badRequest(\"Your authentication request has been flagged and will require user interaction to proceed.\\n\" +\n                \"Please use your API key to validate this request and ensure BW_CLIENTSECRET is correct, if set.\\n\" +\n                \"(https://bitwarden.com/help/cli-auth-challenges)\");\n            try {\n                const captchaClientSecret = yield this.apiClientSecret(true);\n                if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_11__.Utils.isNullOrWhitespace(captchaClientSecret)) {\n                    return badCaptcha;\n                }\n                let authResultResponse = null;\n                if (credentials != null) {\n                    credentials.captchaToken = captchaClientSecret;\n                    credentials.twoFactor = twoFactorRequest;\n                    authResultResponse = yield this.loginStrategyService.logIn(credentials);\n                }\n                else {\n                    authResultResponse = yield this.loginStrategyService.logInTwoFactor(twoFactorRequest, captchaClientSecret);\n                }\n                return authResultResponse;\n            }\n            catch (e) {\n                if (e instanceof _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_10__.ErrorResponse ||\n                    (e.constructor.name === _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_10__.ErrorResponse.name &&\n                        e.message.includes(\"Captcha is invalid\"))) {\n                    return badCaptcha;\n                }\n                else {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_13__.Response.error(e);\n                }\n            }\n        });\n    }\n    apiClientId() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let clientId = null;\n            const storedClientId = process.env.BW_CLIENTID;\n            if (storedClientId == null) {\n                if (this.canInteract) {\n                    const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({\n                        output: process.stderr,\n                    })({\n                        type: \"input\",\n                        name: \"clientId\",\n                        message: \"client_id:\",\n                    });\n                    clientId = answer.clientId;\n                }\n                else {\n                    clientId = null;\n                }\n            }\n            else {\n                clientId = storedClientId;\n            }\n            return clientId;\n        });\n    }\n    apiClientSecret() {\n        return __awaiter(this, arguments, void 0, function* (isAdditionalAuthentication = false) {\n            const additionalAuthenticationMessage = \"Additional authentication required.\\nAPI key \";\n            let clientSecret = null;\n            const storedClientSecret = this.clientSecret || process.env.BW_CLIENTSECRET;\n            if (storedClientSecret == null) {\n                if (this.canInteract) {\n                    const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_1__.createPromptModule({\n                        output: process.stderr,\n                    })({\n                        type: \"input\",\n                        name: \"clientSecret\",\n                        message: (isAdditionalAuthentication ? additionalAuthenticationMessage : \"\") + \"client_secret:\",\n                    });\n                    clientSecret = answer.clientSecret;\n                }\n                else {\n                    clientSecret = null;\n                }\n            }\n            else {\n                clientSecret = storedClientSecret;\n            }\n            return clientSecret;\n        });\n    }\n    apiIdentifiers() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return {\n                clientId: yield this.apiClientId(),\n                clientSecret: yield this.apiClientSecret(),\n            };\n        });\n    }\n    openSsoPrompt(codeChallenge, state) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.environmentService.environment$);\n            return new Promise((resolve, reject) => {\n                const callbackServer = http__WEBPACK_IMPORTED_MODULE_0__.createServer((req, res) => {\n                    const urlString = \"http://localhost\" + req.url;\n                    const url = new URL(urlString);\n                    const code = url.searchParams.get(\"code\");\n                    const receivedState = url.searchParams.get(\"state\");\n                    const orgIdentifier = this.getOrgIdentifierFromState(receivedState);\n                    res.setHeader(\"Content-Type\", \"text/html\");\n                    if (code != null && receivedState != null && this.checkState(receivedState, state)) {\n                        res.writeHead(200);\n                        res.end(\"<html><head><title>Success | Bitwarden CLI</title></head><body>\" +\n                            \"<h1>Successfully authenticated with the Bitwarden CLI</h1>\" +\n                            \"<p>You may now close this tab and return to the terminal.</p>\" +\n                            \"</body></html>\");\n                        callbackServer.close(() => resolve({\n                            ssoCode: code,\n                            orgIdentifier: orgIdentifier,\n                        }));\n                    }\n                    else {\n                        res.writeHead(400);\n                        res.end(\"<html><head><title>Failed | Bitwarden CLI</title></head><body>\" +\n                            \"<h1>Something went wrong logging into the Bitwarden CLI</h1>\" +\n                            \"<p>You may now close this tab and return to the terminal.</p>\" +\n                            \"</body></html>\");\n                        callbackServer.close(() => reject());\n                    }\n                });\n                let foundPort = false;\n                const webUrl = env.getWebVaultUrl();\n                for (let port = 8065; port <= 8070; port++) {\n                    try {\n                        this.ssoRedirectUri = \"http://localhost:\" + port;\n                        callbackServer.listen(port, () => {\n                            this.platformUtilsService.launchUri(webUrl +\n                                \"/#/sso?clientId=\" +\n                                \"cli\" +\n                                \"&redirectUri=\" +\n                                encodeURIComponent(this.ssoRedirectUri) +\n                                \"&state=\" +\n                                state +\n                                \"&codeChallenge=\" +\n                                codeChallenge);\n                        });\n                        foundPort = true;\n                        break;\n                    }\n                    catch (_a) {\n                        // Ignore error since we run the same command up to 5 times.\n                    }\n                }\n                if (!foundPort) {\n                    reject();\n                }\n            });\n        });\n    }\n    getOrgIdentifierFromState(state) {\n        if (state === null || state === undefined) {\n            return null;\n        }\n        const stateSplit = state.split(\"_identifier=\");\n        return stateSplit.length > 1 ? stateSplit[1] : null;\n    }\n    checkState(state, checkState) {\n        if (state === null || state === undefined) {\n            return false;\n        }\n        if (checkState === null || checkState === undefined) {\n            return false;\n        }\n        const stateSplit = state.split(\"_identifier=\");\n        const checkStateSplit = checkState.split(\"_identifier=\");\n        return stateSplit[0] === checkStateSplit[0];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 66744 characters]\n//# sourceURL=webpack-internal:///./src/auth/commands/login.command.ts\n");

/***/ }),

/***/ "./src/auth/commands/logout.command.ts":
/*!*********************************************!*\
  !*** ./src/auth/commands/logout.command.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LogoutCommand: () => (/* binding */ LogoutCommand)\n/* harmony export */ });\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass LogoutCommand {\n    constructor(authService, i18nService, logoutCallback) {\n        this.authService = authService;\n        this.i18nService = i18nService;\n        this.logoutCallback = logoutCallback;\n    }\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.logoutCallback();\n            this.authService.logOut(() => {\n                /* Do nothing */\n            });\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_1__.MessageResponse(\"You have logged out.\", null);\n            return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success(res);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXV0aC9jb21tYW5kcy9sb2dvdXQuY29tbWFuZC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFHaUQ7QUFDd0I7QUFFbEUsTUFBTSxhQUFhO0lBQ3hCLFlBQ1UsV0FBd0IsRUFDeEIsV0FBd0IsRUFDeEIsY0FBbUM7UUFGbkMsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsbUJBQWMsR0FBZCxjQUFjLENBQXFCO0lBQzFDLENBQUM7SUFFRSxHQUFHOztZQUNQLE1BQU0sSUFBSSxDQUFDLGNBQWMsRUFBRSxDQUFDO1lBQzVCLElBQUksQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRTtnQkFDM0IsZ0JBQWdCO1lBQ2xCLENBQUMsQ0FBQyxDQUFDO1lBQ0gsTUFBTSxHQUFHLEdBQUcsSUFBSSw4RUFBZSxDQUFDLHNCQUFzQixFQUFFLElBQUksQ0FBQyxD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yBNZXNzYWdlUmVzcG9uc2UoXCJZb3UgaGF2ZSBsb2dnZWQgb3V0LlwiLCBudWxsKTtcbiAgICByZXR1cm4gUmVzcG9uc2Uuc3VjY2VzcyhyZXMpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/auth/commands/logout.command.ts\n");

/***/ }),

/***/ "./src/auth/commands/unlock.command.ts":
/*!*********************************************!*\
  !*** ./src/auth/commands/unlock.command.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UnlockCommand: () => (/* binding */ UnlockCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_enums_verification_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/enums/verification-type */ \"../../libs/common/src/auth/enums/verification-type.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _commands_convert_to_key_connector_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../commands/convert-to-key-connector.command */ \"./src/commands/convert-to-key-connector.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\nclass UnlockCommand {\n    constructor(accountService, masterPasswordService, keyService, userVerificationService, cryptoFunctionService, logService, keyConnectorService, environmentService, syncService, organizationApiService, logout) {\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.keyService = keyService;\n        this.userVerificationService = userVerificationService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.logService = logService;\n        this.keyConnectorService = keyConnectorService;\n        this.environmentService = environmentService;\n        this.syncService = syncService;\n        this.organizationApiService = organizationApiService;\n        this.logout = logout;\n    }\n    run(password, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const normalizedOptions = new Options(cmdOptions);\n            const passwordResult = yield _utils__WEBPACK_IMPORTED_MODULE_6__.CliUtils.getPassword(password, normalizedOptions, this.logService);\n            if (passwordResult instanceof _models_response__WEBPACK_IMPORTED_MODULE_4__.Response) {\n                return passwordResult;\n            }\n            else {\n                password = passwordResult;\n            }\n            yield this.setNewSessionKey();\n            const [userId, email] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => [a === null || a === void 0 ? void 0 : a.id, a === null || a === void 0 ? void 0 : a.email])));\n            const verification = {\n                type: _bitwarden_common_auth_enums_verification_type__WEBPACK_IMPORTED_MODULE_1__.VerificationType.MasterPassword,\n                secret: password,\n            };\n            let masterKey;\n            try {\n                const response = yield this.userVerificationService.verifyUserByMasterPassword(verification, userId, email);\n                masterKey = response.masterKey;\n            }\n            catch (e) {\n                // verification failure throws\n                return _models_response__WEBPACK_IMPORTED_MODULE_4__.Response.error(e.message);\n            }\n            const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);\n            yield this.keyService.setUserKey(userKey, userId);\n            if (yield this.keyConnectorService.getConvertAccountRequired()) {\n                const convertToKeyConnectorCommand = new _commands_convert_to_key_connector_command__WEBPACK_IMPORTED_MODULE_3__.ConvertToKeyConnectorCommand(userId, this.keyConnectorService, this.environmentService, this.syncService, this.organizationApiService, this.logout);\n                const convertResponse = yield convertToKeyConnectorCommand.run();\n                if (!convertResponse.success) {\n                    return convertResponse;\n                }\n            }\n            return this.successResponse();\n        });\n    }\n    setNewSessionKey() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const key = yield this.cryptoFunctionService.randomBytes(64);\n            process.env.BW_SESSION = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.fromBufferToB64(key);\n        });\n    }\n    successResponse() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_5__.MessageResponse(\"Your vault is now unlocked!\", \"\\n\" +\n                \"To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:\\n\" +\n                '$ export BW_SESSION=\"' +\n                process.env.BW_SESSION +\n                '\"\\n' +\n                '> $env:BW_SESSION=\"' +\n                process.env.BW_SESSION +\n                '\"\\n\\n' +\n                \"You can also pass the session key to any command with the `--session` option. ex:\\n\" +\n                \"$ bw list items --session \" +\n                process.env.BW_SESSION);\n            res.raw = process.env.BW_SESSION;\n            return _models_response__WEBPACK_IMPORTED_MODULE_4__.Response.success(res);\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.passwordEnv = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.passwordenv) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.passwordEnv);\n        this.passwordFile = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.passwordfile) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.passwordFile);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11096 characters]\n//# sourceURL=webpack-internal:///./src/auth/commands/unlock.command.ts\n");

/***/ }),

/***/ "./src/base-program.ts":
/*!*****************************!*\
  !*** ./src/base-program.ts ***!
  \*****************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BaseProgram: () => (/* binding */ BaseProgram)\n/* harmony export */ });\n/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! chalk */ \"chalk\");\n/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _auth_commands_unlock_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./auth/commands/unlock.command */ \"./src/auth/commands/unlock.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nconst writeLn = _utils__WEBPACK_IMPORTED_MODULE_5__.CliUtils.writeLn;\nclass BaseProgram {\n    constructor(serviceContainer) {\n        this.serviceContainer = serviceContainer;\n    }\n    processResponse(response, exitImmediately = false) {\n        if (!response.success) {\n            if (process.env.BW_QUIET !== \"true\") {\n                if (process.env.BW_RESPONSE === \"true\") {\n                    writeLn(this.getJson(response), true, false);\n                }\n                else {\n                    writeLn(chalk__WEBPACK_IMPORTED_MODULE_0__.redBright(response.message), true, true);\n                }\n            }\n            const exitCode = process.env.BW_CLEANEXIT ? 0 : 1;\n            if (exitImmediately) {\n                process.exit(exitCode);\n            }\n            else {\n                process.exitCode = exitCode;\n            }\n            return;\n        }\n        if (process.env.BW_RESPONSE === \"true\") {\n            writeLn(this.getJson(response), true, false);\n        }\n        else if (response.data != null) {\n            let out = null;\n            if (response.data.object === \"template\") {\n                out = this.getJson(response.data.template);\n            }\n            if (out == null) {\n                if (response.data.object === \"string\") {\n                    const data = response.data.data;\n                    if (data != null) {\n                        out = data;\n                    }\n                }\n                else if (response.data.object === \"list\") {\n                    out = this.getJson(response.data.data);\n                }\n                else if (response.data.object === \"message\") {\n                    out = this.getMessage(response);\n                }\n                else {\n                    out = this.getJson(response.data);\n                }\n            }\n            if (out != null && process.env.BW_QUIET !== \"true\") {\n                writeLn(out, true, false);\n            }\n        }\n        if (exitImmediately) {\n            process.exit(0);\n        }\n        else {\n            process.exitCode = 0;\n        }\n    }\n    getJson(obj) {\n        if (process.env.BW_PRETTY === \"true\") {\n            return JSON.stringify(obj, null, \"  \");\n        }\n        else {\n            return JSON.stringify(obj);\n        }\n    }\n    getMessage(response) {\n        const message = response.data;\n        if (process.env.BW_RAW === \"true\") {\n            return message.raw;\n        }\n        let out = \"\";\n        if (message.title != null) {\n            if (message.noColor) {\n                out = message.title;\n            }\n            else {\n                out = chalk__WEBPACK_IMPORTED_MODULE_0__.greenBright(message.title);\n            }\n        }\n        if (message.message != null) {\n            if (message.title != null) {\n                out += \"\\n\";\n            }\n            out += message.message;\n        }\n        return out.trim() === \"\" ? null : out;\n    }\n    exitIfAuthed() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authed = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.serviceContainer.authService.activeAccountStatus$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((status) => status > _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.LoggedOut)));\n            if (authed) {\n                const email = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.serviceContainer.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((a) => a === null || a === void 0 ? void 0 : a.email)));\n                this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_4__.Response.error(\"You are already logged in as \" + email + \".\"), true);\n            }\n        });\n    }\n    /**\n     * Exist if no user is authenticated\n     * @returns the userId of the active account\n     */\n    exitIfNotAuthed() {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const fail = () => this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_4__.Response.error(\"You are not logged in.\"), true);\n            const userId = (_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.serviceContainer.accountService.activeAccount$))) === null || _a === void 0 ? void 0 : _a.id;\n            if (!userId) {\n                fail();\n            }\n            const authed = yield this.serviceContainer.stateService.getIsAuthenticated({ userId });\n            if (!authed) {\n                fail();\n            }\n            return userId;\n        });\n    }\n    exitIfLocked() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield this.exitIfNotAuthed();\n            // If the process.env does not have a BW_SESSION key, then we will never be able to retrieve\n            // the auto user key from secure storage. This is because the auto user key is encrypted with\n            // the session key.\n            const hasUserKey = yield this.serviceContainer.userAutoUnlockKeyService.setUserKeyInMemoryIfAutoUserKeySet(userId);\n            if (hasUserKey) {\n                // User is unlocked\n                return;\n            }\n            // User is locked\n            yield this.handleLockedUser(userId);\n        });\n    }\n    handleLockedUser(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (process.env.BW_NOINTERACTION === \"true\") {\n                this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_4__.Response.error(\"Vault is locked.\"), true);\n                return;\n            }\n            // must unlock with interaction allowed\n            if (yield this.serviceContainer.keyConnectorService.getUsesKeyConnector(userId)) {\n                const response = _models_response__WEBPACK_IMPORTED_MODULE_4__.Response.error(\"Your vault is locked. You must unlock your vault using your session key.\\n\" +\n                    \"If you do not have your session key, you can get a new one by logging out and logging in again.\");\n                this.processResponse(response, true);\n            }\n            else {\n                const command = new _auth_commands_unlock_command__WEBPACK_IMPORTED_MODULE_3__.UnlockCommand(this.serviceContainer.accountService, this.serviceContainer.masterPasswordService, this.serviceContainer.keyService, this.serviceContainer.userVerificationService, this.serviceContainer.cryptoFunctionService, this.serviceContainer.logService, this.serviceContainer.keyConnectorService, this.serviceContainer.environmentService, this.serviceContainer.syncService, this.serviceContainer.organizationApiService, this.serviceContainer.logout);\n                const response = yield command.run(null, null);\n                if (!response.success) {\n                    this.processResponse(response, true);\n                }\n            }\n        });\n    }\n    exitIfFeatureFlagDisabled(featureFlag) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const enabled = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.serviceContainer.configService.getFeatureFlag$(featureFlag));\n            if (!enabled) {\n                this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_4__.Response.error(\"This command is temporarily unavailable.\"), true);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16740 characters]\n//# sourceURL=webpack-internal:///./src/base-program.ts\n");

/***/ }),

/***/ "./src/commands/completion.command.ts":
/*!********************************************!*\
  !*** ./src/commands/completion.command.ts ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CompletionCommand: () => (/* binding */ CompletionCommand)\n/* harmony export */ });\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nconst validShells = [\"zsh\"];\nclass CompletionCommand {\n    run(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const shell = options.shell;\n            if (!shell) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`shell` option was not provided.\");\n            }\n            if (!validShells.includes(shell)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"Unsupported shell.\");\n            }\n            let content = \"\";\n            if (shell === \"zsh\") {\n                content = this.zshCompletion(\"bw\", commander__WEBPACK_IMPORTED_MODULE_0__.program).render();\n            }\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(content, null);\n            return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n        });\n    }\n    zshCompletion(rootName, rootCommand) {\n        return {\n            render: () => {\n                return [\n                    `#compdef _${rootName} ${rootName}`,\n                    \"\",\n                    this.renderCommandBlock(rootName, rootCommand),\n                ].join(\"\\n\");\n            },\n        };\n    }\n    renderCommandBlock(name, command) {\n        const { commands = [], options = [] } = command;\n        const hasOptions = options.length > 0;\n        const hasCommands = commands.length > 0;\n        const args = options\n            .map(({ long, short, description }) => {\n            const aliases = [short, long].filter(Boolean);\n            const opts = aliases.join(\",\");\n            const desc = `[${description.replace(`'`, `'\"'\"'`)}]`;\n            return aliases.length > 1\n                ? `'(${aliases.join(\" \")})'{${opts}}'${desc}'`\n                : `'${opts}${desc}'`;\n        })\n            .concat(`'(-h --help)'{-h,--help}'[output usage information]'`, hasCommands ? '\"1: :->cmnds\"' : null, '\"*::arg:->args\"')\n            .filter(Boolean);\n        const commandBlockFunctionParts = [];\n        if (hasCommands) {\n            commandBlockFunctionParts.push(\"local -a commands\");\n        }\n        if (hasOptions) {\n            commandBlockFunctionParts.push(`_arguments -C \\\\\\n    ${args.join(` \\\\\\n    `)}`);\n        }\n        if (hasCommands) {\n            commandBlockFunctionParts.push(`case $state in\n    cmnds)\n      commands=(\n        ${commands\n                .map((command) => `\"${command.name().split(\" \")[0]}:${command.description()}\"`)\n                .join(\"\\n        \")}\n      )\n      _describe \"command\" commands\n      ;;\\n  esac\n\n  case \"$words[1]\" in\n    ${commands\n                .map((command) => {\n                const commandName = command.name().split(\" \")[0];\n                return [`${commandName})`, `_${name}_${commandName}`, \";;\"].join(\"\\n      \");\n            })\n                .join(\"\\n    \")}\\n  esac`);\n        }\n        const commandBlocParts = [\n            `function _${name} {\\n  ${commandBlockFunctionParts.join(\"\\n\\n  \")}\\n}`,\n        ];\n        if (hasCommands) {\n            commandBlocParts.push(commands.map((c) => this.renderCommandBlock(`${name}_${c.name()}`, c)).join(\"\\n\\n\"));\n        }\n        return commandBlocParts.join(\"\\n\\n\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8236 characters]\n//# sourceURL=webpack-internal:///./src/commands/completion.command.ts\n");

/***/ }),

/***/ "./src/commands/convert-to-key-connector.command.ts":
/*!**********************************************************!*\
  !*** ./src/commands/convert-to-key-connector.command.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConvertToKeyConnectorCommand: () => (/* binding */ ConvertToKeyConnectorCommand)\n/* harmony export */ });\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inquirer */ \"inquirer\");\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inquirer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_platform_abstractions_environment_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/abstractions/environment.service */ \"../../libs/common/src/platform/abstractions/environment.service.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass ConvertToKeyConnectorCommand {\n    constructor(userId, keyConnectorService, environmentService, syncService, organizationApiService, logout) {\n        this.userId = userId;\n        this.keyConnectorService = keyConnectorService;\n        this.environmentService = environmentService;\n        this.syncService = syncService;\n        this.organizationApiService = organizationApiService;\n        this.logout = logout;\n    }\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If no interaction available, alert user to use web vault\n            const canInteract = process.env.BW_NOINTERACTION !== \"true\";\n            if (!canInteract) {\n                yield this.logout();\n                return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.error(new _models_response_message_response__WEBPACK_IMPORTED_MODULE_4__.MessageResponse(\"An organization you are a member of is using Key Connector. \" +\n                    \"In order to access the vault, you must opt-in to Key Connector now via the web vault. You have been logged out.\", null));\n            }\n            const organization = yield this.keyConnectorService.getManagingOrganization();\n            const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_0__.createPromptModule({ output: process.stderr })({\n                type: \"list\",\n                name: \"convert\",\n                message: organization.name +\n                    \" is using a self-hosted key server. A master password is no longer required to log in for members of this organization. \",\n                choices: [\n                    {\n                        name: \"Remove master password and unlock\",\n                        value: \"remove\",\n                    },\n                    {\n                        name: \"Leave organization and unlock\",\n                        value: \"leave\",\n                    },\n                    {\n                        name: \"Log out\",\n                        value: \"exit\",\n                    },\n                ],\n            });\n            if (answer.convert === \"remove\") {\n                try {\n                    yield this.keyConnectorService.migrateUser();\n                }\n                catch (e) {\n                    yield this.logout();\n                    throw e;\n                }\n                yield this.keyConnectorService.removeConvertAccountRequired();\n                yield this.keyConnectorService.setUsesKeyConnector(true, this.userId);\n                // Update environment URL - required for api key login\n                const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.environmentService.environment$);\n                const urls = env.getUrls();\n                urls.keyConnector = organization.keyConnectorUrl;\n                yield this.environmentService.setEnvironment(_bitwarden_common_platform_abstractions_environment_service__WEBPACK_IMPORTED_MODULE_2__.Region.SelfHosted, urls);\n                return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.success();\n            }\n            else if (answer.convert === \"leave\") {\n                yield this.organizationApiService.leave(organization.id);\n                yield this.keyConnectorService.removeConvertAccountRequired();\n                return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.success();\n            }\n            else {\n                yield this.logout();\n                return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.error(\"You have been logged out.\");\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7592 characters]\n//# sourceURL=webpack-internal:///./src/commands/convert-to-key-connector.command.ts\n");

/***/ }),

/***/ "./src/commands/download.command.ts":
/*!******************************************!*\
  !*** ./src/commands/download.command.ts ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DownloadCommand: () => (/* binding */ DownloadCommand)\n/* harmony export */ });\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node-fetch */ \"node-fetch\");\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fetch__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-array-buffer */ \"../../libs/common/src/platform/models/domain/enc-array-buffer.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_file_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/response/file.response */ \"./src/models/response/file.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass DownloadCommand {\n    constructor(encryptService) {\n        this.encryptService = encryptService;\n    }\n    saveAttachmentToFile(url, key, fileName, output) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield node_fetch__WEBPACK_IMPORTED_MODULE_0___default()(new node_fetch__WEBPACK_IMPORTED_MODULE_0__.Request(url, { headers: { cache: \"no-cache\" } }));\n            if (response.status !== 200) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"A \" + response.status + \" error occurred while downloading the attachment.\");\n            }\n            try {\n                const encBuf = yield _bitwarden_common_platform_models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_1__.EncArrayBuffer.fromResponse(response);\n                const decBuf = yield this.encryptService.decryptToBytes(encBuf, key);\n                if (process.env.BW_SERVE === \"true\") {\n                    const res = new _models_response_file_response__WEBPACK_IMPORTED_MODULE_3__.FileResponse(Buffer.from(decBuf), fileName);\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success(res);\n                }\n                else {\n                    return yield _utils__WEBPACK_IMPORTED_MODULE_4__.CliUtils.saveResultToFile(Buffer.from(decBuf), output, fileName);\n                }\n            }\n            catch (e) {\n                if (typeof e === \"string\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n                }\n                else {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"An error occurred while saving the attachment.\");\n                }\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tbWFuZHMvZG93bmxvYWQuY29tbWFuZC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQWtDO0FBR3lEO0FBRzdDO0FBQ2tCO0FBQzVCO0FBRTdCLE1BQWUsZUFBZTtJQUNuQyxZQUFzQixjQUE4QjtRQUE5QixtQkFBYyxHQUFkLGNBQWMsQ0FBZ0I7SUFBRyxDQUFDO0lBRXhDLG9CQUFvQixDQUNsQyxHQUFXLEVBQ1gsR0FBdUIsRUFDdkIsUUFBZ0IsRUFDaEIsTUFBZTs7WUFFZixNQUFNLFFBQVEsR0FBRyxNQUFNLGlEQUFXLENBQUMsSUFBSSwrQ0FBVyxDQUFDLEdBQUcsRUFBRSxFQUFFLE9BQU8sRUFBRSxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsRUFBRSxDQUFDLENBQU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TmFtZSk7XG4gICAgICB9XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgaWYgKHR5cGVvZiBlID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgIHJldHVybiBSZXNwb25zZS5lcnJvcihlKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBSZXNwb25zZS5lcnJvcihcIkFuIGVycm9yIG9jY3VycmVkIHdoaWxlIHNhdmluZyB0aGUgYXR0YWNobWVudC5cIik7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/commands/download.command.ts\n");

/***/ }),

/***/ "./src/commands/edit.command.ts":
/*!**************************************!*\
  !*** ./src/commands/edit.command.ts ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EditCommand: () => (/* binding */ EditCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/request/selection-read-only.request */ \"../../libs/common/src/admin-console/models/request/selection-read-only.request.ts\");\n/* harmony import */ var _bitwarden_common_models_export_cipher_export__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/models/export/cipher.export */ \"../../libs/common/src/models/export/cipher.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/models/export/collection.export */ \"../../libs/common/src/models/export/collection.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_folder_export__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/models/export/folder.export */ \"../../libs/common/src/models/export/folder.export.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _admin_console_models_response_organization_collection_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../admin-console/models/response/organization-collection.response */ \"./src/admin-console/models/response/organization-collection.response.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\n/* harmony import */ var _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../vault/models/cipher.response */ \"./src/vault/models/cipher.response.ts\");\n/* harmony import */ var _vault_models_folder_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../vault/models/folder.response */ \"./src/vault/models/folder.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\nclass EditCommand {\n    constructor(cipherService, folderService, keyService, encryptService, apiService, folderApiService, accountService) {\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.apiService = apiService;\n        this.folderApiService = folderApiService;\n        this.accountService = accountService;\n    }\n    run(object, id, requestJson, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (process.env.BW_SERVE !== \"true\" && (requestJson == null || requestJson === \"\")) {\n                requestJson = yield _utils__WEBPACK_IMPORTED_MODULE_9__.CliUtils.readStdin();\n            }\n            if (requestJson == null || requestJson === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"`requestJson` was not provided.\");\n            }\n            let req = null;\n            if (typeof requestJson !== \"string\") {\n                req = requestJson;\n            }\n            else {\n                try {\n                    const reqJson = Buffer.from(requestJson, \"base64\").toString();\n                    req = JSON.parse(reqJson);\n                }\n                catch (e) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"Error parsing the encoded request data.\");\n                }\n            }\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            switch (object.toLowerCase()) {\n                case \"item\":\n                    return yield this.editCipher(id, req);\n                case \"item-collections\":\n                    return yield this.editCipherCollections(id, req);\n                case \"folder\":\n                    return yield this.editFolder(id, req);\n                case \"org-collection\":\n                    return yield this.editOrganizationCollection(id, req, normalizedOptions);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    editCipher(id, req) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipher = yield this.cipherService.get(id);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.notFound();\n            }\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            let cipherView = yield cipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(cipher, activeUserId));\n            if (cipherView.isDeleted) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"You may not edit a deleted item. Use the restore command first.\");\n            }\n            cipherView = _bitwarden_common_models_export_cipher_export__WEBPACK_IMPORTED_MODULE_3__.CipherExport.toView(req, cipherView);\n            const encCipher = yield this.cipherService.encrypt(cipherView, activeUserId);\n            try {\n                const updatedCipher = yield this.cipherService.updateWithServer(encCipher);\n                const decCipher = yield updatedCipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(updatedCipher, activeUserId));\n                const res = new _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_10__.CipherResponse(decCipher);\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.error(e);\n            }\n        });\n    }\n    editCipherCollections(id, req) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipher = yield this.cipherService.get(id);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.notFound();\n            }\n            if (cipher.organizationId == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"Item does not belong to an organization. Consider moving it first.\");\n            }\n            cipher.collectionIds = req;\n            try {\n                const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n                const updatedCipher = yield this.cipherService.saveCollectionsWithServer(cipher);\n                const decCipher = yield updatedCipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(updatedCipher, activeUserId));\n                const res = new _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_10__.CipherResponse(decCipher);\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.error(e);\n            }\n        });\n    }\n    editFolder(id, req) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const folder = yield this.folderService.getFromState(id);\n            if (folder == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.notFound();\n            }\n            let folderView = yield folder.decrypt();\n            folderView = _bitwarden_common_models_export_folder_export__WEBPACK_IMPORTED_MODULE_5__.FolderExport.toView(req, folderView);\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            const userKey = yield this.keyService.getUserKeyWithLegacySupport(activeUserId.id);\n            const encFolder = yield this.folderService.encrypt(folderView, userKey);\n            try {\n                yield this.folderApiService.save(encFolder);\n                const updatedFolder = yield this.folderService.get(folder.id);\n                const decFolder = yield updatedFolder.decrypt();\n                const res = new _vault_models_folder_response__WEBPACK_IMPORTED_MODULE_11__.FolderResponse(decFolder);\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.error(e);\n            }\n        });\n    }\n    editOrganizationCollection(id, req, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"`organizationid` option is required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__.Utils.isGuid(id)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            if (options.organizationId !== req.organizationId) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"`organizationid` option does not match request object.\");\n            }\n            try {\n                const orgKey = yield this.keyService.getOrgKey(req.organizationId);\n                if (orgKey == null) {\n                    throw new Error(\"No encryption key for this organization.\");\n                }\n                const groups = req.groups == null\n                    ? null\n                    : req.groups.map((g) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_2__.SelectionReadOnlyRequest(g.id, g.readOnly, g.hidePasswords, g.manage));\n                const users = req.users == null\n                    ? null\n                    : req.users.map((u) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_2__.SelectionReadOnlyRequest(u.id, u.readOnly, u.hidePasswords, u.manage));\n                const request = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionRequest();\n                request.name = (yield this.encryptService.encrypt(req.name, orgKey)).encryptedString;\n                request.externalId = req.externalId;\n                request.groups = groups;\n                request.users = users;\n                const response = yield this.apiService.putCollection(req.organizationId, id, request);\n                const view = _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_4__.CollectionExport.toView(req);\n                view.id = response.id;\n                const res = new _admin_console_models_response_organization_collection_response__WEBPACK_IMPORTED_MODULE_7__.OrganizationCollectionResponse(view, groups, users);\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.error(e);\n            }\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.organizationId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationId);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20732 characters]\n//# sourceURL=webpack-internal:///./src/commands/edit.command.ts\n");

/***/ }),

/***/ "./src/commands/encode.command.ts":
/*!****************************************!*\
  !*** ./src/commands/encode.command.ts ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EncodeCommand: () => (/* binding */ EncodeCommand)\n/* harmony export */ });\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_string_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/response/string.response */ \"./src/models/response/string.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass EncodeCommand {\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (process.stdin.isTTY) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.badRequest(\"No stdin was piped in.\");\n            }\n            const input = yield _utils__WEBPACK_IMPORTED_MODULE_2__.CliUtils.readStdin();\n            const b64 = Buffer.from(input, \"utf8\").toString(\"base64\");\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_1__.StringResponse(b64);\n            return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success(res);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=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W5jb2RlQ29tbWFuZCB7XG4gIGFzeW5jIHJ1bigpOiBQcm9taXNlPFJlc3BvbnNlPiB7XG4gICAgaWYgKHByb2Nlc3Muc3RkaW4uaXNUVFkpIHtcbiAgICAgIHJldHVybiBSZXNwb25zZS5iYWRSZXF1ZXN0KFwiTm8gc3RkaW4gd2FzIHBpcGVkIGluLlwiKTtcbiAgICB9XG4gICAgY29uc3QgaW5wdXQgPSBhd2FpdCBDbGlVdGlscy5yZWFkU3RkaW4oKTtcbiAgICBjb25zdCBiNjQgPSBCdWZmZXIuZnJvbShpbnB1dCwgXCJ1dGY4XCIpLnRvU3RyaW5nKFwiYmFzZTY0XCIpO1xuICAgIGNvbnN0IHJlcyA9IG5ldyBTdHJpbmdSZXNwb25zZShiNjQpO1xuICAgIHJldHVybiBSZXNwb25zZS5zdWNjZXNzKHJlcyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/commands/encode.command.ts\n");

/***/ }),

/***/ "./src/commands/get.command.ts":
/*!*************************************!*\
  !*** ./src/commands/get.command.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GetCommand: () => (/* binding */ GetCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_models_export_card_export__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/models/export/card.export */ \"../../libs/common/src/models/export/card.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_cipher_export__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/models/export/cipher.export */ \"../../libs/common/src/models/export/cipher.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/models/export/collection.export */ \"../../libs/common/src/models/export/collection.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_field_export__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/models/export/field.export */ \"../../libs/common/src/models/export/field.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_folder_export__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/models/export/folder.export */ \"../../libs/common/src/models/export/folder.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_identity_export__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/models/export/identity.export */ \"../../libs/common/src/models/export/identity.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_login_uri_export__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitwarden/common/models/export/login-uri.export */ \"../../libs/common/src/models/export/login-uri.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_login_export__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitwarden/common/models/export/login.export */ \"../../libs/common/src/models/export/login.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_secure_note_export__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitwarden/common/models/export/secure-note.export */ \"../../libs/common/src/models/export/secure-note.export.ts\");\n/* harmony import */ var _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @bitwarden/common/models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _admin_console_models_request_organization_collection_request__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../admin-console/models/request/organization-collection.request */ \"./src/admin-console/models/request/organization-collection.request.ts\");\n/* harmony import */ var _admin_console_models_response_organization_collection_response__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../admin-console/models/response/organization-collection.response */ \"./src/admin-console/models/response/organization-collection.response.ts\");\n/* harmony import */ var _admin_console_models_response_organization_response__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../admin-console/models/response/organization.response */ \"./src/admin-console/models/response/organization.response.ts\");\n/* harmony import */ var _admin_console_models_selection_read_only__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../admin-console/models/selection-read-only */ \"./src/admin-console/models/selection-read-only.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../models/response/string.response */ \"./src/models/response/string.response.ts\");\n/* harmony import */ var _models_response_template_response__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../models/response/template.response */ \"./src/models/response/template.response.ts\");\n/* harmony import */ var _tools_send_models_send_response__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../tools/send/models/send.response */ \"./src/tools/send/models/send.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\n/* harmony import */ var _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../vault/models/cipher.response */ \"./src/vault/models/cipher.response.ts\");\n/* harmony import */ var _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../vault/models/collection.response */ \"./src/vault/models/collection.response.ts\");\n/* harmony import */ var _vault_models_folder_response__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../vault/models/folder.response */ \"./src/vault/models/folder.response.ts\");\n/* harmony import */ var _download_command__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./download.command */ \"./src/commands/download.command.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass GetCommand extends _download_command__WEBPACK_IMPORTED_MODULE_29__.DownloadCommand {\n    constructor(cipherService, folderService, collectionService, totpService, auditService, keyService, encryptService, stateService, searchService, apiService, organizationService, eventCollectionService, accountProfileService, accountService) {\n        super(encryptService);\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.collectionService = collectionService;\n        this.totpService = totpService;\n        this.auditService = auditService;\n        this.keyService = keyService;\n        this.stateService = stateService;\n        this.searchService = searchService;\n        this.apiService = apiService;\n        this.organizationService = organizationService;\n        this.eventCollectionService = eventCollectionService;\n        this.accountProfileService = accountProfileService;\n        this.accountService = accountService;\n    }\n    run(object, id, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            switch (object.toLowerCase()) {\n                case \"item\":\n                    return yield this.getCipher(id);\n                case \"username\":\n                    return yield this.getUsername(id);\n                case \"password\":\n                    return yield this.getPassword(id);\n                case \"uri\":\n                    return yield this.getUri(id);\n                case \"totp\":\n                    return yield this.getTotp(id);\n                case \"notes\":\n                    return yield this.getNotes(id);\n                case \"exposed\":\n                    return yield this.getExposed(id);\n                case \"attachment\":\n                    return yield this.getAttachment(id, normalizedOptions);\n                case \"folder\":\n                    return yield this.getFolder(id);\n                case \"collection\":\n                    return yield this.getCollection(id);\n                case \"org-collection\":\n                    return yield this.getOrganizationCollection(id, normalizedOptions);\n                case \"organization\":\n                    return yield this.getOrganization(id);\n                case \"template\":\n                    return yield this.getTemplate(id);\n                case \"fingerprint\":\n                    return yield this.getFingerprint(id);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    getCipherView(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decCipher = null;\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(id)) {\n                const cipher = yield this.cipherService.get(id);\n                const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n                if (cipher != null) {\n                    decCipher = yield cipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(cipher, activeUserId));\n                }\n            }\n            else if (id.trim() !== \"\") {\n                let ciphers = yield this.cipherService.getAllDecrypted();\n                ciphers = this.searchService.searchCiphersBasic(ciphers, id);\n                if (ciphers.length > 1) {\n                    return ciphers;\n                }\n                if (ciphers.length > 0) {\n                    decCipher = ciphers[0];\n                }\n            }\n            return decCipher;\n        });\n    }\n    getCipher(id, filter) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decCipher = yield this.getCipherView(id);\n            if (decCipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.notFound();\n            }\n            if (Array.isArray(decCipher)) {\n                if (filter != null) {\n                    decCipher = decCipher.filter(filter);\n                    if (decCipher.length === 1) {\n                        decCipher = decCipher[0];\n                    }\n                }\n                if (Array.isArray(decCipher)) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.multipleResults(decCipher.map((c) => c.id));\n                }\n            }\n            // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n            // eslint-disable-next-line @typescript-eslint/no-floating-promises\n            this.eventCollectionService.collect(_bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__.EventType.Cipher_ClientViewed, id, true, decCipher.organizationId);\n            const res = new _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_26__.CipherResponse(decCipher);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getUsername(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipherResponse = yield this.getCipher(id, (c) => c.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login && !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(c.login.username));\n            if (!cipherResponse.success) {\n                return cipherResponse;\n            }\n            const cipher = cipherResponse.data;\n            if (cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"Not a login.\");\n            }\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(cipher.login.username)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"No username available for this login.\");\n            }\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(cipher.login.username);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getPassword(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipherResponse = yield this.getCipher(id, (c) => c.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login && !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(c.login.password));\n            if (!cipherResponse.success) {\n                return cipherResponse;\n            }\n            const cipher = cipherResponse.data;\n            if (cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"Not a login.\");\n            }\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(cipher.login.password)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"No password available for this login.\");\n            }\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(cipher.login.password);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getUri(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipherResponse = yield this.getCipher(id, (c) => c.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login &&\n                c.login.uris != null &&\n                c.login.uris.length > 0 &&\n                c.login.uris[0].uri !== \"\");\n            if (!cipherResponse.success) {\n                return cipherResponse;\n            }\n            const cipher = cipherResponse.data;\n            if (cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"Not a login.\");\n            }\n            if (cipher.login.uris == null ||\n                cipher.login.uris.length === 0 ||\n                cipher.login.uris[0].uri === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"No uri available for this login.\");\n            }\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(cipher.login.uris[0].uri);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getTotp(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipherResponse = yield this.getCipher(id, (c) => c.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login && !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(c.login.totp));\n            if (!cipherResponse.success) {\n                return cipherResponse;\n            }\n            const cipher = cipherResponse.data;\n            if (cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_16__.CipherType.Login) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"Not a login.\");\n            }\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(cipher.login.totp)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"No TOTP available for this login.\");\n            }\n            const totp = yield this.totpService.getCode(cipher.login.totp);\n            if (totp == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"Couldn't generate TOTP code.\");\n            }\n            const canAccessPremium = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountProfileService.hasPremiumFromAnySource$);\n            if (!canAccessPremium) {\n                const originalCipher = yield this.cipherService.get(cipher.id);\n                if (originalCipher == null ||\n                    originalCipher.organizationId == null ||\n                    !originalCipher.organizationUseTotp) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"Premium status is required to use this feature.\");\n                }\n            }\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(totp);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getNotes(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipherResponse = yield this.getCipher(id, (c) => !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(c.notes));\n            if (!cipherResponse.success) {\n                return cipherResponse;\n            }\n            const cipher = cipherResponse.data;\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isNullOrWhitespace(cipher.notes)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"No notes available for this item.\");\n            }\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(cipher.notes);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getExposed(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const passwordResponse = yield this.getPassword(id);\n            if (!passwordResponse.success) {\n                return passwordResponse;\n            }\n            const exposedNumber = yield this.auditService.passwordLeaked(passwordResponse.data.data);\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(exposedNumber.toString());\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getAttachment(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.itemId == null || options.itemId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"--itemid <itemid> required.\");\n            }\n            const itemId = options.itemId.toLowerCase();\n            const cipherResponse = yield this.getCipher(itemId);\n            if (!cipherResponse.success) {\n                return cipherResponse;\n            }\n            const cipher = yield this.getCipherView(itemId);\n            if (cipher == null ||\n                Array.isArray(cipher) ||\n                cipher.attachments == null ||\n                cipher.attachments.length === 0) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"No attachments available for this item.\");\n            }\n            let attachments = cipher.attachments.filter((a) => a.id.toLowerCase() === id ||\n                (a.fileName != null && a.fileName.toLowerCase().indexOf(id) > -1));\n            if (attachments.length === 0) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"Attachment `\" + id + \"` was not found.\");\n            }\n            const exactMatches = attachments.filter((a) => a.fileName.toLowerCase() === id);\n            if (exactMatches.length === 1) {\n                attachments = exactMatches;\n            }\n            if (attachments.length > 1) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.multipleResults(attachments.map((a) => a.id));\n            }\n            const canAccessPremium = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountProfileService.hasPremiumFromAnySource$);\n            if (!canAccessPremium) {\n                const originalCipher = yield this.cipherService.get(cipher.id);\n                if (originalCipher == null || originalCipher.organizationId == null) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(\"Premium status is required to use this feature.\");\n                }\n            }\n            let url;\n            try {\n                const attachmentDownloadResponse = yield this.apiService.getAttachmentData(cipher.id, attachments[0].id);\n                url = attachmentDownloadResponse.url;\n            }\n            catch (e) {\n                if (e instanceof _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_12__.ErrorResponse && e.statusCode === 404) {\n                    url = attachments[0].url;\n                }\n                else if (e instanceof _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_12__.ErrorResponse) {\n                    throw new Error(e.getSingleMessage());\n                }\n                else {\n                    throw e;\n                }\n            }\n            const key = attachments[0].key != null\n                ? attachments[0].key\n                : yield this.keyService.getOrgKey(cipher.organizationId);\n            return yield this.saveAttachmentToFile(url, key, attachments[0].fileName, options.output);\n        });\n    }\n    getFolder(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decFolder = null;\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(id)) {\n                const folder = yield this.folderService.getFromState(id);\n                if (folder != null) {\n                    decFolder = yield folder.decrypt();\n                }\n            }\n            else if (id.trim() !== \"\") {\n                let folders = yield this.folderService.getAllDecryptedFromState();\n                folders = _utils__WEBPACK_IMPORTED_MODULE_25__.CliUtils.searchFolders(folders, id);\n                if (folders.length > 1) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.multipleResults(folders.map((f) => f.id));\n                }\n                if (folders.length > 0) {\n                    decFolder = folders[0];\n                }\n            }\n            if (decFolder == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.notFound();\n            }\n            const res = new _vault_models_folder_response__WEBPACK_IMPORTED_MODULE_28__.FolderResponse(decFolder);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getCollection(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decCollection = null;\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(id)) {\n                const collection = yield this.collectionService.get(id);\n                if (collection != null) {\n                    const orgKeys = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.keyService.activeUserOrgKeys$);\n                    decCollection = yield collection.decrypt(orgKeys[collection.organizationId]);\n                }\n            }\n            else if (id.trim() !== \"\") {\n                let collections = yield this.collectionService.getAllDecrypted();\n                collections = _utils__WEBPACK_IMPORTED_MODULE_25__.CliUtils.searchCollections(collections, id);\n                if (collections.length > 1) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.multipleResults(collections.map((c) => c.id));\n                }\n                if (collections.length > 0) {\n                    decCollection = collections[0];\n                }\n            }\n            if (decCollection == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.notFound();\n            }\n            const res = new _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_27__.CollectionResponse(decCollection);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getOrganizationCollection(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"`organizationid` option is required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(id)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            try {\n                const orgKey = yield this.keyService.getOrgKey(options.organizationId);\n                if (orgKey == null) {\n                    throw new Error(\"No encryption key for this organization.\");\n                }\n                const response = yield this.apiService.getCollectionAccessDetails(options.organizationId, id);\n                const decCollection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionView(response);\n                decCollection.name = yield this.encryptService.decryptToUtf8(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_14__.EncString(response.name), orgKey, `orgkey-${options.organizationId}`);\n                const groups = response.groups == null\n                    ? null\n                    : response.groups.map((g) => new _admin_console_models_selection_read_only__WEBPACK_IMPORTED_MODULE_20__.SelectionReadOnly(g.id, g.readOnly, g.hidePasswords, g.manage));\n                const users = response.users == null\n                    ? null\n                    : response.users.map((g) => new _admin_console_models_selection_read_only__WEBPACK_IMPORTED_MODULE_20__.SelectionReadOnly(g.id, g.readOnly, g.hidePasswords, g.manage));\n                const res = new _admin_console_models_response_organization_collection_response__WEBPACK_IMPORTED_MODULE_18__.OrganizationCollectionResponse(decCollection, groups, users);\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.error(e);\n            }\n        });\n    }\n    getOrganization(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let org = null;\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(id)) {\n                org = yield this.organizationService.getFromState(id);\n            }\n            else if (id.trim() !== \"\") {\n                let orgs = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.organizations$);\n                orgs = _utils__WEBPACK_IMPORTED_MODULE_25__.CliUtils.searchOrganizations(orgs, id);\n                if (orgs.length > 1) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.multipleResults(orgs.map((c) => c.id));\n                }\n                if (orgs.length > 0) {\n                    org = orgs[0];\n                }\n            }\n            if (org == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.notFound();\n            }\n            const res = new _admin_console_models_response_organization_response__WEBPACK_IMPORTED_MODULE_19__.OrganizationResponse(org);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getTemplate(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let template = null;\n            switch (id.toLowerCase()) {\n                case \"item\":\n                    template = _bitwarden_common_models_export_cipher_export__WEBPACK_IMPORTED_MODULE_4__.CipherExport.template();\n                    break;\n                case \"item.field\":\n                    template = _bitwarden_common_models_export_field_export__WEBPACK_IMPORTED_MODULE_6__.FieldExport.template();\n                    break;\n                case \"item.login\":\n                    template = _bitwarden_common_models_export_login_export__WEBPACK_IMPORTED_MODULE_10__.LoginExport.template();\n                    break;\n                case \"item.login.uri\":\n                    template = _bitwarden_common_models_export_login_uri_export__WEBPACK_IMPORTED_MODULE_9__.LoginUriExport.template();\n                    break;\n                case \"item.card\":\n                    template = _bitwarden_common_models_export_card_export__WEBPACK_IMPORTED_MODULE_3__.CardExport.template();\n                    break;\n                case \"item.identity\":\n                    template = _bitwarden_common_models_export_identity_export__WEBPACK_IMPORTED_MODULE_8__.IdentityExport.template();\n                    break;\n                case \"item.securenote\":\n                    template = _bitwarden_common_models_export_secure_note_export__WEBPACK_IMPORTED_MODULE_11__.SecureNoteExport.template();\n                    break;\n                case \"folder\":\n                    template = _bitwarden_common_models_export_folder_export__WEBPACK_IMPORTED_MODULE_7__.FolderExport.template();\n                    break;\n                case \"collection\":\n                    template = _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_5__.CollectionExport.template();\n                    break;\n                case \"item-collections\":\n                    template = [\"collection-id1\", \"collection-id2\"];\n                    break;\n                case \"org-collection\":\n                    template = _admin_console_models_request_organization_collection_request__WEBPACK_IMPORTED_MODULE_17__.OrganizationCollectionRequest.template();\n                    break;\n                case \"send.text\":\n                    template = _tools_send_models_send_response__WEBPACK_IMPORTED_MODULE_24__.SendResponse.template(_bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_15__.SendType.Text);\n                    break;\n                case \"send.file\":\n                    template = _tools_send_models_send_response__WEBPACK_IMPORTED_MODULE_24__.SendResponse.template(_bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_15__.SendType.File);\n                    break;\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.badRequest(\"Unknown template object.\");\n            }\n            const res = new _models_response_template_response__WEBPACK_IMPORTED_MODULE_23__.TemplateResponse(template);\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n    getFingerprint(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let fingerprint = null;\n            if (id === \"me\") {\n                const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n                const publicKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.keyService.userPublicKey$(activeUserId));\n                fingerprint = yield this.keyService.getFingerprint(activeUserId, publicKey);\n            }\n            else if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.isGuid(id)) {\n                try {\n                    const response = yield this.apiService.getUserPublicKey(id);\n                    const pubKey = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_13__.Utils.fromB64ToArray(response.publicKey);\n                    fingerprint = yield this.keyService.getFingerprint(id, pubKey);\n                }\n                catch (_a) {\n                    // eslint-disable-next-line\n                }\n            }\n            if (fingerprint == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.notFound();\n            }\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_22__.StringResponse(fingerprint.join(\"-\"));\n            return _models_response__WEBPACK_IMPORTED_MODULE_21__.Response.success(res);\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.organizationId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationId);\n        this.itemId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemId);\n        this.output = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.output;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 53112 characters]\n//# sourceURL=webpack-internal:///./src/commands/get.command.ts\n");

/***/ }),

/***/ "./src/commands/list.command.ts":
/*!**************************************!*\
  !*** ./src/commands/list.command.ts ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ListCommand: () => (/* binding */ ListCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _admin_console_models_response_organization_user_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../admin-console/models/response/organization-user.response */ \"./src/admin-console/models/response/organization-user.response.ts\");\n/* harmony import */ var _admin_console_models_response_organization_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../admin-console/models/response/organization.response */ \"./src/admin-console/models/response/organization.response.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/response/list.response */ \"./src/models/response/list.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\n/* harmony import */ var _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../vault/models/cipher.response */ \"./src/vault/models/cipher.response.ts\");\n/* harmony import */ var _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../vault/models/collection.response */ \"./src/vault/models/collection.response.ts\");\n/* harmony import */ var _vault_models_folder_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../vault/models/folder.response */ \"./src/vault/models/folder.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\nclass ListCommand {\n    constructor(cipherService, folderService, collectionService, organizationService, searchService, organizationUserApiService, apiService, eventCollectionService) {\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.collectionService = collectionService;\n        this.organizationService = organizationService;\n        this.searchService = searchService;\n        this.organizationUserApiService = organizationUserApiService;\n        this.apiService = apiService;\n        this.eventCollectionService = eventCollectionService;\n    }\n    run(object, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const normalizedOptions = new Options(cmdOptions);\n            switch (object.toLowerCase()) {\n                case \"items\":\n                    return yield this.listCiphers(normalizedOptions);\n                case \"folders\":\n                    return yield this.listFolders(normalizedOptions);\n                case \"collections\":\n                    return yield this.listCollections(normalizedOptions);\n                case \"org-collections\":\n                    return yield this.listOrganizationCollections(normalizedOptions);\n                case \"org-members\":\n                    return yield this.listOrganizationMembers(normalizedOptions);\n                case \"organizations\":\n                    return yield this.listOrganizations(normalizedOptions);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    listCiphers(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let ciphers;\n            options.trash = options.trash || false;\n            if (options.url != null && options.url.trim() !== \"\") {\n                ciphers = yield this.cipherService.getAllDecryptedForUrl(options.url);\n            }\n            else {\n                ciphers = yield this.cipherService.getAllDecrypted();\n            }\n            if (options.folderId != null ||\n                options.collectionId != null ||\n                options.organizationId != null) {\n                ciphers = ciphers.filter((c) => {\n                    if (options.trash !== c.isDeleted) {\n                        return false;\n                    }\n                    if (options.folderId != null) {\n                        if (options.folderId === \"notnull\" && c.folderId != null) {\n                            return true;\n                        }\n                        const folderId = options.folderId === \"null\" ? null : options.folderId;\n                        if (folderId === c.folderId) {\n                            return true;\n                        }\n                    }\n                    if (options.organizationId != null) {\n                        if (options.organizationId === \"notnull\" && c.organizationId != null) {\n                            return true;\n                        }\n                        const organizationId = options.organizationId === \"null\" ? null : options.organizationId;\n                        if (organizationId === c.organizationId) {\n                            return true;\n                        }\n                    }\n                    if (options.collectionId != null) {\n                        if (options.collectionId === \"notnull\" &&\n                            c.collectionIds != null &&\n                            c.collectionIds.length > 0) {\n                            return true;\n                        }\n                        const collectionId = options.collectionId === \"null\" ? null : options.collectionId;\n                        if (collectionId == null && (c.collectionIds == null || c.collectionIds.length === 0)) {\n                            return true;\n                        }\n                        if (collectionId != null &&\n                            c.collectionIds != null &&\n                            c.collectionIds.indexOf(collectionId) > -1) {\n                            return true;\n                        }\n                    }\n                    return false;\n                });\n            }\n            else if (options.search == null || options.search.trim() === \"\") {\n                ciphers = ciphers.filter((c) => options.trash === c.isDeleted);\n            }\n            if (options.search != null && options.search.trim() !== \"\") {\n                ciphers = this.searchService.searchCiphersBasic(ciphers, options.search, options.trash);\n            }\n            yield this.eventCollectionService.collectMany(_bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__.EventType.Cipher_ClientViewed, ciphers, true);\n            const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(ciphers.map((o) => new _vault_models_cipher_response__WEBPACK_IMPORTED_MODULE_9__.CipherResponse(o)));\n            return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n        });\n    }\n    listFolders(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let folders = yield this.folderService.getAllDecryptedFromState();\n            if (options.search != null && options.search.trim() !== \"\") {\n                folders = _utils__WEBPACK_IMPORTED_MODULE_8__.CliUtils.searchFolders(folders, options.search);\n            }\n            const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(folders.map((o) => new _vault_models_folder_response__WEBPACK_IMPORTED_MODULE_11__.FolderResponse(o)));\n            return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n        });\n    }\n    listCollections(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let collections = yield this.collectionService.getAllDecrypted();\n            if (options.organizationId != null) {\n                collections = collections.filter((c) => {\n                    if (options.organizationId === c.organizationId) {\n                        return true;\n                    }\n                    return false;\n                });\n            }\n            if (options.search != null && options.search.trim() !== \"\") {\n                collections = _utils__WEBPACK_IMPORTED_MODULE_8__.CliUtils.searchCollections(collections, options.search);\n            }\n            const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(collections.map((o) => new _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_10__.CollectionResponse(o)));\n            return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n        });\n    }\n    listOrganizationCollections(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.badRequest(\"`organizationid` option is required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            const organization = yield this.organizationService.getFromState(options.organizationId);\n            if (organization == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.error(\"Organization not found.\");\n            }\n            try {\n                let response;\n                if (organization.canViewAllCollections) {\n                    response = yield this.apiService.getCollections(options.organizationId);\n                }\n                else {\n                    response = yield this.apiService.getUserCollections();\n                }\n                const collections = response.data\n                    .filter((c) => c.organizationId === options.organizationId)\n                    .map((r) => new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.Collection(new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionData(r)));\n                let decCollections = yield this.collectionService.decryptMany(collections);\n                if (options.search != null && options.search.trim() !== \"\") {\n                    decCollections = _utils__WEBPACK_IMPORTED_MODULE_8__.CliUtils.searchCollections(decCollections, options.search);\n                }\n                const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(decCollections.map((o) => new _vault_models_collection_response__WEBPACK_IMPORTED_MODULE_10__.CollectionResponse(o)));\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.error(e);\n            }\n        });\n    }\n    listOrganizationMembers(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.badRequest(\"`organizationid` option is required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            const organization = yield this.organizationService.getFromState(options.organizationId);\n            if (organization == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.error(\"Organization not found.\");\n            }\n            try {\n                const response = yield this.organizationUserApiService.getAllUsers(options.organizationId);\n                const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(response.data.map((r) => {\n                    const u = new _admin_console_models_response_organization_user_response__WEBPACK_IMPORTED_MODULE_4__.OrganizationUserResponse();\n                    u.email = r.email;\n                    u.name = r.name;\n                    u.id = r.id;\n                    u.status = r.status;\n                    u.type = r.type;\n                    u.twoFactorEnabled = r.twoFactorEnabled;\n                    return u;\n                }));\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.error(e);\n            }\n        });\n    }\n    listOrganizations(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let organizations = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.memberOrganizations$);\n            if (options.search != null && options.search.trim() !== \"\") {\n                organizations = _utils__WEBPACK_IMPORTED_MODULE_8__.CliUtils.searchOrganizations(organizations, options.search);\n            }\n            const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(organizations.map((o) => new _admin_console_models_response_organization_response__WEBPACK_IMPORTED_MODULE_5__.OrganizationResponse(o)));\n            return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.organizationId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationId);\n        this.collectionId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.collectionid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.collectionId);\n        this.folderId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.folderid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.folderId);\n        this.search = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.search;\n        this.url = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.url;\n        this.trash = _utils__WEBPACK_IMPORTED_MODULE_8__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.trash);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 25696 characters]\n//# sourceURL=webpack-internal:///./src/commands/list.command.ts\n");

/***/ }),

/***/ "./src/commands/restore.command.ts":
/*!*****************************************!*\
  !*** ./src/commands/restore.command.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RestoreCommand: () => (/* binding */ RestoreCommand)\n/* harmony export */ });\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass RestoreCommand {\n    constructor(cipherService) {\n        this.cipherService = cipherService;\n    }\n    run(object, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            switch (object.toLowerCase()) {\n                case \"item\":\n                    return yield this.restoreCipher(id);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    restoreCipher(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipher = yield this.cipherService.get(id);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.notFound();\n            }\n            if (cipher.deletedDate == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.badRequest(\"Cipher is not in trash.\");\n            }\n            try {\n                yield this.cipherService.restoreWithServer(id);\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.error(e);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tbWFuZHMvcmVzdG9yZS5jb21tYW5kLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBRThDO0FBRXZDLE1BQU0sY0FBYztJQUN6QixZQUFvQixhQUE0QjtRQUE1QixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtJQUFHLENBQUM7SUFFOUMsR0FBRyxDQUFDLE1BQWMsRUFBRSxFQUFVOztZQUNsQyxJQUFJLEVBQUUsSUFBSSxJQUFJLEVBQUUsQ0FBQztnQkFDZixFQUFFLEdBQUcsRUFBRSxDQUFDLFdBQVcsRUFBRSxDQUFDO1lBQ3hCLENBQUM7WUFFRCxRQUFRLE1BQU0sQ0FBQyxXQUFXLEVBQUUsRUFBRSxDQUFDO2dCQUM3QixLQUFLLE1BQU07b0JBQ1QsT0FBTyxNQUFNLElBQUksQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLENBQUM7Z0JBQ3RDO29CQUNFLE9BQU8sc0RBQVEsQ0FBQyxVQUFVLENBQUMsaUJBQWlCLENBQUMsQ0FBQztZQUNsRCxDQUFDO1FBQ0gsQ0FBQztLQUFBO0lBRWEsYUFBYSxDQUFDLEVBQVU7O1lBQ3BDLE1BQU0sTUFBTSxHQUFHLE1BQU0sSUFBSSxDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUM7WUFDaEQsSUFBSSxNQUFNLElBQUksSUFBSSxFQUFFLENBQUM7Z0JBQ25CLE9BQU8sc0RBQVEsQ0FBQyxRQUFRLEVBQUUsQ0FBQztZQUM3QixDQUFDO1lBQ0QsSUFBSSxN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ICAgICAgY2FzZSBcIml0ZW1cIjpcbiAgICAgICAgcmV0dXJuIGF3YWl0IHRoaXMucmVzdG9yZUNpcGhlcihpZCk7XG4gICAgICBkZWZhdWx0OlxuICAgICAgICByZXR1cm4gUmVzcG9uc2UuYmFkUmVxdWVzdChcIlVua25vd24gb2JqZWN0LlwiKTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIGFzeW5jIHJlc3RvcmVDaXBoZXIoaWQ6IHN0cmluZykge1xuICAgIGNvbnN0IGNpcGhlciA9IGF3YWl0IHRoaXMuY2lwaGVyU2VydmljZS5nZXQoaWQpO1xuICAgIGlmIChjaXBoZXIgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIFJlc3BvbnNlLm5vdEZvdW5kKCk7XG4gICAgfVxuICAgIGlmIChjaXBoZXIuZGVsZXRlZERhdGUgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIFJlc3BvbnNlLmJhZFJlcXVlc3QoXCJDaXBoZXIgaXMgbm90IGluIHRyYXNoLlwiKTtcbiAgICB9XG5cbiAgICB0cnkge1xuICAgICAgYXdhaXQgdGhpcy5jaXBoZXJTZXJ2aWNlLnJlc3RvcmVXaXRoU2VydmVyKGlkKTtcbiAgICAgIHJldHVybiBSZXNwb25zZS5zdWNjZXNzKCk7XG4gICAgfSBjYXRjaCAoZSkge1xuICAgICAgcmV0dXJuIFJlc3BvbnNlLmVycm9yKGUpO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/commands/restore.command.ts\n");

/***/ }),

/***/ "./src/commands/serve.command.ts":
/*!***************************************!*\
  !*** ./src/commands/serve.command.ts ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ServeCommand: () => (/* binding */ ServeCommand)\n/* harmony export */ });\n/* harmony import */ var _koa_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @koa/router */ \"@koa/router\");\n/* harmony import */ var _koa_router__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_koa_router__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var koa__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! koa */ \"koa\");\n/* harmony import */ var koa__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(koa__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var koa_bodyparser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! koa-bodyparser */ \"koa-bodyparser\");\n/* harmony import */ var koa_bodyparser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(koa_bodyparser__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var koa_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! koa-json */ \"koa-json\");\n/* harmony import */ var koa_json__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(koa_json__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass ServeCommand {\n    constructor(serviceContainer, serveConfigurator) {\n        this.serviceContainer = serviceContainer;\n        this.serveConfigurator = serveConfigurator;\n    }\n    run(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const protectOrigin = !options.disableOriginProtection;\n            const port = options.port || 8087;\n            const hostname = options.hostname || \"localhost\";\n            this.serviceContainer.logService.info(`Starting server on ${hostname}:${port} with ${protectOrigin ? \"origin protection\" : \"no origin protection\"}`);\n            const server = new koa__WEBPACK_IMPORTED_MODULE_1__();\n            const router = new _koa_router__WEBPACK_IMPORTED_MODULE_0__();\n            process.env.BW_SERVE = \"true\";\n            process.env.BW_NOINTERACTION = \"true\";\n            server\n                .use((ctx, next) => __awaiter(this, void 0, void 0, function* () {\n                if (protectOrigin && ctx.headers.origin != undefined) {\n                    ctx.status = 403;\n                    this.serviceContainer.logService.warning(`Blocking request from \"${_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isNullOrEmpty(ctx.headers.origin)\n                        ? \"(Origin header value missing)\"\n                        : ctx.headers.origin}\"`);\n                    return;\n                }\n                yield next();\n            }))\n                .use(koa_bodyparser__WEBPACK_IMPORTED_MODULE_2__())\n                .use(koa_json__WEBPACK_IMPORTED_MODULE_3__({ pretty: false, param: \"pretty\" }));\n            this.serveConfigurator.configureRouter(router);\n            server\n                .use(router.routes())\n                .use(router.allowedMethods())\n                .listen(port, hostname === \"all\" ? null : hostname, () => {\n                this.serviceContainer.logService.info(\"Listening on \" + hostname + \":\" + port);\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5048 characters]\n//# sourceURL=webpack-internal:///./src/commands/serve.command.ts\n");

/***/ }),

/***/ "./src/commands/status.command.ts":
/*!****************************************!*\
  !*** ./src/commands/status.command.ts ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StatusCommand: () => (/* binding */ StatusCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_template_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/response/template.response */ \"./src/models/response/template.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass StatusCommand {\n    constructor(envService, syncService, accountService, authService) {\n        this.envService = envService;\n        this.syncService = syncService;\n        this.accountService = accountService;\n        this.authService = authService;\n    }\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const baseUrl = yield this.baseUrl();\n                const status = yield this.status();\n                const lastSync = yield this.syncService.getLastSync();\n                const [userId, email] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => [a === null || a === void 0 ? void 0 : a.id, a === null || a === void 0 ? void 0 : a.email])));\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success(new _models_response_template_response__WEBPACK_IMPORTED_MODULE_3__.TemplateResponse({\n                    serverUrl: baseUrl,\n                    lastSync: lastSync,\n                    userEmail: email,\n                    userId: userId,\n                    status: status,\n                }));\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n        });\n    }\n    baseUrl() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.envService.environment$);\n            return env.getUrls().base;\n        });\n    }\n    status() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authStatus = yield this.authService.getAuthStatus();\n            if (authStatus === _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.Unlocked) {\n                return \"unlocked\";\n            }\n            else if (authStatus === _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.Locked) {\n                return \"locked\";\n            }\n            else {\n                return \"unauthenticated\";\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4860 characters]\n//# sourceURL=webpack-internal:///./src/commands/status.command.ts\n");

/***/ }),

/***/ "./src/commands/update.command.ts":
/*!****************************************!*\
  !*** ./src/commands/update.command.ts ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UpdateCommand: () => (/* binding */ UpdateCommand)\n/* harmony export */ });\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node-fetch */ \"node-fetch\");\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fetch__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nconst CLIENTS_RELEASE_LIST_ENDPOINT = \"https://api.github.com/repos/bitwarden/clients/releases\";\nconst DEFAULT_DOWNLOAD_URL = \"https://github.com/bitwarden/clients/releases\";\nconst UPDATE_COMMAND = \"npm install -g @bitwarden/cli\";\nclass UpdateCommand {\n    constructor(platformUtilsService) {\n        this.platformUtilsService = platformUtilsService;\n        this.inPkg = false;\n        this.inPkg = !!process.pkg;\n    }\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield node_fetch__WEBPACK_IMPORTED_MODULE_0___default()(CLIENTS_RELEASE_LIST_ENDPOINT);\n            if (response.status !== 200) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"Error contacting update API: \" + response.status);\n            }\n            const responseJson = yield response.json();\n            const cliRelease = responseJson.find((r) => r.tag_name.includes(\"cli\"));\n            if (cliRelease === undefined || cliRelease === null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"Could not find latest CLI version.\");\n            }\n            const currentVersion = yield this.platformUtilsService.getApplicationVersion();\n            if (cliRelease.tag_name === \"cli-v\" + currentVersion) {\n                const response = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(null, null);\n                response.title = \"No update available.\";\n                response.noColor = true;\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(response);\n            }\n            const res = this.getFoundUpdateResponse(cliRelease);\n            return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n        });\n    }\n    getFoundUpdateResponse(release) {\n        const downloadUrl = this.getDownloadUrl(release.assets);\n        const response = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(null, null);\n        response.title = \"A new version is available: \" + release.tag_name;\n        response.raw = downloadUrl;\n        response.message = this.getMessage(release, downloadUrl);\n        return response;\n    }\n    getMessage(release, downloadUrl) {\n        let message = \"\";\n        if (release.body != null && release.body !== \"\") {\n            message = release.body + \"\\n\\n\";\n        }\n        message += \"You can download this update at \" + downloadUrl;\n        if (this.inPkg) {\n            message +=\n                \"\\n\\nIf you installed this CLI through a package manager \" +\n                    \"you should probably update using its update command instead.\";\n        }\n        else {\n            message +=\n                \"\\n\\nIf you installed this CLI through NPM \" +\n                    \"you should update using `\" +\n                    UPDATE_COMMAND +\n                    \"`\";\n        }\n        return message;\n    }\n    getDownloadUrl(assets) {\n        if (assets == null) {\n            return DEFAULT_DOWNLOAD_URL;\n        }\n        let downloadUrl = DEFAULT_DOWNLOAD_URL;\n        for (const a of assets) {\n            const download = a.browser_download_url;\n            if (download == null) {\n                continue;\n            }\n            if (download.indexOf(\".zip\") === -1) {\n                continue;\n            }\n            if (process.platform === \"win32\" && download.indexOf(\"bw-windows\") > -1) {\n                downloadUrl = download;\n                break;\n            }\n            else if (process.platform === \"darwin\" && download.indexOf(\"bw-macos\") > -1) {\n                downloadUrl = download;\n                break;\n            }\n            else if (process.platform === \"linux\" && download.indexOf(\"bw-linux\") > -1) {\n                downloadUrl = download;\n                break;\n            }\n        }\n        return downloadUrl;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8740 characters]\n//# sourceURL=webpack-internal:///./src/commands/update.command.ts\n");

/***/ }),

/***/ "./src/models/response.ts":
/*!********************************!*\
  !*** ./src/models/response.ts ***!
  \********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Response: () => (/* binding */ Response)\n/* harmony export */ });\nclass Response {\n    static error(error, data) {\n        const res = new Response();\n        res.success = false;\n        if (typeof error === \"string\") {\n            res.message = error;\n        }\n        else {\n            res.message =\n                error.message != null\n                    ? error.message\n                    : error.toString() === \"[object Object]\"\n                        ? JSON.stringify(error)\n                        : error.toString();\n        }\n        res.data = data;\n        return res;\n    }\n    static notFound() {\n        return Response.error(\"Not found.\");\n    }\n    static badRequest(message) {\n        return Response.error(message);\n    }\n    static multipleResults(ids) {\n        let msg = \"More than one result was found. Try getting a specific object by `id` instead. \" +\n            \"The following objects were found:\";\n        ids.forEach((id) => {\n            msg += \"\\n\" + id;\n        });\n        return Response.error(msg, ids);\n    }\n    static success(data) {\n        const res = new Response();\n        res.success = true;\n        res.data = data;\n        return res;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNLFFBQVE7SUFDbkIsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFVLEVBQUUsSUFBVTtRQUNqQyxNQUFNLEdBQUcsR0FBRyxJQUFJLFFBQVEsRUFBRSxDQUFDO1FBQzNCLEdBQUcsQ0FBQyxPQUFPLEdBQUcsS0FBSyxDQUFDO1FBQ3BCLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxFQUFFLENBQUM7WUFDOUIsR0FBRyxDQUFDLE9BQU8sR0FBRyxLQUFLLENBQUM7UU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B9XG5cbiAgc3RhdGljIGJhZFJlcXVlc3QobWVzc2FnZTogc3RyaW5nKTogUmVzcG9uc2Uge1xuICAgIHJldHVybiBSZXNwb25zZS5lcnJvcihtZXNzYWdlKTtcbiAgfVxuXG4gIHN0YXRpYyBtdWx0aXBsZVJlc3VsdHMoaWRzOiBzdHJpbmdbXSk6IFJlc3BvbnNlIHtcbiAgICBsZXQgbXNnID1cbiAgICAgIFwiTW9yZSB0aGFuIG9uZSByZXN1bHQgd2FzIGZvdW5kLiBUcnkgZ2V0dGluZyBhIHNwZWNpZmljIG9iamVjdCBieSBgaWRgIGluc3RlYWQuIFwiICtcbiAgICAgIFwiVGhlIGZvbGxvd2luZyBvYmplY3RzIHdlcmUgZm91bmQ6XCI7XG4gICAgaWRzLmZvckVhY2goKGlkKSA9PiB7XG4gICAgICBtc2cgKz0gXCJcXG5cIiArIGlkO1xuICAgIH0pO1xuICAgIHJldHVybiBSZXNwb25zZS5lcnJvcihtc2csIGlkcyk7XG4gIH1cblxuICBzdGF0aWMgc3VjY2VzcyhkYXRhPzogQmFzZVJlc3BvbnNlKTogUmVzcG9uc2Uge1xuICAgIGNvbnN0IHJlcyA9IG5ldyBSZXNwb25zZSgpO1xuICAgIHJlcy5zdWNjZXNzID0gdHJ1ZTtcbiAgICByZXMuZGF0YSA9IGRhdGE7XG4gICAgcmV0dXJuIHJlcztcbiAgfVxuXG4gIHN1Y2Nlc3M6IGJvb2xlYW47XG4gIG1lc3NhZ2U6IHN0cmluZztcbiAgZXJyb3JDb2RlOiBudW1iZXI7XG4gIGRhdGE6IEJhc2VSZXNwb25zZTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/models/response.ts\n");

/***/ }),

/***/ "./src/models/response/file.response.ts":
/*!**********************************************!*\
  !*** ./src/models/response/file.response.ts ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FileResponse: () => (/* binding */ FileResponse)\n/* harmony export */ });\nclass FileResponse {\n    constructor(data, fileName) {\n        this.object = \"file\";\n        this.data = data;\n        this.fileName = fileName;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL2ZpbGUucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sWUFBWTtJQUt2QixZQUFZLElBQVksRUFBRSxRQUFnQjtRQUN4QyxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUNyQixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztJQUMzQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy9tb2RlbHMvcmVzcG9uc2UvZmlsZS5yZXNwb25zZS50cz9jZDQxIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIEZpbGVSZXNwb25zZSBpbXBsZW1lbnRzIEJhc2VSZXNwb25zZSB7XG4gIG9iamVjdDogc3RyaW5nO1xuICBkYXRhOiBCdWZmZXI7XG4gIGZpbGVOYW1lOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoZGF0YTogQnVmZmVyLCBmaWxlTmFtZTogc3RyaW5nKSB7XG4gICAgdGhpcy5vYmplY3QgPSBcImZpbGVcIjtcbiAgICB0aGlzLmRhdGEgPSBkYXRhO1xuICAgIHRoaXMuZmlsZU5hbWUgPSBmaWxlTmFtZTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/models/response/file.response.ts\n");

/***/ }),

/***/ "./src/models/response/list.response.ts":
/*!**********************************************!*\
  !*** ./src/models/response/list.response.ts ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ListResponse: () => (/* binding */ ListResponse)\n/* harmony export */ });\nclass ListResponse {\n    constructor(data) {\n        this.object = \"list\";\n        this.data = data;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL2xpc3QucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sWUFBWTtJQUl2QixZQUFZLElBQW9CO1FBQzlCLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3JCLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0lBQ25CLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4vc3JjL21vZGVscy9yZXNwb25zZS9saXN0LnJlc3BvbnNlLnRzPzAxMjYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4vYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgTGlzdFJlc3BvbnNlIGltcGxlbWVudHMgQmFzZVJlc3BvbnNlIHtcbiAgb2JqZWN0OiBzdHJpbmc7XG4gIGRhdGE6IEJhc2VSZXNwb25zZVtdO1xuXG4gIGNvbnN0cnVjdG9yKGRhdGE6IEJhc2VSZXNwb25zZVtdKSB7XG4gICAgdGhpcy5vYmplY3QgPSBcImxpc3RcIjtcbiAgICB0aGlzLmRhdGEgPSBkYXRhO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/models/response/list.response.ts\n");

/***/ }),

/***/ "./src/models/response/login.response.ts":
/*!***********************************************!*\
  !*** ./src/models/response/login.response.ts ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginResponse: () => (/* binding */ LoginResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_export_login_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/export/login.export */ \"../../libs/common/src/models/export/login.export.ts\");\n\nclass LoginResponse extends _bitwarden_common_models_export_login_export__WEBPACK_IMPORTED_MODULE_0__.LoginExport {\n    constructor(o) {\n        super(o);\n        this.passwordRevisionDate = o.passwordRevisionDate != null ? o.passwordRevisionDate : null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL2xvZ2luLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQTJFO0FBR3BFLE1BQU0sYUFBYyxTQUFRLHFGQUFXO0lBRzVDLFlBQVksQ0FBWTtRQUN0QixLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDVCxJQUFJLENBQUMsb0JBQW9CLEdBQUcsQ0FBQyxDQUFDLG9CQUFvQixJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLG9CQUFvQixDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDN0YsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL2xvZ2luLnJlc3BvbnNlLnRzPzk5OTkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTG9naW5FeHBvcnQgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vbW9kZWxzL2V4cG9ydC9sb2dpbi5leHBvcnRcIjtcbmltcG9ydCB7IExvZ2luVmlldyB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi92YXVsdC9tb2RlbHMvdmlldy9sb2dpbi52aWV3XCI7XG5cbmV4cG9ydCBjbGFzcyBMb2dpblJlc3BvbnNlIGV4dGVuZHMgTG9naW5FeHBvcnQge1xuICBwYXNzd29yZFJldmlzaW9uRGF0ZTogRGF0ZTtcblxuICBjb25zdHJ1Y3RvcihvOiBMb2dpblZpZXcpIHtcbiAgICBzdXBlcihvKTtcbiAgICB0aGlzLnBhc3N3b3JkUmV2aXNpb25EYXRlID0gby5wYXNzd29yZFJldmlzaW9uRGF0ZSAhPSBudWxsID8gby5wYXNzd29yZFJldmlzaW9uRGF0ZSA6IG51bGw7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/models/response/login.response.ts\n");

/***/ }),

/***/ "./src/models/response/message.response.ts":
/*!*************************************************!*\
  !*** ./src/models/response/message.response.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MessageResponse: () => (/* binding */ MessageResponse)\n/* harmony export */ });\nclass MessageResponse {\n    constructor(title, message) {\n        this.noColor = false;\n        this.object = \"message\";\n        this.title = title;\n        this.message = message;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL21lc3NhZ2UucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sZUFBZTtJQU8xQixZQUFZLEtBQWEsRUFBRSxPQUFlO1FBRjFDLFlBQU8sR0FBRyxLQUFLLENBQUM7UUFHZCxJQUFJLENBQUMsTUFBTSxHQUFHLFNBQVMsQ0FBQztRQUN4QixJQUFJLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztRQUNuQixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQztJQUN6QixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy9tb2RlbHMvcmVzcG9uc2UvbWVzc2FnZS5yZXNwb25zZS50cz9mZWZmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIE1lc3NhZ2VSZXNwb25zZSBpbXBsZW1lbnRzIEJhc2VSZXNwb25zZSB7XG4gIG9iamVjdDogc3RyaW5nO1xuICB0aXRsZTogc3RyaW5nO1xuICBtZXNzYWdlOiBzdHJpbmc7XG4gIHJhdzogc3RyaW5nO1xuICBub0NvbG9yID0gZmFsc2U7XG5cbiAgY29uc3RydWN0b3IodGl0bGU6IHN0cmluZywgbWVzc2FnZTogc3RyaW5nKSB7XG4gICAgdGhpcy5vYmplY3QgPSBcIm1lc3NhZ2VcIjtcbiAgICB0aGlzLnRpdGxlID0gdGl0bGU7XG4gICAgdGhpcy5tZXNzYWdlID0gbWVzc2FnZTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/models/response/message.response.ts\n");

/***/ }),

/***/ "./src/models/response/string.response.ts":
/*!************************************************!*\
  !*** ./src/models/response/string.response.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StringResponse: () => (/* binding */ StringResponse)\n/* harmony export */ });\nclass StringResponse {\n    constructor(data) {\n        this.object = \"string\";\n        this.data = data;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL3N0cmluZy5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxjQUFjO0lBSXpCLFlBQVksSUFBWTtRQUN0QixJQUFJLENBQUMsTUFBTSxHQUFHLFFBQVEsQ0FBQztRQUN2QixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztJQUNuQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy9tb2RlbHMvcmVzcG9uc2Uvc3RyaW5nLnJlc3BvbnNlLnRzP2E0Y2IiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4vYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgU3RyaW5nUmVzcG9uc2UgaW1wbGVtZW50cyBCYXNlUmVzcG9uc2Uge1xuICBvYmplY3Q6IHN0cmluZztcbiAgZGF0YTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKGRhdGE6IHN0cmluZykge1xuICAgIHRoaXMub2JqZWN0ID0gXCJzdHJpbmdcIjtcbiAgICB0aGlzLmRhdGEgPSBkYXRhO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/models/response/string.response.ts\n");

/***/ }),

/***/ "./src/models/response/template.response.ts":
/*!**************************************************!*\
  !*** ./src/models/response/template.response.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TemplateResponse: () => (/* binding */ TemplateResponse)\n/* harmony export */ });\nclass TemplateResponse {\n    constructor(template) {\n        this.object = \"template\";\n        this.template = template;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL3RlbXBsYXRlLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNLGdCQUFnQjtJQUkzQixZQUFZLFFBQWE7UUFDdkIsSUFBSSxDQUFDLE1BQU0sR0FBRyxVQUFVLENBQUM7UUFDekIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDM0IsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi9zcmMvbW9kZWxzL3Jlc3BvbnNlL3RlbXBsYXRlLnJlc3BvbnNlLnRzP2UxZTkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4vYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgVGVtcGxhdGVSZXNwb25zZSBpbXBsZW1lbnRzIEJhc2VSZXNwb25zZSB7XG4gIG9iamVjdDogc3RyaW5nO1xuICB0ZW1wbGF0ZTogYW55O1xuXG4gIGNvbnN0cnVjdG9yKHRlbXBsYXRlOiBhbnkpIHtcbiAgICB0aGlzLm9iamVjdCA9IFwidGVtcGxhdGVcIjtcbiAgICB0aGlzLnRlbXBsYXRlID0gdGVtcGxhdGU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/models/response/template.response.ts\n");

/***/ }),

/***/ "./src/oss-serve-configurator.ts":
/*!***************************************!*\
  !*** ./src/oss-serve-configurator.ts ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OssServeConfigurator: () => (/* binding */ OssServeConfigurator)\n/* harmony export */ });\n/* harmony import */ var _koa_multer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @koa/multer */ \"@koa/multer\");\n/* harmony import */ var _koa_multer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_koa_multer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _admin_console_commands_confirm_command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./admin-console/commands/confirm.command */ \"./src/admin-console/commands/confirm.command.ts\");\n/* harmony import */ var _admin_console_commands_share_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./admin-console/commands/share.command */ \"./src/admin-console/commands/share.command.ts\");\n/* harmony import */ var _auth_commands_lock_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./auth/commands/lock.command */ \"./src/auth/commands/lock.command.ts\");\n/* harmony import */ var _auth_commands_unlock_command__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth/commands/unlock.command */ \"./src/auth/commands/unlock.command.ts\");\n/* harmony import */ var _commands_edit_command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/edit.command */ \"./src/commands/edit.command.ts\");\n/* harmony import */ var _commands_get_command__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/get.command */ \"./src/commands/get.command.ts\");\n/* harmony import */ var _commands_list_command__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/list.command */ \"./src/commands/list.command.ts\");\n/* harmony import */ var _commands_restore_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/restore.command */ \"./src/commands/restore.command.ts\");\n/* harmony import */ var _commands_status_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/status.command */ \"./src/commands/status.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_file_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/response/file.response */ \"./src/models/response/file.response.ts\");\n/* harmony import */ var _tools_generate_command__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./tools/generate.command */ \"./src/tools/generate.command.ts\");\n/* harmony import */ var _tools_send__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./tools/send */ \"./src/tools/send/index.ts\");\n/* harmony import */ var _vault_create_command__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./vault/create.command */ \"./src/vault/create.command.ts\");\n/* harmony import */ var _vault_delete_command__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./vault/delete.command */ \"./src/vault/delete.command.ts\");\n/* harmony import */ var _vault_sync_command__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./vault/sync.command */ \"./src/vault/sync.command.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass OssServeConfigurator {\n    constructor(serviceContainer) {\n        this.serviceContainer = serviceContainer;\n        this.getCommand = new _commands_get_command__WEBPACK_IMPORTED_MODULE_6__.GetCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.collectionService, this.serviceContainer.totpService, this.serviceContainer.auditService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.stateService, this.serviceContainer.searchService, this.serviceContainer.apiService, this.serviceContainer.organizationService, this.serviceContainer.eventCollectionService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.accountService);\n        this.listCommand = new _commands_list_command__WEBPACK_IMPORTED_MODULE_7__.ListCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.collectionService, this.serviceContainer.organizationService, this.serviceContainer.searchService, this.serviceContainer.organizationUserApiService, this.serviceContainer.apiService, this.serviceContainer.eventCollectionService);\n        this.createCommand = new _vault_create_command__WEBPACK_IMPORTED_MODULE_14__.CreateCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.apiService, this.serviceContainer.folderApiService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.organizationService, this.serviceContainer.accountService);\n        this.editCommand = new _commands_edit_command__WEBPACK_IMPORTED_MODULE_5__.EditCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.apiService, this.serviceContainer.folderApiService, this.serviceContainer.accountService);\n        this.generateCommand = new _tools_generate_command__WEBPACK_IMPORTED_MODULE_12__.GenerateCommand(this.serviceContainer.passwordGenerationService, this.serviceContainer.stateService);\n        this.syncCommand = new _vault_sync_command__WEBPACK_IMPORTED_MODULE_16__.SyncCommand(this.serviceContainer.syncService);\n        this.statusCommand = new _commands_status_command__WEBPACK_IMPORTED_MODULE_9__.StatusCommand(this.serviceContainer.environmentService, this.serviceContainer.syncService, this.serviceContainer.accountService, this.serviceContainer.authService);\n        this.deleteCommand = new _vault_delete_command__WEBPACK_IMPORTED_MODULE_15__.DeleteCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.apiService, this.serviceContainer.folderApiService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.cipherAuthorizationService);\n        this.confirmCommand = new _admin_console_commands_confirm_command__WEBPACK_IMPORTED_MODULE_1__.ConfirmCommand(this.serviceContainer.apiService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.organizationUserApiService);\n        this.restoreCommand = new _commands_restore_command__WEBPACK_IMPORTED_MODULE_8__.RestoreCommand(this.serviceContainer.cipherService);\n        this.shareCommand = new _admin_console_commands_share_command__WEBPACK_IMPORTED_MODULE_2__.ShareCommand(this.serviceContainer.cipherService, this.serviceContainer.accountService);\n        this.lockCommand = new _auth_commands_lock_command__WEBPACK_IMPORTED_MODULE_3__.LockCommand(this.serviceContainer.vaultTimeoutService);\n        this.unlockCommand = new _auth_commands_unlock_command__WEBPACK_IMPORTED_MODULE_4__.UnlockCommand(this.serviceContainer.accountService, this.serviceContainer.masterPasswordService, this.serviceContainer.keyService, this.serviceContainer.userVerificationService, this.serviceContainer.cryptoFunctionService, this.serviceContainer.logService, this.serviceContainer.keyConnectorService, this.serviceContainer.environmentService, this.serviceContainer.syncService, this.serviceContainer.organizationApiService, () => __awaiter(this, void 0, void 0, function* () { return yield this.serviceContainer.logout(); }));\n        this.sendCreateCommand = new _tools_send__WEBPACK_IMPORTED_MODULE_13__.SendCreateCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.sendApiService, this.serviceContainer.billingAccountProfileStateService);\n        this.sendDeleteCommand = new _tools_send__WEBPACK_IMPORTED_MODULE_13__.SendDeleteCommand(this.serviceContainer.sendService, this.serviceContainer.sendApiService);\n        this.sendGetCommand = new _tools_send__WEBPACK_IMPORTED_MODULE_13__.SendGetCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.searchService, this.serviceContainer.encryptService);\n        this.sendEditCommand = new _tools_send__WEBPACK_IMPORTED_MODULE_13__.SendEditCommand(this.serviceContainer.sendService, this.sendGetCommand, this.serviceContainer.sendApiService, this.serviceContainer.billingAccountProfileStateService);\n        this.sendListCommand = new _tools_send__WEBPACK_IMPORTED_MODULE_13__.SendListCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.searchService);\n        this.sendRemovePasswordCommand = new _tools_send__WEBPACK_IMPORTED_MODULE_13__.SendRemovePasswordCommand(this.serviceContainer.sendService, this.serviceContainer.sendApiService, this.serviceContainer.environmentService);\n    }\n    configureRouter(router) {\n        router.get(\"/generate\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.generateCommand.run(ctx.request.query);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.get(\"/status\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.statusCommand.run();\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.get(\"/list/object/:object\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            let response = null;\n            if (ctx.params.object === \"send\") {\n                response = yield this.sendListCommand.run(ctx.request.query);\n            }\n            else {\n                response = yield this.listCommand.run(ctx.params.object, ctx.request.query);\n            }\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.get(\"/send/list\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield this.sendListCommand.run(ctx.request.query);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/sync\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.syncCommand.run(ctx.request.query);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/lock\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.lockCommand.run();\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/unlock\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            // Do not allow guessing password location through serve command\n            delete ctx.request.query.passwordFile;\n            delete ctx.request.query.passwordEnv;\n            const response = yield this.unlockCommand.run(ctx.request.body.password == null ? null : ctx.request.body.password, ctx.request.query);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/confirm/:object/:id\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield this.confirmCommand.run(ctx.params.object, ctx.params.id, ctx.request.query);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/restore/:object/:id\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield this.restoreCommand.run(ctx.params.object, ctx.params.id);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/move/:id/:organizationId\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield this.shareCommand.run(ctx.params.id, ctx.params.organizationId, ctx.request.body);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/attachment\", _koa_multer__WEBPACK_IMPORTED_MODULE_0__().single(\"file\"), (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield this.createCommand.run(\"attachment\", ctx.request.body, ctx.request.query, {\n                fileBuffer: ctx.request.file.buffer,\n                fileName: ctx.request.file.originalname,\n            });\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/send/:id/remove-password\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield this.sendRemovePasswordCommand.run(ctx.params.id);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/object/:object\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            let response = null;\n            if (ctx.params.object === \"send\") {\n                response = yield this.sendCreateCommand.run(ctx.request.body, ctx.request.query);\n            }\n            else {\n                response = yield this.createCommand.run(ctx.params.object, ctx.request.body, ctx.request.query);\n            }\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.put(\"/object/:object/:id\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            let response = null;\n            if (ctx.params.object === \"send\") {\n                ctx.request.body.id = ctx.params.id;\n                response = yield this.sendEditCommand.run(ctx.request.body, ctx.request.query);\n            }\n            else {\n                response = yield this.editCommand.run(ctx.params.object, ctx.params.id, ctx.request.body, ctx.request.query);\n            }\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.get(\"/object/:object/:id\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            let response = null;\n            if (ctx.params.object === \"send\") {\n                response = yield this.sendGetCommand.run(ctx.params.id, null);\n            }\n            else {\n                response = yield this.getCommand.run(ctx.params.object, ctx.params.id, ctx.request.query);\n            }\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.delete(\"/object/:object/:id\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            let response = null;\n            if (ctx.params.object === \"send\") {\n                response = yield this.sendDeleteCommand.run(ctx.params.id);\n            }\n            else {\n                response = yield this.deleteCommand.run(ctx.params.object, ctx.params.id, ctx.request.query);\n            }\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n    }\n    processResponse(res, commandResponse) {\n        if (!commandResponse.success) {\n            res.status = 400;\n        }\n        if (commandResponse.data instanceof _models_response_file_response__WEBPACK_IMPORTED_MODULE_11__.FileResponse) {\n            res.body = commandResponse.data.data;\n            res.attachment(commandResponse.data.fileName);\n            res.set(\"Content-Type\", \"application/octet-stream\");\n            res.set(\"Content-Length\", commandResponse.data.data.length.toString());\n        }\n        else {\n            res.body = commandResponse;\n        }\n    }\n    errorIfLocked(res) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authed = yield this.serviceContainer.stateService.getIsAuthenticated();\n            if (!authed) {\n                this.processResponse(res, _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(\"You are not logged in.\"));\n                return true;\n            }\n            if (yield this.serviceContainer.keyService.hasUserKey()) {\n                return false;\n            }\n            this.processResponse(res, _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(\"Vault is locked.\"));\n            return true;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 37100 characters]\n//# sourceURL=webpack-internal:///./src/oss-serve-configurator.ts\n");

/***/ }),

/***/ "./src/platform/commands/config.command.ts":
/*!*************************************************!*\
  !*** ./src/platform/commands/config.command.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConfigCommand: () => (/* binding */ ConfigCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/abstractions/environment.service */ \"../../libs/common/src/platform/abstractions/environment.service.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _models_response_string_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/response/string.response */ \"./src/models/response/string.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass ConfigCommand {\n    constructor(environmentService, accountService) {\n        this.environmentService = environmentService;\n        this.accountService = accountService;\n    }\n    run(setting, value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            setting = setting.toLowerCase();\n            switch (setting) {\n                case \"server\":\n                    return yield this.getOrSetServer(value, options);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"Unknown setting.\");\n            }\n        });\n    }\n    getOrSetServer(url, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if ((url == null || url.trim() === \"\") &&\n                !options.webVault &&\n                !options.api &&\n                !options.identity &&\n                !options.icons &&\n                !options.notifications &&\n                !options.events) {\n                const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n                const stringRes = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_4__.StringResponse(env.hasBaseUrl() ? env.getUrls().base : \"https://bitwarden.com\");\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success(stringRes);\n            }\n            // The server config cannot be updated while a user is actively logged in to the current server\n            const activeAccount = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            if (activeAccount) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"Logout required before server config update.\");\n            }\n            url = url === \"null\" || url === \"bitwarden.com\" || url === \"https://bitwarden.com\" ? null : url;\n            yield this.environmentService.setEnvironment(_bitwarden_common_platform_abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted, {\n                base: url,\n                webVault: options.webVault || null,\n                api: options.api || null,\n                identity: options.identity || null,\n                icons: options.icons || null,\n                notifications: options.notifications || null,\n                events: options.events || null,\n                keyConnector: options.keyConnector || null,\n            });\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_3__.MessageResponse(\"Saved setting `config`.\", null);\n            return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success(res);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5976 characters]\n//# sourceURL=webpack-internal:///./src/platform/commands/config.command.ts\n");

/***/ }),

/***/ "./src/platform/flags.ts":
/*!*******************************!*\
  !*** ./src/platform/flags.ts ***!
  \*******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   devFlagEnabled: () => (/* binding */ devFlagEnabled),\n/* harmony export */   devFlagValue: () => (/* binding */ devFlagValue),\n/* harmony export */   flagEnabled: () => (/* binding */ flagEnabled)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_flags__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/flags */ \"../../libs/common/src/platform/misc/flags.ts\");\n\nfunction flagEnabled(flag) {\n    return (0,_bitwarden_common_platform_misc_flags__WEBPACK_IMPORTED_MODULE_0__.flagEnabled)(flag);\n}\nfunction devFlagEnabled(flag) {\n    return (0,_bitwarden_common_platform_misc_flags__WEBPACK_IMPORTED_MODULE_0__.devFlagEnabled)(flag);\n}\nfunction devFlagValue(flag) {\n    return (0,_bitwarden_common_platform_misc_flags__WEBPACK_IMPORTED_MODULE_0__.devFlagValue)(flag);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxhdGZvcm0vZmxhZ3MudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQU0rQztBQVV4QyxTQUFTLFdBQVcsQ0FBQyxJQUFpQjtJQUMzQyxPQUFPLGtGQUFlLENBQVEsSUFBSSxDQUFDLENBQUM7QUFDdEMsQ0FBQztBQUVNLFNBQVMsY0FBYyxDQUFDLElBQW9CO0lBQ2pELE9BQU8scUZBQWtCLENBQVcsSUFBSSxDQUFDLENBQUM7QUFDNUMsQ0FBQztBQUVNLFNBQVMsWUFBWSxDQUFDLElBQW9CO0lBQy9DLE9BQU8sbUZBQWdCLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDaEMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4vc3JjL3BsYXRmb3JtL2ZsYWdzLnRzPzMxZjQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgZmxhZ0VuYWJsZWQgYXMgYmFzZUZsYWdFbmFibGVkLFxuICBkZXZGbGFnRW5hYmxlZCBhcyBiYXNlRGV2RmxhZ0VuYWJsZWQsXG4gIGRldkZsYWdWYWx1ZSBhcyBiYXNlRGV2RmxhZ1ZhbHVlLFxuICBTaGFyZWRGbGFncyxcbiAgU2hhcmVkRGV2RmxhZ3MsXG59IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9wbGF0Zm9ybS9taXNjL2ZsYWdzXCI7XG5cbi8vIHJlcXVpcmVkIHRvIGF2b2lkIGxpbnRpbmcgZXJyb3JzIHdoZW4gdGhlcmUgYXJlIG5vIGZsYWdzXG4vLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L2Jhbi10eXBlc1xuZXhwb3J0IHR5cGUgRmxhZ3MgPSB7fSAmIFNoYXJlZEZsYWdzO1xuXG4vLyByZXF1aXJlZCB0byBhdm9pZCBsaW50aW5nIGVycm9ycyB3aGVuIHRoZXJlIGFyZSBubyBmbGFnc1xuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9iYW4tdHlwZXNcbmV4cG9ydCB0eXBlIERldkZsYWdzID0ge30gJiBTaGFyZWREZXZGbGFncztcblxuZXhwb3J0IGZ1bmN0aW9uIGZsYWdFbmFibGVkKGZsYWc6IGtleW9mIEZsYWdzKTogYm9vbGVhbiB7XG4gIHJldHVybiBiYXNlRmxhZ0VuYWJsZWQ8RmxhZ3M+KGZsYWcpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZGV2RmxhZ0VuYWJsZWQoZmxhZzoga2V5b2YgRGV2RmxhZ3MpIHtcbiAgcmV0dXJuIGJhc2VEZXZGbGFnRW5hYmxlZDxEZXZGbGFncz4oZmxhZyk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBkZXZGbGFnVmFsdWUoZmxhZzoga2V5b2YgRGV2RmxhZ3MpIHtcbiAgcmV0dXJuIGJhc2VEZXZGbGFnVmFsdWUoZmxhZyk7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/platform/flags.ts\n");

/***/ }),

/***/ "./src/platform/services/cli-platform-utils.service.ts":
/*!*************************************************************!*\
  !*** ./src/platform/services/cli-platform-utils.service.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CliPlatformUtilsService: () => (/* binding */ CliPlatformUtilsService)\n/* harmony export */ });\n/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! child_process */ \"child_process\");\n/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n// eslint-disable-next-line\nconst open = __webpack_require__(/*! open */ \"open\");\nclass CliPlatformUtilsService {\n    constructor(clientType, packageJson) {\n        this.packageJson = packageJson;\n        this.deviceCache = null;\n        this.clientType = clientType;\n    }\n    getDevice() {\n        if (!this.deviceCache) {\n            switch (process.platform) {\n                case \"win32\":\n                    this.deviceCache = _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_1__.DeviceType.WindowsCLI;\n                    break;\n                case \"darwin\":\n                    this.deviceCache = _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_1__.DeviceType.MacOsCLI;\n                    break;\n                case \"linux\":\n                default:\n                    this.deviceCache = _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_1__.DeviceType.LinuxCLI;\n                    break;\n            }\n        }\n        return this.deviceCache;\n    }\n    getDeviceString() {\n        const device = _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_1__.DeviceType[this.getDevice()].toLowerCase();\n        return device.replace(\"cli\", \"\");\n    }\n    getClientType() {\n        return this.clientType;\n    }\n    isFirefox() {\n        return false;\n    }\n    isChrome() {\n        return false;\n    }\n    isEdge() {\n        return false;\n    }\n    isOpera() {\n        return false;\n    }\n    isVivaldi() {\n        return false;\n    }\n    isSafari() {\n        return false;\n    }\n    isMacAppStore() {\n        return false;\n    }\n    isViewOpen() {\n        return Promise.resolve(false);\n    }\n    launchUri(uri, options) {\n        if (process.platform === \"linux\") {\n            child_process__WEBPACK_IMPORTED_MODULE_0__.spawnSync(\"xdg-open\", [uri]);\n        }\n        else {\n            open(uri);\n        }\n    }\n    getApplicationVersion() {\n        return Promise.resolve(this.packageJson.version);\n    }\n    getApplicationVersionNumber() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.getApplicationVersion()).split(RegExp(\"[+|-]\"))[0].trim();\n        });\n    }\n    getApplicationVersionSync() {\n        return this.packageJson.version;\n    }\n    supportsWebAuthn(win) {\n        return false;\n    }\n    supportsDuo() {\n        return false;\n    }\n    showToast(type, title, text, options) {\n        throw new Error(\"Not implemented.\");\n    }\n    isDev() {\n        return \"development\" === \"development\";\n    }\n    isSelfHost() {\n        return false;\n    }\n    copyToClipboard(text, options) {\n        throw new Error(\"Not implemented.\");\n    }\n    readFromClipboard(options) {\n        throw new Error(\"Not implemented.\");\n    }\n    supportsSecureStorage() {\n        return false;\n    }\n    getAutofillKeyboardShortcut() {\n        return null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7180 characters]\n//# sourceURL=webpack-internal:///./src/platform/services/cli-platform-utils.service.ts\n");

/***/ }),

/***/ "./src/platform/services/console-log.service.ts":
/*!******************************************************!*\
  !*** ./src/platform/services/console-log.service.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConsoleLogService: () => (/* binding */ ConsoleLogService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_services_console_log_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/services/console-log.service */ \"../../libs/common/src/platform/services/console-log.service.ts\");\n\nclass ConsoleLogService extends _bitwarden_common_platform_services_console_log_service__WEBPACK_IMPORTED_MODULE_0__.ConsoleLogService {\n    constructor(isDev, filter = null) {\n        super(isDev, filter);\n    }\n    write(level, message, ...optionalParams) {\n        if (this.filter != null && this.filter(level)) {\n            return;\n        }\n        if (process.env.BW_RESPONSE === \"true\") {\n            // eslint-disable-next-line\n            console.error(message, ...optionalParams);\n            return;\n        }\n        super.write(level, message, ...optionalParams);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxhdGZvcm0vc2VydmljZXMvY29uc29sZS1sb2cuc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUNxSDtBQUU5RyxNQUFNLGlCQUFrQixTQUFRLHNHQUFxQjtJQUMxRCxZQUFZLEtBQWMsRUFBRSxTQUEyQyxJQUFJO1FBQ3pFLEtBQUssQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDdkIsQ0FBQztJQUVELEtBQUssQ0FBQyxLQUFtQixFQUFFLE9BQWEsRUFBRSxHQUFHLGNBQXFCO1FBQ2hFLElBQUksSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLElBQUksSUFBSSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDO1lBQzlDLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxPQUFPLENBQUMsR0FBRyxDQUFDLFdBQVcsS0FBSyxNQUFNLEVBQUUsQ0FBQztZQUN2Qyw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gICAgIHJldHVybjtcbiAgICB9XG5cbiAgICBpZiAocHJvY2Vzcy5lbnYuQldfUkVTUE9OU0UgPT09IFwidHJ1ZVwiKSB7XG4gICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmVcbiAgICAgIGNvbnNvbGUuZXJyb3IobWVzc2FnZSwgLi4ub3B0aW9uYWxQYXJhbXMpO1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHN1cGVyLndyaXRlKGxldmVsLCBtZXNzYWdlLCAuLi5vcHRpb25hbFBhcmFtcyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/platform/services/console-log.service.ts\n");

/***/ }),

/***/ "./src/platform/services/i18n.service.ts":
/*!***********************************************!*\
  !*** ./src/platform/services/i18n.service.ts ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   I18nService: () => (/* binding */ I18nService)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_platform_services_i18n_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/services/i18n.service */ \"../../libs/common/src/platform/services/i18n.service.ts\");\n\n\n\nclass I18nService extends _bitwarden_common_platform_services_i18n_service__WEBPACK_IMPORTED_MODULE_2__.I18nService {\n    constructor(systemLanguage, localesDirectory, globalStateProvider) {\n        super(systemLanguage, localesDirectory, (formattedLocale) => {\n            const filePath = path__WEBPACK_IMPORTED_MODULE_1__.join(__dirname, this.localesDirectory + \"/\" + formattedLocale + \"/messages.json\");\n            const localesJson = fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(filePath, \"utf8\");\n            const locales = JSON.parse(localesJson.replace(/^\\uFEFF/, \"\")); // strip the BOM\n            return Promise.resolve(locales);\n        }, globalStateProvider);\n        this.supportedTranslationLocales = [\"en\"];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxhdGZvcm0vc2VydmljZXMvaTE4bi5zZXJ2aWNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUF5QjtBQUNJO0FBRXFFO0FBRzNGLE1BQU0sV0FBWSxTQUFRLHlGQUFlO0lBQzlDLFlBQ0UsY0FBc0IsRUFDdEIsZ0JBQXdCLEVBQ3hCLG1CQUF3QztRQUV4QyxLQUFLLENBQ0gsY0FBYyxFQUNkLGdCQUFnQixFQUNoQixDQUFDLGVBQXVCLEVBQUUsRUFBRTtZQUMxQixNQUFNLFFBQVEsR0FBRyxzQ0FBUyxDQUN4QixTQUFTLEVBQ1QsSUFBSSxDQUFDLGdCQUFnQixHQUFHLEdBQUcsR0FBRyxlQUFlLEdBQUcsZ0JBQWdCLENBQ2pFLENBQUM7WUFDRixNQUFNLFdBQVcsR0FBRyw0Q0FBZSxDQUFDLFFBQVEsRUFBRSxNQUFNLENBQUMsQ0FBQztZQUN0RCxNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxPQUFPLENBQUMsU0FBUyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxnQkFBZ0I7WUFDaEYsT0FBTyxPQUFPLENBQUMsT0FB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ICAgICAgICB0aGlzLmxvY2FsZXNEaXJlY3RvcnkgKyBcIi9cIiArIGZvcm1hdHRlZExvY2FsZSArIFwiL21lc3NhZ2VzLmpzb25cIixcbiAgICAgICAgKTtcbiAgICAgICAgY29uc3QgbG9jYWxlc0pzb24gPSBmcy5yZWFkRmlsZVN5bmMoZmlsZVBhdGgsIFwidXRmOFwiKTtcbiAgICAgICAgY29uc3QgbG9jYWxlcyA9IEpTT04ucGFyc2UobG9jYWxlc0pzb24ucmVwbGFjZSgvXlxcdUZFRkYvLCBcIlwiKSk7IC8vIHN0cmlwIHRoZSBCT01cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShsb2NhbGVzKTtcbiAgICAgIH0sXG4gICAgICBnbG9iYWxTdGF0ZVByb3ZpZGVyLFxuICAgICk7XG5cbiAgICB0aGlzLnN1cHBvcnRlZFRyYW5zbGF0aW9uTG9jYWxlcyA9IFtcImVuXCJdO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/platform/services/i18n.service.ts\n");

/***/ }),

/***/ "./src/platform/services/lowdb-storage.service.ts":
/*!********************************************************!*\
  !*** ./src/platform/services/lowdb-storage.service.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LowdbStorageService: () => (/* binding */ LowdbStorageService)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var lowdb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lowdb */ \"lowdb\");\n/* harmony import */ var lowdb__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lowdb__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var lowdb_adapters_FileSync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lowdb/adapters/FileSync */ \"lowdb/adapters/FileSync\");\n/* harmony import */ var lowdb_adapters_FileSync__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lowdb_adapters_FileSync__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var proper_lockfile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! proper-lockfile */ \"proper-lockfile\");\n/* harmony import */ var proper_lockfile__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(proper_lockfile__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _bitwarden_common_platform_misc_sequentialize__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/platform/misc/sequentialize */ \"../../libs/common/src/platform/misc/sequentialize.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/node/node-utils */ \"../../libs/node/src/node-utils.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\nconst retries = {\n    retries: 50,\n    minTimeout: 100,\n    maxTimeout: 250,\n    factor: 2,\n};\nclass LowdbStorageService {\n    constructor(logService, defaults, dir, allowCache = false, requireLock = false) {\n        this.logService = logService;\n        this.dir = dir;\n        this.allowCache = allowCache;\n        this.requireLock = requireLock;\n        this.ready = false;\n        this.updatesSubject = new rxjs__WEBPACK_IMPORTED_MODULE_5__.Subject();\n        this.defaults = defaults;\n        this.updates$ = this.updatesSubject.asObservable();\n    }\n    init() {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.ready) {\n                return;\n            }\n            this.logService.info(\"Initializing lowdb storage service.\");\n            let adapter;\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_7__.Utils.isNode && this.dir != null) {\n                if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(this.dir)) {\n                    this.logService.warning(`Could not find dir, \"${this.dir}\"; creating it instead.`);\n                    _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_8__.NodeUtils.mkdirpSync(this.dir, \"700\");\n                    this.logService.info(`Created dir \"${this.dir}\".`);\n                }\n                this.dataFilePath = path__WEBPACK_IMPORTED_MODULE_1__.join(this.dir, \"data.json\");\n                if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(this.dataFilePath)) {\n                    this.logService.warning(`Could not find data file, \"${this.dataFilePath}\"; creating it instead.`);\n                    fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync(this.dataFilePath, \"\", { mode: 0o600 });\n                    fs__WEBPACK_IMPORTED_MODULE_0__.chmodSync(this.dataFilePath, 0o600);\n                    this.logService.info(`Created data file \"${this.dataFilePath}\" with chmod 600.`);\n                }\n                else {\n                    this.logService.info(`db file \"${this.dataFilePath} already exists\"; using existing db`);\n                }\n                yield this.lockDbFile(() => {\n                    adapter = new lowdb_adapters_FileSync__WEBPACK_IMPORTED_MODULE_3__(this.dataFilePath);\n                });\n            }\n            try {\n                this.logService.info(\"Attempting to create lowdb storage adapter.\");\n                this.db = lowdb__WEBPACK_IMPORTED_MODULE_2__(adapter);\n                this.logService.info(\"Successfully created lowdb storage adapter.\");\n            }\n            catch (e) {\n                if (e instanceof SyntaxError) {\n                    this.logService.warning(`Error creating lowdb storage adapter, \"${e.message}\"; emptying data file.`);\n                    if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(this.dataFilePath)) {\n                        const backupPath = this.dataFilePath + \".bak\";\n                        this.logService.warning(`Writing backup of data file to ${backupPath}`);\n                        yield fs__WEBPACK_IMPORTED_MODULE_0__.copyFile(this.dataFilePath, backupPath, () => {\n                            this.logService.warning(`Error while creating data file backup, \"${e.message}\". No backup may have been created.`);\n                        });\n                    }\n                    adapter.write({});\n                    this.db = lowdb__WEBPACK_IMPORTED_MODULE_2__(adapter);\n                }\n                else {\n                    this.logService.error(`Error creating lowdb storage adapter, \"${e.message}\".`);\n                    throw e;\n                }\n            }\n            if (this.defaults != null) {\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.lockDbFile(() => {\n                    this.logService.info(\"Writing defaults.\");\n                    this.readForNoCache();\n                    this.db.defaults(this.defaults).write();\n                    this.logService.info(\"Successfully wrote defaults to db.\");\n                });\n            }\n            this.ready = true;\n        });\n    }\n    get valuesRequireDeserialization() {\n        return true;\n    }\n    get(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.waitForReady();\n            return this.lockDbFile(() => {\n                this.readForNoCache();\n                const val = this.db.get(key).value();\n                this.logService.debug(`Successfully read ${key} from db`);\n                if (val == null) {\n                    return null;\n                }\n                return val;\n            });\n        });\n    }\n    has(key) {\n        return this.get(key).then((v) => v != null);\n    }\n    save(key, obj) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.waitForReady();\n            return this.lockDbFile(() => {\n                this.readForNoCache();\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.db.set(key, obj).write();\n                this.updatesSubject.next({ key, updateType: \"save\" });\n                this.logService.debug(`Successfully wrote ${key} to db`);\n                return;\n            });\n        });\n    }\n    remove(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.waitForReady();\n            return this.lockDbFile(() => {\n                this.readForNoCache();\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.db.unset(key).write();\n                this.updatesSubject.next({ key, updateType: \"remove\" });\n                this.logService.debug(`Successfully removed ${key} from db`);\n                return;\n            });\n        });\n    }\n    lockDbFile(action) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.requireLock && !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_7__.Utils.isNullOrWhitespace(this.dataFilePath)) {\n                this.logService.info(\"acquiring db file lock\");\n                return yield proper_lockfile__WEBPACK_IMPORTED_MODULE_4__.lock(this.dataFilePath, { retries: retries }).then((release) => {\n                    try {\n                        return action();\n                    }\n                    finally {\n                        // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                        // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                        release();\n                    }\n                });\n            }\n            else {\n                return action();\n            }\n        });\n    }\n    readForNoCache() {\n        if (!this.allowCache) {\n            this.db.read();\n        }\n    }\n    waitForReady() {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!this.ready) {\n                yield this.init();\n            }\n        });\n    }\n}\n__decorate([\n    (0,_bitwarden_common_platform_misc_sequentialize__WEBPACK_IMPORTED_MODULE_6__.sequentialize)(() => \"lowdbStorageInit\"),\n    __metadata(\"design:type\", Function),\n    __metadata(\"design:paramtypes\", []),\n    __metadata(\"design:returntype\", Promise)\n], LowdbStorageService.prototype, \"init\", null);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16224 characters]\n//# sourceURL=webpack-internal:///./src/platform/services/lowdb-storage.service.ts\n");

/***/ }),

/***/ "./src/platform/services/node-api.service.ts":
/*!***************************************************!*\
  !*** ./src/platform/services/node-api.service.ts ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NodeApiService: () => (/* binding */ NodeApiService)\n/* harmony export */ });\n/* harmony import */ var form_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! form-data */ \"form-data\");\n/* harmony import */ var form_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(form_data__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var https_proxy_agent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! https-proxy-agent */ \"https-proxy-agent\");\n/* harmony import */ var https_proxy_agent__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(https_proxy_agent__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node-fetch */ \"node-fetch\");\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_fetch__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _bitwarden_common_services_api_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/services/api.service */ \"../../libs/common/src/services/api.service.ts\");\n\n\n\n\nglobal.fetch = (node_fetch__WEBPACK_IMPORTED_MODULE_2___default());\nglobal.Request = node_fetch__WEBPACK_IMPORTED_MODULE_2__.Request;\nglobal.Response = node_fetch__WEBPACK_IMPORTED_MODULE_2__.Response;\nglobal.Headers = node_fetch__WEBPACK_IMPORTED_MODULE_2__.Headers;\nglobal.FormData = form_data__WEBPACK_IMPORTED_MODULE_0__;\nclass NodeApiService extends _bitwarden_common_services_api_service__WEBPACK_IMPORTED_MODULE_3__.ApiService {\n    constructor(tokenService, platformUtilsService, environmentService, appIdService, refreshAccessTokenErrorCallback, logService, logoutCallback, vaultTimeoutSettingsService, customUserAgent = null) {\n        super(tokenService, platformUtilsService, environmentService, appIdService, refreshAccessTokenErrorCallback, logService, logoutCallback, vaultTimeoutSettingsService, customUserAgent);\n    }\n    nativeFetch(request) {\n        const proxy = process.env.http_proxy || process.env.https_proxy;\n        if (proxy) {\n            request.agent = new https_proxy_agent__WEBPACK_IMPORTED_MODULE_1__.HttpsProxyAgent(proxy);\n        }\n        return fetch(request);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL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tcbiAgICBzdXBlcihcbiAgICAgIHRva2VuU2VydmljZSxcbiAgICAgIHBsYXRmb3JtVXRpbHNTZXJ2aWNlLFxuICAgICAgZW52aXJvbm1lbnRTZXJ2aWNlLFxuICAgICAgYXBwSWRTZXJ2aWNlLFxuICAgICAgcmVmcmVzaEFjY2Vzc1Rva2VuRXJyb3JDYWxsYmFjayxcbiAgICAgIGxvZ1NlcnZpY2UsXG4gICAgICBsb2dvdXRDYWxsYmFjayxcbiAgICAgIHZhdWx0VGltZW91dFNldHRpbmdzU2VydmljZSxcbiAgICAgIGN1c3RvbVVzZXJBZ2VudCxcbiAgICApO1xuICB9XG5cbiAgbmF0aXZlRmV0Y2gocmVxdWVzdDogUmVxdWVzdCk6IFByb21pc2U8UmVzcG9uc2U+IHtcbiAgICBjb25zdCBwcm94eSA9IHByb2Nlc3MuZW52Lmh0dHBfcHJveHkgfHwgcHJvY2Vzcy5lbnYuaHR0cHNfcHJveHk7XG4gICAgaWYgKHByb3h5KSB7XG4gICAgICAocmVxdWVzdCBhcyBhbnkpLmFnZW50ID0gbmV3IEh0dHBzUHJveHlBZ2VudChwcm94eSk7XG4gICAgfVxuICAgIHJldHVybiBmZXRjaChyZXF1ZXN0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/platform/services/node-api.service.ts\n");

/***/ }),

/***/ "./src/platform/services/node-env-secure-storage.service.ts":
/*!******************************************************************!*\
  !*** ./src/platform/services/node-env-secure-storage.service.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NodeEnvSecureStorageService: () => (/* binding */ NodeEnvSecureStorageService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-array-buffer */ \"../../libs/common/src/platform/models/domain/enc-array-buffer.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass NodeEnvSecureStorageService {\n    constructor(storageService, logService, encryptService) {\n        this.storageService = storageService;\n        this.logService = logService;\n        this.encryptService = encryptService;\n    }\n    get valuesRequireDeserialization() {\n        return true;\n    }\n    get updates$() {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.throwError)(() => new Error(\"Secure storage implementations cannot have their updates subscribed to.\"));\n    }\n    get(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const value = yield this.storageService.get(this.makeProtectedStorageKey(key));\n            if (value == null) {\n                return null;\n            }\n            const obj = yield this.decrypt(value);\n            return obj;\n        });\n    }\n    has(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.get(key)) != null;\n        });\n    }\n    save(key, obj) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (obj == null) {\n                return this.remove(key);\n            }\n            if (obj !== null && typeof obj !== \"string\") {\n                throw new Error(\"Only string storage is allowed.\");\n            }\n            const protectedObj = yield this.encrypt(obj);\n            yield this.storageService.save(this.makeProtectedStorageKey(key), protectedObj);\n        });\n    }\n    remove(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.storageService.remove(this.makeProtectedStorageKey(key));\n            return;\n        });\n    }\n    encrypt(plainValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const sessionKey = this.getSessionKey();\n            if (sessionKey == null) {\n                throw new Error(\"No session key available.\");\n            }\n            const encValue = yield this.encryptService.encryptToBytes(_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromB64ToArray(plainValue), sessionKey);\n            if (encValue == null) {\n                throw new Error(\"Value didn't encrypt.\");\n            }\n            return _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromBufferToB64(encValue.buffer);\n        });\n    }\n    decrypt(encValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const sessionKey = this.getSessionKey();\n                if (sessionKey == null) {\n                    return null;\n                }\n                const encBuf = _bitwarden_common_platform_models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_2__.EncArrayBuffer.fromB64(encValue);\n                const decValue = yield this.encryptService.decryptToBytes(encBuf, sessionKey);\n                if (decValue == null) {\n                    this.logService.info(\"Failed to decrypt.\");\n                    return null;\n                }\n                return _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromBufferToB64(decValue);\n            }\n            catch (e) {\n                this.logService.info(\"Decrypt error.\");\n                return null;\n            }\n        });\n    }\n    getSessionKey() {\n        try {\n            if (process.env.BW_SESSION != null) {\n                const sessionBuffer = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromB64ToArray(process.env.BW_SESSION);\n                if (sessionBuffer != null) {\n                    const sessionKey = new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(sessionBuffer);\n                    if (sessionBuffer != null) {\n                        return sessionKey;\n                    }\n                }\n            }\n        }\n        catch (e) {\n            this.logService.info(\"Session key is invalid.\");\n        }\n        return null;\n    }\n    makeProtectedStorageKey(key) {\n        return \"__PROTECTED__\" + key;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8920 characters]\n//# sourceURL=webpack-internal:///./src/platform/services/node-env-secure-storage.service.ts\n");

/***/ }),

/***/ "./src/program.ts":
/*!************************!*\
  !*** ./src/program.ts ***!
  \************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Program: () => (/* binding */ Program)\n/* harmony export */ });\n/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! chalk */ \"chalk\");\n/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _auth_commands_lock_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./auth/commands/lock.command */ \"./src/auth/commands/lock.command.ts\");\n/* harmony import */ var _auth_commands_login_command__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth/commands/login.command */ \"./src/auth/commands/login.command.ts\");\n/* harmony import */ var _auth_commands_logout_command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./auth/commands/logout.command */ \"./src/auth/commands/logout.command.ts\");\n/* harmony import */ var _auth_commands_unlock_command__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./auth/commands/unlock.command */ \"./src/auth/commands/unlock.command.ts\");\n/* harmony import */ var _base_program__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./base-program */ \"./src/base-program.ts\");\n/* harmony import */ var _commands_completion_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./commands/completion.command */ \"./src/commands/completion.command.ts\");\n/* harmony import */ var _commands_encode_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./commands/encode.command */ \"./src/commands/encode.command.ts\");\n/* harmony import */ var _commands_status_command__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands/status.command */ \"./src/commands/status.command.ts\");\n/* harmony import */ var _commands_update_command__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./commands/update.command */ \"./src/commands/update.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _platform_commands_config_command__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./platform/commands/config.command */ \"./src/platform/commands/config.command.ts\");\n/* harmony import */ var _tools_generate_command__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./tools/generate.command */ \"./src/tools/generate.command.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ \"./src/utils.ts\");\n/* harmony import */ var _vault_sync_command__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./vault/sync.command */ \"./src/vault/sync.command.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst writeLn = _utils__WEBPACK_IMPORTED_MODULE_16__.CliUtils.writeLn;\nclass Program extends _base_program__WEBPACK_IMPORTED_MODULE_7__.BaseProgram {\n    register() {\n        return __awaiter(this, void 0, void 0, function* () {\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .option(\"--pretty\", \"Format output. JSON is tabbed with two spaces.\")\n                .option(\"--raw\", \"Return raw output instead of a descriptive message.\")\n                .option(\"--response\", \"Return a JSON formatted version of response output.\")\n                .option(\"--cleanexit\", \"Exit with a success exit code (0) unless an error is thrown.\")\n                .option(\"--quiet\", \"Don't return anything to stdout.\")\n                .option(\"--nointeraction\", \"Do not prompt for interactive user input.\")\n                .option(\"--session <session>\", \"Pass session key instead of reading from env.\")\n                .version(yield this.serviceContainer.platformUtilsService.getApplicationVersion(), \"-v, --version\");\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:pretty\", () => {\n                process.env.BW_PRETTY = \"true\";\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:raw\", () => {\n                process.env.BW_RAW = \"true\";\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:quiet\", () => {\n                process.env.BW_QUIET = \"true\";\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:response\", () => {\n                process.env.BW_RESPONSE = \"true\";\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:cleanexit\", () => {\n                process.env.BW_CLEANEXIT = \"true\";\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:nointeraction\", () => {\n                process.env.BW_NOINTERACTION = \"true\";\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"option:session\", (key) => {\n                process.env.BW_SESSION = key;\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"command:*\", () => {\n                writeLn(chalk__WEBPACK_IMPORTED_MODULE_0__.redBright(\"Invalid command: \" + commander__WEBPACK_IMPORTED_MODULE_1__.program.args.join(\" \")), false, true);\n                writeLn(\"See --help for a list of available commands.\", true, true);\n                process.exitCode = 1;\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program.on(\"--help\", () => {\n                writeLn(chalk__WEBPACK_IMPORTED_MODULE_0__.yellowBright(\"\\n  Tip: Managing and retrieving secrets for dev environments is easier with Bitwarden Secrets Manager. Learn more under https://bitwarden.com/products/secrets-manager/\"));\n                writeLn(\"\\n  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw login\");\n                writeLn(\"    bw lock\");\n                writeLn(\"    bw unlock myPassword321\");\n                writeLn(\"    bw list --help\");\n                writeLn(\"    bw list items --search google\");\n                writeLn(\"    bw get item 99ee88d2-6046-4ea7-92c2-acac464b1412\");\n                writeLn(\"    bw get password google.com\");\n                writeLn('    echo \\'{\"name\":\"My Folder\"}\\' | bw encode');\n                writeLn(\"    bw create folder eyJuYW1lIjoiTXkgRm9sZGVyIn0K\");\n                writeLn(\"    bw edit folder c7c7b60b-9c61-40f2-8ccd-36c49595ed72 eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg==\");\n                writeLn(\"    bw delete item 99ee88d2-6046-4ea7-92c2-acac464b1412\");\n                writeLn(\"    bw generate -lusn --length 18\");\n                writeLn(\"    bw config server https://bitwarden.example.com\");\n                writeLn(\"    bw send -f ./file.ext\");\n                writeLn('    bw send \"text to send\"');\n                writeLn('    echo \"text to send\" | bw send');\n                writeLn(\"    bw receive https://vault.bitwarden.com/#/send/rg3iuoS_Akm2gqy6ADRHmg/Ht7dYjsqjmgqUM3rjzZDSQ\");\n                writeLn(\"\", true);\n            });\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"login [email] [password]\")\n                .description(\"Log into a user account.\")\n                .option(\"--method <method>\", \"Two-step login method.\")\n                .option(\"--code <code>\", \"Two-step login code.\")\n                .option(\"--sso\", \"Log in with Single-Sign On.\")\n                .option(\"--apikey\", \"Log in with an Api Key.\")\n                .option(\"--passwordenv <passwordenv>\", \"Environment variable storing your password\")\n                .option(\"--passwordfile <passwordfile>\", \"Path to a file containing your password as its first line\")\n                .option(\"--check\", \"Check login status.\", () => __awaiter(this, void 0, void 0, function* () {\n                const authed = yield this.serviceContainer.stateService.getIsAuthenticated();\n                if (authed) {\n                    const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_13__.MessageResponse(\"You are logged in!\", null);\n                    this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_12__.Response.success(res), true);\n                }\n                this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_12__.Response.error(\"You are not logged in.\"), true);\n            }))\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Notes:\");\n                writeLn(\"\");\n                writeLn(\"    See docs for valid `method` enum values.\");\n                writeLn(\"\");\n                writeLn(\"    Pass `--raw` option to only return the session key.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw login\");\n                writeLn(\"    bw login john@example.com myPassword321 --raw\");\n                writeLn(\"    bw login john@example.com myPassword321 --method 1 --code 249213\");\n                writeLn(\"    bw login --sso\");\n                writeLn(\"\", true);\n            })\n                .action((email, password, options) => __awaiter(this, void 0, void 0, function* () {\n                if (!options.check) {\n                    yield this.exitIfAuthed();\n                    const command = new _auth_commands_login_command__WEBPACK_IMPORTED_MODULE_4__.LoginCommand(this.serviceContainer.loginStrategyService, this.serviceContainer.authService, this.serviceContainer.apiService, this.serviceContainer.cryptoFunctionService, this.serviceContainer.environmentService, this.serviceContainer.passwordGenerationService, this.serviceContainer.passwordStrengthService, this.serviceContainer.platformUtilsService, this.serviceContainer.accountService, this.serviceContainer.keyService, this.serviceContainer.policyService, this.serviceContainer.twoFactorService, this.serviceContainer.syncService, this.serviceContainer.keyConnectorService, this.serviceContainer.policyApiService, this.serviceContainer.organizationService, () => __awaiter(this, void 0, void 0, function* () { return yield this.serviceContainer.logout(); }), this.serviceContainer.kdfConfigService);\n                    const response = yield command.run(email, password, options);\n                    this.processResponse(response, true);\n                }\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"logout\")\n                .description(\"Log out of the current user account.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw logout\");\n                writeLn(\"\", true);\n            })\n                .action((cmd) => __awaiter(this, void 0, void 0, function* () {\n                yield this.exitIfNotAuthed();\n                const command = new _auth_commands_logout_command__WEBPACK_IMPORTED_MODULE_5__.LogoutCommand(this.serviceContainer.authService, this.serviceContainer.i18nService, () => __awaiter(this, void 0, void 0, function* () { return yield this.serviceContainer.logout(); }));\n                const response = yield command.run();\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"lock\")\n                .description(\"Lock the vault and destroy active session keys.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw lock\");\n                writeLn(\"\", true);\n            })\n                .action((cmd) => __awaiter(this, void 0, void 0, function* () {\n                const userId = yield this.exitIfNotAuthed();\n                if (yield this.serviceContainer.keyConnectorService.getUsesKeyConnector(userId)) {\n                    const logoutCommand = new _auth_commands_logout_command__WEBPACK_IMPORTED_MODULE_5__.LogoutCommand(this.serviceContainer.authService, this.serviceContainer.i18nService, () => __awaiter(this, void 0, void 0, function* () { return yield this.serviceContainer.logout(); }));\n                    yield logoutCommand.run();\n                    this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_12__.Response.error(\"You cannot lock your vault because you are using Key Connector. \" +\n                        \"To protect your vault, you have been logged out.\"), true);\n                    return;\n                }\n                const command = new _auth_commands_lock_command__WEBPACK_IMPORTED_MODULE_3__.LockCommand(this.serviceContainer.vaultTimeoutService);\n                const response = yield command.run();\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"unlock [password]\")\n                .description(\"Unlock the vault and return a new session key.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Notes:\");\n                writeLn(\"\");\n                writeLn(\"    After unlocking, any previous session keys will no longer be valid.\");\n                writeLn(\"\");\n                writeLn(\"    Pass `--raw` option to only return the session key.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw unlock\");\n                writeLn(\"    bw unlock myPassword321\");\n                writeLn(\"    bw unlock myPassword321 --raw\");\n                writeLn(\"\", true);\n            })\n                .option(\"--check\", \"Check lock status.\", () => __awaiter(this, void 0, void 0, function* () {\n                yield this.exitIfNotAuthed();\n                const authStatus = yield this.serviceContainer.authService.getAuthStatus();\n                if (authStatus === _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.Unlocked) {\n                    const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_13__.MessageResponse(\"Vault is unlocked!\", null);\n                    this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_12__.Response.success(res), true);\n                }\n                else {\n                    this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_12__.Response.error(\"Vault is locked.\"), true);\n                }\n            }))\n                .option(\"--passwordenv <passwordenv>\", \"Environment variable storing your password\")\n                .option(\"--passwordfile <passwordfile>\", \"Path to a file containing your password as its first line\")\n                .action((password, cmd) => __awaiter(this, void 0, void 0, function* () {\n                if (!cmd.check) {\n                    yield this.exitIfNotAuthed();\n                    const command = new _auth_commands_unlock_command__WEBPACK_IMPORTED_MODULE_6__.UnlockCommand(this.serviceContainer.accountService, this.serviceContainer.masterPasswordService, this.serviceContainer.keyService, this.serviceContainer.userVerificationService, this.serviceContainer.cryptoFunctionService, this.serviceContainer.logService, this.serviceContainer.keyConnectorService, this.serviceContainer.environmentService, this.serviceContainer.syncService, this.serviceContainer.organizationApiService, () => __awaiter(this, void 0, void 0, function* () { return yield this.serviceContainer.logout(); }));\n                    const response = yield command.run(password, cmd);\n                    this.processResponse(response);\n                }\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"sync\")\n                .description(\"Pull the latest vault data from server.\")\n                .option(\"-f, --force\", \"Force a full sync.\")\n                .option(\"--last\", \"Get the last sync date.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw sync\");\n                writeLn(\"    bw sync -f\");\n                writeLn(\"    bw sync --last\");\n                writeLn(\"\", true);\n            })\n                .action((cmd) => __awaiter(this, void 0, void 0, function* () {\n                yield this.exitIfNotAuthed();\n                const command = new _vault_sync_command__WEBPACK_IMPORTED_MODULE_17__.SyncCommand(this.serviceContainer.syncService);\n                const response = yield command.run(cmd);\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"generate\")\n                .description(\"Generate a password/passphrase.\")\n                .option(\"-u, --uppercase\", \"Include uppercase characters.\")\n                .option(\"-l, --lowercase\", \"Include lowercase characters.\")\n                .option(\"-n, --number\", \"Include numeric characters.\")\n                .option(\"-s, --special\", \"Include special characters.\")\n                .option(\"-p, --passphrase\", \"Generate a passphrase.\")\n                .option(\"--length <length>\", \"Length of the password.\")\n                .option(\"--words <words>\", \"Number of words.\")\n                .option(\"--minNumber <count>\", \"Minimum number of numeric characters.\")\n                .option(\"--minSpecial <count>\", \"Minimum number of special characters.\")\n                .option(\"--separator <separator>\", \"Word separator.\")\n                .option(\"-c, --capitalize\", \"Title case passphrase.\")\n                .option(\"--includeNumber\", \"Passphrase includes number.\")\n                .option(\"--ambiguous\", \"Avoid ambiguous characters.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Notes:\");\n                writeLn(\"\");\n                writeLn(\"    Default options are `-uln --length 14`.\");\n                writeLn(\"\");\n                writeLn(\"    Minimum `length` is 5.\");\n                writeLn(\"\");\n                writeLn(\"    Minimum `words` is 3.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw generate\");\n                writeLn(\"    bw generate -u -l --length 18\");\n                writeLn(\"    bw generate -ulns --length 25\");\n                writeLn(\"    bw generate -ul\");\n                writeLn(\"    bw generate -p --separator _\");\n                writeLn(\"    bw generate -p --words 5 --separator space\");\n                writeLn(\"    bw generate -p --words 5 --separator empty\");\n                writeLn(\"\", true);\n            })\n                .action((options) => __awaiter(this, void 0, void 0, function* () {\n                const command = new _tools_generate_command__WEBPACK_IMPORTED_MODULE_15__.GenerateCommand(this.serviceContainer.passwordGenerationService, this.serviceContainer.stateService);\n                const response = yield command.run(options);\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"encode\")\n                .description(\"Base 64 encode stdin.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Notes:\");\n                writeLn(\"\");\n                writeLn(\"    Use to create `encodedJson` for `create` and `edit` commands.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn('    echo \\'{\"name\":\"My Folder\"}\\' | bw encode');\n                writeLn(\"\", true);\n            })\n                .action(() => __awaiter(this, void 0, void 0, function* () {\n                const command = new _commands_encode_command__WEBPACK_IMPORTED_MODULE_9__.EncodeCommand();\n                const response = yield command.run();\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"config <setting> [value]\")\n                .description(\"Configure CLI settings.\")\n                .option(\"--web-vault <url>\", \"Provides a custom web vault URL that differs from the base URL.\")\n                .option(\"--api <url>\", \"Provides a custom API URL that differs from the base URL.\")\n                .option(\"--identity <url>\", \"Provides a custom identity URL that differs from the base URL.\")\n                .option(\"--icons <url>\", \"Provides a custom icons service URL that differs from the base URL.\")\n                .option(\"--notifications <url>\", \"Provides a custom notifications URL that differs from the base URL.\")\n                .option(\"--events <url>\", \"Provides a custom events URL that differs from the base URL.\")\n                .option(\"--key-connector <url>\", \"Provides the URL for your Key Connector server.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Settings:\");\n                writeLn(\"\");\n                writeLn(\"    server - On-premises hosted installation URL.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw config server\");\n                writeLn(\"    bw config server https://bw.company.com\");\n                writeLn(\"    bw config server bitwarden.com\");\n                writeLn(\"    bw config server --api http://localhost:4000 --identity http://localhost:33656\");\n                writeLn(\"\", true);\n            })\n                .action((setting, value, options) => __awaiter(this, void 0, void 0, function* () {\n                const command = new _platform_commands_config_command__WEBPACK_IMPORTED_MODULE_14__.ConfigCommand(this.serviceContainer.environmentService, this.serviceContainer.accountService);\n                const response = yield command.run(setting, value, options);\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"update\")\n                .description(\"Check for updates.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Notes:\");\n                writeLn(\"\");\n                writeLn(\"    Returns the URL to download the newest version of this CLI tool.\");\n                writeLn(\"\");\n                writeLn(\"    Use the `--raw` option to return only the download URL for the update.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw update\");\n                writeLn(\"    bw update --raw\");\n                writeLn(\"\", true);\n            })\n                .action(() => __awaiter(this, void 0, void 0, function* () {\n                const command = new _commands_update_command__WEBPACK_IMPORTED_MODULE_11__.UpdateCommand(this.serviceContainer.platformUtilsService);\n                const response = yield command.run();\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"completion\")\n                .description(\"Generate shell completions.\")\n                .option(\"--shell <shell>\", \"Shell to generate completions for.\")\n                .on(\"--help\", () => {\n                writeLn(\"\\n  Notes:\");\n                writeLn(\"\");\n                writeLn(\"    Valid shells are `zsh`.\");\n                writeLn(\"\");\n                writeLn(\"  Examples:\");\n                writeLn(\"\");\n                writeLn(\"    bw completion --shell zsh\");\n                writeLn(\"\", true);\n            })\n                .action((options, cmd) => __awaiter(this, void 0, void 0, function* () {\n                const command = new _commands_completion_command__WEBPACK_IMPORTED_MODULE_8__.CompletionCommand();\n                const response = yield command.run(options);\n                this.processResponse(response);\n            }));\n            commander__WEBPACK_IMPORTED_MODULE_1__.program\n                .command(\"status\")\n                .description(\"Show server, last sync, user information, and vault status.\")\n                .on(\"--help\", () => {\n                writeLn(\"\");\n                writeLn(\"\");\n                writeLn(\"  Example return value:\");\n                writeLn(\"\");\n                writeLn(\"    {\");\n                writeLn('      \"serverUrl\": \"https://bitwarden.example.com\",');\n                writeLn('      \"lastSync\": \"2020-06-16T06:33:51.419Z\",');\n                writeLn('      \"userEmail\": \"user@example.com,');\n                writeLn('      \"userId\": \"00000000-0000-0000-0000-000000000000\",');\n                writeLn('      \"status\": \"locked\"');\n                writeLn(\"    }\");\n                writeLn(\"\");\n                writeLn(\"  Notes:\");\n                writeLn(\"\");\n                writeLn(\"  `status` is one of:\");\n                writeLn(\"    - `unauthenticated` when you are not logged in\");\n                writeLn(\"    - `locked` when you are logged in and the vault is locked\");\n                writeLn(\"    - `unlocked` when you are logged in and the vault is unlocked\");\n                writeLn(\"\", true);\n            })\n                .action(() => __awaiter(this, void 0, void 0, function* () {\n                const command = new _commands_status_command__WEBPACK_IMPORTED_MODULE_10__.StatusCommand(this.serviceContainer.environmentService, this.serviceContainer.syncService, this.serviceContainer.accountService, this.serviceContainer.authService);\n                const response = yield command.run();\n                this.processResponse(response);\n            }));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 45732 characters]\n//# sourceURL=webpack-internal:///./src/program.ts\n");

/***/ }),

/***/ "./src/register-oss-programs.ts":
/*!**************************************!*\
  !*** ./src/register-oss-programs.ts ***!
  \**************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   registerOssPrograms: () => (/* binding */ registerOssPrograms)\n/* harmony export */ });\n/* harmony import */ var _program__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./program */ \"./src/program.ts\");\n/* harmony import */ var _tools_send_send_program__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./tools/send/send.program */ \"./src/tools/send/send.program.ts\");\n/* harmony import */ var _vault_program__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vault.program */ \"./src/vault.program.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n/**\n * All OSS licensed programs should be registered here.\n * @example\n * const myProgram = new myProgram(serviceContainer);\n * myProgram.register();\n * @param serviceContainer A class that instantiates services and makes them available for dependency injection\n */\nfunction registerOssPrograms(serviceContainer) {\n    return __awaiter(this, void 0, void 0, function* () {\n        const program = new _program__WEBPACK_IMPORTED_MODULE_0__.Program(serviceContainer);\n        yield program.register();\n        const vaultProgram = new _vault_program__WEBPACK_IMPORTED_MODULE_2__.VaultProgram(serviceContainer);\n        vaultProgram.register();\n        const sendProgram = new _tools_send_send_program__WEBPACK_IMPORTED_MODULE_1__.SendProgram(serviceContainer);\n        sendProgram.register();\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcmVnaXN0ZXItb3NzLXByb2dyYW1zLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBb0M7QUFFb0I7QUFDVDtBQUUvQzs7Ozs7O0dBTUc7QUFDSSxTQUFlLG1CQUFtQixDQUFDLGdCQUFrQzs7UUFDMUUsTUFBTSxPQUFPLEdBQUcsSUFBSSw2Q0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFDOUMsTUFBTSxPQUFPLENBQUMsUUFBUSxFQUFFLENBQUM7UUFFekIsTUFBTSxZQUFZLEdBQUcsSUFBSSx3REFBWSxDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFDeEQsWUFBWSxDQUFDLFFBQVEsRUFBRSxDQUFDO1FBRXhCLE1BQU0sV0FBVyxHQUFHLElBQUksaUVBQVcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ3RELFdBQVcsQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUN6QixDQUFDO0NBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy9yZWdpc3Rlci1vc3MtcHJvZ3JhbXMudHM/MmE4MyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm9ncmFtIH0gZnJvbSBcIi4vcHJvZ3JhbVwiO1xuaW1wb3J0IHsgU2VydmljZUNvbnRhaW5lciB9IGZ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Um9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/register-oss-programs.ts\n");

/***/ }),

/***/ "./src/serve.program.ts":
/*!******************************!*\
  !*** ./src/serve.program.ts ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ServeProgram: () => (/* binding */ ServeProgram)\n/* harmony export */ });\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _base_program__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-program */ \"./src/base-program.ts\");\n/* harmony import */ var _commands_serve_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./commands/serve.command */ \"./src/commands/serve.command.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst writeLn = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.writeLn;\nclass ServeProgram extends _base_program__WEBPACK_IMPORTED_MODULE_1__.BaseProgram {\n    constructor(serviceContainer, configurator) {\n        super(serviceContainer);\n        this.configurator = configurator;\n    }\n    register() {\n        commander__WEBPACK_IMPORTED_MODULE_0__.program\n            .command(\"serve\")\n            .description(\"Start a RESTful API webserver.\")\n            .option(\"--hostname <hostname>\", \"The hostname to bind your API webserver to.\")\n            .option(\"--port <port>\", \"The port to run your API webserver on.\")\n            .option(\"--disable-origin-protection\", \"If set, allows requests with origin header. Warning, this option exists for backwards compatibility reasons and exposes your environment to known CSRF attacks.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Notes:\");\n            writeLn(\"\");\n            writeLn(\"    Default hostname is `localhost`.\");\n            writeLn(\"    Use hostname `all` for no hostname binding.\");\n            writeLn(\"    Default port is `8087`.\");\n            writeLn(\"\");\n            writeLn(\"  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw serve\");\n            writeLn(\"    bw serve --port 8080\");\n            writeLn(\"    bw serve --hostname bwapi.mydomain.com --port 80\");\n            writeLn(\"\", true);\n        })\n            .action((cmd) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfNotAuthed();\n            const command = new _commands_serve_command__WEBPACK_IMPORTED_MODULE_2__.ServeCommand(this.serviceContainer, this.configurator);\n            yield command.run(cmd);\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4152 characters]\n//# sourceURL=webpack-internal:///./src/serve.program.ts\n");

/***/ }),

/***/ "./src/service-container/service-container.ts":
/*!****************************************************!*\
  !*** ./src/service-container/service-container.ts ***!
  \****************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ServiceContainer: () => (/* binding */ ServiceContainer)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var jsdom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! jsdom */ \"jsdom\");\n/* harmony import */ var jsdom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jsdom__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/auth/common */ \"../../libs/auth/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_services_organization_organization_api_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/admin-console/services/organization/organization-api.service */ \"../../libs/common/src/admin-console/services/organization/organization-api.service.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_services_organization_organization_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/admin-console/services/organization/organization.service */ \"../../libs/common/src/admin-console/services/organization/organization.service.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_services_policy_policy_api_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/admin-console/services/policy/policy-api.service */ \"../../libs/common/src/admin-console/services/policy/policy-api.service.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_services_policy_policy_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitwarden/common/admin-console/services/policy/policy.service */ \"../../libs/common/src/admin-console/services/policy/policy.service.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_services_provider_provider_api_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitwarden/common/admin-console/services/provider/provider-api.service */ \"../../libs/common/src/admin-console/services/provider/provider-api.service.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_services_provider_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitwarden/common/admin-console/services/provider.service */ \"../../libs/common/src/admin-console/services/provider.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_account_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @bitwarden/common/auth/services/account.service */ \"../../libs/common/src/auth/services/account.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_auth_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @bitwarden/common/auth/services/auth.service */ \"../../libs/common/src/auth/services/auth.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_avatar_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @bitwarden/common/auth/services/avatar.service */ \"../../libs/common/src/auth/services/avatar.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_device_trust_service_implementation__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @bitwarden/common/auth/services/device-trust.service.implementation */ \"../../libs/common/src/auth/services/device-trust.service.implementation.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_devices_api_service_implementation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @bitwarden/common/auth/services/devices-api.service.implementation */ \"../../libs/common/src/auth/services/devices-api.service.implementation.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_kdf_config_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @bitwarden/common/auth/services/kdf-config.service */ \"../../libs/common/src/auth/services/kdf-config.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_key_connector_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @bitwarden/common/auth/services/key-connector.service */ \"../../libs/common/src/auth/services/key-connector.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_master_password_master_password_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @bitwarden/common/auth/services/master-password/master-password.service */ \"../../libs/common/src/auth/services/master-password/master-password.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_token_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @bitwarden/common/auth/services/token.service */ \"../../libs/common/src/auth/services/token.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_two_factor_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @bitwarden/common/auth/services/two-factor.service */ \"../../libs/common/src/auth/services/two-factor.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_user_verification_user_verification_api_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @bitwarden/common/auth/services/user-verification/user-verification-api.service */ \"../../libs/common/src/auth/services/user-verification/user-verification-api.service.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_user_verification_user_verification_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @bitwarden/common/auth/services/user-verification/user-verification.service */ \"../../libs/common/src/auth/services/user-verification/user-verification.service.ts\");\n/* harmony import */ var _bitwarden_common_autofill_services_autofill_settings_service__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @bitwarden/common/autofill/services/autofill-settings.service */ \"../../libs/common/src/autofill/services/autofill-settings.service.ts\");\n/* harmony import */ var _bitwarden_common_autofill_services_domain_settings_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @bitwarden/common/autofill/services/domain-settings.service */ \"../../libs/common/src/autofill/services/domain-settings.service.ts\");\n/* harmony import */ var _bitwarden_common_billing_services_account_billing_account_profile_state_service__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @bitwarden/common/billing/services/account/billing-account-profile-state.service */ \"../../libs/common/src/billing/services/account/billing-account-profile-state.service.ts\");\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @bitwarden/common/platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_factories_state_factory__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @bitwarden/common/platform/factories/state-factory */ \"../../libs/common/src/platform/factories/state-factory.ts\");\n/* harmony import */ var _bitwarden_common_platform_messaging__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @bitwarden/common/platform/messaging */ \"../../libs/common/src/platform/messaging/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_account__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/account */ \"../../libs/common/src/platform/models/domain/account.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_global_state__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/global-state */ \"../../libs/common/src/platform/models/domain/global-state.ts\");\n/* harmony import */ var _bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @bitwarden/common/platform/scheduling */ \"../../libs/common/src/platform/scheduling/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_app_id_service__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @bitwarden/common/platform/services/app-id.service */ \"../../libs/common/src/platform/services/app-id.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_config_config_api_service__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @bitwarden/common/platform/services/config/config-api.service */ \"../../libs/common/src/platform/services/config/config-api.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_config_default_config_service__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @bitwarden/common/platform/services/config/default-config.service */ \"../../libs/common/src/platform/services/config/default-config.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_container_service__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @bitwarden/common/platform/services/container.service */ \"../../libs/common/src/platform/services/container.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_cryptography_encrypt_service_implementation__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @bitwarden/common/platform/services/cryptography/encrypt.service.implementation */ \"../../libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_cryptography_fallback_bulk_encrypt_service__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @bitwarden/common/platform/services/cryptography/fallback-bulk-encrypt.service */ \"../../libs/common/src/platform/services/cryptography/fallback-bulk-encrypt.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_default_environment_service__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! @bitwarden/common/platform/services/default-environment.service */ \"../../libs/common/src/platform/services/default-environment.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_file_upload_file_upload_service__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @bitwarden/common/platform/services/file-upload/file-upload.service */ \"../../libs/common/src/platform/services/file-upload/file-upload.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_key_generation_service__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @bitwarden/common/platform/services/key-generation.service */ \"../../libs/common/src/platform/services/key-generation.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_memory_storage_service__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @bitwarden/common/platform/services/memory-storage.service */ \"../../libs/common/src/platform/services/memory-storage.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_migration_builder_service__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! @bitwarden/common/platform/services/migration-builder.service */ \"../../libs/common/src/platform/services/migration-builder.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_migration_runner__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! @bitwarden/common/platform/services/migration-runner */ \"../../libs/common/src/platform/services/migration-runner.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_sdk_default_sdk_client_factory__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! @bitwarden/common/platform/services/sdk/default-sdk-client-factory */ \"../../libs/common/src/platform/services/sdk/default-sdk-client-factory.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_sdk_default_sdk_service__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! @bitwarden/common/platform/services/sdk/default-sdk.service */ \"../../libs/common/src/platform/services/sdk/default-sdk.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_sdk_noop_sdk_client_factory__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! @bitwarden/common/platform/services/sdk/noop-sdk-client-factory */ \"../../libs/common/src/platform/services/sdk/noop-sdk-client-factory.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_state_service__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! @bitwarden/common/platform/services/state.service */ \"../../libs/common/src/platform/services/state.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_storage_service_provider__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! @bitwarden/common/platform/services/storage-service.provider */ \"../../libs/common/src/platform/services/storage-service.provider.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_user_auto_unlock_key_service__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! @bitwarden/common/platform/services/user-auto-unlock-key.service */ \"../../libs/common/src/platform/services/user-auto-unlock-key.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_implementations_default_active_user_state_provider__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! @bitwarden/common/platform/state/implementations/default-active-user-state.provider */ \"../../libs/common/src/platform/state/implementations/default-active-user-state.provider.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_implementations_default_derived_state_provider__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! @bitwarden/common/platform/state/implementations/default-derived-state.provider */ \"../../libs/common/src/platform/state/implementations/default-derived-state.provider.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_implementations_default_global_state_provider__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! @bitwarden/common/platform/state/implementations/default-global-state.provider */ \"../../libs/common/src/platform/state/implementations/default-global-state.provider.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_implementations_default_single_user_state_provider__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! @bitwarden/common/platform/state/implementations/default-single-user-state.provider */ \"../../libs/common/src/platform/state/implementations/default-single-user-state.provider.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_implementations_default_state_provider__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! @bitwarden/common/platform/state/implementations/default-state.provider */ \"../../libs/common/src/platform/state/implementations/default-state.provider.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_state_event_registrar_service__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! @bitwarden/common/platform/state/state-event-registrar.service */ \"../../libs/common/src/platform/state/state-event-registrar.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_state_storage_memory_storage_service__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! @bitwarden/common/platform/state/storage/memory-storage.service */ \"../../libs/common/src/platform/state/storage/memory-storage.service.ts\");\n/* harmony import */ var _bitwarden_common_platform_sync_internal__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! @bitwarden/common/platform/sync/internal */ \"../../libs/common/src/platform/sync/internal.ts\");\n/* harmony import */ var _bitwarden_common_services_audit_service__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! @bitwarden/common/services/audit.service */ \"../../libs/common/src/services/audit.service.ts\");\n/* harmony import */ var _bitwarden_common_services_event_event_collection_service__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! @bitwarden/common/services/event/event-collection.service */ \"../../libs/common/src/services/event/event-collection.service.ts\");\n/* harmony import */ var _bitwarden_common_services_event_event_upload_service__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! @bitwarden/common/services/event/event-upload.service */ \"../../libs/common/src/services/event/event-upload.service.ts\");\n/* harmony import */ var _bitwarden_common_services_search_service__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! @bitwarden/common/services/search.service */ \"../../libs/common/src/services/search.service.ts\");\n/* harmony import */ var _bitwarden_common_services_vault_timeout_vault_timeout_settings_service__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! @bitwarden/common/services/vault-timeout/vault-timeout-settings.service */ \"../../libs/common/src/services/vault-timeout/vault-timeout-settings.service.ts\");\n/* harmony import */ var _bitwarden_common_services_vault_timeout_vault_timeout_service__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! @bitwarden/common/services/vault-timeout/vault-timeout.service */ \"../../libs/common/src/services/vault-timeout/vault-timeout.service.ts\");\n/* harmony import */ var _bitwarden_common_tools_password_strength__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! @bitwarden/common/tools/password-strength */ \"../../libs/common/src/tools/password-strength/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_services_send_api_service__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! @bitwarden/common/tools/send/services/send-api.service */ \"../../libs/common/src/tools/send/services/send-api.service.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_services_send_state_provider__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! @bitwarden/common/tools/send/services/send-state.provider */ \"../../libs/common/src/tools/send/services/send-state.provider.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_services_send_service__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! @bitwarden/common/tools/send/services/send.service */ \"../../libs/common/src/tools/send/services/send.service.ts\");\n/* harmony import */ var _bitwarden_common_types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! @bitwarden/common/types/vault-timeout.type */ \"../../libs/common/src/types/vault-timeout.type.ts\");\n/* harmony import */ var _bitwarden_common_vault_services_cipher_authorization_service__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! @bitwarden/common/vault/services/cipher-authorization.service */ \"../../libs/common/src/vault/services/cipher-authorization.service.ts\");\n/* harmony import */ var _bitwarden_common_vault_services_cipher_service__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! @bitwarden/common/vault/services/cipher.service */ \"../../libs/common/src/vault/services/cipher.service.ts\");\n/* harmony import */ var _bitwarden_common_vault_services_file_upload_cipher_file_upload_service__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! @bitwarden/common/vault/services/file-upload/cipher-file-upload.service */ \"../../libs/common/src/vault/services/file-upload/cipher-file-upload.service.ts\");\n/* harmony import */ var _bitwarden_common_vault_services_folder_folder_api_service__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! @bitwarden/common/vault/services/folder/folder-api.service */ \"../../libs/common/src/vault/services/folder/folder-api.service.ts\");\n/* harmony import */ var _bitwarden_common_vault_services_folder_folder_service__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! @bitwarden/common/vault/services/folder/folder.service */ \"../../libs/common/src/vault/services/folder/folder.service.ts\");\n/* harmony import */ var _bitwarden_common_vault_services_totp_service__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! @bitwarden/common/vault/services/totp.service */ \"../../libs/common/src/vault/services/totp.service.ts\");\n/* harmony import */ var _bitwarden_generator_legacy__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! @bitwarden/generator-legacy */ \"../../libs/tools/generator/extensions/legacy/src/index.ts\");\n/* harmony import */ var _bitwarden_importer_core__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! @bitwarden/importer/core */ \"../../libs/importer/src/index.ts\");\n/* harmony import */ var _bitwarden_key_management__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! @bitwarden/key-management */ \"../../libs/key-management/src/index.ts\");\n/* harmony import */ var _bitwarden_node_services_node_crypto_function_service__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! @bitwarden/node/services/node-crypto-function.service */ \"../../libs/node/src/services/node-crypto-function.service.ts\");\n/* harmony import */ var _bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! @bitwarden/vault-export-core */ \"../../libs/tools/export/vault-export/vault-export-core/src/index.ts\");\n/* harmony import */ var _platform_flags__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../platform/flags */ \"./src/platform/flags.ts\");\n/* harmony import */ var _platform_services_cli_platform_utils_service__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../platform/services/cli-platform-utils.service */ \"./src/platform/services/cli-platform-utils.service.ts\");\n/* harmony import */ var _platform_services_console_log_service__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../platform/services/console-log.service */ \"./src/platform/services/console-log.service.ts\");\n/* harmony import */ var _platform_services_i18n_service__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../platform/services/i18n.service */ \"./src/platform/services/i18n.service.ts\");\n/* harmony import */ var _platform_services_lowdb_storage_service__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ../platform/services/lowdb-storage.service */ \"./src/platform/services/lowdb-storage.service.ts\");\n/* harmony import */ var _platform_services_node_api_service__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ../platform/services/node-api.service */ \"./src/platform/services/node-api.service.ts\");\n/* harmony import */ var _platform_services_node_env_secure_storage_service__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ../platform/services/node-env-secure-storage.service */ \"./src/platform/services/node-env-secure-storage.service.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitwarden_common_platform_services_sdk_default_sdk_client_factory__WEBPACK_IMPORTED_MODULE_46__]);\n_bitwarden_common_platform_services_sdk_default_sdk_client_factory__WEBPACK_IMPORTED_MODULE_46__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* eslint-disable import/no-restricted-paths -- We need the implementation to inject, but generally these should not be accessed */\n\n\n\n\n\n\n\n// eslint-disable-next-line no-restricted-imports -- Needed for service construction\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// Polyfills\nglobal.DOMParser = new jsdom__WEBPACK_IMPORTED_MODULE_2__.JSDOM().window.DOMParser;\n// eslint-disable-next-line\nconst packageJson = __webpack_require__(/*! ../../package.json */ \"./package.json\");\n/**\n * Instantiates services and makes them available for dependency injection.\n * Any Bitwarden-licensed services should be registered here.\n */\nclass ServiceContainer {\n    constructor() {\n        var _a, _b, _c;\n        this.inited = false;\n        let p = null;\n        const relativeDataDir = path__WEBPACK_IMPORTED_MODULE_1__.join(path__WEBPACK_IMPORTED_MODULE_1__.dirname(process.execPath), \"bw-data\");\n        if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(relativeDataDir)) {\n            p = relativeDataDir;\n        }\n        else if (process.env.BITWARDENCLI_APPDATA_DIR) {\n            p = path__WEBPACK_IMPORTED_MODULE_1__.resolve(process.env.BITWARDENCLI_APPDATA_DIR);\n        }\n        else if (process.platform === \"darwin\") {\n            p = path__WEBPACK_IMPORTED_MODULE_1__.join((_a = process.env.HOME) !== null && _a !== void 0 ? _a : \"\", \"Library/Application Support/Bitwarden CLI\");\n        }\n        else if (process.platform === \"win32\") {\n            p = path__WEBPACK_IMPORTED_MODULE_1__.join((_b = process.env.APPDATA) !== null && _b !== void 0 ? _b : \"\", \"Bitwarden CLI\");\n        }\n        else if (process.env.XDG_CONFIG_HOME) {\n            p = path__WEBPACK_IMPORTED_MODULE_1__.join(process.env.XDG_CONFIG_HOME, \"Bitwarden CLI\");\n        }\n        else {\n            p = path__WEBPACK_IMPORTED_MODULE_1__.join((_c = process.env.HOME) !== null && _c !== void 0 ? _c : \"\", \".config/Bitwarden CLI\");\n        }\n        const logoutCallback = () => __awaiter(this, void 0, void 0, function* () { return yield this.logout(); });\n        this.platformUtilsService = new _platform_services_cli_platform_utils_service__WEBPACK_IMPORTED_MODULE_84__.CliPlatformUtilsService(_bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_27__.ClientType.Cli, packageJson);\n        this.logService = new _platform_services_console_log_service__WEBPACK_IMPORTED_MODULE_85__.ConsoleLogService(this.platformUtilsService.isDev(), (level) => process.env.BITWARDENCLI_DEBUG !== \"true\" && level <= _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_28__.LogLevelType.Info);\n        this.cryptoFunctionService = new _bitwarden_node_services_node_crypto_function_service__WEBPACK_IMPORTED_MODULE_81__.NodeCryptoFunctionService();\n        this.encryptService = new _bitwarden_common_platform_services_cryptography_encrypt_service_implementation__WEBPACK_IMPORTED_MODULE_38__.EncryptServiceImplementation(this.cryptoFunctionService, this.logService, true);\n        this.storageService = new _platform_services_lowdb_storage_service__WEBPACK_IMPORTED_MODULE_87__.LowdbStorageService(this.logService, null, p, false, true);\n        this.secureStorageService = new _platform_services_node_env_secure_storage_service__WEBPACK_IMPORTED_MODULE_89__.NodeEnvSecureStorageService(this.storageService, this.logService, \n        // MAC failures for secure storage are being logged for customers today and\n        // they occur when users unlock / login and refresh a session key but don't\n        // export it into their environment (e.g. BW_SESSION_KEY). This leaves a stale\n        // BW_SESSION key in the env which is attempted to be used to decrypt the auto\n        // unlock user key which obviously fails. So, to resolve this, we will not log\n        // MAC failures for secure storage.\n        new _bitwarden_common_platform_services_cryptography_encrypt_service_implementation__WEBPACK_IMPORTED_MODULE_38__.EncryptServiceImplementation(this.cryptoFunctionService, this.logService, false));\n        this.memoryStorageService = new _bitwarden_common_platform_services_memory_storage_service__WEBPACK_IMPORTED_MODULE_43__.MemoryStorageService();\n        this.memoryStorageForStateProviders = new _bitwarden_common_platform_state_storage_memory_storage_service__WEBPACK_IMPORTED_MODULE_59__.MemoryStorageService();\n        const storageServiceProvider = new _bitwarden_common_platform_services_storage_service_provider__WEBPACK_IMPORTED_MODULE_50__.StorageServiceProvider(this.storageService, this.memoryStorageForStateProviders);\n        this.globalStateProvider = new _bitwarden_common_platform_state_implementations_default_global_state_provider__WEBPACK_IMPORTED_MODULE_55__.DefaultGlobalStateProvider(storageServiceProvider, this.logService);\n        const stateEventRegistrarService = new _bitwarden_common_platform_state_state_event_registrar_service__WEBPACK_IMPORTED_MODULE_58__.StateEventRegistrarService(this.globalStateProvider, storageServiceProvider);\n        this.stateEventRunnerService = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_52__.StateEventRunnerService(this.globalStateProvider, storageServiceProvider);\n        this.i18nService = new _platform_services_i18n_service__WEBPACK_IMPORTED_MODULE_86__.I18nService(\"en\", \"./locales\", this.globalStateProvider);\n        this.singleUserStateProvider = new _bitwarden_common_platform_state_implementations_default_single_user_state_provider__WEBPACK_IMPORTED_MODULE_56__.DefaultSingleUserStateProvider(storageServiceProvider, stateEventRegistrarService, this.logService);\n        this.messagingService = _bitwarden_common_platform_messaging__WEBPACK_IMPORTED_MODULE_30__.MessageSender.EMPTY;\n        this.accountService = new _bitwarden_common_auth_services_account_service__WEBPACK_IMPORTED_MODULE_12__.AccountServiceImplementation(this.messagingService, this.logService, this.globalStateProvider);\n        this.activeUserStateProvider = new _bitwarden_common_platform_state_implementations_default_active_user_state_provider__WEBPACK_IMPORTED_MODULE_53__.DefaultActiveUserStateProvider(this.accountService, this.singleUserStateProvider);\n        this.derivedStateProvider = new _bitwarden_common_platform_state_implementations_default_derived_state_provider__WEBPACK_IMPORTED_MODULE_54__.DefaultDerivedStateProvider();\n        this.stateProvider = new _bitwarden_common_platform_state_implementations_default_state_provider__WEBPACK_IMPORTED_MODULE_57__.DefaultStateProvider(this.activeUserStateProvider, this.singleUserStateProvider, this.globalStateProvider, this.derivedStateProvider);\n        this.environmentService = new _bitwarden_common_platform_services_default_environment_service__WEBPACK_IMPORTED_MODULE_40__.DefaultEnvironmentService(this.stateProvider, this.accountService, process.env.ADDITIONAL_REGIONS);\n        this.keyGenerationService = new _bitwarden_common_platform_services_key_generation_service__WEBPACK_IMPORTED_MODULE_42__.KeyGenerationService(this.cryptoFunctionService);\n        this.tokenService = new _bitwarden_common_auth_services_token_service__WEBPACK_IMPORTED_MODULE_20__.TokenService(this.singleUserStateProvider, this.globalStateProvider, this.platformUtilsService.supportsSecureStorage(), this.secureStorageService, this.keyGenerationService, this.encryptService, this.logService, logoutCallback);\n        const migrationRunner = new _bitwarden_common_platform_services_migration_runner__WEBPACK_IMPORTED_MODULE_45__.MigrationRunner(this.storageService, this.logService, new _bitwarden_common_platform_services_migration_builder_service__WEBPACK_IMPORTED_MODULE_44__.MigrationBuilderService(), _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_27__.ClientType.Cli);\n        this.stateService = new _bitwarden_common_platform_services_state_service__WEBPACK_IMPORTED_MODULE_49__.StateService(this.storageService, this.secureStorageService, this.memoryStorageService, this.logService, new _bitwarden_common_platform_factories_state_factory__WEBPACK_IMPORTED_MODULE_29__.StateFactory(_bitwarden_common_platform_models_domain_global_state__WEBPACK_IMPORTED_MODULE_32__.GlobalState, _bitwarden_common_platform_models_domain_account__WEBPACK_IMPORTED_MODULE_31__.Account), this.accountService, this.environmentService, this.tokenService, migrationRunner);\n        this.masterPasswordService = new _bitwarden_common_auth_services_master_password_master_password_service__WEBPACK_IMPORTED_MODULE_19__.MasterPasswordService(this.stateProvider, this.stateService, this.keyGenerationService, this.encryptService, this.logService);\n        this.kdfConfigService = new _bitwarden_common_auth_services_kdf_config_service__WEBPACK_IMPORTED_MODULE_17__.KdfConfigService(this.stateProvider);\n        this.pinService = new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_5__.PinService(this.accountService, this.cryptoFunctionService, this.encryptService, this.kdfConfigService, this.keyGenerationService, this.logService, this.masterPasswordService, this.stateProvider, this.stateService);\n        this.keyService = new _bitwarden_key_management__WEBPACK_IMPORTED_MODULE_80__.DefaultKeyService(this.pinService, this.masterPasswordService, this.keyGenerationService, this.cryptoFunctionService, this.encryptService, this.platformUtilsService, this.logService, this.stateService, this.accountService, this.stateProvider, this.kdfConfigService);\n        this.appIdService = new _bitwarden_common_platform_services_app_id_service__WEBPACK_IMPORTED_MODULE_34__.AppIdService(this.storageService, this.logService);\n        const customUserAgent = \"Bitwarden_CLI/\" +\n            this.platformUtilsService.getApplicationVersionSync() +\n            \" (\" +\n            this.platformUtilsService.getDeviceString().toUpperCase() +\n            \")\";\n        this.biometricStateService = new _bitwarden_key_management__WEBPACK_IMPORTED_MODULE_80__.DefaultBiometricStateService(this.stateProvider);\n        this.userDecryptionOptionsService = new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_5__.UserDecryptionOptionsService(this.stateProvider);\n        this.organizationService = new _bitwarden_common_admin_console_services_organization_organization_service__WEBPACK_IMPORTED_MODULE_7__.OrganizationService(this.stateProvider);\n        this.policyService = new _bitwarden_common_admin_console_services_policy_policy_service__WEBPACK_IMPORTED_MODULE_9__.PolicyService(this.stateProvider, this.organizationService);\n        this.vaultTimeoutSettingsService = new _bitwarden_common_services_vault_timeout_vault_timeout_settings_service__WEBPACK_IMPORTED_MODULE_65__.VaultTimeoutSettingsService(this.accountService, this.pinService, this.userDecryptionOptionsService, this.keyService, this.tokenService, this.policyService, this.biometricStateService, this.stateProvider, this.logService, _bitwarden_common_types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_71__.VaultTimeoutStringType.Never);\n        const refreshAccessTokenErrorCallback = () => {\n            throw new Error(\"Refresh Access token error\");\n        };\n        this.apiService = new _platform_services_node_api_service__WEBPACK_IMPORTED_MODULE_88__.NodeApiService(this.tokenService, this.platformUtilsService, this.environmentService, this.appIdService, refreshAccessTokenErrorCallback, this.logService, logoutCallback, this.vaultTimeoutSettingsService, customUserAgent);\n        this.containerService = new _bitwarden_common_platform_services_container_service__WEBPACK_IMPORTED_MODULE_37__.ContainerService(this.keyService, this.encryptService);\n        this.domainSettingsService = new _bitwarden_common_autofill_services_domain_settings_service__WEBPACK_IMPORTED_MODULE_25__.DefaultDomainSettingsService(this.stateProvider);\n        this.fileUploadService = new _bitwarden_common_platform_services_file_upload_file_upload_service__WEBPACK_IMPORTED_MODULE_41__.FileUploadService(this.logService);\n        this.sendStateProvider = new _bitwarden_common_tools_send_services_send_state_provider__WEBPACK_IMPORTED_MODULE_69__.SendStateProvider(this.stateProvider);\n        this.sendService = new _bitwarden_common_tools_send_services_send_service__WEBPACK_IMPORTED_MODULE_70__.SendService(this.keyService, this.i18nService, this.keyGenerationService, this.sendStateProvider, this.encryptService);\n        this.cipherFileUploadService = new _bitwarden_common_vault_services_file_upload_cipher_file_upload_service__WEBPACK_IMPORTED_MODULE_74__.CipherFileUploadService(this.apiService, this.fileUploadService);\n        this.sendApiService = this.sendApiService = new _bitwarden_common_tools_send_services_send_api_service__WEBPACK_IMPORTED_MODULE_68__.SendApiService(this.apiService, this.fileUploadService, this.sendService);\n        this.searchService = new _bitwarden_common_services_search_service__WEBPACK_IMPORTED_MODULE_64__.SearchService(this.logService, this.i18nService, this.stateProvider);\n        this.collectionService = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_4__.DefaultCollectionService(this.keyService, this.encryptService, this.i18nService, this.stateProvider);\n        this.providerService = new _bitwarden_common_admin_console_services_provider_service__WEBPACK_IMPORTED_MODULE_11__.ProviderService(this.stateProvider);\n        this.policyApiService = new _bitwarden_common_admin_console_services_policy_policy_api_service__WEBPACK_IMPORTED_MODULE_8__.PolicyApiService(this.policyService, this.apiService);\n        this.keyConnectorService = new _bitwarden_common_auth_services_key_connector_service__WEBPACK_IMPORTED_MODULE_18__.KeyConnectorService(this.accountService, this.masterPasswordService, this.keyService, this.apiService, this.tokenService, this.logService, this.organizationService, this.keyGenerationService, logoutCallback, this.stateProvider);\n        this.twoFactorService = new _bitwarden_common_auth_services_two_factor_service__WEBPACK_IMPORTED_MODULE_21__.TwoFactorService(this.i18nService, this.platformUtilsService, this.globalStateProvider);\n        const sdkClientFactory = (0,_platform_flags__WEBPACK_IMPORTED_MODULE_83__.flagEnabled)(\"sdk\")\n            ? new _bitwarden_common_platform_services_sdk_default_sdk_client_factory__WEBPACK_IMPORTED_MODULE_46__.DefaultSdkClientFactory()\n            : new _bitwarden_common_platform_services_sdk_noop_sdk_client_factory__WEBPACK_IMPORTED_MODULE_48__.NoopSdkClientFactory();\n        this.sdkService = new _bitwarden_common_platform_services_sdk_default_sdk_service__WEBPACK_IMPORTED_MODULE_47__.DefaultSdkService(sdkClientFactory, this.environmentService, this.platformUtilsService, this.accountService, this.kdfConfigService, this.keyService, this.apiService, customUserAgent);\n        this.passwordStrengthService = new _bitwarden_common_tools_password_strength__WEBPACK_IMPORTED_MODULE_67__.PasswordStrengthService();\n        this.passwordGenerationService = (0,_bitwarden_generator_legacy__WEBPACK_IMPORTED_MODULE_78__.legacyPasswordGenerationServiceFactory)(this.encryptService, this.keyService, this.policyService, this.accountService, this.stateProvider);\n        this.authRequestService = new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_5__.AuthRequestService(this.appIdService, this.accountService, this.masterPasswordService, this.keyService, this.encryptService, this.apiService, this.stateProvider);\n        this.billingAccountProfileStateService = new _bitwarden_common_billing_services_account_billing_account_profile_state_service__WEBPACK_IMPORTED_MODULE_26__.DefaultBillingAccountProfileStateService(this.stateProvider);\n        this.taskSchedulerService = new _bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_33__.DefaultTaskSchedulerService(this.logService);\n        this.authService = new _bitwarden_common_auth_services_auth_service__WEBPACK_IMPORTED_MODULE_13__.AuthService(this.accountService, this.messagingService, this.keyService, this.apiService, this.stateService, this.tokenService);\n        this.configApiService = new _bitwarden_common_platform_services_config_config_api_service__WEBPACK_IMPORTED_MODULE_35__.ConfigApiService(this.apiService, this.tokenService);\n        this.configService = new _bitwarden_common_platform_services_config_default_config_service__WEBPACK_IMPORTED_MODULE_36__.DefaultConfigService(this.configApiService, this.environmentService, this.logService, this.stateProvider, this.authService);\n        this.devicesApiService = new _bitwarden_common_auth_services_devices_api_service_implementation__WEBPACK_IMPORTED_MODULE_16__.DevicesApiServiceImplementation(this.apiService);\n        this.deviceTrustService = new _bitwarden_common_auth_services_device_trust_service_implementation__WEBPACK_IMPORTED_MODULE_15__.DeviceTrustService(this.keyGenerationService, this.cryptoFunctionService, this.keyService, this.encryptService, this.appIdService, this.devicesApiService, this.i18nService, this.platformUtilsService, this.stateProvider, this.secureStorageService, this.userDecryptionOptionsService, this.logService, this.configService);\n        this.loginStrategyService = new _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_5__.LoginStrategyService(this.accountService, this.masterPasswordService, this.keyService, this.apiService, this.tokenService, this.appIdService, this.platformUtilsService, this.messagingService, this.logService, this.keyConnectorService, this.environmentService, this.stateService, this.twoFactorService, this.i18nService, this.encryptService, this.passwordStrengthService, this.policyService, this.deviceTrustService, this.authRequestService, this.userDecryptionOptionsService, this.globalStateProvider, this.billingAccountProfileStateService, this.vaultTimeoutSettingsService, this.kdfConfigService, this.taskSchedulerService);\n        // FIXME: CLI does not support autofill\n        this.autofillSettingsService = new _bitwarden_common_autofill_services_autofill_settings_service__WEBPACK_IMPORTED_MODULE_24__.AutofillSettingsService(this.stateProvider, this.policyService);\n        this.cipherService = new _bitwarden_common_vault_services_cipher_service__WEBPACK_IMPORTED_MODULE_73__.CipherService(this.keyService, this.domainSettingsService, this.apiService, this.i18nService, this.searchService, this.stateService, this.autofillSettingsService, this.encryptService, new _bitwarden_common_platform_services_cryptography_fallback_bulk_encrypt_service__WEBPACK_IMPORTED_MODULE_39__.FallbackBulkEncryptService(this.encryptService), this.cipherFileUploadService, this.configService, this.stateProvider, this.accountService);\n        this.folderService = new _bitwarden_common_vault_services_folder_folder_service__WEBPACK_IMPORTED_MODULE_76__.FolderService(this.keyService, this.encryptService, this.i18nService, this.cipherService, this.stateProvider);\n        this.folderApiService = new _bitwarden_common_vault_services_folder_folder_api_service__WEBPACK_IMPORTED_MODULE_75__.FolderApiService(this.folderService, this.apiService);\n        const lockedCallback = (userId) => __awaiter(this, void 0, void 0, function* () { return yield this.keyService.clearStoredUserKey(_bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_28__.KeySuffixOptions.Auto); });\n        this.userVerificationApiService = new _bitwarden_common_auth_services_user_verification_user_verification_api_service__WEBPACK_IMPORTED_MODULE_22__.UserVerificationApiService(this.apiService);\n        this.userVerificationService = new _bitwarden_common_auth_services_user_verification_user_verification_service__WEBPACK_IMPORTED_MODULE_23__.UserVerificationService(this.keyService, this.accountService, this.masterPasswordService, this.i18nService, this.userVerificationApiService, this.userDecryptionOptionsService, this.pinService, this.logService, this.vaultTimeoutSettingsService, this.platformUtilsService, this.kdfConfigService);\n        this.vaultTimeoutService = new _bitwarden_common_services_vault_timeout_vault_timeout_service__WEBPACK_IMPORTED_MODULE_66__.VaultTimeoutService(this.accountService, this.masterPasswordService, this.cipherService, this.folderService, this.collectionService, this.platformUtilsService, this.messagingService, this.searchService, this.stateService, this.authService, this.vaultTimeoutSettingsService, this.stateEventRunnerService, this.taskSchedulerService, this.logService, lockedCallback, undefined);\n        this.avatarService = new _bitwarden_common_auth_services_avatar_service__WEBPACK_IMPORTED_MODULE_14__.AvatarService(this.apiService, this.stateProvider);\n        this.syncService = new _bitwarden_common_platform_sync_internal__WEBPACK_IMPORTED_MODULE_60__.DefaultSyncService(this.masterPasswordService, this.accountService, this.apiService, this.domainSettingsService, this.folderService, this.cipherService, this.keyService, this.collectionService, this.messagingService, this.policyService, this.sendService, this.logService, this.keyConnectorService, this.stateService, this.providerService, this.folderApiService, this.organizationService, this.sendApiService, this.userDecryptionOptionsService, this.avatarService, logoutCallback, this.billingAccountProfileStateService, this.tokenService, this.authService, this.stateProvider);\n        this.totpService = new _bitwarden_common_vault_services_totp_service__WEBPACK_IMPORTED_MODULE_77__.TotpService(this.cryptoFunctionService, this.logService);\n        this.importApiService = new _bitwarden_importer_core__WEBPACK_IMPORTED_MODULE_79__.ImportApiService(this.apiService);\n        this.importService = new _bitwarden_importer_core__WEBPACK_IMPORTED_MODULE_79__.ImportService(this.cipherService, this.folderService, this.importApiService, this.i18nService, this.collectionService, this.keyService, this.encryptService, this.pinService, this.accountService);\n        this.individualExportService = new _bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_82__.IndividualVaultExportService(this.folderService, this.cipherService, this.pinService, this.keyService, this.encryptService, this.cryptoFunctionService, this.kdfConfigService, this.accountService);\n        this.organizationExportService = new _bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_82__.OrganizationVaultExportService(this.cipherService, this.apiService, this.pinService, this.keyService, this.encryptService, this.cryptoFunctionService, this.collectionService, this.kdfConfigService, this.accountService);\n        this.exportService = new _bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_82__.VaultExportService(this.individualExportService, this.organizationExportService);\n        this.userAutoUnlockKeyService = new _bitwarden_common_platform_services_user_auto_unlock_key_service__WEBPACK_IMPORTED_MODULE_51__.UserAutoUnlockKeyService(this.keyService);\n        this.auditService = new _bitwarden_common_services_audit_service__WEBPACK_IMPORTED_MODULE_61__.AuditService(this.cryptoFunctionService, this.apiService);\n        this.eventUploadService = new _bitwarden_common_services_event_event_upload_service__WEBPACK_IMPORTED_MODULE_63__.EventUploadService(this.apiService, this.stateProvider, this.logService, this.authService, this.taskSchedulerService);\n        this.eventCollectionService = new _bitwarden_common_services_event_event_collection_service__WEBPACK_IMPORTED_MODULE_62__.EventCollectionService(this.cipherService, this.stateProvider, this.organizationService, this.eventUploadService, this.authService, this.accountService);\n        this.organizationApiService = new _bitwarden_common_admin_console_services_organization_organization_api_service__WEBPACK_IMPORTED_MODULE_6__.OrganizationApiService(this.apiService, this.syncService);\n        this.providerApiService = new _bitwarden_common_admin_console_services_provider_provider_api_service__WEBPACK_IMPORTED_MODULE_10__.ProviderApiService(this.apiService);\n        this.organizationUserApiService = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_4__.DefaultOrganizationUserApiService(this.apiService);\n        this.cipherAuthorizationService = new _bitwarden_common_vault_services_cipher_authorization_service__WEBPACK_IMPORTED_MODULE_72__.DefaultCipherAuthorizationService(this.collectionService, this.organizationService);\n    }\n    logout() {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.authService.logOut(() => {\n                /* Do nothing */\n            });\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_3__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            yield Promise.all([\n                this.eventUploadService.uploadEvents(userId),\n                this.keyService.clearKeys(),\n                this.cipherService.clear(userId),\n                this.folderService.clear(userId),\n                this.collectionService.clear(userId),\n            ]);\n            yield this.stateEventRunnerService.handleEvent(\"logout\", userId);\n            yield this.stateService.clean();\n            yield this.accountService.clean(userId);\n            yield this.accountService.switchAccount(null);\n            process.env.BW_SESSION = undefined;\n        });\n    }\n    init() {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.inited) {\n                this.logService.warning(\"ServiceContainer.init called more than once\");\n                return;\n            }\n            yield this.storageService.init();\n            yield this.stateService.init();\n            this.containerService.attachToGlobal(global);\n            yield this.i18nService.init();\n            this.twoFactorService.init();\n            // If a user has a BW_SESSION key stored in their env (not process.env.BW_SESSION),\n            // this should set the user key to unlock the vault on init.\n            // TODO: ideally, we wouldn't want to do this here but instead only for commands that require the vault to be unlocked\n            // as this runs on every command and could be a performance hit\n            const activeAccount = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.firstValueFrom)(this.accountService.activeAccount$);\n            if (activeAccount === null || activeAccount === void 0 ? void 0 : activeAccount.id) {\n                yield this.userAutoUnlockKeyService.setUserKeyInMemoryIfAutoUserKeySet(activeAccount.id);\n            }\n            this.inited = true;\n            if ((0,_platform_flags__WEBPACK_IMPORTED_MODULE_83__.flagEnabled)(\"sdk\")) {\n                // Warn if the SDK for some reason can't be initialized\n                let supported = false;\n                try {\n                    supported = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.firstValueFrom)(this.sdkService.supported$);\n                }\n                catch (e) {\n                    // Do nothing.\n                }\n                if (!supported) {\n                    this.sdkService.failedToInitialize(\"cli\").catch((e) => this.logService.error(e));\n                }\n            }\n        });\n    }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 69160 characters]\n//# sourceURL=webpack-internal:///./src/service-container/service-container.ts\n");

/***/ }),

/***/ "./src/tools/export.command.ts":
/*!*************************************!*\
  !*** ./src/tools/export.command.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ExportCommand: () => (/* binding */ ExportCommand)\n/* harmony export */ });\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inquirer */ \"inquirer\");\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inquirer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/vault-export-core */ \"../../libs/tools/export/vault-export/vault-export-core/src/index.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\nclass ExportCommand {\n    constructor(exportService, policyService, eventCollectionService) {\n        this.exportService = exportService;\n        this.policyService = policyService;\n        this.eventCollectionService = eventCollectionService;\n    }\n    run(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            if (options.organizationid == null &&\n                (yield this.policyService.policyAppliesToUser(_bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.PolicyType.DisablePersonalVaultExport))) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"One or more organization policies prevents you from exporting your personal vault.\");\n            }\n            let password = options.password;\n            // has password and format is 'json' => should have the same behaviour as 'encrypted_json'\n            // format is 'undefined' => Defaults to 'csv'\n            // Any other case => returns the options.format\n            const format = password && options.format == \"json\" ? \"encrypted_json\" : ((_a = options.format) !== null && _a !== void 0 ? _a : \"csv\");\n            if (!this.isSupportedExportFormat(format)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(`'${format}' is not a supported export format. Supported formats: ${_bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_4__.EXPORT_FORMATS.join(\", \")}.`);\n            }\n            if (options.organizationid != null && !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isGuid(options.organizationid)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.error(\"`\" + options.organizationid + \"` is not a GUID.\");\n            }\n            let exportContent = null;\n            try {\n                if (format === \"encrypted_json\") {\n                    password = yield this.promptPassword(password);\n                }\n                exportContent =\n                    options.organizationid == null\n                        ? yield this.exportService.getExport(format, password)\n                        : yield this.exportService.getOrganizationExport(options.organizationid, format, password);\n                const eventType = options.organizationid\n                    ? _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__.EventType.Organization_ClientExportedVault\n                    : _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_2__.EventType.User_ClientExportedVault;\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.eventCollectionService.collect(eventType, null, true, options.organizationid);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.error(e);\n            }\n            return yield this.saveFile(exportContent, options, format);\n        });\n    }\n    saveFile(exportContent, options, format) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const fileName = this.getFileName(format, options.organizationid != null ? \"org\" : null);\n                return yield _utils__WEBPACK_IMPORTED_MODULE_6__.CliUtils.saveResultToFile(exportContent, options.output, fileName);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.error(e.toString());\n            }\n        });\n    }\n    getFileName(format, prefix) {\n        if (format === \"encrypted_json\") {\n            if (prefix == null) {\n                prefix = \"encrypted\";\n            }\n            else {\n                prefix = \"encrypted_\" + prefix;\n            }\n            format = \"json\";\n        }\n        return this.exportService.getFileName(prefix, format);\n    }\n    promptPassword(password) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // boolean => flag set with no value, we need to prompt for password\n            // string => flag set with value, use this value for password\n            // undefined/null/false => account protect, not password, no password needed\n            if (typeof password === \"string\") {\n                return password;\n            }\n            else if (password) {\n                const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_0__.createPromptModule({\n                    output: process.stderr,\n                })({\n                    type: \"password\",\n                    name: \"password\",\n                    message: \"Export file password:\",\n                });\n                return answer.password;\n            }\n            return null;\n        });\n    }\n    isSupportedExportFormat(format) {\n        return _bitwarden_vault_export_core__WEBPACK_IMPORTED_MODULE_4__.EXPORT_FORMATS.includes(format);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10496 characters]\n//# sourceURL=webpack-internal:///./src/tools/export.command.ts\n");

/***/ }),

/***/ "./src/tools/generate.command.ts":
/*!***************************************!*\
  !*** ./src/tools/generate.command.ts ***!
  \***************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GenerateCommand: () => (/* binding */ GenerateCommand)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/generator-core */ \"../../libs/tools/generator/core/src/index.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_string_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response/string.response */ \"./src/models/response/string.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass GenerateCommand {\n    constructor(passwordGenerationService, stateService) {\n        this.passwordGenerationService = passwordGenerationService;\n        this.stateService = stateService;\n    }\n    run(cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const normalizedOptions = new Options(cmdOptions);\n            const options = {\n                uppercase: normalizedOptions.uppercase,\n                lowercase: normalizedOptions.lowercase,\n                number: normalizedOptions.number,\n                special: normalizedOptions.special,\n                length: normalizedOptions.length,\n                type: normalizedOptions.type,\n                wordSeparator: normalizedOptions.separator,\n                numWords: normalizedOptions.words,\n                capitalize: normalizedOptions.capitalize,\n                includeNumber: normalizedOptions.includeNumber,\n                minNumber: normalizedOptions.minNumber,\n                minSpecial: normalizedOptions.minSpecial,\n                ambiguous: normalizedOptions.ambiguous,\n            };\n            const enforcedOptions = (yield this.stateService.getIsAuthenticated())\n                ? (yield this.passwordGenerationService.enforcePasswordGeneratorPoliciesOnOptions(options))[0]\n                : options;\n            const password = yield this.passwordGenerationService.generatePassword(enforcedOptions);\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_2__.StringResponse(password);\n            return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.uppercase = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.uppercase);\n        this.lowercase = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.lowercase);\n        this.number = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.number);\n        this.special = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.special);\n        this.capitalize = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.capitalize);\n        this.includeNumber = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.includeNumber);\n        this.ambiguous = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.ambiguous);\n        this.length = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertNumberOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.length, _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordGenerationOptions.length);\n        this.type = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.passphrase) ? \"passphrase\" : \"password\";\n        this.separator = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertStringOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.separator, _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseGenerationOptions.wordSeparator);\n        this.words = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertNumberOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.words, _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseGenerationOptions.numWords);\n        this.minNumber = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertNumberOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.minNumber, _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordGenerationOptions.minNumber);\n        this.minSpecial = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertNumberOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.minSpecial, _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordGenerationOptions.minSpecial);\n        if (!this.uppercase && !this.lowercase && !this.special && !this.number) {\n            this.lowercase = true;\n            this.uppercase = true;\n            this.number = true;\n        }\n        if (this.length < 5) {\n            this.length = 5;\n        }\n        if (this.words < 3) {\n            this.words = 3;\n        }\n        if (this.separator === \"space\") {\n            this.separator = \" \";\n        }\n        else if (this.separator === \"empty\") {\n            this.separator = \"\";\n        }\n        else if (this.separator != null && this.separator.length > 1) {\n            this.separator = this.separator[0];\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10108 characters]\n//# sourceURL=webpack-internal:///./src/tools/generate.command.ts\n");

/***/ }),

/***/ "./src/tools/import.command.ts":
/*!*************************************!*\
  !*** ./src/tools/import.command.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportCommand: () => (/* binding */ ImportCommand)\n/* harmony export */ });\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inquirer */ \"inquirer\");\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inquirer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass ImportCommand {\n    constructor(importService, organizationService, syncService) {\n        this.importService = importService;\n        this.organizationService = organizationService;\n        this.syncService = syncService;\n    }\n    run(format, filepath, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const organizationId = options.organizationid;\n            if (organizationId != null) {\n                const organization = yield this.organizationService.getFromState(organizationId);\n                if (organization == null) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(`You do not belong to an organization with the ID of ${organizationId}. Check the organization ID and sync your vault.`);\n                }\n                if (!organization.canAccessImportExport) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"You are not authorized to import into the provided organization.\");\n                }\n            }\n            if (options.formats || false) {\n                return yield this.list();\n            }\n            else {\n                return yield this.import(format, filepath, organizationId);\n            }\n        });\n    }\n    import(format, filepath, organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (format == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`format` was not provided.\");\n            }\n            if (filepath == null || filepath === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`filepath` was not provided.\");\n            }\n            const promptForPassword_callback = () => __awaiter(this, void 0, void 0, function* () {\n                return yield this.promptPassword();\n            });\n            const importer = yield this.importService.getImporter(format, promptForPassword_callback, organizationId);\n            if (importer === null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"Proper importer type required.\");\n            }\n            try {\n                let contents;\n                if (format === \"1password1pux\" && filepath.endsWith(\".1pux\")) {\n                    contents = yield _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.extractZipContent(filepath, \"export.data\");\n                }\n                else if (format === \"protonpass\" && filepath.endsWith(\".zip\")) {\n                    contents = yield _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.extractZipContent(filepath, \"Proton Pass/data.json\");\n                }\n                else {\n                    contents = yield _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.readFile(filepath);\n                }\n                if (contents === null || contents === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"Import file was empty.\");\n                }\n                const response = yield this.importService.import(importer, contents, organizationId);\n                if (response.success) {\n                    // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                    this.syncService.fullSync(true);\n                    return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(new _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(\"Imported \" + filepath, null));\n                }\n            }\n            catch (err) {\n                if (err.message) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(err.message);\n                }\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(err);\n            }\n        });\n    }\n    list() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const options = this.importService\n                .getImportOptions()\n                .sort((a, b) => {\n                return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;\n            })\n                .map((option) => option.id)\n                .join(\"\\n\");\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(\"Supported input formats:\", options);\n            res.raw = options;\n            return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n        });\n    }\n    promptPassword() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_0__.createPromptModule({\n                output: process.stderr,\n            })({\n                type: \"password\",\n                name: \"password\",\n                message: \"Import file password:\",\n            });\n            return answer.password;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10140 characters]\n//# sourceURL=webpack-internal:///./src/tools/import.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/create.command.ts":
/*!***************************************************!*\
  !*** ./src/tools/send/commands/create.command.ts ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendCreateCommand: () => (/* binding */ SendCreateCommand)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/node/node-utils */ \"../../libs/node/src/node-utils.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../utils */ \"./src/utils.ts\");\n/* harmony import */ var _models_send_text_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/send-text.response */ \"./src/tools/send/models/send-text.response.ts\");\n/* harmony import */ var _models_send_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/send.response */ \"./src/tools/send/models/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\nclass SendCreateCommand {\n    constructor(sendService, environmentService, sendApiService, accountProfileService) {\n        this.sendService = sendService;\n        this.environmentService = environmentService;\n        this.sendApiService = sendApiService;\n        this.accountProfileService = accountProfileService;\n    }\n    run(requestJson, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let req = null;\n            if (process.env.BW_SERVE !== \"true\" && (requestJson == null || requestJson === \"\")) {\n                requestJson = yield _utils__WEBPACK_IMPORTED_MODULE_6__.CliUtils.readStdin();\n            }\n            if (requestJson == null || requestJson === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"`requestJson` was not provided.\");\n            }\n            if (typeof requestJson !== \"string\") {\n                req = requestJson;\n                req.deletionDate = req.deletionDate == null ? null : new Date(req.deletionDate);\n                req.expirationDate = req.expirationDate == null ? null : new Date(req.expirationDate);\n            }\n            else {\n                try {\n                    const reqJson = Buffer.from(requestJson, \"base64\").toString();\n                    req = _models_send_response__WEBPACK_IMPORTED_MODULE_8__.SendResponse.fromJson(reqJson);\n                    if (req == null) {\n                        throw new Error(\"Null request\");\n                    }\n                }\n                catch (e) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"Error parsing the encoded request data.\");\n                }\n            }\n            if (req.deletionDate == null ||\n                isNaN(new Date(req.deletionDate).getTime()) ||\n                new Date(req.deletionDate) <= new Date()) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"Must specify a valid deletion date after the current time\");\n            }\n            if (req.expirationDate != null && isNaN(new Date(req.expirationDate).getTime())) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"Unable to parse expirationDate: \" + req.expirationDate);\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            return this.createSend(req, normalizedOptions);\n        });\n    }\n    createSend(req, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b, _c, _d, _e, _f, _g, _h;\n            const filePath = (_b = (_a = req.file) === null || _a === void 0 ? void 0 : _a.fileName) !== null && _b !== void 0 ? _b : options.file;\n            const text = (_d = (_c = req.text) === null || _c === void 0 ? void 0 : _c.text) !== null && _d !== void 0 ? _d : options.text;\n            const hidden = (_f = (_e = req.text) === null || _e === void 0 ? void 0 : _e.hidden) !== null && _f !== void 0 ? _f : options.hidden;\n            const password = (_g = req.password) !== null && _g !== void 0 ? _g : options.password;\n            const maxAccessCount = (_h = req.maxAccessCount) !== null && _h !== void 0 ? _h : options.maxAccessCount;\n            req.key = null;\n            req.maxAccessCount = maxAccessCount;\n            switch (req.type) {\n                case _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.File:\n                    if (process.env.BW_SERVE === \"true\") {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.error(\"Creating a file-based Send is unsupported through the `serve` command at this time.\");\n                    }\n                    if (!(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.accountProfileService.hasPremiumFromAnySource$))) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.error(\"Premium status is required to use this feature.\");\n                    }\n                    if (filePath == null) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"Must specify a file to Send either with the --file option or in the request JSON.\");\n                    }\n                    req.file.fileName = path__WEBPACK_IMPORTED_MODULE_1__.basename(filePath);\n                    break;\n                case _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.Text:\n                    if (text == null) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"Must specify text content to Send either with the --text option or in the request JSON.\");\n                    }\n                    req.text = new _models_send_text_response__WEBPACK_IMPORTED_MODULE_7__.SendTextResponse();\n                    req.text.text = text;\n                    req.text.hidden = hidden;\n                    break;\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.badRequest(\"Unknown Send type \" + _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType[req.type] + \". Valid types are: file, text\");\n            }\n            try {\n                let fileBuffer = null;\n                if (req.type === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.File) {\n                    fileBuffer = _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_4__.NodeUtils.bufferToArrayBuffer(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(filePath));\n                }\n                const sendView = _models_send_response__WEBPACK_IMPORTED_MODULE_8__.SendResponse.toView(req);\n                const [encSend, fileData] = yield this.sendService.encrypt(sendView, fileBuffer, password);\n                // Add dates from template\n                encSend.deletionDate = sendView.deletionDate;\n                encSend.expirationDate = sendView.expirationDate;\n                yield this.sendApiService.save([encSend, fileData]);\n                const newSend = yield this.sendService.getFromState(encSend.id);\n                const decSend = yield newSend.decrypt();\n                const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.environmentService.environment$);\n                const res = new _models_send_response__WEBPACK_IMPORTED_MODULE_8__.SendResponse(decSend, env.getWebVaultUrl());\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_5__.Response.error(e);\n            }\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.file = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.file;\n        this.text = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.text;\n        this.password = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.password;\n        this.hidden = _utils__WEBPACK_IMPORTED_MODULE_6__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.hidden);\n        this.maxAccessCount =\n            (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.maxAccessCount) != null ? parseInt(passedOptions.maxAccessCount, null) : null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 14360 characters]\n//# sourceURL=webpack-internal:///./src/tools/send/commands/create.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/delete.command.ts":
/*!***************************************************!*\
  !*** ./src/tools/send/commands/delete.command.ts ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendDeleteCommand: () => (/* binding */ SendDeleteCommand)\n/* harmony export */ });\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass SendDeleteCommand {\n    constructor(sendService, sendApiService) {\n        this.sendService = sendService;\n        this.sendApiService = sendApiService;\n    }\n    run(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const send = yield this.sendService.getFromState(id);\n            if (send == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.notFound();\n            }\n            try {\n                yield this.sendApiService.delete(id);\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBP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CI6WyJpbXBvcnQgeyBTZW5kQXBpU2VydmljZSB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi90b29scy9zZW5kL3NlcnZpY2VzL3NlbmQtYXBpLnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbmltcG9ydCB7IFNlbmRTZXJ2aWNlIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL3Rvb2xzL3NlbmQvc2VydmljZXMvc2VuZC5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5cbmltcG9ydCB7IFJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgU2VuZERlbGV0ZUNvbW1hbmQge1xuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIHNlbmRTZXJ2aWNlOiBTZW5kU2VydmljZSxcbiAgICBwcml2YXRlIHNlbmRBcGlTZXJ2aWNlOiBTZW5kQXBpU2VydmljZSxcbiAgKSB7fVxuXG4gIGFzeW5jIHJ1bihpZDogc3RyaW5nKSB7XG4gICAgY29uc3Qgc2VuZCA9IGF3YWl0IHRoaXMuc2VuZFNlcnZpY2UuZ2V0RnJvbVN0YXRlKGlkKTtcblxuICAgIGlmIChzZW5kID09IG51bGwpIHtcbiAgICAgIHJldHVybiBSZXNwb25zZS5ub3RGb3VuZCgpO1xuICAgIH1cblxuICAgIHRyeSB7XG4gICAgICBhd2FpdCB0aGlzLnNlbmRBcGlTZXJ2aWNlLmRlbGV0ZShpZCk7XG4gICAgICByZXR1cm4gUmVzcG9uc2Uuc3VjY2VzcygpO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIHJldHVybiBSZXNwb25zZS5lcnJvcihlKTtcbiAgICB9XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/tools/send/commands/delete.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/edit.command.ts":
/*!*************************************************!*\
  !*** ./src/tools/send/commands/edit.command.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendEditCommand: () => (/* binding */ SendEditCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../utils */ \"./src/utils.ts\");\n/* harmony import */ var _models_send_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/send.response */ \"./src/tools/send/models/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass SendEditCommand {\n    constructor(sendService, getCommand, sendApiService, accountProfileService) {\n        this.sendService = sendService;\n        this.getCommand = getCommand;\n        this.sendApiService = sendApiService;\n        this.accountProfileService = accountProfileService;\n    }\n    run(requestJson, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (process.env.BW_SERVE !== \"true\" && (requestJson == null || requestJson === \"\")) {\n                requestJson = yield _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.readStdin();\n            }\n            if (requestJson == null || requestJson === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`requestJson` was not provided.\");\n            }\n            let req = null;\n            if (typeof requestJson !== \"string\") {\n                req = requestJson;\n                req.deletionDate = req.deletionDate == null ? null : new Date(req.deletionDate);\n                req.expirationDate = req.expirationDate == null ? null : new Date(req.expirationDate);\n            }\n            else {\n                try {\n                    const reqJson = Buffer.from(requestJson, \"base64\").toString();\n                    req = _models_send_response__WEBPACK_IMPORTED_MODULE_4__.SendResponse.fromJson(reqJson);\n                }\n                catch (e) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"Error parsing the encoded request data.\");\n                }\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            req.id = normalizedOptions.itemId || req.id;\n            if (req.id != null) {\n                req.id = req.id.toLowerCase();\n            }\n            const send = yield this.sendService.getFromState(req.id);\n            if (send == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.notFound();\n            }\n            if (send.type !== req.type) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"Cannot change a Send's type\");\n            }\n            const canAccessPremium = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountProfileService.hasPremiumFromAnySource$);\n            if (send.type === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File && !canAccessPremium) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"Premium status is required to use this feature.\");\n            }\n            let sendView = yield send.decrypt();\n            sendView = _models_send_response__WEBPACK_IMPORTED_MODULE_4__.SendResponse.toView(req, sendView);\n            if (typeof req.password !== \"string\" || req.password === \"\") {\n                req.password = null;\n            }\n            try {\n                const [encSend, encFileData] = yield this.sendService.encrypt(sendView, null, req.password);\n                // Add dates from template\n                encSend.deletionDate = sendView.deletionDate;\n                encSend.expirationDate = sendView.expirationDate;\n                yield this.sendApiService.save([encSend, encFileData]);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n            return yield this.getCommand.run(send.id, {});\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.itemId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemId) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemid);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8576 characters]\n//# sourceURL=webpack-internal:///./src/tools/send/commands/edit.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/get.command.ts":
/*!************************************************!*\
  !*** ./src/tools/send/commands/get.command.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendGetCommand: () => (/* binding */ SendGetCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _commands_download_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../commands/download.command */ \"./src/commands/download.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_send_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/send.response */ \"./src/tools/send/models/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass SendGetCommand extends _commands_download_command__WEBPACK_IMPORTED_MODULE_2__.DownloadCommand {\n    constructor(sendService, environmentService, searchService, encryptService) {\n        super(encryptService);\n        this.sendService = sendService;\n        this.environmentService = environmentService;\n        this.searchService = searchService;\n    }\n    run(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const serveCommand = process.env.BW_SERVE === \"true\";\n            if (serveCommand && !_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(id)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            let sends = yield this.getSendView(id);\n            if (sends == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.notFound();\n            }\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const webVaultUrl = env.getWebVaultUrl();\n            let filter = (s) => true;\n            let selector = (s) => __awaiter(this, void 0, void 0, function* () { return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.success(new _models_send_response__WEBPACK_IMPORTED_MODULE_4__.SendResponse(s, webVaultUrl)); });\n            if (!serveCommand && (options === null || options === void 0 ? void 0 : options.text) != null) {\n                filter = (s) => {\n                    return filter(s) && s.text != null;\n                };\n                selector = (s) => __awaiter(this, void 0, void 0, function* () {\n                    // Write to stdout and response success so we get the text string only to stdout\n                    process.stdout.write(s.text.text);\n                    return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.success();\n                });\n            }\n            if (Array.isArray(sends)) {\n                if (filter != null) {\n                    sends = sends.filter(filter);\n                }\n                if (sends.length > 1) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.multipleResults(sends.map((s) => s.id));\n                }\n                if (sends.length > 0) {\n                    return selector(sends[0]);\n                }\n                else {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_3__.Response.notFound();\n                }\n            }\n            return selector(sends);\n        });\n    }\n    getSendView(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(id)) {\n                const send = yield this.sendService.getFromState(id);\n                if (send != null) {\n                    return yield send.decrypt();\n                }\n            }\n            else if (id.trim() !== \"\") {\n                let sends = yield this.sendService.getAllDecryptedFromState();\n                sends = this.searchService.searchSends(sends, id);\n                if (sends.length > 1) {\n                    return sends;\n                }\n                else if (sends.length > 0) {\n                    return sends[0];\n                }\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7644 characters]\n//# sourceURL=webpack-internal:///./src/tools/send/commands/get.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/index.ts":
/*!******************************************!*\
  !*** ./src/tools/send/commands/index.ts ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendCreateCommand: () => (/* reexport safe */ _create_command__WEBPACK_IMPORTED_MODULE_0__.SendCreateCommand),\n/* harmony export */   SendDeleteCommand: () => (/* reexport safe */ _delete_command__WEBPACK_IMPORTED_MODULE_1__.SendDeleteCommand),\n/* harmony export */   SendEditCommand: () => (/* reexport safe */ _edit_command__WEBPACK_IMPORTED_MODULE_2__.SendEditCommand),\n/* harmony export */   SendGetCommand: () => (/* reexport safe */ _get_command__WEBPACK_IMPORTED_MODULE_3__.SendGetCommand),\n/* harmony export */   SendListCommand: () => (/* reexport safe */ _list_command__WEBPACK_IMPORTED_MODULE_4__.SendListCommand),\n/* harmony export */   SendReceiveCommand: () => (/* reexport safe */ _receive_command__WEBPACK_IMPORTED_MODULE_5__.SendReceiveCommand),\n/* harmony export */   SendRemovePasswordCommand: () => (/* reexport safe */ _remove_password_command__WEBPACK_IMPORTED_MODULE_6__.SendRemovePasswordCommand)\n/* harmony export */ });\n/* harmony import */ var _create_command__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create.command */ \"./src/tools/send/commands/create.command.ts\");\n/* harmony import */ var _delete_command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./delete.command */ \"./src/tools/send/commands/delete.command.ts\");\n/* harmony import */ var _edit_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit.command */ \"./src/tools/send/commands/edit.command.ts\");\n/* harmony import */ var _get_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get.command */ \"./src/tools/send/commands/get.command.ts\");\n/* harmony import */ var _list_command__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./list.command */ \"./src/tools/send/commands/list.command.ts\");\n/* harmony import */ var _receive_command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./receive.command */ \"./src/tools/send/commands/receive.command.ts\");\n/* harmony import */ var _remove_password_command__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./remove-password.command */ \"./src/tools/send/commands/remove-password.command.ts\");\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9jb21tYW5kcy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUFpQztBQUNBO0FBQ0Y7QUFDRDtBQUNDO0FBQ0c7QUFDUSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4vc3JjL3Rvb2xzL3NlbmQvY29tbWFuZHMvaW5kZXgudHM/NzYxNiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9jcmVhdGUuY29tbWFuZFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGVsZXRlLmNvbW1hbmRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2VkaXQuY29tbWFuZFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZ2V0LmNvbW1hbmRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpc3QuY29tbWFuZFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcmVjZWl2ZS5jb21tYW5kXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZW1vdmUtcGFzc3dvcmQuY29tbWFuZFwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/tools/send/commands/index.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/list.command.ts":
/*!*************************************************!*\
  !*** ./src/tools/send/commands/list.command.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendListCommand: () => (/* binding */ SendListCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../models/response/list.response */ \"./src/models/response/list.response.ts\");\n/* harmony import */ var _models_send_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/send.response */ \"./src/tools/send/models/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass SendListCommand {\n    constructor(sendService, environmentService, searchService) {\n        this.sendService = sendService;\n        this.environmentService = environmentService;\n        this.searchService = searchService;\n    }\n    run(cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let sends = yield this.sendService.getAllDecryptedFromState();\n            const normalizedOptions = new Options(cmdOptions);\n            if (normalizedOptions.search != null && normalizedOptions.search.trim() !== \"\") {\n                sends = this.searchService.searchSends(sends, normalizedOptions.search);\n            }\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const webVaultUrl = env.getWebVaultUrl();\n            const res = new _models_response_list_response__WEBPACK_IMPORTED_MODULE_2__.ListResponse(sends.map((s) => new _models_send_response__WEBPACK_IMPORTED_MODULE_3__.SendResponse(s, webVaultUrl)));\n            return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.search = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.search;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9jb21tYW5kcy9saXN0LmNvbW1hbmQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQXNDO0FBTWM7QUFDa0I7QUFDZjtBQUVoRCxNQUFNLGVBQWU7SUFDMUIsWUFDVSxXQUF3QixFQUN4QixrQkFBc0MsRUFDdEMsYUFBNEI7UUFGNUIsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFvQjtRQUN0QyxrQkFBYSxHQUFiLGFBQWEsQ0FBZTtJQUNuQyxDQUFDO0lBRUUsR0FBRyxDQUFDLFVBQStCOztZQUN2QyxJQUFJLEtBQUssR0FBRyxNQUFNLElBQUksQ0FBQyxXQUFXLENBQUMsd0JBQXdCLEVBQUUsQ0FBQztZQUU5RCxNQUFNLGlCQUFpQixHQUFHLElBQUksT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1lBQ2xELElBQUksaUJBQWlCLENBQUMsTUFBTSxJQUFJLElBQUksSUFBSSxpQkFBaUIsQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxFQUFFLENBQUM7Z0JBQy9FLEtBQUssR0FBRyxJQUFJLENBQUMsYUFBYSxDQUFDLFdBQVcsQ0FBQyxLQUFLLEVBQUUsaUJBQWlCLENBQUMsTUFBTSxDQUFDLENBQUM7WUFDMUUsQ0FBQztZQUVELE1BQU0sR0FBRyxHQUFHLE1BQU0sb0RBQWMsQ0FBQyxJQUFJLENBQUMsa0JBQWtCLENBQUMsWUFBWSxDQUFDLENBQUM7WUFDdkUsTUFBTSxXQUFXLE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1lbnRTZXJ2aWNlLmVudmlyb25tZW50JCk7XG4gICAgY29uc3Qgd2ViVmF1bHRVcmwgPSBlbnYuZ2V0V2ViVmF1bHRVcmwoKTtcbiAgICBjb25zdCByZXMgPSBuZXcgTGlzdFJlc3BvbnNlKHNlbmRzLm1hcCgocykgPT4gbmV3IFNlbmRSZXNwb25zZShzLCB3ZWJWYXVsdFVybCkpKTtcbiAgICByZXR1cm4gUmVzcG9uc2Uuc3VjY2VzcyhyZXMpO1xuICB9XG59XG5cbmNsYXNzIE9wdGlvbnMge1xuICBzZWFyY2g6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihwYXNzZWRPcHRpb25zOiBSZWNvcmQ8c3RyaW5nLCBhbnk+KSB7XG4gICAgdGhpcy5zZWFyY2ggPSBwYXNzZWRPcHRpb25zPy5zZWFyY2g7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/tools/send/commands/list.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/receive.command.ts":
/*!****************************************************!*\
  !*** ./src/tools/send/commands/receive.command.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendReceiveCommand: () => (/* binding */ SendReceiveCommand)\n/* harmony export */ });\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inquirer */ \"inquirer\");\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inquirer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_models_domain_send_access__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/tools/send/models/domain/send-access */ \"../../libs/common/src/tools/send/models/domain/send-access.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_models_request_send_access_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/tools/send/models/request/send-access.request */ \"../../libs/common/src/tools/send/models/request/send-access.request.ts\");\n/* harmony import */ var _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/node/node-utils */ \"../../libs/node/src/node-utils.ts\");\n/* harmony import */ var _commands_download_command__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../commands/download.command */ \"./src/commands/download.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_send_access_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../models/send-access.response */ \"./src/tools/send/models/send-access.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\nclass SendReceiveCommand extends _commands_download_command__WEBPACK_IMPORTED_MODULE_8__.DownloadCommand {\n    constructor(keyService, encryptService, cryptoFunctionService, platformUtilsService, environmentService, sendApiService) {\n        super(encryptService);\n        this.keyService = keyService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.platformUtilsService = platformUtilsService;\n        this.environmentService = environmentService;\n        this.sendApiService = sendApiService;\n    }\n    run(url, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            this.canInteract = process.env.BW_NOINTERACTION !== \"true\";\n            let urlObject;\n            try {\n                urlObject = new URL(url);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.badRequest(\"Failed to parse the provided Send url\");\n            }\n            const apiUrl = yield this.getApiUrl(urlObject);\n            const [id, key] = this.getIdAndKey(urlObject);\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isNullOrWhitespace(id) || _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isNullOrWhitespace(key)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.badRequest(\"Failed to parse url, the url provided is not a valid Send url\");\n            }\n            const keyArray = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromUrlB64ToArray(key);\n            this.sendAccessRequest = new _bitwarden_common_tools_send_models_request_send_access_request__WEBPACK_IMPORTED_MODULE_6__.SendAccessRequest();\n            let password = options.password;\n            if (password == null || password === \"\") {\n                if (options.passwordfile) {\n                    password = yield _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_7__.NodeUtils.readFirstLine(options.passwordfile);\n                }\n                else if (options.passwordenv && process.env[options.passwordenv]) {\n                    password = process.env[options.passwordenv];\n                }\n            }\n            if (password != null && password !== \"\") {\n                this.sendAccessRequest.password = yield this.getUnlockedPassword(password, keyArray);\n            }\n            const response = yield this.sendRequest(apiUrl, id, keyArray);\n            if (response instanceof _models_response__WEBPACK_IMPORTED_MODULE_9__.Response) {\n                // Error scenario\n                return response;\n            }\n            if (options.obj != null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.success(new _models_send_access_response__WEBPACK_IMPORTED_MODULE_10__.SendAccessResponse(response));\n            }\n            switch (response.type) {\n                case _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_4__.SendType.Text:\n                    // Write to stdout and response success so we get the text string only to stdout\n                    process.stdout.write((_a = response === null || response === void 0 ? void 0 : response.text) === null || _a === void 0 ? void 0 : _a.text);\n                    return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.success();\n                case _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_4__.SendType.File: {\n                    const downloadData = yield this.sendApiService.getSendFileDownloadData(response, this.sendAccessRequest, apiUrl);\n                    return yield this.saveAttachmentToFile(downloadData.url, this.decKey, (_b = response === null || response === void 0 ? void 0 : response.file) === null || _b === void 0 ? void 0 : _b.fileName, options.output);\n                }\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.success(new _models_send_access_response__WEBPACK_IMPORTED_MODULE_10__.SendAccessResponse(response));\n            }\n        });\n    }\n    getIdAndKey(url) {\n        const result = url.hash.slice(1).split(\"/\").slice(-2);\n        return [result[0], result[1]];\n    }\n    getApiUrl(url) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.environmentService.environment$);\n            const urls = env.getUrls();\n            if (url.origin === \"https://send.bitwarden.com\") {\n                return \"https://api.bitwarden.com\";\n            }\n            else if (url.origin === urls.api) {\n                return url.origin;\n            }\n            else if (this.platformUtilsService.isDev() && url.origin === urls.webVault) {\n                return urls.api;\n            }\n            else {\n                return url.origin + \"/api\";\n            }\n        });\n    }\n    getUnlockedPassword(password, keyArray) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const passwordHash = yield this.cryptoFunctionService.pbkdf2(password, keyArray, \"sha256\", 100000);\n            return _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromBufferToB64(passwordHash);\n        });\n    }\n    sendRequest(url, id, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const sendResponse = yield this.sendApiService.postSendAccess(id, this.sendAccessRequest, url);\n                const sendAccess = new _bitwarden_common_tools_send_models_domain_send_access__WEBPACK_IMPORTED_MODULE_5__.SendAccess(sendResponse);\n                this.decKey = yield this.keyService.makeSendKey(key);\n                return yield sendAccess.decrypt(this.decKey);\n            }\n            catch (e) {\n                if (e instanceof _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_2__.ErrorResponse) {\n                    if (e.statusCode === 401) {\n                        if (this.canInteract) {\n                            const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_0__.createPromptModule({\n                                output: process.stderr,\n                            })({\n                                type: \"password\",\n                                name: \"password\",\n                                message: \"Send password:\",\n                            });\n                            // reattempt with new password\n                            this.sendAccessRequest.password = yield this.getUnlockedPassword(answer.password, key);\n                            return yield this.sendRequest(url, id, key);\n                        }\n                        return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.badRequest(\"Incorrect or missing password\");\n                    }\n                    else if (e.statusCode === 405) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.badRequest(\"Bad Request\");\n                    }\n                    else if (e.statusCode === 404) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.notFound();\n                    }\n                }\n                return _models_response__WEBPACK_IMPORTED_MODULE_9__.Response.error(e);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15440 characters]\n//# sourceURL=webpack-internal:///./src/tools/send/commands/receive.command.ts\n");

/***/ }),

/***/ "./src/tools/send/commands/remove-password.command.ts":
/*!************************************************************!*\
  !*** ./src/tools/send/commands/remove-password.command.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendRemovePasswordCommand: () => (/* binding */ SendRemovePasswordCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_send_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/send.response */ \"./src/tools/send/models/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass SendRemovePasswordCommand {\n    constructor(sendService, sendApiService, environmentService) {\n        this.sendService = sendService;\n        this.sendApiService = sendApiService;\n        this.environmentService = environmentService;\n    }\n    run(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                yield this.sendApiService.removePassword(id);\n                const updatedSend = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.sendService.get$(id));\n                const decSend = yield updatedSend.decrypt();\n                const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n                const webVaultUrl = env.getWebVaultUrl();\n                const res = new _models_send_response__WEBPACK_IMPORTED_MODULE_2__.SendResponse(decSend, webVaultUrl);\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9jb21tYW5kcy9yZW1vdmUtcGFzc3dvcmQuY29tbWFuZC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUFzQztBQU1jO0FBQ0c7QUFFaEQsTUFBTSx5QkFBeUI7SUFDcEMsWUFDVSxXQUF3QixFQUN4QixjQUE4QixFQUM5QixrQkFBc0M7UUFGdEMsZ0JBQVcsR0FBWCxXQUFXLENBQWE7UUFDeEIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBQzlCLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBb0I7SUFDN0MsQ0FBQztJQUVFLEdBQUcsQ0FBQyxFQUFVOztZQUNsQixJQUFJLENBQUM7Z0JBQ0gsTUFBTSxJQUFJLENBQUMsY0FBYyxDQUFDLGNBQWMsQ0FBQyxFQUFFLENBQUMsQ0FBQztnQkFFN0MsTUFBTSxXQUFXLEdBQUcsTUFBTSxvREFBYyxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7Z0JBQ3BFLE1BQU0sT0FBTyxHQUFHLE1BQU0sV0FBVy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Y2VzcyhyZXMpO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIHJldHVybiBSZXNwb25zZS5lcnJvcihlKTtcbiAgICB9XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/tools/send/commands/remove-password.command.ts\n");

/***/ }),

/***/ "./src/tools/send/index.ts":
/*!*********************************!*\
  !*** ./src/tools/send/index.ts ***!
  \*********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendCreateCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendCreateCommand),\n/* harmony export */   SendDeleteCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendDeleteCommand),\n/* harmony export */   SendEditCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendEditCommand),\n/* harmony export */   SendGetCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendGetCommand),\n/* harmony export */   SendListCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendListCommand),\n/* harmony export */   SendReceiveCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendReceiveCommand),\n/* harmony export */   SendRemovePasswordCommand: () => (/* reexport safe */ _commands__WEBPACK_IMPORTED_MODULE_0__.SendRemovePasswordCommand)\n/* harmony export */ });\n/* harmony import */ var _commands__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./commands */ \"./src/tools/send/commands/index.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUEyQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4vc3JjL3Rvb2xzL3NlbmQvaW5kZXgudHM/Mjg1MiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9jb21tYW5kc1wiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/tools/send/index.ts\n");

/***/ }),

/***/ "./src/tools/send/models/send-access.response.ts":
/*!*******************************************************!*\
  !*** ./src/tools/send/models/send-access.response.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendAccessResponse: () => (/* binding */ SendAccessResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _send_file_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./send-file.response */ \"./src/tools/send/models/send-file.response.ts\");\n/* harmony import */ var _send_text_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./send-text.response */ \"./src/tools/send/models/send-text.response.ts\");\n\n\n\nclass SendAccessResponse {\n    static template() {\n        const req = new SendAccessResponse();\n        req.name = \"Send name\";\n        req.type = _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.Text;\n        req.text = null;\n        req.file = null;\n        return req;\n    }\n    constructor(o) {\n        this.object = \"send-access\";\n        if (o == null) {\n            return;\n        }\n        this.id = o.id;\n        this.name = o.name;\n        this.type = o.type;\n        if (o.type === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.Text && o.text != null) {\n            this.text = new _send_text_response__WEBPACK_IMPORTED_MODULE_2__.SendTextResponse(o.text);\n        }\n        if (o.type === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.File && o.file != null) {\n            this.file = new _send_file_response__WEBPACK_IMPORTED_MODULE_1__.SendFileResponse(o.file);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9tb2RlbHMvc2VuZC1hY2Nlc3MucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUF3RTtBQUtoQjtBQUNBO0FBRWpELE1BQU0sa0JBQWtCO0lBQzdCLE1BQU0sQ0FBQyxRQUFRO1FBQ2IsTUFBTSxHQUFHLEdBQUcsSUFBSSxrQkFBa0IsRUFBRSxDQUFDO1FBQ3JDLEdBQUcsQ0FBQyxJQUFJLEdBQUcsV0FBVyxDQUFDO1FBQ3ZCLEdBQUcsQ0FBQyxJQUFJLEdBQUcsa0ZBQVEsQ0FBQyxJQUFJLENBQUM7UUFDekIsR0FBRyxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7UUFDaEIsR0FBRyxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7UUFDaEIsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0lBU0QsWUFBWSxDQUFrQjtRQVA5QixXQUFNLEdBQUcsYUFBYSxDQUFDO1FBUXJCLElBQUksQ0FBQyxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2QsT0FBTztRQUNULENBQUM7UUFDRCxJQUFJLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUM7UUFDZixJQUFJLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDbkIsSUFBSSxDQUFDLElBQUksR0FBRyxDQUFDLENBQUMsSUFBSSxDQUFDO1FBRW5CLElBQUksQ0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G59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/tools/send/models/send-access.response.ts\n");

/***/ }),

/***/ "./src/tools/send/models/send-file.response.ts":
/*!*****************************************************!*\
  !*** ./src/tools/send/models/send-file.response.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFileResponse: () => (/* binding */ SendFileResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_tools_send_models_view_send_file_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/tools/send/models/view/send-file.view */ \"../../libs/common/src/tools/send/models/view/send-file.view.ts\");\n\nclass SendFileResponse {\n    static template(fileName = \"file attachment location\") {\n        const req = new SendFileResponse();\n        req.fileName = fileName;\n        return req;\n    }\n    static toView(file, view = new _bitwarden_common_tools_send_models_view_send_file_view__WEBPACK_IMPORTED_MODULE_0__.SendFileView()) {\n        if (file == null) {\n            return null;\n        }\n        view.id = file.id;\n        view.size = file.size;\n        view.sizeName = file.sizeName;\n        view.fileName = file.fileName;\n        return view;\n    }\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.id = o.id;\n        this.size = o.size;\n        this.sizeName = o.sizeName;\n        this.fileName = o.fileName;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9tb2RlbHMvc2VuZC1maWxlLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXVGO0FBRWhGLE1BQU0sZ0JBQWdCO0lBQzNCLE1BQU0sQ0FBQyxRQUFRLENBQUMsUUFBUSxHQUFHLDBCQUEwQjtRQUNuRCxNQUFNLEdBQUcsR0FBRyxJQUFJLGdCQUFnQix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hpcy5maWxlTmFtZSA9IG8uZmlsZU5hbWU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/tools/send/models/send-file.response.ts\n");

/***/ }),

/***/ "./src/tools/send/models/send-text.response.ts":
/*!*****************************************************!*\
  !*** ./src/tools/send/models/send-text.response.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendTextResponse: () => (/* binding */ SendTextResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_tools_send_models_view_send_text_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/tools/send/models/view/send-text.view */ \"../../libs/common/src/tools/send/models/view/send-text.view.ts\");\n\nclass SendTextResponse {\n    static template(text = \"Text contained in the send.\", hidden = false) {\n        const req = new SendTextResponse();\n        req.text = text;\n        req.hidden = hidden;\n        return req;\n    }\n    static toView(text, view = new _bitwarden_common_tools_send_models_view_send_text_view__WEBPACK_IMPORTED_MODULE_0__.SendTextView()) {\n        if (text == null) {\n            return null;\n        }\n        view.text = text.text;\n        view.hidden = text.hidden;\n        return view;\n    }\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.text = o.text;\n        this.hidden = o.hidden;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdG9vbHMvc2VuZC9tb2RlbHMvc2VuZC10ZXh0LnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXVGO0FBRWhGLE1BQU0sZ0JBQWdCO0lBQzNCLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxHQUFHLDZCQUE2QixFQUFFLE1BQU0sR0FBRyxLQUFLO1FBQ2xFLE1BQ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G9uc2Uge1xuICBzdGF0aWMgdGVtcGxhdGUodGV4dCA9IFwiVGV4dCBjb250YWluZWQgaW4gdGhlIHNlbmQuXCIsIGhpZGRlbiA9IGZhbHNlKTogU2VuZFRleHRSZXNwb25zZSB7XG4gICAgY29uc3QgcmVxID0gbmV3IFNlbmRUZXh0UmVzcG9uc2UoKTtcbiAgICByZXEudGV4dCA9IHRleHQ7XG4gICAgcmVxLmhpZGRlbiA9IGhpZGRlbjtcbiAgICByZXR1cm4gcmVxO1xuICB9XG5cbiAgc3RhdGljIHRvVmlldyh0ZXh0OiBTZW5kVGV4dFJlc3BvbnNlLCB2aWV3ID0gbmV3IFNlbmRUZXh0VmlldygpKSB7XG4gICAgaWYgKHRleHQgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgdmlldy50ZXh0ID0gdGV4dC50ZXh0O1xuICAgIHZpZXcuaGlkZGVuID0gdGV4dC5oaWRkZW47XG4gICAgcmV0dXJuIHZpZXc7XG4gIH1cbiAgdGV4dDogc3RyaW5nO1xuICBoaWRkZW46IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3Iobz86IFNlbmRUZXh0Vmlldykge1xuICAgIGlmIChvID09IG51bGwpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy50ZXh0ID0gby50ZXh0O1xuICAgIHRoaXMuaGlkZGVuID0gby5oaWRkZW47XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/tools/send/models/send-text.response.ts\n");

/***/ }),

/***/ "./src/tools/send/models/send.response.ts":
/*!************************************************!*\
  !*** ./src/tools/send/models/send.response.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendResponse: () => (/* binding */ SendResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_models_view_send_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/send/models/view/send.view */ \"../../libs/common/src/tools/send/models/view/send.view.ts\");\n/* harmony import */ var _send_file_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./send-file.response */ \"./src/tools/send/models/send-file.response.ts\");\n/* harmony import */ var _send_text_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./send-text.response */ \"./src/tools/send/models/send-text.response.ts\");\n\n\n\n\n\nconst dateProperties = [\n    _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.nameOf(\"deletionDate\"),\n    _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.nameOf(\"expirationDate\"),\n];\nclass SendResponse {\n    static template(sendType, deleteInDays = 7) {\n        const req = new SendResponse();\n        req.name = \"Send name\";\n        req.notes = \"Some notes about this send.\";\n        req.type = sendType === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File ? _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File : _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.Text;\n        req.text = sendType === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.Text ? _send_text_response__WEBPACK_IMPORTED_MODULE_4__.SendTextResponse.template() : null;\n        req.file = sendType === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File ? _send_file_response__WEBPACK_IMPORTED_MODULE_3__.SendFileResponse.template() : null;\n        req.maxAccessCount = null;\n        req.deletionDate = this.getStandardDeletionDate(deleteInDays);\n        req.expirationDate = null;\n        req.password = null;\n        req.disabled = false;\n        req.hideEmail = false;\n        return req;\n    }\n    static toView(send, view = new _bitwarden_common_tools_send_models_view_send_view__WEBPACK_IMPORTED_MODULE_2__.SendView()) {\n        if (send == null) {\n            return null;\n        }\n        view.id = send.id;\n        view.accessId = send.accessId;\n        view.name = send.name;\n        view.notes = send.notes;\n        view.key = send.key == null ? null : _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromB64ToArray(send.key);\n        view.type = send.type;\n        view.file = _send_file_response__WEBPACK_IMPORTED_MODULE_3__.SendFileResponse.toView(send.file);\n        view.text = _send_text_response__WEBPACK_IMPORTED_MODULE_4__.SendTextResponse.toView(send.text);\n        view.maxAccessCount = send.maxAccessCount;\n        view.accessCount = send.accessCount;\n        view.revisionDate = send.revisionDate;\n        view.deletionDate = send.deletionDate;\n        view.expirationDate = send.expirationDate;\n        view.password = send.password;\n        view.disabled = send.disabled;\n        view.hideEmail = send.hideEmail;\n        return view;\n    }\n    static fromJson(json) {\n        return JSON.parse(json, (key, value) => {\n            if (dateProperties.includes(key)) {\n                return value == null ? null : new Date(value);\n            }\n            return value;\n        });\n    }\n    static getStandardDeletionDate(days) {\n        const d = new Date();\n        d.setTime(d.getTime() + days * 86400000); // ms per day\n        return d;\n    }\n    constructor(o, webVaultUrl) {\n        this.object = \"send\";\n        if (o == null) {\n            return;\n        }\n        this.id = o.id;\n        this.accessId = o.accessId;\n        let sendLinkBaseUrl = webVaultUrl;\n        if (sendLinkBaseUrl == null) {\n            sendLinkBaseUrl = \"https://send.bitwarden.com/#\";\n        }\n        else {\n            sendLinkBaseUrl += \"/#/send/\";\n        }\n        this.accessUrl = sendLinkBaseUrl + this.accessId + \"/\" + o.urlB64Key;\n        this.name = o.name;\n        this.notes = o.notes;\n        this.key = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(o.key);\n        this.type = o.type;\n        this.maxAccessCount = o.maxAccessCount;\n        this.accessCount = o.accessCount;\n        this.revisionDate = o.revisionDate;\n        this.deletionDate = o.deletionDate;\n        this.expirationDate = o.expirationDate;\n        this.passwordSet = o.password != null;\n        this.disabled = o.disabled;\n        this.hideEmail = o.hideEmail;\n        if (o.type === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.Text && o.text != null) {\n            this.text = new _send_text_response__WEBPACK_IMPORTED_MODULE_4__.SendTextResponse(o.text);\n        }\n        if (o.type === _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File && o.file != null) {\n            this.file = new _send_file_response__WEBPACK_IMPORTED_MODULE_3__.SendFileResponse(o.file);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10768 characters]\n//# sourceURL=webpack-internal:///./src/tools/send/models/send.response.ts\n");

/***/ }),

/***/ "./src/tools/send/send.program.ts":
/*!****************************************!*\
  !*** ./src/tools/send/send.program.ts ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendProgram: () => (/* binding */ SendProgram)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! chalk */ \"chalk\");\n/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(chalk__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/tools/send/enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _base_program__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../base-program */ \"./src/base-program.ts\");\n/* harmony import */ var _commands_get_command__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../commands/get.command */ \"./src/commands/get.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils */ \"./src/utils.ts\");\n/* harmony import */ var _commands__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./commands */ \"./src/tools/send/commands/index.ts\");\n/* harmony import */ var _models_send_file_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/send-file.response */ \"./src/tools/send/models/send-file.response.ts\");\n/* harmony import */ var _models_send_text_response__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./models/send-text.response */ \"./src/tools/send/models/send-text.response.ts\");\n/* harmony import */ var _models_send_response__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./models/send.response */ \"./src/tools/send/models/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst writeLn = _utils__WEBPACK_IMPORTED_MODULE_9__.CliUtils.writeLn;\nclass SendProgram extends _base_program__WEBPACK_IMPORTED_MODULE_6__.BaseProgram {\n    register() {\n        commander__WEBPACK_IMPORTED_MODULE_3__.program.addCommand(this.sendCommand());\n        // receive is accessible both at `bw receive` and `bw send receive`\n        commander__WEBPACK_IMPORTED_MODULE_3__.program.addCommand(this.receiveCommand());\n    }\n    sendCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"send\")\n            .argument(\"<data>\", \"The data to Send. Specify as a filepath with the --file option\")\n            .description(\"Work with Bitwarden sends. A Send can be quickly created using this command or subcommands can be used to fine-tune the Send\")\n            .option(\"-f, --file\", \"Specifies that <data> is a filepath\")\n            .option(\"-d, --deleteInDays <days>\", \"The number of days in the future to set deletion date, defaults to 7\", \"7\")\n            .option(\"-a, --maxAccessCount <amount>\", \"The amount of max possible accesses.\")\n            .option(\"--hidden\", \"Hide <data> in web by default. Valid only if --file is not set.\")\n            .option(\"-n, --name <name>\", \"The name of the Send. Defaults to a guid for text Sends and the filename for files.\")\n            .option(\"--notes <notes>\", \"Notes to add to the Send.\")\n            .option(\"--fullObject\", \"Specifies that the full Send object should be returned rather than just the access url.\")\n            .addCommand(this.listCommand())\n            .addCommand(this.templateCommand())\n            .addCommand(this.getCommand())\n            .addCommand(this.receiveCommand())\n            .addCommand(this.createCommand())\n            .addCommand(this.editCommand())\n            .addCommand(this.removePasswordCommand())\n            .addCommand(this.deleteCommand())\n            .action((data, options) => __awaiter(this, void 0, void 0, function* () {\n            const encodedJson = this.makeSendJson(data, options);\n            let response;\n            if (encodedJson instanceof _models_response__WEBPACK_IMPORTED_MODULE_8__.Response) {\n                response = encodedJson;\n            }\n            else {\n                response = yield this.runCreate(encodedJson, options);\n            }\n            this.processResponse(response);\n        }));\n    }\n    receiveCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"receive\")\n            .arguments(\"<url>\")\n            .description(\"Access a Bitwarden Send from a url\")\n            .option(\"--password <password>\", \"Password needed to access the Send.\")\n            .option(\"--passwordenv <passwordenv>\", \"Environment variable storing the Send's password\")\n            .option(\"--passwordfile <passwordfile>\", \"Path to a file containing the Sends password as its first line\")\n            .option(\"--obj\", \"Return the Send's json object rather than the Send's content\")\n            .option(\"--output <location>\", \"Specify a file path to save a File-type Send to\")\n            .on(\"--help\", () => {\n            writeLn(\"\");\n            writeLn(\"If a password is required, the provided password is used or the user is prompted.\");\n            writeLn(\"\", true);\n        })\n            .action((url, options) => __awaiter(this, void 0, void 0, function* () {\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendReceiveCommand(this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.cryptoFunctionService, this.serviceContainer.platformUtilsService, this.serviceContainer.environmentService, this.serviceContainer.sendApiService);\n            const response = yield cmd.run(url, options);\n            this.processResponse(response);\n        }));\n    }\n    listCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"list\")\n            .description(\"List all the Sends owned by you\")\n            .on(\"--help\", () => {\n            writeLn(chalk__WEBPACK_IMPORTED_MODULE_2__(\"This is in the list command\"));\n        })\n            .action((options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendListCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.searchService);\n            const response = yield cmd.run(options);\n            this.processResponse(response);\n        }));\n    }\n    templateCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"template\")\n            .argument(\"<object>\", \"Valid objects are: send.text, send.file\")\n            .description(\"Get json templates for send objects\")\n            .action((object) => __awaiter(this, void 0, void 0, function* () {\n            const cmd = new _commands_get_command__WEBPACK_IMPORTED_MODULE_7__.GetCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.collectionService, this.serviceContainer.totpService, this.serviceContainer.auditService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.stateService, this.serviceContainer.searchService, this.serviceContainer.apiService, this.serviceContainer.organizationService, this.serviceContainer.eventCollectionService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.accountService);\n            const response = yield cmd.run(\"template\", object, null);\n            this.processResponse(response);\n        }));\n    }\n    getCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"get\")\n            .arguments(\"<id>\")\n            .description(\"Get Sends owned by you.\")\n            .option(\"--output <output>\", \"Output directory or filename for attachment.\")\n            .option(\"--text\", \"Specifies to return the text content of a Send\")\n            .on(\"--help\", () => {\n            writeLn(\"\");\n            writeLn(\"  Id:\");\n            writeLn(\"\");\n            writeLn(\"    Search term or Send's globally unique `id`.\");\n            writeLn(\"\");\n            writeLn(\"    If raw output is specified and no output filename or directory is given for\");\n            writeLn(\"    an attachment query, the attachment content is written to stdout.\");\n            writeLn(\"\");\n            writeLn(\"  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw send get searchText\");\n            writeLn(\"    bw send get id\");\n            writeLn(\"    bw send get searchText --text\");\n            writeLn(\"    bw send get searchText --file\");\n            writeLn(\"    bw send get searchText --file --output ../Photos/photo.jpg\");\n            writeLn(\"    bw send get searchText --file --raw\");\n            writeLn(\"\", true);\n        })\n            .action((id, options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendGetCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.searchService, this.serviceContainer.encryptService);\n            const response = yield cmd.run(id, options);\n            this.processResponse(response);\n        }));\n    }\n    createCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"create\")\n            .argument(\"[encodedJson]\", \"JSON object to upload. Can also be piped in through stdin.\")\n            .description(\"create a Send\")\n            .option(\"--file <path>\", \"file to Send. Can also be specified in parent's JSON.\")\n            .option(\"--text <text>\", \"text to Send. Can also be specified in parent's JSON.\")\n            .option(\"--hidden\", \"text hidden flag. Valid only with the --text option.\")\n            .option(\"--password <password>\", \"optional password to access this Send. Can also be specified in JSON\")\n            .on(\"--help\", () => {\n            writeLn(\"\");\n            writeLn(\"Note:\");\n            writeLn(\"  Options specified in JSON take precedence over command options\");\n            writeLn(\"\", true);\n        })\n            .action((encodedJson, options, args) => __awaiter(this, void 0, void 0, function* () {\n            // Work-around to support `--fullObject` option for `send create --fullObject`\n            // Calling `option('--fullObject', ...)` above won't work due to Commander doesn't like same option\n            // to be defind on both parent-command and sub-command\n            const { fullObject = false } = args.parent.opts();\n            const mergedOptions = Object.assign(Object.assign({}, options), { fullObject: fullObject });\n            const response = yield this.runCreate(encodedJson, mergedOptions);\n            this.processResponse(response);\n        }));\n    }\n    editCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"edit\")\n            .argument(\"[encodedJson]\", \"Updated JSON object to save. If not provided, encodedJson is read from stdin.\")\n            .description(\"edit a Send\")\n            .option(\"--itemid <itemid>\", \"Overrides the itemId provided in [encodedJson]\")\n            .on(\"--help\", () => {\n            writeLn(\"\");\n            writeLn(\"Note:\");\n            writeLn(\"  You cannot update a File-type Send's file. Just delete and remake it\");\n            writeLn(\"\", true);\n        })\n            .action((encodedJson, options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const getCmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendGetCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.searchService, this.serviceContainer.encryptService);\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendEditCommand(this.serviceContainer.sendService, getCmd, this.serviceContainer.sendApiService, this.serviceContainer.billingAccountProfileStateService);\n            const response = yield cmd.run(encodedJson, options);\n            this.processResponse(response);\n        }));\n    }\n    deleteCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"delete\")\n            .argument(\"<id>\", \"The id of the Send to delete.\")\n            .description(\"delete a Send\")\n            .action((id) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendDeleteCommand(this.serviceContainer.sendService, this.serviceContainer.sendApiService);\n            const response = yield cmd.run(id);\n            this.processResponse(response);\n        }));\n    }\n    removePasswordCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_3__.Command(\"remove-password\")\n            .argument(\"<id>\", \"The id of the Send to alter.\")\n            .description(\"removes the saved password from a Send.\")\n            .action((id) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendRemovePasswordCommand(this.serviceContainer.sendService, this.serviceContainer.sendApiService, this.serviceContainer.environmentService);\n            const response = yield cmd.run(id);\n            this.processResponse(response);\n        }));\n    }\n    makeSendJson(data, options) {\n        var _a;\n        let sendFile = null;\n        let sendText = null;\n        let name = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.newGuid();\n        let type = _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_5__.SendType.Text;\n        if (options.file != null) {\n            data = path__WEBPACK_IMPORTED_MODULE_1__.resolve(data);\n            if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(data)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest(\"data path does not exist\");\n            }\n            sendFile = _models_send_file_response__WEBPACK_IMPORTED_MODULE_11__.SendFileResponse.template(data);\n            name = path__WEBPACK_IMPORTED_MODULE_1__.basename(data);\n            type = _bitwarden_common_tools_send_enums_send_type__WEBPACK_IMPORTED_MODULE_5__.SendType.File;\n        }\n        else {\n            sendText = _models_send_text_response__WEBPACK_IMPORTED_MODULE_12__.SendTextResponse.template(data, options.hidden);\n        }\n        const template = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.assign(_models_send_response__WEBPACK_IMPORTED_MODULE_13__.SendResponse.template(null, options.deleteInDays), {\n            name: (_a = options.name) !== null && _a !== void 0 ? _a : name,\n            notes: options.notes,\n            file: sendFile,\n            text: sendText,\n            type: type,\n        });\n        return Buffer.from(JSON.stringify(template), \"utf8\").toString(\"base64\");\n    }\n    runCreate(encodedJson, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = new _commands__WEBPACK_IMPORTED_MODULE_10__.SendCreateCommand(this.serviceContainer.sendService, this.serviceContainer.environmentService, this.serviceContainer.sendApiService, this.serviceContainer.billingAccountProfileStateService);\n            return yield cmd.run(encodedJson, options);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29364 characters]\n//# sourceURL=webpack-internal:///./src/tools/send/send.program.ts\n");

/***/ }),

/***/ "./src/utils.ts":
/*!**********************!*\
  !*** ./src/utils.ts ***!
  \**********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CliUtils: () => (/* binding */ CliUtils)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! inquirer */ \"inquirer\");\n/* harmony import */ var inquirer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(inquirer__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! jszip */ \"jszip\");\n/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/node/node-utils */ \"../../libs/node/src/node-utils.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./models/response/message.response */ \"./src/models/response/message.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\nclass CliUtils {\n    static writeLn(s, finalLine = false, error = false) {\n        const stream = error ? process.stderr : process.stdout;\n        if (finalLine && (process.platform === \"win32\" || !stream.isTTY)) {\n            stream.write(s);\n        }\n        else {\n            stream.write(s + \"\\n\");\n        }\n    }\n    static readFile(input) {\n        return new Promise((resolve, reject) => {\n            let p = null;\n            if (input != null && input !== \"\") {\n                const osInput = path__WEBPACK_IMPORTED_MODULE_1__.join(input);\n                if (osInput.indexOf(path__WEBPACK_IMPORTED_MODULE_1__.sep) === -1) {\n                    p = path__WEBPACK_IMPORTED_MODULE_1__.join(process.cwd(), osInput);\n                }\n                else {\n                    p = osInput;\n                }\n            }\n            else {\n                reject(\"You must specify a file path.\");\n            }\n            fs__WEBPACK_IMPORTED_MODULE_0__.readFile(p, \"utf8\", (err, data) => {\n                if (err != null) {\n                    reject(err.message);\n                }\n                resolve(data);\n            });\n        });\n    }\n    static extractZipContent(input, filepath) {\n        return new Promise((resolve, reject) => {\n            let p = null;\n            if (input != null && input !== \"\") {\n                const osInput = path__WEBPACK_IMPORTED_MODULE_1__.join(input);\n                if (osInput.indexOf(path__WEBPACK_IMPORTED_MODULE_1__.sep) === -1) {\n                    p = path__WEBPACK_IMPORTED_MODULE_1__.join(process.cwd(), osInput);\n                }\n                else {\n                    p = osInput;\n                }\n            }\n            else {\n                reject(\"You must specify a file path.\");\n            }\n            fs__WEBPACK_IMPORTED_MODULE_0__.readFile(p, function (err, data) {\n                if (err) {\n                    reject(err);\n                }\n                jszip__WEBPACK_IMPORTED_MODULE_3__.loadAsync(data).then((zip) => {\n                    resolve(zip.file(filepath).async(\"string\"));\n                }, (reason) => {\n                    reject(reason);\n                });\n            });\n        });\n    }\n    /**\n     * Save the given data to a file and determine the target file if necessary.\n     * If output is non-empty, it is used as target filename. Otherwise the target filename is\n     * built from the current working directory and the given defaultFileName.\n     *\n     * @param data to be written to the file.\n     * @param output file to write to or empty to choose automatically.\n     * @param defaultFileName to use when no explicit output filename is given.\n     * @return the chosen output file.\n     */\n    static saveFile(data, output, defaultFileName) {\n        let p = null;\n        let mkdir = false;\n        if (output != null && output !== \"\") {\n            const osOutput = path__WEBPACK_IMPORTED_MODULE_1__.join(output);\n            if (osOutput.indexOf(path__WEBPACK_IMPORTED_MODULE_1__.sep) === -1) {\n                p = path__WEBPACK_IMPORTED_MODULE_1__.join(process.cwd(), osOutput);\n            }\n            else {\n                mkdir = true;\n                if (osOutput.endsWith(path__WEBPACK_IMPORTED_MODULE_1__.sep)) {\n                    p = path__WEBPACK_IMPORTED_MODULE_1__.join(osOutput, defaultFileName);\n                }\n                else {\n                    p = osOutput;\n                }\n            }\n        }\n        else {\n            p = path__WEBPACK_IMPORTED_MODULE_1__.join(process.cwd(), defaultFileName);\n        }\n        p = path__WEBPACK_IMPORTED_MODULE_1__.resolve(p);\n        if (mkdir) {\n            const dir = p.substring(0, p.lastIndexOf(path__WEBPACK_IMPORTED_MODULE_1__.sep));\n            if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dir)) {\n                _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_5__.NodeUtils.mkdirpSync(dir, \"700\");\n            }\n        }\n        return new Promise((resolve, reject) => {\n            fs__WEBPACK_IMPORTED_MODULE_0__.writeFile(p, data, { encoding: \"utf8\", mode: 0o600 }, (err) => {\n                if (err != null) {\n                    reject(\"Cannot save file to \" + p);\n                }\n                resolve(p);\n            });\n        });\n    }\n    /**\n     * Process the given data and write it to a file if possible. If the user requested RAW output and\n     * no output name is given, the file is directly written to stdout. The resulting Response contains\n     * an otherwise empty message then to prevent writing other information to stdout.\n     *\n     * If an output is given or no RAW output is requested, the rules from [saveFile] apply.\n     *\n     * @param data to be written to the file or stdout.\n     * @param output file to write to or empty to choose automatically.\n     * @param defaultFileName to use when no explicit output filename is given.\n     * @return an empty [Response] if written to stdout or a [Response] with the chosen output file otherwise.\n     */\n    static saveResultToFile(data, output, defaultFileName) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if ((output == null || output === \"\") && process.env.BW_RAW === \"true\") {\n                // No output is given and the user expects raw output. Since the command result is about content,\n                // we directly return the command result to stdout (and suppress further messages).\n                process.stdout.write(data);\n                return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success();\n            }\n            const filePath = yield this.saveFile(data, output, defaultFileName);\n            const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_7__.MessageResponse(\"Saved \" + filePath, null);\n            res.raw = filePath;\n            return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.success(res);\n        });\n    }\n    static readStdin() {\n        return new Promise((resolve, reject) => {\n            let input = \"\";\n            if (process.stdin.isTTY) {\n                resolve(input);\n                return;\n            }\n            process.stdin.setEncoding(\"utf8\");\n            process.stdin.on(\"readable\", () => {\n                // eslint-disable-next-line\n                while (true) {\n                    const chunk = process.stdin.read();\n                    if (chunk == null) {\n                        break;\n                    }\n                    input += chunk;\n                }\n            });\n            process.stdin.on(\"end\", () => {\n                resolve(input);\n            });\n        });\n    }\n    static searchFolders(folders, search) {\n        search = search.toLowerCase();\n        return folders.filter((f) => {\n            if (f.name != null && f.name.toLowerCase().indexOf(search) > -1) {\n                return true;\n            }\n            return false;\n        });\n    }\n    static searchCollections(collections, search) {\n        search = search.toLowerCase();\n        return collections.filter((c) => {\n            if (c.name != null && c.name.toLowerCase().indexOf(search) > -1) {\n                return true;\n            }\n            return false;\n        });\n    }\n    static searchOrganizations(organizations, search) {\n        search = search.toLowerCase();\n        return organizations.filter((o) => {\n            if (o.name != null && o.name.toLowerCase().indexOf(search) > -1) {\n                return true;\n            }\n            return false;\n        });\n    }\n    /**\n     * Gets a password from all available sources. In order of priority these are:\n     *   * passwordfile\n     *   * passwordenv\n     *   * user interaction\n     *\n     * Returns password string if successful, Response if not.\n     */\n    static getPassword(password, options, logService) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isNullOrEmpty(password)) {\n                if (options === null || options === void 0 ? void 0 : options.passwordFile) {\n                    password = yield _bitwarden_node_node_utils__WEBPACK_IMPORTED_MODULE_5__.NodeUtils.readFirstLine(options.passwordFile);\n                }\n                else if (options === null || options === void 0 ? void 0 : options.passwordEnv) {\n                    if (process.env[options.passwordEnv]) {\n                        password = process.env[options.passwordEnv];\n                    }\n                    else if (logService) {\n                        logService.warning(`Warning: Provided passwordenv ${options.passwordEnv} is not set`);\n                    }\n                }\n            }\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isNullOrEmpty(password)) {\n                if (process.env.BW_NOINTERACTION !== \"true\") {\n                    const answer = yield inquirer__WEBPACK_IMPORTED_MODULE_2__.createPromptModule({\n                        output: process.stderr,\n                    })({\n                        type: \"password\",\n                        name: \"password\",\n                        message: \"Master password:\",\n                    });\n                    password = answer.password;\n                }\n                else {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_6__.Response.badRequest(\"Master password is required. Try again in interactive mode or provide a password file or environment variable.\");\n                }\n            }\n            return password;\n        });\n    }\n    static convertBooleanOption(optionValue) {\n        return optionValue || optionValue === \"\" ? true : false;\n    }\n    static convertNumberOption(optionValue, defaultValue) {\n        try {\n            if (optionValue != null) {\n                const numVal = parseInt(optionValue);\n                return !Number.isNaN(numVal) ? numVal : defaultValue;\n            }\n            return defaultValue;\n        }\n        catch (_a) {\n            return defaultValue;\n        }\n    }\n    static convertStringOption(optionValue, defaultValue) {\n        return optionValue != null ? String(optionValue) : defaultValue;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 21904 characters]\n//# sourceURL=webpack-internal:///./src/utils.ts\n");

/***/ }),

/***/ "./src/vault.program.ts":
/*!******************************!*\
  !*** ./src/vault.program.ts ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultProgram: () => (/* binding */ VaultProgram)\n/* harmony export */ });\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _admin_console_commands_confirm_command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./admin-console/commands/confirm.command */ \"./src/admin-console/commands/confirm.command.ts\");\n/* harmony import */ var _admin_console_commands_share_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./admin-console/commands/share.command */ \"./src/admin-console/commands/share.command.ts\");\n/* harmony import */ var _base_program__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base-program */ \"./src/base-program.ts\");\n/* harmony import */ var _commands_edit_command__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commands/edit.command */ \"./src/commands/edit.command.ts\");\n/* harmony import */ var _commands_get_command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./commands/get.command */ \"./src/commands/get.command.ts\");\n/* harmony import */ var _commands_list_command__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commands/list.command */ \"./src/commands/list.command.ts\");\n/* harmony import */ var _commands_restore_command__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./commands/restore.command */ \"./src/commands/restore.command.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _tools_export_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tools/export.command */ \"./src/tools/export.command.ts\");\n/* harmony import */ var _tools_import_command__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tools/import.command */ \"./src/tools/import.command.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils */ \"./src/utils.ts\");\n/* harmony import */ var _vault_create_command__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./vault/create.command */ \"./src/vault/create.command.ts\");\n/* harmony import */ var _vault_delete_command__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./vault/delete.command */ \"./src/vault/delete.command.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst writeLn = _utils__WEBPACK_IMPORTED_MODULE_11__.CliUtils.writeLn;\nclass VaultProgram extends _base_program__WEBPACK_IMPORTED_MODULE_3__.BaseProgram {\n    register() {\n        commander__WEBPACK_IMPORTED_MODULE_0__.program\n            .addCommand(this.listCommand())\n            .addCommand(this.getCommand())\n            .addCommand(this.createCommand())\n            .addCommand(this.editCommand())\n            .addCommand(this.deleteCommand())\n            .addCommand(this.restoreCommand())\n            .addCommand(this.shareCommand(\"move\", false))\n            .addCommand(this.confirmCommand())\n            .addCommand(this.importCommand())\n            .addCommand(this.exportCommand())\n            .addCommand(this.shareCommand(\"share\", true));\n    }\n    validateObject(requestedObject, validObjects) {\n        let success = true;\n        if (!validObjects.includes(requestedObject)) {\n            success = false;\n            this.processResponse(_models_response__WEBPACK_IMPORTED_MODULE_8__.Response.badRequest('Unknown object \"' +\n                requestedObject +\n                '\". Allowed objects are ' +\n                validObjects.join(\", \") +\n                \".\"));\n        }\n        return success;\n    }\n    listCommand() {\n        const listObjects = [\n            \"items\",\n            \"folders\",\n            \"collections\",\n            \"org-collections\",\n            \"org-members\",\n            \"organizations\",\n        ];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"list\")\n            .argument(\"<object>\", \"Valid objects are: \" + listObjects.join(\", \"))\n            .description(\"List an array of objects from the vault.\")\n            .option(\"--search <search>\", \"Perform a search on the listed objects.\")\n            .option(\"--url <url>\", \"Filter items of type login with a url-match search.\")\n            .option(\"--folderid <folderid>\", \"Filter items by folder id.\")\n            .option(\"--collectionid <collectionid>\", \"Filter items by collection id.\")\n            .option(\"--organizationid <organizationid>\", \"Filter items or collections by organization id.\")\n            .option(\"--trash\", \"Filter items that are deleted and in the trash.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Notes:\");\n            writeLn(\"\");\n            writeLn(\"    Combining search with a filter performs a logical AND operation.\");\n            writeLn(\"\");\n            writeLn(\"    Combining multiple filters performs a logical OR operation.\");\n            writeLn(\"\");\n            writeLn(\"  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw list items\");\n            writeLn(\"    bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2\");\n            writeLn(\"    bw list items --search google --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2\");\n            writeLn(\"    bw list items --url https://google.com\");\n            writeLn(\"    bw list items --folderid null\");\n            writeLn(\"    bw list items --organizationid notnull\");\n            writeLn(\"    bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2 --organizationid notnull\");\n            writeLn(\"    bw list items --trash\");\n            writeLn(\"    bw list folders --search email\");\n            writeLn(\"    bw list org-members --organizationid 60556c31-e649-4b5d-8daf-fc1c391a1bf2\");\n            writeLn(\"\", true);\n        })\n            .action((object, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, listObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _commands_list_command__WEBPACK_IMPORTED_MODULE_6__.ListCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.collectionService, this.serviceContainer.organizationService, this.serviceContainer.searchService, this.serviceContainer.organizationUserApiService, this.serviceContainer.apiService, this.serviceContainer.eventCollectionService);\n            const response = yield command.run(object, cmd);\n            this.processResponse(response);\n        }));\n    }\n    getCommand() {\n        const getObjects = [\n            \"item\",\n            \"username\",\n            \"password\",\n            \"uri\",\n            \"totp\",\n            \"notes\",\n            \"exposed\",\n            \"attachment\",\n            \"folder\",\n            \"collection\",\n            \"org-collection\",\n            \"organization\",\n            \"template\",\n            \"fingerprint\",\n            \"send\",\n        ];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"get\")\n            .argument(\"<object>\", \"Valid objects are: \" + getObjects.join(\", \"))\n            .argument(\"<id>\", \"Search term or object's globally unique `id`.\")\n            .description(\"Get an object from the vault.\")\n            .option(\"--itemid <itemid>\", \"Attachment's item id.\")\n            .option(\"--output <output>\", \"Output directory or filename for attachment.\")\n            .option(\"--organizationid <organizationid>\", \"Organization id for an organization object.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  If raw output is specified and no output filename or directory is given for\");\n            writeLn(\"  an attachment query, the attachment content is written to stdout.\");\n            writeLn(\"\");\n            writeLn(\"  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw get item 99ee88d2-6046-4ea7-92c2-acac464b1412\");\n            writeLn(\"    bw get password https://google.com\");\n            writeLn(\"    bw get totp google.com\");\n            writeLn(\"    bw get notes google.com\");\n            writeLn(\"    bw get exposed yahoo.com\");\n            writeLn(\"    bw get attachment b857igwl1dzrs2 --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 \" +\n                \"--output ./photo.jpg\");\n            writeLn(\"    bw get attachment photo.jpg --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 --raw\");\n            writeLn(\"    bw get folder email\");\n            writeLn(\"    bw get template folder\");\n            writeLn(\"\", true);\n        })\n            .action((object, id, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, getObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _commands_get_command__WEBPACK_IMPORTED_MODULE_5__.GetCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.collectionService, this.serviceContainer.totpService, this.serviceContainer.auditService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.stateService, this.serviceContainer.searchService, this.serviceContainer.apiService, this.serviceContainer.organizationService, this.serviceContainer.eventCollectionService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.accountService);\n            const response = yield command.run(object, id, cmd);\n            this.processResponse(response);\n        }));\n    }\n    createCommand() {\n        const createObjects = [\"item\", \"attachment\", \"folder\", \"org-collection\"];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"create\")\n            .argument(\"<object>\", \"Valid objects are: \" + createObjects.join(\", \"))\n            .argument(\"[encodedJson]\", \"Encoded json of the object to create. Can also be piped into stdin.\")\n            .description(\"Create an object in the vault.\")\n            .option(\"--file <file>\", \"Path to file for attachment.\")\n            .option(\"--itemid <itemid>\", \"Attachment's item id.\")\n            .option(\"--organizationid <organizationid>\", \"Organization id for an organization object.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw create folder eyJuYW1lIjoiTXkgRm9sZGVyIn0K\");\n            writeLn(\"    echo 'eyJuYW1lIjoiTXkgRm9sZGVyIn0K' | bw create folder\");\n            writeLn(\"    bw create attachment --file ./myfile.csv \" +\n                \"--itemid 16b15b89-65b3-4639-ad2a-95052a6d8f66\");\n            writeLn(\"\", true);\n        })\n            .action((object, encodedJson, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, createObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _vault_create_command__WEBPACK_IMPORTED_MODULE_12__.CreateCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.apiService, this.serviceContainer.folderApiService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.organizationService, this.serviceContainer.accountService);\n            const response = yield command.run(object, encodedJson, cmd);\n            this.processResponse(response);\n        }));\n    }\n    editCommand() {\n        const editObjects = [\"item\", \"item-collections\", \"folder\", \"org-collection\"];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"edit\")\n            .argument(\"<object>\", \"Valid objects are: \" + editObjects.join(\", \"))\n            .argument(\"<id>\", \"Object's globally unique `id`.\")\n            .argument(\"[encodedJson]\", \"Encoded json of the object to create. Can also be piped into stdin.\")\n            .description(\"Edit an object from the vault.\")\n            .option(\"--organizationid <organizationid>\", \"Organization id for an organization object.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw edit folder 5cdfbd80-d99f-409b-915b-f4c5d0241b02 eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg==\");\n            writeLn(\"    echo 'eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg==' | \" +\n                \"bw edit folder 5cdfbd80-d99f-409b-915b-f4c5d0241b02\");\n            writeLn(\"    bw edit item-collections 78307355-fd25-416b-88b8-b33fd0e88c82 \" +\n                \"WyI5NzQwNTNkMC0zYjMzLTRiOTgtODg2ZS1mZWNmNWM4ZGJhOTYiXQ==\");\n            writeLn(\"\", true);\n        })\n            .action((object, id, encodedJson, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, editObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _commands_edit_command__WEBPACK_IMPORTED_MODULE_4__.EditCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.apiService, this.serviceContainer.folderApiService, this.serviceContainer.accountService);\n            const response = yield command.run(object, id, encodedJson, cmd);\n            this.processResponse(response);\n        }));\n    }\n    deleteCommand() {\n        const deleteObjects = [\"item\", \"attachment\", \"folder\", \"org-collection\"];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"delete\")\n            .argument(\"<object>\", \"Valid objects are: \" + deleteObjects.join(\", \"))\n            .argument(\"<id>\", \"Object's globally unique `id`.\")\n            .description(\"Delete an object from the vault.\")\n            .option(\"--itemid <itemid>\", \"Attachment's item id.\")\n            .option(\"--organizationid <organizationid>\", \"Organization id for an organization object.\")\n            .option(\"-p, --permanent\", \"Permanently deletes the item instead of soft-deleting it (item only).\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw delete item 7063feab-4b10-472e-b64c-785e2b870b92\");\n            writeLn(\"    bw delete item 89c21cd2-fab0-4f69-8c6e-ab8a0168f69a --permanent\");\n            writeLn(\"    bw delete folder 5cdfbd80-d99f-409b-915b-f4c5d0241b02\");\n            writeLn(\"    bw delete attachment b857igwl1dzrs2 --itemid 310d5ffd-e9a2-4451-af87-ea054dce0f78\");\n            writeLn(\"\", true);\n        })\n            .action((object, id, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, deleteObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _vault_delete_command__WEBPACK_IMPORTED_MODULE_13__.DeleteCommand(this.serviceContainer.cipherService, this.serviceContainer.folderService, this.serviceContainer.apiService, this.serviceContainer.folderApiService, this.serviceContainer.billingAccountProfileStateService, this.serviceContainer.cipherAuthorizationService);\n            const response = yield command.run(object, id, cmd);\n            this.processResponse(response);\n        }));\n    }\n    restoreCommand() {\n        const restoreObjects = [\"item\"];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"restore\")\n            .argument(\"<object>\", \"Valid objects are: \" + restoreObjects.join(\", \"))\n            .argument(\"<id>\", \"Object's globally unique `id`.\")\n            .description(\"Restores an object from the trash.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw restore item 7063feab-4b10-472e-b64c-785e2b870b92\");\n            writeLn(\"\", true);\n        })\n            .action((object, id, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, restoreObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _commands_restore_command__WEBPACK_IMPORTED_MODULE_7__.RestoreCommand(this.serviceContainer.cipherService);\n            const response = yield command.run(object, id);\n            this.processResponse(response);\n        }));\n    }\n    shareCommand(commandName, deprecated) {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(commandName)\n            .argument(\"<id>\", \"Object's globally unique `id`.\")\n            .argument(\"<organizationId>\", \"Organization's globally unique `id`.\")\n            .argument(\"[encodedJson]\", \"Encoded json of an array of collection ids. Can also be piped into stdin.\")\n            .description((deprecated ? \"--DEPRECATED-- \" : \"\") + \"Move an item to an organization.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw \" +\n                commandName +\n                \" 4af958ce-96a7-45d9-beed-1e70fabaa27a \" +\n                \"6d82949b-b44d-468a-adae-3f3bacb0ea32 WyI5NzQwNTNkMC0zYjMzLTRiOTgtODg2ZS1mZWNmNWM4ZGJhOTYiXQ==\");\n            writeLn(\"    echo '[\\\"974053d0-3b33-4b98-886e-fecf5c8dba96\\\"]' | bw encode | \" +\n                \"bw \" +\n                commandName +\n                \" 4af958ce-96a7-45d9-beed-1e70fabaa27a 6d82949b-b44d-468a-adae-3f3bacb0ea32\");\n            if (deprecated) {\n                writeLn(\"\");\n                writeLn('--DEPRECATED See \"bw move\" for the current implementation--');\n            }\n            writeLn(\"\", true);\n        })\n            .action((id, organizationId, encodedJson, cmd) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const command = new _admin_console_commands_share_command__WEBPACK_IMPORTED_MODULE_2__.ShareCommand(this.serviceContainer.cipherService, this.serviceContainer.accountService);\n            const response = yield command.run(id, organizationId, encodedJson);\n            this.processResponse(response);\n        }));\n    }\n    confirmCommand() {\n        const confirmObjects = [\"org-member\"];\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"confirm\")\n            .argument(\"<object>\", \"Valid objects are: \" + confirmObjects.join(\", \"))\n            .argument(\"<id>\", \"Object's globally unique `id`.\")\n            .description(\"Confirm an object to the organization.\")\n            .option(\"--organizationid <organizationid>\", \"Organization id for an organization object.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw confirm org-member 7063feab-4b10-472e-b64c-785e2b870b92 \" +\n                \"--organizationid 310d5ffd-e9a2-4451-af87-ea054dce0f78\");\n            writeLn(\"\", true);\n        })\n            .action((object, id, cmd) => __awaiter(this, void 0, void 0, function* () {\n            if (!this.validateObject(object, confirmObjects)) {\n                return;\n            }\n            yield this.exitIfLocked();\n            const command = new _admin_console_commands_confirm_command__WEBPACK_IMPORTED_MODULE_1__.ConfirmCommand(this.serviceContainer.apiService, this.serviceContainer.keyService, this.serviceContainer.encryptService, this.serviceContainer.organizationUserApiService);\n            const response = yield command.run(object, id, cmd);\n            this.processResponse(response);\n        }));\n    }\n    importCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"import\")\n            .argument(\"[format]\", \"The format of [input]\")\n            .argument(\"[input]\", \"Filepath to data to import\")\n            .description(\"Import vault data from a file.\")\n            .option(\"--formats\", \"List formats\")\n            .option(\"--organizationid <organizationid>\", \"ID of the organization to import to.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw import --formats\");\n            writeLn(\"    bw import bitwardencsv ./from/source.csv\");\n            writeLn(\"    bw import keepass2xml keepass_backup.xml\");\n            writeLn(\"    bw import --organizationid cf14adc3-aca5-4573-890a-f6fa231436d9 keepass2xml keepass_backup.xml\");\n        })\n            .action((format, filepath, options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const command = new _tools_import_command__WEBPACK_IMPORTED_MODULE_10__.ImportCommand(this.serviceContainer.importService, this.serviceContainer.organizationService, this.serviceContainer.syncService);\n            const response = yield command.run(format, filepath, options);\n            this.processResponse(response);\n        }));\n    }\n    exportCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"export\")\n            .description(\"Export vault data to a CSV or JSON file.\")\n            .option(\"--output <output>\", \"Output directory or filename.\")\n            .option(\"--format <format>\", \"Export file format.\")\n            .option(\"--password [password]\", \"Use password to encrypt instead of your Bitwarden account encryption key. Only applies to the encrypted_json format.\")\n            .option(\"--organizationid <organizationid>\", \"Organization id for an organization.\")\n            .on(\"--help\", () => {\n            writeLn(\"\\n  Notes:\");\n            writeLn(\"\");\n            writeLn(\"    Valid formats are `csv`, `json`, and `encrypted_json`. Default format is `csv`.\");\n            writeLn(\"\");\n            writeLn(\"    If --raw option is specified and no output filename or directory is given, the\");\n            writeLn(\"    result is written to stdout.\");\n            writeLn(\"\");\n            writeLn(\"  Examples:\");\n            writeLn(\"\");\n            writeLn(\"    bw export\");\n            writeLn(\"    bw --raw export\");\n            writeLn(\"    bw export myPassword321\");\n            writeLn(\"    bw export myPassword321 --format json\");\n            writeLn(\"    bw export --output ./exp/bw.csv\");\n            writeLn(\"    bw export myPassword321 --output bw.json --format json\");\n            writeLn(\"    bw export myPassword321 --organizationid 7063feab-4b10-472e-b64c-785e2b870b92\");\n            writeLn(\"\", true);\n        })\n            .action((options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const command = new _tools_export_command__WEBPACK_IMPORTED_MODULE_9__.ExportCommand(this.serviceContainer.exportService, this.serviceContainer.policyService, this.serviceContainer.eventCollectionService);\n            const response = yield command.run(options);\n            this.processResponse(response);\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 45536 characters]\n//# sourceURL=webpack-internal:///./src/vault.program.ts\n");

/***/ }),

/***/ "./src/vault/create.command.ts":
/*!*************************************!*\
  !*** ./src/vault/create.command.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CreateCommand: () => (/* binding */ CreateCommand)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/request/selection-read-only.request */ \"../../libs/common/src/admin-console/models/request/selection-read-only.request.ts\");\n/* harmony import */ var _bitwarden_common_models_export_cipher_export__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/models/export/cipher.export */ \"../../libs/common/src/models/export/cipher.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/models/export/collection.export */ \"../../libs/common/src/models/export/collection.export.ts\");\n/* harmony import */ var _bitwarden_common_models_export_folder_export__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/models/export/folder.export */ \"../../libs/common/src/models/export/folder.export.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _admin_console_models_response_organization_collection_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../admin-console/models/response/organization-collection.response */ \"./src/admin-console/models/response/organization-collection.response.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\n/* harmony import */ var _models_cipher_response__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./models/cipher.response */ \"./src/vault/models/cipher.response.ts\");\n/* harmony import */ var _models_folder_response__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./models/folder.response */ \"./src/vault/models/folder.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass CreateCommand {\n    constructor(cipherService, folderService, keyService, encryptService, apiService, folderApiService, accountProfileService, organizationService, accountService) {\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.apiService = apiService;\n        this.folderApiService = folderApiService;\n        this.accountProfileService = accountProfileService;\n        this.organizationService = organizationService;\n        this.accountService = accountService;\n    }\n    run(object_1, requestJson_1, cmdOptions_1) {\n        return __awaiter(this, arguments, void 0, function* (object, requestJson, cmdOptions, additionalData = null) {\n            let req = null;\n            if (object !== \"attachment\") {\n                if (process.env.BW_SERVE !== \"true\" && (requestJson == null || requestJson === \"\")) {\n                    requestJson = yield _utils__WEBPACK_IMPORTED_MODULE_11__.CliUtils.readStdin();\n                }\n                if (requestJson == null || requestJson === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"`requestJson` was not provided.\");\n                }\n                if (typeof requestJson !== \"string\") {\n                    req = requestJson;\n                }\n                else {\n                    try {\n                        const reqJson = Buffer.from(requestJson, \"base64\").toString();\n                        req = JSON.parse(reqJson);\n                    }\n                    catch (e) {\n                        return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"Error parsing the encoded request data.\");\n                    }\n                }\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            switch (object.toLowerCase()) {\n                case \"item\":\n                    return yield this.createCipher(req);\n                case \"attachment\":\n                    return yield this.createAttachment(normalizedOptions, additionalData);\n                case \"folder\":\n                    return yield this.createFolder(req);\n                case \"org-collection\":\n                    return yield this.createOrganizationCollection(req, normalizedOptions);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    createCipher(req) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_2__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            const cipher = yield this.cipherService.encrypt(_bitwarden_common_models_export_cipher_export__WEBPACK_IMPORTED_MODULE_5__.CipherExport.toView(req), activeUserId);\n            try {\n                const newCipher = yield this.cipherService.createWithServer(cipher);\n                const decCipher = yield newCipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(newCipher, activeUserId));\n                const res = new _models_cipher_response__WEBPACK_IMPORTED_MODULE_12__.CipherResponse(decCipher);\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(e);\n            }\n        });\n    }\n    createAttachment(options, additionalData) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.itemId == null || options.itemId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"`itemid` option is required.\");\n            }\n            let fileBuf = null;\n            let fileName = null;\n            if (process.env.BW_SERVE === \"true\") {\n                fileBuf = additionalData.fileBuffer;\n                fileName = additionalData.fileName;\n            }\n            else {\n                if (options.file == null || options.file === \"\") {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"`file` option is required.\");\n                }\n                const filePath = path__WEBPACK_IMPORTED_MODULE_1__.resolve(options.file);\n                if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(options.file)) {\n                    return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"Cannot find file at \" + filePath);\n                }\n                fileBuf = fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(filePath);\n                fileName = path__WEBPACK_IMPORTED_MODULE_1__.basename(filePath);\n            }\n            if (fileBuf == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"File not provided.\");\n            }\n            if (fileName == null || fileName.trim() === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"File name not provided.\");\n            }\n            const itemId = options.itemId.toLowerCase();\n            const cipher = yield this.cipherService.get(itemId);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.notFound();\n            }\n            if (cipher.organizationId == null &&\n                !(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.accountProfileService.hasPremiumFromAnySource$))) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(\"Premium status is required to use this feature.\");\n            }\n            const userKey = yield this.keyService.getUserKey();\n            if (userKey == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(\"You must update your encryption key before you can use this feature. \" +\n                    \"See https://help.bitwarden.com/article/update-encryption-key/\");\n            }\n            try {\n                const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_2__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n                const updatedCipher = yield this.cipherService.saveAttachmentRawWithServer(cipher, fileName, new Uint8Array(fileBuf).buffer, activeUserId);\n                const decCipher = yield updatedCipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(updatedCipher, activeUserId));\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.success(new _models_cipher_response__WEBPACK_IMPORTED_MODULE_12__.CipherResponse(decCipher));\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(e);\n            }\n        });\n    }\n    createFolder(req) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeAccountId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.firstValueFrom)(this.accountService.activeAccount$);\n            const userKey = yield this.keyService.getUserKeyWithLegacySupport(activeAccountId.id);\n            const folder = yield this.folderService.encrypt(_bitwarden_common_models_export_folder_export__WEBPACK_IMPORTED_MODULE_7__.FolderExport.toView(req), userKey);\n            try {\n                yield this.folderApiService.save(folder);\n                const newFolder = yield this.folderService.get(folder.id);\n                const decFolder = yield newFolder.decrypt();\n                const res = new _models_folder_response__WEBPACK_IMPORTED_MODULE_13__.FolderResponse(decFolder);\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(e);\n            }\n        });\n    }\n    createOrganizationCollection(req, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"`organizationid` option is required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_8__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            if (options.organizationId !== req.organizationId) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.badRequest(\"`organizationid` option does not match request object.\");\n            }\n            try {\n                const orgKey = yield this.keyService.getOrgKey(req.organizationId);\n                if (orgKey == null) {\n                    throw new Error(\"No encryption key for this organization.\");\n                }\n                const organization = yield this.organizationService.get(req.organizationId);\n                const currentOrgUserId = organization.organizationUserId;\n                const groups = req.groups == null\n                    ? null\n                    : req.groups.map((g) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_4__.SelectionReadOnlyRequest(g.id, g.readOnly, g.hidePasswords, g.manage));\n                const users = req.users == null\n                    ? [new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_4__.SelectionReadOnlyRequest(currentOrgUserId, false, false, true)]\n                    : req.users.map((u) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_4__.SelectionReadOnlyRequest(u.id, u.readOnly, u.hidePasswords, u.manage));\n                const request = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_3__.CollectionRequest();\n                request.name = (yield this.encryptService.encrypt(req.name, orgKey)).encryptedString;\n                request.externalId = req.externalId;\n                request.groups = groups;\n                request.users = users;\n                const response = yield this.apiService.postCollection(req.organizationId, request);\n                const view = _bitwarden_common_models_export_collection_export__WEBPACK_IMPORTED_MODULE_6__.CollectionExport.toView(req);\n                view.id = response.id;\n                const res = new _admin_console_models_response_organization_collection_response__WEBPACK_IMPORTED_MODULE_9__.OrganizationCollectionResponse(view, groups, users);\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_10__.Response.error(e);\n            }\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.organizationId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationId);\n        this.itemId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemId);\n        this.file = passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.file;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 23840 characters]\n//# sourceURL=webpack-internal:///./src/vault/create.command.ts\n");

/***/ }),

/***/ "./src/vault/delete.command.ts":
/*!*************************************!*\
  !*** ./src/vault/delete.command.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeleteCommand: () => (/* binding */ DeleteCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass DeleteCommand {\n    constructor(cipherService, folderService, apiService, folderApiService, accountProfileService, cipherAuthorizationService) {\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.apiService = apiService;\n        this.folderApiService = folderApiService;\n        this.accountProfileService = accountProfileService;\n        this.cipherAuthorizationService = cipherAuthorizationService;\n    }\n    run(object, id, cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            const normalizedOptions = new Options(cmdOptions);\n            switch (object.toLowerCase()) {\n                case \"item\":\n                    return yield this.deleteCipher(id, normalizedOptions);\n                case \"attachment\":\n                    return yield this.deleteAttachment(id, normalizedOptions);\n                case \"folder\":\n                    return yield this.deleteFolder(id);\n                case \"org-collection\":\n                    return yield this.deleteOrganizationCollection(id, normalizedOptions);\n                default:\n                    return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"Unknown object.\");\n            }\n        });\n    }\n    deleteCipher(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipher = yield this.cipherService.get(id);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.notFound();\n            }\n            const canDeleteCipher = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.cipherAuthorizationService.canDeleteCipher$(cipher));\n            if (!canDeleteCipher) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"You do not have permission to delete this item.\");\n            }\n            try {\n                if (options.permanent) {\n                    yield this.cipherService.deleteWithServer(id);\n                }\n                else {\n                    yield this.cipherService.softDeleteWithServer(id);\n                }\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n        });\n    }\n    deleteAttachment(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.itemId == null || options.itemId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`itemid` option is required.\");\n            }\n            const itemId = options.itemId.toLowerCase();\n            const cipher = yield this.cipherService.get(itemId);\n            if (cipher == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.notFound();\n            }\n            if (cipher.attachments == null || cipher.attachments.length === 0) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"No attachments available for this item.\");\n            }\n            const attachments = cipher.attachments.filter((a) => a.id.toLowerCase() === id);\n            if (attachments.length === 0) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"Attachment `\" + id + \"` was not found.\");\n            }\n            const canAccessPremium = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountProfileService.hasPremiumFromAnySource$);\n            if (cipher.organizationId == null && !canAccessPremium) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(\"Premium status is required to use this feature.\");\n            }\n            try {\n                yield this.cipherService.deleteAttachmentWithServer(cipher.id, attachments[0].id);\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n        });\n    }\n    deleteFolder(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const folder = yield this.folderService.getFromState(id);\n            if (folder == null) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.notFound();\n            }\n            try {\n                yield this.folderApiService.delete(id);\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n        });\n    }\n    deleteOrganizationCollection(id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.organizationId == null || options.organizationId === \"\") {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`organizationid` options is required.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(id)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(options.organizationId)) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.badRequest(\"`\" + options.organizationId + \"` is not a GUID.\");\n            }\n            try {\n                yield this.apiService.deleteCollection(options.organizationId, id);\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.success();\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_2__.Response.error(e);\n            }\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.organizationId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.organizationId);\n        this.itemId = (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemid) || (passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.itemId);\n        this.permanent = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.permanent);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13132 characters]\n//# sourceURL=webpack-internal:///./src/vault/delete.command.ts\n");

/***/ }),

/***/ "./src/vault/models/attachment.response.ts":
/*!*************************************************!*\
  !*** ./src/vault/models/attachment.response.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AttachmentResponse: () => (/* binding */ AttachmentResponse)\n/* harmony export */ });\nclass AttachmentResponse {\n    constructor(o) {\n        this.id = o.id;\n        this.fileName = o.fileName;\n        this.size = o.size;\n        this.sizeName = o.sizeName;\n        this.url = o.url;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmF1bHQvbW9kZWxzL2F0dGFjaG1lbnQucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sa0JBQWtCO0lBTzdCLFlBQVksQ0FBaUI7UUFDM0IsSUFBSSxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDO1FBQ2YsSUFBSSxDQUFDLFFBQVEsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDO1FBQzNCLElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUNuQixJQUFJLENBQUMsUUFBUSxHQUFHLENBQUMsQ0FBQyxRQUFRLENBQUM7UUFDM0IsSUFBSSxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDO0lBQ25CLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4vc3JjL3ZhdWx0L21vZGVscy9hdHRhY2htZW50LnJlc3BvbnNlLnRzPzM0OGUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQXR0YWNobWVudFZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL3ZpZXcvYXR0YWNobWVudC52aWV3XCI7XG5cbmV4cG9ydCBjbGFzcyBBdHRhY2htZW50UmVzcG9uc2Uge1xuICBpZDogc3RyaW5nO1xuICBmaWxlTmFtZTogc3RyaW5nO1xuICBzaXplOiBzdHJpbmc7XG4gIHNpemVOYW1lOiBzdHJpbmc7XG4gIHVybDogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKG86IEF0dGFjaG1lbnRWaWV3KSB7XG4gICAgdGhpcy5pZCA9IG8uaWQ7XG4gICAgdGhpcy5maWxlTmFtZSA9IG8uZmlsZU5hbWU7XG4gICAgdGhpcy5zaXplID0gby5zaXplO1xuICAgIHRoaXMuc2l6ZU5hbWUgPSBvLnNpemVOYW1lO1xuICAgIHRoaXMudXJsID0gby51cmw7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/vault/models/attachment.response.ts\n");

/***/ }),

/***/ "./src/vault/models/cipher.response.ts":
/*!*********************************************!*\
  !*** ./src/vault/models/cipher.response.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherResponse: () => (/* binding */ CipherResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_export_cipher_with_ids_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/export/cipher-with-ids.export */ \"../../libs/common/src/models/export/cipher-with-ids.export.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _models_response_login_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/response/login.response */ \"./src/models/response/login.response.ts\");\n/* harmony import */ var _attachment_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attachment.response */ \"./src/vault/models/attachment.response.ts\");\n/* harmony import */ var _password_history_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./password-history.response */ \"./src/vault/models/password-history.response.ts\");\n\n\n\n\n\nclass CipherResponse extends _bitwarden_common_models_export_cipher_with_ids_export__WEBPACK_IMPORTED_MODULE_0__.CipherWithIdExport {\n    constructor(o) {\n        super();\n        this.object = \"item\";\n        this.build(o);\n        if (o.attachments != null) {\n            this.attachments = o.attachments.map((a) => new _attachment_response__WEBPACK_IMPORTED_MODULE_3__.AttachmentResponse(a));\n        }\n        this.revisionDate = o.revisionDate;\n        if (o.creationDate != null) {\n            this.creationDate = o.creationDate;\n        }\n        this.deletedDate = o.deletedDate;\n        if (o.passwordHistory != null) {\n            this.passwordHistory = o.passwordHistory.map((h) => new _password_history_response__WEBPACK_IMPORTED_MODULE_4__.PasswordHistoryResponse(h));\n        }\n        if (o.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login && o.login != null) {\n            this.login = new _models_response_login_response__WEBPACK_IMPORTED_MODULE_2__.LoginResponse(o.login);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmF1bHQvbW9kZWxzL2NpcGhlci5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBNEY7QUFDakM7QUFJVTtBQUVW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I6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/vault/models/cipher.response.ts\n");

/***/ }),

/***/ "./src/vault/models/collection.response.ts":
/*!*************************************************!*\
  !*** ./src/vault/models/collection.response.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionResponse: () => (/* binding */ CollectionResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_export_collection_with_id_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/export/collection-with-id.export */ \"../../libs/common/src/models/export/collection-with-id.export.ts\");\n\nclass CollectionResponse extends _bitwarden_common_models_export_collection_with_id_export__WEBPACK_IMPORTED_MODULE_0__.CollectionWithIdExport {\n    constructor(o) {\n        super();\n        this.object = \"collection\";\n        this.build(o);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmF1bHQvbW9kZWxzL2NvbGxlY3Rpb24ucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDbUc7QUFJNUYsTUFBTSxrQkFBbUIsU0FBUSw2R0FBc0I7SUFHNUQsWUFBWSxDQUFpQjtRQUMzQixLQUFLLEVBQUUsQ0FBQztRQUNSLElBQUksQ0FBQyxNQUFNLEdBQUcsWUFBWSxDQUFDO1FBQzNCLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDaEIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi9zcmMvdmF1bHQvbW9kZWxzL2NvbGxlY3Rpb24ucmVzcG9uc2UudHM/MGMxMyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb2xsZWN0aW9uVmlldyB9IGZyb20gXCJAYml0d2FyZGVuL2FkbWluLWNvbnNvbGUvY29tbW9uXCI7XG5pbXBvcnQgeyBDb2xsZWN0aW9uV2l0aElkRXhwb3J0IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL21vZGVscy9leHBvcnQvY29sbGVjdGlvbi13aXRoLWlkLmV4cG9ydFwiO1xuXG5pbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIENvbGxlY3Rpb25SZXNwb25zZSBleHRlbmRzIENvbGxlY3Rpb25XaXRoSWRFeHBvcnQgaW1wbGVtZW50cyBCYXNlUmVzcG9uc2Uge1xuICBvYmplY3Q6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihvOiBDb2xsZWN0aW9uVmlldykge1xuICAgIHN1cGVyKCk7XG4gICAgdGhpcy5vYmplY3QgPSBcImNvbGxlY3Rpb25cIjtcbiAgICB0aGlzLmJ1aWxkKG8pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/vault/models/collection.response.ts\n");

/***/ }),

/***/ "./src/vault/models/folder.response.ts":
/*!*********************************************!*\
  !*** ./src/vault/models/folder.response.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderResponse: () => (/* binding */ FolderResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/export */ \"../../libs/common/src/models/export/index.ts\");\n\nclass FolderResponse extends _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_0__.FolderWithIdExport {\n    constructor(o) {\n        super();\n        this.object = \"folder\";\n        this.build(o);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmF1bHQvbW9kZWxzL2ZvbGRlci5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFxRTtBQUs5RCxNQUFNLGNBQWUsU0FBUSwrRUFBa0I7SUFHcEQsWUFBWSxDQUFhO1FBQ3ZCLEtBQUssRUFBRSxDQUFDO1FBQ1IsSUFBSSxDQUFDLE1BQU0sR0FBRyxRQUFRLENBQUM7UUFDdkIsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNoQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy92YXVsdC9tb2RlbHMvZm9sZGVyLnJlc3BvbnNlLnRzP2Y5ZjIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRm9sZGVyV2l0aElkRXhwb3J0IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL21vZGVscy9leHBvcnRcIjtcbmltcG9ydCB7IEZvbGRlclZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL3ZpZXcvZm9sZGVyLnZpZXdcIjtcblxuaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBGb2xkZXJSZXNwb25zZSBleHRlbmRzIEZvbGRlcldpdGhJZEV4cG9ydCBpbXBsZW1lbnRzIEJhc2VSZXNwb25zZSB7XG4gIG9iamVjdDogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKG86IEZvbGRlclZpZXcpIHtcbiAgICBzdXBlcigpO1xuICAgIHRoaXMub2JqZWN0ID0gXCJmb2xkZXJcIjtcbiAgICB0aGlzLmJ1aWxkKG8pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/vault/models/folder.response.ts\n");

/***/ }),

/***/ "./src/vault/models/password-history.response.ts":
/*!*******************************************************!*\
  !*** ./src/vault/models/password-history.response.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordHistoryResponse: () => (/* binding */ PasswordHistoryResponse)\n/* harmony export */ });\nclass PasswordHistoryResponse {\n    constructor(o) {\n        this.lastUsedDate = o.lastUsedDate;\n        this.password = o.password;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmF1bHQvbW9kZWxzL3Bhc3N3b3JkLWhpc3RvcnkucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sdUJBQXVCO0lBSWxDLFlBQVksQ0FBc0I7UUFDaEMsSUFBSSxDQUFDLFlBQVksR0FBRyxDQUFDLENBQUMsWUFBWSxDQUFDO1FBQ25DLElBQUksQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDLFFBQVEsQ0FBQztJQUM3QixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uL3NyYy92YXVsdC9tb2RlbHMvcGFzc3dvcmQtaGlzdG9yeS5yZXNwb25zZS50cz8yOTA2Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBhc3N3b3JkSGlzdG9yeVZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL3ZpZXcvcGFzc3dvcmQtaGlzdG9yeS52aWV3XCI7XG5cbmV4cG9ydCBjbGFzcyBQYXNzd29yZEhpc3RvcnlSZXNwb25zZSB7XG4gIGxhc3RVc2VkRGF0ZTogRGF0ZTtcbiAgcGFzc3dvcmQ6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihvOiBQYXNzd29yZEhpc3RvcnlWaWV3KSB7XG4gICAgdGhpcy5sYXN0VXNlZERhdGUgPSBvLmxhc3RVc2VkRGF0ZTtcbiAgICB0aGlzLnBhc3N3b3JkID0gby5wYXNzd29yZDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/vault/models/password-history.response.ts\n");

/***/ }),

/***/ "./src/vault/sync.command.ts":
/*!***********************************!*\
  !*** ./src/vault/sync.command.ts ***!
  \***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SyncCommand: () => (/* binding */ SyncCommand)\n/* harmony export */ });\n/* harmony import */ var _models_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _models_response_message_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _models_response_string_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/response/string.response */ \"./src/models/response/string.response.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ \"./src/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass SyncCommand {\n    constructor(syncService) {\n        this.syncService = syncService;\n    }\n    run(cmdOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const normalizedOptions = new Options(cmdOptions);\n            if (normalizedOptions.last) {\n                return yield this.getLastSync();\n            }\n            try {\n                yield this.syncService.fullSync(normalizedOptions.force, true);\n                const res = new _models_response_message_response__WEBPACK_IMPORTED_MODULE_1__.MessageResponse(\"Syncing complete.\", null);\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success(res);\n            }\n            catch (e) {\n                return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.error(\"Syncing failed: \" + e.toString());\n            }\n        });\n    }\n    getLastSync() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const lastSyncDate = yield this.syncService.getLastSync();\n            const res = new _models_response_string_response__WEBPACK_IMPORTED_MODULE_2__.StringResponse(lastSyncDate == null ? null : lastSyncDate.toISOString());\n            return _models_response__WEBPACK_IMPORTED_MODULE_0__.Response.success(res);\n        });\n    }\n}\nclass Options {\n    constructor(passedOptions) {\n        this.last = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.last);\n        this.force = _utils__WEBPACK_IMPORTED_MODULE_3__.CliUtils.convertBooleanOption(passedOptions === null || passedOptions === void 0 ? void 0 : passedOptions.force);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmF1bHQvc3luYy5jb21tYW5kLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRThDO0FBQ3dCO0FBQ0Y7QUFDaEM7QUFFN0Is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HtcbiAgICB0aGlzLmxhc3QgPSBDbGlVdGlscy5jb252ZXJ0Qm9vbGVhbk9wdGlvbihwYXNzZWRPcHRpb25zPy5sYXN0KTtcbiAgICB0aGlzLmZvcmNlID0gQ2xpVXRpbHMuY29udmVydEJvb2xlYW5PcHRpb24ocGFzc2VkT3B0aW9ucz8uZm9yY2UpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/vault/sync.command.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve-all.command.ts":
/*!************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve-all.command.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ApproveAllCommand: () => (/* binding */ ApproveAllCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _bitwarden_cli_models_response_message_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/cli/models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass ApproveAllCommand {\n    constructor(organizationAuthRequestService, organizationService) {\n        this.organizationAuthRequestService = organizationAuthRequestService;\n        this.organizationService = organizationService;\n    }\n    run(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (organizationId != null) {\n                organizationId = organizationId.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isGuid(organizationId)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + organizationId + \"` is not a GUID.\");\n            }\n            const organization = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.get$(organizationId));\n            if (!(organization === null || organization === void 0 ? void 0 : organization.canManageUsersPassword)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"You do not have permission to approve pending device authorization requests.\");\n            }\n            try {\n                const pendingApprovals = yield this.organizationAuthRequestService.listPendingRequests(organizationId);\n                if (pendingApprovals.length == 0) {\n                    const res = new _bitwarden_cli_models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(\"No pending device authorization requests to approve.\", null);\n                    return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n                }\n                yield this.organizationAuthRequestService.approvePendingRequests(organizationId, pendingApprovals);\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success();\n            }\n            catch (e) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n    static create(serviceContainer) {\n        return new ApproveAllCommand(serviceContainer.organizationAuthRequestService, serviceContainer.organizationService);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4896 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve-all.command.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve.command.ts":
/*!********************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve.command.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ApproveCommand: () => (/* binding */ ApproveCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass ApproveCommand {\n    constructor(organizationService, organizationAuthRequestService) {\n        this.organizationService = organizationService;\n        this.organizationAuthRequestService = organizationAuthRequestService;\n    }\n    run(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (organizationId != null) {\n                organizationId = organizationId.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isGuid(organizationId)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + organizationId + \"` is not a GUID.\");\n            }\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isGuid(id)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            const organization = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.get$(organizationId));\n            if (!(organization === null || organization === void 0 ? void 0 : organization.canManageUsersPassword)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"You do not have permission to approve pending device authorization requests.\");\n            }\n            try {\n                const pendingRequests = yield this.organizationAuthRequestService.listPendingRequests(organizationId);\n                const request = pendingRequests.find((r) => r.id == id);\n                if (request == null) {\n                    return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"The request id is invalid.\");\n                }\n                yield this.organizationAuthRequestService.approvePendingRequest(organizationId, request);\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success();\n            }\n            catch (e) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n    static create(serviceContainer) {\n        return new ApproveCommand(serviceContainer.organizationService, serviceContainer.organizationAuthRequestService);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5224 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve.command.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny-all.command.ts":
/*!*********************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny-all.command.ts ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DenyAllCommand: () => (/* binding */ DenyAllCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _bitwarden_cli_models_response_message_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/cli/models/response/message.response */ \"./src/models/response/message.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass DenyAllCommand {\n    constructor(organizationService, organizationAuthRequestService) {\n        this.organizationService = organizationService;\n        this.organizationAuthRequestService = organizationAuthRequestService;\n    }\n    run(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (organizationId != null) {\n                organizationId = organizationId.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isGuid(organizationId)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + organizationId + \"` is not a GUID.\");\n            }\n            const organization = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.get$(organizationId));\n            if (!(organization === null || organization === void 0 ? void 0 : organization.canManageUsersPassword)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"You do not have permission to approve pending device authorization requests.\");\n            }\n            try {\n                const pendingRequests = yield this.organizationAuthRequestService.listPendingRequests(organizationId);\n                if (pendingRequests.length == 0) {\n                    const res = new _bitwarden_cli_models_response_message_response__WEBPACK_IMPORTED_MODULE_2__.MessageResponse(\"No pending device authorization requests to deny.\", null);\n                    return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n                }\n                yield this.organizationAuthRequestService.denyPendingRequests(organizationId, ...pendingRequests.map((r) => r.id));\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success();\n            }\n            catch (e) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n    static create(serviceContainer) {\n        return new DenyAllCommand(serviceContainer.organizationService, serviceContainer.organizationAuthRequestService);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4948 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny-all.command.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny.command.ts":
/*!*****************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny.command.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DenyCommand: () => (/* binding */ DenyCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass DenyCommand {\n    constructor(organizationService, organizationAuthRequestService) {\n        this.organizationService = organizationService;\n        this.organizationAuthRequestService = organizationAuthRequestService;\n    }\n    run(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (organizationId != null) {\n                organizationId = organizationId.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isGuid(organizationId)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + organizationId + \"` is not a GUID.\");\n            }\n            if (id != null) {\n                id = id.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isGuid(id)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + id + \"` is not a GUID.\");\n            }\n            const organization = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.get$(organizationId));\n            if (!(organization === null || organization === void 0 ? void 0 : organization.canManageUsersPassword)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"You do not have permission to approve pending device authorization requests.\");\n            }\n            try {\n                const pendingRequests = yield this.organizationAuthRequestService.listPendingRequests(organizationId);\n                const request = pendingRequests.find((r) => r.id == id);\n                if (request == null) {\n                    return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"The request id is invalid.\");\n                }\n                yield this.organizationAuthRequestService.denyPendingRequest(organizationId, id);\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success();\n            }\n            catch (e) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n    static create(serviceContainer) {\n        return new DenyCommand(serviceContainer.organizationService, serviceContainer.organizationAuthRequestService);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5196 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny.command.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts":
/*!****************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeviceApprovalProgram: () => (/* binding */ DeviceApprovalProgram)\n/* harmony export */ });\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_base_program__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/base-program */ \"./src/base-program.ts\");\n/* harmony import */ var _approve_all_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./approve-all.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve-all.command.ts\");\n/* harmony import */ var _approve_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./approve.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve.command.ts\");\n/* harmony import */ var _deny_all_command__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./deny-all.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny-all.command.ts\");\n/* harmony import */ var _deny_command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./deny.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny.command.ts\");\n/* harmony import */ var _list_command__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./list.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/list.command.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\nclass DeviceApprovalProgram extends _bitwarden_cli_base_program__WEBPACK_IMPORTED_MODULE_1__.BaseProgram {\n    constructor(serviceContainer) {\n        super(serviceContainer);\n        this.serviceContainer = serviceContainer;\n    }\n    register() {\n        commander__WEBPACK_IMPORTED_MODULE_0__.program.addCommand(this.deviceApprovalCommand());\n    }\n    deviceApprovalCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"device-approval\")\n            .description(\"Manage device approval requests sent to organizations that use SSO with trusted devices.\")\n            .addCommand(this.listCommand())\n            .addCommand(this.approveCommand())\n            .addCommand(this.approveAllCommand())\n            .addCommand(this.denyCommand())\n            .addCommand(this.denyAllCommand());\n    }\n    listCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"list\")\n            .description(\"List all pending requests for an organization\")\n            .requiredOption(\"--organizationid <organizationid>\", \"The organization id (required)\")\n            .action((options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = _list_command__WEBPACK_IMPORTED_MODULE_6__.ListCommand.create(this.serviceContainer);\n            const response = yield cmd.run(options.organizationid);\n            this.processResponse(response);\n        }));\n    }\n    approveCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"approve\")\n            .argument(\"<requestId>\", \"The id of the request to approve\")\n            .requiredOption(\"--organizationid <organizationid>\", \"The organization id (required)\")\n            .description(\"Approve a pending request\")\n            .action((id, options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = _approve_command__WEBPACK_IMPORTED_MODULE_3__.ApproveCommand.create(this.serviceContainer);\n            const response = yield cmd.run(options.organizationid, id);\n            this.processResponse(response);\n        }));\n    }\n    approveAllCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"approve-all\")\n            .description(\"Approve all pending requests for an organization\")\n            .requiredOption(\"--organizationid <organizationid>\", \"The organization id (required)\")\n            .action((options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = _approve_all_command__WEBPACK_IMPORTED_MODULE_2__.ApproveAllCommand.create(this.serviceContainer);\n            const response = yield cmd.run(options.organizationid);\n            this.processResponse(response);\n        }));\n    }\n    denyCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"deny\")\n            .argument(\"<requestId>\", \"The id of the request to deny\")\n            .requiredOption(\"--organizationid <organizationid>\", \"The organization id (required)\")\n            .description(\"Deny a pending request\")\n            .action((id, options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = _deny_command__WEBPACK_IMPORTED_MODULE_5__.DenyCommand.create(this.serviceContainer);\n            const response = yield cmd.run(options.organizationid, id);\n            this.processResponse(response);\n        }));\n    }\n    denyAllCommand() {\n        return new commander__WEBPACK_IMPORTED_MODULE_0__.Command(\"deny-all\")\n            .description(\"Deny all pending requests for an organization\")\n            .requiredOption(\"--organizationid <organizationid>\", \"The organization id (required)\")\n            .action((options) => __awaiter(this, void 0, void 0, function* () {\n            yield this.exitIfLocked();\n            const cmd = _deny_all_command__WEBPACK_IMPORTED_MODULE_4__.DenyAllCommand.create(this.serviceContainer);\n            const response = yield cmd.run(options.organizationid);\n            this.processResponse(response);\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9188 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/index.ts":
/*!**********************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/index.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ApproveAllCommand: () => (/* reexport safe */ _approve_all_command__WEBPACK_IMPORTED_MODULE_2__.ApproveAllCommand),\n/* harmony export */   ApproveCommand: () => (/* reexport safe */ _approve_command__WEBPACK_IMPORTED_MODULE_1__.ApproveCommand),\n/* harmony export */   DenyAllCommand: () => (/* reexport safe */ _deny_all_command__WEBPACK_IMPORTED_MODULE_4__.DenyAllCommand),\n/* harmony export */   DenyCommand: () => (/* reexport safe */ _deny_command__WEBPACK_IMPORTED_MODULE_3__.DenyCommand),\n/* harmony export */   DeviceApprovalProgram: () => (/* reexport safe */ _device_approval_program__WEBPACK_IMPORTED_MODULE_0__.DeviceApprovalProgram),\n/* harmony export */   ListCommand: () => (/* reexport safe */ _list_command__WEBPACK_IMPORTED_MODULE_5__.ListCommand)\n/* harmony export */ });\n/* harmony import */ var _device_approval_program__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./device-approval.program */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts\");\n/* harmony import */ var _approve_command__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./approve.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve.command.ts\");\n/* harmony import */ var _approve_all_command__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./approve-all.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/approve-all.command.ts\");\n/* harmony import */ var _deny_command__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./deny.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny.command.ts\");\n/* harmony import */ var _deny_all_command__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./deny-all.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/deny-all.command.ts\");\n/* harmony import */ var _list_command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./list.command */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/list.command.ts\");\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNsaS9zcmMvYWRtaW4tY29uc29sZS9kZXZpY2UtYXBwcm92YWwvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQTBDO0FBQ1I7QUFDSTtBQUNQO0FBQ0k7QUFDSiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2JpdHdhcmRlbl9saWNlbnNlL2JpdC1jbGkvc3JjL2FkbWluLWNvbnNvbGUvZGV2aWNlLWFwcHJvdmFsL2luZGV4LnRzPzMxZDQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZGV2aWNlLWFwcHJvdmFsLnByb2dyYW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2FwcHJvdmUuY29tbWFuZFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vYXBwcm92ZS1hbGwuY29tbWFuZFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGVueS5jb21tYW5kXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kZW55LWFsbC5jb21tYW5kXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saXN0LmNvbW1hbmRcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/index.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/list.command.ts":
/*!*****************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/list.command.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ListCommand: () => (/* binding */ ListCommand)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/models/response */ \"./src/models/response.ts\");\n/* harmony import */ var _bitwarden_cli_models_response_list_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/cli/models/response/list.response */ \"./src/models/response/list.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _pending_auth_request_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pending-auth-request.response */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/pending-auth-request.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass ListCommand {\n    constructor(organizationAuthRequestService, organizationService) {\n        this.organizationAuthRequestService = organizationAuthRequestService;\n        this.organizationService = organizationService;\n    }\n    run(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (organizationId != null) {\n                organizationId = organizationId.toLowerCase();\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isGuid(organizationId)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.badRequest(\"`\" + organizationId + \"` is not a GUID.\");\n            }\n            const organization = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizationService.get$(organizationId));\n            if (!(organization === null || organization === void 0 ? void 0 : organization.canManageUsersPassword)) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(\"You do not have permission to approve pending device authorization requests.\");\n            }\n            try {\n                const requests = yield this.organizationAuthRequestService.listPendingRequests(organizationId);\n                const res = new _bitwarden_cli_models_response_list_response__WEBPACK_IMPORTED_MODULE_2__.ListResponse(requests.map((r) => new _pending_auth_request_response__WEBPACK_IMPORTED_MODULE_4__.PendingAuthRequestResponse(r)));\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.success(res);\n            }\n            catch (e) {\n                return _bitwarden_cli_models_response__WEBPACK_IMPORTED_MODULE_1__.Response.error(e);\n            }\n        });\n    }\n    static create(serviceContainer) {\n        return new ListCommand(serviceContainer.organizationAuthRequestService, serviceContainer.organizationService);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4456 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/list.command.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/admin-console/device-approval/pending-auth-request.response.ts":
/*!**********************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/admin-console/device-approval/pending-auth-request.response.ts ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PendingAuthRequestResponse: () => (/* binding */ PendingAuthRequestResponse)\n/* harmony export */ });\nclass PendingAuthRequestResponse {\n    constructor(authRequest) {\n        this.object = \"auth-request\";\n        this.id = authRequest.id;\n        this.userId = authRequest.userId;\n        this.organizationUserId = authRequest.organizationUserId;\n        this.email = authRequest.email;\n        this.requestDeviceIdentifier = authRequest.requestDeviceIdentifier;\n        this.requestDeviceType = authRequest.requestDeviceType;\n        this.requestIpAddress = authRequest.requestIpAddress;\n        this.creationDate = authRequest.creationDate;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNsaS9zcmMvYWRtaW4tY29uc29sZS9kZXZpY2UtYXBwcm92YWwvcGVuZGluZy1hdXRoLXJlcXVlc3QucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUdPLE1BQU0sMEJBQTBCO0lBWXJDLFlBQVksV0FBbUM7UUFYL0MsV0FBTSxHQUFHLGNBQWMsQ0FBQztRQVl0QixJQUFJLENBQUMsRUFBRSxHQUFHLFdBQVcsQ0FBQyxFQUFFLENBQUM7UUFDekIsSUFBSSxDQUFDLE1BQU0sR0FBRyxXQUFXLENBQUMsTUFBTSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxXQUFXLENBQUMsa0JBQWtCLENBQUM7UUFDekQsSUFBSSxDQUFDLEtBQUssR0FBRyxXQUFXLENBQUMsS0FBSyxDQUFDO1FBQy9CLElBQUksQ0FBQyx1QkFBdUIsR0FBRyxXQUFXLENBQUMsdUJBQXVCLENBQUM7UUFDb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29uc3RydWN0b3IoYXV0aFJlcXVlc3Q6IFBlbmRpbmdBdXRoUmVxdWVzdFZpZXcpIHtcbiAgICB0aGlzLmlkID0gYXV0aFJlcXVlc3QuaWQ7XG4gICAgdGhpcy51c2VySWQgPSBhdXRoUmVxdWVzdC51c2VySWQ7XG4gICAgdGhpcy5vcmdhbml6YXRpb25Vc2VySWQgPSBhdXRoUmVxdWVzdC5vcmdhbml6YXRpb25Vc2VySWQ7XG4gICAgdGhpcy5lbWFpbCA9IGF1dGhSZXF1ZXN0LmVtYWlsO1xuICAgIHRoaXMucmVxdWVzdERldmljZUlkZW50aWZpZXIgPSBhdXRoUmVxdWVzdC5yZXF1ZXN0RGV2aWNlSWRlbnRpZmllcjtcbiAgICB0aGlzLnJlcXVlc3REZXZpY2VUeXBlID0gYXV0aFJlcXVlc3QucmVxdWVzdERldmljZVR5cGU7XG4gICAgdGhpcy5yZXF1ZXN0SXBBZGRyZXNzID0gYXV0aFJlcXVlc3QucmVxdWVzdElwQWRkcmVzcztcbiAgICB0aGlzLmNyZWF0aW9uRGF0ZSA9IGF1dGhSZXF1ZXN0LmNyZWF0aW9uRGF0ZTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/admin-console/device-approval/pending-auth-request.response.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/bit-serve-configurator.ts":
/*!*********************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/bit-serve-configurator.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitServeConfigurator: () => (/* binding */ BitServeConfigurator)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_cli_oss_serve_configurator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/cli/oss-serve-configurator */ \"./src/oss-serve-configurator.ts\");\n/* harmony import */ var _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./admin-console/device-approval */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass BitServeConfigurator extends _bitwarden_cli_oss_serve_configurator__WEBPACK_IMPORTED_MODULE_0__.OssServeConfigurator {\n    constructor(serviceContainer) {\n        super(serviceContainer);\n        this.serviceContainer = serviceContainer;\n    }\n    configureRouter(router) {\n        // Register OSS endpoints\n        super.configureRouter(router);\n        // Register bit endpoints\n        this.serveDeviceApprovals(router);\n    }\n    serveDeviceApprovals(router) {\n        router.get(\"/device-approval/:organizationId\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_1__.ListCommand.create(this.serviceContainer).run(ctx.params.organizationId);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/device-approval/:organizationId/approve-all\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_1__.ApproveAllCommand.create(this.serviceContainer).run(ctx.params.organizationId);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/device-approval/:organizationId/approve/:requestId\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_1__.ApproveCommand.create(this.serviceContainer).run(ctx.params.organizationId, ctx.params.requestId);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/device-approval/:organizationId/deny-all\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_1__.DenyAllCommand.create(this.serviceContainer).run(ctx.params.organizationId);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n        router.post(\"/device-approval/:organizationId/deny/:requestId\", (ctx, next) => __awaiter(this, void 0, void 0, function* () {\n            if (yield this.errorIfLocked(ctx.response)) {\n                yield next();\n                return;\n            }\n            const response = yield _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_1__.DenyCommand.create(this.serviceContainer).run(ctx.params.organizationId, ctx.params.requestId);\n            this.processResponse(ctx.response, response);\n            yield next();\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7380 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/bit-serve-configurator.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/bw.ts":
/*!*************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/bw.ts ***!
  \*************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! commander */ \"commander\");\n/* harmony import */ var commander__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(commander__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_cli_register_oss_programs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/register-oss-programs */ \"./src/register-oss-programs.ts\");\n/* harmony import */ var _bitwarden_cli_serve_program__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/cli/serve.program */ \"./src/serve.program.ts\");\n/* harmony import */ var _bit_serve_configurator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bit-serve-configurator */ \"../../bitwarden_license/bit-cli/src/bit-serve-configurator.ts\");\n/* harmony import */ var _register_bit_programs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./register-bit-programs */ \"../../bitwarden_license/bit-cli/src/register-bit-programs.ts\");\n/* harmony import */ var _service_container__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./service-container */ \"../../bitwarden_license/bit-cli/src/service-container.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_service_container__WEBPACK_IMPORTED_MODULE_5__]);\n_service_container__WEBPACK_IMPORTED_MODULE_5__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nfunction main() {\n    return __awaiter(this, void 0, void 0, function* () {\n        const serviceContainer = new _service_container__WEBPACK_IMPORTED_MODULE_5__.ServiceContainer();\n        yield serviceContainer.init();\n        yield (0,_bitwarden_cli_register_oss_programs__WEBPACK_IMPORTED_MODULE_1__.registerOssPrograms)(serviceContainer);\n        yield (0,_register_bit_programs__WEBPACK_IMPORTED_MODULE_4__.registerBitPrograms)(serviceContainer);\n        const serveConfigurator = new _bit_serve_configurator__WEBPACK_IMPORTED_MODULE_3__.BitServeConfigurator(serviceContainer);\n        new _bitwarden_cli_serve_program__WEBPACK_IMPORTED_MODULE_2__.ServeProgram(serviceContainer, serveConfigurator).register();\n        commander__WEBPACK_IMPORTED_MODULE_0__.program.parse(process.argv);\n    });\n}\n// Node does not support top-level await statements until ES2022, esnext, etc which we don't use yet\n// eslint-disable-next-line @typescript-eslint/no-floating-promises\nmain();\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNsaS9zcmMvYncudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBb0M7QUFFdUM7QUFDZjtBQUVJO0FBQ0Y7QUFDUDtBQUV2RCxTQUFlLElBQUk7O1FBQ2pCLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxnRUFBZ0IsRUFBRSxDQUFDO1FBQ2hELE1BQU0sZ0JBQWdCLENBQUMsSUFBSSxFQUFFLENBQUM7UUFFOUIsTUFBTSx5RkFBbUIsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQzVDLE1BQU0sMkVBQW1CLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUU1QyxNQUFNLGlCQUFpQixHQUFHLElBQUkseUVBQW9CLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUNyRSxJQUFJLHNFQUFZLENBQUMsZ0JBQWdCLEVBQUUsaUJBQWlCLENBQUMsQ0FBQyxRQUFRLEVBQUUsQ0FBQztRQUVqRS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YWluZXIpO1xuXG4gIGNvbnN0IHNlcnZlQ29uZmlndXJhdG9yID0gbmV3IEJpdFNlcnZlQ29uZmlndXJhdG9yKHNlcnZpY2VDb250YWluZXIpO1xuICBuZXcgU2VydmVQcm9ncmFtKHNlcnZpY2VDb250YWluZXIsIHNlcnZlQ29uZmlndXJhdG9yKS5yZWdpc3RlcigpO1xuXG4gIHByb2dyYW0ucGFyc2UocHJvY2Vzcy5hcmd2KTtcbn1cblxuLy8gTm9kZSBkb2VzIG5vdCBzdXBwb3J0IHRvcC1sZXZlbCBhd2FpdCBzdGF0ZW1lbnRzIHVudGlsIEVTMjAyMiwgZXNuZXh0LCBldGMgd2hpY2ggd2UgZG9uJ3QgdXNlIHlldFxuLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1mbG9hdGluZy1wcm9taXNlc1xubWFpbigpO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/bw.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/register-bit-programs.ts":
/*!********************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/register-bit-programs.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   registerBitPrograms: () => (/* binding */ registerBitPrograms)\n/* harmony export */ });\n/* harmony import */ var _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./admin-console/device-approval */ \"../../bitwarden_license/bit-cli/src/admin-console/device-approval/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n/**\n * All Bitwarden-licensed programs should be registered here.\n * @example\n * const myProgram = new myProgram(serviceContainer);\n * myProgram.register();\n * @param serviceContainer A class that instantiates services and makes them available for dependency injection\n */\nfunction registerBitPrograms(serviceContainer) {\n    return __awaiter(this, void 0, void 0, function* () {\n        new _admin_console_device_approval__WEBPACK_IMPORTED_MODULE_0__.DeviceApprovalProgram(serviceContainer).register();\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNsaS9zcmMvcmVnaXN0ZXItYml0LXByb2dyYW1zLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBQXdFO0FBR3hFOzs7Ozs7R0FNRztBQUNJLFNBQWUsbUJBQW1CLENBQUMsZ0JBQWtDOztRQUMxRSxJQUFJLGlGQUFxQixDQUFDLGdCQUFnQixDQUFDLENBQUMsUUFBUSxFQUFFLENBQUM7SUFDekQsQ0FBQztDQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNsaS9zcmMvcmVnaXN0ZXItYml0LXByb2dyYW1zLnRzPzQ5YzYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGV2aWNlQXBwcm92YWxQcm9ncmFtIH0gZnJvbSBcIi4vYWRtaW4tY29uc29sZS9kZXZpY2UtYXBwcm92YWxcIjtcbmltcG9ydCB7IFNlcnZpY2VDb250YWluZXIgfSBmcm9tIFwiLi9zZXJ2aWNlLWNvbnRhaW5lclwiO1xuXG4vKipcbiAqIEFsbCBCaXR3YXJkZW4tbGljZW5zZWQgcHJvZ3JhbXMgc2hvdWxkIGJlIHJlZ2lzdGVyZWQgaGVyZS5cbiAqIEBleGFtcGxlXG4gKiBjb25zdCBteVByb2dyYW0gPSBuZXcgbXlQcm9ncmFtKHNlcnZpY2VDb250YWluZXIpO1xuICogbXlQcm9ncmFtLnJlZ2lzdGVyKCk7XG4gKiBAcGFyYW0gc2VydmljZUNvbnRhaW5lciBBIGNsYXNzIHRoYXQgaW5zdGFudGlhdGVzIHNlcnZpY2VzIGFuZCBtYWtlcyB0aGVtIGF2YWlsYWJsZSBmb3IgZGVwZW5kZW5jeSBpbmplY3Rpb25cbiAqL1xuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHJlZ2lzdGVyQml0UHJvZ3JhbXMoc2VydmljZUNvbnRhaW5lcjogU2VydmljZUNvbnRhaW5lcikge1xuICBuZXcgRGV2aWNlQXBwcm92YWxQcm9ncmFtKHNlcnZpY2VDb250YWluZXIpLnJlZ2lzdGVyKCk7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/register-bit-programs.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-cli/src/service-container.ts":
/*!****************************************************************!*\
  !*** ../../bitwarden_license/bit-cli/src/service-container.ts ***!
  \****************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ServiceContainer: () => (/* binding */ ServiceContainer)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_bit_common_admin_console_auth_requests__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/bit-common/admin-console/auth-requests */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/index.ts\");\n/* harmony import */ var _bitwarden_cli_service_container_service_container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/cli/service-container/service-container */ \"./src/service-container/service-container.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitwarden_cli_service_container_service_container__WEBPACK_IMPORTED_MODULE_1__]);\n_bitwarden_cli_service_container_service_container__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n/**\n * Instantiates services and makes them available for dependency injection.\n * Any Bitwarden-licensed services should be registered here.\n */\nclass ServiceContainer extends _bitwarden_cli_service_container_service_container__WEBPACK_IMPORTED_MODULE_1__.ServiceContainer {\n    constructor() {\n        super();\n        this.organizationAuthRequestApiService = new _bitwarden_bit_common_admin_console_auth_requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationAuthRequestApiService(this.apiService);\n        this.organizationAuthRequestService = new _bitwarden_bit_common_admin_console_auth_requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationAuthRequestService(this.organizationAuthRequestApiService, this.keyService, this.encryptService, this.organizationUserApiService);\n    }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNsaS9zcmMvc2VydmljZS1jb250YWluZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBRzJEO0FBQ2tEO0FBRTdHOzs7R0FHRztBQUNJLE1BQU0sZ0JBQWlCLFNBQVEsZ0dBQW1CO0lBSXZEO1FBQ0UsS0FBSyxFQUFFLENBQUM7UUFDUixJQUFJLENBQUMsaUNBQWlDLEdBQUcsSUFBSSxnSEFBaUMsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDaEcs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lc3RBcGlTZXJ2aWNlO1xuICBvcmdhbml6YXRpb25BdXRoUmVxdWVzdFNlcnZpY2U6IE9yZ2FuaXphdGlvbkF1dGhSZXF1ZXN0U2VydmljZTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICAgIHRoaXMub3JnYW5pemF0aW9uQXV0aFJlcXVlc3RBcGlTZXJ2aWNlID0gbmV3IE9yZ2FuaXphdGlvbkF1dGhSZXF1ZXN0QXBpU2VydmljZSh0aGlzLmFwaVNlcnZpY2UpO1xuICAgIHRoaXMub3JnYW5pemF0aW9uQXV0aFJlcXVlc3RTZXJ2aWNlID0gbmV3IE9yZ2FuaXphdGlvbkF1dGhSZXF1ZXN0U2VydmljZShcbiAgICAgIHRoaXMub3JnYW5pemF0aW9uQXV0aFJlcXVlc3RBcGlTZXJ2aWNlLFxuICAgICAgdGhpcy5rZXlTZXJ2aWNlLFxuICAgICAgdGhpcy5lbmNyeXB0U2VydmljZSxcbiAgICAgIHRoaXMub3JnYW5pemF0aW9uVXNlckFwaVNlcnZpY2UsXG4gICAgKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-cli/src/service-container.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/admin-auth-request-update.request.ts":
/*!***************************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/admin-auth-request-update.request.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AdminAuthRequestUpdateRequest: () => (/* binding */ AdminAuthRequestUpdateRequest)\n/* harmony export */ });\nclass AdminAuthRequestUpdateRequest {\n    /**\n     *\n     * @param requestApproved - Whether the request was approved/denied. If true, the key must be provided.\n     * @param encryptedUserKey The user key that has been encrypted with a device public key if the request was approved.\n     */\n    constructor(requestApproved, encryptedUserKey) {\n        this.requestApproved = requestApproved;\n        this.encryptedUserKey = encryptedUserKey;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL2FkbWluLWF1dGgtcmVxdWVzdC11cGRhdGUucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSw2QkFBNkI7SUFDeEM7Ozs7T0FJRztJQUNILFlBQ1MsZUFBd0IsRUFDeEIsZ0JBQXlCO1FBRHpCLG9CQUFlLEdBQWYsZUFBZSxDQUFTO1FBQ3hCLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBUztJQUMvQixDQUFDO0NBQ0wiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9iaXR3YXJkZW5fbGljZW5zZS9iaXQtY29tbW9uL3NyYy9hZG1pbi1jb25zb2xlL2F1dGgtcmVxdWVzdHMvYWRtaW4tYXV0aC1yZXF1ZXN0LXVwZGF0ZS5yZXF1ZXN0LnRzP2ZhNWUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEFkbWluQXV0aFJlcXVlc3RVcGRhdGVSZXF1ZXN0IHtcbiAgLyoqXG4gICAqXG4gICAqIEBwYXJhbSByZXF1ZXN0QXBwcm92ZWQgLSBXaGV0aGVyIHRoZSByZXF1ZXN0IHdhcyBhcHByb3ZlZC9kZW5pZWQuIElmIHRydWUsIHRoZSBrZXkgbXVzdCBiZSBwcm92aWRlZC5cbiAgICogQHBhcmFtIGVuY3J5cHRlZFVzZXJLZXkgVGhlIHVzZXIga2V5IHRoYXQgaGFzIGJlZW4gZW5jcnlwdGVkIHdpdGggYSBkZXZpY2UgcHVibGljIGtleSBpZiB0aGUgcmVxdWVzdCB3YXMgYXBwcm92ZWQuXG4gICAqL1xuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgcmVxdWVzdEFwcHJvdmVkOiBib29sZWFuLFxuICAgIHB1YmxpYyBlbmNyeXB0ZWRVc2VyS2V5Pzogc3RyaW5nLFxuICApIHt9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/admin-auth-request-update.request.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/bulk-deny-auth-requests.request.ts":
/*!*************************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/bulk-deny-auth-requests.request.ts ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BulkDenyAuthRequestsRequest: () => (/* binding */ BulkDenyAuthRequestsRequest)\n/* harmony export */ });\nclass BulkDenyAuthRequestsRequest {\n    constructor(authRequestIds) {\n        this.ids = authRequestIds;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL2J1bGstZGVueS1hdXRoLXJlcXVlc3RzLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sMkJBQTJCO0lBRXRDLFlBQVksY0FBd0I7UUFDbEMsSUFBSSxDQUFDLEdBQUcsR0FBRyxjQUFjLENBQUM7SUFDNUIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL2J1bGstZGVueS1hdXRoLXJlcXVlc3RzLnJlcXVlc3QudHM/NTg5NiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgQnVsa0RlbnlBdXRoUmVxdWVzdHNSZXF1ZXN0IHtcbiAgcHJpdmF0ZSBpZHM6IHN0cmluZ1tdO1xuICBjb25zdHJ1Y3RvcihhdXRoUmVxdWVzdElkczogc3RyaW5nW10pIHtcbiAgICB0aGlzLmlkcyA9IGF1dGhSZXF1ZXN0SWRzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/bulk-deny-auth-requests.request.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/index.ts":
/*!***********************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/index.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationAuthRequestApiService: () => (/* reexport safe */ _organization_auth_request_api_service__WEBPACK_IMPORTED_MODULE_2__.OrganizationAuthRequestApiService),\n/* harmony export */   OrganizationAuthRequestService: () => (/* reexport safe */ _organization_auth_request_service__WEBPACK_IMPORTED_MODULE_1__.OrganizationAuthRequestService),\n/* harmony export */   PendingAuthRequestView: () => (/* reexport safe */ _pending_auth_request_view__WEBPACK_IMPORTED_MODULE_3__.PendingAuthRequestView),\n/* harmony export */   PendingOrganizationAuthRequestResponse: () => (/* reexport safe */ _pending_organization_auth_request_response__WEBPACK_IMPORTED_MODULE_0__.PendingOrganizationAuthRequestResponse)\n/* harmony export */ });\n/* harmony import */ var _pending_organization_auth_request_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pending-organization-auth-request.response */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-organization-auth-request.response.ts\");\n/* harmony import */ var _organization_auth_request_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./organization-auth-request.service */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request.service.ts\");\n/* harmony import */ var _organization_auth_request_api_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./organization-auth-request-api.service */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-api.service.ts\");\n/* harmony import */ var _pending_auth_request_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pending-auth-request.view */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-auth-request.view.ts\");\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQTZEO0FBQ1Q7QUFDSTtBQUNaIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL2luZGV4LnRzPzEzNzQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vcGVuZGluZy1vcmdhbml6YXRpb24tYXV0aC1yZXF1ZXN0LnJlc3BvbnNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9vcmdhbml6YXRpb24tYXV0aC1yZXF1ZXN0LnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL29yZ2FuaXphdGlvbi1hdXRoLXJlcXVlc3QtYXBpLnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3BlbmRpbmctYXV0aC1yZXF1ZXN0LnZpZXdcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/index.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-api.service.ts":
/*!*******************************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-api.service.ts ***!
  \*******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationAuthRequestApiService: () => (/* binding */ OrganizationAuthRequestApiService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _admin_auth_request_update_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./admin-auth-request-update.request */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/admin-auth-request-update.request.ts\");\n/* harmony import */ var _bulk_deny_auth_requests_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bulk-deny-auth-requests.request */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/bulk-deny-auth-requests.request.ts\");\n/* harmony import */ var _pending_auth_request_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pending-auth-request.view */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-auth-request.view.ts\");\n/* harmony import */ var _pending_organization_auth_request_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pending-organization-auth-request.response */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-organization-auth-request.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass OrganizationAuthRequestApiService {\n    constructor(apiService) {\n        this.apiService = apiService;\n    }\n    listPendingRequests(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", `/organizations/${organizationId}/auth-requests`, null, true, true);\n            const listResponse = new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _pending_organization_auth_request_response__WEBPACK_IMPORTED_MODULE_4__.PendingOrganizationAuthRequestResponse);\n            return listResponse.data.map((ar) => _pending_auth_request_view__WEBPACK_IMPORTED_MODULE_3__.PendingAuthRequestView.fromResponse(ar));\n        });\n    }\n    denyPendingRequests(organizationId, ...requestIds) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", `/organizations/${organizationId}/auth-requests/deny`, new _bulk_deny_auth_requests_request__WEBPACK_IMPORTED_MODULE_2__.BulkDenyAuthRequestsRequest(requestIds), true, false);\n        });\n    }\n    bulkUpdatePendingRequests(organizationId, items) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", `/organizations/${organizationId}/auth-requests`, items, true, false);\n        });\n    }\n    approvePendingRequest(organizationId, requestId, encryptedKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", `/organizations/${organizationId}/auth-requests/${requestId}`, new _admin_auth_request_update_request__WEBPACK_IMPORTED_MODULE_1__.AdminAuthRequestUpdateRequest(true, encryptedKey.encryptedString), true, false);\n        });\n    }\n    denyPendingRequest(organizationId, requestId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", `/organizations/${organizationId}/auth-requests/${requestId}`, new _admin_auth_request_update_request__WEBPACK_IMPORTED_MODULE_1__.AdminAuthRequestUpdateRequest(false), true, false);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5468 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-api.service.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-update.request.ts":
/*!**********************************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-update.request.ts ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationAuthRequestUpdateRequest: () => (/* binding */ OrganizationAuthRequestUpdateRequest)\n/* harmony export */ });\nclass OrganizationAuthRequestUpdateRequest {\n    constructor(id, approved, key) {\n        this.id = id;\n        this.approved = approved;\n        this.key = key;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL29yZ2FuaXphdGlvbi1hdXRoLXJlcXVlc3QtdXBkYXRlLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sb0NBQW9DO0lBQy9DLFlBQ1MsRUFBVSxFQUNWLFFBQWlCLEVBQ2pCLEdBQVk7UUFGWixPQUFFLEdBQUYsRUFBRSxDQUFRO1FBQ1YsYUFBUSxHQUFSLFFBQVEsQ0FBUztRQUNqQixRQUFHLEdBQUgsR0FBRyxDQUFTO0lBQ2xCLENBQUM7Q0FDTCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2JpdHdhcmRlbl9saWNlbnNlL2JpdC1jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvYXV0aC1yZXF1ZXN0cy9vcmdhbml6YXRpb24tYXV0aC1yZXF1ZXN0LXVwZGF0ZS5yZXF1ZXN0LnRzPzFjMjMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvbkF1dGhSZXF1ZXN0VXBkYXRlUmVxdWVzdCB7XG4gIGNvbnN0cnVjdG9yKFxuICAgIHB1YmxpYyBpZDogc3RyaW5nLFxuICAgIHB1YmxpYyBhcHByb3ZlZDogYm9vbGVhbixcbiAgICBwdWJsaWMga2V5Pzogc3RyaW5nLFxuICApIHt9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-update.request.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request.service.ts":
/*!***************************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request.service.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationAuthRequestService: () => (/* binding */ OrganizationAuthRequestService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _organization_auth_request_update_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./organization-auth-request-update.request */ \"../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request-update.request.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass OrganizationAuthRequestService {\n    constructor(organizationAuthRequestApiService, keyService, encryptService, organizationUserApiService) {\n        this.organizationAuthRequestApiService = organizationAuthRequestApiService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.organizationUserApiService = organizationUserApiService;\n    }\n    listPendingRequests(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.organizationAuthRequestApiService.listPendingRequests(organizationId);\n        });\n    }\n    denyPendingRequests(organizationId, ...requestIds) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.organizationAuthRequestApiService.denyPendingRequests(organizationId, ...requestIds);\n        });\n    }\n    approvePendingRequests(organizationId, authRequests) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const organizationUserIds = authRequests.map((r) => r.organizationUserId);\n            const details = yield this.organizationUserApiService.getManyOrganizationUserAccountRecoveryDetails(organizationId, organizationUserIds);\n            if (details == null ||\n                details.data.length == 0 ||\n                details.data.some((d) => d.resetPasswordKey == null)) {\n                throw new Error(\"All users must be enrolled in account recovery (password reset) in order for the requests to be approved.\");\n            }\n            const requestsToApprove = yield Promise.all(authRequests.map((r) => __awaiter(this, void 0, void 0, function* () {\n                const detail = details.data.find((d) => d.organizationUserId === r.organizationUserId);\n                const encryptedKey = yield this.getEncryptedUserKey(organizationId, r.publicKey, detail);\n                return new _organization_auth_request_update_request__WEBPACK_IMPORTED_MODULE_3__.OrganizationAuthRequestUpdateRequest(r.id, true, encryptedKey.encryptedString);\n            })));\n            yield this.organizationAuthRequestApiService.bulkUpdatePendingRequests(organizationId, requestsToApprove);\n        });\n    }\n    approvePendingRequest(organizationId, authRequest) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const details = yield this.organizationUserApiService.getOrganizationUserResetPasswordDetails(organizationId, authRequest.organizationUserId);\n            if (details == null || details.resetPasswordKey == null) {\n                throw new Error(\"The user must be enrolled in account recovery (password reset) in order for the request to be approved.\");\n            }\n            const encryptedKey = yield this.getEncryptedUserKey(organizationId, authRequest.publicKey, details);\n            yield this.organizationAuthRequestApiService.approvePendingRequest(organizationId, authRequest.id, encryptedKey);\n        });\n    }\n    denyPendingRequest(organizationId, requestId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.organizationAuthRequestApiService.denyPendingRequest(organizationId, requestId);\n        });\n    }\n    /**\n     * Creates a copy of the user key that has been encrypted with the provided device's public key.\n     * @param organizationId\n     * @param devicePublicKey\n     * @param resetPasswordDetails\n     * @private\n     */\n    getEncryptedUserKey(organizationId, devicePublicKey, resetPasswordDetails) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const encryptedUserKey = resetPasswordDetails.resetPasswordKey;\n            const encryptedOrgPrivateKey = resetPasswordDetails.encryptedPrivateKey;\n            const devicePubKey = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromB64ToArray(devicePublicKey);\n            // Decrypt Organization's encrypted Private Key with org key\n            const orgSymKey = yield this.keyService.getOrgKey(organizationId);\n            const decOrgPrivateKey = yield this.encryptService.decryptToBytes(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(encryptedOrgPrivateKey), orgSymKey);\n            // Decrypt user key with decrypted org private key\n            const decValue = yield this.encryptService.rsaDecrypt(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(encryptedUserKey), decOrgPrivateKey);\n            const userKey = new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_2__.SymmetricCryptoKey(decValue);\n            // Re-encrypt user Key with the Device Public Key\n            return yield this.encryptService.rsaEncrypt(userKey.key, devicePubKey);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10744 characters]\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/organization-auth-request.service.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-auth-request.view.ts":
/*!*******************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-auth-request.view.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PendingAuthRequestView: () => (/* binding */ PendingAuthRequestView)\n/* harmony export */ });\nclass PendingAuthRequestView {\n    static fromResponse(response) {\n        const view = Object.assign(new PendingAuthRequestView(), response);\n        view.creationDate = new Date(response.creationDate);\n        return view;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL3BlbmRpbmctYXV0aC1yZXF1ZXN0LnZpZXcudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUlPLE1BQU0sc0JBQXNCO0lBV2pDLE1BQU0sQ0FBQyxZQUFZLENBQUMsUUFBZ0Q7UUFDbEUsTUFBTSxJQUFJLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLHNCQUFzQixFQUFFLEVBQUUsUUFBUSxDQUEyQixDQUFDO1FBRTdGLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxJQUFJLENBQUMsUUFBUSxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBRXBELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL3BlbmRpbmctYXV0aC1yZXF1ZXN0LnZpZXcudHM/Mzc0MiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBWaWV3IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL21vZGVscy92aWV3L3ZpZXdcIjtcblxuaW1wb3J0IHsgUGVuZGluZ09yZ2FuaXphdGlvbkF1dGhSZXF1ZXN0UmVzcG9uc2UgfSBmcm9tIFwiLlwiO1xuXG5leHBvcnQgY2xhc3MgUGVuZGluZ0F1dGhSZXF1ZXN0VmlldyBpbXBsZW1lbnRzIFZpZXcge1xuICBpZDogc3RyaW5nO1xuICB1c2VySWQ6IHN0cmluZztcbiAgb3JnYW5pemF0aW9uVXNlcklkOiBzdHJpbmc7XG4gIGVtYWlsOiBzdHJpbmc7XG4gIHB1YmxpY0tleTogc3RyaW5nO1xuICByZXF1ZXN0RGV2aWNlSWRlbnRpZmllcjogc3RyaW5nO1xuICByZXF1ZXN0RGV2aWNlVHlwZTogc3RyaW5nO1xuICByZXF1ZXN0SXBBZGRyZXNzOiBzdHJpbmc7XG4gIGNyZWF0aW9uRGF0ZTogRGF0ZTtcblxuICBzdGF0aWMgZnJvbVJlc3BvbnNlKHJlc3BvbnNlOiBQZW5kaW5nT3JnYW5pemF0aW9uQXV0aFJlcXVlc3RSZXNwb25zZSk6IFBlbmRpbmdBdXRoUmVxdWVzdFZpZXcge1xuICAgIGNvbnN0IHZpZXcgPSBPYmplY3QuYXNzaWduKG5ldyBQZW5kaW5nQXV0aFJlcXVlc3RWaWV3KCksIHJlc3BvbnNlKSBhcyBQZW5kaW5nQXV0aFJlcXVlc3RWaWV3O1xuXG4gICAgdmlldy5jcmVhdGlvbkRhdGUgPSBuZXcgRGF0ZShyZXNwb25zZS5jcmVhdGlvbkRhdGUpO1xuXG4gICAgcmV0dXJuIHZpZXc7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-auth-request.view.ts\n");

/***/ }),

/***/ "../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-organization-auth-request.response.ts":
/*!************************************************************************************************************************!*\
  !*** ../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-organization-auth-request.response.ts ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PendingOrganizationAuthRequestResponse: () => (/* binding */ PendingOrganizationAuthRequestResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass PendingOrganizationAuthRequestResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.organizationUserId = this.getResponseProperty(\"OrganizationUserId\");\n        this.email = this.getResponseProperty(\"Email\");\n        this.publicKey = this.getResponseProperty(\"PublicKey\");\n        this.requestDeviceIdentifier = this.getResponseProperty(\"RequestDeviceIdentifier\");\n        this.requestDeviceType = this.getResponseProperty(\"RequestDeviceType\");\n        this.requestIpAddress = this.getResponseProperty(\"RequestIpAddress\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vYml0d2FyZGVuX2xpY2Vuc2UvYml0LWNvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9hdXRoLXJlcXVlc3RzL3BlbmRpbmctb3JnYW5pemF0aW9uLWF1dGgtcmVxdWVzdC5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUErRTtBQUV4RSxNQUFNLHNDQUF1QyxTQUFRLHlGQUFZO0lBV3RFLFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDekMsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDakQsSUFBSSxDQUFDLGtCQU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XCJSZXF1ZXN0SXBBZGRyZXNzXCIpO1xuICAgIHRoaXMuY3JlYXRpb25EYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ3JlYXRpb25EYXRlXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../bitwarden_license/bit-common/src/admin-console/auth-requests/pending-organization-auth-request.response.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts":
/*!************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionAdminService: () => (/* binding */ CollectionAdminService)\n/* harmony export */ });\nclass CollectionAdminService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvYWJzdHJhY3Rpb25zL2NvbGxlY3Rpb24tYWRtaW4uc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBSU8sTUFBZSxzQkFBc0I7Q0FXM0MiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9jb2xsZWN0aW9ucy9hYnN0cmFjdGlvbnMvY29sbGVjdGlvbi1hZG1pbi5zZXJ2aWNlLnRzP2MwOWYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29sbGVjdGlvbkRldGFpbHNSZXNwb25zZSB9IGZyb20gXCJAYml0d2FyZGVuL2FkbWluLWNvbnNvbGUvY29tbW9uXCI7XG5cbmltcG9ydCB7IENvbGxlY3Rpb25BY2Nlc3NTZWxlY3Rpb25WaWV3LCBDb2xsZWN0aW9uQWRtaW5WaWV3IH0gZnJvbSBcIi4uL21vZGVsc1wiO1xuXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgQ29sbGVjdGlvbkFkbWluU2VydmljZSB7XG4gIGdldEFsbDogKG9yZ2FuaXphdGlvbklkOiBzdHJpbmcpID0+IFByb21pc2U8Q29sbGVjdGlvbkFkbWluVmlld1tdPjtcbiAgZ2V0OiAob3JnYW5pemF0aW9uSWQ6IHN0cmluZywgY29sbGVjdGlvbklkOiBzdHJpbmcpID0+IFByb21pc2U8Q29sbGVjdGlvbkFkbWluVmlldyB8IHVuZGVmaW5lZD47XG4gIHNhdmU6IChjb2xsZWN0aW9uOiBDb2xsZWN0aW9uQWRtaW5WaWV3KSA9PiBQcm9taXNlPENvbGxlY3Rpb25EZXRhaWxzUmVzcG9uc2U+O1xuICBkZWxldGU6IChvcmdhbml6YXRpb25JZDogc3RyaW5nLCBjb2xsZWN0aW9uSWQ6IHN0cmluZykgPT4gUHJvbWlzZTx2b2lkPjtcbiAgYnVsa0Fzc2lnbkFjY2VzczogKFxuICAgIG9yZ2FuaXphdGlvbklkOiBzdHJpbmcsXG4gICAgY29sbGVjdGlvbklkczogc3RyaW5nW10sXG4gICAgdXNlcnM6IENvbGxlY3Rpb25BY2Nlc3NTZWxlY3Rpb25WaWV3W10sXG4gICAgZ3JvdXBzOiBDb2xsZWN0aW9uQWNjZXNzU2VsZWN0aW9uVmlld1tdLFxuICApID0+IFByb21pc2U8dm9pZD47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/abstractions/collection.service.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/abstractions/collection.service.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionService: () => (/* binding */ CollectionService)\n/* harmony export */ });\nclass CollectionService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvYWJzdHJhY3Rpb25zL2NvbGxlY3Rpb24uc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBUU8sTUFBZSxpQkFBaUI7Q0F3QnRDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvYWJzdHJhY3Rpb25zL2NvbGxlY3Rpb24uc2VydmljZS50cz9jZWNmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tIFwicnhqc1wiO1xuXG5pbXBvcnQgeyBDb2xsZWN0aW9uSWQsIE9yZ2FuaXphdGlvbklkLCBVc2VySWQgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdHlwZXMvZ3VpZFwiO1xuaW1wb3J0IHsgT3JnS2V5IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL3R5cGVzL2tleVwiO1xuaW1wb3J0IHsgVHJlZU5vZGUgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL2RvbWFpbi90cmVlLW5vZGVcIjtcblxuaW1wb3J0IHsgQ29sbGVjdGlvbkRhdGEsIENvbGxlY3Rpb24sIENvbGxlY3Rpb25WaWV3IH0gZnJvbSBcIi4uL21vZGVsc1wiO1xuXG5leHBvcnQgYWJ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SA9PiBQcm9taXNlPFRyZWVOb2RlPENvbGxlY3Rpb25WaWV3Pj47XG4gIHVwc2VydDogKGNvbGxlY3Rpb246IENvbGxlY3Rpb25EYXRhIHwgQ29sbGVjdGlvbkRhdGFbXSkgPT4gUHJvbWlzZTxhbnk+O1xuICByZXBsYWNlOiAoY29sbGVjdGlvbnM6IHsgW2lkOiBzdHJpbmddOiBDb2xsZWN0aW9uRGF0YSB9LCB1c2VySWQ6IFVzZXJJZCkgPT4gUHJvbWlzZTxhbnk+O1xuICBjbGVhcjogKHVzZXJJZD86IHN0cmluZykgPT4gUHJvbWlzZTx2b2lkPjtcbiAgZGVsZXRlOiAoaWQ6IHN0cmluZyB8IHN0cmluZ1tdKSA9PiBQcm9taXNlPGFueT47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/abstractions/collection.service.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/abstractions/index.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/abstractions/index.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionAdminService: () => (/* reexport safe */ _collection_admin_service__WEBPACK_IMPORTED_MODULE_0__.CollectionAdminService),\n/* harmony export */   CollectionService: () => (/* reexport safe */ _collection_service__WEBPACK_IMPORTED_MODULE_1__.CollectionService)\n/* harmony export */ });\n/* harmony import */ var _collection_admin_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection-admin.service */ \"../../libs/admin-console/src/common/collections/abstractions/collection-admin.service.ts\");\n/* harmony import */ var _collection_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collection.service */ \"../../libs/admin-console/src/common/collections/abstractions/collection.service.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvYWJzdHJhY3Rpb25zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBMkM7QUFDTiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL2NvbGxlY3Rpb25zL2Fic3RyYWN0aW9ucy9pbmRleC50cz8wMjBlIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2NvbGxlY3Rpb24tYWRtaW4uc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29sbGVjdGlvbi5zZXJ2aWNlXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/abstractions/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/index.ts":
/*!****************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/index.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BulkCollectionAccessRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.BulkCollectionAccessRequest),\n/* harmony export */   Collection: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.Collection),\n/* harmony export */   CollectionAccessDetailsResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse),\n/* harmony export */   CollectionAccessSelectionView: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessSelectionView),\n/* harmony export */   CollectionAdminService: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.CollectionAdminService),\n/* harmony export */   CollectionAdminView: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionAdminView),\n/* harmony export */   CollectionData: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionData),\n/* harmony export */   CollectionDetailsResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionDetailsResponse),\n/* harmony export */   CollectionRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionRequest),\n/* harmony export */   CollectionResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionResponse),\n/* harmony export */   CollectionService: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.CollectionService),\n/* harmony export */   CollectionView: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionView),\n/* harmony export */   CollectionWithIdRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.CollectionWithIdRequest),\n/* harmony export */   DefaultCollectionAdminService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_2__.DefaultCollectionAdminService),\n/* harmony export */   DefaultCollectionService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_2__.DefaultCollectionService),\n/* harmony export */   ENCRYPTED_COLLECTION_DATA_KEY: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_COLLECTION_DATA_KEY),\n/* harmony export */   NestingDelimiter: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.NestingDelimiter),\n/* harmony export */   Unassigned: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.Unassigned)\n/* harmony export */ });\n/* harmony import */ var _abstractions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstractions */ \"../../libs/admin-console/src/common/collections/abstractions/index.ts\");\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./models */ \"../../libs/admin-console/src/common/collections/models/index.ts\");\n/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./services */ \"../../libs/admin-console/src/common/collections/services/index.ts\");\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQStCO0FBQ047QUFDRSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL2NvbGxlY3Rpb25zL2luZGV4LnRzPzNlNGYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vYWJzdHJhY3Rpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9tb2RlbHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/bulk-collection-access.request.ts":
/*!************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/bulk-collection-access.request.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BulkCollectionAccessRequest: () => (/* binding */ BulkCollectionAccessRequest)\n/* harmony export */ });\nclass BulkCollectionAccessRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2J1bGstY29sbGVjdGlvbi1hY2Nlc3MucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSwyQkFBMkI7Q0FJdkMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9jb2xsZWN0aW9ucy9tb2RlbHMvYnVsay1jb2xsZWN0aW9uLWFjY2Vzcy5yZXF1ZXN0LnRzPzQxMjIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VsZWN0aW9uUmVhZE9ubHlSZXF1ZXN0IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL2FkbWluLWNvbnNvbGUvbW9kZWxzL3JlcXVlc3Qvc2VsZWN0aW9uLXJlYWQtb25seS5yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjbGFzcyBCdWxrQ29sbGVjdGlvbkFjY2Vzc1JlcXVlc3Qge1xuICBjb2xsZWN0aW9uSWRzOiBzdHJpbmdbXTtcbiAgdXNlcnM6IFNlbGVjdGlvblJlYWRPbmx5UmVxdWVzdFtdO1xuICBncm91cHM6IFNlbGVjdGlvblJlYWRPbmx5UmVxdWVzdFtdO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/bulk-collection-access.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection-access-selection.view.ts":
/*!**************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection-access-selection.view.ts ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionAccessSelectionView: () => (/* binding */ CollectionAccessSelectionView)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_view_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/view/view */ \"../../libs/common/src/models/view/view.ts\");\n\nclass CollectionAccessSelectionView extends _bitwarden_common_models_view_view__WEBPACK_IMPORTED_MODULE_0__.View {\n    constructor(response) {\n        super();\n        if (!response) {\n            return;\n        }\n        this.id = response.id;\n        this.readOnly = response.readOnly;\n        this.hidePasswords = response.hidePasswords;\n        this.manage = response.manage;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2NvbGxlY3Rpb24tYWNjZXNzLXNlbGVjdGlvbi52aWV3LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQTBEO0FBU25ELE1BQU0sNkJBQThCLFNBQVEsb0VBQUk7SUFNckQsWUFBWSxRQUFnQztRQUMxQyxLQUFLLEVBQUUsQ0FBQztRQUVSLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztZQUNkLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxDQUFDLEVBQUUsR0FBRyxRQUFRLENBQUMsRUFBRSxDQUFDO1FBQ3RCLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDLFFBQVEsQ0FBQztRQUNsQyxJQUFJLENBQUMsYUFBYSxHQUFHLFFBQVEsQ0FBQyxhQUFhLENBQUM7UUFDNUMsSUFBSSxDQUFDLE1BQU0sR0FBRyxRQUFRLENBQUMsTUFBTSxDQUFDO0lBQ2hDLENBQUM7Q0FDRiIsInNvdXJjZXMi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iJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection-access-selection.view.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection-admin.view.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection-admin.view.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionAdminView: () => (/* binding */ CollectionAdminView),\n/* harmony export */   Unassigned: () => (/* binding */ Unassigned)\n/* harmony export */ });\n/* harmony import */ var _collection_access_selection_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection-access-selection.view */ \"../../libs/admin-console/src/common/collections/models/collection-access-selection.view.ts\");\n/* harmony import */ var _collection_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collection.view */ \"../../libs/admin-console/src/common/collections/models/collection.view.ts\");\n\n\nconst Unassigned = \"unassigned\";\nclass CollectionAdminView extends _collection_view__WEBPACK_IMPORTED_MODULE_1__.CollectionView {\n    constructor(response) {\n        super(response);\n        this.groups = [];\n        this.users = [];\n        if (!response) {\n            return;\n        }\n        this.groups = response.groups\n            ? response.groups.map((g) => new _collection_access_selection_view__WEBPACK_IMPORTED_MODULE_0__.CollectionAccessSelectionView(g))\n            : [];\n        this.users = response.users\n            ? response.users.map((g) => new _collection_access_selection_view__WEBPACK_IMPORTED_MODULE_0__.CollectionAccessSelectionView(g))\n            : [];\n        this.assigned = response.assigned;\n    }\n    /**\n     * Returns true if the user can edit a collection (including user and group access) from the Admin Console.\n     */\n    canEdit(org) {\n        return ((org === null || org === void 0 ? void 0 : org.canEditAnyCollection) ||\n            (this.unmanaged && (org === null || org === void 0 ? void 0 : org.canEditUnmanagedCollections)) ||\n            super.canEdit(org));\n    }\n    /**\n     * Returns true if the user can delete a collection from the Admin Console.\n     */\n    canDelete(org) {\n        return (org === null || org === void 0 ? void 0 : org.canDeleteAnyCollection) || super.canDelete(org);\n    }\n    /**\n     * Whether the user can modify user access to this collection\n     */\n    canEditUserAccess(org) {\n        return ((org.permissions.manageUsers && org.allowAdminAccessToAllCollectionItems) || this.canEdit(org));\n    }\n    /**\n     * Whether the user can modify group access to this collection\n     */\n    canEditGroupAccess(org) {\n        return ((org.permissions.manageGroups && org.allowAdminAccessToAllCollectionItems) ||\n            this.canEdit(org));\n    }\n    /**\n     * Returns true if the user can view collection info and access in a read-only state from the Admin Console\n     */\n    canViewCollectionInfo(org) {\n        if (this.isUnassignedCollection) {\n            return false;\n        }\n        return this.manage || (org === null || org === void 0 ? void 0 : org.isAdmin) || (org === null || org === void 0 ? void 0 : org.permissions.editAnyCollection);\n    }\n    /**\n     * True if this collection represents the pseudo \"Unassigned\" collection\n     * This is different from the \"unmanaged\" flag, which indicates that no users or groups have access to the collection\n     */\n    get isUnassignedCollection() {\n        return this.id === Unassigned;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6616 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection-admin.view.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection-with-id.request.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection-with-id.request.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionWithIdRequest: () => (/* binding */ CollectionWithIdRequest)\n/* harmony export */ });\n/* harmony import */ var _collection_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection.request */ \"../../libs/admin-console/src/common/collections/models/collection.request.ts\");\n\nclass CollectionWithIdRequest extends _collection_request__WEBPACK_IMPORTED_MODULE_0__.CollectionRequest {\n    constructor(collection) {\n        if (collection == null) {\n            return;\n        }\n        super(collection);\n        this.id = collection.id;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2NvbGxlY3Rpb24td2l0aC1pZC5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQ3lEO0FBRWxELE1BQU0sdUJBQXdCLFNBQVEsa0VBQWlCO0lBRzVELFlBQVksVUFBdUI7UUFDakMsSUFBSSxVQUFVLElBQUksSUFBSSxFQUFFLENBQUM7WUFDdkIsT0FBTztRQUNULENBQUM7UUFDRCxLQUFLLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDbEIsSUFBSSxDQUFDLEVBQUUsR0FBRyxVQUFVLENBQUMsRUFBRSxDQUFDO0lBQzFCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL2NvbGxlY3Rpb25zL21vZGVscy9jb2xsZWN0aW9uLXdpdGgtaWQucmVxdWVzdC50cz9iMGRjIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbGxlY3Rpb24gfSBmcm9tIFwiLi9jb2xsZWN0aW9uXCI7XG5pbXBvcnQgeyBDb2xsZWN0aW9uUmVxdWVzdCB9IGZyb20gXCIuL2NvbGxlY3Rpb24ucmVxdWVzdFwiO1xuXG5leHBvcnQgY2xhc3MgQ29sbGVjdGlvbldpdGhJZFJlcXVlc3QgZXh0ZW5kcyBDb2xsZWN0aW9uUmVxdWVzdCB7XG4gIGlkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoY29sbGVjdGlvbj86IENvbGxlY3Rpb24pIHtcbiAgICBpZiAoY29sbGVjdGlvbiA9PSBudWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHN1cGVyKGNvbGxlY3Rpb24pO1xuICAgIHRoaXMuaWQgPSBjb2xsZWN0aW9uLmlkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection-with-id.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection.data.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection.data.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionData: () => (/* binding */ CollectionData)\n/* harmony export */ });\n/* harmony import */ var _collection_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection.response */ \"../../libs/admin-console/src/common/collections/models/collection.response.ts\");\n\nclass CollectionData {\n    constructor(response) {\n        this.id = response.id;\n        this.organizationId = response.organizationId;\n        this.name = response.name;\n        this.externalId = response.externalId;\n        this.readOnly = response.readOnly;\n        this.manage = response.manage;\n        this.hidePasswords = response.hidePasswords;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new CollectionData(new _collection_response__WEBPACK_IMPORTED_MODULE_0__.CollectionDetailsResponse({})), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2NvbGxlY3Rpb24uZGF0YS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUlrRTtBQUUzRCxNQUFNLGNBQWM7SUFTekIsWUFBWSxRQUFtQztRQUM3QyxJQUFJLENBQUMsRUFBRSxHQUFHLFFBQVEsQ0FBQy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WN0aW9uRGF0YSB7XG4gIGlkOiBDb2xsZWN0aW9uSWQ7XG4gIG9yZ2FuaXphdGlvbklkOiBPcmdhbml6YXRpb25JZDtcbiAgbmFtZTogc3RyaW5nO1xuICBleHRlcm5hbElkOiBzdHJpbmc7XG4gIHJlYWRPbmx5OiBib29sZWFuO1xuICBtYW5hZ2U6IGJvb2xlYW47XG4gIGhpZGVQYXNzd29yZHM6IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IENvbGxlY3Rpb25EZXRhaWxzUmVzcG9uc2UpIHtcbiAgICB0aGlzLmlkID0gcmVzcG9uc2UuaWQ7XG4gICAgdGhpcy5vcmdhbml6YXRpb25JZCA9IHJlc3BvbnNlLm9yZ2FuaXphdGlvbklkO1xuICAgIHRoaXMubmFtZSA9IHJlc3BvbnNlLm5hbWU7XG4gICAgdGhpcy5leHRlcm5hbElkID0gcmVzcG9uc2UuZXh0ZXJuYWxJZDtcbiAgICB0aGlzLnJlYWRPbmx5ID0gcmVzcG9uc2UucmVhZE9ubHk7XG4gICAgdGhpcy5tYW5hZ2UgPSByZXNwb25zZS5tYW5hZ2U7XG4gICAgdGhpcy5oaWRlUGFzc3dvcmRzID0gcmVzcG9uc2UuaGlkZVBhc3N3b3JkcztcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IEpzb25pZnk8Q29sbGVjdGlvbkRhdGE+KSB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24obmV3IENvbGxlY3Rpb25EYXRhKG5ldyBDb2xsZWN0aW9uRGV0YWlsc1Jlc3BvbnNlKHt9KSksIG9iaik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection.data.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection.request.ts":
/*!************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection.request.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionRequest: () => (/* binding */ CollectionRequest)\n/* harmony export */ });\nclass CollectionRequest {\n    constructor(collection) {\n        this.groups = [];\n        this.users = [];\n        if (collection == null) {\n            return;\n        }\n        this.name = collection.name ? collection.name.encryptedString : null;\n        this.externalId = collection.externalId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2NvbGxlY3Rpb24ucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBSU8sTUFBTSxpQkFBaUI7SUFNNUIsWUFBWSxVQUF1QjtRQUhuQyxXQUFNLEdBQStCLEVBQUUsQ0FBQztRQUN4QyxVQUFLLEdBQStCLEVBQUUsQ0FBQztRQUdyQyxJQUFJLFVBQVUsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUN2QixPQUFPO1FBQ1QsQ0FBQztRQUNELElBQUksQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztRQUNyRSxJQUFJLENBQUMsVUFBVSxHQUFHLFVBQVUsQ0FBQyxVQUFVLENBQUM7SUFDMUMsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2NvbGxlY3Rpb24ucmVxdWVzdC50cz8zZGUzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlbGVjdGlvblJlYWRPbmx5UmVxdWVzdCB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9hZG1pbi1jb25zb2xlL21vZGVscy9yZXF1ZXN0L3NlbGVjdGlvbi1yZWFkLW9ubHkucmVxdWVzdFwiO1xuXG5pbXBvcnQgeyBDb2xsZWN0aW9uIH0gZnJvbSBcIi4vY29sbGVjdGlvblwiO1xuXG5leHBvcnQgY2xhc3MgQ29sbGVjdGlvblJlcXVlc3Qge1xuICBuYW1lOiBzdHJpbmc7XG4gIGV4dGVybmFsSWQ6IHN0cmluZztcbiAgZ3JvdXBzOiBTZWxlY3Rpb25SZWFkT25seVJlcXVlc3RbXSA9IFtdO1xuICB1c2VyczogU2VsZWN0aW9uUmVhZE9ubHlSZXF1ZXN0W10gPSBbXTtcblxuICBjb25zdHJ1Y3Rvcihjb2xsZWN0aW9uPzogQ29sbGVjdGlvbikge1xuICAgIGlmIChjb2xsZWN0aW9uID09IG51bGwpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy5uYW1lID0gY29sbGVjdGlvbi5uYW1lID8gY29sbGVjdGlvbi5uYW1lLmVuY3J5cHRlZFN0cmluZyA6IG51bGw7XG4gICAgdGhpcy5leHRlcm5hbElkID0gY29sbGVjdGlvbi5leHRlcm5hbElkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection.response.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection.response.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionAccessDetailsResponse: () => (/* binding */ CollectionAccessDetailsResponse),\n/* harmony export */   CollectionDetailsResponse: () => (/* binding */ CollectionDetailsResponse),\n/* harmony export */   CollectionResponse: () => (/* binding */ CollectionResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/response/selection-read-only.response */ \"../../libs/common/src/admin-console/models/response/selection-read-only.response.ts\");\n/* harmony import */ var _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\n\nclass CollectionResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_1__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.organizationId = this.getResponseProperty(\"OrganizationId\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.externalId = this.getResponseProperty(\"ExternalId\");\n    }\n}\nclass CollectionDetailsResponse extends CollectionResponse {\n    constructor(response) {\n        super(response);\n        this.readOnly = this.getResponseProperty(\"ReadOnly\") || false;\n        this.manage = this.getResponseProperty(\"Manage\") || false;\n        this.hidePasswords = this.getResponseProperty(\"HidePasswords\") || false;\n        // Temporary until the API is updated to return this property in AC-2084\n        // For now, we can assume that if the object is 'collectionDetails' then the user is assigned\n        this.assigned = this.getResponseProperty(\"object\") == \"collectionDetails\";\n    }\n}\nclass CollectionAccessDetailsResponse extends CollectionDetailsResponse {\n    constructor(response) {\n        super(response);\n        this.groups = [];\n        this.users = [];\n        this.assigned = this.getResponseProperty(\"Assigned\") || false;\n        this.unmanaged = this.getResponseProperty(\"Unmanaged\") || false;\n        const groups = this.getResponseProperty(\"Groups\");\n        if (groups != null) {\n            this.groups = groups.map((g) => new _bitwarden_common_admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_0__.SelectionReadOnlyResponse(g));\n        }\n        const users = this.getResponseProperty(\"Users\");\n        if (users != null) {\n            this.users = users.map((g) => new _bitwarden_common_admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_0__.SelectionReadOnlyResponse(g));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5424 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection.response.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection.ts":
/*!****************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Collection: () => (/* binding */ Collection)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _collection_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collection.view */ \"../../libs/admin-console/src/common/collections/models/collection.view.ts\");\n\n\nclass Collection extends _bitwarden_common_platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            id: null,\n            organizationId: null,\n            name: null,\n            externalId: null,\n            readOnly: null,\n            hidePasswords: null,\n            manage: null,\n        }, [\"id\", \"organizationId\", \"readOnly\", \"hidePasswords\", \"manage\"]);\n    }\n    decrypt(orgKey) {\n        return this.decryptObj(new _collection_view__WEBPACK_IMPORTED_MODULE_1__.CollectionView(this), {\n            name: null,\n        }, this.organizationId, orgKey);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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xsLFxuICAgICAgICByZWFkT25seTogbnVsbCxcbiAgICAgICAgaGlkZVBhc3N3b3JkczogbnVsbCxcbiAgICAgICAgbWFuYWdlOiBudWxsLFxuICAgICAgfSxcbiAgICAgIFtcImlkXCIsIFwib3JnYW5pemF0aW9uSWRcIiwgXCJyZWFkT25seVwiLCBcImhpZGVQYXNzd29yZHNcIiwgXCJtYW5hZ2VcIl0sXG4gICAgKTtcbiAgfVxuXG4gIGRlY3J5cHQob3JnS2V5OiBPcmdLZXkpOiBQcm9taXNlPENvbGxlY3Rpb25WaWV3PiB7XG4gICAgcmV0dXJuIHRoaXMuZGVjcnlwdE9iaihcbiAgICAgIG5ldyBDb2xsZWN0aW9uVmlldyh0aGlzKSxcbiAgICAgIHtcbiAgICAgICAgbmFtZTogbnVsbCxcbiAgICAgIH0sXG4gICAgICB0aGlzLm9yZ2FuaXphdGlvbklkLFxuICAgICAgb3JnS2V5LFxuICAgICk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/collection.view.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/collection.view.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionView: () => (/* binding */ CollectionView),\n/* harmony export */   NestingDelimiter: () => (/* binding */ NestingDelimiter)\n/* harmony export */ });\n/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ \"../../libs/admin-console/src/common/collections/models/collection.ts\");\n/* harmony import */ var _collection_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collection.response */ \"../../libs/admin-console/src/common/collections/models/collection.response.ts\");\n\n\nconst NestingDelimiter = \"/\";\nclass CollectionView {\n    constructor(c) {\n        this.id = null;\n        this.organizationId = null;\n        this.name = null;\n        this.externalId = null;\n        // readOnly applies to the items within a collection\n        this.readOnly = null;\n        this.hidePasswords = null;\n        this.manage = null;\n        this.assigned = null;\n        if (!c) {\n            return;\n        }\n        this.id = c.id;\n        this.organizationId = c.organizationId;\n        this.externalId = c.externalId;\n        if (c instanceof _collection__WEBPACK_IMPORTED_MODULE_0__.Collection) {\n            this.readOnly = c.readOnly;\n            this.hidePasswords = c.hidePasswords;\n            this.manage = c.manage;\n            this.assigned = true;\n        }\n        if (c instanceof _collection_response__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse) {\n            this.assigned = c.assigned;\n        }\n    }\n    canEditItems(org) {\n        if (org != null && org.id !== this.organizationId) {\n            throw new Error(\"Id of the organization provided does not match the org id of the collection.\");\n        }\n        return (org === null || org === void 0 ? void 0 : org.canEditAllCiphers) || this.manage || (this.assigned && !this.readOnly);\n    }\n    /**\n     * Returns true if the user can edit a collection (including user and group access) from the individual vault.\n     * Does not include admin permissions - see {@link CollectionAdminView.canEdit}.\n     */\n    canEdit(org) {\n        if (org != null && org.id !== this.organizationId) {\n            throw new Error(\"Id of the organization provided does not match the org id of the collection.\");\n        }\n        return this.manage;\n    }\n    /**\n     * Returns true if the user can delete a collection from the individual vault.\n     * Does not include admin permissions - see {@link CollectionAdminView.canDelete}.\n     */\n    canDelete(org) {\n        if (org != null && org.id !== this.organizationId) {\n            throw new Error(\"Id of the organization provided does not match the org id of the collection.\");\n        }\n        const canDeleteManagedCollections = !(org === null || org === void 0 ? void 0 : org.limitCollectionDeletion) || org.isAdmin;\n        // Only use individual permissions, not admin permissions\n        return canDeleteManagedCollections && this.manage;\n    }\n    /**\n     * Returns true if the user can view collection info and access in a read-only state from the individual vault\n     */\n    canViewCollectionInfo(org) {\n        return false;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new CollectionView(new _collection__WEBPACK_IMPORTED_MODULE_0__.Collection()), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6940 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/collection.view.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/models/index.ts":
/*!***********************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/models/index.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BulkCollectionAccessRequest: () => (/* reexport safe */ _bulk_collection_access_request__WEBPACK_IMPORTED_MODULE_0__.BulkCollectionAccessRequest),\n/* harmony export */   Collection: () => (/* reexport safe */ _collection__WEBPACK_IMPORTED_MODULE_3__.Collection),\n/* harmony export */   CollectionAccessDetailsResponse: () => (/* reexport safe */ _collection_response__WEBPACK_IMPORTED_MODULE_7__.CollectionAccessDetailsResponse),\n/* harmony export */   CollectionAccessSelectionView: () => (/* reexport safe */ _collection_access_selection_view__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessSelectionView),\n/* harmony export */   CollectionAdminView: () => (/* reexport safe */ _collection_admin_view__WEBPACK_IMPORTED_MODULE_2__.CollectionAdminView),\n/* harmony export */   CollectionData: () => (/* reexport safe */ _collection_data__WEBPACK_IMPORTED_MODULE_4__.CollectionData),\n/* harmony export */   CollectionDetailsResponse: () => (/* reexport safe */ _collection_response__WEBPACK_IMPORTED_MODULE_7__.CollectionDetailsResponse),\n/* harmony export */   CollectionRequest: () => (/* reexport safe */ _collection_request__WEBPACK_IMPORTED_MODULE_6__.CollectionRequest),\n/* harmony export */   CollectionResponse: () => (/* reexport safe */ _collection_response__WEBPACK_IMPORTED_MODULE_7__.CollectionResponse),\n/* harmony export */   CollectionView: () => (/* reexport safe */ _collection_view__WEBPACK_IMPORTED_MODULE_5__.CollectionView),\n/* harmony export */   CollectionWithIdRequest: () => (/* reexport safe */ _collection_with_id_request__WEBPACK_IMPORTED_MODULE_8__.CollectionWithIdRequest),\n/* harmony export */   NestingDelimiter: () => (/* reexport safe */ _collection_view__WEBPACK_IMPORTED_MODULE_5__.NestingDelimiter),\n/* harmony export */   Unassigned: () => (/* reexport safe */ _collection_admin_view__WEBPACK_IMPORTED_MODULE_2__.Unassigned)\n/* harmony export */ });\n/* harmony import */ var _bulk_collection_access_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bulk-collection-access.request */ \"../../libs/admin-console/src/common/collections/models/bulk-collection-access.request.ts\");\n/* harmony import */ var _collection_access_selection_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collection-access-selection.view */ \"../../libs/admin-console/src/common/collections/models/collection-access-selection.view.ts\");\n/* harmony import */ var _collection_admin_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./collection-admin.view */ \"../../libs/admin-console/src/common/collections/models/collection-admin.view.ts\");\n/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ \"../../libs/admin-console/src/common/collections/models/collection.ts\");\n/* harmony import */ var _collection_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./collection.data */ \"../../libs/admin-console/src/common/collections/models/collection.data.ts\");\n/* harmony import */ var _collection_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./collection.view */ \"../../libs/admin-console/src/common/collections/models/collection.view.ts\");\n/* harmony import */ var _collection_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./collection.request */ \"../../libs/admin-console/src/common/collections/models/collection.request.ts\");\n/* harmony import */ var _collection_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection.response */ \"../../libs/admin-console/src/common/collections/models/collection.response.ts\");\n/* harmony import */ var _collection_with_id_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./collection-with-id.request */ \"../../libs/admin-console/src/common/collections/models/collection-with-id.request.ts\");\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBaUQ7QUFDRTtBQUNYO0FBQ1g7QUFDSztBQUNBO0FBQ0c7QUFDQztBQUNPIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvbW9kZWxzL2luZGV4LnRzPzQ5MjgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vYnVsay1jb2xsZWN0aW9uLWFjY2Vzcy5yZXF1ZXN0XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb2xsZWN0aW9uLWFjY2Vzcy1zZWxlY3Rpb24udmlld1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29sbGVjdGlvbi1hZG1pbi52aWV3XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb2xsZWN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb2xsZWN0aW9uLmRhdGFcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbGxlY3Rpb24udmlld1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29sbGVjdGlvbi5yZXF1ZXN0XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb2xsZWN0aW9uLnJlc3BvbnNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb2xsZWN0aW9uLXdpdGgtaWQucmVxdWVzdFwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/models/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/services/default-collection-admin.service.ts":
/*!****************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/services/default-collection-admin.service.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultCollectionAdminService: () => (/* binding */ DefaultCollectionAdminService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/request/selection-read-only.request */ \"../../libs/common/src/admin-console/models/request/selection-read-only.request.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models */ \"../../libs/admin-console/src/common/collections/models/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass DefaultCollectionAdminService {\n    constructor(apiService, keyService, encryptService, collectionService) {\n        this.apiService = apiService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.collectionService = collectionService;\n    }\n    getAll(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const collectionResponse = yield this.apiService.getManyCollectionsWithAccessDetails(organizationId);\n            if ((collectionResponse === null || collectionResponse === void 0 ? void 0 : collectionResponse.data) == null || collectionResponse.data.length === 0) {\n                return [];\n            }\n            return yield this.decryptMany(organizationId, collectionResponse.data);\n        });\n    }\n    get(organizationId, collectionId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const collectionResponse = yield this.apiService.getCollectionAccessDetails(organizationId, collectionId);\n            if (collectionResponse == null) {\n                return undefined;\n            }\n            const [view] = yield this.decryptMany(organizationId, [collectionResponse]);\n            return view;\n        });\n    }\n    save(collection) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = yield this.encrypt(collection);\n            let response;\n            if (collection.id == null) {\n                response = yield this.apiService.postCollection(collection.organizationId, request);\n                collection.id = response.id;\n            }\n            else {\n                response = yield this.apiService.putCollection(collection.organizationId, collection.id, request);\n            }\n            if (response.assigned) {\n                yield this.collectionService.upsert(new _models__WEBPACK_IMPORTED_MODULE_2__.CollectionData(response));\n            }\n            else {\n                yield this.collectionService.delete(collection.id);\n            }\n            return response;\n        });\n    }\n    delete(organizationId, collectionId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.deleteCollection(organizationId, collectionId);\n        });\n    }\n    bulkAssignAccess(organizationId, collectionIds, users, groups) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _models__WEBPACK_IMPORTED_MODULE_2__.BulkCollectionAccessRequest();\n            request.collectionIds = collectionIds;\n            request.users = users.map((u) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_0__.SelectionReadOnlyRequest(u.id, u.readOnly, u.hidePasswords, u.manage));\n            request.groups = groups.map((g) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_0__.SelectionReadOnlyRequest(g.id, g.readOnly, g.hidePasswords, g.manage));\n            yield this.apiService.send(\"POST\", `/organizations/${organizationId}/collections/bulk-access`, request, true, false);\n        });\n    }\n    decryptMany(organizationId, collections) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const orgKey = yield this.keyService.getOrgKey(organizationId);\n            const promises = collections.map((c) => __awaiter(this, void 0, void 0, function* () {\n                const view = new _models__WEBPACK_IMPORTED_MODULE_2__.CollectionAdminView();\n                view.id = c.id;\n                view.name = yield this.encryptService.decryptToUtf8(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(c.name), orgKey);\n                view.externalId = c.externalId;\n                view.organizationId = c.organizationId;\n                if (isCollectionAccessDetailsResponse(c)) {\n                    view.groups = c.groups;\n                    view.users = c.users;\n                    view.assigned = c.assigned;\n                    view.readOnly = c.readOnly;\n                    view.hidePasswords = c.hidePasswords;\n                    view.manage = c.manage;\n                    view.unmanaged = c.unmanaged;\n                }\n                return view;\n            }));\n            return yield Promise.all(promises);\n        });\n    }\n    encrypt(model) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (model.organizationId == null) {\n                throw new Error(\"Collection has no organization id.\");\n            }\n            const key = yield this.keyService.getOrgKey(model.organizationId);\n            if (key == null) {\n                throw new Error(\"No key for this collection's organization.\");\n            }\n            const collection = new _models__WEBPACK_IMPORTED_MODULE_2__.CollectionRequest();\n            collection.externalId = model.externalId;\n            collection.name = (yield this.encryptService.encrypt(model.name, key)).encryptedString;\n            collection.groups = model.groups.map((group) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_0__.SelectionReadOnlyRequest(group.id, group.readOnly, group.hidePasswords, group.manage));\n            collection.users = model.users.map((user) => new _bitwarden_common_admin_console_models_request_selection_read_only_request__WEBPACK_IMPORTED_MODULE_0__.SelectionReadOnlyRequest(user.id, user.readOnly, user.hidePasswords, user.manage));\n            return collection;\n        });\n    }\n}\nfunction isCollectionAccessDetailsResponse(response) {\n    const anyResponse = response;\n    return (anyResponse === null || anyResponse === void 0 ? void 0 : anyResponse.groups) instanceof Array && (anyResponse === null || anyResponse === void 0 ? void 0 : anyResponse.users) instanceof Array;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13784 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/services/default-collection-admin.service.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/services/default-collection.service.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/services/default-collection.service.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultCollectionService: () => (/* binding */ DefaultCollectionService),\n/* harmony export */   ENCRYPTED_COLLECTION_DATA_KEY: () => (/* binding */ ENCRYPTED_COLLECTION_DATA_KEY)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_service_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/service-utils */ \"../../libs/common/src/vault/service-utils.ts\");\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models */ \"../../libs/admin-console/src/common/collections/models/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nconst ENCRYPTED_COLLECTION_DATA_KEY = _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition.record(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_2__.COLLECTION_DATA, \"collections\", {\n    deserializer: (jsonData) => _models__WEBPACK_IMPORTED_MODULE_4__.CollectionData.fromJSON(jsonData),\n    clearOn: [\"logout\"],\n});\nconst DECRYPTED_COLLECTION_DATA_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_2__.DeriveDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_2__.COLLECTION_DATA, \"decryptedCollections\", {\n    deserializer: (obj) => obj.map((collection) => _models__WEBPACK_IMPORTED_MODULE_4__.CollectionView.fromJSON(collection)),\n    derive: (_a, _b) => __awaiter(void 0, [_a, _b], void 0, function* ([collections, orgKeys], { collectionService }) {\n        if (collections == null) {\n            return [];\n        }\n        const data = Object.values(collections).map((c) => new _models__WEBPACK_IMPORTED_MODULE_4__.Collection(c));\n        return yield collectionService.decryptMany(data, orgKeys);\n    }),\n});\nconst NestingDelimiter = \"/\";\nclass DefaultCollectionService {\n    decryptedCollectionViews$(ids) {\n        return this.decryptedCollections$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((collections) => collections.filter((c) => ids.includes(c.id))));\n    }\n    constructor(keyService, encryptService, i18nService, stateProvider) {\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.i18nService = i18nService;\n        this.stateProvider = stateProvider;\n        this.encryptedCollectionDataState = this.stateProvider.getActive(ENCRYPTED_COLLECTION_DATA_KEY);\n        this.encryptedCollections$ = this.encryptedCollectionDataState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((collections) => {\n            if (collections == null) {\n                return [];\n            }\n            return Object.values(collections).map((c) => new _models__WEBPACK_IMPORTED_MODULE_4__.Collection(c));\n        }));\n        const encryptedCollectionsWithKeys = this.encryptedCollectionDataState.combinedState$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(([userId, collectionData]) => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([(0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(collectionData), this.keyService.orgKeys$(userId)])));\n        this.decryptedCollectionDataState = this.stateProvider.getDerived(encryptedCollectionsWithKeys, DECRYPTED_COLLECTION_DATA_KEY, { collectionService: this });\n        this.decryptedCollections$ = this.decryptedCollectionDataState.state$;\n    }\n    clearActiveUserCache() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.decryptedCollectionDataState.forceValue(null);\n        });\n    }\n    encrypt(model) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (model.organizationId == null) {\n                throw new Error(\"Collection has no organization id.\");\n            }\n            const key = yield this.keyService.getOrgKey(model.organizationId);\n            if (key == null) {\n                throw new Error(\"No key for this collection's organization.\");\n            }\n            const collection = new _models__WEBPACK_IMPORTED_MODULE_4__.Collection();\n            collection.id = model.id;\n            collection.organizationId = model.organizationId;\n            collection.readOnly = model.readOnly;\n            collection.externalId = model.externalId;\n            collection.name = yield this.encryptService.encrypt(model.name, key);\n            return collection;\n        });\n    }\n    // TODO: this should be private and orgKeys should be required.\n    // See https://bitwarden.atlassian.net/browse/PM-12375\n    decryptMany(collections, orgKeys) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (collections == null || collections.length === 0) {\n                return [];\n            }\n            const decCollections = [];\n            orgKeys !== null && orgKeys !== void 0 ? orgKeys : (orgKeys = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.keyService.activeUserOrgKeys$));\n            const promises = [];\n            collections.forEach((collection) => {\n                promises.push(collection\n                    .decrypt(orgKeys[collection.organizationId])\n                    .then((c) => decCollections.push(c)));\n            });\n            yield Promise.all(promises);\n            return decCollections.sort(_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.getSortFunction(this.i18nService, \"name\"));\n        });\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            return ((_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.encryptedCollections$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((cs) => cs.find((c) => c.id === id)))))) !== null && _a !== void 0 ? _a : null);\n        });\n    }\n    getAll() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.encryptedCollections$);\n        });\n    }\n    getAllDecrypted() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.decryptedCollections$);\n        });\n    }\n    getAllNested() {\n        return __awaiter(this, arguments, void 0, function* (collections = null) {\n            if (collections == null) {\n                collections = yield this.getAllDecrypted();\n            }\n            const nodes = [];\n            collections.forEach((c) => {\n                const collectionCopy = new _models__WEBPACK_IMPORTED_MODULE_4__.CollectionView();\n                collectionCopy.id = c.id;\n                collectionCopy.organizationId = c.organizationId;\n                const parts = c.name != null ? c.name.replace(/^\\/+|\\/+$/g, \"\").split(NestingDelimiter) : [];\n                _bitwarden_common_vault_service_utils__WEBPACK_IMPORTED_MODULE_3__.ServiceUtils.nestedTraverse(nodes, 0, parts, collectionCopy, null, NestingDelimiter);\n            });\n            return nodes;\n        });\n    }\n    /**\n     * @deprecated August 30 2022: Moved to new Vault Filter Service\n     * Remove when Desktop and Browser are updated\n     */\n    getNested(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const collections = yield this.getAllNested();\n            return _bitwarden_common_vault_service_utils__WEBPACK_IMPORTED_MODULE_3__.ServiceUtils.getTreeNodeObjectFromList(collections, id);\n        });\n    }\n    upsert(toUpdate) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (toUpdate == null) {\n                return;\n            }\n            yield this.encryptedCollectionDataState.update((collections) => {\n                if (collections == null) {\n                    collections = {};\n                }\n                if (Array.isArray(toUpdate)) {\n                    toUpdate.forEach((c) => {\n                        collections[c.id] = c;\n                    });\n                }\n                else {\n                    collections[toUpdate.id] = toUpdate;\n                }\n                return collections;\n            });\n        });\n    }\n    replace(collections, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider\n                .getUser(userId, ENCRYPTED_COLLECTION_DATA_KEY)\n                .update(() => collections);\n        });\n    }\n    clear(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                yield this.encryptedCollectionDataState.update(() => null);\n                yield this.decryptedCollectionDataState.forceValue(null);\n            }\n            else {\n                yield this.stateProvider.getUser(userId, ENCRYPTED_COLLECTION_DATA_KEY).update(() => null);\n            }\n        });\n    }\n    delete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.encryptedCollectionDataState.update((collections) => {\n                if (collections == null) {\n                    collections = {};\n                }\n                if (typeof id === \"string\") {\n                    delete collections[id];\n                }\n                else {\n                    id.forEach((i) => {\n                        delete collections[i];\n                    });\n                }\n                return collections;\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 19688 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/services/default-collection.service.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/collections/services/index.ts":
/*!*************************************************************************!*\
  !*** ../../libs/admin-console/src/common/collections/services/index.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultCollectionAdminService: () => (/* reexport safe */ _default_collection_admin_service__WEBPACK_IMPORTED_MODULE_0__.DefaultCollectionAdminService),\n/* harmony export */   DefaultCollectionService: () => (/* reexport safe */ _default_collection_service__WEBPACK_IMPORTED_MODULE_1__.DefaultCollectionService),\n/* harmony export */   ENCRYPTED_COLLECTION_DATA_KEY: () => (/* reexport safe */ _default_collection_service__WEBPACK_IMPORTED_MODULE_1__.ENCRYPTED_COLLECTION_DATA_KEY)\n/* harmony export */ });\n/* harmony import */ var _default_collection_admin_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-collection-admin.service */ \"../../libs/admin-console/src/common/collections/services/default-collection-admin.service.ts\");\n/* harmony import */ var _default_collection_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-collection.service */ \"../../libs/admin-console/src/common/collections/services/default-collection.service.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vY29sbGVjdGlvbnMvc2VydmljZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBbUQ7QUFDTiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL2NvbGxlY3Rpb25zL3NlcnZpY2VzL2luZGV4LnRzPzkxZjYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZGVmYXVsdC1jb2xsZWN0aW9uLWFkbWluLnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2RlZmF1bHQtY29sbGVjdGlvbi5zZXJ2aWNlXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/collections/services/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/index.ts":
/*!****************************************************!*\
  !*** ../../libs/admin-console/src/common/index.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BulkCollectionAccessRequest: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.BulkCollectionAccessRequest),\n/* harmony export */   Collection: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.Collection),\n/* harmony export */   CollectionAccessDetailsResponse: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse),\n/* harmony export */   CollectionAccessSelectionView: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessSelectionView),\n/* harmony export */   CollectionAdminService: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionAdminService),\n/* harmony export */   CollectionAdminView: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionAdminView),\n/* harmony export */   CollectionData: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionData),\n/* harmony export */   CollectionDetailsResponse: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionDetailsResponse),\n/* harmony export */   CollectionRequest: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionRequest),\n/* harmony export */   CollectionResponse: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionResponse),\n/* harmony export */   CollectionService: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionService),\n/* harmony export */   CollectionView: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionView),\n/* harmony export */   CollectionWithIdRequest: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.CollectionWithIdRequest),\n/* harmony export */   DefaultCollectionAdminService: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.DefaultCollectionAdminService),\n/* harmony export */   DefaultCollectionService: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.DefaultCollectionService),\n/* harmony export */   DefaultOrganizationUserApiService: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.DefaultOrganizationUserApiService),\n/* harmony export */   ENCRYPTED_COLLECTION_DATA_KEY: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.ENCRYPTED_COLLECTION_DATA_KEY),\n/* harmony export */   NestingDelimiter: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.NestingDelimiter),\n/* harmony export */   OrganizationUserAcceptInitRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserAcceptInitRequest),\n/* harmony export */   OrganizationUserAcceptRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserAcceptRequest),\n/* harmony export */   OrganizationUserApiService: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserApiService),\n/* harmony export */   OrganizationUserBulkConfirmRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkConfirmRequest),\n/* harmony export */   OrganizationUserBulkPublicKeyResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkPublicKeyResponse),\n/* harmony export */   OrganizationUserBulkRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkRequest),\n/* harmony export */   OrganizationUserBulkResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkResponse),\n/* harmony export */   OrganizationUserConfirmRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserConfirmRequest),\n/* harmony export */   OrganizationUserDetailsResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserDetailsResponse),\n/* harmony export */   OrganizationUserInviteRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserInviteRequest),\n/* harmony export */   OrganizationUserResetPasswordDetailsResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordDetailsResponse),\n/* harmony export */   OrganizationUserResetPasswordEnrollmentRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordEnrollmentRequest),\n/* harmony export */   OrganizationUserResetPasswordRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordRequest),\n/* harmony export */   OrganizationUserResetPasswordWithIdRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordWithIdRequest),\n/* harmony export */   OrganizationUserResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResponse),\n/* harmony export */   OrganizationUserUpdateRequest: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserUpdateRequest),\n/* harmony export */   OrganizationUserUserDetailsResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserUserDetailsResponse),\n/* harmony export */   OrganizationUserUserMiniResponse: () => (/* reexport safe */ _organization_user__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserUserMiniResponse),\n/* harmony export */   Unassigned: () => (/* reexport safe */ _collections__WEBPACK_IMPORTED_MODULE_1__.Unassigned)\n/* harmony export */ });\n/* harmony import */ var _organization_user__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./organization-user */ \"../../libs/admin-console/src/common/organization-user/index.ts\");\n/* harmony import */ var _collections__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collections */ \"../../libs/admin-console/src/common/collections/index.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQW9DO0FBQ04iLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9pbmRleC50cz9lOTVjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL29yZ2FuaXphdGlvbi11c2VyXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb2xsZWN0aW9uc1wiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/abstractions/index.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/abstractions/index.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserApiService: () => (/* reexport safe */ _organization_user_api_service__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserApiService)\n/* harmony export */ });\n/* harmony import */ var _organization_user_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./organization-user-api.service */ \"../../libs/admin-console/src/common/organization-user/abstractions/organization-user-api.service.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvYWJzdHJhY3Rpb25zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQWdEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvYWJzdHJhY3Rpb25zL2luZGV4LnRzP2VlNGUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vb3JnYW5pemF0aW9uLXVzZXItYXBpLnNlcnZpY2VcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/abstractions/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/abstractions/organization-user-api.service.ts":
/*!***********************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/abstractions/organization-user-api.service.ts ***!
  \***********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserApiService: () => (/* binding */ OrganizationUserApiService)\n/* harmony export */ });\n/**\n * Service for interacting with Organization Users via the API\n */\nclass OrganizationUserApiService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 14800 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/abstractions/organization-user-api.service.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/index.ts":
/*!**********************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/index.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultOrganizationUserApiService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_1__.DefaultOrganizationUserApiService),\n/* harmony export */   OrganizationUserAcceptInitRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserAcceptInitRequest),\n/* harmony export */   OrganizationUserAcceptRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserAcceptRequest),\n/* harmony export */   OrganizationUserApiService: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserApiService),\n/* harmony export */   OrganizationUserBulkConfirmRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkConfirmRequest),\n/* harmony export */   OrganizationUserBulkPublicKeyResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkPublicKeyResponse),\n/* harmony export */   OrganizationUserBulkRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkRequest),\n/* harmony export */   OrganizationUserBulkResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkResponse),\n/* harmony export */   OrganizationUserConfirmRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserConfirmRequest),\n/* harmony export */   OrganizationUserDetailsResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserDetailsResponse),\n/* harmony export */   OrganizationUserInviteRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserInviteRequest),\n/* harmony export */   OrganizationUserResetPasswordDetailsResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResetPasswordDetailsResponse),\n/* harmony export */   OrganizationUserResetPasswordEnrollmentRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResetPasswordEnrollmentRequest),\n/* harmony export */   OrganizationUserResetPasswordRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResetPasswordRequest),\n/* harmony export */   OrganizationUserResetPasswordWithIdRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResetPasswordWithIdRequest),\n/* harmony export */   OrganizationUserResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResponse),\n/* harmony export */   OrganizationUserUpdateRequest: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserUpdateRequest),\n/* harmony export */   OrganizationUserUserDetailsResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserUserDetailsResponse),\n/* harmony export */   OrganizationUserUserMiniResponse: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserUserMiniResponse)\n/* harmony export */ });\n/* harmony import */ var _abstractions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstractions */ \"../../libs/admin-console/src/common/organization-user/abstractions/index.ts\");\n/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services */ \"../../libs/admin-console/src/common/organization-user/services/index.ts\");\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./models */ \"../../libs/admin-console/src/common/organization-user/models/index.ts\");\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUErQjtBQUNKO0FBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9vcmdhbml6YXRpb24tdXNlci9pbmRleC50cz9jYWJhIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2Fic3RyYWN0aW9uc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2VydmljZXNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL21vZGVsc1wiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/index.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/index.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserAcceptInitRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserAcceptInitRequest),\n/* harmony export */   OrganizationUserAcceptRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserAcceptRequest),\n/* harmony export */   OrganizationUserBulkConfirmRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkConfirmRequest),\n/* harmony export */   OrganizationUserBulkPublicKeyResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkPublicKeyResponse),\n/* harmony export */   OrganizationUserBulkRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkRequest),\n/* harmony export */   OrganizationUserBulkResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkResponse),\n/* harmony export */   OrganizationUserConfirmRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserConfirmRequest),\n/* harmony export */   OrganizationUserDetailsResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserDetailsResponse),\n/* harmony export */   OrganizationUserInviteRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserInviteRequest),\n/* harmony export */   OrganizationUserResetPasswordDetailsResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserResetPasswordDetailsResponse),\n/* harmony export */   OrganizationUserResetPasswordEnrollmentRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordEnrollmentRequest),\n/* harmony export */   OrganizationUserResetPasswordRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordRequest),\n/* harmony export */   OrganizationUserResetPasswordWithIdRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordWithIdRequest),\n/* harmony export */   OrganizationUserResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserResponse),\n/* harmony export */   OrganizationUserUpdateRequest: () => (/* reexport safe */ _requests__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserUpdateRequest),\n/* harmony export */   OrganizationUserUserDetailsResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserUserDetailsResponse),\n/* harmony export */   OrganizationUserUserMiniResponse: () => (/* reexport safe */ _responses__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserUserMiniResponse)\n/* harmony export */ });\n/* harmony import */ var _requests__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./requests */ \"../../libs/admin-console/src/common/organization-user/models/requests/index.ts\");\n/* harmony import */ var _responses__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./responses */ \"../../libs/admin-console/src/common/organization-user/models/responses/index.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBMkI7QUFDQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9pbmRleC50cz8yNTVkIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3JlcXVlc3RzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZXNwb25zZXNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/index.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/index.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserAcceptInitRequest: () => (/* reexport safe */ _organization_user_accept_init_request__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserAcceptInitRequest),\n/* harmony export */   OrganizationUserAcceptRequest: () => (/* reexport safe */ _organization_user_accept_request__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserAcceptRequest),\n/* harmony export */   OrganizationUserBulkConfirmRequest: () => (/* reexport safe */ _organization_user_bulk_confirm_request__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkConfirmRequest),\n/* harmony export */   OrganizationUserBulkRequest: () => (/* reexport safe */ _organization_user_bulk_request__WEBPACK_IMPORTED_MODULE_8__.OrganizationUserBulkRequest),\n/* harmony export */   OrganizationUserConfirmRequest: () => (/* reexport safe */ _organization_user_confirm_request__WEBPACK_IMPORTED_MODULE_3__.OrganizationUserConfirmRequest),\n/* harmony export */   OrganizationUserInviteRequest: () => (/* reexport safe */ _organization_user_invite_request__WEBPACK_IMPORTED_MODULE_4__.OrganizationUserInviteRequest),\n/* harmony export */   OrganizationUserResetPasswordEnrollmentRequest: () => (/* reexport safe */ _organization_user_reset_password_enrollment_request__WEBPACK_IMPORTED_MODULE_6__.OrganizationUserResetPasswordEnrollmentRequest),\n/* harmony export */   OrganizationUserResetPasswordRequest: () => (/* reexport safe */ _organization_user_reset_password_request__WEBPACK_IMPORTED_MODULE_5__.OrganizationUserResetPasswordRequest),\n/* harmony export */   OrganizationUserResetPasswordWithIdRequest: () => (/* reexport safe */ _organization_user_reset_password_enrollment_request__WEBPACK_IMPORTED_MODULE_6__.OrganizationUserResetPasswordWithIdRequest),\n/* harmony export */   OrganizationUserUpdateRequest: () => (/* reexport safe */ _organization_user_update_request__WEBPACK_IMPORTED_MODULE_7__.OrganizationUserUpdateRequest)\n/* harmony export */ });\n/* harmony import */ var _organization_user_accept_init_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./organization-user-accept-init.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept-init.request.ts\");\n/* harmony import */ var _organization_user_accept_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./organization-user-accept.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept.request.ts\");\n/* harmony import */ var _organization_user_bulk_confirm_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./organization-user-bulk-confirm.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk-confirm.request.ts\");\n/* harmony import */ var _organization_user_confirm_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./organization-user-confirm.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-confirm.request.ts\");\n/* harmony import */ var _organization_user_invite_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./organization-user-invite.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-invite.request.ts\");\n/* harmony import */ var _organization_user_reset_password_request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./organization-user-reset-password.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password.request.ts\");\n/* harmony import */ var _organization_user_reset_password_enrollment_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./organization-user-reset-password-enrollment.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password-enrollment.request.ts\");\n/* harmony import */ var _organization_user_update_request__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./organization-user-update.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-update.request.ts\");\n/* harmony import */ var _organization_user_bulk_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./organization-user-bulk.request */ \"../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk.request.ts\");\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3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FtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept-init.request.ts":
/*!**********************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept-init.request.ts ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserAcceptInitRequest: () => (/* binding */ OrganizationUserAcceptInitRequest)\n/* harmony export */ });\nclass OrganizationUserAcceptInitRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWFjY2VwdC1pbml0LnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0saUNBQWlDO0NBSzdDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWFjY2VwdC1pbml0LnJlcXVlc3QudHM/MWE3NCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcmdhbml6YXRpb25LZXlzUmVxdWVzdCB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9hZG1pbi1jb25zb2xlL21vZGVscy9yZXF1ZXN0L29yZ2FuaXphdGlvbi1rZXlzLnJlcXVlc3RcIjtcblxuZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvblVzZXJBY2NlcHRJbml0UmVxdWVzdCB7XG4gIHRva2VuOiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xuICBrZXlzOiBPcmdhbml6YXRpb25LZXlzUmVxdWVzdDtcbiAgY29sbGVjdGlvbk5hbWU6IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept-init.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept.request.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept.request.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserAcceptRequest: () => (/* binding */ OrganizationUserAcceptRequest)\n/* harmony export */ });\nclass OrganizationUserAcceptRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWFjY2VwdC5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLDZCQUE2QjtDQUl6QyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9yZXF1ZXN0cy9vcmdhbml6YXRpb24tdXNlci1hY2NlcHQucmVxdWVzdC50cz82ZGI2Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBPcmdhbml6YXRpb25Vc2VyQWNjZXB0UmVxdWVzdCB7XG4gIHRva2VuOiBzdHJpbmc7XG4gIC8vIFVzZWQgdG8gYXV0by1lbnJvbGwgaW4gbWFzdGVyIHBhc3N3b3JkIHJlc2V0XG4gIHJlc2V0UGFzc3dvcmRLZXk6IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-accept.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk-confirm.request.ts":
/*!***********************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk-confirm.request.ts ***!
  \***********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserBulkConfirmRequest: () => (/* binding */ OrganizationUserBulkConfirmRequest)\n/* harmony export */ });\nclass OrganizationUserBulkConfirmRequest {\n    constructor(keys) {\n        this.keys = keys;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWJ1bGstY29uZmlybS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFLTyxNQUFNLGtDQUFrQztJQUc3QyxZQUFZLElBQXdDO1FBQ2xELElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO0lBQ25CLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9yZXF1ZXN0cy9vcmdhbml6YXRpb24tdXNlci1idWxrLWNvbmZpcm0ucmVxdWVzdC50cz80ZDk1Il0sInNvdXJjZXNDb250ZW50IjpbInR5cGUgT3JnYW5pemF0aW9uVXNlckJ1bGtSZXF1ZXN0RW50cnkgPSB7XG4gIGlkOiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xufTtcblxuZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvblVzZXJCdWxrQ29uZmlybVJlcXVlc3Qge1xuICBrZXlzOiBPcmdhbml6YXRpb25Vc2VyQnVsa1JlcXVlc3RFbnRyeVtdO1xuXG4gIGNvbnN0cnVjdG9yKGtleXM6IE9yZ2FuaXphdGlvblVzZXJCdWxrUmVxdWVzdEVudHJ5W10pIHtcbiAgICB0aGlzLmtleXMgPSBrZXlzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk-confirm.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk.request.ts":
/*!***************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk.request.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserBulkRequest: () => (/* binding */ OrganizationUserBulkRequest)\n/* harmony export */ });\nclass OrganizationUserBulkRequest {\n    constructor(ids) {\n        this.ids = ids == null ? [] : ids;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWJ1bGsucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSwyQkFBMkI7SUFHdEMsWUFBWSxHQUFhO1FBQ3ZCLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUM7SUFDcEMsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWJ1bGsucmVxdWVzdC50cz8xYjcxIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBPcmdhbml6YXRpb25Vc2VyQnVsa1JlcXVlc3Qge1xuICBpZHM6IHN0cmluZ1tdO1xuXG4gIGNvbnN0cnVjdG9yKGlkczogc3RyaW5nW10pIHtcbiAgICB0aGlzLmlkcyA9IGlkcyA9PSBudWxsID8gW10gOiBpZHM7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-confirm.request.ts":
/*!******************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-confirm.request.ts ***!
  \******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserConfirmRequest: () => (/* binding */ OrganizationUserConfirmRequest)\n/* harmony export */ });\nclass OrganizationUserConfirmRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWNvbmZpcm0ucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSw4QkFBOEI7Q0FFMUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9vcmdhbml6YXRpb24tdXNlci9tb2RlbHMvcmVxdWVzdHMvb3JnYW5pemF0aW9uLXVzZXItY29uZmlybS5yZXF1ZXN0LnRzP2E1MzMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvblVzZXJDb25maXJtUmVxdWVzdCB7XG4gIGtleTogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-confirm.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-invite.request.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-invite.request.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserInviteRequest: () => (/* binding */ OrganizationUserInviteRequest)\n/* harmony export */ });\nclass OrganizationUserInviteRequest {\n    constructor() {\n        this.emails = [];\n        this.collections = [];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLWludml0ZS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFJTyxNQUFNLDZCQUE2QjtJQUExQztRQUNFLFdBQU0sR0FBYSxFQUFFLENBQUM7UUFHdEIsZ0JBQVcsR0FBK0IsRUFBRSxDQUFDO0lBRy9DLENBQUM7Q0FBQSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9yZXF1ZXN0cy9vcmdhbml6YXRpb24tdXNlci1pbnZpdGUucmVxdWVzdC50cz83YTkzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9yZ2FuaXphdGlvblVzZXJUeXBlIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL2FkbWluLWNvbnNvbGUvZW51bXNcIjtcbmltcG9ydCB7IFBlcm1pc3Npb25zQXBpIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL2FkbWluLWNvbnNvbGUvbW9kZWxzL2FwaS9wZXJtaXNzaW9ucy5hcGlcIjtcbmltcG9ydCB7IFNlbGVjdGlvblJlYWRPbmx5UmVxdWVzdCB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9hZG1pbi1jb25zb2xlL21vZGVscy9yZXF1ZXN0L3NlbGVjdGlvbi1yZWFkLW9ubHkucmVxdWVzdFwiO1xuXG5leHBvcnQgY2xhc3MgT3JnYW5pemF0aW9uVXNlckludml0ZVJlcXVlc3Qge1xuICBlbWFpbHM6IHN0cmluZ1tdID0gW107XG4gIHR5cGU6IE9yZ2FuaXphdGlvblVzZXJUeXBlO1xuICBhY2Nlc3NTZWNyZXRzTWFuYWdlcjogYm9vbGVhbjtcbiAgY29sbGVjdGlvbnM6IFNlbGVjdGlvblJlYWRPbmx5UmVxdWVzdFtdID0gW107XG4gIGdyb3Vwczogc3RyaW5nW107XG4gIHBlcm1pc3Npb25zOiBQZXJtaXNzaW9uc0FwaTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-invite.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password-enrollment.request.ts":
/*!************************************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password-enrollment.request.ts ***!
  \************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserResetPasswordEnrollmentRequest: () => (/* binding */ OrganizationUserResetPasswordEnrollmentRequest),\n/* harmony export */   OrganizationUserResetPasswordWithIdRequest: () => (/* binding */ OrganizationUserResetPasswordWithIdRequest)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_auth_models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/secret-verification.request */ \"../../libs/common/src/auth/models/request/secret-verification.request.ts\");\n\nclass OrganizationUserResetPasswordEnrollmentRequest extends _bitwarden_common_auth_models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_0__.SecretVerificationRequest {\n}\nclass OrganizationUserResetPasswordWithIdRequest extends OrganizationUserResetPasswordEnrollmentRequest {\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FBhc3N3b3JkRW5yb2xsbWVudFJlcXVlc3Qge1xuICBvcmdhbml6YXRpb25JZDogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password-enrollment.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password.request.ts":
/*!*************************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password.request.ts ***!
  \*************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserResetPasswordRequest: () => (/* binding */ OrganizationUserResetPasswordRequest)\n/* harmony export */ });\nclass OrganizationUserResetPasswordRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLXJlc2V0LXBhc3N3b3JkLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sb0NBQW9DO0NBR2hEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLXJlc2V0LXBhc3N3b3JkLnJlcXVlc3QudHM/MmIyOCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgT3JnYW5pemF0aW9uVXNlclJlc2V0UGFzc3dvcmRSZXF1ZXN0IHtcbiAgbmV3TWFzdGVyUGFzc3dvcmRIYXNoOiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-reset-password.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/requests/organization-user-update.request.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-update.request.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserUpdateRequest: () => (/* binding */ OrganizationUserUpdateRequest)\n/* harmony export */ });\nclass OrganizationUserUpdateRequest {\n    constructor() {\n        this.collections = [];\n        this.groups = [];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3JlcXVlc3RzL29yZ2FuaXphdGlvbi11c2VyLXVwZGF0ZS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFJTyxNQUFNLDZCQUE2QjtJQUExQztRQUdFLGdCQUFXLEdBQStCLEVBQUUsQ0FBQztRQUM3QyxXQUFNLEdBQWEsRUFBRSxDQUFDO0lBRXhCLENBQUM7Q0FBQSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9yZXF1ZXN0cy9vcmdhbml6YXRpb24tdXNlci11cGRhdGUucmVxdWVzdC50cz9mNGRjIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9yZ2FuaXphdGlvblVzZXJUeXBlIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL2FkbWluLWNvbnNvbGUvZW51bXNcIjtcbmltcG9ydCB7IFBlcm1pc3Npb25zQXBpIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL2FkbWluLWNvbnNvbGUvbW9kZWxzL2FwaS9wZXJtaXNzaW9ucy5hcGlcIjtcbmltcG9ydCB7IFNlbGVjdGlvblJlYWRPbmx5UmVxdWVzdCB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9hZG1pbi1jb25zb2xlL21vZGVscy9yZXF1ZXN0L3NlbGVjdGlvbi1yZWFkLW9ubHkucmVxdWVzdFwiO1xuXG5leHBvcnQgY2xhc3MgT3JnYW5pemF0aW9uVXNlclVwZGF0ZVJlcXVlc3Qge1xuICB0eXBlOiBPcmdhbml6YXRpb25Vc2VyVHlwZTtcbiAgYWNjZXNzU2VjcmV0c01hbmFnZXI6IGJvb2xlYW47XG4gIGNvbGxlY3Rpb25zOiBTZWxlY3Rpb25SZWFkT25seVJlcXVlc3RbXSA9IFtdO1xuICBncm91cHM6IHN0cmluZ1tdID0gW107XG4gIHBlcm1pc3Npb25zOiBQZXJtaXNzaW9uc0FwaTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/requests/organization-user-update.request.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/responses/index.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/responses/index.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserBulkPublicKeyResponse: () => (/* reexport safe */ _organization_user_bulk_public_key_response__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkPublicKeyResponse),\n/* harmony export */   OrganizationUserBulkResponse: () => (/* reexport safe */ _organization_user_bulk_response__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkResponse),\n/* harmony export */   OrganizationUserDetailsResponse: () => (/* reexport safe */ _organization_user_response__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserDetailsResponse),\n/* harmony export */   OrganizationUserResetPasswordDetailsResponse: () => (/* reexport safe */ _organization_user_response__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordDetailsResponse),\n/* harmony export */   OrganizationUserResponse: () => (/* reexport safe */ _organization_user_response__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResponse),\n/* harmony export */   OrganizationUserUserDetailsResponse: () => (/* reexport safe */ _organization_user_response__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserUserDetailsResponse),\n/* harmony export */   OrganizationUserUserMiniResponse: () => (/* reexport safe */ _organization_user_mini_response__WEBPACK_IMPORTED_MODULE_3__.OrganizationUserUserMiniResponse)\n/* harmony export */ });\n/* harmony import */ var _organization_user_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./organization-user.response */ \"../../libs/admin-console/src/common/organization-user/models/responses/organization-user.response.ts\");\n/* harmony import */ var _organization_user_bulk_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./organization-user-bulk.response */ \"../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk.response.ts\");\n/* harmony import */ var _organization_user_bulk_public_key_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./organization-user-bulk-public-key.response */ \"../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk-public-key.response.ts\");\n/* harmony import */ var _organization_user_mini_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./organization-user-mini.response */ \"../../libs/admin-console/src/common/organization-user/models/responses/organization-user-mini.response.ts\");\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3Jlc3BvbnNlcy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUE2QztBQUNLO0FBQ1c7QUFDWCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9yZXNwb25zZXMvaW5kZXgudHM/MTVjNiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9vcmdhbml6YXRpb24tdXNlci5yZXNwb25zZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vb3JnYW5pemF0aW9uLXVzZXItYnVsay5yZXNwb25zZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vb3JnYW5pemF0aW9uLXVzZXItYnVsay1wdWJsaWMta2V5LnJlc3BvbnNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9vcmdhbml6YXRpb24tdXNlci1taW5pLnJlc3BvbnNlXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/responses/index.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk-public-key.response.ts":
/*!****************************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk-public-key.response.ts ***!
  \****************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserBulkPublicKeyResponse: () => (/* binding */ OrganizationUserBulkPublicKeyResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationUserBulkPublicKeyResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.key = this.getResponseProperty(\"Key\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3Jlc3BvbnNlcy9vcmdhbml6YXRpb24tdXNlci1idWxrLXB1YmxpYy1rZXkucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBK0U7QUFFeEUsTUFBTSxxQ0FBc0MsU0FBUSx5RkFBWTtJQUtyRSxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3pDLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzdDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYWRtaW4tY29uc29sZS9zcmMvY29tbW9uL29yZ2FuaXphdGlvbi11c2VyL21vZGVscy9yZXNwb25zZXMvb3JnYW5pemF0aW9uLXVzZXItYnVsay1wdWJsaWMta2V5LnJlc3BvbnNlLnRzPzY5NTgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBPcmdhbml6YXRpb25Vc2VyQnVsa1B1YmxpY0tleVJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgaWQ6IHN0cmluZztcbiAgdXNlcklkOiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5pZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIklkXCIpO1xuICAgIHRoaXMudXNlcklkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVXNlcklkXCIpO1xuICAgIHRoaXMua2V5ID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiS2V5XCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk-public-key.response.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk.response.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk.response.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserBulkResponse: () => (/* binding */ OrganizationUserBulkResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationUserBulkResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.error = this.getResponseProperty(\"Error\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3Jlc3BvbnNlcy9vcmdhbml6YXRpb24tdXNlci1idWxrLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQStFO0FBRXhFLE1BQU0sNEJBQTZCLFNBQVEseUZBQVk7SUFJNUQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNqRCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9vcmdhbml6YXRpb24tdXNlci9tb2RlbHMvcmVzcG9uc2VzL29yZ2FuaXphdGlvbi11c2VyLWJ1bGsucmVzcG9uc2UudHM/NWFkYiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvblVzZXJCdWxrUmVzcG9uc2UgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICBpZDogc3RyaW5nO1xuICBlcnJvcjogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5pZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIklkXCIpO1xuICAgIHRoaXMuZXJyb3IgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJFcnJvclwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/responses/organization-user-bulk.response.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/responses/organization-user-mini.response.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/responses/organization-user-mini.response.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserUserMiniResponse: () => (/* binding */ OrganizationUserUserMiniResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationUserUserMiniResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.email = this.getResponseProperty(\"Email\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.status = this.getResponseProperty(\"Status\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvbW9kZWxzL3Jlc3BvbnNlcy9vcmdhbml6YXRpb24tdXNlci1taW5pLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBSStFO0FBRXhFLE1BQU0sZ0NBQWlDLFNBQVEseUZBQVk7SUFRaEUsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNqRCxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUMvQyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNuRCxDQUFDO0NBQ0YiLCJz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HRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIk5hbWVcIik7XG4gICAgdGhpcy50eXBlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVHlwZVwiKTtcbiAgICB0aGlzLnN0YXR1cyA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlN0YXR1c1wiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/responses/organization-user-mini.response.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/models/responses/organization-user.response.ts":
/*!************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/models/responses/organization-user.response.ts ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserDetailsResponse: () => (/* binding */ OrganizationUserDetailsResponse),\n/* harmony export */   OrganizationUserResetPasswordDetailsResponse: () => (/* binding */ OrganizationUserResetPasswordDetailsResponse),\n/* harmony export */   OrganizationUserResponse: () => (/* binding */ OrganizationUserResponse),\n/* harmony export */   OrganizationUserUserDetailsResponse: () => (/* binding */ OrganizationUserUserDetailsResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_models_api_permissions_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/api/permissions.api */ \"../../libs/common/src/admin-console/models/api/permissions.api.ts\");\n/* harmony import */ var _bitwarden_common_admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/response/selection-read-only.response */ \"../../libs/common/src/admin-console/models/response/selection-read-only.response.ts\");\n/* harmony import */ var _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\n\n\nclass OrganizationUserResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_2__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.collections = [];\n        this.groups = [];\n        this.id = this.getResponseProperty(\"Id\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.status = this.getResponseProperty(\"Status\");\n        this.permissions = new _bitwarden_common_admin_console_models_api_permissions_api__WEBPACK_IMPORTED_MODULE_0__.PermissionsApi(this.getResponseProperty(\"Permissions\"));\n        this.externalId = this.getResponseProperty(\"ExternalId\");\n        this.accessSecretsManager = this.getResponseProperty(\"AccessSecretsManager\");\n        this.resetPasswordEnrolled = this.getResponseProperty(\"ResetPasswordEnrolled\");\n        this.hasMasterPassword = this.getResponseProperty(\"HasMasterPassword\");\n        const collections = this.getResponseProperty(\"Collections\");\n        if (collections != null) {\n            this.collections = collections.map((c) => new _bitwarden_common_admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_1__.SelectionReadOnlyResponse(c));\n        }\n        const groups = this.getResponseProperty(\"Groups\");\n        if (groups != null) {\n            this.groups = groups;\n        }\n    }\n}\nclass OrganizationUserUserDetailsResponse extends OrganizationUserResponse {\n    constructor(response) {\n        var _a, _b;\n        super(response);\n        this.name = this.getResponseProperty(\"Name\");\n        this.email = this.getResponseProperty(\"Email\");\n        this.avatarColor = this.getResponseProperty(\"AvatarColor\");\n        this.twoFactorEnabled = this.getResponseProperty(\"TwoFactorEnabled\");\n        this.usesKeyConnector = (_a = this.getResponseProperty(\"UsesKeyConnector\")) !== null && _a !== void 0 ? _a : false;\n        this.managedByOrganization = (_b = this.getResponseProperty(\"ManagedByOrganization\")) !== null && _b !== void 0 ? _b : false;\n    }\n}\nclass OrganizationUserDetailsResponse extends OrganizationUserResponse {\n    constructor(response) {\n        var _a;\n        super(response);\n        this.managedByOrganization = (_a = this.getResponseProperty(\"ManagedByOrganization\")) !== null && _a !== void 0 ? _a : false;\n    }\n}\nclass OrganizationUserResetPasswordDetailsResponse extends _bitwarden_common_models_response_base_response__WEBPACK_IMPORTED_MODULE_2__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.organizationUserId = this.getResponseProperty(\"OrganizationUserId\");\n        this.kdf = this.getResponseProperty(\"Kdf\");\n        this.kdfIterations = this.getResponseProperty(\"KdfIterations\");\n        this.kdfMemory = this.getResponseProperty(\"KdfMemory\");\n        this.kdfParallelism = this.getResponseProperty(\"KdfParallelism\");\n        this.resetPasswordKey = this.getResponseProperty(\"ResetPasswordKey\");\n        this.encryptedPrivateKey = this.getResponseProperty(\"EncryptedPrivateKey\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8552 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/models/responses/organization-user.response.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/services/default-organization-user-api.service.ts":
/*!***************************************************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/services/default-organization-user-api.service.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultOrganizationUserApiService: () => (/* binding */ DefaultOrganizationUserApiService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _models_requests__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/requests */ \"../../libs/admin-console/src/common/organization-user/models/requests/index.ts\");\n/* harmony import */ var _models_responses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/responses */ \"../../libs/admin-console/src/common/organization-user/models/responses/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass DefaultOrganizationUserApiService {\n    constructor(apiService) {\n        this.apiService = apiService;\n    }\n    getOrganizationUser(organizationId, id, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const params = new URLSearchParams();\n            if (options === null || options === void 0 ? void 0 : options.includeGroups) {\n                params.set(\"includeGroups\", \"true\");\n            }\n            const r = yield this.apiService.send(\"GET\", `/organizations/${organizationId}/users/${id}?${params.toString()}`, null, true, true);\n            return new _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserDetailsResponse(r);\n        });\n    }\n    getOrganizationUserGroups(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/groups\", null, true, true);\n            return r;\n        });\n    }\n    getAllUsers(organizationId, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const params = new URLSearchParams();\n            if (options === null || options === void 0 ? void 0 : options.includeCollections) {\n                params.set(\"includeCollections\", \"true\");\n            }\n            if (options === null || options === void 0 ? void 0 : options.includeGroups) {\n                params.set(\"includeGroups\", \"true\");\n            }\n            const r = yield this.apiService.send(\"GET\", `/organizations/${organizationId}/users?${params.toString()}`, null, true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserUserDetailsResponse);\n        });\n    }\n    getAllMiniUserDetails(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", `/organizations/${organizationId}/users/mini-details`, null, true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserUserMiniResponse);\n        });\n    }\n    getOrganizationUserResetPasswordDetails(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/reset-password-details\", null, true, true);\n            return new _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResetPasswordDetailsResponse(r);\n        });\n    }\n    getManyOrganizationUserAccountRecoveryDetails(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/account-recovery-details\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserResetPasswordDetailsResponse);\n        });\n    }\n    postOrganizationUserInvite(organizationId, request) {\n        return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/invite\", request, true, false);\n    }\n    postOrganizationUserReinvite(organizationId, id) {\n        return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/reinvite\", null, true, false);\n    }\n    postManyOrganizationUserReinvite(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/reinvite\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkResponse);\n        });\n    }\n    postOrganizationUserAcceptInit(organizationId, id, request) {\n        return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/accept-init\", request, true, false);\n    }\n    postOrganizationUserAccept(organizationId, id, request) {\n        return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/accept\", request, true, false);\n    }\n    postOrganizationUserConfirm(organizationId, id, request) {\n        return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/confirm\", request, true, false);\n    }\n    postOrganizationUsersPublicKey(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/public-keys\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkPublicKeyResponse);\n        });\n    }\n    postOrganizationUserBulkConfirm(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/users/confirm\", request, true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkResponse);\n        });\n    }\n    putOrganizationUserBulkEnableSecretsManager(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/enable-secrets-manager\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, false);\n        });\n    }\n    putOrganizationUser(organizationId, id, request) {\n        return this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/\" + id, request, true, false);\n    }\n    putOrganizationUserResetPasswordEnrollment(organizationId, userId, request) {\n        return this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/\" + userId + \"/reset-password-enrollment\", request, true, false);\n    }\n    putOrganizationUserResetPassword(organizationId, id, request) {\n        return this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/reset-password\", request, true, false);\n    }\n    removeOrganizationUser(organizationId, id) {\n        return this.apiService.send(\"DELETE\", \"/organizations/\" + organizationId + \"/users/\" + id, null, true, false);\n    }\n    removeManyOrganizationUsers(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"DELETE\", \"/organizations/\" + organizationId + \"/users\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkResponse);\n        });\n    }\n    revokeOrganizationUser(organizationId, id) {\n        return this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/revoke\", null, true, false);\n    }\n    revokeManyOrganizationUsers(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/revoke\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkResponse);\n        });\n    }\n    restoreOrganizationUser(organizationId, id) {\n        return this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/\" + id + \"/restore\", null, true, false);\n    }\n    restoreManyOrganizationUsers(organizationId, ids) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/users/restore\", new _models_requests__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserBulkRequest(ids), true, true);\n            return new _bitwarden_common_models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _models_responses__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserBulkResponse);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 21812 characters]\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/services/default-organization-user-api.service.ts\n");

/***/ }),

/***/ "../../libs/admin-console/src/common/organization-user/services/index.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/admin-console/src/common/organization-user/services/index.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultOrganizationUserApiService: () => (/* reexport safe */ _default_organization_user_api_service__WEBPACK_IMPORTED_MODULE_0__.DefaultOrganizationUserApiService)\n/* harmony export */ });\n/* harmony import */ var _default_organization_user_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-organization-user-api.service */ \"../../libs/admin-console/src/common/organization-user/services/default-organization-user-api.service.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hZG1pbi1jb25zb2xlL3NyYy9jb21tb24vb3JnYW5pemF0aW9uLXVzZXIvc2VydmljZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBd0QiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2FkbWluLWNvbnNvbGUvc3JjL2NvbW1vbi9vcmdhbml6YXRpb24tdXNlci9zZXJ2aWNlcy9pbmRleC50cz84N2JkIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2RlZmF1bHQtb3JnYW5pemF0aW9uLXVzZXItYXBpLnNlcnZpY2VcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/admin-console/src/common/organization-user/services/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/abstractions/auth-request.service.abstraction.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/auth/src/common/abstractions/auth-request.service.abstraction.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestServiceAbstraction: () => (/* binding */ AuthRequestServiceAbstraction)\n/* harmony export */ });\nclass AuthRequestServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7008 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/abstractions/auth-request.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/abstractions/index.ts":
/*!********************************************************!*\
  !*** ../../libs/auth/src/common/abstractions/index.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestServiceAbstraction: () => (/* reexport safe */ _auth_request_service_abstraction__WEBPACK_IMPORTED_MODULE_4__.AuthRequestServiceAbstraction),\n/* harmony export */   InternalUserDecryptionOptionsServiceAbstraction: () => (/* reexport safe */ _user_decryption_options_service_abstraction__WEBPACK_IMPORTED_MODULE_3__.InternalUserDecryptionOptionsServiceAbstraction),\n/* harmony export */   LoginEmailServiceAbstraction: () => (/* reexport safe */ _login_email_service__WEBPACK_IMPORTED_MODULE_1__.LoginEmailServiceAbstraction),\n/* harmony export */   LoginStrategyServiceAbstraction: () => (/* reexport safe */ _login_strategy_service__WEBPACK_IMPORTED_MODULE_2__.LoginStrategyServiceAbstraction),\n/* harmony export */   PinServiceAbstraction: () => (/* reexport safe */ _pin_service_abstraction__WEBPACK_IMPORTED_MODULE_0__.PinServiceAbstraction),\n/* harmony export */   UserDecryptionOptionsServiceAbstraction: () => (/* reexport safe */ _user_decryption_options_service_abstraction__WEBPACK_IMPORTED_MODULE_3__.UserDecryptionOptionsServiceAbstraction)\n/* harmony export */ });\n/* harmony import */ var _pin_service_abstraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pin.service.abstraction */ \"../../libs/auth/src/common/abstractions/pin.service.abstraction.ts\");\n/* harmony import */ var _login_email_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login-email.service */ \"../../libs/auth/src/common/abstractions/login-email.service.ts\");\n/* harmony import */ var _login_strategy_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./login-strategy.service */ \"../../libs/auth/src/common/abstractions/login-strategy.service.ts\");\n/* harmony import */ var _user_decryption_options_service_abstraction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./user-decryption-options.service.abstraction */ \"../../libs/auth/src/common/abstractions/user-decryption-options.service.abstraction.ts\");\n/* harmony import */ var _auth_request_service_abstraction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth-request.service.abstraction */ \"../../libs/auth/src/common/abstractions/auth-request.service.abstraction.ts\");\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vYWJzdHJhY3Rpb25zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBQTBDO0FBQ0o7QUFDRztBQUNxQjtBQUNYIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vYWJzdHJhY3Rpb25zL2luZGV4LnRzPzU1ZDUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vcGluLnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xvZ2luLWVtYWlsLnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xvZ2luLXN0cmF0ZWd5LnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zLnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2F1dGgtcmVxdWVzdC5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/abstractions/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/abstractions/login-email.service.ts":
/*!**********************************************************************!*\
  !*** ../../libs/auth/src/common/abstractions/login-email.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginEmailServiceAbstraction: () => (/* binding */ LoginEmailServiceAbstraction)\n/* harmony export */ });\nclass LoginEmailServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vYWJzdHJhY3Rpb25zL2xvZ2luLWVtYWlsLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQWUsNEJBQTRCO0NBc0NqRCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YX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Byb3BlcnRpZXMgZnJvbSBtZW1vcnkuXG4gICAqIEByZXR1cm5zIEEgcHJvbWlzZSB0aGF0IHJlc29sdmVzIG9uY2UgdGhlIGVtYWlsIHNldHRpbmdzIGFyZSBzYXZlZC5cbiAgICovXG4gIHNhdmVFbWFpbFNldHRpbmdzOiAoKSA9PiBQcm9taXNlPHZvaWQ+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/abstractions/login-email.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/abstractions/login-strategy.service.ts":
/*!*************************************************************************!*\
  !*** ../../libs/auth/src/common/abstractions/login-strategy.service.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginStrategyServiceAbstraction: () => (/* binding */ LoginStrategyServiceAbstraction)\n/* harmony export */ });\nclass LoginStrategyServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vYWJzdHJhY3Rpb25zL2xvZ2luLXN0cmF0ZWd5LnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQWVPLE1BQWUsK0JBQStCO0NBMERwRCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYXV0aC9zcmMvY29tbW9uL2Fic3RyYWN0aW9ucy9sb2dpbi1zdHJhdGVneS5zZXJ2aWNlLnRzPzM0ZmUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gXCJyeGpzXCI7XG5cbmltcG9ydCB7IEF1dGhlbnRpY2F0aW9uVHlwZSB9IGZyb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gICBjYXB0Y2hhUmVzcG9uc2U6IHN0cmluZyxcbiAgKSA9PiBQcm9taXNlPEF1dGhSZXN1bHQ+O1xuICAvKipcbiAgICogQ3JlYXRlcyBhIG1hc3RlciBrZXkgZnJvbSB0aGUgcHJvdmlkZWQgbWFzdGVyIHBhc3N3b3JkIGFuZCBlbWFpbC5cbiAgICovXG4gIG1ha2VQcmVsb2dpbktleTogKG1hc3RlclBhc3N3b3JkOiBzdHJpbmcsIGVtYWlsOiBzdHJpbmcpID0+IFByb21pc2U8TWFzdGVyS2V5Pjtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/abstractions/login-strategy.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/abstractions/pin.service.abstraction.ts":
/*!**************************************************************************!*\
  !*** ../../libs/auth/src/common/abstractions/pin.service.abstraction.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PinServiceAbstraction: () => (/* binding */ PinServiceAbstraction)\n/* harmony export */ });\n/**\n * The PinService is used for PIN-based unlocks. Below is a very basic overview of the PIN flow:\n *\n * -- Setting the PIN via {@link SetPinComponent} --\n *\n *    When the user submits the setPinForm:\n\n *    1. We encrypt the PIN with the UserKey and store it on disk as `userKeyEncryptedPin`.\n *\n *    2. We create a PinKey from the PIN, and then use that PinKey to encrypt the UserKey, resulting in\n *       a `pinKeyEncryptedUserKey`, which can be stored in one of two ways depending on what the user selects\n *       for the `requireMasterPasswordOnClientReset` checkbox.\n *\n *       If `requireMasterPasswordOnClientReset` is:\n *       - TRUE, store in memory as `pinKeyEncryptedUserKeyEphemeral` (does NOT persist through a client reset)\n *       - FALSE, store on disk as `pinKeyEncryptedUserKeyPersistent` (persists through a client reset)\n *\n * -- Unlocking with the PIN via {@link LockComponent} --\n *\n *    When the user enters their PIN, we decrypt their UserKey with the PIN and set that UserKey to state.\n */\nclass PinServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7816 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/abstractions/pin.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/abstractions/user-decryption-options.service.abstraction.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/auth/src/common/abstractions/user-decryption-options.service.abstraction.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   InternalUserDecryptionOptionsServiceAbstraction: () => (/* binding */ InternalUserDecryptionOptionsServiceAbstraction),\n/* harmony export */   UserDecryptionOptionsServiceAbstraction: () => (/* binding */ UserDecryptionOptionsServiceAbstraction)\n/* harmony export */ });\nclass UserDecryptionOptionsServiceAbstraction {\n}\nclass InternalUserDecryptionOptionsServiceAbstraction extends UserDecryptionOptionsServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vYWJzdHJhY3Rpb25zL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zLnNlcnZpY2UuYWJzdHJhY3Rpb24udHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFJTyxNQUFlLHVDQUF1QztDQWtCNUQ7QUFFTSxNQUFlLCtDQUFnRCxTQUFRLHVDQUF1QztDQVNwSCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYXV0aC9zcmMvY29tbW9uL2Fic3RyYWN0aW9ucy91c2VyLWRlY3J5cHRpb24tb3B0aW9ucy5zZXJ2aWNlLmFic3RyY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W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/abstractions/user-decryption-options.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/index.ts":
/*!*******************************************!*\
  !*** ../../libs/auth/src/common/index.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ADMIN_AUTH_REQUEST_KEY: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.ADMIN_AUTH_REQUEST_KEY),\n/* harmony export */   AuthRequestLoginCredentials: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.AuthRequestLoginCredentials),\n/* harmony export */   AuthRequestService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.AuthRequestService),\n/* harmony export */   AuthRequestServiceAbstraction: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.AuthRequestServiceAbstraction),\n/* harmony export */   DefaultLockService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.DefaultLockService),\n/* harmony export */   FakeKeyConnectorUserDecryptionOption: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.FakeKeyConnectorUserDecryptionOption),\n/* harmony export */   FakeTrustedDeviceUserDecryptionOption: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.FakeTrustedDeviceUserDecryptionOption),\n/* harmony export */   FakeUserDecryptionOptions: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.FakeUserDecryptionOptions),\n/* harmony export */   InternalUserDecryptionOptionsServiceAbstraction: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.InternalUserDecryptionOptionsServiceAbstraction),\n/* harmony export */   KeyConnectorUserDecryptionOption: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.KeyConnectorUserDecryptionOption),\n/* harmony export */   LOGIN_EMAIL: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.LOGIN_EMAIL),\n/* harmony export */   LockService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.LockService),\n/* harmony export */   LoginEmailService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.LoginEmailService),\n/* harmony export */   LoginEmailServiceAbstraction: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.LoginEmailServiceAbstraction),\n/* harmony export */   LoginStrategyService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.LoginStrategyService),\n/* harmony export */   LoginStrategyServiceAbstraction: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.LoginStrategyServiceAbstraction),\n/* harmony export */   OLD_PIN_KEY_ENCRYPTED_MASTER_KEY: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.OLD_PIN_KEY_ENCRYPTED_MASTER_KEY),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT),\n/* harmony export */   PasswordLoginCredentials: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.PasswordLoginCredentials),\n/* harmony export */   PinService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.PinService),\n/* harmony export */   PinServiceAbstraction: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.PinServiceAbstraction),\n/* harmony export */   RegisterRouteService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.RegisterRouteService),\n/* harmony export */   RotateableKeySet: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.RotateableKeySet),\n/* harmony export */   STORED_EMAIL: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.STORED_EMAIL),\n/* harmony export */   SsoLoginCredentials: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.SsoLoginCredentials),\n/* harmony export */   TrustedDeviceUserDecryptionOption: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.TrustedDeviceUserDecryptionOption),\n/* harmony export */   USER_DECRYPTION_OPTIONS: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.USER_DECRYPTION_OPTIONS),\n/* harmony export */   USER_KEY_ENCRYPTED_PIN: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.USER_KEY_ENCRYPTED_PIN),\n/* harmony export */   UserApiLoginCredentials: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.UserApiLoginCredentials),\n/* harmony export */   UserDecryptionOptions: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.UserDecryptionOptions),\n/* harmony export */   UserDecryptionOptionsService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_3__.UserDecryptionOptionsService),\n/* harmony export */   UserDecryptionOptionsServiceAbstraction: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.UserDecryptionOptionsServiceAbstraction),\n/* harmony export */   WebAuthnLoginCredentials: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_1__.WebAuthnLoginCredentials),\n/* harmony export */   decodeJwtTokenToJson: () => (/* reexport safe */ _utilities__WEBPACK_IMPORTED_MODULE_4__.decodeJwtTokenToJson)\n/* harmony export */ });\n/* harmony import */ var _abstractions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstractions */ \"../../libs/auth/src/common/abstractions/index.ts\");\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./models */ \"../../libs/auth/src/common/models/index.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./types */ \"../../libs/auth/src/common/types/index.ts\");\n/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./services */ \"../../libs/auth/src/common/services/index.ts\");\n/* harmony import */ var _utilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utilities */ \"../../libs/auth/src/common/utilities/index.ts\");\n/**\n * This barrel file should only contain non-Angular exports\n */\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBOztHQUVHO0FBQzRCO0FBQ047QUFDRDtBQUNHO0FBQ0MiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2F1dGgvc3JjL2NvbW1vbi9pbmRleC50cz9kNDVjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogVGhpcyBiYXJyZWwgZmlsZSBzaG91bGQgb25seSBjb250YWluIG5vbi1Bbmd1bGFyIGV4cG9ydHNcbiAqL1xuZXhwb3J0ICogZnJvbSBcIi4vYWJzdHJhY3Rpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9tb2RlbHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3R5cGVzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zZXJ2aWNlc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vdXRpbGl0aWVzXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/login-strategies/auth-request-login.strategy.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/auth/src/common/login-strategies/auth-request-login.strategy.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestLoginStrategy: () => (/* binding */ AuthRequestLoginStrategy),\n/* harmony export */   AuthRequestLoginStrategyData: () => (/* binding */ AuthRequestLoginStrategyData)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_password_token_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/password-token.request */ \"../../libs/common/src/auth/models/request/identity-token/password-token.request.ts\");\n/* harmony import */ var _models_domain_login_credentials__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/domain/login-credentials */ \"../../libs/auth/src/common/models/domain/login-credentials.ts\");\n/* harmony import */ var _login_strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./login.strategy */ \"../../libs/auth/src/common/login-strategies/login.strategy.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass AuthRequestLoginStrategyData {\n    static fromJSON(obj) {\n        const data = Object.assign(new AuthRequestLoginStrategyData(), obj, {\n            tokenRequest: _bitwarden_common_auth_models_request_identity_token_password_token_request__WEBPACK_IMPORTED_MODULE_1__.PasswordTokenRequest.fromJSON(obj.tokenRequest),\n            authRequestCredentials: _models_domain_login_credentials__WEBPACK_IMPORTED_MODULE_2__.AuthRequestLoginCredentials.fromJSON(obj.authRequestCredentials),\n        });\n        return data;\n    }\n}\nclass AuthRequestLoginStrategy extends _login_strategy__WEBPACK_IMPORTED_MODULE_3__.LoginStrategy {\n    constructor(data, deviceTrustService, ...sharedDeps) {\n        super(...sharedDeps);\n        this.deviceTrustService = deviceTrustService;\n        this.cache = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(data);\n        this.email$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((data) => data.tokenRequest.email));\n        this.accessCode$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((data) => data.authRequestCredentials.accessCode));\n        this.authRequestId$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((data) => data.authRequestCredentials.authRequestId));\n    }\n    logIn(credentials) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = new AuthRequestLoginStrategyData();\n            data.tokenRequest = new _bitwarden_common_auth_models_request_identity_token_password_token_request__WEBPACK_IMPORTED_MODULE_1__.PasswordTokenRequest(credentials.email, credentials.accessCode, null, yield this.buildTwoFactor(credentials.twoFactor, credentials.email), yield this.buildDeviceRequest());\n            data.tokenRequest.setAuthRequestAccessCode(credentials.authRequestId);\n            data.authRequestCredentials = credentials;\n            this.cache.next(data);\n            const [authResult] = yield this.startLogIn();\n            return authResult;\n        });\n    }\n    logInTwoFactor(twoFactor, captchaResponse) {\n        const _super = Object.create(null, {\n            logInTwoFactor: { get: () => super.logInTwoFactor }\n        });\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = this.cache.value;\n            data.tokenRequest.captchaResponse = captchaResponse !== null && captchaResponse !== void 0 ? captchaResponse : data.captchaBypassToken;\n            this.cache.next(data);\n            return _super.logInTwoFactor.call(this, twoFactor);\n        });\n    }\n    setMasterKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authRequestCredentials = this.cache.value.authRequestCredentials;\n            if (authRequestCredentials.decryptedMasterKey &&\n                authRequestCredentials.decryptedMasterKeyHash) {\n                yield this.masterPasswordService.setMasterKey(authRequestCredentials.decryptedMasterKey, userId);\n                yield this.masterPasswordService.setMasterKeyHash(authRequestCredentials.decryptedMasterKeyHash, userId);\n            }\n        });\n    }\n    setUserKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authRequestCredentials = this.cache.value.authRequestCredentials;\n            // User now may or may not have a master password\n            // but set the master key encrypted user key if it exists regardless\n            yield this.keyService.setMasterKeyEncryptedUserKey(response.key, userId);\n            if (authRequestCredentials.decryptedUserKey) {\n                yield this.keyService.setUserKey(authRequestCredentials.decryptedUserKey, userId);\n            }\n            else {\n                yield this.trySetUserKeyWithMasterKey(userId);\n                // Establish trust if required after setting user key\n                yield this.deviceTrustService.trustDeviceIfRequired(userId);\n            }\n        });\n    }\n    trySetUserKeyWithMasterKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            if (masterKey) {\n                const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);\n                yield this.keyService.setUserKey(userKey, userId);\n            }\n        });\n    }\n    setPrivateKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            yield this.keyService.setPrivateKey((_a = response.privateKey) !== null && _a !== void 0 ? _a : (yield this.createKeyPairForOldAccount(userId)), userId);\n        });\n    }\n    exportCache() {\n        return {\n            authRequest: this.cache.value,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11796 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/login-strategies/auth-request-login.strategy.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/login-strategies/login.strategy.ts":
/*!*********************************************************************!*\
  !*** ../../libs/auth/src/common/login-strategies/login.strategy.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginStrategy: () => (/* binding */ LoginStrategy),\n/* harmony export */   LoginStrategyData: () => (/* binding */ LoginStrategyData)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/enums/two-factor-provider-type */ \"../../libs/common/src/auth/enums/two-factor-provider-type.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_domain_auth_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/auth-result */ \"../../libs/common/src/auth/models/domain/auth-result.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_device_request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/device.request */ \"../../libs/common/src/auth/models/request/identity-token/device.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_response_identity_captcha_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/auth/models/response/identity-captcha.response */ \"../../libs/common/src/auth/models/response/identity-captcha.response.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_response_identity_token_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/auth/models/response/identity-token.response */ \"../../libs/common/src/auth/models/response/identity-token.response.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_response_identity_two_factor_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitwarden/common/auth/models/response/identity-two-factor.response */ \"../../libs/common/src/auth/models/response/identity-two-factor.response.ts\");\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_models_request_keys_request__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitwarden/common/models/request/keys.request */ \"../../libs/common/src/models/request/keys.request.ts\");\n/* harmony import */ var _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @bitwarden/common/platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_account__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/account */ \"../../libs/common/src/platform/models/domain/account.ts\");\n/* harmony import */ var _models_domain_user_decryption_options__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../models/domain/user-decryption-options */ \"../../libs/auth/src/common/models/domain/user-decryption-options.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass LoginStrategyData {\n}\nclass LoginStrategy {\n    constructor(accountService, masterPasswordService, keyService, encryptService, apiService, tokenService, appIdService, platformUtilsService, messagingService, logService, stateService, twoFactorService, userDecryptionOptionsService, billingAccountProfileStateService, vaultTimeoutSettingsService, KdfConfigService) {\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.apiService = apiService;\n        this.tokenService = tokenService;\n        this.appIdService = appIdService;\n        this.platformUtilsService = platformUtilsService;\n        this.messagingService = messagingService;\n        this.logService = logService;\n        this.stateService = stateService;\n        this.twoFactorService = twoFactorService;\n        this.userDecryptionOptionsService = userDecryptionOptionsService;\n        this.billingAccountProfileStateService = billingAccountProfileStateService;\n        this.vaultTimeoutSettingsService = vaultTimeoutSettingsService;\n        this.KdfConfigService = KdfConfigService;\n    }\n    logInTwoFactor(twoFactor_1) {\n        return __awaiter(this, arguments, void 0, function* (twoFactor, captchaResponse = null) {\n            const data = this.cache.value;\n            data.tokenRequest.setTwoFactor(twoFactor);\n            this.cache.next(data);\n            const [authResult] = yield this.startLogIn();\n            return authResult;\n        });\n    }\n    startLogIn() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.twoFactorService.clearSelectedProvider();\n            const tokenRequest = this.cache.value.tokenRequest;\n            const response = yield this.apiService.postIdentityToken(tokenRequest);\n            if (response instanceof _bitwarden_common_auth_models_response_identity_two_factor_response__WEBPACK_IMPORTED_MODULE_9__.IdentityTwoFactorResponse) {\n                return [yield this.processTwoFactorResponse(response), response];\n            }\n            else if (response instanceof _bitwarden_common_auth_models_response_identity_captcha_response__WEBPACK_IMPORTED_MODULE_7__.IdentityCaptchaResponse) {\n                return [yield this.processCaptchaResponse(response), response];\n            }\n            else if (response instanceof _bitwarden_common_auth_models_response_identity_token_response__WEBPACK_IMPORTED_MODULE_8__.IdentityTokenResponse) {\n                return [yield this.processTokenResponse(response), response];\n            }\n            throw new Error(\"Invalid response object.\");\n        });\n    }\n    buildDeviceRequest() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const appId = yield this.appIdService.getAppId();\n            return new _bitwarden_common_auth_models_request_identity_token_device_request__WEBPACK_IMPORTED_MODULE_5__.DeviceRequest(appId, this.platformUtilsService);\n        });\n    }\n    /**\n     * Builds the TokenTwoFactorRequest to be used within other login strategies token requests\n     * to the server.\n     * If the user provided a 2FA token in an already created TokenTwoFactorRequest, it will be used.\n     * If not, and the user has previously remembered a 2FA token, it will be used.\n     * If neither of these are true, an empty TokenTwoFactorRequest will be returned.\n     * @param userProvidedTwoFactor - optional - The 2FA token request provided by the caller\n     * @param email - optional - ensure that email is provided for any login strategies that support remember 2FA functionality\n     * @returns a promise which resolves to a TokenTwoFactorRequest to be sent to the server\n     */\n    buildTwoFactor(userProvidedTwoFactor, email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userProvidedTwoFactor != null) {\n                return userProvidedTwoFactor;\n            }\n            if (email) {\n                const storedTwoFactorToken = yield this.tokenService.getTwoFactorToken(email);\n                if (storedTwoFactorToken != null) {\n                    return new _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__.TokenTwoFactorRequest(_bitwarden_common_auth_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_1__.TwoFactorProviderType.Remember, storedTwoFactorToken, false);\n                }\n            }\n            return new _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_6__.TokenTwoFactorRequest();\n        });\n    }\n    /**\n     * Initializes the account with information from the IdTokenResponse after successful login.\n     * It also sets the access token and refresh token in the token service.\n     *\n     * @param {IdentityTokenResponse} tokenResponse - The response from the server containing the identity token.\n     * @returns {Promise<UserId>} - A promise that resolves the the UserId when the account information has been successfully saved.\n     */\n    saveAccountInformation(tokenResponse) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accountInformation = yield this.tokenService.decodeAccessToken(tokenResponse.accessToken);\n            const userId = accountInformation.sub;\n            yield this.accountService.addAccount(userId, {\n                name: accountInformation.name,\n                email: accountInformation.email,\n                emailVerified: accountInformation.email_verified,\n            });\n            yield this.accountService.switchAccount(userId);\n            yield this.stateService.addAccount(new _bitwarden_common_platform_models_domain_account__WEBPACK_IMPORTED_MODULE_13__.Account({\n                profile: Object.assign(Object.assign({}, new _bitwarden_common_platform_models_domain_account__WEBPACK_IMPORTED_MODULE_13__.AccountProfile()), {\n                    userId,\n                    name: accountInformation.name,\n                    email: accountInformation.email,\n                }),\n            }));\n            yield this.verifyAccountAdded(userId);\n            // We must set user decryption options before retrieving vault timeout settings\n            // as the user decryption options help determine the available timeout actions.\n            yield this.userDecryptionOptionsService.setUserDecryptionOptions(_models_domain_user_decryption_options__WEBPACK_IMPORTED_MODULE_14__.UserDecryptionOptions.fromResponse(tokenResponse));\n            const vaultTimeoutAction = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(userId));\n            const vaultTimeout = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(userId));\n            // User id will be derived from the access token.\n            yield this.tokenService.setTokens(tokenResponse.accessToken, vaultTimeoutAction, vaultTimeout, tokenResponse.refreshToken);\n            yield this.KdfConfigService.setKdfConfig(userId, tokenResponse.kdf === _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_12__.KdfType.PBKDF2_SHA256\n                ? new _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_4__.PBKDF2KdfConfig(tokenResponse.kdfIterations)\n                : new _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_4__.Argon2KdfConfig(tokenResponse.kdfIterations, tokenResponse.kdfMemory, tokenResponse.kdfParallelism));\n            yield this.billingAccountProfileStateService.setHasPremium(accountInformation.premium, false, userId);\n            return userId;\n        });\n    }\n    processTokenResponse(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const result = new _bitwarden_common_auth_models_domain_auth_result__WEBPACK_IMPORTED_MODULE_2__.AuthResult();\n            // Old encryption keys must be migrated, but is currently only available on web.\n            // Other clients shouldn't continue the login process.\n            if (this.encryptionKeyMigrationRequired(response)) {\n                result.requiresEncryptionKeyMigration = true;\n                if (this.platformUtilsService.getClientType() !== _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_10__.ClientType.Web) {\n                    return result;\n                }\n            }\n            result.resetMasterPassword = response.resetMasterPassword;\n            // Convert boolean to enum\n            if (response.forcePasswordReset) {\n                result.forcePasswordReset = _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_3__.ForceSetPasswordReason.AdminForcePasswordReset;\n            }\n            // Must come before setting keys, user key needs email to update additional keys\n            const userId = yield this.saveAccountInformation(response);\n            result.userId = userId;\n            if (response.twoFactorToken != null) {\n                // note: we can read email from access token b/c it was saved in saveAccountInformation\n                const userEmail = yield this.tokenService.getEmail();\n                yield this.tokenService.setTwoFactorToken(userEmail, response.twoFactorToken);\n            }\n            yield this.setMasterKey(response, userId);\n            yield this.setUserKey(response, userId);\n            yield this.setPrivateKey(response, userId);\n            this.messagingService.send(\"loggedIn\");\n            return result;\n        });\n    }\n    // Old accounts used master key for encryption. We are forcing migrations but only need to\n    // check on password logins\n    encryptionKeyMigrationRequired(response) {\n        return false;\n    }\n    createKeyPairForOldAccount(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const userKey = yield this.keyService.getUserKeyWithLegacySupport(userId);\n                const [publicKey, privateKey] = yield this.keyService.makeKeyPair(userKey);\n                yield this.apiService.postAccountKeys(new _bitwarden_common_models_request_keys_request__WEBPACK_IMPORTED_MODULE_11__.KeysRequest(publicKey, privateKey.encryptedString));\n                return privateKey.encryptedString;\n            }\n            catch (e) {\n                this.logService.error(e);\n            }\n        });\n    }\n    /**\n     * Handles the response from the server when a 2FA is required.\n     * It clears any existing 2FA token, as it's no longer valid, and sets up the necessary data for the 2FA process.\n     *\n     * @param {IdentityTwoFactorResponse} response - The response from the server indicating that 2FA is required.\n     * @returns {Promise<AuthResult>} - A promise that resolves to an AuthResult object\n     */\n    processTwoFactorResponse(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            // If we get a 2FA required response, then we should clear the 2FA token\n            // just in case as it is no longer valid.\n            yield this.clearTwoFactorToken();\n            const result = new _bitwarden_common_auth_models_domain_auth_result__WEBPACK_IMPORTED_MODULE_2__.AuthResult();\n            result.twoFactorProviders = response.twoFactorProviders2;\n            yield this.twoFactorService.setProviders(response);\n            this.cache.next(Object.assign(Object.assign({}, this.cache.value), { captchaBypassToken: (_a = response.captchaToken) !== null && _a !== void 0 ? _a : null }));\n            result.ssoEmail2FaSessionToken = response.ssoEmail2faSessionToken;\n            result.email = response.email;\n            return result;\n        });\n    }\n    /**\n     * Clears the 2FA token from the token service using the user's email if it exists\n     */\n    clearTwoFactorToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const email = this.cache.value.userEnteredEmail;\n            if (email) {\n                yield this.tokenService.clearTwoFactorToken(email);\n            }\n        });\n    }\n    processCaptchaResponse(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const result = new _bitwarden_common_auth_models_domain_auth_result__WEBPACK_IMPORTED_MODULE_2__.AuthResult();\n            result.captchaSiteKey = response.siteKey;\n            return result;\n        });\n    }\n    /**\n     * Verifies that the active account is set after initialization.\n     * Note: In browser there is a slight delay between when active account emits in background,\n     * and when it emits in foreground. We're giving the foreground 1 second to catch up.\n     * If nothing is emitted, we throw an error.\n     */\n    verifyAccountAdded(expectedUserId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((account) => (account === null || account === void 0 ? void 0 : account.id) === expectedUserId), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timeout)({\n                first: 1000,\n                with: () => {\n                    throw new Error(\"Expected user never made active user after initialization.\");\n                },\n            })));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29916 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/login-strategies/login.strategy.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/login-strategies/password-login.strategy.ts":
/*!******************************************************************************!*\
  !*** ../../libs/auth/src/common/login-strategies/password-login.strategy.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordLoginStrategy: () => (/* binding */ PasswordLoginStrategy),\n/* harmony export */   PasswordLoginStrategyData: () => (/* binding */ PasswordLoginStrategyData)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_admin_console_models_domain_master_password_policy_options__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/domain/master-password-policy-options */ \"../../libs/common/src/admin-console/models/domain/master-password-policy-options.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_password_token_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/password-token.request */ \"../../libs/common/src/auth/models/request/identity-token/password-token.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_response_identity_captcha_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/auth/models/response/identity-captcha.response */ \"../../libs/common/src/auth/models/response/identity-captcha.response.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_response_identity_two_factor_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/auth/models/response/identity-two-factor.response */ \"../../libs/common/src/auth/models/response/identity-two-factor.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _login_strategy__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./login.strategy */ \"../../libs/auth/src/common/login-strategies/login.strategy.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\nclass PasswordLoginStrategyData {\n    constructor() {\n        /**\n         * Tracks if the user needs to update their password due to\n         * a password that does not meet an organization's master password policy.\n         */\n        this.forcePasswordResetReason = _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_2__.ForceSetPasswordReason.None;\n    }\n    static fromJSON(obj) {\n        const data = Object.assign(new PasswordLoginStrategyData(), obj, {\n            tokenRequest: _bitwarden_common_auth_models_request_identity_token_password_token_request__WEBPACK_IMPORTED_MODULE_3__.PasswordTokenRequest.fromJSON(obj.tokenRequest),\n            masterKey: _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_7__.SymmetricCryptoKey.fromJSON(obj.masterKey),\n        });\n        return data;\n    }\n}\nclass PasswordLoginStrategy extends _login_strategy__WEBPACK_IMPORTED_MODULE_8__.LoginStrategy {\n    constructor(data, passwordStrengthService, policyService, loginStrategyService, ...sharedDeps) {\n        super(...sharedDeps);\n        this.passwordStrengthService = passwordStrengthService;\n        this.policyService = policyService;\n        this.loginStrategyService = loginStrategyService;\n        this.cache = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(data);\n        this.email$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => state.tokenRequest.email));\n        this.serverMasterKeyHash$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => state.tokenRequest.masterPasswordHash));\n        this.localMasterKeyHash$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => state.localMasterKeyHash));\n    }\n    logIn(credentials) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const { email, masterPassword, captchaToken, twoFactor } = credentials;\n            const data = new PasswordLoginStrategyData();\n            data.masterKey = yield this.loginStrategyService.makePreloginKey(masterPassword, email);\n            data.userEnteredEmail = email;\n            // Hash the password early (before authentication) so we don't persist it in memory in plaintext\n            data.localMasterKeyHash = yield this.keyService.hashMasterKey(masterPassword, data.masterKey, _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_6__.HashPurpose.LocalAuthorization);\n            const serverMasterKeyHash = yield this.keyService.hashMasterKey(masterPassword, data.masterKey);\n            data.tokenRequest = new _bitwarden_common_auth_models_request_identity_token_password_token_request__WEBPACK_IMPORTED_MODULE_3__.PasswordTokenRequest(email, serverMasterKeyHash, captchaToken, yield this.buildTwoFactor(twoFactor, email), yield this.buildDeviceRequest());\n            this.cache.next(data);\n            const [authResult, identityResponse] = yield this.startLogIn();\n            if (identityResponse instanceof _bitwarden_common_auth_models_response_identity_captcha_response__WEBPACK_IMPORTED_MODULE_4__.IdentityCaptchaResponse) {\n                return authResult;\n            }\n            const masterPasswordPolicyOptions = this.getMasterPasswordPolicyOptionsFromResponse(identityResponse);\n            // The identity result can contain master password policies for the user's organizations\n            if (masterPasswordPolicyOptions === null || masterPasswordPolicyOptions === void 0 ? void 0 : masterPasswordPolicyOptions.enforceOnLogin) {\n                // If there is a policy active, evaluate the supplied password before its no longer in memory\n                const meetsRequirements = this.evaluateMasterPassword(credentials, masterPasswordPolicyOptions);\n                if (meetsRequirements) {\n                    return authResult;\n                }\n                if (identityResponse instanceof _bitwarden_common_auth_models_response_identity_two_factor_response__WEBPACK_IMPORTED_MODULE_5__.IdentityTwoFactorResponse) {\n                    // Save the flag to this strategy for use in 2fa login as the master password is about to pass out of scope\n                    this.cache.next(Object.assign(Object.assign({}, this.cache.value), { forcePasswordResetReason: _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_2__.ForceSetPasswordReason.WeakMasterPassword }));\n                }\n                else {\n                    // Authentication was successful, save the force update password options with the state service\n                    yield this.masterPasswordService.setForceSetPasswordReason(_bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_2__.ForceSetPasswordReason.WeakMasterPassword, authResult.userId);\n                    authResult.forcePasswordReset = _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_2__.ForceSetPasswordReason.WeakMasterPassword;\n                }\n            }\n            return authResult;\n        });\n    }\n    logInTwoFactor(twoFactor, captchaResponse) {\n        const _super = Object.create(null, {\n            logInTwoFactor: { get: () => super.logInTwoFactor }\n        });\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = this.cache.value;\n            data.tokenRequest.captchaResponse = captchaResponse !== null && captchaResponse !== void 0 ? captchaResponse : data.captchaBypassToken;\n            this.cache.next(data);\n            const result = yield _super.logInTwoFactor.call(this, twoFactor);\n            // 2FA was successful, save the force update password options with the state service if defined\n            const forcePasswordResetReason = this.cache.value.forcePasswordResetReason;\n            if (!result.requiresTwoFactor &&\n                !result.requiresCaptcha &&\n                forcePasswordResetReason != _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_2__.ForceSetPasswordReason.None) {\n                yield this.masterPasswordService.setForceSetPasswordReason(forcePasswordResetReason, result.userId);\n                result.forcePasswordReset = forcePasswordResetReason;\n            }\n            return result;\n        });\n    }\n    setMasterKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const { masterKey, localMasterKeyHash } = this.cache.value;\n            yield this.masterPasswordService.setMasterKey(masterKey, userId);\n            yield this.masterPasswordService.setMasterKeyHash(localMasterKeyHash, userId);\n        });\n    }\n    setUserKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If migration is required, we won't have a user key to set yet.\n            if (this.encryptionKeyMigrationRequired(response)) {\n                return;\n            }\n            yield this.keyService.setMasterKeyEncryptedUserKey(response.key, userId);\n            const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            if (masterKey) {\n                const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);\n                yield this.keyService.setUserKey(userKey, userId);\n            }\n        });\n    }\n    setPrivateKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            yield this.keyService.setPrivateKey((_a = response.privateKey) !== null && _a !== void 0 ? _a : (yield this.createKeyPairForOldAccount(userId)), userId);\n        });\n    }\n    encryptionKeyMigrationRequired(response) {\n        return !response.key;\n    }\n    getMasterPasswordPolicyOptionsFromResponse(response) {\n        if (response == null) {\n            return null;\n        }\n        return _bitwarden_common_admin_console_models_domain_master_password_policy_options__WEBPACK_IMPORTED_MODULE_1__.MasterPasswordPolicyOptions.fromResponse(response.masterPasswordPolicy);\n    }\n    evaluateMasterPassword({ masterPassword, email }, options) {\n        var _a;\n        const passwordStrength = (_a = this.passwordStrengthService.getPasswordStrength(masterPassword, email)) === null || _a === void 0 ? void 0 : _a.score;\n        return this.policyService.evaluateMasterPassword(passwordStrength, masterPassword, options);\n    }\n    exportCache() {\n        return {\n            password: this.cache.value,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 19500 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/login-strategies/password-login.strategy.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/login-strategies/sso-login.strategy.ts":
/*!*************************************************************************!*\
  !*** ../../libs/auth/src/common/login-strategies/sso-login.strategy.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SsoLoginStrategy: () => (/* binding */ SsoLoginStrategy),\n/* harmony export */   SsoLoginStrategyData: () => (/* binding */ SsoLoginStrategyData)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_sso_token_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/sso-token.request */ \"../../libs/common/src/auth/models/request/identity-token/sso-token.request.ts\");\n/* harmony import */ var _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _login_strategy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login.strategy */ \"../../libs/auth/src/common/login-strategies/login.strategy.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass SsoLoginStrategyData {\n    static fromJSON(obj) {\n        return Object.assign(new SsoLoginStrategyData(), obj, {\n            tokenRequest: _bitwarden_common_auth_models_request_identity_token_sso_token_request__WEBPACK_IMPORTED_MODULE_2__.SsoTokenRequest.fromJSON(obj.tokenRequest),\n        });\n    }\n}\nclass SsoLoginStrategy extends _login_strategy__WEBPACK_IMPORTED_MODULE_5__.LoginStrategy {\n    constructor(data, keyConnectorService, deviceTrustService, authRequestService, i18nService, ...sharedDeps) {\n        super(...sharedDeps);\n        this.keyConnectorService = keyConnectorService;\n        this.deviceTrustService = deviceTrustService;\n        this.authRequestService = authRequestService;\n        this.i18nService = i18nService;\n        this.cache = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(data);\n        this.email$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => state.email));\n        this.orgId$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => state.orgId));\n        this.ssoEmail2FaSessionToken$ = this.cache.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => state.ssoEmail2FaSessionToken));\n    }\n    logIn(credentials) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = new SsoLoginStrategyData();\n            data.orgId = credentials.orgId;\n            data.userEnteredEmail = credentials.email;\n            const deviceRequest = yield this.buildDeviceRequest();\n            this.logService.info(\"Logging in with appId %s.\", deviceRequest.identifier);\n            data.tokenRequest = new _bitwarden_common_auth_models_request_identity_token_sso_token_request__WEBPACK_IMPORTED_MODULE_2__.SsoTokenRequest(credentials.code, credentials.codeVerifier, credentials.redirectUrl, yield this.buildTwoFactor(credentials.twoFactor, credentials.email), deviceRequest);\n            this.cache.next(data);\n            const [ssoAuthResult] = yield this.startLogIn();\n            const email = ssoAuthResult.email;\n            const ssoEmail2FaSessionToken = ssoAuthResult.ssoEmail2FaSessionToken;\n            // Auth guard currently handles redirects for this.\n            if (ssoAuthResult.forcePasswordReset == _bitwarden_common_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_1__.ForceSetPasswordReason.AdminForcePasswordReset) {\n                yield this.masterPasswordService.setForceSetPasswordReason(ssoAuthResult.forcePasswordReset, ssoAuthResult.userId);\n            }\n            this.cache.next(Object.assign(Object.assign({}, this.cache.value), { email,\n                ssoEmail2FaSessionToken }));\n            return ssoAuthResult;\n        });\n    }\n    setMasterKey(tokenResponse, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // The only way we can be setting a master key at this point is if we are using Key Connector.\n            // First, check to make sure that we should do so based on the token response.\n            if (this.shouldSetMasterKeyFromKeyConnector(tokenResponse)) {\n                // If we're here, we know that the user should use Key Connector (they have a KeyConnectorUrl) and does not have a master password.\n                // We can now check the key on the token response to see whether they are a brand new user or an existing user.\n                // The presence of a masterKeyEncryptedUserKey indicates that the user has already been provisioned in Key Connector.\n                const newSsoUser = tokenResponse.key == null;\n                if (newSsoUser) {\n                    yield this.keyConnectorService.convertNewSsoUserToKeyConnector(tokenResponse, this.cache.value.orgId, userId);\n                }\n                else {\n                    const keyConnectorUrl = this.getKeyConnectorUrl(tokenResponse);\n                    yield this.keyConnectorService.setMasterKeyFromUrl(keyConnectorUrl, userId);\n                }\n            }\n        });\n    }\n    /**\n     * Determines if it is possible set the `masterKey` from Key Connector.\n     * @param tokenResponse\n     * @returns `true` if the master key can be set from Key Connector, `false` otherwise\n     */\n    shouldSetMasterKeyFromKeyConnector(tokenResponse) {\n        var _a;\n        const userDecryptionOptions = tokenResponse === null || tokenResponse === void 0 ? void 0 : tokenResponse.userDecryptionOptions;\n        if (userDecryptionOptions != null) {\n            const userHasMasterPassword = userDecryptionOptions.hasMasterPassword;\n            const userHasKeyConnectorUrl = ((_a = userDecryptionOptions.keyConnectorOption) === null || _a === void 0 ? void 0 : _a.keyConnectorUrl) != null;\n            // In order for us to set the master key from Key Connector, we need to have a Key Connector URL\n            // and the user must not have a master password.\n            return userHasKeyConnectorUrl && !userHasMasterPassword;\n        }\n        else {\n            // In pre-TDE versions of the server, the userDecryptionOptions will not be present.\n            // In this case, we can determine if the user has a master password and has a Key Connector URL by\n            // just checking the keyConnectorUrl property. This is because the server short-circuits on the response\n            // and will not pass back the URL in the response if the user has a master password.\n            // TODO: remove compatibility check after 2023.10 release (https://bitwarden.atlassian.net/browse/PM-3537)\n            return tokenResponse.keyConnectorUrl != null;\n        }\n    }\n    getKeyConnectorUrl(tokenResponse) {\n        var _a, _b;\n        // TODO: remove tokenResponse.keyConnectorUrl reference after 2023.10 release (https://bitwarden.atlassian.net/browse/PM-3537)\n        const userDecryptionOptions = tokenResponse === null || tokenResponse === void 0 ? void 0 : tokenResponse.userDecryptionOptions;\n        return ((_a = tokenResponse.keyConnectorUrl) !== null && _a !== void 0 ? _a : (_b = userDecryptionOptions === null || userDecryptionOptions === void 0 ? void 0 : userDecryptionOptions.keyConnectorOption) === null || _b === void 0 ? void 0 : _b.keyConnectorUrl);\n    }\n    // TODO: future passkey login strategy will need to support setting user key (decrypting via TDE or admin approval request)\n    // so might be worth moving this logic to a common place (base login strategy or a separate service?)\n    setUserKey(tokenResponse, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const masterKeyEncryptedUserKey = tokenResponse.key;\n            // Note: masterKeyEncryptedUserKey is undefined for SSO JIT provisioned users\n            // on account creation and subsequent logins (confirmed or unconfirmed)\n            // but that is fine for TDE so we cannot return if it is undefined\n            if (masterKeyEncryptedUserKey) {\n                // set the master key encrypted user key if it exists\n                yield this.keyService.setMasterKeyEncryptedUserKey(masterKeyEncryptedUserKey, userId);\n            }\n            const userDecryptionOptions = tokenResponse === null || tokenResponse === void 0 ? void 0 : tokenResponse.userDecryptionOptions;\n            // Note: TDE and key connector are mutually exclusive\n            if (userDecryptionOptions === null || userDecryptionOptions === void 0 ? void 0 : userDecryptionOptions.trustedDeviceOption) {\n                this.logService.info(\"Attempting to set user key with approved admin auth request.\");\n                // Try to use the user key from an approved admin request if it exists.\n                // Using it will clear it from state and future requests will use the device key.\n                yield this.trySetUserKeyWithApprovedAdminRequestIfExists(userId);\n                const hasUserKey = yield this.keyService.hasUserKey(userId);\n                // Only try to set user key with device key if admin approval request was not successful.\n                if (!hasUserKey) {\n                    this.logService.info(\"Attempting to set user key with device key.\");\n                    yield this.trySetUserKeyWithDeviceKey(tokenResponse, userId);\n                }\n            }\n            else if (masterKeyEncryptedUserKey != null &&\n                this.getKeyConnectorUrl(tokenResponse) != null) {\n                // Key connector enabled for user\n                yield this.trySetUserKeyWithMasterKey(userId);\n            }\n            // Note: In the traditional SSO flow with MP without key connector, the lock component\n            // is responsible for deriving master key from MP entry and then decrypting the user key\n        });\n    }\n    trySetUserKeyWithApprovedAdminRequestIfExists(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // At this point a user could have an admin auth request that has been approved\n            const adminAuthReqStorable = yield this.authRequestService.getAdminAuthRequest(userId);\n            if (!adminAuthReqStorable) {\n                return;\n            }\n            // Call server to see if admin auth request has been approved\n            let adminAuthReqResponse;\n            try {\n                adminAuthReqResponse = yield this.apiService.getAuthRequest(adminAuthReqStorable.id);\n            }\n            catch (error) {\n                if (error instanceof _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_4__.ErrorResponse && error.statusCode === _bitwarden_common_enums__WEBPACK_IMPORTED_MODULE_3__.HttpStatusCode.NotFound) {\n                    // if we get a 404, it means the auth request has been deleted so clear it from storage\n                    yield this.authRequestService.clearAdminAuthRequest(userId);\n                }\n                // Always return on an error here as we don't want to block the user from logging in\n                return;\n            }\n            if (adminAuthReqResponse === null || adminAuthReqResponse === void 0 ? void 0 : adminAuthReqResponse.requestApproved) {\n                // if masterPasswordHash has a value, we will always receive authReqResponse.key\n                // as authRequestPublicKey(masterKey) + authRequestPublicKey(masterPasswordHash)\n                if (adminAuthReqResponse.masterPasswordHash) {\n                    yield this.authRequestService.setKeysAfterDecryptingSharedMasterKeyAndHash(adminAuthReqResponse, adminAuthReqStorable.privateKey, userId);\n                }\n                else {\n                    // if masterPasswordHash is null, we will always receive authReqResponse.key\n                    // as authRequestPublicKey(userKey)\n                    yield this.authRequestService.setUserKeyAfterDecryptingSharedUserKey(adminAuthReqResponse, adminAuthReqStorable.privateKey, userId);\n                }\n                if (yield this.keyService.hasUserKey()) {\n                    // Now that we have a decrypted user key in memory, we can check if we\n                    // need to establish trust on the current device\n                    yield this.deviceTrustService.trustDeviceIfRequired(userId);\n                    // if we successfully decrypted the user key, we can delete the admin auth request out of state\n                    // TODO: eventually we post and clean up DB as well once consumed on client\n                    yield this.authRequestService.clearAdminAuthRequest(userId);\n                    this.platformUtilsService.showToast(\"success\", null, this.i18nService.t(\"loginApproved\"));\n                }\n            }\n        });\n    }\n    trySetUserKeyWithDeviceKey(tokenResponse, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const trustedDeviceOption = (_a = tokenResponse.userDecryptionOptions) === null || _a === void 0 ? void 0 : _a.trustedDeviceOption;\n            if (!trustedDeviceOption) {\n                this.logService.error(\"Unable to set user key due to missing trustedDeviceOption.\");\n                return;\n            }\n            const deviceKey = yield this.deviceTrustService.getDeviceKey(userId);\n            const encDevicePrivateKey = trustedDeviceOption === null || trustedDeviceOption === void 0 ? void 0 : trustedDeviceOption.encryptedPrivateKey;\n            const encUserKey = trustedDeviceOption === null || trustedDeviceOption === void 0 ? void 0 : trustedDeviceOption.encryptedUserKey;\n            if (!deviceKey || !encDevicePrivateKey || !encUserKey) {\n                if (!deviceKey) {\n                    this.logService.warning(\"Unable to set user key due to missing device key.\");\n                }\n                else if (!encDevicePrivateKey || !encUserKey) {\n                    // Tell the server that we have a device key, but received no decryption keys\n                    yield this.deviceTrustService.recordDeviceTrustLoss();\n                }\n                if (!encDevicePrivateKey) {\n                    this.logService.warning(\"Unable to set user key due to missing encrypted device private key.\");\n                }\n                if (!encUserKey) {\n                    this.logService.warning(\"Unable to set user key due to missing encrypted user key.\");\n                }\n                return;\n            }\n            const userKey = yield this.deviceTrustService.decryptUserKeyWithDeviceKey(userId, encDevicePrivateKey, encUserKey, deviceKey);\n            if (userKey) {\n                yield this.keyService.setUserKey(userKey, userId);\n            }\n        });\n    }\n    trySetUserKeyWithMasterKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            // There is a scenario in which the master key is not set here. That will occur if the user\n            // has a master password and is using Key Connector. In that case, we cannot set the master key\n            // because the user hasn't entered their master password yet.\n            // Instead, we'll return here and let the migration to Key Connector handle setting the master key.\n            if (!masterKey) {\n                return;\n            }\n            const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);\n            yield this.keyService.setUserKey(userKey, userId);\n        });\n    }\n    setPrivateKey(tokenResponse, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const newSsoUser = tokenResponse.key == null;\n            if (!newSsoUser) {\n                yield this.keyService.setPrivateKey((_a = tokenResponse.privateKey) !== null && _a !== void 0 ? _a : (yield this.createKeyPairForOldAccount(userId)), userId);\n            }\n        });\n    }\n    exportCache() {\n        return {\n            sso: this.cache.value,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 30496 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/login-strategies/sso-login.strategy.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/login-strategies/user-api-login.strategy.ts":
/*!******************************************************************************!*\
  !*** ../../libs/auth/src/common/login-strategies/user-api-login.strategy.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserApiLoginStrategy: () => (/* binding */ UserApiLoginStrategy),\n/* harmony export */   UserApiLoginStrategyData: () => (/* binding */ UserApiLoginStrategyData)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_user_api_token_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/user-api-token.request */ \"../../libs/common/src/auth/models/request/identity-token/user-api-token.request.ts\");\n/* harmony import */ var _login_strategy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./login.strategy */ \"../../libs/auth/src/common/login-strategies/login.strategy.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass UserApiLoginStrategyData {\n    static fromJSON(obj) {\n        return Object.assign(new UserApiLoginStrategyData(), obj, {\n            tokenRequest: _bitwarden_common_auth_models_request_identity_token_user_api_token_request__WEBPACK_IMPORTED_MODULE_1__.UserApiTokenRequest.fromJSON(obj.tokenRequest),\n        });\n    }\n}\nclass UserApiLoginStrategy extends _login_strategy__WEBPACK_IMPORTED_MODULE_2__.LoginStrategy {\n    constructor(data, environmentService, keyConnectorService, ...sharedDeps) {\n        super(...sharedDeps);\n        this.environmentService = environmentService;\n        this.keyConnectorService = keyConnectorService;\n        this.cache = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(data);\n    }\n    logIn(credentials) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = new UserApiLoginStrategyData();\n            data.tokenRequest = new _bitwarden_common_auth_models_request_identity_token_user_api_token_request__WEBPACK_IMPORTED_MODULE_1__.UserApiTokenRequest(credentials.clientId, credentials.clientSecret, yield this.buildTwoFactor(), yield this.buildDeviceRequest());\n            this.cache.next(data);\n            const [authResult] = yield this.startLogIn();\n            return authResult;\n        });\n    }\n    setMasterKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (response.apiUseKeyConnector) {\n                const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n                const keyConnectorUrl = env.getKeyConnectorUrl();\n                yield this.keyConnectorService.setMasterKeyFromUrl(keyConnectorUrl, userId);\n            }\n        });\n    }\n    setUserKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.keyService.setMasterKeyEncryptedUserKey(response.key, userId);\n            if (response.apiUseKeyConnector) {\n                const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n                if (masterKey) {\n                    const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);\n                    yield this.keyService.setUserKey(userKey, userId);\n                }\n            }\n        });\n    }\n    setPrivateKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            yield this.keyService.setPrivateKey((_a = response.privateKey) !== null && _a !== void 0 ? _a : (yield this.createKeyPairForOldAccount(userId)), userId);\n        });\n    }\n    // Overridden to save client ID and secret to token service\n    saveAccountInformation(tokenResponse) {\n        const _super = Object.create(null, {\n            saveAccountInformation: { get: () => super.saveAccountInformation }\n        });\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield _super.saveAccountInformation.call(this, tokenResponse);\n            const vaultTimeoutAction = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(userId));\n            const vaultTimeout = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(userId));\n            const tokenRequest = this.cache.value.tokenRequest;\n            yield this.tokenService.setClientId(tokenRequest.clientId, vaultTimeoutAction, vaultTimeout);\n            yield this.tokenService.setClientSecret(tokenRequest.clientSecret, vaultTimeoutAction, vaultTimeout);\n            return userId;\n        });\n    }\n    exportCache() {\n        return {\n            userApiKey: this.cache.value,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9452 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/login-strategies/user-api-login.strategy.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/login-strategies/webauthn-login.strategy.ts":
/*!******************************************************************************!*\
  !*** ../../libs/auth/src/common/login-strategies/webauthn-login.strategy.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   WebAuthnLoginStrategy: () => (/* binding */ WebAuthnLoginStrategy),\n/* harmony export */   WebAuthnLoginStrategyData: () => (/* binding */ WebAuthnLoginStrategyData)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_webauthn_login_token_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/webauthn-login-token.request */ \"../../libs/common/src/auth/models/request/identity-token/webauthn-login-token.request.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _models_domain_login_credentials__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/domain/login-credentials */ \"../../libs/auth/src/common/models/domain/login-credentials.ts\");\n/* harmony import */ var _login_strategy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login.strategy */ \"../../libs/auth/src/common/login-strategies/login.strategy.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass WebAuthnLoginStrategyData {\n    static fromJSON(obj) {\n        return Object.assign(new WebAuthnLoginStrategyData(), obj, {\n            tokenRequest: _bitwarden_common_auth_models_request_identity_token_webauthn_login_token_request__WEBPACK_IMPORTED_MODULE_1__.WebAuthnLoginTokenRequest.fromJSON(obj.tokenRequest),\n            credentials: _models_domain_login_credentials__WEBPACK_IMPORTED_MODULE_4__.WebAuthnLoginCredentials.fromJSON(obj.credentials),\n        });\n    }\n}\nclass WebAuthnLoginStrategy extends _login_strategy__WEBPACK_IMPORTED_MODULE_5__.LoginStrategy {\n    constructor(data, ...sharedDeps) {\n        super(...sharedDeps);\n        this.cache = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(data);\n    }\n    logIn(credentials) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = new WebAuthnLoginStrategyData();\n            data.credentials = credentials;\n            data.tokenRequest = new _bitwarden_common_auth_models_request_identity_token_webauthn_login_token_request__WEBPACK_IMPORTED_MODULE_1__.WebAuthnLoginTokenRequest(credentials.token, credentials.deviceResponse, yield this.buildDeviceRequest());\n            this.cache.next(data);\n            const [authResult] = yield this.startLogIn();\n            return authResult;\n        });\n    }\n    logInTwoFactor() {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw new Error(\"2FA not supported yet for WebAuthn Login.\");\n        });\n    }\n    setMasterKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return Promise.resolve();\n        });\n    }\n    setUserKey(idTokenResponse, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const masterKeyEncryptedUserKey = idTokenResponse.key;\n            if (masterKeyEncryptedUserKey) {\n                // set the master key encrypted user key if it exists\n                yield this.keyService.setMasterKeyEncryptedUserKey(masterKeyEncryptedUserKey, userId);\n            }\n            const userDecryptionOptions = idTokenResponse === null || idTokenResponse === void 0 ? void 0 : idTokenResponse.userDecryptionOptions;\n            if (userDecryptionOptions === null || userDecryptionOptions === void 0 ? void 0 : userDecryptionOptions.webAuthnPrfOption) {\n                const webAuthnPrfOption = (_a = idTokenResponse.userDecryptionOptions) === null || _a === void 0 ? void 0 : _a.webAuthnPrfOption;\n                const credentials = this.cache.value.credentials;\n                // confirm we still have the prf key\n                if (!credentials.prfKey) {\n                    return;\n                }\n                // decrypt prf encrypted private key\n                const privateKey = yield this.encryptService.decryptToBytes(webAuthnPrfOption.encryptedPrivateKey, credentials.prfKey);\n                // decrypt user key with private key\n                const userKey = yield this.encryptService.rsaDecrypt(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString(webAuthnPrfOption.encryptedUserKey.encryptedString), privateKey);\n                if (userKey) {\n                    yield this.keyService.setUserKey(new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(userKey), userId);\n                }\n            }\n        });\n    }\n    setPrivateKey(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            yield this.keyService.setPrivateKey((_a = response.privateKey) !== null && _a !== void 0 ? _a : (yield this.createKeyPairForOldAccount(userId)), userId);\n        });\n    }\n    exportCache() {\n        return {\n            webAuthn: this.cache.value,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8852 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/login-strategies/webauthn-login.strategy.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/domain/index.ts":
/*!*********************************************************!*\
  !*** ../../libs/auth/src/common/models/domain/index.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestLoginCredentials: () => (/* reexport safe */ _login_credentials__WEBPACK_IMPORTED_MODULE_1__.AuthRequestLoginCredentials),\n/* harmony export */   KeyConnectorUserDecryptionOption: () => (/* reexport safe */ _user_decryption_options__WEBPACK_IMPORTED_MODULE_2__.KeyConnectorUserDecryptionOption),\n/* harmony export */   PasswordLoginCredentials: () => (/* reexport safe */ _login_credentials__WEBPACK_IMPORTED_MODULE_1__.PasswordLoginCredentials),\n/* harmony export */   RotateableKeySet: () => (/* reexport safe */ _rotateable_key_set__WEBPACK_IMPORTED_MODULE_0__.RotateableKeySet),\n/* harmony export */   SsoLoginCredentials: () => (/* reexport safe */ _login_credentials__WEBPACK_IMPORTED_MODULE_1__.SsoLoginCredentials),\n/* harmony export */   TrustedDeviceUserDecryptionOption: () => (/* reexport safe */ _user_decryption_options__WEBPACK_IMPORTED_MODULE_2__.TrustedDeviceUserDecryptionOption),\n/* harmony export */   UserApiLoginCredentials: () => (/* reexport safe */ _login_credentials__WEBPACK_IMPORTED_MODULE_1__.UserApiLoginCredentials),\n/* harmony export */   UserDecryptionOptions: () => (/* reexport safe */ _user_decryption_options__WEBPACK_IMPORTED_MODULE_2__.UserDecryptionOptions),\n/* harmony export */   WebAuthnLoginCredentials: () => (/* reexport safe */ _login_credentials__WEBPACK_IMPORTED_MODULE_1__.WebAuthnLoginCredentials)\n/* harmony export */ });\n/* harmony import */ var _rotateable_key_set__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rotateable-key-set */ \"../../libs/auth/src/common/models/domain/rotateable-key-set.ts\");\n/* harmony import */ var _login_credentials__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login-credentials */ \"../../libs/auth/src/common/models/domain/login-credentials.ts\");\n/* harmony import */ var _user_decryption_options__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./user-decryption-options */ \"../../libs/auth/src/common/models/domain/user-decryption-options.ts\");\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vbW9kZWxzL2RvbWFpbi9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBcUM7QUFDRDtBQUNNIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vbW9kZWxzL2RvbWFpbi9pbmRleC50cz9lODVlIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3JvdGF0ZWFibGUta2V5LXNldFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbG9naW4tY3JlZGVudGlhbHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/domain/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/domain/login-credentials.ts":
/*!*********************************************************************!*\
  !*** ../../libs/auth/src/common/models/domain/login-credentials.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestLoginCredentials: () => (/* binding */ AuthRequestLoginCredentials),\n/* harmony export */   PasswordLoginCredentials: () => (/* binding */ PasswordLoginCredentials),\n/* harmony export */   SsoLoginCredentials: () => (/* binding */ SsoLoginCredentials),\n/* harmony export */   UserApiLoginCredentials: () => (/* binding */ UserApiLoginCredentials),\n/* harmony export */   WebAuthnLoginCredentials: () => (/* binding */ WebAuthnLoginCredentials)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/auth/enums/authentication-type */ \"../../libs/common/src/auth/enums/authentication-type.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/identity-token/token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _bitwarden_common_auth_services_webauthn_login_request_webauthn_login_assertion_response_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/services/webauthn-login/request/webauthn-login-assertion-response.request */ \"../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-assertion-response.request.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n\n\n\n\nclass PasswordLoginCredentials {\n    constructor(email, masterPassword, captchaToken, twoFactor) {\n        this.email = email;\n        this.masterPassword = masterPassword;\n        this.captchaToken = captchaToken;\n        this.twoFactor = twoFactor;\n        this.type = _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_0__.AuthenticationType.Password;\n    }\n}\nclass SsoLoginCredentials {\n    constructor(code, codeVerifier, redirectUrl, orgId, \n    /**\n     * Optional email address for SSO login.\n     * Used for looking up 2FA token on clients that support remembering 2FA token.\n     */\n    email, twoFactor) {\n        this.code = code;\n        this.codeVerifier = codeVerifier;\n        this.redirectUrl = redirectUrl;\n        this.orgId = orgId;\n        this.email = email;\n        this.twoFactor = twoFactor;\n        this.type = _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_0__.AuthenticationType.Sso;\n    }\n}\nclass UserApiLoginCredentials {\n    constructor(clientId, clientSecret) {\n        this.clientId = clientId;\n        this.clientSecret = clientSecret;\n        this.type = _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_0__.AuthenticationType.UserApiKey;\n    }\n}\nclass AuthRequestLoginCredentials {\n    constructor(email, accessCode, authRequestId, decryptedUserKey, decryptedMasterKey, decryptedMasterKeyHash, twoFactor) {\n        this.email = email;\n        this.accessCode = accessCode;\n        this.authRequestId = authRequestId;\n        this.decryptedUserKey = decryptedUserKey;\n        this.decryptedMasterKey = decryptedMasterKey;\n        this.decryptedMasterKeyHash = decryptedMasterKeyHash;\n        this.twoFactor = twoFactor;\n        this.type = _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_0__.AuthenticationType.AuthRequest;\n    }\n    static fromJSON(json) {\n        return Object.assign(new AuthRequestLoginCredentials(json.email, json.accessCode, json.authRequestId, null, null, json.decryptedMasterKeyHash, json.twoFactor\n            ? new _bitwarden_common_auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_1__.TokenTwoFactorRequest(json.twoFactor.provider, json.twoFactor.token, json.twoFactor.remember)\n            : json.twoFactor), {\n            decryptedUserKey: _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey.fromJSON(json.decryptedUserKey),\n            decryptedMasterKey: _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey.fromJSON(json.decryptedMasterKey),\n        });\n    }\n}\nclass WebAuthnLoginCredentials {\n    constructor(token, deviceResponse, prfKey) {\n        this.token = token;\n        this.deviceResponse = deviceResponse;\n        this.prfKey = prfKey;\n        this.type = _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_0__.AuthenticationType.WebAuthn;\n    }\n    static fromJSON(json) {\n        return new WebAuthnLoginCredentials(json.token, Object.assign(Object.create(_bitwarden_common_auth_services_webauthn_login_request_webauthn_login_assertion_response_request__WEBPACK_IMPORTED_MODULE_2__.WebAuthnLoginAssertionResponseRequest.prototype), json.deviceResponse), _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey.fromJSON(json.prfKey));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7296 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/domain/login-credentials.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/domain/rotateable-key-set.ts":
/*!**********************************************************************!*\
  !*** ../../libs/auth/src/common/models/domain/rotateable-key-set.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RotateableKeySet: () => (/* binding */ RotateableKeySet)\n/* harmony export */ });\n/**\n * A set of keys where a `UserKey` is protected by an encrypted public/private key-pair.\n * The `UserKey` is used to encrypt/decrypt data, while the public/private key-pair is\n * used to rotate the `UserKey`.\n *\n * The `PrivateKey` is protected by an `ExternalKey`, such as a `DeviceKey`, or `PrfKey`,\n * and the `PublicKey` is protected by the `UserKey`. This setup allows:\n *\n *   - Access to `UserKey` by knowing the `ExternalKey`\n *   - Rotation to a `NewUserKey` by knowing the current `UserKey`,\n *     without needing access to the `ExternalKey`\n */\nclass RotateableKeySet {\n    constructor(\n    /** PublicKey encrypted UserKey */\n    encryptedUserKey, \n    /** UserKey encrypted PublicKey */\n    encryptedPublicKey, \n    /** ExternalKey encrypted PrivateKey */\n    encryptedPrivateKey) {\n        this.encryptedUserKey = encryptedUserKey;\n        this.encryptedPublicKey = encryptedPublicKey;\n        this.encryptedPrivateKey = encryptedPrivateKey;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vbW9kZWxzL2RvbWFpbi9yb3RhdGVhYmxlLWtleS1zZXQudHMiLCJtYXBwaW5ncyI6Ijs7OztBQU1BOzs7Ozs7Ozs7OztHQVdHO0FBQ0ksTUFBTSxnQkFBZ0I7SUFHM0I7SUFDRSxrQ0FBa0M7SUFDekIsZ0JBQTJCO0lBRXBDLGtDQUFrQztJQUN6QixrQkFBNkI7SUFFdEMsdUNBQXVDO0lBQzlCLG1CQUErQjtRQU4vQixxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQVc7UUFHM0IsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFXO1FBRzdCLHdCQUFtQixHQUFuQixtQkFBbUIsQ0FBWTtJQUN2QyxDQUFDO0NBQ0wiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2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ZXJuYWxLZXlgXG4gKiAgIC0gUm90YXRpb24gdG8gYSBgTmV3VXNlcktleWAgYnkga25vd2luZyB0aGUgY3VycmVudCBgVXNlcktleWAsXG4gKiAgICAgd2l0aG91dCBuZWVkaW5nIGFjY2VzcyB0byB0aGUgYEV4dGVybmFsS2V5YFxuICovXG5leHBvcnQgY2xhc3MgUm90YXRlYWJsZUtleVNldDxFeHRlcm5hbEtleSBleHRlbmRzIFN5bW1ldHJpY0NyeXB0b0tleSA9IFN5bW1ldHJpY0NyeXB0b0tleT4ge1xuICBwcml2YXRlIHJlYWRvbmx5IFt0YWddOiBFeHRlcm5hbEtleTtcblxuICBjb25zdHJ1Y3RvcihcbiAgICAvKiogUHVibGljS2V5IGVuY3J5cHRlZCBVc2VyS2V5ICovXG4gICAgcmVhZG9ubHkgZW5jcnlwdGVkVXNlcktleTogRW5jU3RyaW5nLFxuXG4gICAgLyoqIFVzZXJLZXkgZW5jcnlwdGVkIFB1YmxpY0tleSAqL1xuICAgIHJlYWRvbmx5IGVuY3J5cHRlZFB1YmxpY0tleTogRW5jU3RyaW5nLFxuXG4gICAgLyoqIEV4dGVybmFsS2V5IGVuY3J5cHRlZCBQcml2YXRlS2V5ICovXG4gICAgcmVhZG9ubHkgZW5jcnlwdGVkUHJpdmF0ZUtleT86IEVuY1N0cmluZyxcbiAgKSB7fVxufVxuXG5leHBvcnQgdHlwZSBQcmZLZXlTZXQgPSBSb3RhdGVhYmxlS2V5U2V0PFByZktleT47XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/domain/rotateable-key-set.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/domain/user-decryption-options.ts":
/*!***************************************************************************!*\
  !*** ../../libs/auth/src/common/models/domain/user-decryption-options.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyConnectorUserDecryptionOption: () => (/* binding */ KeyConnectorUserDecryptionOption),\n/* harmony export */   TrustedDeviceUserDecryptionOption: () => (/* binding */ TrustedDeviceUserDecryptionOption),\n/* harmony export */   UserDecryptionOptions: () => (/* binding */ UserDecryptionOptions)\n/* harmony export */ });\n/**\n * Key Connector decryption options. Intended to be sent to the client for use after authentication.\n * @see {@link UserDecryptionOptions}\n */\nclass KeyConnectorUserDecryptionOption {\n    /**\n     * Initializes a new instance of the KeyConnectorUserDecryptionOption from a response object.\n     * @param response The key connector user decryption option response object.\n     * @returns A new instance of the KeyConnectorUserDecryptionOption or undefined if `response` is nullish.\n     */\n    static fromResponse(response) {\n        var _a;\n        if (response == null) {\n            return undefined;\n        }\n        const options = new KeyConnectorUserDecryptionOption();\n        options.keyConnectorUrl = (_a = response === null || response === void 0 ? void 0 : response.keyConnectorUrl) !== null && _a !== void 0 ? _a : null;\n        return options;\n    }\n    /**\n     * Initializes a new instance of a KeyConnectorUserDecryptionOption from a JSON object.\n     * @param obj JSON object to deserialize.\n     * @returns A new instance of the KeyConnectorUserDecryptionOption or undefined if `obj` is nullish.\n     */\n    static fromJSON(obj) {\n        if (obj == null) {\n            return undefined;\n        }\n        return Object.assign(new KeyConnectorUserDecryptionOption(), obj);\n    }\n}\n/**\n * Trusted device decryption options. Intended to be sent to the client for use after authentication.\n * @see {@link UserDecryptionOptions}\n */\nclass TrustedDeviceUserDecryptionOption {\n    /**\n     * Initializes a new instance of the TrustedDeviceUserDecryptionOption from a response object.\n     * @param response The trusted device user decryption option response object.\n     * @returns A new instance of the TrustedDeviceUserDecryptionOption or undefined if `response` is nullish.\n     */\n    static fromResponse(response) {\n        var _a, _b, _c, _d;\n        if (response == null) {\n            return undefined;\n        }\n        const options = new TrustedDeviceUserDecryptionOption();\n        options.hasAdminApproval = (_a = response === null || response === void 0 ? void 0 : response.hasAdminApproval) !== null && _a !== void 0 ? _a : false;\n        options.hasLoginApprovingDevice = (_b = response === null || response === void 0 ? void 0 : response.hasLoginApprovingDevice) !== null && _b !== void 0 ? _b : false;\n        options.hasManageResetPasswordPermission = (_c = response === null || response === void 0 ? void 0 : response.hasManageResetPasswordPermission) !== null && _c !== void 0 ? _c : false;\n        options.isTdeOffboarding = (_d = response === null || response === void 0 ? void 0 : response.isTdeOffboarding) !== null && _d !== void 0 ? _d : false;\n        return options;\n    }\n    /**\n     * Initializes a new instance of the TrustedDeviceUserDecryptionOption from a JSON object.\n     * @param obj JSON object to deserialize.\n     * @returns A new instance of the TrustedDeviceUserDecryptionOption or undefined if `obj` is nullish.\n     */\n    static fromJSON(obj) {\n        if (obj == null) {\n            return undefined;\n        }\n        return Object.assign(new TrustedDeviceUserDecryptionOption(), obj);\n    }\n}\n/**\n * Represents the decryption options the user has configured on the server. This is intended to be sent\n * to the client on authentication, and can be used to determine how to decrypt the user's vault.\n */\nclass UserDecryptionOptions {\n    /**\n     * Initializes a new instance of the UserDecryptionOptions from a response object.\n     * @param response user decryption options response object\n     * @returns A new instance of the UserDecryptionOptions.\n     * @throws If the response is nullish, this method will throw an error. User decryption options\n     * are required for client initialization.\n     */\n    // TODO: Change response type to `UserDecryptionOptionsResponse` after 2023.10 release (https://bitwarden.atlassian.net/browse/PM-3537)\n    static fromResponse(response) {\n        if (response == null) {\n            throw new Error(\"User Decryption Options are required for client initialization.\");\n        }\n        const decryptionOptions = new UserDecryptionOptions();\n        if (response.userDecryptionOptions) {\n            // If the response has userDecryptionOptions, this means it's on a post-TDE server version and can interrogate\n            // the new decryption options.\n            const responseOptions = response.userDecryptionOptions;\n            decryptionOptions.hasMasterPassword = responseOptions.hasMasterPassword;\n            decryptionOptions.trustedDeviceOption = TrustedDeviceUserDecryptionOption.fromResponse(responseOptions.trustedDeviceOption);\n            decryptionOptions.keyConnectorOption = KeyConnectorUserDecryptionOption.fromResponse(responseOptions.keyConnectorOption);\n        }\n        else {\n            // If the response does not have userDecryptionOptions, this means it's on a pre-TDE server version and so\n            // we must base our decryption options on the presence of the keyConnectorUrl.\n            // Note that the presence of keyConnectorUrl implies that the user does not have a master password, as in pre-TDE\n            // server versions, a master password short-circuited the addition of the keyConnectorUrl to the response.\n            // TODO: remove this check after 2023.10 release (https://bitwarden.atlassian.net/browse/PM-3537)\n            const usingKeyConnector = response.keyConnectorUrl != null;\n            decryptionOptions.hasMasterPassword = !usingKeyConnector;\n            if (usingKeyConnector) {\n                decryptionOptions.keyConnectorOption = new KeyConnectorUserDecryptionOption();\n                decryptionOptions.keyConnectorOption.keyConnectorUrl = response.keyConnectorUrl;\n            }\n        }\n        return decryptionOptions;\n    }\n    /**\n     * Initializes a new instance of the UserDecryptionOptions from a JSON object.\n     * @param obj JSON object to deserialize.\n     * @returns A new instance of the UserDecryptionOptions. Will initialize even if the JSON object is nullish.\n     */\n    static fromJSON(obj) {\n        const decryptionOptions = Object.assign(new UserDecryptionOptions(), obj);\n        decryptionOptions.trustedDeviceOption = TrustedDeviceUserDecryptionOption.fromJSON(obj === null || obj === void 0 ? void 0 : obj.trustedDeviceOption);\n        decryptionOptions.keyConnectorOption = KeyConnectorUserDecryptionOption.fromJSON(obj === null || obj === void 0 ? void 0 : obj.keyConnectorOption);\n        return decryptionOptions;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 14112 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/domain/user-decryption-options.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/index.ts":
/*!**************************************************!*\
  !*** ../../libs/auth/src/common/models/index.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestLoginCredentials: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.AuthRequestLoginCredentials),\n/* harmony export */   FakeKeyConnectorUserDecryptionOption: () => (/* reexport safe */ _spec__WEBPACK_IMPORTED_MODULE_1__.FakeKeyConnectorUserDecryptionOption),\n/* harmony export */   FakeTrustedDeviceUserDecryptionOption: () => (/* reexport safe */ _spec__WEBPACK_IMPORTED_MODULE_1__.FakeTrustedDeviceUserDecryptionOption),\n/* harmony export */   FakeUserDecryptionOptions: () => (/* reexport safe */ _spec__WEBPACK_IMPORTED_MODULE_1__.FakeUserDecryptionOptions),\n/* harmony export */   KeyConnectorUserDecryptionOption: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.KeyConnectorUserDecryptionOption),\n/* harmony export */   PasswordLoginCredentials: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.PasswordLoginCredentials),\n/* harmony export */   RotateableKeySet: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.RotateableKeySet),\n/* harmony export */   SsoLoginCredentials: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.SsoLoginCredentials),\n/* harmony export */   TrustedDeviceUserDecryptionOption: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.TrustedDeviceUserDecryptionOption),\n/* harmony export */   UserApiLoginCredentials: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.UserApiLoginCredentials),\n/* harmony export */   UserDecryptionOptions: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.UserDecryptionOptions),\n/* harmony export */   WebAuthnLoginCredentials: () => (/* reexport safe */ _domain__WEBPACK_IMPORTED_MODULE_0__.WebAuthnLoginCredentials)\n/* harmony export */ });\n/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./domain */ \"../../libs/auth/src/common/models/domain/index.ts\");\n/* harmony import */ var _spec__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./spec */ \"../../libs/auth/src/common/models/spec/index.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vbW9kZWxzL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQXlCO0FBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2F1dGgvc3JjL2NvbW1vbi9tb2RlbHMvaW5kZXgudHM/YjJjNCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9kb21haW5cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NwZWNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/spec/fake-user-decryption-options.ts":
/*!******************************************************************************!*\
  !*** ../../libs/auth/src/common/models/spec/fake-user-decryption-options.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FakeKeyConnectorUserDecryptionOption: () => (/* binding */ FakeKeyConnectorUserDecryptionOption),\n/* harmony export */   FakeTrustedDeviceUserDecryptionOption: () => (/* binding */ FakeTrustedDeviceUserDecryptionOption),\n/* harmony export */   FakeUserDecryptionOptions: () => (/* binding */ FakeUserDecryptionOptions)\n/* harmony export */ });\n/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../domain */ \"../../libs/auth/src/common/models/domain/index.ts\");\n\n// To discourage creating new user decryption options, we don't expose a constructor.\n// These helpers are for testing purposes only.\n/** Testing helper for creating new instances of `UserDecryptionOptions` */\nclass FakeUserDecryptionOptions extends _domain__WEBPACK_IMPORTED_MODULE_0__.UserDecryptionOptions {\n    constructor(init) {\n        super();\n        Object.assign(this, init);\n    }\n}\n/** Testing helper for creating new instances of `KeyConnectorUserDecryptionOption` */\nclass FakeKeyConnectorUserDecryptionOption extends _domain__WEBPACK_IMPORTED_MODULE_0__.KeyConnectorUserDecryptionOption {\n    constructor(keyConnectorUrl) {\n        super();\n        this.keyConnectorUrl = keyConnectorUrl;\n    }\n}\n/** Testing helper for creating new instances of `TrustedDeviceUserDecryptionOption` */\nclass FakeTrustedDeviceUserDecryptionOption extends _domain__WEBPACK_IMPORTED_MODULE_0__.TrustedDeviceUserDecryptionOption {\n    constructor(hasAdminApproval, hasLoginApprovingDevice, hasManageResetPasswordPermission, isTdeOffboarding) {\n        super();\n        this.hasAdminApproval = hasAdminApproval;\n        this.hasLoginApprovingDevice = hasLoginApprovingDevice;\n        this.hasManageResetPasswordPermission = hasManageResetPasswordPermission;\n        this.isTdeOffboarding = isTdeOffboarding;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vbW9kZWxzL3NwZWMvZmFrZS11c2VyLWRlY3J5cHRpb24tb3B0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSW1CO0FBRW5CLHFGQUFxRjtBQUNyRiwrQ0FBK0M7QUFFL0MsMkVBQTJFO0FBQ3BFLE1BQU0seUJBQTBCLFNBQVEsMERBQXFCO0lBQ2xFLFlBQVksSUFBb0M7UUFDOUMsS0FBSyxFQUFFLENBQUM7UUFDUixNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztJQUM1QixDQUFDO0NBQ0Y7QUFFRCxzRkFBc0Y7QUFDL0UsTUFBTSxvQ0FBcUMsU0FBUSxxRUFBZ0M7SUFDeEYsWUFBWSxlQUF1QjtRQUNqQyxLQUFLLEVBQUUsQ0FBQztRQUNSLElBQUksQ0FBQyxl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3JkUGVybWlzc2lvbjogYm9vbGVhbixcbiAgICBpc1RkZU9mZmJvYXJkaW5nOiBib29sZWFuLFxuICApIHtcbiAgICBzdXBlcigpO1xuICAgIHRoaXMuaGFzQWRtaW5BcHByb3ZhbCA9IGhhc0FkbWluQXBwcm92YWw7XG4gICAgdGhpcy5oYXNMb2dpbkFwcHJvdmluZ0RldmljZSA9IGhhc0xvZ2luQXBwcm92aW5nRGV2aWNlO1xuICAgIHRoaXMuaGFzTWFuYWdlUmVzZXRQYXNzd29yZFBlcm1pc3Npb24gPSBoYXNNYW5hZ2VSZXNldFBhc3N3b3JkUGVybWlzc2lvbjtcbiAgICB0aGlzLmlzVGRlT2ZmYm9hcmRpbmcgPSBpc1RkZU9mZmJvYXJkaW5nO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/spec/fake-user-decryption-options.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/models/spec/index.ts":
/*!*******************************************************!*\
  !*** ../../libs/auth/src/common/models/spec/index.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FakeKeyConnectorUserDecryptionOption: () => (/* reexport safe */ _fake_user_decryption_options__WEBPACK_IMPORTED_MODULE_0__.FakeKeyConnectorUserDecryptionOption),\n/* harmony export */   FakeTrustedDeviceUserDecryptionOption: () => (/* reexport safe */ _fake_user_decryption_options__WEBPACK_IMPORTED_MODULE_0__.FakeTrustedDeviceUserDecryptionOption),\n/* harmony export */   FakeUserDecryptionOptions: () => (/* reexport safe */ _fake_user_decryption_options__WEBPACK_IMPORTED_MODULE_0__.FakeUserDecryptionOptions)\n/* harmony export */ });\n/* harmony import */ var _fake_user_decryption_options__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fake-user-decryption-options */ \"../../libs/auth/src/common/models/spec/fake-user-decryption-options.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vbW9kZWxzL3NwZWMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUErQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYXV0aC9zcmMvY29tbW9uL21vZGVscy9zcGVjL2luZGV4LnRzPzUyNjUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZmFrZS11c2VyLWRlY3J5cHRpb24tb3B0aW9uc1wiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/models/spec/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/accounts/lock.service.ts":
/*!********************************************************************!*\
  !*** ../../libs/auth/src/common/services/accounts/lock.service.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultLockService: () => (/* binding */ DefaultLockService),\n/* harmony export */   LockService: () => (/* binding */ LockService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass LockService {\n}\nclass DefaultLockService {\n    constructor(accountService, vaultTimeoutService) {\n        this.accountService = accountService;\n        this.vaultTimeoutService = vaultTimeoutService;\n    }\n    lockAll() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([this.accountService.activeAccount$, this.accountService.accounts$]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([activeAccount, accounts]) => {\n                const otherAccounts = Object.keys(accounts);\n                if (activeAccount == null) {\n                    return { activeAccount: null, otherAccounts: otherAccounts };\n                }\n                return {\n                    activeAccount: activeAccount.id,\n                    otherAccounts: otherAccounts.filter((accountId) => accountId !== activeAccount.id),\n                };\n            })));\n            for (const otherAccount of accounts.otherAccounts) {\n                yield this.vaultTimeoutService.lock(otherAccount);\n            }\n            // Do the active account last in case we ever try to route the user on lock\n            // that way this whole operation will be complete before that routing\n            // could take place.\n            if (accounts.activeAccount != null) {\n                yield this.vaultTimeoutService.lock(accounts.activeAccount);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vc2VydmljZXMvYWNjb3VudHMvbG9jay5zZXJ2aWNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBMEQ7QUFNbkQsTUFBZSxXQUFXO0NBS2hDO0FBRU0sTUFBTSxrQkFBa0I7SUFDN0IsWUFDbUIsY0FBOEIsRUFDOUIsbUJBQXdDO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cnZpY2U6IEFjY291bnRTZXJ2aWNlLFxuICAgIHByaXZhdGUgcmVhZG9ubHkgdmF1bHRUaW1lb3V0U2VydmljZTogVmF1bHRUaW1lb3V0U2VydmljZSxcbiAgKSB7fVxuXG4gIGFzeW5jIGxvY2tBbGwoKSB7XG4gICAgY29uc3QgYWNjb3VudHMgPSBhd2FpdCBmaXJzdFZhbHVlRnJvbShcbiAgICAgIGNvbWJpbmVMYXRlc3QoW3RoaXMuYWNjb3VudFNlcnZpY2UuYWN0aXZlQWNjb3VudCQsIHRoaXMuYWNjb3VudFNlcnZpY2UuYWNjb3VudHMkXSkucGlwZShcbiAgICAgICAgbWFwKChbYWN0aXZlQWNjb3VudCwgYWNjb3VudHNdKSA9PiB7XG4gICAgICAgICAgY29uc3Qgb3RoZXJBY2NvdW50cyA9IE9iamVjdC5rZXlzKGFjY291bnRzKSBhcyBVc2VySWRbXTtcblxuICAgICAgICAgIGlmIChhY3RpdmVBY2NvdW50ID09IG51bGwpIHtcbiAgICAgICAgICAgIHJldHVybiB7IGFjdGl2ZUFjY291bnQ6IG51bGwsIG90aGVyQWNjb3VudHM6IG90aGVyQWNjb3VudHMgfTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgYWN0aXZlQWNjb3VudDogYWN0aXZlQWNjb3VudC5pZCxcbiAgICAgICAgICAgIG90aGVyQWNjb3VudHM6IG90aGVyQWNjb3VudHMuZmlsdGVyKChhY2NvdW50SWQpID0+IGFjY291bnRJZCAhPT0gYWN0aXZlQWNjb3VudC5pZCksXG4gICAgICAgICAgfTtcbiAgICAgICAgfSksXG4gICAgICApLFxuICAgICk7XG5cbiAgICBmb3IgKGNvbnN0IG90aGVyQWNjb3VudCBvZiBhY2NvdW50cy5vdGhlckFjY291bnRzKSB7XG4gICAgICBhd2FpdCB0aGlzLnZhdWx0VGltZW91dFNlcnZpY2UubG9jayhvdGhlckFjY291bnQpO1xuICAgIH1cblxuICAgIC8vIERvIHRoZSBhY3RpdmUgYWNjb3VudCBsYXN0IGluIGNhc2Ugd2UgZXZlciB0cnkgdG8gcm91dGUgdGhlIHVzZXIgb24gbG9ja1xuICAgIC8vIHRoYXQgd2F5IHRoaXMgd2hvbGUgb3BlcmF0aW9uIHdpbGwgYmUgY29tcGxldGUgYmVmb3JlIHRoYXQgcm91dGluZ1xuICAgIC8vIGNvdWxkIHRha2UgcGxhY2UuXG4gICAgaWYgKGFjY291bnRzLmFjdGl2ZUFjY291bnQgIT0gbnVsbCkge1xuICAgICAgYXdhaXQgdGhpcy52YXVsdFRpbWVvdXRTZXJ2aWNlLmxvY2soYWNjb3VudHMuYWN0aXZlQWNjb3VudCk7XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/accounts/lock.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/auth-request/auth-request.service.ts":
/*!********************************************************************************!*\
  !*** ../../libs/auth/src/common/services/auth-request/auth-request.service.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ADMIN_AUTH_REQUEST_KEY: () => (/* binding */ ADMIN_AUTH_REQUEST_KEY),\n/* harmony export */   AuthRequestService: () => (/* binding */ AuthRequestService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_models_domain_admin_auth_req_storable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/admin-auth-req-storable */ \"../../libs/common/src/auth/models/domain/admin-auth-req-storable.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_request_passwordless_auth_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/models/request/passwordless-auth.request */ \"../../libs/common/src/auth/models/request/passwordless-auth.request.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n/**\n * Disk-local to maintain consistency between tabs. We don't want to\n * clear this on logout since admin auth requests are long-lived.\n */\nconst ADMIN_AUTH_REQUEST_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_6__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_6__.AUTH_REQUEST_DISK_LOCAL, \"adminAuthRequest\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\nclass AuthRequestService {\n    constructor(appIdService, accountService, masterPasswordService, keyService, encryptService, apiService, stateProvider) {\n        this.appIdService = appIdService;\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.apiService = apiService;\n        this.stateProvider = stateProvider;\n        this.authRequestPushNotificationSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();\n        this.authRequestPushNotification$ = this.authRequestPushNotificationSubject.asObservable();\n    }\n    getAdminAuthRequest(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                throw new Error(\"User ID is required\");\n            }\n            const authRequestSerialized = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUser(userId, ADMIN_AUTH_REQUEST_KEY).state$);\n            const adminAuthRequestStorable = _bitwarden_common_auth_models_domain_admin_auth_req_storable__WEBPACK_IMPORTED_MODULE_1__.AdminAuthRequestStorable.fromJSON(authRequestSerialized);\n            return adminAuthRequestStorable;\n        });\n    }\n    setAdminAuthRequest(authRequest, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                throw new Error(\"User ID is required\");\n            }\n            if (authRequest == null) {\n                throw new Error(\"Auth request is required\");\n            }\n            yield this.stateProvider.setUserState(ADMIN_AUTH_REQUEST_KEY, authRequest.toJSON(), userId);\n        });\n    }\n    clearAdminAuthRequest(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                throw new Error(\"User ID is required\");\n            }\n            yield this.stateProvider.setUserState(ADMIN_AUTH_REQUEST_KEY, null, userId);\n        });\n    }\n    approveOrDenyAuthRequest(approve, authRequest) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!authRequest.id) {\n                throw new Error(\"Auth request has no id\");\n            }\n            if (!authRequest.publicKey) {\n                throw new Error(\"Auth request has no public key\");\n            }\n            const pubKey = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromB64ToArray(authRequest.publicKey);\n            const userId = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$)).id;\n            const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            const masterKeyHash = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKeyHash$(userId));\n            let encryptedMasterKeyHash;\n            let keyToEncrypt;\n            if (masterKey && masterKeyHash) {\n                // Only encrypt the master password hash if masterKey exists as\n                // we won't have a masterKeyHash without a masterKey\n                encryptedMasterKeyHash = yield this.encryptService.rsaEncrypt(_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromUtf8ToArray(masterKeyHash), pubKey);\n                keyToEncrypt = masterKey.encKey;\n            }\n            else {\n                const userKey = yield this.keyService.getUserKey();\n                keyToEncrypt = userKey.key;\n            }\n            const encryptedKey = yield this.encryptService.rsaEncrypt(keyToEncrypt, pubKey);\n            const response = new _bitwarden_common_auth_models_request_passwordless_auth_request__WEBPACK_IMPORTED_MODULE_2__.PasswordlessAuthRequest(encryptedKey.encryptedString, encryptedMasterKeyHash === null || encryptedMasterKeyHash === void 0 ? void 0 : encryptedMasterKeyHash.encryptedString, yield this.appIdService.getAppId(), approve);\n            return yield this.apiService.putAuthRequest(authRequest.id, response);\n        });\n    }\n    setUserKeyAfterDecryptingSharedUserKey(authReqResponse, authReqPrivateKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userKey = yield this.decryptPubKeyEncryptedUserKey(authReqResponse.key, authReqPrivateKey);\n            yield this.keyService.setUserKey(userKey, userId);\n        });\n    }\n    setKeysAfterDecryptingSharedMasterKeyAndHash(authReqResponse, authReqPrivateKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const { masterKey, masterKeyHash } = yield this.decryptPubKeyEncryptedMasterKeyAndHash(authReqResponse.key, authReqResponse.masterPasswordHash, authReqPrivateKey);\n            // Decrypt and set user key in state\n            const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId);\n            // Set masterKey + masterKeyHash in state after decryption (in case decryption fails)\n            yield this.masterPasswordService.setMasterKey(masterKey, userId);\n            yield this.masterPasswordService.setMasterKeyHash(masterKeyHash, userId);\n            yield this.keyService.setUserKey(userKey, userId);\n        });\n    }\n    // Decryption helpers\n    decryptPubKeyEncryptedUserKey(pubKeyEncryptedUserKey, privateKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decryptedUserKeyBytes = yield this.encryptService.rsaDecrypt(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_4__.EncString(pubKeyEncryptedUserKey), privateKey);\n            return new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__.SymmetricCryptoKey(decryptedUserKeyBytes);\n        });\n    }\n    decryptPubKeyEncryptedMasterKeyAndHash(pubKeyEncryptedMasterKey, pubKeyEncryptedMasterKeyHash, privateKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decryptedMasterKeyArrayBuffer = yield this.encryptService.rsaDecrypt(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_4__.EncString(pubKeyEncryptedMasterKey), privateKey);\n            const decryptedMasterKeyHashArrayBuffer = yield this.encryptService.rsaDecrypt(new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_4__.EncString(pubKeyEncryptedMasterKeyHash), privateKey);\n            const masterKey = new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__.SymmetricCryptoKey(decryptedMasterKeyArrayBuffer);\n            const masterKeyHash = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromBufferToUtf8(decryptedMasterKeyHashArrayBuffer);\n            return {\n                masterKey,\n                masterKeyHash,\n            };\n        });\n    }\n    sendAuthRequestPushNotification(notification) {\n        if (notification.id != null) {\n            this.authRequestPushNotificationSubject.next(notification.id);\n        }\n    }\n    getFingerprintPhrase(email, publicKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.keyService.getFingerprint(email.toLowerCase(), publicKey)).join(\"-\");\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 17144 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/auth-request/auth-request.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/index.ts":
/*!****************************************************!*\
  !*** ../../libs/auth/src/common/services/index.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ADMIN_AUTH_REQUEST_KEY: () => (/* reexport safe */ _auth_request_auth_request_service__WEBPACK_IMPORTED_MODULE_4__.ADMIN_AUTH_REQUEST_KEY),\n/* harmony export */   AuthRequestService: () => (/* reexport safe */ _auth_request_auth_request_service__WEBPACK_IMPORTED_MODULE_4__.AuthRequestService),\n/* harmony export */   DefaultLockService: () => (/* reexport safe */ _accounts_lock_service__WEBPACK_IMPORTED_MODULE_6__.DefaultLockService),\n/* harmony export */   LOGIN_EMAIL: () => (/* reexport safe */ _login_email_login_email_service__WEBPACK_IMPORTED_MODULE_1__.LOGIN_EMAIL),\n/* harmony export */   LockService: () => (/* reexport safe */ _accounts_lock_service__WEBPACK_IMPORTED_MODULE_6__.LockService),\n/* harmony export */   LoginEmailService: () => (/* reexport safe */ _login_email_login_email_service__WEBPACK_IMPORTED_MODULE_1__.LoginEmailService),\n/* harmony export */   LoginStrategyService: () => (/* reexport safe */ _login_strategies_login_strategy_service__WEBPACK_IMPORTED_MODULE_2__.LoginStrategyService),\n/* harmony export */   OLD_PIN_KEY_ENCRYPTED_MASTER_KEY: () => (/* reexport safe */ _pin_pin_service_implementation__WEBPACK_IMPORTED_MODULE_0__.OLD_PIN_KEY_ENCRYPTED_MASTER_KEY),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL: () => (/* reexport safe */ _pin_pin_service_implementation__WEBPACK_IMPORTED_MODULE_0__.PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT: () => (/* reexport safe */ _pin_pin_service_implementation__WEBPACK_IMPORTED_MODULE_0__.PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT),\n/* harmony export */   PinService: () => (/* reexport safe */ _pin_pin_service_implementation__WEBPACK_IMPORTED_MODULE_0__.PinService),\n/* harmony export */   RegisterRouteService: () => (/* reexport safe */ _register_route_service__WEBPACK_IMPORTED_MODULE_5__.RegisterRouteService),\n/* harmony export */   STORED_EMAIL: () => (/* reexport safe */ _login_email_login_email_service__WEBPACK_IMPORTED_MODULE_1__.STORED_EMAIL),\n/* harmony export */   USER_DECRYPTION_OPTIONS: () => (/* reexport safe */ _user_decryption_options_user_decryption_options_service__WEBPACK_IMPORTED_MODULE_3__.USER_DECRYPTION_OPTIONS),\n/* harmony export */   USER_KEY_ENCRYPTED_PIN: () => (/* reexport safe */ _pin_pin_service_implementation__WEBPACK_IMPORTED_MODULE_0__.USER_KEY_ENCRYPTED_PIN),\n/* harmony export */   UserDecryptionOptionsService: () => (/* reexport safe */ _user_decryption_options_user_decryption_options_service__WEBPACK_IMPORTED_MODULE_3__.UserDecryptionOptionsService)\n/* harmony export */ });\n/* harmony import */ var _pin_pin_service_implementation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pin/pin.service.implementation */ \"../../libs/auth/src/common/services/pin/pin.service.implementation.ts\");\n/* harmony import */ var _login_email_login_email_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login-email/login-email.service */ \"../../libs/auth/src/common/services/login-email/login-email.service.ts\");\n/* harmony import */ var _login_strategies_login_strategy_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./login-strategies/login-strategy.service */ \"../../libs/auth/src/common/services/login-strategies/login-strategy.service.ts\");\n/* harmony import */ var _user_decryption_options_user_decryption_options_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./user-decryption-options/user-decryption-options.service */ \"../../libs/auth/src/common/services/user-decryption-options/user-decryption-options.service.ts\");\n/* harmony import */ var _auth_request_auth_request_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth-request/auth-request.service */ \"../../libs/auth/src/common/services/auth-request/auth-request.service.ts\");\n/* harmony import */ var _register_route_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./register-route.service */ \"../../libs/auth/src/common/services/register-route.service.ts\");\n/* harmony import */ var _accounts_lock_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./accounts/lock.service */ \"../../libs/auth/src/common/services/accounts/lock.service.ts\");\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vc2VydmljZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBaUQ7QUFDQztBQUNRO0FBQ2dCO0FBQ3RCO0FBQ1g7QUFDRCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvYXV0aC9zcmMvY29tbW9uL3NlcnZpY2VzL2luZGV4LnRzP2ZiNTYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vcGluL3Bpbi5zZXJ2aWNlLmltcGxlbWVudGF0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9sb2dpbi1lbWFpbC9sb2dpbi1lbWFpbC5zZXJ2aWNlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9sb2dpbi1zdHJhdGVnaWVzL2xvZ2luLXN0cmF0ZWd5LnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zLnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2F1dGgtcmVxdWVzdC9hdXRoLXJlcXVlc3Quc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcmVnaXN0ZXItcm91dGUuc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vYWNjb3VudHMvbG9jay5zZXJ2aWNlXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/login-email/login-email.service.ts":
/*!******************************************************************************!*\
  !*** ../../libs/auth/src/common/services/login-email/login-email.service.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LOGIN_EMAIL: () => (/* binding */ LOGIN_EMAIL),\n/* harmony export */   LoginEmailService: () => (/* binding */ LoginEmailService),\n/* harmony export */   STORED_EMAIL: () => (/* binding */ STORED_EMAIL)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _common_src_platform_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../common/src/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nconst LOGIN_EMAIL = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_2__.KeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_2__.LOGIN_EMAIL_MEMORY, \"loginEmail\", {\n    deserializer: (value) => value,\n});\nconst STORED_EMAIL = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_2__.KeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_2__.LOGIN_EMAIL_DISK, \"storedEmail\", {\n    deserializer: (value) => value,\n});\nclass LoginEmailService {\n    constructor(accountService, authService, stateProvider) {\n        this.accountService = accountService;\n        this.authService = authService;\n        this.stateProvider = stateProvider;\n        this.loginEmailState = this.stateProvider.getGlobal(LOGIN_EMAIL);\n        this.storedEmailState = this.stateProvider.getGlobal(STORED_EMAIL);\n        // In order to determine if an account is being added, we check if any account is not logged out\n        this.addingAccount$ = this.authService.authStatuses$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((statuses) => __awaiter(this, void 0, void 0, function* () {\n            // We don't want to consider the active account since it may have just changed auth status to logged in\n            // which would make this observable think an account is being added\n            const activeUser = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            if (activeUser) {\n                delete statuses[activeUser.id];\n            }\n            return Object.values(statuses).some((status) => status !== _bitwarden_common_auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.LoggedOut);\n        })));\n        this.loginEmail$ = this.loginEmailState.state$;\n        this.storedEmail$ = this.storedEmailState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((storedEmail) => __awaiter(this, void 0, void 0, function* () {\n            // When adding an account, we don't show the stored email\n            if (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.addingAccount$)) {\n                return null;\n            }\n            return storedEmail;\n        })));\n    }\n    setLoginEmail(email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.loginEmailState.update((_) => email);\n        });\n    }\n    getRememberEmail() {\n        return this.rememberEmail;\n    }\n    setRememberEmail(value) {\n        this.rememberEmail = value !== null && value !== void 0 ? value : false;\n    }\n    // Note: only clear values on successful login or you are sure they are not needed.\n    // Browser uses these values to maintain the email between login and 2fa components so\n    // we do not want to clear them too early.\n    clearValues() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setLoginEmail(null);\n            this.rememberEmail = false;\n        });\n    }\n    saveEmailSettings() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const addingAccount = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.addingAccount$);\n            const email = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginEmail$);\n            yield this.storedEmailState.update((storedEmail) => {\n                // If we're adding an account, only overwrite the stored email when rememberEmail is true\n                if (addingAccount) {\n                    if (this.rememberEmail) {\n                        return email;\n                    }\n                    return storedEmail;\n                }\n                // Saving with rememberEmail set to false will clear the stored email\n                if (this.rememberEmail) {\n                    return email;\n                }\n                return null;\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8500 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/login-email/login-email.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/login-strategies/login-strategy.service.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/auth/src/common/services/login-strategies/login-strategy.service.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginStrategyService: () => (/* binding */ LoginStrategyService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/auth/enums/authentication-type */ \"../../libs/common/src/auth/enums/authentication-type.ts\");\n/* harmony import */ var _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\n/* harmony import */ var _bitwarden_common_models_request_prelogin_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/models/request/prelogin.request */ \"../../libs/common/src/models/request/prelogin.request.ts\");\n/* harmony import */ var _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/platform/enums/kdf-type.enum */ \"../../libs/common/src/platform/enums/kdf-type.enum.ts\");\n/* harmony import */ var _bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/platform/scheduling */ \"../../libs/common/src/platform/scheduling/index.ts\");\n/* harmony import */ var _login_strategies_auth_request_login_strategy__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../login-strategies/auth-request-login.strategy */ \"../../libs/auth/src/common/login-strategies/auth-request-login.strategy.ts\");\n/* harmony import */ var _login_strategies_password_login_strategy__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../login-strategies/password-login.strategy */ \"../../libs/auth/src/common/login-strategies/password-login.strategy.ts\");\n/* harmony import */ var _login_strategies_sso_login_strategy__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../login-strategies/sso-login.strategy */ \"../../libs/auth/src/common/login-strategies/sso-login.strategy.ts\");\n/* harmony import */ var _login_strategies_user_api_login_strategy__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../login-strategies/user-api-login.strategy */ \"../../libs/auth/src/common/login-strategies/user-api-login.strategy.ts\");\n/* harmony import */ var _login_strategies_webauthn_login_strategy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../login-strategies/webauthn-login.strategy */ \"../../libs/auth/src/common/login-strategies/webauthn-login.strategy.ts\");\n/* harmony import */ var _login_strategy_state__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./login-strategy.state */ \"../../libs/auth/src/common/services/login-strategies/login-strategy.state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst sessionTimeoutLength = 2 * 60 * 1000; // 2 minutes\nclass LoginStrategyService {\n    constructor(accountService, masterPasswordService, keyService, apiService, tokenService, appIdService, platformUtilsService, messagingService, logService, keyConnectorService, environmentService, stateService, twoFactorService, i18nService, encryptService, passwordStrengthService, policyService, deviceTrustService, authRequestService, userDecryptionOptionsService, stateProvider, billingAccountProfileStateService, vaultTimeoutSettingsService, kdfConfigService, taskSchedulerService) {\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.keyService = keyService;\n        this.apiService = apiService;\n        this.tokenService = tokenService;\n        this.appIdService = appIdService;\n        this.platformUtilsService = platformUtilsService;\n        this.messagingService = messagingService;\n        this.logService = logService;\n        this.keyConnectorService = keyConnectorService;\n        this.environmentService = environmentService;\n        this.stateService = stateService;\n        this.twoFactorService = twoFactorService;\n        this.i18nService = i18nService;\n        this.encryptService = encryptService;\n        this.passwordStrengthService = passwordStrengthService;\n        this.policyService = policyService;\n        this.deviceTrustService = deviceTrustService;\n        this.authRequestService = authRequestService;\n        this.userDecryptionOptionsService = userDecryptionOptionsService;\n        this.stateProvider = stateProvider;\n        this.billingAccountProfileStateService = billingAccountProfileStateService;\n        this.vaultTimeoutSettingsService = vaultTimeoutSettingsService;\n        this.kdfConfigService = kdfConfigService;\n        this.taskSchedulerService = taskSchedulerService;\n        this.currentAuthnTypeState = this.stateProvider.get(_login_strategy_state__WEBPACK_IMPORTED_MODULE_12__.CURRENT_LOGIN_STRATEGY_KEY);\n        this.loginStrategyCacheState = this.stateProvider.get(_login_strategy_state__WEBPACK_IMPORTED_MODULE_12__.CACHE_KEY);\n        this.loginStrategyCacheExpirationState = this.stateProvider.get(_login_strategy_state__WEBPACK_IMPORTED_MODULE_12__.CACHE_EXPIRATION_KEY);\n        this.authRequestPushNotificationState = this.stateProvider.get(_login_strategy_state__WEBPACK_IMPORTED_MODULE_12__.AUTH_REQUEST_PUSH_NOTIFICATION_KEY);\n        this.taskSchedulerService.registerTaskHandler(_bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_6__.ScheduledTaskNames.loginStrategySessionTimeout, () => this.clearCache());\n        this.currentAuthType$ = this.currentAuthnTypeState.state$;\n        this.loginStrategy$ = this.currentAuthnTypeState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatestWith)(this.loginStrategyCacheState.state$), this.initializeLoginStrategy.bind(this), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n    }\n    getEmail() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            if (\"email$\" in strategy) {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(strategy.email$);\n            }\n            return null;\n        });\n    }\n    getMasterPasswordHash() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            if (\"serverMasterKeyHash$\" in strategy) {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(strategy.serverMasterKeyHash$);\n            }\n            return null;\n        });\n    }\n    getSsoEmail2FaSessionToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            if (\"ssoEmail2FaSessionToken$\" in strategy) {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(strategy.ssoEmail2FaSessionToken$);\n            }\n            return null;\n        });\n    }\n    getAccessCode() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            if (\"accessCode$\" in strategy) {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(strategy.accessCode$);\n            }\n            return null;\n        });\n    }\n    getAuthRequestId() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            if (\"authRequestId$\" in strategy) {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(strategy.authRequestId$);\n            }\n            return null;\n        });\n    }\n    logIn(credentials) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.clearCache();\n            yield this.currentAuthnTypeState.update((_) => credentials.type);\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            // Note: We aren't passing the credentials directly to the strategy since they are\n            // created in the popup and can cause DeadObject references on Firefox.\n            // This is a shallow copy, but use deep copy in future if objects are added to credentials\n            // that were created in popup.\n            // If the popup uses its own instance of this service, this can be removed.\n            const ownedCredentials = Object.assign({}, credentials);\n            const result = yield strategy.logIn(ownedCredentials);\n            if (result != null && !result.requiresTwoFactor) {\n                yield this.clearCache();\n            }\n            else {\n                // Cache the strategy data so we can attempt again later with 2fa. Cache supports different contexts\n                yield this.loginStrategyCacheState.update((_) => strategy.exportCache());\n                yield this.startSessionTimeout();\n            }\n            return result;\n        });\n    }\n    logInTwoFactor(twoFactor, captchaResponse) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!(yield this.isSessionValid())) {\n                throw new Error(this.i18nService.t(\"sessionTimeout\"));\n            }\n            const strategy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategy$);\n            if (strategy == null) {\n                throw new Error(\"No login strategy found.\");\n            }\n            try {\n                const result = yield strategy.logInTwoFactor(twoFactor, captchaResponse);\n                // Only clear cache if 2FA token has been accepted, otherwise we need to be able to try again\n                if (result != null && !result.requiresTwoFactor && !result.requiresCaptcha) {\n                    yield this.clearCache();\n                }\n                return result;\n            }\n            catch (e) {\n                // API exceptions are okay, but if there are any unhandled client-side errors then clear cache to be safe\n                if (!(e instanceof _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_4__.ErrorResponse)) {\n                    yield this.clearCache();\n                }\n                throw e;\n            }\n        });\n    }\n    makePreloginKey(masterPassword, email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            email = email.trim().toLowerCase();\n            let kdfConfig = null;\n            try {\n                const preloginResponse = yield this.apiService.postPrelogin(new _bitwarden_common_models_request_prelogin_request__WEBPACK_IMPORTED_MODULE_3__.PreloginRequest(email));\n                if (preloginResponse != null) {\n                    kdfConfig =\n                        preloginResponse.kdf === _bitwarden_common_platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_5__.KdfType.PBKDF2_SHA256\n                            ? new _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_2__.PBKDF2KdfConfig(preloginResponse.kdfIterations)\n                            : new _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_2__.Argon2KdfConfig(preloginResponse.kdfIterations, preloginResponse.kdfMemory, preloginResponse.kdfParallelism);\n                }\n            }\n            catch (e) {\n                if (e == null || e.statusCode !== 404) {\n                    throw e;\n                }\n            }\n            kdfConfig.validateKdfConfigForPrelogin();\n            return yield this.keyService.makeMasterKey(masterPassword, email, kdfConfig);\n        });\n    }\n    clearCache() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.currentAuthnTypeState.update((_) => null);\n            yield this.loginStrategyCacheState.update((_) => null);\n            yield this.clearSessionTimeout();\n        });\n    }\n    startSessionTimeout() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.clearSessionTimeout();\n            // This Login Strategy Cache Expiration State value set here is used to clear the cache on re-init\n            // of the application in the case where the timeout is terminated due to a closure of the application\n            // window. The browser extension popup in particular is susceptible to this concern, as the user\n            // is almost always likely to close the popup window before the session timeout is reached.\n            yield this.loginStrategyCacheExpirationState.update((_) => new Date(Date.now() + sessionTimeoutLength));\n            this.sessionTimeoutSubscription = this.taskSchedulerService.setTimeout(_bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_6__.ScheduledTaskNames.loginStrategySessionTimeout, sessionTimeoutLength);\n        });\n    }\n    clearSessionTimeout() {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            yield this.loginStrategyCacheExpirationState.update((_) => null);\n            (_a = this.sessionTimeoutSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n        });\n    }\n    isSessionValid() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cache = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategyCacheState.state$);\n            if (cache == null) {\n                return false;\n            }\n            // If the Login Strategy Cache Expiration State value is less than the current\n            // datetime stamp, then the cache is invalid and should be cleared.\n            const expiration = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.loginStrategyCacheExpirationState.state$);\n            if (expiration != null && expiration < new Date()) {\n                yield this.clearCache();\n                return false;\n            }\n            return true;\n        });\n    }\n    initializeLoginStrategy(source) {\n        const sharedDeps = [\n            this.accountService,\n            this.masterPasswordService,\n            this.keyService,\n            this.encryptService,\n            this.apiService,\n            this.tokenService,\n            this.appIdService,\n            this.platformUtilsService,\n            this.messagingService,\n            this.logService,\n            this.stateService,\n            this.twoFactorService,\n            this.userDecryptionOptionsService,\n            this.billingAccountProfileStateService,\n            this.vaultTimeoutSettingsService,\n            this.kdfConfigService,\n        ];\n        return source.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([strategy, data]) => {\n            if (strategy == null) {\n                return null;\n            }\n            switch (strategy) {\n                case _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_1__.AuthenticationType.Password:\n                    return new _login_strategies_password_login_strategy__WEBPACK_IMPORTED_MODULE_8__.PasswordLoginStrategy(data === null || data === void 0 ? void 0 : data.password, this.passwordStrengthService, this.policyService, this, ...sharedDeps);\n                case _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_1__.AuthenticationType.Sso:\n                    return new _login_strategies_sso_login_strategy__WEBPACK_IMPORTED_MODULE_9__.SsoLoginStrategy(data === null || data === void 0 ? void 0 : data.sso, this.keyConnectorService, this.deviceTrustService, this.authRequestService, this.i18nService, ...sharedDeps);\n                case _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_1__.AuthenticationType.UserApiKey:\n                    return new _login_strategies_user_api_login_strategy__WEBPACK_IMPORTED_MODULE_10__.UserApiLoginStrategy(data === null || data === void 0 ? void 0 : data.userApiKey, this.environmentService, this.keyConnectorService, ...sharedDeps);\n                case _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_1__.AuthenticationType.AuthRequest:\n                    return new _login_strategies_auth_request_login_strategy__WEBPACK_IMPORTED_MODULE_7__.AuthRequestLoginStrategy(data === null || data === void 0 ? void 0 : data.authRequest, this.deviceTrustService, ...sharedDeps);\n                case _bitwarden_common_auth_enums_authentication_type__WEBPACK_IMPORTED_MODULE_1__.AuthenticationType.WebAuthn:\n                    return new _login_strategies_webauthn_login_strategy__WEBPACK_IMPORTED_MODULE_11__.WebAuthnLoginStrategy(data === null || data === void 0 ? void 0 : data.webAuthn, ...sharedDeps);\n            }\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 31728 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/login-strategies/login-strategy.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/login-strategies/login-strategy.state.ts":
/*!************************************************************************************!*\
  !*** ../../libs/auth/src/common/services/login-strategies/login-strategy.state.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AUTH_REQUEST_PUSH_NOTIFICATION_KEY: () => (/* binding */ AUTH_REQUEST_PUSH_NOTIFICATION_KEY),\n/* harmony export */   CACHE_EXPIRATION_KEY: () => (/* binding */ CACHE_EXPIRATION_KEY),\n/* harmony export */   CACHE_KEY: () => (/* binding */ CACHE_KEY),\n/* harmony export */   CURRENT_LOGIN_STRATEGY_KEY: () => (/* binding */ CURRENT_LOGIN_STRATEGY_KEY)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _login_strategies_auth_request_login_strategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../login-strategies/auth-request-login.strategy */ \"../../libs/auth/src/common/login-strategies/auth-request-login.strategy.ts\");\n/* harmony import */ var _login_strategies_password_login_strategy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../login-strategies/password-login.strategy */ \"../../libs/auth/src/common/login-strategies/password-login.strategy.ts\");\n/* harmony import */ var _login_strategies_sso_login_strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../login-strategies/sso-login.strategy */ \"../../libs/auth/src/common/login-strategies/sso-login.strategy.ts\");\n/* harmony import */ var _login_strategies_user_api_login_strategy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../login-strategies/user-api-login.strategy */ \"../../libs/auth/src/common/login-strategies/user-api-login.strategy.ts\");\n/* harmony import */ var _login_strategies_webauthn_login_strategy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../login-strategies/webauthn-login.strategy */ \"../../libs/auth/src/common/login-strategies/webauthn-login.strategy.ts\");\n\n\n\n\n\n\n/**\n * The current login strategy in use.\n */\nconst CURRENT_LOGIN_STRATEGY_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.LOGIN_STRATEGY_MEMORY, \"currentLoginStrategy\", {\n    deserializer: (data) => data,\n});\n/**\n * The expiration date for the login strategy cache.\n * Used as a backup to the timer set on the service.\n */\nconst CACHE_EXPIRATION_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.LOGIN_STRATEGY_MEMORY, \"loginStrategyCacheExpiration\", {\n    deserializer: (data) => (data ? null : new Date(data)),\n});\n/**\n * Auth Request notification for all instances of the login strategy service.\n * Note: this isn't an ideal approach, but allows both a background and\n * foreground instance to send out the notification.\n * TODO: Move to Auth Request service.\n */\nconst AUTH_REQUEST_PUSH_NOTIFICATION_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.LOGIN_STRATEGY_MEMORY, \"authRequestPushNotification\", {\n    deserializer: (data) => data,\n});\n/**\n * A cache for login strategies to use for data persistence through\n * the login process.\n */\nconst CACHE_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.LOGIN_STRATEGY_MEMORY, \"loginStrategyCache\", {\n    deserializer: (data) => {\n        if (data == null) {\n            return null;\n        }\n        return {\n            password: data.password ? _login_strategies_password_login_strategy__WEBPACK_IMPORTED_MODULE_2__.PasswordLoginStrategyData.fromJSON(data.password) : undefined,\n            sso: data.sso ? _login_strategies_sso_login_strategy__WEBPACK_IMPORTED_MODULE_3__.SsoLoginStrategyData.fromJSON(data.sso) : undefined,\n            userApiKey: data.userApiKey\n                ? _login_strategies_user_api_login_strategy__WEBPACK_IMPORTED_MODULE_4__.UserApiLoginStrategyData.fromJSON(data.userApiKey)\n                : undefined,\n            authRequest: data.authRequest\n                ? _login_strategies_auth_request_login_strategy__WEBPACK_IMPORTED_MODULE_1__.AuthRequestLoginStrategyData.fromJSON(data.authRequest)\n                : undefined,\n            webAuthn: data.webAuthn ? _login_strategies_webauthn_login_strategy__WEBPACK_IMPORTED_MODULE_5__.WebAuthnLoginStrategyData.fromJSON(data.webAuthn) : undefined,\n        };\n    },\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5852 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/login-strategies/login-strategy.state.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/pin/pin.service.implementation.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/auth/src/common/services/pin/pin.service.implementation.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OLD_PIN_KEY_ENCRYPTED_MASTER_KEY: () => (/* binding */ OLD_PIN_KEY_ENCRYPTED_MASTER_KEY),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL: () => (/* binding */ PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT: () => (/* binding */ PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT),\n/* harmony export */   PinService: () => (/* binding */ PinService),\n/* harmony export */   USER_KEY_ENCRYPTED_PIN: () => (/* binding */ USER_KEY_ENCRYPTED_PIN)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n/**\n * The persistent (stored on disk) version of the UserKey, encrypted by the PinKey.\n *\n * @remarks Persists through a client reset. Used when `requireMasterPasswordOnClientRestart` is disabled.\n * @see SetPinComponent.setPinForm.requireMasterPasswordOnClientRestart\n */\nconst PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.PIN_DISK, \"pinKeyEncryptedUserKeyPersistent\", {\n    deserializer: (jsonValue) => jsonValue,\n    clearOn: [\"logout\"],\n});\n/**\n * The ephemeral (stored in memory) version of the UserKey, encrypted by the PinKey.\n *\n * @remarks Does NOT persist through a client reset. Used when `requireMasterPasswordOnClientRestart` is enabled.\n * @see SetPinComponent.setPinForm.requireMasterPasswordOnClientRestart\n */\nconst PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.PIN_MEMORY, \"pinKeyEncryptedUserKeyEphemeral\", {\n    deserializer: (jsonValue) => jsonValue,\n    clearOn: [\"logout\"],\n});\n/**\n * The PIN, encrypted by the UserKey.\n */\nconst USER_KEY_ENCRYPTED_PIN = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.PIN_DISK, \"userKeyEncryptedPin\", {\n    deserializer: (jsonValue) => jsonValue,\n    clearOn: [\"logout\"],\n});\n/**\n * The old MasterKey, encrypted by the PinKey (formerly called `pinProtected`).\n * Deprecated and used for migration purposes only.\n */\nconst OLD_PIN_KEY_ENCRYPTED_MASTER_KEY = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_3__.PIN_DISK, \"oldPinKeyEncryptedMasterKey\", {\n    deserializer: (jsonValue) => jsonValue,\n    clearOn: [\"logout\"],\n});\nclass PinService {\n    constructor(accountService, cryptoFunctionService, encryptService, kdfConfigService, keyGenerationService, logService, masterPasswordService, stateProvider, stateService) {\n        this.accountService = accountService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.encryptService = encryptService;\n        this.kdfConfigService = kdfConfigService;\n        this.keyGenerationService = keyGenerationService;\n        this.logService = logService;\n        this.masterPasswordService = masterPasswordService;\n        this.stateProvider = stateProvider;\n        this.stateService = stateService;\n    }\n    getPinKeyEncryptedUserKeyPersistent(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot get pinKeyEncryptedUserKeyPersistent.\");\n            return _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT, userId)));\n        });\n    }\n    /**\n     * Sets the persistent (stored on disk) version of the UserKey, encrypted by the PinKey.\n     */\n    setPinKeyEncryptedUserKeyPersistent(pinKeyEncryptedUserKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot set pinKeyEncryptedUserKeyPersistent.\");\n            if (pinKeyEncryptedUserKey == null) {\n                throw new Error(\"No pinKeyEncryptedUserKey provided. Cannot set pinKeyEncryptedUserKeyPersistent.\");\n            }\n            yield this.stateProvider.setUserState(PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT, pinKeyEncryptedUserKey === null || pinKeyEncryptedUserKey === void 0 ? void 0 : pinKeyEncryptedUserKey.encryptedString, userId);\n        });\n    }\n    clearPinKeyEncryptedUserKeyPersistent(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot clear pinKeyEncryptedUserKeyPersistent.\");\n            yield this.stateProvider.setUserState(PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT, null, userId);\n        });\n    }\n    getPinKeyEncryptedUserKeyEphemeral(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot get pinKeyEncryptedUserKeyEphemeral.\");\n            return _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL, userId)));\n        });\n    }\n    /**\n     * Sets the ephemeral (stored in memory) version of the UserKey, encrypted by the PinKey.\n     */\n    setPinKeyEncryptedUserKeyEphemeral(pinKeyEncryptedUserKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot set pinKeyEncryptedUserKeyEphemeral.\");\n            if (pinKeyEncryptedUserKey == null) {\n                throw new Error(\"No pinKeyEncryptedUserKey provided. Cannot set pinKeyEncryptedUserKeyEphemeral.\");\n            }\n            yield this.stateProvider.setUserState(PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL, pinKeyEncryptedUserKey === null || pinKeyEncryptedUserKey === void 0 ? void 0 : pinKeyEncryptedUserKey.encryptedString, userId);\n        });\n    }\n    clearPinKeyEncryptedUserKeyEphemeral(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot clear pinKeyEncryptedUserKeyEphemeral.\");\n            yield this.stateProvider.setUserState(PIN_KEY_ENCRYPTED_USER_KEY_EPHEMERAL, null, userId);\n        });\n    }\n    createPinKeyEncryptedUserKey(pin, userKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot create pinKeyEncryptedUserKey.\");\n            if (!userKey) {\n                throw new Error(\"No UserKey provided. Cannot create pinKeyEncryptedUserKey.\");\n            }\n            const email = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.accounts$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((accounts) => accounts[userId].email)));\n            const kdfConfig = yield this.kdfConfigService.getKdfConfig();\n            const pinKey = yield this.makePinKey(pin, email, kdfConfig);\n            return yield this.encryptService.encrypt(userKey.key, pinKey);\n        });\n    }\n    storePinKeyEncryptedUserKey(pinKeyEncryptedUserKey, storeAsEphemeral, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot store pinKeyEncryptedUserKey.\");\n            if (storeAsEphemeral) {\n                yield this.setPinKeyEncryptedUserKeyEphemeral(pinKeyEncryptedUserKey, userId);\n            }\n            else {\n                yield this.setPinKeyEncryptedUserKeyPersistent(pinKeyEncryptedUserKey, userId);\n            }\n        });\n    }\n    getUserKeyEncryptedPin(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot get userKeyEncryptedPin.\");\n            return _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(USER_KEY_ENCRYPTED_PIN, userId)));\n        });\n    }\n    setUserKeyEncryptedPin(userKeyEncryptedPin, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot set userKeyEncryptedPin.\");\n            yield this.stateProvider.setUserState(USER_KEY_ENCRYPTED_PIN, userKeyEncryptedPin === null || userKeyEncryptedPin === void 0 ? void 0 : userKeyEncryptedPin.encryptedString, userId);\n        });\n    }\n    clearUserKeyEncryptedPin(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot clear userKeyEncryptedPin.\");\n            yield this.stateProvider.setUserState(USER_KEY_ENCRYPTED_PIN, null, userId);\n        });\n    }\n    createUserKeyEncryptedPin(pin, userKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userKey) {\n                throw new Error(\"No UserKey provided. Cannot create userKeyEncryptedPin.\");\n            }\n            return yield this.encryptService.encrypt(pin, userKey);\n        });\n    }\n    getOldPinKeyEncryptedMasterKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot get oldPinKeyEncryptedMasterKey.\");\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(OLD_PIN_KEY_ENCRYPTED_MASTER_KEY, userId));\n        });\n    }\n    clearOldPinKeyEncryptedMasterKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot clear oldPinKeyEncryptedMasterKey.\");\n            yield this.stateProvider.setUserState(OLD_PIN_KEY_ENCRYPTED_MASTER_KEY, null, userId);\n        });\n    }\n    makePinKey(pin, salt, kdfConfig) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const pinKey = yield this.keyGenerationService.deriveKeyFromPassword(pin, salt, kdfConfig);\n            return (yield this.keyGenerationService.stretchKey(pinKey));\n        });\n    }\n    getPinLockType(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot get PinLockType.\");\n            /**\n             * We can't check the `userKeyEncryptedPin` (formerly called `protectedPin`) for both because old\n             * accounts only used it for MP on Restart\n             */\n            const aUserKeyEncryptedPinIsSet = !!(yield this.getUserKeyEncryptedPin(userId));\n            const aPinKeyEncryptedUserKeyPersistentIsSet = !!(yield this.getPinKeyEncryptedUserKeyPersistent(userId));\n            const anOldPinKeyEncryptedMasterKeyIsSet = !!(yield this.getOldPinKeyEncryptedMasterKey(userId));\n            if (aPinKeyEncryptedUserKeyPersistentIsSet || anOldPinKeyEncryptedMasterKeyIsSet) {\n                return \"PERSISTENT\";\n            }\n            else if (aUserKeyEncryptedPinIsSet &&\n                !aPinKeyEncryptedUserKeyPersistentIsSet &&\n                !anOldPinKeyEncryptedMasterKeyIsSet) {\n                return \"EPHEMERAL\";\n            }\n            else {\n                return \"DISABLED\";\n            }\n        });\n    }\n    isPinSet(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot determine if PIN is set.\");\n            return (yield this.getPinLockType(userId)) !== \"DISABLED\";\n        });\n    }\n    isPinDecryptionAvailable(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot determine if decryption of user key via PIN is available.\");\n            const pinLockType = yield this.getPinLockType(userId);\n            switch (pinLockType) {\n                case \"DISABLED\":\n                    return false;\n                case \"PERSISTENT\":\n                    // The above getPinLockType call ensures that we have either a PinKeyEncryptedUserKey or OldPinKeyEncryptedMasterKey set.\n                    return true;\n                case \"EPHEMERAL\": {\n                    // The above getPinLockType call ensures that we have a UserKeyEncryptedPin set.\n                    // However, we must additively check to ensure that we have a set PinKeyEncryptedUserKeyEphemeral b/c otherwise\n                    // we cannot take a PIN, derive a PIN key, and decrypt the ephemeral UserKey.\n                    const pinKeyEncryptedUserKeyEphemeral = yield this.getPinKeyEncryptedUserKeyEphemeral(userId);\n                    return Boolean(pinKeyEncryptedUserKeyEphemeral);\n                }\n                default: {\n                    // Compile-time check for exhaustive switch\n                    const _exhaustiveCheck = pinLockType;\n                    throw new Error(`Unexpected pinLockType: ${_exhaustiveCheck}`);\n                }\n            }\n        });\n    }\n    decryptUserKeyWithPin(pin, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot decrypt user key with PIN.\");\n            try {\n                const pinLockType = yield this.getPinLockType(userId);\n                const requireMasterPasswordOnClientRestart = pinLockType === \"EPHEMERAL\";\n                const { pinKeyEncryptedUserKey, oldPinKeyEncryptedMasterKey } = yield this.getPinKeyEncryptedKeys(pinLockType, userId);\n                const email = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.accounts$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((accounts) => accounts[userId].email)));\n                const kdfConfig = yield this.kdfConfigService.getKdfConfig();\n                let userKey;\n                if (oldPinKeyEncryptedMasterKey) {\n                    userKey = yield this.decryptAndMigrateOldPinKeyEncryptedMasterKey(userId, pin, email, kdfConfig, requireMasterPasswordOnClientRestart, oldPinKeyEncryptedMasterKey);\n                }\n                else {\n                    userKey = yield this.decryptUserKey(userId, pin, email, kdfConfig, pinKeyEncryptedUserKey);\n                }\n                if (!userKey) {\n                    this.logService.warning(`User key null after pin key decryption.`);\n                    return null;\n                }\n                if (!(yield this.validatePin(userKey, pin, userId))) {\n                    this.logService.warning(`Pin key decryption successful but pin validation failed.`);\n                    return null;\n                }\n                return userKey;\n            }\n            catch (error) {\n                this.logService.error(`Error decrypting user key with pin: ${error}`);\n                return null;\n            }\n        });\n    }\n    /**\n     * Decrypts the UserKey with the provided PIN.\n     */\n    decryptUserKey(userId, pin, salt, kdfConfig, pinKeyEncryptedUserKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot decrypt user key.\");\n            pinKeyEncryptedUserKey || (pinKeyEncryptedUserKey = yield this.getPinKeyEncryptedUserKeyPersistent(userId));\n            pinKeyEncryptedUserKey || (pinKeyEncryptedUserKey = yield this.getPinKeyEncryptedUserKeyEphemeral(userId));\n            if (!pinKeyEncryptedUserKey) {\n                throw new Error(\"No pinKeyEncryptedUserKey found.\");\n            }\n            const pinKey = yield this.makePinKey(pin, salt, kdfConfig);\n            const userKey = yield this.encryptService.decryptToBytes(pinKeyEncryptedUserKey, pinKey);\n            return new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_2__.SymmetricCryptoKey(userKey);\n        });\n    }\n    /**\n     * Creates a new `pinKeyEncryptedUserKey` and clears the `oldPinKeyEncryptedMasterKey`.\n     * @returns UserKey\n     */\n    decryptAndMigrateOldPinKeyEncryptedMasterKey(userId, pin, email, kdfConfig, requireMasterPasswordOnClientRestart, oldPinKeyEncryptedMasterKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot decrypt and migrate oldPinKeyEncryptedMasterKey.\");\n            const masterKey = yield this.decryptMasterKeyWithPin(userId, pin, email, kdfConfig, oldPinKeyEncryptedMasterKey);\n            const encUserKey = yield this.stateService.getEncryptedCryptoSymmetricKey({ userId: userId });\n            const userKey = yield this.masterPasswordService.decryptUserKeyWithMasterKey(masterKey, userId, encUserKey ? new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(encUserKey) : undefined);\n            const pinKeyEncryptedUserKey = yield this.createPinKeyEncryptedUserKey(pin, userKey, userId);\n            yield this.storePinKeyEncryptedUserKey(pinKeyEncryptedUserKey, requireMasterPasswordOnClientRestart, userId);\n            const userKeyEncryptedPin = yield this.createUserKeyEncryptedPin(pin, userKey);\n            yield this.setUserKeyEncryptedPin(userKeyEncryptedPin, userId);\n            yield this.clearOldPinKeyEncryptedMasterKey(userId);\n            return userKey;\n        });\n    }\n    // Only for migration purposes\n    decryptMasterKeyWithPin(userId, pin, salt, kdfConfig, oldPinKeyEncryptedMasterKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot decrypt master key with PIN.\");\n            if (!oldPinKeyEncryptedMasterKey) {\n                const oldPinKeyEncryptedMasterKeyString = yield this.getOldPinKeyEncryptedMasterKey(userId);\n                if (oldPinKeyEncryptedMasterKeyString == null) {\n                    throw new Error(\"No oldPinKeyEncrytedMasterKey found.\");\n                }\n                oldPinKeyEncryptedMasterKey = new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(oldPinKeyEncryptedMasterKeyString);\n            }\n            const pinKey = yield this.makePinKey(pin, salt, kdfConfig);\n            const masterKey = yield this.encryptService.decryptToBytes(oldPinKeyEncryptedMasterKey, pinKey);\n            return new _bitwarden_common_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_2__.SymmetricCryptoKey(masterKey);\n        });\n    }\n    /**\n     * Gets the user's `pinKeyEncryptedUserKey` (persistent or ephemeral) and `oldPinKeyEncryptedMasterKey`\n     * (if one exists) based on the user's PinLockType.\n     *\n     * @remarks The `oldPinKeyEncryptedMasterKey` (formerly `pinProtected`) is only used for migration and\n     *          will be null for all migrated accounts.\n     * @throws If PinLockType is 'DISABLED' or if userId is not provided\n     */\n    getPinKeyEncryptedKeys(pinLockType, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot get PinKey encrypted keys.\");\n            switch (pinLockType) {\n                case \"PERSISTENT\": {\n                    const pinKeyEncryptedUserKey = yield this.getPinKeyEncryptedUserKeyPersistent(userId);\n                    const oldPinKeyEncryptedMasterKey = yield this.getOldPinKeyEncryptedMasterKey(userId);\n                    return {\n                        pinKeyEncryptedUserKey,\n                        oldPinKeyEncryptedMasterKey: oldPinKeyEncryptedMasterKey\n                            ? new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(oldPinKeyEncryptedMasterKey)\n                            : undefined,\n                    };\n                }\n                case \"EPHEMERAL\": {\n                    const pinKeyEncryptedUserKey = yield this.getPinKeyEncryptedUserKeyEphemeral(userId);\n                    return {\n                        pinKeyEncryptedUserKey,\n                        oldPinKeyEncryptedMasterKey: undefined, // Going forward, we only migrate non-ephemeral version\n                    };\n                }\n                case \"DISABLED\":\n                    throw new Error(\"Pin is disabled\");\n                default: {\n                    // Compile-time check for exhaustive switch\n                    const _exhaustiveCheck = pinLockType;\n                    return _exhaustiveCheck;\n                }\n            }\n        });\n    }\n    validatePin(userKey, pin, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateUserId(userId, \"Cannot validate PIN.\");\n            const userKeyEncryptedPin = yield this.getUserKeyEncryptedPin(userId);\n            const decryptedPin = yield this.encryptService.decryptToUtf8(userKeyEncryptedPin, userKey);\n            const isPinValid = this.cryptoFunctionService.compareFast(decryptedPin, pin);\n            return isPinValid;\n        });\n    }\n    /**\n     * Throws a custom error message if user ID is not provided.\n     */\n    validateUserId(userId, errorMessage = \"\") {\n        if (!userId) {\n            throw new Error(`User ID is required. ${errorMessage}`);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 40532 characters]\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/pin/pin.service.implementation.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/register-route.service.ts":
/*!*********************************************************************!*\
  !*** ../../libs/auth/src/common/services/register-route.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RegisterRouteService: () => (/* binding */ RegisterRouteService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/enums/feature-flag.enum */ \"../../libs/common/src/enums/feature-flag.enum.ts\");\n\n\n// This is a temporary service to determine the correct route to use for registration based on the email verification feature flag.\nclass RegisterRouteService {\n    constructor(configService) {\n        this.configService = configService;\n    }\n    registerRoute$() {\n        return this.configService.getFeatureFlag$(_bitwarden_common_enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_1__.FeatureFlag.EmailVerification).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((emailVerificationEnabled) => {\n            if (emailVerificationEnabled) {\n                return \"/signup\";\n            }\n            else {\n                return \"/register\";\n            }\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vc2VydmljZXMvcmVnaXN0ZXItcm91dGUuc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQXVDO0FBRWlDO0FBR3hFLG1JQUFtSTtBQUM1SCxNQUFNLG9CQUFvQjtJQUMvQixZQUFvQixhQUE0QjtRQUE1QixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtJQUFHLENBQUM7SUFFcEQsY0FBYztRQUNaLE9BQU8sSUFBSSxDQUFDLGFBQWEsQ0FBQyxlQUFlLENBQUMsa0ZBQVcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLElBQUksQ0FDM0UseUNBQUcsQ0FBQyxDQUFDLHdC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oaXMuY29uZmlnU2VydmljZS5nZXRGZWF0dXJlRmxhZyQoRmVhdHVyZUZsYWcuRW1haWxWZXJpZmljYXRpb24pLnBpcGUoXG4gICAgICBtYXAoKGVtYWlsVmVyaWZpY2F0aW9uRW5hYmxlZCkgPT4ge1xuICAgICAgICBpZiAoZW1haWxWZXJpZmljYXRpb25FbmFibGVkKSB7XG4gICAgICAgICAgcmV0dXJuIFwiL3NpZ251cFwiO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHJldHVybiBcIi9yZWdpc3RlclwiO1xuICAgICAgICB9XG4gICAgICB9KSxcbiAgICApO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/register-route.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/services/user-decryption-options/user-decryption-options.service.ts":
/*!******************************************************************************************************!*\
  !*** ../../libs/auth/src/common/services/user-decryption-options/user-decryption-options.service.ts ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   USER_DECRYPTION_OPTIONS: () => (/* binding */ USER_DECRYPTION_OPTIONS),\n/* harmony export */   UserDecryptionOptionsService: () => (/* binding */ UserDecryptionOptionsService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models */ \"../../libs/auth/src/common/models/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nconst USER_DECRYPTION_OPTIONS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_1__.USER_DECRYPTION_OPTIONS_DISK, \"decryptionOptions\", {\n    deserializer: (decryptionOptions) => _models__WEBPACK_IMPORTED_MODULE_2__.UserDecryptionOptions.fromJSON(decryptionOptions),\n    clearOn: [\"logout\"],\n});\nclass UserDecryptionOptionsService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n        this.userDecryptionOptionsState = this.stateProvider.getActive(USER_DECRYPTION_OPTIONS);\n        this.userDecryptionOptions$ = this.userDecryptionOptionsState.state$;\n        this.hasMasterPassword$ = this.userDecryptionOptions$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((options) => { var _a; return (_a = options === null || options === void 0 ? void 0 : options.hasMasterPassword) !== null && _a !== void 0 ? _a : false; }));\n    }\n    userDecryptionOptionsById$(userId) {\n        return this.stateProvider.getUser(userId, USER_DECRYPTION_OPTIONS).state$;\n    }\n    setUserDecryptionOptions(userDecryptionOptions) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.userDecryptionOptionsState.update((_) => userDecryptionOptions);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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b3JkJCA9IHRoaXMudXNlckRlY3J5cHRpb25PcHRpb25zJC5waXBlKFxuICAgICAgbWFwKChvcHRpb25zKSA9PiBvcHRpb25zPy5oYXNNYXN0ZXJQYXNzd29yZCA/PyBmYWxzZSksXG4gICAgKTtcbiAgfVxuXG4gIHVzZXJEZWNyeXB0aW9uT3B0aW9uc0J5SWQkKHVzZXJJZDogVXNlcklkKTogT2JzZXJ2YWJsZTxVc2VyRGVjcnlwdGlvbk9wdGlvbnM+IHtcbiAgICByZXR1cm4gdGhpcy5zdGF0ZVByb3ZpZGVyLmdldFVzZXIodXNlcklkLCBVU0VSX0RFQ1JZUFRJT05fT1BUSU9OUykuc3RhdGUkO1xuICB9XG5cbiAgYXN5bmMgc2V0VXNlckRlY3J5cHRpb25PcHRpb25zKHVzZXJEZWNyeXB0aW9uT3B0aW9uczogVXNlckRlY3J5cHRpb25PcHRpb25zKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgYXdhaXQgdGhpcy51c2VyRGVjcnlwdGlvbk9wdGlvbnNTdGF0ZS51cGRhdGUoKF8pID0+IHVzZXJEZWNyeXB0aW9uT3B0aW9ucyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/services/user-decryption-options/user-decryption-options.service.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/types/index.ts":
/*!*************************************************!*\
  !*** ../../libs/auth/src/common/types/index.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _logout_reason_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logout-reason.type */ \"../../libs/auth/src/common/types/logout-reason.type.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vdHlwZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7QUFBcUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2F1dGgvc3JjL2NvbW1vbi90eXBlcy9pbmRleC50cz85MzIxIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2xvZ291dC1yZWFzb24udHlwZVwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/types/index.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/types/logout-reason.type.ts":
/*!**************************************************************!*\
  !*** ../../libs/auth/src/common/types/logout-reason.type.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/auth/src/common/utilities/decode-jwt-token-to-json.utility.ts":
/*!********************************************************************************!*\
  !*** ../../libs/auth/src/common/utilities/decode-jwt-token-to-json.utility.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   decodeJwtTokenToJson: () => (/* binding */ decodeJwtTokenToJson)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\nfunction decodeJwtTokenToJson(jwtToken) {\n    if (jwtToken == null) {\n        throw new Error(\"JWT token not found\");\n    }\n    const parts = jwtToken.split(\".\");\n    if (parts.length !== 3) {\n        throw new Error(\"JWT must have 3 parts\");\n    }\n    // JWT has 3 parts: header, payload, signature separated by '.'\n    // So, grab the payload to decode\n    const encodedPayload = parts[1];\n    let decodedPayloadJSON;\n    try {\n        // Attempt to decode from URL-safe Base64 to UTF-8\n        decodedPayloadJSON = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromUrlB64ToUtf8(encodedPayload);\n    }\n    catch (decodingError) {\n        throw new Error(\"Cannot decode the token\");\n    }\n    try {\n        // Attempt to parse the JSON payload\n        const decodedToken = JSON.parse(decodedPayloadJSON);\n        return decodedToken;\n    }\n    catch (jsonError) {\n        throw new Error(\"Cannot parse the token's payload into JSON\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vdXRpbGl0aWVzL2RlY29kZS1qd3QtdG9rZW4tdG8tanNvbi51dGlsaXR5LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQThEO0FBRXZELFNBQVMsb0JBQW9CLENBQUMsUUFBZ0I7SUFDbkQsSUFBSSxRQUFRLElBQUksSUFBSSxFQUFFLENBQUM7UUFDckIsTUFBTSxJQUFJLEtBQUssQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDO0lBQ3pDLENBQUM7SUFFRCxNQUFNLEtBQUssR0FBRyxRQUFRLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQ2xDLElBQUksS0FBSyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUUsQ0FBQztRQUN2QixNQUFNLElBQUksS0FBSyxDQUFDLHVCQUF1QixDQUFDLENBQUM7SUFDM0MsQ0FBQztJQUVELCtEQUErRDtJQUMvRCxpQ0FBaUM7SUFDakMsTUFBTSxjQUFjLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBRWhDLElBQUksa0JBQTBCLENBQUM7SUFDL0IsSUFBSSxDQUFDO1FBQ0gsa0RBQWtEO1FBQ2xELGtCQUFrQixHQUFHLHdFQUFLLENBQUMsZ0JBQWdC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MgMyBwYXJ0czogaGVhZGVyLCBwYXlsb2FkLCBzaWduYXR1cmUgc2VwYXJhdGVkIGJ5ICcuJ1xuICAvLyBTbywgZ3JhYiB0aGUgcGF5bG9hZCB0byBkZWNvZGVcbiAgY29uc3QgZW5jb2RlZFBheWxvYWQgPSBwYXJ0c1sxXTtcblxuICBsZXQgZGVjb2RlZFBheWxvYWRKU09OOiBzdHJpbmc7XG4gIHRyeSB7XG4gICAgLy8gQXR0ZW1wdCB0byBkZWNvZGUgZnJvbSBVUkwtc2FmZSBCYXNlNjQgdG8gVVRGLThcbiAgICBkZWNvZGVkUGF5bG9hZEpTT04gPSBVdGlscy5mcm9tVXJsQjY0VG9VdGY4KGVuY29kZWRQYXlsb2FkKTtcbiAgfSBjYXRjaCAoZGVjb2RpbmdFcnJvcikge1xuICAgIHRocm93IG5ldyBFcnJvcihcIkNhbm5vdCBkZWNvZGUgdGhlIHRva2VuXCIpO1xuICB9XG5cbiAgdHJ5IHtcbiAgICAvLyBBdHRlbXB0IHRvIHBhcnNlIHRoZSBKU09OIHBheWxvYWRcbiAgICBjb25zdCBkZWNvZGVkVG9rZW4gPSBKU09OLnBhcnNlKGRlY29kZWRQYXlsb2FkSlNPTik7XG4gICAgcmV0dXJuIGRlY29kZWRUb2tlbjtcbiAgfSBjYXRjaCAoanNvbkVycm9yKSB7XG4gICAgdGhyb3cgbmV3IEVycm9yKFwiQ2Fubm90IHBhcnNlIHRoZSB0b2tlbidzIHBheWxvYWQgaW50byBKU09OXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/utilities/decode-jwt-token-to-json.utility.ts\n");

/***/ }),

/***/ "../../libs/auth/src/common/utilities/index.ts":
/*!*****************************************************!*\
  !*** ../../libs/auth/src/common/utilities/index.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   decodeJwtTokenToJson: () => (/* reexport safe */ _decode_jwt_token_to_json_utility__WEBPACK_IMPORTED_MODULE_0__.decodeJwtTokenToJson)\n/* harmony export */ });\n/* harmony import */ var _decode_jwt_token_to_json_utility__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./decode-jwt-token-to-json.utility */ \"../../libs/auth/src/common/utilities/decode-jwt-token-to-json.utility.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vdXRpbGl0aWVzL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQW1EIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9hdXRoL3NyYy9jb21tb24vdXRpbGl0aWVzL2luZGV4LnRzPzdlMDAiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vZGVjb2RlLWp3dC10b2tlbi10by1qc29uLnV0aWxpdHlcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/auth/src/common/utilities/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/index.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/index.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationApiKeyType: () => (/* reexport safe */ _organization_api_key_type_enum__WEBPACK_IMPORTED_MODULE_0__.OrganizationApiKeyType),\n/* harmony export */   OrganizationConnectionType: () => (/* reexport safe */ _organization_connection_type_enum__WEBPACK_IMPORTED_MODULE_1__.OrganizationConnectionType),\n/* harmony export */   OrganizationUserStatusType: () => (/* reexport safe */ _organization_user_status_type_enum__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserStatusType),\n/* harmony export */   OrganizationUserType: () => (/* reexport safe */ _organization_user_type_enum__WEBPACK_IMPORTED_MODULE_3__.OrganizationUserType),\n/* harmony export */   PolicyType: () => (/* reexport safe */ _policy_type_enum__WEBPACK_IMPORTED_MODULE_4__.PolicyType),\n/* harmony export */   ProviderStatusType: () => (/* reexport safe */ _provider_status_type_enum__WEBPACK_IMPORTED_MODULE_9__.ProviderStatusType),\n/* harmony export */   ProviderType: () => (/* reexport safe */ _provider_type_enum__WEBPACK_IMPORTED_MODULE_5__.ProviderType),\n/* harmony export */   ProviderUserStatusType: () => (/* reexport safe */ _provider_user_status_type_enum__WEBPACK_IMPORTED_MODULE_6__.ProviderUserStatusType),\n/* harmony export */   ProviderUserType: () => (/* reexport safe */ _provider_user_type_enum__WEBPACK_IMPORTED_MODULE_7__.ProviderUserType),\n/* harmony export */   ScimProviderType: () => (/* reexport safe */ _scim_provider_type_enum__WEBPACK_IMPORTED_MODULE_8__.ScimProviderType)\n/* harmony export */ });\n/* harmony import */ var _organization_api_key_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./organization-api-key-type.enum */ \"../../libs/common/src/admin-console/enums/organization-api-key-type.enum.ts\");\n/* harmony import */ var _organization_connection_type_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./organization-connection-type.enum */ \"../../libs/common/src/admin-console/enums/organization-connection-type.enum.ts\");\n/* harmony import */ var _organization_user_status_type_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./organization-user-status-type.enum */ \"../../libs/common/src/admin-console/enums/organization-user-status-type.enum.ts\");\n/* harmony import */ var _organization_user_type_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./organization-user-type.enum */ \"../../libs/common/src/admin-console/enums/organization-user-type.enum.ts\");\n/* harmony import */ var _policy_type_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./policy-type.enum */ \"../../libs/common/src/admin-console/enums/policy-type.enum.ts\");\n/* harmony import */ var _provider_type_enum__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./provider-type.enum */ \"../../libs/common/src/admin-console/enums/provider-type.enum.ts\");\n/* harmony import */ var _provider_user_status_type_enum__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./provider-user-status-type.enum */ \"../../libs/common/src/admin-console/enums/provider-user-status-type.enum.ts\");\n/* harmony import */ var _provider_user_type_enum__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./provider-user-type.enum */ \"../../libs/common/src/admin-console/enums/provider-user-type.enum.ts\");\n/* harmony import */ var _scim_provider_type_enum__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./scim-provider-type.enum */ \"../../libs/common/src/admin-console/enums/scim-provider-type.enum.ts\");\n/* harmony import */ var _provider_status_type_enum__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./provider-status-type.enum */ \"../../libs/common/src/admin-console/enums/provider-status-type.enum.ts\");\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBaUQ7QUFDRztBQUNDO0FBQ1A7QUFDWDtBQUNFO0FBQ1k7QUFDUDtBQUNBO0FBQ0UiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9pbmRleC50cz83NDZiIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL29yZ2FuaXphdGlvbi1hcGkta2V5LXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vb3JnYW5pemF0aW9uLWNvbm5lY3Rpb24tdHlwZS5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9vcmdhbml6YXRpb24tdXNlci1zdGF0dXMtdHlwZS5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9vcmdhbml6YXRpb24tdXNlci10eXBlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3BvbGljeS10eXBlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyLXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcHJvdmlkZXItdXNlci1zdGF0dXMtdHlwZS5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9wcm92aWRlci11c2VyLXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2NpbS1wcm92aWRlci10eXBlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Byb3ZpZGVyLXN0YXR1cy10eXBlLmVudW1cIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/organization-api-key-type.enum.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/organization-api-key-type.enum.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationApiKeyType: () => (/* binding */ OrganizationApiKeyType)\n/* harmony export */ });\nvar OrganizationApiKeyType;\n(function (OrganizationApiKeyType) {\n    OrganizationApiKeyType[OrganizationApiKeyType[\"Default\"] = 0] = \"Default\";\n    OrganizationApiKeyType[OrganizationApiKeyType[\"BillingSync\"] = 1] = \"BillingSync\";\n    OrganizationApiKeyType[OrganizationApiKeyType[\"Scim\"] = 2] = \"Scim\";\n})(OrganizationApiKeyType || (OrganizationApiKeyType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvb3JnYW5pemF0aW9uLWFwaS1rZXktdHlwZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLHNCQUlYO0FBSkQsV0FBWSxzQkFBc0I7SUFDaEMseUVBQVc7SUFDWCxpRkFBZTtJQUNmLG1FQUFRO0FBQ1YsQ0FBQyxFQUpXLHNCQUFzQixLQUF0QixzQkFBc0IsUUFJakMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9vcmdhbml6YXRpb24tYXBpLWtleS10eXBlLmVudW0udHM/Yzc5NSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBPcmdhbml6YXRpb25BcGlLZXlUeXBlIHtcbiAgRGVmYXVsdCA9IDAsXG4gIEJpbGxpbmdTeW5jID0gMSxcbiAgU2NpbSA9IDIsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/organization-api-key-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/organization-connection-type.enum.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/organization-connection-type.enum.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationConnectionType: () => (/* binding */ OrganizationConnectionType)\n/* harmony export */ });\nvar OrganizationConnectionType;\n(function (OrganizationConnectionType) {\n    OrganizationConnectionType[OrganizationConnectionType[\"CloudBillingSync\"] = 1] = \"CloudBillingSync\";\n    OrganizationConnectionType[OrganizationConnectionType[\"Scim\"] = 2] = \"Scim\";\n})(OrganizationConnectionType || (OrganizationConnectionType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvb3JnYW5pemF0aW9uLWNvbm5lY3Rpb24tdHlwZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLDBCQUdYO0FBSEQsV0FBWSwwQkFBMEI7SUFDcEMsbUdBQW9CO0lBQ3BCLDJFQUFRO0FBQ1YsQ0FBQyxFQUhXLDBCQUEwQixLQUExQiwwQkFBMEIsUUFHckMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9vcmdhbml6YXRpb24tY29ubmVjdGlvbi10eXBlLmVudW0udHM/YmIxOSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBPcmdhbml6YXRpb25Db25uZWN0aW9uVHlwZSB7XG4gIENsb3VkQmlsbGluZ1N5bmMgPSAxLFxuICBTY2ltID0gMixcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/organization-connection-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/organization-user-status-type.enum.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/organization-user-status-type.enum.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserStatusType: () => (/* binding */ OrganizationUserStatusType)\n/* harmony export */ });\nvar OrganizationUserStatusType;\n(function (OrganizationUserStatusType) {\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Invited\"] = 0] = \"Invited\";\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Accepted\"] = 1] = \"Accepted\";\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Confirmed\"] = 2] = \"Confirmed\";\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Revoked\"] = -1] = \"Revoked\";\n})(OrganizationUserStatusType || (OrganizationUserStatusType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvb3JnYW5pemF0aW9uLXVzZXItc3RhdHVzLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSwwQkFLWDtBQUxELFdBQVksMEJBQTBCO0lBQ3BDLGlGQUFXO0lBQ1gsbUZBQVk7SUFDWixxRkFBYTtJQUNiLGtGQUFZO0FBQ2QsQ0FBQyxFQUxXLDBCQUEwQixLQUExQiwwQkFBMEIsUUFLckMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9vcmdhbml6YXRpb24tdXNlci1zdGF0dXMtdHlwZS5lbnVtLnRzP2M4YTUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gT3JnYW5pemF0aW9uVXNlclN0YXR1c1R5cGUge1xuICBJbnZpdGVkID0gMCxcbiAgQWNjZXB0ZWQgPSAxLFxuICBDb25maXJtZWQgPSAyLFxuICBSZXZva2VkID0gLTEsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/organization-user-status-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/organization-user-type.enum.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/organization-user-type.enum.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationUserType: () => (/* binding */ OrganizationUserType)\n/* harmony export */ });\nvar OrganizationUserType;\n(function (OrganizationUserType) {\n    OrganizationUserType[OrganizationUserType[\"Owner\"] = 0] = \"Owner\";\n    OrganizationUserType[OrganizationUserType[\"Admin\"] = 1] = \"Admin\";\n    OrganizationUserType[OrganizationUserType[\"User\"] = 2] = \"User\";\n    // Manager = 3 has been intentionally permanently deleted\n    OrganizationUserType[OrganizationUserType[\"Custom\"] = 4] = \"Custom\";\n})(OrganizationUserType || (OrganizationUserType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvb3JnYW5pemF0aW9uLXVzZXItdHlwZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLG9CQU1YO0FBTkQsV0FBWSxvQkFBb0I7SUFDOUIsaUVBQVM7SUFDVCxpRUFBUztJQUNULCtEQUFRO0lBQ1IseURBQXlEO0lBQ3pELG1FQUFVO0FBQ1osQ0FBQyxFQU5XLG9CQUFvQixLQUFwQixvQkFBb0IsUUFNL0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9vcmdhbml6YXRpb24tdXNlci10eXBlLmVudW0udHM/ZDk2ZSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBPcmdhbml6YXRpb25Vc2VyVHlwZSB7XG4gIE93bmVyID0gMCxcbiAgQWRtaW4gPSAxLFxuICBVc2VyID0gMixcbiAgLy8gTWFuYWdlciA9IDMgaGFzIGJlZW4gaW50ZW50aW9uYWxseSBwZXJtYW5lbnRseSBkZWxldGVkXG4gIEN1c3RvbSA9IDQsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/organization-user-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/policy-type.enum.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/policy-type.enum.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PolicyType: () => (/* binding */ PolicyType)\n/* harmony export */ });\nvar PolicyType;\n(function (PolicyType) {\n    PolicyType[PolicyType[\"TwoFactorAuthentication\"] = 0] = \"TwoFactorAuthentication\";\n    PolicyType[PolicyType[\"MasterPassword\"] = 1] = \"MasterPassword\";\n    PolicyType[PolicyType[\"PasswordGenerator\"] = 2] = \"PasswordGenerator\";\n    PolicyType[PolicyType[\"SingleOrg\"] = 3] = \"SingleOrg\";\n    PolicyType[PolicyType[\"RequireSso\"] = 4] = \"RequireSso\";\n    PolicyType[PolicyType[\"PersonalOwnership\"] = 5] = \"PersonalOwnership\";\n    PolicyType[PolicyType[\"DisableSend\"] = 6] = \"DisableSend\";\n    PolicyType[PolicyType[\"SendOptions\"] = 7] = \"SendOptions\";\n    PolicyType[PolicyType[\"ResetPassword\"] = 8] = \"ResetPassword\";\n    PolicyType[PolicyType[\"MaximumVaultTimeout\"] = 9] = \"MaximumVaultTimeout\";\n    PolicyType[PolicyType[\"DisablePersonalVaultExport\"] = 10] = \"DisablePersonalVaultExport\";\n    PolicyType[PolicyType[\"ActivateAutofill\"] = 11] = \"ActivateAutofill\";\n    PolicyType[PolicyType[\"AutomaticAppLogIn\"] = 12] = \"AutomaticAppLogIn\";\n})(PolicyType || (PolicyType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcG9saWN5LXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxVQWNYO0FBZEQsV0FBWSxVQUFVO0lBQ3BCLGlGQUEyQjtJQUMzQiwrREFBa0I7SUFDbEIscUVBQXFCO0lBQ3JCLHFEQUFhO0lBQ2IsdURBQWM7SUFDZCxxRUFBcUI7SUFDckIseURBQWU7SUFDZix5REFBZTtJQUNmLDZEQUFpQjtJQUNqQix5RUFBdUI7SUFDdkIsd0ZBQStCO0lBQy9CLG9FQUFxQjtJQUNyQixzRUFBc0I7QUFDeEIsQ0FBQyxFQWRXLFVBQVUsS0FBVixVQUFVLFFBY3JCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcG9saWN5LXR5cGUuZW51bS50cz9hMjNkIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFBvbGljeVR5cGUge1xuICBUd29GYWN0b3JBdXRoZW50aWNhdGlvbiA9IDAsIC8vIFJlcXVpcmVzIHVzZXJzIHRvIGhhdmUgMmZhIGVuYWJsZWRcbiAgTWFzdGVy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XG4gIEFjdGl2YXRlQXV0b2ZpbGwgPSAxMSwgLy8gQWN0aXZhdGVzIGF1dG9maWxsIHdpdGggcGFnZSBsb2FkIG9uIHRoZSBicm93c2VyIGV4dGVuc2lvblxuICBBdXRvbWF0aWNBcHBMb2dJbiA9IDEyLCAvLyBFbmFibGVzIGF1dG9tYXRpYyBsb2cgaW4gb2YgYXBwcyBmcm9tIGNvbmZpZ3VyZWQgaWRlbnRpdHkgcHJvdmlkZXJcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/policy-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/provider-status-type.enum.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/provider-status-type.enum.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderStatusType: () => (/* binding */ ProviderStatusType)\n/* harmony export */ });\nvar ProviderStatusType;\n(function (ProviderStatusType) {\n    ProviderStatusType[ProviderStatusType[\"Pending\"] = 0] = \"Pending\";\n    ProviderStatusType[ProviderStatusType[\"Created\"] = 1] = \"Created\";\n    ProviderStatusType[ProviderStatusType[\"Billable\"] = 2] = \"Billable\";\n})(ProviderStatusType || (ProviderStatusType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcHJvdmlkZXItc3RhdHVzLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxrQkFJWDtBQUpELFdBQVksa0JBQWtCO0lBQzVCLGlFQUFXO0lBQ1gsaUVBQVc7SUFDWCxtRUFBWTtBQUNkLENBQUMsRUFKVyxrQkFBa0IsS0FBbEIsa0JBQWtCLFFBSTdCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcHJvdmlkZXItc3RhdHVzLXR5cGUuZW51bS50cz9jMzA5Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFByb3ZpZGVyU3RhdHVzVHlwZSB7XG4gIFBlbmRpbmcgPSAwLFxuICBDcmVhdGVkID0gMSxcbiAgQmlsbGFibGUgPSAyLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/provider-status-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/provider-type.enum.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/provider-type.enum.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderType: () => (/* binding */ ProviderType)\n/* harmony export */ });\nvar ProviderType;\n(function (ProviderType) {\n    ProviderType[ProviderType[\"Msp\"] = 0] = \"Msp\";\n    ProviderType[ProviderType[\"Reseller\"] = 1] = \"Reseller\";\n})(ProviderType || (ProviderType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcHJvdmlkZXItdHlwZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLFlBR1g7QUFIRCxXQUFZLFlBQVk7SUFDdEIsNkNBQU87SUFDUCx1REFBWTtBQUNkLENBQUMsRUFIVyxZQUFZLEtBQVosWUFBWSxRQUd2QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hZG1pbi1jb25zb2xlL2VudW1zL3Byb3ZpZGVyLXR5cGUuZW51bS50cz8xMjI2Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFByb3ZpZGVyVHlwZSB7XG4gIE1zcCA9IDAsXG4gIFJlc2VsbGVyID0gMSxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/provider-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/provider-user-status-type.enum.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/provider-user-status-type.enum.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderUserStatusType: () => (/* binding */ ProviderUserStatusType)\n/* harmony export */ });\nvar ProviderUserStatusType;\n(function (ProviderUserStatusType) {\n    ProviderUserStatusType[ProviderUserStatusType[\"Invited\"] = 0] = \"Invited\";\n    ProviderUserStatusType[ProviderUserStatusType[\"Accepted\"] = 1] = \"Accepted\";\n    ProviderUserStatusType[ProviderUserStatusType[\"Confirmed\"] = 2] = \"Confirmed\";\n    ProviderUserStatusType[ProviderUserStatusType[\"Revoked\"] = -1] = \"Revoked\";\n})(ProviderUserStatusType || (ProviderUserStatusType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcHJvdmlkZXItdXNlci1zdGF0dXMtdHlwZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLHNCQUtYO0FBTEQsV0FBWSxzQkFBc0I7SUFDaEMseUVBQVc7SUFDWCwyRUFBWTtJQUNaLDZFQUFhO0lBQ2IsMEVBQVk7QUFDZCxDQUFDLEVBTFcsc0JBQXNCLEtBQXRCLHNCQUFzQixRQUtqQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hZG1pbi1jb25zb2xlL2VudW1zL3Byb3ZpZGVyLXVzZXItc3RhdHVzLXR5cGUuZW51bS50cz8zNDhlIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFByb3ZpZGVyVXNlclN0YXR1c1R5cGUge1xuICBJbnZpdGVkID0gMCxcbiAgQWNjZXB0ZWQgPSAxLFxuICBDb25maXJtZWQgPSAyLFxuICBSZXZva2VkID0gLTEsIC8vIE5vdCB1c2VkLCBjb21waWxlLXRpbWUgc3VwcG9ydCBvbmx5XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/provider-user-status-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/provider-user-type.enum.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/provider-user-type.enum.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderUserType: () => (/* binding */ ProviderUserType)\n/* harmony export */ });\nvar ProviderUserType;\n(function (ProviderUserType) {\n    ProviderUserType[ProviderUserType[\"ProviderAdmin\"] = 0] = \"ProviderAdmin\";\n    ProviderUserType[ProviderUserType[\"ServiceUser\"] = 1] = \"ServiceUser\";\n})(ProviderUserType || (ProviderUserType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvcHJvdmlkZXItdXNlci10eXBlLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksZ0JBR1g7QUFIRCxXQUFZLGdCQUFnQjtJQUMxQix5RUFBaUI7SUFDakIscUVBQWU7QUFDakIsQ0FBQyxFQUhXLGdCQUFnQixLQUFoQixnQkFBZ0IsUUFHM0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9wcm92aWRlci11c2VyLXR5cGUuZW51bS50cz83MGRjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFByb3ZpZGVyVXNlclR5cGUge1xuICBQcm92aWRlckFkbWluID0gMCxcbiAgU2VydmljZVVzZXIgPSAxLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/provider-user-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/enums/scim-provider-type.enum.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/admin-console/enums/scim-provider-type.enum.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ScimProviderType: () => (/* binding */ ScimProviderType)\n/* harmony export */ });\nvar ScimProviderType;\n(function (ScimProviderType) {\n    ScimProviderType[ScimProviderType[\"Default\"] = 0] = \"Default\";\n    ScimProviderType[ScimProviderType[\"AzureAd\"] = 1] = \"AzureAd\";\n    ScimProviderType[ScimProviderType[\"Okta\"] = 2] = \"Okta\";\n    ScimProviderType[ScimProviderType[\"OneLogin\"] = 3] = \"OneLogin\";\n    ScimProviderType[ScimProviderType[\"JumpCloud\"] = 4] = \"JumpCloud\";\n    ScimProviderType[ScimProviderType[\"GoogleWorkspace\"] = 5] = \"GoogleWorkspace\";\n    ScimProviderType[ScimProviderType[\"Rippling\"] = 6] = \"Rippling\";\n})(ScimProviderType || (ScimProviderType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvZW51bXMvc2NpbS1wcm92aWRlci10eXBlLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksZ0JBUVg7QUFSRCxXQUFZLGdCQUFnQjtJQUMxQiw2REFBVztJQUNYLDZEQUFXO0lBQ1gsdURBQVE7SUFDUiwrREFBWTtJQUNaLGlFQUFhO0lBQ2IsNkVBQW1CO0lBQ25CLCtEQUFZO0FBQ2QsQ0FBQyxFQVJXLGdCQUFnQixLQUFoQixnQkFBZ0IsUUFRM0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9lbnVtcy9zY2ltLXByb3ZpZGVyLXR5cGUuZW51bS50cz8yYzM0Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFNjaW1Qcm92aWRlclR5cGUge1xuICBEZWZhdWx0ID0gMCxcbiAgQXp1cmVBZCA9IDEsXG4gIE9rdGEgPSAyLFxuICBPbmVMb2dpbiA9IDMsXG4gIEp1bXBDbG91ZCA9IDQsXG4gIEdvb2dsZVdvcmtzcGFjZSA9IDUsXG4gIFJpcHBsaW5nID0gNixcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/enums/scim-provider-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/api/permissions.api.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/api/permissions.api.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PermissionsApi: () => (/* binding */ PermissionsApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass PermissionsApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return this;\n        }\n        this.accessEventLogs = this.getResponseProperty(\"AccessEventLogs\");\n        this.accessImportExport = this.getResponseProperty(\"AccessImportExport\");\n        this.accessReports = this.getResponseProperty(\"AccessReports\");\n        this.createNewCollections = this.getResponseProperty(\"CreateNewCollections\");\n        this.editAnyCollection = this.getResponseProperty(\"EditAnyCollection\");\n        this.deleteAnyCollection = this.getResponseProperty(\"DeleteAnyCollection\");\n        this.manageCiphers = this.getResponseProperty(\"ManageCiphers\");\n        this.manageGroups = this.getResponseProperty(\"ManageGroups\");\n        this.manageSso = this.getResponseProperty(\"ManageSso\");\n        this.managePolicies = this.getResponseProperty(\"ManagePolicies\");\n        this.manageUsers = this.getResponseProperty(\"ManageUsers\");\n        this.manageResetPassword = this.getResponseProperty(\"ManageResetPassword\");\n        this.manageScim = this.getResponseProperty(\"ManageScim\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL2FwaS9wZXJtaXNzaW9ucy5hcGkudH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xuICAgIHRoaXMubWFuYWdlU3NvID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiTWFuYWdlU3NvXCIpO1xuICAgIHRoaXMubWFuYWdlUG9saWNpZXMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJNYW5hZ2VQb2xpY2llc1wiKTtcbiAgICB0aGlzLm1hbmFnZVVzZXJzID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiTWFuYWdlVXNlcnNcIik7XG4gICAgdGhpcy5tYW5hZ2VSZXNldFBhc3N3b3JkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiTWFuYWdlUmVzZXRQYXNzd29yZFwiKTtcbiAgICB0aGlzLm1hbmFnZVNjaW0gPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJNYW5hZ2VTY2ltXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/api/permissions.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/data/organization.data.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/data/organization.data.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationData: () => (/* binding */ OrganizationData)\n/* harmony export */ });\nclass OrganizationData {\n    constructor(response, options) {\n        if (response == null) {\n            return;\n        }\n        this.id = response.id;\n        this.name = response.name;\n        this.status = response.status;\n        this.type = response.type;\n        this.enabled = response.enabled;\n        this.usePolicies = response.usePolicies;\n        this.useGroups = response.useGroups;\n        this.useDirectory = response.useDirectory;\n        this.useEvents = response.useEvents;\n        this.useTotp = response.useTotp;\n        this.use2fa = response.use2fa;\n        this.useApi = response.useApi;\n        this.useSso = response.useSso;\n        this.useKeyConnector = response.useKeyConnector;\n        this.useScim = response.useScim;\n        this.useCustomPermissions = response.useCustomPermissions;\n        this.useResetPassword = response.useResetPassword;\n        this.useSecretsManager = response.useSecretsManager;\n        this.usePasswordManager = response.usePasswordManager;\n        this.useActivateAutofillPolicy = response.useActivateAutofillPolicy;\n        this.selfHost = response.selfHost;\n        this.usersGetPremium = response.usersGetPremium;\n        this.seats = response.seats;\n        this.maxCollections = response.maxCollections;\n        this.maxStorageGb = response.maxStorageGb;\n        this.ssoBound = response.ssoBound;\n        this.identifier = response.identifier;\n        this.permissions = response.permissions;\n        this.resetPasswordEnrolled = response.resetPasswordEnrolled;\n        this.userId = response.userId;\n        this.organizationUserId = response.organizationUserId;\n        this.hasPublicAndPrivateKeys = response.hasPublicAndPrivateKeys;\n        this.providerId = response.providerId;\n        this.providerName = response.providerName;\n        this.providerType = response.providerType;\n        this.familySponsorshipFriendlyName = response.familySponsorshipFriendlyName;\n        this.familySponsorshipAvailable = response.familySponsorshipAvailable;\n        this.productTierType = response.productTierType;\n        this.keyConnectorEnabled = response.keyConnectorEnabled;\n        this.keyConnectorUrl = response.keyConnectorUrl;\n        this.familySponsorshipLastSyncDate = response.familySponsorshipLastSyncDate;\n        this.familySponsorshipValidUntil = response.familySponsorshipValidUntil;\n        this.familySponsorshipToDelete = response.familySponsorshipToDelete;\n        this.accessSecretsManager = response.accessSecretsManager;\n        this.limitCollectionCreation = response.limitCollectionCreation;\n        this.limitCollectionDeletion = response.limitCollectionDeletion;\n        // Deprecated: https://bitwarden.atlassian.net/browse/PM-10863\n        this.limitCollectionCreationDeletion = response.limitCollectionCreationDeletion;\n        this.allowAdminAccessToAllCollectionItems = response.allowAdminAccessToAllCollectionItems;\n        this.userIsManagedByOrganization = response.userIsManagedByOrganization;\n        this.isMember = options.isMember;\n        this.isProviderUser = options.isProviderUser;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new OrganizationData(), obj, {\n            familySponsorshipLastSyncDate: obj.familySponsorshipLastSyncDate != null\n                ? new Date(obj.familySponsorshipLastSyncDate)\n                : obj.familySponsorshipLastSyncDate,\n            familySponsorshipValidUntil: obj.familySponsorshipValidUntil != null\n                ? new Date(obj.familySponsorshipValidUntil)\n                : obj.familySponsorshipValidUntil,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11612 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/data/organization.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/data/policy.data.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/data/policy.data.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PolicyData: () => (/* binding */ PolicyData)\n/* harmony export */ });\nclass PolicyData {\n    constructor(response) {\n        if (response == null) {\n            return;\n        }\n        this.id = response.id;\n        this.organizationId = response.organizationId;\n        this.type = response.type;\n        this.data = response.data;\n        this.enabled = response.enabled;\n    }\n    static fromPolicy(policy) {\n        return Object.assign(new PolicyData(), policy);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RhdGEvcG9saWN5LmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUtPLE1BQU0sVUFBVTtJQU9yQixZQUFZLFFBQXlCO1FBQ25DLElBQUksUUFBUSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ3JCLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxDQUFDLEVBQUUsR0FBRyxRQUFRLENBQUMsRUFBRSxDQUFDO1FBQ3RCLElBQUksQ0FBQyxjQUFjLEdBQUcsUUFBUSxDQUFDLGNBQWMsQ0FBQztRQUM5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Nwb25zZSkge1xuICAgIGlmIChyZXNwb25zZSA9PSBudWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy5pZCA9IHJlc3BvbnNlLmlkO1xuICAgIHRoaXMub3JnYW5pemF0aW9uSWQgPSByZXNwb25zZS5vcmdhbml6YXRpb25JZDtcbiAgICB0aGlzLnR5cGUgPSByZXNwb25zZS50eXBlO1xuICAgIHRoaXMuZGF0YSA9IHJlc3BvbnNlLmRhdGE7XG4gICAgdGhpcy5lbmFibGVkID0gcmVzcG9uc2UuZW5hYmxlZDtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tUG9saWN5KHBvbGljeTogUG9saWN5KTogUG9saWN5RGF0YSB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24obmV3IFBvbGljeURhdGEoKSwgcG9saWN5KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/data/policy.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/data/provider.data.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/data/provider.data.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderData: () => (/* binding */ ProviderData)\n/* harmony export */ });\nclass ProviderData {\n    constructor(response) {\n        this.id = response.id;\n        this.name = response.name;\n        this.status = response.status;\n        this.type = response.type;\n        this.enabled = response.enabled;\n        this.userId = response.userId;\n        this.useEvents = response.useEvents;\n        this.providerStatus = response.providerStatus;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RhdGEv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3RyaW5nO1xuICBuYW1lOiBzdHJpbmc7XG4gIHN0YXR1czogUHJvdmlkZXJVc2VyU3RhdHVzVHlwZTtcbiAgdHlwZTogUHJvdmlkZXJVc2VyVHlwZTtcbiAgZW5hYmxlZDogYm9vbGVhbjtcbiAgdXNlcklkOiBzdHJpbmc7XG4gIHVzZUV2ZW50czogYm9vbGVhbjtcbiAgcHJvdmlkZXJTdGF0dXM6IFByb3ZpZGVyU3RhdHVzVHlwZTtcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogUHJvZmlsZVByb3ZpZGVyUmVzcG9uc2UpIHtcbiAgICB0aGlzLmlkID0gcmVzcG9uc2UuaWQ7XG4gICAgdGhpcy5uYW1lID0gcmVzcG9uc2UubmFtZTtcbiAgICB0aGlzLnN0YXR1cyA9IHJlc3BvbnNlLnN0YXR1cztcbiAgICB0aGlzLnR5cGUgPSByZXNwb25zZS50eXBlO1xuICAgIHRoaXMuZW5hYmxlZCA9IHJlc3BvbnNlLmVuYWJsZWQ7XG4gICAgdGhpcy51c2VySWQgPSByZXNwb25zZS51c2VySWQ7XG4gICAgdGhpcy51c2VFdmVudHMgPSByZXNwb25zZS51c2VFdmVudHM7XG4gICAgdGhpcy5wcm92aWRlclN0YXR1cyA9IHJlc3BvbnNlLnByb3ZpZGVyU3RhdHVzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/data/provider.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/encrypted-organization-key.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/encrypted-organization-key.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BaseEncryptedOrganizationKey: () => (/* binding */ BaseEncryptedOrganizationKey),\n/* harmony export */   EncryptedOrganizationKey: () => (/* binding */ EncryptedOrganizationKey),\n/* harmony export */   ProviderEncryptedOrganizationKey: () => (/* binding */ ProviderEncryptedOrganizationKey)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass BaseEncryptedOrganizationKey {\n    static fromData(data) {\n        switch (data.type) {\n            case \"organization\":\n                return new EncryptedOrganizationKey(data.key);\n            case \"provider\":\n                return new ProviderEncryptedOrganizationKey(data.key, data.providerId);\n            default:\n                return null;\n        }\n    }\n    static isProviderEncrypted(key) {\n        return key.toData().type === \"provider\";\n    }\n}\nclass EncryptedOrganizationKey {\n    constructor(key) {\n        this.key = key;\n    }\n    decrypt(encryptService, privateKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decValue = yield encryptService.rsaDecrypt(this.encryptedOrganizationKey, privateKey);\n            return new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__.SymmetricCryptoKey(decValue);\n        });\n    }\n    get encryptedOrganizationKey() {\n        return new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(this.key);\n    }\n    toData() {\n        return {\n            type: \"organization\",\n            key: this.key,\n        };\n    }\n}\nclass ProviderEncryptedOrganizationKey {\n    constructor(key, providerId) {\n        this.key = key;\n        this.providerId = providerId;\n    }\n    decrypt(encryptService, providerKeys) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decValue = yield encryptService.decryptToBytes(new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(this.key), providerKeys[this.providerId]);\n            return new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__.SymmetricCryptoKey(decValue);\n        });\n    }\n    get encryptedOrganizationKey() {\n        return new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(this.key);\n    }\n    toData() {\n        return {\n            type: \"provider\",\n            key: this.key,\n            providerId: this.providerId,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5356 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/encrypted-organization-key.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/master-password-policy-options.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/master-password-policy-options.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MasterPasswordPolicyOptions: () => (/* binding */ MasterPasswordPolicyOptions)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n\nclass MasterPasswordPolicyOptions extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor() {\n        super(...arguments);\n        this.minComplexity = 0;\n        this.minLength = 0;\n        this.requireUpper = false;\n        this.requireLower = false;\n        this.requireNumbers = false;\n        this.requireSpecial = false;\n        /**\n         * Flag to indicate if the policy should be enforced on login.\n         * If true, and the user's password does not meet the policy requirements,\n         * the user will be forced to update their password.\n         */\n        this.enforceOnLogin = false;\n    }\n    static fromResponse(policy) {\n        if (policy == null) {\n            return null;\n        }\n        const options = new MasterPasswordPolicyOptions();\n        options.minComplexity = policy.minComplexity;\n        options.minLength = policy.minLength;\n        options.requireUpper = policy.requireUpper;\n        options.requireLower = policy.requireLower;\n        options.requireNumbers = policy.requireNumbers;\n        options.requireSpecial = policy.requireSpecial;\n        options.enforceOnLogin = policy.enforceOnLogin;\n        return options;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RvbWFpbi9tYXN0ZXItcGFzc3dvcmQtcG9saWN5LW9wdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDaUU7QUFFMUQsTUFBTSwyQkFBNEIsU0FBUSwyRUFBTTtJQUF2RDs7UUFDRSxrQkFBYSxHQUFHLENBQUMsQ0FBQztRQUNsQixjQUFTLEdBQUcsQ0FBQyxDQUFDO1FBQ2QsaUJBQVksR0FBRyxLQUFLLENBQUM7UUFDckIsaUJBQVksR0FBRyxLQUFLLENBQUM7UUFDckIsbUJBQWMsR0FBRyxLQUFLLENBQUM7UUFDdkIsbUJBQWMsR0FBRyxLQUFLLENBQUM7UUFFdkI7Ozs7V0FJRztRQUNILG1CQUFjLEdBQUcsS0FBSyxDQUFDO0lBZ0J6QixDQUFDO0lBZEMsTUFBTSxDQUFDLFlBQVksQ0FBQyxNQUFvQztRQUN0RCxJQUFJLE1BQU0sSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNuQixPQUFPLElBQUksQ0FBQztRQU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lcnMgPSBwb2xpY3kucmVxdWlyZU51bWJlcnM7XG4gICAgb3B0aW9ucy5yZXF1aXJlU3BlY2lhbCA9IHBvbGljeS5yZXF1aXJlU3BlY2lhbDtcbiAgICBvcHRpb25zLmVuZm9yY2VPbkxvZ2luID0gcG9saWN5LmVuZm9yY2VPbkxvZ2luO1xuICAgIHJldHVybiBvcHRpb25zO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/master-password-policy-options.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/organization.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/organization.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Organization: () => (/* binding */ Organization)\n/* harmony export */ });\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n\nclass Organization {\n    constructor(obj) {\n        if (obj == null) {\n            return;\n        }\n        this.id = obj.id;\n        this.name = obj.name;\n        this.status = obj.status;\n        this.type = obj.type;\n        this.enabled = obj.enabled;\n        this.usePolicies = obj.usePolicies;\n        this.useGroups = obj.useGroups;\n        this.useDirectory = obj.useDirectory;\n        this.useEvents = obj.useEvents;\n        this.useTotp = obj.useTotp;\n        this.use2fa = obj.use2fa;\n        this.useApi = obj.useApi;\n        this.useSso = obj.useSso;\n        this.useKeyConnector = obj.useKeyConnector;\n        this.useScim = obj.useScim;\n        this.useCustomPermissions = obj.useCustomPermissions;\n        this.useResetPassword = obj.useResetPassword;\n        this.useSecretsManager = obj.useSecretsManager;\n        this.usePasswordManager = obj.usePasswordManager;\n        this.useActivateAutofillPolicy = obj.useActivateAutofillPolicy;\n        this.selfHost = obj.selfHost;\n        this.usersGetPremium = obj.usersGetPremium;\n        this.seats = obj.seats;\n        this.maxCollections = obj.maxCollections;\n        this.maxStorageGb = obj.maxStorageGb;\n        this.ssoBound = obj.ssoBound;\n        this.identifier = obj.identifier;\n        this.permissions = obj.permissions;\n        this.resetPasswordEnrolled = obj.resetPasswordEnrolled;\n        this.userId = obj.userId;\n        this.organizationUserId = obj.organizationUserId;\n        this.hasPublicAndPrivateKeys = obj.hasPublicAndPrivateKeys;\n        this.providerId = obj.providerId;\n        this.providerName = obj.providerName;\n        this.providerType = obj.providerType;\n        this.isProviderUser = obj.isProviderUser;\n        this.isMember = obj.isMember;\n        this.familySponsorshipFriendlyName = obj.familySponsorshipFriendlyName;\n        this.familySponsorshipAvailable = obj.familySponsorshipAvailable;\n        this.productTierType = obj.productTierType;\n        this.keyConnectorEnabled = obj.keyConnectorEnabled;\n        this.keyConnectorUrl = obj.keyConnectorUrl;\n        this.familySponsorshipLastSyncDate = obj.familySponsorshipLastSyncDate;\n        this.familySponsorshipValidUntil = obj.familySponsorshipValidUntil;\n        this.familySponsorshipToDelete = obj.familySponsorshipToDelete;\n        this.accessSecretsManager = obj.accessSecretsManager;\n        this.limitCollectionCreation = obj.limitCollectionCreation;\n        this.limitCollectionDeletion = obj.limitCollectionDeletion;\n        // Deprecated: https://bitwarden.atlassian.net/browse/PM-10863\n        this.limitCollectionCreationDeletion = obj.limitCollectionCreationDeletion;\n        this.allowAdminAccessToAllCollectionItems = obj.allowAdminAccessToAllCollectionItems;\n        this.userIsManagedByOrganization = obj.userIsManagedByOrganization;\n    }\n    get canAccess() {\n        if (this.isOwner) {\n            return true;\n        }\n        return this.enabled && this.status === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserStatusType.Confirmed;\n    }\n    /**\n     * Whether a user has Admin permissions or greater\n     */\n    get isAdmin() {\n        return this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Admin || this.isOwner;\n    }\n    /**\n     * Whether a user has Owner permissions (including ProviderUsers)\n     */\n    get isOwner() {\n        return this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Owner || this.isProviderUser;\n    }\n    get canAccessEventLogs() {\n        return (this.isAdmin || this.permissions.accessEventLogs) && this.useEvents;\n    }\n    get canAccessImportExport() {\n        return this.isAdmin || this.permissions.accessImportExport;\n    }\n    get canAccessReports() {\n        return this.isAdmin || this.permissions.accessReports;\n    }\n    get canCreateNewCollections() {\n        return !this.limitCollectionCreation || this.isAdmin || this.permissions.createNewCollections;\n    }\n    get canEditAnyCollection() {\n        // The allowAdminAccessToAllCollectionItems flag can restrict admins\n        // Providers and custom users with canEditAnyCollection are not affected by allowAdminAccessToAllCollectionItems flag\n        return (this.isProviderUser ||\n            (this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Custom && this.permissions.editAnyCollection) ||\n            (this.allowAdminAccessToAllCollectionItems && this.isAdmin));\n    }\n    get canEditUnmanagedCollections() {\n        // Any admin or custom user with editAnyCollection permission can edit unmanaged collections\n        return this.isAdmin || this.permissions.editAnyCollection;\n    }\n    get canEditUnassignedCiphers() {\n        return (this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Admin ||\n            this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Owner ||\n            this.permissions.editAnyCollection);\n    }\n    get canEditAllCiphers() {\n        // The allowAdminAccessToAllCollectionItems flag can restrict admins\n        // Custom users with canEditAnyCollection are not affected by allowAdminAccessToAllCollectionItems flag\n        return ((this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Custom && this.permissions.editAnyCollection) ||\n            (this.allowAdminAccessToAllCollectionItems &&\n                (this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Admin || this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Owner)));\n    }\n    /**\n     * @returns True if the user can delete any collection\n     */\n    get canDeleteAnyCollection() {\n        // Providers and Users with DeleteAnyCollection permission can always delete collections\n        if (this.isProviderUser || this.permissions.deleteAnyCollection) {\n            return true;\n        }\n        // If AllowAdminAccessToAllCollectionItems is true, Owners and Admins can delete any collection, regardless of LimitCollectionCreationDeletion setting\n        // Using explicit type checks because provider users are handled above and this mimics the server's permission checks closely\n        if (this.allowAdminAccessToAllCollectionItems) {\n            return this.type == _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Owner || this.type == _enums__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserType.Admin;\n        }\n        return false;\n    }\n    /**\n     * Whether the user can view all collection information, such as collection name and access.\n     * This does not indicate that the user can view items inside any collection - for that, see {@link canEditAllCiphers}\n     */\n    get canViewAllCollections() {\n        // Admins can always see all collections even if collection management settings prevent them from editing them or seeing items\n        return (this.isAdmin || this.permissions.editAnyCollection || this.permissions.deleteAnyCollection);\n    }\n    get canManageGroups() {\n        return (this.isAdmin || this.permissions.manageGroups) && this.useGroups;\n    }\n    get canManageSso() {\n        return (this.isAdmin || this.permissions.manageSso) && this.useSso;\n    }\n    get canManageDomainVerification() {\n        return (this.isAdmin || this.permissions.manageSso) && this.useSso;\n    }\n    get canManageScim() {\n        return (this.isAdmin || this.permissions.manageScim) && this.useScim;\n    }\n    get canManagePolicies() {\n        return (this.isAdmin || this.permissions.managePolicies) && this.usePolicies;\n    }\n    get canManageUsers() {\n        return this.isAdmin || this.permissions.manageUsers;\n    }\n    get canManageUsersPassword() {\n        return this.isAdmin || this.permissions.manageResetPassword;\n    }\n    get canManageDeviceApprovals() {\n        return (this.isAdmin || this.permissions.manageResetPassword) && this.useSso;\n    }\n    get isExemptFromPolicies() {\n        return this.canManagePolicies;\n    }\n    get canViewSubscription() {\n        if (this.canEditSubscription) {\n            return true;\n        }\n        return this.hasProvider && this.providerType === _enums__WEBPACK_IMPORTED_MODULE_0__.ProviderType.Msp\n            ? this.isProviderUser\n            : this.isOwner;\n    }\n    get canEditSubscription() {\n        return this.hasProvider ? this.isProviderUser : this.isOwner;\n    }\n    get canEditPaymentMethods() {\n        return this.canEditSubscription;\n    }\n    get canViewBillingHistory() {\n        return this.canEditSubscription;\n    }\n    get hasProvider() {\n        return this.providerId != null || this.providerName != null;\n    }\n    get hasReseller() {\n        return this.hasProvider && this.providerType === _enums__WEBPACK_IMPORTED_MODULE_0__.ProviderType.Reseller;\n    }\n    get canAccessSecretsManager() {\n        return this.useSecretsManager && this.accessSecretsManager;\n    }\n    get isFreeOrg() {\n        // return true if organization needs to be upgraded from a free org\n        return !this.useTotp;\n    }\n    get canManageSponsorships() {\n        return this.familySponsorshipAvailable || this.familySponsorshipFriendlyName !== null;\n    }\n    static fromJSON(json) {\n        if (json == null) {\n            return null;\n        }\n        return Object.assign(new Organization(), json, {\n            familySponsorshipLastSyncDate: new Date(json.familySponsorshipLastSyncDate),\n            familySponsorshipValidUntil: new Date(json.familySponsorshipValidUntil),\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 24780 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/organization.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/password-generator-policy-options.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/password-generator-policy-options.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordGeneratorPolicyOptions: () => (/* binding */ PasswordGeneratorPolicyOptions)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n\n/** Enterprise policy for the password generator.\n * @see PolicyType.PasswordGenerator\n */\nclass PasswordGeneratorPolicyOptions extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor() {\n        super(...arguments);\n        /** The default kind of credential to generate */\n        this.overridePasswordType = \"\";\n        /** The minimum length of generated passwords.\n         *  When this is less than or equal to zero, it is ignored.\n         *  If this is less than the total number of characters required by\n         *  the policy's other settings, then it is ignored.\n         *  This field is not used for passphrases.\n         */\n        this.minLength = 0;\n        /** When this is true, an uppercase character must be part of\n         *  the generated password.\n         *  This field is not used for passphrases.\n         */\n        this.useUppercase = false;\n        /** When this is true, a lowercase character must be part of\n         *  the generated password. This field is not used for passphrases.\n         */\n        this.useLowercase = false;\n        /** When this is true, at least one digit must be part of the generated\n         *  password. This field is not used for passphrases.\n         */\n        this.useNumbers = false;\n        /** The quantity of digits to include in the generated password.\n         *  When this is less than or equal to zero, it is ignored.\n         *  This field is not used for passphrases.\n         */\n        this.numberCount = 0;\n        /** When this is true, at least one digit must be part of the generated\n         *  password. This field is not used for passphrases.\n         */\n        this.useSpecial = false;\n        /** The quantity of special characters to include in the generated\n         *  password. When this is less than or equal to zero, it is ignored.\n         *  This field is not used for passphrases.\n         */\n        this.specialCount = 0;\n        /** The minimum number of words required by generated passphrases.\n         *  This field is not used for passwords.\n         */\n        this.minNumberWords = 0;\n        /** When this is true, the first letter of each word in the passphrase\n         *  is capitalized. This field is not used for passwords.\n         */\n        this.capitalize = false;\n        /** When this is true, a number is included within the passphrase.\n         *  This field is not used for passwords.\n         */\n        this.includeNumber = false;\n    }\n    /** Checks whether the policy affects the password generator.\n     * @returns True if at least one password or passphrase requirement has been set.\n     * If it returns False, then no requirements have been set and the policy should\n     * not be enforced.\n     */\n    inEffect() {\n        return (this.overridePasswordType ||\n            this.minLength > 0 ||\n            this.numberCount > 0 ||\n            this.specialCount > 0 ||\n            this.useUppercase ||\n            this.useLowercase ||\n            this.useNumbers ||\n            this.useSpecial ||\n            this.minNumberWords > 0 ||\n            this.capitalize ||\n            this.includeNumber);\n    }\n    /** Creates a copy of the policy.\n     */\n    clone() {\n        const policy = new PasswordGeneratorPolicyOptions();\n        Object.assign(policy, this);\n        return policy;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5744 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/password-generator-policy-options.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/policy.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/policy.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Policy: () => (/* binding */ Policy)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _data_policy_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data/policy.data */ \"../../libs/common/src/admin-console/models/data/policy.data.ts\");\n\n\nclass Policy extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.id = obj.id;\n        this.organizationId = obj.organizationId;\n        this.type = obj.type;\n        this.data = obj.data;\n        this.enabled = obj.enabled;\n    }\n    static fromResponse(response) {\n        return new Policy(new _data_policy_data__WEBPACK_IMPORTED_MODULE_1__.PolicyData(response));\n    }\n    static fromListResponse(response) {\n        var _a, _b;\n        return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.map((d) => Policy.fromResponse(d))) !== null && _b !== void 0 ? _b : undefined;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbG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cblxuICAgIHRoaXMuaWQgPSBvYmouaWQ7XG4gICAgdGhpcy5vcmdhbml6YXRpb25JZCA9IG9iai5vcmdhbml6YXRpb25JZDtcbiAgICB0aGlzLnR5cGUgPSBvYmoudHlwZTtcbiAgICB0aGlzLmRhdGEgPSBvYmouZGF0YTtcbiAgICB0aGlzLmVuYWJsZWQgPSBvYmouZW5hYmxlZDtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tUmVzcG9uc2UocmVzcG9uc2U6IFBvbGljeVJlc3BvbnNlKTogUG9saWN5IHtcbiAgICByZXR1cm4gbmV3IFBvbGljeShuZXcgUG9saWN5RGF0YShyZXNwb25zZSkpO1xuICB9XG5cbiAgc3RhdGljIGZyb21MaXN0UmVzcG9uc2UocmVzcG9uc2U6IExpc3RSZXNwb25zZTxQb2xpY3lSZXNwb25zZT4pOiBQb2xpY3lbXSB8IHVuZGVmaW5lZCB7XG4gICAgcmV0dXJuIHJlc3BvbnNlLmRhdGE/Lm1hcCgoZCkgPT4gUG9saWN5LmZyb21SZXNwb25zZShkKSkgPz8gdW5kZWZpbmVkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/policy.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/provider.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/provider.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Provider: () => (/* binding */ Provider)\n/* harmony export */ });\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n\nclass Provider {\n    constructor(obj) {\n        if (obj == null) {\n            return;\n        }\n        this.id = obj.id;\n        this.name = obj.name;\n        this.status = obj.status;\n        this.type = obj.type;\n        this.enabled = obj.enabled;\n        this.userId = obj.userId;\n        this.useEvents = obj.useEvents;\n        this.providerStatus = obj.providerStatus;\n    }\n    get canAccess() {\n        if (this.isProviderAdmin) {\n            return true;\n        }\n        return this.enabled && this.status === _enums__WEBPACK_IMPORTED_MODULE_0__.ProviderUserStatusType.Confirmed;\n    }\n    get canCreateOrganizations() {\n        return this.enabled && this.isProviderAdmin;\n    }\n    get canManageUsers() {\n        return this.isProviderAdmin;\n    }\n    get canAccessEventLogs() {\n        return this.isProviderAdmin;\n    }\n    get isProviderAdmin() {\n        return this.type === _enums__WEBPACK_IMPORTED_MODULE_0__.ProviderUserType.ProviderAdmin;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RvbWFpbi9wcm92aWRlci50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUEyRjtBQUdwRixNQUFNLFFBQVE7SUFVbkIsWUFBWSxHQUFrQjtRQUM1QixJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNoQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxFQUFFLEdBQUcsR0FBRyxDQUFDLEVBQUUsQ0FBQztRQUNqQixJQUFJLENBQUMsSUFBSSxHQUFHLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDckIsSUFBSSxDQUFDLE1BQU0sR0FBRyxHQUFHLENBQUMsTUFBTSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNyQixJQUFJLENBQUMsT0FBTyxHQUFHLEdBQUcsQ0FBQyxPQUFPLENBQUM7UUFDM0IsSUFBSSxDQUFDLE1BQU0sR0FBRyxHQUFHLENBQUMsTUFBTSxDQUFDO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MuZW5hYmxlZCAmJiB0aGlzLmlzUHJvdmlkZXJBZG1pbjtcbiAgfVxuXG4gIGdldCBjYW5NYW5hZ2VVc2VycygpIHtcbiAgICByZXR1cm4gdGhpcy5pc1Byb3ZpZGVyQWRtaW47XG4gIH1cblxuICBnZXQgY2FuQWNjZXNzRXZlbnRMb2dzKCkge1xuICAgIHJldHVybiB0aGlzLmlzUHJvdmlkZXJBZG1pbjtcbiAgfVxuXG4gIGdldCBpc1Byb3ZpZGVyQWRtaW4oKSB7XG4gICAgcmV0dXJuIHRoaXMudHlwZSA9PT0gUHJvdmlkZXJVc2VyVHlwZS5Qcm92aWRlckFkbWluO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/domain/reset-password-policy-options.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/domain/reset-password-policy-options.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ResetPasswordPolicyOptions: () => (/* binding */ ResetPasswordPolicyOptions)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n\nclass ResetPasswordPolicyOptions extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor() {\n        super(...arguments);\n        this.autoEnrollEnabled = false;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RvbWFpbi9yZXNldC1wYXNzd29yZC1wb2xpY3ktb3B0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFpRTtBQUUxRCxNQUFNLDBCQUEyQixTQUFRLDJFQUFNO0lBQXREOztRQUNFLHNCQUFpQixHQUFHLEtBQUssQ0FBQztJQUM1QixDQUFDO0NBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvZG9tYWluL3Jlc2V0LXBhc3N3b3JkLXBvbGljeS1vcHRpb25zLnRzP2FhMWMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERvbWFpbiBmcm9tIFwiLi4vLi4vLi4vcGxhdGZvcm0vbW9kZWxzL2RvbWFpbi9kb21haW4tYmFzZVwiO1xuXG5leHBvcnQgY2xhc3MgUmVzZXRQYXNzd29yZFBvbGljeU9wdGlvbnMgZXh0ZW5kcyBEb21haW4ge1xuICBhdXRvRW5yb2xsRW5hYmxlZCA9IGZhbHNlO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/domain/reset-password-policy-options.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/request/selection-read-only.request.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/request/selection-read-only.request.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SelectionReadOnlyRequest: () => (/* binding */ SelectionReadOnlyRequest)\n/* harmony export */ });\nclass SelectionReadOnlyRequest {\n    constructor(id, readOnly, hidePasswords, manage) {\n        this.id = id;\n        this.readOnly = readOnly;\n        this.hidePasswords = hidePasswords;\n        this.manage = manage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oaXMuaGlkZVBhc3N3b3JkcyA9IGhpZGVQYXNzd29yZHM7XG4gICAgdGhpcy5tYW5hZ2UgPSBtYW5hZ2U7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/request/selection-read-only.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization-api-key-information.response.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization-api-key-information.response.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationApiKeyInformationResponse: () => (/* binding */ OrganizationApiKeyInformationResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationApiKeyInformationResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.keyType = this.getResponseProperty(\"KeyType\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1hcGkta2V5LWluZm9ybWF0aW9uLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRy9ELE1BQU0scUNBQXNDLFNBQVEsd0VBQVk7SUFHckUsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUNyRCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2Uvb3JnYW5pemF0aW9uLWFwaS1rZXktaW5mb3JtYXRpb24ucmVzcG9uc2UudHM/YTk0ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcbmltcG9ydCB7IE9yZ2FuaXphdGlvbkFwaUtleVR5cGUgfSBmcm9tIFwiLi4vLi4vZW51bXNcIjtcblxuZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvbkFwaUtleUluZm9ybWF0aW9uUmVzcG9uc2UgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICBrZXlUeXBlOiBPcmdhbml6YXRpb25BcGlLZXlUeXBlO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5rZXlUeXBlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiS2V5VHlwZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization-api-key-information.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization-auto-enroll-status.response.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization-auto-enroll-status.response.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationAutoEnrollStatusResponse: () => (/* binding */ OrganizationAutoEnrollStatusResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationAutoEnrollStatusResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.resetPasswordEnabled = this.getResponseProperty(\"ResetPasswordEnabled\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1hdXRvLWVucm9sbC1zdGF0dXMucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSxvQ0FBcUMsU0FBUSx3RUFBWTtJQUlwRSxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3pDLElBQUksQ0FBQyxvQkFBb0IsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsc0JBQXNCLENBQUMsQ0FBQztJQUMvRSxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2Uvb3JnYW5pemF0aW9uLWF1dG8tZW5yb2xsLXN0YXR1cy5yZXNwb25zZS50cz9mN2Y5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgT3JnYW5pemF0aW9uQXV0b0Vucm9sbFN0YXR1c1Jlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgaWQ6IHN0cmluZztcbiAgcmVzZXRQYXNzd29yZEVuYWJsZWQ6IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IGFueSkge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICB0aGlzLmlkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiSWRcIik7XG4gICAgdGhpcy5yZXNldFBhc3N3b3JkRW5hYmxlZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlJlc2V0UGFzc3dvcmRFbmFibGVkXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization-auto-enroll-status.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization-connection.response.ts":
/*!***********************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization-connection.response.ts ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationConnectionResponse: () => (/* binding */ OrganizationConnectionResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationConnectionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response, configType) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.organizationId = this.getResponseProperty(\"OrganizationId\");\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        const rawConfig = this.getResponseProperty(\"Config\");\n        this.config = rawConfig == null ? null : new configType(rawConfig);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1jb25uZWN0aW9uLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQ3NFO0FBTy9ELE1BQU0sOEJBRVgsU0FBUSx3RUFBWTtJQU9wQixZQUFZLFFBQWEsRUFBRSxVQUE0QztRQUNyRSxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDekMsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDN0MsSUFBSSxDQUFDLGNBQWMsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUNqRSxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUNuRCxNQUFNLFNBQVMsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDckQsSUFBSSxDQUFDLE1BQU0sR0FBRyxTQUFTLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksVU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ZWN0aW9uVHlwZTtcbiAgb3JnYW5pemF0aW9uSWQ6IHN0cmluZztcbiAgZW5hYmxlZDogYm9vbGVhbjtcbiAgY29uZmlnOiBUQ29uZmlnO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnksIGNvbmZpZ1R5cGU6IHsgbmV3IChyZXNwb25zZTogYW55KTogVENvbmZpZyB9KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuaWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJJZFwiKTtcbiAgICB0aGlzLnR5cGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUeXBlXCIpO1xuICAgIHRoaXMub3JnYW5pemF0aW9uSWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJPcmdhbml6YXRpb25JZFwiKTtcbiAgICB0aGlzLmVuYWJsZWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJFbmFibGVkXCIpO1xuICAgIGNvbnN0IHJhd0NvbmZpZyA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkNvbmZpZ1wiKTtcbiAgICB0aGlzLmNvbmZpZyA9IHJhd0NvbmZpZyA9PSBudWxsID8gbnVsbCA6IG5ldyBjb25maWdUeXBlKHJhd0NvbmZpZyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization-connection.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization-export.response.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization-export.response.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationExportResponse: () => (/* binding */ OrganizationExportResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../vault/models/response/cipher.response */ \"../../libs/common/src/vault/models/response/cipher.response.ts\");\n\n\n\nclass OrganizationExportResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_1__.BaseResponse {\n    constructor(response) {\n        super(response);\n        const collections = this.getResponseProperty(\"Collections\");\n        if (collections != null) {\n            this.collections = collections.map((c) => new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionResponse(c));\n        }\n        const ciphers = this.getResponseProperty(\"Ciphers\");\n        if (ciphers != null) {\n            this.ciphers = ciphers.map((c) => new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_2__.CipherResponse(c));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1leHBvcnQucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFxRTtBQUVDO0FBQ1U7QUFFekUsTUFBTSwwQkFBMkIsU0FBUSx3RUFBWTtJQUkxRCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLE1BQU0sV0FBVyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUM1R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SBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIGNvbGxlY3Rpb25zOiBDb2xsZWN0aW9uUmVzcG9uc2VbXTtcbiAgY2lwaGVyczogQ2lwaGVyUmVzcG9uc2VbXTtcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIGNvbnN0IGNvbGxlY3Rpb25zID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ29sbGVjdGlvbnNcIik7XG4gICAgaWYgKGNvbGxlY3Rpb25zICE9IG51bGwpIHtcbiAgICAgIHRoaXMuY29sbGVjdGlvbnMgPSBjb2xsZWN0aW9ucy5tYXAoKGM6IGFueSkgPT4gbmV3IENvbGxlY3Rpb25SZXNwb25zZShjKSk7XG4gICAgfVxuICAgIGNvbnN0IGNpcGhlcnMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJDaXBoZXJzXCIpO1xuICAgIGlmIChjaXBoZXJzICE9IG51bGwpIHtcbiAgICAgIHRoaXMuY2lwaGVycyA9IGNpcGhlcnMubWFwKChjOiBhbnkpID0+IG5ldyBDaXBoZXJSZXNwb25zZShjKSk7XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization-export.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization-keys.response.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization-keys.response.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationKeysResponse: () => (/* binding */ OrganizationKeysResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_keys_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/keys.response */ \"../../libs/common/src/models/response/keys.response.ts\");\n\nclass OrganizationKeysResponse extends _models_response_keys_response__WEBPACK_IMPORTED_MODULE_0__.KeysResponse {\n    constructor(response) {\n        super(response);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1rZXlzLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRS9ELE1BQU0sd0JBQXlCLFNBQVEsd0VBQVk7SUFDeEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNsQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2Uvb3JnYW5pemF0aW9uLWtleXMucmVzcG9uc2UudHM/YjIwYyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBLZXlzUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2tleXMucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIE9yZ2FuaXphdGlvbktleXNSZXNwb25zZSBleHRlbmRzIEtleXNSZXNwb25zZSB7XG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization-keys.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization-sponsorship-sync-status.response.ts":
/*!************************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization-sponsorship-sync-status.response.ts ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationSponsorshipSyncStatusResponse: () => (/* binding */ OrganizationSponsorshipSyncStatusResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass OrganizationSponsorshipSyncStatusResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        const lastSyncDate = this.getResponseProperty(\"LastSyncDate\");\n        if (lastSyncDate) {\n            this.lastSyncDate = new Date(lastSyncDate);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1zcG9uc29yc2hpcC1zeW5jLXN0YXR1cy5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFzRTtBQUUvRCxNQUFNLHlDQUEwQyxTQUFRLHdFQUFZO0lBR3pFLFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsTUFBTSxZQUFZLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGNBQWMsQ0FBQyxDQUFDO1FBQzlELElBQUksWUFBWSxFQUFFLENBQUM7WUFDakIsSUFBSSxDQUFDLFlBQVksR0FBRyxJQUFJLElBQUksQ0FBQyxZQUFZLENBQUMsQ0FBQztRQUM3QyxDQUFDO0lBQ0gsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1zcG9uc29yc2hpcC1zeW5jLXN0YXR1cy5yZXNwb25zZS50cz9mNmZhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgT3JnYW5pemF0aW9uU3BvbnNvcnNoaXBTeW5jU3RhdHVzUmVzcG9uc2UgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICBsYXN0U3luY0RhdGU/OiBEYXRlO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgY29uc3QgbGFzdFN5bmNEYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiTGFzdFN5bmNEYXRlXCIpO1xuICAgIGlmIChsYXN0U3luY0RhdGUpIHtcbiAgICAgIHRoaXMubGFzdFN5bmNEYXRlID0gbmV3IERhdGUobGFzdFN5bmNEYXRlKTtcbiAgICB9XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization-sponsorship-sync-status.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/organization.response.ts":
/*!************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/organization.response.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationResponse: () => (/* binding */ OrganizationResponse)\n/* harmony export */ });\n/* harmony import */ var _billing_models_response_plan_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../billing/models/response/plan.response */ \"../../libs/common/src/billing/models/response/plan.response.ts\");\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\n\nclass OrganizationResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_1__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.businessName = this.getResponseProperty(\"BusinessName\");\n        this.businessAddress1 = this.getResponseProperty(\"BusinessAddress1\");\n        this.businessAddress2 = this.getResponseProperty(\"BusinessAddress2\");\n        this.businessAddress3 = this.getResponseProperty(\"BusinessAddress3\");\n        this.businessCountry = this.getResponseProperty(\"BusinessCountry\");\n        this.businessTaxNumber = this.getResponseProperty(\"BusinessTaxNumber\");\n        this.billingEmail = this.getResponseProperty(\"BillingEmail\");\n        const plan = this.getResponseProperty(\"Plan\");\n        this.plan = plan == null ? null : new _billing_models_response_plan_response__WEBPACK_IMPORTED_MODULE_0__.PlanResponse(plan);\n        this.planType = this.getResponseProperty(\"PlanType\");\n        this.seats = this.getResponseProperty(\"Seats\");\n        this.maxAutoscaleSeats = this.getResponseProperty(\"MaxAutoscaleSeats\");\n        this.maxCollections = this.getResponseProperty(\"MaxCollections\");\n        this.maxStorageGb = this.getResponseProperty(\"MaxStorageGb\");\n        this.useGroups = this.getResponseProperty(\"UseGroups\");\n        this.useDirectory = this.getResponseProperty(\"UseDirectory\");\n        this.useEvents = this.getResponseProperty(\"UseEvents\");\n        this.useTotp = this.getResponseProperty(\"UseTotp\");\n        this.use2fa = this.getResponseProperty(\"Use2fa\");\n        this.useApi = this.getResponseProperty(\"UseApi\");\n        this.useResetPassword = this.getResponseProperty(\"UseResetPassword\");\n        this.useSecretsManager = this.getResponseProperty(\"UseSecretsManager\");\n        this.hasPublicAndPrivateKeys = this.getResponseProperty(\"HasPublicAndPrivateKeys\");\n        this.usePasswordManager = this.getResponseProperty(\"UsePasswordManager\");\n        this.smSeats = this.getResponseProperty(\"SmSeats\");\n        this.smServiceAccounts = this.getResponseProperty(\"SmServiceAccounts\");\n        this.maxAutoscaleSmSeats = this.getResponseProperty(\"MaxAutoscaleSmSeats\");\n        this.maxAutoscaleSmServiceAccounts = this.getResponseProperty(\"MaxAutoscaleSmServiceAccounts\");\n        this.limitCollectionCreation = this.getResponseProperty(\"LimitCollectionCreation\");\n        this.limitCollectionDeletion = this.getResponseProperty(\"LimitCollectionDeletion\");\n        // Deprecated: https://bitwarden.atlassian.net/browse/PM-10863\n        this.limitCollectionCreationDeletion = this.getResponseProperty(\"LimitCollectionCreationDeletion\");\n        this.allowAdminAccessToAllCollectionItems = this.getResponseProperty(\"AllowAdminAccessToAllCollectionItems\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8796 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/organization.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/policy.response.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/policy.response.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PolicyResponse: () => (/* binding */ PolicyResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass PolicyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        var _a;\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.organizationId = this.getResponseProperty(\"OrganizationId\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.data = this.getResponseProperty(\"Data\");\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.canToggleState = (_a = this.getResponseProperty(\"CanToggleState\")) !== null && _a !== void 0 ? _a : true;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3BvbGljeS5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFzRTtBQUkvRCxNQUFNLGNBQWUsU0FBUSx3RUFBWTtJQVE5QyxZQUFZLFFBQWE7O1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ2pFLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ25ELElBQUksQ0FBQyxjQUFjLEdBQUcsVUFBSSxDQUFDLG1CQUFtQixDQUFDLGdCQUFnQixDQUFDLG1DQUFJLElBQUksQ0FBQztJQUMzRSxDQUFDO0NBQ0YiL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m9wZXJ0eShcIkVuYWJsZWRcIik7XG4gICAgdGhpcy5jYW5Ub2dnbGVTdGF0ZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkNhblRvZ2dsZVN0YXRlXCIpID8/IHRydWU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/policy.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/profile-organization.response.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/profile-organization.response.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProfileOrganizationResponse: () => (/* binding */ ProfileOrganizationResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _api_permissions_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/permissions.api */ \"../../libs/common/src/admin-console/models/api/permissions.api.ts\");\n\n\nclass ProfileOrganizationResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        var _a, _b, _c, _d;\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.usePolicies = this.getResponseProperty(\"UsePolicies\");\n        this.useGroups = this.getResponseProperty(\"UseGroups\");\n        this.useDirectory = this.getResponseProperty(\"UseDirectory\");\n        this.useEvents = this.getResponseProperty(\"UseEvents\");\n        this.useTotp = this.getResponseProperty(\"UseTotp\");\n        this.use2fa = this.getResponseProperty(\"Use2fa\");\n        this.useApi = this.getResponseProperty(\"UseApi\");\n        this.useSso = this.getResponseProperty(\"UseSso\");\n        this.useKeyConnector = (_a = this.getResponseProperty(\"UseKeyConnector\")) !== null && _a !== void 0 ? _a : false;\n        this.useScim = (_b = this.getResponseProperty(\"UseScim\")) !== null && _b !== void 0 ? _b : false;\n        this.useCustomPermissions = (_c = this.getResponseProperty(\"UseCustomPermissions\")) !== null && _c !== void 0 ? _c : false;\n        this.useResetPassword = this.getResponseProperty(\"UseResetPassword\");\n        this.useSecretsManager = this.getResponseProperty(\"UseSecretsManager\");\n        this.usePasswordManager = this.getResponseProperty(\"UsePasswordManager\");\n        this.useActivateAutofillPolicy = this.getResponseProperty(\"UseActivateAutofillPolicy\");\n        this.selfHost = this.getResponseProperty(\"SelfHost\");\n        this.usersGetPremium = this.getResponseProperty(\"UsersGetPremium\");\n        this.seats = this.getResponseProperty(\"Seats\");\n        this.maxCollections = this.getResponseProperty(\"MaxCollections\");\n        this.maxStorageGb = this.getResponseProperty(\"MaxStorageGb\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.hasPublicAndPrivateKeys = this.getResponseProperty(\"HasPublicAndPrivateKeys\");\n        this.status = this.getResponseProperty(\"Status\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.ssoBound = this.getResponseProperty(\"SsoBound\");\n        this.identifier = this.getResponseProperty(\"Identifier\");\n        this.permissions = new _api_permissions_api__WEBPACK_IMPORTED_MODULE_1__.PermissionsApi(this.getResponseProperty(\"permissions\"));\n        this.resetPasswordEnrolled = this.getResponseProperty(\"ResetPasswordEnrolled\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.organizationUserId = this.getResponseProperty(\"OrganizationUserId\");\n        this.providerId = this.getResponseProperty(\"ProviderId\");\n        this.providerName = this.getResponseProperty(\"ProviderName\");\n        this.providerType = this.getResponseProperty(\"ProviderType\");\n        this.familySponsorshipFriendlyName = this.getResponseProperty(\"FamilySponsorshipFriendlyName\");\n        this.familySponsorshipAvailable = this.getResponseProperty(\"FamilySponsorshipAvailable\");\n        this.productTierType = this.getResponseProperty(\"ProductTierType\");\n        this.keyConnectorEnabled = (_d = this.getResponseProperty(\"KeyConnectorEnabled\")) !== null && _d !== void 0 ? _d : false;\n        this.keyConnectorUrl = this.getResponseProperty(\"KeyConnectorUrl\");\n        const familySponsorshipLastSyncDateString = this.getResponseProperty(\"FamilySponsorshipLastSyncDate\");\n        if (familySponsorshipLastSyncDateString) {\n            this.familySponsorshipLastSyncDate = new Date(familySponsorshipLastSyncDateString);\n        }\n        const familySponsorshipValidUntilString = this.getResponseProperty(\"FamilySponsorshipValidUntil\");\n        if (familySponsorshipValidUntilString) {\n            this.familySponsorshipValidUntil = new Date(familySponsorshipValidUntilString);\n        }\n        this.familySponsorshipToDelete = this.getResponseProperty(\"FamilySponsorshipToDelete\");\n        this.accessSecretsManager = this.getResponseProperty(\"AccessSecretsManager\");\n        this.limitCollectionCreation = this.getResponseProperty(\"LimitCollectionCreation\");\n        this.limitCollectionDeletion = this.getResponseProperty(\"LimitCollectionDeletion\");\n        // Deprecated: https://bitwarden.atlassian.net/browse/PM-10863\n        this.limitCollectionCreationDeletion = this.getResponseProperty(\"LimitCollectionCreationDeletion\");\n        this.allowAdminAccessToAllCollectionItems = this.getResponseProperty(\"AllowAdminAccessToAllCollectionItems\");\n        this.userIsManagedByOrganization = this.getResponseProperty(\"UserIsManagedByOrganization\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13464 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/profile-organization.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/profile-provider-organization.response.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/profile-provider-organization.response.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProfileProviderOrganizationResponse: () => (/* binding */ ProfileProviderOrganizationResponse)\n/* harmony export */ });\n/* harmony import */ var _profile_organization_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./profile-organization.response */ \"../../libs/common/src/admin-console/models/response/profile-organization.response.ts\");\n\nclass ProfileProviderOrganizationResponse extends _profile_organization_response__WEBPACK_IMPORTED_MODULE_0__.ProfileOrganizationResponse {\n    constructor(response) {\n        super(response);\n        this.keyConnectorEnabled = false;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb2ZpbGUtcHJvdmlkZXItb3JnYW5pemF0aW9uLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQThFO0FBRXZFLE1BQU0sbUNBQW9DLFNBQVEsdUZBQTJCO0lBQ2xGLFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLG1CQUFtQixHQUFHLEtBQUssQ0FBQztJQUNuQyxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2UvcHJvZmlsZS1wcm92aWRlci1vcmdhbml6YXRpb24ucmVzcG9uc2UudHM/YTQzOSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm9maWxlT3JnYW5pemF0aW9uUmVzcG9uc2UgfSBmcm9tIFwiLi9wcm9maWxlLW9yZ2FuaXphdGlvbi5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgUHJvZmlsZVByb3ZpZGVyT3JnYW5pemF0aW9uUmVzcG9uc2UgZXh0ZW5kcyBQcm9maWxlT3JnYW5pemF0aW9uUmVzcG9uc2Uge1xuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMua2V5Q29ubmVjdG9yRW5hYmxlZCA9IGZhbHNlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/profile-provider-organization.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/profile-provider.response.ts":
/*!****************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/profile-provider.response.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProfileProviderResponse: () => (/* binding */ ProfileProviderResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _api_permissions_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/permissions.api */ \"../../libs/common/src/admin-console/models/api/permissions.api.ts\");\n\n\nclass ProfileProviderResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.status = this.getResponseProperty(\"Status\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.permissions = new _api_permissions_api__WEBPACK_IMPORTED_MODULE_1__.PermissionsApi(this.getResponseProperty(\"permissions\"));\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.useEvents = this.getResponseProperty(\"UseEvents\");\n        this.providerStatus = this.getResponseProperty(\"ProviderStatus\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb2ZpbGUtcHJvdmlkZXIucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQXNFO0FBRWQ7QUFFakQsTUFBTSx1QkFBd0IsU0FBUSx3RUFBWTtJQVl2RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3pDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzNDLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ25ELElBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSxnRUFBYyxDQUFDLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDO1FBQy9FLElBQUksQ0FBQyxNQUFNLEdBQUcsSU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ile-provider.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/provider/provider-organization.response.ts":
/*!******************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/provider/provider-organization.response.ts ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderOrganizationOrganizationDetailsResponse: () => (/* binding */ ProviderOrganizationOrganizationDetailsResponse),\n/* harmony export */   ProviderOrganizationResponse: () => (/* binding */ ProviderOrganizationResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass ProviderOrganizationResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.providerId = this.getResponseProperty(\"ProviderId\");\n        this.organizationId = this.getResponseProperty(\"OrganizationId\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.settings = this.getResponseProperty(\"Settings\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n        this.revisionDate = this.getResponseProperty(\"RevisionDate\");\n        this.userCount = this.getResponseProperty(\"UserCount\");\n        this.seats = this.getResponseProperty(\"Seats\");\n        this.occupiedSeats = this.getResponseProperty(\"OccupiedSeats\");\n        this.remainingSeats = this.getResponseProperty(\"RemainingSeats\");\n        this.plan = this.getResponseProperty(\"Plan\");\n    }\n}\nclass ProviderOrganizationOrganizationDetailsResponse extends ProviderOrganizationResponse {\n    constructor(response) {\n        super(response);\n        this.organizationName = this.getResponseProperty(\"OrganizationName\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21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nJlbWFpbmluZ1NlYXRzID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUmVtYWluaW5nU2VhdHNcIik7XG4gICAgdGhpcy5wbGFuID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUGxhblwiKTtcbiAgfVxufVxuXG5leHBvcnQgY2xhc3MgUHJvdmlkZXJPcmdhbml6YXRpb25Pcmdhbml6YXRpb25EZXRhaWxzUmVzcG9uc2UgZXh0ZW5kcyBQcm92aWRlck9yZ2FuaXphdGlvblJlc3BvbnNlIHtcbiAgb3JnYW5pemF0aW9uTmFtZTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5vcmdhbml6YXRpb25OYW1lID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiT3JnYW5pemF0aW9uTmFtZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/provider/provider-organization.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/provider/provider-user-bulk-public-key.response.ts":
/*!**************************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/provider/provider-user-bulk-public-key.response.ts ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderUserBulkPublicKeyResponse: () => (/* binding */ ProviderUserBulkPublicKeyResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n\nclass ProviderUserBulkPublicKeyResponse extends _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserBulkPublicKeyResponse {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb3ZpZGVyL3Byb3ZpZGVyLXVzZXItYnVsay1wdWJsaWMta2V5LnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXdGO0FBRWpGLE1BQU0saUNBQWtDLFNBQVEsa0dBQXFDO0NBQUciLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYWRtaW4tY29uc29sZS9tb2RlbHMvcmVzcG9uc2UvcHJvdmlkZXIvcHJvdmlkZXItdXNlci1idWxrLXB1YmxpYy1rZXkucmVzcG9uc2UudHM/ZmExYyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcmdhbml6YXRpb25Vc2VyQnVsa1B1YmxpY0tleVJlc3BvbnNlIH0gZnJvbSBcIkBiaXR3YXJkZW4vYWRtaW4tY29uc29sZS9jb21tb25cIjtcblxuZXhwb3J0IGNsYXNzIFByb3ZpZGVyVXNlckJ1bGtQdWJsaWNLZXlSZXNwb25zZSBleHRlbmRzIE9yZ2FuaXphdGlvblVzZXJCdWxrUHVibGljS2V5UmVzcG9uc2Uge31cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/provider/provider-user-bulk-public-key.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/provider/provider-user-bulk.response.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/provider/provider-user-bulk.response.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderUserBulkResponse: () => (/* binding */ ProviderUserBulkResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass ProviderUserBulkResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.error = this.getResponseProperty(\"Error\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb3ZpZGVyL3Byb3ZpZGVyLXVzZXItYnVsay5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUF5RTtBQUVsRSxNQUFNLHdCQUF5QixTQUFRLHdFQUFZO0lBSXhELFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDekMsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDakQsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb3ZpZGVyL3Byb3ZpZGVyLXVzZXItYnVsay5yZXNwb25zZS50cz84YjU4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgUHJvdmlkZXJVc2VyQnVsa1Jlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgaWQ6IHN0cmluZztcbiAgZXJyb3I6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuaWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJJZFwiKTtcbiAgICB0aGlzLmVycm9yID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiRXJyb3JcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/provider/provider-user-bulk.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/provider/provider-user.response.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/provider/provider-user.response.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderUserResponse: () => (/* binding */ ProviderUserResponse),\n/* harmony export */   ProviderUserUserDetailsResponse: () => (/* binding */ ProviderUserUserDetailsResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _api_permissions_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../api/permissions.api */ \"../../libs/common/src/admin-console/models/api/permissions.api.ts\");\n\n\nclass ProviderUserResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.status = this.getResponseProperty(\"Status\");\n        this.permissions = new _api_permissions_api__WEBPACK_IMPORTED_MODULE_1__.PermissionsApi(this.getResponseProperty(\"Permissions\"));\n    }\n}\nclass ProviderUserUserDetailsResponse extends ProviderUserResponse {\n    constructor(response) {\n        super(response);\n        this.name = this.getResponseProperty(\"Name\");\n        this.email = this.getResponseProperty(\"Email\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb3ZpZGVyL3Byb3ZpZGVyLXVzZXIucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUF5RTtBQUVkO0FBRXBELE1BQU0sb0JBQXFCLFNBQVEsd0VBQVk7SUFPcEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNqRCxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNqRCxJQUFJLENBQUMsV0FBVyxHQUFHL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ZGVyVXNlclN0YXR1c1R5cGU7XG4gIHBlcm1pc3Npb25zOiBQZXJtaXNzaW9uc0FwaTtcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuaWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJJZFwiKTtcbiAgICB0aGlzLnVzZXJJZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlVzZXJJZFwiKTtcbiAgICB0aGlzLnR5cGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUeXBlXCIpO1xuICAgIHRoaXMuc3RhdHVzID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiU3RhdHVzXCIpO1xuICAgIHRoaXMucGVybWlzc2lvbnMgPSBuZXcgUGVybWlzc2lvbnNBcGkodGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUGVybWlzc2lvbnNcIikpO1xuICB9XG59XG5cbmV4cG9ydCBjbGFzcyBQcm92aWRlclVzZXJVc2VyRGV0YWlsc1Jlc3BvbnNlIGV4dGVuZHMgUHJvdmlkZXJVc2VyUmVzcG9uc2Uge1xuICBuYW1lOiBzdHJpbmc7XG4gIGVtYWlsOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IGFueSkge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICB0aGlzLm5hbWUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJOYW1lXCIpO1xuICAgIHRoaXMuZW1haWwgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJFbWFpbFwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/provider/provider-user.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/provider/provider.response.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/provider/provider.response.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderResponse: () => (/* binding */ ProviderResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass ProviderResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.businessName = this.getResponseProperty(\"BusinessName\");\n        this.billingEmail = this.getResponseProperty(\"BillingEmail\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n        this.type = this.getResponseProperty(\"Type\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3Byb3ZpZGVyL3Byb3ZpZGVyLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXlFO0FBR2xFLE1BQU0sZ0JBQWlCLFNBQVEsd0VBQVk7SUFRaEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQU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BvbnNlUHJvcGVydHkoXCJJZFwiKTtcbiAgICB0aGlzLm5hbWUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJOYW1lXCIpO1xuICAgIHRoaXMuYnVzaW5lc3NOYW1lID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQnVzaW5lc3NOYW1lXCIpO1xuICAgIHRoaXMuYmlsbGluZ0VtYWlsID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQmlsbGluZ0VtYWlsXCIpO1xuICAgIHRoaXMuY3JlYXRpb25EYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ3JlYXRpb25EYXRlXCIpO1xuICAgIHRoaXMudHlwZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlR5cGVcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/provider/provider.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/models/response/selection-read-only.response.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/models/response/selection-read-only.response.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SelectionReadOnlyResponse: () => (/* binding */ SelectionReadOnlyResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SelectionReadOnlyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.readOnly = this.getResponseProperty(\"ReadOnly\");\n        this.hidePasswords = this.getResponseProperty(\"HidePasswords\");\n        this.manage = this.getResponseProperty(\"Manage\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2FkbWluLWNvbnNvbGUvbW9kZWxzL3Jlc3BvbnNlL3NlbGVjdGlvbi1yZWFkLW9ubHkucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSx5QkFBMEIsU0FBUSx3RUFBWTtJQU16RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3pDLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ3JELElBQUksQ0FBQyxhQUFhLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGVBQWUsQ0FBQyxDQUFDO1FBQy9ELElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ25ELENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hZG1pbi1jb25zb2xlL21vZGVscy9yZXNwb25zZS9zZWxlY3Rpb24tcmVhZC1vbmx5LnJlc3BvbnNlLnRzPzBiMWYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBTZWxlY3Rpb25SZWFkT25seVJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgaWQ6IHN0cmluZztcbiAgcmVhZE9ubHk6IGJvb2xlYW47XG4gIGhpZGVQYXNzd29yZHM6IGJvb2xlYW47XG4gIG1hbmFnZTogYm9vbGVhbjtcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuaWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJJZFwiKTtcbiAgICB0aGlzLnJlYWRPbmx5ID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUmVhZE9ubHlcIik7XG4gICAgdGhpcy5oaWRlUGFzc3dvcmRzID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiSGlkZVBhc3N3b3Jkc1wiKTtcbiAgICB0aGlzLm1hbmFnZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIk1hbmFnZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/models/response/selection-read-only.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/services/organization/organization-api.service.ts":
/*!*********************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/services/organization/organization-api.service.ts ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationApiService: () => (/* binding */ OrganizationApiService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_billing_models_response_billing_history_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/billing/models/response/billing-history.response */ \"../../libs/common/src/billing/models/response/billing-history.response.ts\");\n/* harmony import */ var _auth_models_response_api_key_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../auth/models/response/api-key.response */ \"../../libs/common/src/auth/models/response/api-key.response.ts\");\n/* harmony import */ var _auth_models_response_organization_sso_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../auth/models/response/organization-sso.response */ \"../../libs/common/src/auth/models/response/organization-sso.response.ts\");\n/* harmony import */ var _billing_models_response_billing_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../billing/models/response/billing.response */ \"../../libs/common/src/billing/models/response/billing.response.ts\");\n/* harmony import */ var _billing_models_response_organization_subscription_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../billing/models/response/organization-subscription.response */ \"../../libs/common/src/billing/models/response/organization-subscription.response.ts\");\n/* harmony import */ var _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../billing/models/response/payment.response */ \"../../libs/common/src/billing/models/response/payment.response.ts\");\n/* harmony import */ var _billing_models_response_tax_info_response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../billing/models/response/tax-info.response */ \"../../libs/common/src/billing/models/response/tax-info.response.ts\");\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _models_response_organization_api_key_information_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../models/response/organization-api-key-information.response */ \"../../libs/common/src/admin-console/models/response/organization-api-key-information.response.ts\");\n/* harmony import */ var _models_response_organization_auto_enroll_status_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../models/response/organization-auto-enroll-status.response */ \"../../libs/common/src/admin-console/models/response/organization-auto-enroll-status.response.ts\");\n/* harmony import */ var _models_response_organization_keys_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../models/response/organization-keys.response */ \"../../libs/common/src/admin-console/models/response/organization-keys.response.ts\");\n/* harmony import */ var _models_response_organization_response__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../models/response/organization.response */ \"../../libs/common/src/admin-console/models/response/organization.response.ts\");\n/* harmony import */ var _models_response_profile_organization_response__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../models/response/profile-organization.response */ \"../../libs/common/src/admin-console/models/response/profile-organization.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass OrganizationApiService {\n    constructor(apiService, syncService) {\n        this.apiService = apiService;\n        this.syncService = syncService;\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id, null, true, true);\n            return new _models_response_organization_response__WEBPACK_IMPORTED_MODULE_11__.OrganizationResponse(r);\n        });\n    }\n    getBilling(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id + \"/billing\", null, true, true);\n            return new _billing_models_response_billing_response__WEBPACK_IMPORTED_MODULE_3__.BillingResponse(r);\n        });\n    }\n    getBillingHistory(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id + \"/billing/history\", null, true, true);\n            return new _bitwarden_common_billing_models_response_billing_history_response__WEBPACK_IMPORTED_MODULE_0__.BillingHistoryResponse(r);\n        });\n    }\n    getSubscription(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id + \"/subscription\", null, true, true);\n            return new _billing_models_response_organization_subscription_response__WEBPACK_IMPORTED_MODULE_4__.OrganizationSubscriptionResponse(r);\n        });\n    }\n    getLicense(id, installationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"GET\", \"/organizations/\" + id + \"/license?installationId=\" + installationId, null, true, true);\n        });\n    }\n    getAutoEnrollStatus(identifier) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + identifier + \"/auto-enroll-status\", null, true, true);\n            return new _models_response_organization_auto_enroll_status_response__WEBPACK_IMPORTED_MODULE_9__.OrganizationAutoEnrollStatusResponse(r);\n        });\n    }\n    create(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations\", request, true, true);\n            // Forcing a sync will notify organization service that they need to repull\n            yield this.syncService.fullSync(true);\n            return new _models_response_organization_response__WEBPACK_IMPORTED_MODULE_11__.OrganizationResponse(r);\n        });\n    }\n    createLicense(data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/licenses/self-hosted\", data, true, true);\n            return new _models_response_organization_response__WEBPACK_IMPORTED_MODULE_11__.OrganizationResponse(r);\n        });\n    }\n    save(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/organizations/\" + id, request, true, true);\n            const data = new _models_response_organization_response__WEBPACK_IMPORTED_MODULE_11__.OrganizationResponse(r);\n            yield this.syncService.fullSync(true);\n            return data;\n        });\n    }\n    updatePayment(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"POST\", \"/organizations/\" + id + \"/payment\", request, true, false);\n        });\n    }\n    upgrade(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/upgrade\", request, true, true);\n            return new _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_5__.PaymentResponse(r);\n        });\n    }\n    updatePasswordManagerSeats(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"POST\", \"/organizations/\" + id + \"/subscription\", request, true, false);\n        });\n    }\n    updateSecretsManagerSubscription(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"POST\", \"/organizations/\" + id + \"/sm-subscription\", request, true, false);\n        });\n    }\n    updateSeats(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/seat\", request, true, true);\n            return new _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_5__.PaymentResponse(r);\n        });\n    }\n    updateStorage(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/storage\", request, true, true);\n            return new _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_5__.PaymentResponse(r);\n        });\n    }\n    verifyBank(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/verify-bank\", request, true, false);\n        });\n    }\n    reinstate(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"POST\", \"/organizations/\" + id + \"/reinstate\", null, true, false);\n        });\n    }\n    leave(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/leave\", null, true, false);\n            yield this.syncService.fullSync(true);\n        });\n    }\n    delete(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"DELETE\", \"/organizations/\" + id, request, true, false);\n            yield this.syncService.fullSync(true);\n        });\n    }\n    deleteUsingToken(organizationId, request) {\n        return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/delete-recover-token\", request, false, false);\n    }\n    updateLicense(id, data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", \"/organizations/licenses/self-hosted/\" + id, data, true, false);\n        });\n    }\n    importDirectory(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"POST\", \"/organizations/\" + organizationId + \"/import\", request, true, false);\n        });\n    }\n    getOrCreateApiKey(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/api-key\", request, true, true);\n            return new _auth_models_response_api_key_response__WEBPACK_IMPORTED_MODULE_1__.ApiKeyResponse(r);\n        });\n    }\n    getApiKeyInformation(id_1) {\n        return __awaiter(this, arguments, void 0, function* (id, organizationApiKeyType = null) {\n            const uri = organizationApiKeyType === null\n                ? \"/organizations/\" + id + \"/api-key-information\"\n                : \"/organizations/\" + id + \"/api-key-information/\" + organizationApiKeyType;\n            const r = yield this.apiService.send(\"GET\", uri, null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_7__.ListResponse(r, _models_response_organization_api_key_information_response__WEBPACK_IMPORTED_MODULE_8__.OrganizationApiKeyInformationResponse);\n        });\n    }\n    rotateApiKey(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/rotate-api-key\", request, true, true);\n            return new _auth_models_response_api_key_response__WEBPACK_IMPORTED_MODULE_1__.ApiKeyResponse(r);\n        });\n    }\n    getTaxInfo(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id + \"/tax\", null, true, true);\n            return new _billing_models_response_tax_info_response__WEBPACK_IMPORTED_MODULE_6__.TaxInfoResponse(r);\n        });\n    }\n    updateTaxInfo(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Can't broadcast anything because the response doesn't have content\n            return this.apiService.send(\"PUT\", \"/organizations/\" + id + \"/tax\", request, true, false);\n        });\n    }\n    getKeys(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id + \"/keys\", null, true, true);\n            return new _models_response_organization_keys_response__WEBPACK_IMPORTED_MODULE_10__.OrganizationKeysResponse(r);\n        });\n    }\n    updateKeys(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/keys\", request, true, true);\n            // Not broadcasting anything because data on this response doesn't correspond to `Organization`\n            return new _models_response_organization_keys_response__WEBPACK_IMPORTED_MODULE_10__.OrganizationKeysResponse(r);\n        });\n    }\n    getSso(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + id + \"/sso\", null, true, true);\n            return new _auth_models_response_organization_sso_response__WEBPACK_IMPORTED_MODULE_2__.OrganizationSsoResponse(r);\n        });\n    }\n    updateSso(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/sso\", request, true, true);\n            // Not broadcasting anything because data on this response doesn't correspond to `Organization`\n            return new _auth_models_response_organization_sso_response__WEBPACK_IMPORTED_MODULE_2__.OrganizationSsoResponse(r);\n        });\n    }\n    selfHostedSyncLicense(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", \"/organizations/licenses/self-hosted/\" + id + \"/sync/\", null, true, false);\n        });\n    }\n    subscribeToSecretsManager(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/organizations/\" + id + \"/subscribe-secrets-manager\", request, true, true);\n            return new _models_response_profile_organization_response__WEBPACK_IMPORTED_MODULE_12__.ProfileOrganizationResponse(r);\n        });\n    }\n    updateCollectionManagement(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/organizations/\" + id + \"/collection-management\", request, true, true);\n            const data = new _models_response_organization_response__WEBPACK_IMPORTED_MODULE_11__.OrganizationResponse(r);\n            yield this.syncService.fullSync(true);\n            return data;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 28320 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/services/organization/organization-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/services/organization/organization.service.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/services/organization/organization.service.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ORGANIZATIONS: () => (/* binding */ ORGANIZATIONS),\n/* harmony export */   OrganizationService: () => (/* binding */ OrganizationService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_data_organization_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/data/organization.data */ \"../../libs/common/src/admin-console/models/data/organization.data.ts\");\n/* harmony import */ var _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/domain/organization */ \"../../libs/common/src/admin-console/models/domain/organization.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n/**\n * The `KeyDefinition` for accessing organization lists in application state.\n * @todo Ideally this wouldn't require a `fromJSON()` call, but `OrganizationData`\n * has some properties that contain functions. This should probably get\n * cleaned up.\n */\nconst ORGANIZATIONS = _platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_1__.ORGANIZATIONS_DISK, \"organizations\", {\n    deserializer: (obj) => _models_data_organization_data__WEBPACK_IMPORTED_MODULE_2__.OrganizationData.fromJSON(obj),\n    clearOn: [\"logout\"],\n});\n/**\n * Filter out organizations from an observable that __do not__ offer a\n * families-for-enterprise sponsorship to members.\n * @returns a function that can be used in `Observable<Organization[]>` pipes,\n * like `organizationService.organizations$`\n */\nfunction mapToExcludeOrganizationsWithoutFamilySponsorshipSupport() {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => orgs.filter((o) => o.canManageSponsorships));\n}\n/**\n * Filter out organizations from an observable that the organization user\n * __is not__ a direct member of. This will exclude organizations only\n * accessible as a provider.\n * @returns a function that can be used in `Observable<Organization[]>` pipes,\n * like `organizationService.organizations$`\n */\nfunction mapToExcludeProviderOrganizations() {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => orgs.filter((o) => o.isMember));\n}\n/**\n * Map an observable stream of organizations down to a boolean indicating\n * if any organizations exist (`orgs.length > 0`).\n * @returns a function that can be used in `Observable<Organization[]>` pipes,\n * like `organizationService.organizations$`\n */\nfunction mapToBooleanHasAnyOrganizations() {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => orgs.length > 0);\n}\n/**\n * Map an observable stream of organizations down to a single organization.\n * @param `organizationId` The ID of the organization you'd like to subscribe to\n * @returns a function that can be used in `Observable<Organization[]>` pipes,\n * like `organizationService.organizations$`\n */\nfunction mapToSingleOrganization(organizationId) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => orgs === null || orgs === void 0 ? void 0 : orgs.find((o) => o.id === organizationId));\n}\nclass OrganizationService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n        this.organizations$ = this.getOrganizationsFromState$();\n        this.memberOrganizations$ = this.organizations$.pipe(mapToExcludeProviderOrganizations());\n        this.canManageSponsorships$ = this.organizations$.pipe(mapToExcludeOrganizationsWithoutFamilySponsorshipSupport(), mapToBooleanHasAnyOrganizations());\n        this.familySponsorshipAvailable$ = this.organizations$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => orgs.some((o) => o.familySponsorshipAvailable)));\n    }\n    get$(id) {\n        return this.organizations$.pipe(mapToSingleOrganization(id));\n    }\n    getAll$(userId) {\n        return this.getOrganizationsFromState$(userId);\n    }\n    getAll(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.getOrganizationsFromState$(userId));\n        });\n    }\n    hasOrganizations() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizations$.pipe(mapToBooleanHasAnyOrganizations()));\n        });\n    }\n    upsert(organization, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateFor(userId).update((existingOrganizations) => {\n                const organizations = existingOrganizations !== null && existingOrganizations !== void 0 ? existingOrganizations : {};\n                organizations[organization.id] = organization;\n                return organizations;\n            });\n        });\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizations$.pipe(mapToSingleOrganization(id)));\n        });\n    }\n    /**\n     * @deprecated For the CLI only\n     * @param id id of the organization\n     */\n    getFromState(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.organizations$.pipe(mapToSingleOrganization(id)));\n        });\n    }\n    replace(organizations, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateFor(userId).update(() => organizations);\n        });\n    }\n    // Ideally this method would be renamed to organizations$() and the\n    // $organizations observable as it stands would be removed. This will\n    // require updates to callers, and so this method exists as a temporary\n    // workaround until we have time & a plan to update callers.\n    //\n    // It can be thought of as \"organizations$ but with a userId option\".\n    getOrganizationsFromState$(userId) {\n        return this.stateFor(userId).state$.pipe(this.mapOrganizationRecordToArray());\n    }\n    /**\n     * Accepts a record of `OrganizationData`, which is how we store the\n     * organization list as a JSON object on disk, to an array of\n     * `Organization`, which is how the data is published to callers of the\n     * service.\n     * @returns a function that can be used to pipe organization data from\n     * stored state to an exposed object easily consumable by others.\n     */\n    mapOrganizationRecordToArray() {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => { var _a; return (_a = Object.values(orgs !== null && orgs !== void 0 ? orgs : {})) === null || _a === void 0 ? void 0 : _a.map((o) => new _models_domain_organization__WEBPACK_IMPORTED_MODULE_3__.Organization(o)); });\n    }\n    /**\n     * Fetches the organization list from on disk state for the specified user.\n     * @param userId the user ID to fetch the organization list for. Defaults to\n     * the currently active user.\n     * @returns an observable of organization state as it is stored on disk.\n     */\n    stateFor(userId) {\n        return userId\n            ? this.stateProvider.getUser(userId, ORGANIZATIONS)\n            : this.stateProvider.getActive(ORGANIZATIONS);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13100 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/services/organization/organization.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/services/policy/policy-api.service.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/admin-console/services/policy/policy-api.service.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PolicyApiService: () => (/* binding */ PolicyApiService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _models_response_error_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _models_data_policy_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/data/policy.data */ \"../../libs/common/src/admin-console/models/data/policy.data.ts\");\n/* harmony import */ var _models_domain_policy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/domain/policy */ \"../../libs/common/src/admin-console/models/domain/policy.ts\");\n/* harmony import */ var _models_response_policy_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/response/policy.response */ \"../../libs/common/src/admin-console/models/response/policy.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\nclass PolicyApiService {\n    constructor(policyService, apiService) {\n        this.policyService = policyService;\n        this.apiService = apiService;\n    }\n    getPolicy(organizationId, type) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + organizationId + \"/policies/\" + type, null, true, true);\n            return new _models_response_policy_response__WEBPACK_IMPORTED_MODULE_7__.PolicyResponse(r);\n        });\n    }\n    getPolicies(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" + organizationId + \"/policies\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_3__.ListResponse(r, _models_response_policy_response__WEBPACK_IMPORTED_MODULE_7__.PolicyResponse);\n        });\n    }\n    getPoliciesByToken(organizationId, token, email, organizationUserId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/organizations/\" +\n                organizationId +\n                \"/policies/token?\" +\n                \"token=\" +\n                encodeURIComponent(token) +\n                \"&email=\" +\n                _platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.encodeRFC3986URIComponent(email) +\n                \"&organizationUserId=\" +\n                organizationUserId, null, false, true);\n            return _models_domain_policy__WEBPACK_IMPORTED_MODULE_6__.Policy.fromListResponse(new _models_response_list_response__WEBPACK_IMPORTED_MODULE_3__.ListResponse(r, _models_response_policy_response__WEBPACK_IMPORTED_MODULE_7__.PolicyResponse));\n        });\n    }\n    getMasterPasswordPolicyResponseForOrgUser(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.apiService.send(\"GET\", \"/organizations/\" + organizationId + \"/policies/master-password\", null, true, true);\n            return new _models_response_policy_response__WEBPACK_IMPORTED_MODULE_7__.PolicyResponse(response);\n        });\n    }\n    getMasterPasswordPolicyOptsForOrgUser(orgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const masterPasswordPolicyResponse = yield this.getMasterPasswordPolicyResponseForOrgUser(orgId);\n                const masterPasswordPolicy = _models_domain_policy__WEBPACK_IMPORTED_MODULE_6__.Policy.fromResponse(masterPasswordPolicyResponse);\n                if (!masterPasswordPolicy) {\n                    return null;\n                }\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.policyService.masterPasswordPolicyOptions$([masterPasswordPolicy]));\n            }\n            catch (error) {\n                // If policy not found, return null\n                if (error instanceof _models_response_error_response__WEBPACK_IMPORTED_MODULE_2__.ErrorResponse && error.statusCode === _enums__WEBPACK_IMPORTED_MODULE_1__.HttpStatusCode.NotFound) {\n                    return null;\n                }\n                // otherwise rethrow error\n                throw error;\n            }\n        });\n    }\n    putPolicy(organizationId, type, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/organizations/\" + organizationId + \"/policies/\" + type, request, true, true);\n            const response = new _models_response_policy_response__WEBPACK_IMPORTED_MODULE_7__.PolicyResponse(r);\n            const data = new _models_data_policy_data__WEBPACK_IMPORTED_MODULE_5__.PolicyData(response);\n            yield this.policyService.upsert(data);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8620 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/services/policy/policy-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/services/policy/policy.service.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/admin-console/services/policy/policy.service.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   POLICIES: () => (/* binding */ POLICIES),\n/* harmony export */   PolicyService: () => (/* binding */ PolicyService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _models_domain_master_password_policy_options__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/domain/master-password-policy-options */ \"../../libs/common/src/admin-console/models/domain/master-password-policy-options.ts\");\n/* harmony import */ var _models_domain_policy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/domain/policy */ \"../../libs/common/src/admin-console/models/domain/policy.ts\");\n/* harmony import */ var _models_domain_reset_password_policy_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/domain/reset-password-policy-options */ \"../../libs/common/src/admin-console/models/domain/reset-password-policy-options.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nconst policyRecordToArray = (policiesMap) => Object.values(policiesMap || {}).map((f) => new _models_domain_policy__WEBPACK_IMPORTED_MODULE_4__.Policy(f));\nconst POLICIES = _platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_1__.POLICIES_DISK, \"policies\", {\n    deserializer: (policyData) => policyData,\n    clearOn: [\"logout\"],\n});\nclass PolicyService {\n    constructor(stateProvider, organizationService) {\n        this.stateProvider = stateProvider;\n        this.organizationService = organizationService;\n        this.activeUserPolicyState = this.stateProvider.getActive(POLICIES);\n        this.activeUserPolicies$ = this.activeUserPolicyState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policyData) => policyRecordToArray(policyData)));\n        this.policies$ = this.activeUserPolicies$;\n    }\n    get$(policyType) {\n        const filteredPolicies$ = this.activeUserPolicies$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policies) => policies.filter((p) => p.type === policyType)));\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([filteredPolicies$, this.organizationService.organizations$]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([policies, organizations]) => { var _a, _b; return (_b = (_a = this.enforcedPolicyFilter(policies, organizations)) === null || _a === void 0 ? void 0 : _a.at(0)) !== null && _b !== void 0 ? _b : null; }));\n    }\n    getAll$(policyType, userId) {\n        const filteredPolicies$ = this.stateProvider.getUserState$(POLICIES, userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policyData) => policyRecordToArray(policyData)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policies) => policies.filter((p) => p.type === policyType)));\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([filteredPolicies$, this.organizationService.getAll$(userId)]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([policies, organizations]) => this.enforcedPolicyFilter(policies, organizations)));\n    }\n    getAll(policyType) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.policies$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policies) => policies.filter((p) => p.type === policyType))));\n        });\n    }\n    policyAppliesToActiveUser$(policyType) {\n        return this.get$(policyType).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policy) => policy != null));\n    }\n    policyAppliesToUser(policyType) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.policyAppliesToActiveUser$(policyType));\n        });\n    }\n    enforcedPolicyFilter(policies, organizations) {\n        const orgDict = Object.fromEntries(organizations.map((o) => [o.id, o]));\n        return policies.filter((policy) => {\n            const organization = orgDict[policy.organizationId];\n            // This shouldn't happen, i.e. the user should only have policies for orgs they are a member of\n            // But if it does, err on the side of enforcing the policy\n            if (organization == null) {\n                return true;\n            }\n            return (policy.enabled &&\n                organization.status >= _enums__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserStatusType.Accepted &&\n                organization.usePolicies &&\n                !this.isExemptFromPolicy(policy.type, organization));\n        });\n    }\n    masterPasswordPolicyOptions$(policies) {\n        const observable = policies ? (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(policies) : this.policies$;\n        return observable.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((obsPolicies) => {\n            let enforcedOptions = null;\n            const filteredPolicies = obsPolicies.filter((p) => p.type === _enums__WEBPACK_IMPORTED_MODULE_2__.PolicyType.MasterPassword);\n            if (filteredPolicies == null || filteredPolicies.length === 0) {\n                return enforcedOptions;\n            }\n            filteredPolicies.forEach((currentPolicy) => {\n                if (!currentPolicy.enabled || currentPolicy.data == null) {\n                    return;\n                }\n                if (enforcedOptions == null) {\n                    enforcedOptions = new _models_domain_master_password_policy_options__WEBPACK_IMPORTED_MODULE_3__.MasterPasswordPolicyOptions();\n                }\n                if (currentPolicy.data.minComplexity != null &&\n                    currentPolicy.data.minComplexity > enforcedOptions.minComplexity) {\n                    enforcedOptions.minComplexity = currentPolicy.data.minComplexity;\n                }\n                if (currentPolicy.data.minLength != null &&\n                    currentPolicy.data.minLength > enforcedOptions.minLength) {\n                    enforcedOptions.minLength = currentPolicy.data.minLength;\n                }\n                if (currentPolicy.data.requireUpper) {\n                    enforcedOptions.requireUpper = true;\n                }\n                if (currentPolicy.data.requireLower) {\n                    enforcedOptions.requireLower = true;\n                }\n                if (currentPolicy.data.requireNumbers) {\n                    enforcedOptions.requireNumbers = true;\n                }\n                if (currentPolicy.data.requireSpecial) {\n                    enforcedOptions.requireSpecial = true;\n                }\n                if (currentPolicy.data.enforceOnLogin) {\n                    enforcedOptions.enforceOnLogin = true;\n                }\n            });\n            return enforcedOptions;\n        }));\n    }\n    evaluateMasterPassword(passwordStrength, newPassword, enforcedPolicyOptions) {\n        if (enforcedPolicyOptions == null) {\n            return true;\n        }\n        if (enforcedPolicyOptions.minComplexity > 0 &&\n            enforcedPolicyOptions.minComplexity > passwordStrength) {\n            return false;\n        }\n        if (enforcedPolicyOptions.minLength > 0 &&\n            enforcedPolicyOptions.minLength > newPassword.length) {\n            return false;\n        }\n        if (enforcedPolicyOptions.requireUpper && newPassword.toLocaleLowerCase() === newPassword) {\n            return false;\n        }\n        if (enforcedPolicyOptions.requireLower && newPassword.toLocaleUpperCase() === newPassword) {\n            return false;\n        }\n        if (enforcedPolicyOptions.requireNumbers && !/[0-9]/.test(newPassword)) {\n            return false;\n        }\n        // eslint-disable-next-line\n        if (enforcedPolicyOptions.requireSpecial && !/[!@#$%\\^&*]/g.test(newPassword)) {\n            return false;\n        }\n        return true;\n    }\n    getResetPasswordPolicyOptions(policies, orgId) {\n        var _a, _b, _c;\n        const resetPasswordPolicyOptions = new _models_domain_reset_password_policy_options__WEBPACK_IMPORTED_MODULE_5__.ResetPasswordPolicyOptions();\n        if (policies == null || orgId == null) {\n            return [resetPasswordPolicyOptions, false];\n        }\n        const policy = policies.find((p) => p.organizationId === orgId && p.type === _enums__WEBPACK_IMPORTED_MODULE_2__.PolicyType.ResetPassword && p.enabled);\n        resetPasswordPolicyOptions.autoEnrollEnabled = (_b = (_a = policy === null || policy === void 0 ? void 0 : policy.data) === null || _a === void 0 ? void 0 : _a.autoEnrollEnabled) !== null && _b !== void 0 ? _b : false;\n        return [resetPasswordPolicyOptions, (_c = policy === null || policy === void 0 ? void 0 : policy.enabled) !== null && _c !== void 0 ? _c : false];\n    }\n    upsert(policy) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.activeUserPolicyState.update((policies) => {\n                policies !== null && policies !== void 0 ? policies : (policies = {});\n                policies[policy.id] = policy;\n                return policies;\n            });\n        });\n    }\n    replace(policies, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.setUserState(POLICIES, policies, userId);\n        });\n    }\n    /**\n     * Determines whether an orgUser is exempt from a specific policy because of their role\n     * Generally orgUsers who can manage policies are exempt from them, but some policies are stricter\n     */\n    isExemptFromPolicy(policyType, organization) {\n        switch (policyType) {\n            case _enums__WEBPACK_IMPORTED_MODULE_2__.PolicyType.MaximumVaultTimeout:\n                // Max Vault Timeout applies to everyone except owners\n                return organization.isOwner;\n            case _enums__WEBPACK_IMPORTED_MODULE_2__.PolicyType.PasswordGenerator:\n                // password generation policy applies to everyone\n                return false;\n            case _enums__WEBPACK_IMPORTED_MODULE_2__.PolicyType.PersonalOwnership:\n                // individual vault policy applies to everyone except admins and owners\n                return organization.isAdmin;\n            default:\n                return organization.canManagePolicies;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20596 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/services/policy/policy.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/services/provider.service.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/admin-console/services/provider.service.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PROVIDERS: () => (/* binding */ PROVIDERS),\n/* harmony export */   ProviderService: () => (/* binding */ ProviderService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_domain_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/domain/provider */ \"../../libs/common/src/admin-console/models/domain/provider.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nconst PROVIDERS = _platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_1__.PROVIDERS_DISK, \"providers\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\nfunction mapToSingleProvider(providerId) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((providers) => providers === null || providers === void 0 ? void 0 : providers.find((p) => p.id === providerId));\n}\nclass ProviderService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n    }\n    providers$(userId) {\n        // FIXME: Can be replaced with `getUserStateOrDefault$` if we weren't trying to pick this.\n        return (userId != null\n            ? this.stateProvider.getUser(userId, PROVIDERS).state$\n            : this.stateProvider.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.take)(1), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => userId != null ? this.stateProvider.getUser(userId, PROVIDERS).state$ : (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null)))).pipe(this.mapProviderRecordToArray());\n    }\n    mapProviderRecordToArray() {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((providers) => { var _a; return (_a = Object.values(providers !== null && providers !== void 0 ? providers : {})) === null || _a === void 0 ? void 0 : _a.map((o) => new _models_domain_provider__WEBPACK_IMPORTED_MODULE_2__.Provider(o)); });\n    }\n    get$(id) {\n        return this.providers$().pipe(mapToSingleProvider(id));\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.providers$().pipe(mapToSingleProvider(id)));\n        });\n    }\n    getAll() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.providers$());\n        });\n    }\n    save(providers, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.setUserState(PROVIDERS, providers, userId);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5348 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/services/provider.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/admin-console/services/provider/provider-api.service.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/common/src/admin-console/services/provider/provider-api.service.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderApiService: () => (/* binding */ ProviderApiService)\n/* harmony export */ });\n/* harmony import */ var _models_response_provider_provider_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/response/provider/provider.response */ \"../../libs/common/src/admin-console/models/response/provider/provider.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass ProviderApiService {\n    constructor(apiService) {\n        this.apiService = apiService;\n    }\n    postProviderSetup(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/providers/\" + id + \"/setup\", request, true, true);\n            return new _models_response_provider_provider_response__WEBPACK_IMPORTED_MODULE_0__.ProviderResponse(r);\n        });\n    }\n    getProvider(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/providers/\" + id, null, true, true);\n            return new _models_response_provider_provider_response__WEBPACK_IMPORTED_MODULE_0__.ProviderResponse(r);\n        });\n    }\n    putProvider(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/providers/\" + id, request, true, true);\n            return new _models_response_provider_provider_response__WEBPACK_IMPORTED_MODULE_0__.ProviderResponse(r);\n        });\n    }\n    providerRecoverDeleteToken(providerId, request) {\n        return this.apiService.send(\"POST\", \"/providers/\" + providerId + \"/delete-recover-token\", request, false, false);\n    }\n    deleteProvider(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"DELETE\", \"/providers/\" + id, null, true, false);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4188 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/admin-console/services/provider/provider-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/abstractions/account.service.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/auth/abstractions/account.service.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AccountService: () => (/* binding */ AccountService),\n/* harmony export */   InternalAccountService: () => (/* binding */ InternalAccountService),\n/* harmony export */   accountInfoEqual: () => (/* binding */ accountInfoEqual)\n/* harmony export */ });\nfunction accountInfoEqual(a, b) {\n    if (a == null && b == null) {\n        return true;\n    }\n    if (a == null || b == null) {\n        return false;\n    }\n    const keys = new Set([...Object.keys(a), ...Object.keys(b)]);\n    for (const key of keys) {\n        if (a[key] !== b[key]) {\n            return false;\n        }\n    }\n    return true;\n}\nclass AccountService {\n}\nclass InternalAccountService extends AccountService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5084 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/abstractions/account.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/abstractions/devices/responses/device.response.ts":
/*!************************************************************************************!*\
  !*** ../../libs/common/src/auth/abstractions/devices/responses/device.response.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeviceResponse: () => (/* binding */ DeviceResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass DeviceResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.identifier = this.getResponseProperty(\"Identifier\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n        this.revisionDate = this.getResponseProperty(\"RevisionDate\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvYWJzdHJhY3Rpb25zL2RldmljZXMvcmVzcG9uc2VzL2RldmljZS5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUN5RTtBQUVsRSxNQUFNLGNBQWUsU0FBUSx3RUFBWTtJQVE5QyxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3pDLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFlBQVksQ0FBQyxDQUFDO1FBQ3pELElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0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oaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIk5hbWVcIik7XG4gICAgdGhpcy5pZGVudGlmaWVyID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiSWRlbnRpZmllclwiKTtcbiAgICB0aGlzLnR5cGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUeXBlXCIpO1xuICAgIHRoaXMuY3JlYXRpb25EYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ3JlYXRpb25EYXRlXCIpO1xuICAgIHRoaXMucmV2aXNpb25EYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUmV2aXNpb25EYXRlXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/abstractions/devices/responses/device.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/enums/authentication-status.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/auth/enums/authentication-status.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthenticationStatus: () => (/* binding */ AuthenticationStatus)\n/* harmony export */ });\nvar AuthenticationStatus;\n(function (AuthenticationStatus) {\n    AuthenticationStatus[AuthenticationStatus[\"LoggedOut\"] = 0] = \"LoggedOut\";\n    AuthenticationStatus[AuthenticationStatus[\"Locked\"] = 1] = \"Locked\";\n    AuthenticationStatus[AuthenticationStatus[\"Unlocked\"] = 2] = \"Unlocked\";\n})(AuthenticationStatus || (AuthenticationStatus = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvZW51bXMvYXV0aGVudGljYXRpb24tc3RhdHVzLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLG9CQUlYO0FBSkQsV0FBWSxvQkFBb0I7SUFDOUIseUVBQWE7SUFDYixtRUFBVTtJQUNWLHVFQUFZO0FBQ2QsQ0FBQyxFQUpXLG9CQUFvQixLQUFwQixvQkFBb0IsUUFJL0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYXV0aC9lbnVtcy9hdXRoZW50aWNhdGlvbi1zdGF0dXMudHM/Zjg5YSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBBdXRoZW50aWNhdGlvblN0YXR1cyB7XG4gIExvZ2dlZE91dCA9IDAsXG4gIExvY2tlZCA9IDEsXG4gIFVubG9ja2VkID0gMixcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/enums/authentication-status.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/enums/authentication-type.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/auth/enums/authentication-type.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthenticationType: () => (/* binding */ AuthenticationType)\n/* harmony export */ });\nvar AuthenticationType;\n(function (AuthenticationType) {\n    AuthenticationType[AuthenticationType[\"Password\"] = 0] = \"Password\";\n    AuthenticationType[AuthenticationType[\"Sso\"] = 1] = \"Sso\";\n    AuthenticationType[AuthenticationType[\"UserApiKey\"] = 2] = \"UserApiKey\";\n    AuthenticationType[AuthenticationType[\"AuthRequest\"] = 3] = \"AuthRequest\";\n    AuthenticationType[AuthenticationType[\"WebAuthn\"] = 4] = \"WebAuthn\";\n})(AuthenticationType || (AuthenticationType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvZW51bXMvYXV0aGVudGljYXRpb24tdHlwZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxrQkFNWDtBQU5ELFdBQVksa0JBQWtCO0lBQzVCLG1FQUFZO0lBQ1oseURBQU87SUFDUCx1RUFBYztJQUNkLHlFQUFlO0lBQ2YsbUVBQVk7QUFDZCxDQUFDLEVBTlcsa0JBQWtCLEtBQWxCLGtCQUFrQixRQU03QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL2VudW1zL2F1dGhlbnRpY2F0aW9uLXR5cGUudHM/YzFhMSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBBdXRoZW50aWNhdGlvblR5cGUge1xuICBQYXNzd29yZCA9IDAsXG4gIFNzbyA9IDEsXG4gIFVzZXJBcGlLZXkgPSAyLFxuICBBdXRoUmVxdWVzdCA9IDMsXG4gIFdlYkF1dGhuID0gNCxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/enums/authentication-type.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/enums/sso.ts":
/*!***********************************************!*\
  !*** ../../libs/common/src/auth/enums/sso.ts ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MemberDecryptionType: () => (/* binding */ MemberDecryptionType),\n/* harmony export */   OpenIdConnectRedirectBehavior: () => (/* binding */ OpenIdConnectRedirectBehavior),\n/* harmony export */   Saml2BindingType: () => (/* binding */ Saml2BindingType),\n/* harmony export */   Saml2NameIdFormat: () => (/* binding */ Saml2NameIdFormat),\n/* harmony export */   Saml2SigningBehavior: () => (/* binding */ Saml2SigningBehavior),\n/* harmony export */   SsoType: () => (/* binding */ SsoType)\n/* harmony export */ });\nvar SsoType;\n(function (SsoType) {\n    SsoType[SsoType[\"None\"] = 0] = \"None\";\n    SsoType[SsoType[\"OpenIdConnect\"] = 1] = \"OpenIdConnect\";\n    SsoType[SsoType[\"Saml2\"] = 2] = \"Saml2\";\n})(SsoType || (SsoType = {}));\nvar MemberDecryptionType;\n(function (MemberDecryptionType) {\n    MemberDecryptionType[MemberDecryptionType[\"MasterPassword\"] = 0] = \"MasterPassword\";\n    MemberDecryptionType[MemberDecryptionType[\"KeyConnector\"] = 1] = \"KeyConnector\";\n    MemberDecryptionType[MemberDecryptionType[\"TrustedDeviceEncryption\"] = 2] = \"TrustedDeviceEncryption\";\n})(MemberDecryptionType || (MemberDecryptionType = {}));\nvar OpenIdConnectRedirectBehavior;\n(function (OpenIdConnectRedirectBehavior) {\n    OpenIdConnectRedirectBehavior[OpenIdConnectRedirectBehavior[\"RedirectGet\"] = 0] = \"RedirectGet\";\n    OpenIdConnectRedirectBehavior[OpenIdConnectRedirectBehavior[\"FormPost\"] = 1] = \"FormPost\";\n})(OpenIdConnectRedirectBehavior || (OpenIdConnectRedirectBehavior = {}));\nvar Saml2BindingType;\n(function (Saml2BindingType) {\n    Saml2BindingType[Saml2BindingType[\"HttpRedirect\"] = 1] = \"HttpRedirect\";\n    Saml2BindingType[Saml2BindingType[\"HttpPost\"] = 2] = \"HttpPost\";\n})(Saml2BindingType || (Saml2BindingType = {}));\nvar Saml2NameIdFormat;\n(function (Saml2NameIdFormat) {\n    Saml2NameIdFormat[Saml2NameIdFormat[\"NotConfigured\"] = 0] = \"NotConfigured\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"Unspecified\"] = 1] = \"Unspecified\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"EmailAddress\"] = 2] = \"EmailAddress\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"X509SubjectName\"] = 3] = \"X509SubjectName\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"WindowsDomainQualifiedName\"] = 4] = \"WindowsDomainQualifiedName\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"KerberosPrincipalName\"] = 5] = \"KerberosPrincipalName\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"EntityIdentifier\"] = 6] = \"EntityIdentifier\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"Persistent\"] = 7] = \"Persistent\";\n    Saml2NameIdFormat[Saml2NameIdFormat[\"Transient\"] = 8] = \"Transient\";\n})(Saml2NameIdFormat || (Saml2NameIdFormat = {}));\nvar Saml2SigningBehavior;\n(function (Saml2SigningBehavior) {\n    Saml2SigningBehavior[Saml2SigningBehavior[\"IfIdpWantAuthnRequestsSigned\"] = 0] = \"IfIdpWantAuthnRequestsSigned\";\n    Saml2SigningBehavior[Saml2SigningBehavior[\"Always\"] = 1] = \"Always\";\n    Saml2SigningBehavior[Saml2SigningBehavior[\"Never\"] = 3] = \"Never\";\n})(Saml2SigningBehavior || (Saml2SigningBehavior = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvZW51bXMvc3NvLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLElBQVksT0FJWDtBQUpELFdBQVksT0FBTztJQUNqQixxQ0FBUTtJQUNSLHVEQUFpQjtJQUNqQix1Q0FBUztBQUNYLENBQUMsRUFKVyxPQUFPLEtBQVAsT0FBTyxRQUlsQjtBQUVELElBQVksb0JBSVg7QUFKRCxXQUFZLG9CQUFvQjtJQUM5QixtRkFBa0I7SUFDbEIsK0VBQWdCO0lBQ2hCLHFHQUEyQjtBQUM3QixDQUFDLEVBSlcsb0JBQW9CLEtBQXBCLG9CQUFvQixRQUkvQj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xuZXhwb3J0IGVudW0gT3BlbklkQ29ubmVjdFJlZGlyZWN0QmVoYXZpb3Ige1xuICBSZWRpcmVjdEdldCA9IDAsXG4gIEZvcm1Qb3N0ID0gMSxcbn1cblxuZXhwb3J0IGVudW0gU2FtbDJCaW5kaW5nVHlwZSB7XG4gIEh0dHBSZWRpcmVjdCA9IDEsXG4gIEh0dHBQb3N0ID0gMixcbn1cblxuZXhwb3J0IGVudW0gU2FtbDJOYW1lSWRGb3JtYXQge1xuICBOb3RDb25maWd1cmVkID0gMCxcbiAgVW5zcGVjaWZpZWQgPSAxLFxuICBFbWFpbEFkZHJlc3MgPSAyLFxuICBYNTA5U3ViamVjdE5hbWUgPSAzLFxuICBXaW5kb3dzRG9tYWluUXVhbGlmaWVkTmFtZSA9IDQsXG4gIEtlcmJlcm9zUHJpbmNpcGFsTmFtZSA9IDUsXG4gIEVudGl0eUlkZW50aWZpZXIgPSA2LFxuICBQZXJzaXN0ZW50ID0gNyxcbiAgVHJhbnNpZW50ID0gOCxcbn1cblxuZXhwb3J0IGVudW0gU2FtbDJTaWduaW5nQmVoYXZpb3Ige1xuICBJZklkcFdhbnRBdXRoblJlcXVlc3RzU2lnbmVkID0gMCxcbiAgQWx3YXlzID0gMSxcbiAgTmV2ZXIgPSAzLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/enums/sso.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/enums/two-factor-provider-type.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/auth/enums/two-factor-provider-type.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorProviderType: () => (/* binding */ TwoFactorProviderType)\n/* harmony export */ });\nvar TwoFactorProviderType;\n(function (TwoFactorProviderType) {\n    TwoFactorProviderType[TwoFactorProviderType[\"Authenticator\"] = 0] = \"Authenticator\";\n    TwoFactorProviderType[TwoFactorProviderType[\"Email\"] = 1] = \"Email\";\n    TwoFactorProviderType[TwoFactorProviderType[\"Duo\"] = 2] = \"Duo\";\n    TwoFactorProviderType[TwoFactorProviderType[\"Yubikey\"] = 3] = \"Yubikey\";\n    TwoFactorProviderType[TwoFactorProviderType[\"U2f\"] = 4] = \"U2f\";\n    TwoFactorProviderType[TwoFactorProviderType[\"Remember\"] = 5] = \"Remember\";\n    TwoFactorProviderType[TwoFactorProviderType[\"OrganizationDuo\"] = 6] = \"OrganizationDuo\";\n    TwoFactorProviderType[TwoFactorProviderType[\"WebAuthn\"] = 7] = \"WebAuthn\";\n})(TwoFactorProviderType || (TwoFactorProviderType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvZW51bXMvdHdvLWZhY3Rvci1wcm92aWRlci10eXBlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLHFCQVNYO0FBVEQsV0FBWSxxQkFBcUI7SUFDL0IsbUZBQWlCO0lBQ2pCLG1FQUFTO0lBQ1QsK0RBQU87SUFDUCx1RUFBVztJQUNYLCtEQUFPO0lBQ1AseUVBQVk7SUFDWix1RkFBbUI7SUFDbkIseUVBQVk7QUFDZCxDQUFDLEVBVFcscUJBQXFCLEtBQXJCLHFCQUFxQixRQVNoQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL2VudW1zL3R3by1mYWN0b3ItcHJvdmlkZXItdHlwZS50cz81M2RhIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFR3b0ZhY3RvclByb3ZpZGVyVHlwZSB7XG4gIEF1dGhlbnRpY2F0b3IgPSAwLFxuICBFbWFpbCA9IDEsXG4gIER1byA9IDIsXG4gIFl1YmlrZXkgPSAzLFxuICBVMmYgPSA0LFxuICBSZW1lbWJlciA9IDUsXG4gIE9yZ2FuaXphdGlvbkR1byA9IDYsXG4gIFdlYkF1dGhuID0gNyxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/enums/two-factor-provider-type.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/enums/verification-type.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/auth/enums/verification-type.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VerificationType: () => (/* binding */ VerificationType)\n/* harmony export */ });\nvar VerificationType;\n(function (VerificationType) {\n    VerificationType[VerificationType[\"MasterPassword\"] = 0] = \"MasterPassword\";\n    VerificationType[VerificationType[\"OTP\"] = 1] = \"OTP\";\n    VerificationType[VerificationType[\"PIN\"] = 2] = \"PIN\";\n    VerificationType[VerificationType[\"Biometrics\"] = 3] = \"Biometrics\";\n})(VerificationType || (VerificationType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvZW51bXMvdmVyaWZpY2F0aW9uLXR5cGUudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksZ0JBS1g7QUFMRCxXQUFZLGdCQUFnQjtJQUMxQiwyRUFBa0I7SUFDbEIscURBQU87SUFDUCxxREFBTztJQUNQLG1FQUFjO0FBQ2hCLENBQUMsRUFMVyxnQkFBZ0IsS0FBaEIsZ0JBQWdCLFFBSzNCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvZW51bXMvdmVyaWZpY2F0aW9uLXR5cGUudHM/OGVlYiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBWZXJpZmljYXRpb25UeXBlIHtcbiAgTWFzdGVyUGFzc3dvcmQgPSAwLFxuICBPVFAgPSAxLFxuICBQSU4gPSAyLFxuICBCaW9tZXRyaWNzID0gMyxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/enums/verification-type.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/api/sso-config.api.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/auth/models/api/sso-config.api.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SsoConfigApi: () => (/* binding */ SsoConfigApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _enums_sso__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums/sso */ \"../../libs/common/src/auth/enums/sso.ts\");\n\n\nclass SsoConfigApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    static fromView(view, api = new SsoConfigApi()) {\n        api.configType = view.configType;\n        api.memberDecryptionType = view.memberDecryptionType;\n        api.keyConnectorUrl = view.keyConnectorUrl;\n        if (api.configType === _enums_sso__WEBPACK_IMPORTED_MODULE_1__.SsoType.OpenIdConnect) {\n            api.authority = view.openId.authority;\n            api.clientId = view.openId.clientId;\n            api.clientSecret = view.openId.clientSecret;\n            api.metadataAddress = view.openId.metadataAddress;\n            api.redirectBehavior = view.openId.redirectBehavior;\n            api.getClaimsFromUserInfoEndpoint = view.openId.getClaimsFromUserInfoEndpoint;\n            api.additionalScopes = view.openId.additionalScopes;\n            api.additionalUserIdClaimTypes = view.openId.additionalUserIdClaimTypes;\n            api.additionalEmailClaimTypes = view.openId.additionalEmailClaimTypes;\n            api.additionalNameClaimTypes = view.openId.additionalNameClaimTypes;\n            api.acrValues = view.openId.acrValues;\n            api.expectedReturnAcrValue = view.openId.expectedReturnAcrValue;\n        }\n        else if (api.configType === _enums_sso__WEBPACK_IMPORTED_MODULE_1__.SsoType.Saml2) {\n            api.spUniqueEntityId = view.saml.spUniqueEntityId;\n            api.spNameIdFormat = view.saml.spNameIdFormat;\n            api.spOutboundSigningAlgorithm = view.saml.spOutboundSigningAlgorithm;\n            api.spSigningBehavior = view.saml.spSigningBehavior;\n            api.spMinIncomingSigningAlgorithm = view.saml.spMinIncomingSigningAlgorithm;\n            api.spWantAssertionsSigned = view.saml.spWantAssertionsSigned;\n            api.spValidateCertificates = view.saml.spValidateCertificates;\n            api.idpEntityId = view.saml.idpEntityId;\n            api.idpBindingType = view.saml.idpBindingType;\n            api.idpSingleSignOnServiceUrl = view.saml.idpSingleSignOnServiceUrl;\n            api.idpSingleLogoutServiceUrl = view.saml.idpSingleLogoutServiceUrl;\n            api.idpX509PublicCert = view.saml.idpX509PublicCert;\n            api.idpOutboundSigningAlgorithm = view.saml.idpOutboundSigningAlgorithm;\n            api.idpAllowUnsolicitedAuthnResponse = view.saml.idpAllowUnsolicitedAuthnResponse;\n            api.idpWantAuthnRequestsSigned = view.saml.idpWantAuthnRequestsSigned;\n            // Value is inverted in the api model (disable instead of allow)\n            api.idpDisableOutboundLogoutRequests = !view.saml.idpAllowOutboundLogoutRequests;\n        }\n        return api;\n    }\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.configType = this.getResponseProperty(\"ConfigType\");\n        this.memberDecryptionType = this.getResponseProperty(\"MemberDecryptionType\");\n        this.keyConnectorUrl = this.getResponseProperty(\"KeyConnectorUrl\");\n        this.authority = this.getResponseProperty(\"Authority\");\n        this.clientId = this.getResponseProperty(\"ClientId\");\n        this.clientSecret = this.getResponseProperty(\"ClientSecret\");\n        this.metadataAddress = this.getResponseProperty(\"MetadataAddress\");\n        this.redirectBehavior = this.getResponseProperty(\"RedirectBehavior\");\n        this.getClaimsFromUserInfoEndpoint = this.getResponseProperty(\"GetClaimsFromUserInfoEndpoint\");\n        this.additionalScopes = this.getResponseProperty(\"AdditionalScopes\");\n        this.additionalUserIdClaimTypes = this.getResponseProperty(\"AdditionalUserIdClaimTypes\");\n        this.additionalEmailClaimTypes = this.getResponseProperty(\"AdditionalEmailClaimTypes\");\n        this.additionalNameClaimTypes = this.getResponseProperty(\"AdditionalNameClaimTypes\");\n        this.acrValues = this.getResponseProperty(\"AcrValues\");\n        this.expectedReturnAcrValue = this.getResponseProperty(\"ExpectedReturnAcrValue\");\n        this.spUniqueEntityId = this.getResponseProperty(\"SpUniqueEntityId\");\n        this.spNameIdFormat = this.getResponseProperty(\"SpNameIdFormat\");\n        this.spOutboundSigningAlgorithm = this.getResponseProperty(\"SpOutboundSigningAlgorithm\");\n        this.spSigningBehavior = this.getResponseProperty(\"SpSigningBehavior\");\n        this.spMinIncomingSigningAlgorithm = this.getResponseProperty(\"SpMinIncomingSigningAlgorithm\");\n        this.spWantAssertionsSigned = this.getResponseProperty(\"SpWantAssertionsSigned\");\n        this.spValidateCertificates = this.getResponseProperty(\"SpValidateCertificates\");\n        this.idpEntityId = this.getResponseProperty(\"IdpEntityId\");\n        this.idpBindingType = this.getResponseProperty(\"IdpBindingType\");\n        this.idpSingleSignOnServiceUrl = this.getResponseProperty(\"IdpSingleSignOnServiceUrl\");\n        this.idpSingleLogoutServiceUrl = this.getResponseProperty(\"IdpSingleLogoutServiceUrl\");\n        this.idpX509PublicCert = this.getResponseProperty(\"IdpX509PublicCert\");\n        this.idpOutboundSigningAlgorithm = this.getResponseProperty(\"IdpOutboundSigningAlgorithm\");\n        this.idpAllowUnsolicitedAuthnResponse = this.getResponseProperty(\"IdpAllowUnsolicitedAuthnResponse\");\n        this.idpDisableOutboundLogoutRequests = this.getResponseProperty(\"IdpDisableOutboundLogoutRequests\");\n        this.idpWantAuthnRequestsSigned = this.getResponseProperty(\"IdpWantAuthnRequestsSigned\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 14748 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/api/sso-config.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/domain/admin-auth-req-storable.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/auth/models/domain/admin-auth-req-storable.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AdminAuthRequestStorable: () => (/* binding */ AdminAuthRequestStorable)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\nclass AdminAuthRequestStorable {\n    constructor(init) {\n        if (init) {\n            Object.assign(this, init);\n        }\n    }\n    toJSON() {\n        return {\n            id: this.id,\n            privateKey: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToByteString(this.privateKey),\n        };\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        let privateKeyBuffer = null;\n        if (obj.privateKey) {\n            privateKeyBuffer = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromByteStringToArray(obj.privateKey);\n        }\n        return new AdminAuthRequestStorable({\n            id: obj.id,\n            privateKey: privateKeyBuffer,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4v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pZCxcbiAgICAgIHByaXZhdGVLZXk6IHByaXZhdGVLZXlCdWZmZXIsXG4gICAgfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/domain/admin-auth-req-storable.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/domain/auth-result.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/auth/models/domain/auth-result.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthResult: () => (/* binding */ AuthResult)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _force_set_password_reason__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\n\n\nclass AuthResult {\n    constructor() {\n        this.captchaSiteKey = \"\";\n        // TODO: PM-3287 - Remove this after 3 releases of backwards compatibility. - Target release 2023.12 for removal\n        /**\n         * @deprecated\n         * Replace with using UserDecryptionOptions to determine if the user does\n         * not have a master password and is not using Key Connector.\n         * */\n        this.resetMasterPassword = false;\n        this.forcePasswordReset = _force_set_password_reason__WEBPACK_IMPORTED_MODULE_1__.ForceSetPasswordReason.None;\n        this.twoFactorProviders = null;\n    }\n    get requiresCaptcha() {\n        return !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(this.captchaSiteKey);\n    }\n    get requiresTwoFactor() {\n        return this.twoFactorProviders != null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4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Ud29GYWN0b3IoKSB7XG4gICAgcmV0dXJuIHRoaXMudHdvRmFjdG9yUHJvdmlkZXJzICE9IG51bGw7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/domain/auth-result.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/domain/force-set-password-reason.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/auth/models/domain/force-set-password-reason.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ForceSetPasswordReason: () => (/* binding */ ForceSetPasswordReason)\n/* harmony export */ });\n/*\n * This enum is used to determine if a user should be forced to initially set or reset their password\n * on login (server flag) or unlock via MP (client evaluation).\n */\nvar ForceSetPasswordReason;\n(function (ForceSetPasswordReason) {\n    /**\n     * A password reset should not be forced.\n     */\n    ForceSetPasswordReason[ForceSetPasswordReason[\"None\"] = 0] = \"None\";\n    /**\n     * Occurs when an organization admin forces a user to reset their password.\n     * Communicated via server flag.\n     */\n    ForceSetPasswordReason[ForceSetPasswordReason[\"AdminForcePasswordReset\"] = 1] = \"AdminForcePasswordReset\";\n    /**\n     * Occurs when a user logs in / unlocks their vault with a master password that does not meet an organization's\n     * master password policy that is enforced on login/unlock.\n     * Only set client side b/c server can't evaluate MP.\n     */\n    ForceSetPasswordReason[ForceSetPasswordReason[\"WeakMasterPassword\"] = 2] = \"WeakMasterPassword\";\n    /**\n     * Occurs when a TDE user without a password obtains the password reset permission.\n     * Set post login & decryption client side and by server in sync (to catch logged in users).\n     */\n    ForceSetPasswordReason[ForceSetPasswordReason[\"TdeUserWithoutPasswordHasPasswordResetPermission\"] = 3] = \"TdeUserWithoutPasswordHasPasswordResetPermission\";\n    /**\n     * Occurs when TDE is disabled and master password has to be set.\n     */\n    ForceSetPasswordReason[ForceSetPasswordReason[\"TdeOffboarding\"] = 4] = \"TdeOffboarding\";\n})(ForceSetPasswordReason || (ForceSetPasswordReason = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL2RvbWFpbi9mb3JjZS1zZXQtcGFzc3dvcmQtcmVhc29uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7O0dBR0c7QUFDSCxJQUFZLHNCQTZCWDtBQTdCRCxXQUFZLHNCQUFzQjtJQUNoQzs7T0FFRztJQUNILG1FQUFJO0lBRUo7OztPQUdHO0lBQ0gseUdBQXVCO0lBRXZCOzs7O09BSUc7SUFDSCwrRkFBa0I7SUFFbEI7OztPQUdHO0lBQ0gsMkpBQWdEO0lBRWhEOztPQUVHO0lBQ0gsdUZBQWM7QUFDaEIsQ0FBQyxFQTdCVyxzQkFBc0IsS0FBdEIsc0JBQXNCLFFBNkJqQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9kb21haW4vZm9yY2Utc2V0LXBhc3N3b3JkLXJlYXNvbi50cz9mOWRhIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBUaGlzIGVudW0gaXMgdXNlZCB0byBkZXRlcm1pbmUgaWYgYSB1c2VyIHNob3VsZCBiZSBmb3JjZWQgdG8gaW5pdGlhbGx5IHNldCBvciByZXNldCB0aGVpciBwYXNzd29yZFxuICogb24gbG9naW4gKHNlcnZlciBmbGFnKSBvciB1bmxvY2sgdmlhIE1QIChjbGllbnQgZXZhbHVhdGlvbikuXG4gKi9cbmV4cG9ydCBlbnVtIEZvcmNlU2V0UGFzc3dvcmRSZWFzb24ge1xuICAvKipcbiAgICogQSBwYXNzd29yZCByZXNldCBzaG91bGQgbm90IG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GRlT2ZmYm9hcmRpbmcsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/domain/force-set-password-reason.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/domain/kdf-config.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/auth/models/domain/kdf-config.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Argon2KdfConfig: () => (/* binding */ Argon2KdfConfig),\n/* harmony export */   DEFAULT_KDF_CONFIG: () => (/* binding */ DEFAULT_KDF_CONFIG),\n/* harmony export */   PBKDF2KdfConfig: () => (/* binding */ PBKDF2KdfConfig)\n/* harmony export */ });\n/* harmony import */ var _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/enums/kdf-type.enum */ \"../../libs/common/src/platform/enums/kdf-type.enum.ts\");\n/* harmony import */ var _platform_misc_range_with_default__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/misc/range-with-default */ \"../../libs/common/src/platform/misc/range-with-default.ts\");\n\n\n/**\n * Password-Based Key Derivation Function 2 (PBKDF2) KDF configuration.\n */\nclass PBKDF2KdfConfig {\n    constructor(iterations) {\n        this.kdfType = _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_0__.KdfType.PBKDF2_SHA256;\n        this.iterations = iterations !== null && iterations !== void 0 ? iterations : PBKDF2KdfConfig.ITERATIONS.defaultValue;\n    }\n    /**\n     * Validates the PBKDF2 KDF configuration for updating the KDF config.\n     * A Valid PBKDF2 KDF configuration has KDF iterations between the 600_000 and 2_000_000.\n     */\n    validateKdfConfigForSetting() {\n        if (!PBKDF2KdfConfig.ITERATIONS.inRange(this.iterations)) {\n            throw new Error(`PBKDF2 iterations must be between ${PBKDF2KdfConfig.ITERATIONS.min} and ${PBKDF2KdfConfig.ITERATIONS.max}`);\n        }\n    }\n    /**\n     * Validates the PBKDF2 KDF configuration for pre-login.\n     * A Valid PBKDF2 KDF configuration has KDF iterations between the 5000 and 2_000_000.\n     */\n    validateKdfConfigForPrelogin() {\n        if (PBKDF2KdfConfig.PRELOGIN_ITERATIONS_MIN > this.iterations) {\n            throw new Error(`PBKDF2 iterations must be at least ${PBKDF2KdfConfig.PRELOGIN_ITERATIONS_MIN}, but was ${this.iterations}; possible pre-login downgrade attack detected.`);\n        }\n    }\n    static fromJSON(json) {\n        return new PBKDF2KdfConfig(json.iterations);\n    }\n}\nPBKDF2KdfConfig.ITERATIONS = new _platform_misc_range_with_default__WEBPACK_IMPORTED_MODULE_1__.RangeWithDefault(600000, 2000000, 600000);\nPBKDF2KdfConfig.PRELOGIN_ITERATIONS_MIN = 5000;\n/**\n * Argon2 KDF configuration.\n */\nclass Argon2KdfConfig {\n    constructor(iterations, memory, parallelism) {\n        this.kdfType = _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_0__.KdfType.Argon2id;\n        this.iterations = iterations !== null && iterations !== void 0 ? iterations : Argon2KdfConfig.ITERATIONS.defaultValue;\n        this.memory = memory !== null && memory !== void 0 ? memory : Argon2KdfConfig.MEMORY.defaultValue;\n        this.parallelism = parallelism !== null && parallelism !== void 0 ? parallelism : Argon2KdfConfig.PARALLELISM.defaultValue;\n    }\n    /**\n     * Validates the Argon2 KDF configuration for updating the KDF config.\n     * A Valid Argon2 KDF configuration has iterations between 2 and 10, memory between 16mb and 1024mb, and parallelism between 1 and 16.\n     */\n    validateKdfConfigForSetting() {\n        if (!Argon2KdfConfig.ITERATIONS.inRange(this.iterations)) {\n            throw new Error(`Argon2 iterations must be between ${Argon2KdfConfig.ITERATIONS.min} and ${Argon2KdfConfig.ITERATIONS.max}`);\n        }\n        if (!Argon2KdfConfig.MEMORY.inRange(this.memory)) {\n            throw new Error(`Argon2 memory must be between ${Argon2KdfConfig.MEMORY.min} MiB and ${Argon2KdfConfig.MEMORY.max} MiB`);\n        }\n        if (!Argon2KdfConfig.PARALLELISM.inRange(this.parallelism)) {\n            throw new Error(`Argon2 parallelism must be between ${Argon2KdfConfig.PARALLELISM.min} and ${Argon2KdfConfig.PARALLELISM.max}.`);\n        }\n    }\n    /**\n     * Validates the Argon2 KDF configuration for pre-login.\n     */\n    validateKdfConfigForPrelogin() {\n        if (Argon2KdfConfig.PRELOGIN_ITERATIONS_MIN > this.iterations) {\n            throw new Error(`Argon2 iterations must be at least ${Argon2KdfConfig.PRELOGIN_ITERATIONS_MIN}, but was ${this.iterations}; possible pre-login downgrade attack detected.`);\n        }\n        if (Argon2KdfConfig.PRELOGIN_MEMORY_MIN > this.memory) {\n            throw new Error(`Argon2 memory must be at least ${Argon2KdfConfig.PRELOGIN_MEMORY_MIN} MiB, but was ${this.memory} MiB; possible pre-login downgrade attack detected.`);\n        }\n        if (Argon2KdfConfig.PRELOGIN_PARALLELISM_MIN > this.parallelism) {\n            throw new Error(`Argon2 parallelism must be at least ${Argon2KdfConfig.PRELOGIN_PARALLELISM_MIN}, but was ${this.parallelism}; possible pre-login downgrade attack detected.`);\n        }\n    }\n    static fromJSON(json) {\n        return new Argon2KdfConfig(json.iterations, json.memory, json.parallelism);\n    }\n}\nArgon2KdfConfig.MEMORY = new _platform_misc_range_with_default__WEBPACK_IMPORTED_MODULE_1__.RangeWithDefault(16, 1024, 64);\nArgon2KdfConfig.PARALLELISM = new _platform_misc_range_with_default__WEBPACK_IMPORTED_MODULE_1__.RangeWithDefault(1, 16, 4);\nArgon2KdfConfig.ITERATIONS = new _platform_misc_range_with_default__WEBPACK_IMPORTED_MODULE_1__.RangeWithDefault(2, 10, 3);\nArgon2KdfConfig.PRELOGIN_MEMORY_MIN = 16;\nArgon2KdfConfig.PRELOGIN_PARALLELISM_MIN = 1;\nArgon2KdfConfig.PRELOGIN_ITERATIONS_MIN = 2;\nconst DEFAULT_KDF_CONFIG = new PBKDF2KdfConfig(PBKDF2KdfConfig.ITERATIONS.defaultValue);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10360 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/domain/kdf-config.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/domain/set-tokens-result.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/auth/models/domain/set-tokens-result.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SetTokensResult: () => (/* binding */ SetTokensResult)\n/* harmony export */ });\nclass SetTokensResult {\n    constructor(accessToken, refreshToken, clientIdSecretPair) {\n        this.accessToken = accessToken;\n        this.refreshToken = refreshToken;\n        this.clientIdSecretPair = clientIdSecretPair;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL2RvbWFpbi9zZXQtdG9rZW5zLXJlc3VsdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxlQUFlO0lBQzFCLFlBQVksV0FBbUIsRUFBRSxZQUFxQixFQUFFLGtCQUFxQztRQUMzRixJQUFJLENBQUMsV0FBVyxHQUFHLFdBQVcsQ0FBQztRQUMvQixJQUFJLENBQUMsWUFBWSxHQUFHLFlBQVksQ0FBQztRQUNqQyxJQUFJLENBQUMsa0JBQWtCLEdBQUcsa0JBQWtCLENBQUM7SUFDL0MsQ0FBQztDQUlGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL2RvbWFpbi9zZXQtdG9rZW5zLXJlc3VsdC50cz9iMDNjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBTZXRUb2tlbnNSZXN1bHQge1xuICBjb25zdHJ1Y3RvcihhY2Nlc3NUb2tlbjogc3RyaW5nLCByZWZyZXNoVG9rZW4/OiBzdHJpbmcsIGNsaWVudElkU2VjcmV0UGFpcj86IFtzdHJpbmcsIHN0cmluZ10pIHtcbiAgICB0aGlzLmFjY2Vzc1Rva2VuID0gYWNjZXNzVG9rZW47XG4gICAgdGhpcy5yZWZyZXNoVG9rZW4gPSByZWZyZXNoVG9rZW47XG4gICAgdGhpcy5jbGllbnRJZFNlY3JldFBhaXIgPSBjbGllbnRJZFNlY3JldFBhaXI7XG4gIH1cbiAgYWNjZXNzVG9rZW46IHN0cmluZztcbiAgcmVmcmVzaFRva2VuPzogc3RyaW5nO1xuICBjbGllbnRJZFNlY3JldFBhaXI/OiBbc3RyaW5nLCBzdHJpbmddO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/domain/set-tokens-result.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/device.request.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/device.request.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeviceRequest: () => (/* binding */ DeviceRequest)\n/* harmony export */ });\nclass DeviceRequest {\n    constructor(appId, platformUtilsService) {\n        this.type = platformUtilsService.getDevice();\n        this.name = platformUtilsService.getDeviceString();\n        this.identifier = appId;\n        this.pushToken = null;\n    }\n    static fromJSON(json) {\n        return Object.assign(Object.create(DeviceRequest.prototype), json);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxl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XCI7XG5cbmV4cG9ydCBjbGFzcyBEZXZpY2VSZXF1ZXN0IHtcbiAgdHlwZTogRGV2aWNlVHlwZTtcbiAgbmFtZTogc3RyaW5nO1xuICBpZGVudGlmaWVyOiBzdHJpbmc7XG4gIHB1c2hUb2tlbj86IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihhcHBJZDogc3RyaW5nLCBwbGF0Zm9ybVV0aWxzU2VydmljZTogUGxhdGZvcm1VdGlsc1NlcnZpY2UpIHtcbiAgICB0aGlzLnR5cGUgPSBwbGF0Zm9ybVV0aWxzU2VydmljZS5nZXREZXZpY2UoKTtcbiAgICB0aGlzLm5hbWUgPSBwbGF0Zm9ybVV0aWxzU2VydmljZS5nZXREZXZpY2VTdHJpbmcoKTtcbiAgICB0aGlzLmlkZW50aWZpZXIgPSBhcHBJZDtcbiAgICB0aGlzLnB1c2hUb2tlbiA9IG51bGw7XG4gIH1cblxuICBzdGF0aWMgZnJvbUpTT04oanNvbjogSnNvbmlmeTxEZXZpY2VSZXF1ZXN0Pikge1xuICAgIHJldHVybiBPYmplY3QuYXNzaWduKE9iamVjdC5jcmVhdGUoRGV2aWNlUmVxdWVzdC5wcm90b3R5cGUpLCBqc29uKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/device.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/password-token.request.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/password-token.request.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordTokenRequest: () => (/* binding */ PasswordTokenRequest)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _device_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./device.request */ \"../../libs/common/src/auth/models/request/identity-token/device.request.ts\");\n/* harmony import */ var _token_two_factor_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _token_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./token.request */ \"../../libs/common/src/auth/models/request/identity-token/token.request.ts\");\n\n\n\n\nclass PasswordTokenRequest extends _token_request__WEBPACK_IMPORTED_MODULE_3__.TokenRequest {\n    constructor(email, masterPasswordHash, captchaResponse, twoFactor, device) {\n        super(twoFactor, device);\n        this.email = email;\n        this.masterPasswordHash = masterPasswordHash;\n        this.captchaResponse = captchaResponse;\n        this.twoFactor = twoFactor;\n    }\n    toIdentityToken(clientId) {\n        const obj = super.toIdentityToken(clientId);\n        obj.grant_type = \"password\";\n        obj.username = this.email;\n        obj.password = this.masterPasswordHash;\n        if (this.captchaResponse != null) {\n            obj.captchaResponse = this.captchaResponse;\n        }\n        return obj;\n    }\n    alterIdentityTokenHeaders(headers) {\n        headers.set(\"Auth-Email\", _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromUtf8ToUrlB64(this.email));\n    }\n    static fromJSON(json) {\n        return Object.assign(Object.create(PasswordTokenRequest.prototype), json, {\n            device: json.device ? _device_request__WEBPACK_IMPORTED_MODULE_1__.DeviceRequest.fromJSON(json.device) : undefined,\n            twoFactor: json.twoFactor\n                ? Object.assign(new _token_two_factor_request__WEBPACK_IMPORTED_MODULE_2__.TokenTwoFactorRequest(), json.twoFactor)\n                : undefined,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlic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1cblxuICAgIHJldHVybiBvYmo7XG4gIH1cblxuICBhbHRlcklkZW50aXR5VG9rZW5IZWFkZXJzKGhlYWRlcnM6IEhlYWRlcnMpIHtcbiAgICBoZWFkZXJzLnNldChcIkF1dGgtRW1haWxcIiwgVXRpbHMuZnJvbVV0ZjhUb1VybEI2NCh0aGlzLmVtYWlsKSk7XG4gIH1cblxuICBzdGF0aWMgZnJvbUpTT04oanNvbjogYW55KSB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oT2JqZWN0LmNyZWF0ZShQYXNzd29yZFRva2VuUmVxdWVzdC5wcm90b3R5cGUpLCBqc29uLCB7XG4gICAgICBkZXZpY2U6IGpzb24uZGV2aWNlID8gRGV2aWNlUmVxdWVzdC5mcm9tSlNPTihqc29uLmRldmljZSkgOiB1bmRlZmluZWQsXG4gICAgICB0d29GYWN0b3I6IGpzb24udHdvRmFjdG9yXG4gICAgICAgID8gT2JqZWN0LmFzc2lnbihuZXcgVG9rZW5Ud29GYWN0b3JSZXF1ZXN0KCksIGpzb24udHdvRmFjdG9yKVxuICAgICAgICA6IHVuZGVmaW5lZCxcbiAgICB9KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/password-token.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/sso-token.request.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/sso-token.request.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SsoTokenRequest: () => (/* binding */ SsoTokenRequest)\n/* harmony export */ });\n/* harmony import */ var _device_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./device.request */ \"../../libs/common/src/auth/models/request/identity-token/device.request.ts\");\n/* harmony import */ var _token_two_factor_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _token_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token.request */ \"../../libs/common/src/auth/models/request/identity-token/token.request.ts\");\n\n\n\nclass SsoTokenRequest extends _token_request__WEBPACK_IMPORTED_MODULE_2__.TokenRequest {\n    constructor(code, codeVerifier, redirectUri, twoFactor, device) {\n        super(twoFactor, device);\n        this.code = code;\n        this.codeVerifier = codeVerifier;\n        this.redirectUri = redirectUri;\n        this.twoFactor = twoFactor;\n    }\n    toIdentityToken(clientId) {\n        const obj = super.toIdentityToken(clientId);\n        obj.grant_type = \"authorization_code\";\n        obj.code = this.code;\n        obj.code_verifier = this.codeVerifier;\n        obj.redirect_uri = this.redirectUri;\n        return obj;\n    }\n    static fromJSON(json) {\n        return Object.assign(Object.create(SsoTokenRequest.prototype), json, {\n            device: json.device ? _device_request__WEBPACK_IMPORTED_MODULE_0__.DeviceRequest.fromJSON(json.device) : undefined,\n            twoFactor: json.twoFactor\n                ? Object.assign(new _token_two_factor_request__WEBPACK_IMPORTED_MODULE_1__.TokenTwoFactorRequest(), json.twoFactor)\n                : undefined,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvaWRlbnRpdHktdG9rZW4vc3NvLXRva2VuLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFpRDtBQUNrQjtBQUNwQjtBQUV4QyxNQUFNLGVBQWdCLFNBQVEsd0RBQVk7SUFDL0MsWUFDUyxJQUFZLEVBQ1osWUFBb0IsRUFDcEIsV0FBbUIsRUFDaEIsU0FBZ0MsRUFDMUMsTU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NvZGU7XG4gICAgb2JqLmNvZGVfdmVyaWZpZXIgPSB0aGlzLmNvZGVWZXJpZmllcjtcbiAgICBvYmoucmVkaXJlY3RfdXJpID0gdGhpcy5yZWRpcmVjdFVyaTtcblxuICAgIHJldHVybiBvYmo7XG4gIH1cblxuICBzdGF0aWMgZnJvbUpTT04oanNvbjogYW55KSB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oT2JqZWN0LmNyZWF0ZShTc29Ub2tlblJlcXVlc3QucHJvdG90eXBlKSwganNvbiwge1xuICAgICAgZGV2aWNlOiBqc29uLmRldmljZSA/IERldmljZVJlcXVlc3QuZnJvbUpTT04oanNvbi5kZXZpY2UpIDogdW5kZWZpbmVkLFxuICAgICAgdHdvRmFjdG9yOiBqc29uLnR3b0ZhY3RvclxuICAgICAgICA/IE9iamVjdC5hc3NpZ24obmV3IFRva2VuVHdvRmFjdG9yUmVxdWVzdCgpLCBqc29uLnR3b0ZhY3RvcilcbiAgICAgICAgOiB1bmRlZmluZWQsXG4gICAgfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/sso-token.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TokenTwoFactorRequest: () => (/* binding */ TokenTwoFactorRequest)\n/* harmony export */ });\nclass TokenTwoFactorRequest {\n    constructor(provider = null, token = null, remember = false) {\n        this.provider = provider;\n        this.token = token;\n        this.remember = remember;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvaWRlbnRpdHktdG9rZW4vdG9rZW4tdHdvLWZhY3Rvci5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNLHFCQUFxQjtJQUNoQyxZQUNTLFdBQWtDLElBQUksRUFDdEMsUUFBZ0IsSUFBSSxFQUNwQixXQUFvQixLQUFLO1FBRnpCLGFBQVEsR0FBUixRQUFRLENBQThCO1FBQ3RDLFVBQUssR0FBTCxLQUFLLENBQWU7UUFDcEIsYUFBUSxHQUFSLFFBQVEsQ0FBaUI7SUFDL0IsQ0FBQztDQUNMIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvaWRlbnRpdHktdG9rZW4vdG9rZW4tdHdvLWZhY3Rvci5yZXF1ZXN0LnRzPzQyODgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHdvRmFjdG9yUHJvdmlkZXJUeXBlIH0gZnJvbSBcIi4uLy4uLy4uL2VudW1zL3R3by1mYWN0b3ItcHJvdmlkZXItdHlwZVwiO1xuXG5leHBvcnQgY2xhc3MgVG9rZW5Ud29GYWN0b3JSZXF1ZXN0IHtcbiAgY29uc3RydWN0b3IoXG4gICAgcHVibGljIHByb3ZpZGVyOiBUd29GYWN0b3JQcm92aWRlclR5cGUgPSBudWxsLFxuICAgIHB1YmxpYyB0b2tlbjogc3RyaW5nID0gbnVsbCxcbiAgICBwdWJsaWMgcmVtZW1iZXI6IGJvb2xlYW4gPSBmYWxzZSxcbiAgKSB7fVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/token.request.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/token.request.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TokenRequest: () => (/* binding */ TokenRequest)\n/* harmony export */ });\nclass TokenRequest {\n    constructor(twoFactor, device) {\n        this.twoFactor = twoFactor;\n        this.device = device != null ? device : null;\n    }\n    // eslint-disable-next-line\n    alterIdentityTokenHeaders(headers) {\n        // Implemented in subclass if required\n    }\n    setTwoFactor(twoFactor) {\n        this.twoFactor = twoFactor;\n    }\n    setAuthRequestAccessCode(accessCode) {\n        this.authRequest = accessCode;\n    }\n    toIdentityToken(clientId) {\n        const obj = {\n            scope: \"api offline_access\",\n            client_id: clientId,\n        };\n        if (this.device) {\n            obj.deviceType = this.device.type;\n            obj.deviceIdentifier = this.device.identifier;\n            obj.deviceName = this.device.name;\n            // no push tokens for browser apps yet\n            // obj.devicePushToken = this.device.pushToken;\n        }\n        //passswordless login\n        if (this.authRequest) {\n            obj.authRequest = this.authRequest;\n        }\n        if (this.twoFactor) {\n            if (this.twoFactor.token && this.twoFactor.provider != null) {\n                obj.twoFactorToken = this.twoFactor.token;\n                obj.twoFactorProvider = this.twoFactor.provider;\n                obj.twoFactorRemember = this.twoFactor.remember ? \"1\" : \"0\";\n            }\n        }\n        return obj;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvaWRlbnRpdHktdG9rZW4vdG9rZW4ucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBR08sTUFBZSxZQUFZO0lBSWhDLFlBQ1ksU0FBaUMsRUFDM0MsTUFBc0I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qLmRldmljZVB1c2hUb2tlbiA9IHRoaXMuZGV2aWNlLnB1c2hUb2tlbjtcbiAgICB9XG5cbiAgICAvL3Bhc3Nzd29yZGxlc3MgbG9naW5cbiAgICBpZiAodGhpcy5hdXRoUmVxdWVzdCkge1xuICAgICAgb2JqLmF1dGhSZXF1ZXN0ID0gdGhpcy5hdXRoUmVxdWVzdDtcbiAgICB9XG5cbiAgICBpZiAodGhpcy50d29GYWN0b3IpIHtcbiAgICAgIGlmICh0aGlzLnR3b0ZhY3Rvci50b2tlbiAmJiB0aGlzLnR3b0ZhY3Rvci5wcm92aWRlciAhPSBudWxsKSB7XG4gICAgICAgIG9iai50d29GYWN0b3JUb2tlbiA9IHRoaXMudHdvRmFjdG9yLnRva2VuO1xuICAgICAgICBvYmoudHdvRmFjdG9yUHJvdmlkZXIgPSB0aGlzLnR3b0ZhY3Rvci5wcm92aWRlcjtcbiAgICAgICAgb2JqLnR3b0ZhY3RvclJlbWVtYmVyID0gdGhpcy50d29GYWN0b3IucmVtZW1iZXIgPyBcIjFcIiA6IFwiMFwiO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBvYmo7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/token.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/user-api-token.request.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/user-api-token.request.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserApiTokenRequest: () => (/* binding */ UserApiTokenRequest)\n/* harmony export */ });\n/* harmony import */ var _device_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./device.request */ \"../../libs/common/src/auth/models/request/identity-token/device.request.ts\");\n/* harmony import */ var _token_two_factor_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _token_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token.request */ \"../../libs/common/src/auth/models/request/identity-token/token.request.ts\");\n\n\n\nclass UserApiTokenRequest extends _token_request__WEBPACK_IMPORTED_MODULE_2__.TokenRequest {\n    constructor(clientId, clientSecret, twoFactor, device) {\n        super(twoFactor, device);\n        this.clientId = clientId;\n        this.clientSecret = clientSecret;\n        this.twoFactor = twoFactor;\n    }\n    toIdentityToken() {\n        const obj = super.toIdentityToken(this.clientId);\n        obj.scope = this.clientId.startsWith(\"organization\") ? \"api.organization\" : \"api\";\n        obj.grant_type = \"client_credentials\";\n        obj.client_secret = this.clientSecret;\n        return obj;\n    }\n    static fromJSON(json) {\n        return Object.assign(Object.create(UserApiTokenRequest.prototype), json, {\n            device: json.device ? _device_request__WEBPACK_IMPORTED_MODULE_0__.DeviceRequest.fromJSON(json.device) : undefined,\n            twoFactor: json.twoFactor\n                ? Object.assign(new _token_two_factor_request__WEBPACK_IMPORTED_MODULE_1__.TokenTwoFactorRequest(), json.twoFactor)\n                : undefined,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvaWRlbnRpdHktdG9rZW4vdXNlci1hcGktdG9rZW4ucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQWlEO0FBQ2tCO0FBQ3BCO0FBRXhDLE1BQU0sbUJBQW9CLFNBQVEsd0RBQVk7SUFDbkQsWUFDUyxRQUFnQixFQUNoQixZQUFvQixFQUNqQixTQUFnQyxFQUMxQyxNQUFzQjtRQUV0QixL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ZSA9IFwiY2xpZW50X2NyZWRlbnRpYWxzXCI7XG4gICAgb2JqLmNsaWVudF9zZWNyZXQgPSB0aGlzLmNsaWVudFNlY3JldDtcblxuICAgIHJldHVybiBvYmo7XG4gIH1cblxuICBzdGF0aWMgZnJvbUpTT04oanNvbjogYW55KSB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24oT2JqZWN0LmNyZWF0ZShVc2VyQXBpVG9rZW5SZXF1ZXN0LnByb3RvdHlwZSksIGpzb24sIHtcbiAgICAgIGRldmljZToganNvbi5kZXZpY2UgPyBEZXZpY2VSZXF1ZXN0LmZyb21KU09OKGpzb24uZGV2aWNlKSA6IHVuZGVmaW5lZCxcbiAgICAgIHR3b0ZhY3RvcjoganNvbi50d29GYWN0b3JcbiAgICAgICAgPyBPYmplY3QuYXNzaWduKG5ldyBUb2tlblR3b0ZhY3RvclJlcXVlc3QoKSwganNvbi50d29GYWN0b3IpXG4gICAgICAgIDogdW5kZWZpbmVkLFxuICAgIH0pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/user-api-token.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/identity-token/webauthn-login-token.request.ts":
/*!************************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/identity-token/webauthn-login-token.request.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   WebAuthnLoginTokenRequest: () => (/* binding */ WebAuthnLoginTokenRequest)\n/* harmony export */ });\n/* harmony import */ var _services_webauthn_login_request_webauthn_login_assertion_response_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/webauthn-login/request/webauthn-login-assertion-response.request */ \"../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-assertion-response.request.ts\");\n/* harmony import */ var _device_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./device.request */ \"../../libs/common/src/auth/models/request/identity-token/device.request.ts\");\n/* harmony import */ var _token_two_factor_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _token_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./token.request */ \"../../libs/common/src/auth/models/request/identity-token/token.request.ts\");\n\n\n\n\nclass WebAuthnLoginTokenRequest extends _token_request__WEBPACK_IMPORTED_MODULE_3__.TokenRequest {\n    constructor(token, deviceResponse, device) {\n        super(undefined, device);\n        this.token = token;\n        this.deviceResponse = deviceResponse;\n    }\n    toIdentityToken(clientId) {\n        const obj = super.toIdentityToken(clientId);\n        obj.grant_type = \"webauthn\";\n        obj.token = this.token;\n        // must be a string b/c sending as form encoded data\n        obj.deviceResponse = JSON.stringify(this.deviceResponse);\n        return obj;\n    }\n    static fromJSON(json) {\n        return Object.assign(Object.create(WebAuthnLoginTokenRequest.prototype), json, {\n            deviceResponse: _services_webauthn_login_request_webauthn_login_assertion_response_request__WEBPACK_IMPORTED_MODULE_0__.WebAuthnLoginAssertionResponseRequest.fromJSON(json.deviceResponse),\n            device: json.device ? _device_request__WEBPACK_IMPORTED_MODULE_1__.DeviceRequest.fromJSON(json.device) : undefined,\n            twoFactor: json.twoFactor\n                ? Object.assign(new _token_two_factor_request__WEBPACK_IMPORTED_MODULE_2__.TokenTwoFactorRequest(), json.twoFactor)\n                : undefined,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvaWRlbnRpdHktdG9rZW4vd2ViYXV0aG4tbG9naW4tdG9rZW4ucmVxd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uIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/identity-token/webauthn-login-token.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/key-connector-user-key.request.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/key-connector-user-key.request.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyConnectorUserKeyRequest: () => (/* binding */ KeyConnectorUserKeyRequest)\n/* harmony export */ });\nclass KeyConnectorUserKeyRequest {\n    constructor(key) {\n        this.key = key;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3Qva2V5LWNvbm5lY3Rvci11c2VyLWtleS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLDBCQUEwQjtJQUdyQyxZQUFZLEdBQVc7UUFDckIsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7SUFDakIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3Qva2V5LWNvbm5lY3Rvci11c2VyLWtleS5yZXF1ZXN0LnRzPzE3NmUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEtleUNvbm5lY3RvclVzZXJLZXlSZXF1ZXN0IHtcbiAga2V5OiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3Ioa2V5OiBzdHJpbmcpIHtcbiAgICB0aGlzLmtleSA9IGtleTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/key-connector-user-key.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/password.request.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/password.request.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordRequest: () => (/* binding */ PasswordRequest)\n/* harmony export */ });\n/* harmony import */ var _secret_verification_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./secret-verification.request */ \"../../libs/common/src/auth/models/request/secret-verification.request.ts\");\n\nclass PasswordRequest extends _secret_verification_request__WEBPACK_IMPORTED_MODULE_0__.SecretVerificationRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvcGFzc3dvcmQucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUEwRTtBQUVuRSxNQUFNLGVBQWdCLFNBQVEsbUZBQXlCO0NBSTdEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvcGFzc3dvcmQucmVxdWVzdC50cz9hMmNmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlY3JldFZlcmlmaWNhdGlvblJlcXVlc3QgfSBmcm9tIFwiLi9zZWNyZXQtdmVyaWZpY2F0aW9uLnJlcXVlc3RcIjtcblxuZXhwb3J0IGNsYXNzIFBhc3N3b3JkUmVxdWVzdCBleHRlbmRzIFNlY3JldFZlcmlmaWNhdGlvblJlcXVlc3Qge1xuICBuZXdNYXN0ZXJQYXNzd29yZEhhc2g6IHN0cmluZztcbiAgbWFzdGVyUGFzc3dvcmRIaW50OiBzdHJpbmc7XG4gIGtleTogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/password.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/passwordless-auth.request.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/passwordless-auth.request.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordlessAuthRequest: () => (/* binding */ PasswordlessAuthRequest)\n/* harmony export */ });\nclass PasswordlessAuthRequest {\n    constructor(key, masterPasswordHash, deviceIdentifier, requestApproved) {\n        this.key = key;\n        this.masterPasswordHash = masterPasswordHash;\n        this.deviceIdentifier = deviceIdentifier;\n        this.requestApproved = requestApproved;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvcGFzc3dvcmRsZXNzLWF1dGgucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSx1QkFBdUI7SUFDbEMsWUFDVyxHQUFXLEVBQ1gsa0JBQTBCLEVBQzFCLGdCQUF3QixFQUN4QixlQUF3QjtRQUh4QixRQUFHLEdBQUgsR0FBRyxDQUFRO1FBQ1gsdUJBQWtCLEdBQWxCLGtCQUFrQixDQUFRO1FBQzFCLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBUTtRQUN4QixvQkFBZSxHQUFmLGVBQWUsQ0FBUztJQUNoQyxDQUFDO0NBQ0wiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYXV0aC9tb2RlbHMvcmVxdWVzdC9wYXNzd29yZGxlc3MtYXV0aC5yZXF1ZXN0LnRzPzU5ODgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFBhc3N3b3JkbGVzc0F1dGhSZXF1ZXN0IHtcbiAgY29uc3RydWN0b3IoXG4gICAgcmVhZG9ubHkga2V5OiBzdHJpbmcsXG4gICAgcmVhZG9ubHkgbWFzdGVyUGFzc3dvcmRIYXNoOiBzdHJpbmcsXG4gICAgcmVhZG9ubHkgZGV2aWNlSWRlbnRpZmllcjogc3RyaW5nLFxuICAgIHJlYWRvbmx5IHJlcXVlc3RBcHByb3ZlZDogYm9vbGVhbixcbiAgKSB7fVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/passwordless-auth.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/secret-verification.request.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/secret-verification.request.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecretVerificationRequest: () => (/* binding */ SecretVerificationRequest)\n/* harmony export */ });\nclass SecretVerificationRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3Qvc2VjcmV0LXZlcmlmaWNhdGlvbi5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLHlCQUF5QjtDQUlyQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXF1ZXN0L3NlY3JldC12ZXJpZmljYXRpb24ucmVxdWVzdC50cz83OWEyIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBTZWNyZXRWZXJpZmljYXRpb25SZXF1ZXN0IHtcbiAgbWFzdGVyUGFzc3dvcmRIYXNoOiBzdHJpbmc7XG4gIG90cDogc3RyaW5nO1xuICBhdXRoUmVxdWVzdEFjY2Vzc0NvZGU6IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/secret-verification.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/set-key-connector-key.request.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/set-key-connector-key.request.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SetKeyConnectorKeyRequest: () => (/* binding */ SetKeyConnectorKeyRequest)\n/* harmony export */ });\n/* harmony import */ var _platform_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n\nclass SetKeyConnectorKeyRequest {\n    constructor(key, kdfConfig, orgIdentifier, keys) {\n        this.key = key;\n        this.kdf = kdfConfig.kdfType;\n        this.kdfIterations = kdfConfig.iterations;\n        if (kdfConfig.kdfType === _platform_enums__WEBPACK_IMPORTED_MODULE_0__.KdfType.Argon2id) {\n            this.kdfMemory = kdfConfig.memory;\n            this.kdfParallelism = kdfConfig.parallelism;\n        }\n        this.orgIdentifier = orgIdentifier;\n        this.keys = keys;\n    }\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/common/src/auth/models/request/set-key-connector-key.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/two-factor-email.request.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/two-factor-email.request.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorEmailRequest: () => (/* binding */ TwoFactorEmailRequest)\n/* harmony export */ });\n/* harmony import */ var _secret_verification_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./secret-verification.request */ \"../../libs/common/src/auth/models/request/secret-verification.request.ts\");\n\nclass TwoFactorEmailRequest extends _secret_verification_request__WEBPACK_IMPORTED_MODULE_0__.SecretVerificationRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvdHdvLWZhY3Rvci1lbWFpbC5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQTBFO0FBRW5FLE1BQU0scUJBQXNCLFNBQVEsbUZBQXlCO0NBS25FIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvdHdvLWZhY3Rvci1lbWFpbC5yZXF1ZXN0LnRzPzVmNjciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VjcmV0VmVyaWZpY2F0aW9uUmVxdWVzdCB9IGZyb20gXCIuL3NlY3JldC12ZXJpZmljYXRpb24ucmVxdWVzdFwiO1xuXG5leHBvcnQgY2xhc3MgVHdvRmFjdG9yRW1haWxSZXF1ZXN0IGV4dGVuZHMgU2VjcmV0VmVyaWZpY2F0aW9uUmVxdWVzdCB7XG4gIGVtYWlsOiBzdHJpbmc7XG4gIGRldmljZUlkZW50aWZpZXI6IHN0cmluZztcbiAgYXV0aFJlcXVlc3RJZDogc3RyaW5nO1xuICBzc29FbWFpbDJGYVNlc3Npb25Ub2tlbj86IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/two-factor-email.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/update-devices-trust.request.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/update-devices-trust.request.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeviceKeysUpdateRequest: () => (/* binding */ DeviceKeysUpdateRequest),\n/* harmony export */   OtherDeviceKeysUpdateRequest: () => (/* binding */ OtherDeviceKeysUpdateRequest),\n/* harmony export */   UpdateDevicesTrustRequest: () => (/* binding */ UpdateDevicesTrustRequest)\n/* harmony export */ });\n/* harmony import */ var _secret_verification_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./secret-verification.request */ \"../../libs/common/src/auth/models/request/secret-verification.request.ts\");\n\nclass UpdateDevicesTrustRequest extends _secret_verification_request__WEBPACK_IMPORTED_MODULE_0__.SecretVerificationRequest {\n}\nclass DeviceKeysUpdateRequest {\n}\nclass OtherDeviceKeysUpdateRequest extends DeviceKeysUpdateRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvdXBkYXRlLWRldmljZXMtdHJ1c3QucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQTBFO0FBRW5FLE1BQU0seUJBQTBCLFNBQVEsbUZBQXlCO0NBR3ZFO0FBRU0sTUFBTSx1QkFBdUI7Q0FHbkM7QUFFTSxNQUFNLDRCQUE2QixTQUFRLHVCQUF1QjtDQUV4RSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXF1ZXN0L3VwZGF0ZS1kZXZpY2VzLXRydXN0LnJlcXVlc3QudHM/MTEyMyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTZWNyZXRWZXJpZmljYXRpb25SZXF1ZXN0IH0gZnJvbSBcIi4vc2VjcmV0LXZlcmlmaWNhdGlvbi5yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjbGFzcyBVcGRhdGVEZXZpY2VzVHJ1c3RSZXF1ZXN0IGV4dGVuZHMgU2VjcmV0VmVyaWZpY2F0aW9uUmVxdWVzdCB7XG4gIGN1cnJlbnREZXZpY2U6IERldmljZUtleXNVcGRhdGVSZXF1ZXN0O1xuICBvdGhlckRldmljZXM6IE90aGVyRGV2aWNlS2V5c1VwZGF0ZVJlcXVlc3RbXTtcbn1cblxuZXhwb3J0IGNsYXNzIERldmljZUtleXNVcGRhdGVSZXF1ZXN0IHtcbiAgZW5jcnlwdGVkUHVibGljS2V5OiBzdHJpbmc7XG4gIGVuY3J5cHRlZFVzZXJLZXk6IHN0cmluZztcbn1cblxuZXhwb3J0IGNsYXNzIE90aGVyRGV2aWNlS2V5c1VwZGF0ZVJlcXVlc3QgZXh0ZW5kcyBEZXZpY2VLZXlzVXBkYXRlUmVxdWVzdCB7XG4gIGlkOiBzdHJpbmc7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/update-devices-trust.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/update-temp-password.request.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/update-temp-password.request.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UpdateTempPasswordRequest: () => (/* binding */ UpdateTempPasswordRequest)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n\nclass UpdateTempPasswordRequest extends _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.OrganizationUserResetPasswordRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvdXBkYXRlLXRlbXAtcGFzc3dvcmQucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUF1RjtBQUVoRixNQUFNLHlCQUEwQixTQUFRLGlHQUFvQztDQUVsRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXF1ZXN0L3VwZGF0ZS10ZW1wLXBhc3N3b3JkLnJlcXVlc3QudHM/Zjk0NCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPcmdhbml6YXRpb25Vc2VyUmVzZXRQYXNzd29yZFJlcXVlc3QgfSBmcm9tIFwiQGJpdHdhcmRlbi9hZG1pbi1jb25zb2xlL2NvbW1vblwiO1xuXG5leHBvcnQgY2xhc3MgVXBkYXRlVGVtcFBhc3N3b3JkUmVxdWVzdCBleHRlbmRzIE9yZ2FuaXphdGlvblVzZXJSZXNldFBhc3N3b3JkUmVxdWVzdCB7XG4gIG1hc3RlclBhc3N3b3JkSGludDogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/update-temp-password.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/request/verify-otp.request.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/auth/models/request/verify-otp.request.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VerifyOTPRequest: () => (/* binding */ VerifyOTPRequest)\n/* harmony export */ });\nclass VerifyOTPRequest {\n    constructor(OTP) {\n        this.OTP = OTP;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvdmVyaWZ5LW90cC5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLGdCQUFnQjtJQUczQixZQUFZLEdBQVc7UUFDckIsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7SUFDakIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3JlcXVlc3QvdmVyaWZ5LW90cC5yZXF1ZXN0LnRzPzYxMTUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFZlcmlmeU9UUFJlcXVlc3Qge1xuICBPVFA6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihPVFA6IHN0cmluZykge1xuICAgIHRoaXMuT1RQID0gT1RQO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/request/verify-otp.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/api-key.response.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/api-key.response.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ApiKeyResponse: () => (/* binding */ ApiKeyResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass ApiKeyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.apiKey = this.getResponseProperty(\"ApiKey\");\n        this.revisionDate = new Date(this.getResponseProperty(\"RevisionDate\"));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL2FwaS1rZXkucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSxjQUFlLFNBQVEsd0VBQVk7SUFJOUMsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNqRCxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksSUFBSSxDQUFDLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO0lBQ3pFLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXNwb25zZS9hcGkta2V5LnJlc3BvbnNlLnRzP2QxZDkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBBcGlLZXlSZXNwb25zZSBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIGFwaUtleTogc3RyaW5nO1xuICByZXZpc2lvbkRhdGU6IERhdGU7XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IGFueSkge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICB0aGlzLmFwaUtleSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkFwaUtleVwiKTtcbiAgICB0aGlzLnJldmlzaW9uRGF0ZSA9IG5ldyBEYXRlKHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlJldmlzaW9uRGF0ZVwiKSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/api-key.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/auth-request.response.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/auth-request.response.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestResponse: () => (/* binding */ AuthRequestResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nconst RequestTimeOut = 60000 * 15; //15 Minutes\nclass AuthRequestResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.publicKey = this.getResponseProperty(\"PublicKey\");\n        this.requestDeviceType = this.getResponseProperty(\"RequestDeviceType\");\n        this.requestIpAddress = this.getResponseProperty(\"RequestIpAddress\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.masterPasswordHash = this.getResponseProperty(\"MasterPasswordHash\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n        this.requestApproved = this.getResponseProperty(\"RequestApproved\");\n        this.responseDate = this.getResponseProperty(\"ResponseDate\");\n        const requestDate = new Date(this.creationDate);\n        const requestDateUTC = Date.UTC(requestDate.getUTCFullYear(), requestDate.getUTCMonth(), requestDate.getDate(), requestDate.getUTCHours(), requestDate.getUTCMinutes(), requestDate.getUTCSeconds(), requestDate.getUTCMilliseconds());\n        const dateNow = new Date(Date.now());\n        const dateNowUTC = Date.UTC(dateNow.getUTCFullYear(), dateNow.getUTCMonth(), dateNow.getDate(), dateNow.getUTCHours(), dateNow.getUTCMinutes(), dateNow.getUTCSeconds(), dateNow.getUTCMilliseconds());\n        this.isExpired = dateNowUTC - requestDateUTC >= RequestTimeOut;\n        this.isAnswered = this.requestApproved != null && this.responseDate != null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4964 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/auth-request.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/device-verification.response.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/device-verification.response.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeviceVerificationResponse: () => (/* binding */ DeviceVerificationResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass DeviceVerificationResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.isDeviceVerificationSectionEnabled = this.getResponseProperty(\"IsDeviceVerificationSectionEnabled\");\n        this.unknownDeviceVerificationEnabled = this.getResponseProperty(\"UnknownDeviceVerificationEnabled\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL2RldmljZS12ZXJpZmljYXRpb24ucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSwwQkFBMkIsU0FBUSx3RUFBWTtJQUkxRCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxrQ0FBa0MsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQ2hFLG9DQUFvQyxDQUNyQyxDQUFDO1FBQ0YsSUFBSSxDQUFDLGdDQUFnQyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FDOUQsa0NBQWtDLENBQ25DLENBQUM7SUFDSixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYXV0aC9tb2RlbHMvcmVzcG9uc2UvZGV2aWNlLXZlcmlmaWNhdGlvbi5yZXNwb25zZS50cz8wZGFhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgRGV2aWNlVmVyaWZpY2F0aW9uUmVzcG9uc2UgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICBpc0RldmljZVZlcmlmaWNhdGlvblNlY3Rpb25FbmFibGVkOiBib29sZWFuO1xuICB1bmtub3duRGV2aWNlVmVyaWZpY2F0aW9uRW5hYmxlZDogYm9vbGVhbjtcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuaXNEZXZpY2VWZXJpZmljYXRpb25TZWN0aW9uRW5hYmxlZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcbiAgICAgIFwiSXNEZXZpY2VWZXJpZmljYXRpb25TZWN0aW9uRW5hYmxlZFwiLFxuICAgICk7XG4gICAgdGhpcy51bmtub3duRGV2aWNlVmVyaWZpY2F0aW9uRW5hYmxlZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcbiAgICAgIFwiVW5rbm93bkRldmljZVZlcmlmaWNhdGlvbkVuYWJsZWRcIixcbiAgICApO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/device-verification.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/identity-captcha.response.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/identity-captcha.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityCaptchaResponse: () => (/* binding */ IdentityCaptchaResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass IdentityCaptchaResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.siteKey = this.getResponseProperty(\"HCaptcha_SiteKey\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL2lkZW50aXR5LWNhcHRjaGEucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSx1QkFBd0IsU0FBUSx3RUFBWTtJQUd2RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGtCQUFrQixDQUFDLENBQUM7SUFDOUQsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL2lkZW50aXR5LWNhcHRjaGEucmVzcG9uc2UudHM/M2M5MiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIElkZW50aXR5Q2FwdGNoYVJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgc2l0ZUtleTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5zaXRlS2V5ID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiSENhcHRjaGFfU2l0ZUtleVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/identity-captcha.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/identity-token.response.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/identity-token.response.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityTokenResponse: () => (/* binding */ IdentityTokenResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _master_password_policy_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./master-password-policy.response */ \"../../libs/common/src/auth/models/response/master-password-policy.response.ts\");\n/* harmony import */ var _user_decryption_options_user_decryption_options_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./user-decryption-options/user-decryption-options.response */ \"../../libs/common/src/auth/models/response/user-decryption-options/user-decryption-options.response.ts\");\n\n\n\nclass IdentityTokenResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.accessToken = response.access_token;\n        this.expiresIn = response.expires_in;\n        this.refreshToken = response.refresh_token;\n        this.tokenType = response.token_type;\n        this.resetMasterPassword = this.getResponseProperty(\"ResetMasterPassword\");\n        this.privateKey = this.getResponseProperty(\"PrivateKey\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.twoFactorToken = this.getResponseProperty(\"TwoFactorToken\");\n        this.kdf = this.getResponseProperty(\"Kdf\");\n        this.kdfIterations = this.getResponseProperty(\"KdfIterations\");\n        this.kdfMemory = this.getResponseProperty(\"KdfMemory\");\n        this.kdfParallelism = this.getResponseProperty(\"KdfParallelism\");\n        this.forcePasswordReset = this.getResponseProperty(\"ForcePasswordReset\");\n        this.apiUseKeyConnector = this.getResponseProperty(\"ApiUseKeyConnector\");\n        this.keyConnectorUrl = this.getResponseProperty(\"KeyConnectorUrl\");\n        this.masterPasswordPolicy = new _master_password_policy_response__WEBPACK_IMPORTED_MODULE_1__.MasterPasswordPolicyResponse(this.getResponseProperty(\"MasterPasswordPolicy\"));\n        if (response.UserDecryptionOptions) {\n            this.userDecryptionOptions = new _user_decryption_options_user_decryption_options_response__WEBPACK_IMPORTED_MODULE_2__.UserDecryptionOptionsResponse(this.getResponseProperty(\"UserDecryptionOptions\"));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4980 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/identity-token.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/identity-two-factor.response.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/identity-two-factor.response.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityTwoFactorResponse: () => (/* binding */ IdentityTwoFactorResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _master_password_policy_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./master-password-policy.response */ \"../../libs/common/src/auth/models/response/master-password-policy.response.ts\");\n\n\nclass IdentityTwoFactorResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.captchaToken = this.getResponseProperty(\"CaptchaBypassToken\");\n        this.twoFactorProviders = this.getResponseProperty(\"TwoFactorProviders\");\n        this.twoFactorProviders2 = this.getResponseProperty(\"TwoFactorProviders2\");\n        this.masterPasswordPolicy = new _master_password_policy_response__WEBPACK_IMPORTED_MODULE_1__.MasterPasswordPolicyResponse(this.getResponseProperty(\"MasterPasswordPolicy\"));\n        this.ssoEmail2faSessionToken = this.getResponseProperty(\"SsoEmail2faSessionToken\");\n        this.email = this.getResponseProperty(\"Email\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL2lkZW50aXR5LXR3by1mYWN0b3IucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQXNFO0FBR1c7QUFFMUUsTUFBTSx5QkFBMEIsU0FBUSx3RUFBWTtJQVV6RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLG9CQUFvQixDQUFDLENBQUM7UUFDbkUsSUFBSSxDQUFDLGtCQUFrQixHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO1FBQ3pFLElBQUksQ0FBQyxtQkFBbUIsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMscUJBQXFCLENBQUMsQ0FBQztRQUMzRSxJQUFJLENBQUMsb0JBQW9CLEdBQUcsSUFBSSwwRkFBNEIsQ0FDMUQsSUFBSSxDQUFDLG1CQUFtQixDQUFDLHNCQUF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=webpack-internal:///../../libs/common/src/auth/models/response/identity-two-factor.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/key-connector-user-key.response.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/key-connector-user-key.response.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyConnectorUserKeyResponse: () => (/* binding */ KeyConnectorUserKeyResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass KeyConnectorUserKeyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.key = this.getResponseProperty(\"Key\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL2tleS1jb25uZWN0b3ItdXNlci1rZXkucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSwyQkFBNEIsU0FBUSx3RUFBWTtJQUczRCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzdDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXNwb25zZS9rZXktY29ubmVjdG9yLXVzZXIta2V5LnJlc3BvbnNlLnRzP2JiZTgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBLZXlDb25uZWN0b3JVc2VyS2V5UmVzcG9uc2UgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICBrZXk6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMua2V5ID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiS2V5XCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/key-connector-user-key.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/master-password-policy.response.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/master-password-policy.response.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MasterPasswordPolicyResponse: () => (/* binding */ MasterPasswordPolicyResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass MasterPasswordPolicyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.minComplexity = this.getResponseProperty(\"MinComplexity\");\n        this.minLength = this.getResponseProperty(\"MinLength\");\n        this.requireUpper = this.getResponseProperty(\"RequireUpper\");\n        this.requireLower = this.getResponseProperty(\"RequireLower\");\n        this.requireNumbers = this.getResponseProperty(\"RequireNumbers\");\n        this.requireSpecial = this.getResponseProperty(\"RequireSpecial\");\n        this.enforceOnLogin = this.getResponseProperty(\"EnforceOnLogin\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL21hc3Rlci1wYXNzd29yZC1wb2xpY3kucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSw0QkFBNkIsU0FBUSx3RUFBWTtJQWU1RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBRWhCLElBQUksQ0FBQyxhQUFhLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGVBQWUsQ0FBQyxDQUFDO1FBQy9ELElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBQ3ZELElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGNBQWMsQ0FBQyxDQUFDO1FBQzdELElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGNBQWMsQ0FBQyxDQUFDO1FBQzdELElBQUksQ0FBQyxjQUFjLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGdCQUFnQixDQUFDLENBQUM7UUFDakUsSUFBSSxDQUFDLGNBQWMsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUNqRSxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBQ25FLENBQUM7Q0FDRiI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4gICAgdGhpcy5taW5MZW5ndGggPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJNaW5MZW5ndGhcIik7XG4gICAgdGhpcy5yZXF1aXJlVXBwZXIgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJSZXF1aXJlVXBwZXJcIik7XG4gICAgdGhpcy5yZXF1aXJlTG93ZXIgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJSZXF1aXJlTG93ZXJcIik7XG4gICAgdGhpcy5yZXF1aXJlTnVtYmVycyA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlJlcXVpcmVOdW1iZXJzXCIpO1xuICAgIHRoaXMucmVxdWlyZVNwZWNpYWwgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJSZXF1aXJlU3BlY2lhbFwiKTtcbiAgICB0aGlzLmVuZm9yY2VPbkxvZ2luID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiRW5mb3JjZU9uTG9naW5cIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/master-password-policy.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/organization-sso.response.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/organization-sso.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationSsoResponse: () => (/* binding */ OrganizationSsoResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _api_sso_config_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/sso-config.api */ \"../../libs/common/src/auth/models/api/sso-config.api.ts\");\n\n\nclass OrganizationSsoResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.identifier = this.getResponseProperty(\"Identifier\");\n        this.data =\n            this.getResponseProperty(\"Data\") != null\n                ? new _api_sso_config_api__WEBPACK_IMPORTED_MODULE_1__.SsoConfigApi(this.getResponseProperty(\"Data\"))\n                : null;\n        this.urls = new SsoUrls(this.getResponseProperty(\"Urls\"));\n    }\n}\nclass SsoUrls extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.callbackPath = this.getResponseProperty(\"CallbackPath\");\n        this.signedOutCallbackPath = this.getResponseProperty(\"SignedOutCallbackPath\");\n        this.spEntityId = this.getResponseProperty(\"SpEntityId\");\n        this.spEntityIdStatic = this.getResponseProperty(\"SpEntityIdStatic\");\n        this.spMetadataUrl = this.getResponseProperty(\"SpMetadataUrl\");\n        this.spAcsUrl = this.getResponseProperty(\"SpAcsUrl\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL29yZ2FuaXphdGlvbi1zc28ucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQXNFO0FBQ2pCO0FBRTlDLE1BQU0sdUJBQXdCLFNBQVEsd0VBQVk7SUFNdkQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUNuRCxJQUFJLENBQUMsVUFBVSxHQUFHLElB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c29VcmxzIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgY2FsbGJhY2tQYXRoOiBzdHJpbmc7XG4gIHNpZ25lZE91dENhbGxiYWNrUGF0aDogc3RyaW5nO1xuICBzcEVudGl0eUlkOiBzdHJpbmc7XG4gIHNwRW50aXR5SWRTdGF0aWM6IHN0cmluZztcbiAgc3BNZXRhZGF0YVVybDogc3RyaW5nO1xuICBzcEFjc1VybDogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5jYWxsYmFja1BhdGggPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJDYWxsYmFja1BhdGhcIik7XG4gICAgdGhpcy5zaWduZWRPdXRDYWxsYmFja1BhdGggPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJTaWduZWRPdXRDYWxsYmFja1BhdGhcIik7XG4gICAgdGhpcy5zcEVudGl0eUlkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiU3BFbnRpdHlJZFwiKTtcbiAgICB0aGlzLnNwRW50aXR5SWRTdGF0aWMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJTcEVudGl0eUlkU3RhdGljXCIpO1xuICAgIHRoaXMuc3BNZXRhZGF0YVVybCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlNwTWV0YWRhdGFVcmxcIik7XG4gICAgdGhpcy5zcEFjc1VybCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlNwQWNzVXJsXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/organization-sso.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/prelogin.response.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/prelogin.response.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PreloginResponse: () => (/* binding */ PreloginResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass PreloginResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.kdf = this.getResponseProperty(\"Kdf\");\n        this.kdfIterations = this.getResponseProperty(\"KdfIterations\");\n        this.kdfMemory = this.getResponseProperty(\"KdfMemory\");\n        this.kdfParallelism = this.getResponseProperty(\"KdfParallelism\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3ByZWxvZ2luLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRy9ELE1BQU0sZ0JBQWlCLFNBQVEsd0VBQVk7SUFNaEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUMzQyxJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxlQUFlLENBQUMsQ0FBQztRQUMvRCxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUN2RCxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksQ0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ifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/prelogin.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/protected-device.response.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/protected-device.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProtectedDeviceResponse: () => (/* binding */ ProtectedDeviceResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n\n\nclass ProtectedDeviceResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"id\");\n        this.name = this.getResponseProperty(\"name\");\n        this.identifier = this.getResponseProperty(\"identifier\");\n        this.type = this.getResponseProperty(\"type\");\n        this.creationDate = new Date(this.getResponseProperty(\"creationDate\"));\n        if (response.encryptedUserKey) {\n            this.encryptedUserKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(this.getResponseProperty(\"encryptedUserKey\"));\n        }\n        if (response.encryptedPublicKey) {\n            this.encryptedPublicKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(this.getResponseProperty(\"encryptedPublicKey\"));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3Bvbn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VpciBkZXZpY2VzLlxuICAgKiBUaGlzIGVuYWJsZWQgYSB1c2VyIHRvIHJvdGF0ZSB0aGUga2V5cyBmb3IgYWxsIG9mIHRoZWlyIGRldmljZXMuXG4gICAqL1xuICBlbmNyeXB0ZWRQdWJsaWNLZXk6IEVuY1N0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/protected-device.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/register.response.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/register.response.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RegisterResponse: () => (/* binding */ RegisterResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass RegisterResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.captchaBypassToken = this.getResponseProperty(\"CaptchaBypassToken\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3JlZ2lzdGVyLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBSS9ELE1BQU0sZ0JBQWlCLFNBQVEsd0VBQVk7SUFHaEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsa0JBQWtCLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLG9CQUFvQixDQUFDLENBQUM7SUFDM0UsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3JlZ2lzdGVyLnJlc3BvbnNlLnRzP2Q4MzEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmltcG9ydCB7IElDYXB0Y2hhUHJvdGVjdGVkUmVzcG9uc2UgfSBmcm9tIFwiLi9jYXB0Y2hhLXByb3RlY3RlZC5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgUmVnaXN0ZXJSZXNwb25zZSBleHRlbmRzIEJhc2VSZXNwb25zZSBpbXBsZW1lbnRzIElDYXB0Y2hhUHJvdGVjdGVkUmVzcG9uc2Uge1xuICBjYXB0Y2hhQnlwYXNzVG9rZW46IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuY2FwdGNoYUJ5cGFzc1Rva2VuID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ2FwdGNoYUJ5cGFzc1Rva2VuXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/register.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/sso-pre-validate.response.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/sso-pre-validate.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SsoPreValidateResponse: () => (/* binding */ SsoPreValidateResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SsoPreValidateResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.token = this.getResponseProperty(\"Token\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3Nzby1wcmUtdmFsaWRhdGUucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSxzQkFBdUIsU0FBUSx3RUFBWTtJQUd0RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ2pELENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXNwb25zZS9zc28tcHJlLXZhbGlkYXRlLnJlc3BvbnNlLnRzPzFlYmUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBTc29QcmVWYWxpZGF0ZVJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgdG9rZW46IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMudG9rZW4gPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUb2tlblwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/sso-pre-validate.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-authenticator.response.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-authenticator.response.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorAuthenticatorResponse: () => (/* binding */ TwoFactorAuthenticatorResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TwoFactorAuthenticatorResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.userVerificationToken = this.getResponseProperty(\"UserVerificationToken\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3ItYXV0aGVudGljYXRvci5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFzRTtBQUUvRCxNQUFNLDhCQUErQixTQUFRLHdFQUFZO0lBSzlELFlBQVksU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0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJVc2VyVmVyaWZpY2F0aW9uVG9rZW5cIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-authenticator.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-duo.response.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-duo.response.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorDuoResponse: () => (/* binding */ TwoFactorDuoResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TwoFactorDuoResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.host = this.getResponseProperty(\"Host\");\n        this.clientSecret = this.getResponseProperty(\"ClientSecret\");\n        this.clientId = this.getResponseProperty(\"ClientId\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3ItZHVvLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRS9ELE1BQU0sb0JBQXFCLFNBQVEsd0VBQVk7SUFNcEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsT0FBTyx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RoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkNsaWVudFNlY3JldFwiKTtcbiAgICB0aGlzLmNsaWVudElkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ2xpZW50SWRcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-duo.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-email.response.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-email.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorEmailResponse: () => (/* binding */ TwoFactorEmailResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TwoFactorEmailResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.email = this.getResponseProperty(\"Email\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3ItZW1haWwucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSxzQkFBdUIsU0FBUSx3RUFBWTtJQUl0RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ25ELElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ2pELENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXNwb25zZS90d28tZmFjdG9yLWVtYWlsLnJlc3BvbnNlLnRzPzMzOWEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBUd29GYWN0b3JFbWFpbFJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgZW5hYmxlZDogYm9vbGVhbjtcbiAgZW1haWw6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMuZW5hYmxlZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkVuYWJsZWRcIik7XG4gICAgdGhpcy5lbWFpbCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkVtYWlsXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-email.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-provider.response.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-provider.response.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorProviderResponse: () => (/* binding */ TwoFactorProviderResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TwoFactorProviderResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.type = this.getResponseProperty(\"Type\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3ItcHJvdmlkZXIucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFHL0QsTUFBTSx5QkFBMEIsU0FBUSx3RUFBWTtJQUl6RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ25ELElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQy9DLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hdXRoL21vZGVscy9yZXNwb25zZS90d28tZmFjdG9yLXByb3ZpZGVyLnJlc3BvbnNlLnRzP2NhMTMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5pbXBvcnQgeyBUd29GYWN0b3JQcm92aWRlclR5cGUgfSBmcm9tIFwiLi4vLi4vZW51bXMvdHdvLWZhY3Rvci1wcm92aWRlci10eXBlXCI7XG5cbmV4cG9ydCBjbGFzcyBUd29GYWN0b3JQcm92aWRlclJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgZW5hYmxlZDogYm9vbGVhbjtcbiAgdHlwZTogVHdvRmFjdG9yUHJvdmlkZXJUeXBlO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5lbmFibGVkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiRW5hYmxlZFwiKTtcbiAgICB0aGlzLnR5cGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUeXBlXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-provider.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-recover.response.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-recover.response.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorRecoverResponse: () => (/* binding */ TwoFactorRecoverResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TwoFactorRecoverResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.code = this.getResponseProperty(\"Code\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3ItcmVjb3Zlci5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFzRTtBQUUvRCxNQUFNLHdCQUF5QixTQUFRLHdFQUFZO0lBR3hELFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDL0MsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3ItcmVjb3Zlci5yZXNwb25zZS50cz9lNjVjIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgVHdvRmFjdG9yUmVjb3ZlclJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgY29kZTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5jb2RlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ29kZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-recover.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-web-authn.response.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-web-authn.response.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ChallengeResponse: () => (/* binding */ ChallengeResponse),\n/* harmony export */   KeyResponse: () => (/* binding */ KeyResponse),\n/* harmony export */   TwoFactorWebAuthnResponse: () => (/* binding */ TwoFactorWebAuthnResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\n\nclass TwoFactorWebAuthnResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        const keys = this.getResponseProperty(\"Keys\");\n        this.keys = keys == null ? null : keys.map((k) => new KeyResponse(k));\n    }\n}\nclass KeyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.name = this.getResponseProperty(\"Name\");\n        this.id = this.getResponseProperty(\"Id\");\n        this.migrated = this.getResponseProperty(\"Migrated\");\n    }\n}\nclass ChallengeResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.attestation = this.getResponseProperty(\"attestation\");\n        this.authenticatorSelection = this.getResponseProperty(\"authenticatorSelection\");\n        this.challenge = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromUrlB64ToArray(this.getResponseProperty(\"challenge\"));\n        this.excludeCredentials = this.getResponseProperty(\"excludeCredentials\").map((c) => {\n            c.id = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromUrlB64ToArray(c.id).buffer;\n            return c;\n        });\n        this.extensions = this.getResponseProperty(\"extensions\");\n        this.pubKeyCredParams = this.getResponseProperty(\"pubKeyCredParams\");\n        this.rp = this.getResponseProperty(\"rp\");\n        this.timeout = this.getResponseProperty(\"timeout\");\n        const user = this.getResponseProperty(\"user\");\n        user.id = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromUrlB64ToArray(user.id);\n        this.user = user;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5472 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-web-authn.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/two-factor-yubi-key.response.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/two-factor-yubi-key.response.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TwoFactorYubiKeyResponse: () => (/* binding */ TwoFactorYubiKeyResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TwoFactorYubiKeyResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.enabled = this.getResponseProperty(\"Enabled\");\n        this.key1 = this.getResponseProperty(\"Key1\");\n        this.key2 = this.getResponseProperty(\"Key2\");\n        this.key3 = this.getResponseProperty(\"Key3\");\n        this.key4 = this.getResponseProperty(\"Key4\");\n        this.key5 = this.getResponseProperty(\"Key5\");\n        this.nfc = this.getResponseProperty(\"Nfc\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3R3by1mYWN0b3IteXViaS1rZXkucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSx3QkFBeUIsU0FBUSx3RUFBWTtJQVN4RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ25ELElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQzdDLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLEtBQUssQ0FBQyxDQUFDO0lBQzdDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnM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b3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/two-factor-yubi-key.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/user-decryption-options/key-connector-user-decryption-option.response.ts":
/*!***************************************************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/user-decryption-options/key-connector-user-decryption-option.response.ts ***!
  \***************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyConnectorUserDecryptionOptionResponse: () => (/* binding */ KeyConnectorUserDecryptionOptionResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass KeyConnectorUserDecryptionOptionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.keyConnectorUrl = this.getResponseProperty(\"KeyConnectorUrl\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zL2tleS1jb25uZWN0b3ItdXNlci1kZWNyeXB0aW9uLW9wdGlvbi5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUF5RTtBQU1sRSxNQUFNLHdDQUF5QyxTQUFRLHdFQUFZO0lBR3hFLFlBQVksUUFBeUQ7UUFDbkUsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxlQUFlLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGlCQUFpQixDQUFDLENBQUM7SUFDckUsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zL2tleS1jb25uZWN0b3ItdXNlci1kZWNyeXB0aW9uLW9wdGlvbi5yZXNwb25zZS50cz8wYTM5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIElLZXlDb25uZWN0b3JVc2VyRGVjcnlwdGlvbk9wdGlvblNlcnZlclJlc3BvbnNlIHtcbiAgS2V5Q29ubmVjdG9yVXJsOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjbGFzcyBLZXlDb25uZWN0b3JVc2VyRGVjcnlwdGlvbk9wdGlvblJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAga2V5Q29ubmVjdG9yVXJsOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IElLZXlDb25uZWN0b3JVc2VyRGVjcnlwdGlvbk9wdGlvblNlcnZlclJlc3BvbnNlKSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMua2V5Q29ubmVjdG9yVXJsID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiS2V5Q29ubmVjdG9yVXJsXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/user-decryption-options/key-connector-user-decryption-option.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/user-decryption-options/trusted-device-user-decryption-option.response.ts":
/*!****************************************************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/user-decryption-options/trusted-device-user-decryption-option.response.ts ***!
  \****************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TrustedDeviceUserDecryptionOptionResponse: () => (/* binding */ TrustedDeviceUserDecryptionOptionResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n\n\nclass TrustedDeviceUserDecryptionOptionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.hasAdminApproval = this.getResponseProperty(\"HasAdminApproval\");\n        this.hasLoginApprovingDevice = this.getResponseProperty(\"HasLoginApprovingDevice\");\n        this.hasManageResetPasswordPermission = this.getResponseProperty(\"HasManageResetPasswordPermission\");\n        this.isTdeOffboarding = this.getResponseProperty(\"IsTdeOffboarding\");\n        if (response.EncryptedPrivateKey) {\n            this.encryptedPrivateKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(this.getResponseProperty(\"EncryptedPrivateKey\"));\n        }\n        if (response.EncryptedUserKey) {\n            this.encryptedUserKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(this.getResponseProperty(\"EncryptedUserKey\"));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3VzZXItZGVjcnlwdGlvb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../libs/common/src/auth/models/response/user-decryption-options/trusted-device-user-decryption-option.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/user-decryption-options/user-decryption-options.response.ts":
/*!**************************************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/user-decryption-options/user-decryption-options.response.ts ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserDecryptionOptionsResponse: () => (/* binding */ UserDecryptionOptionsResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _key_connector_user_decryption_option_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./key-connector-user-decryption-option.response */ \"../../libs/common/src/auth/models/response/user-decryption-options/key-connector-user-decryption-option.response.ts\");\n/* harmony import */ var _trusted_device_user_decryption_option_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trusted-device-user-decryption-option.response */ \"../../libs/common/src/auth/models/response/user-decryption-options/trusted-device-user-decryption-option.response.ts\");\n/* harmony import */ var _webauthn_prf_decryption_option_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./webauthn-prf-decryption-option.response */ \"../../libs/common/src/auth/models/response/user-decryption-options/webauthn-prf-decryption-option.response.ts\");\n\n\n\n\nclass UserDecryptionOptionsResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.hasMasterPassword = this.getResponseProperty(\"HasMasterPassword\");\n        if (response.TrustedDeviceOption) {\n            this.trustedDeviceOption = new _trusted_device_user_decryption_option_response__WEBPACK_IMPORTED_MODULE_2__.TrustedDeviceUserDecryptionOptionResponse(this.getResponseProperty(\"TrustedDeviceOption\"));\n        }\n        if (response.KeyConnectorOption) {\n            this.keyConnectorOption = new _key_connector_user_decryption_option_response__WEBPACK_IMPORTED_MODULE_1__.KeyConnectorUserDecryptionOptionResponse(this.getResponseProperty(\"KeyConnectorOption\"));\n        }\n        if (response.WebAuthnPrfOption) {\n            this.webAuthnPrfOption = new _webauthn_prf_decryption_option_response__WEBPACK_IMPORTED_MODULE_3__.WebAuthnPrfDecryptionOptionResponse(this.getResponseProperty(\"WebAuthnPrfOption\"));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQXlFO0FBS2hCO0FBSUM7QUFJUDtBQVM1QyxNQUFNLDZCQUE4QixTQUFRLHdFQUFZO0lBTTdELFlBQVksUUFBOEM7UUFDeEQsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBRWhCLElBQUksQ0FBQyxpQkFBaUIsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsbUJBQW1CLENBQUMsQ0FBQztRQUV2RSxJQUFJLFFBQVEsQ0FBQyxtQkFBbUIsRUFBRSxDQUFDO1lBQ2pDLElBQUksQ0FBQyxtQkFBbUIsR0FBRyxJQUFJLHNIQUF5QyxDQUN0RSxJQUFJLENBQUMsbUJBQW1CLENBQUMscUJBQXFCLENBQUMsQ0FDaEQsQ0FBQztRQUNKLENBQUM7UUFDRCxJQUFJLFFBQVEsQ0FBQyxrQkFBa0IsRUFBRSxDQUFDO1lBQ2hDLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxJQUFJLG9IQUF3QyxDQUNwRSxJQUFJLENBQUMsbUJBQW1C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ICAgc3VwZXIocmVzcG9uc2UpO1xuXG4gICAgdGhpcy5oYXNNYXN0ZXJQYXNzd29yZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkhhc01hc3RlclBhc3N3b3JkXCIpO1xuXG4gICAgaWYgKHJlc3BvbnNlLlRydXN0ZWREZXZpY2VPcHRpb24pIHtcbiAgICAgIHRoaXMudHJ1c3RlZERldmljZU9wdGlvbiA9IG5ldyBUcnVzdGVkRGV2aWNlVXNlckRlY3J5cHRpb25PcHRpb25SZXNwb25zZShcbiAgICAgICAgdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVHJ1c3RlZERldmljZU9wdGlvblwiKSxcbiAgICAgICk7XG4gICAgfVxuICAgIGlmIChyZXNwb25zZS5LZXlDb25uZWN0b3JPcHRpb24pIHtcbiAgICAgIHRoaXMua2V5Q29ubmVjdG9yT3B0aW9uID0gbmV3IEtleUNvbm5lY3RvclVzZXJEZWNyeXB0aW9uT3B0aW9uUmVzcG9uc2UoXG4gICAgICAgIHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIktleUNvbm5lY3Rvck9wdGlvblwiKSxcbiAgICAgICk7XG4gICAgfVxuICAgIGlmIChyZXNwb25zZS5XZWJBdXRoblByZk9wdGlvbikge1xuICAgICAgdGhpcy53ZWJBdXRoblByZk9wdGlvbiA9IG5ldyBXZWJBdXRoblByZkRlY3J5cHRpb25PcHRpb25SZXNwb25zZShcbiAgICAgICAgdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiV2ViQXV0aG5QcmZPcHRpb25cIiksXG4gICAgICApO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/user-decryption-options/user-decryption-options.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/models/response/user-decryption-options/webauthn-prf-decryption-option.response.ts":
/*!*********************************************************************************************************************!*\
  !*** ../../libs/common/src/auth/models/response/user-decryption-options/webauthn-prf-decryption-option.response.ts ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   WebAuthnPrfDecryptionOptionResponse: () => (/* binding */ WebAuthnPrfDecryptionOptionResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n\n\nclass WebAuthnPrfDecryptionOptionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        if (response.EncryptedPrivateKey) {\n            this.encryptedPrivateKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(this.getResponseProperty(\"EncryptedPrivateKey\"));\n        }\n        if (response.EncryptedUserKey) {\n            this.encryptedUserKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(this.getResponseProperty(\"EncryptedUserKey\"));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvbW9kZWxzL3Jlc3BvbnNlL3VzZXItZGVjcnlwdGlvbi1vcHRpb25zL3dlYmF1dGhuLXByZi1kZWNyeXB0aW9uLW9wdGlvbi5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBeUU7QUFDQztBQU9uRSxNQUFNLG1DQUFvQyxTQUFRLHdFQUFZO0lBSW5FLFlBQ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2ViQXV0aG5QcmZEZWNyeXB0aW9uT3B0aW9uUmVzcG9uc2UgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICBlbmNyeXB0ZWRQcml2YXRlS2V5OiBFbmNTdHJpbmc7XG4gIGVuY3J5cHRlZFVzZXJLZXk6IEVuY1N0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogSVdlYkF1dGhuUHJmRGVjcnlwdGlvbk9wdGlvblNlcnZlclJlc3BvbnNlKSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIGlmIChyZXNwb25zZS5FbmNyeXB0ZWRQcml2YXRlS2V5KSB7XG4gICAgICB0aGlzLmVuY3J5cHRlZFByaXZhdGVLZXkgPSBuZXcgRW5jU3RyaW5nKHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkVuY3J5cHRlZFByaXZhdGVLZXlcIikpO1xuICAgIH1cbiAgICBpZiAocmVzcG9uc2UuRW5jcnlwdGVkVXNlcktleSkge1xuICAgICAgdGhpcy5lbmNyeXB0ZWRVc2VyS2V5ID0gbmV3IEVuY1N0cmluZyh0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJFbmNyeXB0ZWRVc2VyS2V5XCIpKTtcbiAgICB9XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/models/response/user-decryption-options/webauthn-prf-decryption-option.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/account.service.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/auth/services/account.service.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ACCOUNT_ACCOUNTS: () => (/* binding */ ACCOUNT_ACCOUNTS),\n/* harmony export */   ACCOUNT_ACTIVE_ACCOUNT_ID: () => (/* binding */ ACCOUNT_ACTIVE_ACCOUNT_ID),\n/* harmony export */   ACCOUNT_ACTIVITY: () => (/* binding */ ACCOUNT_ACTIVITY),\n/* harmony export */   AccountServiceImplementation: () => (/* binding */ AccountServiceImplementation),\n/* harmony export */   getOptionalUserId: () => (/* binding */ getOptionalUserId),\n/* harmony export */   getUserId: () => (/* binding */ getUserId)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _auth_abstractions_account_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../auth/abstractions/account.service */ \"../../libs/common/src/auth/abstractions/account.service.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst ACCOUNT_ACCOUNTS = _platform_state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_3__.ACCOUNT_DISK, \"accounts\", {\n    deserializer: (accountInfo) => accountInfo,\n});\nconst ACCOUNT_ACTIVE_ACCOUNT_ID = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.ACCOUNT_DISK, \"activeAccountId\", {\n    deserializer: (id) => id,\n});\nconst ACCOUNT_ACTIVITY = _platform_state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_3__.ACCOUNT_DISK, \"activity\", {\n    deserializer: (activity) => new Date(activity),\n});\nconst LOGGED_OUT_INFO = {\n    email: \"\",\n    emailVerified: false,\n    name: undefined,\n};\n/**\n * An rxjs map operator that extracts the UserId from an account, or throws if the account or UserId are null.\n */\nconst getUserId = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => {\n    if (account == null) {\n        throw new Error(\"Null or undefined account\");\n    }\n    return account.id;\n});\n/**\n * An rxjs map operator that extracts the UserId from an account, or returns undefined if the account or UserId are null.\n */\nconst getOptionalUserId = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => { var _a; return (_a = account === null || account === void 0 ? void 0 : account.id) !== null && _a !== void 0 ? _a : null; });\nclass AccountServiceImplementation {\n    constructor(messagingService, logService, globalStateProvider) {\n        this.messagingService = messagingService;\n        this.logService = logService;\n        this.globalStateProvider = globalStateProvider;\n        this.accountsState = this.globalStateProvider.get(ACCOUNT_ACCOUNTS);\n        this.activeAccountIdState = this.globalStateProvider.get(ACCOUNT_ACTIVE_ACCOUNT_ID);\n        this.accounts$ = this.accountsState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((accounts) => (accounts == null ? {} : accounts)));\n        this.activeAccount$ = this.activeAccountIdState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatestWith)(this.accounts$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([id, accounts]) => (id ? Object.assign({ id }, accounts[id]) : null)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)((a, b) => (a === null || a === void 0 ? void 0 : a.id) === (b === null || b === void 0 ? void 0 : b.id) && (0,_auth_abstractions_account_service__WEBPACK_IMPORTED_MODULE_1__.accountInfoEqual)(a, b)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ bufferSize: 1, refCount: false }));\n        this.accountActivity$ = this.globalStateProvider\n            .get(ACCOUNT_ACTIVITY)\n            .state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((activity) => activity !== null && activity !== void 0 ? activity : {}));\n        this.sortedUserIds$ = this.accountActivity$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((activity) => {\n            return Object.entries(activity)\n                .map(([userId, lastActive]) => ({ userId, lastActive }))\n                .sort((a, b) => b.lastActive.getTime() - a.lastActive.getTime()) // later dates first\n                .map((a) => a.userId);\n        }));\n        this.nextUpAccount$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.accounts$,\n            this.activeAccount$,\n            this.sortedUserIds$,\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([accounts, activeAccount, sortedUserIds]) => {\n            const nextId = sortedUserIds.find((id) => id !== (activeAccount === null || activeAccount === void 0 ? void 0 : activeAccount.id) && accounts[id] != null);\n            return nextId ? Object.assign({ id: nextId }, accounts[nextId]) : null;\n        }));\n    }\n    addAccount(userId, accountData) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isGuid(userId)) {\n                throw new Error(\"userId is required\");\n            }\n            yield this.accountsState.update((accounts) => {\n                accounts || (accounts = {});\n                accounts[userId] = accountData;\n                return accounts;\n            });\n            yield this.setAccountActivity(userId, new Date());\n        });\n    }\n    setAccountName(userId, name) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setAccountInfo(userId, { name });\n        });\n    }\n    setAccountEmail(userId, email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setAccountInfo(userId, { email });\n        });\n    }\n    setAccountEmailVerified(userId, emailVerified) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setAccountInfo(userId, { emailVerified });\n        });\n    }\n    clean(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setAccountInfo(userId, LOGGED_OUT_INFO);\n            yield this.removeAccountActivity(userId);\n        });\n    }\n    switchAccount(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let updateActivity = false;\n            yield this.activeAccountIdState.update((_, accounts) => {\n                if (userId == null) {\n                    // indicates no account is active\n                    return null;\n                }\n                if ((accounts === null || accounts === void 0 ? void 0 : accounts[userId]) == null) {\n                    throw new Error(\"Account does not exist\");\n                }\n                updateActivity = true;\n                return userId;\n            }, {\n                combineLatestWith: this.accounts$,\n                shouldUpdate: (id) => {\n                    // update only if userId changes\n                    return id !== userId;\n                },\n            });\n            if (updateActivity) {\n                yield this.setAccountActivity(userId, new Date());\n            }\n        });\n    }\n    setAccountActivity(userId, lastActivity) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isGuid(userId)) {\n                // only store for valid userIds\n                return;\n            }\n            yield this.globalStateProvider.get(ACCOUNT_ACTIVITY).update((activity) => {\n                activity || (activity = {});\n                activity[userId] = lastActivity;\n                return activity;\n            }, {\n                shouldUpdate: (oldActivity) => { var _a; return ((_a = oldActivity === null || oldActivity === void 0 ? void 0 : oldActivity[userId]) === null || _a === void 0 ? void 0 : _a.getTime()) !== (lastActivity === null || lastActivity === void 0 ? void 0 : lastActivity.getTime()); },\n            });\n        });\n    }\n    removeAccountActivity(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.globalStateProvider.get(ACCOUNT_ACTIVITY).update((activity) => {\n                if (activity == null) {\n                    return activity;\n                }\n                delete activity[userId];\n                return activity;\n            }, { shouldUpdate: (oldActivity) => (oldActivity === null || oldActivity === void 0 ? void 0 : oldActivity[userId]) != null });\n        });\n    }\n    // TODO: update to use our own account status settings. Requires inverting direction of state service accounts flow\n    delete() {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            try {\n                (_a = this.messagingService) === null || _a === void 0 ? void 0 : _a.send(\"logout\");\n            }\n            catch (e) {\n                this.logService.error(e);\n                throw e;\n            }\n        });\n    }\n    setAccountInfo(userId, update) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function newAccountInfo(oldAccountInfo) {\n                return Object.assign(Object.assign({}, oldAccountInfo), update);\n            }\n            yield this.accountsState.update((accounts) => {\n                accounts[userId] = newAccountInfo(accounts[userId]);\n                return accounts;\n            }, {\n                // Avoid unnecessary updates\n                // TODO: Faster comparison, maybe include a hash on the objects?\n                shouldUpdate: (accounts) => {\n                    if ((accounts === null || accounts === void 0 ? void 0 : accounts[userId]) == null) {\n                        throw new Error(\"Account does not exist\");\n                    }\n                    return !(0,_auth_abstractions_account_service__WEBPACK_IMPORTED_MODULE_1__.accountInfoEqual)(accounts[userId], newAccountInfo(accounts[userId]));\n                },\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18808 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/account.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/auth.service.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/auth/services/auth.service.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthService: () => (/* binding */ AuthService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass AuthService {\n    constructor(accountService, messageSender, keyService, apiService, stateService, tokenService) {\n        this.accountService = accountService;\n        this.messageSender = messageSender;\n        this.keyService = keyService;\n        this.apiService = apiService;\n        this.stateService = stateService;\n        this.tokenService = tokenService;\n        this.activeAccountStatus$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => {\n            return this.authStatusFor$(userId);\n        }));\n        this.authStatuses$ = this.accountService.accounts$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((accounts) => Object.keys(accounts)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((entries) => {\n            if (entries.length === 0) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)([]);\n            }\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)(entries.map((userId) => this.authStatusFor$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((status) => ({ userId, status })))));\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((statuses) => {\n            return statuses.reduce((acc, { userId, status }) => {\n                acc[userId] = status;\n                return acc;\n            }, {});\n        }));\n    }\n    authStatusFor$(userId) {\n        if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isGuid(userId)) {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.LoggedOut);\n        }\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.keyService.getInMemoryUserKeyFor$(userId),\n            this.tokenService.hasAccessToken$(userId),\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([userKey, hasAccessToken]) => {\n            if (!hasAccessToken) {\n                return _enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.LoggedOut;\n            }\n            if (!userKey) {\n                return _enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.Locked;\n            }\n            return _enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.Unlocked;\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ bufferSize: 1, refCount: false }));\n    }\n    getAuthStatus(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id))));\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.authStatusFor$(userId));\n        });\n    }\n    logOut(callback, userId) {\n        callback();\n        this.messageSender.send(\"loggedOut\", { userId });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7908 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/auth.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/avatar.service.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/auth/services/avatar.service.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AvatarService: () => (/* binding */ AvatarService)\n/* harmony export */ });\n/* harmony import */ var _models_request_update_avatar_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/request/update-avatar.request */ \"../../libs/common/src/models/request/update-avatar.request.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst AVATAR_COLOR = new _platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_1__.AVATAR_DISK, \"avatarColor\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\nclass AvatarService {\n    constructor(apiService, stateProvider) {\n        this.apiService = apiService;\n        this.stateProvider = stateProvider;\n        this.avatarColor$ = this.stateProvider.getActive(AVATAR_COLOR).state$;\n    }\n    setAvatarColor(color) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const { avatarColor } = yield this.apiService.putAvatar(new _models_request_update_avatar_request__WEBPACK_IMPORTED_MODULE_0__.UpdateAvatarRequest(color));\n            yield this.stateProvider.setUserState(AVATAR_COLOR, avatarColor);\n        });\n    }\n    setSyncAvatarColor(userId, color) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, AVATAR_COLOR).update(() => color);\n        });\n    }\n    getUserAvatarColor$(userId) {\n        return this.stateProvider.getUser(userId, AVATAR_COLOR).state$;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvc2VydmljZXMvYXZhdGFyLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBR2lGO0FBQ0k7QUFJckYsTUFBTSxZQUFZLEdBQUcsSUFBSSw4REFBaUIsQ0FBUyx3REFBVyxFQUFFLGFBQWEsRUFBRTtJQUM3RSxZQUFZLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLEtBQUs7SUFDOUIsT0FBTyxFQUFFLEVBQUU7Q0FDWixDQUFDLENBQUM7QUFFSSxNQUFNLGFBQWE7SUFHeEIsWUFDVSxVQUFzQixFQUN0QixhQUE0QjtRQUQ1QixlQUFVLEdBQVYsVUFBVSxDQUFZO1FBQ3RCLGtCQUFhLEdBQWIsYUFBYSxDQUFlO1FBRXBDLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQyxTQUFTLENBQUMsWUFBWSxDQUFDLENBQUMsTUFBTSxDQUFDO0lBQ3hFLENBQUM7SUFFSyxjQUFjLENBQUMsS0FBYTs7WUFDaEMsTUFBTSxFQUFFLFdBQVcsRUFBRSxHQUFHLE1BQU0sSUFBSSxDQUFDLFVBQVUsQ0FBQyxTQUF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xuICBhc3luYyBzZXRTeW5jQXZhdGFyQ29sb3IodXNlcklkOiBVc2VySWQsIGNvbG9yOiBzdHJpbmcpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBhd2FpdCB0aGlzLnN0YXRlUHJvdmlkZXIuZ2V0VXNlcih1c2VySWQsIEFWQVRBUl9DT0xPUikudXBkYXRlKCgpID0+IGNvbG9yKTtcbiAgfVxuXG4gIGdldFVzZXJBdmF0YXJDb2xvciQodXNlcklkOiBVc2VySWQpOiBPYnNlcnZhYmxlPHN0cmluZyB8IG51bGw+IHtcbiAgICByZXR1cm4gdGhpcy5zdGF0ZVByb3ZpZGVyLmdldFVzZXIodXNlcklkLCBBVkFUQVJfQ09MT1IpLnN0YXRlJDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/avatar.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/device-trust.service.implementation.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/auth/services/device-trust.service.implementation.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DEVICE_KEY: () => (/* binding */ DEVICE_KEY),\n/* harmony export */   DeviceTrustService: () => (/* binding */ DeviceTrustService),\n/* harmony export */   SHOULD_TRUST_DEVICE: () => (/* binding */ SHOULD_TRUST_DEVICE)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/request/secret-verification.request */ \"../../libs/common/src/auth/models/request/secret-verification.request.ts\");\n/* harmony import */ var _models_request_update_devices_trust_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/request/update-devices-trust.request */ \"../../libs/common/src/auth/models/request/update-devices-trust.request.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n/** Uses disk storage so that the device key can persist after log out and tab removal. */\nconst DEVICE_KEY = new _platform_state__WEBPACK_IMPORTED_MODULE_4__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_4__.DEVICE_TRUST_DISK_LOCAL, \"deviceKey\", {\n    deserializer: (deviceKey) => deviceKey ? _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey.fromJSON(deviceKey) : null,\n    clearOn: [], // Device key is needed to log back into device, so we can't clear it automatically during lock or logout\n    cleanupDelayMs: 0,\n    debug: {\n        enableRetrievalLogging: true,\n        enableUpdateLogging: true,\n    },\n});\n/** Uses disk storage so that the shouldTrustDevice bool can persist across login. */\nconst SHOULD_TRUST_DEVICE = new _platform_state__WEBPACK_IMPORTED_MODULE_4__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_4__.DEVICE_TRUST_DISK_LOCAL, \"shouldTrustDevice\", {\n    deserializer: (shouldTrustDevice) => shouldTrustDevice,\n    clearOn: [], // Need to preserve the user setting, so we can't clear it automatically during lock or logout\n});\nclass DeviceTrustService {\n    constructor(keyGenerationService, cryptoFunctionService, keyService, encryptService, appIdService, devicesApiService, i18nService, platformUtilsService, stateProvider, secureStorageService, userDecryptionOptionsService, logService, configService) {\n        this.keyGenerationService = keyGenerationService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.appIdService = appIdService;\n        this.devicesApiService = devicesApiService;\n        this.i18nService = i18nService;\n        this.platformUtilsService = platformUtilsService;\n        this.stateProvider = stateProvider;\n        this.secureStorageService = secureStorageService;\n        this.userDecryptionOptionsService = userDecryptionOptionsService;\n        this.logService = logService;\n        this.configService = configService;\n        this.platformSupportsSecureStorage = this.platformUtilsService.supportsSecureStorage();\n        this.deviceKeySecureStorageKey = \"_deviceKey\";\n        this.supportsDeviceTrust$ = this.userDecryptionOptionsService.userDecryptionOptions$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((options) => { var _a; return (_a = (options === null || options === void 0 ? void 0 : options.trustedDeviceOption) != null) !== null && _a !== void 0 ? _a : false; }));\n    }\n    /**\n     * @description Retrieves the users choice to trust the device which can only happen after decryption\n     * Note: this value should only be used once and then reset\n     */\n    getShouldTrustDevice(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot get should trust device.\");\n            }\n            const shouldTrustDevice = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(SHOULD_TRUST_DEVICE, userId));\n            return shouldTrustDevice;\n        });\n    }\n    setShouldTrustDevice(userId, value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot set should trust device.\");\n            }\n            yield this.stateProvider.setUserState(SHOULD_TRUST_DEVICE, value, userId);\n        });\n    }\n    trustDeviceIfRequired(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot trust device if required.\");\n            }\n            const shouldTrustDevice = yield this.getShouldTrustDevice(userId);\n            if (shouldTrustDevice) {\n                yield this.trustDevice(userId);\n                // reset the trust choice\n                yield this.setShouldTrustDevice(userId, null);\n            }\n        });\n    }\n    trustDevice(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot trust device.\");\n            }\n            // Attempt to get user key\n            const userKey = yield this.keyService.getUserKey(userId);\n            // If user key is not found, throw error\n            if (!userKey) {\n                throw new Error(\"User symmetric key not found\");\n            }\n            // Generate deviceKey\n            const deviceKey = yield this.makeDeviceKey();\n            // Generate asymmetric RSA key pair: devicePrivateKey, devicePublicKey\n            const [devicePublicKey, devicePrivateKey] = yield this.cryptoFunctionService.rsaGenerateKeyPair(2048);\n            const [devicePublicKeyEncryptedUserKey, userKeyEncryptedDevicePublicKey, deviceKeyEncryptedDevicePrivateKey,] = yield Promise.all([\n                // Encrypt user key with the DevicePublicKey\n                this.encryptService.rsaEncrypt(userKey.key, devicePublicKey),\n                // Encrypt devicePublicKey with user key\n                this.encryptService.encrypt(devicePublicKey, userKey),\n                // Encrypt devicePrivateKey with deviceKey\n                this.encryptService.encrypt(devicePrivateKey, deviceKey),\n            ]);\n            // Send encrypted keys to server\n            const deviceIdentifier = yield this.appIdService.getAppId();\n            const deviceResponse = yield this.devicesApiService.updateTrustedDeviceKeys(deviceIdentifier, devicePublicKeyEncryptedUserKey.encryptedString, userKeyEncryptedDevicePublicKey.encryptedString, deviceKeyEncryptedDevicePrivateKey.encryptedString);\n            // store device key in local/secure storage if enc keys posted to server successfully\n            yield this.setDeviceKey(userId, deviceKey);\n            this.platformUtilsService.showToast(\"success\", null, this.i18nService.t(\"deviceTrusted\"));\n            return deviceResponse;\n        });\n    }\n    rotateDevicesTrust(userId, newUserKey, masterPasswordHash) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.logService.info(\"[Device trust rotation] Rotating device trust...\");\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot rotate device's trust.\");\n            }\n            const currentDeviceKey = yield this.getDeviceKey(userId);\n            if (currentDeviceKey == null) {\n                // If the current device doesn't have a device key available to it, then we can't\n                // rotate any trust at all, so early return.\n                this.logService.info(\"[Device trust rotation] No device key available to rotate trust!\");\n                return;\n            }\n            // At this point of rotating their keys, they should still have their old user key in state\n            const oldUserKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.keyService.userKey$(userId));\n            if (oldUserKey == newUserKey) {\n                this.logService.info(\"[Device trust rotation] Old user key is the same as the new user key.\");\n            }\n            const deviceIdentifier = yield this.appIdService.getAppId();\n            const secretVerificationRequest = new _models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_5__.SecretVerificationRequest();\n            secretVerificationRequest.masterPasswordHash = masterPasswordHash;\n            // Get the keys that are used in rotating a devices keys from the server\n            const currentDeviceKeys = yield this.devicesApiService.getDeviceKeys(deviceIdentifier, secretVerificationRequest);\n            // Decrypt the existing device public key with the old user key\n            const decryptedDevicePublicKey = yield this.encryptService.decryptToBytes(currentDeviceKeys.encryptedPublicKey, oldUserKey);\n            // Encrypt the brand new user key with the now-decrypted public key for the device\n            const encryptedNewUserKey = yield this.encryptService.rsaEncrypt(newUserKey.key, decryptedDevicePublicKey);\n            // Re-encrypt the device public key with the new user key\n            const encryptedDevicePublicKey = yield this.encryptService.encrypt(decryptedDevicePublicKey, newUserKey);\n            const currentDeviceUpdateRequest = new _models_request_update_devices_trust_request__WEBPACK_IMPORTED_MODULE_6__.DeviceKeysUpdateRequest();\n            currentDeviceUpdateRequest.encryptedUserKey = encryptedNewUserKey.encryptedString;\n            currentDeviceUpdateRequest.encryptedPublicKey = encryptedDevicePublicKey.encryptedString;\n            // TODO: For device management, allow this method to take an array of device ids that can be looped over and individually rotated\n            // then it can be added to trustRequest.otherDevices.\n            const trustRequest = new _models_request_update_devices_trust_request__WEBPACK_IMPORTED_MODULE_6__.UpdateDevicesTrustRequest();\n            trustRequest.masterPasswordHash = masterPasswordHash;\n            trustRequest.currentDevice = currentDeviceUpdateRequest;\n            trustRequest.otherDevices = [];\n            this.logService.info(\"[Device trust rotation] Posting device trust update with current device:\", deviceIdentifier);\n            yield this.devicesApiService.updateTrust(trustRequest, deviceIdentifier);\n            this.logService.info(\"[Device trust rotation] Device trust update posted successfully.\");\n        });\n    }\n    getDeviceKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot get device key.\");\n            }\n            try {\n                if (this.platformSupportsSecureStorage) {\n                    const deviceKeyB64 = yield this.secureStorageService.get(`${userId}${this.deviceKeySecureStorageKey}`, this.getSecureStorageOptions(userId));\n                    const deviceKey = _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey.fromJSON(deviceKeyB64);\n                    return deviceKey;\n                }\n                const deviceKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(DEVICE_KEY, userId));\n                return deviceKey;\n            }\n            catch (e) {\n                this.logService.error(\"Failed to get device key\", e);\n            }\n        });\n    }\n    setDeviceKey(userId, deviceKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot set device key.\");\n            }\n            try {\n                if (this.platformSupportsSecureStorage) {\n                    yield this.secureStorageService.save(`${userId}${this.deviceKeySecureStorageKey}`, deviceKey, this.getSecureStorageOptions(userId));\n                    return;\n                }\n                yield this.stateProvider.setUserState(DEVICE_KEY, deviceKey === null || deviceKey === void 0 ? void 0 : deviceKey.toJSON(), userId);\n            }\n            catch (e) {\n                this.logService.error(\"Failed to set device key\", e);\n            }\n        });\n    }\n    makeDeviceKey() {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Create 512-bit device key\n            const deviceKey = (yield this.keyGenerationService.createKey(512));\n            return deviceKey;\n        });\n    }\n    decryptUserKeyWithDeviceKey(userId, encryptedDevicePrivateKey, encryptedUserKey, deviceKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"UserId is required. Cannot decrypt user key with device key.\");\n            }\n            if (!encryptedDevicePrivateKey) {\n                throw new Error(\"Encrypted device private key is required. Cannot decrypt user key with device key.\");\n            }\n            if (!encryptedUserKey) {\n                throw new Error(\"Encrypted user key is required. Cannot decrypt user key with device key.\");\n            }\n            if (!deviceKey) {\n                // User doesn't have a device key anymore so device is untrusted\n                return null;\n            }\n            try {\n                // attempt to decrypt encryptedDevicePrivateKey with device key\n                const devicePrivateKey = yield this.encryptService.decryptToBytes(encryptedDevicePrivateKey, deviceKey);\n                // Attempt to decrypt encryptedUserDataKey with devicePrivateKey\n                const userKey = yield this.encryptService.rsaDecrypt(new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString(encryptedUserKey.encryptedString), devicePrivateKey);\n                return new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(userKey);\n            }\n            catch (e) {\n                // If either decryption effort fails, we want to remove the device key\n                this.logService.error(\"Failed to decrypt using device key. Removing device key.\");\n                yield this.setDeviceKey(userId, null);\n                return null;\n            }\n        });\n    }\n    recordDeviceTrustLoss() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const deviceIdentifier = yield this.appIdService.getAppId();\n            yield this.devicesApiService.postDeviceTrustLoss(deviceIdentifier);\n        });\n    }\n    getSecureStorageOptions(userId) {\n        return {\n            storageLocation: _platform_enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Disk,\n            useSecureStorage: true,\n            userId: userId,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29240 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/device-trust.service.implementation.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/devices-api.service.implementation.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/auth/services/devices-api.service.implementation.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DevicesApiServiceImplementation: () => (/* binding */ DevicesApiServiceImplementation)\n/* harmony export */ });\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _abstractions_devices_responses_device_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../abstractions/devices/responses/device.response */ \"../../libs/common/src/auth/abstractions/devices/responses/device.response.ts\");\n/* harmony import */ var _models_response_protected_device_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/response/protected-device.response */ \"../../libs/common/src/auth/models/response/protected-device.response.ts\");\n/* harmony import */ var _devices_requests_trusted_device_keys_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./devices/requests/trusted-device-keys.request */ \"../../libs/common/src/auth/services/devices/requests/trusted-device-keys.request.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass DevicesApiServiceImplementation {\n    constructor(apiService) {\n        this.apiService = apiService;\n    }\n    getKnownDevice(email, deviceIdentifier) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/devices/knowndevice\", null, false, true, null, (headers) => {\n                headers.set(\"X-Device-Identifier\", deviceIdentifier);\n                headers.set(\"X-Request-Email\", _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromUtf8ToUrlB64(email));\n            });\n            return r;\n        });\n    }\n    /**\n     * Get device by identifier\n     * @param deviceIdentifier - client generated id (not device id in DB)\n     */\n    getDeviceByIdentifier(deviceIdentifier) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", `/devices/identifier/${deviceIdentifier}`, null, true, true);\n            return new _abstractions_devices_responses_device_response__WEBPACK_IMPORTED_MODULE_2__.DeviceResponse(r);\n        });\n    }\n    getDevices() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/devices\", null, true, true, null);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_0__.ListResponse(r, _abstractions_devices_responses_device_response__WEBPACK_IMPORTED_MODULE_2__.DeviceResponse);\n        });\n    }\n    updateTrustedDeviceKeys(deviceIdentifier, devicePublicKeyEncryptedUserKey, userKeyEncryptedDevicePublicKey, deviceKeyEncryptedDevicePrivateKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _devices_requests_trusted_device_keys_request__WEBPACK_IMPORTED_MODULE_4__.TrustedDeviceKeysRequest(devicePublicKeyEncryptedUserKey, userKeyEncryptedDevicePublicKey, deviceKeyEncryptedDevicePrivateKey);\n            const result = yield this.apiService.send(\"PUT\", `/devices/${deviceIdentifier}/keys`, request, true, true);\n            return new _abstractions_devices_responses_device_response__WEBPACK_IMPORTED_MODULE_2__.DeviceResponse(result);\n        });\n    }\n    updateTrust(updateDevicesTrustRequestModel, deviceIdentifier) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", \"/devices/update-trust\", updateDevicesTrustRequestModel, true, false, null, (headers) => {\n                headers.set(\"Device-Identifier\", deviceIdentifier);\n            });\n        });\n    }\n    getDeviceKeys(deviceIdentifier, secretVerificationRequest) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const result = yield this.apiService.send(\"POST\", `/devices/${deviceIdentifier}/retrieve-keys`, secretVerificationRequest, true, true);\n            return new _models_response_protected_device_response__WEBPACK_IMPORTED_MODULE_3__.ProtectedDeviceResponse(result);\n        });\n    }\n    postDeviceTrustLoss(deviceIdentifier) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"POST\", \"/devices/lost-trust\", null, true, false, null, (headers) => {\n                headers.set(\"Device-Identifier\", deviceIdentifier);\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7920 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/devices-api.service.implementation.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/devices/requests/trusted-device-keys.request.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/auth/services/devices/requests/trusted-device-keys.request.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TrustedDeviceKeysRequest: () => (/* binding */ TrustedDeviceKeysRequest)\n/* harmony export */ });\nclass TrustedDeviceKeysRequest {\n    constructor(encryptedUserKey, encryptedPublicKey, encryptedPrivateKey) {\n        this.encryptedUserKey = encryptedUserKey;\n        this.encryptedPublicKey = encryptedPublicKey;\n        this.encryptedPrivateKey = encryptedPrivateKey;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvc2VydmljZXMvZGV2aWNlcy9yZXF1ZXN0cy90cnVzdGVkLWRldmljZS1rZXlzLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sd0JBQXdCO0lBQ25DLFlBQ1MsZ0JBQXdCLEVBQ3hCLGtCQUEwQixFQUMxQixtQkFBMkI7UUFGM0IscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFRO1FBQ3hCLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBUTtRQUMxQix3QkFBbUIsR0FBbkIsbUJBQW1CLENBQVE7SUFDakMsQ0FBQztDQUNMIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvc2VydmljZXMvZGV2aWNlcy9yZXF1ZXN0cy90cnVzdGVkLWRldmljZS1rZXlzLnJlcXVlc3QudHM/NWYxNyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgVHJ1c3RlZERldmljZUtleXNSZXF1ZXN0IHtcbiAgY29uc3RydWN0b3IoXG4gICAgcHVibGljIGVuY3J5cHRlZFVzZXJLZXk6IHN0cmluZyxcbiAgICBwdWJsaWMgZW5jcnlwdGVkUHVibGljS2V5OiBzdHJpbmcsXG4gICAgcHVibGljIGVuY3J5cHRlZFByaXZhdGVLZXk6IHN0cmluZyxcbiAgKSB7fVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/devices/requests/trusted-device-keys.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/kdf-config.service.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/auth/services/kdf-config.service.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KDF_CONFIG: () => (/* binding */ KDF_CONFIG),\n/* harmony export */   KdfConfigService: () => (/* binding */ KdfConfigService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/enums/kdf-type.enum */ \"../../libs/common/src/platform/enums/kdf-type.enum.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst KDF_CONFIG = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.KDF_CONFIG_DISK, \"kdfConfig\", {\n    deserializer: (kdfConfig) => {\n        if (kdfConfig == null) {\n            return null;\n        }\n        return kdfConfig.kdfType === _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_1__.KdfType.PBKDF2_SHA256\n            ? _models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_3__.PBKDF2KdfConfig.fromJSON(kdfConfig)\n            : _models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_3__.Argon2KdfConfig.fromJSON(kdfConfig);\n    },\n    clearOn: [\"logout\"],\n});\nclass KdfConfigService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n    }\n    setKdfConfig(userId, kdfConfig) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"userId cannot be null\");\n            }\n            if (kdfConfig === null) {\n                throw new Error(\"kdfConfig cannot be null\");\n            }\n            yield this.stateProvider.setUserState(KDF_CONFIG, kdfConfig, userId);\n        });\n    }\n    getKdfConfig() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$);\n            const state = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUser(userId, KDF_CONFIG).state$);\n            if (state === null) {\n                throw new Error(\"KdfConfig for active user account state is null\");\n            }\n            return state;\n        });\n    }\n    getKdfConfig$(userId) {\n        return this.stateProvider.getUser(userId, KDF_CONFIG).state$;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4296 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/kdf-config.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/key-connector.service.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/auth/services/key-connector.service.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CONVERT_ACCOUNT_TO_KEY_CONNECTOR: () => (/* binding */ CONVERT_ACCOUNT_TO_KEY_CONNECTOR),\n/* harmony export */   KeyConnectorService: () => (/* binding */ KeyConnectorService),\n/* harmony export */   USES_KEY_CONNECTOR: () => (/* binding */ USES_KEY_CONNECTOR)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _models_request_keys_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/request/keys.request */ \"../../libs/common/src/models/request/keys.request.ts\");\n/* harmony import */ var _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/enums/kdf-type.enum */ \"../../libs/common/src/platform/enums/kdf-type.enum.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\n/* harmony import */ var _models_request_key_connector_user_key_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/request/key-connector-user-key.request */ \"../../libs/common/src/auth/models/request/key-connector-user-key.request.ts\");\n/* harmony import */ var _models_request_set_key_connector_key_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../models/request/set-key-connector-key.request */ \"../../libs/common/src/auth/models/request/set-key-connector-key.request.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\nconst USES_KEY_CONNECTOR = new _platform_state__WEBPACK_IMPORTED_MODULE_6__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_6__.KEY_CONNECTOR_DISK, \"usesKeyConnector\", {\n    deserializer: (usesKeyConnector) => usesKeyConnector,\n    clearOn: [\"logout\"],\n});\nconst CONVERT_ACCOUNT_TO_KEY_CONNECTOR = new _platform_state__WEBPACK_IMPORTED_MODULE_6__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_6__.KEY_CONNECTOR_DISK, \"convertAccountToKeyConnector\", {\n    deserializer: (convertAccountToKeyConnector) => convertAccountToKeyConnector,\n    clearOn: [\"logout\"],\n});\nclass KeyConnectorService {\n    constructor(accountService, masterPasswordService, keyService, apiService, tokenService, logService, organizationService, keyGenerationService, logoutCallback, stateProvider) {\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.keyService = keyService;\n        this.apiService = apiService;\n        this.tokenService = tokenService;\n        this.logService = logService;\n        this.organizationService = organizationService;\n        this.keyGenerationService = keyGenerationService;\n        this.logoutCallback = logoutCallback;\n        this.stateProvider = stateProvider;\n        this.usesKeyConnectorState = this.stateProvider.getActive(USES_KEY_CONNECTOR);\n        this.convertAccountToKeyConnectorState = this.stateProvider.getActive(CONVERT_ACCOUNT_TO_KEY_CONNECTOR);\n    }\n    setUsesKeyConnector(usesKeyConnector, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, USES_KEY_CONNECTOR).update(() => usesKeyConnector);\n        });\n    }\n    getUsesKeyConnector(userId) {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUserState$(USES_KEY_CONNECTOR, userId));\n    }\n    userNeedsMigration(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const loggedInUsingSso = yield this.tokenService.getIsExternal(userId);\n            const requiredByOrganization = (yield this.getManagingOrganization(userId)) != null;\n            const userIsNotUsingKeyConnector = !(yield this.getUsesKeyConnector(userId));\n            return loggedInUsingSso && requiredByOrganization && userIsNotUsingKeyConnector;\n        });\n    }\n    migrateUser(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            userId !== null && userId !== void 0 ? userId : (userId = (_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$))) === null || _a === void 0 ? void 0 : _a.id);\n            const organization = yield this.getManagingOrganization(userId);\n            const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            const keyConnectorRequest = new _models_request_key_connector_user_key_request__WEBPACK_IMPORTED_MODULE_8__.KeyConnectorUserKeyRequest(masterKey.encKeyB64);\n            try {\n                yield this.apiService.postUserKeyToKeyConnector(organization.keyConnectorUrl, keyConnectorRequest);\n            }\n            catch (e) {\n                this.handleKeyConnectorError(e);\n            }\n            yield this.apiService.postConvertToKeyConnector();\n        });\n    }\n    // TODO: UserKey should be renamed to MasterKey and typed accordingly\n    setMasterKeyFromUrl(url, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                const masterKeyResponse = yield this.apiService.getMasterKeyFromKeyConnector(url);\n                const keyArr = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.fromB64ToArray(masterKeyResponse.key);\n                const masterKey = new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__.SymmetricCryptoKey(keyArr);\n                yield this.masterPasswordService.setMasterKey(masterKey, userId);\n            }\n            catch (e) {\n                this.handleKeyConnectorError(e);\n            }\n        });\n    }\n    getManagingOrganization(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const orgs = yield this.organizationService.getAll(userId);\n            return orgs.find((o) => o.keyConnectorEnabled &&\n                o.type !== _admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserType.Admin &&\n                o.type !== _admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.OrganizationUserType.Owner &&\n                !o.isProviderUser);\n        });\n    }\n    convertNewSsoUserToKeyConnector(tokenResponse, orgId, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            // TODO: Remove after tokenResponse.keyConnectorUrl is deprecated in 2023.10 release (https://bitwarden.atlassian.net/browse/PM-3537)\n            const { kdf, kdfIterations, kdfMemory, kdfParallelism, keyConnectorUrl: legacyKeyConnectorUrl, userDecryptionOptions, } = tokenResponse;\n            const password = yield this.keyGenerationService.createKey(512);\n            const kdfConfig = kdf === _platform_enums_kdf_type_enum__WEBPACK_IMPORTED_MODULE_3__.KdfType.PBKDF2_SHA256\n                ? new _models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_7__.PBKDF2KdfConfig(kdfIterations)\n                : new _models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_7__.Argon2KdfConfig(kdfIterations, kdfMemory, kdfParallelism);\n            const masterKey = yield this.keyService.makeMasterKey(password.keyB64, yield this.tokenService.getEmail(), kdfConfig);\n            const keyConnectorRequest = new _models_request_key_connector_user_key_request__WEBPACK_IMPORTED_MODULE_8__.KeyConnectorUserKeyRequest(masterKey.encKeyB64);\n            yield this.masterPasswordService.setMasterKey(masterKey, userId);\n            const userKey = yield this.keyService.makeUserKey(masterKey);\n            yield this.keyService.setUserKey(userKey[0], userId);\n            yield this.keyService.setMasterKeyEncryptedUserKey(userKey[1].encryptedString, userId);\n            const [pubKey, privKey] = yield this.keyService.makeKeyPair(userKey[0]);\n            try {\n                const keyConnectorUrl = legacyKeyConnectorUrl !== null && legacyKeyConnectorUrl !== void 0 ? legacyKeyConnectorUrl : (_a = userDecryptionOptions === null || userDecryptionOptions === void 0 ? void 0 : userDecryptionOptions.keyConnectorOption) === null || _a === void 0 ? void 0 : _a.keyConnectorUrl;\n                yield this.apiService.postUserKeyToKeyConnector(keyConnectorUrl, keyConnectorRequest);\n            }\n            catch (e) {\n                this.handleKeyConnectorError(e);\n            }\n            const keys = new _models_request_keys_request__WEBPACK_IMPORTED_MODULE_2__.KeysRequest(pubKey, privKey.encryptedString);\n            const setPasswordRequest = new _models_request_set_key_connector_key_request__WEBPACK_IMPORTED_MODULE_9__.SetKeyConnectorKeyRequest(userKey[1].encryptedString, kdfConfig, orgId, keys);\n            yield this.apiService.postSetKeyConnectorKey(setPasswordRequest);\n        });\n    }\n    setConvertAccountRequired(status, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.setUserState(CONVERT_ACCOUNT_TO_KEY_CONNECTOR, status, userId);\n        });\n    }\n    getConvertAccountRequired() {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.convertAccountToKeyConnectorState.state$);\n    }\n    removeConvertAccountRequired(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setConvertAccountRequired(null, userId);\n        });\n    }\n    handleKeyConnectorError(e) {\n        this.logService.error(e);\n        if (this.logoutCallback != null) {\n            // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n            // eslint-disable-next-line @typescript-eslint/no-floating-promises\n            this.logoutCallback(\"keyConnectorError\");\n        }\n        throw new Error(\"Key Connector error\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18396 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/key-connector.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/master-password/master-password.service.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/common/src/auth/services/master-password/master-password.service.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MasterPasswordService: () => (/* binding */ MasterPasswordService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/domain/force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n/** Memory since master key shouldn't be available on lock */\nconst MASTER_KEY = new _platform_state__WEBPACK_IMPORTED_MODULE_4__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_4__.MASTER_PASSWORD_MEMORY, \"masterKey\", {\n    deserializer: (masterKey) => _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey.fromJSON(masterKey),\n    clearOn: [\"lock\", \"logout\"],\n});\n/** Disk since master key hash is used for unlock */\nconst MASTER_KEY_HASH = new _platform_state__WEBPACK_IMPORTED_MODULE_4__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_4__.MASTER_PASSWORD_DISK, \"masterKeyHash\", {\n    deserializer: (masterKeyHash) => masterKeyHash,\n    clearOn: [\"logout\"],\n});\n/** Disk to persist through lock */\nconst MASTER_KEY_ENCRYPTED_USER_KEY = new _platform_state__WEBPACK_IMPORTED_MODULE_4__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_4__.MASTER_PASSWORD_DISK, \"masterKeyEncryptedUserKey\", {\n    deserializer: (key) => key,\n    clearOn: [\"logout\"],\n});\n/** Disk to persist through lock and account switches */\nconst FORCE_SET_PASSWORD_REASON = new _platform_state__WEBPACK_IMPORTED_MODULE_4__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_4__.MASTER_PASSWORD_DISK, \"forceSetPasswordReason\", {\n    deserializer: (reason) => reason,\n    clearOn: [\"logout\"],\n});\nclass MasterPasswordService {\n    constructor(stateProvider, stateService, keyGenerationService, encryptService, logService) {\n        this.stateProvider = stateProvider;\n        this.stateService = stateService;\n        this.keyGenerationService = keyGenerationService;\n        this.encryptService = encryptService;\n        this.logService = logService;\n    }\n    masterKey$(userId) {\n        if (userId == null) {\n            throw new Error(\"User ID is required.\");\n        }\n        return this.stateProvider.getUser(userId, MASTER_KEY).state$;\n    }\n    masterKeyHash$(userId) {\n        if (userId == null) {\n            throw new Error(\"User ID is required.\");\n        }\n        return this.stateProvider.getUser(userId, MASTER_KEY_HASH).state$;\n    }\n    forceSetPasswordReason$(userId) {\n        if (userId == null) {\n            throw new Error(\"User ID is required.\");\n        }\n        return this.stateProvider\n            .getUser(userId, FORCE_SET_PASSWORD_REASON)\n            .state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((reason) => reason !== null && reason !== void 0 ? reason : _models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_5__.ForceSetPasswordReason.None));\n    }\n    // TODO: Remove this method and decrypt directly in the service instead\n    getMasterKeyEncryptedUserKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            const key = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUser(userId, MASTER_KEY_ENCRYPTED_USER_KEY).state$);\n            return _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(key);\n        });\n    }\n    setMasterKey(masterKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (masterKey == null) {\n                throw new Error(\"Master key is required.\");\n            }\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            yield this.stateProvider.getUser(userId, MASTER_KEY).update((_) => masterKey);\n        });\n    }\n    clearMasterKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            yield this.stateProvider.getUser(userId, MASTER_KEY).update((_) => null);\n        });\n    }\n    setMasterKeyHash(masterKeyHash, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (masterKeyHash == null) {\n                throw new Error(\"Master key hash is required.\");\n            }\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            yield this.stateProvider.getUser(userId, MASTER_KEY_HASH).update((_) => masterKeyHash);\n        });\n    }\n    clearMasterKeyHash(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            yield this.stateProvider.getUser(userId, MASTER_KEY_HASH).update((_) => null);\n        });\n    }\n    setMasterKeyEncryptedUserKey(encryptedKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (encryptedKey == null) {\n                throw new Error(\"Encrypted Key is required.\");\n            }\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            yield this.stateProvider\n                .getUser(userId, MASTER_KEY_ENCRYPTED_USER_KEY)\n                .update((_) => encryptedKey.toJSON());\n        });\n    }\n    setForceSetPasswordReason(reason, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (reason == null) {\n                throw new Error(\"Reason is required.\");\n            }\n            if (userId == null) {\n                throw new Error(\"User ID is required.\");\n            }\n            yield this.stateProvider.getUser(userId, FORCE_SET_PASSWORD_REASON).update((_) => reason);\n        });\n    }\n    decryptUserKeyWithMasterKey(masterKey, userId, userKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userKey !== null && userKey !== void 0 ? userKey : (userKey = yield this.getMasterKeyEncryptedUserKey(userId));\n            masterKey !== null && masterKey !== void 0 ? masterKey : (masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterKey$(userId)));\n            if (masterKey == null) {\n                throw new Error(\"No master key found.\");\n            }\n            // Try one more way to get the user key if it still wasn't found.\n            if (userKey == null) {\n                const deprecatedKey = yield this.stateService.getEncryptedCryptoSymmetricKey({\n                    userId: userId,\n                });\n                if (deprecatedKey == null) {\n                    throw new Error(\"No encrypted user key found.\");\n                }\n                userKey = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString(deprecatedKey);\n            }\n            let decUserKey;\n            if (userKey.encryptionType === _platform_enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_B64) {\n                decUserKey = yield this.encryptService.decryptToBytes(userKey, masterKey);\n            }\n            else if (userKey.encryptionType === _platform_enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_HmacSha256_B64) {\n                const newKey = yield this.keyGenerationService.stretchKey(masterKey);\n                decUserKey = yield this.encryptService.decryptToBytes(userKey, newKey);\n            }\n            else {\n                throw new Error(\"Unsupported encryption type.\");\n            }\n            if (decUserKey == null) {\n                this.logService.warning(\"Failed to decrypt user key with master key.\");\n                return null;\n            }\n            return new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(decUserKey);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16736 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/master-password/master-password.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/token.service.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/auth/services/token.service.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TokenService: () => (/* binding */ TokenService),\n/* harmony export */   TokenStorageLocation: () => (/* binding */ TokenStorageLocation)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/auth/common */ \"../../libs/auth/src/common/index.ts\");\n/* harmony import */ var _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums/vault-timeout-action.enum */ \"../../libs/common/src/enums/vault-timeout-action.enum.ts\");\n/* harmony import */ var _platform_enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../types/vault-timeout.type */ \"../../libs/common/src/types/vault-timeout.type.ts\");\n/* harmony import */ var _models_domain_set_tokens_result__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/domain/set-tokens-result */ \"../../libs/common/src/auth/models/domain/set-tokens-result.ts\");\n/* harmony import */ var _account_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./account.service */ \"../../libs/common/src/auth/services/account.service.ts\");\n/* harmony import */ var _token_state__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./token.state */ \"../../libs/common/src/auth/services/token.state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\nvar TokenStorageLocation;\n(function (TokenStorageLocation) {\n    TokenStorageLocation[\"Disk\"] = \"disk\";\n    TokenStorageLocation[\"SecureStorage\"] = \"secureStorage\";\n    TokenStorageLocation[\"Memory\"] = \"memory\";\n})(TokenStorageLocation || (TokenStorageLocation = {}));\nclass TokenService {\n    constructor(\n    // Note: we cannot use ActiveStateProvider because if we ever want to inject\n    // this service into the AccountService, we will make a circular dependency\n    singleUserStateProvider, globalStateProvider, platformSupportsSecureStorage, secureStorageService, keyGenerationService, encryptService, logService, logoutCallback) {\n        this.singleUserStateProvider = singleUserStateProvider;\n        this.globalStateProvider = globalStateProvider;\n        this.platformSupportsSecureStorage = platformSupportsSecureStorage;\n        this.secureStorageService = secureStorageService;\n        this.keyGenerationService = keyGenerationService;\n        this.encryptService = encryptService;\n        this.logService = logService;\n        this.logoutCallback = logoutCallback;\n        this.accessTokenKeySecureStorageKey = \"_accessTokenKey\";\n        this.refreshTokenSecureStorageKey = \"_refreshToken\";\n        this.initializeState();\n    }\n    hasAccessToken$(userId) {\n        // FIXME Once once vault timeout action is observable, we can use it to determine storage location\n        // and avoid the need to check both disk and memory.\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_DISK).state$,\n            this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_MEMORY).state$,\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([disk, memory]) => Boolean(disk || memory)));\n    }\n    initializeState() {\n        this.emailTwoFactorTokenRecordGlobalState = this.globalStateProvider.get(_token_state__WEBPACK_IMPORTED_MODULE_10__.EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL);\n        this.activeUserIdGlobalState = this.globalStateProvider.get(_account_service__WEBPACK_IMPORTED_MODULE_9__.ACCOUNT_ACTIVE_ACCOUNT_ID);\n    }\n    setTokens(accessToken, vaultTimeoutAction, vaultTimeout, refreshToken, clientIdClientSecret) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!accessToken) {\n                throw new Error(\"Access token is required.\");\n            }\n            // Can't check for falsey b/c 0 is a valid value\n            if (vaultTimeout == null) {\n                throw new Error(\"Vault Timeout is required.\");\n            }\n            if (vaultTimeoutAction == null) {\n                throw new Error(\"Vault Timeout Action is required.\");\n            }\n            // get user id the access token\n            const userId = yield this.getUserIdFromAccessToken(accessToken);\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot set tokens.\");\n            }\n            const newAccessToken = yield this._setAccessToken(accessToken, vaultTimeoutAction, vaultTimeout, userId);\n            const newTokens = new _models_domain_set_tokens_result__WEBPACK_IMPORTED_MODULE_8__.SetTokensResult(newAccessToken);\n            if (refreshToken) {\n                newTokens.refreshToken = yield this.setRefreshToken(refreshToken, vaultTimeoutAction, vaultTimeout, userId);\n            }\n            if (clientIdClientSecret != null) {\n                const clientId = yield this.setClientId(clientIdClientSecret[0], vaultTimeoutAction, vaultTimeout, userId);\n                const clientSecret = yield this.setClientSecret(clientIdClientSecret[1], vaultTimeoutAction, vaultTimeout, userId);\n                newTokens.clientIdSecretPair = [clientId, clientSecret];\n            }\n            return newTokens;\n        });\n    }\n    getAccessTokenKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accessTokenKeyB64 = yield this.secureStorageService.get(`${userId}${this.accessTokenKeySecureStorageKey}`, this.getSecureStorageOptions(userId));\n            if (!accessTokenKeyB64) {\n                return null;\n            }\n            const accessTokenKey = _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_6__.SymmetricCryptoKey.fromJSON(accessTokenKeyB64);\n            return accessTokenKey;\n        });\n    }\n    createAndSaveAccessTokenKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const newAccessTokenKey = (yield this.keyGenerationService.createKey(512));\n            yield this.secureStorageService.save(`${userId}${this.accessTokenKeySecureStorageKey}`, newAccessTokenKey, this.getSecureStorageOptions(userId));\n            // We are having intermittent issues with access token keys not saving into secure storage on windows 10/11.\n            // So, let's add a check to ensure we can read the value after writing it.\n            const accessTokenKey = yield this.getAccessTokenKey(userId);\n            if (!accessTokenKey) {\n                throw new Error(\"New Access token key unable to be retrieved from secure storage.\");\n            }\n            return newAccessTokenKey;\n        });\n    }\n    clearAccessTokenKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.secureStorageService.remove(`${userId}${this.accessTokenKeySecureStorageKey}`, this.getSecureStorageOptions(userId));\n        });\n    }\n    getOrCreateAccessTokenKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!this.platformSupportsSecureStorage) {\n                throw new Error(\"Platform does not support secure storage. Cannot obtain access token key.\");\n            }\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot obtain access token key.\");\n            }\n            // First see if we have an accessTokenKey in secure storage and return it if we do\n            // Note: retrieving/saving data from/to secure storage on linux will throw if the\n            // distro doesn't have a secure storage provider\n            let accessTokenKey = yield this.getAccessTokenKey(userId);\n            if (!accessTokenKey) {\n                // Otherwise, create a new one and save it to secure storage, then return it\n                accessTokenKey = yield this.createAndSaveAccessTokenKey(userId);\n            }\n            return accessTokenKey;\n        });\n    }\n    encryptAccessToken(accessToken, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accessTokenKey = yield this.getOrCreateAccessTokenKey(userId);\n            return yield this.encryptService.encrypt(accessToken, accessTokenKey);\n        });\n    }\n    decryptAccessToken(accessTokenKey, encryptedAccessToken) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!accessTokenKey) {\n                throw new Error(\"decryptAccessToken: Access token key required. Cannot decrypt access token.\");\n            }\n            const decryptedAccessToken = yield this.encryptService.decryptToUtf8(encryptedAccessToken, accessTokenKey);\n            return decryptedAccessToken;\n        });\n    }\n    /**\n     * Internal helper for set access token which always requires user id.\n     * This is useful because setTokens always will have a user id from the access token whereas\n     * the public setAccessToken method does not.\n     */\n    _setAccessToken(accessToken, vaultTimeoutAction, vaultTimeout, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const storageLocation = yield this.determineStorageLocation(vaultTimeoutAction, vaultTimeout, true);\n            switch (storageLocation) {\n                case TokenStorageLocation.SecureStorage: {\n                    // Secure storage implementations have variable length limitations (Windows), so we cannot\n                    // store the access token directly. Instead, we encrypt with accessTokenKey and store that\n                    // in secure storage.\n                    let decryptedAccessToken = null;\n                    try {\n                        const encryptedAccessToken = yield this.encryptAccessToken(accessToken, userId);\n                        // Save the encrypted access token to disk\n                        yield this.singleUserStateProvider\n                            .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_DISK)\n                            .update((_) => encryptedAccessToken.encryptedString);\n                        // If we've successfully stored the encrypted access token to disk, we can return the decrypted access token\n                        // so that the caller can use it immediately.\n                        decryptedAccessToken = accessToken;\n                        // TODO: PM-6408\n                        // 2024-02-20: Remove access token from memory so that we migrate to encrypt the access token over time.\n                        // Remove this call to remove the access token from memory after 3 months.\n                        yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_MEMORY).update((_) => null);\n                    }\n                    catch (error) {\n                        this.logService.error(`SetAccessToken: storing encrypted access token in secure storage failed. Falling back to disk storage.`, error);\n                        // Fall back to disk storage for unecrypted access token\n                        decryptedAccessToken = yield this.singleUserStateProvider\n                            .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_DISK)\n                            .update((_) => accessToken);\n                    }\n                    return decryptedAccessToken;\n                }\n                case TokenStorageLocation.Disk:\n                    // Access token stored on disk unencrypted as platform does not support secure storage\n                    return yield this.singleUserStateProvider\n                        .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_DISK)\n                        .update((_) => accessToken);\n                case TokenStorageLocation.Memory:\n                    // Access token stored in memory due to vault timeout settings\n                    return yield this.singleUserStateProvider\n                        .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_MEMORY)\n                        .update((_) => accessToken);\n            }\n        });\n    }\n    setAccessToken(accessToken, vaultTimeoutAction, vaultTimeout) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!accessToken) {\n                throw new Error(\"Access token is required.\");\n            }\n            const userId = yield this.getUserIdFromAccessToken(accessToken);\n            // If we don't have a user id, we can't save the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot save access token.\");\n            }\n            // Can't check for falsey b/c 0 is a valid value\n            if (vaultTimeout == null) {\n                throw new Error(\"Vault Timeout is required.\");\n            }\n            if (vaultTimeoutAction == null) {\n                throw new Error(\"Vault Timeout Action is required.\");\n            }\n            return yield this._setAccessToken(accessToken, vaultTimeoutAction, vaultTimeout, userId);\n        });\n    }\n    clearAccessToken(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            // If we don't have a user id, we can't clear the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot clear access token.\");\n            }\n            // TODO: re-eval this implementation once we get shared key definitions for vault timeout and vault timeout action data.\n            // we can't determine storage location w/out vaultTimeoutAction and vaultTimeout\n            // but we can simply clear all locations to avoid the need to require those parameters.\n            if (this.platformSupportsSecureStorage) {\n                // Always clear the access token key when clearing the access token\n                // The next set of the access token will create a new access token key\n                yield this.clearAccessTokenKey(userId);\n            }\n            // Platform doesn't support secure storage, so use state provider implementation\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_DISK).update((_) => null);\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_MEMORY).update((_) => null);\n        });\n    }\n    getAccessToken(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                return null;\n            }\n            // Try to get the access token from memory\n            const accessTokenMemory = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_MEMORY);\n            if (accessTokenMemory != null) {\n                return accessTokenMemory;\n            }\n            // If memory is null, read from disk\n            const accessTokenDisk = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.ACCESS_TOKEN_DISK);\n            if (!accessTokenDisk) {\n                return null;\n            }\n            if (this.platformSupportsSecureStorage) {\n                let accessTokenKey;\n                try {\n                    accessTokenKey = yield this.getAccessTokenKey(userId);\n                }\n                catch (error) {\n                    if (_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_5__.EncString.isSerializedEncString(accessTokenDisk)) {\n                        this.logService.error(\"Access token key retrieval failed. Unable to decrypt encrypted access token. Logging user out.\", error);\n                        yield this.logoutCallback(\"accessTokenUnableToBeDecrypted\", userId);\n                        return null;\n                    }\n                    // If the access token key is not found, but the access token is unencrypted then\n                    // this indicates that this is the pre-migration state where the access token\n                    // was stored unencrypted on disk. We can return the access token as is.\n                    // Note: this is likely to only be hit for linux users who don't\n                    // have a secure storage provider configured.\n                    return accessTokenDisk;\n                }\n                if (!accessTokenKey) {\n                    if (_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_5__.EncString.isSerializedEncString(accessTokenDisk)) {\n                        // The access token is encrypted but we don't have the key to decrypt it for\n                        // whatever reason so we have to log the user out.\n                        this.logService.error(\"Access token key not found to decrypt encrypted access token. Logging user out.\");\n                        yield this.logoutCallback(\"accessTokenUnableToBeDecrypted\", userId);\n                        return null;\n                    }\n                    // We know this is an unencrypted access token\n                    return accessTokenDisk;\n                }\n                try {\n                    const encryptedAccessTokenEncString = new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_5__.EncString(accessTokenDisk);\n                    const decryptedAccessToken = yield this.decryptAccessToken(accessTokenKey, encryptedAccessTokenEncString);\n                    return decryptedAccessToken;\n                }\n                catch (error) {\n                    // If an error occurs during decryption, logout and then return null.\n                    // We don't try to recover here since we'd like to know\n                    // if access token and key are getting out of sync.\n                    this.logService.error(`Failed to decrypt access token`, error);\n                    yield this.logoutCallback(\"accessTokenUnableToBeDecrypted\", userId);\n                    return null;\n                }\n            }\n            return accessTokenDisk;\n        });\n    }\n    // Private because we only ever set the refresh token when also setting the access token\n    // and we need the user id from the access token to save to secure storage\n    setRefreshToken(refreshToken, vaultTimeoutAction, vaultTimeout, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If we don't have a user id, we can't save the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot save refresh token.\");\n            }\n            // Can't check for falsey b/c 0 is a valid value\n            if (vaultTimeout == null) {\n                throw new Error(\"Vault Timeout is required.\");\n            }\n            if (vaultTimeoutAction == null) {\n                throw new Error(\"Vault Timeout Action is required.\");\n            }\n            const storageLocation = yield this.determineStorageLocation(vaultTimeoutAction, vaultTimeout, true);\n            switch (storageLocation) {\n                case TokenStorageLocation.SecureStorage: {\n                    let decryptedRefreshToken = null;\n                    try {\n                        yield this.saveStringToSecureStorage(userId, this.refreshTokenSecureStorageKey, refreshToken);\n                        // Check if the refresh token was able to be saved to secure storage by reading it\n                        // immediately after setting it. This is needed due to intermittent silent failures on Windows 10/11.\n                        const refreshTokenSecureStorage = yield this.getStringFromSecureStorage(userId, this.refreshTokenSecureStorageKey);\n                        // Only throw if the refresh token was not saved to secure storage\n                        // If we only check for a nullish value out of secure storage without considering the input value,\n                        // then we would end up falling back to disk storage if the input value was null.\n                        if (refreshToken !== null && !refreshTokenSecureStorage) {\n                            throw new Error(\"Refresh token failed to save to secure storage.\");\n                        }\n                        // If we've successfully stored the encrypted refresh token, we can return the decrypted refresh token\n                        // so that the caller can use it immediately.\n                        decryptedRefreshToken = refreshToken;\n                        // TODO: PM-6408\n                        // 2024-02-20: Remove refresh token from memory and disk so that we migrate to secure storage over time.\n                        // Remove these 2 calls to remove the refresh token from memory and disk after 3 months.\n                        yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_DISK).update((_) => null);\n                        yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_MEMORY).update((_) => null);\n                    }\n                    catch (error) {\n                        // This case could be hit for both Linux users who don't have secure storage configured\n                        // or for Windows users who have intermittent issues with secure storage.\n                        this.logService.error(`SetRefreshToken: storing refresh token in secure storage failed. Falling back to disk storage.`, error);\n                        // Fall back to disk storage for refresh token\n                        decryptedRefreshToken = yield this.singleUserStateProvider\n                            .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_DISK)\n                            .update((_) => refreshToken);\n                    }\n                    return decryptedRefreshToken;\n                }\n                case TokenStorageLocation.Disk:\n                    return yield this.singleUserStateProvider\n                        .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_DISK)\n                        .update((_) => refreshToken);\n                case TokenStorageLocation.Memory:\n                    return yield this.singleUserStateProvider\n                        .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_MEMORY)\n                        .update((_) => refreshToken);\n            }\n        });\n    }\n    getRefreshToken(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                return null;\n            }\n            // pre-secure storage migration:\n            // Always read memory first b/c faster\n            const refreshTokenMemory = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_MEMORY);\n            if (refreshTokenMemory != null) {\n                return refreshTokenMemory;\n            }\n            // if memory is null, read from disk and then secure storage\n            const refreshTokenDisk = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_DISK);\n            if (refreshTokenDisk != null) {\n                // This handles the scenario pre-secure storage migration where the refresh token was stored on disk.\n                return refreshTokenDisk;\n            }\n            if (this.platformSupportsSecureStorage) {\n                try {\n                    const refreshTokenSecureStorage = yield this.getStringFromSecureStorage(userId, this.refreshTokenSecureStorageKey);\n                    if (refreshTokenSecureStorage != null) {\n                        return refreshTokenSecureStorage;\n                    }\n                    this.logService.error(\"Refresh token not found in secure storage. Access token will fail to refresh upon expiration or manual refresh.\");\n                }\n                catch (error) {\n                    // This case will be hit for Linux users who don't have secure storage configured.\n                    this.logService.error(`Failed to retrieve refresh token from secure storage`, error);\n                    yield this.logoutCallback(\"refreshTokenSecureStorageRetrievalFailure\", userId);\n                }\n            }\n            return null;\n        });\n    }\n    clearRefreshToken(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If we don't have a user id, we can't clear the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot clear refresh token.\");\n            }\n            // TODO: re-eval this once we get shared key definitions for vault timeout and vault timeout action data.\n            // we can't determine storage location w/out vaultTimeoutAction and vaultTimeout\n            // but we can simply clear all locations to avoid the need to require those parameters\n            if (this.platformSupportsSecureStorage) {\n                yield this.secureStorageService.remove(`${userId}${this.refreshTokenSecureStorageKey}`, this.getSecureStorageOptions(userId));\n            }\n            // Platform doesn't support secure storage, so use state provider implementation\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_MEMORY).update((_) => null);\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.REFRESH_TOKEN_DISK).update((_) => null);\n        });\n    }\n    setClientId(clientId, vaultTimeoutAction, vaultTimeout, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            // If we don't have a user id, we can't save the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot save client id.\");\n            }\n            // Can't check for falsey b/c 0 is a valid value\n            if (vaultTimeout == null) {\n                throw new Error(\"Vault Timeout is required.\");\n            }\n            if (vaultTimeoutAction == null) {\n                throw new Error(\"Vault Timeout Action is required.\");\n            }\n            const storageLocation = yield this.determineStorageLocation(vaultTimeoutAction, vaultTimeout, false);\n            if (storageLocation === TokenStorageLocation.Disk) {\n                return yield this.singleUserStateProvider\n                    .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_ID_DISK)\n                    .update((_) => clientId);\n            }\n            else if (storageLocation === TokenStorageLocation.Memory) {\n                return yield this.singleUserStateProvider\n                    .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_ID_MEMORY)\n                    .update((_) => clientId);\n            }\n        });\n    }\n    getClientId(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                return undefined;\n            }\n            // Always read memory first b/c faster\n            const apiKeyClientIdMemory = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_ID_MEMORY);\n            if (apiKeyClientIdMemory != null) {\n                return apiKeyClientIdMemory;\n            }\n            // if memory is null, read from disk\n            return yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_ID_DISK);\n        });\n    }\n    clearClientId(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            // If we don't have a user id, we can't clear the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot clear client id.\");\n            }\n            // TODO: re-eval this once we get shared key definitions for vault timeout and vault timeout action data.\n            // we can't determine storage location w/out vaultTimeoutAction and vaultTimeout\n            // but we can simply clear both locations to avoid the need to require those parameters\n            // Platform doesn't support secure storage, so use state provider implementation\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_ID_MEMORY).update((_) => null);\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_ID_DISK).update((_) => null);\n        });\n    }\n    setClientSecret(clientSecret, vaultTimeoutAction, vaultTimeout, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot save client secret.\");\n            }\n            // Can't check for falsey b/c 0 is a valid value\n            if (vaultTimeout == null) {\n                throw new Error(\"Vault Timeout is required.\");\n            }\n            if (vaultTimeoutAction == null) {\n                throw new Error(\"Vault Timeout Action is required.\");\n            }\n            const storageLocation = yield this.determineStorageLocation(vaultTimeoutAction, vaultTimeout, false);\n            if (storageLocation === TokenStorageLocation.Disk) {\n                return yield this.singleUserStateProvider\n                    .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_SECRET_DISK)\n                    .update((_) => clientSecret);\n            }\n            else if (storageLocation === TokenStorageLocation.Memory) {\n                return yield this.singleUserStateProvider\n                    .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_SECRET_MEMORY)\n                    .update((_) => clientSecret);\n            }\n        });\n    }\n    getClientSecret(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                return undefined;\n            }\n            // Always read memory first b/c faster\n            const apiKeyClientSecretMemory = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_SECRET_MEMORY);\n            if (apiKeyClientSecretMemory != null) {\n                return apiKeyClientSecretMemory;\n            }\n            // if memory is null, read from disk\n            return yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_SECRET_DISK);\n        });\n    }\n    clearClientSecret(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            // If we don't have a user id, we can't clear the value\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot clear client secret.\");\n            }\n            // TODO: re-eval this once we get shared key definitions for vault timeout and vault timeout action data.\n            // we can't determine storage location w/out vaultTimeoutAction and vaultTimeout\n            // but we can simply clear both locations to avoid the need to require those parameters\n            // Platform doesn't support secure storage, so use state provider implementation\n            yield this.singleUserStateProvider\n                .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_SECRET_MEMORY)\n                .update((_) => null);\n            yield this.singleUserStateProvider.get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.API_KEY_CLIENT_SECRET_DISK).update((_) => null);\n        });\n    }\n    setTwoFactorToken(email, twoFactorToken) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.emailTwoFactorTokenRecordGlobalState.update((emailTwoFactorTokenRecord) => {\n                emailTwoFactorTokenRecord !== null && emailTwoFactorTokenRecord !== void 0 ? emailTwoFactorTokenRecord : (emailTwoFactorTokenRecord = {});\n                emailTwoFactorTokenRecord[email] = twoFactorToken;\n                return emailTwoFactorTokenRecord;\n            });\n        });\n    }\n    getTwoFactorToken(email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const emailTwoFactorTokenRecord = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.emailTwoFactorTokenRecordGlobalState.state$);\n            if (!emailTwoFactorTokenRecord) {\n                return null;\n            }\n            return emailTwoFactorTokenRecord[email];\n        });\n    }\n    clearTwoFactorToken(email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.emailTwoFactorTokenRecordGlobalState.update((emailTwoFactorTokenRecord) => {\n                emailTwoFactorTokenRecord !== null && emailTwoFactorTokenRecord !== void 0 ? emailTwoFactorTokenRecord : (emailTwoFactorTokenRecord = {});\n                delete emailTwoFactorTokenRecord[email];\n                return emailTwoFactorTokenRecord;\n            });\n        });\n    }\n    // TODO: stop accepting optional userIds\n    clearTokens(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot clear tokens.\");\n            }\n            yield Promise.all([\n                this.clearAccessToken(userId),\n                this.clearRefreshToken(userId),\n                this.clearClientId(userId),\n                this.clearClientSecret(userId),\n            ]);\n        });\n    }\n    // jwthelper methods\n    // ref https://github.com/auth0/angular-jwt/blob/master/src/angularJwt/services/jwt.js\n    decodeAccessToken(tokenOrUserId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let token = tokenOrUserId;\n            if (_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isGuid(tokenOrUserId)) {\n                token = yield this.getAccessToken(tokenOrUserId);\n            }\n            else {\n                token !== null && token !== void 0 ? token : (token = yield this.getAccessToken());\n            }\n            if (token == null) {\n                throw new Error(\"Access token not found.\");\n            }\n            return (0,_bitwarden_auth_common__WEBPACK_IMPORTED_MODULE_1__.decodeJwtTokenToJson)(token);\n        });\n    }\n    // TODO: PM-6678- tech debt - consider consolidating the return types of all these access\n    // token data retrieval methods to return null if something goes wrong instead of throwing an error.\n    getTokenExpirationDate() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken();\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            // per RFC, exp claim is optional but if it exists, it should be a number\n            if (!decoded || typeof decoded.exp !== \"number\") {\n                return null;\n            }\n            // The 0 in Date(0) is the key; it sets the date to the epoch\n            const expirationDate = new Date(0);\n            expirationDate.setUTCSeconds(decoded.exp);\n            return expirationDate;\n        });\n    }\n    tokenSecondsRemaining() {\n        return __awaiter(this, arguments, void 0, function* (offsetSeconds = 0) {\n            const date = yield this.getTokenExpirationDate();\n            if (date == null) {\n                return 0;\n            }\n            const msRemaining = date.valueOf() - (new Date().valueOf() + offsetSeconds * 1000);\n            return Math.round(msRemaining / 1000);\n        });\n    }\n    tokenNeedsRefresh() {\n        return __awaiter(this, arguments, void 0, function* (minutes = 5) {\n            const sRemaining = yield this.tokenSecondsRemaining();\n            return sRemaining < 60 * minutes;\n        });\n    }\n    getUserId() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken();\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            if (!decoded || typeof decoded.sub !== \"string\") {\n                throw new Error(\"No user id found\");\n            }\n            return decoded.sub;\n        });\n    }\n    getUserIdFromAccessToken(accessToken) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken(accessToken);\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            if (!decoded || typeof decoded.sub !== \"string\") {\n                throw new Error(\"No user id found\");\n            }\n            return decoded.sub;\n        });\n    }\n    getEmail() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken();\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            if (!decoded || typeof decoded.email !== \"string\") {\n                throw new Error(\"No email found\");\n            }\n            return decoded.email;\n        });\n    }\n    getEmailVerified() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken();\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            if (!decoded || typeof decoded.email_verified !== \"boolean\") {\n                throw new Error(\"No email verification found\");\n            }\n            return decoded.email_verified;\n        });\n    }\n    getName() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken();\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            if (!decoded || typeof decoded.name !== \"string\") {\n                return null;\n            }\n            return decoded.name;\n        });\n    }\n    getIssuer() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken();\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            if (!decoded || typeof decoded.iss !== \"string\") {\n                throw new Error(\"No issuer found\");\n            }\n            return decoded.iss;\n        });\n    }\n    getIsExternal(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decoded;\n            try {\n                decoded = yield this.decodeAccessToken(userId);\n            }\n            catch (error) {\n                throw new Error(\"Failed to decode access token: \" + error.message);\n            }\n            return Array.isArray(decoded.amr) && decoded.amr.includes(\"external\");\n        });\n    }\n    getSecurityStamp(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot get security stamp.\");\n            }\n            const securityStamp = yield this.getStateValueByUserIdAndKeyDef(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.SECURITY_STAMP_MEMORY);\n            return securityStamp;\n        });\n    }\n    setSecurityStamp(securityStamp, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserIdGlobalState.state$));\n            if (!userId) {\n                throw new Error(\"User id not found. Cannot set security stamp.\");\n            }\n            yield this.singleUserStateProvider\n                .get(userId, _token_state__WEBPACK_IMPORTED_MODULE_10__.SECURITY_STAMP_MEMORY)\n                .update((_) => securityStamp);\n        });\n    }\n    getStateValueByUserIdAndKeyDef(userId, storageLocation) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // read from single user state provider\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.singleUserStateProvider.get(userId, storageLocation).state$);\n        });\n    }\n    determineStorageLocation(vaultTimeoutAction, vaultTimeout, useSecureStorage) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (vaultTimeoutAction == null) {\n                throw new Error(\"TokenService - determineStorageLocation: We expect the vault timeout action to always exist at this point.\");\n            }\n            if (vaultTimeout == null) {\n                throw new Error(\"TokenService - determineStorageLocation: We expect the vault timeout to always exist at this point.\");\n            }\n            if (vaultTimeoutAction === _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.LogOut &&\n                vaultTimeout !== _types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_7__.VaultTimeoutStringType.Never) {\n                return TokenStorageLocation.Memory;\n            }\n            else {\n                if (useSecureStorage && this.platformSupportsSecureStorage) {\n                    return TokenStorageLocation.SecureStorage;\n                }\n                return TokenStorageLocation.Disk;\n            }\n        });\n    }\n    saveStringToSecureStorage(userId, storageKey, value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.secureStorageService.save(`${userId}${storageKey}`, value, this.getSecureStorageOptions(userId));\n        });\n    }\n    getStringFromSecureStorage(userId, storageKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // If we have a user ID, read from secure storage.\n            return yield this.secureStorageService.get(`${userId}${storageKey}`, this.getSecureStorageOptions(userId));\n        });\n    }\n    getSecureStorageOptions(userId) {\n        return {\n            storageLocation: _platform_enums__WEBPACK_IMPORTED_MODULE_3__.StorageLocation.Disk,\n            useSecureStorage: true,\n            userId: userId,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 84224 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/token.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/token.state.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/auth/services/token.state.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ACCESS_TOKEN_DISK: () => (/* binding */ ACCESS_TOKEN_DISK),\n/* harmony export */   ACCESS_TOKEN_MEMORY: () => (/* binding */ ACCESS_TOKEN_MEMORY),\n/* harmony export */   API_KEY_CLIENT_ID_DISK: () => (/* binding */ API_KEY_CLIENT_ID_DISK),\n/* harmony export */   API_KEY_CLIENT_ID_MEMORY: () => (/* binding */ API_KEY_CLIENT_ID_MEMORY),\n/* harmony export */   API_KEY_CLIENT_SECRET_DISK: () => (/* binding */ API_KEY_CLIENT_SECRET_DISK),\n/* harmony export */   API_KEY_CLIENT_SECRET_MEMORY: () => (/* binding */ API_KEY_CLIENT_SECRET_MEMORY),\n/* harmony export */   EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL: () => (/* binding */ EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL),\n/* harmony export */   REFRESH_TOKEN_DISK: () => (/* binding */ REFRESH_TOKEN_DISK),\n/* harmony export */   REFRESH_TOKEN_MEMORY: () => (/* binding */ REFRESH_TOKEN_MEMORY),\n/* harmony export */   SECURITY_STAMP_MEMORY: () => (/* binding */ SECURITY_STAMP_MEMORY)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n// Note: all tokens / API key information must be cleared on logout.\n// because we are using secure storage, we must manually call to clean up our tokens.\n// See stateService.deAuthenticateAccount for where we call clearTokens(...)\nconst ACCESS_TOKEN_DISK = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_DISK, \"accessToken\", {\n    deserializer: (accessToken) => accessToken,\n    clearOn: [], // Manually handled\n});\nconst ACCESS_TOKEN_MEMORY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_MEMORY, \"accessToken\", {\n    deserializer: (accessToken) => accessToken,\n    clearOn: [], // Manually handled\n});\nconst REFRESH_TOKEN_DISK = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_DISK, \"refreshToken\", {\n    deserializer: (refreshToken) => refreshToken,\n    clearOn: [], // Manually handled\n});\nconst REFRESH_TOKEN_MEMORY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_MEMORY, \"refreshToken\", {\n    deserializer: (refreshToken) => refreshToken,\n    clearOn: [], // Manually handled\n});\nconst EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL = _platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_DISK_LOCAL, \"emailTwoFactorTokenRecord\", {\n    deserializer: (emailTwoFactorTokenRecord) => emailTwoFactorTokenRecord,\n});\nconst API_KEY_CLIENT_ID_DISK = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_DISK, \"apiKeyClientId\", {\n    deserializer: (apiKeyClientId) => apiKeyClientId,\n    clearOn: [], // Manually handled\n});\nconst API_KEY_CLIENT_ID_MEMORY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_MEMORY, \"apiKeyClientId\", {\n    deserializer: (apiKeyClientId) => apiKeyClientId,\n    clearOn: [], // Manually handled\n});\nconst API_KEY_CLIENT_SECRET_DISK = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_DISK, \"apiKeyClientSecret\", {\n    deserializer: (apiKeyClientSecret) => apiKeyClientSecret,\n    clearOn: [], // Manually handled\n});\nconst API_KEY_CLIENT_SECRET_MEMORY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_MEMORY, \"apiKeyClientSecret\", {\n    deserializer: (apiKeyClientSecret) => apiKeyClientSecret,\n    clearOn: [], // Manually handled\n});\nconst SECURITY_STAMP_MEMORY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.TOKEN_MEMORY, \"securityStamp\", {\n    deserializer: (securityStamp) => securityStamp,\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5724 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/token.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/two-factor.service.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/auth/services/two-factor.service.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PROVIDERS: () => (/* binding */ PROVIDERS),\n/* harmony export */   SELECTED_PROVIDER: () => (/* binding */ SELECTED_PROVIDER),\n/* harmony export */   TwoFactorProviders: () => (/* binding */ TwoFactorProviders),\n/* harmony export */   TwoFactorService: () => (/* binding */ TwoFactorService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enums/two-factor-provider-type */ \"../../libs/common/src/auth/enums/two-factor-provider-type.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst TwoFactorProviders = {\n    [_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Authenticator]: {\n        type: _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Authenticator,\n        name: null,\n        description: null,\n        priority: 1,\n        sort: 2,\n        premium: false,\n    },\n    [_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Yubikey]: {\n        type: _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Yubikey,\n        name: null,\n        description: null,\n        priority: 3,\n        sort: 4,\n        premium: true,\n    },\n    [_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Duo]: {\n        type: _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Duo,\n        name: \"Duo\",\n        description: null,\n        priority: 2,\n        sort: 5,\n        premium: true,\n    },\n    [_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.OrganizationDuo]: {\n        type: _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.OrganizationDuo,\n        name: \"Duo (Organization)\",\n        description: null,\n        priority: 10,\n        sort: 6,\n        premium: false,\n    },\n    [_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Email]: {\n        type: _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Email,\n        name: null,\n        description: null,\n        priority: 0,\n        sort: 1,\n        premium: false,\n    },\n    [_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn]: {\n        type: _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn,\n        name: null,\n        description: null,\n        priority: 4,\n        sort: 3,\n        premium: false,\n    },\n};\n// Memory storage as only required during authentication process\nconst PROVIDERS = _platform_state__WEBPACK_IMPORTED_MODULE_2__.KeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_2__.TWO_FACTOR_MEMORY, \"providers\", {\n    deserializer: (obj) => obj,\n});\n// Memory storage as only required during authentication process\nconst SELECTED_PROVIDER = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.KeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.TWO_FACTOR_MEMORY, \"selected\", {\n    deserializer: (obj) => obj,\n});\nclass TwoFactorService {\n    constructor(i18nService, platformUtilsService, globalStateProvider) {\n        this.i18nService = i18nService;\n        this.platformUtilsService = platformUtilsService;\n        this.globalStateProvider = globalStateProvider;\n        this.providersState = this.globalStateProvider.get(PROVIDERS);\n        this.selectedState = this.globalStateProvider.get(SELECTED_PROVIDER);\n        this.providers$ = this.providersState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((providers) => _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.recordToMap(providers)));\n        this.selected$ = this.selectedState.state$;\n    }\n    init() {\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Email].name = this.i18nService.t(\"emailTitle\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Email].description = this.i18nService.t(\"emailDescV2\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Authenticator].name =\n            this.i18nService.t(\"authenticatorAppTitle\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Authenticator].description =\n            this.i18nService.t(\"authenticatorAppDescV2\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Duo].description = this.i18nService.t(\"duoDescV2\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.OrganizationDuo].name =\n            \"Duo (\" + this.i18nService.t(\"organization\") + \")\";\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.OrganizationDuo].description =\n            this.i18nService.t(\"duoOrganizationDesc\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn].name = this.i18nService.t(\"webAuthnTitle\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn].description =\n            this.i18nService.t(\"webAuthnDesc\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Yubikey].name = this.i18nService.t(\"yubiKeyTitleV2\");\n        TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Yubikey].description =\n            this.i18nService.t(\"yubiKeyDesc\");\n    }\n    getSupportedProviders(win) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.providers$);\n            const providers = [];\n            if (data == null) {\n                return providers;\n            }\n            if (data.has(_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.OrganizationDuo) &&\n                this.platformUtilsService.supportsDuo()) {\n                providers.push(TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.OrganizationDuo]);\n            }\n            if (data.has(_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Authenticator)) {\n                providers.push(TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Authenticator]);\n            }\n            if (data.has(_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Yubikey)) {\n                providers.push(TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Yubikey]);\n            }\n            if (data.has(_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Duo) && this.platformUtilsService.supportsDuo()) {\n                providers.push(TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Duo]);\n            }\n            if (data.has(_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn) &&\n                this.platformUtilsService.supportsWebAuthn(win)) {\n                providers.push(TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn]);\n            }\n            if (data.has(_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Email)) {\n                providers.push(TwoFactorProviders[_enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.Email]);\n            }\n            return providers;\n        });\n    }\n    getDefaultProvider(webAuthnSupported) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const data = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.providers$);\n            const selected = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.selected$);\n            if (data == null) {\n                return null;\n            }\n            if (selected != null && data.has(selected)) {\n                return selected;\n            }\n            let providerType = null;\n            let providerPriority = -1;\n            data.forEach((_value, type) => {\n                const provider = TwoFactorProviders[type];\n                if (provider != null && provider.priority > providerPriority) {\n                    if (type === _enums_two_factor_provider_type__WEBPACK_IMPORTED_MODULE_3__.TwoFactorProviderType.WebAuthn && !webAuthnSupported) {\n                        return;\n                    }\n                    providerType = type;\n                    providerPriority = provider.priority;\n                }\n            });\n            return providerType;\n        });\n    }\n    setSelectedProvider(type) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.selectedState.update(() => type);\n        });\n    }\n    clearSelectedProvider() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.selectedState.update(() => null);\n        });\n    }\n    setProviders(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.providersState.update(() => response.twoFactorProviders2);\n        });\n    }\n    clearProviders() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.providersState.update(() => null);\n        });\n    }\n    getProviders() {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.providers$);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 17304 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/two-factor.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/user-verification/user-verification-api.service.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/auth/services/user-verification/user-verification-api.service.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserVerificationApiService: () => (/* binding */ UserVerificationApiService)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nclass UserVerificationApiService {\n    constructor(apiService) {\n        this.apiService = apiService;\n    }\n    postAccountVerifyOTP(request) {\n        return this.apiService.send(\"POST\", \"/accounts/verify-otp\", request, true, false);\n    }\n    postAccountRequestOTP() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.apiService.send(\"POST\", \"/accounts/request-otp\", null, true, false);\n        });\n    }\n    postAccountVerifyPassword(request) {\n        return this.apiService.send(\"POST\", \"/accounts/verify-password\", request, true, true);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvc2VydmljZXMvdXNlci12ZXJpZmljYXRpb24vdXNlci12ZXJpZmljYXRpb24tYXBpLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQU1PLE1BQU0sMEJBQTBCO0lBQ3JDLFlBQW9CLFVBQXNCO1FBQXRCLGVBQVUsR0FBVixVQUFVLENBQVk7SUFBRyxDQUFDO0lBRTlDLG9CQUFvQixDQUFDLE9BQXlCO1FBQzVDLE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsTUFBTSxFQUFFLHNCQUFzQixFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDcEYsQ0FBQztJQUNLLHFCQUFxQjs7WUFDekIsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ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common/src/auth/services/user-verification/user-verification-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/user-verification/user-verification.service.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/auth/services/user-verification/user-verification.service.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserVerificationService: () => (/* binding */ UserVerificationService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _platform_enums_key_suffix_options_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/enums/key-suffix-options.enum */ \"../../libs/common/src/platform/enums/key-suffix-options.enum.ts\");\n/* harmony import */ var _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../enums/verification-type */ \"../../libs/common/src/auth/enums/verification-type.ts\");\n/* harmony import */ var _models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/request/secret-verification.request */ \"../../libs/common/src/auth/models/request/secret-verification.request.ts\");\n/* harmony import */ var _models_request_verify_otp_request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/request/verify-otp.request */ \"../../libs/common/src/auth/models/request/verify-otp.request.ts\");\n/* harmony import */ var _types_verification__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../types/verification */ \"../../libs/common/src/auth/types/verification.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n/**\n * Used for general-purpose user verification throughout the app.\n * Use it to verify the input collected by UserVerificationComponent.\n */\nclass UserVerificationService {\n    constructor(keyService, accountService, masterPasswordService, i18nService, userVerificationApiService, userDecryptionOptionsService, pinService, logService, vaultTimeoutSettingsService, platformUtilsService, kdfConfigService) {\n        this.keyService = keyService;\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.i18nService = i18nService;\n        this.userVerificationApiService = userVerificationApiService;\n        this.userDecryptionOptionsService = userDecryptionOptionsService;\n        this.pinService = pinService;\n        this.logService = logService;\n        this.vaultTimeoutSettingsService = vaultTimeoutSettingsService;\n        this.platformUtilsService = platformUtilsService;\n        this.kdfConfigService = kdfConfigService;\n    }\n    getAvailableVerificationOptions(verificationType) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const userId = (_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$))) === null || _a === void 0 ? void 0 : _a.id;\n            if (verificationType === \"client\") {\n                const [userHasMasterPassword, isPinDecryptionAvailable, biometricsLockSet, biometricsUserKeyStored,] = yield Promise.all([\n                    this.hasMasterPasswordAndMasterKeyHash(userId),\n                    this.pinService.isPinDecryptionAvailable(userId),\n                    this.vaultTimeoutSettingsService.isBiometricLockSet(userId),\n                    this.keyService.hasUserKeyStored(_platform_enums_key_suffix_options_enum__WEBPACK_IMPORTED_MODULE_2__.KeySuffixOptions.Biometric, userId),\n                ]);\n                // note: we do not need to check this.platformUtilsService.supportsBiometric() because\n                // we can just use the logic below which works for both desktop & the browser extension.\n                return {\n                    client: {\n                        masterPassword: userHasMasterPassword,\n                        pin: isPinDecryptionAvailable,\n                        biometrics: biometricsLockSet &&\n                            (biometricsUserKeyStored || !this.platformUtilsService.supportsSecureStorage()),\n                    },\n                    server: {\n                        masterPassword: false,\n                        otp: false,\n                    },\n                };\n            }\n            else {\n                // server\n                // Don't check if have MP hash locally, because we are going to send the secret to the server to be verified.\n                const userHasMasterPassword = yield this.hasMasterPassword(userId);\n                return {\n                    client: {\n                        masterPassword: false,\n                        pin: false,\n                        biometrics: false,\n                    },\n                    server: { masterPassword: userHasMasterPassword, otp: !userHasMasterPassword },\n                };\n            }\n        });\n    }\n    buildRequest(verification, requestClass, alreadyHashed) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.validateSecretInput(verification);\n            const request = requestClass != null ? new requestClass() : new _models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_4__.SecretVerificationRequest();\n            if (verification.type === _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.OTP) {\n                request.otp = verification.secret;\n            }\n            else {\n                const [userId, email] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => [a === null || a === void 0 ? void 0 : a.id, a === null || a === void 0 ? void 0 : a.email])));\n                let masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n                if (!masterKey && !alreadyHashed) {\n                    masterKey = yield this.keyService.makeMasterKey(verification.secret, email, yield this.kdfConfigService.getKdfConfig());\n                }\n                request.masterPasswordHash = alreadyHashed\n                    ? verification.secret\n                    : yield this.keyService.hashMasterKey(verification.secret, masterKey);\n            }\n            return request;\n        });\n    }\n    verifyUser(verification) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (verification == null) {\n                throw new Error(\"Verification is required.\");\n            }\n            const [userId, email] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => [a === null || a === void 0 ? void 0 : a.id, a === null || a === void 0 ? void 0 : a.email])));\n            if ((0,_types_verification__WEBPACK_IMPORTED_MODULE_6__.verificationHasSecret)(verification)) {\n                this.validateSecretInput(verification);\n            }\n            switch (verification.type) {\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.OTP:\n                    return this.verifyUserByOTP(verification);\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.MasterPassword:\n                    yield this.verifyUserByMasterPassword(verification, userId, email);\n                    return true;\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.PIN:\n                    return this.verifyUserByPIN(verification, userId);\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.Biometrics:\n                    return this.verifyUserByBiometrics();\n                default: {\n                    // Compile-time check for exhaustive switch\n                    const _exhaustiveCheck = verification;\n                    return _exhaustiveCheck;\n                }\n            }\n        });\n    }\n    verifyUserByOTP(verification) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _models_request_verify_otp_request__WEBPACK_IMPORTED_MODULE_5__.VerifyOTPRequest(verification.secret);\n            try {\n                yield this.userVerificationApiService.postAccountVerifyOTP(request);\n            }\n            catch (e) {\n                throw new Error(this.i18nService.t(\"invalidVerificationCode\"));\n            }\n            return true;\n        });\n    }\n    verifyUserByMasterPassword(verification, userId, email) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!verification.secret) {\n                throw new Error(\"Master Password is required. Cannot verify user without a master password.\");\n            }\n            if (!userId) {\n                throw new Error(\"User ID is required. Cannot verify user by master password.\");\n            }\n            if (!email) {\n                throw new Error(\"Email is required. Cannot verify user by master password.\");\n            }\n            const kdfConfig = yield this.kdfConfigService.getKdfConfig();\n            if (!kdfConfig) {\n                throw new Error(\"KDF config is required. Cannot verify user by master password.\");\n            }\n            let masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            if (!masterKey) {\n                masterKey = yield this.keyService.makeMasterKey(verification.secret, email, kdfConfig);\n            }\n            if (!masterKey) {\n                throw new Error(\"Master key could not be created to verify the master password.\");\n            }\n            let policyOptions;\n            // Client-side verification\n            if (yield this.hasMasterPasswordAndMasterKeyHash(userId)) {\n                const passwordValid = yield this.keyService.compareAndUpdateKeyHash(verification.secret, masterKey);\n                if (!passwordValid) {\n                    throw new Error(this.i18nService.t(\"invalidMasterPassword\"));\n                }\n                policyOptions = null;\n            }\n            else {\n                // Server-side verification\n                const request = new _models_request_secret_verification_request__WEBPACK_IMPORTED_MODULE_4__.SecretVerificationRequest();\n                const serverKeyHash = yield this.keyService.hashMasterKey(verification.secret, masterKey, _platform_enums__WEBPACK_IMPORTED_MODULE_1__.HashPurpose.ServerAuthorization);\n                request.masterPasswordHash = serverKeyHash;\n                try {\n                    policyOptions = yield this.userVerificationApiService.postAccountVerifyPassword(request);\n                }\n                catch (e) {\n                    throw new Error(this.i18nService.t(\"invalidMasterPassword\"));\n                }\n            }\n            const localKeyHash = yield this.keyService.hashMasterKey(verification.secret, masterKey, _platform_enums__WEBPACK_IMPORTED_MODULE_1__.HashPurpose.LocalAuthorization);\n            yield this.masterPasswordService.setMasterKeyHash(localKeyHash, userId);\n            yield this.masterPasswordService.setMasterKey(masterKey, userId);\n            return { policyOptions, masterKey };\n        });\n    }\n    verifyUserByPIN(verification, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"User ID is required. Cannot verify user by PIN.\");\n            }\n            const userKey = yield this.pinService.decryptUserKeyWithPin(verification.secret, userId);\n            return userKey != null;\n        });\n    }\n    verifyUserByBiometrics() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let userKey;\n            // Biometrics crashes and doesn't return a value if the user cancels the prompt\n            try {\n                userKey = yield this.keyService.getUserKeyFromStorage(_platform_enums_key_suffix_options_enum__WEBPACK_IMPORTED_MODULE_2__.KeySuffixOptions.Biometric);\n            }\n            catch (e) {\n                this.logService.error(`Biometrics User Verification failed: ${e.message}`);\n                // So, any failures should be treated as a failed verification\n                return false;\n            }\n            return userKey != null;\n        });\n    }\n    requestOTP() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.userVerificationApiService.postAccountRequestOTP();\n        });\n    }\n    hasMasterPassword(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId) {\n                const decryptionOptions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.userDecryptionOptionsService.userDecryptionOptionsById$(userId));\n                if ((decryptionOptions === null || decryptionOptions === void 0 ? void 0 : decryptionOptions.hasMasterPassword) != undefined) {\n                    return decryptionOptions.hasMasterPassword;\n                }\n            }\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.userDecryptionOptionsService.hasMasterPassword$);\n        });\n    }\n    hasMasterPasswordAndMasterKeyHash(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            userId !== null && userId !== void 0 ? userId : (userId = (_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$))) === null || _a === void 0 ? void 0 : _a.id);\n            return ((yield this.hasMasterPassword(userId)) &&\n                (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.masterPasswordService.masterKeyHash$(userId))) != null);\n        });\n    }\n    validateSecretInput(verification) {\n        if ((verification === null || verification === void 0 ? void 0 : verification.secret) == null || verification.secret === \"\") {\n            switch (verification.type) {\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.OTP:\n                    throw new Error(this.i18nService.t(\"verificationCodeRequired\"));\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.MasterPassword:\n                    throw new Error(this.i18nService.t(\"masterPasswordRequired\"));\n                case _enums_verification_type__WEBPACK_IMPORTED_MODULE_3__.VerificationType.PIN:\n                    throw new Error(this.i18nService.t(\"pinRequired\"));\n            }\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 26864 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/user-verification/user-verification.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-assertion-response.request.ts":
/*!***************************************************************************************************************!*\
  !*** ../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-assertion-response.request.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   WebAuthnLoginAssertionResponseRequest: () => (/* binding */ WebAuthnLoginAssertionResponseRequest)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _webauthn_login_response_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./webauthn-login-response.request */ \"../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-response.request.ts\");\n\n\nclass WebAuthnLoginAssertionResponseRequest extends _webauthn_login_response_request__WEBPACK_IMPORTED_MODULE_1__.WebAuthnLoginResponseRequest {\n    constructor(credential) {\n        super(credential);\n        if (!(credential.response instanceof AuthenticatorAssertionResponse)) {\n            throw new Error(\"Invalid authenticator response\");\n        }\n        this.response = {\n            authenticatorData: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToUrlB64(credential.response.authenticatorData),\n            signature: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToUrlB64(credential.response.signature),\n            clientDataJSON: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToUrlB64(credential.response.clientDataJSON),\n            userHandle: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToUrlB64(credential.response.userHandle),\n        };\n    }\n    static fromJSON(json) {\n        return Object.assign(Object.create(WebAuthnLoginAssertionResponseRequest.prototype), json);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvc2VydmljZXMvd2ViYXV0aG4tbG9naW4vcmVxdWVzdC93ZWJhdXRobi1sb2dpbi1hc3NlcnRpb24tcmVzcG9uc2UucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFFd0Q7QUFFeUI7QUFVMUUsTUFBTSxxQ0FBc0MsU0FBUSwwRkFBNEI7SUFHckYsWUFBWSxVQUErQjtRQUN6QyxLQUFLLENBQUMsVUFBVSxDQUFDLENBQUM7UUFFbEIsSUFBSSxDQUFDLENBQUMsVUFBVSxDQUFDLFFBQVEsWUFBWSw4QkFBOEIsQ0FBQyxFQUFFLENBQUM7WUFDckUsTUFBTSxJQUFJLEtBQUssQ0FBQyxnQ0FBZ0MsQ0FBQyxDQUFDO1FBQ3BELENBQUM7UUFFRCxJQUFJLENBQUMsUUFBUSxHQUFHO1lBQ2QsaUJBQWlCLEVBQUUsdURBQUssQ0FBQyxrQkFBa0IsQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLGlCQUFpQixDQUFDO1lBQ2xGLFNBQVMsRUFBRSx1REFBSyxDQUFDLGtCQUFrQixDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsU0FBUyxDQUFDO1lBQ2xFLGNBQWMsRUFBRSx1REFBSyxDQUFDLGtCQUFrQixDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsY0FBYyxDQUFDO1lB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E9iamVjdC5hc3NpZ24oT2JqZWN0LmNyZWF0ZShXZWJBdXRobkxvZ2luQXNzZXJ0aW9uUmVzcG9uc2VSZXF1ZXN0LnByb3RvdHlwZSksIGpzb24pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-assertion-response.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-response.request.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-response.request.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   WebAuthnLoginResponseRequest: () => (/* binding */ WebAuthnLoginResponseRequest)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\nclass WebAuthnLoginResponseRequest {\n    constructor(credential) {\n        this.id = credential.id;\n        this.rawId = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToUrlB64(credential.rawId);\n        this.type = credential.type;\n        // WARNING: do not add PRF information here by mapping\n        // credential.getClientExtensionResults() into the extensions property,\n        // as it will be sent to the server (leaking credentials).\n        this.extensions = {}; // Extensions are handled client-side\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvc2VydmljZXMvd2ViYXV0aG4tbG9naW4vcmVxdWVzdC93ZWJhdXRobi1sb2dpbi1yZXNwb25zZS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FB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WwucmF3SWQpO1xuICAgIHRoaXMudHlwZSA9IGNyZWRlbnRpYWwudHlwZTtcblxuICAgIC8vIFdBUk5JTkc6IGRvIG5vdCBhZGQgUFJGIGluZm9ybWF0aW9uIGhlcmUgYnkgbWFwcGluZ1xuICAgIC8vIGNyZWRlbnRpYWwuZ2V0Q2xpZW50RXh0ZW5zaW9uUmVzdWx0cygpIGludG8gdGhlIGV4dGVuc2lvbnMgcHJvcGVydHksXG4gICAgLy8gYXMgaXQgd2lsbCBiZSBzZW50IHRvIHRoZSBzZXJ2ZXIgKGxlYWtpbmcgY3JlZGVudGlhbHMpLlxuICAgIHRoaXMuZXh0ZW5zaW9ucyA9IHt9OyAvLyBFeHRlbnNpb25zIGFyZSBoYW5kbGVkIGNsaWVudC1zaWRlXG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/services/webauthn-login/request/webauthn-login-response.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/auth/types/verification.ts":
/*!********************************************************!*\
  !*** ../../libs/common/src/auth/types/verification.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   verificationHasSecret: () => (/* binding */ verificationHasSecret)\n/* harmony export */ });\nfunction verificationHasSecret(verification) {\n    return \"secret\" in verification;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dGgvdHlwZXMvdmVyaWZpY2F0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFjTyxTQUFTLHFCQUFxQixDQUNuQyxZQUEwQjtJQUUxQixPQUFPLFFBQVEsSUFBSSxZQUFZLENBQUM7QUFDbEMsQ0FBQyIsInNvdXJjZ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cmljc1ZlcmlmaWNhdGlvbjtcblxuZXhwb3J0IHR5cGUgVmVyaWZpY2F0aW9uID0gVmVyaWZpY2F0aW9uV2l0aFNlY3JldCB8IFZlcmlmaWNhdGlvbldpdGhvdXRTZWNyZXQ7XG5cbmV4cG9ydCBmdW5jdGlvbiB2ZXJpZmljYXRpb25IYXNTZWNyZXQoXG4gIHZlcmlmaWNhdGlvbjogVmVyaWZpY2F0aW9uLFxuKTogdmVyaWZpY2F0aW9uIGlzIFZlcmlmaWNhdGlvbldpdGhTZWNyZXQge1xuICByZXR1cm4gXCJzZWNyZXRcIiBpbiB2ZXJpZmljYXRpb247XG59XG5cbmV4cG9ydCB0eXBlIFNlcnZlclNpZGVWZXJpZmljYXRpb24gPSBPdHBWZXJpZmljYXRpb24gfCBNYXN0ZXJQYXNzd29yZFZlcmlmaWNhdGlvbjtcblxuZXhwb3J0IHR5cGUgTWFzdGVyUGFzc3dvcmRWZXJpZmljYXRpb25SZXNwb25zZSA9IHtcbiAgbWFzdGVyS2V5OiBNYXN0ZXJLZXk7XG4gIHBvbGljeU9wdGlvbnM6IE1hc3RlclBhc3N3b3JkUG9saWN5UmVzcG9uc2U7XG59O1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/auth/types/verification.ts\n");

/***/ }),

/***/ "../../libs/common/src/autofill/constants/index.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/autofill/constants/index.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AUTOFILL_CARD_ID: () => (/* binding */ AUTOFILL_CARD_ID),\n/* harmony export */   AUTOFILL_ID: () => (/* binding */ AUTOFILL_ID),\n/* harmony export */   AUTOFILL_IDENTITY_ID: () => (/* binding */ AUTOFILL_IDENTITY_ID),\n/* harmony export */   AUTOFILL_OVERLAY_HANDLE_REPOSITION: () => (/* binding */ AUTOFILL_OVERLAY_HANDLE_REPOSITION),\n/* harmony export */   AUTOFILL_OVERLAY_HANDLE_SCROLL: () => (/* binding */ AUTOFILL_OVERLAY_HANDLE_SCROLL),\n/* harmony export */   AUTOFILL_TRIGGER_FORM_FIELD_SUBMIT: () => (/* binding */ AUTOFILL_TRIGGER_FORM_FIELD_SUBMIT),\n/* harmony export */   AutofillOverlayVisibility: () => (/* binding */ AutofillOverlayVisibility),\n/* harmony export */   BrowserClientVendors: () => (/* binding */ BrowserClientVendors),\n/* harmony export */   BrowserShortcutsUris: () => (/* binding */ BrowserShortcutsUris),\n/* harmony export */   CLEAR_NOTIFICATION_LOGIN_DATA_DURATION: () => (/* binding */ CLEAR_NOTIFICATION_LOGIN_DATA_DURATION),\n/* harmony export */   COPY_IDENTIFIER_ID: () => (/* binding */ COPY_IDENTIFIER_ID),\n/* harmony export */   COPY_PASSWORD_ID: () => (/* binding */ COPY_PASSWORD_ID),\n/* harmony export */   COPY_USERNAME_ID: () => (/* binding */ COPY_USERNAME_ID),\n/* harmony export */   COPY_VERIFICATION_CODE_ID: () => (/* binding */ COPY_VERIFICATION_CODE_ID),\n/* harmony export */   CREATE_CARD_ID: () => (/* binding */ CREATE_CARD_ID),\n/* harmony export */   CREATE_IDENTITY_ID: () => (/* binding */ CREATE_IDENTITY_ID),\n/* harmony export */   CREATE_LOGIN_ID: () => (/* binding */ CREATE_LOGIN_ID),\n/* harmony export */   CardExpiryDateDelimiters: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.CardExpiryDateDelimiters),\n/* harmony export */   ClearClipboardDelay: () => (/* binding */ ClearClipboardDelay),\n/* harmony export */   DelimiterPatternExpression: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.DelimiterPatternExpression),\n/* harmony export */   DisablePasswordManagerUris: () => (/* binding */ DisablePasswordManagerUris),\n/* harmony export */   EVENTS: () => (/* binding */ EVENTS),\n/* harmony export */   ExpiryDateDelimitersPattern: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.ExpiryDateDelimitersPattern),\n/* harmony export */   ExpiryFullYearPattern: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.ExpiryFullYearPattern),\n/* harmony export */   ExpiryFullYearPatternExpression: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.ExpiryFullYearPatternExpression),\n/* harmony export */   ExtensionCommand: () => (/* binding */ ExtensionCommand),\n/* harmony export */   GENERATE_PASSWORD_ID: () => (/* binding */ GENERATE_PASSWORD_ID),\n/* harmony export */   IrrelevantExpiryCharactersPatternExpression: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.IrrelevantExpiryCharactersPatternExpression),\n/* harmony export */   MAX_DEEP_QUERY_RECURSION_DEPTH: () => (/* binding */ MAX_DEEP_QUERY_RECURSION_DEPTH),\n/* harmony export */   MonthPattern: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.MonthPattern),\n/* harmony export */   MonthPatternExpression: () => (/* reexport safe */ _match_patterns__WEBPACK_IMPORTED_MODULE_0__.MonthPatternExpression),\n/* harmony export */   NOOP_COMMAND_SUFFIX: () => (/* binding */ NOOP_COMMAND_SUFFIX),\n/* harmony export */   NOTIFICATION_BAR_LIFESPAN_MS: () => (/* binding */ NOTIFICATION_BAR_LIFESPAN_MS),\n/* harmony export */   ROOT_ID: () => (/* binding */ ROOT_ID),\n/* harmony export */   SEPARATOR_ID: () => (/* binding */ SEPARATOR_ID),\n/* harmony export */   SHOW_AUTOFILL_BUTTON: () => (/* binding */ SHOW_AUTOFILL_BUTTON),\n/* harmony export */   TYPE_CHECK: () => (/* binding */ TYPE_CHECK),\n/* harmony export */   UPDATE_PASSKEYS_HEADINGS_ON_SCROLL: () => (/* binding */ UPDATE_PASSKEYS_HEADINGS_ON_SCROLL)\n/* harmony export */ });\n/* harmony import */ var _match_patterns__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./match-patterns */ \"../../libs/common/src/autofill/constants/match-patterns.ts\");\nconst TYPE_CHECK = {\n    FUNCTION: \"function\",\n    NUMBER: \"number\",\n    STRING: \"string\",\n};\nconst EVENTS = {\n    CHANGE: \"change\",\n    INPUT: \"input\",\n    KEYDOWN: \"keydown\",\n    KEYPRESS: \"keypress\",\n    KEYUP: \"keyup\",\n    BLUR: \"blur\",\n    CLICK: \"click\",\n    FOCUS: \"focus\",\n    FOCUSIN: \"focusin\",\n    FOCUSOUT: \"focusout\",\n    SCROLL: \"scroll\",\n    RESIZE: \"resize\",\n    DOMCONTENTLOADED: \"DOMContentLoaded\",\n    LOAD: \"load\",\n    MESSAGE: \"message\",\n    VISIBILITYCHANGE: \"visibilitychange\",\n    MOUSEENTER: \"mouseenter\",\n    MOUSELEAVE: \"mouseleave\",\n    MOUSEUP: \"mouseup\",\n    MOUSEOUT: \"mouseout\",\n    SUBMIT: \"submit\",\n};\nconst ClearClipboardDelay = {\n    Never: null,\n    TenSeconds: 10,\n    TwentySeconds: 20,\n    ThirtySeconds: 30,\n    OneMinute: 60,\n    TwoMinutes: 120,\n    FiveMinutes: 300,\n};\n/* Context Menu item Ids */\nconst AUTOFILL_CARD_ID = \"autofill-card\";\nconst AUTOFILL_ID = \"autofill\";\nconst SHOW_AUTOFILL_BUTTON = \"show-autofill-button\";\nconst AUTOFILL_IDENTITY_ID = \"autofill-identity\";\nconst COPY_IDENTIFIER_ID = \"copy-identifier\";\nconst COPY_PASSWORD_ID = \"copy-password\";\nconst COPY_USERNAME_ID = \"copy-username\";\nconst COPY_VERIFICATION_CODE_ID = \"copy-totp\";\nconst CREATE_CARD_ID = \"create-card\";\nconst CREATE_IDENTITY_ID = \"create-identity\";\nconst CREATE_LOGIN_ID = \"create-login\";\nconst GENERATE_PASSWORD_ID = \"generate-password\";\nconst NOOP_COMMAND_SUFFIX = \"noop\";\nconst ROOT_ID = \"root\";\nconst SEPARATOR_ID = \"separator\";\nconst NOTIFICATION_BAR_LIFESPAN_MS = 150000; // 150 seconds\nconst AUTOFILL_OVERLAY_HANDLE_REPOSITION = \"autofill-overlay-handle-reposition-event\";\nconst AUTOFILL_OVERLAY_HANDLE_SCROLL = \"autofill-overlay-handle-scroll-event\";\nconst UPDATE_PASSKEYS_HEADINGS_ON_SCROLL = \"update-passkeys-headings-on-scroll\";\nconst AUTOFILL_TRIGGER_FORM_FIELD_SUBMIT = \"autofill-trigger-form-field-submit\";\nconst AutofillOverlayVisibility = {\n    Off: 0,\n    OnButtonClick: 1,\n    OnFieldFocus: 2,\n};\nconst BrowserClientVendors = {\n    Chrome: \"Chrome\",\n    Opera: \"Opera\",\n    Edge: \"Edge\",\n    Vivaldi: \"Vivaldi\",\n    Unknown: \"Unknown\",\n};\nconst BrowserShortcutsUris = {\n    Chrome: \"chrome://extensions/shortcuts\",\n    Opera: \"opera://extensions/shortcuts\",\n    Edge: \"edge://extensions/shortcuts\",\n    Vivaldi: \"vivaldi://extensions/shortcuts\",\n    Unknown: \"https://bitwarden.com/help/keyboard-shortcuts\",\n};\nconst DisablePasswordManagerUris = {\n    Chrome: \"chrome://settings/autofill\",\n    Opera: \"opera://settings/autofill\",\n    Edge: \"edge://settings/passwords\",\n    Vivaldi: \"vivaldi://settings/autofill\",\n    Unknown: \"https://bitwarden.com/help/disable-browser-autofill/\",\n};\nconst ExtensionCommand = {\n    AutofillCommand: \"autofill_cmd\",\n    AutofillCard: \"autofill_card\",\n    AutofillIdentity: \"autofill_identity\",\n    AutofillLogin: \"autofill_login\",\n    OpenAutofillOverlay: \"open_autofill_overlay\",\n    GeneratePassword: \"generate_password\",\n    OpenPopup: \"open_popup\",\n    LockVault: \"lock_vault\",\n    NoopCommand: \"noop\",\n};\nconst CLEAR_NOTIFICATION_LOGIN_DATA_DURATION = 60 * 1000; // 1 minute\nconst MAX_DEEP_QUERY_RECURSION_DEPTH = 4;\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8304 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/autofill/constants/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/autofill/constants/match-patterns.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/autofill/constants/match-patterns.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardExpiryDateDelimiters: () => (/* binding */ CardExpiryDateDelimiters),\n/* harmony export */   DelimiterPatternExpression: () => (/* binding */ DelimiterPatternExpression),\n/* harmony export */   ExpiryDateDelimitersPattern: () => (/* binding */ ExpiryDateDelimitersPattern),\n/* harmony export */   ExpiryFullYearPattern: () => (/* binding */ ExpiryFullYearPattern),\n/* harmony export */   ExpiryFullYearPatternExpression: () => (/* binding */ ExpiryFullYearPatternExpression),\n/* harmony export */   IrrelevantExpiryCharactersPatternExpression: () => (/* binding */ IrrelevantExpiryCharactersPatternExpression),\n/* harmony export */   MonthPattern: () => (/* binding */ MonthPattern),\n/* harmony export */   MonthPatternExpression: () => (/* binding */ MonthPatternExpression)\n/* harmony export */ });\nconst CardExpiryDateDelimiters = [\"/\", \"-\", \".\", \" \"];\n// `CardExpiryDateDelimiters` is not intended solely for regex consumption,\n// so we need to format it here\nconst ExpiryDateDelimitersPattern = \"\\\\\" +\n    CardExpiryDateDelimiters.join(\"\\\\\")\n        // replace space character with the regex whitespace character class\n        .replace(\" \", \"s\");\nconst MonthPattern = \"(([1]{1}[0-2]{1})|(0?[1-9]{1}))\";\n// Because we're dealing with expiry dates, we assume the year will be in current or next century (as of 2024)\nconst ExpiryFullYearPattern = \"2[0-1]{1}\\\\d{2}\";\nconst DelimiterPatternExpression = new RegExp(`[${ExpiryDateDelimitersPattern}]`, \"g\");\nconst IrrelevantExpiryCharactersPatternExpression = new RegExp(\n// \"nor digits\" to ensure numbers are removed from guidance pattern, which aren't covered by ^\\w\n`[^\\\\d${ExpiryDateDelimitersPattern}]`, \"g\");\nconst MonthPatternExpression = new RegExp(`^${MonthPattern}$`);\nconst ExpiryFullYearPatternExpression = new RegExp(`^${ExpiryFullYearPattern}$`);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2F1dG9maWxsL2NvbnN0YW50cy9tYXRjaC1wYXR0ZXJucy50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFPLE1BQU0sd0JBQXdCLEdBQWEsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsQ0FBQztBQUV2RSwyRUFBMkU7QUFDM0UsK0JBQStCO0FBQ3hCLE1BQU0sMkJBQTJCLEdBQ3RDLElBQUk7SUFDSix3QkFBd0IsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQ2pDLG9FQUFvRTtTQUNuRSxPQUFPLENBQUMsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFDO0FBRWhCLE1BQU0sWUFBWSxHQUFHLGlDQUFpQyxDQUFDO0FBRTlELDhHQUE4RztBQUN2RyxNQUFNLHFCQUFxQixHQUFHLGlCQUFpQixDQUFDO0FBRWhELE1BQU0sMEJBQTBCLEdBQUcsSUFBSSxNQUFNLENBQUMsSUFBSSwyQkFBMkIsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFDO0FBRXZGLE1BQU0sMkNBQTJDLEdBQUcsSUFBSSxNQUFNO0FBQ25FLGdHQUFnRztBQUNoRyxRQUFRLDJCQUEyQixHQUFHLEVBQ3RDLEdBQUcsQ0FDSixDQUFDO0FBRUssTUFBTSxzQkFBc0IsR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLFlBQVksR0FBRyxDQUFDLENBQUM7QUFFL0QsTUF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ZXJuID0gXCIyWzAtMV17MX1cXFxcZHsyfVwiO1xuXG5leHBvcnQgY29uc3QgRGVsaW1pdGVyUGF0dGVybkV4cHJlc3Npb24gPSBuZXcgUmVnRXhwKGBbJHtFeHBpcnlEYXRlRGVsaW1pdGVyc1BhdHRlcm59XWAsIFwiZ1wiKTtcblxuZXhwb3J0IGNvbnN0IElycmVsZXZhbnRFeHBpcnlDaGFyYWN0ZXJzUGF0dGVybkV4cHJlc3Npb24gPSBuZXcgUmVnRXhwKFxuICAvLyBcIm5vciBkaWdpdHNcIiB0byBlbnN1cmUgbnVtYmVycyBhcmUgcmVtb3ZlZCBmcm9tIGd1aWRhbmNlIHBhdHRlcm4sIHdoaWNoIGFyZW4ndCBjb3ZlcmVkIGJ5IF5cXHdcbiAgYFteXFxcXGQke0V4cGlyeURhdGVEZWxpbWl0ZXJzUGF0dGVybn1dYCxcbiAgXCJnXCIsXG4pO1xuXG5leHBvcnQgY29uc3QgTW9udGhQYXR0ZXJuRXhwcmVzc2lvbiA9IG5ldyBSZWdFeHAoYF4ke01vbnRoUGF0dGVybn0kYCk7XG5cbmV4cG9ydCBjb25zdCBFeHBpcnlGdWxsWWVhclBhdHRlcm5FeHByZXNzaW9uID0gbmV3IFJlZ0V4cChgXiR7RXhwaXJ5RnVsbFllYXJQYXR0ZXJufSRgKTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/autofill/constants/match-patterns.ts\n");

/***/ }),

/***/ "../../libs/common/src/autofill/services/autofill-settings.service.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/autofill/services/autofill-settings.service.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AutofillSettingsService: () => (/* binding */ AutofillSettingsService),\n/* harmony export */   AutofillSettingsServiceAbstraction: () => (/* binding */ AutofillSettingsServiceAbstraction)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ \"../../libs/common/src/autofill/constants/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst AUTOFILL_ON_PAGE_LOAD = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"autofillOnPageLoad\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : false,\n    clearOn: [],\n});\nconst AUTOFILL_ON_PAGE_LOAD_DEFAULT = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"autofillOnPageLoadDefault\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : false,\n    clearOn: [],\n});\nconst AUTOFILL_ON_PAGE_LOAD_CALLOUT_DISMISSED = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"autofillOnPageLoadCalloutIsDismissed\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : false,\n    clearOn: [],\n});\nconst AUTOFILL_ON_PAGE_LOAD_POLICY_TOAST_HAS_DISPLAYED = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"autofillOnPageLoadPolicyToastHasDisplayed\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : false,\n    clearOn: [],\n});\nconst AUTO_COPY_TOTP = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"autoCopyTotp\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : true,\n    clearOn: [],\n});\nconst INLINE_MENU_VISIBILITY = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.KeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK_LOCAL, \"inlineMenuVisibility\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : _constants__WEBPACK_IMPORTED_MODULE_3__.AutofillOverlayVisibility.Off,\n});\nconst SHOW_INLINE_MENU_IDENTITIES = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"showInlineMenuIdentities\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : true,\n    clearOn: [],\n});\nconst SHOW_INLINE_MENU_CARDS = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"showInlineMenuCards\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : true,\n    clearOn: [],\n});\nconst ENABLE_CONTEXT_MENU = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.KeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK, \"enableContextMenu\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : true,\n});\nconst CLEAR_CLIPBOARD_DELAY = new _platform_state__WEBPACK_IMPORTED_MODULE_2__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_2__.AUTOFILL_SETTINGS_DISK_LOCAL, \"clearClipboardDelay\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : _constants__WEBPACK_IMPORTED_MODULE_3__.ClearClipboardDelay.Never,\n    clearOn: [],\n});\nclass AutofillSettingsServiceAbstraction {\n}\nclass AutofillSettingsService {\n    constructor(stateProvider, policyService) {\n        this.stateProvider = stateProvider;\n        this.policyService = policyService;\n        this.autofillOnPageLoadState = this.stateProvider.getActive(AUTOFILL_ON_PAGE_LOAD);\n        this.autofillOnPageLoad$ = this.autofillOnPageLoadState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : false));\n        this.autofillOnPageLoadDefaultState = this.stateProvider.getActive(AUTOFILL_ON_PAGE_LOAD_DEFAULT);\n        this.autofillOnPageLoadDefault$ = this.autofillOnPageLoadDefaultState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : true));\n        this.autofillOnPageLoadCalloutIsDismissedState = this.stateProvider.getActive(AUTOFILL_ON_PAGE_LOAD_CALLOUT_DISMISSED);\n        this.autofillOnPageLoadCalloutIsDismissed$ =\n            this.autofillOnPageLoadCalloutIsDismissedState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : false));\n        this.activateAutofillOnPageLoadFromPolicy$ = this.policyService.policyAppliesToActiveUser$(_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.PolicyType.ActivateAutofill);\n        this.autofillOnPageLoadPolicyToastHasDisplayedState = this.stateProvider.getActive(AUTOFILL_ON_PAGE_LOAD_POLICY_TOAST_HAS_DISPLAYED);\n        this.autofillOnPageLoadPolicyToastHasDisplayed$ =\n            this.autofillOnPageLoadPolicyToastHasDisplayedState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : false));\n        this.autoCopyTotpState = this.stateProvider.getActive(AUTO_COPY_TOTP);\n        this.autoCopyTotp$ = this.autoCopyTotpState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : true));\n        this.inlineMenuVisibilityState = this.stateProvider.getGlobal(INLINE_MENU_VISIBILITY);\n        this.inlineMenuVisibility$ = this.inlineMenuVisibilityState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : _constants__WEBPACK_IMPORTED_MODULE_3__.AutofillOverlayVisibility.Off));\n        this.showInlineMenuIdentitiesState = this.stateProvider.getActive(SHOW_INLINE_MENU_IDENTITIES);\n        this.showInlineMenuIdentities$ = this.showInlineMenuIdentitiesState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : true));\n        this.showInlineMenuCardsState = this.stateProvider.getActive(SHOW_INLINE_MENU_CARDS);\n        this.showInlineMenuCards$ = this.showInlineMenuCardsState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : true));\n        this.enableContextMenuState = this.stateProvider.getGlobal(ENABLE_CONTEXT_MENU);\n        this.enableContextMenu$ = this.enableContextMenuState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : true));\n        this.clearClipboardDelayState = this.stateProvider.getActive(CLEAR_CLIPBOARD_DELAY);\n        this.clearClipboardDelay$ = this.clearClipboardDelayState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : _constants__WEBPACK_IMPORTED_MODULE_3__.ClearClipboardDelay.Never));\n    }\n    setAutofillOnPageLoad(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.autofillOnPageLoadState.update(() => newValue);\n        });\n    }\n    setAutofillOnPageLoadDefault(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.autofillOnPageLoadDefaultState.update(() => newValue);\n        });\n    }\n    setAutofillOnPageLoadCalloutIsDismissed(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.autofillOnPageLoadCalloutIsDismissedState.update(() => newValue);\n        });\n    }\n    setAutofillOnPageLoadPolicyToastHasDisplayed(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.autofillOnPageLoadPolicyToastHasDisplayedState.update(() => newValue);\n        });\n    }\n    setAutoCopyTotp(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.autoCopyTotpState.update(() => newValue);\n        });\n    }\n    setInlineMenuVisibility(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.inlineMenuVisibilityState.update(() => newValue);\n        });\n    }\n    setShowInlineMenuIdentities(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.showInlineMenuIdentitiesState.update(() => newValue);\n        });\n    }\n    setShowInlineMenuCards(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.showInlineMenuCardsState.update(() => newValue);\n        });\n    }\n    setEnableContextMenu(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.enableContextMenuState.update(() => newValue);\n        });\n    }\n    setClearClipboardDelay(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.clearClipboardDelayState.update(() => newValue);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20460 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/autofill/services/autofill-settings.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/autofill/services/domain-settings.service.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/autofill/services/domain-settings.service.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultDomainSettingsService: () => (/* binding */ DefaultDomainSettingsService),\n/* harmony export */   DomainSettingsService: () => (/* binding */ DomainSettingsService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/domain/domain-service */ \"../../libs/common/src/models/domain/domain-service.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst SHOW_FAVICONS = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.DOMAIN_SETTINGS_DISK, \"showFavicons\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : true,\n});\nconst NEVER_DOMAINS = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.DOMAIN_SETTINGS_DISK, \"neverDomains\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : null,\n});\nconst EQUIVALENT_DOMAINS = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.DOMAIN_SETTINGS_DISK, \"equivalentDomains\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : null,\n    clearOn: [\"logout\"],\n});\nconst DEFAULT_URI_MATCH_STRATEGY = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.DOMAIN_SETTINGS_DISK, \"defaultUriMatchStrategy\", {\n    deserializer: (value) => value !== null && value !== void 0 ? value : _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_1__.UriMatchStrategy.Domain,\n    clearOn: [],\n});\nclass DomainSettingsService {\n}\nclass DefaultDomainSettingsService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n        this.showFaviconsState = this.stateProvider.getGlobal(SHOW_FAVICONS);\n        this.showFavicons$ = this.showFaviconsState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : true));\n        this.neverDomainsState = this.stateProvider.getGlobal(NEVER_DOMAINS);\n        this.neverDomains$ = this.neverDomainsState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : null));\n        this.equivalentDomainsState = this.stateProvider.getActive(EQUIVALENT_DOMAINS);\n        this.equivalentDomains$ = this.equivalentDomainsState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : null));\n        this.defaultUriMatchStrategyState = this.stateProvider.getActive(DEFAULT_URI_MATCH_STRATEGY);\n        this.defaultUriMatchStrategy$ = this.defaultUriMatchStrategyState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((x) => x !== null && x !== void 0 ? x : _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_1__.UriMatchStrategy.Domain));\n    }\n    setShowFavicons(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.showFaviconsState.update(() => newValue);\n        });\n    }\n    setNeverDomains(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.neverDomainsState.update(() => newValue);\n        });\n    }\n    setEquivalentDomains(newValue, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, EQUIVALENT_DOMAINS).update(() => newValue);\n        });\n    }\n    setDefaultUriMatchStrategy(newValue) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.defaultUriMatchStrategyState.update(() => newValue);\n        });\n    }\n    getUrlEquivalentDomains(url) {\n        const domains$ = this.equivalentDomains$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((equivalentDomains) => {\n            const domain = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getDomain(url);\n            if (domain == null || equivalentDomains == null) {\n                return new Set();\n            }\n            const equivalents = equivalentDomains.filter((ed) => ed.includes(domain)).flat();\n            return new Set(equivalents);\n        }));\n        return domains$;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9728 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/autofill/services/domain-settings.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/autofill/utils.ts":
/*!***********************************************!*\
  !*** ../../libs/common/src/autofill/utils.ts ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   isCardExpired: () => (/* binding */ isCardExpired),\n/* harmony export */   normalizeExpiryYearFormat: () => (/* binding */ normalizeExpiryYearFormat),\n/* harmony export */   parseYearMonthExpiry: () => (/* binding */ parseYearMonthExpiry)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/autofill/constants */ \"../../libs/common/src/autofill/constants/index.ts\");\n\n/**\n * Takes a string or number value and returns a string value formatted as a valid 4-digit year\n *\n * @param {(string | number)} yearInput\n * @return {*}  {(Year | null)}\n */\nfunction normalizeExpiryYearFormat(yearInput) {\n    // The input[type=\"number\"] is returning a number, convert it to a string\n    // An empty field returns null, avoid casting `\"null\"` to a string\n    const yearInputIsEmpty = yearInput == null || yearInput === \"\";\n    let expirationYear = yearInputIsEmpty ? null : `${yearInput}`;\n    // Exit early if year is already formatted correctly or empty\n    if (yearInputIsEmpty || /^[1-9]{1}\\d{3}$/.test(expirationYear)) {\n        return expirationYear;\n    }\n    expirationYear = expirationYear\n        // For safety, because even input[type=\"number\"] will allow decimals\n        .replace(/[^\\d]/g, \"\")\n        // remove any leading zero padding (leave the last leading zero if it ends the string)\n        .replace(/^[0]+(?=.)/, \"\");\n    if (expirationYear === \"\") {\n        expirationYear = null;\n    }\n    // given the context of payment card expiry, a year character length of 3, or over 4\n    // is more likely to be a mistake than an intentional value for the far past or far future.\n    if (expirationYear && expirationYear.length !== 4) {\n        const paddedYear = (\"00\" + expirationYear).slice(-2);\n        const currentCentury = `${new Date().getFullYear()}`.slice(0, 2);\n        expirationYear = currentCentury + paddedYear;\n    }\n    return expirationYear;\n}\n/**\n * Takes a cipher card view and returns \"true\" if the month and year affirmativey indicate\n * the card is expired.\n *\n * @param {CardView} cipherCard\n * @return {*}  {boolean}\n */\nfunction isCardExpired(cipherCard) {\n    if (cipherCard) {\n        const { expMonth = null, expYear = null } = cipherCard;\n        const now = new Date();\n        const normalizedYear = normalizeExpiryYearFormat(expYear);\n        // If the card year is before the current year, don't bother checking the month\n        if (normalizedYear && parseInt(normalizedYear, 10) < now.getFullYear()) {\n            return true;\n        }\n        if (normalizedYear && expMonth) {\n            const parsedMonthInteger = parseInt(expMonth, 10);\n            const parsedMonth = isNaN(parsedMonthInteger)\n                ? 0\n                : // Add a month floor of 0 to protect against an invalid low month value of \"0\" or negative integers\n                    Math.max(\n                    // `Date` months are zero-indexed\n                    parsedMonthInteger - 1, 0);\n            const parsedYear = parseInt(normalizedYear, 10);\n            // First day of the next month\n            const cardExpiry = new Date(parsedYear, parsedMonth + 1, 1);\n            return cardExpiry <= now;\n        }\n    }\n    return false;\n}\n/**\n * Attempt to split a string into date segments on the basis of expected formats and delimiter symbols.\n *\n * @param {string} combinedExpiryValue\n * @return {*}  {string[]}\n */\nfunction splitCombinedDateValues(combinedExpiryValue) {\n    var _a;\n    let sanitizedValue = combinedExpiryValue\n        .replace(_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.IrrelevantExpiryCharactersPatternExpression, \"\")\n        .trim();\n    // Do this after initial value replace to avoid identifying leading whitespace as delimiter\n    const parsedDelimiter = ((_a = sanitizedValue.match(_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.DelimiterPatternExpression)) === null || _a === void 0 ? void 0 : _a[0]) || null;\n    let dateParts = [sanitizedValue];\n    if (parsedDelimiter === null || parsedDelimiter === void 0 ? void 0 : parsedDelimiter.length) {\n        // If the parsed delimiter is a whitespace character, assign 's' (character class) instead\n        const delimiterPattern = /\\s/.test(parsedDelimiter) ? \"\\\\s\" : \"\\\\\" + parsedDelimiter;\n        sanitizedValue = sanitizedValue\n            // Remove all other delimiter characters not identified as the delimiter\n            .replace(new RegExp(`[^\\\\d${delimiterPattern}]`, \"g\"), \"\")\n            // Also de-dupe the delimiter character\n            .replace(new RegExp(`[${delimiterPattern}]{2,}`, \"g\"), parsedDelimiter);\n        dateParts = sanitizedValue.split(parsedDelimiter);\n    }\n    return (dateParts\n        // remove values that have no length\n        .filter((splitValue) => splitValue === null || splitValue === void 0 ? void 0 : splitValue.length));\n}\n/**\n * Given an array of split card expiry date parts,\n * returns an array of those values ordered by year then month\n *\n * @param {string[]} splitDateInput\n * @return {*}  {([string | null, string | null])}\n */\nfunction parseDelimitedYearMonthExpiry([firstPart, secondPart]) {\n    // Conditionals here are structured to avoid unnecessary evaluations and are ordered\n    // from more authoritative checks to checks yielding increasingly inferred conclusions\n    // If a 4-digit value is found (when there are multiple parts), it can't be month\n    if (_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.ExpiryFullYearPatternExpression.test(firstPart)) {\n        return [firstPart, secondPart];\n    }\n    // If a 4-digit value is found (when there are multiple parts), it can't be month\n    if (_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.ExpiryFullYearPatternExpression.test(secondPart)) {\n        return [secondPart, firstPart];\n    }\n    // If it's a two digit value that doesn't match against month pattern, assume it's a year\n    if (/\\d{2}/.test(firstPart) && !_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.MonthPatternExpression.test(firstPart)) {\n        return [firstPart, secondPart];\n    }\n    // If it's a two digit value that doesn't match against month pattern, assume it's a year\n    if (/\\d{2}/.test(secondPart) && !_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.MonthPatternExpression.test(secondPart)) {\n        return [secondPart, firstPart];\n    }\n    // Values are too ambiguous (e.g. \"12/09\"). For the most part,\n    // a month-looking value likely is, at the time of writing (year 2024).\n    let parsedYear = firstPart;\n    let parsedMonth = secondPart;\n    if (_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.MonthPatternExpression.test(firstPart)) {\n        parsedYear = secondPart;\n        parsedMonth = firstPart;\n    }\n    return [parsedYear, parsedMonth];\n}\n/**\n * Given a single string of integers, attempts to identify card expiry date portions within\n * and return values ordered by year then month\n *\n * @param {string} dateInput\n * @return {*}  {([string | null, string | null])}\n */\nfunction parseNonDelimitedYearMonthExpiry(dateInput) {\n    if (dateInput.length > 4) {\n        // e.g.\n        // \"052024\"\n        // \"202405\"\n        // \"20245\"\n        // \"52024\"\n        // If the value is over 5-characters long, it likely has a full year format in it\n        const [parsedYear, parsedMonth] = dateInput\n            .split(new RegExp(`(?=${_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.ExpiryFullYearPattern})|(?<=${_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.ExpiryFullYearPattern})`, \"g\"))\n            .sort((current, next) => (current.length > next.length ? -1 : 1));\n        return [parsedYear, parsedMonth];\n    }\n    if (dateInput.length === 4) {\n        // e.g.\n        // \"0524\"\n        // \"2405\"\n        // If the `sanitizedFirstPart` value is a length of 4, it must be split in half, since\n        // neither a year or month will be represented with three characters\n        const splitFirstPartFirstHalf = dateInput.slice(0, 2);\n        const splitFirstPartSecondHalf = dateInput.slice(-2);\n        let parsedYear = splitFirstPartSecondHalf;\n        let parsedMonth = splitFirstPartFirstHalf;\n        // If the first part doesn't match a month pattern, assume it's a year\n        if (!_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.MonthPatternExpression.test(splitFirstPartFirstHalf)) {\n            parsedYear = splitFirstPartFirstHalf;\n            parsedMonth = splitFirstPartSecondHalf;\n        }\n        return [parsedYear, parsedMonth];\n    }\n    // e.g.\n    // \"245\"\n    // \"202\"\n    // \"212\"\n    // \"022\"\n    // \"111\"\n    // A valid year representation here must be two characters so try to find it first.\n    let parsedYear = null;\n    let parsedMonth = null;\n    // Split if there is a digit with a leading zero\n    const splitFirstPartOnLeadingZero = dateInput.split(/(?<=0[1-9]{1})|(?=0[1-9]{1})/);\n    // Assume a leading zero indicates a month in ambiguous cases (e.g. \"202\"), since we're\n    // dealing with expiry dates and the next two-digit year with a leading zero will be 2100\n    if (splitFirstPartOnLeadingZero.length > 1) {\n        parsedYear = splitFirstPartOnLeadingZero[0];\n        parsedMonth = splitFirstPartOnLeadingZero[1];\n        if (splitFirstPartOnLeadingZero[0].startsWith(\"0\")) {\n            parsedMonth = splitFirstPartOnLeadingZero[0];\n            parsedYear = splitFirstPartOnLeadingZero[1];\n        }\n    }\n    else {\n        // Here, a year has to be two-digits, and a month can't be more than one, so assume the first two digits that are greater than the current year is the year representation.\n        parsedYear = dateInput.slice(0, 2);\n        parsedMonth = dateInput.slice(-1);\n        const currentYear = new Date().getFullYear();\n        const normalizedParsedYear = parseInt(normalizeExpiryYearFormat(parsedYear), 10);\n        const normalizedParsedYearAlternative = parseInt(normalizeExpiryYearFormat(dateInput.slice(-2)), 10);\n        if (normalizedParsedYear < currentYear && normalizedParsedYearAlternative >= currentYear) {\n            parsedYear = dateInput.slice(-2);\n            parsedMonth = dateInput.slice(0, 1);\n        }\n    }\n    return [parsedYear, parsedMonth];\n}\n/**\n * Attempt to parse year and month parts of a combined expiry date value.\n *\n * @param {string} combinedExpiryValue\n * @return {*}  {([string | null, string | null])}\n */\nfunction parseYearMonthExpiry(combinedExpiryValue) {\n    var _a, _b;\n    let parsedYear = null;\n    let parsedMonth = null;\n    const dateParts = splitCombinedDateValues(combinedExpiryValue);\n    if (dateParts.length < 1) {\n        return [null, null];\n    }\n    const sanitizedFirstPart = ((_a = dateParts[0]) === null || _a === void 0 ? void 0 : _a.replace(_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.IrrelevantExpiryCharactersPatternExpression, \"\")) || \"\";\n    const sanitizedSecondPart = ((_b = dateParts[1]) === null || _b === void 0 ? void 0 : _b.replace(_bitwarden_common_autofill_constants__WEBPACK_IMPORTED_MODULE_0__.IrrelevantExpiryCharactersPatternExpression, \"\")) || \"\";\n    // If there is only one date part, no delimiter was found in the passed value\n    if (dateParts.length === 1) {\n        [parsedYear, parsedMonth] = parseNonDelimitedYearMonthExpiry(sanitizedFirstPart);\n    }\n    // There are multiple date parts\n    else {\n        [parsedYear, parsedMonth] = parseDelimitedYearMonthExpiry([\n            sanitizedFirstPart,\n            sanitizedSecondPart,\n        ]);\n    }\n    const normalizedParsedYear = normalizeExpiryYearFormat(parsedYear);\n    const normalizedParsedMonth = parsedMonth === null || parsedMonth === void 0 ? void 0 : parsedMonth.replace(/^0+/, \"\").slice(0, 2);\n    // Set \"empty\" values to null\n    parsedYear = (normalizedParsedYear === null || normalizedParsedYear === void 0 ? void 0 : normalizedParsedYear.length) ? normalizedParsedYear : null;\n    parsedMonth = (normalizedParsedMonth === null || normalizedParsedMonth === void 0 ? void 0 : normalizedParsedMonth.length) ? normalizedParsedMonth : null;\n    return [parsedYear, parsedMonth];\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 24012 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/autofill/utils.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/billing-history.response.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/billing-history.response.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BillingHistoryResponse: () => (/* binding */ BillingHistoryResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _billing_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./billing.response */ \"../../libs/common/src/billing/models/response/billing.response.ts\");\n\n\nclass BillingHistoryResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.invoices = [];\n        this.transactions = [];\n        const transactions = this.getResponseProperty(\"Transactions\");\n        const invoices = this.getResponseProperty(\"Invoices\");\n        if (transactions != null) {\n            this.transactions = transactions.map((t) => new _billing_response__WEBPACK_IMPORTED_MODULE_1__.BillingTransactionResponse(t));\n        }\n        if (invoices != null) {\n            this.invoices = invoices.map((i) => new _billing_response__WEBPACK_IMPORTED_MODULE_1__.BillingInvoiceResponse(i));\n        }\n    }\n    get hasNoHistory() {\n        return this.invoices.length == 0 && this.transactions.length == 0;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2JpbGxpbmcvbW9kZWxzL3Jlc3BvbnNlL2JpbGxpbmctaGlzdG9yeS5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBc0U7QUFFa0I7QUFFakYsTUFBTSxzQkFBdUIsU0FBUSx3RUFBWTtJQUl0RCxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBSmxCLGFBQVEsR0FBNkIsRUFBRSxDQUFDO1FBQ3hDLGlCQUFZLEdBQWlDLEVBQUUsQ0FBQztRQUk5QyxNQUFNLFlBQVksR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsY0FBYyxDQUFDLENBQUM7UUFDOUQsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ3RELElBQUksWUFBWSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ3pCLElBQUksQ0FBQyxZQUFZLEdBQUcsWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQU0sRUFBRSxFQUFFLENBQUMsSUFBSSx5RUFBMEIsQ0FBQyxDQUFDLENBQUMsQ0FBQ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ge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICBjb25zdCB0cmFuc2FjdGlvbnMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUcmFuc2FjdGlvbnNcIik7XG4gICAgY29uc3QgaW52b2ljZXMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJJbnZvaWNlc1wiKTtcbiAgICBpZiAodHJhbnNhY3Rpb25zICE9IG51bGwpIHtcbiAgICAgIHRoaXMudHJhbnNhY3Rpb25zID0gdHJhbnNhY3Rpb25zLm1hcCgodDogYW55KSA9PiBuZXcgQmlsbGluZ1RyYW5zYWN0aW9uUmVzcG9uc2UodCkpO1xuICAgIH1cbiAgICBpZiAoaW52b2ljZXMgIT0gbnVsbCkge1xuICAgICAgdGhpcy5pbnZvaWNlcyA9IGludm9pY2VzLm1hcCgoaTogYW55KSA9PiBuZXcgQmlsbGluZ0ludm9pY2VSZXNwb25zZShpKSk7XG4gICAgfVxuICB9XG5cbiAgZ2V0IGhhc05vSGlzdG9yeSgpIHtcbiAgICByZXR1cm4gdGhpcy5pbnZvaWNlcy5sZW5ndGggPT0gMCAmJiB0aGlzLnRyYW5zYWN0aW9ucy5sZW5ndGggPT0gMDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/billing-history.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/billing-payment.response.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/billing-payment.response.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BillingPaymentResponse: () => (/* binding */ BillingPaymentResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _billing_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./billing.response */ \"../../libs/common/src/billing/models/response/billing.response.ts\");\n\n\nclass BillingPaymentResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.balance = this.getResponseProperty(\"Balance\");\n        const paymentSource = this.getResponseProperty(\"PaymentSource\");\n        this.paymentSource = paymentSource == null ? null : new _billing_response__WEBPACK_IMPORTED_MODULE_1__.BillingSourceResponse(paymentSource);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2JpbGxpbmcvbW9kZWxzL3Jlc3BvbnNlL2JpbGxpbmctcGF5bWVudC5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBc0U7QUFFWDtBQUVwRCxNQUFNLHNCQUF1QixTQUFRLHdFQUFZO0lBSXRELFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsU0FBUyxDQUFDLENBQUM7UUFDbkQsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGVBQWUsQ0FBQyxDQUFDO1FBQ2hFLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLG9FQUFxQixDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQy9GLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9iaWxsaW5nL21vZGVscy9yZXNwb25zZS9iaWxsaW5nLXBheW1lbnQucmVzcG9uc2UudHM/OTFlZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuaW1wb3J0IHsgQmlsbGluZ1NvdXJjZVJlc3BvbnNlIH0gZnJvbSBcIi4vYmlsbGluZy5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgQmlsbGluZ1BheW1lbnRSZXNwb25zZSBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIGJhbGFuY2U6IG51bWJlcjtcbiAgcGF5bWVudFNvdXJjZTogQmlsbGluZ1NvdXJjZVJlc3BvbnNlO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5iYWxhbmNlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQmFsYW5jZVwiKTtcbiAgICBjb25zdCBwYXltZW50U291cmNlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUGF5bWVudFNvdXJjZVwiKTtcbiAgICB0aGlzLnBheW1lbnRTb3VyY2UgPSBwYXltZW50U291cmNlID09IG51bGwgPyBudWxsIDogbmV3IEJpbGxpbmdTb3VyY2VSZXNwb25zZShwYXltZW50U291cmNlKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/billing-payment.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/billing.response.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/billing.response.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BillingInvoiceResponse: () => (/* binding */ BillingInvoiceResponse),\n/* harmony export */   BillingResponse: () => (/* binding */ BillingResponse),\n/* harmony export */   BillingSourceResponse: () => (/* binding */ BillingSourceResponse),\n/* harmony export */   BillingTransactionResponse: () => (/* binding */ BillingTransactionResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass BillingResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.balance = this.getResponseProperty(\"Balance\");\n        const paymentSource = this.getResponseProperty(\"PaymentSource\");\n        this.paymentSource = paymentSource == null ? null : new BillingSourceResponse(paymentSource);\n    }\n}\nclass BillingSourceResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.type = this.getResponseProperty(\"Type\");\n        this.cardBrand = this.getResponseProperty(\"CardBrand\");\n        this.description = this.getResponseProperty(\"Description\");\n        this.needsVerification = this.getResponseProperty(\"NeedsVerification\");\n    }\n}\nclass BillingInvoiceResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.url = this.getResponseProperty(\"Url\");\n        this.pdfUrl = this.getResponseProperty(\"PdfUrl\");\n        this.number = this.getResponseProperty(\"Number\");\n        this.paid = this.getResponseProperty(\"Paid\");\n        this.date = this.getResponseProperty(\"Date\");\n        this.amount = this.getResponseProperty(\"Amount\");\n    }\n}\nclass BillingTransactionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.createdDate = this.getResponseProperty(\"CreatedDate\");\n        this.amount = this.getResponseProperty(\"Amount\");\n        this.refunded = this.getResponseProperty(\"Refunded\");\n        this.partiallyRefunded = this.getResponseProperty(\"PartiallyRefunded\");\n        this.refundedAmount = this.getResponseProperty(\"RefundedAmount\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.paymentMethodType = this.getResponseProperty(\"PaymentMethodType\");\n        this.details = this.getResponseProperty(\"Details\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6156 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/billing.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/organization-subscription.response.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/organization-subscription.response.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BillingCustomerDiscount: () => (/* binding */ BillingCustomerDiscount),\n/* harmony export */   OrganizationSubscriptionResponse: () => (/* binding */ OrganizationSubscriptionResponse)\n/* harmony export */ });\n/* harmony import */ var _admin_console_models_response_organization_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../admin-console/models/response/organization.response */ \"../../libs/common/src/admin-console/models/response/organization.response.ts\");\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _subscription_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./subscription.response */ \"../../libs/common/src/billing/models/response/subscription.response.ts\");\n\n\n\nclass OrganizationSubscriptionResponse extends _admin_console_models_response_organization_response__WEBPACK_IMPORTED_MODULE_0__.OrganizationResponse {\n    constructor(response) {\n        super(response);\n        this.storageName = this.getResponseProperty(\"StorageName\");\n        this.storageGb = this.getResponseProperty(\"StorageGb\");\n        const subscription = this.getResponseProperty(\"Subscription\");\n        this.subscription = subscription == null ? null : new _subscription_response__WEBPACK_IMPORTED_MODULE_2__.BillingSubscriptionResponse(subscription);\n        const upcomingInvoice = this.getResponseProperty(\"UpcomingInvoice\");\n        this.upcomingInvoice =\n            upcomingInvoice == null\n                ? null\n                : new _subscription_response__WEBPACK_IMPORTED_MODULE_2__.BillingSubscriptionUpcomingInvoiceResponse(upcomingInvoice);\n        const customerDiscount = this.getResponseProperty(\"CustomerDiscount\");\n        this.customerDiscount =\n            customerDiscount == null ? null : new BillingCustomerDiscount(customerDiscount);\n        this.expiration = this.getResponseProperty(\"Expiration\");\n        this.expirationWithoutGracePeriod = this.getResponseProperty(\"ExpirationWithoutGracePeriod\");\n    }\n}\nclass BillingCustomerDiscount extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_1__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.active = this.getResponseProperty(\"Active\");\n        this.percentOff = this.getResponseProperty(\"PercentOff\");\n        this.appliesTo = this.getResponseProperty(\"AppliesTo\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4772 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/organization-subscription.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/payment.response.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/payment.response.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PaymentResponse: () => (/* binding */ PaymentResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _models_response_profile_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response/profile.response */ \"../../libs/common/src/models/response/profile.response.ts\");\n\n\nclass PaymentResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        const userProfile = this.getResponseProperty(\"UserProfile\");\n        if (userProfile != null) {\n            this.userProfile = new _models_response_profile_response__WEBPACK_IMPORTED_MODULE_1__.ProfileResponse(userProfile);\n        }\n        this.paymentIntentClientSecret = this.getResponseProperty(\"PaymentIntentClientSecret\");\n        this.success = this.getResponseProperty(\"Success\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2JpbGxpbmcvbW9kZWxzL3Jlc3BvbnNlL3BheW1lbnQucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQXNFO0FBQ007QUFFckUsTUFBTSxlQUFnQixTQUFRLHdFQUFZO0lBSy9DLFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsTUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQzVELElBQUksV0FBVyxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ3hCLElBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSw4RUFBZSxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBQ3RELENBQUM7UUFDRCxJQUFJLENBQUMseUJBQXlCLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLDJCQUEyQixDQUFDLENBQUM7UUFDdkYsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDckQsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQG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vdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/payment.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/plan.response.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/plan.response.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordManagerPlanFeaturesResponse: () => (/* binding */ PasswordManagerPlanFeaturesResponse),\n/* harmony export */   PlanResponse: () => (/* binding */ PlanResponse),\n/* harmony export */   SecretsManagerPlanFeaturesResponse: () => (/* binding */ SecretsManagerPlanFeaturesResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass PlanResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.type = this.getResponseProperty(\"Type\");\n        this.productTier = this.getResponseProperty(\"ProductTier\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.isAnnual = this.getResponseProperty(\"IsAnnual\");\n        this.nameLocalizationKey = this.getResponseProperty(\"NameLocalizationKey\");\n        this.descriptionLocalizationKey = this.getResponseProperty(\"DescriptionLocalizationKey\");\n        this.canBeUsedByBusiness = this.getResponseProperty(\"CanBeUsedByBusiness\");\n        this.trialPeriodDays = this.getResponseProperty(\"TrialPeriodDays\");\n        this.hasSelfHost = this.getResponseProperty(\"HasSelfHost\");\n        this.hasPolicies = this.getResponseProperty(\"HasPolicies\");\n        this.hasGroups = this.getResponseProperty(\"HasGroups\");\n        this.hasDirectory = this.getResponseProperty(\"HasDirectory\");\n        this.hasEvents = this.getResponseProperty(\"HasEvents\");\n        this.hasTotp = this.getResponseProperty(\"HasTotp\");\n        this.has2fa = this.getResponseProperty(\"Has2fa\");\n        this.hasApi = this.getResponseProperty(\"HasApi\");\n        this.hasSso = this.getResponseProperty(\"HasSso\");\n        this.hasResetPassword = this.getResponseProperty(\"HasResetPassword\");\n        this.usersGetPremium = this.getResponseProperty(\"UsersGetPremium\");\n        this.upgradeSortOrder = this.getResponseProperty(\"UpgradeSortOrder\");\n        this.displaySortOrder = this.getResponseProperty(\"DisplaySortOrder\");\n        this.legacyYear = this.getResponseProperty(\"LegacyYear\");\n        this.disabled = this.getResponseProperty(\"Disabled\");\n        const passwordManager = this.getResponseProperty(\"PasswordManager\");\n        const secretsManager = this.getResponseProperty(\"SecretsManager\");\n        this.PasswordManager =\n            passwordManager == null ? null : new PasswordManagerPlanFeaturesResponse(passwordManager);\n        this.SecretsManager =\n            secretsManager == null ? null : new SecretsManagerPlanFeaturesResponse(secretsManager);\n    }\n}\nclass SecretsManagerPlanFeaturesResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.stripeSeatPlanId = this.getResponseProperty(\"StripeSeatPlanId\");\n        this.baseSeats = this.getResponseProperty(\"BaseSeats\");\n        this.basePrice = this.getResponseProperty(\"BasePrice\");\n        this.seatPrice = this.getResponseProperty(\"SeatPrice\");\n        this.hasAdditionalSeatsOption = this.getResponseProperty(\"HasAdditionalSeatsOption\");\n        this.maxAdditionalSeats = this.getResponseProperty(\"MaxAdditionalSeats\");\n        this.maxSeats = this.getResponseProperty(\"MaxSeats\");\n        this.stripeServiceAccountPlanId = this.getResponseProperty(\"StripeServiceAccountPlanId\");\n        this.additionalPricePerServiceAccount = this.getResponseProperty(\"AdditionalPricePerServiceAccount\");\n        this.baseServiceAccount = this.getResponseProperty(\"BaseServiceAccount\");\n        this.maxServiceAccount = this.getResponseProperty(\"MaxServiceAccount\");\n        this.hasAdditionalServiceAccountOption = this.getResponseProperty(\"HasAdditionalServiceAccountOption\");\n        this.maxAdditionalServiceAccounts = this.getResponseProperty(\"MaxAdditionalServiceAccounts\");\n        this.maxProjects = this.getResponseProperty(\"MaxProjects\");\n    }\n}\nclass PasswordManagerPlanFeaturesResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.stripePlanId = this.getResponseProperty(\"StripePlanId\");\n        this.stripeSeatPlanId = this.getResponseProperty(\"StripeSeatPlanId\");\n        this.stripeProviderPortalSeatPlanId = this.getResponseProperty(\"StripeProviderPortalSeatPlanId\");\n        this.stripeStoragePlanId = this.getResponseProperty(\"StripeStoragePlanId\");\n        this.stripePremiumAccessPlanId = this.getResponseProperty(\"StripePremiumAccessPlanId\");\n        this.basePrice = this.getResponseProperty(\"BasePrice\");\n        this.seatPrice = this.getResponseProperty(\"SeatPrice\");\n        this.providerPortalSeatPrice = this.getResponseProperty(\"ProviderPortalSeatPrice\");\n        this.baseSeats = this.getResponseProperty(\"BaseSeats\");\n        this.maxAdditionalSeats = this.getResponseProperty(\"MaxAdditionalSeats\");\n        this.premiumAccessOptionPrice = this.getResponseProperty(\"PremiumAccessOptionPrice\");\n        this.maxSeats = this.getResponseProperty(\"MaxSeats\");\n        this.additionalStoragePricePerGb = this.getResponseProperty(\"AdditionalStoragePricePerGb\");\n        this.hasAdditionalSeatsOption = this.getResponseProperty(\"HasAdditionalSeatsOption\");\n        this.baseStorageGb = this.getResponseProperty(\"BaseStorageGb\");\n        this.maxCollections = this.getResponseProperty(\"MaxCollections\");\n        this.hasAdditionalStorageOption = this.getResponseProperty(\"HasAdditionalStorageOption\");\n        this.maxAdditionalStorage = this.getResponseProperty(\"MaxAdditionalStorage\");\n        this.hasPremiumAccessOption = this.getResponseProperty(\"HasPremiumAccessOption\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15472 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/plan.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/subscription.response.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/subscription.response.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BillingSubscriptionItemResponse: () => (/* binding */ BillingSubscriptionItemResponse),\n/* harmony export */   BillingSubscriptionResponse: () => (/* binding */ BillingSubscriptionResponse),\n/* harmony export */   BillingSubscriptionUpcomingInvoiceResponse: () => (/* binding */ BillingSubscriptionUpcomingInvoiceResponse),\n/* harmony export */   SubscriptionResponse: () => (/* binding */ SubscriptionResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SubscriptionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.storageName = this.getResponseProperty(\"StorageName\");\n        this.storageGb = this.getResponseProperty(\"StorageGb\");\n        this.maxStorageGb = this.getResponseProperty(\"MaxStorageGb\");\n        this.license = this.getResponseProperty(\"License\");\n        this.expiration = this.getResponseProperty(\"Expiration\");\n        const subscription = this.getResponseProperty(\"Subscription\");\n        const upcomingInvoice = this.getResponseProperty(\"UpcomingInvoice\");\n        this.subscription = subscription == null ? null : new BillingSubscriptionResponse(subscription);\n        this.upcomingInvoice =\n            upcomingInvoice == null\n                ? null\n                : new BillingSubscriptionUpcomingInvoiceResponse(upcomingInvoice);\n    }\n}\nclass BillingSubscriptionResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.items = [];\n        this.trialStartDate = this.getResponseProperty(\"TrialStartDate\");\n        this.trialEndDate = this.getResponseProperty(\"TrialEndDate\");\n        this.periodStartDate = this.getResponseProperty(\"PeriodStartDate\");\n        this.periodEndDate = this.getResponseProperty(\"PeriodEndDate\");\n        this.cancelledDate = this.getResponseProperty(\"CancelledDate\");\n        this.cancelAtEndDate = this.getResponseProperty(\"CancelAtEndDate\");\n        this.status = this.getResponseProperty(\"Status\");\n        this.cancelled = this.getResponseProperty(\"Cancelled\");\n        const items = this.getResponseProperty(\"Items\");\n        if (items != null) {\n            this.items = items.map((i) => new BillingSubscriptionItemResponse(i));\n        }\n        this.collectionMethod = this.getResponseProperty(\"CollectionMethod\");\n        this.suspensionDate = this.getResponseProperty(\"SuspensionDate\");\n        this.unpaidPeriodEndDate = this.getResponseProperty(\"unpaidPeriodEndDate\");\n        this.gracePeriod = this.getResponseProperty(\"GracePeriod\");\n    }\n}\nclass BillingSubscriptionItemResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.productId = this.getResponseProperty(\"ProductId\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.amount = this.getResponseProperty(\"Amount\");\n        this.quantity = this.getResponseProperty(\"Quantity\");\n        this.interval = this.getResponseProperty(\"Interval\");\n        this.sponsoredSubscriptionItem = this.getResponseProperty(\"SponsoredSubscriptionItem\");\n        this.addonSubscriptionItem = this.getResponseProperty(\"AddonSubscriptionItem\");\n    }\n}\nclass BillingSubscriptionUpcomingInvoiceResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.date = this.getResponseProperty(\"Date\");\n        this.amount = this.getResponseProperty(\"Amount\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8876 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/subscription.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/tax-info.response.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/tax-info.response.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TaxInfoResponse: () => (/* binding */ TaxInfoResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TaxInfoResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.taxId = this.getResponseProperty(\"TaxIdNumber\");\n        if (!this.taxId) {\n            this.taxId = this.getResponseProperty(\"TaxId\");\n        }\n        this.taxIdType = this.getResponseProperty(\"TaxIdType\");\n        this.line1 = this.getResponseProperty(\"Line1\");\n        this.line2 = this.getResponseProperty(\"Line2\");\n        this.city = this.getResponseProperty(\"City\");\n        this.state = this.getResponseProperty(\"State\");\n        this.postalCode = this.getResponseProperty(\"PostalCode\");\n        this.country = this.getResponseProperty(\"Country\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2JpbGxpbmcvbW9kZWxzL3Jlc3BvbnNlL3RheC1pbmZvLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRS9ELE1BQU0sZUFBZ0IsU0FBUSx3RUFBWTtJQVUvQyxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLGFBQWEsQ0FBQyxDQUFDO1FBQ3JELElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDaEIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsbUJBQW1C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UxOiBzdHJpbmc7XG4gIGxpbmUyOiBzdHJpbmc7XG4gIGNpdHk6IHN0cmluZztcbiAgc3RhdGU6IHN0cmluZztcbiAgY291bnRyeTogc3RyaW5nO1xuICBwb3N0YWxDb2RlOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IGFueSkge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICB0aGlzLnRheElkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVGF4SWROdW1iZXJcIik7XG4gICAgaWYgKCF0aGlzLnRheElkKSB7XG4gICAgICB0aGlzLnRheElkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVGF4SWRcIik7XG4gICAgfVxuICAgIHRoaXMudGF4SWRUeXBlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVGF4SWRUeXBlXCIpO1xuICAgIHRoaXMubGluZTEgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJMaW5lMVwiKTtcbiAgICB0aGlzLmxpbmUyID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiTGluZTJcIik7XG4gICAgdGhpcy5jaXR5ID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ2l0eVwiKTtcbiAgICB0aGlzLnN0YXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiU3RhdGVcIik7XG4gICAgdGhpcy5wb3N0YWxDb2RlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUG9zdGFsQ29kZVwiKTtcbiAgICB0aGlzLmNvdW50cnkgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJDb3VudHJ5XCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/tax-info.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/models/response/tax-rate.response.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/billing/models/response/tax-rate.response.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TaxRateResponse: () => (/* binding */ TaxRateResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass TaxRateResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.country = this.getResponseProperty(\"Country\");\n        this.state = this.getResponseProperty(\"State\");\n        this.postalCode = this.getResponseProperty(\"PostalCode\");\n        this.rate = this.getResponseProperty(\"Rate\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2JpbGxpbmcvbW9kZWxzL3Jlc3BvbnNlL3RheC1yYXRlLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRS9ELE1BQU0sZUFBZ0IsU0FBUSx3RUFBWTtJQU8vQyxZQUFZLFFBQWE7UUFDdkIsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2hCLElBQUksQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3pDLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBQ25ELElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE9BQU8sQ0FBQyxD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2V0UmVzcG9uc2VQcm9wZXJ0eShcIlJhdGVcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/models/response/tax-rate.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/billing/services/account/billing-account-profile-state.service.ts":
/*!***********************************************************************************************!*\
  !*** ../../libs/common/src/billing/services/account/billing-account-profile-state.service.ts ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BILLING_ACCOUNT_PROFILE_KEY_DEFINITION: () => (/* binding */ BILLING_ACCOUNT_PROFILE_KEY_DEFINITION),\n/* harmony export */   DefaultBillingAccountProfileStateService: () => (/* binding */ DefaultBillingAccountProfileStateService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst BILLING_ACCOUNT_PROFILE_KEY_DEFINITION = new _platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_1__.BILLING_DISK, \"accountProfile\", {\n    deserializer: (billingAccountProfile) => billingAccountProfile,\n    clearOn: [\"logout\"],\n});\nclass DefaultBillingAccountProfileStateService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n        this.billingAccountProfileState = stateProvider.getActive(BILLING_ACCOUNT_PROFILE_KEY_DEFINITION);\n        // Setup an observable that will always track the currently active user\n        // but will fallback to emitting null when there is no active user.\n        const billingAccountProfileOrNull = stateProvider.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => userId != null\n            ? stateProvider.getUser(userId, BILLING_ACCOUNT_PROFILE_KEY_DEFINITION).state$\n            : (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null)));\n        this.hasPremiumFromAnyOrganization$ = billingAccountProfileOrNull.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((billingAccountProfile) => !!(billingAccountProfile === null || billingAccountProfile === void 0 ? void 0 : billingAccountProfile.hasPremiumFromAnyOrganization)));\n        this.hasPremiumPersonally$ = billingAccountProfileOrNull.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((billingAccountProfile) => !!(billingAccountProfile === null || billingAccountProfile === void 0 ? void 0 : billingAccountProfile.hasPremiumPersonally)));\n        this.hasPremiumFromAnySource$ = billingAccountProfileOrNull.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((billingAccountProfile) => (billingAccountProfile === null || billingAccountProfile === void 0 ? void 0 : billingAccountProfile.hasPremiumFromAnyOrganization) === true ||\n            (billingAccountProfile === null || billingAccountProfile === void 0 ? void 0 : billingAccountProfile.hasPremiumPersonally) === true));\n    }\n    setHasPremium(hasPremiumPersonally, hasPremiumFromAnyOrganization, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, BILLING_ACCOUNT_PROFILE_KEY_DEFINITION).update((_) => {\n                return {\n                    hasPremiumPersonally: hasPremiumPersonally,\n                    hasPremiumFromAnyOrganization: hasPremiumFromAnyOrganization,\n                };\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5748 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/billing/services/account/billing-account-profile-state.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/client-type.enum.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/enums/client-type.enum.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ClientType: () => (/* binding */ ClientType)\n/* harmony export */ });\nvar ClientType;\n(function (ClientType) {\n    ClientType[\"Web\"] = \"web\";\n    ClientType[\"Browser\"] = \"browser\";\n    ClientType[\"Desktop\"] = \"desktop\";\n    // Mobile = \"mobile\",\n    ClientType[\"Cli\"] = \"cli\";\n    // DirectoryConnector = \"connector\",\n})(ClientType || (ClientType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL2NsaWVudC10eXBlLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksVUFPWDtBQVBELFdBQVksVUFBVTtJQUNwQix5QkFBVztJQUNYLGlDQUFtQjtJQUNuQixpQ0FBbUI7SUFDbkIscUJBQXFCO0lBQ3JCLHlCQUFXO0lBQ1gsb0NBQW9DO0FBQ3RDLENBQUMsRUFQVyxVQUFVLEtBQVYsVUFBVSxRQU9yQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9lbnVtcy9jbGllbnQtdHlwZS5lbnVtLnRzP2Y2YTUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gQ2xpZW50VHlwZSB7XG4gIFdlYiA9IFwid2ViXCIsXG4gIEJyb3dzZXIgPSBcImJyb3dzZXJcIixcbiAgRGVza3RvcCA9IFwiZGVza3RvcFwiLFxuICAvLyBNb2JpbGUgPSBcIm1vYmlsZVwiLFxuICBDbGkgPSBcImNsaVwiLFxuICAvLyBEaXJlY3RvcnlDb25uZWN0b3IgPSBcImNvbm5lY3RvclwiLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/client-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/device-type.enum.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/enums/device-type.enum.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DesktopDeviceTypes: () => (/* binding */ DesktopDeviceTypes),\n/* harmony export */   DeviceType: () => (/* binding */ DeviceType),\n/* harmony export */   MobileDeviceTypes: () => (/* binding */ MobileDeviceTypes)\n/* harmony export */ });\nvar DeviceType;\n(function (DeviceType) {\n    DeviceType[DeviceType[\"Android\"] = 0] = \"Android\";\n    DeviceType[DeviceType[\"iOS\"] = 1] = \"iOS\";\n    DeviceType[DeviceType[\"ChromeExtension\"] = 2] = \"ChromeExtension\";\n    DeviceType[DeviceType[\"FirefoxExtension\"] = 3] = \"FirefoxExtension\";\n    DeviceType[DeviceType[\"OperaExtension\"] = 4] = \"OperaExtension\";\n    DeviceType[DeviceType[\"EdgeExtension\"] = 5] = \"EdgeExtension\";\n    DeviceType[DeviceType[\"WindowsDesktop\"] = 6] = \"WindowsDesktop\";\n    DeviceType[DeviceType[\"MacOsDesktop\"] = 7] = \"MacOsDesktop\";\n    DeviceType[DeviceType[\"LinuxDesktop\"] = 8] = \"LinuxDesktop\";\n    DeviceType[DeviceType[\"ChromeBrowser\"] = 9] = \"ChromeBrowser\";\n    DeviceType[DeviceType[\"FirefoxBrowser\"] = 10] = \"FirefoxBrowser\";\n    DeviceType[DeviceType[\"OperaBrowser\"] = 11] = \"OperaBrowser\";\n    DeviceType[DeviceType[\"EdgeBrowser\"] = 12] = \"EdgeBrowser\";\n    DeviceType[DeviceType[\"IEBrowser\"] = 13] = \"IEBrowser\";\n    DeviceType[DeviceType[\"UnknownBrowser\"] = 14] = \"UnknownBrowser\";\n    DeviceType[DeviceType[\"AndroidAmazon\"] = 15] = \"AndroidAmazon\";\n    DeviceType[DeviceType[\"UWP\"] = 16] = \"UWP\";\n    DeviceType[DeviceType[\"SafariBrowser\"] = 17] = \"SafariBrowser\";\n    DeviceType[DeviceType[\"VivaldiBrowser\"] = 18] = \"VivaldiBrowser\";\n    DeviceType[DeviceType[\"VivaldiExtension\"] = 19] = \"VivaldiExtension\";\n    DeviceType[DeviceType[\"SafariExtension\"] = 20] = \"SafariExtension\";\n    DeviceType[DeviceType[\"SDK\"] = 21] = \"SDK\";\n    DeviceType[DeviceType[\"Server\"] = 22] = \"Server\";\n    DeviceType[DeviceType[\"WindowsCLI\"] = 23] = \"WindowsCLI\";\n    DeviceType[DeviceType[\"MacOsCLI\"] = 24] = \"MacOsCLI\";\n    DeviceType[DeviceType[\"LinuxCLI\"] = 25] = \"LinuxCLI\";\n})(DeviceType || (DeviceType = {}));\nconst MobileDeviceTypes = new Set([\n    DeviceType.Android,\n    DeviceType.iOS,\n    DeviceType.AndroidAmazon,\n]);\nconst DesktopDeviceTypes = new Set([\n    DeviceType.WindowsDesktop,\n    DeviceType.MacOsDesktop,\n    DeviceType.LinuxDesktop,\n    DeviceType.UWP,\n    DeviceType.WindowsCLI,\n    DeviceType.MacOsCLI,\n    DeviceType.LinuxCLI,\n]);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base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lVHlwZS5BbmRyb2lkQW1hem9uLFxuXSk7XG5cbmV4cG9ydCBjb25zdCBEZXNrdG9wRGV2aWNlVHlwZXM6IFNldDxEZXZpY2VUeXBlPiA9IG5ldyBTZXQoW1xuICBEZXZpY2VUeXBlLldpbmRvd3NEZXNrdG9wLFxuICBEZXZpY2VUeXBlLk1hY09zRGVza3RvcCxcbiAgRGV2aWNlVHlwZS5MaW51eERlc2t0b3AsXG4gIERldmljZVR5cGUuVVdQLFxuICBEZXZpY2VUeXBlLldpbmRvd3NDTEksXG4gIERldmljZVR5cGUuTWFjT3NDTEksXG4gIERldmljZVR5cGUuTGludXhDTEksXG5dKTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/device-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/event-system-user.enum.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/enums/event-system-user.enum.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventSystemUser: () => (/* binding */ EventSystemUser)\n/* harmony export */ });\n// Note: the enum key is used to describe the EventSystemUser in the UI. Be careful about changing it.\nvar EventSystemUser;\n(function (EventSystemUser) {\n    EventSystemUser[EventSystemUser[\"SCIM\"] = 1] = \"SCIM\";\n    EventSystemUser[EventSystemUser[\"DomainVerification\"] = 2] = \"DomainVerification\";\n    EventSystemUser[EventSystemUser[\"PublicApi\"] = 3] = \"PublicApi\";\n})(EventSystemUser || (EventSystemUser = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL2V2ZW50LXN5c3RlbS11c2VyLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHNHQUFzRztBQUN0RyxJQUFZLGVBSVg7QUFKRCxXQUFZLGVBQWU7SUFDekIscURBQVE7SUFDUixpRkFBc0I7SUFDdEIsK0RBQWE7QUFDZixDQUFDLEVBSlcsZUFBZSxLQUFmLGVBQWUsUUFJMUIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvZW51bXMvZXZlbnQtc3lzdGVtLXVzZXIuZW51bS50cz9lOWQ4Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIE5vdGU6IHRoZSBlbnVtIGtleSBpcyB1c2VkIHRvIGRlc2NyaWJlIHRoZSBFdmVudFN5c3RlbVVzZXIgaW4gdGhlIFVJLiBCZSBjYXJlZnVsIGFib3V0IGNoYW5naW5nIGl0LlxuZXhwb3J0IGVudW0gRXZlbnRTeXN0ZW1Vc2VyIHtcbiAgU0NJTSA9IDEsXG4gIERvbWFpblZlcmlmaWNhdGlvbiA9IDIsXG4gIFB1YmxpY0FwaSA9IDMsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/event-system-user.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/event-type.enum.ts":
/*!******************************************************!*\
  !*** ../../libs/common/src/enums/event-type.enum.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventType: () => (/* binding */ EventType)\n/* harmony export */ });\n// Increment by 100 for each new set of events\nvar EventType;\n(function (EventType) {\n    EventType[EventType[\"User_LoggedIn\"] = 1000] = \"User_LoggedIn\";\n    EventType[EventType[\"User_ChangedPassword\"] = 1001] = \"User_ChangedPassword\";\n    EventType[EventType[\"User_Updated2fa\"] = 1002] = \"User_Updated2fa\";\n    EventType[EventType[\"User_Disabled2fa\"] = 1003] = \"User_Disabled2fa\";\n    EventType[EventType[\"User_Recovered2fa\"] = 1004] = \"User_Recovered2fa\";\n    EventType[EventType[\"User_FailedLogIn\"] = 1005] = \"User_FailedLogIn\";\n    EventType[EventType[\"User_FailedLogIn2fa\"] = 1006] = \"User_FailedLogIn2fa\";\n    EventType[EventType[\"User_ClientExportedVault\"] = 1007] = \"User_ClientExportedVault\";\n    EventType[EventType[\"User_UpdatedTempPassword\"] = 1008] = \"User_UpdatedTempPassword\";\n    EventType[EventType[\"User_MigratedKeyToKeyConnector\"] = 1009] = \"User_MigratedKeyToKeyConnector\";\n    EventType[EventType[\"User_RequestedDeviceApproval\"] = 1010] = \"User_RequestedDeviceApproval\";\n    EventType[EventType[\"User_TdeOffboardingPasswordSet\"] = 1011] = \"User_TdeOffboardingPasswordSet\";\n    EventType[EventType[\"Cipher_Created\"] = 1100] = \"Cipher_Created\";\n    EventType[EventType[\"Cipher_Updated\"] = 1101] = \"Cipher_Updated\";\n    EventType[EventType[\"Cipher_Deleted\"] = 1102] = \"Cipher_Deleted\";\n    EventType[EventType[\"Cipher_AttachmentCreated\"] = 1103] = \"Cipher_AttachmentCreated\";\n    EventType[EventType[\"Cipher_AttachmentDeleted\"] = 1104] = \"Cipher_AttachmentDeleted\";\n    EventType[EventType[\"Cipher_Shared\"] = 1105] = \"Cipher_Shared\";\n    EventType[EventType[\"Cipher_UpdatedCollections\"] = 1106] = \"Cipher_UpdatedCollections\";\n    EventType[EventType[\"Cipher_ClientViewed\"] = 1107] = \"Cipher_ClientViewed\";\n    EventType[EventType[\"Cipher_ClientToggledPasswordVisible\"] = 1108] = \"Cipher_ClientToggledPasswordVisible\";\n    EventType[EventType[\"Cipher_ClientToggledHiddenFieldVisible\"] = 1109] = \"Cipher_ClientToggledHiddenFieldVisible\";\n    EventType[EventType[\"Cipher_ClientToggledCardCodeVisible\"] = 1110] = \"Cipher_ClientToggledCardCodeVisible\";\n    EventType[EventType[\"Cipher_ClientCopiedPassword\"] = 1111] = \"Cipher_ClientCopiedPassword\";\n    EventType[EventType[\"Cipher_ClientCopiedHiddenField\"] = 1112] = \"Cipher_ClientCopiedHiddenField\";\n    EventType[EventType[\"Cipher_ClientCopiedCardCode\"] = 1113] = \"Cipher_ClientCopiedCardCode\";\n    EventType[EventType[\"Cipher_ClientAutofilled\"] = 1114] = \"Cipher_ClientAutofilled\";\n    EventType[EventType[\"Cipher_SoftDeleted\"] = 1115] = \"Cipher_SoftDeleted\";\n    EventType[EventType[\"Cipher_Restored\"] = 1116] = \"Cipher_Restored\";\n    EventType[EventType[\"Cipher_ClientToggledCardNumberVisible\"] = 1117] = \"Cipher_ClientToggledCardNumberVisible\";\n    EventType[EventType[\"Cipher_ClientToggledTOTPSeedVisible\"] = 1118] = \"Cipher_ClientToggledTOTPSeedVisible\";\n    EventType[EventType[\"Collection_Created\"] = 1300] = \"Collection_Created\";\n    EventType[EventType[\"Collection_Updated\"] = 1301] = \"Collection_Updated\";\n    EventType[EventType[\"Collection_Deleted\"] = 1302] = \"Collection_Deleted\";\n    EventType[EventType[\"Group_Created\"] = 1400] = \"Group_Created\";\n    EventType[EventType[\"Group_Updated\"] = 1401] = \"Group_Updated\";\n    EventType[EventType[\"Group_Deleted\"] = 1402] = \"Group_Deleted\";\n    EventType[EventType[\"OrganizationUser_Invited\"] = 1500] = \"OrganizationUser_Invited\";\n    EventType[EventType[\"OrganizationUser_Confirmed\"] = 1501] = \"OrganizationUser_Confirmed\";\n    EventType[EventType[\"OrganizationUser_Updated\"] = 1502] = \"OrganizationUser_Updated\";\n    EventType[EventType[\"OrganizationUser_Removed\"] = 1503] = \"OrganizationUser_Removed\";\n    EventType[EventType[\"OrganizationUser_UpdatedGroups\"] = 1504] = \"OrganizationUser_UpdatedGroups\";\n    EventType[EventType[\"OrganizationUser_UnlinkedSso\"] = 1505] = \"OrganizationUser_UnlinkedSso\";\n    EventType[EventType[\"OrganizationUser_ResetPassword_Enroll\"] = 1506] = \"OrganizationUser_ResetPassword_Enroll\";\n    EventType[EventType[\"OrganizationUser_ResetPassword_Withdraw\"] = 1507] = \"OrganizationUser_ResetPassword_Withdraw\";\n    EventType[EventType[\"OrganizationUser_AdminResetPassword\"] = 1508] = \"OrganizationUser_AdminResetPassword\";\n    EventType[EventType[\"OrganizationUser_ResetSsoLink\"] = 1509] = \"OrganizationUser_ResetSsoLink\";\n    EventType[EventType[\"OrganizationUser_FirstSsoLogin\"] = 1510] = \"OrganizationUser_FirstSsoLogin\";\n    EventType[EventType[\"OrganizationUser_Revoked\"] = 1511] = \"OrganizationUser_Revoked\";\n    EventType[EventType[\"OrganizationUser_Restored\"] = 1512] = \"OrganizationUser_Restored\";\n    EventType[EventType[\"OrganizationUser_ApprovedAuthRequest\"] = 1513] = \"OrganizationUser_ApprovedAuthRequest\";\n    EventType[EventType[\"OrganizationUser_RejectedAuthRequest\"] = 1514] = \"OrganizationUser_RejectedAuthRequest\";\n    EventType[EventType[\"Organization_Updated\"] = 1600] = \"Organization_Updated\";\n    EventType[EventType[\"Organization_PurgedVault\"] = 1601] = \"Organization_PurgedVault\";\n    EventType[EventType[\"Organization_ClientExportedVault\"] = 1602] = \"Organization_ClientExportedVault\";\n    EventType[EventType[\"Organization_VaultAccessed\"] = 1603] = \"Organization_VaultAccessed\";\n    EventType[EventType[\"Organization_EnabledSso\"] = 1604] = \"Organization_EnabledSso\";\n    EventType[EventType[\"Organization_DisabledSso\"] = 1605] = \"Organization_DisabledSso\";\n    EventType[EventType[\"Organization_EnabledKeyConnector\"] = 1606] = \"Organization_EnabledKeyConnector\";\n    EventType[EventType[\"Organization_DisabledKeyConnector\"] = 1607] = \"Organization_DisabledKeyConnector\";\n    EventType[EventType[\"Organization_SponsorshipsSynced\"] = 1608] = \"Organization_SponsorshipsSynced\";\n    EventType[EventType[\"Organization_CollectionManagementUpdated\"] = 1609] = \"Organization_CollectionManagementUpdated\";\n    EventType[EventType[\"Policy_Updated\"] = 1700] = \"Policy_Updated\";\n    EventType[EventType[\"ProviderUser_Invited\"] = 1800] = \"ProviderUser_Invited\";\n    EventType[EventType[\"ProviderUser_Confirmed\"] = 1801] = \"ProviderUser_Confirmed\";\n    EventType[EventType[\"ProviderUser_Updated\"] = 1802] = \"ProviderUser_Updated\";\n    EventType[EventType[\"ProviderUser_Removed\"] = 1803] = \"ProviderUser_Removed\";\n    EventType[EventType[\"ProviderOrganization_Created\"] = 1900] = \"ProviderOrganization_Created\";\n    EventType[EventType[\"ProviderOrganization_Added\"] = 1901] = \"ProviderOrganization_Added\";\n    EventType[EventType[\"ProviderOrganization_Removed\"] = 1902] = \"ProviderOrganization_Removed\";\n    EventType[EventType[\"ProviderOrganization_VaultAccessed\"] = 1903] = \"ProviderOrganization_VaultAccessed\";\n    EventType[EventType[\"OrganizationDomain_Added\"] = 2000] = \"OrganizationDomain_Added\";\n    EventType[EventType[\"OrganizationDomain_Removed\"] = 2001] = \"OrganizationDomain_Removed\";\n    EventType[EventType[\"OrganizationDomain_Verified\"] = 2002] = \"OrganizationDomain_Verified\";\n    EventType[EventType[\"OrganizationDomain_NotVerified\"] = 2003] = \"OrganizationDomain_NotVerified\";\n    EventType[EventType[\"Secret_Retrieved\"] = 2100] = \"Secret_Retrieved\";\n})(EventType || (EventType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5580 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/event-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/feature-flag.enum.ts":
/*!********************************************************!*\
  !*** ../../libs/common/src/enums/feature-flag.enum.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultFeatureFlagValue: () => (/* binding */ DefaultFeatureFlagValue),\n/* harmony export */   FeatureFlag: () => (/* binding */ FeatureFlag)\n/* harmony export */ });\n/**\n * Feature flags.\n *\n * Flags MUST be short lived and SHALL be removed once enabled.\n */\nvar FeatureFlag;\n(function (FeatureFlag) {\n    FeatureFlag[\"BrowserFilelessImport\"] = \"browser-fileless-import\";\n    FeatureFlag[\"ItemShare\"] = \"item-share\";\n    FeatureFlag[\"GeneratorToolsModernization\"] = \"generator-tools-modernization\";\n    FeatureFlag[\"EnableConsolidatedBilling\"] = \"enable-consolidated-billing\";\n    FeatureFlag[\"AC1795_UpdatedSubscriptionStatusSection\"] = \"AC-1795_updated-subscription-status-section\";\n    FeatureFlag[\"ExtensionRefresh\"] = \"extension-refresh\";\n    FeatureFlag[\"PersistPopupView\"] = \"persist-popup-view\";\n    FeatureFlag[\"PM4154_BulkEncryptionService\"] = \"PM-4154-bulk-encryption-service\";\n    FeatureFlag[\"UseTreeWalkerApiForPageDetailsCollection\"] = \"use-tree-walker-api-for-page-details-collection\";\n    FeatureFlag[\"EmailVerification\"] = \"email-verification\";\n    FeatureFlag[\"InlineMenuFieldQualification\"] = \"inline-menu-field-qualification\";\n    FeatureFlag[\"MemberAccessReport\"] = \"ac-2059-member-access-report\";\n    FeatureFlag[\"TwoFactorComponentRefactor\"] = \"two-factor-component-refactor\";\n    FeatureFlag[\"EnableTimeThreshold\"] = \"PM-5864-dollar-threshold\";\n    FeatureFlag[\"InlineMenuPositioningImprovements\"] = \"inline-menu-positioning-improvements\";\n    FeatureFlag[\"ProviderClientVaultPrivacyBanner\"] = \"ac-2833-provider-client-vault-privacy-banner\";\n    FeatureFlag[\"VaultBulkManagementAction\"] = \"vault-bulk-management-action\";\n    FeatureFlag[\"IdpAutoSubmitLogin\"] = \"idp-auto-submit-login\";\n    FeatureFlag[\"UnauthenticatedExtensionUIRefresh\"] = \"unauth-ui-refresh\";\n    FeatureFlag[\"EnableUpgradePasswordManagerSub\"] = \"AC-2708-upgrade-password-manager-sub\";\n    FeatureFlag[\"GenerateIdentityFillScriptRefactor\"] = \"generate-identity-fill-script-refactor\";\n    FeatureFlag[\"EnableNewCardCombinedExpiryAutofill\"] = \"enable-new-card-combined-expiry-autofill\";\n    FeatureFlag[\"DelayFido2PageScriptInitWithinMv2\"] = \"delay-fido2-page-script-init-within-mv2\";\n    FeatureFlag[\"AccountDeprovisioning\"] = \"pm-10308-account-deprovisioning\";\n    FeatureFlag[\"NotificationBarAddLoginImprovements\"] = \"notification-bar-add-login-improvements\";\n    FeatureFlag[\"AC2476_DeprecateStripeSourcesAPI\"] = \"AC-2476-deprecate-stripe-sources-api\";\n    FeatureFlag[\"CipherKeyEncryption\"] = \"cipher-key-encryption\";\n    FeatureFlag[\"VerifiedSsoDomainEndpoint\"] = \"pm-12337-refactor-sso-details-endpoint\";\n    FeatureFlag[\"PM11901_RefactorSelfHostingLicenseUploader\"] = \"PM-11901-refactor-self-hosting-license-uploader\";\n    FeatureFlag[\"AccessIntelligence\"] = \"pm-13227-access-intelligence\";\n    FeatureFlag[\"Pm13322AddPolicyDefinitions\"] = \"pm-13322-add-policy-definitions\";\n    FeatureFlag[\"LimitCollectionCreationDeletionSplit\"] = \"pm-10863-limit-collection-creation-deletion-split\";\n})(FeatureFlag || (FeatureFlag = {}));\n// Helper to ensure the value is treated as a boolean.\nconst FALSE = false;\n/**\n * Default value for feature flags.\n *\n * DO NOT enable previously disabled flags, REMOVE them instead.\n * We support true as a value as we prefer flags to \"enable\" not \"disable\".\n */\nconst DefaultFeatureFlagValue = {\n    [FeatureFlag.BrowserFilelessImport]: FALSE,\n    [FeatureFlag.ItemShare]: FALSE,\n    [FeatureFlag.GeneratorToolsModernization]: FALSE,\n    [FeatureFlag.EnableConsolidatedBilling]: FALSE,\n    [FeatureFlag.AC1795_UpdatedSubscriptionStatusSection]: FALSE,\n    [FeatureFlag.ExtensionRefresh]: FALSE,\n    [FeatureFlag.PersistPopupView]: FALSE,\n    [FeatureFlag.PM4154_BulkEncryptionService]: FALSE,\n    [FeatureFlag.UseTreeWalkerApiForPageDetailsCollection]: FALSE,\n    [FeatureFlag.EmailVerification]: FALSE,\n    [FeatureFlag.InlineMenuFieldQualification]: FALSE,\n    [FeatureFlag.MemberAccessReport]: FALSE,\n    [FeatureFlag.TwoFactorComponentRefactor]: FALSE,\n    [FeatureFlag.EnableTimeThreshold]: FALSE,\n    [FeatureFlag.InlineMenuPositioningImprovements]: FALSE,\n    [FeatureFlag.ProviderClientVaultPrivacyBanner]: FALSE,\n    [FeatureFlag.VaultBulkManagementAction]: FALSE,\n    [FeatureFlag.IdpAutoSubmitLogin]: FALSE,\n    [FeatureFlag.UnauthenticatedExtensionUIRefresh]: FALSE,\n    [FeatureFlag.EnableUpgradePasswordManagerSub]: FALSE,\n    [FeatureFlag.GenerateIdentityFillScriptRefactor]: FALSE,\n    [FeatureFlag.EnableNewCardCombinedExpiryAutofill]: FALSE,\n    [FeatureFlag.DelayFido2PageScriptInitWithinMv2]: FALSE,\n    [FeatureFlag.AccountDeprovisioning]: FALSE,\n    [FeatureFlag.NotificationBarAddLoginImprovements]: FALSE,\n    [FeatureFlag.AC2476_DeprecateStripeSourcesAPI]: FALSE,\n    [FeatureFlag.CipherKeyEncryption]: FALSE,\n    [FeatureFlag.VerifiedSsoDomainEndpoint]: FALSE,\n    [FeatureFlag.PM11901_RefactorSelfHostingLicenseUploader]: FALSE,\n    [FeatureFlag.AccessIntelligence]: FALSE,\n    [FeatureFlag.Pm13322AddPolicyDefinitions]: FALSE,\n    [FeatureFlag.LimitCollectionCreationDeletionSplit]: FALSE,\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9184 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/feature-flag.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/http-status-code.enum.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/enums/http-status-code.enum.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   HttpStatusCode: () => (/* binding */ HttpStatusCode)\n/* harmony export */ });\n/**\n * Hypertext Transfer Protocol (HTTP) response status codes.\n *\n * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}\n * src: https://gist.github.com/RWOverdijk/6cef816cfdf5722228e01cc05fd4b094\n */\nvar HttpStatusCode;\n(function (HttpStatusCode) {\n    /**\n     * The server has received the request headers and the client should proceed to send the request body\n     * (in the case of a request for which a body needs to be sent; for example, a POST request).\n     * Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.\n     * To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request\n     * and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.\n     */\n    HttpStatusCode[HttpStatusCode[\"Continue\"] = 100] = \"Continue\";\n    /**\n     * The requester has asked the server to switch protocols and the server has agreed to do so.\n     */\n    HttpStatusCode[HttpStatusCode[\"SwitchingProtocols\"] = 101] = \"SwitchingProtocols\";\n    /**\n     * A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.\n     * This code indicates that the server has received and is processing the request, but no response is available yet.\n     * This prevents the client from timing out and assuming the request was lost.\n     */\n    HttpStatusCode[HttpStatusCode[\"Processing\"] = 102] = \"Processing\";\n    // **********************************************************************************************************\n    // 200s - SUCCESS\n    // **********************************************************************************************************\n    /**\n     * Standard response for successful HTTP requests.\n     * The actual response will depend on the request method used.\n     * In a GET request, the response will contain an entity corresponding to the requested resource.\n     * In a POST request, the response will contain an entity describing or containing the result of the action.\n     */\n    HttpStatusCode[HttpStatusCode[\"Ok\"] = 200] = \"Ok\";\n    /**\n     * The request has been fulfilled, resulting in the creation of a new resource.\n     */\n    HttpStatusCode[HttpStatusCode[\"Created\"] = 201] = \"Created\";\n    /**\n     * The request has been accepted for processing, but the processing has not been completed.\n     * The request might or might not be eventually acted upon, and may be disallowed when processing occurs.\n     */\n    HttpStatusCode[HttpStatusCode[\"Accepted\"] = 202] = \"Accepted\";\n    /**\n     * SINCE HTTP/1.1\n     * The server is a transforming proxy that received a 200 OK from its origin,\n     * but is returning a modified version of the origin's response.\n     */\n    HttpStatusCode[HttpStatusCode[\"NonAuthoritativeInformation\"] = 203] = \"NonAuthoritativeInformation\";\n    /**\n     * The server successfully processed the request and is not returning any content.\n     */\n    HttpStatusCode[HttpStatusCode[\"NoContent\"] = 204] = \"NoContent\";\n    /**\n     * The server successfully processed the request, but is not returning any content.\n     * Unlike a 204 response, this response requires that the requester reset the document view.\n     */\n    HttpStatusCode[HttpStatusCode[\"ResetContent\"] = 205] = \"ResetContent\";\n    /**\n     * The server is delivering only part of the resource (byte serving) due to a range header sent by the client.\n     * The range header is used by HTTP clients to enable resuming of interrupted downloads,\n     * or split a download into multiple simultaneous streams.\n     */\n    HttpStatusCode[HttpStatusCode[\"PartialContent\"] = 206] = \"PartialContent\";\n    /**\n     * The message body that follows is an XML message and can contain a number of separate response codes,\n     * depending on how many sub-requests were made.\n     */\n    HttpStatusCode[HttpStatusCode[\"MultiStatus\"] = 207] = \"MultiStatus\";\n    /**\n     * The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,\n     * and are not being included again.\n     */\n    HttpStatusCode[HttpStatusCode[\"AlreadyReported\"] = 208] = \"AlreadyReported\";\n    /**\n     * The server has fulfilled a request for the resource,\n     * and the response is a representation of the result of one or more instance-manipulations applied to the current instance.\n     */\n    HttpStatusCode[HttpStatusCode[\"ImUsed\"] = 226] = \"ImUsed\";\n    // **********************************************************************************************************\n    // 300s - Redirections\n    // **********************************************************************************************************\n    /**\n     * Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).\n     * For example, this code could be used to present multiple video format options,\n     * to list files with different filename extensions, or to suggest word-sense disambiguation.\n     */\n    HttpStatusCode[HttpStatusCode[\"MultipleChoices\"] = 300] = \"MultipleChoices\";\n    /**\n     * This and all future requests should be directed to the given URI.\n     */\n    HttpStatusCode[HttpStatusCode[\"MovedPermanently\"] = 301] = \"MovedPermanently\";\n    /**\n     * This is an example of industry practice contradicting the standard.\n     * The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect\n     * (the original describing phrase was \"Moved Temporarily\"), but popular browsers implemented 302\n     * with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307\n     * to distinguish between the two behaviours. However, some Web applications and frameworks\n     * use the 302 status code as if it were the 303.\n     */\n    HttpStatusCode[HttpStatusCode[\"Found\"] = 302] = \"Found\";\n    /**\n     * SINCE HTTP/1.1\n     * The response to the request can be found under another URI using a GET method.\n     * When received in response to a POST (or PUT/DELETE), the client should presume that\n     * the server has received the data and should issue a redirect with a separate GET message.\n     */\n    HttpStatusCode[HttpStatusCode[\"SeeOther\"] = 303] = \"SeeOther\";\n    /**\n     * Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.\n     * In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.\n     */\n    HttpStatusCode[HttpStatusCode[\"NotModified\"] = 304] = \"NotModified\";\n    /**\n     * SINCE HTTP/1.1\n     * The requested resource is available only through a proxy, the address for which is provided in the response.\n     * Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.\n     */\n    HttpStatusCode[HttpStatusCode[\"UseProxy\"] = 305] = \"UseProxy\";\n    /**\n     * No longer used. Originally meant \"Subsequent requests should use the specified proxy.\"\n     */\n    HttpStatusCode[HttpStatusCode[\"SwitchProxy\"] = 306] = \"SwitchProxy\";\n    /**\n     * SINCE HTTP/1.1\n     * In this case, the request should be repeated with another URI; however, future requests should still use the original URI.\n     * In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.\n     * For example, a POST request should be repeated using another POST request.\n     */\n    HttpStatusCode[HttpStatusCode[\"TemporaryRedirect\"] = 307] = \"TemporaryRedirect\";\n    /**\n     * The request and all future requests should be repeated using another URI.\n     * 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.\n     * So, for example, submitting a form to a permanently redirected resource may continue smoothly.\n     */\n    HttpStatusCode[HttpStatusCode[\"PermanentRedirect\"] = 308] = \"PermanentRedirect\";\n    // **********************************************************************************************************\n    // 400s - Client / User messed up\n    // **********************************************************************************************************\n    /**\n     * The server cannot or will not process the request due to an apparent client error\n     * (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).\n     */\n    HttpStatusCode[HttpStatusCode[\"BadRequest\"] = 400] = \"BadRequest\";\n    /**\n     * Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet\n     * been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the\n     * requested resource. See Basic access authentication and Digest access authentication. 401 semantically means\n     * \"unauthenticated\",i.e. the user does not have the necessary credentials.\n     */\n    HttpStatusCode[HttpStatusCode[\"Unauthorized\"] = 401] = \"Unauthorized\";\n    /**\n     * Reserved for future use. The original intention was that this code might be used as part of some form of digital\n     * cash or micro payment scheme, but that has not happened, and this code is not usually used.\n     * Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.\n     */\n    HttpStatusCode[HttpStatusCode[\"PaymentRequired\"] = 402] = \"PaymentRequired\";\n    /**\n     * The request was valid, but the server is refusing action.\n     * The user might not have the necessary permissions for a resource.\n     */\n    HttpStatusCode[HttpStatusCode[\"Forbidden\"] = 403] = \"Forbidden\";\n    /**\n     * The requested resource could not be found but may be available in the future.\n     * Subsequent requests by the client are permissible.\n     */\n    HttpStatusCode[HttpStatusCode[\"NotFound\"] = 404] = \"NotFound\";\n    /**\n     * A request method is not supported for the requested resource;\n     * for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.\n     */\n    HttpStatusCode[HttpStatusCode[\"MethodNotAllowed\"] = 405] = \"MethodNotAllowed\";\n    /**\n     * The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.\n     */\n    HttpStatusCode[HttpStatusCode[\"NotAcceptable\"] = 406] = \"NotAcceptable\";\n    /**\n     * The client must first authenticate itself with the proxy.\n     */\n    HttpStatusCode[HttpStatusCode[\"ProxyAuthenticationRequired\"] = 407] = \"ProxyAuthenticationRequired\";\n    /**\n     * The server timed out waiting for the request.\n     * According to HTTP specifications:\n     * \"The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.\"\n     */\n    HttpStatusCode[HttpStatusCode[\"RequestTimeout\"] = 408] = \"RequestTimeout\";\n    /**\n     * Indicates that the request could not be processed because of conflict in the request,\n     * such as an edit conflict between multiple simultaneous updates.\n     */\n    HttpStatusCode[HttpStatusCode[\"Conflict\"] = 409] = \"Conflict\";\n    /**\n     * Indicates that the resource requested is no longer available and will not be available again.\n     * This should be used when a resource has been intentionally removed and the resource should be purged.\n     * Upon receiving a 410 status code, the client should not request the resource in the future.\n     * Clients such as search engines should remove the resource from their indices.\n     * Most use cases do not require clients and search engines to purge the resource, and a \"404 Not Found\" may be used instead.\n     */\n    HttpStatusCode[HttpStatusCode[\"Gone\"] = 410] = \"Gone\";\n    /**\n     * The request did not specify the length of its content, which is required by the requested resource.\n     */\n    HttpStatusCode[HttpStatusCode[\"LengthRequired\"] = 411] = \"LengthRequired\";\n    /**\n     * The server does not meet one of the preconditions that the requester put on the request.\n     */\n    HttpStatusCode[HttpStatusCode[\"PreconditionFailed\"] = 412] = \"PreconditionFailed\";\n    /**\n     * The request is larger than the server is willing or able to process. Previously called \"Request Entity Too Large\".\n     */\n    HttpStatusCode[HttpStatusCode[\"PayloadTooLarge\"] = 413] = \"PayloadTooLarge\";\n    /**\n     * The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,\n     * in which case it should be converted to a POST request.\n     * Called \"Request-URI Too Long\" previously.\n     */\n    HttpStatusCode[HttpStatusCode[\"UriTooLong\"] = 414] = \"UriTooLong\";\n    /**\n     * The request entity has a media type which the server or resource does not support.\n     * For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.\n     */\n    HttpStatusCode[HttpStatusCode[\"UnsupportedMediaType\"] = 415] = \"UnsupportedMediaType\";\n    /**\n     * The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.\n     * For example, if the client asked for a part of the file that lies beyond the end of the file.\n     * Called \"Requested Range Not Satisfiable\" previously.\n     */\n    HttpStatusCode[HttpStatusCode[\"RangeNotSatisfiable\"] = 416] = \"RangeNotSatisfiable\";\n    /**\n     * The server cannot meet the requirements of the Expect request-header field.\n     */\n    HttpStatusCode[HttpStatusCode[\"ExpectationFailed\"] = 417] = \"ExpectationFailed\";\n    /**\n     * This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,\n     * and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by\n     * teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.\n     */\n    HttpStatusCode[HttpStatusCode[\"IAmATeapot\"] = 418] = \"IAmATeapot\";\n    /**\n     * The request was directed at a server that is not able to produce a response (for example because a connection reuse).\n     */\n    HttpStatusCode[HttpStatusCode[\"MisdirectedRequest\"] = 421] = \"MisdirectedRequest\";\n    /**\n     * The request was well-formed but was unable to be followed due to semantic errors.\n     */\n    HttpStatusCode[HttpStatusCode[\"UnprocessableEntity\"] = 422] = \"UnprocessableEntity\";\n    /**\n     * The resource that is being accessed is locked.\n     */\n    HttpStatusCode[HttpStatusCode[\"Locked\"] = 423] = \"Locked\";\n    /**\n     * The request failed due to failure of a previous request (e.g., a PROPPATCH).\n     */\n    HttpStatusCode[HttpStatusCode[\"FailedDependency\"] = 424] = \"FailedDependency\";\n    /**\n     * The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.\n     */\n    HttpStatusCode[HttpStatusCode[\"UpgradeRequired\"] = 426] = \"UpgradeRequired\";\n    /**\n     * The origin server requires the request to be conditional.\n     * Intended to prevent \"the 'lost update' problem, where a client\n     * GETs a resource's state, modifies it, and PUTs it back to the server,\n     * when meanwhile a third party has modified the state on the server, leading to a conflict.\"\n     */\n    HttpStatusCode[HttpStatusCode[\"PreconditionRequired\"] = 428] = \"PreconditionRequired\";\n    /**\n     * The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.\n     */\n    HttpStatusCode[HttpStatusCode[\"TooManyRequests\"] = 429] = \"TooManyRequests\";\n    /**\n     * The server is unwilling to process the request because either an individual header field,\n     * or all the header fields collectively, are too large.\n     */\n    HttpStatusCode[HttpStatusCode[\"RequestHeaderFieldsTooLarge\"] = 431] = \"RequestHeaderFieldsTooLarge\";\n    /**\n     * A server operator has received a legal demand to deny access to a resource or to a set of resources\n     * that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.\n     */\n    HttpStatusCode[HttpStatusCode[\"UnavailableForLegalReasons\"] = 451] = \"UnavailableForLegalReasons\";\n    // **********************************************************************************************************\n    // 500s - Server messed up\n    // **********************************************************************************************************\n    /**\n     * A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.\n     */\n    HttpStatusCode[HttpStatusCode[\"InternalServerError\"] = 500] = \"InternalServerError\";\n    /**\n     * The server either does not recognize the request method, or it lacks the ability to fulfill the request.\n     * Usually this implies future availability (e.g., a new feature of a web-service API).\n     */\n    HttpStatusCode[HttpStatusCode[\"NotImplemented\"] = 501] = \"NotImplemented\";\n    /**\n     * The server was acting as a gateway or proxy and received an invalid response from the upstream server.\n     */\n    HttpStatusCode[HttpStatusCode[\"BadGateway\"] = 502] = \"BadGateway\";\n    /**\n     * The server is currently unavailable (because it is overloaded or down for maintenance).\n     * Generally, this is a temporary state.\n     */\n    HttpStatusCode[HttpStatusCode[\"ServiceUnavailable\"] = 503] = \"ServiceUnavailable\";\n    /**\n     * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.\n     */\n    HttpStatusCode[HttpStatusCode[\"GatewayTimeout\"] = 504] = \"GatewayTimeout\";\n    /**\n     * The server does not support the HTTP protocol version used in the request\n     */\n    HttpStatusCode[HttpStatusCode[\"HttpVersionNotSupported\"] = 505] = \"HttpVersionNotSupported\";\n    /**\n     * Transparent content negotiation for the request results in a circular reference.\n     */\n    HttpStatusCode[HttpStatusCode[\"VariantAlsoNegotiates\"] = 506] = \"VariantAlsoNegotiates\";\n    /**\n     * The server is unable to store the representation needed to complete the request.\n     */\n    HttpStatusCode[HttpStatusCode[\"InsufficientStorage\"] = 507] = \"InsufficientStorage\";\n    /**\n     * The server detected an infinite loop while processing the request.\n     */\n    HttpStatusCode[HttpStatusCode[\"LoopDetected\"] = 508] = \"LoopDetected\";\n    /**\n     * Further extensions to the request are required for the server to fulfill it.\n     */\n    HttpStatusCode[HttpStatusCode[\"NotExtended\"] = 510] = \"NotExtended\";\n    /**\n     * The client needs to authenticate to gain network access.\n     * Intended for use by intercepting proxies used to control access to the network (e.g., \"captive portals\" used\n     * to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).\n     */\n    HttpStatusCode[HttpStatusCode[\"NetworkAuthenticationRequired\"] = 511] = \"NetworkAuthenticationRequired\";\n})(HttpStatusCode || (HttpStatusCode = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 23888 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/http-status-code.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/index.ts":
/*!********************************************!*\
  !*** ../../libs/common/src/enums/index.ts ***!
  \********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ClientType: () => (/* reexport safe */ _client_type_enum__WEBPACK_IMPORTED_MODULE_0__.ClientType),\n/* harmony export */   DesktopDeviceTypes: () => (/* reexport safe */ _device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DesktopDeviceTypes),\n/* harmony export */   DeviceType: () => (/* reexport safe */ _device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType),\n/* harmony export */   EventSystemUser: () => (/* reexport safe */ _event_system_user_enum__WEBPACK_IMPORTED_MODULE_2__.EventSystemUser),\n/* harmony export */   EventType: () => (/* reexport safe */ _event_type_enum__WEBPACK_IMPORTED_MODULE_3__.EventType),\n/* harmony export */   HttpStatusCode: () => (/* reexport safe */ _http_status_code_enum__WEBPACK_IMPORTED_MODULE_4__.HttpStatusCode),\n/* harmony export */   IntegrationType: () => (/* reexport safe */ _integration_type_enum__WEBPACK_IMPORTED_MODULE_5__.IntegrationType),\n/* harmony export */   MobileDeviceTypes: () => (/* reexport safe */ _device_type_enum__WEBPACK_IMPORTED_MODULE_1__.MobileDeviceTypes),\n/* harmony export */   NativeMessagingVersion: () => (/* reexport safe */ _native_messaging_version_enum__WEBPACK_IMPORTED_MODULE_6__.NativeMessagingVersion),\n/* harmony export */   NotificationType: () => (/* reexport safe */ _notification_type_enum__WEBPACK_IMPORTED_MODULE_7__.NotificationType)\n/* harmony export */ });\n/* harmony import */ var _client_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./client-type.enum */ \"../../libs/common/src/enums/client-type.enum.ts\");\n/* harmony import */ var _device_type_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./device-type.enum */ \"../../libs/common/src/enums/device-type.enum.ts\");\n/* harmony import */ var _event_system_user_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./event-system-user.enum */ \"../../libs/common/src/enums/event-system-user.enum.ts\");\n/* harmony import */ var _event_type_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./event-type.enum */ \"../../libs/common/src/enums/event-type.enum.ts\");\n/* harmony import */ var _http_status_code_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./http-status-code.enum */ \"../../libs/common/src/enums/http-status-code.enum.ts\");\n/* harmony import */ var _integration_type_enum__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./integration-type.enum */ \"../../libs/common/src/enums/integration-type.enum.ts\");\n/* harmony import */ var _native_messaging_version_enum__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./native-messaging-version.enum */ \"../../libs/common/src/enums/native-messaging-version.enum.ts\");\n/* harmony import */ var _notification_type_enum__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./notification-type.enum */ \"../../libs/common/src/enums/notification-type.enum.ts\");\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFtQztBQUNBO0FBQ007QUFDUDtBQUNNO0FBQ0E7QUFDUTtBQUNQIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL2luZGV4LnRzP2RjZWYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2xpZW50LXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGV2aWNlLXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZXZlbnQtc3lzdGVtLXVzZXIuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZXZlbnQtdHlwZS5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9odHRwLXN0YXR1cy1jb2RlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2ludGVncmF0aW9uLXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbmF0aXZlLW1lc3NhZ2luZy12ZXJzaW9uLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL25vdGlmaWNhdGlvbi10eXBlLmVudW1cIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/integration-type.enum.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/enums/integration-type.enum.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IntegrationType: () => (/* binding */ IntegrationType)\n/* harmony export */ });\nvar IntegrationType;\n(function (IntegrationType) {\n    IntegrationType[\"Integration\"] = \"integration\";\n    IntegrationType[\"SDK\"] = \"sdk\";\n})(IntegrationType || (IntegrationType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL2ludGVncmF0aW9uLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxlQUdYO0FBSEQsV0FBWSxlQUFlO0lBQ3pCLDhDQUEyQjtJQUMzQiw4QkFBVztBQUNiLENBQUMsRUFIVyxlQUFlLEtBQWYsZUFBZSxRQUcxQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9lbnVtcy9pbnRlZ3JhdGlvbi10eXBlLmVudW0udHM/Y2FkYSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBJbnRlZ3JhdGlvblR5cGUge1xuICBJbnRlZ3JhdGlvbiA9IFwiaW50ZWdyYXRpb25cIixcbiAgU0RLID0gXCJzZGtcIixcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/integration-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/native-messaging-version.enum.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/enums/native-messaging-version.enum.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NativeMessagingVersion: () => (/* binding */ NativeMessagingVersion)\n/* harmony export */ });\nvar NativeMessagingVersion;\n(function (NativeMessagingVersion) {\n    NativeMessagingVersion[NativeMessagingVersion[\"One\"] = 1] = \"One\";\n    NativeMessagingVersion[NativeMessagingVersion[\"Latest\"] = 1] = \"Latest\";\n})(NativeMessagingVersion || (NativeMessagingVersion = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL25hdGl2ZS1tZXNzYWdpbmctdmVyc2lvbi5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLHNCQUdYO0FBSEQsV0FBWSxzQkFBc0I7SUFDaEMsaUVBQU87SUFDUCx1RUFBWTtBQUNkLENBQUMsRUFIVyxzQkFBc0IsS0FBdEIsc0JBQXNCLFFBR2pDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL25hdGl2ZS1tZXNzYWdpbmctdmVyc2lvbi5lbnVtLnRzPzdiZjUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gTmF0aXZlTWVzc2FnaW5nVmVyc2lvbiB7XG4gIE9uZSA9IDEsIC8vIE9yaWdpbmFsIGltcGxlbWVudGF0aW9uXG4gIExhdGVzdCA9IE9uZSxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/native-messaging-version.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/notification-type.enum.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/enums/notification-type.enum.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NotificationType: () => (/* binding */ NotificationType)\n/* harmony export */ });\nvar NotificationType;\n(function (NotificationType) {\n    NotificationType[NotificationType[\"SyncCipherUpdate\"] = 0] = \"SyncCipherUpdate\";\n    NotificationType[NotificationType[\"SyncCipherCreate\"] = 1] = \"SyncCipherCreate\";\n    NotificationType[NotificationType[\"SyncLoginDelete\"] = 2] = \"SyncLoginDelete\";\n    NotificationType[NotificationType[\"SyncFolderDelete\"] = 3] = \"SyncFolderDelete\";\n    NotificationType[NotificationType[\"SyncCiphers\"] = 4] = \"SyncCiphers\";\n    NotificationType[NotificationType[\"SyncVault\"] = 5] = \"SyncVault\";\n    NotificationType[NotificationType[\"SyncOrgKeys\"] = 6] = \"SyncOrgKeys\";\n    NotificationType[NotificationType[\"SyncFolderCreate\"] = 7] = \"SyncFolderCreate\";\n    NotificationType[NotificationType[\"SyncFolderUpdate\"] = 8] = \"SyncFolderUpdate\";\n    NotificationType[NotificationType[\"SyncCipherDelete\"] = 9] = \"SyncCipherDelete\";\n    NotificationType[NotificationType[\"SyncSettings\"] = 10] = \"SyncSettings\";\n    NotificationType[NotificationType[\"LogOut\"] = 11] = \"LogOut\";\n    NotificationType[NotificationType[\"SyncSendCreate\"] = 12] = \"SyncSendCreate\";\n    NotificationType[NotificationType[\"SyncSendUpdate\"] = 13] = \"SyncSendUpdate\";\n    NotificationType[NotificationType[\"SyncSendDelete\"] = 14] = \"SyncSendDelete\";\n    NotificationType[NotificationType[\"AuthRequest\"] = 15] = \"AuthRequest\";\n    NotificationType[NotificationType[\"AuthRequestResponse\"] = 16] = \"AuthRequestResponse\";\n    NotificationType[NotificationType[\"SyncOrganizations\"] = 17] = \"SyncOrganizations\";\n})(NotificationType || (NotificationType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vb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luY1NlbmRDcmVhdGUgPSAxMixcbiAgU3luY1NlbmRVcGRhdGUgPSAxMyxcbiAgU3luY1NlbmREZWxldGUgPSAxNCxcblxuICBBdXRoUmVxdWVzdCA9IDE1LFxuICBBdXRoUmVxdWVzdFJlc3BvbnNlID0gMTYsXG5cbiAgU3luY09yZ2FuaXphdGlvbnMgPSAxNyxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/notification-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/enums/vault-timeout-action.enum.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/enums/vault-timeout-action.enum.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultTimeoutAction: () => (/* binding */ VaultTimeoutAction)\n/* harmony export */ });\nvar VaultTimeoutAction;\n(function (VaultTimeoutAction) {\n    VaultTimeoutAction[\"Lock\"] = \"lock\";\n    VaultTimeoutAction[\"LogOut\"] = \"logOut\";\n})(VaultTimeoutAction || (VaultTimeoutAction = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL2VudW1zL3ZhdWx0LXRpbWVvdXQtYWN0aW9uLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksa0JBR1g7QUFIRCxXQUFZLGtCQUFrQjtJQUM1QixtQ0FBYTtJQUNiLHVDQUFpQjtBQUNuQixDQUFDLEVBSFcsa0JBQWtCLEtBQWxCLGtCQUFrQixRQUc3QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9lbnVtcy92YXVsdC10aW1lb3V0LWFjdGlvbi5lbnVtLnRzP2FjYTYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gVmF1bHRUaW1lb3V0QWN0aW9uIHtcbiAgTG9jayA9IFwibG9ja1wiLFxuICBMb2dPdXQgPSBcImxvZ091dFwiLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/enums/vault-timeout-action.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/data/event.data.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/models/data/event.data.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventData: () => (/* binding */ EventData)\n/* harmony export */ });\nclass EventData {\n    static fromJSON(obj) {\n        return Object.assign(new EventData(), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9kYXRhL2V2ZW50LmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUlPLE1BQU0sU0FBUztJQU1wQixNQUFNLENBQUMsUUFBUSxDQUFDLEdBQXVCO1FBQ3JDLE9BQU8sTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLFNBQVMsRUFBRSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBQzdDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9tb2RlbHMvZGF0YS9ldmVudC5kYXRhLnRzPzJjNzEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSnNvbmlmeSB9IGZyb20gXCJ0eXBlLWZlc3RcIjtcblxuaW1wb3J0IHsgRXZlbnRUeXBlIH0gZnJvbSBcIi4uLy4uL2VudW1zXCI7XG5cbmV4cG9ydCBjbGFzcyBFdmVudERhdGEge1xuICB0eXBlOiBFdmVudFR5cGU7XG4gIGNpcGhlcklkOiBzdHJpbmc7XG4gIGRhdGU6IHN0cmluZztcbiAgb3JnYW5pemF0aW9uSWQ6IHN0cmluZztcblxuICBzdGF0aWMgZnJvbUpTT04ob2JqOiBKc29uaWZ5PEV2ZW50RGF0YT4pOiBFdmVudERhdGEge1xuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG5ldyBFdmVudERhdGEoKSwgb2JqKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/data/event.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/domain/domain-service.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/models/domain/domain-service.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UriMatchStrategy: () => (/* binding */ UriMatchStrategy)\n/* harmony export */ });\n/*\n  See full documentation at:\n    https://bitwarden.com/help/uri-match-detection/#match-detection-options\n\n  Domain: \"the top-level domain and second-level domain of the URI match the detected resource\",\n  Host: \"the hostname and (if specified) port of the URI matches the detected resource\",\n  StartsWith: \"the detected resource starts with the URI, regardless of what follows it\",\n  Exact: \"the URI matches the detected resource exactly\",\n  RegularExpression: \"the detected resource matches a specified regular expression\",\n  Never: \"never offer auto-fill for the item\",\n*/\nconst UriMatchStrategy = {\n    Domain: 0,\n    Host: 1,\n    StartsWith: 2,\n    Exact: 3,\n    RegularExpression: 4,\n    Never: 5,\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGl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lIGV4YWN0bHlcIixcbiAgUmVndWxhckV4cHJlc3Npb246IFwidGhlIGRldGVjdGVkIHJlc291cmNlIG1hdGNoZXMgYSBzcGVjaWZpZWQgcmVndWxhciBleHByZXNzaW9uXCIsXG4gIE5ldmVyOiBcIm5ldmVyIG9mZmVyIGF1dG8tZmlsbCBmb3IgdGhlIGl0ZW1cIixcbiovXG5leHBvcnQgY29uc3QgVXJpTWF0Y2hTdHJhdGVneSA9IHtcbiAgRG9tYWluOiAwLFxuICBIb3N0OiAxLFxuICBTdGFydHNXaXRoOiAyLFxuICBFeGFjdDogMyxcbiAgUmVndWxhckV4cHJlc3Npb246IDQsXG4gIE5ldmVyOiA1LFxufSBhcyBjb25zdDtcblxuZXhwb3J0IHR5cGUgVXJpTWF0Y2hTdHJhdGVneVNldHRpbmcgPSAodHlwZW9mIFVyaU1hdGNoU3RyYXRlZ3kpW2tleW9mIHR5cGVvZiBVcmlNYXRjaFN0cmF0ZWd5XTtcblxuLy8gdXNpbmcgdW5pcXVlbmVzcyBwcm9wZXJ0aWVzIG9mIG9iamVjdCBzaGFwZSBvdmVyIFNldCBmb3IgZWFzZSBvZiBzdGF0ZSBzdG9yYWJpbGl0eVxuZXhwb3J0IHR5cGUgTmV2ZXJEb21haW5zID0geyBbaWQ6IHN0cmluZ106IG51bGwgfTtcbmV4cG9ydCB0eXBlIEVxdWl2YWxlbnREb21haW5zID0gc3RyaW5nW11bXTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/domain/domain-service.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/card.export.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/models/export/card.export.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardExport: () => (/* binding */ CardExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/card */ \"../../libs/common/src/vault/models/domain/card.ts\");\n/* harmony import */ var _vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\nclass CardExport {\n    static template() {\n        const req = new CardExport();\n        req.cardholderName = \"John Doe\";\n        req.brand = \"visa\";\n        req.number = \"4242424242424242\";\n        req.expMonth = \"04\";\n        req.expYear = \"2023\";\n        req.code = \"123\";\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_2__.CardView()) {\n        view.cardholderName = req.cardholderName;\n        view.brand = req.brand;\n        view.number = req.number;\n        view.expMonth = req.expMonth;\n        view.expYear = req.expYear;\n        view.code = req.code;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_card__WEBPACK_IMPORTED_MODULE_1__.Card()) {\n        domain.cardholderName = req.cardholderName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.cardholderName) : null;\n        domain.brand = req.brand != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.brand) : null;\n        domain.number = req.number != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.number) : null;\n        domain.expMonth = req.expMonth != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.expMonth) : null;\n        domain.expYear = req.expYear != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.expYear) : null;\n        domain.code = req.code != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.code) : null;\n        return domain;\n    }\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.cardholderName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.cardholderName);\n        this.brand = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.brand);\n        this.number = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.number);\n        this.expMonth = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.expMonth);\n        this.expYear = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.expYear);\n        this.code = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.code);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5596 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/card.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/cipher-with-ids.export.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/models/export/cipher-with-ids.export.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherWithIdExport: () => (/* binding */ CipherWithIdExport)\n/* harmony export */ });\n/* harmony import */ var _cipher_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cipher.export */ \"../../libs/common/src/models/export/cipher.export.ts\");\n\nclass CipherWithIdExport extends _cipher_export__WEBPACK_IMPORTED_MODULE_0__.CipherExport {\n    // Use build method instead of ctor so that we can control order of JSON stringify for pretty print\n    build(o) {\n        this.id = o.id;\n        super.build(o);\n        this.collectionIds = o.collectionIds;\n    }\n}\n//# sourceURL=[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IGluc3RlYWQgb2YgY3RvciBzbyB0aGF0IHdlIGNhbiBjb250cm9sIG9yZGVyIG9mIEpTT04gc3RyaW5naWZ5IGZvciBwcmV0dHkgcHJpbnRcbiAgYnVpbGQobzogQ2lwaGVyVmlldyB8IENpcGhlckRvbWFpbikge1xuICAgIHRoaXMuaWQgPSBvLmlkO1xuICAgIHN1cGVyLmJ1aWxkKG8pO1xuICAgIHRoaXMuY29sbGVjdGlvbklkcyA9IG8uY29sbGVjdGlvbklkcztcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/cipher-with-ids.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/cipher.export.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/models/export/cipher.export.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherExport: () => (/* binding */ CipherExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/enums/cipher-reprompt-type */ \"../../libs/common/src/vault/enums/cipher-reprompt-type.ts\");\n/* harmony import */ var _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/enums/cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\n/* harmony import */ var _vault_models_domain_cipher__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vault/models/domain/cipher */ \"../../libs/common/src/vault/models/domain/cipher.ts\");\n/* harmony import */ var _vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _card_export__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./card.export */ \"../../libs/common/src/models/export/card.export.ts\");\n/* harmony import */ var _field_export__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./field.export */ \"../../libs/common/src/models/export/field.export.ts\");\n/* harmony import */ var _identity_export__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./identity.export */ \"../../libs/common/src/models/export/identity.export.ts\");\n/* harmony import */ var _login_export__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./login.export */ \"../../libs/common/src/models/export/login.export.ts\");\n/* harmony import */ var _password_history_export__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./password-history.export */ \"../../libs/common/src/models/export/password-history.export.ts\");\n/* harmony import */ var _secure_note_export__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./secure-note.export */ \"../../libs/common/src/models/export/secure-note.export.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\nclass CipherExport {\n    constructor() {\n        this.passwordHistory = null;\n        this.revisionDate = null;\n        this.creationDate = null;\n        this.deletedDate = null;\n    }\n    static template() {\n        const req = new CipherExport();\n        req.organizationId = null;\n        req.collectionIds = null;\n        req.folderId = null;\n        req.type = _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Login;\n        req.name = \"Item name\";\n        req.notes = \"Some notes about this item.\";\n        req.favorite = false;\n        req.fields = [];\n        req.login = null;\n        req.secureNote = null;\n        req.card = null;\n        req.identity = null;\n        req.reprompt = _vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__.CipherRepromptType.None;\n        req.passwordHistory = [];\n        req.creationDate = null;\n        req.revisionDate = null;\n        req.deletedDate = null;\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_4__.CipherView()) {\n        var _a, _b, _c;\n        view.type = req.type;\n        view.folderId = req.folderId;\n        if (view.organizationId == null) {\n            view.organizationId = req.organizationId;\n        }\n        if (view.collectionIds || req.collectionIds) {\n            const set = new Set(((_a = view.collectionIds) !== null && _a !== void 0 ? _a : []).concat((_b = req.collectionIds) !== null && _b !== void 0 ? _b : []));\n            view.collectionIds = Array.from(set.values());\n        }\n        view.name = req.name;\n        view.notes = req.notes;\n        view.favorite = req.favorite;\n        view.reprompt = (_c = req.reprompt) !== null && _c !== void 0 ? _c : _vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__.CipherRepromptType.None;\n        if (req.fields != null) {\n            view.fields = req.fields.map((f) => _field_export__WEBPACK_IMPORTED_MODULE_6__.FieldExport.toView(f));\n        }\n        switch (req.type) {\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Login:\n                view.login = _login_export__WEBPACK_IMPORTED_MODULE_8__.LoginExport.toView(req.login);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.SecureNote:\n                view.secureNote = _secure_note_export__WEBPACK_IMPORTED_MODULE_10__.SecureNoteExport.toView(req.secureNote);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Card:\n                view.card = _card_export__WEBPACK_IMPORTED_MODULE_5__.CardExport.toView(req.card);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Identity:\n                view.identity = _identity_export__WEBPACK_IMPORTED_MODULE_7__.IdentityExport.toView(req.identity);\n                break;\n        }\n        if (req.passwordHistory != null) {\n            view.passwordHistory = req.passwordHistory.map((ph) => _password_history_export__WEBPACK_IMPORTED_MODULE_9__.PasswordHistoryExport.toView(ph));\n        }\n        view.creationDate = req.creationDate;\n        view.revisionDate = req.revisionDate;\n        view.deletedDate = req.deletedDate;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_cipher__WEBPACK_IMPORTED_MODULE_3__.Cipher()) {\n        var _a;\n        domain.type = req.type;\n        domain.folderId = req.folderId;\n        if (domain.organizationId == null) {\n            domain.organizationId = req.organizationId;\n        }\n        domain.name = req.name != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.name) : null;\n        domain.notes = req.notes != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.notes) : null;\n        domain.favorite = req.favorite;\n        domain.reprompt = (_a = req.reprompt) !== null && _a !== void 0 ? _a : _vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__.CipherRepromptType.None;\n        domain.key = req.key != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.key) : null;\n        if (req.fields != null) {\n            domain.fields = req.fields.map((f) => _field_export__WEBPACK_IMPORTED_MODULE_6__.FieldExport.toDomain(f));\n        }\n        switch (req.type) {\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Login:\n                domain.login = _login_export__WEBPACK_IMPORTED_MODULE_8__.LoginExport.toDomain(req.login);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.SecureNote:\n                domain.secureNote = _secure_note_export__WEBPACK_IMPORTED_MODULE_10__.SecureNoteExport.toDomain(req.secureNote);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Card:\n                domain.card = _card_export__WEBPACK_IMPORTED_MODULE_5__.CardExport.toDomain(req.card);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Identity:\n                domain.identity = _identity_export__WEBPACK_IMPORTED_MODULE_7__.IdentityExport.toDomain(req.identity);\n                break;\n        }\n        if (req.passwordHistory != null) {\n            domain.passwordHistory = req.passwordHistory.map((ph) => _password_history_export__WEBPACK_IMPORTED_MODULE_9__.PasswordHistoryExport.toDomain(ph));\n        }\n        domain.creationDate = req.creationDate;\n        domain.revisionDate = req.revisionDate;\n        domain.deletedDate = req.deletedDate;\n        return domain;\n    }\n    // Use build method instead of ctor so that we can control order of JSON stringify for pretty print\n    build(o) {\n        var _a;\n        this.organizationId = o.organizationId;\n        this.folderId = o.folderId;\n        this.type = o.type;\n        this.reprompt = o.reprompt;\n        this.name = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.safeGetString)(o.name);\n        this.notes = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.safeGetString)(o.notes);\n        if (\"key\" in o) {\n            this.key = (_a = o.key) === null || _a === void 0 ? void 0 : _a.encryptedString;\n        }\n        this.favorite = o.favorite;\n        if (o.fields != null) {\n            this.fields = o.fields.map((f) => new _field_export__WEBPACK_IMPORTED_MODULE_6__.FieldExport(f));\n        }\n        switch (o.type) {\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Login:\n                this.login = new _login_export__WEBPACK_IMPORTED_MODULE_8__.LoginExport(o.login);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.SecureNote:\n                this.secureNote = new _secure_note_export__WEBPACK_IMPORTED_MODULE_10__.SecureNoteExport(o.secureNote);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Card:\n                this.card = new _card_export__WEBPACK_IMPORTED_MODULE_5__.CardExport(o.card);\n                break;\n            case _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_2__.CipherType.Identity:\n                this.identity = new _identity_export__WEBPACK_IMPORTED_MODULE_7__.IdentityExport(o.identity);\n                break;\n        }\n        if (o.passwordHistory != null) {\n            this.passwordHistory = o.passwordHistory.map((ph) => new _password_history_export__WEBPACK_IMPORTED_MODULE_9__.PasswordHistoryExport(ph));\n        }\n        this.creationDate = o.creationDate;\n        this.revisionDate = o.revisionDate;\n        this.deletedDate = o.deletedDate;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16264 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/cipher.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/collection-with-id.export.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/models/export/collection-with-id.export.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionWithIdExport: () => (/* binding */ CollectionWithIdExport)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _collection_export__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collection.export */ \"../../libs/common/src/models/export/collection.export.ts\");\n\n\nclass CollectionWithIdExport extends _collection_export__WEBPACK_IMPORTED_MODULE_1__.CollectionExport {\n    static toView(req, view = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionView()) {\n        view.id = req.id;\n        return super.toView(req, view);\n    }\n    static toDomain(req, domain = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.Collection()) {\n        domain.id = req.id;\n        return super.toDomain(req, domain);\n    }\n    // Use build method instead of ctor so that we can control order of JSON stringify for pretty print\n    build(o) {\n        this.id = o.id;\n        super.build(o);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvY29sbGVjdGlvbi13aXRoLWlkLmV4cG9ydC50cyIsIm1hcHBpbmdzIjoiO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cG9ydCB9IGZyb20gXCIuL2NvbGxlY3Rpb24uZXhwb3J0XCI7XG5cbmV4cG9ydCBjbGFzcyBDb2xsZWN0aW9uV2l0aElkRXhwb3J0IGV4dGVuZHMgQ29sbGVjdGlvbkV4cG9ydCB7XG4gIGlkOiBzdHJpbmc7XG5cbiAgc3RhdGljIHRvVmlldyhyZXE6IENvbGxlY3Rpb25XaXRoSWRFeHBvcnQsIHZpZXcgPSBuZXcgQ29sbGVjdGlvblZpZXcoKSkge1xuICAgIHZpZXcuaWQgPSByZXEuaWQ7XG4gICAgcmV0dXJuIHN1cGVyLnRvVmlldyhyZXEsIHZpZXcpO1xuICB9XG5cbiAgc3RhdGljIHRvRG9tYWluKHJlcTogQ29sbGVjdGlvbldpdGhJZEV4cG9ydCwgZG9tYWluID0gbmV3IENvbGxlY3Rpb25Eb21haW4oKSkge1xuICAgIGRvbWFpbi5pZCA9IHJlcS5pZDtcbiAgICByZXR1cm4gc3VwZXIudG9Eb21haW4ocmVxLCBkb21haW4pO1xuICB9XG5cbiAgLy8gVXNlIGJ1aWxkIG1ldGhvZCBpbnN0ZWFkIG9mIGN0b3Igc28gdGhhdCB3ZSBjYW4gY29udHJvbCBvcmRlciBvZiBKU09OIHN0cmluZ2lmeSBmb3IgcHJldHR5IHByaW50XG4gIGJ1aWxkKG86IENvbGxlY3Rpb25WaWV3IHwgQ29sbGVjdGlvbkRvbWFpbikge1xuICAgIHRoaXMuaWQgPSBvLmlkO1xuICAgIHN1cGVyLmJ1aWxkKG8pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/collection-with-id.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/collection.export.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/models/export/collection.export.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionExport: () => (/* binding */ CollectionExport)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\nclass CollectionExport {\n    static template() {\n        const req = new CollectionExport();\n        req.organizationId = \"00000000-0000-0000-0000-000000000000\";\n        req.name = \"Collection name\";\n        req.externalId = null;\n        return req;\n    }\n    static toView(req, view = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionView()) {\n        view.name = req.name;\n        view.externalId = req.externalId;\n        if (view.organizationId == null) {\n            view.organizationId = req.organizationId;\n        }\n        return view;\n    }\n    static toDomain(req, domain = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.Collection()) {\n        domain.name = req.name != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(req.name) : null;\n        domain.externalId = req.externalId;\n        if (domain.organizationId == null) {\n            domain.organizationId = req.organizationId;\n        }\n        return domain;\n    }\n    // Use build method instead of ctor so that we can control order of JSON stringify for pretty print\n    build(o) {\n        this.organizationId = o.organizationId;\n        this.name = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.safeGetString)(o.name);\n        this.externalId = o.externalId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvY29sbGVjdGlvbi5leHBvcn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2QgaW5zdGVhZCBvZiBjdG9yIHNvIHRoYXQgd2UgY2FuIGNvbnRyb2wgb3JkZXIgb2YgSlNPTiBzdHJpbmdpZnkgZm9yIHByZXR0eSBwcmludFxuICBidWlsZChvOiBDb2xsZWN0aW9uVmlldyB8IENvbGxlY3Rpb25Eb21haW4pIHtcbiAgICB0aGlzLm9yZ2FuaXphdGlvbklkID0gby5vcmdhbml6YXRpb25JZDtcbiAgICB0aGlzLm5hbWUgPSBzYWZlR2V0U3RyaW5nKG8ubmFtZSk7XG4gICAgdGhpcy5leHRlcm5hbElkID0gby5leHRlcm5hbElkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/collection.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/fido2-credential.export.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/models/export/fido2-credential.export.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Fido2CredentialExport: () => (/* binding */ Fido2CredentialExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_fido2_credential__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/fido2-credential */ \"../../libs/common/src/vault/models/domain/fido2-credential.ts\");\n/* harmony import */ var _vault_models_view_fido2_credential_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/fido2-credential.view */ \"../../libs/common/src/vault/models/view/fido2-credential.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\n/**\n * Represents format of Fido2 Credentials in JSON exports.\n */\nclass Fido2CredentialExport {\n    /**\n     * Generates a template for Fido2CredentialExport\n     * @returns Instance of Fido2CredentialExport with predefined values.\n     */\n    static template() {\n        const req = new Fido2CredentialExport();\n        req.credentialId = \"keyId\";\n        req.keyType = \"keyType\";\n        req.keyAlgorithm = \"keyAlgorithm\";\n        req.keyCurve = \"keyCurve\";\n        req.keyValue = \"keyValue\";\n        req.rpId = \"rpId\";\n        req.userHandle = \"userHandle\";\n        req.userName = \"userName\";\n        req.counter = \"counter\";\n        req.rpName = \"rpName\";\n        req.userDisplayName = \"userDisplayName\";\n        req.discoverable = \"false\";\n        req.creationDate = null;\n        return req;\n    }\n    /**\n     * Converts a Fido2CredentialExport object to its view representation.\n     * @param req - The Fido2CredentialExport object to be converted.\n     * @param view - (Optional) The Fido2CredentialView object to popualte with Fido2CredentialExport data\n     * @returns Fido2CredentialView - The populated view, or a new instance if none was provided.\n     */\n    static toView(req, view = new _vault_models_view_fido2_credential_view__WEBPACK_IMPORTED_MODULE_2__.Fido2CredentialView()) {\n        view.credentialId = req.credentialId;\n        view.keyType = req.keyType;\n        view.keyAlgorithm = req.keyAlgorithm;\n        view.keyCurve = req.keyCurve;\n        view.keyValue = req.keyValue;\n        view.rpId = req.rpId;\n        view.userHandle = req.userHandle;\n        view.userName = req.userName;\n        view.counter = parseInt(req.counter);\n        view.rpName = req.rpName;\n        view.userDisplayName = req.userDisplayName;\n        view.discoverable = req.discoverable === \"true\";\n        view.creationDate = new Date(req.creationDate);\n        return view;\n    }\n    /**\n     * Converts a Fido2CredentialExport object to its domain representation.\n     * @param req - The Fido2CredentialExport object to be converted.\n     * @param domain - (Optional) The Fido2Credential object to popualte with Fido2CredentialExport data\n     * @returns Fido2Credential - The populated domain, or a new instance if none was provided.\n     */\n    static toDomain(req, domain = new _vault_models_domain_fido2_credential__WEBPACK_IMPORTED_MODULE_1__.Fido2Credential()) {\n        domain.credentialId = req.credentialId != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.credentialId) : null;\n        domain.keyType = req.keyType != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.keyType) : null;\n        domain.keyAlgorithm = req.keyAlgorithm != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.keyAlgorithm) : null;\n        domain.keyCurve = req.keyCurve != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.keyCurve) : null;\n        domain.keyValue = req.keyValue != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.keyValue) : null;\n        domain.rpId = req.rpId != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.rpId) : null;\n        domain.userHandle = req.userHandle != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.userHandle) : null;\n        domain.userName = req.userName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.userName) : null;\n        domain.counter = req.counter != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.counter) : null;\n        domain.rpName = req.rpName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.rpName) : null;\n        domain.userDisplayName =\n            req.userDisplayName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.userDisplayName) : null;\n        domain.discoverable = req.discoverable != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.discoverable) : null;\n        domain.creationDate = req.creationDate;\n        return domain;\n    }\n    /**\n     * Constructs a new Fid2CredentialExport instance.\n     *\n     * @param o - The credential storing the data being exported. When not provided, an empty export is created instead.\n     */\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.credentialId = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.credentialId);\n        this.keyType = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.keyType);\n        this.keyAlgorithm = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.keyAlgorithm);\n        this.keyCurve = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.keyCurve);\n        this.keyValue = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.keyValue);\n        this.rpId = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.rpId);\n        this.userHandle = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.userHandle);\n        this.userName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.userName);\n        this.counter = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(String(o.counter));\n        this.rpName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.rpName);\n        this.userDisplayName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.userDisplayName);\n        this.discoverable = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(String(o.discoverable));\n        this.creationDate = o.creationDate;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12236 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/fido2-credential.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/field.export.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/models/export/field.export.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FieldExport: () => (/* binding */ FieldExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _vault_models_domain_field__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/domain/field */ \"../../libs/common/src/vault/models/domain/field.ts\");\n/* harmony import */ var _vault_models_view_field_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vault/models/view/field.view */ \"../../libs/common/src/vault/models/view/field.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\n\nclass FieldExport {\n    static template() {\n        const req = new FieldExport();\n        req.name = \"Field name\";\n        req.value = \"Some value\";\n        req.type = _vault_enums__WEBPACK_IMPORTED_MODULE_1__.FieldType.Text;\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_field_view__WEBPACK_IMPORTED_MODULE_3__.FieldView()) {\n        view.type = req.type;\n        view.value = req.value;\n        view.name = req.name;\n        view.linkedId = req.linkedId;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_field__WEBPACK_IMPORTED_MODULE_2__.Field()) {\n        domain.type = req.type;\n        domain.value = req.value != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.value) : null;\n        domain.name = req.name != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.name) : null;\n        domain.linkedId = req.linkedId;\n        return domain;\n    }\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.name = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.safeGetString)(o.name);\n        this.value = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.safeGetString)(o.value);\n        this.type = o.type;\n        this.linkedId = o.linkedId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data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cocmVxLnZhbHVlKSA6IG51bGw7XG4gICAgZG9tYWluLm5hbWUgPSByZXEubmFtZSAhPSBudWxsID8gbmV3IEVuY1N0cmluZyhyZXEubmFtZSkgOiBudWxsO1xuICAgIGRvbWFpbi5saW5rZWRJZCA9IHJlcS5saW5rZWRJZDtcbiAgICByZXR1cm4gZG9tYWluO1xuICB9XG5cbiAgbmFtZTogc3RyaW5nO1xuICB2YWx1ZTogc3RyaW5nO1xuICB0eXBlOiBGaWVsZFR5cGU7XG4gIGxpbmtlZElkOiBMaW5rZWRJZFR5cGU7XG5cbiAgY29uc3RydWN0b3Iobz86IEZpZWxkVmlldyB8IEZpZWxkRG9tYWluKSB7XG4gICAgaWYgKG8gPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMubmFtZSA9IHNhZmVHZXRTdHJpbmcoby5uYW1lKTtcbiAgICB0aGlzLnZhbHVlID0gc2FmZUdldFN0cmluZyhvLnZhbHVlKTtcbiAgICB0aGlzLnR5cGUgPSBvLnR5cGU7XG4gICAgdGhpcy5saW5rZWRJZCA9IG8ubGlua2VkSWQ7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/field.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/folder-with-id.export.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/models/export/folder-with-id.export.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderWithIdExport: () => (/* binding */ FolderWithIdExport)\n/* harmony export */ });\n/* harmony import */ var _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../vault/models/domain/folder */ \"../../libs/common/src/vault/models/domain/folder.ts\");\n/* harmony import */ var _vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _folder_export__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./folder.export */ \"../../libs/common/src/models/export/folder.export.ts\");\n\n\n\nclass FolderWithIdExport extends _folder_export__WEBPACK_IMPORTED_MODULE_2__.FolderExport {\n    static toView(req, view = new _vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_1__.FolderView()) {\n        view.id = req.id;\n        return super.toView(req, view);\n    }\n    static toDomain(req, domain = new _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_0__.Folder()) {\n        domain.id = req.id;\n        return super.toDomain(req, domain);\n    }\n    // Use build method instead of ctor so that we can control order of JSON stringify for pretty print\n    build(o) {\n        this.id = o.id;\n        super.build(o);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvZm9sZGVyLXdpdGgtaWQuZXhwb3J0LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBMEU7QUFDVDtBQUVsQjtBQUV4QyxNQUFNLGtCQUFtQixTQUFRLHdEQUFZO0lBR2xELE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBdUIsRUFBRSxJQUFJLEdBQUcsSUFBSSxzRUFBVSxFQUFFO1FBQzVELElBQUksQ0FBQyxFQUFFLEdBQUcsR0FBRyxDQUFDLEVBQUUsQ0FBQztRQUNqQixPQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQ2pDLENBQUM7SUFFRCxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQXVCLEVBQUUsTUFBTSxHQUFHLElBQUksK0RBQVksRUFBRTtRQUNsRSxNQUFNLENBQUMsRUF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l0aElkRXhwb3J0LCBkb21haW4gPSBuZXcgRm9sZGVyRG9tYWluKCkpIHtcbiAgICBkb21haW4uaWQgPSByZXEuaWQ7XG4gICAgcmV0dXJuIHN1cGVyLnRvRG9tYWluKHJlcSwgZG9tYWluKTtcbiAgfVxuXG4gIC8vIFVzZSBidWlsZCBtZXRob2QgaW5zdGVhZCBvZiBjdG9yIHNvIHRoYXQgd2UgY2FuIGNvbnRyb2wgb3JkZXIgb2YgSlNPTiBzdHJpbmdpZnkgZm9yIHByZXR0eSBwcmludFxuICBidWlsZChvOiBGb2xkZXJWaWV3IHwgRm9sZGVyRG9tYWluKSB7XG4gICAgdGhpcy5pZCA9IG8uaWQ7XG4gICAgc3VwZXIuYnVpbGQobyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/folder-with-id.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/folder.export.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/models/export/folder.export.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderExport: () => (/* binding */ FolderExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/folder */ \"../../libs/common/src/vault/models/domain/folder.ts\");\n/* harmony import */ var _vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\nclass FolderExport {\n    static template() {\n        const req = new FolderExport();\n        req.name = \"Folder name\";\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_2__.FolderView()) {\n        view.name = req.name;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_1__.Folder()) {\n        domain.name = req.name != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.name) : null;\n        return domain;\n    }\n    // Use build method instead of ctor so that we can control order of JSON stringify for pretty print\n    build(o) {\n        this.name = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.name);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvZm9sZGVyLmV4cG9ydC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFvRTtBQUNNO0FBQ1Q7QUFFekI7QUFFakMsTUFBTSxZQUFZO0lBQ3ZCLE1BQU0sQ0FBQyxRQUFRO1FBQ2IsTUFBTSxHQUFHLEdBQUcsSUFBSSxZQUFZLEVBQUUsQ0FBQztRQUMvQixHQUFHLENBQUMsSUFBSSxHQUFHLGFBQWEsQ0FBQztRQUN6QixPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFFRCxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQWlCLEVBQUUsSUFBSSxHQUFHLElBQUksc0VBQVUsRUFBRTtRQUN0RCxJQUFJLENBQUMsSUFBSSxHQUFHLEdBQUcsQ0FBQyxJQUFJLENBQUM7UUFDckIsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDO0lBRUQsTUFBTSxDQUFDLFFBQVEsQ0FBQyxHQUFpQixFQUFFLE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BcIkZvbGRlciBuYW1lXCI7XG4gICAgcmV0dXJuIHJlcTtcbiAgfVxuXG4gIHN0YXRpYyB0b1ZpZXcocmVxOiBGb2xkZXJFeHBvcnQsIHZpZXcgPSBuZXcgRm9sZGVyVmlldygpKSB7XG4gICAgdmlldy5uYW1lID0gcmVxLm5hbWU7XG4gICAgcmV0dXJuIHZpZXc7XG4gIH1cblxuICBzdGF0aWMgdG9Eb21haW4ocmVxOiBGb2xkZXJFeHBvcnQsIGRvbWFpbiA9IG5ldyBGb2xkZXJEb21haW4oKSkge1xuICAgIGRvbWFpbi5uYW1lID0gcmVxLm5hbWUgIT0gbnVsbCA/IG5ldyBFbmNTdHJpbmcocmVxLm5hbWUpIDogbnVsbDtcbiAgICByZXR1cm4gZG9tYWluO1xuICB9XG5cbiAgbmFtZTogc3RyaW5nO1xuXG4gIC8vIFVzZSBidWlsZCBtZXRob2QgaW5zdGVhZCBvZiBjdG9yIHNvIHRoYXQgd2UgY2FuIGNvbnRyb2wgb3JkZXIgb2YgSlNPTiBzdHJpbmdpZnkgZm9yIHByZXR0eSBwcmludFxuICBidWlsZChvOiBGb2xkZXJWaWV3IHwgRm9sZGVyRG9tYWluKSB7XG4gICAgdGhpcy5uYW1lID0gc2FmZUdldFN0cmluZyhvLm5hbWUpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/folder.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/identity.export.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/models/export/identity.export.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityExport: () => (/* binding */ IdentityExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/identity */ \"../../libs/common/src/vault/models/domain/identity.ts\");\n/* harmony import */ var _vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\nclass IdentityExport {\n    static template() {\n        const req = new IdentityExport();\n        req.title = \"Mr\";\n        req.firstName = \"John\";\n        req.middleName = \"William\";\n        req.lastName = \"Doe\";\n        req.address1 = \"123 Any St\";\n        req.address2 = \"Apt #123\";\n        req.address3 = null;\n        req.city = \"New York\";\n        req.state = \"NY\";\n        req.postalCode = \"10001\";\n        req.country = \"US\";\n        req.company = \"Acme Inc.\";\n        req.email = \"john@company.com\";\n        req.phone = \"5555551234\";\n        req.ssn = \"000-123-4567\";\n        req.username = \"jdoe\";\n        req.passportNumber = \"US-123456789\";\n        req.licenseNumber = \"D123-12-123-12333\";\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView()) {\n        view.title = req.title;\n        view.firstName = req.firstName;\n        view.middleName = req.middleName;\n        view.lastName = req.lastName;\n        view.address1 = req.address1;\n        view.address2 = req.address2;\n        view.address3 = req.address3;\n        view.city = req.city;\n        view.state = req.state;\n        view.postalCode = req.postalCode;\n        view.country = req.country;\n        view.company = req.company;\n        view.email = req.email;\n        view.phone = req.phone;\n        view.ssn = req.ssn;\n        view.username = req.username;\n        view.passportNumber = req.passportNumber;\n        view.licenseNumber = req.licenseNumber;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_identity__WEBPACK_IMPORTED_MODULE_1__.Identity()) {\n        domain.title = req.title != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.title) : null;\n        domain.firstName = req.firstName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.firstName) : null;\n        domain.middleName = req.middleName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.middleName) : null;\n        domain.lastName = req.lastName != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.lastName) : null;\n        domain.address1 = req.address1 != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.address1) : null;\n        domain.address2 = req.address2 != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.address2) : null;\n        domain.address3 = req.address3 != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.address3) : null;\n        domain.city = req.city != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.city) : null;\n        domain.state = req.state != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.state) : null;\n        domain.postalCode = req.postalCode != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.postalCode) : null;\n        domain.country = req.country != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.country) : null;\n        domain.company = req.company != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.company) : null;\n        domain.email = req.email != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.email) : null;\n        domain.phone = req.phone != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.phone) : null;\n        domain.ssn = req.ssn != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.ssn) : null;\n        domain.username = req.username != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.username) : null;\n        domain.passportNumber = req.passportNumber != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.passportNumber) : null;\n        domain.licenseNumber = req.licenseNumber != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.licenseNumber) : null;\n        return domain;\n    }\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.title = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.title);\n        this.firstName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.firstName);\n        this.middleName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.middleName);\n        this.lastName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.lastName);\n        this.address1 = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.address1);\n        this.address2 = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.address2);\n        this.address3 = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.address3);\n        this.city = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.city);\n        this.state = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.state);\n        this.postalCode = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.postalCode);\n        this.country = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.country);\n        this.company = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.company);\n        this.email = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.email);\n        this.phone = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.phone);\n        this.ssn = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.ssn);\n        this.username = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.username);\n        this.passportNumber = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.passportNumber);\n        this.licenseNumber = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.licenseNumber);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13504 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/identity.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/index.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/models/export/index.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardExport: () => (/* reexport safe */ _card_export__WEBPACK_IMPORTED_MODULE_0__.CardExport),\n/* harmony export */   CipherExport: () => (/* reexport safe */ _cipher_export__WEBPACK_IMPORTED_MODULE_2__.CipherExport),\n/* harmony export */   CipherWithIdExport: () => (/* reexport safe */ _cipher_with_ids_export__WEBPACK_IMPORTED_MODULE_1__.CipherWithIdExport),\n/* harmony export */   CollectionExport: () => (/* reexport safe */ _collection_export__WEBPACK_IMPORTED_MODULE_4__.CollectionExport),\n/* harmony export */   CollectionWithIdExport: () => (/* reexport safe */ _collection_with_id_export__WEBPACK_IMPORTED_MODULE_3__.CollectionWithIdExport),\n/* harmony export */   Fido2CredentialExport: () => (/* reexport safe */ _fido2_credential_export__WEBPACK_IMPORTED_MODULE_11__.Fido2CredentialExport),\n/* harmony export */   FieldExport: () => (/* reexport safe */ _field_export__WEBPACK_IMPORTED_MODULE_5__.FieldExport),\n/* harmony export */   FolderExport: () => (/* reexport safe */ _folder_export__WEBPACK_IMPORTED_MODULE_7__.FolderExport),\n/* harmony export */   FolderWithIdExport: () => (/* reexport safe */ _folder_with_id_export__WEBPACK_IMPORTED_MODULE_6__.FolderWithIdExport),\n/* harmony export */   IdentityExport: () => (/* reexport safe */ _identity_export__WEBPACK_IMPORTED_MODULE_8__.IdentityExport),\n/* harmony export */   LoginUriExport: () => (/* reexport safe */ _login_uri_export__WEBPACK_IMPORTED_MODULE_9__.LoginUriExport),\n/* harmony export */   SecureNoteExport: () => (/* reexport safe */ _secure_note_export__WEBPACK_IMPORTED_MODULE_10__.SecureNoteExport)\n/* harmony export */ });\n/* harmony import */ var _card_export__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./card.export */ \"../../libs/common/src/models/export/card.export.ts\");\n/* harmony import */ var _cipher_with_ids_export__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cipher-with-ids.export */ \"../../libs/common/src/models/export/cipher-with-ids.export.ts\");\n/* harmony import */ var _cipher_export__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cipher.export */ \"../../libs/common/src/models/export/cipher.export.ts\");\n/* harmony import */ var _collection_with_id_export__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection-with-id.export */ \"../../libs/common/src/models/export/collection-with-id.export.ts\");\n/* harmony import */ var _collection_export__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./collection.export */ \"../../libs/common/src/models/export/collection.export.ts\");\n/* harmony import */ var _field_export__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./field.export */ \"../../libs/common/src/models/export/field.export.ts\");\n/* harmony import */ var _folder_with_id_export__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./folder-with-id.export */ \"../../libs/common/src/models/export/folder-with-id.export.ts\");\n/* harmony import */ var _folder_export__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./folder.export */ \"../../libs/common/src/models/export/folder.export.ts\");\n/* harmony import */ var _identity_export__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./identity.export */ \"../../libs/common/src/models/export/identity.export.ts\");\n/* harmony import */ var _login_uri_export__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./login-uri.export */ \"../../libs/common/src/models/export/login-uri.export.ts\");\n/* harmony import */ var _secure_note_export__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./secure-note.export */ \"../../libs/common/src/models/export/secure-note.export.ts\");\n/* harmony import */ var _fido2_credential_export__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./fido2-credential.export */ \"../../libs/common/src/models/export/fido2-credential.export.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQTJDO0FBQ21CO0FBQ2Y7QUFDc0I7QUFDZDtBQUNWO0FBQ2dCO0FBQ2Q7QUFDSTtBQUNDO0FBQ0k7QUFDVSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9tb2RlbHMvZXhwb3J0L2luZGV4LnRzPzM0NTYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgQ2FyZEV4cG9ydCB9IGZyb20gXCIuL2NhcmQuZXhwb3J0XCI7XG5leHBvcnQgeyBDaXBoZXJXaXRoSWRFeHBvcnQgfSBmcm9tIFwiLi9jaXBoZXItd2l0aC1pZHMuZXhwb3J0XCI7XG5leHBvcnQgeyBDaXBoZXJFeHBvcnQgfSBmcm9tIFwiLi9jaXBoZXIuZXhwb3J0XCI7XG5leHBvcnQgeyBDb2xsZWN0aW9uV2l0aElkRXhwb3J0IH0gZnJvbSBcIi4vY29sbGVjdGlvbi13aXRoLWlkLmV4cG9ydFwiO1xuZXhwb3J0IHsgQ29sbGVjdGlvbkV4cG9ydCB9IGZyb20gXCIuL2NvbGxlY3Rpb24uZXhwb3J0XCI7XG5leHBvcnQgeyBGaWVsZEV4cG9ydCB9IGZyb20gXCIuL2ZpZWxkLmV4cG9ydFwiO1xuZXhwb3J0IHsgRm9sZGVyV2l0aElkRXhwb3J0IH0gZnJvbSBcIi4vZm9sZGVyLXdpdGgtaWQuZXhwb3J0XCI7XG5leHBvcnQgeyBGb2xkZXJFeHBvcnQgfSBmcm9tIFwiLi9mb2xkZXIuZXhwb3J0XCI7XG5leHBvcnQgeyBJZGVudGl0eUV4cG9ydCB9IGZyb20gXCIuL2lkZW50aXR5LmV4cG9ydFwiO1xuZXhwb3J0IHsgTG9naW5VcmlFeHBvcnQgfSBmcm9tIFwiLi9sb2dpbi11cmkuZXhwb3J0XCI7XG5leHBvcnQgeyBTZWN1cmVOb3RlRXhwb3J0IH0gZnJvbSBcIi4vc2VjdXJlLW5vdGUuZXhwb3J0XCI7XG5leHBvcnQgeyBGaWRvMkNyZWRlbnRpYWxFeHBvcnQgfSBmcm9tIFwiLi9maWRvMi1jcmVkZW50aWFsLmV4cG9ydFwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/login-uri.export.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/models/export/login-uri.export.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginUriExport: () => (/* binding */ LoginUriExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_login_uri__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/login-uri */ \"../../libs/common/src/vault/models/domain/login-uri.ts\");\n/* harmony import */ var _vault_models_view_login_uri_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/login-uri.view */ \"../../libs/common/src/vault/models/view/login-uri.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\nclass LoginUriExport {\n    static template() {\n        const req = new LoginUriExport();\n        req.uri = \"https://google.com\";\n        req.match = null;\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_login_uri_view__WEBPACK_IMPORTED_MODULE_2__.LoginUriView()) {\n        view.uri = req.uri;\n        view.match = req.match;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_login_uri__WEBPACK_IMPORTED_MODULE_1__.LoginUri()) {\n        domain.uri = req.uri != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.uri) : null;\n        domain.uriChecksum = req.uriChecksum != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.uriChecksum) : null;\n        domain.match = req.match;\n        return domain;\n    }\n    constructor(o) {\n        var _a;\n        this.match = null;\n        if (o == null) {\n            return;\n        }\n        this.uri = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.uri);\n        if (\"uriChecksum\" in o) {\n            this.uriChecksum = (_a = o.uriChecksum) === null || _a === void 0 ? void 0 : _a.encryptedString;\n        }\n        this.match = o.match;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvbG9naW4tdXJpLmV4cG9ydC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUNvRTtBQUNhO0FBQ1g7QUFFOUI7QUFFakMsTUFBTSxjQUFjO0lBQ3pCL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k7XG4gICAgaWYgKFwidXJpQ2hlY2tzdW1cIiBpbiBvKSB7XG4gICAgICB0aGlzLnVyaUNoZWNrc3VtID0gby51cmlDaGVja3N1bT8uZW5jcnlwdGVkU3RyaW5nO1xuICAgIH1cbiAgICB0aGlzLm1hdGNoID0gby5tYXRjaDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/login-uri.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/login.export.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/models/export/login.export.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginExport: () => (/* binding */ LoginExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/login */ \"../../libs/common/src/vault/models/domain/login.ts\");\n/* harmony import */ var _vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _fido2_credential_export__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fido2-credential.export */ \"../../libs/common/src/models/export/fido2-credential.export.ts\");\n/* harmony import */ var _login_uri_export__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./login-uri.export */ \"../../libs/common/src/models/export/login-uri.export.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\n\n\nclass LoginExport {\n    static template() {\n        const req = new LoginExport();\n        req.uris = [];\n        req.username = \"jdoe\";\n        req.password = \"myp@ssword123\";\n        req.totp = \"JBSWY3DPEHPK3PXP\";\n        req.fido2Credentials = [_fido2_credential_export__WEBPACK_IMPORTED_MODULE_3__.Fido2CredentialExport.template()];\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_2__.LoginView()) {\n        if (req.uris != null) {\n            view.uris = req.uris.map((u) => _login_uri_export__WEBPACK_IMPORTED_MODULE_4__.LoginUriExport.toView(u));\n        }\n        view.username = req.username;\n        view.password = req.password;\n        view.totp = req.totp;\n        if (req.fido2Credentials != null) {\n            view.fido2Credentials = req.fido2Credentials.map((key) => _fido2_credential_export__WEBPACK_IMPORTED_MODULE_3__.Fido2CredentialExport.toView(key));\n        }\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_login__WEBPACK_IMPORTED_MODULE_1__.Login()) {\n        if (req.uris != null) {\n            domain.uris = req.uris.map((u) => _login_uri_export__WEBPACK_IMPORTED_MODULE_4__.LoginUriExport.toDomain(u));\n        }\n        domain.username = req.username != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.username) : null;\n        domain.password = req.password != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.password) : null;\n        domain.totp = req.totp != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.totp) : null;\n        // Fido2credentials are currently not supported for exports.\n        return domain;\n    }\n    constructor(o) {\n        this.fido2Credentials = [];\n        if (o == null) {\n            return;\n        }\n        if (o.uris != null) {\n            this.uris = o.uris.map((u) => new _login_uri_export__WEBPACK_IMPORTED_MODULE_4__.LoginUriExport(u));\n        }\n        if (o.fido2Credentials != null) {\n            this.fido2Credentials = o.fido2Credentials.map((key) => new _fido2_credential_export__WEBPACK_IMPORTED_MODULE_3__.Fido2CredentialExport(key));\n        }\n        this.username = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.safeGetString)(o.username);\n        this.password = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.safeGetString)(o.password);\n        this.totp = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.safeGetString)(o.totp);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6348 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/login.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/password-history.export.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/models/export/password-history.export.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordHistoryExport: () => (/* binding */ PasswordHistoryExport)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _vault_models_domain_password__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/password */ \"../../libs/common/src/vault/models/domain/password.ts\");\n/* harmony import */ var _vault_models_view_password_history_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/password-history.view */ \"../../libs/common/src/vault/models/view/password-history.view.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/models/export/utils.ts\");\n\n\n\n\nclass PasswordHistoryExport {\n    static template() {\n        const req = new PasswordHistoryExport();\n        req.password = null;\n        req.lastUsedDate = null;\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_password_history_view__WEBPACK_IMPORTED_MODULE_2__.PasswordHistoryView()) {\n        view.password = req.password;\n        view.lastUsedDate = req.lastUsedDate;\n        return view;\n    }\n    static toDomain(req, domain = new _vault_models_domain_password__WEBPACK_IMPORTED_MODULE_1__.Password()) {\n        domain.password = req.password != null ? new _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(req.password) : null;\n        domain.lastUsedDate = req.lastUsedDate;\n        return domain;\n    }\n    constructor(o) {\n        this.lastUsedDate = null;\n        if (o == null) {\n            return;\n        }\n        this.password = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.safeGetString)(o.password);\n        this.lastUsedDate = o.lastUsedDate;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvcGFzc3dvcmQtaGlzdG9yeS5leHBvcnQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBb0U7QUFDTjtBQUNzQjtBQUU1QztBQUVqQyxNQUFNLHFCQUFxQjtJQUNoQyxNQUFNLENBQUMsUUFBUTtRQUNiLE1BQU0sR0FBRyxHQUFHLElBQUkscUJBQXFCLEVBQUUsQ0FBQztRQUN4QyxHQUFHLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQztRQUNwQixHQUFHLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQztRQUN4QixPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFFRCxNQUFNLENBQUMsTUFBTSxDQUFDLEdBQTBCLEVBQUUsSUFBSSxHQUFHLElBQUkseUZBQW1CLEVBQUU7UUFDeEUsSUFBSSxDQUFDLFFBQVEsR0FBRyxHQUFHLENBQUMsUUFBUSxDQUFDO1FBQzdCLElBQUksQ0FBQyxZQUFZLEdBQUcsR0FBRyxDQUFDLFlBQVksQ0FBQztRQUNyQyxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7SUFFRCxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQTBCLEVBQU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udWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy5wYXNzd29yZCA9IHNhZmVHZXRTdHJpbmcoby5wYXNzd29yZCk7XG4gICAgdGhpcy5sYXN0VXNlZERhdGUgPSBvLmxhc3RVc2VkRGF0ZTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/password-history.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/secure-note.export.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/models/export/secure-note.export.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureNoteExport: () => (/* binding */ SecureNoteExport)\n/* harmony export */ });\n/* harmony import */ var _vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _vault_models_domain_secure_note__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vault/models/domain/secure-note */ \"../../libs/common/src/vault/models/domain/secure-note.ts\");\n/* harmony import */ var _vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n\n\n\nclass SecureNoteExport {\n    static template() {\n        const req = new SecureNoteExport();\n        req.type = _vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n        return req;\n    }\n    static toView(req, view = new _vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView()) {\n        view.type = req.type;\n        return view;\n    }\n    static toDomain(req, view = new _vault_models_domain_secure_note__WEBPACK_IMPORTED_MODULE_1__.SecureNote()) {\n        view.type = req.type;\n        return view;\n    }\n    constructor(o) {\n        if (o == null) {\n            return;\n        }\n        this.type = o.type;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvc2VjdXJlLW5vdGUuZXhwb3J0LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBbUQ7QUFDb0M7QUFDYjtBQUVuRSxNQUFNLGdCQUFnQjtJQUMzQixNQUFNLENBQUMsUUFBUTtRQUNiLE1BQU0sR0FBRyxHQUFHLElBQUksZ0JBQWdCLEVBQUUsQ0FBQztRQUNuQyxHQUFHLENBQUMsSUFBSSxHQUFHLHdEQUFjLENBQUMsT0FBTyxDQUFDO1FBQ2xDLE9BQU8sR0FBRyxDQUFDO0lBQ2IsQ0FBQztJQUVELE1BQU0sQ0FBQyxNQUFNLENBQUMsR0FBcUIsRUFBRSxJQUFJLEdBQUcsSUFBSSwrRUFBYyxFQUFFO1FBQzlELElBQUksQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNyQixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7SUFFRCxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQXFCLEVBQUUsSUFBSSxHQUFHLElBQUksd0VBQWdCLEVBQUU7UUFDbEUsSUFBSSxDQUFDLElBQUksR0FBRyxHQUFHLENBQUMsSUFBSSxDQUFDO1FBQ3JCLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUlELFlBQVksQ0FBcUM7UUFDL0MsSUFBSSxDQUFDLElBQUksSUFBSSxFQUFFLENBQUM7WUFDZCxPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUNyQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGV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XcgfCBTZWN1cmVOb3RlRG9tYWluKSB7XG4gICAgaWYgKG8gPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMudHlwZSA9IG8udHlwZTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/secure-note.export.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/export/utils.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/models/export/utils.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   safeGetString: () => (/* binding */ safeGetString)\n/* harmony export */ });\nfunction safeGetString(value) {\n    if (value == null) {\n        return null;\n    }\n    if (typeof value == \"string\") {\n        return value;\n    }\n    return value === null || value === void 0 ? void 0 : value.encryptedString;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9leHBvcnQvdXRpbHMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLFNBQVMsYUFBYSxDQUFDLEtBQXlCO0lBQ3JELElBQUksS0FBSyxJQUFJLElBQUksRUFBRSxDQUFDO1FBQ2xCLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVELElBQUksT0FBTyxLQUFLLElBQUksUUFBUSxFQUFFLENBQUM7UUFDN0IsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBQ0QsT0FBTyxLQUFLLGFBQUwsS0FBSyx1QkFBTCxLQUFLLENBQUUsZUFBZSxDQUFDO0FBQ2hDLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvbW9kZWxzL2V4cG9ydC91dGlscy50cz84MGQzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVuY1N0cmluZyB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9wbGF0Zm9ybS9tb2RlbHMvZG9tYWluL2VuYy1zdHJpbmdcIjtcblxuZXhwb3J0IGZ1bmN0aW9uIHNhZmVHZXRTdHJpbmcodmFsdWU6IHN0cmluZyB8IEVuY1N0cmluZykge1xuICBpZiAodmFsdWUgPT0gbnVsbCkge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgaWYgKHR5cGVvZiB2YWx1ZSA9PSBcInN0cmluZ1wiKSB7XG4gICAgcmV0dXJuIHZhbHVlO1xuICB9XG4gIHJldHVybiB2YWx1ZT8uZW5jcnlwdGVkU3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/export/utils.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/collection-bulk-delete.request.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/models/request/collection-bulk-delete.request.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionBulkDeleteRequest: () => (/* binding */ CollectionBulkDeleteRequest)\n/* harmony export */ });\nclass CollectionBulkDeleteRequest {\n    constructor(ids) {\n        this.ids = ids == null ? [] : ids;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2NvbGxlY3Rpb24tYnVsay1kZWxldGUucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSwyQkFBMkI7SUFHdEMsWUFBWSxHQUFhO1FBQ3ZCLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUM7SUFDcEMsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2NvbGxlY3Rpb24tYnVsay1kZWxldGUucmVxdWVzdC50cz9iZTcwIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBDb2xsZWN0aW9uQnVsa0RlbGV0ZVJlcXVlc3Qge1xuICBpZHM6IHN0cmluZ1tdO1xuXG4gIGNvbnN0cnVjdG9yKGlkczogc3RyaW5nW10pIHtcbiAgICB0aGlzLmlkcyA9IGlkcyA9PSBudWxsID8gW10gOiBpZHM7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/collection-bulk-delete.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/event.request.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/models/request/event.request.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventRequest: () => (/* binding */ EventRequest)\n/* harmony export */ });\nclass EventRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2V2ZW50LnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sWUFBWTtDQUt4QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9tb2RlbHMvcmVxdWVzdC9ldmVudC5yZXF1ZXN0LnRzPzkwMzUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRXZlbnRUeXBlIH0gZnJvbSBcIi4uLy4uL2VudW1zXCI7XG5cbmV4cG9ydCBjbGFzcyBFdmVudFJlcXVlc3Qge1xuICB0eXBlOiBFdmVudFR5cGU7XG4gIGNpcGhlcklkOiBzdHJpbmc7XG4gIGRhdGU6IHN0cmluZztcbiAgb3JnYW5pemF0aW9uSWQ6IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/event.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/import-ciphers.request.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/models/request/import-ciphers.request.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportCiphersRequest: () => (/* binding */ ImportCiphersRequest)\n/* harmony export */ });\nclass ImportCiphersRequest {\n    constructor() {\n        this.ciphers = [];\n        this.folders = [];\n        this.folderRelationships = [];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2ltcG9ydC1jaXBoZXJzLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUtPLE1BQU0sb0JBQW9CO0lBQWpDO1FBQ0UsWUFBTyxHQUFvQixFQUFFLENBQUM7UUFDOUIsWUFBTyxHQUEwQixFQUFFLENBQUM7UUFDcEMsd0JBQW1CLEdBQWlDLEVBQUUsQ0FBQztJQUN6RCxDQUFDO0NBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvbW9kZWxzL3JlcXVlc3QvaW1wb3J0LWNpcGhlcnMucmVxdWVzdC50cz82MzFkIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENpcGhlclJlcXVlc3QgfSBmcm9tIFwiLi4vLi4vdmF1bHQvbW9kZWxzL3JlcXVlc3QvY2lwaGVyLnJlcXVlc3RcIjtcbmltcG9ydCB7IEZvbGRlcldpdGhJZFJlcXVlc3QgfSBmcm9tIFwiLi4vLi4vdmF1bHQvbW9kZWxzL3JlcXVlc3QvZm9sZGVyLXdpdGgtaWQucmVxdWVzdFwiO1xuXG5pbXBvcnQgeyBLdnBSZXF1ZXN0IH0gZnJvbSBcIi4va3ZwLnJlcXVlc3RcIjtcblxuZXhwb3J0IGNsYXNzIEltcG9ydENpcGhlcnNSZXF1ZXN0IHtcbiAgY2lwaGVyczogQ2lwaGVyUmVxdWVzdFtdID0gW107XG4gIGZvbGRlcnM6IEZvbGRlcldpdGhJZFJlcXVlc3RbXSA9IFtdO1xuICBmb2xkZXJSZWxhdGlvbnNoaXBzOiBLdnBSZXF1ZXN0PG51bWJlciwgbnVtYmVyPltdID0gW107XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/import-ciphers.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/import-organization-ciphers.request.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/models/request/import-organization-ciphers.request.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportOrganizationCiphersRequest: () => (/* binding */ ImportOrganizationCiphersRequest)\n/* harmony export */ });\nclass ImportOrganizationCiphersRequest {\n    constructor() {\n        this.ciphers = [];\n        this.collections = [];\n        this.collectionRelationships = [];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2ltcG9ydC1vcmdhbml6YXRpb24tY2lwaGVycy5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFNTyxNQUFNLGdDQUFnQztJQUE3QztRQUNFLFlBQU8sR0FBb0IsRUFBRSxDQUFDO1FBQzlCLGdCQUFXLEdBQThCLEVBQUUsQ0FBQztRQUM1Qyw0QkFBdUIsR0FBaUMsRUFBRSxDQUFDO0lBQzdELENBQUM7Q0FBQSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9tb2RlbHMvcmVxdWVzdC9pbXBvcnQtb3JnYW5pemF0aW9uLWNpcGhlcnMucmVxdWVzdC50cz9kOGFmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbGxlY3Rpb25XaXRoSWRSZXF1ZXN0IH0gZnJvbSBcIkBiaXR3YXJkZW4vYWRtaW4tY29uc29sZS9jb21tb25cIjtcblxuaW1wb3J0IHsgQ2lwaGVyUmVxdWVzdCB9IGZyb20gXCIuLi8uLi92YXVsdC9tb2RlbHMvcmVxdWVzdC9jaXBoZXIucmVxdWVzdFwiO1xuXG5pbXBvcnQgeyBLdnBSZXF1ZXN0IH0gZnJvbSBcIi4va3ZwLnJlcXVlc3RcIjtcblxuZXhwb3J0IGNsYXNzIEltcG9ydE9yZ2FuaXphdGlvbkNpcGhlcnNSZXF1ZXN0IHtcbiAgY2lwaGVyczogQ2lwaGVyUmVxdWVzdFtdID0gW107XG4gIGNvbGxlY3Rpb25zOiBDb2xsZWN0aW9uV2l0aElkUmVxdWVzdFtdID0gW107XG4gIGNvbGxlY3Rpb25SZWxhdGlvbnNoaXBzOiBLdnBSZXF1ZXN0PG51bWJlciwgbnVtYmVyPltdID0gW107XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/import-organization-ciphers.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/keys.request.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/models/request/keys.request.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeysRequest: () => (/* binding */ KeysRequest)\n/* harmony export */ });\nclass KeysRequest {\n    constructor(publicKey, encryptedPrivateKey) {\n        this.publicKey = publicKey;\n        this.encryptedPrivateKey = encryptedPrivateKey;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2tleXMucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxXQUFXO0lBSXRCLFlBQVksU0FBaUIsRUFBRSxtQkFBMkI7UUFDeEQsSUFBSSxDQUFDLFNBQVMsR0FBRyxTQUFTLENBQUM7UUFDM0IsSUFBSSxDQUFDLG1CQUFtQixHQUFHLG1CQUFtQixDQUFDO0lBQ2pELENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9tb2RlbHMvcmVxdWVzdC9rZXlzLnJlcXVlc3QudHM/YWFhZiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgS2V5c1JlcXVlc3Qge1xuICBwdWJsaWNLZXk6IHN0cmluZztcbiAgZW5jcnlwdGVkUHJpdmF0ZUtleTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpY0tleTogc3RyaW5nLCBlbmNyeXB0ZWRQcml2YXRlS2V5OiBzdHJpbmcpIHtcbiAgICB0aGlzLnB1YmxpY0tleSA9IHB1YmxpY0tleTtcbiAgICB0aGlzLmVuY3J5cHRlZFByaXZhdGVLZXkgPSBlbmNyeXB0ZWRQcml2YXRlS2V5O1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/keys.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/kvp.request.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/models/request/kvp.request.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KvpRequest: () => (/* binding */ KvpRequest)\n/* harmony export */ });\nclass KvpRequest {\n    constructor(key, value) {\n        this.key = key;\n        this.value = value;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L2t2cC5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLFVBQVU7SUFJckIsWUFBWSxHQUFPLEVBQUUsS0FBUztRQUM1QixJQUFJLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQztRQUNmLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO0lBQ3JCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9tb2RlbHMvcmVxdWVzdC9rdnAucmVxdWVzdC50cz8yNzA2Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBLdnBSZXF1ZXN0PFRLLCBUVj4ge1xuICBrZXk6IFRLO1xuICB2YWx1ZTogVFY7XG5cbiAgY29uc3RydWN0b3Ioa2V5OiBUSywgdmFsdWU6IFRWKSB7XG4gICAgdGhpcy5rZXkgPSBrZXk7XG4gICAgdGhpcy52YWx1ZSA9IHZhbHVlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/kvp.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/prelogin.request.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/models/request/prelogin.request.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PreloginRequest: () => (/* binding */ PreloginRequest)\n/* harmony export */ });\nclass PreloginRequest {\n    constructor(email) {\n        this.email = email;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L3ByZWxvZ2luLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sZUFBZTtJQUcxQixZQUFZLEtBQWE7UUFDdkIsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7SUFDckIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L3ByZWxvZ2luLnJlcXVlc3QudHM/ZmVmMSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgUHJlbG9naW5SZXF1ZXN0IHtcbiAgZW1haWw6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihlbWFpbDogc3RyaW5nKSB7XG4gICAgdGhpcy5lbWFpbCA9IGVtYWlsO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/prelogin.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/request/update-avatar.request.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/models/request/update-avatar.request.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UpdateAvatarRequest: () => (/* binding */ UpdateAvatarRequest)\n/* harmony export */ });\nclass UpdateAvatarRequest {\n    constructor(avatarColor) {\n        this.avatarColor = avatarColor;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXF1ZXN0L3VwZGF0ZS1hdmF0YXIucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxtQkFBbUI7SUFHOUIsWUFBWSxXQUFtQjtRQUM3QixJQUFJLENBQUMsV0FBVyxHQUFHLFdBQVcsQ0FBQztJQUNqQyxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvbW9kZWxzL3JlcXVlc3QvdXBkYXRlLWF2YXRhci5yZXF1ZXN0LnRzPzFlNjIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFVwZGF0ZUF2YXRhclJlcXVlc3Qge1xuICBhdmF0YXJDb2xvcjogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKGF2YXRhckNvbG9yOiBzdHJpbmcpIHtcbiAgICB0aGlzLmF2YXRhckNvbG9yID0gYXZhdGFyQ29sb3I7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/request/update-avatar.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/base.response.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/models/response/base.response.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BaseResponse: () => (/* binding */ BaseResponse)\n/* harmony export */ });\nclass BaseResponse {\n    constructor(response) {\n        this.response = response;\n    }\n    getResponseProperty(propertyName, response = null, exactName = false) {\n        if (propertyName == null || propertyName === \"\") {\n            throw new Error(\"propertyName must not be null/empty.\");\n        }\n        if (response == null && this.response != null) {\n            response = this.response;\n        }\n        if (response == null) {\n            return null;\n        }\n        if (!exactName && response[propertyName] === undefined) {\n            let otherCasePropertyName = null;\n            if (propertyName.charAt(0) === propertyName.charAt(0).toUpperCase()) {\n                otherCasePropertyName = propertyName.charAt(0).toLowerCase();\n            }\n            else {\n                otherCasePropertyName = propertyName.charAt(0).toUpperCase();\n            }\n            if (propertyName.length > 1) {\n                otherCasePropertyName += propertyName.slice(1);\n            }\n            propertyName = otherCasePropertyName;\n            if (response[propertyName] === undefined) {\n                propertyName = propertyName.toLowerCase();\n            }\n            if (response[propertyName] === undefined) {\n                propertyName = propertyName.toUpperCase();\n            }\n        }\n        return response[propertyName];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9iY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3BvbnNlW3Byb3BlcnR5TmFtZV0gPT09IHVuZGVmaW5lZCkge1xuICAgICAgICBwcm9wZXJ0eU5hbWUgPSBwcm9wZXJ0eU5hbWUudG9Mb3dlckNhc2UoKTtcbiAgICAgIH1cbiAgICAgIGlmIChyZXNwb25zZVtwcm9wZXJ0eU5hbWVdID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgcHJvcGVydHlOYW1lID0gcHJvcGVydHlOYW1lLnRvVXBwZXJDYXNlKCk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByZXNwb25zZVtwcm9wZXJ0eU5hbWVdO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/base.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/breach-account.response.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/models/response/breach-account.response.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BreachAccountResponse: () => (/* binding */ BreachAccountResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass BreachAccountResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.addedDate = this.getResponseProperty(\"AddedDate\");\n        this.breachDate = this.getResponseProperty(\"BreachDate\");\n        this.dataClasses = this.getResponseProperty(\"DataClasses\");\n        this.description = this.getResponseProperty(\"Description\");\n        this.domain = this.getResponseProperty(\"Domain\");\n        this.isActive = this.getResponseProperty(\"IsActive\");\n        this.isVerified = this.getResponseProperty(\"IsVerified\");\n        this.logoPath = this.getResponseProperty(\"LogoPath\");\n        this.modifiedDate = this.getResponseProperty(\"ModifiedDate\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.pwnCount = this.getResponseProperty(\"PwnCount\");\n        this.title = this.getResponseProperty(\"Title\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9icmVhY2gtYWNjb3VudC5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUErQztBQUV4QyxNQUFNLHFCQUFzQixTQUFRLHdEQUFZO0lBY3JELFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLFNBQVMsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsV0FBVyxDQUFDLENBQUM7UUFDdkQsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDekQsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsYUFBYSxDQUFDLENBQUM7UUFDM0QsSUFBSSxDQUFDLFdBQVcsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsYUFBYSxDQUFDLENBQUM7UUFDM0QsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDakQsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDckQsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDekQsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDckQsSUFBSSx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ach-account.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/domains.response.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/models/response/domains.response.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DomainsResponse: () => (/* binding */ DomainsResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _global_domain_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./global-domain.response */ \"../../libs/common/src/models/response/global-domain.response.ts\");\n\n\nclass DomainsResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.globalEquivalentDomains = [];\n        this.equivalentDomains = this.getResponseProperty(\"EquivalentDomains\");\n        const globalEquivalentDomains = this.getResponseProperty(\"GlobalEquivalentDomains\");\n        if (globalEquivalentDomains != null) {\n            this.globalEquivalentDomains = globalEquivalentDomains.map((d) => new _global_domain_response__WEBPACK_IMPORTED_MODULE_1__.GlobalDomainResponse(d));\n        }\n        else {\n            this.globalEquivalentDomains = [];\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9kb21haW5zLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUErQztBQUNpQjtBQUV6RCxNQUFNLGVBQWdCLFNBQVEsd0RBQVk7SUFJL0MsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUhsQiw0QkFBdUIsR0FBMkIsRUFBRSxDQUFDO1FBSW5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zLmVxdWl2YWxlbnREb21haW5zID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiRXF1aXZhbGVudERvbWFpbnNcIik7XG4gICAgY29uc3QgZ2xvYmFsRXF1aXZhbGVudERvbWFpbnMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJHbG9iYWxFcXVpdmFsZW50RG9tYWluc1wiKTtcbiAgICBpZiAoZ2xvYmFsRXF1aXZhbGVudERvbWFpbnMgIT0gbnVsbCkge1xuICAgICAgdGhpcy5nbG9iYWxFcXVpdmFsZW50RG9tYWlucyA9IGdsb2JhbEVxdWl2YWxlbnREb21haW5zLm1hcChcbiAgICAgICAgKGQ6IGFueSkgPT4gbmV3IEdsb2JhbERvbWFpblJlc3BvbnNlKGQpLFxuICAgICAgKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5nbG9iYWxFcXVpdmFsZW50RG9tYWlucyA9IFtdO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/domains.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/error.response.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/models/response/error.response.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ErrorResponse: () => (/* binding */ ErrorResponse)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\n\nclass ErrorResponse extends _base_response__WEBPACK_IMPORTED_MODULE_1__.BaseResponse {\n    constructor(response, status, identityResponse) {\n        var _a, _b;\n        super(response);\n        let errorModel = null;\n        if (response != null) {\n            const responseErrorModel = this.getResponseProperty(\"ErrorModel\");\n            if (responseErrorModel && identityResponse) {\n                errorModel = responseErrorModel;\n            }\n            else {\n                errorModel = response;\n            }\n        }\n        if (status === 429) {\n            this.message = \"Rate limit exceeded. Try again later.\";\n        }\n        else if (errorModel) {\n            this.message = this.getResponseProperty(\"Message\", errorModel);\n            this.validationErrors = this.getResponseProperty(\"ValidationErrors\", errorModel);\n            this.captchaSiteKey = (_b = (_a = this.validationErrors) === null || _a === void 0 ? void 0 : _a.HCaptcha_SiteKey) === null || _b === void 0 ? void 0 : _b[0];\n            this.captchaRequired = !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(this.captchaSiteKey);\n        }\n        this.statusCode = status;\n    }\n    getSingleMessage() {\n        if (this.validationErrors == null) {\n            return this.message;\n        }\n        for (const key in this.validationErrors) {\n            // eslint-disable-next-line\n            if (!this.validationErrors.hasOwnProperty(key)) {\n                continue;\n            }\n            if (this.validationErrors[key].length) {\n                return this.validationErrors[key][0];\n            }\n        }\n        return this.message;\n    }\n    getAllMessages() {\n        const messages = [];\n        if (this.validationErrors == null) {\n            return messages;\n        }\n        for (const key in this.validationErrors) {\n            // eslint-disable-next-line\n            if (!this.validationErrors.hasOwnProperty(key)) {\n                continue;\n            }\n            this.validationErrors[key].forEach((item) => {\n                let prefix = \"\";\n                if (key.indexOf(\"[\") > -1 && key.indexOf(\"]\") > -1) {\n                    const lastSep = key.lastIndexOf(\".\");\n                    prefix = key.substr(0, lastSep > -1 ? lastSep : key.length) + \": \";\n                }\n                messages.push(prefix + item);\n            });\n        }\n        return messages;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6216 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/error.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/event.response.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/models/response/event.response.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventResponse: () => (/* binding */ EventResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass EventResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.type = this.getResponseProperty(\"Type\");\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.organizationId = this.getResponseProperty(\"OrganizationId\");\n        this.providerId = this.getResponseProperty(\"ProviderId\");\n        this.cipherId = this.getResponseProperty(\"CipherId\");\n        this.collectionId = this.getResponseProperty(\"CollectionId\");\n        this.groupId = this.getResponseProperty(\"GroupId\");\n        this.policyId = this.getResponseProperty(\"PolicyId\");\n        this.organizationUserId = this.getResponseProperty(\"OrganizationUserId\");\n        this.providerUserId = this.getResponseProperty(\"ProviderUserId\");\n        this.providerOrganizationId = this.getResponseProperty(\"ProviderOrganizationId\");\n        this.actingUserId = this.getResponseProperty(\"ActingUserId\");\n        this.date = this.getResponseProperty(\"Date\");\n        this.deviceType = this.getResponseProperty(\"DeviceType\");\n        this.ipAddress = this.getResponseProperty(\"IpAddress\");\n        this.installationId = this.getResponseProperty(\"InstallationId\");\n        this.systemUser = this.getResponseProperty(\"SystemUser\");\n        this.domainName = this.getResponseProperty(\"DomainName\");\n        this.secretId = this.getResponseProperty(\"SecretId\");\n        this.serviceAccountId = this.getResponseProperty(\"ServiceAccountId\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4916 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/event.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/global-domain.response.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/models/response/global-domain.response.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GlobalDomainResponse: () => (/* binding */ GlobalDomainResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass GlobalDomainResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.type = this.getResponseProperty(\"Type\");\n        this.domains = this.getResponseProperty(\"Domains\");\n        this.excluded = this.getResponseProperty(\"Excluded\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9nbG9iYWwtZG9tYWluLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQStDO0FBRXhDLE1BQU0sb0JBQXFCLFNBQVEsd0RBQVk7SUFLcEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUNuRCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN2RCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvbW9kZWxzL3Jlc3BvbnNlL2dsb2JhbC1kb21haW4ucmVzcG9uc2UudHM/ZDE0MyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi9iYXNlLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBHbG9iYWxEb21haW5SZXNwb25zZSBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIHR5cGU6IG51bWJlcjtcbiAgZG9tYWluczogc3RyaW5nW107XG4gIGV4Y2x1ZGVkOiBib29sZWFuO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy50eXBlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVHlwZVwiKTtcbiAgICB0aGlzLmRvbWFpbnMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJEb21haW5zXCIpO1xuICAgIHRoaXMuZXhjbHVkZWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJFeGNsdWRlZFwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/global-domain.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/keys.response.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/models/response/keys.response.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeysResponse: () => (/* binding */ KeysResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass KeysResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.privateKey = this.getResponseProperty(\"PrivateKey\");\n        this.publicKey = this.getResponseProperty(\"PublicKey\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9rZXlzLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQStDO0FBRXhDLE1BQU0sWUFBYSxTQUFRLHdEQUFZO0lBSTVDLFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDekQsSUFBSSxDQUFDLFNBQVMsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDekQsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9rZXlzLnJlc3BvbnNlLnRzPzdlZjciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4vYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgS2V5c1Jlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgcHJpdmF0ZUtleTogc3RyaW5nO1xuICBwdWJsaWNLZXk6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMucHJpdmF0ZUtleSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlByaXZhdGVLZXlcIik7XG4gICAgdGhpcy5wdWJsaWNLZXkgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJQdWJsaWNLZXlcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/keys.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/list.response.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/models/response/list.response.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ListResponse: () => (/* binding */ ListResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass ListResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response, t) {\n        super(response);\n        const data = this.getResponseProperty(\"Data\");\n        this.data = data == null ? [] : data.map((dr) => new t(dr));\n        this.continuationToken = this.getResponseProperty(\"ContinuationToken\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS9saXN0LnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQStDO0FBRXhDLE1BQU0sWUFBZ0IsU0FBUSx3REFBWTtJQUkvQyxZQUFZLFFBQWEsRUFBRSxDQUErQjtRQUN4RCxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsTUFBTSxJQUFJLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE1BQ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ub2tlblwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/list.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/profile.response.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/models/response/profile.response.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProfileResponse: () => (/* binding */ ProfileResponse)\n/* harmony export */ });\n/* harmony import */ var _admin_console_models_response_profile_organization_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../admin-console/models/response/profile-organization.response */ \"../../libs/common/src/admin-console/models/response/profile-organization.response.ts\");\n/* harmony import */ var _admin_console_models_response_profile_provider_organization_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../admin-console/models/response/profile-provider-organization.response */ \"../../libs/common/src/admin-console/models/response/profile-provider-organization.response.ts\");\n/* harmony import */ var _admin_console_models_response_profile_provider_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../admin-console/models/response/profile-provider.response */ \"../../libs/common/src/admin-console/models/response/profile-provider.response.ts\");\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\n\n\n\nclass ProfileResponse extends _base_response__WEBPACK_IMPORTED_MODULE_3__.BaseResponse {\n    constructor(response) {\n        var _a, _b;\n        super(response);\n        this.organizations = [];\n        this.providers = [];\n        this.providerOrganizations = [];\n        this.id = this.getResponseProperty(\"Id\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.email = this.getResponseProperty(\"Email\");\n        this.emailVerified = this.getResponseProperty(\"EmailVerified\");\n        this.premiumPersonally = this.getResponseProperty(\"Premium\");\n        this.premiumFromOrganization = this.getResponseProperty(\"PremiumFromOrganization\");\n        this.culture = this.getResponseProperty(\"Culture\");\n        this.twoFactorEnabled = this.getResponseProperty(\"TwoFactorEnabled\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.avatarColor = this.getResponseProperty(\"AvatarColor\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n        this.privateKey = this.getResponseProperty(\"PrivateKey\");\n        this.securityStamp = this.getResponseProperty(\"SecurityStamp\");\n        this.forcePasswordReset = (_a = this.getResponseProperty(\"ForcePasswordReset\")) !== null && _a !== void 0 ? _a : false;\n        this.usesKeyConnector = (_b = this.getResponseProperty(\"UsesKeyConnector\")) !== null && _b !== void 0 ? _b : false;\n        const organizations = this.getResponseProperty(\"Organizations\");\n        if (organizations != null) {\n            this.organizations = organizations.map((o) => new _admin_console_models_response_profile_organization_response__WEBPACK_IMPORTED_MODULE_0__.ProfileOrganizationResponse(o));\n        }\n        const providers = this.getResponseProperty(\"Providers\");\n        if (providers != null) {\n            this.providers = providers.map((o) => new _admin_console_models_response_profile_provider_response__WEBPACK_IMPORTED_MODULE_2__.ProfileProviderResponse(o));\n        }\n        const providerOrganizations = this.getResponseProperty(\"ProviderOrganizations\");\n        if (providerOrganizations != null) {\n            this.providerOrganizations = providerOrganizations.map((o) => new _admin_console_models_response_profile_provider_organization_response__WEBPACK_IMPORTED_MODULE_1__.ProfileProviderOrganizationResponse(o));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6524 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/profile.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/response/user-key.response.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/models/response/user-key.response.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserKeyResponse: () => (/* binding */ UserKeyResponse)\n/* harmony export */ });\n/* harmony import */ var _base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass UserKeyResponse extends _base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.userId = this.getResponseProperty(\"UserId\");\n        this.publicKey = this.getResponseProperty(\"PublicKey\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy9yZXNwb25zZS91c2VyLWtleS5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUErQztBQUV4QyxNQUFNLGVBQWdCLFNBQVEsd0RBQVk7SUFJL0MsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNqRCxJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUN6RCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvbW9kZWxzL3Jlc3BvbnNlL3VzZXIta2V5LnJlc3BvbnNlLnRzPzFjYTgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4vYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgVXNlcktleVJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgdXNlcklkOiBzdHJpbmc7XG4gIHB1YmxpY0tleTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy51c2VySWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJVc2VySWRcIik7XG4gICAgdGhpcy5wdWJsaWNLZXkgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJQdWJsaWNLZXlcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/models/response/user-key.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/models/view/view.ts":
/*!*************************************************!*\
  !*** ../../libs/common/src/models/view/view.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   View: () => (/* binding */ View)\n/* harmony export */ });\nclass View {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy92aWV3L3ZpZXcudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sSUFBSTtDQUFHIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL21vZGVscy92aWV3L3ZpZXcudHM/MDNhMyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgVmlldyB7fVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/models/view/view.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/abstractions/config/server-config.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/platform/abstractions/config/server-config.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ServerConfig: () => (/* binding */ ServerConfig)\n/* harmony export */ });\nconst dayInMilliseconds = 24 * 3600 * 1000;\nclass ServerConfig {\n    constructor(serverConfigData) {\n        var _a, _b;\n        this.featureStates = {};\n        this.version = serverConfigData.version;\n        this.gitHash = serverConfigData.gitHash;\n        this.server = serverConfigData.server;\n        this.utcDate = new Date(serverConfigData.utcDate);\n        this.environment = serverConfigData.environment;\n        this.featureStates = serverConfigData.featureStates;\n        if (((_a = this.server) === null || _a === void 0 ? void 0 : _a.name) == null && ((_b = this.server) === null || _b === void 0 ? void 0 : _b.url) == null) {\n            this.server = null;\n        }\n    }\n    getAgeInMilliseconds() {\n        var _a;\n        return new Date().getTime() - ((_a = this.utcDate) === null || _a === void 0 ? void 0 : _a.getTime());\n    }\n    isValid() {\n        return this.getAgeInMilliseconds() <= dayInMilliseconds;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return new ServerConfig(obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2Fic3RyYWN0aW9ucy9jb25maWcvc2VydmVyLWNvbmZpZy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBU0EsTUFBTSxpQkFBaUIsR0FBRyxFQUFFLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQztBQUVwQyxNQUFNLFlBQVk7SUFRdkIsWUFBWSxnQkFBa0M7O1FBRjlDLGtCQUFhLEdBQStDLEVBQUUsQ0FBQztRQUc3RCxJQUFJLENBQUMsT0FBTyxHQUFHLGdCQUFnQixDQUFDLE9BQU8sQ0FBQztRQUN4QyxJQUFJLENBQUMsT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YXRhLnNlcnZlcjtcbiAgICB0aGlzLnV0Y0RhdGUgPSBuZXcgRGF0ZShzZXJ2ZXJDb25maWdEYXRhLnV0Y0RhdGUpO1xuICAgIHRoaXMuZW52aXJvbm1lbnQgPSBzZXJ2ZXJDb25maWdEYXRhLmVudmlyb25tZW50O1xuICAgIHRoaXMuZmVhdHVyZVN0YXRlcyA9IHNlcnZlckNvbmZpZ0RhdGEuZmVhdHVyZVN0YXRlcztcblxuICAgIGlmICh0aGlzLnNlcnZlcj8ubmFtZSA9PSBudWxsICYmIHRoaXMuc2VydmVyPy51cmwgPT0gbnVsbCkge1xuICAgICAgdGhpcy5zZXJ2ZXIgPSBudWxsO1xuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgZ2V0QWdlSW5NaWxsaXNlY29uZHMoKTogbnVtYmVyIHtcbiAgICByZXR1cm4gbmV3IERhdGUoKS5nZXRUaW1lKCkgLSB0aGlzLnV0Y0RhdGU/LmdldFRpbWUoKTtcbiAgfVxuXG4gIGlzVmFsaWQoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuZ2V0QWdlSW5NaWxsaXNlY29uZHMoKSA8PSBkYXlJbk1pbGxpc2Vjb25kcztcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IEpzb25pZnk8U2VydmVyQ29uZmlnPik6IFNlcnZlckNvbmZpZyB7XG4gICAgaWYgKG9iaiA9PSBudWxsKSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICByZXR1cm4gbmV3IFNlcnZlckNvbmZpZyhvYmopO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/abstractions/config/server-config.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/abstractions/environment.service.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/platform/abstractions/environment.service.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnvironmentService: () => (/* binding */ EnvironmentService),\n/* harmony export */   Region: () => (/* binding */ Region)\n/* harmony export */ });\n/**\n * A subset of available regions, additional regions can be loaded through configuration.\n */\nvar Region;\n(function (Region) {\n    Region[\"US\"] = \"US\";\n    Region[\"EU\"] = \"EU\";\n    Region[\"SelfHosted\"] = \"Self-hosted\";\n})(Region || (Region = {}));\n/**\n * The environment service. Provides access to set the current environment urls and region.\n */\nclass EnvironmentService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5676 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/abstractions/environment.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/abstractions/storage.service.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/platform/abstractions/storage.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AbstractStorageService: () => (/* binding */ AbstractStorageService)\n/* harmony export */ });\nclass AbstractStorageService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2Fic3RyYWN0aW9ucy9zdG9yYWdlLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7OztBQW1CTyxNQUFlLHNCQUFzQjtDQU0zQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9hYnN0cmFjdGlvbnMvc3RvcmFnZS5zZXJ2aWNlLnRzP2MxMDYiXSwic291cmNlc0N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ucyk6IFByb21pc2U8Ym9vbGVhbj47XG4gIGFic3RyYWN0IHNhdmU8VD4oa2V5OiBzdHJpbmcsIG9iajogVCwgb3B0aW9ucz86IFN0b3JhZ2VPcHRpb25zKTogUHJvbWlzZTx2b2lkPjtcbiAgYWJzdHJhY3QgcmVtb3ZlKGtleTogc3RyaW5nLCBvcHRpb25zPzogU3RvcmFnZU9wdGlvbnMpOiBQcm9taXNlPHZvaWQ+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/abstractions/storage.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/encryption-type.enum.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/platform/enums/encryption-type.enum.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE: () => (/* binding */ EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE),\n/* harmony export */   EncryptionType: () => (/* binding */ EncryptionType),\n/* harmony export */   encryptionTypeToString: () => (/* binding */ encryptionTypeToString)\n/* harmony export */ });\nvar EncryptionType;\n(function (EncryptionType) {\n    EncryptionType[EncryptionType[\"AesCbc256_B64\"] = 0] = \"AesCbc256_B64\";\n    EncryptionType[EncryptionType[\"AesCbc128_HmacSha256_B64\"] = 1] = \"AesCbc128_HmacSha256_B64\";\n    EncryptionType[EncryptionType[\"AesCbc256_HmacSha256_B64\"] = 2] = \"AesCbc256_HmacSha256_B64\";\n    EncryptionType[EncryptionType[\"Rsa2048_OaepSha256_B64\"] = 3] = \"Rsa2048_OaepSha256_B64\";\n    EncryptionType[EncryptionType[\"Rsa2048_OaepSha1_B64\"] = 4] = \"Rsa2048_OaepSha1_B64\";\n    EncryptionType[EncryptionType[\"Rsa2048_OaepSha256_HmacSha256_B64\"] = 5] = \"Rsa2048_OaepSha256_HmacSha256_B64\";\n    EncryptionType[EncryptionType[\"Rsa2048_OaepSha1_HmacSha256_B64\"] = 6] = \"Rsa2048_OaepSha1_HmacSha256_B64\";\n})(EncryptionType || (EncryptionType = {}));\nfunction encryptionTypeToString(encryptionType) {\n    if (encryptionType in EncryptionType) {\n        return EncryptionType[encryptionType];\n    }\n    else {\n        return \"Unknown encryption type \" + encryptionType;\n    }\n}\n/** The expected number of parts to a serialized EncString of the given encryption type.\n * For example, an EncString of type AesCbc256_B64 will have 2 parts, and an EncString of type\n * AesCbc128_HmacSha256_B64 will have 3 parts.\n *\n * Example of annotated serialized EncStrings:\n * 0.iv|data\n * 1.iv|data|mac\n * 2.iv|data|mac\n * 3.data\n * 4.data\n *\n * @see EncString\n * @see EncryptionType\n * @see EncString.parseEncryptedString\n */\nconst EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE = {\n    [EncryptionType.AesCbc256_B64]: 2,\n    [EncryptionType.AesCbc128_HmacSha256_B64]: 3,\n    [EncryptionType.AesCbc256_HmacSha256_B64]: 3,\n    [EncryptionType.Rsa2048_OaepSha256_B64]: 1,\n    [EncryptionType.Rsa2048_OaepSha1_B64]: 1,\n    [EncryptionType.Rsa2048_OaepSha256_HmacSha256_B64]: 2,\n    [EncryptionType.Rsa2048_OaepSha1_HmacSha256_B64]: 2,\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2VuY3J5cHRpb24tdHlwZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLElBQVksY0FRWDtBQVJELFdBQVksY0FBYztJQUN4QixxRUFBaUI7SUFDakIsMkZBQTRCO0lBQzVCLDJGQUE0QjtJQUM1Qix1RkFBMEI7SUFDMUIsbUZBQXdCO0lBQ3hCL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XRhXG4gKiA0LmRhdGFcbiAqXG4gKiBAc2VlIEVuY1N0cmluZ1xuICogQHNlZSBFbmNyeXB0aW9uVHlwZVxuICogQHNlZSBFbmNTdHJpbmcucGFyc2VFbmNyeXB0ZWRTdHJpbmdcbiAqL1xuZXhwb3J0IGNvbnN0IEVYUEVDVEVEX05VTV9QQVJUU19CWV9FTkNSWVBUSU9OX1RZUEUgPSB7XG4gIFtFbmNyeXB0aW9uVHlwZS5BZXNDYmMyNTZfQjY0XTogMixcbiAgW0VuY3J5cHRpb25UeXBlLkFlc0NiYzEyOF9IbWFjU2hhMjU2X0I2NF06IDMsXG4gIFtFbmNyeXB0aW9uVHlwZS5BZXNDYmMyNTZfSG1hY1NoYTI1Nl9CNjRdOiAzLFxuICBbRW5jcnlwdGlvblR5cGUuUnNhMjA0OF9PYWVwU2hhMjU2X0I2NF06IDEsXG4gIFtFbmNyeXB0aW9uVHlwZS5Sc2EyMDQ4X09hZXBTaGExX0I2NF06IDEsXG4gIFtFbmNyeXB0aW9uVHlwZS5Sc2EyMDQ4X09hZXBTaGEyNTZfSG1hY1NoYTI1Nl9CNjRdOiAyLFxuICBbRW5jcnlwdGlvblR5cGUuUnNhMjA0OF9PYWVwU2hhMV9IbWFjU2hhMjU2X0I2NF06IDIsXG59O1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/encryption-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/file-upload-type.enum.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/platform/enums/file-upload-type.enum.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FileUploadType: () => (/* binding */ FileUploadType)\n/* harmony export */ });\nvar FileUploadType;\n(function (FileUploadType) {\n    FileUploadType[FileUploadType[\"Direct\"] = 0] = \"Direct\";\n    FileUploadType[FileUploadType[\"Azure\"] = 1] = \"Azure\";\n})(FileUploadType || (FileUploadType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2ZpbGUtdXBsb2FkLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxjQUdYO0FBSEQsV0FBWSxjQUFjO0lBQ3hCLHVEQUFVO0lBQ1YscURBQVM7QUFDWCxDQUFDLEVBSFcsY0FBYyxLQUFkLGNBQWMsUUFHekIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vZW51bXMvZmlsZS11cGxvYWQtdHlwZS5lbnVtLnRzP2ZkZGIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRmlsZVVwbG9hZFR5cGUge1xuICBEaXJlY3QgPSAwLFxuICBBenVyZSA9IDEsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/file-upload-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/hash-purpose.enum.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/platform/enums/hash-purpose.enum.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   HashPurpose: () => (/* binding */ HashPurpose)\n/* harmony export */ });\nvar HashPurpose;\n(function (HashPurpose) {\n    HashPurpose[HashPurpose[\"ServerAuthorization\"] = 1] = \"ServerAuthorization\";\n    HashPurpose[HashPurpose[\"LocalAuthorization\"] = 2] = \"LocalAuthorization\";\n})(HashPurpose || (HashPurpose = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2hhc2gtcHVycG9zZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLFdBR1g7QUFIRCxXQUFZLFdBQVc7SUFDckIsMkVBQXVCO0lBQ3ZCLHlFQUFzQjtBQUN4QixDQUFDLEVBSFcsV0FBVyxLQUFYLFdBQVcsUUFHdEIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vZW51bXMvaGFzaC1wdXJwb3NlLmVudW0udHM/YmM2NSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBIYXNoUHVycG9zZSB7XG4gIFNlcnZlckF1dGhvcml6YXRpb24gPSAxLFxuICBMb2NhbEF1dGhvcml6YXRpb24gPSAyLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/hash-purpose.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/html-storage-location.enum.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/platform/enums/html-storage-location.enum.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   HtmlStorageLocation: () => (/* binding */ HtmlStorageLocation)\n/* harmony export */ });\nvar HtmlStorageLocation;\n(function (HtmlStorageLocation) {\n    HtmlStorageLocation[\"Local\"] = \"local\";\n    HtmlStorageLocation[\"Memory\"] = \"memory\";\n    HtmlStorageLocation[\"Session\"] = \"session\";\n})(HtmlStorageLocation || (HtmlStorageLocation = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2h0bWwtc3RvcmFnZS1sb2NhdGlvbi5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLG1CQUlYO0FBSkQsV0FBWSxtQkFBbUI7SUFDN0Isc0NBQWU7SUFDZix3Q0FBaUI7SUFDakIsMENBQW1CO0FBQ3JCLENBQUMsRUFKVyxtQkFBbUIsS0FBbkIsbUJBQW1CLFFBSTlCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2h0bWwtc3RvcmFnZS1sb2NhdGlvbi5lbnVtLnRzP2E1MWYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gSHRtbFN0b3JhZ2VMb2NhdGlvbiB7XG4gIExvY2FsID0gXCJsb2NhbFwiLFxuICBNZW1vcnkgPSBcIm1lbW9yeVwiLFxuICBTZXNzaW9uID0gXCJzZXNzaW9uXCIsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/html-storage-location.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/index.ts":
/*!*****************************************************!*\
  !*** ../../libs/common/src/platform/enums/index.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE: () => (/* reexport safe */ _encryption_type_enum__WEBPACK_IMPORTED_MODULE_0__.EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE),\n/* harmony export */   EncryptionType: () => (/* reexport safe */ _encryption_type_enum__WEBPACK_IMPORTED_MODULE_0__.EncryptionType),\n/* harmony export */   FileUploadType: () => (/* reexport safe */ _file_upload_type_enum__WEBPACK_IMPORTED_MODULE_1__.FileUploadType),\n/* harmony export */   HashPurpose: () => (/* reexport safe */ _hash_purpose_enum__WEBPACK_IMPORTED_MODULE_2__.HashPurpose),\n/* harmony export */   HtmlStorageLocation: () => (/* reexport safe */ _html_storage_location_enum__WEBPACK_IMPORTED_MODULE_3__.HtmlStorageLocation),\n/* harmony export */   KdfType: () => (/* reexport safe */ _kdf_type_enum__WEBPACK_IMPORTED_MODULE_4__.KdfType),\n/* harmony export */   KeySuffixOptions: () => (/* reexport safe */ _key_suffix_options_enum__WEBPACK_IMPORTED_MODULE_5__.KeySuffixOptions),\n/* harmony export */   LogLevelType: () => (/* reexport safe */ _log_level_type_enum__WEBPACK_IMPORTED_MODULE_6__.LogLevelType),\n/* harmony export */   StorageLocation: () => (/* reexport safe */ _storage_location_enum__WEBPACK_IMPORTED_MODULE_7__.StorageLocation),\n/* harmony export */   ThemeType: () => (/* reexport safe */ _theme_type_enum__WEBPACK_IMPORTED_MODULE_8__.ThemeType),\n/* harmony export */   ThemeTypes: () => (/* reexport safe */ _theme_type_enum__WEBPACK_IMPORTED_MODULE_8__.ThemeTypes),\n/* harmony export */   encryptionTypeToString: () => (/* reexport safe */ _encryption_type_enum__WEBPACK_IMPORTED_MODULE_0__.encryptionTypeToString)\n/* harmony export */ });\n/* harmony import */ var _encryption_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./encryption-type.enum */ \"../../libs/common/src/platform/enums/encryption-type.enum.ts\");\n/* harmony import */ var _file_upload_type_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./file-upload-type.enum */ \"../../libs/common/src/platform/enums/file-upload-type.enum.ts\");\n/* harmony import */ var _hash_purpose_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hash-purpose.enum */ \"../../libs/common/src/platform/enums/hash-purpose.enum.ts\");\n/* harmony import */ var _html_storage_location_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./html-storage-location.enum */ \"../../libs/common/src/platform/enums/html-storage-location.enum.ts\");\n/* harmony import */ var _kdf_type_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./kdf-type.enum */ \"../../libs/common/src/platform/enums/kdf-type.enum.ts\");\n/* harmony import */ var _key_suffix_options_enum__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./key-suffix-options.enum */ \"../../libs/common/src/platform/enums/key-suffix-options.enum.ts\");\n/* harmony import */ var _log_level_type_enum__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./log-level-type.enum */ \"../../libs/common/src/platform/enums/log-level-type.enum.ts\");\n/* harmony import */ var _storage_location_enum__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./storage-location.enum */ \"../../libs/common/src/platform/enums/storage-location.enum.ts\");\n/* harmony import */ var _theme_type_enum__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./theme-type.enum */ \"../../libs/common/src/platform/enums/theme-type.enum.ts\");\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUF1QztBQUNDO0FBQ0o7QUFDUztBQUNiO0FBQ1U7QUFDSjtBQUNFO0FBQ04iLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vZW51bXMvaW5kZXgudHM/YmIyYSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9lbmNyeXB0aW9uLXR5cGUuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZmlsZS11cGxvYWQtdHlwZS5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9oYXNoLXB1cnBvc2UuZW51bVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vaHRtbC1zdG9yYWdlLWxvY2F0aW9uLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2tkZi10eXBlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2tleS1zdWZmaXgtb3B0aW9ucy5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9sb2ctbGV2ZWwtdHlwZS5lbnVtXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zdG9yYWdlLWxvY2F0aW9uLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3RoZW1lLXR5cGUuZW51bVwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/kdf-type.enum.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/platform/enums/kdf-type.enum.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KdfType: () => (/* binding */ KdfType)\n/* harmony export */ });\nvar KdfType;\n(function (KdfType) {\n    KdfType[KdfType[\"PBKDF2_SHA256\"] = 0] = \"PBKDF2_SHA256\";\n    KdfType[KdfType[\"Argon2id\"] = 1] = \"Argon2id\";\n})(KdfType || (KdfType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2tkZi10eXBlLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksT0FHWDtBQUhELFdBQVksT0FBTztJQUNqQix1REFBaUI7SUFDakIsNkNBQVk7QUFDZCxDQUFDLEVBSFcsT0FBTyxLQUFQLE9BQU8sUUFHbEIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vZW51bXMva2RmLXR5cGUuZW51bS50cz83ODFhIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEtkZlR5cGUge1xuICBQQktERjJfU0hBMjU2ID0gMCxcbiAgQXJnb24yaWQgPSAxLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/kdf-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/key-suffix-options.enum.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/platform/enums/key-suffix-options.enum.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeySuffixOptions: () => (/* binding */ KeySuffixOptions)\n/* harmony export */ });\nvar KeySuffixOptions;\n(function (KeySuffixOptions) {\n    KeySuffixOptions[\"Auto\"] = \"auto\";\n    KeySuffixOptions[\"Biometric\"] = \"biometric\";\n    KeySuffixOptions[\"Pin\"] = \"pin\";\n})(KeySuffixOptions || (KeySuffixOptions = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2tleS1zdWZmaXgtb3B0aW9ucy5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLGdCQUlYO0FBSkQsV0FBWSxnQkFBZ0I7SUFDMUIsaUNBQWE7SUFDYiwyQ0FBdUI7SUFDdkIsK0JBQVc7QUFDYixDQUFDLEVBSlcsZ0JBQWdCLEtBQWhCLGdCQUFnQixRQUkzQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9lbnVtcy9rZXktc3VmZml4LW9wdGlvbnMuZW51bS50cz81ZWQ3Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEtleVN1ZmZpeE9wdGlvbnMge1xuICBBdXRvID0gXCJhdXRvXCIsXG4gIEJpb21ldHJpYyA9IFwiYmlvbWV0cmljXCIsXG4gIFBpbiA9IFwicGluXCIsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/key-suffix-options.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/log-level-type.enum.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/enums/log-level-type.enum.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LogLevelType: () => (/* binding */ LogLevelType)\n/* harmony export */ });\nvar LogLevelType;\n(function (LogLevelType) {\n    LogLevelType[LogLevelType[\"Debug\"] = 0] = \"Debug\";\n    LogLevelType[LogLevelType[\"Info\"] = 1] = \"Info\";\n    LogLevelType[LogLevelType[\"Warning\"] = 2] = \"Warning\";\n    LogLevelType[LogLevelType[\"Error\"] = 3] = \"Error\";\n})(LogLevelType || (LogLevelType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL2xvZy1sZXZlbC10eXBlLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksWUFLWDtBQUxELFdBQVksWUFBWTtJQUN0QixpREFBSztJQUNMLCtDQUFJO0lBQ0oscURBQU87SUFDUCxpREFBSztBQUNQLENBQUMsRUFMVyxZQUFZLEtBQVosWUFBWSxRQUt2QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9lbnVtcy9sb2ctbGV2ZWwtdHlwZS5lbnVtLnRzP2Y1YTIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gTG9nTGV2ZWxUeXBlIHtcbiAgRGVidWcsXG4gIEluZm8sXG4gIFdhcm5pbmcsXG4gIEVycm9yLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/log-level-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/storage-location.enum.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/platform/enums/storage-location.enum.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StorageLocation: () => (/* binding */ StorageLocation)\n/* harmony export */ });\nvar StorageLocation;\n(function (StorageLocation) {\n    StorageLocation[\"Both\"] = \"both\";\n    StorageLocation[\"Disk\"] = \"disk\";\n    StorageLocation[\"Memory\"] = \"memory\";\n})(StorageLocation || (StorageLocation = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL3N0b3JhZ2UtbG9jYXRpb24uZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxlQUlYO0FBSkQsV0FBWSxlQUFlO0lBQ3pCLGdDQUFhO0lBQ2IsZ0NBQWE7SUFDYixvQ0FBaUI7QUFDbkIsQ0FBQyxFQUpXLGVBQWUsS0FBZixlQUFlLFFBSTFCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL3N0b3JhZ2UtbG9jYXRpb24uZW51bS50cz8yYThhIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFN0b3JhZ2VMb2NhdGlvbiB7XG4gIEJvdGggPSBcImJvdGhcIixcbiAgRGlzayA9IFwiZGlza1wiLFxuICBNZW1vcnkgPSBcIm1lbW9yeVwiLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/storage-location.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/enums/theme-type.enum.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/platform/enums/theme-type.enum.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ThemeType: () => (/* binding */ ThemeType),\n/* harmony export */   ThemeTypes: () => (/* binding */ ThemeTypes)\n/* harmony export */ });\n/**\n * @deprecated prefer the `ThemeTypes` constants and `Theme` type over unsafe enum types\n **/\nvar ThemeType;\n(function (ThemeType) {\n    ThemeType[\"System\"] = \"system\";\n    ThemeType[\"Light\"] = \"light\";\n    ThemeType[\"Dark\"] = \"dark\";\n    ThemeType[\"Nord\"] = \"nord\";\n    ThemeType[\"SolarizedDark\"] = \"solarizedDark\";\n})(ThemeType || (ThemeType = {}));\nconst ThemeTypes = {\n    System: \"system\",\n    Light: \"light\",\n    Dark: \"dark\",\n    Nord: \"nord\",\n    SolarizedDark: \"solarizedDark\",\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2VudW1zL3RoZW1lLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFBOztJQUVJO0FBQ0osSUFBWSxTQU1YO0FBTkQsV0FBWSxTQUFTO0lBQ25CLDhCQUFpQjtJQUNqQiw0QkFBZTtJQUNmLDBCQUFhO0lBQ2IsMEJBQWE7SUFDYiw0Q0FBK0I7QUFDakMsQ0FBQyxFQU5XLFNBQVMsS0FBVCxTQUFTLFFBTXBCO0FBRU0sTUFBTSxVQUFVLEdBQUc7SUFDeEIsTUFBTSxFQUFFLFFBQVE7SUFDaEIsS0FBSyxFQUFFLE9BQU87SUFDZCxJQUFJLEVBQUUsTUFBTTtJQUNaLElBQUksRUFBRSxNQUFNO0lBQ1osYUFBYSxFQUFFLGVBQWU7Q0FDdEIsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9lbnVtcy90aGVtZS10eXBlLmVudW0udHM/MTgxNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBkZXByZWNhdGVkIHByZWZlciB0aGUgYFRoZW1lVHlwZXNgIGNvbnN0YW50cyBhbmQgYFRoZW1lYCB0eXBlIG92ZXIgdW5zYWZlIGVudW0gdHlwZXNcbiAqKi9cbmV4cG9ydCBlbnVtIFRoZW1lVHlwZSB7XG4gIFN5c3RlbSA9IFwic3lzdGVtXCIsXG4gIExpZ2h0ID0gXCJsaWdodFwiLFxuICBEYXJrID0gXCJkYXJrXCIsXG4gIE5vcmQgPSBcIm5vcmRcIixcbiAgU29sYXJpemVkRGFyayA9IFwic29sYXJpemVkRGFya1wiLFxufVxuXG5leHBvcnQgY29uc3QgVGhlbWVUeXBlcyA9IHtcbiAgU3lzdGVtOiBcInN5c3RlbVwiLFxuICBMaWdodDogXCJsaWdodFwiLFxuICBEYXJrOiBcImRhcmtcIixcbiAgTm9yZDogXCJub3JkXCIsXG4gIFNvbGFyaXplZERhcms6IFwic29sYXJpemVkRGFya1wiLFxufSBhcyBjb25zdDtcblxuZXhwb3J0IHR5cGUgVGhlbWUgPSAodHlwZW9mIFRoZW1lVHlwZXMpW2tleW9mIHR5cGVvZiBUaGVtZVR5cGVzXTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/enums/theme-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/factories/account-factory.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/factories/account-factory.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AccountFactory: () => (/* binding */ AccountFactory)\n/* harmony export */ });\nclass AccountFactory {\n    constructor(accountConstructor) {\n        this.accountConstructor = accountConstructor;\n    }\n    create(args) {\n        return new this.accountConstructor(args);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2ZhY3Rvcmllcy9hY2NvdW50LWZhY3RvcnkudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sY0FBYztJQUd6QixZQUFZLGtCQUErQztRQUN6RCxJQUFJLENBQUMsa0JBQWtCLEdBQUcsa0JBQWtCLENBQUM7SUFDL0MsQ0FBQztJQUVELE1BQU0sQ0FBQyxJQUFnQjtRQUNyQixPQUFPLElBQUksSUFBSSxDQUFDLGtCQUFrQixDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzNDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9mYWN0b3JpZXMvYWNjb3VudC1mYWN0b3J5LnRzP2EyYzAiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQWNjb3VudCB9IGZyb20gXCIuLi9tb2RlbHMvZG9tYWluL2FjY291bnRcIjtcblxuZXhwb3J0IGNsYXNzIEFjY291bnRGYWN0b3J5PFQgZXh0ZW5kcyBBY2NvdW50ID0gQWNjb3VudD4ge1xuICBwcml2YXRlIGFjY291bnRDb25zdHJ1Y3RvcjogbmV3IChpbml0OiBQYXJ0aWFsPFQ+KSA9PiBUO1xuXG4gIGNvbnN0cnVjdG9yKGFjY291bnRDb25zdHJ1Y3RvcjogbmV3IChpbml0OiBQYXJ0aWFsPFQ+KSA9PiBUKSB7XG4gICAgdGhpcy5hY2NvdW50Q29uc3RydWN0b3IgPSBhY2NvdW50Q29uc3RydWN0b3I7XG4gIH1cblxuICBjcmVhdGUoYXJnczogUGFydGlhbDxUPikge1xuICAgIHJldHVybiBuZXcgdGhpcy5hY2NvdW50Q29uc3RydWN0b3IoYXJncyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/factories/account-factory.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/factories/global-state-factory.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/platform/factories/global-state-factory.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GlobalStateFactory: () => (/* binding */ GlobalStateFactory)\n/* harmony export */ });\nclass GlobalStateFactory {\n    constructor(globalStateConstructor) {\n        this.globalStateConstructor = globalStateConstructor;\n    }\n    create(args) {\n        return new this.globalStateConstructor(args);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL2ZhY3Rvcmllcy9nbG9iYWwtc3RhdGUtZmFjdG9yeS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxrQkFBa0I7SUFHN0IsWUFBWSxzQkFBbUQ7UUFDN0QsSUFBSSxDQUFDLHNCQUFzQixHQUFHLHNCQUFzQixDQUFDO0lBQ3ZELENBQUM7SUFFRCxNQUFNLENBQUMsSUFBaUI7UUFDdEIsT0FBTyxJQUFJLElBQUksQ0FBQyxzQkFBc0IsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMvQyxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vZmFjdG9yaWVzL2dsb2JhbC1zdGF0ZS1mYWN0b3J5LnRzPzMzMDkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgR2xvYmFsU3RhdGUgfSBmcm9tIFwiLi4vbW9kZWxzL2RvbWFpbi9nbG9iYWwtc3RhdGVcIjtcblxuZXhwb3J0IGNsYXNzIEdsb2JhbFN0YXRlRmFjdG9yeTxUIGV4dGVuZHMgR2xvYmFsU3RhdGUgPSBHbG9iYWxTdGF0ZT4ge1xuICBwcml2YXRlIGdsb2JhbFN0YXRlQ29uc3RydWN0b3I6IG5ldyAoaW5pdDogUGFydGlhbDxUPikgPT4gVDtcblxuICBjb25zdHJ1Y3RvcihnbG9iYWxTdGF0ZUNvbnN0cnVjdG9yOiBuZXcgKGluaXQ6IFBhcnRpYWw8VD4pID0+IFQpIHtcbiAgICB0aGlzLmdsb2JhbFN0YXRlQ29uc3RydWN0b3IgPSBnbG9iYWxTdGF0ZUNvbnN0cnVjdG9yO1xuICB9XG5cbiAgY3JlYXRlKGFyZ3M/OiBQYXJ0aWFsPFQ+KSB7XG4gICAgcmV0dXJuIG5ldyB0aGlzLmdsb2JhbFN0YXRlQ29uc3RydWN0b3IoYXJncyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/factories/global-state-factory.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/factories/state-factory.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/platform/factories/state-factory.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StateFactory: () => (/* binding */ StateFactory)\n/* harmony export */ });\n/* harmony import */ var _account_factory__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./account-factory */ \"../../libs/common/src/platform/factories/account-factory.ts\");\n/* harmony import */ var _global_state_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./global-state-factory */ \"../../libs/common/src/platform/factories/global-state-factory.ts\");\n\n\nclass StateFactory {\n    constructor(globalStateConstructor, accountConstructor) {\n        this.globalStateFactory = new _global_state_factory__WEBPACK_IMPORTED_MODULE_1__.GlobalStateFactory(globalStateConstructor);\n        this.accountFactory = new _account_factory__WEBPACK_IMPORTED_MODULE_0__.AccountFactory(accountConstructor);\n    }\n    createGlobal(args) {\n        return this.globalStateFactory.create(args);\n    }\n    createAccount(args) {\n        return this.accountFactory.create(args);\n    }\n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cmV0dXJuIHRoaXMuYWNjb3VudEZhY3RvcnkuY3JlYXRlKGFyZ3MpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/factories/state-factory.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/messaging/helpers.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/platform/messaging/helpers.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EXTERNAL_SOURCE_TAG: () => (/* binding */ EXTERNAL_SOURCE_TAG),\n/* harmony export */   getCommand: () => (/* binding */ getCommand),\n/* harmony export */   isExternalMessage: () => (/* binding */ isExternalMessage),\n/* harmony export */   tagAsExternal: () => (/* binding */ tagAsExternal)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n\nconst getCommand = (commandDefinition) => {\n    if (typeof commandDefinition === \"string\") {\n        return commandDefinition;\n    }\n    else {\n        return commandDefinition.command;\n    }\n};\nconst EXTERNAL_SOURCE_TAG = Symbol(\"externalSource\");\nconst isExternalMessage = (message) => {\n    return (message === null || message === void 0 ? void 0 : message[EXTERNAL_SOURCE_TAG]) === true;\n};\nconst tagAsExternal = () => {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((message) => {\n        return Object.assign(message, { [EXTERNAL_SOURCE_TAG]: true });\n    });\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXR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9uIH0gZnJvbSBcIi4vdHlwZXNcIjtcblxuZXhwb3J0IGNvbnN0IGdldENvbW1hbmQgPSAoXG4gIGNvbW1hbmREZWZpbml0aW9uOiBDb21tYW5kRGVmaW5pdGlvbjxSZWNvcmQ8c3RyaW5nLCB1bmtub3duPj4gfCBzdHJpbmcsXG4pID0+IHtcbiAgaWYgKHR5cGVvZiBjb21tYW5kRGVmaW5pdGlvbiA9PT0gXCJzdHJpbmdcIikge1xuICAgIHJldHVybiBjb21tYW5kRGVmaW5pdGlvbjtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gY29tbWFuZERlZmluaXRpb24uY29tbWFuZDtcbiAgfVxufTtcblxuZXhwb3J0IGNvbnN0IEVYVEVSTkFMX1NPVVJDRV9UQUcgPSBTeW1ib2woXCJleHRlcm5hbFNvdXJjZVwiKTtcblxuZXhwb3J0IGNvbnN0IGlzRXh0ZXJuYWxNZXNzYWdlID0gKG1lc3NhZ2U6IFJlY29yZDxQcm9wZXJ0eUtleSwgdW5rbm93bj4pID0+IHtcbiAgcmV0dXJuIG1lc3NhZ2U/LltFWFRFUk5BTF9TT1VSQ0VfVEFHXSA9PT0gdHJ1ZTtcbn07XG5cbmV4cG9ydCBjb25zdCB0YWdBc0V4dGVybmFsID0gPFQgZXh0ZW5kcyBSZWNvcmQ8UHJvcGVydHlLZXksIHVua25vd24+PigpID0+IHtcbiAgcmV0dXJuIG1hcCgobWVzc2FnZTogVCkgPT4ge1xuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG1lc3NhZ2UsIHsgW0VYVEVSTkFMX1NPVVJDRV9UQUddOiB0cnVlIH0pO1xuICB9KTtcbn07XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/messaging/helpers.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/messaging/index.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/platform/messaging/index.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CommandDefinition: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_2__.CommandDefinition),\n/* harmony export */   MessageListener: () => (/* reexport safe */ _message_listener__WEBPACK_IMPORTED_MODULE_0__.MessageListener),\n/* harmony export */   MessageSender: () => (/* reexport safe */ _message_sender__WEBPACK_IMPORTED_MODULE_1__.MessageSender),\n/* harmony export */   isExternalMessage: () => (/* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_3__.isExternalMessage)\n/* harmony export */ });\n/* harmony import */ var _message_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./message.listener */ \"../../libs/common/src/platform/messaging/message.listener.ts\");\n/* harmony import */ var _message_sender__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./message.sender */ \"../../libs/common/src/platform/messaging/message.sender.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./types */ \"../../libs/common/src/platform/messaging/types.ts\");\n/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers */ \"../../libs/common/src/platform/messaging/helpers.ts\");\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21lc3NhZ2luZy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFxRDtBQUNKO0FBQ0k7QUFDUCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9tZXNzYWdpbmcvaW5kZXgudHM/YjQ0ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBNZXNzYWdlTGlzdGVuZXIgfSBmcm9tIFwiLi9tZXNzYWdlLmxpc3RlbmVyXCI7XG5leHBvcnQgeyBNZXNzYWdlU2VuZGVyIH0gZnJvbSBcIi4vbWVzc2FnZS5zZW5kZXJcIjtcbmV4cG9ydCB7IE1lc3NhZ2UsIENvbW1hbmREZWZpbml0aW9uIH0gZnJvbSBcIi4vdHlwZXNcIjtcbmV4cG9ydCB7IGlzRXh0ZXJuYWxNZXNzYWdlIH0gZnJvbSBcIi4vaGVscGVyc1wiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/messaging/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/messaging/message.listener.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/platform/messaging/message.listener.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MessageListener: () => (/* binding */ MessageListener)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * A class that allows for listening to messages coming through the application,\n * allows for listening of all messages or just the messages you care about.\n *\n * @note Consider NOT using messaging at all if you can. State Providers offer an observable stream of\n * data that is persisted. This can serve messages that might have been used to notify of settings changes\n * or vault data changes and those observables should be preferred over messaging.\n */\nclass MessageListener {\n    constructor(messageStream) {\n        this.messageStream = messageStream;\n        /**\n         * A stream of all messages sent through the application. It does not contain type information for the\n         * other properties on the messages. You are encouraged to instead subscribe to an individual message\n         * through {@link messages$}.\n         */\n        this.allMessages$ = this.messageStream;\n    }\n    /**\n     * Creates an observable stream filtered to just the command given via the {@link CommandDefinition} and typed\n     * to the generic contained in the CommandDefinition. Be careful using this method unless all your messages are being\n     * sent through `MessageSender.send`, if that isn't the case you should have lower confidence in the message\n     * payload being the expected type.\n     *\n     * @param commandDefinition The CommandDefinition containing the information about the message type you care about.\n     */\n    messages$(commandDefinition) {\n        return this.allMessages$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((msg) => (msg === null || msg === void 0 ? void 0 : msg.command) === commandDefinition.command));\n    }\n}\n/**\n * A helper property for returning a MessageListener that will never emit any messages and will immediately complete.\n */\nMessageListener.EMPTY = new MessageListener(rxjs__WEBPACK_IMPORTED_MODULE_0__.EMPTY);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21lc3NhZ2luZy9tZXNzYWdlLmxpc3RlbmVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFpRDtBQUlqRDs7Ozs7OztHQU9HO0FBQ0ksTUFBTSxlQUFlO0lBQzFCLFlBQTZCLGFBQTJEO1FBQTNELGtCQUFhLEdBQWIsYUFBYSxDQUE4QztRQUV4Rjs7OztXQUlHO1FBQ0gsaUJBQVksR0FBRyxJQUFJLENBQUMsYUFBYSxDQUFDO0lBUHlELENBQUM7SUFTNUY7Ozs7Ozs7T0FPRztJQUNILFNBQVMsQ0FDUCxpQkFBdUM7UUFFdkMsT0FBTyxJQUFJLENBQUMsWUFBWSxDQUFDLElBQUksQ0FDM0IsNENBQU0sQ0FBQyxDQUFDLEdBQUcsRUFBRSxFQUFFLENBQUMsSUFBRyxhQUFILEdBQUcsdUJBQUgsR0FBRyxDQUFFLE9BQU8sTUFBSyxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsQ0FDM0MsQ0FBQztJQUNyQixDQUFDOztBQUVEOztHQUVHO0FBQ2EscUJBQUssR0FBRyx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mluaXRpb24gVGhlIENvbW1hbmREZWZpbml0aW9uIGNvbnRhaW5pbmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSBtZXNzYWdlIHR5cGUgeW91IGNhcmUgYWJvdXQuXG4gICAqL1xuICBtZXNzYWdlcyQ8VCBleHRlbmRzIFJlY29yZDxzdHJpbmcsIHVua25vd24+PihcbiAgICBjb21tYW5kRGVmaW5pdGlvbjogQ29tbWFuZERlZmluaXRpb248VD4sXG4gICk6IE9ic2VydmFibGU8VD4ge1xuICAgIHJldHVybiB0aGlzLmFsbE1lc3NhZ2VzJC5waXBlKFxuICAgICAgZmlsdGVyKChtc2cpID0+IG1zZz8uY29tbWFuZCA9PT0gY29tbWFuZERlZmluaXRpb24uY29tbWFuZCksXG4gICAgKSBhcyBPYnNlcnZhYmxlPFQ+O1xuICB9XG5cbiAgLyoqXG4gICAqIEEgaGVscGVyIHByb3BlcnR5IGZvciByZXR1cm5pbmcgYSBNZXNzYWdlTGlzdGVuZXIgdGhhdCB3aWxsIG5ldmVyIGVtaXQgYW55IG1lc3NhZ2VzIGFuZCB3aWxsIGltbWVkaWF0ZWx5IGNvbXBsZXRlLlxuICAgKi9cbiAgc3RhdGljIHJlYWRvbmx5IEVNUFRZID0gbmV3IE1lc3NhZ2VMaXN0ZW5lcihFTVBUWSk7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/messaging/message.listener.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/messaging/message.sender.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/platform/messaging/message.sender.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MessageSender: () => (/* binding */ MessageSender)\n/* harmony export */ });\nclass MultiMessageSender {\n    constructor(innerMessageSenders) {\n        this.innerMessageSenders = innerMessageSenders;\n    }\n    send(commandDefinition, payload = {}) {\n        for (const messageSender of this.innerMessageSenders) {\n            messageSender.send(commandDefinition, payload);\n        }\n    }\n}\nclass MessageSender {\n    /**\n     * A helper method for combine multiple {@link MessageSender}'s.\n     * @param messageSenders The message senders that should be combined.\n     * @returns A message sender that will relay all messages to the given message senders.\n     */\n    static combine(...messageSenders) {\n        return new MultiMessageSender(messageSenders);\n    }\n}\n/**\n * A helper property for creating a {@link MessageSender} that sends to nowhere.\n */\nMessageSender.EMPTY = new MultiMessageSender([]);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4100 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/messaging/message.sender.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/messaging/types.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/platform/messaging/types.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CommandDefinition: () => (/* binding */ CommandDefinition)\n/* harmony export */ });\n/**\n * A class for defining information about a message, this is helpful\n * alonside `MessageSender` and `MessageListener` for providing a type\n * safe(-ish) way of sending and receiving messages.\n */\nclass CommandDefinition {\n    constructor(command) {\n        this.command = command;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21lc3NhZ2luZy90eXBlcy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRUE7Ozs7R0FJRztBQUNJLE1BQU0saUJBQWlCO0lBRTVCLFlBQXFCLE9BQWU7UUFBZixZQUFPLEdBQVAsT0FBTyxDQUFRO0lBQUcsQ0FBQztDQUN6QyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9tZXNzYWdpbmcvdHlwZXMudHM/YzRhYSJdLCJzb3VyY2VzQ29udGVudCI6WyJkZWNsYXJlIGNvbnN0IHRhZzogdW5pcXVlIHN5bWJvbDtcblxuLyoqXG4gKiBBIGNsYXNzIGZvciBkZWZpbmluZyBpbmZvcm1hdGlvbiBhYm91dCBhIG1lc3NhZ2UsIHRoaXMgaXMgaGVscGZ1bFxuICogYWxvbnNpZGUgYE1lc3NhZ2VTZW5kZXJgIGFuZCBgTWVzc2FnZUxpc3RlbmVyYCBmb3IgcHJvdmlkaW5nIGEgdHlwZVxuICogc2FmZSgtaXNoKSB3YXkgb2Ygc2VuZGluZyBhbmQgcmVjZWl2aW5nIG1lc3NhZ2VzLlxuICovXG5leHBvcnQgY2xhc3MgQ29tbWFuZERlZmluaXRpb248VCBleHRlbmRzIFJlY29yZDxzdHJpbmcsIHVua25vd24+PiB7XG4gIFt0YWddOiBUO1xuICBjb25zdHJ1Y3RvcihyZWFkb25seSBjb21tYW5kOiBzdHJpbmcpIHt9XG59XG5cbmV4cG9ydCB0eXBlIE1lc3NhZ2U8VCBleHRlbmRzIFJlY29yZDxzdHJpbmcsIHVua25vd24+PiA9IHsgY29tbWFuZDogc3RyaW5nIH0gJiBUO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/messaging/types.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/compare-values.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/platform/misc/compare-values.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   compareValues: () => (/* binding */ compareValues)\n/* harmony export */ });\n/**\n * Performs deep equality check between two values\n *\n * NOTE: This method uses JSON.stringify to compare objects, which may return false\n * for objects with the same properties but in different order. If order-insensitive\n * comparison becomes necessary in future, consider updating this method to use a comparison\n * that checks for property existence and value equality without regard to order.\n */\nfunction compareValues(value1, value2) {\n    if (value1 == null && value2 == null) {\n        return true;\n    }\n    if (value1 && value2 == null) {\n        return false;\n    }\n    if (value1 == null && value2) {\n        return false;\n    }\n    if (typeof value1 !== \"object\" || typeof value2 !== \"object\") {\n        return value1 === value2;\n    }\n    return JSON.stringify(value1) === JSON.stringify(value2);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21pc2MvY29tcGFyZS12YWx1ZXMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBOzs7Ozs7O0dBT0c7QUFDSSxTQUFTLGFBQWEsQ0FBSSxNQUFTLEVBQUUsTUFBUztJQUNuRCxJQUFJLE1BQU0sSUFBSSxJQUFJLElBQUksTUFBTSxJQUFJLElBQUksRUFBRSxDQUFDO1FBQ3JDLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVELElBQUksTUFBTSxJQUFJLE1BQU0sSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUM3QixPQUFPLEtBQUssQ0FBQztJQUNmLENBQUM7SUFFRCxJQUFJLE1BQU0sSUFBSSxJQUFJLElBQUksTUFBTSxFQUFFLENBQUM7UUFDN0IsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBRUQsSUFBSSxPQUFPLE1BQU0sS0FBSyxRQUFRLElBQUksT0FBTyxNQUFNLEtBQUssUUFBUSxFQUFFLENBQUM7UUFDN0QsT0FBTyxNQUFNLEtBQUssTUFBTSxDQUFDO0lBQzNCLENBQUM7SUFFRCxPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLEtBQUssSUFBSSxDQUFDLFNBQVMsQ0FBQyxNQUF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aWYgKHR5cGVvZiB2YWx1ZTEgIT09IFwib2JqZWN0XCIgfHwgdHlwZW9mIHZhbHVlMiAhPT0gXCJvYmplY3RcIikge1xuICAgIHJldHVybiB2YWx1ZTEgPT09IHZhbHVlMjtcbiAgfVxuXG4gIHJldHVybiBKU09OLnN0cmluZ2lmeSh2YWx1ZTEpID09PSBKU09OLnN0cmluZ2lmeSh2YWx1ZTIpO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/compare-values.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/convert-values.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/platform/misc/convert-values.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   convertValues: () => (/* binding */ convertValues)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * Converts a record of keys and values into a record preserving the original key and converting each value into an {@link ObservableInput}.\n * @param project A function to project a given key and value pair into an {@link ObservableInput}\n */\nfunction convertValues(project) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((inputRecord) => {\n        if (inputRecord == null) {\n            return null;\n        }\n        // Can't use TKey in here, have to use `PropertyKey`\n        const result = {};\n        for (const [key, value] of Object.entries(inputRecord)) {\n            result[key] = project(key, value);\n        }\n        return result;\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3J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SBwcm9qZWN0IEEgZnVuY3Rpb24gdG8gcHJvamVjdCBhIGdpdmVuIGtleSBhbmQgdmFsdWUgcGFpciBpbnRvIGFuIHtAbGluayBPYnNlcnZhYmxlSW5wdXR9XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBjb252ZXJ0VmFsdWVzPFRLZXkgZXh0ZW5kcyBQcm9wZXJ0eUtleSwgVElucHV0LCBUT3V0cHV0PihcbiAgcHJvamVjdDogKGtleTogVEtleSwgdmFsdWU6IFRJbnB1dCkgPT4gT2JzZXJ2YWJsZUlucHV0PFRPdXRwdXQ+LFxuKTogT3BlcmF0b3JGdW5jdGlvbjxSZWNvcmQ8VEtleSwgVElucHV0PiwgUmVjb3JkPFRLZXksIE9ic2VydmFibGVJbnB1dDxUT3V0cHV0Pj4+IHtcbiAgcmV0dXJuIG1hcCgoaW5wdXRSZWNvcmQpID0+IHtcbiAgICBpZiAoaW5wdXRSZWNvcmQgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgLy8gQ2FuJ3QgdXNlIFRLZXkgaW4gaGVyZSwgaGF2ZSB0byB1c2UgYFByb3BlcnR5S2V5YFxuICAgIGNvbnN0IHJlc3VsdDogUmVjb3JkPFByb3BlcnR5S2V5LCBPYnNlcnZhYmxlSW5wdXQ8VE91dHB1dD4+ID0ge307XG4gICAgZm9yIChjb25zdCBba2V5LCB2YWx1ZV0gb2YgT2JqZWN0LmVudHJpZXMoaW5wdXRSZWNvcmQpIGFzIFtUS2V5LCBUSW5wdXRdW10pIHtcbiAgICAgIHJlc3VsdFtrZXldID0gcHJvamVjdChrZXksIHZhbHVlKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9KTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/convert-values.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/flags.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/platform/misc/flags.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   devFlagEnabled: () => (/* binding */ devFlagEnabled),\n/* harmony export */   devFlagValue: () => (/* binding */ devFlagValue),\n/* harmony export */   flagEnabled: () => (/* binding */ flagEnabled)\n/* harmony export */ });\nfunction getFlags(envFlags) {\n    if (typeof envFlags === \"string\") {\n        return JSON.parse(envFlags);\n    }\n    else {\n        return envFlags;\n    }\n}\n/**\n * Gets the value of a feature flag from environment.\n * All flags default to \"on\" (true).\n * Only use for shared code in `libs`, otherwise use the client-specific function.\n * @param flag The name of the feature flag to check\n * @returns The value of the flag\n */\nfunction flagEnabled(flag) {\n    var _a;\n    const flags = (_a = getFlags({\"sdk\":true})) !== null && _a !== void 0 ? _a : {};\n    return flags[flag] == null || !!flags[flag];\n}\n/**\n * Gets the value of a dev flag from environment.\n * Will always return false unless in development.\n * Only use for shared code in `libs`, otherwise use the client-specific function.\n * @param flag The name of the dev flag to check\n * @returns The value of the flag\n */\nfunction devFlagEnabled(flag) {\n    if (false) {}\n    const devFlags = getFlags({});\n    return (devFlags === null || devFlags === void 0 ? void 0 : devFlags[flag]) == null ? false : !!devFlags[flag];\n}\n/**\n * Gets the value of a dev flag from environment.\n * Will always return false unless in development.\n * @param flag The name of the dev flag to check\n * @returns The value of the flag\n * @throws Error if the flag is not enabled\n */\nfunction devFlagValue(flag) {\n    if (!devFlagEnabled(flag)) {\n        throw new Error(`This method should not be called, it is protected by a disabled dev flag.`);\n    }\n    const devFlags = getFlags({});\n    return devFlags[flag];\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4520 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/flags.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/range-with-default.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/platform/misc/range-with-default.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RangeWithDefault: () => (/* binding */ RangeWithDefault)\n/* harmony export */ });\n/**\n * A range with a default value.\n *\n * Enforces constraints to ensure min > default > max.\n */\nclass RangeWithDefault {\n    constructor(min, max, defaultValue) {\n        this.min = min;\n        this.max = max;\n        this.defaultValue = defaultValue;\n        if (min > max) {\n            throw new Error(`${min} is greater than ${max}.`);\n        }\n        if (this.inRange(defaultValue) === false) {\n            throw new Error(\"Default value is not in range.\");\n        }\n    }\n    inRange(value) {\n        return value >= this.min && value <= this.max;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21pc2MvcmFuZ2Utd2l0aC1kZWZhdWx0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7OztHQUlHO0FBQ0ksTUFBTSxnQkFBZ0I7SUFDM0IsWUFDVyxHQUFXLEVBQ1gsR0FBVyxFQUNYLFlBQW9CO1FBRnBCLFFBQUcsR0FBSCxHQUFHLENBQVE7UUFDWCxRQUFHLEdBQUgsR0FBRyxDQUFRO1FBQ1gsaUJBQVksR0FBWixZQUFZLENBQVE7UUFFN0IsSUFBSSxHQUFHLEdBQUcsR0FBRyxFQUFFLENBQUM7WUFDZCxNQUFNLElBQUksS0FBSyxDQUFDLEdBQUcsR0FBRyxvQkFBb0IsR0FBRyxHQUFHLENBQUMsQ0FBQztRQUNwRCxDQUFDO1FBRUQsSUFBSSxJQUFJLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQyxLQUFLLEtBQUssRUFBRSxDQUFDO1lBQ3pDLE1BQU0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W4gJiYgdmFsdWUgPD0gdGhpcy5tYXg7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/range-with-default.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/safe-urls.ts":
/*!********************************************************!*\
  !*** ../../libs/common/src/platform/misc/safe-urls.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SafeUrls: () => (/* binding */ SafeUrls)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\nconst CanLaunchWhitelist = [\n    \"https://\",\n    \"http://\",\n    \"ssh://\",\n    \"ftp://\",\n    \"sftp://\",\n    \"irc://\",\n    \"vnc://\",\n    // https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-uri\n    \"rdp://\", // Legacy RDP URI scheme\n    \"ms-rd:\", // Preferred RDP URI scheme\n    \"chrome://\",\n    \"iosapp://\",\n    \"androidapp://\",\n];\nclass SafeUrls {\n    static canLaunch(uri) {\n        if (_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(uri)) {\n            return false;\n        }\n        for (let i = 0; i < CanLaunchWhitelist.length; i++) {\n            if (uri.indexOf(CanLaunchWhitelist[i]) === 0) {\n                return true;\n            }\n        }\n        return false;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21pc2Mvc2FmZS11cmxzLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQWdDO0FBRWhDLE1BQU0sa0JBQWtCL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G4gIFwiZnRwOi8vXCIsXG4gIFwic2Z0cDovL1wiLFxuICBcImlyYzovL1wiLFxuICBcInZuYzovL1wiLFxuICAvLyBodHRwczovL2RvY3MubWljcm9zb2Z0LmNvbS9lbi11cy93aW5kb3dzLXNlcnZlci9yZW1vdGUvcmVtb3RlLWRlc2t0b3Atc2VydmljZXMvY2xpZW50cy9yZW1vdGUtZGVza3RvcC11cmlcbiAgXCJyZHA6Ly9cIiwgLy8gTGVnYWN5IFJEUCBVUkkgc2NoZW1lXG4gIFwibXMtcmQ6XCIsIC8vIFByZWZlcnJlZCBSRFAgVVJJIHNjaGVtZVxuICBcImNocm9tZTovL1wiLFxuICBcImlvc2FwcDovL1wiLFxuICBcImFuZHJvaWRhcHA6Ly9cIixcbl07XG5cbmV4cG9ydCBjbGFzcyBTYWZlVXJscyB7XG4gIHN0YXRpYyBjYW5MYXVuY2godXJpOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICBpZiAoVXRpbHMuaXNOdWxsT3JXaGl0ZXNwYWNlKHVyaSkpIHtcbiAgICAgIHJldHVybiBmYWxzZTtcbiAgICB9XG5cbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IENhbkxhdW5jaFdoaXRlbGlzdC5sZW5ndGg7IGkrKykge1xuICAgICAgaWYgKHVyaS5pbmRleE9mKENhbkxhdW5jaFdoaXRlbGlzdFtpXSkgPT09IDApIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIGZhbHNlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/safe-urls.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/sequentialize.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/platform/misc/sequentialize.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   clearCaches: () => (/* binding */ clearCaches),\n/* harmony export */   sequentialize: () => (/* binding */ sequentialize)\n/* harmony export */ });\nconst caches = new Map();\nconst getCache = (obj) => {\n    let cache = caches.get(obj);\n    if (cache != null) {\n        return cache;\n    }\n    cache = new Map();\n    caches.set(obj, cache);\n    return cache;\n};\nfunction clearCaches() {\n    caches.clear();\n}\n/**\n * Use as a Decorator on async functions, it will prevent multiple 'active' calls as the same time\n *\n * If a promise was returned from a previous call to this function, that hasn't yet resolved it will\n * be returned, instead of calling the original function again\n *\n * Results are not cached, once the promise has returned, the next call will result in a fresh call\n *\n * Read more at https://github.com/bitwarden/jslib/pull/7\n */\nfunction sequentialize(cacheKey) {\n    return (target, propertyKey, descriptor) => {\n        const originalMethod = descriptor.value;\n        return {\n            value: function (...args) {\n                const cache = getCache(this);\n                const argsCacheKey = cacheKey(args);\n                let response = cache.get(argsCacheKey);\n                if (response != null) {\n                    return response;\n                }\n                const onFinally = () => {\n                    cache.delete(argsCacheKey);\n                    if (cache.size === 0) {\n                        caches.delete(this);\n                    }\n                };\n                response = originalMethod\n                    .apply(this, args)\n                    .then((val) => {\n                    onFinally();\n                    return val;\n                })\n                    .catch((err) => {\n                    onFinally();\n                    throw err;\n                });\n                cache.set(argsCacheKey, response);\n                return response;\n            },\n        };\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4512 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/sequentialize.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/throttle.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/platform/misc/throttle.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   throttle: () => (/* binding */ throttle)\n/* harmony export */ });\n/**\n * Use as a Decorator on async functions, it will limit how many times the function can be\n * in-flight at a time.\n *\n * Calls beyond the limit will be queued, and run when one of the active calls finishes\n */\nfunction throttle(limit, throttleKey) {\n    return (target, propertyKey, descriptor) => {\n        const originalMethod = descriptor.value;\n        const allThrottles = new Map();\n        const getThrottles = (obj) => {\n            let throttles = allThrottles.get(obj);\n            if (throttles != null) {\n                return throttles;\n            }\n            throttles = new Map();\n            allThrottles.set(obj, throttles);\n            return throttles;\n        };\n        return {\n            value: function (...args) {\n                const throttles = getThrottles(this);\n                const argsThrottleKey = throttleKey(args);\n                let queue = throttles.get(argsThrottleKey);\n                if (queue == null) {\n                    queue = [];\n                    throttles.set(argsThrottleKey, queue);\n                }\n                return new Promise((resolve, reject) => {\n                    const exec = () => {\n                        const onFinally = () => {\n                            queue.splice(queue.indexOf(exec), 1);\n                            if (queue.length >= limit) {\n                                queue[limit - 1]();\n                            }\n                            else if (queue.length === 0) {\n                                throttles.delete(argsThrottleKey);\n                                if (throttles.size === 0) {\n                                    allThrottles.delete(this);\n                                }\n                            }\n                        };\n                        originalMethod\n                            .apply(this, args)\n                            .then((val) => {\n                            onFinally();\n                            return val;\n                        })\n                            .catch((err) => {\n                            onFinally();\n                            throw err;\n                        })\n                            .then(resolve, reject);\n                    };\n                    queue.push(exec);\n                    if (queue.length <= limit) {\n                        exec();\n                    }\n                });\n            },\n        };\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5620 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/throttle.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/utils.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/platform/misc/utils.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Utils: () => (/* binding */ Utils)\n/* harmony export */ });\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var buffer___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! buffer/ */ \"buffer/\");\n/* harmony import */ var buffer___WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(buffer___WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var tldts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tldts */ \"tldts\");\n/* harmony import */ var tldts__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(tldts__WEBPACK_IMPORTED_MODULE_3__);\n/* eslint-disable no-useless-escape */\n\n\n\n\nconst nodeURL = typeof self === \"undefined\" ? __webpack_require__(/*! url */ \"url\") : null;\nclass Utils {\n    static init() {\n        if (Utils.inited) {\n            return;\n        }\n        Utils.inited = true;\n        Utils.isNode =\n            typeof process !== \"undefined\" &&\n                process.release != null &&\n                process.release.name === \"node\";\n        Utils.isBrowser = typeof window !== \"undefined\";\n        Utils.isMobileBrowser = Utils.isBrowser && this.isMobile(window);\n        Utils.isAppleMobileBrowser = Utils.isBrowser && this.isAppleMobile(window);\n        if (Utils.isNode) {\n            Utils.global = global;\n        }\n        else if (Utils.isBrowser) {\n            Utils.global = window;\n        }\n        else {\n            // If it's not browser or node then it must be a service worker\n            Utils.global = self;\n        }\n    }\n    static fromB64ToArray(str) {\n        if (str == null) {\n            return null;\n        }\n        if (Utils.isNode) {\n            return new Uint8Array(Buffer.from(str, \"base64\"));\n        }\n        else {\n            const binaryString = Utils.global.atob(str);\n            const bytes = new Uint8Array(binaryString.length);\n            for (let i = 0; i < binaryString.length; i++) {\n                bytes[i] = binaryString.charCodeAt(i);\n            }\n            return bytes;\n        }\n    }\n    static fromUrlB64ToArray(str) {\n        return Utils.fromB64ToArray(Utils.fromUrlB64ToB64(str));\n    }\n    static fromHexToArray(str) {\n        if (Utils.isNode) {\n            return new Uint8Array(Buffer.from(str, \"hex\"));\n        }\n        else {\n            const bytes = new Uint8Array(str.length / 2);\n            for (let i = 0; i < str.length; i += 2) {\n                bytes[i / 2] = parseInt(str.substr(i, 2), 16);\n            }\n            return bytes;\n        }\n    }\n    static fromUtf8ToArray(str) {\n        if (Utils.isNode) {\n            return new Uint8Array(Buffer.from(str, \"utf8\"));\n        }\n        else {\n            const strUtf8 = unescape(encodeURIComponent(str));\n            const arr = new Uint8Array(strUtf8.length);\n            for (let i = 0; i < strUtf8.length; i++) {\n                arr[i] = strUtf8.charCodeAt(i);\n            }\n            return arr;\n        }\n    }\n    static fromByteStringToArray(str) {\n        if (str == null) {\n            return null;\n        }\n        const arr = new Uint8Array(str.length);\n        for (let i = 0; i < str.length; i++) {\n            arr[i] = str.charCodeAt(i);\n        }\n        return arr;\n    }\n    static fromBufferToB64(buffer) {\n        if (buffer == null) {\n            return null;\n        }\n        if (Utils.isNode) {\n            return Buffer.from(buffer).toString(\"base64\");\n        }\n        else {\n            let binary = \"\";\n            const bytes = new Uint8Array(buffer);\n            for (let i = 0; i < bytes.byteLength; i++) {\n                binary += String.fromCharCode(bytes[i]);\n            }\n            return Utils.global.btoa(binary);\n        }\n    }\n    static fromBufferToUrlB64(buffer) {\n        return Utils.fromB64toUrlB64(Utils.fromBufferToB64(buffer));\n    }\n    static fromB64toUrlB64(b64Str) {\n        return b64Str.replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/=/g, \"\");\n    }\n    static fromBufferToUtf8(buffer) {\n        return buffer___WEBPACK_IMPORTED_MODULE_1__.Buffer.from(buffer).toString(\"utf8\");\n    }\n    static fromBufferToByteString(buffer) {\n        return String.fromCharCode.apply(null, new Uint8Array(buffer));\n    }\n    // ref: https://stackoverflow.com/a/40031979/1090359\n    static fromBufferToHex(buffer) {\n        if (Utils.isNode) {\n            return Buffer.from(buffer).toString(\"hex\");\n        }\n        else {\n            const bytes = new Uint8Array(buffer);\n            return Array.prototype.map\n                .call(bytes, (x) => (\"00\" + x.toString(16)).slice(-2))\n                .join(\"\");\n        }\n    }\n    /**\n     * Converts a hex string to an ArrayBuffer.\n     * Note: this doesn't need any Node specific code as parseInt() / ArrayBuffer / Uint8Array\n     * work the same in Node and the browser.\n     * @param {string} hexString - A string of hexadecimal characters.\n     * @returns {ArrayBuffer} The ArrayBuffer representation of the hex string.\n     */\n    static hexStringToArrayBuffer(hexString) {\n        // Check if the hexString has an even length, as each hex digit represents half a byte (4 bits),\n        // and it takes two hex digits to represent a full byte (8 bits).\n        if (hexString.length % 2 !== 0) {\n            throw \"HexString has to be an even length\";\n        }\n        // Create an ArrayBuffer with a length that is half the length of the hex string,\n        // because each pair of hex digits will become a single byte.\n        const arrayBuffer = new ArrayBuffer(hexString.length / 2);\n        // Create a Uint8Array view on top of the ArrayBuffer (each position represents a byte)\n        // as ArrayBuffers cannot be edited directly.\n        const uint8Array = new Uint8Array(arrayBuffer);\n        // Loop through the bytes\n        for (let i = 0; i < uint8Array.length; i++) {\n            // Extract two hex characters (1 byte)\n            const hexByte = hexString.substr(i * 2, 2);\n            // Convert hexByte into a decimal value from base 16. (ex: ff --> 255)\n            const byteValue = parseInt(hexByte, 16);\n            // Place the byte value into the uint8Array\n            uint8Array[i] = byteValue;\n        }\n        return arrayBuffer;\n    }\n    static fromUrlB64ToB64(urlB64Str) {\n        let output = urlB64Str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n        switch (output.length % 4) {\n            case 0:\n                break;\n            case 2:\n                output += \"==\";\n                break;\n            case 3:\n                output += \"=\";\n                break;\n            default:\n                throw new Error(\"Illegal base64url string!\");\n        }\n        return output;\n    }\n    static fromUrlB64ToUtf8(urlB64Str) {\n        return Utils.fromB64ToUtf8(Utils.fromUrlB64ToB64(urlB64Str));\n    }\n    static fromUtf8ToB64(utfStr) {\n        if (Utils.isNode) {\n            return Buffer.from(utfStr, \"utf8\").toString(\"base64\");\n        }\n        else {\n            return decodeURIComponent(escape(Utils.global.btoa(utfStr)));\n        }\n    }\n    static fromUtf8ToUrlB64(utfStr) {\n        return Utils.fromBufferToUrlB64(Utils.fromUtf8ToArray(utfStr));\n    }\n    static fromB64ToUtf8(b64Str) {\n        if (Utils.isNode) {\n            return Buffer.from(b64Str, \"base64\").toString(\"utf8\");\n        }\n        else {\n            return decodeURIComponent(escape(Utils.global.atob(b64Str)));\n        }\n    }\n    // ref: http://stackoverflow.com/a/2117523/1090359\n    static newGuid() {\n        return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n            const r = (Math.random() * 16) | 0;\n            const v = c === \"x\" ? r : (r & 0x3) | 0x8;\n            return v.toString(16);\n        });\n    }\n    static isGuid(id) {\n        return RegExp(Utils.guidRegex, \"i\").test(id);\n    }\n    static getHostname(uriString) {\n        if (Utils.isNullOrWhitespace(uriString)) {\n            return null;\n        }\n        uriString = uriString.trim();\n        if (uriString.startsWith(\"data:\")) {\n            return null;\n        }\n        if (uriString.startsWith(\"about:\")) {\n            return null;\n        }\n        if (uriString.startsWith(\"file:\")) {\n            return null;\n        }\n        // Does uriString contain invalid characters\n        // TODO Needs to possibly be extended, although '!' is a reserved character\n        if (uriString.indexOf(\"!\") > 0) {\n            return null;\n        }\n        try {\n            const hostname = (0,tldts__WEBPACK_IMPORTED_MODULE_3__.getHostname)(uriString, { validHosts: this.validHosts });\n            if (hostname != null) {\n                return hostname;\n            }\n        }\n        catch (_a) {\n            return null;\n        }\n        return null;\n    }\n    static getHost(uriString) {\n        const url = Utils.getUrl(uriString);\n        try {\n            return url != null && url.host !== \"\" ? url.host : null;\n        }\n        catch (_a) {\n            return null;\n        }\n    }\n    static getDomain(uriString) {\n        if (Utils.isNullOrWhitespace(uriString)) {\n            return null;\n        }\n        uriString = uriString.trim();\n        if (uriString.startsWith(\"data:\")) {\n            return null;\n        }\n        if (uriString.startsWith(\"about:\")) {\n            return null;\n        }\n        try {\n            const parseResult = (0,tldts__WEBPACK_IMPORTED_MODULE_3__.parse)(uriString, {\n                validHosts: this.validHosts,\n                allowPrivateDomains: true,\n            });\n            if (parseResult != null && parseResult.hostname != null) {\n                if (parseResult.hostname === \"localhost\" || parseResult.isIp) {\n                    return parseResult.hostname;\n                }\n                if (parseResult.domain != null) {\n                    return parseResult.domain;\n                }\n                return null;\n            }\n        }\n        catch (_a) {\n            return null;\n        }\n        return null;\n    }\n    static getQueryParams(uriString) {\n        const url = Utils.getUrl(uriString);\n        if (url == null || url.search == null || url.search === \"\") {\n            return null;\n        }\n        const map = new Map();\n        const pairs = (url.search[0] === \"?\" ? url.search.substr(1) : url.search).split(\"&\");\n        pairs.forEach((pair) => {\n            const parts = pair.split(\"=\");\n            if (parts.length < 1) {\n                return;\n            }\n            map.set(decodeURIComponent(parts[0]).toLowerCase(), parts[1] == null ? \"\" : decodeURIComponent(parts[1]));\n        });\n        return map;\n    }\n    static getSortFunction(i18nService, prop) {\n        return (a, b) => {\n            if (a[prop] == null && b[prop] != null) {\n                return -1;\n            }\n            if (a[prop] != null && b[prop] == null) {\n                return 1;\n            }\n            if (a[prop] == null && b[prop] == null) {\n                return 0;\n            }\n            // The `as unknown as string` here is unfortunate because typescript doesn't property understand that the return of T[prop] will be a string\n            return i18nService.collator\n                ? i18nService.collator.compare(a[prop], b[prop])\n                : a[prop].localeCompare(b[prop]);\n        };\n    }\n    static isNullOrWhitespace(str) {\n        return str == null || typeof str !== \"string\" || str.trim() === \"\";\n    }\n    static isNullOrEmpty(str) {\n        return str == null || typeof str !== \"string\" || str == \"\";\n    }\n    static isPromise(obj) {\n        return (obj != undefined && typeof obj[\"then\"] === \"function\" && typeof obj[\"catch\"] === \"function\");\n    }\n    static nameOf(name) {\n        return name;\n    }\n    static assign(target, source) {\n        return Object.assign(target, source);\n    }\n    static iterateEnum(obj) {\n        return Object.keys(obj).filter((k) => Number.isNaN(+k)).map((k) => obj[k]);\n    }\n    static getUrl(uriString) {\n        if (this.isNullOrWhitespace(uriString)) {\n            return null;\n        }\n        uriString = uriString.trim();\n        return Utils.getUrlObject(uriString);\n    }\n    static camelToPascalCase(s) {\n        return s.charAt(0).toUpperCase() + s.slice(1);\n    }\n    /**\n     * There are a few ways to calculate text color for contrast, this one seems to fit accessibility guidelines best.\n     * https://stackoverflow.com/a/3943023/6869691\n     *\n     * @param {string} bgColor\n     * @param {number} [threshold] see stackoverflow link above\n     * @param {boolean} [svgTextFill]\n     * Indicates if this method is performed on an SVG <text> 'fill' attribute (e.g. <text fill=\"black\"></text>).\n     * This check is necessary because the '!important' tag cannot be used in a 'fill' attribute.\n     */\n    static pickTextColorBasedOnBgColor(bgColor, threshold = 186, svgTextFill = false) {\n        const bgColorHexNums = bgColor.charAt(0) === \"#\" ? bgColor.substring(1, 7) : bgColor;\n        const r = parseInt(bgColorHexNums.substring(0, 2), 16); // hexToR\n        const g = parseInt(bgColorHexNums.substring(2, 4), 16); // hexToG\n        const b = parseInt(bgColorHexNums.substring(4, 6), 16); // hexToB\n        const blackColor = svgTextFill ? \"black\" : \"black !important\";\n        const whiteColor = svgTextFill ? \"white\" : \"white !important\";\n        return r * 0.299 + g * 0.587 + b * 0.114 > threshold ? blackColor : whiteColor;\n    }\n    static stringToColor(str) {\n        let hash = 0;\n        for (let i = 0; i < str.length; i++) {\n            hash = str.charCodeAt(i) + ((hash << 5) - hash);\n        }\n        let color = \"#\";\n        for (let i = 0; i < 3; i++) {\n            const value = (hash >> (i * 8)) & 0xff;\n            color += (\"00\" + value.toString(16)).substr(-2);\n        }\n        return color;\n    }\n    /**\n     * @throws Will throw an error if the ContainerService has not been attached to the window object\n     */\n    static getContainerService() {\n        if (this.global.bitwardenContainerService == null) {\n            throw new Error(\"global bitwardenContainerService not initialized.\");\n        }\n        return this.global.bitwardenContainerService;\n    }\n    static validateHexColor(color) {\n        return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(color);\n    }\n    /**\n     * Converts map to a Record<string, V> with the same data. Inverse of recordToMap\n     * Useful in toJSON methods, since Maps are not serializable\n     * @param map\n     * @returns\n     */\n    static mapToRecord(map) {\n        if (map == null) {\n            return null;\n        }\n        if (!(map instanceof Map)) {\n            return map;\n        }\n        return Object.fromEntries(map);\n    }\n    /**\n     * Converts record to a Map<string, V> with the same data. Inverse of mapToRecord\n     * Useful in fromJSON methods, since Maps are not serializable\n     *\n     * Warning: If the record has string keys that are numbers, they will be converted to numbers in the map\n     * @param record\n     * @returns\n     */\n    static recordToMap(record) {\n        if (record == null) {\n            return null;\n        }\n        else if (record instanceof Map) {\n            return record;\n        }\n        const entries = Object.entries(record);\n        if (entries.length === 0) {\n            return new Map();\n        }\n        if (isNaN(Number(entries[0][0]))) {\n            return new Map(entries);\n        }\n        else {\n            return new Map(entries.map((e) => [Number(e[0]), e[1]]));\n        }\n    }\n    /** Applies Object.assign, but converts the type nicely using Type-Fest Merge<Destination, Source> */\n    static merge(destination, source) {\n        return Object.assign(destination, source);\n    }\n    /**\n     * encodeURIComponent escapes all characters except the following:\n     * alphabetic, decimal digits, - _ . ! ~ * ' ( )\n     * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent#encoding_for_rfc3986\n     */\n    static encodeRFC3986URIComponent(str) {\n        return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);\n    }\n    /**\n     * Normalizes a path for defense against attacks like traversals\n     * @param denormalizedPath\n     * @returns\n     */\n    static normalizePath(denormalizedPath) {\n        return path__WEBPACK_IMPORTED_MODULE_0__.normalize(decodeURIComponent(denormalizedPath)).replace(/^(\\.\\.(\\/|\\\\|$))+/, \"\");\n    }\n    static isMobile(win) {\n        let mobile = false;\n        ((a) => {\n            if (/(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) ||\n                /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-/i.test(a.substr(0, 4))) {\n                mobile = true;\n            }\n        })(win.navigator.userAgent || win.navigator.vendor || win.opera);\n        return mobile || win.navigator.userAgent.match(/iPad/i) != null;\n    }\n    static delay(ms) {\n        return new Promise((resolve) => setTimeout(resolve, ms));\n    }\n    /**\n     * Generate an observable from a function that returns a promise.\n     * Similar to the rxjs function {@link from} with one big exception:\n     * {@link from} will not re-execute the function when observers resubscribe.\n     * {@link Util.asyncToObservable} will execute `generator` for every\n     * subscribe, making it ideal if the value ever needs to be refreshed.\n     * */\n    static asyncToObservable(generator) {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.of)(undefined).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_2__.switchMap)(() => generator()));\n    }\n    /**\n     * Return the number of days remaining before a target date arrives.\n     * Returns 0 if the day has already passed.\n     */\n    static daysRemaining(targetDate) {\n        const diffTime = targetDate.getTime() - Date.now();\n        const msPerDay = 86400000;\n        return Math.max(0, Math.floor(diffTime / msPerDay));\n    }\n    static isAppleMobile(win) {\n        return (win.navigator.userAgent.match(/iPhone/i) != null ||\n            win.navigator.userAgent.match(/iPad/i) != null);\n    }\n    static getUrlObject(uriString) {\n        // All the methods below require a protocol to properly parse a URL string\n        // Assume http if no other protocol is present\n        const hasProtocol = uriString.indexOf(\"://\") > -1;\n        if (!hasProtocol && uriString.indexOf(\".\") > -1) {\n            uriString = \"http://\" + uriString;\n        }\n        else if (!hasProtocol) {\n            return null;\n        }\n        try {\n            if (nodeURL != null) {\n                return new nodeURL.URL(uriString);\n            }\n            return new URL(uriString);\n        }\n        catch (e) {\n            // Ignore error\n        }\n        return null;\n    }\n}\nUtils.inited = false;\nUtils.isNode = false;\nUtils.isBrowser = true;\nUtils.isMobileBrowser = false;\nUtils.isAppleMobileBrowser = false;\nUtils.global = null;\n// Transpiled version of /\\p{Emoji_Presentation}/gu using https://mothereff.in/regexpu. Used for compatability in older browsers.\nUtils.regexpEmojiPresentation = /(?:[\\u231A\\u231B\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u25FE\\u2614\\u2615\\u2648-\\u2653\\u267F\\u2693\\u26A1\\u26AA\\u26AB\\u26BD\\u26BE\\u26C4\\u26C5\\u26CE\\u26D4\\u26EA\\u26F2\\u26F3\\u26F5\\u26FA\\u26FD\\u2705\\u270A\\u270B\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2757\\u2795-\\u2797\\u27B0\\u27BF\\u2B1B\\u2B1C\\u2B50\\u2B55]|\\uD83C[\\uDC04\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDDE6-\\uDDFF\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF7C\\uDF7E-\\uDF93\\uDFA0-\\uDFCA\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDFF4\\uDFF8-\\uDFFF]|\\uD83D[\\uDC00-\\uDC3E\\uDC40\\uDC42-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDD7A\\uDD95\\uDD96\\uDDA4\\uDDFB-\\uDE4F\\uDE80-\\uDEC5\\uDECC\\uDED0-\\uDED2\\uDED5-\\uDED7\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB]|\\uD83E[\\uDD0C-\\uDD3A\\uDD3C-\\uDD45\\uDD47-\\uDD78\\uDD7A-\\uDDCB\\uDDCD-\\uDDFF\\uDE70-\\uDE74\\uDE78-\\uDE7A\\uDE80-\\uDE86\\uDE90-\\uDEA8\\uDEB0-\\uDEB6\\uDEC0-\\uDEC2\\uDED0-\\uDED6])/g;\nUtils.validHosts = [\"localhost\"];\nUtils.originalMinimumPasswordLength = 8;\nUtils.minimumPasswordLength = 12;\nUtils.DomainMatchBlacklist = new Map([\n    [\"google.com\", new Set([\"script.google.com\"])],\n]);\nUtils.guidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;\nUtils.init();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 52296 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/utils.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/misc/wordlist.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/platform/misc/wordlist.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EFFLongWordList: () => (/* binding */ EFFLongWordList)\n/* harmony export */ });\n// EFF's Long Wordlist from https://www.eff.org/dice\nconst EFFLongWordList = [\n    \"abacus\",\n    \"abdomen\",\n    \"abdominal\",\n    \"abide\",\n    \"abiding\",\n    \"ability\",\n    \"ablaze\",\n    \"able\",\n    \"abnormal\",\n    \"abrasion\",\n    \"abrasive\",\n    \"abreast\",\n    \"abridge\",\n    \"abroad\",\n    \"abruptly\",\n    \"absence\",\n    \"absentee\",\n    \"absently\",\n    \"absinthe\",\n    \"absolute\",\n    \"absolve\",\n    \"abstain\",\n    \"abstract\",\n    \"absurd\",\n    \"accent\",\n    \"acclaim\",\n    \"acclimate\",\n    \"accompany\",\n    \"account\",\n    \"accuracy\",\n    \"accurate\",\n    \"accustom\",\n    \"acetone\",\n    \"achiness\",\n    \"aching\",\n    \"acid\",\n    \"acorn\",\n    \"acquaint\",\n    \"acquire\",\n    \"acre\",\n    \"acrobat\",\n    \"acronym\",\n    \"acting\",\n    \"action\",\n    \"activate\",\n    \"activator\",\n    \"active\",\n    \"activism\",\n    \"activist\",\n    \"activity\",\n    \"actress\",\n    \"acts\",\n    \"acutely\",\n    \"acuteness\",\n    \"aeration\",\n    \"aerobics\",\n    \"aerosol\",\n    \"aerospace\",\n    \"afar\",\n    \"affair\",\n    \"affected\",\n    \"affecting\",\n    \"affection\",\n    \"affidavit\",\n    \"affiliate\",\n    \"affirm\",\n    \"affix\",\n    \"afflicted\",\n    \"affluent\",\n    \"afford\",\n    \"affront\",\n    \"aflame\",\n    \"afloat\",\n    \"aflutter\",\n    \"afoot\",\n    \"afraid\",\n    \"afterglow\",\n    \"afterlife\",\n    \"aftermath\",\n    \"aftermost\",\n    \"afternoon\",\n    \"aged\",\n    \"ageless\",\n    \"agency\",\n    \"agenda\",\n    \"agent\",\n    \"aggregate\",\n    \"aghast\",\n    \"agile\",\n    \"agility\",\n    \"aging\",\n    \"agnostic\",\n    \"agonize\",\n    \"agonizing\",\n    \"agony\",\n    \"agreeable\",\n    \"agreeably\",\n    \"agreed\",\n    \"agreeing\",\n    \"agreement\",\n    \"aground\",\n    \"ahead\",\n    \"ahoy\",\n    \"aide\",\n    \"aids\",\n    \"aim\",\n    \"ajar\",\n    \"alabaster\",\n    \"alarm\",\n    \"albatross\",\n    \"album\",\n    \"alfalfa\",\n    \"algebra\",\n    \"algorithm\",\n    \"alias\",\n    \"alibi\",\n    \"alienable\",\n    \"alienate\",\n    \"aliens\",\n    \"alike\",\n    \"alive\",\n    \"alkaline\",\n    \"alkalize\",\n    \"almanac\",\n    \"almighty\",\n    \"almost\",\n    \"aloe\",\n    \"aloft\",\n    \"aloha\",\n    \"alone\",\n    \"alongside\",\n    \"aloof\",\n    \"alphabet\",\n    \"alright\",\n    \"although\",\n    \"altitude\",\n    \"alto\",\n    \"aluminum\",\n    \"alumni\",\n    \"always\",\n    \"amaretto\",\n    \"amaze\",\n    \"amazingly\",\n    \"amber\",\n    \"ambiance\",\n    \"ambiguity\",\n    \"ambiguous\",\n    \"ambition\",\n    \"ambitious\",\n    \"ambulance\",\n    \"ambush\",\n    \"amendable\",\n    \"amendment\",\n    \"amends\",\n    \"amenity\",\n    \"amiable\",\n    \"amicably\",\n    \"amid\",\n    \"amigo\",\n    \"amino\",\n    \"amiss\",\n    \"ammonia\",\n    \"ammonium\",\n    \"amnesty\",\n    \"amniotic\",\n    \"among\",\n    \"amount\",\n    \"amperage\",\n    \"ample\",\n    \"amplifier\",\n    \"amplify\",\n    \"amply\",\n    \"amuck\",\n    \"amulet\",\n    \"amusable\",\n    \"amused\",\n    \"amusement\",\n    \"amuser\",\n    \"amusing\",\n    \"anaconda\",\n    \"anaerobic\",\n    \"anagram\",\n    \"anatomist\",\n    \"anatomy\",\n    \"anchor\",\n    \"anchovy\",\n    \"ancient\",\n    \"android\",\n    \"anemia\",\n    \"anemic\",\n    \"aneurism\",\n    \"anew\",\n    \"angelfish\",\n    \"angelic\",\n    \"anger\",\n    \"angled\",\n    \"angler\",\n    \"angles\",\n    \"angling\",\n    \"angrily\",\n    \"angriness\",\n    \"anguished\",\n    \"angular\",\n    \"animal\",\n    \"animate\",\n    \"animating\",\n    \"animation\",\n    \"animator\",\n    \"anime\",\n    \"animosity\",\n    \"ankle\",\n    \"annex\",\n    \"annotate\",\n    \"announcer\",\n    \"annoying\",\n    \"annually\",\n    \"annuity\",\n    \"anointer\",\n    \"another\",\n    \"answering\",\n    \"antacid\",\n    \"antarctic\",\n    \"anteater\",\n    \"antelope\",\n    \"antennae\",\n    \"anthem\",\n    \"anthill\",\n    \"anthology\",\n    \"antibody\",\n    \"antics\",\n    \"antidote\",\n    \"antihero\",\n    \"antiquely\",\n    \"antiques\",\n    \"antiquity\",\n    \"antirust\",\n    \"antitoxic\",\n    \"antitrust\",\n    \"antiviral\",\n    \"antivirus\",\n    \"antler\",\n    \"antonym\",\n    \"antsy\",\n    \"anvil\",\n    \"anybody\",\n    \"anyhow\",\n    \"anymore\",\n    \"anyone\",\n    \"anyplace\",\n    \"anything\",\n    \"anytime\",\n    \"anyway\",\n    \"anywhere\",\n    \"aorta\",\n    \"apache\",\n    \"apostle\",\n    \"appealing\",\n    \"appear\",\n    \"appease\",\n    \"appeasing\",\n    \"appendage\",\n    \"appendix\",\n    \"appetite\",\n    \"appetizer\",\n    \"applaud\",\n    \"applause\",\n    \"apple\",\n    \"appliance\",\n    \"applicant\",\n    \"applied\",\n    \"apply\",\n    \"appointee\",\n    \"appraisal\",\n    \"appraiser\",\n    \"apprehend\",\n    \"approach\",\n    \"approval\",\n    \"approve\",\n    \"apricot\",\n    \"april\",\n    \"apron\",\n    \"aptitude\",\n    \"aptly\",\n    \"aqua\",\n    \"aqueduct\",\n    \"arbitrary\",\n    \"arbitrate\",\n    \"ardently\",\n    \"area\",\n    \"arena\",\n    \"arguable\",\n    \"arguably\",\n    \"argue\",\n    \"arise\",\n    \"armadillo\",\n    \"armband\",\n    \"armchair\",\n    \"armed\",\n    \"armful\",\n    \"armhole\",\n    \"arming\",\n    \"armless\",\n    \"armoire\",\n    \"armored\",\n    \"armory\",\n    \"armrest\",\n    \"army\",\n    \"aroma\",\n    \"arose\",\n    \"around\",\n    \"arousal\",\n    \"arrange\",\n    \"array\",\n    \"arrest\",\n    \"arrival\",\n    \"arrive\",\n    \"arrogance\",\n    \"arrogant\",\n    \"arson\",\n    \"art\",\n    \"ascend\",\n    \"ascension\",\n    \"ascent\",\n    \"ascertain\",\n    \"ashamed\",\n    \"ashen\",\n    \"ashes\",\n    \"ashy\",\n    \"aside\",\n    \"askew\",\n    \"asleep\",\n    \"asparagus\",\n    \"aspect\",\n    \"aspirate\",\n    \"aspire\",\n    \"aspirin\",\n    \"astonish\",\n    \"astound\",\n    \"astride\",\n    \"astrology\",\n    \"astronaut\",\n    \"astronomy\",\n    \"astute\",\n    \"atlantic\",\n    \"atlas\",\n    \"atom\",\n    \"atonable\",\n    \"atop\",\n    \"atrium\",\n    \"atrocious\",\n    \"atrophy\",\n    \"attach\",\n    \"attain\",\n    \"attempt\",\n    \"attendant\",\n    \"attendee\",\n    \"attention\",\n    \"attentive\",\n    \"attest\",\n    \"attic\",\n    \"attire\",\n    \"attitude\",\n    \"attractor\",\n    \"attribute\",\n    \"atypical\",\n    \"auction\",\n    \"audacious\",\n    \"audacity\",\n    \"audible\",\n    \"audibly\",\n    \"audience\",\n    \"audio\",\n    \"audition\",\n    \"augmented\",\n    \"august\",\n    \"authentic\",\n    \"author\",\n    \"autism\",\n    \"autistic\",\n    \"autograph\",\n    \"automaker\",\n    \"automated\",\n    \"automatic\",\n    \"autopilot\",\n    \"available\",\n    \"avalanche\",\n    \"avatar\",\n    \"avenge\",\n    \"avenging\",\n    \"avenue\",\n    \"average\",\n    \"aversion\",\n    \"avert\",\n    \"aviation\",\n    \"aviator\",\n    \"avid\",\n    \"avoid\",\n    \"await\",\n    \"awaken\",\n    \"award\",\n    \"aware\",\n    \"awhile\",\n    \"awkward\",\n    \"awning\",\n    \"awoke\",\n    \"awry\",\n    \"axis\",\n    \"babble\",\n    \"babbling\",\n    \"babied\",\n    \"baboon\",\n    \"backache\",\n    \"backboard\",\n    \"backboned\",\n    \"backdrop\",\n    \"backed\",\n    \"backer\",\n    \"backfield\",\n    \"backfire\",\n    \"backhand\",\n    \"backing\",\n    \"backlands\",\n    \"backlash\",\n    \"backless\",\n    \"backlight\",\n    \"backlit\",\n    \"backlog\",\n    \"backpack\",\n    \"backpedal\",\n    \"backrest\",\n    \"backroom\",\n    \"backshift\",\n    \"backside\",\n    \"backslid\",\n    \"backspace\",\n    \"backspin\",\n    \"backstab\",\n    \"backstage\",\n    \"backtalk\",\n    \"backtrack\",\n    \"backup\",\n    \"backward\",\n    \"backwash\",\n    \"backwater\",\n    \"backyard\",\n    \"bacon\",\n    \"bacteria\",\n    \"bacterium\",\n    \"badass\",\n    \"badge\",\n    \"badland\",\n    \"badly\",\n    \"badness\",\n    \"baffle\",\n    \"baffling\",\n    \"bagel\",\n    \"bagful\",\n    \"baggage\",\n    \"bagged\",\n    \"baggie\",\n    \"bagginess\",\n    \"bagging\",\n    \"baggy\",\n    \"bagpipe\",\n    \"baguette\",\n    \"baked\",\n    \"bakery\",\n    \"bakeshop\",\n    \"baking\",\n    \"balance\",\n    \"balancing\",\n    \"balcony\",\n    \"balmy\",\n    \"balsamic\",\n    \"bamboo\",\n    \"banana\",\n    \"banish\",\n    \"banister\",\n    \"banjo\",\n    \"bankable\",\n    \"bankbook\",\n    \"banked\",\n    \"banker\",\n    \"banking\",\n    \"banknote\",\n    \"bankroll\",\n    \"banner\",\n    \"bannister\",\n    \"banshee\",\n    \"banter\",\n    \"barbecue\",\n    \"barbed\",\n    \"barbell\",\n    \"barber\",\n    \"barcode\",\n    \"barge\",\n    \"bargraph\",\n    \"barista\",\n    \"baritone\",\n    \"barley\",\n    \"barmaid\",\n    \"barman\",\n    \"barn\",\n    \"barometer\",\n    \"barrack\",\n    \"barracuda\",\n    \"barrel\",\n    \"barrette\",\n    \"barricade\",\n    \"barrier\",\n    \"barstool\",\n    \"bartender\",\n    \"barterer\",\n    \"bash\",\n    \"basically\",\n    \"basics\",\n    \"basil\",\n    \"basin\",\n    \"basis\",\n    \"basket\",\n    \"batboy\",\n    \"batch\",\n    \"bath\",\n    \"baton\",\n    \"bats\",\n    \"battalion\",\n    \"battered\",\n    \"battering\",\n    \"battery\",\n    \"batting\",\n    \"battle\",\n    \"bauble\",\n    \"bazooka\",\n    \"blabber\",\n    \"bladder\",\n    \"blade\",\n    \"blah\",\n    \"blame\",\n    \"blaming\",\n    \"blanching\",\n    \"blandness\",\n    \"blank\",\n    \"blaspheme\",\n    \"blasphemy\",\n    \"blast\",\n    \"blatancy\",\n    \"blatantly\",\n    \"blazer\",\n    \"blazing\",\n    \"bleach\",\n    \"bleak\",\n    \"bleep\",\n    \"blemish\",\n    \"blend\",\n    \"bless\",\n    \"blighted\",\n    \"blimp\",\n    \"bling\",\n    \"blinked\",\n    \"blinker\",\n    \"blinking\",\n    \"blinks\",\n    \"blip\",\n    \"blissful\",\n    \"blitz\",\n    \"blizzard\",\n    \"bloated\",\n    \"bloating\",\n    \"blob\",\n    \"blog\",\n    \"bloomers\",\n    \"blooming\",\n    \"blooper\",\n    \"blot\",\n    \"blouse\",\n    \"blubber\",\n    \"bluff\",\n    \"bluish\",\n    \"blunderer\",\n    \"blunt\",\n    \"blurb\",\n    \"blurred\",\n    \"blurry\",\n    \"blurt\",\n    \"blush\",\n    \"blustery\",\n    \"boaster\",\n    \"boastful\",\n    \"boasting\",\n    \"boat\",\n    \"bobbed\",\n    \"bobbing\",\n    \"bobble\",\n    \"bobcat\",\n    \"bobsled\",\n    \"bobtail\",\n    \"bodacious\",\n    \"body\",\n    \"bogged\",\n    \"boggle\",\n    \"bogus\",\n    \"boil\",\n    \"bok\",\n    \"bolster\",\n    \"bolt\",\n    \"bonanza\",\n    \"bonded\",\n    \"bonding\",\n    \"bondless\",\n    \"boned\",\n    \"bonehead\",\n    \"boneless\",\n    \"bonelike\",\n    \"boney\",\n    \"bonfire\",\n    \"bonnet\",\n    \"bonsai\",\n    \"bonus\",\n    \"bony\",\n    \"boogeyman\",\n    \"boogieman\",\n    \"book\",\n    \"boondocks\",\n    \"booted\",\n    \"booth\",\n    \"bootie\",\n    \"booting\",\n    \"bootlace\",\n    \"bootleg\",\n    \"boots\",\n    \"boozy\",\n    \"borax\",\n    \"boring\",\n    \"borough\",\n    \"borrower\",\n    \"borrowing\",\n    \"boss\",\n    \"botanical\",\n    \"botanist\",\n    \"botany\",\n    \"botch\",\n    \"both\",\n    \"bottle\",\n    \"bottling\",\n    \"bottom\",\n    \"bounce\",\n    \"bouncing\",\n    \"bouncy\",\n    \"bounding\",\n    \"boundless\",\n    \"bountiful\",\n    \"bovine\",\n    \"boxcar\",\n    \"boxer\",\n    \"boxing\",\n    \"boxlike\",\n    \"boxy\",\n    \"breach\",\n    \"breath\",\n    \"breeches\",\n    \"breeching\",\n    \"breeder\",\n    \"breeding\",\n    \"breeze\",\n    \"breezy\",\n    \"brethren\",\n    \"brewery\",\n    \"brewing\",\n    \"briar\",\n    \"bribe\",\n    \"brick\",\n    \"bride\",\n    \"bridged\",\n    \"brigade\",\n    \"bright\",\n    \"brilliant\",\n    \"brim\",\n    \"bring\",\n    \"brink\",\n    \"brisket\",\n    \"briskly\",\n    \"briskness\",\n    \"bristle\",\n    \"brittle\",\n    \"broadband\",\n    \"broadcast\",\n    \"broaden\",\n    \"broadly\",\n    \"broadness\",\n    \"broadside\",\n    \"broadways\",\n    \"broiler\",\n    \"broiling\",\n    \"broken\",\n    \"broker\",\n    \"bronchial\",\n    \"bronco\",\n    \"bronze\",\n    \"bronzing\",\n    \"brook\",\n    \"broom\",\n    \"brought\",\n    \"browbeat\",\n    \"brownnose\",\n    \"browse\",\n    \"browsing\",\n    \"bruising\",\n    \"brunch\",\n    \"brunette\",\n    \"brunt\",\n    \"brush\",\n    \"brussels\",\n    \"brute\",\n    \"brutishly\",\n    \"bubble\",\n    \"bubbling\",\n    \"bubbly\",\n    \"buccaneer\",\n    \"bucked\",\n    \"bucket\",\n    \"buckle\",\n    \"buckshot\",\n    \"buckskin\",\n    \"bucktooth\",\n    \"buckwheat\",\n    \"buddhism\",\n    \"buddhist\",\n    \"budding\",\n    \"buddy\",\n    \"budget\",\n    \"buffalo\",\n    \"buffed\",\n    \"buffer\",\n    \"buffing\",\n    \"buffoon\",\n    \"buggy\",\n    \"bulb\",\n    \"bulge\",\n    \"bulginess\",\n    \"bulgur\",\n    \"bulk\",\n    \"bulldog\",\n    \"bulldozer\",\n    \"bullfight\",\n    \"bullfrog\",\n    \"bullhorn\",\n    \"bullion\",\n    \"bullish\",\n    \"bullpen\",\n    \"bullring\",\n    \"bullseye\",\n    \"bullwhip\",\n    \"bully\",\n    \"bunch\",\n    \"bundle\",\n    \"bungee\",\n    \"bunion\",\n    \"bunkbed\",\n    \"bunkhouse\",\n    \"bunkmate\",\n    \"bunny\",\n    \"bunt\",\n    \"busboy\",\n    \"bush\",\n    \"busily\",\n    \"busload\",\n    \"bust\",\n    \"busybody\",\n    \"buzz\",\n    \"cabana\",\n    \"cabbage\",\n    \"cabbie\",\n    \"cabdriver\",\n    \"cable\",\n    \"caboose\",\n    \"cache\",\n    \"cackle\",\n    \"cacti\",\n    \"cactus\",\n    \"caddie\",\n    \"caddy\",\n    \"cadet\",\n    \"cadillac\",\n    \"cadmium\",\n    \"cage\",\n    \"cahoots\",\n    \"cake\",\n    \"calamari\",\n    \"calamity\",\n    \"calcium\",\n    \"calculate\",\n    \"calculus\",\n    \"caliber\",\n    \"calibrate\",\n    \"calm\",\n    \"caloric\",\n    \"calorie\",\n    \"calzone\",\n    \"camcorder\",\n    \"cameo\",\n    \"camera\",\n    \"camisole\",\n    \"camper\",\n    \"campfire\",\n    \"camping\",\n    \"campsite\",\n    \"campus\",\n    \"canal\",\n    \"canary\",\n    \"cancel\",\n    \"candied\",\n    \"candle\",\n    \"candy\",\n    \"cane\",\n    \"canine\",\n    \"canister\",\n    \"cannabis\",\n    \"canned\",\n    \"canning\",\n    \"cannon\",\n    \"cannot\",\n    \"canola\",\n    \"canon\",\n    \"canopener\",\n    \"canopy\",\n    \"canteen\",\n    \"canyon\",\n    \"capable\",\n    \"capably\",\n    \"capacity\",\n    \"cape\",\n    \"capillary\",\n    \"capital\",\n    \"capitol\",\n    \"capped\",\n    \"capricorn\",\n    \"capsize\",\n    \"capsule\",\n    \"caption\",\n    \"captivate\",\n    \"captive\",\n    \"captivity\",\n    \"capture\",\n    \"caramel\",\n    \"carat\",\n    \"caravan\",\n    \"carbon\",\n    \"cardboard\",\n    \"carded\",\n    \"cardiac\",\n    \"cardigan\",\n    \"cardinal\",\n    \"cardstock\",\n    \"carefully\",\n    \"caregiver\",\n    \"careless\",\n    \"caress\",\n    \"caretaker\",\n    \"cargo\",\n    \"caring\",\n    \"carless\",\n    \"carload\",\n    \"carmaker\",\n    \"carnage\",\n    \"carnation\",\n    \"carnival\",\n    \"carnivore\",\n    \"carol\",\n    \"carpenter\",\n    \"carpentry\",\n    \"carpool\",\n    \"carport\",\n    \"carried\",\n    \"carrot\",\n    \"carrousel\",\n    \"carry\",\n    \"cartel\",\n    \"cartload\",\n    \"carton\",\n    \"cartoon\",\n    \"cartridge\",\n    \"cartwheel\",\n    \"carve\",\n    \"carving\",\n    \"carwash\",\n    \"cascade\",\n    \"case\",\n    \"cash\",\n    \"casing\",\n    \"casino\",\n    \"casket\",\n    \"cassette\",\n    \"casually\",\n    \"casualty\",\n    \"catacomb\",\n    \"catalog\",\n    \"catalyst\",\n    \"catalyze\",\n    \"catapult\",\n    \"cataract\",\n    \"catatonic\",\n    \"catcall\",\n    \"catchable\",\n    \"catcher\",\n    \"catching\",\n    \"catchy\",\n    \"caterer\",\n    \"catering\",\n    \"catfight\",\n    \"catfish\",\n    \"cathedral\",\n    \"cathouse\",\n    \"catlike\",\n    \"catnap\",\n    \"catnip\",\n    \"catsup\",\n    \"cattail\",\n    \"cattishly\",\n    \"cattle\",\n    \"catty\",\n    \"catwalk\",\n    \"caucasian\",\n    \"caucus\",\n    \"causal\",\n    \"causation\",\n    \"cause\",\n    \"causing\",\n    \"cauterize\",\n    \"caution\",\n    \"cautious\",\n    \"cavalier\",\n    \"cavalry\",\n    \"caviar\",\n    \"cavity\",\n    \"cedar\",\n    \"celery\",\n    \"celestial\",\n    \"celibacy\",\n    \"celibate\",\n    \"celtic\",\n    \"cement\",\n    \"census\",\n    \"ceramics\",\n    \"ceremony\",\n    \"certainly\",\n    \"certainty\",\n    \"certified\",\n    \"certify\",\n    \"cesarean\",\n    \"cesspool\",\n    \"chafe\",\n    \"chaffing\",\n    \"chain\",\n    \"chair\",\n    \"chalice\",\n    \"challenge\",\n    \"chamber\",\n    \"chamomile\",\n    \"champion\",\n    \"chance\",\n    \"change\",\n    \"channel\",\n    \"chant\",\n    \"chaos\",\n    \"chaperone\",\n    \"chaplain\",\n    \"chapped\",\n    \"chaps\",\n    \"chapter\",\n    \"character\",\n    \"charbroil\",\n    \"charcoal\",\n    \"charger\",\n    \"charging\",\n    \"chariot\",\n    \"charity\",\n    \"charm\",\n    \"charred\",\n    \"charter\",\n    \"charting\",\n    \"chase\",\n    \"chasing\",\n    \"chaste\",\n    \"chastise\",\n    \"chastity\",\n    \"chatroom\",\n    \"chatter\",\n    \"chatting\",\n    \"chatty\",\n    \"cheating\",\n    \"cheddar\",\n    \"cheek\",\n    \"cheer\",\n    \"cheese\",\n    \"cheesy\",\n    \"chef\",\n    \"chemicals\",\n    \"chemist\",\n    \"chemo\",\n    \"cherisher\",\n    \"cherub\",\n    \"chess\",\n    \"chest\",\n    \"chevron\",\n    \"chevy\",\n    \"chewable\",\n    \"chewer\",\n    \"chewing\",\n    \"chewy\",\n    \"chief\",\n    \"chihuahua\",\n    \"childcare\",\n    \"childhood\",\n    \"childish\",\n    \"childless\",\n    \"childlike\",\n    \"chili\",\n    \"chill\",\n    \"chimp\",\n    \"chip\",\n    \"chirping\",\n    \"chirpy\",\n    \"chitchat\",\n    \"chivalry\",\n    \"chive\",\n    \"chloride\",\n    \"chlorine\",\n    \"choice\",\n    \"chokehold\",\n    \"choking\",\n    \"chomp\",\n    \"chooser\",\n    \"choosing\",\n    \"choosy\",\n    \"chop\",\n    \"chosen\",\n    \"chowder\",\n    \"chowtime\",\n    \"chrome\",\n    \"chubby\",\n    \"chuck\",\n    \"chug\",\n    \"chummy\",\n    \"chump\",\n    \"chunk\",\n    \"churn\",\n    \"chute\",\n    \"cider\",\n    \"cilantro\",\n    \"cinch\",\n    \"cinema\",\n    \"cinnamon\",\n    \"circle\",\n    \"circling\",\n    \"circular\",\n    \"circulate\",\n    \"circus\",\n    \"citable\",\n    \"citadel\",\n    \"citation\",\n    \"citizen\",\n    \"citric\",\n    \"citrus\",\n    \"city\",\n    \"civic\",\n    \"civil\",\n    \"clad\",\n    \"claim\",\n    \"clambake\",\n    \"clammy\",\n    \"clamor\",\n    \"clamp\",\n    \"clamshell\",\n    \"clang\",\n    \"clanking\",\n    \"clapped\",\n    \"clapper\",\n    \"clapping\",\n    \"clarify\",\n    \"clarinet\",\n    \"clarity\",\n    \"clash\",\n    \"clasp\",\n    \"class\",\n    \"clatter\",\n    \"clause\",\n    \"clavicle\",\n    \"claw\",\n    \"clay\",\n    \"clean\",\n    \"clear\",\n    \"cleat\",\n    \"cleaver\",\n    \"cleft\",\n    \"clench\",\n    \"clergyman\",\n    \"clerical\",\n    \"clerk\",\n    \"clever\",\n    \"clicker\",\n    \"client\",\n    \"climate\",\n    \"climatic\",\n    \"cling\",\n    \"clinic\",\n    \"clinking\",\n    \"clip\",\n    \"clique\",\n    \"cloak\",\n    \"clobber\",\n    \"clock\",\n    \"clone\",\n    \"cloning\",\n    \"closable\",\n    \"closure\",\n    \"clothes\",\n    \"clothing\",\n    \"cloud\",\n    \"clover\",\n    \"clubbed\",\n    \"clubbing\",\n    \"clubhouse\",\n    \"clump\",\n    \"clumsily\",\n    \"clumsy\",\n    \"clunky\",\n    \"clustered\",\n    \"clutch\",\n    \"clutter\",\n    \"coach\",\n    \"coagulant\",\n    \"coastal\",\n    \"coaster\",\n    \"coasting\",\n    \"coastland\",\n    \"coastline\",\n    \"coat\",\n    \"coauthor\",\n    \"cobalt\",\n    \"cobbler\",\n    \"cobweb\",\n    \"cocoa\",\n    \"coconut\",\n    \"cod\",\n    \"coeditor\",\n    \"coerce\",\n    \"coexist\",\n    \"coffee\",\n    \"cofounder\",\n    \"cognition\",\n    \"cognitive\",\n    \"cogwheel\",\n    \"coherence\",\n    \"coherent\",\n    \"cohesive\",\n    \"coil\",\n    \"coke\",\n    \"cola\",\n    \"cold\",\n    \"coleslaw\",\n    \"coliseum\",\n    \"collage\",\n    \"collapse\",\n    \"collar\",\n    \"collected\",\n    \"collector\",\n    \"collide\",\n    \"collie\",\n    \"collision\",\n    \"colonial\",\n    \"colonist\",\n    \"colonize\",\n    \"colony\",\n    \"colossal\",\n    \"colt\",\n    \"coma\",\n    \"come\",\n    \"comfort\",\n    \"comfy\",\n    \"comic\",\n    \"coming\",\n    \"comma\",\n    \"commence\",\n    \"commend\",\n    \"comment\",\n    \"commerce\",\n    \"commode\",\n    \"commodity\",\n    \"commodore\",\n    \"common\",\n    \"commotion\",\n    \"commute\",\n    \"commuting\",\n    \"compacted\",\n    \"compacter\",\n    \"compactly\",\n    \"compactor\",\n    \"companion\",\n    \"company\",\n    \"compare\",\n    \"compel\",\n    \"compile\",\n    \"comply\",\n    \"component\",\n    \"composed\",\n    \"composer\",\n    \"composite\",\n    \"compost\",\n    \"composure\",\n    \"compound\",\n    \"compress\",\n    \"comprised\",\n    \"computer\",\n    \"computing\",\n    \"comrade\",\n    \"concave\",\n    \"conceal\",\n    \"conceded\",\n    \"concept\",\n    \"concerned\",\n    \"concert\",\n    \"conch\",\n    \"concierge\",\n    \"concise\",\n    \"conclude\",\n    \"concrete\",\n    \"concur\",\n    \"condense\",\n    \"condiment\",\n    \"condition\",\n    \"condone\",\n    \"conducive\",\n    \"conductor\",\n    \"conduit\",\n    \"cone\",\n    \"confess\",\n    \"confetti\",\n    \"confidant\",\n    \"confident\",\n    \"confider\",\n    \"confiding\",\n    \"configure\",\n    \"confined\",\n    \"confining\",\n    \"confirm\",\n    \"conflict\",\n    \"conform\",\n    \"confound\",\n    \"confront\",\n    \"confused\",\n    \"confusing\",\n    \"confusion\",\n    \"congenial\",\n    \"congested\",\n    \"congrats\",\n    \"congress\",\n    \"conical\",\n    \"conjoined\",\n    \"conjure\",\n    \"conjuror\",\n    \"connected\",\n    \"connector\",\n    \"consensus\",\n    \"consent\",\n    \"console\",\n    \"consoling\",\n    \"consonant\",\n    \"constable\",\n    \"constant\",\n    \"constrain\",\n    \"constrict\",\n    \"construct\",\n    \"consult\",\n    \"consumer\",\n    \"consuming\",\n    \"contact\",\n    \"container\",\n    \"contempt\",\n    \"contend\",\n    \"contented\",\n    \"contently\",\n    \"contents\",\n    \"contest\",\n    \"context\",\n    \"contort\",\n    \"contour\",\n    \"contrite\",\n    \"control\",\n    \"contusion\",\n    \"convene\",\n    \"convent\",\n    \"copartner\",\n    \"cope\",\n    \"copied\",\n    \"copier\",\n    \"copilot\",\n    \"coping\",\n    \"copious\",\n    \"copper\",\n    \"copy\",\n    \"coral\",\n    \"cork\",\n    \"cornball\",\n    \"cornbread\",\n    \"corncob\",\n    \"cornea\",\n    \"corned\",\n    \"corner\",\n    \"cornfield\",\n    \"cornflake\",\n    \"cornhusk\",\n    \"cornmeal\",\n    \"cornstalk\",\n    \"corny\",\n    \"coronary\",\n    \"coroner\",\n    \"corporal\",\n    \"corporate\",\n    \"corral\",\n    \"correct\",\n    \"corridor\",\n    \"corrode\",\n    \"corroding\",\n    \"corrosive\",\n    \"corsage\",\n    \"corset\",\n    \"cortex\",\n    \"cosigner\",\n    \"cosmetics\",\n    \"cosmic\",\n    \"cosmos\",\n    \"cosponsor\",\n    \"cost\",\n    \"cottage\",\n    \"cotton\",\n    \"couch\",\n    \"cough\",\n    \"could\",\n    \"countable\",\n    \"countdown\",\n    \"counting\",\n    \"countless\",\n    \"country\",\n    \"county\",\n    \"courier\",\n    \"covenant\",\n    \"cover\",\n    \"coveted\",\n    \"coveting\",\n    \"coyness\",\n    \"cozily\",\n    \"coziness\",\n    \"cozy\",\n    \"crabbing\",\n    \"crabgrass\",\n    \"crablike\",\n    \"crabmeat\",\n    \"cradle\",\n    \"cradling\",\n    \"crafter\",\n    \"craftily\",\n    \"craftsman\",\n    \"craftwork\",\n    \"crafty\",\n    \"cramp\",\n    \"cranberry\",\n    \"crane\",\n    \"cranial\",\n    \"cranium\",\n    \"crank\",\n    \"crate\",\n    \"crave\",\n    \"craving\",\n    \"crawfish\",\n    \"crawlers\",\n    \"crawling\",\n    \"crayfish\",\n    \"crayon\",\n    \"crazed\",\n    \"crazily\",\n    \"craziness\",\n    \"crazy\",\n    \"creamed\",\n    \"creamer\",\n    \"creamlike\",\n    \"crease\",\n    \"creasing\",\n    \"creatable\",\n    \"create\",\n    \"creation\",\n    \"creative\",\n    \"creature\",\n    \"credible\",\n    \"credibly\",\n    \"credit\",\n    \"creed\",\n    \"creme\",\n    \"creole\",\n    \"crepe\",\n    \"crept\",\n    \"crescent\",\n    \"crested\",\n    \"cresting\",\n    \"crestless\",\n    \"crevice\",\n    \"crewless\",\n    \"crewman\",\n    \"crewmate\",\n    \"crib\",\n    \"cricket\",\n    \"cried\",\n    \"crier\",\n    \"crimp\",\n    \"crimson\",\n    \"cringe\",\n    \"cringing\",\n    \"crinkle\",\n    \"crinkly\",\n    \"crisped\",\n    \"crisping\",\n    \"crisply\",\n    \"crispness\",\n    \"crispy\",\n    \"criteria\",\n    \"critter\",\n    \"croak\",\n    \"crock\",\n    \"crook\",\n    \"croon\",\n    \"crop\",\n    \"cross\",\n    \"crouch\",\n    \"crouton\",\n    \"crowbar\",\n    \"crowd\",\n    \"crown\",\n    \"crucial\",\n    \"crudely\",\n    \"crudeness\",\n    \"cruelly\",\n    \"cruelness\",\n    \"cruelty\",\n    \"crumb\",\n    \"crummiest\",\n    \"crummy\",\n    \"crumpet\",\n    \"crumpled\",\n    \"cruncher\",\n    \"crunching\",\n    \"crunchy\",\n    \"crusader\",\n    \"crushable\",\n    \"crushed\",\n    \"crusher\",\n    \"crushing\",\n    \"crust\",\n    \"crux\",\n    \"crying\",\n    \"cryptic\",\n    \"crystal\",\n    \"cubbyhole\",\n    \"cube\",\n    \"cubical\",\n    \"cubicle\",\n    \"cucumber\",\n    \"cuddle\",\n    \"cuddly\",\n    \"cufflink\",\n    \"culinary\",\n    \"culminate\",\n    \"culpable\",\n    \"culprit\",\n    \"cultivate\",\n    \"cultural\",\n    \"culture\",\n    \"cupbearer\",\n    \"cupcake\",\n    \"cupid\",\n    \"cupped\",\n    \"cupping\",\n    \"curable\",\n    \"curator\",\n    \"curdle\",\n    \"cure\",\n    \"curfew\",\n    \"curing\",\n    \"curled\",\n    \"curler\",\n    \"curliness\",\n    \"curling\",\n    \"curly\",\n    \"curry\",\n    \"curse\",\n    \"cursive\",\n    \"cursor\",\n    \"curtain\",\n    \"curtly\",\n    \"curtsy\",\n    \"curvature\",\n    \"curve\",\n    \"curvy\",\n    \"cushy\",\n    \"cusp\",\n    \"cussed\",\n    \"custard\",\n    \"custodian\",\n    \"custody\",\n    \"customary\",\n    \"customer\",\n    \"customize\",\n    \"customs\",\n    \"cut\",\n    \"cycle\",\n    \"cyclic\",\n    \"cycling\",\n    \"cyclist\",\n    \"cylinder\",\n    \"cymbal\",\n    \"cytoplasm\",\n    \"cytoplast\",\n    \"dab\",\n    \"dad\",\n    \"daffodil\",\n    \"dagger\",\n    \"daily\",\n    \"daintily\",\n    \"dainty\",\n    \"dairy\",\n    \"daisy\",\n    \"dallying\",\n    \"dance\",\n    \"dancing\",\n    \"dandelion\",\n    \"dander\",\n    \"dandruff\",\n    \"dandy\",\n    \"danger\",\n    \"dangle\",\n    \"dangling\",\n    \"daredevil\",\n    \"dares\",\n    \"daringly\",\n    \"darkened\",\n    \"darkening\",\n    \"darkish\",\n    \"darkness\",\n    \"darkroom\",\n    \"darling\",\n    \"darn\",\n    \"dart\",\n    \"darwinism\",\n    \"dash\",\n    \"dastardly\",\n    \"data\",\n    \"datebook\",\n    \"dating\",\n    \"daughter\",\n    \"daunting\",\n    \"dawdler\",\n    \"dawn\",\n    \"daybed\",\n    \"daybreak\",\n    \"daycare\",\n    \"daydream\",\n    \"daylight\",\n    \"daylong\",\n    \"dayroom\",\n    \"daytime\",\n    \"dazzler\",\n    \"dazzling\",\n    \"deacon\",\n    \"deafening\",\n    \"deafness\",\n    \"dealer\",\n    \"dealing\",\n    \"dealmaker\",\n    \"dealt\",\n    \"dean\",\n    \"debatable\",\n    \"debate\",\n    \"debating\",\n    \"debit\",\n    \"debrief\",\n    \"debtless\",\n    \"debtor\",\n    \"debug\",\n    \"debunk\",\n    \"decade\",\n    \"decaf\",\n    \"decal\",\n    \"decathlon\",\n    \"decay\",\n    \"deceased\",\n    \"deceit\",\n    \"deceiver\",\n    \"deceiving\",\n    \"december\",\n    \"decency\",\n    \"decent\",\n    \"deception\",\n    \"deceptive\",\n    \"decibel\",\n    \"decidable\",\n    \"decimal\",\n    \"decimeter\",\n    \"decipher\",\n    \"deck\",\n    \"declared\",\n    \"decline\",\n    \"decode\",\n    \"decompose\",\n    \"decorated\",\n    \"decorator\",\n    \"decoy\",\n    \"decrease\",\n    \"decree\",\n    \"dedicate\",\n    \"dedicator\",\n    \"deduce\",\n    \"deduct\",\n    \"deed\",\n    \"deem\",\n    \"deepen\",\n    \"deeply\",\n    \"deepness\",\n    \"deface\",\n    \"defacing\",\n    \"defame\",\n    \"default\",\n    \"defeat\",\n    \"defection\",\n    \"defective\",\n    \"defendant\",\n    \"defender\",\n    \"defense\",\n    \"defensive\",\n    \"deferral\",\n    \"deferred\",\n    \"defiance\",\n    \"defiant\",\n    \"defile\",\n    \"defiling\",\n    \"define\",\n    \"definite\",\n    \"deflate\",\n    \"deflation\",\n    \"deflator\",\n    \"deflected\",\n    \"deflector\",\n    \"defog\",\n    \"deforest\",\n    \"defraud\",\n    \"defrost\",\n    \"deftly\",\n    \"defuse\",\n    \"defy\",\n    \"degraded\",\n    \"degrading\",\n    \"degrease\",\n    \"degree\",\n    \"dehydrate\",\n    \"deity\",\n    \"dejected\",\n    \"delay\",\n    \"delegate\",\n    \"delegator\",\n    \"delete\",\n    \"deletion\",\n    \"delicacy\",\n    \"delicate\",\n    \"delicious\",\n    \"delighted\",\n    \"delirious\",\n    \"delirium\",\n    \"deliverer\",\n    \"delivery\",\n    \"delouse\",\n    \"delta\",\n    \"deluge\",\n    \"delusion\",\n    \"deluxe\",\n    \"demanding\",\n    \"demeaning\",\n    \"demeanor\",\n    \"demise\",\n    \"democracy\",\n    \"democrat\",\n    \"demote\",\n    \"demotion\",\n    \"demystify\",\n    \"denatured\",\n    \"deniable\",\n    \"denial\",\n    \"denim\",\n    \"denote\",\n    \"dense\",\n    \"density\",\n    \"dental\",\n    \"dentist\",\n    \"denture\",\n    \"deny\",\n    \"deodorant\",\n    \"deodorize\",\n    \"departed\",\n    \"departure\",\n    \"depict\",\n    \"deplete\",\n    \"depletion\",\n    \"deplored\",\n    \"deploy\",\n    \"deport\",\n    \"depose\",\n    \"depraved\",\n    \"depravity\",\n    \"deprecate\",\n    \"depress\",\n    \"deprive\",\n    \"depth\",\n    \"deputize\",\n    \"deputy\",\n    \"derail\",\n    \"deranged\",\n    \"derby\",\n    \"derived\",\n    \"desecrate\",\n    \"deserve\",\n    \"deserving\",\n    \"designate\",\n    \"designed\",\n    \"designer\",\n    \"designing\",\n    \"deskbound\",\n    \"desktop\",\n    \"deskwork\",\n    \"desolate\",\n    \"despair\",\n    \"despise\",\n    \"despite\",\n    \"destiny\",\n    \"destitute\",\n    \"destruct\",\n    \"detached\",\n    \"detail\",\n    \"detection\",\n    \"detective\",\n    \"detector\",\n    \"detention\",\n    \"detergent\",\n    \"detest\",\n    \"detonate\",\n    \"detonator\",\n    \"detoxify\",\n    \"detract\",\n    \"deuce\",\n    \"devalue\",\n    \"deviancy\",\n    \"deviant\",\n    \"deviate\",\n    \"deviation\",\n    \"deviator\",\n    \"device\",\n    \"devious\",\n    \"devotedly\",\n    \"devotee\",\n    \"devotion\",\n    \"devourer\",\n    \"devouring\",\n    \"devoutly\",\n    \"dexterity\",\n    \"dexterous\",\n    \"diabetes\",\n    \"diabetic\",\n    \"diabolic\",\n    \"diagnoses\",\n    \"diagnosis\",\n    \"diagram\",\n    \"dial\",\n    \"diameter\",\n    \"diaper\",\n    \"diaphragm\",\n    \"diary\",\n    \"dice\",\n    \"dicing\",\n    \"dictate\",\n    \"dictation\",\n    \"dictator\",\n    \"difficult\",\n    \"diffused\",\n    \"diffuser\",\n    \"diffusion\",\n    \"diffusive\",\n    \"dig\",\n    \"dilation\",\n    \"diligence\",\n    \"diligent\",\n    \"dill\",\n    \"dilute\",\n    \"dime\",\n    \"diminish\",\n    \"dimly\",\n    \"dimmed\",\n    \"dimmer\",\n    \"dimness\",\n    \"dimple\",\n    \"diner\",\n    \"dingbat\",\n    \"dinghy\",\n    \"dinginess\",\n    \"dingo\",\n    \"dingy\",\n    \"dining\",\n    \"dinner\",\n    \"diocese\",\n    \"dioxide\",\n    \"diploma\",\n    \"dipped\",\n    \"dipper\",\n    \"dipping\",\n    \"directed\",\n    \"direction\",\n    \"directive\",\n    \"directly\",\n    \"directory\",\n    \"direness\",\n    \"dirtiness\",\n    \"disabled\",\n    \"disagree\",\n    \"disallow\",\n    \"disarm\",\n    \"disarray\",\n    \"disaster\",\n    \"disband\",\n    \"disbelief\",\n    \"disburse\",\n    \"discard\",\n    \"discern\",\n    \"discharge\",\n    \"disclose\",\n    \"discolor\",\n    \"discount\",\n    \"discourse\",\n    \"discover\",\n    \"discuss\",\n    \"disdain\",\n    \"disengage\",\n    \"disfigure\",\n    \"disgrace\",\n    \"dish\",\n    \"disinfect\",\n    \"disjoin\",\n    \"disk\",\n    \"dislike\",\n    \"disliking\",\n    \"dislocate\",\n    \"dislodge\",\n    \"disloyal\",\n    \"dismantle\",\n    \"dismay\",\n    \"dismiss\",\n    \"dismount\",\n    \"disobey\",\n    \"disorder\",\n    \"disown\",\n    \"disparate\",\n    \"disparity\",\n    \"dispatch\",\n    \"dispense\",\n    \"dispersal\",\n    \"dispersed\",\n    \"disperser\",\n    \"displace\",\n    \"display\",\n    \"displease\",\n    \"disposal\",\n    \"dispose\",\n    \"disprove\",\n    \"dispute\",\n    \"disregard\",\n    \"disrupt\",\n    \"dissuade\",\n    \"distance\",\n    \"distant\",\n    \"distaste\",\n    \"distill\",\n    \"distinct\",\n    \"distort\",\n    \"distract\",\n    \"distress\",\n    \"district\",\n    \"distrust\",\n    \"ditch\",\n    \"ditto\",\n    \"ditzy\",\n    \"dividable\",\n    \"divided\",\n    \"dividend\",\n    \"dividers\",\n    \"dividing\",\n    \"divinely\",\n    \"diving\",\n    \"divinity\",\n    \"divisible\",\n    \"divisibly\",\n    \"division\",\n    \"divisive\",\n    \"divorcee\",\n    \"dizziness\",\n    \"dizzy\",\n    \"doable\",\n    \"docile\",\n    \"dock\",\n    \"doctrine\",\n    \"document\",\n    \"dodge\",\n    \"dodgy\",\n    \"doily\",\n    \"doing\",\n    \"dole\",\n    \"dollar\",\n    \"dollhouse\",\n    \"dollop\",\n    \"dolly\",\n    \"dolphin\",\n    \"domain\",\n    \"domelike\",\n    \"domestic\",\n    \"dominion\",\n    \"dominoes\",\n    \"donated\",\n    \"donation\",\n    \"donator\",\n    \"donor\",\n    \"donut\",\n    \"doodle\",\n    \"doorbell\",\n    \"doorframe\",\n    \"doorknob\",\n    \"doorman\",\n    \"doormat\",\n    \"doornail\",\n    \"doorpost\",\n    \"doorstep\",\n    \"doorstop\",\n    \"doorway\",\n    \"doozy\",\n    \"dork\",\n    \"dormitory\",\n    \"dorsal\",\n    \"dosage\",\n    \"dose\",\n    \"dotted\",\n    \"doubling\",\n    \"douche\",\n    \"dove\",\n    \"down\",\n    \"dowry\",\n    \"doze\",\n    \"drab\",\n    \"dragging\",\n    \"dragonfly\",\n    \"dragonish\",\n    \"dragster\",\n    \"drainable\",\n    \"drainage\",\n    \"drained\",\n    \"drainer\",\n    \"drainpipe\",\n    \"dramatic\",\n    \"dramatize\",\n    \"drank\",\n    \"drapery\",\n    \"drastic\",\n    \"draw\",\n    \"dreaded\",\n    \"dreadful\",\n    \"dreadlock\",\n    \"dreamboat\",\n    \"dreamily\",\n    \"dreamland\",\n    \"dreamless\",\n    \"dreamlike\",\n    \"dreamt\",\n    \"dreamy\",\n    \"drearily\",\n    \"dreary\",\n    \"drench\",\n    \"dress\",\n    \"drew\",\n    \"dribble\",\n    \"dried\",\n    \"drier\",\n    \"drift\",\n    \"driller\",\n    \"drilling\",\n    \"drinkable\",\n    \"drinking\",\n    \"dripping\",\n    \"drippy\",\n    \"drivable\",\n    \"driven\",\n    \"driver\",\n    \"driveway\",\n    \"driving\",\n    \"drizzle\",\n    \"drizzly\",\n    \"drone\",\n    \"drool\",\n    \"droop\",\n    \"drop-down\",\n    \"dropbox\",\n    \"dropkick\",\n    \"droplet\",\n    \"dropout\",\n    \"dropper\",\n    \"drove\",\n    \"drown\",\n    \"drowsily\",\n    \"drudge\",\n    \"drum\",\n    \"dry\",\n    \"dubbed\",\n    \"dubiously\",\n    \"duchess\",\n    \"duckbill\",\n    \"ducking\",\n    \"duckling\",\n    \"ducktail\",\n    \"ducky\",\n    \"duct\",\n    \"dude\",\n    \"duffel\",\n    \"dugout\",\n    \"duh\",\n    \"duke\",\n    \"duller\",\n    \"dullness\",\n    \"duly\",\n    \"dumping\",\n    \"dumpling\",\n    \"dumpster\",\n    \"duo\",\n    \"dupe\",\n    \"duplex\",\n    \"duplicate\",\n    \"duplicity\",\n    \"durable\",\n    \"durably\",\n    \"duration\",\n    \"duress\",\n    \"during\",\n    \"dusk\",\n    \"dust\",\n    \"dutiful\",\n    \"duty\",\n    \"duvet\",\n    \"dwarf\",\n    \"dweeb\",\n    \"dwelled\",\n    \"dweller\",\n    \"dwelling\",\n    \"dwindle\",\n    \"dwindling\",\n    \"dynamic\",\n    \"dynamite\",\n    \"dynasty\",\n    \"dyslexia\",\n    \"dyslexic\",\n    \"each\",\n    \"eagle\",\n    \"earache\",\n    \"eardrum\",\n    \"earflap\",\n    \"earful\",\n    \"earlobe\",\n    \"early\",\n    \"earmark\",\n    \"earmuff\",\n    \"earphone\",\n    \"earpiece\",\n    \"earplugs\",\n    \"earring\",\n    \"earshot\",\n    \"earthen\",\n    \"earthlike\",\n    \"earthling\",\n    \"earthly\",\n    \"earthworm\",\n    \"earthy\",\n    \"earwig\",\n    \"easeful\",\n    \"easel\",\n    \"easiest\",\n    \"easily\",\n    \"easiness\",\n    \"easing\",\n    \"eastbound\",\n    \"eastcoast\",\n    \"easter\",\n    \"eastward\",\n    \"eatable\",\n    \"eaten\",\n    \"eatery\",\n    \"eating\",\n    \"eats\",\n    \"ebay\",\n    \"ebony\",\n    \"ebook\",\n    \"ecard\",\n    \"eccentric\",\n    \"echo\",\n    \"eclair\",\n    \"eclipse\",\n    \"ecologist\",\n    \"ecology\",\n    \"economic\",\n    \"economist\",\n    \"economy\",\n    \"ecosphere\",\n    \"ecosystem\",\n    \"edge\",\n    \"edginess\",\n    \"edging\",\n    \"edgy\",\n    \"edition\",\n    \"editor\",\n    \"educated\",\n    \"education\",\n    \"educator\",\n    \"eel\",\n    \"effective\",\n    \"effects\",\n    \"efficient\",\n    \"effort\",\n    \"eggbeater\",\n    \"egging\",\n    \"eggnog\",\n    \"eggplant\",\n    \"eggshell\",\n    \"egomaniac\",\n    \"egotism\",\n    \"egotistic\",\n    \"either\",\n    \"eject\",\n    \"elaborate\",\n    \"elastic\",\n    \"elated\",\n    \"elbow\",\n    \"eldercare\",\n    \"elderly\",\n    \"eldest\",\n    \"electable\",\n    \"election\",\n    \"elective\",\n    \"elephant\",\n    \"elevate\",\n    \"elevating\",\n    \"elevation\",\n    \"elevator\",\n    \"eleven\",\n    \"elf\",\n    \"eligible\",\n    \"eligibly\",\n    \"eliminate\",\n    \"elite\",\n    \"elitism\",\n    \"elixir\",\n    \"elk\",\n    \"ellipse\",\n    \"elliptic\",\n    \"elm\",\n    \"elongated\",\n    \"elope\",\n    \"eloquence\",\n    \"eloquent\",\n    \"elsewhere\",\n    \"elude\",\n    \"elusive\",\n    \"elves\",\n    \"email\",\n    \"embargo\",\n    \"embark\",\n    \"embassy\",\n    \"embattled\",\n    \"embellish\",\n    \"ember\",\n    \"embezzle\",\n    \"emblaze\",\n    \"emblem\",\n    \"embody\",\n    \"embolism\",\n    \"emboss\",\n    \"embroider\",\n    \"emcee\",\n    \"emerald\",\n    \"emergency\",\n    \"emission\",\n    \"emit\",\n    \"emote\",\n    \"emoticon\",\n    \"emotion\",\n    \"empathic\",\n    \"empathy\",\n    \"emperor\",\n    \"emphases\",\n    \"emphasis\",\n    \"emphasize\",\n    \"emphatic\",\n    \"empirical\",\n    \"employed\",\n    \"employee\",\n    \"employer\",\n    \"emporium\",\n    \"empower\",\n    \"emptier\",\n    \"emptiness\",\n    \"empty\",\n    \"emu\",\n    \"enable\",\n    \"enactment\",\n    \"enamel\",\n    \"enchanted\",\n    \"enchilada\",\n    \"encircle\",\n    \"enclose\",\n    \"enclosure\",\n    \"encode\",\n    \"encore\",\n    \"encounter\",\n    \"encourage\",\n    \"encroach\",\n    \"encrust\",\n    \"encrypt\",\n    \"endanger\",\n    \"endeared\",\n    \"endearing\",\n    \"ended\",\n    \"ending\",\n    \"endless\",\n    \"endnote\",\n    \"endocrine\",\n    \"endorphin\",\n    \"endorse\",\n    \"endowment\",\n    \"endpoint\",\n    \"endurable\",\n    \"endurance\",\n    \"enduring\",\n    \"energetic\",\n    \"energize\",\n    \"energy\",\n    \"enforced\",\n    \"enforcer\",\n    \"engaged\",\n    \"engaging\",\n    \"engine\",\n    \"engorge\",\n    \"engraved\",\n    \"engraver\",\n    \"engraving\",\n    \"engross\",\n    \"engulf\",\n    \"enhance\",\n    \"enigmatic\",\n    \"enjoyable\",\n    \"enjoyably\",\n    \"enjoyer\",\n    \"enjoying\",\n    \"enjoyment\",\n    \"enlarged\",\n    \"enlarging\",\n    \"enlighten\",\n    \"enlisted\",\n    \"enquirer\",\n    \"enrage\",\n    \"enrich\",\n    \"enroll\",\n    \"enslave\",\n    \"ensnare\",\n    \"ensure\",\n    \"entail\",\n    \"entangled\",\n    \"entering\",\n    \"entertain\",\n    \"enticing\",\n    \"entire\",\n    \"entitle\",\n    \"entity\",\n    \"entomb\",\n    \"entourage\",\n    \"entrap\",\n    \"entree\",\n    \"entrench\",\n    \"entrust\",\n    \"entryway\",\n    \"entwine\",\n    \"enunciate\",\n    \"envelope\",\n    \"enviable\",\n    \"enviably\",\n    \"envious\",\n    \"envision\",\n    \"envoy\",\n    \"envy\",\n    \"enzyme\",\n    \"epic\",\n    \"epidemic\",\n    \"epidermal\",\n    \"epidermis\",\n    \"epidural\",\n    \"epilepsy\",\n    \"epileptic\",\n    \"epilogue\",\n    \"epiphany\",\n    \"episode\",\n    \"equal\",\n    \"equate\",\n    \"equation\",\n    \"equator\",\n    \"equinox\",\n    \"equipment\",\n    \"equity\",\n    \"equivocal\",\n    \"eradicate\",\n    \"erasable\",\n    \"erased\",\n    \"eraser\",\n    \"erasure\",\n    \"ergonomic\",\n    \"errand\",\n    \"errant\",\n    \"erratic\",\n    \"error\",\n    \"erupt\",\n    \"escalate\",\n    \"escalator\",\n    \"escapable\",\n    \"escapade\",\n    \"escapist\",\n    \"escargot\",\n    \"eskimo\",\n    \"esophagus\",\n    \"espionage\",\n    \"espresso\",\n    \"esquire\",\n    \"essay\",\n    \"essence\",\n    \"essential\",\n    \"establish\",\n    \"estate\",\n    \"esteemed\",\n    \"estimate\",\n    \"estimator\",\n    \"estranged\",\n    \"estrogen\",\n    \"etching\",\n    \"eternal\",\n    \"eternity\",\n    \"ethanol\",\n    \"ether\",\n    \"ethically\",\n    \"ethics\",\n    \"euphemism\",\n    \"evacuate\",\n    \"evacuee\",\n    \"evade\",\n    \"evaluate\",\n    \"evaluator\",\n    \"evaporate\",\n    \"evasion\",\n    \"evasive\",\n    \"even\",\n    \"everglade\",\n    \"evergreen\",\n    \"everybody\",\n    \"everyday\",\n    \"everyone\",\n    \"evict\",\n    \"evidence\",\n    \"evident\",\n    \"evil\",\n    \"evoke\",\n    \"evolution\",\n    \"evolve\",\n    \"exact\",\n    \"exalted\",\n    \"example\",\n    \"excavate\",\n    \"excavator\",\n    \"exceeding\",\n    \"exception\",\n    \"excess\",\n    \"exchange\",\n    \"excitable\",\n    \"exciting\",\n    \"exclaim\",\n    \"exclude\",\n    \"excluding\",\n    \"exclusion\",\n    \"exclusive\",\n    \"excretion\",\n    \"excretory\",\n    \"excursion\",\n    \"excusable\",\n    \"excusably\",\n    \"excuse\",\n    \"exemplary\",\n    \"exemplify\",\n    \"exemption\",\n    \"exerciser\",\n    \"exert\",\n    \"exes\",\n    \"exfoliate\",\n    \"exhale\",\n    \"exhaust\",\n    \"exhume\",\n    \"exile\",\n    \"existing\",\n    \"exit\",\n    \"exodus\",\n    \"exonerate\",\n    \"exorcism\",\n    \"exorcist\",\n    \"expand\",\n    \"expanse\",\n    \"expansion\",\n    \"expansive\",\n    \"expectant\",\n    \"expedited\",\n    \"expediter\",\n    \"expel\",\n    \"expend\",\n    \"expenses\",\n    \"expensive\",\n    \"expert\",\n    \"expire\",\n    \"expiring\",\n    \"explain\",\n    \"expletive\",\n    \"explicit\",\n    \"explode\",\n    \"exploit\",\n    \"explore\",\n    \"exploring\",\n    \"exponent\",\n    \"exporter\",\n    \"exposable\",\n    \"expose\",\n    \"exposure\",\n    \"express\",\n    \"expulsion\",\n    \"exquisite\",\n    \"extended\",\n    \"extending\",\n    \"extent\",\n    \"extenuate\",\n    \"exterior\",\n    \"external\",\n    \"extinct\",\n    \"extortion\",\n    \"extradite\",\n    \"extras\",\n    \"extrovert\",\n    \"extrude\",\n    \"extruding\",\n    \"exuberant\",\n    \"fable\",\n    \"fabric\",\n    \"fabulous\",\n    \"facebook\",\n    \"facecloth\",\n    \"facedown\",\n    \"faceless\",\n    \"facelift\",\n    \"faceplate\",\n    \"faceted\",\n    \"facial\",\n    \"facility\",\n    \"facing\",\n    \"facsimile\",\n    \"faction\",\n    \"factoid\",\n    \"factor\",\n    \"factsheet\",\n    \"factual\",\n    \"faculty\",\n    \"fade\",\n    \"fading\",\n    \"failing\",\n    \"falcon\",\n    \"fall\",\n    \"false\",\n    \"falsify\",\n    \"fame\",\n    \"familiar\",\n    \"family\",\n    \"famine\",\n    \"famished\",\n    \"fanatic\",\n    \"fancied\",\n    \"fanciness\",\n    \"fancy\",\n    \"fanfare\",\n    \"fang\",\n    \"fanning\",\n    \"fantasize\",\n    \"fantastic\",\n    \"fantasy\",\n    \"fascism\",\n    \"fastball\",\n    \"faster\",\n    \"fasting\",\n    \"fastness\",\n    \"faucet\",\n    \"favorable\",\n    \"favorably\",\n    \"favored\",\n    \"favoring\",\n    \"favorite\",\n    \"fax\",\n    \"feast\",\n    \"federal\",\n    \"fedora\",\n    \"feeble\",\n    \"feed\",\n    \"feel\",\n    \"feisty\",\n    \"feline\",\n    \"felt-tip\",\n    \"feminine\",\n    \"feminism\",\n    \"feminist\",\n    \"feminize\",\n    \"femur\",\n    \"fence\",\n    \"fencing\",\n    \"fender\",\n    \"ferment\",\n    \"fernlike\",\n    \"ferocious\",\n    \"ferocity\",\n    \"ferret\",\n    \"ferris\",\n    \"ferry\",\n    \"fervor\",\n    \"fester\",\n    \"festival\",\n    \"festive\",\n    \"festivity\",\n    \"fetal\",\n    \"fetch\",\n    \"fever\",\n    \"fiber\",\n    \"fiction\",\n    \"fiddle\",\n    \"fiddling\",\n    \"fidelity\",\n    \"fidgeting\",\n    \"fidgety\",\n    \"fifteen\",\n    \"fifth\",\n    \"fiftieth\",\n    \"fifty\",\n    \"figment\",\n    \"figure\",\n    \"figurine\",\n    \"filing\",\n    \"filled\",\n    \"filler\",\n    \"filling\",\n    \"film\",\n    \"filter\",\n    \"filth\",\n    \"filtrate\",\n    \"finale\",\n    \"finalist\",\n    \"finalize\",\n    \"finally\",\n    \"finance\",\n    \"financial\",\n    \"finch\",\n    \"fineness\",\n    \"finer\",\n    \"finicky\",\n    \"finished\",\n    \"finisher\",\n    \"finishing\",\n    \"finite\",\n    \"finless\",\n    \"finlike\",\n    \"fiscally\",\n    \"fit\",\n    \"five\",\n    \"flaccid\",\n    \"flagman\",\n    \"flagpole\",\n    \"flagship\",\n    \"flagstick\",\n    \"flagstone\",\n    \"flail\",\n    \"flakily\",\n    \"flaky\",\n    \"flame\",\n    \"flammable\",\n    \"flanked\",\n    \"flanking\",\n    \"flannels\",\n    \"flap\",\n    \"flaring\",\n    \"flashback\",\n    \"flashbulb\",\n    \"flashcard\",\n    \"flashily\",\n    \"flashing\",\n    \"flashy\",\n    \"flask\",\n    \"flatbed\",\n    \"flatfoot\",\n    \"flatly\",\n    \"flatness\",\n    \"flatten\",\n    \"flattered\",\n    \"flatterer\",\n    \"flattery\",\n    \"flattop\",\n    \"flatware\",\n    \"flatworm\",\n    \"flavored\",\n    \"flavorful\",\n    \"flavoring\",\n    \"flaxseed\",\n    \"fled\",\n    \"fleshed\",\n    \"fleshy\",\n    \"flick\",\n    \"flier\",\n    \"flight\",\n    \"flinch\",\n    \"fling\",\n    \"flint\",\n    \"flip\",\n    \"flirt\",\n    \"float\",\n    \"flock\",\n    \"flogging\",\n    \"flop\",\n    \"floral\",\n    \"florist\",\n    \"floss\",\n    \"flounder\",\n    \"flyable\",\n    \"flyaway\",\n    \"flyer\",\n    \"flying\",\n    \"flyover\",\n    \"flypaper\",\n    \"foam\",\n    \"foe\",\n    \"fog\",\n    \"foil\",\n    \"folic\",\n    \"folk\",\n    \"follicle\",\n    \"follow\",\n    \"fondling\",\n    \"fondly\",\n    \"fondness\",\n    \"fondue\",\n    \"font\",\n    \"food\",\n    \"fool\",\n    \"footage\",\n    \"football\",\n    \"footbath\",\n    \"footboard\",\n    \"footer\",\n    \"footgear\",\n    \"foothill\",\n    \"foothold\",\n    \"footing\",\n    \"footless\",\n    \"footman\",\n    \"footnote\",\n    \"footpad\",\n    \"footpath\",\n    \"footprint\",\n    \"footrest\",\n    \"footsie\",\n    \"footsore\",\n    \"footwear\",\n    \"footwork\",\n    \"fossil\",\n    \"foster\",\n    \"founder\",\n    \"founding\",\n    \"fountain\",\n    \"fox\",\n    \"foyer\",\n    \"fraction\",\n    \"fracture\",\n    \"fragile\",\n    \"fragility\",\n    \"fragment\",\n    \"fragrance\",\n    \"fragrant\",\n    \"frail\",\n    \"frame\",\n    \"framing\",\n    \"frantic\",\n    \"fraternal\",\n    \"frayed\",\n    \"fraying\",\n    \"frays\",\n    \"freckled\",\n    \"freckles\",\n    \"freebase\",\n    \"freebee\",\n    \"freebie\",\n    \"freedom\",\n    \"freefall\",\n    \"freehand\",\n    \"freeing\",\n    \"freeload\",\n    \"freely\",\n    \"freemason\",\n    \"freeness\",\n    \"freestyle\",\n    \"freeware\",\n    \"freeway\",\n    \"freewill\",\n    \"freezable\",\n    \"freezing\",\n    \"freight\",\n    \"french\",\n    \"frenzied\",\n    \"frenzy\",\n    \"frequency\",\n    \"frequent\",\n    \"fresh\",\n    \"fretful\",\n    \"fretted\",\n    \"friction\",\n    \"friday\",\n    \"fridge\",\n    \"fried\",\n    \"friend\",\n    \"frighten\",\n    \"frightful\",\n    \"frigidity\",\n    \"frigidly\",\n    \"frill\",\n    \"fringe\",\n    \"frisbee\",\n    \"frisk\",\n    \"fritter\",\n    \"frivolous\",\n    \"frolic\",\n    \"from\",\n    \"front\",\n    \"frostbite\",\n    \"frosted\",\n    \"frostily\",\n    \"frosting\",\n    \"frostlike\",\n    \"frosty\",\n    \"froth\",\n    \"frown\",\n    \"frozen\",\n    \"fructose\",\n    \"frugality\",\n    \"frugally\",\n    \"fruit\",\n    \"frustrate\",\n    \"frying\",\n    \"gab\",\n    \"gaffe\",\n    \"gag\",\n    \"gainfully\",\n    \"gaining\",\n    \"gains\",\n    \"gala\",\n    \"gallantly\",\n    \"galleria\",\n    \"gallery\",\n    \"galley\",\n    \"gallon\",\n    \"gallows\",\n    \"gallstone\",\n    \"galore\",\n    \"galvanize\",\n    \"gambling\",\n    \"game\",\n    \"gaming\",\n    \"gamma\",\n    \"gander\",\n    \"gangly\",\n    \"gangrene\",\n    \"gangway\",\n    \"gap\",\n    \"garage\",\n    \"garbage\",\n    \"garden\",\n    \"gargle\",\n    \"garland\",\n    \"garlic\",\n    \"garment\",\n    \"garnet\",\n    \"garnish\",\n    \"garter\",\n    \"gas\",\n    \"gatherer\",\n    \"gathering\",\n    \"gating\",\n    \"gauging\",\n    \"gauntlet\",\n    \"gauze\",\n    \"gave\",\n    \"gawk\",\n    \"gazing\",\n    \"gear\",\n    \"gecko\",\n    \"geek\",\n    \"geiger\",\n    \"gem\",\n    \"gender\",\n    \"generic\",\n    \"generous\",\n    \"genetics\",\n    \"genre\",\n    \"gentile\",\n    \"gentleman\",\n    \"gently\",\n    \"gents\",\n    \"geography\",\n    \"geologic\",\n    \"geologist\",\n    \"geology\",\n    \"geometric\",\n    \"geometry\",\n    \"geranium\",\n    \"gerbil\",\n    \"geriatric\",\n    \"germicide\",\n    \"germinate\",\n    \"germless\",\n    \"germproof\",\n    \"gestate\",\n    \"gestation\",\n    \"gesture\",\n    \"getaway\",\n    \"getting\",\n    \"getup\",\n    \"giant\",\n    \"gibberish\",\n    \"giblet\",\n    \"giddily\",\n    \"giddiness\",\n    \"giddy\",\n    \"gift\",\n    \"gigabyte\",\n    \"gigahertz\",\n    \"gigantic\",\n    \"giggle\",\n    \"giggling\",\n    \"giggly\",\n    \"gigolo\",\n    \"gilled\",\n    \"gills\",\n    \"gimmick\",\n    \"girdle\",\n    \"giveaway\",\n    \"given\",\n    \"giver\",\n    \"giving\",\n    \"gizmo\",\n    \"gizzard\",\n    \"glacial\",\n    \"glacier\",\n    \"glade\",\n    \"gladiator\",\n    \"gladly\",\n    \"glamorous\",\n    \"glamour\",\n    \"glance\",\n    \"glancing\",\n    \"glandular\",\n    \"glare\",\n    \"glaring\",\n    \"glass\",\n    \"glaucoma\",\n    \"glazing\",\n    \"gleaming\",\n    \"gleeful\",\n    \"glider\",\n    \"gliding\",\n    \"glimmer\",\n    \"glimpse\",\n    \"glisten\",\n    \"glitch\",\n    \"glitter\",\n    \"glitzy\",\n    \"gloater\",\n    \"gloating\",\n    \"gloomily\",\n    \"gloomy\",\n    \"glorified\",\n    \"glorifier\",\n    \"glorify\",\n    \"glorious\",\n    \"glory\",\n    \"gloss\",\n    \"glove\",\n    \"glowing\",\n    \"glowworm\",\n    \"glucose\",\n    \"glue\",\n    \"gluten\",\n    \"glutinous\",\n    \"glutton\",\n    \"gnarly\",\n    \"gnat\",\n    \"goal\",\n    \"goatskin\",\n    \"goes\",\n    \"goggles\",\n    \"going\",\n    \"goldfish\",\n    \"goldmine\",\n    \"goldsmith\",\n    \"golf\",\n    \"goliath\",\n    \"gonad\",\n    \"gondola\",\n    \"gone\",\n    \"gong\",\n    \"good\",\n    \"gooey\",\n    \"goofball\",\n    \"goofiness\",\n    \"goofy\",\n    \"google\",\n    \"goon\",\n    \"gopher\",\n    \"gore\",\n    \"gorged\",\n    \"gorgeous\",\n    \"gory\",\n    \"gosling\",\n    \"gossip\",\n    \"gothic\",\n    \"gotten\",\n    \"gout\",\n    \"gown\",\n    \"grab\",\n    \"graceful\",\n    \"graceless\",\n    \"gracious\",\n    \"gradation\",\n    \"graded\",\n    \"grader\",\n    \"gradient\",\n    \"grading\",\n    \"gradually\",\n    \"graduate\",\n    \"graffiti\",\n    \"grafted\",\n    \"grafting\",\n    \"grain\",\n    \"granddad\",\n    \"grandkid\",\n    \"grandly\",\n    \"grandma\",\n    \"grandpa\",\n    \"grandson\",\n    \"granite\",\n    \"granny\",\n    \"granola\",\n    \"grant\",\n    \"granular\",\n    \"grape\",\n    \"graph\",\n    \"grapple\",\n    \"grappling\",\n    \"grasp\",\n    \"grass\",\n    \"gratified\",\n    \"gratify\",\n    \"grating\",\n    \"gratitude\",\n    \"gratuity\",\n    \"gravel\",\n    \"graveness\",\n    \"graves\",\n    \"graveyard\",\n    \"gravitate\",\n    \"gravity\",\n    \"gravy\",\n    \"gray\",\n    \"grazing\",\n    \"greasily\",\n    \"greedily\",\n    \"greedless\",\n    \"greedy\",\n    \"green\",\n    \"greeter\",\n    \"greeting\",\n    \"grew\",\n    \"greyhound\",\n    \"grid\",\n    \"grief\",\n    \"grievance\",\n    \"grieving\",\n    \"grievous\",\n    \"grill\",\n    \"grimace\",\n    \"grimacing\",\n    \"grime\",\n    \"griminess\",\n    \"grimy\",\n    \"grinch\",\n    \"grinning\",\n    \"grip\",\n    \"gristle\",\n    \"grit\",\n    \"groggily\",\n    \"groggy\",\n    \"groin\",\n    \"groom\",\n    \"groove\",\n    \"grooving\",\n    \"groovy\",\n    \"grope\",\n    \"ground\",\n    \"grouped\",\n    \"grout\",\n    \"grove\",\n    \"grower\",\n    \"growing\",\n    \"growl\",\n    \"grub\",\n    \"grudge\",\n    \"grudging\",\n    \"grueling\",\n    \"gruffly\",\n    \"grumble\",\n    \"grumbling\",\n    \"grumbly\",\n    \"grumpily\",\n    \"grunge\",\n    \"grunt\",\n    \"guacamole\",\n    \"guidable\",\n    \"guidance\",\n    \"guide\",\n    \"guiding\",\n    \"guileless\",\n    \"guise\",\n    \"gulf\",\n    \"gullible\",\n    \"gully\",\n    \"gulp\",\n    \"gumball\",\n    \"gumdrop\",\n    \"gumminess\",\n    \"gumming\",\n    \"gummy\",\n    \"gurgle\",\n    \"gurgling\",\n    \"guru\",\n    \"gush\",\n    \"gusto\",\n    \"gusty\",\n    \"gutless\",\n    \"guts\",\n    \"gutter\",\n    \"guy\",\n    \"guzzler\",\n    \"gyration\",\n    \"habitable\",\n    \"habitant\",\n    \"habitat\",\n    \"habitual\",\n    \"hacked\",\n    \"hacker\",\n    \"hacking\",\n    \"hacksaw\",\n    \"had\",\n    \"haggler\",\n    \"haiku\",\n    \"half\",\n    \"halogen\",\n    \"halt\",\n    \"halved\",\n    \"halves\",\n    \"hamburger\",\n    \"hamlet\",\n    \"hammock\",\n    \"hamper\",\n    \"hamster\",\n    \"hamstring\",\n    \"handbag\",\n    \"handball\",\n    \"handbook\",\n    \"handbrake\",\n    \"handcart\",\n    \"handclap\",\n    \"handclasp\",\n    \"handcraft\",\n    \"handcuff\",\n    \"handed\",\n    \"handful\",\n    \"handgrip\",\n    \"handgun\",\n    \"handheld\",\n    \"handiness\",\n    \"handiwork\",\n    \"handlebar\",\n    \"handled\",\n    \"handler\",\n    \"handling\",\n    \"handmade\",\n    \"handoff\",\n    \"handpick\",\n    \"handprint\",\n    \"handrail\",\n    \"handsaw\",\n    \"handset\",\n    \"handsfree\",\n    \"handshake\",\n    \"handstand\",\n    \"handwash\",\n    \"handwork\",\n    \"handwoven\",\n    \"handwrite\",\n    \"handyman\",\n    \"hangnail\",\n    \"hangout\",\n    \"hangover\",\n    \"hangup\",\n    \"hankering\",\n    \"hankie\",\n    \"hanky\",\n    \"haphazard\",\n    \"happening\",\n    \"happier\",\n    \"happiest\",\n    \"happily\",\n    \"happiness\",\n    \"happy\",\n    \"harbor\",\n    \"hardcopy\",\n    \"hardcore\",\n    \"hardcover\",\n    \"harddisk\",\n    \"hardened\",\n    \"hardener\",\n    \"hardening\",\n    \"hardhat\",\n    \"hardhead\",\n    \"hardiness\",\n    \"hardly\",\n    \"hardness\",\n    \"hardship\",\n    \"hardware\",\n    \"hardwired\",\n    \"hardwood\",\n    \"hardy\",\n    \"harmful\",\n    \"harmless\",\n    \"harmonica\",\n    \"harmonics\",\n    \"harmonize\",\n    \"harmony\",\n    \"harness\",\n    \"harpist\",\n    \"harsh\",\n    \"harvest\",\n    \"hash\",\n    \"hassle\",\n    \"haste\",\n    \"hastily\",\n    \"hastiness\",\n    \"hasty\",\n    \"hatbox\",\n    \"hatchback\",\n    \"hatchery\",\n    \"hatchet\",\n    \"hatching\",\n    \"hatchling\",\n    \"hate\",\n    \"hatless\",\n    \"hatred\",\n    \"haunt\",\n    \"haven\",\n    \"hazard\",\n    \"hazelnut\",\n    \"hazily\",\n    \"haziness\",\n    \"hazing\",\n    \"hazy\",\n    \"headache\",\n    \"headband\",\n    \"headboard\",\n    \"headcount\",\n    \"headdress\",\n    \"headed\",\n    \"header\",\n    \"headfirst\",\n    \"headgear\",\n    \"heading\",\n    \"headlamp\",\n    \"headless\",\n    \"headlock\",\n    \"headphone\",\n    \"headpiece\",\n    \"headrest\",\n    \"headroom\",\n    \"headscarf\",\n    \"headset\",\n    \"headsman\",\n    \"headstand\",\n    \"headstone\",\n    \"headway\",\n    \"headwear\",\n    \"heap\",\n    \"heat\",\n    \"heave\",\n    \"heavily\",\n    \"heaviness\",\n    \"heaving\",\n    \"hedge\",\n    \"hedging\",\n    \"heftiness\",\n    \"hefty\",\n    \"helium\",\n    \"helmet\",\n    \"helper\",\n    \"helpful\",\n    \"helping\",\n    \"helpless\",\n    \"helpline\",\n    \"hemlock\",\n    \"hemstitch\",\n    \"hence\",\n    \"henchman\",\n    \"henna\",\n    \"herald\",\n    \"herbal\",\n    \"herbicide\",\n    \"herbs\",\n    \"heritage\",\n    \"hermit\",\n    \"heroics\",\n    \"heroism\",\n    \"herring\",\n    \"herself\",\n    \"hertz\",\n    \"hesitancy\",\n    \"hesitant\",\n    \"hesitate\",\n    \"hexagon\",\n    \"hexagram\",\n    \"hubcap\",\n    \"huddle\",\n    \"huddling\",\n    \"huff\",\n    \"hug\",\n    \"hula\",\n    \"hulk\",\n    \"hull\",\n    \"human\",\n    \"humble\",\n    \"humbling\",\n    \"humbly\",\n    \"humid\",\n    \"humiliate\",\n    \"humility\",\n    \"humming\",\n    \"hummus\",\n    \"humongous\",\n    \"humorist\",\n    \"humorless\",\n    \"humorous\",\n    \"humpback\",\n    \"humped\",\n    \"humvee\",\n    \"hunchback\",\n    \"hundredth\",\n    \"hunger\",\n    \"hungrily\",\n    \"hungry\",\n    \"hunk\",\n    \"hunter\",\n    \"hunting\",\n    \"huntress\",\n    \"huntsman\",\n    \"hurdle\",\n    \"hurled\",\n    \"hurler\",\n    \"hurling\",\n    \"hurray\",\n    \"hurricane\",\n    \"hurried\",\n    \"hurry\",\n    \"hurt\",\n    \"husband\",\n    \"hush\",\n    \"husked\",\n    \"huskiness\",\n    \"hut\",\n    \"hybrid\",\n    \"hydrant\",\n    \"hydrated\",\n    \"hydration\",\n    \"hydrogen\",\n    \"hydroxide\",\n    \"hyperlink\",\n    \"hypertext\",\n    \"hyphen\",\n    \"hypnoses\",\n    \"hypnosis\",\n    \"hypnotic\",\n    \"hypnotism\",\n    \"hypnotist\",\n    \"hypnotize\",\n    \"hypocrisy\",\n    \"hypocrite\",\n    \"ibuprofen\",\n    \"ice\",\n    \"iciness\",\n    \"icing\",\n    \"icky\",\n    \"icon\",\n    \"icy\",\n    \"idealism\",\n    \"idealist\",\n    \"idealize\",\n    \"ideally\",\n    \"idealness\",\n    \"identical\",\n    \"identify\",\n    \"identity\",\n    \"ideology\",\n    \"idiocy\",\n    \"idiom\",\n    \"idly\",\n    \"igloo\",\n    \"ignition\",\n    \"ignore\",\n    \"iguana\",\n    \"illicitly\",\n    \"illusion\",\n    \"illusive\",\n    \"image\",\n    \"imaginary\",\n    \"imagines\",\n    \"imaging\",\n    \"imbecile\",\n    \"imitate\",\n    \"imitation\",\n    \"immature\",\n    \"immerse\",\n    \"immersion\",\n    \"imminent\",\n    \"immobile\",\n    \"immodest\",\n    \"immorally\",\n    \"immortal\",\n    \"immovable\",\n    \"immovably\",\n    \"immunity\",\n    \"immunize\",\n    \"impaired\",\n    \"impale\",\n    \"impart\",\n    \"impatient\",\n    \"impeach\",\n    \"impeding\",\n    \"impending\",\n    \"imperfect\",\n    \"imperial\",\n    \"impish\",\n    \"implant\",\n    \"implement\",\n    \"implicate\",\n    \"implicit\",\n    \"implode\",\n    \"implosion\",\n    \"implosive\",\n    \"imply\",\n    \"impolite\",\n    \"important\",\n    \"importer\",\n    \"impose\",\n    \"imposing\",\n    \"impotence\",\n    \"impotency\",\n    \"impotent\",\n    \"impound\",\n    \"imprecise\",\n    \"imprint\",\n    \"imprison\",\n    \"impromptu\",\n    \"improper\",\n    \"improve\",\n    \"improving\",\n    \"improvise\",\n    \"imprudent\",\n    \"impulse\",\n    \"impulsive\",\n    \"impure\",\n    \"impurity\",\n    \"iodine\",\n    \"iodize\",\n    \"ion\",\n    \"ipad\",\n    \"iphone\",\n    \"ipod\",\n    \"irate\",\n    \"irk\",\n    \"iron\",\n    \"irregular\",\n    \"irrigate\",\n    \"irritable\",\n    \"irritably\",\n    \"irritant\",\n    \"irritate\",\n    \"islamic\",\n    \"islamist\",\n    \"isolated\",\n    \"isolating\",\n    \"isolation\",\n    \"isotope\",\n    \"issue\",\n    \"issuing\",\n    \"italicize\",\n    \"italics\",\n    \"item\",\n    \"itinerary\",\n    \"itunes\",\n    \"ivory\",\n    \"ivy\",\n    \"jab\",\n    \"jackal\",\n    \"jacket\",\n    \"jackknife\",\n    \"jackpot\",\n    \"jailbird\",\n    \"jailbreak\",\n    \"jailer\",\n    \"jailhouse\",\n    \"jalapeno\",\n    \"jam\",\n    \"janitor\",\n    \"january\",\n    \"jargon\",\n    \"jarring\",\n    \"jasmine\",\n    \"jaundice\",\n    \"jaunt\",\n    \"java\",\n    \"jawed\",\n    \"jawless\",\n    \"jawline\",\n    \"jaws\",\n    \"jaybird\",\n    \"jaywalker\",\n    \"jazz\",\n    \"jeep\",\n    \"jeeringly\",\n    \"jellied\",\n    \"jelly\",\n    \"jersey\",\n    \"jester\",\n    \"jet\",\n    \"jiffy\",\n    \"jigsaw\",\n    \"jimmy\",\n    \"jingle\",\n    \"jingling\",\n    \"jinx\",\n    \"jitters\",\n    \"jittery\",\n    \"job\",\n    \"jockey\",\n    \"jockstrap\",\n    \"jogger\",\n    \"jogging\",\n    \"john\",\n    \"joining\",\n    \"jokester\",\n    \"jokingly\",\n    \"jolliness\",\n    \"jolly\",\n    \"jolt\",\n    \"jot\",\n    \"jovial\",\n    \"joyfully\",\n    \"joylessly\",\n    \"joyous\",\n    \"joyride\",\n    \"joystick\",\n    \"jubilance\",\n    \"jubilant\",\n    \"judge\",\n    \"judgingly\",\n    \"judicial\",\n    \"judiciary\",\n    \"judo\",\n    \"juggle\",\n    \"juggling\",\n    \"jugular\",\n    \"juice\",\n    \"juiciness\",\n    \"juicy\",\n    \"jujitsu\",\n    \"jukebox\",\n    \"july\",\n    \"jumble\",\n    \"jumbo\",\n    \"jump\",\n    \"junction\",\n    \"juncture\",\n    \"june\",\n    \"junior\",\n    \"juniper\",\n    \"junkie\",\n    \"junkman\",\n    \"junkyard\",\n    \"jurist\",\n    \"juror\",\n    \"jury\",\n    \"justice\",\n    \"justifier\",\n    \"justify\",\n    \"justly\",\n    \"justness\",\n    \"juvenile\",\n    \"kabob\",\n    \"kangaroo\",\n    \"karaoke\",\n    \"karate\",\n    \"karma\",\n    \"kebab\",\n    \"keenly\",\n    \"keenness\",\n    \"keep\",\n    \"keg\",\n    \"kelp\",\n    \"kennel\",\n    \"kept\",\n    \"kerchief\",\n    \"kerosene\",\n    \"kettle\",\n    \"kick\",\n    \"kiln\",\n    \"kilobyte\",\n    \"kilogram\",\n    \"kilometer\",\n    \"kilowatt\",\n    \"kilt\",\n    \"kimono\",\n    \"kindle\",\n    \"kindling\",\n    \"kindly\",\n    \"kindness\",\n    \"kindred\",\n    \"kinetic\",\n    \"kinfolk\",\n    \"king\",\n    \"kinship\",\n    \"kinsman\",\n    \"kinswoman\",\n    \"kissable\",\n    \"kisser\",\n    \"kissing\",\n    \"kitchen\",\n    \"kite\",\n    \"kitten\",\n    \"kitty\",\n    \"kiwi\",\n    \"kleenex\",\n    \"knapsack\",\n    \"knee\",\n    \"knelt\",\n    \"knickers\",\n    \"knoll\",\n    \"koala\",\n    \"kooky\",\n    \"kosher\",\n    \"krypton\",\n    \"kudos\",\n    \"kung\",\n    \"labored\",\n    \"laborer\",\n    \"laboring\",\n    \"laborious\",\n    \"labrador\",\n    \"ladder\",\n    \"ladies\",\n    \"ladle\",\n    \"ladybug\",\n    \"ladylike\",\n    \"lagged\",\n    \"lagging\",\n    \"lagoon\",\n    \"lair\",\n    \"lake\",\n    \"lance\",\n    \"landed\",\n    \"landfall\",\n    \"landfill\",\n    \"landing\",\n    \"landlady\",\n    \"landless\",\n    \"landline\",\n    \"landlord\",\n    \"landmark\",\n    \"landmass\",\n    \"landmine\",\n    \"landowner\",\n    \"landscape\",\n    \"landside\",\n    \"landslide\",\n    \"language\",\n    \"lankiness\",\n    \"lanky\",\n    \"lantern\",\n    \"lapdog\",\n    \"lapel\",\n    \"lapped\",\n    \"lapping\",\n    \"laptop\",\n    \"lard\",\n    \"large\",\n    \"lark\",\n    \"lash\",\n    \"lasso\",\n    \"last\",\n    \"latch\",\n    \"late\",\n    \"lather\",\n    \"latitude\",\n    \"latrine\",\n    \"latter\",\n    \"latticed\",\n    \"launch\",\n    \"launder\",\n    \"laundry\",\n    \"laurel\",\n    \"lavender\",\n    \"lavish\",\n    \"laxative\",\n    \"lazily\",\n    \"laziness\",\n    \"lazy\",\n    \"lecturer\",\n    \"left\",\n    \"legacy\",\n    \"legal\",\n    \"legend\",\n    \"legged\",\n    \"leggings\",\n    \"legible\",\n    \"legibly\",\n    \"legislate\",\n    \"lego\",\n    \"legroom\",\n    \"legume\",\n    \"legwarmer\",\n    \"legwork\",\n    \"lemon\",\n    \"lend\",\n    \"length\",\n    \"lens\",\n    \"lent\",\n    \"leotard\",\n    \"lesser\",\n    \"letdown\",\n    \"lethargic\",\n    \"lethargy\",\n    \"letter\",\n    \"lettuce\",\n    \"level\",\n    \"leverage\",\n    \"levers\",\n    \"levitate\",\n    \"levitator\",\n    \"liability\",\n    \"liable\",\n    \"liberty\",\n    \"librarian\",\n    \"library\",\n    \"licking\",\n    \"licorice\",\n    \"lid\",\n    \"life\",\n    \"lifter\",\n    \"lifting\",\n    \"liftoff\",\n    \"ligament\",\n    \"likely\",\n    \"likeness\",\n    \"likewise\",\n    \"liking\",\n    \"lilac\",\n    \"lilly\",\n    \"lily\",\n    \"limb\",\n    \"limeade\",\n    \"limelight\",\n    \"limes\",\n    \"limit\",\n    \"limping\",\n    \"limpness\",\n    \"line\",\n    \"lingo\",\n    \"linguini\",\n    \"linguist\",\n    \"lining\",\n    \"linked\",\n    \"linoleum\",\n    \"linseed\",\n    \"lint\",\n    \"lion\",\n    \"lip\",\n    \"liquefy\",\n    \"liqueur\",\n    \"liquid\",\n    \"lisp\",\n    \"list\",\n    \"litigate\",\n    \"litigator\",\n    \"litmus\",\n    \"litter\",\n    \"little\",\n    \"livable\",\n    \"lived\",\n    \"lively\",\n    \"liver\",\n    \"livestock\",\n    \"lividly\",\n    \"living\",\n    \"lizard\",\n    \"lubricant\",\n    \"lubricate\",\n    \"lucid\",\n    \"luckily\",\n    \"luckiness\",\n    \"luckless\",\n    \"lucrative\",\n    \"ludicrous\",\n    \"lugged\",\n    \"lukewarm\",\n    \"lullaby\",\n    \"lumber\",\n    \"luminance\",\n    \"luminous\",\n    \"lumpiness\",\n    \"lumping\",\n    \"lumpish\",\n    \"lunacy\",\n    \"lunar\",\n    \"lunchbox\",\n    \"luncheon\",\n    \"lunchroom\",\n    \"lunchtime\",\n    \"lung\",\n    \"lurch\",\n    \"lure\",\n    \"luridness\",\n    \"lurk\",\n    \"lushly\",\n    \"lushness\",\n    \"luster\",\n    \"lustfully\",\n    \"lustily\",\n    \"lustiness\",\n    \"lustrous\",\n    \"lusty\",\n    \"luxurious\",\n    \"luxury\",\n    \"lying\",\n    \"lyrically\",\n    \"lyricism\",\n    \"lyricist\",\n    \"lyrics\",\n    \"macarena\",\n    \"macaroni\",\n    \"macaw\",\n    \"mace\",\n    \"machine\",\n    \"machinist\",\n    \"magazine\",\n    \"magenta\",\n    \"maggot\",\n    \"magical\",\n    \"magician\",\n    \"magma\",\n    \"magnesium\",\n    \"magnetic\",\n    \"magnetism\",\n    \"magnetize\",\n    \"magnifier\",\n    \"magnify\",\n    \"magnitude\",\n    \"magnolia\",\n    \"mahogany\",\n    \"maimed\",\n    \"majestic\",\n    \"majesty\",\n    \"majorette\",\n    \"majority\",\n    \"makeover\",\n    \"maker\",\n    \"makeshift\",\n    \"making\",\n    \"malformed\",\n    \"malt\",\n    \"mama\",\n    \"mammal\",\n    \"mammary\",\n    \"mammogram\",\n    \"manager\",\n    \"managing\",\n    \"manatee\",\n    \"mandarin\",\n    \"mandate\",\n    \"mandatory\",\n    \"mandolin\",\n    \"manger\",\n    \"mangle\",\n    \"mango\",\n    \"mangy\",\n    \"manhandle\",\n    \"manhole\",\n    \"manhood\",\n    \"manhunt\",\n    \"manicotti\",\n    \"manicure\",\n    \"manifesto\",\n    \"manila\",\n    \"mankind\",\n    \"manlike\",\n    \"manliness\",\n    \"manly\",\n    \"manmade\",\n    \"manned\",\n    \"mannish\",\n    \"manor\",\n    \"manpower\",\n    \"mantis\",\n    \"mantra\",\n    \"manual\",\n    \"many\",\n    \"map\",\n    \"marathon\",\n    \"marauding\",\n    \"marbled\",\n    \"marbles\",\n    \"marbling\",\n    \"march\",\n    \"mardi\",\n    \"margarine\",\n    \"margarita\",\n    \"margin\",\n    \"marigold\",\n    \"marina\",\n    \"marine\",\n    \"marital\",\n    \"maritime\",\n    \"marlin\",\n    \"marmalade\",\n    \"maroon\",\n    \"married\",\n    \"marrow\",\n    \"marry\",\n    \"marshland\",\n    \"marshy\",\n    \"marsupial\",\n    \"marvelous\",\n    \"marxism\",\n    \"mascot\",\n    \"masculine\",\n    \"mashed\",\n    \"mashing\",\n    \"massager\",\n    \"masses\",\n    \"massive\",\n    \"mastiff\",\n    \"matador\",\n    \"matchbook\",\n    \"matchbox\",\n    \"matcher\",\n    \"matching\",\n    \"matchless\",\n    \"material\",\n    \"maternal\",\n    \"maternity\",\n    \"math\",\n    \"mating\",\n    \"matriarch\",\n    \"matrimony\",\n    \"matrix\",\n    \"matron\",\n    \"matted\",\n    \"matter\",\n    \"maturely\",\n    \"maturing\",\n    \"maturity\",\n    \"mauve\",\n    \"maverick\",\n    \"maximize\",\n    \"maximum\",\n    \"maybe\",\n    \"mayday\",\n    \"mayflower\",\n    \"moaner\",\n    \"moaning\",\n    \"mobile\",\n    \"mobility\",\n    \"mobilize\",\n    \"mobster\",\n    \"mocha\",\n    \"mocker\",\n    \"mockup\",\n    \"modified\",\n    \"modify\",\n    \"modular\",\n    \"modulator\",\n    \"module\",\n    \"moisten\",\n    \"moistness\",\n    \"moisture\",\n    \"molar\",\n    \"molasses\",\n    \"mold\",\n    \"molecular\",\n    \"molecule\",\n    \"molehill\",\n    \"mollusk\",\n    \"mom\",\n    \"monastery\",\n    \"monday\",\n    \"monetary\",\n    \"monetize\",\n    \"moneybags\",\n    \"moneyless\",\n    \"moneywise\",\n    \"mongoose\",\n    \"mongrel\",\n    \"monitor\",\n    \"monkhood\",\n    \"monogamy\",\n    \"monogram\",\n    \"monologue\",\n    \"monopoly\",\n    \"monorail\",\n    \"monotone\",\n    \"monotype\",\n    \"monoxide\",\n    \"monsieur\",\n    \"monsoon\",\n    \"monstrous\",\n    \"monthly\",\n    \"monument\",\n    \"moocher\",\n    \"moodiness\",\n    \"moody\",\n    \"mooing\",\n    \"moonbeam\",\n    \"mooned\",\n    \"moonlight\",\n    \"moonlike\",\n    \"moonlit\",\n    \"moonrise\",\n    \"moonscape\",\n    \"moonshine\",\n    \"moonstone\",\n    \"moonwalk\",\n    \"mop\",\n    \"morale\",\n    \"morality\",\n    \"morally\",\n    \"morbidity\",\n    \"morbidly\",\n    \"morphine\",\n    \"morphing\",\n    \"morse\",\n    \"mortality\",\n    \"mortally\",\n    \"mortician\",\n    \"mortified\",\n    \"mortify\",\n    \"mortuary\",\n    \"mosaic\",\n    \"mossy\",\n    \"most\",\n    \"mothball\",\n    \"mothproof\",\n    \"motion\",\n    \"motivate\",\n    \"motivator\",\n    \"motive\",\n    \"motocross\",\n    \"motor\",\n    \"motto\",\n    \"mountable\",\n    \"mountain\",\n    \"mounted\",\n    \"mounting\",\n    \"mourner\",\n    \"mournful\",\n    \"mouse\",\n    \"mousiness\",\n    \"moustache\",\n    \"mousy\",\n    \"mouth\",\n    \"movable\",\n    \"move\",\n    \"movie\",\n    \"moving\",\n    \"mower\",\n    \"mowing\",\n    \"much\",\n    \"muck\",\n    \"mud\",\n    \"mug\",\n    \"mulberry\",\n    \"mulch\",\n    \"mule\",\n    \"mulled\",\n    \"mullets\",\n    \"multiple\",\n    \"multiply\",\n    \"multitask\",\n    \"multitude\",\n    \"mumble\",\n    \"mumbling\",\n    \"mumbo\",\n    \"mummified\",\n    \"mummify\",\n    \"mummy\",\n    \"mumps\",\n    \"munchkin\",\n    \"mundane\",\n    \"municipal\",\n    \"muppet\",\n    \"mural\",\n    \"murkiness\",\n    \"murky\",\n    \"murmuring\",\n    \"muscular\",\n    \"museum\",\n    \"mushily\",\n    \"mushiness\",\n    \"mushroom\",\n    \"mushy\",\n    \"music\",\n    \"musket\",\n    \"muskiness\",\n    \"musky\",\n    \"mustang\",\n    \"mustard\",\n    \"muster\",\n    \"mustiness\",\n    \"musty\",\n    \"mutable\",\n    \"mutate\",\n    \"mutation\",\n    \"mute\",\n    \"mutilated\",\n    \"mutilator\",\n    \"mutiny\",\n    \"mutt\",\n    \"mutual\",\n    \"muzzle\",\n    \"myself\",\n    \"myspace\",\n    \"mystified\",\n    \"mystify\",\n    \"myth\",\n    \"nacho\",\n    \"nag\",\n    \"nail\",\n    \"name\",\n    \"naming\",\n    \"nanny\",\n    \"nanometer\",\n    \"nape\",\n    \"napkin\",\n    \"napped\",\n    \"napping\",\n    \"nappy\",\n    \"narrow\",\n    \"nastily\",\n    \"nastiness\",\n    \"national\",\n    \"native\",\n    \"nativity\",\n    \"natural\",\n    \"nature\",\n    \"naturist\",\n    \"nautical\",\n    \"navigate\",\n    \"navigator\",\n    \"navy\",\n    \"nearby\",\n    \"nearest\",\n    \"nearly\",\n    \"nearness\",\n    \"neatly\",\n    \"neatness\",\n    \"nebula\",\n    \"nebulizer\",\n    \"nectar\",\n    \"negate\",\n    \"negation\",\n    \"negative\",\n    \"neglector\",\n    \"negligee\",\n    \"negligent\",\n    \"negotiate\",\n    \"nemeses\",\n    \"nemesis\",\n    \"neon\",\n    \"nephew\",\n    \"nerd\",\n    \"nervous\",\n    \"nervy\",\n    \"nest\",\n    \"net\",\n    \"neurology\",\n    \"neuron\",\n    \"neurosis\",\n    \"neurotic\",\n    \"neuter\",\n    \"neutron\",\n    \"never\",\n    \"next\",\n    \"nibble\",\n    \"nickname\",\n    \"nicotine\",\n    \"niece\",\n    \"nifty\",\n    \"nimble\",\n    \"nimbly\",\n    \"nineteen\",\n    \"ninetieth\",\n    \"ninja\",\n    \"nintendo\",\n    \"ninth\",\n    \"nuclear\",\n    \"nuclei\",\n    \"nucleus\",\n    \"nugget\",\n    \"nullify\",\n    \"number\",\n    \"numbing\",\n    \"numbly\",\n    \"numbness\",\n    \"numeral\",\n    \"numerate\",\n    \"numerator\",\n    \"numeric\",\n    \"numerous\",\n    \"nuptials\",\n    \"nursery\",\n    \"nursing\",\n    \"nurture\",\n    \"nutcase\",\n    \"nutlike\",\n    \"nutmeg\",\n    \"nutrient\",\n    \"nutshell\",\n    \"nuttiness\",\n    \"nutty\",\n    \"nuzzle\",\n    \"nylon\",\n    \"oaf\",\n    \"oak\",\n    \"oasis\",\n    \"oat\",\n    \"obedience\",\n    \"obedient\",\n    \"obituary\",\n    \"object\",\n    \"obligate\",\n    \"obliged\",\n    \"oblivion\",\n    \"oblivious\",\n    \"oblong\",\n    \"obnoxious\",\n    \"oboe\",\n    \"obscure\",\n    \"obscurity\",\n    \"observant\",\n    \"observer\",\n    \"observing\",\n    \"obsessed\",\n    \"obsession\",\n    \"obsessive\",\n    \"obsolete\",\n    \"obstacle\",\n    \"obstinate\",\n    \"obstruct\",\n    \"obtain\",\n    \"obtrusive\",\n    \"obtuse\",\n    \"obvious\",\n    \"occultist\",\n    \"occupancy\",\n    \"occupant\",\n    \"occupier\",\n    \"occupy\",\n    \"ocean\",\n    \"ocelot\",\n    \"octagon\",\n    \"octane\",\n    \"october\",\n    \"octopus\",\n    \"ogle\",\n    \"oil\",\n    \"oink\",\n    \"ointment\",\n    \"okay\",\n    \"old\",\n    \"olive\",\n    \"olympics\",\n    \"omega\",\n    \"omen\",\n    \"ominous\",\n    \"omission\",\n    \"omit\",\n    \"omnivore\",\n    \"onboard\",\n    \"oncoming\",\n    \"ongoing\",\n    \"onion\",\n    \"online\",\n    \"onlooker\",\n    \"only\",\n    \"onscreen\",\n    \"onset\",\n    \"onshore\",\n    \"onslaught\",\n    \"onstage\",\n    \"onto\",\n    \"onward\",\n    \"onyx\",\n    \"oops\",\n    \"ooze\",\n    \"oozy\",\n    \"opacity\",\n    \"opal\",\n    \"open\",\n    \"operable\",\n    \"operate\",\n    \"operating\",\n    \"operation\",\n    \"operative\",\n    \"operator\",\n    \"opium\",\n    \"opossum\",\n    \"opponent\",\n    \"oppose\",\n    \"opposing\",\n    \"opposite\",\n    \"oppressed\",\n    \"oppressor\",\n    \"opt\",\n    \"opulently\",\n    \"osmosis\",\n    \"other\",\n    \"otter\",\n    \"ouch\",\n    \"ought\",\n    \"ounce\",\n    \"outage\",\n    \"outback\",\n    \"outbid\",\n    \"outboard\",\n    \"outbound\",\n    \"outbreak\",\n    \"outburst\",\n    \"outcast\",\n    \"outclass\",\n    \"outcome\",\n    \"outdated\",\n    \"outdoors\",\n    \"outer\",\n    \"outfield\",\n    \"outfit\",\n    \"outflank\",\n    \"outgoing\",\n    \"outgrow\",\n    \"outhouse\",\n    \"outing\",\n    \"outlast\",\n    \"outlet\",\n    \"outline\",\n    \"outlook\",\n    \"outlying\",\n    \"outmatch\",\n    \"outmost\",\n    \"outnumber\",\n    \"outplayed\",\n    \"outpost\",\n    \"outpour\",\n    \"output\",\n    \"outrage\",\n    \"outrank\",\n    \"outreach\",\n    \"outright\",\n    \"outscore\",\n    \"outsell\",\n    \"outshine\",\n    \"outshoot\",\n    \"outsider\",\n    \"outskirts\",\n    \"outsmart\",\n    \"outsource\",\n    \"outspoken\",\n    \"outtakes\",\n    \"outthink\",\n    \"outward\",\n    \"outweigh\",\n    \"outwit\",\n    \"oval\",\n    \"ovary\",\n    \"oven\",\n    \"overact\",\n    \"overall\",\n    \"overarch\",\n    \"overbid\",\n    \"overbill\",\n    \"overbite\",\n    \"overblown\",\n    \"overboard\",\n    \"overbook\",\n    \"overbuilt\",\n    \"overcast\",\n    \"overcoat\",\n    \"overcome\",\n    \"overcook\",\n    \"overcrowd\",\n    \"overdraft\",\n    \"overdrawn\",\n    \"overdress\",\n    \"overdrive\",\n    \"overdue\",\n    \"overeager\",\n    \"overeater\",\n    \"overexert\",\n    \"overfed\",\n    \"overfeed\",\n    \"overfill\",\n    \"overflow\",\n    \"overfull\",\n    \"overgrown\",\n    \"overhand\",\n    \"overhang\",\n    \"overhaul\",\n    \"overhead\",\n    \"overhear\",\n    \"overheat\",\n    \"overhung\",\n    \"overjoyed\",\n    \"overkill\",\n    \"overlabor\",\n    \"overlaid\",\n    \"overlap\",\n    \"overlay\",\n    \"overload\",\n    \"overlook\",\n    \"overlord\",\n    \"overlying\",\n    \"overnight\",\n    \"overpass\",\n    \"overpay\",\n    \"overplant\",\n    \"overplay\",\n    \"overpower\",\n    \"overprice\",\n    \"overrate\",\n    \"overreach\",\n    \"overreact\",\n    \"override\",\n    \"overripe\",\n    \"overrule\",\n    \"overrun\",\n    \"overshoot\",\n    \"overshot\",\n    \"oversight\",\n    \"oversized\",\n    \"oversleep\",\n    \"oversold\",\n    \"overspend\",\n    \"overstate\",\n    \"overstay\",\n    \"overstep\",\n    \"overstock\",\n    \"overstuff\",\n    \"oversweet\",\n    \"overtake\",\n    \"overthrow\",\n    \"overtime\",\n    \"overtly\",\n    \"overtone\",\n    \"overture\",\n    \"overturn\",\n    \"overuse\",\n    \"overvalue\",\n    \"overview\",\n    \"overwrite\",\n    \"owl\",\n    \"oxford\",\n    \"oxidant\",\n    \"oxidation\",\n    \"oxidize\",\n    \"oxidizing\",\n    \"oxygen\",\n    \"oxymoron\",\n    \"oyster\",\n    \"ozone\",\n    \"paced\",\n    \"pacemaker\",\n    \"pacific\",\n    \"pacifier\",\n    \"pacifism\",\n    \"pacifist\",\n    \"pacify\",\n    \"padded\",\n    \"padding\",\n    \"paddle\",\n    \"paddling\",\n    \"padlock\",\n    \"pagan\",\n    \"pager\",\n    \"paging\",\n    \"pajamas\",\n    \"palace\",\n    \"palatable\",\n    \"palm\",\n    \"palpable\",\n    \"palpitate\",\n    \"paltry\",\n    \"pampered\",\n    \"pamperer\",\n    \"pampers\",\n    \"pamphlet\",\n    \"panama\",\n    \"pancake\",\n    \"pancreas\",\n    \"panda\",\n    \"pandemic\",\n    \"pang\",\n    \"panhandle\",\n    \"panic\",\n    \"panning\",\n    \"panorama\",\n    \"panoramic\",\n    \"panther\",\n    \"pantomime\",\n    \"pantry\",\n    \"pants\",\n    \"pantyhose\",\n    \"paparazzi\",\n    \"papaya\",\n    \"paper\",\n    \"paprika\",\n    \"papyrus\",\n    \"parabola\",\n    \"parachute\",\n    \"parade\",\n    \"paradox\",\n    \"paragraph\",\n    \"parakeet\",\n    \"paralegal\",\n    \"paralyses\",\n    \"paralysis\",\n    \"paralyze\",\n    \"paramedic\",\n    \"parameter\",\n    \"paramount\",\n    \"parasail\",\n    \"parasite\",\n    \"parasitic\",\n    \"parcel\",\n    \"parched\",\n    \"parchment\",\n    \"pardon\",\n    \"parish\",\n    \"parka\",\n    \"parking\",\n    \"parkway\",\n    \"parlor\",\n    \"parmesan\",\n    \"parole\",\n    \"parrot\",\n    \"parsley\",\n    \"parsnip\",\n    \"partake\",\n    \"parted\",\n    \"parting\",\n    \"partition\",\n    \"partly\",\n    \"partner\",\n    \"partridge\",\n    \"party\",\n    \"passable\",\n    \"passably\",\n    \"passage\",\n    \"passcode\",\n    \"passenger\",\n    \"passerby\",\n    \"passing\",\n    \"passion\",\n    \"passive\",\n    \"passivism\",\n    \"passover\",\n    \"passport\",\n    \"password\",\n    \"pasta\",\n    \"pasted\",\n    \"pastel\",\n    \"pastime\",\n    \"pastor\",\n    \"pastrami\",\n    \"pasture\",\n    \"pasty\",\n    \"patchwork\",\n    \"patchy\",\n    \"paternal\",\n    \"paternity\",\n    \"path\",\n    \"patience\",\n    \"patient\",\n    \"patio\",\n    \"patriarch\",\n    \"patriot\",\n    \"patrol\",\n    \"patronage\",\n    \"patronize\",\n    \"pauper\",\n    \"pavement\",\n    \"paver\",\n    \"pavestone\",\n    \"pavilion\",\n    \"paving\",\n    \"pawing\",\n    \"payable\",\n    \"payback\",\n    \"paycheck\",\n    \"payday\",\n    \"payee\",\n    \"payer\",\n    \"paying\",\n    \"payment\",\n    \"payphone\",\n    \"payroll\",\n    \"pebble\",\n    \"pebbly\",\n    \"pecan\",\n    \"pectin\",\n    \"peculiar\",\n    \"peddling\",\n    \"pediatric\",\n    \"pedicure\",\n    \"pedigree\",\n    \"pedometer\",\n    \"pegboard\",\n    \"pelican\",\n    \"pellet\",\n    \"pelt\",\n    \"pelvis\",\n    \"penalize\",\n    \"penalty\",\n    \"pencil\",\n    \"pendant\",\n    \"pending\",\n    \"penholder\",\n    \"penknife\",\n    \"pennant\",\n    \"penniless\",\n    \"penny\",\n    \"penpal\",\n    \"pension\",\n    \"pentagon\",\n    \"pentagram\",\n    \"pep\",\n    \"perceive\",\n    \"percent\",\n    \"perch\",\n    \"percolate\",\n    \"perennial\",\n    \"perfected\",\n    \"perfectly\",\n    \"perfume\",\n    \"periscope\",\n    \"perish\",\n    \"perjurer\",\n    \"perjury\",\n    \"perkiness\",\n    \"perky\",\n    \"perm\",\n    \"peroxide\",\n    \"perpetual\",\n    \"perplexed\",\n    \"persecute\",\n    \"persevere\",\n    \"persuaded\",\n    \"persuader\",\n    \"pesky\",\n    \"peso\",\n    \"pessimism\",\n    \"pessimist\",\n    \"pester\",\n    \"pesticide\",\n    \"petal\",\n    \"petite\",\n    \"petition\",\n    \"petri\",\n    \"petroleum\",\n    \"petted\",\n    \"petticoat\",\n    \"pettiness\",\n    \"petty\",\n    \"petunia\",\n    \"phantom\",\n    \"phobia\",\n    \"phoenix\",\n    \"phonebook\",\n    \"phoney\",\n    \"phonics\",\n    \"phoniness\",\n    \"phony\",\n    \"phosphate\",\n    \"photo\",\n    \"phrase\",\n    \"phrasing\",\n    \"placard\",\n    \"placate\",\n    \"placidly\",\n    \"plank\",\n    \"planner\",\n    \"plant\",\n    \"plasma\",\n    \"plaster\",\n    \"plastic\",\n    \"plated\",\n    \"platform\",\n    \"plating\",\n    \"platinum\",\n    \"platonic\",\n    \"platter\",\n    \"platypus\",\n    \"plausible\",\n    \"plausibly\",\n    \"playable\",\n    \"playback\",\n    \"player\",\n    \"playful\",\n    \"playgroup\",\n    \"playhouse\",\n    \"playing\",\n    \"playlist\",\n    \"playmaker\",\n    \"playmate\",\n    \"playoff\",\n    \"playpen\",\n    \"playroom\",\n    \"playset\",\n    \"plaything\",\n    \"playtime\",\n    \"plaza\",\n    \"pleading\",\n    \"pleat\",\n    \"pledge\",\n    \"plentiful\",\n    \"plenty\",\n    \"plethora\",\n    \"plexiglas\",\n    \"pliable\",\n    \"plod\",\n    \"plop\",\n    \"plot\",\n    \"plow\",\n    \"ploy\",\n    \"pluck\",\n    \"plug\",\n    \"plunder\",\n    \"plunging\",\n    \"plural\",\n    \"plus\",\n    \"plutonium\",\n    \"plywood\",\n    \"poach\",\n    \"pod\",\n    \"poem\",\n    \"poet\",\n    \"pogo\",\n    \"pointed\",\n    \"pointer\",\n    \"pointing\",\n    \"pointless\",\n    \"pointy\",\n    \"poise\",\n    \"poison\",\n    \"poker\",\n    \"poking\",\n    \"polar\",\n    \"police\",\n    \"policy\",\n    \"polio\",\n    \"polish\",\n    \"politely\",\n    \"polka\",\n    \"polo\",\n    \"polyester\",\n    \"polygon\",\n    \"polygraph\",\n    \"polymer\",\n    \"poncho\",\n    \"pond\",\n    \"pony\",\n    \"popcorn\",\n    \"pope\",\n    \"poplar\",\n    \"popper\",\n    \"poppy\",\n    \"popsicle\",\n    \"populace\",\n    \"popular\",\n    \"populate\",\n    \"porcupine\",\n    \"pork\",\n    \"porous\",\n    \"porridge\",\n    \"portable\",\n    \"portal\",\n    \"portfolio\",\n    \"porthole\",\n    \"portion\",\n    \"portly\",\n    \"portside\",\n    \"poser\",\n    \"posh\",\n    \"posing\",\n    \"possible\",\n    \"possibly\",\n    \"possum\",\n    \"postage\",\n    \"postal\",\n    \"postbox\",\n    \"postcard\",\n    \"posted\",\n    \"poster\",\n    \"posting\",\n    \"postnasal\",\n    \"posture\",\n    \"postwar\",\n    \"pouch\",\n    \"pounce\",\n    \"pouncing\",\n    \"pound\",\n    \"pouring\",\n    \"pout\",\n    \"powdered\",\n    \"powdering\",\n    \"powdery\",\n    \"power\",\n    \"powwow\",\n    \"pox\",\n    \"praising\",\n    \"prance\",\n    \"prancing\",\n    \"pranker\",\n    \"prankish\",\n    \"prankster\",\n    \"prayer\",\n    \"praying\",\n    \"preacher\",\n    \"preaching\",\n    \"preachy\",\n    \"preamble\",\n    \"precinct\",\n    \"precise\",\n    \"precision\",\n    \"precook\",\n    \"precut\",\n    \"predator\",\n    \"predefine\",\n    \"predict\",\n    \"preface\",\n    \"prefix\",\n    \"preflight\",\n    \"preformed\",\n    \"pregame\",\n    \"pregnancy\",\n    \"pregnant\",\n    \"preheated\",\n    \"prelaunch\",\n    \"prelaw\",\n    \"prelude\",\n    \"premiere\",\n    \"premises\",\n    \"premium\",\n    \"prenatal\",\n    \"preoccupy\",\n    \"preorder\",\n    \"prepaid\",\n    \"prepay\",\n    \"preplan\",\n    \"preppy\",\n    \"preschool\",\n    \"prescribe\",\n    \"preseason\",\n    \"preset\",\n    \"preshow\",\n    \"president\",\n    \"presoak\",\n    \"press\",\n    \"presume\",\n    \"presuming\",\n    \"preteen\",\n    \"pretended\",\n    \"pretender\",\n    \"pretense\",\n    \"pretext\",\n    \"pretty\",\n    \"pretzel\",\n    \"prevail\",\n    \"prevalent\",\n    \"prevent\",\n    \"preview\",\n    \"previous\",\n    \"prewar\",\n    \"prewashed\",\n    \"prideful\",\n    \"pried\",\n    \"primal\",\n    \"primarily\",\n    \"primary\",\n    \"primate\",\n    \"primer\",\n    \"primp\",\n    \"princess\",\n    \"print\",\n    \"prior\",\n    \"prism\",\n    \"prison\",\n    \"prissy\",\n    \"pristine\",\n    \"privacy\",\n    \"private\",\n    \"privatize\",\n    \"prize\",\n    \"proactive\",\n    \"probable\",\n    \"probably\",\n    \"probation\",\n    \"probe\",\n    \"probing\",\n    \"probiotic\",\n    \"problem\",\n    \"procedure\",\n    \"process\",\n    \"proclaim\",\n    \"procreate\",\n    \"procurer\",\n    \"prodigal\",\n    \"prodigy\",\n    \"produce\",\n    \"product\",\n    \"profane\",\n    \"profanity\",\n    \"professed\",\n    \"professor\",\n    \"profile\",\n    \"profound\",\n    \"profusely\",\n    \"progeny\",\n    \"prognosis\",\n    \"program\",\n    \"progress\",\n    \"projector\",\n    \"prologue\",\n    \"prolonged\",\n    \"promenade\",\n    \"prominent\",\n    \"promoter\",\n    \"promotion\",\n    \"prompter\",\n    \"promptly\",\n    \"prone\",\n    \"prong\",\n    \"pronounce\",\n    \"pronto\",\n    \"proofing\",\n    \"proofread\",\n    \"proofs\",\n    \"propeller\",\n    \"properly\",\n    \"property\",\n    \"proponent\",\n    \"proposal\",\n    \"propose\",\n    \"props\",\n    \"prorate\",\n    \"protector\",\n    \"protegee\",\n    \"proton\",\n    \"prototype\",\n    \"protozoan\",\n    \"protract\",\n    \"protrude\",\n    \"proud\",\n    \"provable\",\n    \"proved\",\n    \"proven\",\n    \"provided\",\n    \"provider\",\n    \"providing\",\n    \"province\",\n    \"proving\",\n    \"provoke\",\n    \"provoking\",\n    \"provolone\",\n    \"prowess\",\n    \"prowler\",\n    \"prowling\",\n    \"proximity\",\n    \"proxy\",\n    \"prozac\",\n    \"prude\",\n    \"prudishly\",\n    \"prune\",\n    \"pruning\",\n    \"pry\",\n    \"psychic\",\n    \"public\",\n    \"publisher\",\n    \"pucker\",\n    \"pueblo\",\n    \"pug\",\n    \"pull\",\n    \"pulmonary\",\n    \"pulp\",\n    \"pulsate\",\n    \"pulse\",\n    \"pulverize\",\n    \"puma\",\n    \"pumice\",\n    \"pummel\",\n    \"punch\",\n    \"punctual\",\n    \"punctuate\",\n    \"punctured\",\n    \"pungent\",\n    \"punisher\",\n    \"punk\",\n    \"pupil\",\n    \"puppet\",\n    \"puppy\",\n    \"purchase\",\n    \"pureblood\",\n    \"purebred\",\n    \"purely\",\n    \"pureness\",\n    \"purgatory\",\n    \"purge\",\n    \"purging\",\n    \"purifier\",\n    \"purify\",\n    \"purist\",\n    \"puritan\",\n    \"purity\",\n    \"purple\",\n    \"purplish\",\n    \"purposely\",\n    \"purr\",\n    \"purse\",\n    \"pursuable\",\n    \"pursuant\",\n    \"pursuit\",\n    \"purveyor\",\n    \"pushcart\",\n    \"pushchair\",\n    \"pusher\",\n    \"pushiness\",\n    \"pushing\",\n    \"pushover\",\n    \"pushpin\",\n    \"pushup\",\n    \"pushy\",\n    \"putdown\",\n    \"putt\",\n    \"puzzle\",\n    \"puzzling\",\n    \"pyramid\",\n    \"pyromania\",\n    \"python\",\n    \"quack\",\n    \"quadrant\",\n    \"quail\",\n    \"quaintly\",\n    \"quake\",\n    \"quaking\",\n    \"qualified\",\n    \"qualifier\",\n    \"qualify\",\n    \"quality\",\n    \"qualm\",\n    \"quantum\",\n    \"quarrel\",\n    \"quarry\",\n    \"quartered\",\n    \"quarterly\",\n    \"quarters\",\n    \"quartet\",\n    \"quench\",\n    \"query\",\n    \"quicken\",\n    \"quickly\",\n    \"quickness\",\n    \"quicksand\",\n    \"quickstep\",\n    \"quiet\",\n    \"quill\",\n    \"quilt\",\n    \"quintet\",\n    \"quintuple\",\n    \"quirk\",\n    \"quit\",\n    \"quiver\",\n    \"quizzical\",\n    \"quotable\",\n    \"quotation\",\n    \"quote\",\n    \"rabid\",\n    \"race\",\n    \"racing\",\n    \"racism\",\n    \"rack\",\n    \"racoon\",\n    \"radar\",\n    \"radial\",\n    \"radiance\",\n    \"radiantly\",\n    \"radiated\",\n    \"radiation\",\n    \"radiator\",\n    \"radio\",\n    \"radish\",\n    \"raffle\",\n    \"raft\",\n    \"rage\",\n    \"ragged\",\n    \"raging\",\n    \"ragweed\",\n    \"raider\",\n    \"railcar\",\n    \"railing\",\n    \"railroad\",\n    \"railway\",\n    \"raisin\",\n    \"rake\",\n    \"raking\",\n    \"rally\",\n    \"ramble\",\n    \"rambling\",\n    \"ramp\",\n    \"ramrod\",\n    \"ranch\",\n    \"rancidity\",\n    \"random\",\n    \"ranged\",\n    \"ranger\",\n    \"ranging\",\n    \"ranked\",\n    \"ranking\",\n    \"ransack\",\n    \"ranting\",\n    \"rants\",\n    \"rare\",\n    \"rarity\",\n    \"rascal\",\n    \"rash\",\n    \"rasping\",\n    \"ravage\",\n    \"raven\",\n    \"ravine\",\n    \"raving\",\n    \"ravioli\",\n    \"ravishing\",\n    \"reabsorb\",\n    \"reach\",\n    \"reacquire\",\n    \"reaction\",\n    \"reactive\",\n    \"reactor\",\n    \"reaffirm\",\n    \"ream\",\n    \"reanalyze\",\n    \"reappear\",\n    \"reapply\",\n    \"reappoint\",\n    \"reapprove\",\n    \"rearrange\",\n    \"rearview\",\n    \"reason\",\n    \"reassign\",\n    \"reassure\",\n    \"reattach\",\n    \"reawake\",\n    \"rebalance\",\n    \"rebate\",\n    \"rebel\",\n    \"rebirth\",\n    \"reboot\",\n    \"reborn\",\n    \"rebound\",\n    \"rebuff\",\n    \"rebuild\",\n    \"rebuilt\",\n    \"reburial\",\n    \"rebuttal\",\n    \"recall\",\n    \"recant\",\n    \"recapture\",\n    \"recast\",\n    \"recede\",\n    \"recent\",\n    \"recess\",\n    \"recharger\",\n    \"recipient\",\n    \"recital\",\n    \"recite\",\n    \"reckless\",\n    \"reclaim\",\n    \"recliner\",\n    \"reclining\",\n    \"recluse\",\n    \"reclusive\",\n    \"recognize\",\n    \"recoil\",\n    \"recollect\",\n    \"recolor\",\n    \"reconcile\",\n    \"reconfirm\",\n    \"reconvene\",\n    \"recopy\",\n    \"record\",\n    \"recount\",\n    \"recoup\",\n    \"recovery\",\n    \"recreate\",\n    \"rectal\",\n    \"rectangle\",\n    \"rectified\",\n    \"rectify\",\n    \"recycled\",\n    \"recycler\",\n    \"recycling\",\n    \"reemerge\",\n    \"reenact\",\n    \"reenter\",\n    \"reentry\",\n    \"reexamine\",\n    \"referable\",\n    \"referee\",\n    \"reference\",\n    \"refill\",\n    \"refinance\",\n    \"refined\",\n    \"refinery\",\n    \"refining\",\n    \"refinish\",\n    \"reflected\",\n    \"reflector\",\n    \"reflex\",\n    \"reflux\",\n    \"refocus\",\n    \"refold\",\n    \"reforest\",\n    \"reformat\",\n    \"reformed\",\n    \"reformer\",\n    \"reformist\",\n    \"refract\",\n    \"refrain\",\n    \"refreeze\",\n    \"refresh\",\n    \"refried\",\n    \"refueling\",\n    \"refund\",\n    \"refurbish\",\n    \"refurnish\",\n    \"refusal\",\n    \"refuse\",\n    \"refusing\",\n    \"refutable\",\n    \"refute\",\n    \"regain\",\n    \"regalia\",\n    \"regally\",\n    \"reggae\",\n    \"regime\",\n    \"region\",\n    \"register\",\n    \"registrar\",\n    \"registry\",\n    \"regress\",\n    \"regretful\",\n    \"regroup\",\n    \"regular\",\n    \"regulate\",\n    \"regulator\",\n    \"rehab\",\n    \"reheat\",\n    \"rehire\",\n    \"rehydrate\",\n    \"reimburse\",\n    \"reissue\",\n    \"reiterate\",\n    \"rejoice\",\n    \"rejoicing\",\n    \"rejoin\",\n    \"rekindle\",\n    \"relapse\",\n    \"relapsing\",\n    \"relatable\",\n    \"related\",\n    \"relation\",\n    \"relative\",\n    \"relax\",\n    \"relay\",\n    \"relearn\",\n    \"release\",\n    \"relenting\",\n    \"reliable\",\n    \"reliably\",\n    \"reliance\",\n    \"reliant\",\n    \"relic\",\n    \"relieve\",\n    \"relieving\",\n    \"relight\",\n    \"relish\",\n    \"relive\",\n    \"reload\",\n    \"relocate\",\n    \"relock\",\n    \"reluctant\",\n    \"rely\",\n    \"remake\",\n    \"remark\",\n    \"remarry\",\n    \"rematch\",\n    \"remedial\",\n    \"remedy\",\n    \"remember\",\n    \"reminder\",\n    \"remindful\",\n    \"remission\",\n    \"remix\",\n    \"remnant\",\n    \"remodeler\",\n    \"remold\",\n    \"remorse\",\n    \"remote\",\n    \"removable\",\n    \"removal\",\n    \"removed\",\n    \"remover\",\n    \"removing\",\n    \"rename\",\n    \"renderer\",\n    \"rendering\",\n    \"rendition\",\n    \"renegade\",\n    \"renewable\",\n    \"renewably\",\n    \"renewal\",\n    \"renewed\",\n    \"renounce\",\n    \"renovate\",\n    \"renovator\",\n    \"rentable\",\n    \"rental\",\n    \"rented\",\n    \"renter\",\n    \"reoccupy\",\n    \"reoccur\",\n    \"reopen\",\n    \"reorder\",\n    \"repackage\",\n    \"repacking\",\n    \"repaint\",\n    \"repair\",\n    \"repave\",\n    \"repaying\",\n    \"repayment\",\n    \"repeal\",\n    \"repeated\",\n    \"repeater\",\n    \"repent\",\n    \"rephrase\",\n    \"replace\",\n    \"replay\",\n    \"replica\",\n    \"reply\",\n    \"reporter\",\n    \"repose\",\n    \"repossess\",\n    \"repost\",\n    \"repressed\",\n    \"reprimand\",\n    \"reprint\",\n    \"reprise\",\n    \"reproach\",\n    \"reprocess\",\n    \"reproduce\",\n    \"reprogram\",\n    \"reps\",\n    \"reptile\",\n    \"reptilian\",\n    \"repugnant\",\n    \"repulsion\",\n    \"repulsive\",\n    \"repurpose\",\n    \"reputable\",\n    \"reputably\",\n    \"request\",\n    \"require\",\n    \"requisite\",\n    \"reroute\",\n    \"rerun\",\n    \"resale\",\n    \"resample\",\n    \"rescuer\",\n    \"reseal\",\n    \"research\",\n    \"reselect\",\n    \"reseller\",\n    \"resemble\",\n    \"resend\",\n    \"resent\",\n    \"reset\",\n    \"reshape\",\n    \"reshoot\",\n    \"reshuffle\",\n    \"residence\",\n    \"residency\",\n    \"resident\",\n    \"residual\",\n    \"residue\",\n    \"resigned\",\n    \"resilient\",\n    \"resistant\",\n    \"resisting\",\n    \"resize\",\n    \"resolute\",\n    \"resolved\",\n    \"resonant\",\n    \"resonate\",\n    \"resort\",\n    \"resource\",\n    \"respect\",\n    \"resubmit\",\n    \"result\",\n    \"resume\",\n    \"resupply\",\n    \"resurface\",\n    \"resurrect\",\n    \"retail\",\n    \"retainer\",\n    \"retaining\",\n    \"retake\",\n    \"retaliate\",\n    \"retention\",\n    \"rethink\",\n    \"retinal\",\n    \"retired\",\n    \"retiree\",\n    \"retiring\",\n    \"retold\",\n    \"retool\",\n    \"retorted\",\n    \"retouch\",\n    \"retrace\",\n    \"retract\",\n    \"retrain\",\n    \"retread\",\n    \"retreat\",\n    \"retrial\",\n    \"retrieval\",\n    \"retriever\",\n    \"retry\",\n    \"return\",\n    \"retying\",\n    \"retype\",\n    \"reunion\",\n    \"reunite\",\n    \"reusable\",\n    \"reuse\",\n    \"reveal\",\n    \"reveler\",\n    \"revenge\",\n    \"revenue\",\n    \"reverb\",\n    \"revered\",\n    \"reverence\",\n    \"reverend\",\n    \"reversal\",\n    \"reverse\",\n    \"reversing\",\n    \"reversion\",\n    \"revert\",\n    \"revisable\",\n    \"revise\",\n    \"revision\",\n    \"revisit\",\n    \"revivable\",\n    \"revival\",\n    \"reviver\",\n    \"reviving\",\n    \"revocable\",\n    \"revoke\",\n    \"revolt\",\n    \"revolver\",\n    \"revolving\",\n    \"reward\",\n    \"rewash\",\n    \"rewind\",\n    \"rewire\",\n    \"reword\",\n    \"rework\",\n    \"rewrap\",\n    \"rewrite\",\n    \"rhyme\",\n    \"ribbon\",\n    \"ribcage\",\n    \"rice\",\n    \"riches\",\n    \"richly\",\n    \"richness\",\n    \"rickety\",\n    \"ricotta\",\n    \"riddance\",\n    \"ridden\",\n    \"ride\",\n    \"riding\",\n    \"rifling\",\n    \"rift\",\n    \"rigging\",\n    \"rigid\",\n    \"rigor\",\n    \"rimless\",\n    \"rimmed\",\n    \"rind\",\n    \"rink\",\n    \"rinse\",\n    \"rinsing\",\n    \"riot\",\n    \"ripcord\",\n    \"ripeness\",\n    \"ripening\",\n    \"ripping\",\n    \"ripple\",\n    \"rippling\",\n    \"riptide\",\n    \"rise\",\n    \"rising\",\n    \"risk\",\n    \"risotto\",\n    \"ritalin\",\n    \"ritzy\",\n    \"rival\",\n    \"riverbank\",\n    \"riverbed\",\n    \"riverboat\",\n    \"riverside\",\n    \"riveter\",\n    \"riveting\",\n    \"roamer\",\n    \"roaming\",\n    \"roast\",\n    \"robbing\",\n    \"robe\",\n    \"robin\",\n    \"robotics\",\n    \"robust\",\n    \"rockband\",\n    \"rocker\",\n    \"rocket\",\n    \"rockfish\",\n    \"rockiness\",\n    \"rocking\",\n    \"rocklike\",\n    \"rockslide\",\n    \"rockstar\",\n    \"rocky\",\n    \"rogue\",\n    \"roman\",\n    \"romp\",\n    \"rope\",\n    \"roping\",\n    \"roster\",\n    \"rosy\",\n    \"rotten\",\n    \"rotting\",\n    \"rotunda\",\n    \"roulette\",\n    \"rounding\",\n    \"roundish\",\n    \"roundness\",\n    \"roundup\",\n    \"roundworm\",\n    \"routine\",\n    \"routing\",\n    \"rover\",\n    \"roving\",\n    \"royal\",\n    \"rubbed\",\n    \"rubber\",\n    \"rubbing\",\n    \"rubble\",\n    \"rubdown\",\n    \"ruby\",\n    \"ruckus\",\n    \"rudder\",\n    \"rug\",\n    \"ruined\",\n    \"rule\",\n    \"rumble\",\n    \"rumbling\",\n    \"rummage\",\n    \"rumor\",\n    \"runaround\",\n    \"rundown\",\n    \"runner\",\n    \"running\",\n    \"runny\",\n    \"runt\",\n    \"runway\",\n    \"rupture\",\n    \"rural\",\n    \"ruse\",\n    \"rush\",\n    \"rust\",\n    \"rut\",\n    \"sabbath\",\n    \"sabotage\",\n    \"sacrament\",\n    \"sacred\",\n    \"sacrifice\",\n    \"sadden\",\n    \"saddlebag\",\n    \"saddled\",\n    \"saddling\",\n    \"sadly\",\n    \"sadness\",\n    \"safari\",\n    \"safeguard\",\n    \"safehouse\",\n    \"safely\",\n    \"safeness\",\n    \"saffron\",\n    \"saga\",\n    \"sage\",\n    \"sagging\",\n    \"saggy\",\n    \"said\",\n    \"saint\",\n    \"sake\",\n    \"salad\",\n    \"salami\",\n    \"salaried\",\n    \"salary\",\n    \"saline\",\n    \"salon\",\n    \"saloon\",\n    \"salsa\",\n    \"salt\",\n    \"salutary\",\n    \"salute\",\n    \"salvage\",\n    \"salvaging\",\n    \"salvation\",\n    \"same\",\n    \"sample\",\n    \"sampling\",\n    \"sanction\",\n    \"sanctity\",\n    \"sanctuary\",\n    \"sandal\",\n    \"sandbag\",\n    \"sandbank\",\n    \"sandbar\",\n    \"sandblast\",\n    \"sandbox\",\n    \"sanded\",\n    \"sandfish\",\n    \"sanding\",\n    \"sandlot\",\n    \"sandpaper\",\n    \"sandpit\",\n    \"sandstone\",\n    \"sandstorm\",\n    \"sandworm\",\n    \"sandy\",\n    \"sanitary\",\n    \"sanitizer\",\n    \"sank\",\n    \"santa\",\n    \"sapling\",\n    \"sappiness\",\n    \"sappy\",\n    \"sarcasm\",\n    \"sarcastic\",\n    \"sardine\",\n    \"sash\",\n    \"sasquatch\",\n    \"sassy\",\n    \"satchel\",\n    \"satiable\",\n    \"satin\",\n    \"satirical\",\n    \"satisfied\",\n    \"satisfy\",\n    \"saturate\",\n    \"saturday\",\n    \"sauciness\",\n    \"saucy\",\n    \"sauna\",\n    \"savage\",\n    \"savanna\",\n    \"saved\",\n    \"savings\",\n    \"savior\",\n    \"savor\",\n    \"saxophone\",\n    \"say\",\n    \"scabbed\",\n    \"scabby\",\n    \"scalded\",\n    \"scalding\",\n    \"scale\",\n    \"scaling\",\n    \"scallion\",\n    \"scallop\",\n    \"scalping\",\n    \"scam\",\n    \"scandal\",\n    \"scanner\",\n    \"scanning\",\n    \"scant\",\n    \"scapegoat\",\n    \"scarce\",\n    \"scarcity\",\n    \"scarecrow\",\n    \"scared\",\n    \"scarf\",\n    \"scarily\",\n    \"scariness\",\n    \"scarring\",\n    \"scary\",\n    \"scavenger\",\n    \"scenic\",\n    \"schedule\",\n    \"schematic\",\n    \"scheme\",\n    \"scheming\",\n    \"schilling\",\n    \"schnapps\",\n    \"scholar\",\n    \"science\",\n    \"scientist\",\n    \"scion\",\n    \"scoff\",\n    \"scolding\",\n    \"scone\",\n    \"scoop\",\n    \"scooter\",\n    \"scope\",\n    \"scorch\",\n    \"scorebook\",\n    \"scorecard\",\n    \"scored\",\n    \"scoreless\",\n    \"scorer\",\n    \"scoring\",\n    \"scorn\",\n    \"scorpion\",\n    \"scotch\",\n    \"scoundrel\",\n    \"scoured\",\n    \"scouring\",\n    \"scouting\",\n    \"scouts\",\n    \"scowling\",\n    \"scrabble\",\n    \"scraggly\",\n    \"scrambled\",\n    \"scrambler\",\n    \"scrap\",\n    \"scratch\",\n    \"scrawny\",\n    \"screen\",\n    \"scribble\",\n    \"scribe\",\n    \"scribing\",\n    \"scrimmage\",\n    \"script\",\n    \"scroll\",\n    \"scrooge\",\n    \"scrounger\",\n    \"scrubbed\",\n    \"scrubber\",\n    \"scruffy\",\n    \"scrunch\",\n    \"scrutiny\",\n    \"scuba\",\n    \"scuff\",\n    \"sculptor\",\n    \"sculpture\",\n    \"scurvy\",\n    \"scuttle\",\n    \"secluded\",\n    \"secluding\",\n    \"seclusion\",\n    \"second\",\n    \"secrecy\",\n    \"secret\",\n    \"sectional\",\n    \"sector\",\n    \"secular\",\n    \"securely\",\n    \"security\",\n    \"sedan\",\n    \"sedate\",\n    \"sedation\",\n    \"sedative\",\n    \"sediment\",\n    \"seduce\",\n    \"seducing\",\n    \"segment\",\n    \"seismic\",\n    \"seizing\",\n    \"seldom\",\n    \"selected\",\n    \"selection\",\n    \"selective\",\n    \"selector\",\n    \"self\",\n    \"seltzer\",\n    \"semantic\",\n    \"semester\",\n    \"semicolon\",\n    \"semifinal\",\n    \"seminar\",\n    \"semisoft\",\n    \"semisweet\",\n    \"senate\",\n    \"senator\",\n    \"send\",\n    \"senior\",\n    \"senorita\",\n    \"sensation\",\n    \"sensitive\",\n    \"sensitize\",\n    \"sensually\",\n    \"sensuous\",\n    \"sepia\",\n    \"september\",\n    \"septic\",\n    \"septum\",\n    \"sequel\",\n    \"sequence\",\n    \"sequester\",\n    \"series\",\n    \"sermon\",\n    \"serotonin\",\n    \"serpent\",\n    \"serrated\",\n    \"serve\",\n    \"service\",\n    \"serving\",\n    \"sesame\",\n    \"sessions\",\n    \"setback\",\n    \"setting\",\n    \"settle\",\n    \"settling\",\n    \"setup\",\n    \"sevenfold\",\n    \"seventeen\",\n    \"seventh\",\n    \"seventy\",\n    \"severity\",\n    \"shabby\",\n    \"shack\",\n    \"shaded\",\n    \"shadily\",\n    \"shadiness\",\n    \"shading\",\n    \"shadow\",\n    \"shady\",\n    \"shaft\",\n    \"shakable\",\n    \"shakily\",\n    \"shakiness\",\n    \"shaking\",\n    \"shaky\",\n    \"shale\",\n    \"shallot\",\n    \"shallow\",\n    \"shame\",\n    \"shampoo\",\n    \"shamrock\",\n    \"shank\",\n    \"shanty\",\n    \"shape\",\n    \"shaping\",\n    \"share\",\n    \"sharpener\",\n    \"sharper\",\n    \"sharpie\",\n    \"sharply\",\n    \"sharpness\",\n    \"shawl\",\n    \"sheath\",\n    \"shed\",\n    \"sheep\",\n    \"sheet\",\n    \"shelf\",\n    \"shell\",\n    \"shelter\",\n    \"shelve\",\n    \"shelving\",\n    \"sherry\",\n    \"shield\",\n    \"shifter\",\n    \"shifting\",\n    \"shiftless\",\n    \"shifty\",\n    \"shimmer\",\n    \"shimmy\",\n    \"shindig\",\n    \"shine\",\n    \"shingle\",\n    \"shininess\",\n    \"shining\",\n    \"shiny\",\n    \"ship\",\n    \"shirt\",\n    \"shivering\",\n    \"shock\",\n    \"shone\",\n    \"shoplift\",\n    \"shopper\",\n    \"shopping\",\n    \"shoptalk\",\n    \"shore\",\n    \"shortage\",\n    \"shortcake\",\n    \"shortcut\",\n    \"shorten\",\n    \"shorter\",\n    \"shorthand\",\n    \"shortlist\",\n    \"shortly\",\n    \"shortness\",\n    \"shorts\",\n    \"shortwave\",\n    \"shorty\",\n    \"shout\",\n    \"shove\",\n    \"showbiz\",\n    \"showcase\",\n    \"showdown\",\n    \"shower\",\n    \"showgirl\",\n    \"showing\",\n    \"showman\",\n    \"shown\",\n    \"showoff\",\n    \"showpiece\",\n    \"showplace\",\n    \"showroom\",\n    \"showy\",\n    \"shrank\",\n    \"shrapnel\",\n    \"shredder\",\n    \"shredding\",\n    \"shrewdly\",\n    \"shriek\",\n    \"shrill\",\n    \"shrimp\",\n    \"shrine\",\n    \"shrink\",\n    \"shrivel\",\n    \"shrouded\",\n    \"shrubbery\",\n    \"shrubs\",\n    \"shrug\",\n    \"shrunk\",\n    \"shucking\",\n    \"shudder\",\n    \"shuffle\",\n    \"shuffling\",\n    \"shun\",\n    \"shush\",\n    \"shut\",\n    \"shy\",\n    \"siamese\",\n    \"siberian\",\n    \"sibling\",\n    \"siding\",\n    \"sierra\",\n    \"siesta\",\n    \"sift\",\n    \"sighing\",\n    \"silenced\",\n    \"silencer\",\n    \"silent\",\n    \"silica\",\n    \"silicon\",\n    \"silk\",\n    \"silliness\",\n    \"silly\",\n    \"silo\",\n    \"silt\",\n    \"silver\",\n    \"similarly\",\n    \"simile\",\n    \"simmering\",\n    \"simple\",\n    \"simplify\",\n    \"simply\",\n    \"sincere\",\n    \"sincerity\",\n    \"singer\",\n    \"singing\",\n    \"single\",\n    \"singular\",\n    \"sinister\",\n    \"sinless\",\n    \"sinner\",\n    \"sinuous\",\n    \"sip\",\n    \"siren\",\n    \"sister\",\n    \"sitcom\",\n    \"sitter\",\n    \"sitting\",\n    \"situated\",\n    \"situation\",\n    \"sixfold\",\n    \"sixteen\",\n    \"sixth\",\n    \"sixties\",\n    \"sixtieth\",\n    \"sixtyfold\",\n    \"sizable\",\n    \"sizably\",\n    \"size\",\n    \"sizing\",\n    \"sizzle\",\n    \"sizzling\",\n    \"skater\",\n    \"skating\",\n    \"skedaddle\",\n    \"skeletal\",\n    \"skeleton\",\n    \"skeptic\",\n    \"sketch\",\n    \"skewed\",\n    \"skewer\",\n    \"skid\",\n    \"skied\",\n    \"skier\",\n    \"skies\",\n    \"skiing\",\n    \"skilled\",\n    \"skillet\",\n    \"skillful\",\n    \"skimmed\",\n    \"skimmer\",\n    \"skimming\",\n    \"skimpily\",\n    \"skincare\",\n    \"skinhead\",\n    \"skinless\",\n    \"skinning\",\n    \"skinny\",\n    \"skintight\",\n    \"skipper\",\n    \"skipping\",\n    \"skirmish\",\n    \"skirt\",\n    \"skittle\",\n    \"skydiver\",\n    \"skylight\",\n    \"skyline\",\n    \"skype\",\n    \"skyrocket\",\n    \"skyward\",\n    \"slab\",\n    \"slacked\",\n    \"slacker\",\n    \"slacking\",\n    \"slackness\",\n    \"slacks\",\n    \"slain\",\n    \"slam\",\n    \"slander\",\n    \"slang\",\n    \"slapping\",\n    \"slapstick\",\n    \"slashed\",\n    \"slashing\",\n    \"slate\",\n    \"slather\",\n    \"slaw\",\n    \"sled\",\n    \"sleek\",\n    \"sleep\",\n    \"sleet\",\n    \"sleeve\",\n    \"slept\",\n    \"sliceable\",\n    \"sliced\",\n    \"slicer\",\n    \"slicing\",\n    \"slick\",\n    \"slider\",\n    \"slideshow\",\n    \"sliding\",\n    \"slighted\",\n    \"slighting\",\n    \"slightly\",\n    \"slimness\",\n    \"slimy\",\n    \"slinging\",\n    \"slingshot\",\n    \"slinky\",\n    \"slip\",\n    \"slit\",\n    \"sliver\",\n    \"slobbery\",\n    \"slogan\",\n    \"sloped\",\n    \"sloping\",\n    \"sloppily\",\n    \"sloppy\",\n    \"slot\",\n    \"slouching\",\n    \"slouchy\",\n    \"sludge\",\n    \"slug\",\n    \"slum\",\n    \"slurp\",\n    \"slush\",\n    \"sly\",\n    \"small\",\n    \"smartly\",\n    \"smartness\",\n    \"smasher\",\n    \"smashing\",\n    \"smashup\",\n    \"smell\",\n    \"smelting\",\n    \"smile\",\n    \"smilingly\",\n    \"smirk\",\n    \"smite\",\n    \"smith\",\n    \"smitten\",\n    \"smock\",\n    \"smog\",\n    \"smoked\",\n    \"smokeless\",\n    \"smokiness\",\n    \"smoking\",\n    \"smoky\",\n    \"smolder\",\n    \"smooth\",\n    \"smother\",\n    \"smudge\",\n    \"smudgy\",\n    \"smuggler\",\n    \"smuggling\",\n    \"smugly\",\n    \"smugness\",\n    \"snack\",\n    \"snagged\",\n    \"snaking\",\n    \"snap\",\n    \"snare\",\n    \"snarl\",\n    \"snazzy\",\n    \"sneak\",\n    \"sneer\",\n    \"sneeze\",\n    \"sneezing\",\n    \"snide\",\n    \"sniff\",\n    \"snippet\",\n    \"snipping\",\n    \"snitch\",\n    \"snooper\",\n    \"snooze\",\n    \"snore\",\n    \"snoring\",\n    \"snorkel\",\n    \"snort\",\n    \"snout\",\n    \"snowbird\",\n    \"snowboard\",\n    \"snowbound\",\n    \"snowcap\",\n    \"snowdrift\",\n    \"snowdrop\",\n    \"snowfall\",\n    \"snowfield\",\n    \"snowflake\",\n    \"snowiness\",\n    \"snowless\",\n    \"snowman\",\n    \"snowplow\",\n    \"snowshoe\",\n    \"snowstorm\",\n    \"snowsuit\",\n    \"snowy\",\n    \"snub\",\n    \"snuff\",\n    \"snuggle\",\n    \"snugly\",\n    \"snugness\",\n    \"speak\",\n    \"spearfish\",\n    \"spearhead\",\n    \"spearman\",\n    \"spearmint\",\n    \"species\",\n    \"specimen\",\n    \"specked\",\n    \"speckled\",\n    \"specks\",\n    \"spectacle\",\n    \"spectator\",\n    \"spectrum\",\n    \"speculate\",\n    \"speech\",\n    \"speed\",\n    \"spellbind\",\n    \"speller\",\n    \"spelling\",\n    \"spendable\",\n    \"spender\",\n    \"spending\",\n    \"spent\",\n    \"spew\",\n    \"sphere\",\n    \"spherical\",\n    \"sphinx\",\n    \"spider\",\n    \"spied\",\n    \"spiffy\",\n    \"spill\",\n    \"spilt\",\n    \"spinach\",\n    \"spinal\",\n    \"spindle\",\n    \"spinner\",\n    \"spinning\",\n    \"spinout\",\n    \"spinster\",\n    \"spiny\",\n    \"spiral\",\n    \"spirited\",\n    \"spiritism\",\n    \"spirits\",\n    \"spiritual\",\n    \"splashed\",\n    \"splashing\",\n    \"splashy\",\n    \"splatter\",\n    \"spleen\",\n    \"splendid\",\n    \"splendor\",\n    \"splice\",\n    \"splicing\",\n    \"splinter\",\n    \"splotchy\",\n    \"splurge\",\n    \"spoilage\",\n    \"spoiled\",\n    \"spoiler\",\n    \"spoiling\",\n    \"spoils\",\n    \"spoken\",\n    \"spokesman\",\n    \"sponge\",\n    \"spongy\",\n    \"sponsor\",\n    \"spoof\",\n    \"spookily\",\n    \"spooky\",\n    \"spool\",\n    \"spoon\",\n    \"spore\",\n    \"sporting\",\n    \"sports\",\n    \"sporty\",\n    \"spotless\",\n    \"spotlight\",\n    \"spotted\",\n    \"spotter\",\n    \"spotting\",\n    \"spotty\",\n    \"spousal\",\n    \"spouse\",\n    \"spout\",\n    \"sprain\",\n    \"sprang\",\n    \"sprawl\",\n    \"spray\",\n    \"spree\",\n    \"sprig\",\n    \"spring\",\n    \"sprinkled\",\n    \"sprinkler\",\n    \"sprint\",\n    \"sprite\",\n    \"sprout\",\n    \"spruce\",\n    \"sprung\",\n    \"spry\",\n    \"spud\",\n    \"spur\",\n    \"sputter\",\n    \"spyglass\",\n    \"squabble\",\n    \"squad\",\n    \"squall\",\n    \"squander\",\n    \"squash\",\n    \"squatted\",\n    \"squatter\",\n    \"squatting\",\n    \"squeak\",\n    \"squealer\",\n    \"squealing\",\n    \"squeamish\",\n    \"squeegee\",\n    \"squeeze\",\n    \"squeezing\",\n    \"squid\",\n    \"squiggle\",\n    \"squiggly\",\n    \"squint\",\n    \"squire\",\n    \"squirt\",\n    \"squishier\",\n    \"squishy\",\n    \"stability\",\n    \"stabilize\",\n    \"stable\",\n    \"stack\",\n    \"stadium\",\n    \"staff\",\n    \"stage\",\n    \"staging\",\n    \"stagnant\",\n    \"stagnate\",\n    \"stainable\",\n    \"stained\",\n    \"staining\",\n    \"stainless\",\n    \"stalemate\",\n    \"staleness\",\n    \"stalling\",\n    \"stallion\",\n    \"stamina\",\n    \"stammer\",\n    \"stamp\",\n    \"stand\",\n    \"stank\",\n    \"staple\",\n    \"stapling\",\n    \"starboard\",\n    \"starch\",\n    \"stardom\",\n    \"stardust\",\n    \"starfish\",\n    \"stargazer\",\n    \"staring\",\n    \"stark\",\n    \"starless\",\n    \"starlet\",\n    \"starlight\",\n    \"starlit\",\n    \"starring\",\n    \"starry\",\n    \"starship\",\n    \"starter\",\n    \"starting\",\n    \"startle\",\n    \"startling\",\n    \"startup\",\n    \"starved\",\n    \"starving\",\n    \"stash\",\n    \"state\",\n    \"static\",\n    \"statistic\",\n    \"statue\",\n    \"stature\",\n    \"status\",\n    \"statute\",\n    \"statutory\",\n    \"staunch\",\n    \"stays\",\n    \"steadfast\",\n    \"steadier\",\n    \"steadily\",\n    \"steadying\",\n    \"steam\",\n    \"steed\",\n    \"steep\",\n    \"steerable\",\n    \"steering\",\n    \"steersman\",\n    \"stegosaur\",\n    \"stellar\",\n    \"stem\",\n    \"stench\",\n    \"stencil\",\n    \"step\",\n    \"stereo\",\n    \"sterile\",\n    \"sterility\",\n    \"sterilize\",\n    \"sterling\",\n    \"sternness\",\n    \"sternum\",\n    \"stew\",\n    \"stick\",\n    \"stiffen\",\n    \"stiffly\",\n    \"stiffness\",\n    \"stifle\",\n    \"stifling\",\n    \"stillness\",\n    \"stilt\",\n    \"stimulant\",\n    \"stimulate\",\n    \"stimuli\",\n    \"stimulus\",\n    \"stinger\",\n    \"stingily\",\n    \"stinging\",\n    \"stingray\",\n    \"stingy\",\n    \"stinking\",\n    \"stinky\",\n    \"stipend\",\n    \"stipulate\",\n    \"stir\",\n    \"stitch\",\n    \"stock\",\n    \"stoic\",\n    \"stoke\",\n    \"stole\",\n    \"stomp\",\n    \"stonewall\",\n    \"stoneware\",\n    \"stonework\",\n    \"stoning\",\n    \"stony\",\n    \"stood\",\n    \"stooge\",\n    \"stool\",\n    \"stoop\",\n    \"stoplight\",\n    \"stoppable\",\n    \"stoppage\",\n    \"stopped\",\n    \"stopper\",\n    \"stopping\",\n    \"stopwatch\",\n    \"storable\",\n    \"storage\",\n    \"storeroom\",\n    \"storewide\",\n    \"storm\",\n    \"stout\",\n    \"stove\",\n    \"stowaway\",\n    \"stowing\",\n    \"straddle\",\n    \"straggler\",\n    \"strained\",\n    \"strainer\",\n    \"straining\",\n    \"strangely\",\n    \"stranger\",\n    \"strangle\",\n    \"strategic\",\n    \"strategy\",\n    \"stratus\",\n    \"straw\",\n    \"stray\",\n    \"streak\",\n    \"stream\",\n    \"street\",\n    \"strength\",\n    \"strenuous\",\n    \"strep\",\n    \"stress\",\n    \"stretch\",\n    \"strewn\",\n    \"stricken\",\n    \"strict\",\n    \"stride\",\n    \"strife\",\n    \"strike\",\n    \"striking\",\n    \"strive\",\n    \"striving\",\n    \"strobe\",\n    \"strode\",\n    \"stroller\",\n    \"strongbox\",\n    \"strongly\",\n    \"strongman\",\n    \"struck\",\n    \"structure\",\n    \"strudel\",\n    \"struggle\",\n    \"strum\",\n    \"strung\",\n    \"strut\",\n    \"stubbed\",\n    \"stubble\",\n    \"stubbly\",\n    \"stubborn\",\n    \"stucco\",\n    \"stuck\",\n    \"student\",\n    \"studied\",\n    \"studio\",\n    \"study\",\n    \"stuffed\",\n    \"stuffing\",\n    \"stuffy\",\n    \"stumble\",\n    \"stumbling\",\n    \"stump\",\n    \"stung\",\n    \"stunned\",\n    \"stunner\",\n    \"stunning\",\n    \"stunt\",\n    \"stupor\",\n    \"sturdily\",\n    \"sturdy\",\n    \"styling\",\n    \"stylishly\",\n    \"stylist\",\n    \"stylized\",\n    \"stylus\",\n    \"suave\",\n    \"subarctic\",\n    \"subatomic\",\n    \"subdivide\",\n    \"subdued\",\n    \"subduing\",\n    \"subfloor\",\n    \"subgroup\",\n    \"subheader\",\n    \"subject\",\n    \"sublease\",\n    \"sublet\",\n    \"sublevel\",\n    \"sublime\",\n    \"submarine\",\n    \"submerge\",\n    \"submersed\",\n    \"submitter\",\n    \"subpanel\",\n    \"subpar\",\n    \"subplot\",\n    \"subprime\",\n    \"subscribe\",\n    \"subscript\",\n    \"subsector\",\n    \"subside\",\n    \"subsiding\",\n    \"subsidize\",\n    \"subsidy\",\n    \"subsoil\",\n    \"subsonic\",\n    \"substance\",\n    \"subsystem\",\n    \"subtext\",\n    \"subtitle\",\n    \"subtly\",\n    \"subtotal\",\n    \"subtract\",\n    \"subtype\",\n    \"suburb\",\n    \"subway\",\n    \"subwoofer\",\n    \"subzero\",\n    \"succulent\",\n    \"such\",\n    \"suction\",\n    \"sudden\",\n    \"sudoku\",\n    \"suds\",\n    \"sufferer\",\n    \"suffering\",\n    \"suffice\",\n    \"suffix\",\n    \"suffocate\",\n    \"suffrage\",\n    \"sugar\",\n    \"suggest\",\n    \"suing\",\n    \"suitable\",\n    \"suitably\",\n    \"suitcase\",\n    \"suitor\",\n    \"sulfate\",\n    \"sulfide\",\n    \"sulfite\",\n    \"sulfur\",\n    \"sulk\",\n    \"sullen\",\n    \"sulphate\",\n    \"sulphuric\",\n    \"sultry\",\n    \"superbowl\",\n    \"superglue\",\n    \"superhero\",\n    \"superior\",\n    \"superjet\",\n    \"superman\",\n    \"supermom\",\n    \"supernova\",\n    \"supervise\",\n    \"supper\",\n    \"supplier\",\n    \"supply\",\n    \"support\",\n    \"supremacy\",\n    \"supreme\",\n    \"surcharge\",\n    \"surely\",\n    \"sureness\",\n    \"surface\",\n    \"surfacing\",\n    \"surfboard\",\n    \"surfer\",\n    \"surgery\",\n    \"surgical\",\n    \"surging\",\n    \"surname\",\n    \"surpass\",\n    \"surplus\",\n    \"surprise\",\n    \"surreal\",\n    \"surrender\",\n    \"surrogate\",\n    \"surround\",\n    \"survey\",\n    \"survival\",\n    \"survive\",\n    \"surviving\",\n    \"survivor\",\n    \"sushi\",\n    \"suspect\",\n    \"suspend\",\n    \"suspense\",\n    \"sustained\",\n    \"sustainer\",\n    \"swab\",\n    \"swaddling\",\n    \"swagger\",\n    \"swampland\",\n    \"swan\",\n    \"swapping\",\n    \"swarm\",\n    \"sway\",\n    \"swear\",\n    \"sweat\",\n    \"sweep\",\n    \"swell\",\n    \"swept\",\n    \"swerve\",\n    \"swifter\",\n    \"swiftly\",\n    \"swiftness\",\n    \"swimmable\",\n    \"swimmer\",\n    \"swimming\",\n    \"swimsuit\",\n    \"swimwear\",\n    \"swinger\",\n    \"swinging\",\n    \"swipe\",\n    \"swirl\",\n    \"switch\",\n    \"swivel\",\n    \"swizzle\",\n    \"swooned\",\n    \"swoop\",\n    \"swoosh\",\n    \"swore\",\n    \"sworn\",\n    \"swung\",\n    \"sycamore\",\n    \"sympathy\",\n    \"symphonic\",\n    \"symphony\",\n    \"symptom\",\n    \"synapse\",\n    \"syndrome\",\n    \"synergy\",\n    \"synopses\",\n    \"synopsis\",\n    \"synthesis\",\n    \"synthetic\",\n    \"syrup\",\n    \"system\",\n    \"t-shirt\",\n    \"tabasco\",\n    \"tabby\",\n    \"tableful\",\n    \"tables\",\n    \"tablet\",\n    \"tableware\",\n    \"tabloid\",\n    \"tackiness\",\n    \"tacking\",\n    \"tackle\",\n    \"tackling\",\n    \"tacky\",\n    \"taco\",\n    \"tactful\",\n    \"tactical\",\n    \"tactics\",\n    \"tactile\",\n    \"tactless\",\n    \"tadpole\",\n    \"taekwondo\",\n    \"tag\",\n    \"tainted\",\n    \"take\",\n    \"taking\",\n    \"talcum\",\n    \"talisman\",\n    \"tall\",\n    \"talon\",\n    \"tamale\",\n    \"tameness\",\n    \"tamer\",\n    \"tamper\",\n    \"tank\",\n    \"tanned\",\n    \"tannery\",\n    \"tanning\",\n    \"tantrum\",\n    \"tapeless\",\n    \"tapered\",\n    \"tapering\",\n    \"tapestry\",\n    \"tapioca\",\n    \"tapping\",\n    \"taps\",\n    \"tarantula\",\n    \"target\",\n    \"tarmac\",\n    \"tarnish\",\n    \"tarot\",\n    \"tartar\",\n    \"tartly\",\n    \"tartness\",\n    \"task\",\n    \"tassel\",\n    \"taste\",\n    \"tastiness\",\n    \"tasting\",\n    \"tasty\",\n    \"tattered\",\n    \"tattle\",\n    \"tattling\",\n    \"tattoo\",\n    \"taunt\",\n    \"tavern\",\n    \"thank\",\n    \"that\",\n    \"thaw\",\n    \"theater\",\n    \"theatrics\",\n    \"thee\",\n    \"theft\",\n    \"theme\",\n    \"theology\",\n    \"theorize\",\n    \"thermal\",\n    \"thermos\",\n    \"thesaurus\",\n    \"these\",\n    \"thesis\",\n    \"thespian\",\n    \"thicken\",\n    \"thicket\",\n    \"thickness\",\n    \"thieving\",\n    \"thievish\",\n    \"thigh\",\n    \"thimble\",\n    \"thing\",\n    \"think\",\n    \"thinly\",\n    \"thinner\",\n    \"thinness\",\n    \"thinning\",\n    \"thirstily\",\n    \"thirsting\",\n    \"thirsty\",\n    \"thirteen\",\n    \"thirty\",\n    \"thong\",\n    \"thorn\",\n    \"those\",\n    \"thousand\",\n    \"thrash\",\n    \"thread\",\n    \"threaten\",\n    \"threefold\",\n    \"thrift\",\n    \"thrill\",\n    \"thrive\",\n    \"thriving\",\n    \"throat\",\n    \"throbbing\",\n    \"throng\",\n    \"throttle\",\n    \"throwaway\",\n    \"throwback\",\n    \"thrower\",\n    \"throwing\",\n    \"thud\",\n    \"thumb\",\n    \"thumping\",\n    \"thursday\",\n    \"thus\",\n    \"thwarting\",\n    \"thyself\",\n    \"tiara\",\n    \"tibia\",\n    \"tidal\",\n    \"tidbit\",\n    \"tidiness\",\n    \"tidings\",\n    \"tidy\",\n    \"tiger\",\n    \"tighten\",\n    \"tightly\",\n    \"tightness\",\n    \"tightrope\",\n    \"tightwad\",\n    \"tigress\",\n    \"tile\",\n    \"tiling\",\n    \"till\",\n    \"tilt\",\n    \"timid\",\n    \"timing\",\n    \"timothy\",\n    \"tinderbox\",\n    \"tinfoil\",\n    \"tingle\",\n    \"tingling\",\n    \"tingly\",\n    \"tinker\",\n    \"tinkling\",\n    \"tinsel\",\n    \"tinsmith\",\n    \"tint\",\n    \"tinwork\",\n    \"tiny\",\n    \"tipoff\",\n    \"tipped\",\n    \"tipper\",\n    \"tipping\",\n    \"tiptoeing\",\n    \"tiptop\",\n    \"tiring\",\n    \"tissue\",\n    \"trace\",\n    \"tracing\",\n    \"track\",\n    \"traction\",\n    \"tractor\",\n    \"trade\",\n    \"trading\",\n    \"tradition\",\n    \"traffic\",\n    \"tragedy\",\n    \"trailing\",\n    \"trailside\",\n    \"train\",\n    \"traitor\",\n    \"trance\",\n    \"tranquil\",\n    \"transfer\",\n    \"transform\",\n    \"translate\",\n    \"transpire\",\n    \"transport\",\n    \"transpose\",\n    \"trapdoor\",\n    \"trapeze\",\n    \"trapezoid\",\n    \"trapped\",\n    \"trapper\",\n    \"trapping\",\n    \"traps\",\n    \"trash\",\n    \"travel\",\n    \"traverse\",\n    \"travesty\",\n    \"tray\",\n    \"treachery\",\n    \"treading\",\n    \"treadmill\",\n    \"treason\",\n    \"treat\",\n    \"treble\",\n    \"tree\",\n    \"trekker\",\n    \"tremble\",\n    \"trembling\",\n    \"tremor\",\n    \"trench\",\n    \"trend\",\n    \"trespass\",\n    \"triage\",\n    \"trial\",\n    \"triangle\",\n    \"tribesman\",\n    \"tribunal\",\n    \"tribune\",\n    \"tributary\",\n    \"tribute\",\n    \"triceps\",\n    \"trickery\",\n    \"trickily\",\n    \"tricking\",\n    \"trickle\",\n    \"trickster\",\n    \"tricky\",\n    \"tricolor\",\n    \"tricycle\",\n    \"trident\",\n    \"tried\",\n    \"trifle\",\n    \"trifocals\",\n    \"trillion\",\n    \"trilogy\",\n    \"trimester\",\n    \"trimmer\",\n    \"trimming\",\n    \"trimness\",\n    \"trinity\",\n    \"trio\",\n    \"tripod\",\n    \"tripping\",\n    \"triumph\",\n    \"trivial\",\n    \"trodden\",\n    \"trolling\",\n    \"trombone\",\n    \"trophy\",\n    \"tropical\",\n    \"tropics\",\n    \"trouble\",\n    \"troubling\",\n    \"trough\",\n    \"trousers\",\n    \"trout\",\n    \"trowel\",\n    \"truce\",\n    \"truck\",\n    \"truffle\",\n    \"trump\",\n    \"trunks\",\n    \"trustable\",\n    \"trustee\",\n    \"trustful\",\n    \"trusting\",\n    \"trustless\",\n    \"truth\",\n    \"try\",\n    \"tubby\",\n    \"tubeless\",\n    \"tubular\",\n    \"tucking\",\n    \"tuesday\",\n    \"tug\",\n    \"tuition\",\n    \"tulip\",\n    \"tumble\",\n    \"tumbling\",\n    \"tummy\",\n    \"turban\",\n    \"turbine\",\n    \"turbofan\",\n    \"turbojet\",\n    \"turbulent\",\n    \"turf\",\n    \"turkey\",\n    \"turmoil\",\n    \"turret\",\n    \"turtle\",\n    \"tusk\",\n    \"tutor\",\n    \"tutu\",\n    \"tux\",\n    \"tweak\",\n    \"tweed\",\n    \"tweet\",\n    \"tweezers\",\n    \"twelve\",\n    \"twentieth\",\n    \"twenty\",\n    \"twerp\",\n    \"twice\",\n    \"twiddle\",\n    \"twiddling\",\n    \"twig\",\n    \"twilight\",\n    \"twine\",\n    \"twins\",\n    \"twirl\",\n    \"twistable\",\n    \"twisted\",\n    \"twister\",\n    \"twisting\",\n    \"twisty\",\n    \"twitch\",\n    \"twitter\",\n    \"tycoon\",\n    \"tying\",\n    \"tyke\",\n    \"udder\",\n    \"ultimate\",\n    \"ultimatum\",\n    \"ultra\",\n    \"umbilical\",\n    \"umbrella\",\n    \"umpire\",\n    \"unabashed\",\n    \"unable\",\n    \"unadorned\",\n    \"unadvised\",\n    \"unafraid\",\n    \"unaired\",\n    \"unaligned\",\n    \"unaltered\",\n    \"unarmored\",\n    \"unashamed\",\n    \"unaudited\",\n    \"unawake\",\n    \"unaware\",\n    \"unbaked\",\n    \"unbalance\",\n    \"unbeaten\",\n    \"unbend\",\n    \"unbent\",\n    \"unbiased\",\n    \"unbitten\",\n    \"unblended\",\n    \"unblessed\",\n    \"unblock\",\n    \"unbolted\",\n    \"unbounded\",\n    \"unboxed\",\n    \"unbraided\",\n    \"unbridle\",\n    \"unbroken\",\n    \"unbuckled\",\n    \"unbundle\",\n    \"unburned\",\n    \"unbutton\",\n    \"uncanny\",\n    \"uncapped\",\n    \"uncaring\",\n    \"uncertain\",\n    \"unchain\",\n    \"unchanged\",\n    \"uncharted\",\n    \"uncheck\",\n    \"uncivil\",\n    \"unclad\",\n    \"unclaimed\",\n    \"unclamped\",\n    \"unclasp\",\n    \"uncle\",\n    \"unclip\",\n    \"uncloak\",\n    \"unclog\",\n    \"unclothed\",\n    \"uncoated\",\n    \"uncoiled\",\n    \"uncolored\",\n    \"uncombed\",\n    \"uncommon\",\n    \"uncooked\",\n    \"uncork\",\n    \"uncorrupt\",\n    \"uncounted\",\n    \"uncouple\",\n    \"uncouth\",\n    \"uncover\",\n    \"uncross\",\n    \"uncrown\",\n    \"uncrushed\",\n    \"uncured\",\n    \"uncurious\",\n    \"uncurled\",\n    \"uncut\",\n    \"undamaged\",\n    \"undated\",\n    \"undaunted\",\n    \"undead\",\n    \"undecided\",\n    \"undefined\",\n    \"underage\",\n    \"underarm\",\n    \"undercoat\",\n    \"undercook\",\n    \"undercut\",\n    \"underdog\",\n    \"underdone\",\n    \"underfed\",\n    \"underfeed\",\n    \"underfoot\",\n    \"undergo\",\n    \"undergrad\",\n    \"underhand\",\n    \"underline\",\n    \"underling\",\n    \"undermine\",\n    \"undermost\",\n    \"underpaid\",\n    \"underpass\",\n    \"underpay\",\n    \"underrate\",\n    \"undertake\",\n    \"undertone\",\n    \"undertook\",\n    \"undertow\",\n    \"underuse\",\n    \"underwear\",\n    \"underwent\",\n    \"underwire\",\n    \"undesired\",\n    \"undiluted\",\n    \"undivided\",\n    \"undocked\",\n    \"undoing\",\n    \"undone\",\n    \"undrafted\",\n    \"undress\",\n    \"undrilled\",\n    \"undusted\",\n    \"undying\",\n    \"unearned\",\n    \"unearth\",\n    \"unease\",\n    \"uneasily\",\n    \"uneasy\",\n    \"uneatable\",\n    \"uneaten\",\n    \"unedited\",\n    \"unelected\",\n    \"unending\",\n    \"unengaged\",\n    \"unenvied\",\n    \"unequal\",\n    \"unethical\",\n    \"uneven\",\n    \"unexpired\",\n    \"unexposed\",\n    \"unfailing\",\n    \"unfair\",\n    \"unfasten\",\n    \"unfazed\",\n    \"unfeeling\",\n    \"unfiled\",\n    \"unfilled\",\n    \"unfitted\",\n    \"unfitting\",\n    \"unfixable\",\n    \"unfixed\",\n    \"unflawed\",\n    \"unfocused\",\n    \"unfold\",\n    \"unfounded\",\n    \"unframed\",\n    \"unfreeze\",\n    \"unfrosted\",\n    \"unfrozen\",\n    \"unfunded\",\n    \"unglazed\",\n    \"ungloved\",\n    \"unglue\",\n    \"ungodly\",\n    \"ungraded\",\n    \"ungreased\",\n    \"unguarded\",\n    \"unguided\",\n    \"unhappily\",\n    \"unhappy\",\n    \"unharmed\",\n    \"unhealthy\",\n    \"unheard\",\n    \"unhearing\",\n    \"unheated\",\n    \"unhelpful\",\n    \"unhidden\",\n    \"unhinge\",\n    \"unhitched\",\n    \"unholy\",\n    \"unhook\",\n    \"unicorn\",\n    \"unicycle\",\n    \"unified\",\n    \"unifier\",\n    \"uniformed\",\n    \"uniformly\",\n    \"unify\",\n    \"unimpeded\",\n    \"uninjured\",\n    \"uninstall\",\n    \"uninsured\",\n    \"uninvited\",\n    \"union\",\n    \"uniquely\",\n    \"unisexual\",\n    \"unison\",\n    \"unissued\",\n    \"unit\",\n    \"universal\",\n    \"universe\",\n    \"unjustly\",\n    \"unkempt\",\n    \"unkind\",\n    \"unknotted\",\n    \"unknowing\",\n    \"unknown\",\n    \"unlaced\",\n    \"unlatch\",\n    \"unlawful\",\n    \"unleaded\",\n    \"unlearned\",\n    \"unleash\",\n    \"unless\",\n    \"unleveled\",\n    \"unlighted\",\n    \"unlikable\",\n    \"unlimited\",\n    \"unlined\",\n    \"unlinked\",\n    \"unlisted\",\n    \"unlit\",\n    \"unlivable\",\n    \"unloaded\",\n    \"unloader\",\n    \"unlocked\",\n    \"unlocking\",\n    \"unlovable\",\n    \"unloved\",\n    \"unlovely\",\n    \"unloving\",\n    \"unluckily\",\n    \"unlucky\",\n    \"unmade\",\n    \"unmanaged\",\n    \"unmanned\",\n    \"unmapped\",\n    \"unmarked\",\n    \"unmasked\",\n    \"unmasking\",\n    \"unmatched\",\n    \"unmindful\",\n    \"unmixable\",\n    \"unmixed\",\n    \"unmolded\",\n    \"unmoral\",\n    \"unmovable\",\n    \"unmoved\",\n    \"unmoving\",\n    \"unnamable\",\n    \"unnamed\",\n    \"unnatural\",\n    \"unneeded\",\n    \"unnerve\",\n    \"unnerving\",\n    \"unnoticed\",\n    \"unopened\",\n    \"unopposed\",\n    \"unpack\",\n    \"unpadded\",\n    \"unpaid\",\n    \"unpainted\",\n    \"unpaired\",\n    \"unpaved\",\n    \"unpeeled\",\n    \"unpicked\",\n    \"unpiloted\",\n    \"unpinned\",\n    \"unplanned\",\n    \"unplanted\",\n    \"unpleased\",\n    \"unpledged\",\n    \"unplowed\",\n    \"unplug\",\n    \"unpopular\",\n    \"unproven\",\n    \"unquote\",\n    \"unranked\",\n    \"unrated\",\n    \"unraveled\",\n    \"unreached\",\n    \"unread\",\n    \"unreal\",\n    \"unreeling\",\n    \"unrefined\",\n    \"unrelated\",\n    \"unrented\",\n    \"unrest\",\n    \"unretired\",\n    \"unrevised\",\n    \"unrigged\",\n    \"unripe\",\n    \"unrivaled\",\n    \"unroasted\",\n    \"unrobed\",\n    \"unroll\",\n    \"unruffled\",\n    \"unruly\",\n    \"unrushed\",\n    \"unsaddle\",\n    \"unsafe\",\n    \"unsaid\",\n    \"unsalted\",\n    \"unsaved\",\n    \"unsavory\",\n    \"unscathed\",\n    \"unscented\",\n    \"unscrew\",\n    \"unsealed\",\n    \"unseated\",\n    \"unsecured\",\n    \"unseeing\",\n    \"unseemly\",\n    \"unseen\",\n    \"unselect\",\n    \"unselfish\",\n    \"unsent\",\n    \"unsettled\",\n    \"unshackle\",\n    \"unshaken\",\n    \"unshaved\",\n    \"unshaven\",\n    \"unsheathe\",\n    \"unshipped\",\n    \"unsightly\",\n    \"unsigned\",\n    \"unskilled\",\n    \"unsliced\",\n    \"unsmooth\",\n    \"unsnap\",\n    \"unsocial\",\n    \"unsoiled\",\n    \"unsold\",\n    \"unsolved\",\n    \"unsorted\",\n    \"unspoiled\",\n    \"unspoken\",\n    \"unstable\",\n    \"unstaffed\",\n    \"unstamped\",\n    \"unsteady\",\n    \"unsterile\",\n    \"unstirred\",\n    \"unstitch\",\n    \"unstopped\",\n    \"unstuck\",\n    \"unstuffed\",\n    \"unstylish\",\n    \"unsubtle\",\n    \"unsubtly\",\n    \"unsuited\",\n    \"unsure\",\n    \"unsworn\",\n    \"untagged\",\n    \"untainted\",\n    \"untaken\",\n    \"untamed\",\n    \"untangled\",\n    \"untapped\",\n    \"untaxed\",\n    \"unthawed\",\n    \"unthread\",\n    \"untidy\",\n    \"untie\",\n    \"until\",\n    \"untimed\",\n    \"untimely\",\n    \"untitled\",\n    \"untoasted\",\n    \"untold\",\n    \"untouched\",\n    \"untracked\",\n    \"untrained\",\n    \"untreated\",\n    \"untried\",\n    \"untrimmed\",\n    \"untrue\",\n    \"untruth\",\n    \"unturned\",\n    \"untwist\",\n    \"untying\",\n    \"unusable\",\n    \"unused\",\n    \"unusual\",\n    \"unvalued\",\n    \"unvaried\",\n    \"unvarying\",\n    \"unveiled\",\n    \"unveiling\",\n    \"unvented\",\n    \"unviable\",\n    \"unvisited\",\n    \"unvocal\",\n    \"unwanted\",\n    \"unwarlike\",\n    \"unwary\",\n    \"unwashed\",\n    \"unwatched\",\n    \"unweave\",\n    \"unwed\",\n    \"unwelcome\",\n    \"unwell\",\n    \"unwieldy\",\n    \"unwilling\",\n    \"unwind\",\n    \"unwired\",\n    \"unwitting\",\n    \"unwomanly\",\n    \"unworldly\",\n    \"unworn\",\n    \"unworried\",\n    \"unworthy\",\n    \"unwound\",\n    \"unwoven\",\n    \"unwrapped\",\n    \"unwritten\",\n    \"unzip\",\n    \"upbeat\",\n    \"upchuck\",\n    \"upcoming\",\n    \"upcountry\",\n    \"update\",\n    \"upfront\",\n    \"upgrade\",\n    \"upheaval\",\n    \"upheld\",\n    \"uphill\",\n    \"uphold\",\n    \"uplifted\",\n    \"uplifting\",\n    \"upload\",\n    \"upon\",\n    \"upper\",\n    \"upright\",\n    \"uprising\",\n    \"upriver\",\n    \"uproar\",\n    \"uproot\",\n    \"upscale\",\n    \"upside\",\n    \"upstage\",\n    \"upstairs\",\n    \"upstart\",\n    \"upstate\",\n    \"upstream\",\n    \"upstroke\",\n    \"upswing\",\n    \"uptake\",\n    \"uptight\",\n    \"uptown\",\n    \"upturned\",\n    \"upward\",\n    \"upwind\",\n    \"uranium\",\n    \"urban\",\n    \"urchin\",\n    \"urethane\",\n    \"urgency\",\n    \"urgent\",\n    \"urging\",\n    \"urologist\",\n    \"urology\",\n    \"usable\",\n    \"usage\",\n    \"useable\",\n    \"used\",\n    \"uselessly\",\n    \"user\",\n    \"usher\",\n    \"usual\",\n    \"utensil\",\n    \"utility\",\n    \"utilize\",\n    \"utmost\",\n    \"utopia\",\n    \"utter\",\n    \"vacancy\",\n    \"vacant\",\n    \"vacate\",\n    \"vacation\",\n    \"vagabond\",\n    \"vagrancy\",\n    \"vagrantly\",\n    \"vaguely\",\n    \"vagueness\",\n    \"valiant\",\n    \"valid\",\n    \"valium\",\n    \"valley\",\n    \"valuables\",\n    \"value\",\n    \"vanilla\",\n    \"vanish\",\n    \"vanity\",\n    \"vanquish\",\n    \"vantage\",\n    \"vaporizer\",\n    \"variable\",\n    \"variably\",\n    \"varied\",\n    \"variety\",\n    \"various\",\n    \"varmint\",\n    \"varnish\",\n    \"varsity\",\n    \"varying\",\n    \"vascular\",\n    \"vaseline\",\n    \"vastly\",\n    \"vastness\",\n    \"veal\",\n    \"vegan\",\n    \"veggie\",\n    \"vehicular\",\n    \"velcro\",\n    \"velocity\",\n    \"velvet\",\n    \"vendetta\",\n    \"vending\",\n    \"vendor\",\n    \"veneering\",\n    \"vengeful\",\n    \"venomous\",\n    \"ventricle\",\n    \"venture\",\n    \"venue\",\n    \"venus\",\n    \"verbalize\",\n    \"verbally\",\n    \"verbose\",\n    \"verdict\",\n    \"verify\",\n    \"verse\",\n    \"version\",\n    \"versus\",\n    \"vertebrae\",\n    \"vertical\",\n    \"vertigo\",\n    \"very\",\n    \"vessel\",\n    \"vest\",\n    \"veteran\",\n    \"veto\",\n    \"vexingly\",\n    \"viability\",\n    \"viable\",\n    \"vibes\",\n    \"vice\",\n    \"vicinity\",\n    \"victory\",\n    \"video\",\n    \"viewable\",\n    \"viewer\",\n    \"viewing\",\n    \"viewless\",\n    \"viewpoint\",\n    \"vigorous\",\n    \"village\",\n    \"villain\",\n    \"vindicate\",\n    \"vineyard\",\n    \"vintage\",\n    \"violate\",\n    \"violation\",\n    \"violator\",\n    \"violet\",\n    \"violin\",\n    \"viper\",\n    \"viral\",\n    \"virtual\",\n    \"virtuous\",\n    \"virus\",\n    \"visa\",\n    \"viscosity\",\n    \"viscous\",\n    \"viselike\",\n    \"visible\",\n    \"visibly\",\n    \"vision\",\n    \"visiting\",\n    \"visitor\",\n    \"visor\",\n    \"vista\",\n    \"vitality\",\n    \"vitalize\",\n    \"vitally\",\n    \"vitamins\",\n    \"vivacious\",\n    \"vividly\",\n    \"vividness\",\n    \"vixen\",\n    \"vocalist\",\n    \"vocalize\",\n    \"vocally\",\n    \"vocation\",\n    \"voice\",\n    \"voicing\",\n    \"void\",\n    \"volatile\",\n    \"volley\",\n    \"voltage\",\n    \"volumes\",\n    \"voter\",\n    \"voting\",\n    \"voucher\",\n    \"vowed\",\n    \"vowel\",\n    \"voyage\",\n    \"wackiness\",\n    \"wad\",\n    \"wafer\",\n    \"waffle\",\n    \"waged\",\n    \"wager\",\n    \"wages\",\n    \"waggle\",\n    \"wagon\",\n    \"wake\",\n    \"waking\",\n    \"walk\",\n    \"walmart\",\n    \"walnut\",\n    \"walrus\",\n    \"waltz\",\n    \"wand\",\n    \"wannabe\",\n    \"wanted\",\n    \"wanting\",\n    \"wasabi\",\n    \"washable\",\n    \"washbasin\",\n    \"washboard\",\n    \"washbowl\",\n    \"washcloth\",\n    \"washday\",\n    \"washed\",\n    \"washer\",\n    \"washhouse\",\n    \"washing\",\n    \"washout\",\n    \"washroom\",\n    \"washstand\",\n    \"washtub\",\n    \"wasp\",\n    \"wasting\",\n    \"watch\",\n    \"water\",\n    \"waviness\",\n    \"waving\",\n    \"wavy\",\n    \"whacking\",\n    \"whacky\",\n    \"wham\",\n    \"wharf\",\n    \"wheat\",\n    \"whenever\",\n    \"whiff\",\n    \"whimsical\",\n    \"whinny\",\n    \"whiny\",\n    \"whisking\",\n    \"whoever\",\n    \"whole\",\n    \"whomever\",\n    \"whoopee\",\n    \"whooping\",\n    \"whoops\",\n    \"why\",\n    \"wick\",\n    \"widely\",\n    \"widen\",\n    \"widget\",\n    \"widow\",\n    \"width\",\n    \"wieldable\",\n    \"wielder\",\n    \"wife\",\n    \"wifi\",\n    \"wikipedia\",\n    \"wildcard\",\n    \"wildcat\",\n    \"wilder\",\n    \"wildfire\",\n    \"wildfowl\",\n    \"wildland\",\n    \"wildlife\",\n    \"wildly\",\n    \"wildness\",\n    \"willed\",\n    \"willfully\",\n    \"willing\",\n    \"willow\",\n    \"willpower\",\n    \"wilt\",\n    \"wimp\",\n    \"wince\",\n    \"wincing\",\n    \"wind\",\n    \"wing\",\n    \"winking\",\n    \"winner\",\n    \"winnings\",\n    \"winter\",\n    \"wipe\",\n    \"wired\",\n    \"wireless\",\n    \"wiring\",\n    \"wiry\",\n    \"wisdom\",\n    \"wise\",\n    \"wish\",\n    \"wisplike\",\n    \"wispy\",\n    \"wistful\",\n    \"wizard\",\n    \"wobble\",\n    \"wobbling\",\n    \"wobbly\",\n    \"wok\",\n    \"wolf\",\n    \"wolverine\",\n    \"womanhood\",\n    \"womankind\",\n    \"womanless\",\n    \"womanlike\",\n    \"womanly\",\n    \"womb\",\n    \"woof\",\n    \"wooing\",\n    \"wool\",\n    \"woozy\",\n    \"word\",\n    \"work\",\n    \"worried\",\n    \"worrier\",\n    \"worrisome\",\n    \"worry\",\n    \"worsening\",\n    \"worshiper\",\n    \"worst\",\n    \"wound\",\n    \"woven\",\n    \"wow\",\n    \"wrangle\",\n    \"wrath\",\n    \"wreath\",\n    \"wreckage\",\n    \"wrecker\",\n    \"wrecking\",\n    \"wrench\",\n    \"wriggle\",\n    \"wriggly\",\n    \"wrinkle\",\n    \"wrinkly\",\n    \"wrist\",\n    \"writing\",\n    \"written\",\n    \"wrongdoer\",\n    \"wronged\",\n    \"wrongful\",\n    \"wrongly\",\n    \"wrongness\",\n    \"wrought\",\n    \"xbox\",\n    \"xerox\",\n    \"yahoo\",\n    \"yam\",\n    \"yanking\",\n    \"yapping\",\n    \"yard\",\n    \"yarn\",\n    \"yeah\",\n    \"yearbook\",\n    \"yearling\",\n    \"yearly\",\n    \"yearning\",\n    \"yeast\",\n    \"yelling\",\n    \"yelp\",\n    \"yen\",\n    \"yesterday\",\n    \"yiddish\",\n    \"yield\",\n    \"yin\",\n    \"yippee\",\n    \"yo-yo\",\n    \"yodel\",\n    \"yoga\",\n    \"yogurt\",\n    \"yonder\",\n    \"yoyo\",\n    \"yummy\",\n    \"zap\",\n    \"zealous\",\n    \"zebra\",\n    \"zen\",\n    \"zeppelin\",\n    \"zero\",\n    \"zestfully\",\n    \"zesty\",\n    \"zigzagged\",\n    \"zipfile\",\n    \"zipping\",\n    \"zippy\",\n    \"zips\",\n    \"zit\",\n    \"zodiac\",\n    \"zombie\",\n    \"zone\",\n    \"zoning\",\n    \"zookeeper\",\n    \"zoologist\",\n    \"zoology\",\n    \"zoom\",\n];\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 269968 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/misc/wordlist.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/data/server-config.data.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/platform/models/data/server-config.data.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnvironmentServerConfigData: () => (/* binding */ EnvironmentServerConfigData),\n/* harmony export */   ServerConfigData: () => (/* binding */ ServerConfigData),\n/* harmony export */   ThirdPartyServerConfigData: () => (/* binding */ ThirdPartyServerConfigData)\n/* harmony export */ });\nclass ServerConfigData {\n    constructor(serverConfigResponse) {\n        this.featureStates = {};\n        this.version = serverConfigResponse === null || serverConfigResponse === void 0 ? void 0 : serverConfigResponse.version;\n        this.gitHash = serverConfigResponse === null || serverConfigResponse === void 0 ? void 0 : serverConfigResponse.gitHash;\n        this.server = (serverConfigResponse === null || serverConfigResponse === void 0 ? void 0 : serverConfigResponse.server)\n            ? new ThirdPartyServerConfigData(serverConfigResponse.server)\n            : null;\n        this.utcDate = new Date().toISOString();\n        this.environment = (serverConfigResponse === null || serverConfigResponse === void 0 ? void 0 : serverConfigResponse.environment)\n            ? new EnvironmentServerConfigData(serverConfigResponse.environment)\n            : null;\n        this.featureStates = serverConfigResponse === null || serverConfigResponse === void 0 ? void 0 : serverConfigResponse.featureStates;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new ServerConfigData({}), obj, {\n            server: (obj === null || obj === void 0 ? void 0 : obj.server) ? ThirdPartyServerConfigData.fromJSON(obj.server) : null,\n            environment: (obj === null || obj === void 0 ? void 0 : obj.environment) ? EnvironmentServerConfigData.fromJSON(obj.environment) : null,\n        });\n    }\n}\nclass ThirdPartyServerConfigData {\n    constructor(response) {\n        this.name = response.name;\n        this.url = response.url;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new ThirdPartyServerConfigData({}), obj);\n    }\n}\nclass EnvironmentServerConfigData {\n    constructor(response) {\n        this.cloudRegion = response.cloudRegion;\n        this.vault = response.vault;\n        this.api = response.api;\n        this.identity = response.identity;\n        this.notifications = response.notifications;\n        this.sso = response.sso;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new EnvironmentServerConfigData({}), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6064 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/data/server-config.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/account.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/account.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Account: () => (/* binding */ Account),\n/* harmony export */   AccountKeys: () => (/* binding */ AccountKeys),\n/* harmony export */   AccountProfile: () => (/* binding */ AccountProfile),\n/* harmony export */   EncryptionPair: () => (/* binding */ EncryptionPair)\n/* harmony export */ });\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n\n\nclass EncryptionPair {\n    toJSON() {\n        return {\n            encrypted: this.encrypted,\n            decrypted: this.decrypted instanceof ArrayBuffer\n                ? _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToByteString(this.decrypted)\n                : this.decrypted,\n        };\n    }\n    static fromJSON(obj, decryptedFromJson, encryptedFromJson) {\n        if (obj == null) {\n            return null;\n        }\n        const pair = new EncryptionPair();\n        if ((obj === null || obj === void 0 ? void 0 : obj.encrypted) != null) {\n            pair.encrypted = encryptedFromJson\n                ? encryptedFromJson(obj.encrypted)\n                : obj.encrypted;\n        }\n        if ((obj === null || obj === void 0 ? void 0 : obj.decrypted) != null) {\n            pair.decrypted = decryptedFromJson\n                ? decryptedFromJson(obj.decrypted)\n                : obj.decrypted;\n        }\n        return pair;\n    }\n}\nclass AccountKeys {\n    constructor() {\n        /** @deprecated July 2023, left for migration purposes*/\n        this.cryptoSymmetricKey = new EncryptionPair();\n    }\n    toJSON() {\n        // If you pass undefined into fromBufferToByteString, you will get an empty string back\n        // which will cause all sorts of headaches down the line when you try to getPublicKey\n        // and expect a Uint8Array and get an empty string instead.\n        return _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.merge(this, {\n            publicKey: this.publicKey ? _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToByteString(this.publicKey) : undefined,\n        });\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return Object.assign(new AccountKeys(), obj, {\n            cryptoSymmetricKey: EncryptionPair.fromJSON(obj === null || obj === void 0 ? void 0 : obj.cryptoSymmetricKey, _symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__.SymmetricCryptoKey.fromJSON),\n            publicKey: _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromByteStringToArray(obj === null || obj === void 0 ? void 0 : obj.publicKey),\n        });\n    }\n    static initRecordEncryptionPairsFromJSON(obj) {\n        return EncryptionPair.fromJSON(obj, (decObj) => {\n            if (obj == null) {\n                return null;\n            }\n            const record = {};\n            for (const id in decObj) {\n                record[id] = _symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__.SymmetricCryptoKey.fromJSON(decObj[id]);\n            }\n            return record;\n        });\n    }\n}\nclass AccountProfile {\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return Object.assign(new AccountProfile(), obj);\n    }\n}\nclass Account {\n    constructor(init) {\n        this.keys = new AccountKeys();\n        this.profile = new AccountProfile();\n        Object.assign(this, {\n            keys: Object.assign(Object.assign({}, new AccountKeys()), init === null || init === void 0 ? void 0 : init.keys),\n            profile: Object.assign(Object.assign({}, new AccountProfile()), init === null || init === void 0 ? void 0 : init.profile),\n        });\n    }\n    static fromJSON(json) {\n        if (json == null) {\n            return null;\n        }\n        return Object.assign(new Account({}), json, {\n            keys: AccountKeys.fromJSON(json === null || json === void 0 ? void 0 : json.keys),\n            profile: AccountProfile.fromJSON(json === null || json === void 0 ? void 0 : json.profile),\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9088 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/account.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/decrypt-parameters.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/decrypt-parameters.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DecryptParameters: () => (/* binding */ DecryptParameters)\n/* harmony export */ });\nclass DecryptParameters {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21vZGVscy9kb21haW4vZGVjcnlwdC1wYXJhbWV0ZXJzLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLGlCQUFpQjtDQU83QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9tb2RlbHMvZG9tYWluL2RlY3J5cHQtcGFyYW1ldGVycy50cz8xZDliIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBEZWNyeXB0UGFyYW1ldGVyczxUPiB7XG4gIGVuY0tleTogVDtcbiAgZGF0YTogVDtcbiAgaXY6IFQ7XG4gIG1hY0tleTogVDtcbiAgbWFjOiBUO1xuICBtYWNEYXRhOiBUO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/decrypt-parameters.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/domain-base.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/domain-base.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (/* binding */ Domain)\n/* harmony export */ });\n/* harmony import */ var _enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n// https://contributing.bitwarden.com/architecture/clients/data-model#domain\nclass Domain {\n    buildDomainModel(domain, dataObj, map, notEncList = []) {\n        for (const prop in map) {\n            // eslint-disable-next-line\n            if (!map.hasOwnProperty(prop)) {\n                continue;\n            }\n            const objProp = dataObj[map[prop] || prop];\n            if (notEncList.indexOf(prop) > -1) {\n                domain[prop] = objProp ? objProp : null;\n            }\n            else {\n                domain[prop] = objProp ? new _enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(objProp) : null;\n            }\n        }\n    }\n    buildDataModel(domain, dataObj, map, notEncStringList = []) {\n        for (const prop in map) {\n            // eslint-disable-next-line\n            if (!map.hasOwnProperty(prop)) {\n                continue;\n            }\n            const objProp = domain[map[prop] || prop];\n            if (notEncStringList.indexOf(prop) > -1) {\n                dataObj[prop] = objProp != null ? objProp : null;\n            }\n            else {\n                dataObj[prop] = objProp != null ? objProp.encryptedString : null;\n            }\n        }\n    }\n    decryptObj(viewModel_1, map_1, orgId_1) {\n        return __awaiter(this, arguments, void 0, function* (viewModel, map, orgId, key = null) {\n            const promises = [];\n            const self = this;\n            for (const prop in map) {\n                // eslint-disable-next-line\n                if (!map.hasOwnProperty(prop)) {\n                    continue;\n                }\n                (function (theProp) {\n                    const p = Promise.resolve()\n                        .then(() => {\n                        const mapProp = map[theProp] || theProp;\n                        if (self[mapProp]) {\n                            return self[mapProp].decrypt(orgId, key);\n                        }\n                        return null;\n                    })\n                        .then((val) => {\n                        viewModel[theProp] = val;\n                    });\n                    promises.push(p);\n                })(prop);\n            }\n            yield Promise.all(promises);\n            return viewModel;\n        });\n    }\n    /**\n     * Decrypts the requested properties of the domain object with the provided key and encrypt service.\n     *\n     * If a property is null, the result will be null.\n     * @see {@link EncString.decryptWithKey} for more details on decryption behavior.\n     *\n     * @param encryptedProperties The properties to decrypt. Type restricted to EncString properties of the domain object.\n     * @param key The key to use for decryption.\n     * @param encryptService The encryption service to use for decryption.\n     * @param _ The constructor of the domain object. Used for type inference if the domain object is not automatically inferred.\n     * @returns An object with the requested properties decrypted and the rest of the domain object untouched.\n     */\n    decryptObjWithKey(encryptedProperties_1, key_1, encryptService_1) {\n        return __awaiter(this, arguments, void 0, function* (encryptedProperties, key, encryptService, _ = this.constructor) {\n            const promises = [];\n            for (const prop of encryptedProperties) {\n                const value = this[prop];\n                promises.push(this.decryptProperty(prop, value, key, encryptService));\n            }\n            const decryptedObjects = yield Promise.all(promises);\n            const decryptedObject = decryptedObjects.reduce((acc, obj) => {\n                return Object.assign(Object.assign({}, acc), obj);\n            }, Object.assign({}, this));\n            return decryptedObject;\n        });\n    }\n    decryptProperty(propertyKey, value, key, encryptService) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decrypted = null;\n            if (value) {\n                decrypted = yield value.decryptWithKey(key, encryptService);\n            }\n            else {\n                decrypted = null;\n            }\n            return {\n                [propertyKey]: decrypted,\n            };\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10632 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/domain-base.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/enc-array-buffer.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/enc-array-buffer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EncArrayBuffer: () => (/* binding */ EncArrayBuffer)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/platform/enums/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst ENC_TYPE_LENGTH = 1;\nconst IV_LENGTH = 16;\nconst MAC_LENGTH = 32;\nconst MIN_DATA_LENGTH = 1;\nclass EncArrayBuffer {\n    constructor(buffer) {\n        this.buffer = buffer;\n        this.encryptionType = null;\n        this.dataBytes = null;\n        this.ivBytes = null;\n        this.macBytes = null;\n        const encBytes = buffer;\n        const encType = encBytes[0];\n        switch (encType) {\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc128_HmacSha256_B64:\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_HmacSha256_B64: {\n                const minimumLength = ENC_TYPE_LENGTH + IV_LENGTH + MAC_LENGTH + MIN_DATA_LENGTH;\n                if (encBytes.length < minimumLength) {\n                    this.throwDecryptionError();\n                }\n                this.ivBytes = encBytes.slice(ENC_TYPE_LENGTH, ENC_TYPE_LENGTH + IV_LENGTH);\n                this.macBytes = encBytes.slice(ENC_TYPE_LENGTH + IV_LENGTH, ENC_TYPE_LENGTH + IV_LENGTH + MAC_LENGTH);\n                this.dataBytes = encBytes.slice(ENC_TYPE_LENGTH + IV_LENGTH + MAC_LENGTH);\n                break;\n            }\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_B64: {\n                const minimumLength = ENC_TYPE_LENGTH + IV_LENGTH + MIN_DATA_LENGTH;\n                if (encBytes.length < minimumLength) {\n                    this.throwDecryptionError();\n                }\n                this.ivBytes = encBytes.slice(ENC_TYPE_LENGTH, ENC_TYPE_LENGTH + IV_LENGTH);\n                this.dataBytes = encBytes.slice(ENC_TYPE_LENGTH + IV_LENGTH);\n                break;\n            }\n            default:\n                this.throwDecryptionError();\n        }\n        this.encryptionType = encType;\n    }\n    throwDecryptionError() {\n        throw new Error(\"Error parsing encrypted ArrayBuffer: data is corrupted or has an invalid format.\");\n    }\n    static fromResponse(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const buffer = yield response.arrayBuffer();\n            if (buffer == null) {\n                throw new Error(\"Cannot create EncArrayBuffer from Response - Response is empty\");\n            }\n            return new EncArrayBuffer(new Uint8Array(buffer));\n        });\n    }\n    static fromB64(b64) {\n        const buffer = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromB64ToArray(b64);\n        return new EncArrayBuffer(buffer);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6076 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/enc-array-buffer.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/enc-string.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/enc-string.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DECRYPT_ERROR: () => (/* binding */ DECRYPT_ERROR),\n/* harmony export */   EncString: () => (/* binding */ EncString)\n/* harmony export */ });\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst DECRYPT_ERROR = \"[error: cannot decrypt]\";\nclass EncString {\n    constructor(encryptedStringOrType, data, iv, mac) {\n        if (data != null) {\n            this.initFromData(encryptedStringOrType, data, iv, mac);\n        }\n        else {\n            this.initFromEncryptedString(encryptedStringOrType);\n        }\n    }\n    get ivBytes() {\n        return this.iv == null ? null : _misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromB64ToArray(this.iv);\n    }\n    get macBytes() {\n        return this.mac == null ? null : _misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromB64ToArray(this.mac);\n    }\n    get dataBytes() {\n        return this.data == null ? null : _misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromB64ToArray(this.data);\n    }\n    toJSON() {\n        return this.encryptedString;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return new EncString(obj);\n    }\n    initFromData(encType, data, iv, mac) {\n        if (iv != null) {\n            this.encryptedString = (encType + \".\" + iv + \"|\" + data);\n        }\n        else {\n            this.encryptedString = (encType + \".\" + data);\n        }\n        // mac\n        if (mac != null) {\n            this.encryptedString = (this.encryptedString + \"|\" + mac);\n        }\n        this.encryptionType = encType;\n        this.data = data;\n        this.iv = iv;\n        this.mac = mac;\n    }\n    initFromEncryptedString(encryptedString) {\n        this.encryptedString = encryptedString;\n        if (!this.encryptedString) {\n            return;\n        }\n        const { encType, encPieces } = EncString.parseEncryptedString(this.encryptedString);\n        this.encryptionType = encType;\n        if (encPieces.length !== _enums__WEBPACK_IMPORTED_MODULE_0__.EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE[encType]) {\n            return;\n        }\n        switch (encType) {\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.AesCbc128_HmacSha256_B64:\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.AesCbc256_HmacSha256_B64:\n                this.iv = encPieces[0];\n                this.data = encPieces[1];\n                this.mac = encPieces[2];\n                break;\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.AesCbc256_B64:\n                this.iv = encPieces[0];\n                this.data = encPieces[1];\n                break;\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.Rsa2048_OaepSha256_B64:\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.Rsa2048_OaepSha1_B64:\n                this.data = encPieces[0];\n                break;\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.Rsa2048_OaepSha256_HmacSha256_B64:\n            case _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.Rsa2048_OaepSha1_HmacSha256_B64:\n                this.data = encPieces[0];\n                this.mac = encPieces[1];\n                break;\n            default:\n                return;\n        }\n    }\n    static parseEncryptedString(encryptedString) {\n        const headerPieces = encryptedString.split(\".\");\n        let encType;\n        let encPieces = null;\n        if (headerPieces.length === 2) {\n            try {\n                encType = parseInt(headerPieces[0], null);\n                encPieces = headerPieces[1].split(\"|\");\n            }\n            catch (e) {\n                return { encType: NaN, encPieces: [] };\n            }\n        }\n        else {\n            encPieces = encryptedString.split(\"|\");\n            encType =\n                encPieces.length === 3\n                    ? _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.AesCbc128_HmacSha256_B64\n                    : _enums__WEBPACK_IMPORTED_MODULE_0__.EncryptionType.AesCbc256_B64;\n        }\n        return {\n            encType,\n            encPieces,\n        };\n    }\n    static isSerializedEncString(s) {\n        if (s == null) {\n            return false;\n        }\n        const { encType, encPieces } = this.parseEncryptedString(s);\n        if (isNaN(encType) || encPieces.length === 0) {\n            return false;\n        }\n        return _enums__WEBPACK_IMPORTED_MODULE_0__.EXPECTED_NUM_PARTS_BY_ENCRYPTION_TYPE[encType] === encPieces.length;\n    }\n    decrypt(orgId_1) {\n        return __awaiter(this, arguments, void 0, function* (orgId, key = null) {\n            if (this.decryptedValue != null) {\n                return this.decryptedValue;\n            }\n            let keyContext = \"provided-key\";\n            try {\n                if (key == null) {\n                    key = yield this.getKeyForDecryption(orgId);\n                    keyContext = orgId == null ? `domain-orgkey-${orgId}` : \"domain-userkey|masterkey\";\n                    if (orgId != null) {\n                        keyContext = `domain-orgkey-${orgId}`;\n                    }\n                    else {\n                        const cryptoService = _misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.getContainerService().getKeyService();\n                        keyContext =\n                            (yield cryptoService.getUserKey()) == null\n                                ? \"domain-withlegacysupport-masterkey\"\n                                : \"domain-withlegacysupport-userkey\";\n                    }\n                }\n                if (key == null) {\n                    throw new Error(\"No key to decrypt EncString with orgId \" + orgId);\n                }\n                const encryptService = _misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.getContainerService().getEncryptService();\n                this.decryptedValue = yield encryptService.decryptToUtf8(this, key, keyContext);\n            }\n            catch (e) {\n                this.decryptedValue = DECRYPT_ERROR;\n            }\n            return this.decryptedValue;\n        });\n    }\n    decryptWithKey(key, encryptService) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                if (key == null) {\n                    throw new Error(\"No key to decrypt EncString\");\n                }\n                this.decryptedValue = yield encryptService.decryptToUtf8(this, key, \"domain-withkey\");\n            }\n            catch (e) {\n                this.decryptedValue = DECRYPT_ERROR;\n            }\n            return this.decryptedValue;\n        });\n    }\n    getKeyForDecryption(orgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const keyService = _misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.getContainerService().getKeyService();\n            return orgId != null\n                ? yield keyService.getOrgKey(orgId)\n                : yield keyService.getUserKeyWithLegacySupport();\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15676 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/enc-string.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/encrypted-object.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/encrypted-object.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EncryptedObject: () => (/* binding */ EncryptedObject)\n/* harmony export */ });\nclass EncryptedObject {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21vZGVscy9kb21haW4vZW5jcnlwdGVkLW9iamVjdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxlQUFlO0NBSzNCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21vZGVscy9kb21haW4vZW5jcnlwdGVkLW9iamVjdC50cz9lMjQ4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFN5bW1ldHJpY0NyeXB0b0tleSB9IGZyb20gXCIuLi8uLi8uLi9wbGF0Zm9ybS9tb2RlbHMvZG9tYWluL3N5bW1ldHJpYy1jcnlwdG8ta2V5XCI7XG5cbmV4cG9ydCBjbGFzcyBFbmNyeXB0ZWRPYmplY3Qge1xuICBpdjogVWludDhBcnJheTtcbiAgZGF0YTogVWludDhBcnJheTtcbiAgbWFjOiBVaW50OEFycmF5O1xuICBrZXk6IFN5bW1ldHJpY0NyeXB0b0tleTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/encrypted-object.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/global-state.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/global-state.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GlobalState: () => (/* binding */ GlobalState)\n/* harmony export */ });\nclass GlobalState {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21vZGVscy9kb21haW4vZ2xvYmFsLXN0YXRlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLFdBQVc7Q0FFdkIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vbW9kZWxzL2RvbWFpbi9nbG9iYWwtc3RhdGUudHM/MzQ5NSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgR2xvYmFsU3RhdGUge1xuICBlbmFibGVEdWNrRHVja0dvQnJvd3NlckludGVncmF0aW9uPzogYm9vbGVhbjtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/global-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/state.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/state.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   State: () => (/* binding */ State)\n/* harmony export */ });\nclass State {\n    constructor(globals) {\n        this.accounts = {};\n        this.globals = globals;\n    }\n    // TODO, make Jsonify<State,TGlobalState,TAccount> work. It currently doesn't because Globals doesn't implement Jsonify.\n    static fromJSON(obj, accountDeserializer) {\n        if (obj == null) {\n            return null;\n        }\n        return Object.assign(new State(null), obj, {\n            accounts: State.buildAccountMapFromJSON(obj === null || obj === void 0 ? void 0 : obj.accounts, accountDeserializer),\n        });\n    }\n    static buildAccountMapFromJSON(jsonAccounts, accountDeserializer) {\n        if (!jsonAccounts) {\n            return {};\n        }\n        const accounts = {};\n        for (const userId in jsonAccounts) {\n            accounts[userId] = accountDeserializer(jsonAccounts[userId]);\n        }\n        return accounts;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL21vZGVscy9kb21haW4vc3RhdGUudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUtPLE1BQU0sS0FBSztJQU9oQixZQUFZLE9BQXFCO1FBSGpDLGFBQVEsR0FBbUMsRUFBRSxDQUFDO1FBSTVDLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTy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vdW50TWFwRnJvbUpTT04ob2JqPy5hY2NvdW50cywgYWNjb3VudERlc2VyaWFsaXplciksXG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIHN0YXRpYyBidWlsZEFjY291bnRNYXBGcm9tSlNPTjxUQWNjb3VudCBleHRlbmRzIEFjY291bnQ+KFxuICAgIGpzb25BY2NvdW50czogeyBbdXNlcklkOiBzdHJpbmddOiBKc29uaWZ5PFRBY2NvdW50PiB9LFxuICAgIGFjY291bnREZXNlcmlhbGl6ZXI6IChqc29uOiBKc29uaWZ5PFRBY2NvdW50PikgPT4gVEFjY291bnQsXG4gICkge1xuICAgIGlmICghanNvbkFjY291bnRzKSB7XG4gICAgICByZXR1cm4ge307XG4gICAgfVxuICAgIGNvbnN0IGFjY291bnRzOiB7IFt1c2VySWQ6IHN0cmluZ106IFRBY2NvdW50IH0gPSB7fTtcbiAgICBmb3IgKGNvbnN0IHVzZXJJZCBpbiBqc29uQWNjb3VudHMpIHtcbiAgICAgIGFjY291bnRzW3VzZXJJZF0gPSBhY2NvdW50RGVzZXJpYWxpemVyKGpzb25BY2NvdW50c1t1c2VySWRdKTtcbiAgICB9XG4gICAgcmV0dXJuIGFjY291bnRzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SymmetricCryptoKey: () => (/* binding */ SymmetricCryptoKey)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n\n\nclass SymmetricCryptoKey {\n    constructor(key, encType) {\n        if (key == null) {\n            throw new Error(\"Must provide key\");\n        }\n        if (encType == null) {\n            if (key.byteLength === 32) {\n                encType = _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_B64;\n            }\n            else if (key.byteLength === 64) {\n                encType = _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_HmacSha256_B64;\n            }\n            else {\n                throw new Error(\"Unable to determine encType.\");\n            }\n        }\n        this.key = key;\n        this.encType = encType;\n        if (encType === _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_B64 && key.byteLength === 32) {\n            this.encKey = key;\n            this.macKey = null;\n        }\n        else if (encType === _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc128_HmacSha256_B64 && key.byteLength === 32) {\n            this.encKey = key.slice(0, 16);\n            this.macKey = key.slice(16, 32);\n        }\n        else if (encType === _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_HmacSha256_B64 && key.byteLength === 64) {\n            this.encKey = key.slice(0, 32);\n            this.macKey = key.slice(32, 64);\n        }\n        else {\n            throw new Error(\"Unsupported encType/key length.\");\n        }\n        if (this.key != null) {\n            this.keyB64 = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(this.key);\n        }\n        if (this.encKey != null) {\n            this.encKeyB64 = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(this.encKey);\n        }\n        if (this.macKey != null) {\n            this.macKeyB64 = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(this.macKey);\n        }\n    }\n    toJSON() {\n        // The whole object is constructed from the initial key, so just store the B64 key\n        return { keyB64: this.keyB64 };\n    }\n    static fromString(s) {\n        if (s == null) {\n            return null;\n        }\n        const arrayBuffer = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromB64ToArray(s);\n        return new SymmetricCryptoKey(arrayBuffer);\n    }\n    static fromJSON(obj) {\n        return SymmetricCryptoKey.fromString(obj === null || obj === void 0 ? void 0 : obj.keyB64);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6008 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/models/response/server-config.response.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/platform/models/response/server-config.response.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnvironmentServerConfigResponse: () => (/* binding */ EnvironmentServerConfigResponse),\n/* harmony export */   ServerConfigResponse: () => (/* binding */ ServerConfigResponse),\n/* harmony export */   ThirdPartyServerConfigResponse: () => (/* binding */ ThirdPartyServerConfigResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass ServerConfigResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.featureStates = {};\n        if (response == null) {\n            return;\n        }\n        this.version = this.getResponseProperty(\"Version\");\n        this.gitHash = this.getResponseProperty(\"GitHash\");\n        this.server = new ThirdPartyServerConfigResponse(this.getResponseProperty(\"Server\"));\n        this.environment = new EnvironmentServerConfigResponse(this.getResponseProperty(\"Environment\"));\n        this.featureStates = this.getResponseProperty(\"FeatureStates\");\n    }\n}\nclass EnvironmentServerConfigResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.cloudRegion = this.getResponseProperty(\"CloudRegion\");\n        this.vault = this.getResponseProperty(\"Vault\");\n        this.api = this.getResponseProperty(\"Api\");\n        this.identity = this.getResponseProperty(\"Identity\");\n        this.notifications = this.getResponseProperty(\"Notifications\");\n        this.sso = this.getResponseProperty(\"Sso\");\n    }\n}\nclass ThirdPartyServerConfigResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.name = this.getResponseProperty(\"Name\");\n        this.url = this.getResponseProperty(\"Url\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4796 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/models/response/server-config.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/scheduling/default-task-scheduler.service.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/platform/scheduling/default-task-scheduler.service.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultTaskSchedulerService: () => (/* binding */ DefaultTaskSchedulerService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _scheduling_task_scheduler_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduling/task-scheduler.service */ \"../../libs/common/src/platform/scheduling/task-scheduler.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass DefaultTaskSchedulerService extends _scheduling_task_scheduler_service__WEBPACK_IMPORTED_MODULE_1__.TaskSchedulerService {\n    constructor(logService) {\n        super();\n        this.logService = logService;\n        this.taskHandlers = new Map();\n    }\n    /**\n     * Sets a timeout and returns the timeout id.\n     *\n     * @param taskName - The name of the task. Unused in the base implementation.\n     * @param delayInMs - The delay in milliseconds.\n     */\n    setTimeout(taskName, delayInMs) {\n        this.validateRegisteredTask(taskName);\n        const timeoutHandle = globalThis.setTimeout(() => this.triggerTask(taskName), delayInMs);\n        return new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subscription(() => globalThis.clearTimeout(timeoutHandle));\n    }\n    /**\n     * Sets an interval and returns the interval id.\n     *\n     * @param taskName - The name of the task. Unused in the base implementation.\n     * @param intervalInMs - The interval in milliseconds.\n     * @param _initialDelayInMs - The initial delay in milliseconds. Unused in the base implementation.\n     */\n    setInterval(taskName, intervalInMs, _initialDelayInMs) {\n        this.validateRegisteredTask(taskName);\n        const intervalHandle = globalThis.setInterval(() => this.triggerTask(taskName), intervalInMs);\n        return new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subscription(() => globalThis.clearInterval(intervalHandle));\n    }\n    /**\n     * Registers a task handler.\n     *\n     * @param taskName - The name of the task.\n     * @param handler - The task handler.\n     */\n    registerTaskHandler(taskName, handler) {\n        const existingHandler = this.taskHandlers.get(taskName);\n        if (existingHandler) {\n            this.logService.warning(`Task handler for ${taskName} already exists. Overwriting.`);\n            this.unregisterTaskHandler(taskName);\n        }\n        this.taskHandlers.set(taskName, handler);\n    }\n    /**\n     * Unregisters a task handler.\n     *\n     * @param taskName - The name of the task.\n     */\n    unregisterTaskHandler(taskName) {\n        this.taskHandlers.delete(taskName);\n    }\n    /**\n     * Triggers a task.\n     *\n     * @param taskName - The name of the task.\n     * @param _periodInMinutes - The period in minutes. Unused in the base implementation.\n     */\n    triggerTask(taskName, _periodInMinutes) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const handler = this.taskHandlers.get(taskName);\n            if (handler) {\n                handler();\n            }\n        });\n    }\n    /**\n     * Validates that a task handler is registered.\n     *\n     * @param taskName - The name of the task.\n     */\n    validateRegisteredTask(taskName) {\n        if (!this.taskHandlers.has(taskName)) {\n            throw new Error(`Task handler for ${taskName} not registered. Unable to schedule task.`);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6588 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/scheduling/default-task-scheduler.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/scheduling/index.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/platform/scheduling/index.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultTaskSchedulerService: () => (/* reexport safe */ _default_task_scheduler_service__WEBPACK_IMPORTED_MODULE_1__.DefaultTaskSchedulerService),\n/* harmony export */   ScheduledTaskNames: () => (/* reexport safe */ _scheduled_task_name_enum__WEBPACK_IMPORTED_MODULE_2__.ScheduledTaskNames),\n/* harmony export */   TaskSchedulerService: () => (/* reexport safe */ _task_scheduler_service__WEBPACK_IMPORTED_MODULE_0__.TaskSchedulerService)\n/* harmony export */ });\n/* harmony import */ var _task_scheduler_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./task-scheduler.service */ \"../../libs/common/src/platform/scheduling/task-scheduler.service.ts\");\n/* harmony import */ var _default_task_scheduler_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-task-scheduler.service */ \"../../libs/common/src/platform/scheduling/default-task-scheduler.service.ts\");\n/* harmony import */ var _scheduled_task_name_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./scheduled-task-name.enum */ \"../../libs/common/src/platform/scheduling/scheduled-task-name.enum.ts\");\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NjaGVkdWxpbmcvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQWdFO0FBQ2U7QUFDSSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9zY2hlZHVsaW5nL2luZGV4LnRzP2NmNDIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgVGFza1NjaGVkdWxlclNlcnZpY2UgfSBmcm9tIFwiLi90YXNrLXNjaGVkdWxlci5zZXJ2aWNlXCI7XG5leHBvcnQgeyBEZWZhdWx0VGFza1NjaGVkdWxlclNlcnZpY2UgfSBmcm9tIFwiLi9kZWZhdWx0LXRhc2stc2NoZWR1bGVyLnNlcnZpY2VcIjtcbmV4cG9ydCB7IFNjaGVkdWxlZFRhc2tOYW1lcywgU2NoZWR1bGVkVGFza05hbWUgfSBmcm9tIFwiLi9zY2hlZHVsZWQtdGFzay1uYW1lLmVudW1cIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/scheduling/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/scheduling/scheduled-task-name.enum.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/platform/scheduling/scheduled-task-name.enum.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ScheduledTaskNames: () => (/* binding */ ScheduledTaskNames)\n/* harmony export */ });\nconst ScheduledTaskNames = {\n    generatePasswordClearClipboardTimeout: \"generatePasswordClearClipboardTimeout\",\n    systemClearClipboardTimeout: \"systemClearClipboardTimeout\",\n    loginStrategySessionTimeout: \"loginStrategySessionTimeout\",\n    notificationsReconnectTimeout: \"notificationsReconnectTimeout\",\n    fido2ClientAbortTimeout: \"fido2ClientAbortTimeout\",\n    scheduleNextSyncInterval: \"scheduleNextSyncInterval\",\n    eventUploadsInterval: \"eventUploadsInterval\",\n    vaultTimeoutCheckInterval: \"vaultTimeoutCheckInterval\",\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NjaGVkdWxpbmcvc2NoZWR1bGVkLXRhc2stbmFtZS5lbnVtLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLGtCQUFrQixHQUFHO0lBQ2hDLHFDQUFxQyxFQUFFLHVDQUF1QztJQUM5RSwyQkFBMkIsRUFBRSw2QkFBNkI7SUFDMUQsMkJBQTJCLEVBQUUsNkJBQTZCO0lBQzFELDZCQUE2QixFQUFFLCtCQUErQjtJQUM5RCx1QkFBdUIsRUFBRSx5QkFBeUI7SUFDbEQsd0JBQXdCLEVBQUUsMEJBQTBCO0lBQ3BELG9CQUFvQixFQUFFLHNCQUFzQjtJQUM1Qyx5QkFBeUIsRUFBRSwyQkFBMkI7Q0FDOUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpL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s/common/src/platform/scheduling/scheduled-task-name.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/scheduling/task-scheduler.service.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/platform/scheduling/task-scheduler.service.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TaskSchedulerService: () => (/* binding */ TaskSchedulerService)\n/* harmony export */ });\nclass TaskSchedulerService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NjaGVkdWxpbmcvdGFzay1zY2hlZHVsZXIuc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBSU8sTUFBZSxvQkFBb0I7Q0FXekMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vc2NoZWR1bGluZy90YXNrLXNjaGVkdWxlci5zZXJ2aWNlLnRzP2MwNDUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3Vic2NyaXB0aW9uIH0gZnJvbSBcInJ4anNcIjtcblxuaW1wb3J0IHsgU2NoZWR1bGVkVGFza05hbWUgfSBmcm9tIFwiLi9zY2hlZHVsZWQtdGFzay1uYW1lLmVudW1cIjtcblxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIFRhc2tTY2hlZHVsZXJTZXJ2aWNlIHtcbiAgcHJvdGVjdGVkIHRhc2tIYW5kbGVyczogTWFwPHN0cmluZywgKCkgPT4gdm9pZD47XG4gIGFic3RyYWN0IHNldFRpbWVvdXQodGFza05hbWU6IFNjaGVkdWxlZFRhc2tOYW1lLCBkZWxheUluTXM6IG51bWJlcik6IFN1YnNjcmlwdGlvbjtcbiAgYWJzdHJhY3Qgc2V0SW50ZXJ2YWwoXG4gICAgdGFza05hbWU6IFNjaGVkdWxlZFRhc2tOYW1lLFxuICAgIGludGVydmFsSW5NczogbnVtYmVyLFxuICAgIGluaXRpYWxEZWxheUluTXM/OiBudW1iZXIsXG4gICk6IFN1YnNjcmlwdGlvbjtcbiAgYWJzdHJhY3QgcmVnaXN0ZXJUYXNrSGFuZGxlcih0YXNrTmFtZTogU2NoZWR1bGVkVGFza05hbWUsIGhhbmRsZXI6ICgpID0+IHZvaWQpOiB2b2lkO1xuICBhYnN0cmFjdCB1bnJlZ2lzdGVyVGFza0hhbmRsZXIodGFza05hbWU6IFNjaGVkdWxlZFRhc2tOYW1lKTogdm9pZDtcbiAgcHJvdGVjdGVkIGFic3RyYWN0IHRyaWdnZXJUYXNrKHRhc2tOYW1lOiBTY2hlZHVsZWRUYXNrTmFtZSwgcGVyaW9kSW5NaW51dGVzPzogbnVtYmVyKTogdm9pZDtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/scheduling/task-scheduler.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/app-id.service.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/platform/services/app-id.service.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ANONYMOUS_APP_ID_KEY: () => (/* binding */ ANONYMOUS_APP_ID_KEY),\n/* harmony export */   APP_ID_KEY: () => (/* binding */ APP_ID_KEY),\n/* harmony export */   AppIdService: () => (/* binding */ AppIdService)\n/* harmony export */ });\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst APP_ID_KEY = \"global_applicationId_appId\";\nconst ANONYMOUS_APP_ID_KEY = \"global_applicationId_appId\";\nclass AppIdService {\n    constructor(storageService, logService) {\n        this.storageService = storageService;\n        this.logService = logService;\n    }\n    getAppId() {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.logService.info(\"Retrieving application id\");\n            return yield this.getEnsuredValue(APP_ID_KEY);\n        });\n    }\n    getAnonymousAppId() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.getEnsuredValue(ANONYMOUS_APP_ID_KEY);\n        });\n    }\n    getEnsuredValue(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let value = yield this.storageService.get(key);\n            if (value == null) {\n                value = _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.newGuid();\n                yield this.storageService.save(key, value);\n            }\n            return value;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2FwcC1pZC5zZXJ2aWNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFHc0M7QUFFL0IsTUFBTSxVQUFVLEdBQUcsNEJBQTRCLENBQUM7QUFDaEQsTUFBTSxvQkFBb0IsR0FBRyw0QkFBNEIsQ0FBQztBQUUxRCxNQUFNLFlBQVk7SUFDdkIsWUFDbUIsY0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4gIHByaXZhdGUgYXN5bmMgZ2V0RW5zdXJlZFZhbHVlKGtleTogc3RyaW5nKSB7XG4gICAgbGV0IHZhbHVlID0gYXdhaXQgdGhpcy5zdG9yYWdlU2VydmljZS5nZXQ8c3RyaW5nIHwgbnVsbD4oa2V5KTtcblxuICAgIGlmICh2YWx1ZSA9PSBudWxsKSB7XG4gICAgICB2YWx1ZSA9IFV0aWxzLm5ld0d1aWQoKTtcbiAgICAgIGF3YWl0IHRoaXMuc3RvcmFnZVNlcnZpY2Uuc2F2ZShrZXksIHZhbHVlKTtcbiAgICB9XG5cbiAgICByZXR1cm4gdmFsdWU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/app-id.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/config/config-api.service.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/platform/services/config/config-api.service.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConfigApiService: () => (/* binding */ ConfigApiService)\n/* harmony export */ });\n/* harmony import */ var _models_response_server_config_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/response/server-config.response */ \"../../libs/common/src/platform/models/response/server-config.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass ConfigApiService {\n    constructor(apiService, tokenService) {\n        this.apiService = apiService;\n        this.tokenService = tokenService;\n    }\n    get(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Authentication adds extra context to config responses, if the user has an access token, we want to use it\n            // We don't particularly care about ensuring the token is valid and not expired, just that it exists\n            const authed = userId == null ? false : (yield this.tokenService.getAccessToken(userId)) != null;\n            const r = yield this.apiService.send(\"GET\", \"/config\", null, authed, true);\n            return new _models_response_server_config_response__WEBPACK_IMPORTED_MODULE_0__.ServerConfigResponse(r);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2NvbmZpZy9jb25maWctYXBpLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFJb0Y7QUFFN0UsTUFBTSxnQkFBZ0I7SUFDM0IsWUFDVSxVQUFzQixFQUN0QixZQUEwQjtRQUQxQixlQUFVLEdBQVYsVUFBVSxDQUFZO1FBQ3RCLGlCQUFZLEdBQVosWUFBWSxDQUFjO0lBQ2pDLENBQUM7SUFFRSxHQUFHLENBQUMsTUFBMEI7O1lBQ2xDLDRHQUE0RztZQUM1RyxvR0FBb0c7WUFDcEcsTUFBTSxNQUFNLEdBQ1YsTUFBTSxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLE1BQU0sSUFBSSxDQUFDLFlBQVksQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUMsSUFBSSxJQUFJLENBQUM7WUFFcEYsTUFBTSxDQUFDLEdBQUcsTUFBTSxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxNQUFNLEVBQUUsSUFBSSxDQ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fCB1bmRlZmluZWQpOiBQcm9taXNlPFNlcnZlckNvbmZpZ1Jlc3BvbnNlPiB7XG4gICAgLy8gQXV0aGVudGljYXRpb24gYWRkcyBleHRyYSBjb250ZXh0IHRvIGNvbmZpZyByZXNwb25zZXMsIGlmIHRoZSB1c2VyIGhhcyBhbiBhY2Nlc3MgdG9rZW4sIHdlIHdhbnQgdG8gdXNlIGl0XG4gICAgLy8gV2UgZG9uJ3QgcGFydGljdWxhcmx5IGNhcmUgYWJvdXQgZW5zdXJpbmcgdGhlIHRva2VuIGlzIHZhbGlkIGFuZCBub3QgZXhwaXJlZCwganVzdCB0aGF0IGl0IGV4aXN0c1xuICAgIGNvbnN0IGF1dGhlZDogYm9vbGVhbiA9XG4gICAgICB1c2VySWQgPT0gbnVsbCA/IGZhbHNlIDogKGF3YWl0IHRoaXMudG9rZW5TZXJ2aWNlLmdldEFjY2Vzc1Rva2VuKHVzZXJJZCkpICE9IG51bGw7XG5cbiAgICBjb25zdCByID0gYXdhaXQgdGhpcy5hcGlTZXJ2aWNlLnNlbmQoXCJHRVRcIiwgXCIvY29uZmlnXCIsIG51bGwsIGF1dGhlZCwgdHJ1ZSk7XG4gICAgcmV0dXJuIG5ldyBTZXJ2ZXJDb25maWdSZXNwb25zZShyKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/config/config-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/config/default-config.service.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/platform/services/config/default-config.service.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultConfigService: () => (/* binding */ DefaultConfigService),\n/* harmony export */   GLOBAL_SERVER_CONFIGURATIONS: () => (/* binding */ GLOBAL_SERVER_CONFIGURATIONS),\n/* harmony export */   RETRIEVAL_INTERVAL: () => (/* binding */ RETRIEVAL_INTERVAL),\n/* harmony export */   SLOW_EMISSION_GUARD: () => (/* binding */ SLOW_EMISSION_GUARD),\n/* harmony export */   USER_SERVER_CONFIG: () => (/* binding */ USER_SERVER_CONFIG)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! semver */ \"semver\");\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(semver__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../enums/feature-flag.enum */ \"../../libs/common/src/enums/feature-flag.enum.ts\");\n/* harmony import */ var _abstractions_config_server_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../abstractions/config/server-config */ \"../../libs/common/src/platform/abstractions/config/server-config.ts\");\n/* harmony import */ var _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../abstractions/environment.service */ \"../../libs/common/src/platform/abstractions/environment.service.ts\");\n/* harmony import */ var _misc_flags__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../misc/flags */ \"../../libs/common/src/platform/misc/flags.ts\");\n/* harmony import */ var _models_data_server_config_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/data/server-config.data */ \"../../libs/common/src/platform/models/data/server-config.data.ts\");\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\nconst RETRIEVAL_INTERVAL = (0,_misc_flags__WEBPACK_IMPORTED_MODULE_6__.devFlagEnabled)(\"configRetrievalIntervalMs\")\n    ? (0,_misc_flags__WEBPACK_IMPORTED_MODULE_6__.devFlagValue)(\"configRetrievalIntervalMs\")\n    : 3600000; // 1 hour\nconst SLOW_EMISSION_GUARD = 800;\nconst USER_SERVER_CONFIG = new _state__WEBPACK_IMPORTED_MODULE_8__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_8__.CONFIG_DISK, \"serverConfig\", {\n    deserializer: (data) => (data == null ? null : _abstractions_config_server_config__WEBPACK_IMPORTED_MODULE_4__.ServerConfig.fromJSON(data)),\n    clearOn: [\"logout\"],\n});\nconst GLOBAL_SERVER_CONFIGURATIONS = _state__WEBPACK_IMPORTED_MODULE_8__.KeyDefinition.record(_state__WEBPACK_IMPORTED_MODULE_8__.CONFIG_DISK, \"byServer\", {\n    deserializer: (data) => (data == null ? null : _abstractions_config_server_config__WEBPACK_IMPORTED_MODULE_4__.ServerConfig.fromJSON(data)),\n});\n// FIXME: currently we are limited to api requests for active users. Update to accept a UserId and APIUrl once ApiService supports it.\nclass DefaultConfigService {\n    constructor(configApiService, environmentService, logService, stateProvider, authService) {\n        this.configApiService = configApiService;\n        this.environmentService = environmentService;\n        this.logService = logService;\n        this.stateProvider = stateProvider;\n        this.authService = authService;\n        this.failedFetchFallbackSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();\n        const userId$ = this.stateProvider.activeUserId$;\n        const authStatus$ = userId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => (userId == null ? (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null) : this.authService.authStatusFor$(userId))));\n        this.serverConfig$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            userId$,\n            this.environmentService.environment$,\n            authStatus$,\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(([userId, environment, authStatus]) => {\n            if (userId == null || authStatus !== _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.Unlocked) {\n                return this.globalConfigFor$(environment.getApiUrl()).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((config) => [config, null, environment]));\n            }\n            return this.userConfigFor$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((config) => [config, userId, environment]));\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.tap)((rec) => __awaiter(this, void 0, void 0, function* () {\n            const [existingConfig, userId, environment] = rec;\n            // Grab new config if older retrieval interval\n            if (!existingConfig || this.olderThanRetrievalInterval(existingConfig.utcDate)) {\n                yield this.renewConfig(existingConfig, userId, environment);\n            }\n        })), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(([existingConfig]) => {\n            // If we needed to fetch, stop this emit, we'll get a new one after update\n            // This is split up with the above tap because we need to return an observable from a failed promise,\n            // which isn't very doable since promises are converted to observables in switchMap\n            if (!existingConfig || this.olderThanRetrievalInterval(existingConfig.utcDate)) {\n                return rxjs__WEBPACK_IMPORTED_MODULE_0__.NEVER;\n            }\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(existingConfig);\n        }), \n        // If fetch fails, we'll emit on this subject to fallback to the existing config\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.mergeWith)(this.failedFetchFallbackSubject), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n        this.cloudRegion$ = this.serverConfig$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((config) => { var _a, _b; return (_b = (_a = config === null || config === void 0 ? void 0 : config.environment) === null || _a === void 0 ? void 0 : _a.cloudRegion) !== null && _b !== void 0 ? _b : _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_5__.Region.US; }));\n    }\n    getFeatureFlag$(key) {\n        return this.serverConfig$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((serverConfig) => this.getFeatureFlagValue(serverConfig, key)));\n    }\n    getFeatureFlagValue(serverConfig, flag) {\n        if ((serverConfig === null || serverConfig === void 0 ? void 0 : serverConfig.featureStates) == null || serverConfig.featureStates[flag] == null) {\n            return _enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_3__.DefaultFeatureFlagValue[flag];\n        }\n        return serverConfig.featureStates[flag];\n    }\n    userCachedFeatureFlag$(key, userId) {\n        return this.stateProvider\n            .getUser(userId, USER_SERVER_CONFIG)\n            .state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((config) => this.getFeatureFlagValue(config, key)));\n    }\n    getFeatureFlag(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.getFeatureFlag$(key));\n        });\n    }\n    checkServerMeetsVersionRequirement$(minimumRequiredServerVersion) {\n        return this.serverConfig$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((serverConfig) => {\n            if (serverConfig == null) {\n                return false;\n            }\n            const serverVersion = new semver__WEBPACK_IMPORTED_MODULE_1__.SemVer(serverConfig.version);\n            return serverVersion.compare(minimumRequiredServerVersion) >= 0;\n        }));\n    }\n    ensureConfigFetched() {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Triggering a retrieval for the given user ensures that the config is less than RETRIEVAL_INTERVAL old\n            yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.serverConfig$);\n        });\n    }\n    olderThanRetrievalInterval(date) {\n        return new Date().getTime() - date.getTime() > RETRIEVAL_INTERVAL;\n    }\n    // Updates the on-disk configuration with a newly retrieved configuration\n    renewConfig(existingConfig, userId, environment) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b, _c;\n            try {\n                // Feature flags often have a big impact on user experience, lets ensure we return some value\n                // somewhat quickly even though it may not be accurate, we won't cancel the HTTP request\n                // though so that hopefully it can have finished and hydrated a more accurate value.\n                const handle = setTimeout(() => {\n                    this.logService.info(\"Self-host environment did not respond in time, emitting previous config.\");\n                    this.failedFetchFallbackSubject.next(existingConfig);\n                }, SLOW_EMISSION_GUARD);\n                const response = yield this.configApiService.get(userId);\n                clearTimeout(handle);\n                const newConfig = new _abstractions_config_server_config__WEBPACK_IMPORTED_MODULE_4__.ServerConfig(new _models_data_server_config_data__WEBPACK_IMPORTED_MODULE_7__.ServerConfigData(response));\n                // Update the environment region\n                if (((_a = newConfig === null || newConfig === void 0 ? void 0 : newConfig.environment) === null || _a === void 0 ? void 0 : _a.cloudRegion) != null &&\n                    ((_b = existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.environment) === null || _b === void 0 ? void 0 : _b.cloudRegion) != newConfig.environment.cloudRegion) {\n                    // Null userId sets global, otherwise sets to the given user\n                    yield this.environmentService.setCloudRegion(userId, (_c = newConfig === null || newConfig === void 0 ? void 0 : newConfig.environment) === null || _c === void 0 ? void 0 : _c.cloudRegion);\n                }\n                if (userId == null) {\n                    // update global state with new pulled config\n                    yield this.stateProvider.getGlobal(GLOBAL_SERVER_CONFIGURATIONS).update((configs) => {\n                        return Object.assign(Object.assign({}, configs), { [environment.getApiUrl()]: newConfig });\n                    });\n                }\n                else {\n                    // update state with new pulled config\n                    yield this.stateProvider.setUserState(USER_SERVER_CONFIG, newConfig, userId);\n                }\n            }\n            catch (e) {\n                // mutate error to be handled by catchError\n                this.logService.error(`Unable to fetch ServerConfig from ${environment.getApiUrl()}`, e);\n                // Emit the existing config\n                this.failedFetchFallbackSubject.next(existingConfig);\n            }\n        });\n    }\n    globalConfigFor$(apiUrl) {\n        return this.stateProvider\n            .getGlobal(GLOBAL_SERVER_CONFIGURATIONS)\n            .state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((configs) => configs === null || configs === void 0 ? void 0 : configs[apiUrl]));\n    }\n    userConfigFor$(userId) {\n        return this.stateProvider.getUser(userId, USER_SERVER_CONFIG).state$;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 19188 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/config/default-config.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/console-log.service.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/platform/services/console-log.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConsoleLogService: () => (/* binding */ ConsoleLogService)\n/* harmony export */ });\n/* harmony import */ var _enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums/log-level-type.enum */ \"../../libs/common/src/platform/enums/log-level-type.enum.ts\");\n\nclass ConsoleLogService {\n    constructor(isDev, filter = null) {\n        this.isDev = isDev;\n        this.filter = filter;\n        this.timersMap = new Map();\n    }\n    debug(message, ...optionalParams) {\n        if (!this.isDev) {\n            return;\n        }\n        this.write(_enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Debug, message, ...optionalParams);\n    }\n    info(message, ...optionalParams) {\n        this.write(_enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Info, message, ...optionalParams);\n    }\n    warning(message, ...optionalParams) {\n        this.write(_enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Warning, message, ...optionalParams);\n    }\n    error(message, ...optionalParams) {\n        this.write(_enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Error, message, ...optionalParams);\n    }\n    write(level, message, ...optionalParams) {\n        if (this.filter != null && this.filter(level)) {\n            return;\n        }\n        switch (level) {\n            case _enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Debug:\n                // eslint-disable-next-line\n                console.log(message, ...optionalParams);\n                break;\n            case _enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Info:\n                // eslint-disable-next-line\n                console.log(message, ...optionalParams);\n                break;\n            case _enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Warning:\n                // eslint-disable-next-line\n                console.warn(message, ...optionalParams);\n                break;\n            case _enums_log_level_type_enum__WEBPACK_IMPORTED_MODULE_0__.LogLevelType.Error:\n                // eslint-disable-next-line\n                console.error(message, ...optionalParams);\n                break;\n            default:\n                break;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4456 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/console-log.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/container.service.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/platform/services/container.service.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ContainerService: () => (/* binding */ ContainerService)\n/* harmony export */ });\nclass ContainerService {\n    constructor(keyService, encryptService) {\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n    }\n    attachToGlobal(global) {\n        if (!global.bitwardenContainerService) {\n            global.bitwardenContainerService = this;\n        }\n    }\n    /**\n     * @throws Will throw if KeyService was not instantiated and provided to the ContainerService constructor\n     */\n    getKeyService() {\n        if (this.keyService == null) {\n            throw new Error(\"ContainerService.keyService not initialized.\");\n        }\n        return this.keyService;\n    }\n    /**\n     * @throws Will throw if EncryptService was not instantiated and provided to the ContainerService constructor\n     */\n    getEncryptService() {\n        if (this.encryptService == null) {\n            throw new Error(\"ContainerService.encryptService not initialized.\");\n        }\n        return this.encryptService;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2NvbnRhaW5lci5zZXJ2aWNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFHTyxNQUFNLGdCQUFnQjtJQUMzQixZQUNVLFVBQXNCLEVBQ3RCLGNBQThCO1FBRDlCLGVBQVUsR0FBVixVQUFVLENBQVk7UUFDdEIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO0lBQ3JDLENBQUM7SUFFSixjQUFjLENBQUMsTUFBVztRQUN4QixJQUFJLENBQUMsTUFBTSxDQUFDLHlCQUF5QixFQUFFLENBQUM7WUFDdEMsTUFBTSxDQUFDLHlCQUF5QixHQUFHLElBQUksQ0FBQztRQUMxQyxDQUFDO0lBQ0gsQ0FBQztJQUVEOztPQUVHO0lBQ0gsYUFBYTtRQUNYLElBQUksSUFBSSxDQUFDLFVBQVUsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUM1QixNQUFNLElBQUksS0FBSyxDQUFDLDhDQUE4QyxDQUFDLENBQUM7UUFDbEUsQ0FBQztRQUNELE9BQU8sSUFBSSxDQUFDLFVBQVUsQ0FBQztJQUN6QixDQUFDO0lBRUQ7O09BRUc7SUFDSCxpQkFBaUI7UUFDZixJQUFJLElBQU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ljZSBjb25zdHJ1Y3RvclxuICAgKi9cbiAgZ2V0S2V5U2VydmljZSgpOiBLZXlTZXJ2aWNlIHtcbiAgICBpZiAodGhpcy5rZXlTZXJ2aWNlID09IG51bGwpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcIkNvbnRhaW5lclNlcnZpY2Uua2V5U2VydmljZSBub3QgaW5pdGlhbGl6ZWQuXCIpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5rZXlTZXJ2aWNlO1xuICB9XG5cbiAgLyoqXG4gICAqIEB0aHJvd3MgV2lsbCB0aHJvdyBpZiBFbmNyeXB0U2VydmljZSB3YXMgbm90IGluc3RhbnRpYXRlZCBhbmQgcHJvdmlkZWQgdG8gdGhlIENvbnRhaW5lclNlcnZpY2UgY29uc3RydWN0b3JcbiAgICovXG4gIGdldEVuY3J5cHRTZXJ2aWNlKCk6IEVuY3J5cHRTZXJ2aWNlIHtcbiAgICBpZiAodGhpcy5lbmNyeXB0U2VydmljZSA9PSBudWxsKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoXCJDb250YWluZXJTZXJ2aWNlLmVuY3J5cHRTZXJ2aWNlIG5vdCBpbml0aWFsaXplZC5cIik7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLmVuY3J5cHRTZXJ2aWNlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/container.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EncryptServiceImplementation: () => (/* binding */ EncryptServiceImplementation)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/domain/enc-array-buffer */ \"../../libs/common/src/platform/models/domain/enc-array-buffer.ts\");\n/* harmony import */ var _models_domain_enc_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _models_domain_encrypted_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/domain/encrypted-object */ \"../../libs/common/src/platform/models/domain/encrypted-object.ts\");\n/* harmony import */ var _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass EncryptServiceImplementation {\n    constructor(cryptoFunctionService, logService, logMacFailures) {\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.logService = logService;\n        this.logMacFailures = logMacFailures;\n    }\n    encrypt(plainValue, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"No encryption key provided.\");\n            }\n            if (plainValue == null) {\n                return Promise.resolve(null);\n            }\n            let plainBuf;\n            if (typeof plainValue === \"string\") {\n                plainBuf = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromUtf8ToArray(plainValue);\n            }\n            else {\n                plainBuf = plainValue;\n            }\n            const encObj = yield this.aesEncrypt(plainBuf, key);\n            const iv = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(encObj.iv);\n            const data = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(encObj.data);\n            const mac = encObj.mac != null ? _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(encObj.mac) : null;\n            return new _models_domain_enc_string__WEBPACK_IMPORTED_MODULE_3__.EncString(encObj.key.encType, data, iv, mac);\n        });\n    }\n    encryptToBytes(plainValue, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"No encryption key provided.\");\n            }\n            const encValue = yield this.aesEncrypt(plainValue, key);\n            let macLen = 0;\n            if (encValue.mac != null) {\n                macLen = encValue.mac.byteLength;\n            }\n            const encBytes = new Uint8Array(1 + encValue.iv.byteLength + macLen + encValue.data.byteLength);\n            encBytes.set([encValue.key.encType]);\n            encBytes.set(new Uint8Array(encValue.iv), 1);\n            if (encValue.mac != null) {\n                encBytes.set(new Uint8Array(encValue.mac), 1 + encValue.iv.byteLength);\n            }\n            encBytes.set(new Uint8Array(encValue.data), 1 + encValue.iv.byteLength + macLen);\n            return new _models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_2__.EncArrayBuffer(encBytes);\n        });\n    }\n    decryptToUtf8(encString_1, key_1) {\n        return __awaiter(this, arguments, void 0, function* (encString, key, decryptContext = \"no context\") {\n            if (key == null) {\n                throw new Error(\"No key provided for decryption.\");\n            }\n            key = this.resolveLegacyKey(key, encString);\n            // DO NOT REMOVE OR MOVE. This prevents downgrade to mac-less CBC, which would compromise integrity and confidentiality.\n            if (key.macKey != null && (encString === null || encString === void 0 ? void 0 : encString.mac) == null) {\n                this.logService.error(\"[Encrypt service] Key has mac key but payload is missing mac bytes. Key type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                    \"Payload type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encString.encryptionType), \"Decrypt context: \" + decryptContext);\n                return null;\n            }\n            if (key.encType !== encString.encryptionType) {\n                this.logService.error(\"[Encrypt service] Key encryption type does not match payload encryption type. Key type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                    \"Payload type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encString.encryptionType), \"Decrypt context: \" + decryptContext);\n                return null;\n            }\n            const fastParams = this.cryptoFunctionService.aesDecryptFastParameters(encString.data, encString.iv, encString.mac, key);\n            if (fastParams.macKey != null && fastParams.mac != null) {\n                const computedMac = yield this.cryptoFunctionService.hmacFast(fastParams.macData, fastParams.macKey, \"sha256\");\n                const macsEqual = yield this.cryptoFunctionService.compareFast(fastParams.mac, computedMac);\n                if (!macsEqual) {\n                    this.logMacFailed(\"[Encrypt service] MAC comparison failed. Key or payload has changed. Key type \" +\n                        (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                        \"Payload type \" +\n                        (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encString.encryptionType) +\n                        \" Decrypt context: \" +\n                        decryptContext);\n                    return null;\n                }\n            }\n            return yield this.cryptoFunctionService.aesDecryptFast(fastParams, \"cbc\");\n        });\n    }\n    decryptToBytes(encThing, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"No encryption key provided.\");\n            }\n            if (encThing == null) {\n                throw new Error(\"Nothing provided for decryption.\");\n            }\n            key = this.resolveLegacyKey(key, encThing);\n            // DO NOT REMOVE OR MOVE. This prevents downgrade to mac-less CBC, which would compromise integrity and confidentiality.\n            if (key.macKey != null && encThing.macBytes == null) {\n                this.logService.error(\"[Encrypt service] Key has mac key but payload is missing mac bytes. Key type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                    \" Payload type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encThing.encryptionType));\n                return null;\n            }\n            if (key.encType !== encThing.encryptionType) {\n                this.logService.error(\"[Encrypt service] Key encryption type does not match payload encryption type. Key type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                    \" Payload type \" +\n                    (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encThing.encryptionType));\n                return null;\n            }\n            if (key.macKey != null && encThing.macBytes != null) {\n                const macData = new Uint8Array(encThing.ivBytes.byteLength + encThing.dataBytes.byteLength);\n                macData.set(new Uint8Array(encThing.ivBytes), 0);\n                macData.set(new Uint8Array(encThing.dataBytes), encThing.ivBytes.byteLength);\n                const computedMac = yield this.cryptoFunctionService.hmac(macData, key.macKey, \"sha256\");\n                if (computedMac === null) {\n                    this.logMacFailed(\"[Encrypt service] Failed to compute MAC.\" +\n                        \" Key type \" +\n                        (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                        \" Payload type \" +\n                        (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encThing.encryptionType));\n                    return null;\n                }\n                const macsMatch = yield this.cryptoFunctionService.compare(encThing.macBytes, computedMac);\n                if (!macsMatch) {\n                    this.logMacFailed(\"[Encrypt service] MAC comparison failed. Key or payload has changed.\" +\n                        \" Key type \" +\n                        (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(key.encType) +\n                        \" Payload type \" +\n                        (0,_enums__WEBPACK_IMPORTED_MODULE_1__.encryptionTypeToString)(encThing.encryptionType));\n                    return null;\n                }\n            }\n            const result = yield this.cryptoFunctionService.aesDecrypt(encThing.dataBytes, encThing.ivBytes, key.encKey, \"cbc\");\n            return result !== null && result !== void 0 ? result : null;\n        });\n    }\n    rsaEncrypt(data, publicKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (data == null) {\n                throw new Error(\"No data provided for encryption.\");\n            }\n            if (publicKey == null) {\n                throw new Error(\"No public key provided for encryption.\");\n            }\n            const encrypted = yield this.cryptoFunctionService.rsaEncrypt(data, publicKey, \"sha1\");\n            return new _models_domain_enc_string__WEBPACK_IMPORTED_MODULE_3__.EncString(_enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.Rsa2048_OaepSha1_B64, _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(encrypted));\n        });\n    }\n    rsaDecrypt(data, privateKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (data == null) {\n                throw new Error(\"[Encrypt service] rsaDecrypt: No data provided for decryption.\");\n            }\n            let algorithm;\n            switch (data.encryptionType) {\n                case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.Rsa2048_OaepSha1_B64:\n                case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.Rsa2048_OaepSha1_HmacSha256_B64:\n                    algorithm = \"sha1\";\n                    break;\n                case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.Rsa2048_OaepSha256_B64:\n                case _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.Rsa2048_OaepSha256_HmacSha256_B64:\n                    algorithm = \"sha256\";\n                    break;\n                default:\n                    throw new Error(\"Invalid encryption type.\");\n            }\n            if (privateKey == null) {\n                throw new Error(\"[Encrypt service] rsaDecrypt: No private key provided for decryption.\");\n            }\n            return this.cryptoFunctionService.rsaDecrypt(data.dataBytes, privateKey, algorithm);\n        });\n    }\n    /**\n     * @deprecated Replaced by BulkEncryptService (PM-4154)\n     */\n    decryptItems(items, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (items == null || items.length < 1) {\n                return [];\n            }\n            // don't use promise.all because this task is not io bound\n            const results = [];\n            for (let i = 0; i < items.length; i++) {\n                results.push(yield items[i].decrypt(key));\n            }\n            return results;\n        });\n    }\n    hash(value, algorithm) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const hashArray = yield this.cryptoFunctionService.hash(value, algorithm);\n            return _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(hashArray);\n        });\n    }\n    aesEncrypt(data, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const obj = new _models_domain_encrypted_object__WEBPACK_IMPORTED_MODULE_4__.EncryptedObject();\n            obj.key = key;\n            obj.iv = yield this.cryptoFunctionService.randomBytes(16);\n            obj.data = yield this.cryptoFunctionService.aesEncrypt(data, obj.iv, obj.key.encKey);\n            if (obj.key.macKey != null) {\n                const macData = new Uint8Array(obj.iv.byteLength + obj.data.byteLength);\n                macData.set(new Uint8Array(obj.iv), 0);\n                macData.set(new Uint8Array(obj.data), obj.iv.byteLength);\n                obj.mac = yield this.cryptoFunctionService.hmac(macData, obj.key.macKey, \"sha256\");\n            }\n            return obj;\n        });\n    }\n    logMacFailed(msg) {\n        if (this.logMacFailures) {\n            this.logService.error(msg);\n        }\n    }\n    /**\n     * Transform into new key for the old encrypt-then-mac scheme if required, otherwise return the current key unchanged\n     * @param encThing The encrypted object (e.g. encString or encArrayBuffer) that you want to decrypt\n     */\n    resolveLegacyKey(key, encThing) {\n        if (encThing.encryptionType === _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc128_HmacSha256_B64 &&\n            key.encType === _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc256_B64) {\n            return new _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_5__.SymmetricCryptoKey(key.key, _enums__WEBPACK_IMPORTED_MODULE_1__.EncryptionType.AesCbc128_HmacSha256_B64);\n        }\n        return key;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 26180 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/cryptography/fallback-bulk-encrypt.service.ts":
/*!*********************************************************************************************!*\
  !*** ../../libs/common/src/platform/services/cryptography/fallback-bulk-encrypt.service.ts ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FallbackBulkEncryptService: () => (/* binding */ FallbackBulkEncryptService)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n/**\n * @deprecated For the feature flag from PM-4154, remove once feature is rolled out\n */\nclass FallbackBulkEncryptService {\n    constructor(encryptService) {\n        this.encryptService = encryptService;\n    }\n    /**\n     * Decrypts items using a web worker if the environment supports it.\n     * Will fall back to the main thread if the window object is not available.\n     */\n    decryptItems(items, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.featureFlagEncryptService != null) {\n                return yield this.featureFlagEncryptService.decryptItems(items, key);\n            }\n            else {\n                return yield this.encryptService.decryptItems(items, key);\n            }\n        });\n    }\n    setFeatureFlagEncryptService(featureFlagEncryptService) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.featureFlagEncryptService = featureFlagEncryptService;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2NyeXB0b2dyYXBoeS9mYWxsYmFjay1idWxrLWVuY3J5cHQuc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBTUE7O0dBRUc7QUFDSSxNQUFNLDBCQUEwQjtJQUdyQyxZQUFzQixjQUE4QjtRQUE5QixtQkFBYyxHQUFkLGNBQWMsQ0FBZ0I7SUFBRyxDQUFDO0lBRXhEOzs7T0FHRztJQUNHLFlBQVksQ0FDaEIsS0FBdUIsRUFDdkIsR0FBdUI7O1lBRXZCLElBQUksSUFBSSxDQUFDLHlCQUF5QixJQUFJLElBQUksRUFBRSxDQUFDO2dCQUMzQyxPQUFPLE1BQU0sSUFBSSxDQUFDLHlCQUF5QixDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDLENBQUM7WUFDdkUsQ0FBQztpQkFBTSxDQUFDO2dCQUNOLE9BQU8sTUFBTSxJQUFJLENBQUMsY0FBYyxDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDLENBQUM7WUFDNUQsQ0FBQztRQUNILENBQUM7S0FBQTtJQUVLLDRCQUE0QixDQUFDLHlCQUE2Qzs7WUFDOUUsSUFBSSxDQUFDLHlCQUF5QixHQUFHLHlCQUF5QixDQUFDO1FBQzdELENBQUM7S0FBQTtDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2NyeXB0b2dyYXBoeS9mYWxsYmFjay1idWxrLWVuY3J5cHQuc2VydmljZS50cz82ZWY1Il0sInNvdXJjZXNDb250ZW50IjpbImltcG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SBtYWluIHRocmVhZCBpZiB0aGUgd2luZG93IG9iamVjdCBpcyBub3QgYXZhaWxhYmxlLlxuICAgKi9cbiAgYXN5bmMgZGVjcnlwdEl0ZW1zPFQgZXh0ZW5kcyBJbml0aWFsaXplck1ldGFkYXRhPihcbiAgICBpdGVtczogRGVjcnlwdGFibGU8VD5bXSxcbiAgICBrZXk6IFN5bW1ldHJpY0NyeXB0b0tleSxcbiAgKTogUHJvbWlzZTxUW10+IHtcbiAgICBpZiAodGhpcy5mZWF0dXJlRmxhZ0VuY3J5cHRTZXJ2aWNlICE9IG51bGwpIHtcbiAgICAgIHJldHVybiBhd2FpdCB0aGlzLmZlYXR1cmVGbGFnRW5jcnlwdFNlcnZpY2UuZGVjcnlwdEl0ZW1zKGl0ZW1zLCBrZXkpO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gYXdhaXQgdGhpcy5lbmNyeXB0U2VydmljZS5kZWNyeXB0SXRlbXMoaXRlbXMsIGtleSk7XG4gICAgfVxuICB9XG5cbiAgYXN5bmMgc2V0RmVhdHVyZUZsYWdFbmNyeXB0U2VydmljZShmZWF0dXJlRmxhZ0VuY3J5cHRTZXJ2aWNlOiBCdWxrRW5jcnlwdFNlcnZpY2UpIHtcbiAgICB0aGlzLmZlYXR1cmVGbGFnRW5jcnlwdFNlcnZpY2UgPSBmZWF0dXJlRmxhZ0VuY3J5cHRTZXJ2aWNlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/cryptography/fallback-bulk-encrypt.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/cryptography/initializer-key.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/platform/services/cryptography/initializer-key.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   InitializerKey: () => (/* binding */ InitializerKey)\n/* harmony export */ });\nvar InitializerKey;\n(function (InitializerKey) {\n    InitializerKey[InitializerKey[\"Cipher\"] = 0] = \"Cipher\";\n    InitializerKey[InitializerKey[\"CipherView\"] = 1] = \"CipherView\";\n})(InitializerKey || (InitializerKey = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2NyeXB0b2dyYXBoeS9pbml0aWFsaXplci1rZXkudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLElBQVksY0FHWDtBQUhELFdBQVksY0FBYztJQUN4Qix1REFBVTtJQUNWLCtEQUFjO0FBQ2hCLENBQUMsRUFIVyxjQUFjLEtBQWQsY0FBYyxRQUd6QiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9zZXJ2aWNlcy9jcnlwdG9ncmFwaHkvaW5pdGlhbGl6ZXIta2V5LnRzPzlhMDQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gSW5pdGlhbGl6ZXJLZXkge1xuICBDaXBoZXIgPSAwLFxuICBDaXBoZXJWaWV3ID0gMSxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/cryptography/initializer-key.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/default-environment.service.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/platform/services/default-environment.service.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CloudEnvironment: () => (/* binding */ CloudEnvironment),\n/* harmony export */   DefaultEnvironmentService: () => (/* binding */ DefaultEnvironmentService),\n/* harmony export */   EnvironmentUrls: () => (/* binding */ EnvironmentUrls),\n/* harmony export */   GLOBAL_CLOUD_REGION_KEY: () => (/* binding */ GLOBAL_CLOUD_REGION_KEY),\n/* harmony export */   GLOBAL_ENVIRONMENT_KEY: () => (/* binding */ GLOBAL_ENVIRONMENT_KEY),\n/* harmony export */   PRODUCTION_REGIONS: () => (/* binding */ PRODUCTION_REGIONS),\n/* harmony export */   SelfHostedEnvironment: () => (/* binding */ SelfHostedEnvironment),\n/* harmony export */   USER_CLOUD_REGION_KEY: () => (/* binding */ USER_CLOUD_REGION_KEY),\n/* harmony export */   USER_ENVIRONMENT_KEY: () => (/* binding */ USER_ENVIRONMENT_KEY)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../abstractions/environment.service */ \"../../libs/common/src/platform/abstractions/environment.service.ts\");\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass EnvironmentUrls {\n    constructor() {\n        this.base = null;\n        this.api = null;\n        this.identity = null;\n        this.icons = null;\n        this.notifications = null;\n        this.events = null;\n        this.webVault = null;\n        this.keyConnector = null;\n    }\n}\nclass EnvironmentState {\n    static fromJSON(obj) {\n        return Object.assign(new EnvironmentState(), obj);\n    }\n}\nconst GLOBAL_ENVIRONMENT_KEY = new _state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition(_state__WEBPACK_IMPORTED_MODULE_3__.ENVIRONMENT_DISK, \"environment\", {\n    deserializer: EnvironmentState.fromJSON,\n});\nconst USER_ENVIRONMENT_KEY = new _state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_3__.ENVIRONMENT_DISK, \"environment\", {\n    deserializer: EnvironmentState.fromJSON,\n    clearOn: [\"logout\"],\n});\nconst GLOBAL_CLOUD_REGION_KEY = new _state__WEBPACK_IMPORTED_MODULE_3__.KeyDefinition(_state__WEBPACK_IMPORTED_MODULE_3__.ENVIRONMENT_MEMORY, \"cloudRegion\", {\n    deserializer: (b) => b,\n});\nconst USER_CLOUD_REGION_KEY = new _state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_3__.ENVIRONMENT_MEMORY, \"cloudRegion\", {\n    deserializer: (b) => b,\n    clearOn: [\"logout\"],\n});\n/**\n * The production regions available for selection.\n *\n * In the future we desire to load these urls from the config endpoint.\n */\nconst PRODUCTION_REGIONS = [\n    {\n        key: _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.US,\n        domain: \"bitwarden.com\",\n        urls: {\n            base: null,\n            api: \"https://api.bitwarden.com\",\n            identity: \"https://identity.bitwarden.com\",\n            icons: \"https://icons.bitwarden.net\",\n            webVault: \"https://vault.bitwarden.com\",\n            notifications: \"https://notifications.bitwarden.com\",\n            events: \"https://events.bitwarden.com\",\n            scim: \"https://scim.bitwarden.com\",\n        },\n    },\n    {\n        key: _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.EU,\n        domain: \"bitwarden.eu\",\n        urls: {\n            base: null,\n            api: \"https://api.bitwarden.eu\",\n            identity: \"https://identity.bitwarden.eu\",\n            icons: \"https://icons.bitwarden.eu\",\n            webVault: \"https://vault.bitwarden.eu\",\n            notifications: \"https://notifications.bitwarden.eu\",\n            events: \"https://events.bitwarden.eu\",\n            scim: \"https://scim.bitwarden.eu\",\n        },\n    },\n];\n/**\n * The default region when starting the app.\n */\nconst DEFAULT_REGION = _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.US;\n/**\n * The default region configuration.\n */\nconst DEFAULT_REGION_CONFIG = PRODUCTION_REGIONS.find((r) => r.key === DEFAULT_REGION);\nclass DefaultEnvironmentService {\n    constructor(stateProvider, accountService, additionalRegionConfigs = []) {\n        this.stateProvider = stateProvider;\n        this.accountService = accountService;\n        this.additionalRegionConfigs = additionalRegionConfigs;\n        // We intentionally don't want the helper on account service, we want the null back if there is no active user\n        this.activeAccountId$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id));\n        this.globalState = this.stateProvider.getGlobal(GLOBAL_ENVIRONMENT_KEY);\n        this.globalCloudRegionState = this.stateProvider.getGlobal(GLOBAL_CLOUD_REGION_KEY);\n        const account$ = this.activeAccountId$.pipe(\n        // Use == here to not trigger on undefined -> null transition\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)((oldUserId, newUserId) => oldUserId == newUserId));\n        this.environment$ = account$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => {\n            const t = userId\n                ? this.stateProvider.getUser(userId, USER_ENVIRONMENT_KEY).state$\n                : this.stateProvider.getGlobal(GLOBAL_ENVIRONMENT_KEY).state$;\n            return t;\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => {\n            return this.buildEnvironment(state === null || state === void 0 ? void 0 : state.region, state === null || state === void 0 ? void 0 : state.urls);\n        }));\n        this.cloudWebVaultUrl$ = account$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => {\n            const t = userId\n                ? this.stateProvider.getUser(userId, USER_CLOUD_REGION_KEY).state$\n                : this.stateProvider.getGlobal(GLOBAL_CLOUD_REGION_KEY).state$;\n            return t;\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((region) => {\n            if (region != null) {\n                const config = this.getRegionConfig(region);\n                if (config != null) {\n                    return config.urls.webVault;\n                }\n            }\n            return DEFAULT_REGION_CONFIG.urls.webVault;\n        }));\n    }\n    availableRegions() {\n        return PRODUCTION_REGIONS.concat(this.additionalRegionConfigs);\n    }\n    /**\n     * Get the region configuration for the given region.\n     */\n    getRegionConfig(region) {\n        return this.availableRegions().find((r) => r.key === region);\n    }\n    setEnvironment(region, urls) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Unknown regions are treated as self-hosted\n            if (this.getRegionConfig(region) == null) {\n                region = _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted;\n            }\n            // If self-hosted ensure urls are valid else fallback to default region\n            if (region == _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted && isEmpty(urls)) {\n                region = DEFAULT_REGION;\n            }\n            if (region != _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted) {\n                yield this.globalState.update(() => ({\n                    region: region,\n                    urls: null,\n                }));\n                return null;\n            }\n            else {\n                // Clean the urls\n                urls.base = formatUrl(urls.base);\n                urls.webVault = formatUrl(urls.webVault);\n                urls.api = formatUrl(urls.api);\n                urls.identity = formatUrl(urls.identity);\n                urls.icons = formatUrl(urls.icons);\n                urls.notifications = formatUrl(urls.notifications);\n                urls.events = formatUrl(urls.events);\n                urls.keyConnector = formatUrl(urls.keyConnector);\n                urls.scim = null;\n                yield this.globalState.update(() => ({\n                    region: region,\n                    urls: {\n                        base: urls.base,\n                        api: urls.api,\n                        identity: urls.identity,\n                        webVault: urls.webVault,\n                        icons: urls.icons,\n                        notifications: urls.notifications,\n                        events: urls.events,\n                        keyConnector: urls.keyConnector,\n                    },\n                }));\n                return urls;\n            }\n        });\n    }\n    /**\n     * Helper for building the environment from state. Performs some general sanitization to avoid invalid regions and urls.\n     */\n    buildEnvironment(region, urls) {\n        // Unknown regions are treated as self-hosted\n        if (this.getRegionConfig(region) == null) {\n            region = _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted;\n        }\n        // If self-hosted ensure urls are valid else fallback to default region\n        if (region == _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted && isEmpty(urls)) {\n            region = DEFAULT_REGION;\n        }\n        // Load urls from region config\n        if (region != _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted) {\n            const regionConfig = this.getRegionConfig(region);\n            if (regionConfig != null) {\n                return new CloudEnvironment(regionConfig);\n            }\n        }\n        return new SelfHostedEnvironment(urls);\n    }\n    setCloudRegion(userId, region) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                yield this.globalCloudRegionState.update(() => region);\n            }\n            else {\n                yield this.stateProvider.getUser(userId, USER_CLOUD_REGION_KEY).update(() => region);\n            }\n        });\n    }\n    getEnvironment(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environment$);\n            }\n            const state = yield this.getEnvironmentState(userId);\n            return this.buildEnvironment(state.region, state.urls);\n        });\n    }\n    getEnvironmentState(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Previous rules dictated that we only get from user scoped state if there is an active user.\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeAccountId$);\n            return activeUserId == null\n                ? yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.globalState.state$)\n                : yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUser(userId !== null && userId !== void 0 ? userId : activeUserId, USER_ENVIRONMENT_KEY).state$);\n        });\n    }\n    seedUserEnvironment(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const global = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.globalState.state$);\n            yield this.stateProvider.getUser(userId, USER_ENVIRONMENT_KEY).update(() => global);\n        });\n    }\n}\nfunction formatUrl(url) {\n    if (url == null || url === \"\") {\n        return null;\n    }\n    url = url.replace(/\\/+$/g, \"\");\n    if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\")) {\n        url = \"https://\" + url;\n    }\n    return url.trim();\n}\nfunction isEmpty(u) {\n    if (u == null) {\n        return true;\n    }\n    return (u.base == null &&\n        u.webVault == null &&\n        u.api == null &&\n        u.identity == null &&\n        u.icons == null &&\n        u.notifications == null &&\n        u.events == null);\n}\nclass UrlEnvironment {\n    constructor(region, urls) {\n        this.region = region;\n        this.urls = urls;\n        // Scim is always null for self-hosted\n        if (region == _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted) {\n            this.urls.scim = null;\n        }\n    }\n    getRegion() {\n        return this.region;\n    }\n    getUrls() {\n        return {\n            base: this.urls.base,\n            webVault: this.urls.webVault,\n            api: this.urls.api,\n            identity: this.urls.identity,\n            icons: this.urls.icons,\n            notifications: this.urls.notifications,\n            events: this.urls.events,\n            keyConnector: this.urls.keyConnector,\n            scim: this.urls.scim,\n        };\n    }\n    hasBaseUrl() {\n        return this.urls.base != null;\n    }\n    getWebVaultUrl() {\n        return this.getUrl(\"webVault\", \"\");\n    }\n    getApiUrl() {\n        return this.getUrl(\"api\", \"/api\");\n    }\n    getEventsUrl() {\n        return this.getUrl(\"events\", \"/events\");\n    }\n    getIconsUrl() {\n        return this.getUrl(\"icons\", \"/icons\");\n    }\n    getIdentityUrl() {\n        return this.getUrl(\"identity\", \"/identity\");\n    }\n    getKeyConnectorUrl() {\n        return this.urls.keyConnector;\n    }\n    getNotificationsUrl() {\n        return this.getUrl(\"notifications\", \"/notifications\");\n    }\n    getScimUrl() {\n        if (this.urls.scim != null) {\n            return this.urls.scim + \"/v2\";\n        }\n        return this.getWebVaultUrl() === \"https://vault.bitwarden.com\"\n            ? \"https://scim.bitwarden.com/v2\"\n            : this.getWebVaultUrl() + \"/scim/v2\";\n    }\n    getSendUrl() {\n        return this.getWebVaultUrl() === \"https://vault.bitwarden.com\"\n            ? \"https://send.bitwarden.com/#\"\n            : this.getWebVaultUrl() + \"/#/send/\";\n    }\n    /**\n     * Presume that if the region is not self-hosted, it is cloud.\n     */\n    isCloud() {\n        return this.region !== _abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted;\n    }\n    /**\n     * Helper for getting an URL.\n     *\n     * @param key Key of the URL to get from URLs\n     * @param baseSuffix Suffix to append to the base URL if the url is not set\n     * @returns\n     */\n    getUrl(key, baseSuffix) {\n        if (this.urls[key] != null) {\n            return this.urls[key];\n        }\n        if (this.urls.base) {\n            return this.urls.base + baseSuffix;\n        }\n        return DEFAULT_REGION_CONFIG.urls[key];\n    }\n}\n/**\n * Denote a cloud environment.\n */\nclass CloudEnvironment extends UrlEnvironment {\n    constructor(config) {\n        super(config.key, config.urls);\n        this.config = config;\n    }\n    /**\n     * Cloud always returns nice urls, i.e. bitwarden.com instead of vault.bitwarden.com.\n     */\n    getHostname() {\n        return this.config.domain;\n    }\n}\nclass SelfHostedEnvironment extends UrlEnvironment {\n    constructor(urls) {\n        super(_abstractions_environment_service__WEBPACK_IMPORTED_MODULE_1__.Region.SelfHosted, urls);\n    }\n    getHostname() {\n        return _misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getHost(this.getWebVaultUrl());\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 30368 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/default-environment.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/file-upload/azure-file-upload.service.ts":
/*!****************************************************************************************!*\
  !*** ../../libs/common/src/platform/services/file-upload/azure-file-upload.service.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AzureFileUploadService: () => (/* binding */ AzureFileUploadService)\n/* harmony export */ });\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst MAX_SINGLE_BLOB_UPLOAD_SIZE = 256 * 1024 * 1024; // 256 MiB\nconst MAX_BLOCKS_PER_BLOB = 50000;\nclass AzureFileUploadService {\n    constructor(logService) {\n        this.logService = logService;\n    }\n    upload(url, data, renewalCallback) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (data.buffer.byteLength <= MAX_SINGLE_BLOB_UPLOAD_SIZE) {\n                return yield this.azureUploadBlob(url, data);\n            }\n            else {\n                return yield this.azureUploadBlocks(url, data, renewalCallback);\n            }\n        });\n    }\n    azureUploadBlob(url, data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const urlObject = _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getUrl(url);\n            const headers = new Headers({\n                \"x-ms-date\": new Date().toUTCString(),\n                \"x-ms-version\": urlObject.searchParams.get(\"sv\"),\n                \"Content-Length\": data.buffer.byteLength.toString(),\n                \"x-ms-blob-type\": \"BlockBlob\",\n            });\n            const request = new Request(url, {\n                body: data.buffer,\n                cache: \"no-store\",\n                method: \"PUT\",\n                headers: headers,\n            });\n            const blobResponse = yield fetch(request);\n            if (blobResponse.status !== 201) {\n                throw new Error(`Failed to create Azure blob: ${blobResponse.status}`);\n            }\n        });\n    }\n    azureUploadBlocks(url, data, renewalCallback) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const baseUrl = _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getUrl(url);\n            const blockSize = this.getMaxBlockSize(baseUrl.searchParams.get(\"sv\"));\n            let blockIndex = 0;\n            const numBlocks = Math.ceil(data.buffer.byteLength / blockSize);\n            const blocksStaged = [];\n            if (numBlocks > MAX_BLOCKS_PER_BLOB) {\n                throw new Error(`Cannot upload file, exceeds maximum size of ${blockSize * MAX_BLOCKS_PER_BLOB}`);\n            }\n            // eslint-disable-next-line\n            try {\n                while (blockIndex < numBlocks) {\n                    url = yield this.renewUrlIfNecessary(url, renewalCallback);\n                    const blockUrl = _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getUrl(url);\n                    const blockId = this.encodedBlockId(blockIndex);\n                    blockUrl.searchParams.append(\"comp\", \"block\");\n                    blockUrl.searchParams.append(\"blockid\", blockId);\n                    const start = blockIndex * blockSize;\n                    const blockData = data.buffer.slice(start, start + blockSize);\n                    const blockHeaders = new Headers({\n                        \"x-ms-date\": new Date().toUTCString(),\n                        \"x-ms-version\": blockUrl.searchParams.get(\"sv\"),\n                        \"Content-Length\": blockData.byteLength.toString(),\n                    });\n                    const blockRequest = new Request(blockUrl.toString(), {\n                        body: blockData,\n                        cache: \"no-store\",\n                        method: \"PUT\",\n                        headers: blockHeaders,\n                    });\n                    const blockResponse = yield fetch(blockRequest);\n                    if (blockResponse.status !== 201) {\n                        const message = `Unsuccessful block PUT. Received status ${blockResponse.status}`;\n                        this.logService.error(message + \"\\n\" + (yield blockResponse.json()));\n                        throw new Error(message);\n                    }\n                    blocksStaged.push(blockId);\n                    blockIndex++;\n                }\n                url = yield this.renewUrlIfNecessary(url, renewalCallback);\n                const blockListUrl = _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getUrl(url);\n                const blockListXml = this.blockListXml(blocksStaged);\n                blockListUrl.searchParams.append(\"comp\", \"blocklist\");\n                const headers = new Headers({\n                    \"x-ms-date\": new Date().toUTCString(),\n                    \"x-ms-version\": blockListUrl.searchParams.get(\"sv\"),\n                    \"Content-Length\": blockListXml.length.toString(),\n                });\n                const request = new Request(blockListUrl.toString(), {\n                    body: blockListXml,\n                    cache: \"no-store\",\n                    method: \"PUT\",\n                    headers: headers,\n                });\n                const response = yield fetch(request);\n                if (response.status !== 201) {\n                    const message = `Unsuccessful block list PUT. Received status ${response.status}`;\n                    this.logService.error(message + \"\\n\" + (yield response.json()));\n                    throw new Error(message);\n                }\n            }\n            catch (e) {\n                throw e;\n            }\n        });\n    }\n    renewUrlIfNecessary(url, renewalCallback) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const urlObject = _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getUrl(url);\n            const expiry = new Date((_a = urlObject.searchParams.get(\"se\")) !== null && _a !== void 0 ? _a : \"\");\n            if (isNaN(expiry.getTime())) {\n                expiry.setTime(Date.now() + 3600000);\n            }\n            if (expiry.getTime() < Date.now() + 1000) {\n                return yield renewalCallback();\n            }\n            return url;\n        });\n    }\n    encodedBlockId(blockIndex) {\n        // Encoded blockId max size is 64, so pre-encoding max size is 48\n        const utfBlockId = (\"000000000000000000000000000000000000000000000000\" + blockIndex.toString()).slice(-48);\n        return _misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromUtf8ToB64(utfBlockId);\n    }\n    blockListXml(blockIdList) {\n        let xml = '<?xml version=\"1.0\" encoding=\"utf-8\"?><BlockList>';\n        blockIdList.forEach((blockId) => {\n            xml += `<Latest>${blockId}</Latest>`;\n        });\n        xml += \"</BlockList>\";\n        return xml;\n    }\n    getMaxBlockSize(version) {\n        if (Version.compare(version, \"2019-12-12\") >= 0) {\n            return 4000 * 1024 * 1024; // 4000 MiB\n        }\n        else if (Version.compare(version, \"2016-05-31\") >= 0) {\n            return 100 * 1024 * 1024; // 100 MiB\n        }\n        else {\n            return 4 * 1024 * 1024; // 4 MiB\n        }\n    }\n}\nclass Version {\n    /**\n     * Compares two Azure Versions against each other\n     * @param a Version to compare\n     * @param b Version to compare\n     * @returns a number less than zero if b is newer than a, 0 if equal,\n     * and greater than zero if a is newer than b\n     */\n    static compare(a, b) {\n        if (typeof a === \"string\") {\n            a = new Version(a);\n        }\n        if (typeof b === \"string\") {\n            b = new Version(b);\n        }\n        return a.year !== b.year\n            ? a.year - b.year\n            : a.month !== b.month\n                ? a.month - b.month\n                : a.day !== b.day\n                    ? a.day - b.day\n                    : 0;\n    }\n    constructor(version) {\n        this.year = 0;\n        this.month = 0;\n        this.day = 0;\n        try {\n            const parts = version.split(\"-\").map((v) => Number.parseInt(v, 10));\n            this.year = parts[0];\n            this.month = parts[1];\n            this.day = parts[2];\n        }\n        catch (_a) {\n            // Ignore error\n        }\n    }\n    /**\n     * Compares two Azure Versions against each other\n     * @param compareTo Version to compare against\n     * @returns a number less than zero if compareTo is newer, 0 if equal,\n     * and greater than zero if this is greater than compareTo\n     */\n    compare(compareTo) {\n        return Version.compare(this, compareTo);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18108 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/file-upload/azure-file-upload.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/file-upload/bitwarden-file-upload.service.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/common/src/platform/services/file-upload/bitwarden-file-upload.service.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenFileUploadService: () => (/* binding */ BitwardenFileUploadService)\n/* harmony export */ });\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass BitwardenFileUploadService {\n    upload(encryptedFileName, encryptedFileData, apiCall) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const fd = new FormData();\n            try {\n                const blob = new Blob([encryptedFileData.buffer], { type: \"application/octet-stream\" });\n                fd.append(\"data\", blob, encryptedFileName);\n            }\n            catch (e) {\n                if (_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNode && !_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isBrowser) {\n                    fd.append(\"data\", Buffer.from(encryptedFileData.buffer), {\n                        filepath: encryptedFileName,\n                        contentType: \"application/octet-stream\",\n                    });\n                }\n                else {\n                    throw e;\n                }\n            }\n            yield apiCall(fd);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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hbnksXG4gICAgICAgICAge1xuICAgICAgICAgICAgZmlsZXBhdGg6IGVuY3J5cHRlZEZpbGVOYW1lLFxuICAgICAgICAgICAgY29udGVudFR5cGU6IFwiYXBwbGljYXRpb24vb2N0ZXQtc3RyZWFtXCIsXG4gICAgICAgICAgfSBhcyBhbnksXG4gICAgICAgICk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aHJvdyBlO1xuICAgICAgfVxuICAgIH1cblxuICAgIGF3YWl0IGFwaUNhbGwoZmQpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/file-upload/bitwarden-file-upload.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/file-upload/file-upload.service.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/platform/services/file-upload/file-upload.service.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FileUploadService: () => (/* binding */ FileUploadService)\n/* harmony export */ });\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _azure_file_upload_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./azure-file-upload.service */ \"../../libs/common/src/platform/services/file-upload/azure-file-upload.service.ts\");\n/* harmony import */ var _bitwarden_file_upload_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bitwarden-file-upload.service */ \"../../libs/common/src/platform/services/file-upload/bitwarden-file-upload.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass FileUploadService {\n    constructor(logService) {\n        this.logService = logService;\n        this.azureFileUploadService = new _azure_file_upload_service__WEBPACK_IMPORTED_MODULE_1__.AzureFileUploadService(logService);\n        this.bitwardenFileUploadService = new _bitwarden_file_upload_service__WEBPACK_IMPORTED_MODULE_2__.BitwardenFileUploadService();\n    }\n    upload(uploadData, fileName, encryptedFileData, fileUploadMethods) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                switch (uploadData.fileUploadType) {\n                    case _enums__WEBPACK_IMPORTED_MODULE_0__.FileUploadType.Direct:\n                        yield this.bitwardenFileUploadService.upload(fileName.encryptedString, encryptedFileData, (fd) => fileUploadMethods.postDirect(fd));\n                        break;\n                    case _enums__WEBPACK_IMPORTED_MODULE_0__.FileUploadType.Azure: {\n                        yield this.azureFileUploadService.upload(uploadData.url, encryptedFileData, fileUploadMethods.renewFileUploadUrl);\n                        break;\n                    }\n                    default:\n                        throw new Error(\"Unknown file upload type\");\n                }\n            }\n            catch (e) {\n                yield fileUploadMethods.rollback();\n                throw e;\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2ZpbGUtdXBsb2FkL2ZpbGUtdXBsb2FkLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUs2QztBQUl3QjtBQUNRO0FBRXRFLE1BQU0saUJBQWlCO0lBSTVCLFlBQXNCLFVBQXNCO1FBQXRCLGVBQVUsR0FBVixVQUFVLENBQVk7UUF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1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIEZpbGVVcGxvYWRUeXBlLkF6dXJlOiB7XG4gICAgICAgICAgYXdhaXQgdGhpcy5henVyZUZpbGVVcGxvYWRTZXJ2aWNlLnVwbG9hZChcbiAgICAgICAgICAgIHVwbG9hZERhdGEudXJsLFxuICAgICAgICAgICAgZW5jcnlwdGVkRmlsZURhdGEsXG4gICAgICAgICAgICBmaWxlVXBsb2FkTWV0aG9kcy5yZW5ld0ZpbGVVcGxvYWRVcmwsXG4gICAgICAgICAgKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIlVua25vd24gZmlsZSB1cGxvYWQgdHlwZVwiKTtcbiAgICAgIH1cbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICBhd2FpdCBmaWxlVXBsb2FkTWV0aG9kcy5yb2xsYmFjaygpO1xuICAgICAgdGhyb3cgZTtcbiAgICB9XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/file-upload/file-upload.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/i18n.service.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/platform/services/i18n.service.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   I18nService: () => (/* binding */ I18nService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _translation_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./translation.service */ \"../../libs/common/src/platform/services/translation.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nconst LOCALE_KEY = new _state__WEBPACK_IMPORTED_MODULE_1__.KeyDefinition(_state__WEBPACK_IMPORTED_MODULE_1__.TRANSLATION_DISK, \"locale\", {\n    deserializer: (value) => value,\n});\nclass I18nService extends _translation_service__WEBPACK_IMPORTED_MODULE_2__.TranslationService {\n    constructor(systemLanguage, localesDirectory, getLocalesJson, globalStateProvider) {\n        super(systemLanguage, localesDirectory, getLocalesJson);\n        this.systemLanguage = systemLanguage;\n        this.localesDirectory = localesDirectory;\n        this.getLocalesJson = getLocalesJson;\n        this.translationLocaleState = globalStateProvider.get(LOCALE_KEY);\n        this.userSetLocale$ = this.translationLocaleState.state$;\n        this.locale$ = this.userSetLocale$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((locale) => locale !== null && locale !== void 0 ? locale : this.translationLocale));\n    }\n    setLocale(locale) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.translationLocaleState.update(() => locale);\n        });\n    }\n    init() {\n        const _super = Object.create(null, {\n            init: { get: () => super.init }\n        });\n        return __awaiter(this, void 0, void 0, function* () {\n            const storedLocale = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.translationLocaleState.state$);\n            yield _super.init.call(this, storedLocale);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2kxOG4uc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUF1RDtBQUdzQztBQUVsQztBQUUzRCxNQUFNLFVBQVUsR0FBRyxJQUFJLGlEQUFhLENBQVMsb0RBQWdCLEVBQUUsUUFBUSxFQUFFO0lBQ3ZFLFlBQVksRUFBRSxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsS0FBSztDQUMvQixDQUFDLENBQUM7QUFFSSxNQUFNLFdBQVksU0FBUSxvRUFBa0I7SUFNakQsWUFDWSxjQUFzQixFQUN0QixnQkFBd0IsRUFDeEIsY0FBeUQsRUFDbkUsbUJBQXdDO1FBRXhDLEtBQUssQ0FBQyxjQUFjLEVBQUUsZ0JBQWdCLEVBQUUsY0FBYyxDQUFDLENBQUM7UUFMOUMsbUJBQWMsR0FBZCxjQUFjLENBQVE7UUFDdEIscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFRO1FBQ3hCLG1CQUFjLEdBQWQsY0FBYyxDQUEyQztRQUluRSxJQUFJLENBQUMsc0JBQXNCLEdBQUcsbUJBQW1CLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ2xFLElBQUksQ0FBQyxjQUFjLEdBQUcsSUFBSSxDQUFDLHNCQUFzQixDQUFDLE1BQU0sQ0FBQztRQUN6RCxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLHlDQUFHLENBQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLE1BQU0sYUFBTixNQUFNLGNBQU4sTUFBTSxHQUFJLElBQUksQ0FBQyxpQkFBa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GUgPz8gdGhpcy50cmFuc2xhdGlvbkxvY2FsZSkpO1xuICB9XG5cbiAgYXN5bmMgc2V0TG9jYWxlKGxvY2FsZTogc3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgYXdhaXQgdGhpcy50cmFuc2xhdGlvbkxvY2FsZVN0YXRlLnVwZGF0ZSgoKSA9PiBsb2NhbGUpO1xuICB9XG5cbiAgb3ZlcnJpZGUgYXN5bmMgaW5pdCgpIHtcbiAgICBjb25zdCBzdG9yZWRMb2NhbGUgPSBhd2FpdCBmaXJzdFZhbHVlRnJvbSh0aGlzLnRyYW5zbGF0aW9uTG9jYWxlU3RhdGUuc3RhdGUkKTtcbiAgICBhd2FpdCBzdXBlci5pbml0KHN0b3JlZExvY2FsZSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/i18n.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/key-generation.service.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/platform/services/key-generation.service.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyGenerationService: () => (/* binding */ KeyGenerationService)\n/* harmony export */ });\n/* harmony import */ var _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../auth/models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass KeyGenerationService {\n    constructor(cryptoFunctionService) {\n        this.cryptoFunctionService = cryptoFunctionService;\n    }\n    createKey(bitLength) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const key = yield this.cryptoFunctionService.aesGenerateKey(bitLength);\n            return new _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(key);\n        });\n    }\n    createKeyWithPurpose(bitLength, purpose, salt) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (salt == null) {\n                const bytes = yield this.cryptoFunctionService.randomBytes(32);\n                salt = _misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.fromBufferToUtf8(bytes);\n            }\n            const material = yield this.cryptoFunctionService.aesGenerateKey(bitLength);\n            const key = yield this.cryptoFunctionService.hkdf(material, salt, purpose, 64, \"sha256\");\n            return { salt, material, derivedKey: new _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(key) };\n        });\n    }\n    deriveKeyFromMaterial(material, salt, purpose) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const key = yield this.cryptoFunctionService.hkdf(material, salt, purpose, 64, \"sha256\");\n            return new _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(key);\n        });\n    }\n    deriveKeyFromPassword(password, salt, kdfConfig) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let key = null;\n            if (kdfConfig.kdfType == null || kdfConfig.kdfType === _enums__WEBPACK_IMPORTED_MODULE_1__.KdfType.PBKDF2_SHA256) {\n                if (kdfConfig.iterations == null) {\n                    kdfConfig.iterations = _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__.PBKDF2KdfConfig.ITERATIONS.defaultValue;\n                }\n                key = yield this.cryptoFunctionService.pbkdf2(password, salt, \"sha256\", kdfConfig.iterations);\n            }\n            else if (kdfConfig.kdfType == _enums__WEBPACK_IMPORTED_MODULE_1__.KdfType.Argon2id) {\n                if (kdfConfig.iterations == null) {\n                    kdfConfig.iterations = _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__.Argon2KdfConfig.ITERATIONS.defaultValue;\n                }\n                if (kdfConfig.memory == null) {\n                    kdfConfig.memory = _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__.Argon2KdfConfig.MEMORY.defaultValue;\n                }\n                if (kdfConfig.parallelism == null) {\n                    kdfConfig.parallelism = _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__.Argon2KdfConfig.PARALLELISM.defaultValue;\n                }\n                const saltHash = yield this.cryptoFunctionService.hash(salt, \"sha256\");\n                key = yield this.cryptoFunctionService.argon2(password, saltHash, kdfConfig.iterations, kdfConfig.memory * 1024, // convert to KiB from MiB\n                kdfConfig.parallelism);\n            }\n            else {\n                throw new Error(\"Unknown Kdf.\");\n            }\n            return new _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(key);\n        });\n    }\n    stretchKey(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const newKey = new Uint8Array(64);\n            const encKey = yield this.cryptoFunctionService.hkdfExpand(key.key, \"enc\", 32, \"sha256\");\n            const macKey = yield this.cryptoFunctionService.hkdfExpand(key.key, \"mac\", 32, \"sha256\");\n            newKey.set(new Uint8Array(encKey));\n            newKey.set(new Uint8Array(macKey), 32);\n            return new _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(newKey);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8688 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/key-generation.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/key-state/org-keys.state.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/platform/services/key-state/org-keys.state.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   USER_ENCRYPTED_ORGANIZATION_KEYS: () => (/* binding */ USER_ENCRYPTED_ORGANIZATION_KEYS)\n/* harmony export */ });\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../state */ \"../../libs/common/src/platform/state/index.ts\");\n\nconst USER_ENCRYPTED_ORGANIZATION_KEYS = _state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition.record(_state__WEBPACK_IMPORTED_MODULE_0__.CRYPTO_DISK, \"organizationKeys\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2tleS1zdGF0ZS9vcmcta2V5cy5zdGF0ZS50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUU2RDtBQUV0RCxNQUFNLGdDQUFnQyxHQUFHLHFEQUFpQixDQUFDLE1BQU0sQ0FHdEUsK0NBQVcsRUFBRSxrQkFBa0IsRUFBRTtJQUNqQyxZQUFZLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxDQUFDLEdBQUc7SUFDMUIsT0FBTyxFQUFFLENBQUMsUUFBUSxDQUFDO0NBQ3BCLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9zZXJ2aWNlcy9rZXktc3RhdGUvb3JnLWtleXMuc3RhdGUudHM/MTIyNiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbmNyeXB0ZWRPcmdhbml6YXRpb25LZXlEYXRhIH0gZnJvbSBcIi4uLy4uLy4uL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RhdGEvZW5jcnlwdGVkLW9yZ2FuaXphdGlvbi1rZXkuZGF0YVwiO1xuaW1wb3J0IHsgT3JnYW5pemF0aW9uSWQgfSBmcm9tIFwiLi4vLi4vLi4vdHlwZXMvZ3VpZFwiO1xuaW1wb3J0IHsgQ1JZUFRPX0RJU0ssIFVzZXJLZXlEZWZpbml0aW9uIH0gZnJvbSBcIi4uLy4uL3N0YXRlXCI7XG5cbmV4cG9ydCBjb25zdCBVU0VSX0VOQ1JZUFRFRF9PUkdBTklaQVRJT05fS0VZUyA9IFVzZXJLZXlEZWZpbml0aW9uLnJlY29yZDxcbiAgRW5jcnlwdGVkT3JnYW5pemF0aW9uS2V5RGF0YSxcbiAgT3JnYW5pemF0aW9uSWRcbj4oQ1JZUFRPX0RJU0ssIFwib3JnYW5pemF0aW9uS2V5c1wiLCB7XG4gIGRlc2VyaWFsaXplcjogKG9iaikgPT4gb2JqLFxuICBjbGVhck9uOiBbXCJsb2dvdXRcIl0sXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/key-state/org-keys.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/key-state/provider-keys.state.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/platform/services/key-state/provider-keys.state.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   USER_ENCRYPTED_PROVIDER_KEYS: () => (/* binding */ USER_ENCRYPTED_PROVIDER_KEYS)\n/* harmony export */ });\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../state */ \"../../libs/common/src/platform/state/index.ts\");\n\nconst USER_ENCRYPTED_PROVIDER_KEYS = _state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition.record(_state__WEBPACK_IMPORTED_MODULE_0__.CRYPTO_DISK, \"providerKeys\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2tleS1zdGF0ZS9wcm92aWRlci1rZXlzLnN0YXRlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBRTZEO0FBRXRELE1BQU0sNEJBQTRCLEdBQUcscURBQWlCLENBQUMsTUFBTSxDQUNsRSwrQ0FBVyxFQUNYLGNBQWMsRUFDZDtJQUNFLFlBQVksRUFBRSxDQUFDLEdBQUcsRUFBRSxFQUFFLENBQUMsR0FBRztJQUMxQixPQUFPLEVBQUUsQ0FBQyxRQUFRLENBQUM7Q0FDcEIsQ0FDRixDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2tleS1zdGF0ZS9wcm92aWRlci1rZXlzLnN0YXRlLnRzPzQ1NjQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUHJvdmlkZXJJZCB9IGZyb20gXCIuLi8uLi8uLi90eXBlcy9ndWlkXCI7XG5pbXBvcnQgeyBFbmNyeXB0ZWRTdHJpbmcgfSBmcm9tIFwiLi4vLi4vbW9kZWxzL2RvbWFpbi9lbmMtc3RyaW5nXCI7XG5pbXBvcnQgeyBDUllQVE9fRElTSywgVXNlcktleURlZmluaXRpb24gfSBmcm9tIFwiLi4vLi4vc3RhdGVcIjtcblxuZXhwb3J0IGNvbnN0IFVTRVJfRU5DUllQVEVEX1BST1ZJREVSX0tFWVMgPSBVc2VyS2V5RGVmaW5pdGlvbi5yZWNvcmQ8RW5jcnlwdGVkU3RyaW5nLCBQcm92aWRlcklkPihcbiAgQ1JZUFRPX0RJU0ssXG4gIFwicHJvdmlkZXJLZXlzXCIsXG4gIHtcbiAgICBkZXNlcmlhbGl6ZXI6IChvYmopID0+IG9iaixcbiAgICBjbGVhck9uOiBbXCJsb2dvdXRcIl0sXG4gIH0sXG4pO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/key-state/provider-keys.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/key-state/user-key.state.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/platform/services/key-state/user-key.state.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   USER_ENCRYPTED_PRIVATE_KEY: () => (/* binding */ USER_ENCRYPTED_PRIVATE_KEY),\n/* harmony export */   USER_EVER_HAD_USER_KEY: () => (/* binding */ USER_EVER_HAD_USER_KEY),\n/* harmony export */   USER_KEY: () => (/* binding */ USER_KEY)\n/* harmony export */ });\n/* harmony import */ var _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../state */ \"../../libs/common/src/platform/state/index.ts\");\n\n\nconst USER_EVER_HAD_USER_KEY = new _state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_1__.CRYPTO_DISK, \"everHadUserKey\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\nconst USER_ENCRYPTED_PRIVATE_KEY = new _state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_1__.CRYPTO_DISK, \"privateKey\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\nconst USER_KEY = new _state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_1__.CRYPTO_MEMORY, \"userKey\", {\n    deserializer: (obj) => _models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_0__.SymmetricCryptoKey.fromJSON(obj),\n    clearOn: [\"logout\", \"lock\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL2tleS1zdGF0ZS91c2VyLWtleS5zdGF0ZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUU4RTtBQUNGO0FBRXJFLE1BQU0sc0JBQXNCLEdBQUcsSUFBSSxxREFBaUIsQ0FDekQsK0NBQVcsRUFDWCxnQkFBZ0IsRUFDaEI7SUFDRSxZQUFZLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxDQUFDLEdBQUc7SUFDMUIsT0FBTyxFQUFFLENBQUMsUUFBUSxDQUFDO0NBQ3BCLENBQ0YsQ0FBQztBQUVLLE1BQU0sMEJBQTBCLEdB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JLZXlEZWZpbml0aW9uPGJvb2xlYW4+KFxuICBDUllQVE9fRElTSyxcbiAgXCJldmVySGFkVXNlcktleVwiLFxuICB7XG4gICAgZGVzZXJpYWxpemVyOiAob2JqKSA9PiBvYmosXG4gICAgY2xlYXJPbjogW1wibG9nb3V0XCJdLFxuICB9LFxuKTtcblxuZXhwb3J0IGNvbnN0IFVTRVJfRU5DUllQVEVEX1BSSVZBVEVfS0VZID0gbmV3IFVzZXJLZXlEZWZpbml0aW9uPEVuY3J5cHRlZFN0cmluZz4oXG4gIENSWVBUT19ESVNLLFxuICBcInByaXZhdGVLZXlcIixcbiAge1xuICAgIGRlc2VyaWFsaXplcjogKG9iaikgPT4gb2JqLFxuICAgIGNsZWFyT246IFtcImxvZ291dFwiXSxcbiAgfSxcbik7XG5cbmV4cG9ydCBjb25zdCBVU0VSX0tFWSA9IG5ldyBVc2VyS2V5RGVmaW5pdGlvbjxVc2VyS2V5PihDUllQVE9fTUVNT1JZLCBcInVzZXJLZXlcIiwge1xuICBkZXNlcmlhbGl6ZXI6IChvYmopID0+IFN5bW1ldHJpY0NyeXB0b0tleS5mcm9tSlNPTihvYmopIGFzIFVzZXJLZXksXG4gIGNsZWFyT246IFtcImxvZ291dFwiLCBcImxvY2tcIl0sXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/key-state/user-key.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/memory-storage.service.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/platform/services/memory-storage.service.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MemoryStorageService: () => (/* binding */ MemoryStorageService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _abstractions_storage_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../abstractions/storage.service */ \"../../libs/common/src/platform/abstractions/storage.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass MemoryStorageService extends _abstractions_storage_service__WEBPACK_IMPORTED_MODULE_1__.AbstractStorageService {\n    constructor() {\n        super(...arguments);\n        this.store = new Map();\n        this.updatesSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();\n    }\n    get valuesRequireDeserialization() {\n        return false;\n    }\n    get updates$() {\n        return this.updatesSubject.asObservable();\n    }\n    get(key) {\n        if (this.store.has(key)) {\n            const obj = this.store.get(key);\n            return Promise.resolve(obj);\n        }\n        return Promise.resolve(null);\n    }\n    has(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.get(key)) != null;\n        });\n    }\n    save(key, obj) {\n        if (obj == null) {\n            return this.remove(key);\n        }\n        // TODO: Remove once foreground/background contexts are separated in browser\n        // Needed to ensure ownership of all memory by the context running the storage service\n        const toStore = structuredClone(obj);\n        this.store.set(key, toStore);\n        this.updatesSubject.next({ key, updateType: \"save\" });\n        return Promise.resolve();\n    }\n    remove(key) {\n        this.store.delete(key);\n        this.updatesSubject.next({ key, updateType: \"remove\" });\n        return Promise.resolve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dW5kL2JhY2tncm91bmQgY29udGV4dHMgYXJlIHNlcGFyYXRlZCBpbiBicm93c2VyXG4gICAgLy8gTmVlZGVkIHRvIGVuc3VyZSBvd25lcnNoaXAgb2YgYWxsIG1lbW9yeSBieSB0aGUgY29udGV4dCBydW5uaW5nIHRoZSBzdG9yYWdlIHNlcnZpY2VcbiAgICBjb25zdCB0b1N0b3JlID0gc3RydWN0dXJlZENsb25lKG9iaik7XG4gICAgdGhpcy5zdG9yZS5zZXQoa2V5LCB0b1N0b3JlKTtcbiAgICB0aGlzLnVwZGF0ZXNTdWJqZWN0Lm5leHQoeyBrZXksIHVwZGF0ZVR5cGU6IFwic2F2ZVwiIH0pO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTtcbiAgfVxuXG4gIHJlbW92ZShrZXk6IHN0cmluZyk6IFByb21pc2U8dm9pZD4ge1xuICAgIHRoaXMuc3RvcmUuZGVsZXRlKGtleSk7XG4gICAgdGhpcy51cGRhdGVzU3ViamVjdC5uZXh0KHsga2V5LCB1cGRhdGVUeXBlOiBcInJlbW92ZVwiIH0pO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/memory-storage.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/migration-builder.service.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/platform/services/migration-builder.service.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MigrationBuilderService: () => (/* binding */ MigrationBuilderService)\n/* harmony export */ });\n/* harmony import */ var _state_migrations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../state-migrations */ \"../../libs/common/src/state-migrations/index.ts\");\n\nclass MigrationBuilderService {\n    build() {\n        var _a;\n        return ((_a = this.migrationBuilderCache) !== null && _a !== void 0 ? _a : (this.migrationBuilderCache = (0,_state_migrations__WEBPACK_IMPORTED_MODULE_0__.createMigrationBuilder)()));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL21pZ3JhdGlvbi1idWlsZGVyLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBZ0U7QUFHekQsTUFBTSx1QkFBdUI7SUFHbEMsS0FBSzs7UUFDSCxPQUFPLE9BQUMsSUFBSSxDQUFDLHFCQUFxQixvQ0FBMUIsSUFBSSxDQUFDLHFCQUFxQixHQUFLLHlFQUFzQixFQUFFLEVBQUMsQ0FBQztJQUNuRSxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vc2VydmljZXMvbWlncmF0aW9uLWJ1aWxkZXIuc2VydmljZS50cz8yYTVkIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNyZWF0ZU1pZ3JhdGlvbkJ1aWxkZXIgfSBmcm9tIFwiLi4vLi4vc3RhdGUtbWlncmF0aW9uc1wiO1xuaW1wb3J0IHsgTWlncmF0aW9uQnVpbGRlciB9IGZyb20gXCIuLi8uLi9zdGF0ZS1taWdyYXRpb25zL21pZ3JhdGlvbi1idWlsZGVyXCI7XG5cbmV4cG9ydCBjbGFzcyBNaWdyYXRpb25CdWlsZGVyU2VydmljZSB7XG4gIHByaXZhdGUgbWlncmF0aW9uQnVpbGRlckNhY2hlOiBNaWdyYXRpb25CdWlsZGVyO1xuXG4gIGJ1aWxkKCkge1xuICAgIHJldHVybiAodGhpcy5taWdyYXRpb25CdWlsZGVyQ2FjaGUgPz89IGNyZWF0ZU1pZ3JhdGlvbkJ1aWxkZXIoKSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/migration-builder.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/migration-runner.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/services/migration-runner.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MigrationRunner: () => (/* binding */ MigrationRunner)\n/* harmony export */ });\n/* harmony import */ var _state_migrations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../state-migrations */ \"../../libs/common/src/state-migrations/index.ts\");\n/* harmony import */ var _state_migrations_migrate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../state-migrations/migrate */ \"../../libs/common/src/state-migrations/migrate.ts\");\n/* harmony import */ var _state_migrations_migration_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../state-migrations/migration-helper */ \"../../libs/common/src/state-migrations/migration-helper.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass MigrationRunner {\n    constructor(diskStorage, logService, migrationBuilderService, clientType) {\n        this.diskStorage = diskStorage;\n        this.logService = logService;\n        this.migrationBuilderService = migrationBuilderService;\n        this.clientType = clientType;\n    }\n    run() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const migrationHelper = new _state_migrations_migration_helper__WEBPACK_IMPORTED_MODULE_2__.MigrationHelper(yield (0,_state_migrations_migrate__WEBPACK_IMPORTED_MODULE_1__.currentVersion)(this.diskStorage, this.logService), this.diskStorage, this.logService, \"general\", this.clientType);\n            if (migrationHelper.currentVersion < 0) {\n                // Cannot determine state, assuming empty so we don't repeatedly apply a migration.\n                yield this.diskStorage.save(\"stateVersion\", _state_migrations_migrate__WEBPACK_IMPORTED_MODULE_1__.CURRENT_VERSION);\n                return;\n            }\n            const migrationBuilder = this.migrationBuilderService.build();\n            yield migrationBuilder.migrate(migrationHelper);\n        });\n    }\n    waitForCompletion() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield (0,_state_migrations__WEBPACK_IMPORTED_MODULE_0__.waitForMigrations)(this.diskStorage, this.logService);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL21pZ3JhdGlvbi1ydW5uZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUMyRDtBQUNzQjtBQUNQO0FBTW5FLE1BQU0sZUFBZTtJQUMxQixZQUNZLFdBQW1DLEVBQ25DLFVBQXNCLEVBQ3RCLHVCQUFnRCxFQUNsRCxVQUFzQjtRQUhwQixnQkFBVyxHQUFYLFdBQVcsQ0FBd0I7UUFDbkMsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQUN0Qiw0QkFBdUIsR0FBdkIsdUJBQXVCLENBQXlCO1FBQ2xELGVBQVUsR0FBVixVQUFVLENBQVk7SUFDN0IsQ0FBQztJQUVFLEdBQUc7O1lBQ1AsTUFBTSxlQUFlLEdBQUcsSUFBSSwrRUFBZSxDQUN6QyxNQUFNLH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CIsXG4gICAgICB0aGlzLmNsaWVudFR5cGUsXG4gICAgKTtcblxuICAgIGlmIChtaWdyYXRpb25IZWxwZXIuY3VycmVudFZlcnNpb24gPCAwKSB7XG4gICAgICAvLyBDYW5ub3QgZGV0ZXJtaW5lIHN0YXRlLCBhc3N1bWluZyBlbXB0eSBzbyB3ZSBkb24ndCByZXBlYXRlZGx5IGFwcGx5IGEgbWlncmF0aW9uLlxuICAgICAgYXdhaXQgdGhpcy5kaXNrU3RvcmFnZS5zYXZlKFwic3RhdGVWZXJzaW9uXCIsIENVUlJFTlRfVkVSU0lPTik7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgY29uc3QgbWlncmF0aW9uQnVpbGRlciA9IHRoaXMubWlncmF0aW9uQnVpbGRlclNlcnZpY2UuYnVpbGQoKTtcblxuICAgIGF3YWl0IG1pZ3JhdGlvbkJ1aWxkZXIubWlncmF0ZShtaWdyYXRpb25IZWxwZXIpO1xuICB9XG5cbiAgYXN5bmMgd2FpdEZvckNvbXBsZXRpb24oKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgYXdhaXQgd2FpdEZvck1pZ3JhdGlvbnModGhpcy5kaXNrU3RvcmFnZSwgdGhpcy5sb2dTZXJ2aWNlKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/migration-runner.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/sdk/default-sdk-client-factory.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/platform/services/sdk/default-sdk-client-factory.ts ***!
  \*********************************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSdkClientFactory: () => (/* binding */ DefaultSdkClientFactory)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/sdk-internal */ \"../../node_modules/@bitwarden/sdk-internal/index.js\");\n/* harmony import */ var _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/sdk-internal */ \"../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js\");\n/* harmony import */ var _bitwarden_sdk_internal_bitwarden_wasm_internal_bg_wasm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/sdk-internal/bitwarden_wasm_internal_bg.wasm */ \"../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.wasm\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_bitwarden_sdk_internal_bitwarden_wasm_internal_bg_wasm__WEBPACK_IMPORTED_MODULE_1__]);\n_bitwarden_sdk_internal_bitwarden_wasm_internal_bg_wasm__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n/**\n * Directly imports the Bitwarden SDK and initializes it.\n *\n * **Warning**: This requires WASM support and will fail if the environment does not support it.\n */\nclass DefaultSdkClientFactory {\n    createSdkClient(...args) {\n        return __awaiter(this, void 0, void 0, function* () {\n            _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_0__.init(_bitwarden_sdk_internal_bitwarden_wasm_internal_bg_wasm__WEBPACK_IMPORTED_MODULE_1__);\n            return Promise.resolve(new _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_2__.BitwardenClient(...args));\n        });\n    }\n}\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL3Nkay9kZWZhdWx0LXNkay1jbGllbnQtZmFjdG9yeS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQStDO0FBQ21DO0FBSWxGOzs7O0dBSUc7QUFDSSxNQUFNLHVCQUF1QjtJQUM1QixlQUFlLENBQ25CLEdBQUcsSUFBdUQ7O1lBRXpELHlEQUFnQixDQUFDLG9GQUFNLENBQUMsQ0FBQztZQUUxQixPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxvRUFBbUIsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUM7UUFDM0QsQ0FBQztLQUFBO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vc2VydmljZXMvc2RrL2RlZmF1bHQtc2RrLWNsaWVudC1mYWN0b3J5LnRzP2RlOGEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgc2RrIGZyb20gXCJAYml0d2FyZGVuL3Nkay1pbnRlcm5hbFwiO1xuaW1wb3J0ICogYXMgbW9kdWxlIGZyb20gXCJAYml0d2FyZGVuL3Nkay1pbnRlcm5hbC9iaXR3YXJkZW5fd2FzbV9pbnRlcm5hbF9iZy53YXNtXCI7XG5cbmltcG9ydCB7IFNka0NsaWVudEZhY3RvcnkgfSBmcm9tIFwiLi4vLi4vYWJzdHJhY3Rpb25zL3Nkay9zZGstY2xpZW50LWZhY3RvcnlcIjtcblxuLyoqXG4gKiBEaXJlY3RseSBpbXBvcnRzIHRoZSBCaXR3YXJkZW4gU0RLIGFuZCBpbml0aWFsaXplcyBpdC5cbiAqXG4gKiAqKldhcm5pbmcqKjogVGhpcyByZXF1aXJlcyBXQVNNIHN1cHBvcnQgYW5kIHdpbGwgZmFpbCBpZiB0aGUgZW52aXJvbm1lbnQgZG9lcyBub3Qgc3VwcG9ydCBpdC5cbiAqL1xuZXhwb3J0IGNsYXNzIERlZmF1bHRTZGtDbGllbnRGYWN0b3J5IGltcGxlbWVudHMgU2RrQ2xpZW50RmFjdG9yeSB7XG4gIGFzeW5jIGNyZWF0ZVNka0NsaWVudChcbiAgICAuLi5hcmdzOiBDb25zdHJ1Y3RvclBhcmFtZXRlcnM8dHlwZW9mIHNkay5CaXR3YXJkZW5DbGllbnQ+XG4gICk6IFByb21pc2U8c2RrLkJpdHdhcmRlbkNsaWVudD4ge1xuICAgIChzZGsgYXMgYW55KS5pbml0KG1vZHVsZSk7XG5cbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKG5ldyBzZGsuQml0d2FyZGVuQ2xpZW50KC4uLmFyZ3MpKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/sdk/default-sdk-client-factory.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/sdk/default-sdk.service.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/platform/services/sdk/default-sdk.service.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSdkService: () => (/* binding */ DefaultSdkService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/sdk-internal */ \"../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js\");\n/* harmony import */ var _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../enums/device-type.enum */ \"../../libs/common/src/enums/device-type.enum.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _misc_compare_values__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../misc/compare-values */ \"../../libs/common/src/platform/misc/compare-values.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass DefaultSdkService {\n    constructor(sdkClientFactory, environmentService, platformUtilsService, accountService, kdfConfigService, keyService, apiService, // Yes we shouldn't import ApiService, but it's temporary\n    userAgent = null) {\n        this.sdkClientFactory = sdkClientFactory;\n        this.environmentService = environmentService;\n        this.platformUtilsService = platformUtilsService;\n        this.accountService = accountService;\n        this.kdfConfigService = kdfConfigService;\n        this.keyService = keyService;\n        this.apiService = apiService;\n        this.userAgent = userAgent;\n        this.sdkClientCache = new Map();\n        this.client$ = this.environmentService.environment$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((env) => __awaiter(this, void 0, void 0, function* () {\n            const settings = this.toSettings(env);\n            return yield this.sdkClientFactory.createSdkClient(settings, _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_4__.LogLevel.Info);\n        })), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n        this.supported$ = this.client$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((client) => __awaiter(this, void 0, void 0, function* () {\n            return client.echo(\"bitwarden wasm!\") === \"bitwarden wasm!\";\n        })));\n    }\n    userClient$(userId) {\n        // TODO: Figure out what happens when the user logs out\n        if (this.sdkClientCache.has(userId)) {\n            return this.sdkClientCache.get(userId);\n        }\n        const account$ = this.accountService.accounts$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((accounts) => accounts[userId]), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)());\n        const kdfParams$ = this.kdfConfigService.getKdfConfig$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)());\n        const privateKey$ = this.keyService\n            .userEncryptedPrivateKey$(userId)\n            .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)());\n        const userKey$ = this.keyService.userKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)());\n        const orgKeys$ = this.keyService.encryptedOrgKeys$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(_misc_compare_values__WEBPACK_IMPORTED_MODULE_3__.compareValues));\n        const client$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.environmentService.environment$,\n            account$,\n            kdfParams$,\n            privateKey$,\n            userKey$,\n            orgKeys$,\n        ]).pipe(\n        // switchMap is required to allow the clean-up logic to be executed when `combineLatest` emits a new value.\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(([env, account, kdfParams, privateKey, userKey, orgKeys]) => {\n            // Create our own observable to be able to implement clean-up logic\n            return new rxjs__WEBPACK_IMPORTED_MODULE_0__.Observable((subscriber) => {\n                let client;\n                const createAndInitializeClient = () => __awaiter(this, void 0, void 0, function* () {\n                    if (privateKey == null || userKey == null) {\n                        return undefined;\n                    }\n                    const settings = this.toSettings(env);\n                    client = yield this.sdkClientFactory.createSdkClient(settings, _bitwarden_sdk_internal__WEBPACK_IMPORTED_MODULE_4__.LogLevel.Info);\n                    yield this.initializeClient(client, account, kdfParams, privateKey, userKey, orgKeys);\n                    return client;\n                });\n                createAndInitializeClient()\n                    .then((c) => {\n                    client = c;\n                    subscriber.next(c);\n                })\n                    .catch((e) => {\n                    subscriber.error(e);\n                });\n                return () => client === null || client === void 0 ? void 0 : client.free();\n            });\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.tap)({\n            finalize: () => this.sdkClientCache.delete(userId),\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n        this.sdkClientCache.set(userId, client$);\n        return client$;\n    }\n    failedToInitialize(category, error) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Only log on cloud instances\n            if (this.platformUtilsService.isDev() ||\n                !(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$)).isCloud) {\n                return;\n            }\n            return this.apiService.send(\"POST\", \"/wasm-debug\", {\n                category: category,\n                error: error === null || error === void 0 ? void 0 : error.message,\n            }, false, false, null, (headers) => {\n                headers.append(\"SDK-Version\", \"1.0.0\");\n            });\n        });\n    }\n    initializeClient(client, account, kdfParams, privateKey, userKey, orgKeys) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield client.crypto().initialize_user_crypto({\n                email: account.email,\n                method: { decryptedKey: { decrypted_user_key: userKey.keyB64 } },\n                kdfParams: kdfParams.kdfType === _enums__WEBPACK_IMPORTED_MODULE_2__.KdfType.PBKDF2_SHA256\n                    ? {\n                        pBKDF2: { iterations: kdfParams.iterations },\n                    }\n                    : {\n                        argon2id: {\n                            iterations: kdfParams.iterations,\n                            memory: kdfParams.memory,\n                            parallelism: kdfParams.parallelism,\n                        },\n                    },\n                privateKey,\n            });\n            // We initialize the org crypto even if the org_keys are\n            // null to make sure any existing org keys are cleared.\n            yield client.crypto().initialize_org_crypto({\n                organizationKeys: new Map(Object.entries(orgKeys !== null && orgKeys !== void 0 ? orgKeys : {})\n                    .filter(([_, v]) => v.type === \"organization\")\n                    .map(([k, v]) => [k, v.key])),\n            });\n        });\n    }\n    toSettings(env) {\n        var _a;\n        return {\n            apiUrl: env.getApiUrl(),\n            identityUrl: env.getIdentityUrl(),\n            deviceType: this.toDevice(this.platformUtilsService.getDevice()),\n            userAgent: (_a = this.userAgent) !== null && _a !== void 0 ? _a : navigator.userAgent,\n        };\n    }\n    toDevice(device) {\n        switch (device) {\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.Android:\n                return \"Android\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.iOS:\n                return \"iOS\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.ChromeExtension:\n                return \"ChromeExtension\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.FirefoxExtension:\n                return \"FirefoxExtension\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.OperaExtension:\n                return \"OperaExtension\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.EdgeExtension:\n                return \"EdgeExtension\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.WindowsDesktop:\n                return \"WindowsDesktop\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.MacOsDesktop:\n                return \"MacOsDesktop\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.LinuxDesktop:\n                return \"LinuxDesktop\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.ChromeBrowser:\n                return \"ChromeBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.FirefoxBrowser:\n                return \"FirefoxBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.OperaBrowser:\n                return \"OperaBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.EdgeBrowser:\n                return \"EdgeBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.IEBrowser:\n                return \"IEBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.UnknownBrowser:\n                return \"UnknownBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.AndroidAmazon:\n                return \"AndroidAmazon\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.UWP:\n                return \"UWP\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.SafariBrowser:\n                return \"SafariBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.VivaldiBrowser:\n                return \"VivaldiBrowser\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.VivaldiExtension:\n                return \"VivaldiExtension\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.SafariExtension:\n                return \"SafariExtension\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.Server:\n                return \"Server\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.WindowsCLI:\n                return \"WindowsCLI\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.MacOsCLI:\n                return \"MacOsCLI\";\n            case _enums_device_type_enum__WEBPACK_IMPORTED_MODULE_1__.DeviceType.LinuxCLI:\n                return \"LinuxCLI\";\n            default:\n                return \"SDK\";\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20224 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/sdk/default-sdk.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/sdk/noop-sdk-client-factory.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/platform/services/sdk/noop-sdk-client-factory.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NoopSdkClientFactory: () => (/* binding */ NoopSdkClientFactory)\n/* harmony export */ });\n/**\n * Noop SDK client factory.\n *\n * Used during SDK rollout to prevent bundling the SDK with some applications.\n */\nclass NoopSdkClientFactory {\n    createSdkClient(...args) {\n        return Promise.reject(new Error(\"SDK not available\"));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL3Nkay9ub29wLXNkay1jbGllbnQtZmFjdG9yeS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBSUE7Ozs7R0FJRztBQUNJLE1BQU0sb0JBQW9CO0lBQy9CLGVBQWUsQ0FDYixHQUFHLElBQW1EO1FBRXRELE9BQU8sT0FBTyxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDLENBQUM7SUFDeEQsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL3Nkay9ub29wLXNkay1jbGllbnQtZmFjdG9yeS50cz8wYWIxIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgQml0d2FyZGVuQ2xpZW50IH0gZnJvbSBcIkBiaXR3YXJkZW4vc2RrLWludGVybmFsXCI7XG5cbmltcG9ydCB7IFNka0NsaWVudEZhY3RvcnkgfSBmcm9tIFwiLi4vLi4vYWJzdHJhY3Rpb25zL3Nkay9zZGstY2xpZW50LWZhY3RvcnlcIjtcblxuLyoqXG4gKiBOb29wIFNESyBjbGllbnQgZmFjdG9yeS5cbiAqXG4gKiBVc2VkIGR1cmluZyBTREsgcm9sbG91dCB0byBwcmV2ZW50IGJ1bmRsaW5nIHRoZSBTREsgd2l0aCBzb21lIGFwcGxpY2F0aW9ucy5cbiAqL1xuZXhwb3J0IGNsYXNzIE5vb3BTZGtDbGllbnRGYWN0b3J5IGltcGxlbWVudHMgU2RrQ2xpZW50RmFjdG9yeSB7XG4gIGNyZWF0ZVNka0NsaWVudChcbiAgICAuLi5hcmdzOiBDb25zdHJ1Y3RvclBhcmFtZXRlcnM8dHlwZW9mIEJpdHdhcmRlbkNsaWVudD5cbiAgKTogUHJvbWlzZTxCaXR3YXJkZW5DbGllbnQ+IHtcbiAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QobmV3IEVycm9yKFwiU0RLIG5vdCBhdmFpbGFibGVcIikpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/sdk/noop-sdk-client-factory.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/state.service.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/platform/services/state.service.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StateService: () => (/* binding */ StateService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _models_domain_account__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/domain/account */ \"../../libs/common/src/platform/models/domain/account.ts\");\n/* harmony import */ var _models_domain_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/domain/state */ \"../../libs/common/src/platform/models/domain/state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst keys = {\n    state: \"state\",\n    stateVersion: \"stateVersion\",\n    global: \"global\",\n    tempAccountSettings: \"tempAccountSettings\", // used to hold account specific settings (i.e clear clipboard) between initial migration and first account authentication\n};\nconst partialKeys = {\n    userAutoKey: \"_user_auto\",\n    userBiometricKey: \"_user_biometric\",\n    autoKey: \"_masterkey_auto\",\n    masterKey: \"_masterkey\",\n};\nconst DDG_SHARED_KEY = \"DuckDuckGoSharedKey\";\nclass StateService {\n    constructor(storageService, secureStorageService, memoryStorageService, logService, stateFactory, accountService, environmentService, tokenService, migrationRunner) {\n        this.storageService = storageService;\n        this.secureStorageService = secureStorageService;\n        this.memoryStorageService = memoryStorageService;\n        this.logService = logService;\n        this.stateFactory = stateFactory;\n        this.accountService = accountService;\n        this.environmentService = environmentService;\n        this.tokenService = tokenService;\n        this.migrationRunner = migrationRunner;\n        this.hasBeenInited = false;\n        this.isRecoveredSession = false;\n        // default account serializer, must be overridden by child class\n        this.accountDeserializer = _models_domain_account__WEBPACK_IMPORTED_MODULE_2__.Account.fromJSON;\n    }\n    init() {\n        return __awaiter(this, arguments, void 0, function* (initOptions = {}) {\n            // Deconstruct and apply defaults\n            const { runMigrations = true } = initOptions;\n            if (this.hasBeenInited) {\n                return;\n            }\n            if (runMigrations) {\n                yield this.migrationRunner.run();\n            }\n            else {\n                // It may have been requested to not run the migrations but we should defensively not\n                // continue this method until migrations have a chance to be completed elsewhere.\n                yield this.migrationRunner.waitForCompletion();\n            }\n            yield this.state().then((state) => __awaiter(this, void 0, void 0, function* () {\n                if (state == null) {\n                    yield this.setState(new _models_domain_state__WEBPACK_IMPORTED_MODULE_3__.State(this.createGlobals()));\n                }\n                else {\n                    this.isRecoveredSession = true;\n                }\n            }));\n            yield this.initAccountState();\n            this.hasBeenInited = true;\n        });\n    }\n    initAccountState() {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.isRecoveredSession) {\n                return;\n            }\n            // Get all likely authenticated accounts\n            const authenticatedAccounts = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.accounts$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((accounts) => Object.keys(accounts))));\n            yield this.updateState((state) => __awaiter(this, void 0, void 0, function* () {\n                for (const i in authenticatedAccounts) {\n                    state = yield this.syncAccountFromDisk(authenticatedAccounts[i]);\n                }\n                return state;\n            }));\n        });\n    }\n    syncAccountFromDisk(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                return;\n            }\n            const diskAccount = yield this.getAccountFromDisk({ userId: userId });\n            const state = yield this.updateState((state) => __awaiter(this, void 0, void 0, function* () {\n                if (state.accounts == null) {\n                    state.accounts = {};\n                }\n                state.accounts[userId] = this.createAccount();\n                if (diskAccount == null) {\n                    // Return early because we can't set the diskAccount.profile\n                    // if diskAccount itself is null\n                    return state;\n                }\n                state.accounts[userId].profile = diskAccount.profile;\n                return state;\n            }));\n            return state;\n        });\n    }\n    addAccount(account) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.environmentService.seedUserEnvironment(account.profile.userId);\n            yield this.updateState((state) => __awaiter(this, void 0, void 0, function* () {\n                state.accounts[account.profile.userId] = account;\n                return state;\n            }));\n            yield this.scaffoldNewAccountStorage(account);\n        });\n    }\n    clean(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(options, yield this.defaultInMemoryOptions());\n            yield this.deAuthenticateAccount(options.userId);\n            yield this.removeAccountFromDisk(options === null || options === void 0 ? void 0 : options.userId);\n            yield this.removeAccountFromMemory(options === null || options === void 0 ? void 0 : options.userId);\n        });\n    }\n    /**\n     * user key when using the \"never\" option of vault timeout\n     */\n    getUserKeyAutoUnlock(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(this.reconcileOptions(options, { keySuffix: \"auto\" }), yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return null;\n            }\n            return yield this.secureStorageService.get(`${options.userId}${partialKeys.userAutoKey}`, options);\n        });\n    }\n    /**\n     * user key when using the \"never\" option of vault timeout\n     */\n    setUserKeyAutoUnlock(value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(this.reconcileOptions(options, { keySuffix: \"auto\" }), yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return;\n            }\n            yield this.saveSecureStorageKey(partialKeys.userAutoKey, value, options);\n        });\n    }\n    /**\n     * User's encrypted symmetric key when using biometrics\n     */\n    getUserKeyBiometric(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(this.reconcileOptions(options, { keySuffix: \"biometric\" }), yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return null;\n            }\n            return yield this.secureStorageService.get(`${options.userId}${partialKeys.userBiometricKey}`, options);\n        });\n    }\n    hasUserKeyBiometric(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(this.reconcileOptions(options, { keySuffix: \"biometric\" }), yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return false;\n            }\n            return yield this.secureStorageService.has(`${options.userId}${partialKeys.userBiometricKey}`, options);\n        });\n    }\n    setUserKeyBiometric(value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(this.reconcileOptions(options, { keySuffix: \"biometric\" }), yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return;\n            }\n            yield this.saveSecureStorageKey(partialKeys.userBiometricKey, value, options);\n        });\n    }\n    /**\n     * @deprecated Use UserKeyAuto instead\n     */\n    setCryptoMasterKeyAuto(value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(this.reconcileOptions(options, { keySuffix: \"auto\" }), yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return;\n            }\n            yield this.saveSecureStorageKey(partialKeys.autoKey, value, options);\n        });\n    }\n    /**\n     * @deprecated I don't see where this is even used\n     */\n    getCryptoMasterKeyB64(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(options, yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return null;\n            }\n            return yield this.secureStorageService.get(`${options === null || options === void 0 ? void 0 : options.userId}${partialKeys.masterKey}`, options);\n        });\n    }\n    /**\n     * @deprecated I don't see where this is even used\n     */\n    setCryptoMasterKeyB64(value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(options, yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return;\n            }\n            yield this.saveSecureStorageKey(partialKeys.masterKey, value, options);\n        });\n    }\n    getDuckDuckGoSharedKey(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(options, yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return null;\n            }\n            return yield this.secureStorageService.get(DDG_SHARED_KEY, options);\n        });\n    }\n    setDuckDuckGoSharedKey(value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            options = this.reconcileOptions(options, yield this.defaultSecureStorageOptions());\n            if ((options === null || options === void 0 ? void 0 : options.userId) == null) {\n                return;\n            }\n            value == null\n                ? yield this.secureStorageService.remove(DDG_SHARED_KEY, options)\n                : yield this.secureStorageService.save(DDG_SHARED_KEY, value, options);\n        });\n    }\n    setEnableDuckDuckGoBrowserIntegration(value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const globals = yield this.getGlobals(this.reconcileOptions(options, yield this.defaultOnDiskOptions()));\n            globals.enableDuckDuckGoBrowserIntegration = value;\n            yield this.saveGlobals(globals, this.reconcileOptions(options, yield this.defaultOnDiskOptions()));\n        });\n    }\n    /**\n     * @deprecated Use UserKey instead\n     */\n    getEncryptedCryptoSymmetricKey(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            return (_a = (yield this.getAccount(this.reconcileOptions(options, yield this.defaultOnDiskOptions())))) === null || _a === void 0 ? void 0 : _a.keys.cryptoSymmetricKey.encrypted;\n        });\n    }\n    getIsAuthenticated(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return ((yield this.tokenService.getAccessToken(options === null || options === void 0 ? void 0 : options.userId)) != null &&\n                (yield this.getUserId(options)) != null);\n        });\n    }\n    getUserId(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            return (_b = (_a = (yield this.getAccount(this.reconcileOptions(options, yield this.defaultOnDiskOptions())))) === null || _a === void 0 ? void 0 : _a.profile) === null || _b === void 0 ? void 0 : _b.userId;\n        });\n    }\n    getGlobals(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let globals;\n            if (this.useMemory(options.storageLocation)) {\n                globals = yield this.getGlobalsFromMemory();\n            }\n            if (this.useDisk && globals == null) {\n                globals = yield this.getGlobalsFromDisk(options);\n            }\n            if (globals == null) {\n                globals = this.createGlobals();\n            }\n            return globals;\n        });\n    }\n    saveGlobals(globals, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.useMemory(options.storageLocation)\n                ? this.saveGlobalsToMemory(globals)\n                : yield this.saveGlobalsToDisk(globals, options);\n        });\n    }\n    getGlobalsFromMemory() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.state()).globals;\n        });\n    }\n    getGlobalsFromDisk(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.storageService.get(keys.global, options);\n        });\n    }\n    saveGlobalsToMemory(globals) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.updateState((state) => __awaiter(this, void 0, void 0, function* () {\n                state.globals = globals;\n                return state;\n            }));\n        });\n    }\n    saveGlobalsToDisk(globals, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.useSecureStorage) {\n                yield this.secureStorageService.save(keys.global, globals, options);\n            }\n            else {\n                yield this.storageService.save(keys.global, globals, options);\n            }\n        });\n    }\n    getAccount(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                let account;\n                if (this.useMemory(options.storageLocation)) {\n                    account = yield this.getAccountFromMemory(options);\n                }\n                if (this.useDisk(options.storageLocation) && account == null) {\n                    account = yield this.getAccountFromDisk(options);\n                }\n                return account;\n            }\n            catch (e) {\n                this.logService.error(e);\n            }\n        });\n    }\n    getAccountFromMemory(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const userId = (_a = options.userId) !== null && _a !== void 0 ? _a : (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id))));\n            return yield this.state().then((state) => __awaiter(this, void 0, void 0, function* () {\n                if (state.accounts == null) {\n                    return null;\n                }\n                return state.accounts[userId];\n            }));\n        });\n    }\n    getAccountFromDisk(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            const userId = (_a = options.userId) !== null && _a !== void 0 ? _a : (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id))));\n            if (userId == null) {\n                return null;\n            }\n            const account = (options === null || options === void 0 ? void 0 : options.useSecureStorage)\n                ? ((_b = (yield this.secureStorageService.get(options.userId, options))) !== null && _b !== void 0 ? _b : (yield this.storageService.get(options.userId, this.reconcileOptions(options, { htmlStorageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.HtmlStorageLocation.Local }))))\n                : yield this.storageService.get(options.userId, options);\n            return account;\n        });\n    }\n    useMemory(storageLocation) {\n        return storageLocation === _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Memory || storageLocation === _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Both;\n    }\n    useDisk(storageLocation) {\n        return storageLocation === _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Disk || storageLocation === _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Both;\n    }\n    saveAccount(account_1) {\n        return __awaiter(this, arguments, void 0, function* (account, options = {\n            storageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Both,\n            useSecureStorage: false,\n        }) {\n            return this.useMemory(options.storageLocation)\n                ? yield this.saveAccountToMemory(account)\n                : yield this.saveAccountToDisk(account, options);\n        });\n    }\n    saveAccountToDisk(account, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const storageLocation = options.useSecureStorage\n                ? this.secureStorageService\n                : this.storageService;\n            yield storageLocation.save(`${options.userId}`, account, options);\n        });\n    }\n    saveAccountToMemory(account) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if ((yield this.getAccountFromMemory({ userId: account.profile.userId })) !== null) {\n                yield this.updateState((state) => {\n                    return new Promise((resolve) => {\n                        state.accounts[account.profile.userId] = account;\n                        resolve(state);\n                    });\n                });\n            }\n        });\n    }\n    scaffoldNewAccountStorage(account) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // We don't want to manipulate the referenced in memory account\n            const deepClone = JSON.parse(JSON.stringify(account));\n            yield this.scaffoldNewAccountLocalStorage(deepClone);\n            yield this.scaffoldNewAccountSessionStorage(deepClone);\n            yield this.scaffoldNewAccountMemoryStorage(deepClone);\n        });\n    }\n    // TODO: There is a tech debt item for splitting up these methods - only Web uses multiple storage locations in its storageService.\n    // For now these methods exist with some redundancy to facilitate this special web requirement.\n    scaffoldNewAccountLocalStorage(account) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.saveAccount(account, this.reconcileOptions({ userId: account.profile.userId }, yield this.defaultOnDiskLocalOptions()));\n        });\n    }\n    scaffoldNewAccountMemoryStorage(account) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.storageService.save(account.profile.userId, account, yield this.defaultOnDiskMemoryOptions());\n            yield this.saveAccount(account, this.reconcileOptions({ userId: account.profile.userId }, yield this.defaultOnDiskMemoryOptions()));\n        });\n    }\n    scaffoldNewAccountSessionStorage(account) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.storageService.save(account.profile.userId, account, yield this.defaultOnDiskMemoryOptions());\n            yield this.saveAccount(account, this.reconcileOptions({ userId: account.profile.userId }, yield this.defaultOnDiskOptions()));\n        });\n    }\n    reconcileOptions(requestedOptions, defaultOptions) {\n        var _a, _b, _c, _d, _e;\n        if (requestedOptions == null) {\n            return defaultOptions;\n        }\n        requestedOptions.userId = (_a = requestedOptions === null || requestedOptions === void 0 ? void 0 : requestedOptions.userId) !== null && _a !== void 0 ? _a : defaultOptions.userId;\n        requestedOptions.storageLocation =\n            (_b = requestedOptions === null || requestedOptions === void 0 ? void 0 : requestedOptions.storageLocation) !== null && _b !== void 0 ? _b : defaultOptions.storageLocation;\n        requestedOptions.useSecureStorage =\n            (_c = requestedOptions === null || requestedOptions === void 0 ? void 0 : requestedOptions.useSecureStorage) !== null && _c !== void 0 ? _c : defaultOptions.useSecureStorage;\n        requestedOptions.htmlStorageLocation =\n            (_d = requestedOptions === null || requestedOptions === void 0 ? void 0 : requestedOptions.htmlStorageLocation) !== null && _d !== void 0 ? _d : defaultOptions.htmlStorageLocation;\n        requestedOptions.keySuffix = (_e = requestedOptions === null || requestedOptions === void 0 ? void 0 : requestedOptions.keySuffix) !== null && _e !== void 0 ? _e : defaultOptions.keySuffix;\n        return requestedOptions;\n    }\n    defaultInMemoryOptions() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id)));\n            return {\n                storageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Memory,\n                userId,\n            };\n        });\n    }\n    defaultOnDiskOptions() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id)));\n            return {\n                storageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Disk,\n                htmlStorageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.HtmlStorageLocation.Session,\n                userId,\n                useSecureStorage: false,\n            };\n        });\n    }\n    defaultOnDiskLocalOptions() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id)));\n            return {\n                storageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Disk,\n                htmlStorageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.HtmlStorageLocation.Local,\n                userId,\n                useSecureStorage: false,\n            };\n        });\n    }\n    defaultOnDiskMemoryOptions() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id)));\n            return {\n                storageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Disk,\n                htmlStorageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.HtmlStorageLocation.Memory,\n                userId,\n                useSecureStorage: false,\n            };\n        });\n    }\n    defaultSecureStorageOptions() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id)));\n            return {\n                storageLocation: _enums__WEBPACK_IMPORTED_MODULE_1__.StorageLocation.Disk,\n                useSecureStorage: true,\n                userId,\n            };\n        });\n    }\n    getActiveUserIdFromStorage() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n        });\n    }\n    removeAccountFromLocalStorage() {\n        return __awaiter(this, arguments, void 0, function* (userId = null) {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id))));\n            const storedAccount = yield this.getAccount(this.reconcileOptions({ userId: userId }, yield this.defaultOnDiskLocalOptions()));\n            yield this.saveAccount(this.resetAccount(storedAccount), this.reconcileOptions({ userId: userId }, yield this.defaultOnDiskLocalOptions()));\n        });\n    }\n    removeAccountFromSessionStorage() {\n        return __awaiter(this, arguments, void 0, function* (userId = null) {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id))));\n            const storedAccount = yield this.getAccount(this.reconcileOptions({ userId: userId }, yield this.defaultOnDiskOptions()));\n            yield this.saveAccount(this.resetAccount(storedAccount), this.reconcileOptions({ userId: userId }, yield this.defaultOnDiskOptions()));\n        });\n    }\n    removeAccountFromSecureStorage() {\n        return __awaiter(this, arguments, void 0, function* (userId = null) {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id))));\n            yield this.setUserKeyAutoUnlock(null, { userId: userId });\n            yield this.setUserKeyBiometric(null, { userId: userId });\n            yield this.setCryptoMasterKeyAuto(null, { userId: userId });\n            yield this.setCryptoMasterKeyB64(null, { userId: userId });\n        });\n    }\n    removeAccountFromMemory() {\n        return __awaiter(this, arguments, void 0, function* (userId = null) {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id))));\n            yield this.updateState((state) => __awaiter(this, void 0, void 0, function* () {\n                delete state.accounts[userId];\n                return state;\n            }));\n        });\n    }\n    // settings persist even on reset, and are not affected by this method\n    resetAccount(account) {\n        // All settings have been moved to StateProviders\n        return this.createAccount();\n    }\n    createAccount(init = null) {\n        return this.stateFactory.createAccount(init);\n    }\n    createGlobals(init = null) {\n        return this.stateFactory.createGlobal(init);\n    }\n    deAuthenticateAccount(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // We must have a manual call to clear tokens as we can't leverage state provider to clean\n            // up our data as we have secure storage in the mix.\n            yield this.tokenService.clearTokens(userId);\n        });\n    }\n    removeAccountFromDisk(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.removeAccountFromSessionStorage(userId);\n            yield this.removeAccountFromLocalStorage(userId);\n            yield this.removeAccountFromSecureStorage(userId);\n        });\n    }\n    saveSecureStorageKey(key, value, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return value == null\n                ? yield this.secureStorageService.remove(`${options.userId}${key}`, options)\n                : yield this.secureStorageService.save(`${options.userId}${key}`, value, options);\n        });\n    }\n    state() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let state = yield this.memoryStorageService.get(keys.state);\n            if (this.memoryStorageService.valuesRequireDeserialization) {\n                state = _models_domain_state__WEBPACK_IMPORTED_MODULE_3__.State.fromJSON(state, this.accountDeserializer);\n            }\n            return state;\n        });\n    }\n    setState(state) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.memoryStorageService.save(keys.state, state);\n            return state;\n        });\n    }\n    updateState(stateUpdater) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.state().then((state) => __awaiter(this, void 0, void 0, function* () {\n                const updatedState = yield stateUpdater(state);\n                if (updatedState == null) {\n                    throw new Error(\"Attempted to update state to null value\");\n                }\n                return yield this.setState(updatedState);\n            }));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 57848 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/state.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/storage-service.provider.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/platform/services/storage-service.provider.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StorageServiceProvider: () => (/* binding */ StorageServiceProvider)\n/* harmony export */ });\n/**\n * A provider for getting client specific computed storage locations and services.\n */\nclass StorageServiceProvider {\n    constructor(diskStorageService, memoryStorageService) {\n        this.diskStorageService = diskStorageService;\n        this.memoryStorageService = memoryStorageService;\n    }\n    /**\n     * Computes the location and corresponding service for a given client.\n     *\n     * **NOTE** The default implementation does not respect client overrides and if clients\n     * have special overrides they are responsible for implementing this service.\n     * @param defaultLocation The default location to use if no client specific override is preferred.\n     * @param overrides Client specific overrides\n     * @returns The computed storage location and corresponding storage service to use to get/store state.\n     * @throws If there is no configured storage service for the given inputs.\n     */\n    get(defaultLocation, overrides) {\n        switch (defaultLocation) {\n            case \"disk\":\n                return [defaultLocation, this.diskStorageService];\n            case \"memory\":\n                return [defaultLocation, this.memoryStorageService];\n            default:\n                throw new Error(`Unexpected location: ${defaultLocation}`);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL3N0b3JhZ2Utc2VydmljZS5wcm92aWRlci50cyIsIm1hcHBpbmdzIjoiOzs7O0FB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platform/services/storage-service.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/translation.service.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/platform/services/translation.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TranslationService: () => (/* binding */ TranslationService)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nclass TranslationService {\n    constructor(systemLanguage, localesDirectory, getLocalesJson) {\n        this.systemLanguage = systemLanguage;\n        this.localesDirectory = localesDirectory;\n        this.getLocalesJson = getLocalesJson;\n        // First locale is the default (English)\n        this.supportedTranslationLocales = [\"en\"];\n        this.defaultLocale = \"en\";\n        this.localeNames = new Map([\n            [\"af\", \"Afrikaans\"],\n            [\"ar\", \"العربية الفصحى\"],\n            [\"az\", \"Azərbaycanca\"],\n            [\"be\", \"Беларуская\"],\n            [\"bg\", \"български\"],\n            [\"bn\", \"বাংলা\"],\n            [\"bs\", \"bosanski jezik\"],\n            [\"ca\", \"català\"],\n            [\"cs\", \"čeština\"],\n            [\"cy\", \"Cymraeg, y Gymraeg\"],\n            [\"da\", \"dansk\"],\n            [\"de\", \"Deutsch\"],\n            [\"el\", \"Ελληνικά\"],\n            [\"en\", \"English\"],\n            [\"en-GB\", \"English (British)\"],\n            [\"en-IN\", \"English (India)\"],\n            [\"eo\", \"Esperanto\"],\n            [\"es\", \"español\"],\n            [\"et\", \"eesti\"],\n            [\"eu\", \"euskara\"],\n            [\"fa\", \"فارسی\"],\n            [\"fi\", \"suomi\"],\n            [\"fil\", \"Wikang Filipino\"],\n            [\"fr\", \"français\"],\n            [\"gl\", \"galego\"],\n            [\"he\", \"עברית\"],\n            [\"hi\", \"हिन्दी\"],\n            [\"hr\", \"hrvatski\"],\n            [\"hu\", \"magyar\"],\n            [\"id\", \"Bahasa Indonesia\"],\n            [\"it\", \"italiano\"],\n            [\"ja\", \"日本語\"],\n            [\"ka\", \"ქართული\"],\n            [\"km\", \"ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ\"],\n            [\"kn\", \"ಕನ್ನಡ\"],\n            [\"ko\", \"한국어\"],\n            [\"lt\", \"lietuvių kalba\"],\n            [\"lv\", \"Latvietis\"],\n            [\"me\", \"црногорски\"],\n            [\"ml\", \"മലയാളം\"],\n            [\"mr\", \"मराठी\"],\n            [\"my\", \"ဗမာစကား\"],\n            [\"nb\", \"norsk (bokmål)\"],\n            [\"ne\", \"नेपाली\"],\n            [\"nl\", \"Nederlands\"],\n            [\"nn\", \"Norsk Nynorsk\"],\n            [\"or\", \"ଓଡ଼ିଆ\"],\n            [\"pl\", \"polski\"],\n            [\"pt-BR\", \"português do Brasil\"],\n            [\"pt-PT\", \"português\"],\n            [\"ro\", \"română\"],\n            [\"ru\", \"русский\"],\n            [\"si\", \"සිංහල\"],\n            [\"sk\", \"slovenčina\"],\n            [\"sl\", \"Slovenski jezik, Slovenščina\"],\n            [\"sr\", \"Српски\"],\n            [\"sv\", \"svenska\"],\n            [\"te\", \"తెలుగు\"],\n            [\"th\", \"ไทย\"],\n            [\"tr\", \"Türkçe\"],\n            [\"uk\", \"українська\"],\n            [\"vi\", \"Tiếng Việt\"],\n            [\"zh-CN\", \"中文（中国大陆）\"],\n            [\"zh-TW\", \"中文（台灣）\"],\n        ]);\n        this.defaultMessages = {};\n        this.localeMessages = {};\n        this.systemLanguage = systemLanguage.replace(\"_\", \"-\");\n    }\n    init(locale) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.inited) {\n                throw new Error(\"i18n already initialized.\");\n            }\n            if (this.supportedTranslationLocales == null || this.supportedTranslationLocales.length === 0) {\n                throw new Error(\"supportedTranslationLocales not set.\");\n            }\n            this.inited = true;\n            this.translationLocale = locale != null ? locale : this.systemLanguage;\n            try {\n                this.collator = new Intl.Collator(this.translationLocale, {\n                    numeric: true,\n                    sensitivity: \"base\",\n                });\n            }\n            catch (_a) {\n                this.collator = null;\n            }\n            if (this.supportedTranslationLocales.indexOf(this.translationLocale) === -1) {\n                this.translationLocale = this.translationLocale.slice(0, 2);\n                if (this.supportedTranslationLocales.indexOf(this.translationLocale) === -1) {\n                    this.translationLocale = this.defaultLocale;\n                }\n            }\n            if (this.localesDirectory != null) {\n                yield this.loadMessages(this.translationLocale, this.localeMessages);\n                if (this.translationLocale !== this.defaultLocale) {\n                    yield this.loadMessages(this.defaultLocale, this.defaultMessages);\n                }\n            }\n        });\n    }\n    t(id, p1, p2, p3) {\n        return this.translate(id, p1, p2, p3);\n    }\n    translate(id, p1, p2, p3) {\n        let result;\n        // eslint-disable-next-line\n        if (this.localeMessages.hasOwnProperty(id) && this.localeMessages[id]) {\n            result = this.localeMessages[id];\n            // eslint-disable-next-line\n        }\n        else if (this.defaultMessages.hasOwnProperty(id) && this.defaultMessages[id]) {\n            result = this.defaultMessages[id];\n        }\n        else {\n            result = \"\";\n        }\n        if (result !== \"\") {\n            if (p1 != null) {\n                result = result.split(\"__$1__\").join(p1.toString());\n            }\n            if (p2 != null) {\n                result = result.split(\"__$2__\").join(p2.toString());\n            }\n            if (p3 != null) {\n                result = result.split(\"__$3__\").join(p3.toString());\n            }\n        }\n        return result;\n    }\n    loadMessages(locale, messagesObj) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const formattedLocale = locale.replace(\"-\", \"_\");\n            const locales = yield this.getLocalesJson(formattedLocale);\n            for (const prop in locales) {\n                // eslint-disable-next-line\n                if (!locales.hasOwnProperty(prop)) {\n                    continue;\n                }\n                messagesObj[prop] = locales[prop].message;\n                if (locales[prop].placeholders) {\n                    for (const placeProp in locales[prop].placeholders) {\n                        if (!locales[prop].placeholders.hasOwnProperty(placeProp) || // eslint-disable-line\n                            !locales[prop].placeholders[placeProp].content) {\n                            continue;\n                        }\n                        const replaceToken = \"\\\\$\" + placeProp.toUpperCase() + \"\\\\$\";\n                        let replaceContent = locales[prop].placeholders[placeProp].content;\n                        if (replaceContent === \"$1\" || replaceContent === \"$2\" || replaceContent === \"$3\") {\n                            replaceContent = \"__$\" + replaceContent + \"__\";\n                        }\n                        messagesObj[prop] = messagesObj[prop].replace(new RegExp(replaceToken, \"g\"), replaceContent);\n                    }\n                }\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16772 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/translation.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/services/user-auto-unlock-key.service.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/platform/services/user-auto-unlock-key.service.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserAutoUnlockKeyService: () => (/* binding */ UserAutoUnlockKeyService)\n/* harmony export */ });\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums */ \"../../libs/common/src/platform/enums/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n// TODO: this is a half measure improvement which allows us to reduce some side effects today (keyService.getUserKey setting user key in memory if auto key exists)\n// but ideally, in the future, we would be able to put this logic into the keyService\n// after the vault timeout settings service is transitioned to state provider so that\n// the getUserKey logic can simply go to the correct location based on the vault timeout settings\n// similar to the TokenService (it would either go to secure storage for the auto user key or memory for the user key)\nclass UserAutoUnlockKeyService {\n    constructor(keyService) {\n        this.keyService = keyService;\n    }\n    /**\n     * The presence of the user key in memory dictates whether the user's vault is locked or unlocked.\n     * However, for users that have the auto unlock user key set, we need to set the user key in memory\n     * on application bootstrap and on active account changes so that the user's vault loads unlocked.\n     * @param userId - The user id to check for an auto user key.\n     * @returns True if the auto user key is set successfully, false otherwise.\n     */\n    setUserKeyInMemoryIfAutoUserKeySet(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                return false;\n            }\n            const autoUserKey = yield this.keyService.getUserKeyFromStorage(_enums__WEBPACK_IMPORTED_MODULE_0__.KeySuffixOptions.Auto, userId);\n            if (autoUserKey == null) {\n                return false;\n            }\n            yield this.keyService.setUserKey(autoUserKey, userId);\n            return true;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3NlcnZpY2VzL3VzZXItYXV0by11bmxvY2sta2V5LnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFFNEM7QUFFNUMsbUtBQW1LO0FBQ25LLHFGQUFxRjtBQUNyRixxRkFBcUY7QUFDckYsaUdBQWlHO0FBQ2pHLHNIQUFzSDtBQUUvRyxNQUFNLHdCQUF3QjtJQUNuQyxZQUFvQixVQUFzQjtRQUF0QixlQUFVLEdBQVYsVUF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biBhcHBsaWNhdGlvbiBib290c3RyYXAgYW5kIG9uIGFjdGl2ZSBhY2NvdW50IGNoYW5nZXMgc28gdGhhdCB0aGUgdXNlcidzIHZhdWx0IGxvYWRzIHVubG9ja2VkLlxuICAgKiBAcGFyYW0gdXNlcklkIC0gVGhlIHVzZXIgaWQgdG8gY2hlY2sgZm9yIGFuIGF1dG8gdXNlciBrZXkuXG4gICAqIEByZXR1cm5zIFRydWUgaWYgdGhlIGF1dG8gdXNlciBrZXkgaXMgc2V0IHN1Y2Nlc3NmdWxseSwgZmFsc2Ugb3RoZXJ3aXNlLlxuICAgKi9cbiAgYXN5bmMgc2V0VXNlcktleUluTWVtb3J5SWZBdXRvVXNlcktleVNldCh1c2VySWQ6IFVzZXJJZCk6IFByb21pc2U8Ym9vbGVhbj4ge1xuICAgIGlmICh1c2VySWQgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGNvbnN0IGF1dG9Vc2VyS2V5ID0gYXdhaXQgdGhpcy5rZXlTZXJ2aWNlLmdldFVzZXJLZXlGcm9tU3RvcmFnZShLZXlTdWZmaXhPcHRpb25zLkF1dG8sIHVzZXJJZCk7XG5cbiAgICBpZiAoYXV0b1VzZXJLZXkgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGF3YWl0IHRoaXMua2V5U2VydmljZS5zZXRVc2VyS2V5KGF1dG9Vc2VyS2V5LCB1c2VySWQpO1xuICAgIHJldHVybiB0cnVlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/services/user-auto-unlock-key.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/derive-definition.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/platform/state/derive-definition.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeriveDefinition: () => (/* binding */ DeriveDefinition)\n/* harmony export */ });\n/**\n * DeriveDefinitions describe state derived from another observable, the value type of which is given by `TFrom`.\n *\n * The StateDefinition is used to describe the domain of the state, and the DeriveDefinition\n * sub-divides that domain into specific keys. These keys are used to cache data in memory and enables derived state to\n * be calculated once regardless of multiple execution contexts.\n */\nclass DeriveDefinition {\n    /**\n     * Creates a new instance of a DeriveDefinition. Derived state is always stored in memory, so the storage location\n     * defined in @link{StateDefinition} is ignored.\n     *\n     * @param stateDefinition The state definition for which this key belongs to.\n     * @param uniqueDerivationName The name of the key, this should be unique per domain.\n     * @param options A set of options to customize the behavior of {@link DeriveDefinition}.\n     * @param options.derive A function to use to convert values from TFrom to TTo. This is called on each emit of the parent state observable\n     * and the resulting value will be emitted from the derived state observable.\n     * @param options.cleanupDelayMs The number of milliseconds to wait before cleaning up the state after the last subscriber has unsubscribed.\n     * Defaults to 1000ms.\n     * @param options.dependencyShape An object defining the dependencies of the derive function. The keys of the object are the names of the dependencies\n     * and the values are the types of the dependencies.\n     * for example:\n     * ```\n     * {\n     *   myService: MyService,\n     *   myOtherService: MyOtherService,\n     * }\n     * ```\n     *\n     * @param options.deserializer A function to use to safely convert your type from json to your expected type.\n     *   Your data may be serialized/deserialized at any time and this needs callback needs to be able to faithfully re-initialize\n     *   from the JSON object representation of your type.\n     */\n    constructor(stateDefinition, uniqueDerivationName, options) {\n        this.stateDefinition = stateDefinition;\n        this.uniqueDerivationName = uniqueDerivationName;\n        this.options = options;\n    }\n    /**\n     * Factory that produces a {@link DeriveDefinition} from a {@link KeyDefinition} or {@link DeriveDefinition} and new name.\n     *\n     * If a `KeyDefinition` is passed in, the returned definition will have the same key as the given key definition, but\n     * will not collide with it in storage, even if they both reside in memory.\n     *\n     * If a `DeriveDefinition` is passed in, the returned definition will instead use the name given in the second position\n     * of the tuple. It is up to you to ensure this is unique within the domain of derived state.\n     *\n     * @param options A set of options to customize the behavior of {@link DeriveDefinition}.\n     * @param options.derive A function to use to convert values from TFrom to TTo. This is called on each emit of the parent state observable\n     * and the resulting value will be emitted from the derived state observable.\n     * @param options.cleanupDelayMs The number of milliseconds to wait before cleaning up the state after the last subscriber has unsubscribed.\n     * Defaults to 1000ms.\n     * @param options.dependencyShape An object defining the dependencies of the derive function. The keys of the object are the names of the dependencies\n     * and the values are the types of the dependencies.\n     * for example:\n     * ```\n     * {\n     *   myService: MyService,\n     *   myOtherService: MyOtherService,\n     * }\n     * ```\n     *\n     * @param options.deserializer A function to use to safely convert your type from json to your expected type.\n     *   Your data may be serialized/deserialized at any time and this needs callback needs to be able to faithfully re-initialize\n     *   from the JSON object representation of your type.\n     * @param definition\n     * @param options\n     * @returns\n     */\n    static from(definition, options) {\n        if (isFromDeriveDefinition(definition)) {\n            return new DeriveDefinition(definition[0].stateDefinition, definition[1], options);\n        }\n        else {\n            return new DeriveDefinition(definition.stateDefinition, definition.key, options);\n        }\n    }\n    static fromWithUserId(definition, options) {\n        if (isFromDeriveDefinition(definition)) {\n            return new DeriveDefinition(definition[0].stateDefinition, definition[1], options);\n        }\n        else {\n            return new DeriveDefinition(definition.stateDefinition, definition.key, options);\n        }\n    }\n    get derive() {\n        return this.options.derive;\n    }\n    deserialize(serialized) {\n        return this.options.deserializer(serialized);\n    }\n    get cleanupDelayMs() {\n        var _a;\n        return this.options.cleanupDelayMs < 0 ? 0 : ((_a = this.options.cleanupDelayMs) !== null && _a !== void 0 ? _a : 1000);\n    }\n    get clearOnCleanup() {\n        var _a;\n        return (_a = this.options.clearOnCleanup) !== null && _a !== void 0 ? _a : true;\n    }\n    buildCacheKey() {\n        return `derived_${this.stateDefinition.name}_${this.uniqueDerivationName}`;\n    }\n    /**\n     * Creates a {@link StorageKey} that points to the data for the given derived definition.\n     * @returns A key that is ready to be used in a storage service to get data.\n     */\n    get storageKey() {\n        return `derived_${this.stateDefinition.name}_${this.uniqueDerivationName}`;\n    }\n}\nfunction isFromDeriveDefinition(definition) {\n    return Array.isArray(definition);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13828 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/derive-definition.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/derived-state.provider.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/platform/state/derived-state.provider.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DerivedStateProvider: () => (/* binding */ DerivedStateProvider)\n/* harmony export */ });\n/**\n * State derived from an observable and a derive function\n */\nclass DerivedStateProvider {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2Rlcml2ZWQtc3RhdGUucHJvdmlkZXIudHMiLCJtYXBwaW5ncyI6Ijs7OztBQU9BOztHQUVHO0FBQ0ksTUFBZSxvQkFBb0I7Q0FjekMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vc3RhdGUvZGVyaXZlZC1zdGF0ZS5wcm92aWRlci50cz84YTViIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tIFwicnhqc1wiO1xuXG5pbXBvcnQgeyBEZXJpdmVkU3RhdGVEZXBlbmRlbmNpZXMgfSBmcm9tIFwiLi4vLi4vdHlwZXMvc3RhdGVcIjtcblxuaW1wb3J0IHsgRGVyaXZlRGVmaW5pdGlvbiB9IGZyb20gXCIuL2Rlcml2ZS1kZWZpbml0aW9uXCI7XG5pbXBvcn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VuY2llczogVERlcHMsXG4gICk6IERlcml2ZWRTdGF0ZTxUVG8+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/derived-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/deserialization-helpers.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/platform/state/deserialization-helpers.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   array: () => (/* binding */ array),\n/* harmony export */   record: () => (/* binding */ record)\n/* harmony export */ });\n/**\n *\n * @param elementDeserializer\n * @returns\n */\nfunction array(elementDeserializer) {\n    return (array) => {\n        if (array == null) {\n            return null;\n        }\n        return array.map((element) => elementDeserializer(element));\n    };\n}\n/**\n *\n * @param valueDeserializer\n */\nfunction record(valueDeserializer) {\n    return (jsonValue) => {\n        if (jsonValue == null) {\n            return null;\n        }\n        const output = {};\n        Object.entries(jsonValue).forEach(([key, value]) => {\n            output[key] = valueDeserializer(value);\n        });\n        return output;\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2Rlc2VyaWFsaXphdGlvbi1oZWxwZXJzLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBRUE7Ozs7R0FJRztBQUNJLFNBQVMsS0FBSyxDQUNuQixtQkFBK0M7SUFFL0MsT0FBTyxDQUFDLEtBQUssRUFBRSxFQUFFO1FBQ2YsSUFBSSxLQUFLLElBQUksSUFBSSxFQUFFLENBQUM7WUFDbEIsT0FBTyxJQUFJLENBQUM7UUFDZCxDQUFDO1FBRUQsT0FBTyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQ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Z5PFRbXT4pID0+IFRbXSB7XG4gIHJldHVybiAoYXJyYXkpID0+IHtcbiAgICBpZiAoYXJyYXkgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgcmV0dXJuIGFycmF5Lm1hcCgoZWxlbWVudCkgPT4gZWxlbWVudERlc2VyaWFsaXplcihlbGVtZW50KSk7XG4gIH07XG59XG5cbi8qKlxuICpcbiAqIEBwYXJhbSB2YWx1ZURlc2VyaWFsaXplclxuICovXG5leHBvcnQgZnVuY3Rpb24gcmVjb3JkPFQsIFRLZXkgZXh0ZW5kcyBzdHJpbmcgfCBudW1iZXIgPSBzdHJpbmc+KFxuICB2YWx1ZURlc2VyaWFsaXplcjogKHZhbHVlOiBKc29uaWZ5PFQ+KSA9PiBULFxuKTogKHJlY29yZDogSnNvbmlmeTxSZWNvcmQ8VEtleSwgVD4+KSA9PiBSZWNvcmQ8VEtleSwgVD4ge1xuICByZXR1cm4gKGpzb25WYWx1ZTogSnNvbmlmeTxSZWNvcmQ8VEtleSwgVD4gfCBudWxsPikgPT4ge1xuICAgIGlmIChqc29uVmFsdWUgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgY29uc3Qgb3V0cHV0OiBSZWNvcmQ8VEtleSwgVD4gPSB7fSBhcyBhbnk7XG4gICAgT2JqZWN0LmVudHJpZXMoanNvblZhbHVlKS5mb3JFYWNoKChba2V5LCB2YWx1ZV0pID0+IHtcbiAgICAgIG91dHB1dFtrZXkgYXMgVEtleV0gPSB2YWx1ZURlc2VyaWFsaXplcih2YWx1ZSk7XG4gICAgfSk7XG4gICAgcmV0dXJuIG91dHB1dDtcbiAgfTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/deserialization-helpers.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/global-state.provider.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/platform/state/global-state.provider.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GlobalStateProvider: () => (/* binding */ GlobalStateProvider)\n/* harmony export */ });\n/**\n * A provider for getting an implementation of global state scoped to the given key.\n */\nclass GlobalStateProvider {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2dsb2JhbC1zdGF0ZS5wcm92aWRlci50cyIsIm1hcHBpbmdzIjoiOzs7O0FBR0E7O0dBRUc7QUFDSSxNQUFlLG1CQUFtQjtDQU14QyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9wbGF0Zm9ybS9zdGF0ZS9nbG9iYWwtc3RhdGUucHJvdmlkZXIudHM/Zjc5YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBHbG9iYWxTdGF0ZSB9IGZyb20gXCIuL2dsb2JhbC1zdGF0ZVwiO1xuaW1wb3J0IHsgS2V5RGVmaW5pdGlvbiB9IGZyb20gXCIuL2tleS1kZWZpbml0aW9uXCI7XG5cbi8qKlxuICogQSBwcm92aWRlciBmb3IgZ2V0dGluZyBhbiBpbXBsZW1lbnRhdGlvbiBvZiBnbG9iYWwgc3RhdGUgc2NvcGVkIHRvIHRoZSBnaXZlbiBrZXkuXG4gKi9cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBHbG9iYWxTdGF0ZVByb3ZpZGVyIHtcbiAgLyoqXG4gICAqIEdldHMgYSB7QGxpbmsgR2xvYmFsU3RhdGV9IHNjb3BlZCB0byB0aGUgZ2l2ZW4ge0BsaW5rIEtleURlZmluaXRpb259XG4gICAqIEBwYXJhbSBrZXlEZWZpbml0aW9uIC0gVGhlIHtAbGluayBLZXlEZWZpbml0aW9ufSBmb3Igd2hpY2ggeW91IHdhbnQgdGhlIHN0YXRlIGZvci5cbiAgICovXG4gIGFic3RyYWN0IGdldDxUPihrZXlEZWZpbml0aW9uOiBLZXlEZWZpbml0aW9uPFQ+KTogR2xvYmFsU3RhdGU8VD47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/global-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-active-user-state.provider.ts":
/*!**************************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-active-user-state.provider.ts ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultActiveUserStateProvider: () => (/* binding */ DefaultActiveUserStateProvider)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _default_active_user_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-active-user-state */ \"../../libs/common/src/platform/state/implementations/default-active-user-state.ts\");\n\n\nclass DefaultActiveUserStateProvider {\n    constructor(accountService, singleUserStateProvider) {\n        this.accountService = accountService;\n        this.singleUserStateProvider = singleUserStateProvider;\n        this.activeUserId$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((account) => account === null || account === void 0 ? void 0 : account.id), \n        // To avoid going to storage when we don't need to, only get updates when there is a true change.\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)((a, b) => (a == null || b == null ? a == b : a === b)));\n    }\n    get(keyDefinition) {\n        // All other providers cache the creation of their corresponding `State` objects, this instance\n        // doesn't need to do that since it calls `SingleUserStateProvider` it will go through their caching\n        // layer, because of that, the creation of this instance is quite simple and not worth caching.\n        return new _default_active_user_state__WEBPACK_IMPORTED_MODULE_1__.DefaultActiveUserState(keyDefinition, this.activeUserId$, this.singleUserStateProvider);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2ltcGxlbWVudGF0aW9ucy9kZWZhdWx0LWFjdGl2ZS11c2VyLXN0YXRlLnByb3ZpZGVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBNkQ7QUFRUTtBQUU5RCxNQUFNLDhCQUE4QjtJQUd6QyxZQUNtQixjQUE4QixFQUM5Qix1QkFBZ0Q7UUFEaEQsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBQzlCLDRCQUF1QixHQUF2Qix1QkFBdUIsQ0FBeUI7UUFFakUsSUFBSSxDQUFDLGFBQWEsR0FBRyxJQUFJLENBQUMsY0FBYyxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQzFELHlDQUFHLENBQUMsQ0FBQyxPQUFPLEVBQUUsRUFBRSxDQUFDLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxFQUFFLENBQUM7UUFDN0IsaUdBQWlHO1FBQ2pHLDBEQUFvQixDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksSUFBSSxJQUFJLENBQUMsSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQU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CBvYmplY3RzLCB0aGlzIGluc3RhbmNlXG4gICAgLy8gZG9lc24ndCBuZWVkIHRvIGRvIHRoYXQgc2luY2UgaXQgY2FsbHMgYFNpbmdsZVVzZXJTdGF0ZVByb3ZpZGVyYCBpdCB3aWxsIGdvIHRocm91Z2ggdGhlaXIgY2FjaGluZ1xuICAgIC8vIGxheWVyLCBiZWNhdXNlIG9mIHRoYXQsIHRoZSBjcmVhdGlvbiBvZiB0aGlzIGluc3RhbmNlIGlzIHF1aXRlIHNpbXBsZSBhbmQgbm90IHdvcnRoIGNhY2hpbmcuXG4gICAgcmV0dXJuIG5ldyBEZWZhdWx0QWN0aXZlVXNlclN0YXRlKFxuICAgICAga2V5RGVmaW5pdGlvbixcbiAgICAgIHRoaXMuYWN0aXZlVXNlcklkJCxcbiAgICAgIHRoaXMuc2luZ2xlVXNlclN0YXRlUHJvdmlkZXIsXG4gICAgKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-active-user-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-active-user-state.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-active-user-state.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultActiveUserState: () => (/* binding */ DefaultActiveUserState)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _user_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../user-state */ \"../../libs/common/src/platform/state/user-state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass DefaultActiveUserState {\n    constructor(keyDefinition, activeUserId$, singleUserStateProvider) {\n        this.keyDefinition = keyDefinition;\n        this.activeUserId$ = activeUserId$;\n        this.singleUserStateProvider = singleUserStateProvider;\n        this.combinedState$ = this.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => userId != null\n            ? this.singleUserStateProvider.get(userId, this.keyDefinition).combinedState$\n            : rxjs__WEBPACK_IMPORTED_MODULE_0__.NEVER));\n        // State should just be combined state without the user id\n        this.state$ = this.combinedState$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([_userId, state]) => state));\n    }\n    update(configureState_1) {\n        return __awaiter(this, arguments, void 0, function* (configureState, options = {}) {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timeout)({\n                first: 1000,\n                with: () => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.throwError)(() => new Error(`Timeout while retrieving active user for key ${this.keyDefinition.fullName}.`)),\n            })));\n            if (userId == null) {\n                throw new Error(`Error storing ${this.keyDefinition.fullName} for the active user: No active user at this time.`);\n            }\n            return [\n                userId,\n                yield this.singleUserStateProvider\n                    .get(userId, this.keyDefinition)\n                    .update(configureState, options),\n            ];\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4672 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-active-user-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-derived-state.provider.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-derived-state.provider.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultDerivedStateProvider: () => (/* binding */ DefaultDerivedStateProvider)\n/* harmony export */ });\n/* harmony import */ var _default_derived_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-derived-state */ \"../../libs/common/src/platform/state/implementations/default-derived-state.ts\");\n\nclass DefaultDerivedStateProvider {\n    constructor() {\n        this.cache = {};\n    }\n    get(parentState$, deriveDefinition, dependencies) {\n        const cacheKey = deriveDefinition.buildCacheKey();\n        const existingDerivedState = this.cache[cacheKey];\n        if (existingDerivedState != null) {\n            // I have to cast out of the unknown generic but this should be safe if rules\n            // around domain token are made\n            return existingDerivedState;\n        }\n        const newDerivedState = this.buildDerivedState(parentState$, deriveDefinition, dependencies);\n        this.cache[cacheKey] = newDerivedState;\n        return newDerivedState;\n    }\n    buildDerivedState(parentState$, deriveDefinition, dependencies) {\n        return new _default_derived_state__WEBPACK_IMPORTED_MODULE_0__.DefaultDerivedState(parentState$, deriveDefinition, dependencies);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2ltcGxlbWVudGF0aW9ucy9kZWZhdWx0LWRlcml2ZWQtc3RhdGUucHJvdmlkZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFPOEQ7QUFFdkQsTUFB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290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-derived-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-derived-state.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-derived-state.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultDerivedState: () => (/* binding */ DefaultDerivedState)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n/**\n * Default derived state\n */\nclass DefaultDerivedState {\n    constructor(parentState$, deriveDefinition, dependencies) {\n        this.parentState$ = parentState$;\n        this.deriveDefinition = deriveDefinition;\n        this.dependencies = dependencies;\n        this.forcedValueSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();\n        this.storageKey = deriveDefinition.storageKey;\n        const derivedState$ = this.parentState$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((state) => __awaiter(this, void 0, void 0, function* () {\n            let derivedStateOrPromise = this.deriveDefinition.derive(state, this.dependencies);\n            if (derivedStateOrPromise instanceof Promise) {\n                derivedStateOrPromise = yield derivedStateOrPromise;\n            }\n            const derivedState = derivedStateOrPromise;\n            return derivedState;\n        })));\n        this.state$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.merge)(this.forcedValueSubject, derivedState$).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.share)({\n            connector: () => {\n                return new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n            },\n            resetOnRefCountZero: () => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timer)(this.deriveDefinition.cleanupDelayMs),\n        }));\n    }\n    forceValue(value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.forcedValueSubject.next(value);\n            return value;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2ltcGxlbWVudGF0aW9ucy9kZWZhdWx0LWRlcml2ZWQtc3RhdGUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQTBGO0FBTTFGOztHQUVHO0FBQ0ksTUFBTSxtQkFBbUI7SUFROUIsWUFDVSxZQUErQixFQUM3QixnQkFBcUQsRUFDdkQsWUFBbUI7UUFGbkIsaUJBQVksR0FBWixZQUFZLENBQW1CO1FBQzdCLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBcUM7UUFDdkQsaUJBQVksR0FBWixZQUFZLENBQU87UUFQckIsdUJBQWtCLEdBQUcsSUFBSSx5Q0FBTyxFQUFPLENBQUM7UUFTOUMsSUFBSSxDQUFDLFVBQVUsR0FBRyxnQkFBZ0IsQ0FBQyxVQUFVLENBQUM7UUFFOUMsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQzFDLCtDQUFTLENBQUMsQ0FBTyxLQUFLLEVBQUU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iIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-derived-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-global-state.provider.ts":
/*!*********************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-global-state.provider.ts ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultGlobalStateProvider: () => (/* binding */ DefaultGlobalStateProvider)\n/* harmony export */ });\n/* harmony import */ var _default_global_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-global-state */ \"../../libs/common/src/platform/state/implementations/default-global-state.ts\");\n\nclass DefaultGlobalStateProvider {\n    constructor(storageServiceProvider, logService) {\n        this.storageServiceProvider = storageServiceProvider;\n        this.logService = logService;\n        this.globalStateCache = {};\n    }\n    get(keyDefinition) {\n        const [location, storageService] = this.storageServiceProvider.get(keyDefinition.stateDefinition.defaultStorageLocation, keyDefinition.stateDefinition.storageLocationOverrides);\n        const cacheKey = this.buildCacheKey(location, keyDefinition);\n        const existingGlobalState = this.globalStateCache[cacheKey];\n        if (existingGlobalState != null) {\n            // The cast into the actual generic is safe because of rules around key definitions\n            // being unique.\n            return existingGlobalState;\n        }\n        const newGlobalState = new _default_global_state__WEBPACK_IMPORTED_MODULE_0__.DefaultGlobalState(keyDefinition, storageService, this.logService);\n        this.globalStateCache[cacheKey] = newGlobalState;\n        return newGlobalState;\n    }\n    buildCacheKey(location, keyDefinition) {\n        return `${location}_${keyDefinition.fullName}`;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2ltcGxlbWVudGF0aW9ucy9kZWZhdWx0LWdsb2JhbC1zdGF0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NlLFxuICAgICAgdGhpcy5sb2dTZXJ2aWNlLFxuICAgICk7XG5cbiAgICB0aGlzLmdsb2JhbFN0YXRlQ2FjaGVbY2FjaGVLZXldID0gbmV3R2xvYmFsU3RhdGU7XG4gICAgcmV0dXJuIG5ld0dsb2JhbFN0YXRlO1xuICB9XG5cbiAgcHJpdmF0ZSBidWlsZENhY2hlS2V5KGxvY2F0aW9uOiBzdHJpbmcsIGtleURlZmluaXRpb246IEtleURlZmluaXRpb248dW5rbm93bj4pIHtcbiAgICByZXR1cm4gYCR7bG9jYXRpb259XyR7a2V5RGVmaW5pdGlvbi5mdWxsTmFtZX1gO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-global-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-global-state.ts":
/*!************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-global-state.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultGlobalState: () => (/* binding */ DefaultGlobalState)\n/* harmony export */ });\n/* harmony import */ var _key_definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../key-definition */ \"../../libs/common/src/platform/state/key-definition.ts\");\n/* harmony import */ var _state_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state-base */ \"../../libs/common/src/platform/state/implementations/state-base.ts\");\n\n\nclass DefaultGlobalState extends _state_base__WEBPACK_IMPORTED_MODULE_1__.StateBase {\n    constructor(keyDefinition, chosenLocation, logService) {\n        super((0,_key_definition__WEBPACK_IMPORTED_MODULE_0__.globalKeyBuilder)(keyDefinition), chosenLocation, keyDefinition, logService);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=ut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LWJhc2VcIjtcblxuZXhwb3J0IGNsYXNzIERlZmF1bHRHbG9iYWxTdGF0ZTxUPlxuICBleHRlbmRzIFN0YXRlQmFzZTxULCBLZXlEZWZpbml0aW9uPFQ+PlxuICBpbXBsZW1lbnRzIEdsb2JhbFN0YXRlPFQ+XG57XG4gIGNvbnN0cnVjdG9yKFxuICAgIGtleURlZmluaXRpb246IEtleURlZmluaXRpb248VD4sXG4gICAgY2hvc2VuTG9jYXRpb246IEFic3RyYWN0U3RvcmFnZVNlcnZpY2UgJiBPYnNlcnZhYmxlU3RvcmFnZVNlcnZpY2UsXG4gICAgbG9nU2VydmljZTogTG9nU2VydmljZSxcbiAgKSB7XG4gICAgc3VwZXIoZ2xvYmFsS2V5QnVpbGRlcihrZXlEZWZpbml0aW9uKSwgY2hvc2VuTG9jYXRpb24sIGtleURlZmluaXRpb24sIGxvZ1NlcnZpY2UpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-global-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-single-user-state.provider.ts":
/*!**************************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-single-user-state.provider.ts ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSingleUserStateProvider: () => (/* binding */ DefaultSingleUserStateProvider)\n/* harmony export */ });\n/* harmony import */ var _default_single_user_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-single-user-state */ \"../../libs/common/src/platform/state/implementations/default-single-user-state.ts\");\n\nclass DefaultSingleUserStateProvider {\n    constructor(storageServiceProvider, stateEventRegistrarService, logService) {\n        this.storageServiceProvider = storageServiceProvider;\n        this.stateEventRegistrarService = stateEventRegistrarService;\n        this.logService = logService;\n        this.cache = {};\n    }\n    get(userId, keyDefinition) {\n        const [location, storageService] = this.storageServiceProvider.get(keyDefinition.stateDefinition.defaultStorageLocation, keyDefinition.stateDefinition.storageLocationOverrides);\n        const cacheKey = this.buildCacheKey(location, userId, keyDefinition);\n        const existingUserState = this.cache[cacheKey];\n        if (existingUserState != null) {\n            // I have to cast out of the unknown generic but this should be safe if rules\n            // around domain token are made\n            return existingUserState;\n        }\n        const newUserState = new _default_single_user_state__WEBPACK_IMPORTED_MODULE_0__.DefaultSingleUserState(userId, keyDefinition, storageService, this.stateEventRegistrarService, this.logService);\n        this.cache[cacheKey] = newUserState;\n        return newUserState;\n    }\n    buildCacheKey(location, userId, keyDefinition) {\n        return `${location}_${keyDefinition.fullName}_${userId}`;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4336 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-single-user-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-single-user-state.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-single-user-state.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSingleUserState: () => (/* binding */ DefaultSingleUserState)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _state_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state-base */ \"../../libs/common/src/platform/state/implementations/state-base.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass DefaultSingleUserState extends _state_base__WEBPACK_IMPORTED_MODULE_1__.StateBase {\n    constructor(userId, keyDefinition, chosenLocation, stateEventRegistrarService, logService) {\n        super(keyDefinition.buildKey(userId), chosenLocation, keyDefinition, logService);\n        this.userId = userId;\n        this.stateEventRegistrarService = stateEventRegistrarService;\n        this.combinedState$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([(0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(userId), this.state$]);\n    }\n    doStorageSave(newState, oldState) {\n        const _super = Object.create(null, {\n            doStorageSave: { get: () => super.doStorageSave }\n        });\n        return __awaiter(this, void 0, void 0, function* () {\n            yield _super.doStorageSave.call(this, newState, oldState);\n            if (newState != null && oldState == null) {\n                yield this.stateEventRegistrarService.registerEvents(this.keyDefinition);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2ltcGxlbWVudGF0aW9ucy9kZWZhdWx0LXNpbmdsZS11c2VyLXN0YXRlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBcUQ7QUFZWjtBQUVsQyxNQUFNLHNCQUNYLFNBQVEsa0RBQWtDO0lBSzFDLFlBQ1csTUFBYyxFQUN2QixhQUFtQyxFQUNuQyxjQUFpRSxFQUN6RCwwQkFBc0QsRU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JlZ2lzdHJhclNlcnZpY2UsXG4gICAgbG9nU2VydmljZTogTG9nU2VydmljZSxcbiAgKSB7XG4gICAgc3VwZXIoa2V5RGVmaW5pdGlvbi5idWlsZEtleSh1c2VySWQpLCBjaG9zZW5Mb2NhdGlvbiwga2V5RGVmaW5pdGlvbiwgbG9nU2VydmljZSk7XG4gICAgdGhpcy5jb21iaW5lZFN0YXRlJCA9IGNvbWJpbmVMYXRlc3QoW29mKHVzZXJJZCksIHRoaXMuc3RhdGUkXSk7XG4gIH1cblxuICBwcm90ZWN0ZWQgb3ZlcnJpZGUgYXN5bmMgZG9TdG9yYWdlU2F2ZShuZXdTdGF0ZTogVCwgb2xkU3RhdGU6IFQpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBhd2FpdCBzdXBlci5kb1N0b3JhZ2VTYXZlKG5ld1N0YXRlLCBvbGRTdGF0ZSk7XG4gICAgaWYgKG5ld1N0YXRlICE9IG51bGwgJiYgb2xkU3RhdGUgPT0gbnVsbCkge1xuICAgICAgYXdhaXQgdGhpcy5zdGF0ZUV2ZW50UmVnaXN0cmFyU2VydmljZS5yZWdpc3RlckV2ZW50cyh0aGlzLmtleURlZmluaXRpb24pO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-single-user-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/default-state.provider.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/default-state.provider.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultStateProvider: () => (/* binding */ DefaultStateProvider)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass DefaultStateProvider {\n    constructor(activeUserStateProvider, singleUserStateProvider, globalStateProvider, derivedStateProvider) {\n        this.activeUserStateProvider = activeUserStateProvider;\n        this.singleUserStateProvider = singleUserStateProvider;\n        this.globalStateProvider = globalStateProvider;\n        this.derivedStateProvider = derivedStateProvider;\n        this.getActive = this.activeUserStateProvider.get.bind(this.activeUserStateProvider);\n        this.getUser = this.singleUserStateProvider.get.bind(this.singleUserStateProvider);\n        this.getGlobal = this.globalStateProvider.get.bind(this.globalStateProvider);\n        this.getDerived = this.derivedStateProvider.get.bind(this.derivedStateProvider);\n        this.activeUserId$ = this.activeUserStateProvider.activeUserId$;\n    }\n    getUserState$(userKeyDefinition, userId) {\n        if (userId) {\n            return this.getUser(userId, userKeyDefinition).state$;\n        }\n        else {\n            return this.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((userId) => userId != null), // Filter out null-ish user ids since we can't get state for a null user id\n            (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.take)(1), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => this.getUser(userId, userKeyDefinition).state$));\n        }\n    }\n    getUserStateOrDefault$(userKeyDefinition, config) {\n        const { userId, defaultValue = null } = config;\n        if (userId) {\n            return this.getUser(userId, userKeyDefinition).state$;\n        }\n        else {\n            return this.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.take)(1), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => userId != null ? this.getUser(userId, userKeyDefinition).state$ : (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(defaultValue)));\n        }\n    }\n    setUserState(userKeyDefinition, value, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId) {\n                return [userId, yield this.getUser(userId, userKeyDefinition).update(() => value)];\n            }\n            else {\n                return yield this.getActive(userKeyDefinition).update(() => value);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7132 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/default-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/state-base.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/state-base.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StateBase: () => (/* binding */ StateBase)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _state_update_options__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../state-update-options */ \"../../libs/common/src/platform/state/state-update-options.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ \"../../libs/common/src/platform/state/implementations/util.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass StateBase {\n    constructor(key, storageService, keyDefinition, logService) {\n        this.key = key;\n        this.storageService = storageService;\n        this.keyDefinition = keyDefinition;\n        this.logService = logService;\n        const storageUpdate$ = storageService.updates$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((storageUpdate) => storageUpdate.key === key), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((storageUpdate) => __awaiter(this, void 0, void 0, function* () {\n            if (storageUpdate.updateType === \"remove\") {\n                return null;\n            }\n            return yield (0,_util__WEBPACK_IMPORTED_MODULE_2__.getStoredValue)(key, storageService, keyDefinition.deserializer);\n        })));\n        let state$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.merge)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.defer)(() => (0,_util__WEBPACK_IMPORTED_MODULE_2__.getStoredValue)(key, storageService, keyDefinition.deserializer)), storageUpdate$);\n        if (keyDefinition.debug.enableRetrievalLogging) {\n            state$ = state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.tap)({\n                next: (v) => {\n                    this.logService.info(`Retrieving '${key}' from storage, value is ${v == null ? \"null\" : \"non-null\"}`);\n                },\n            }));\n        }\n        // If 0 cleanup is chosen, treat this as absolutely no cache\n        if (keyDefinition.cleanupDelayMs !== 0) {\n            state$ = state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.share)({\n                connector: () => new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1),\n                resetOnRefCountZero: () => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timer)(keyDefinition.cleanupDelayMs),\n            }));\n        }\n        this.state$ = state$;\n    }\n    update(configureState_1) {\n        return __awaiter(this, arguments, void 0, function* (configureState, options = {}) {\n            options = (0,_state_update_options__WEBPACK_IMPORTED_MODULE_1__.populateOptionsWithDefault)(options);\n            if (this.updatePromise != null) {\n                yield this.updatePromise;\n            }\n            try {\n                this.updatePromise = this.internalUpdate(configureState, options);\n                const newState = yield this.updatePromise;\n                return newState;\n            }\n            finally {\n                this.updatePromise = null;\n            }\n        });\n    }\n    internalUpdate(configureState, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const currentState = yield this.getStateForUpdate();\n            const combinedDependencies = options.combineLatestWith != null\n                ? yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(options.combineLatestWith.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timeout)(options.msTimeout)))\n                : null;\n            if (!options.shouldUpdate(currentState, combinedDependencies)) {\n                return currentState;\n            }\n            const newState = configureState(currentState, combinedDependencies);\n            yield this.doStorageSave(newState, currentState);\n            return newState;\n        });\n    }\n    doStorageSave(newState, oldState) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.keyDefinition.debug.enableUpdateLogging) {\n                this.logService.info(`Updating '${this.key}' from ${oldState == null ? \"null\" : \"non-null\"} to ${newState == null ? \"null\" : \"non-null\"}`);\n            }\n            yield this.storageService.save(this.key, newState);\n        });\n    }\n    /** For use in update methods, does not wait for update to complete before yielding state.\n     * The expectation is that that await is already done\n     */\n    getStateForUpdate() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,_util__WEBPACK_IMPORTED_MODULE_2__.getStoredValue)(this.key, this.storageService, this.keyDefinition.deserializer);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9744 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/state-base.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/implementations/util.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/platform/state/implementations/util.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getStoredValue: () => (/* binding */ getStoredValue)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nfunction getStoredValue(key, storage, deserializer) {\n    return __awaiter(this, void 0, void 0, function* () {\n        if (storage.valuesRequireDeserialization) {\n            const jsonValue = yield storage.get(key);\n            const value = deserializer(jsonValue);\n            return value;\n        }\n        else {\n            const value = yield storage.get(key);\n            return value !== null && value !== void 0 ? value : null;\n        }\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2ltcGxlbWVudGF0aW9ucy91dGlsLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFJTyxTQUFlLGNBQWMsQ0FDbEMsR0FBVyxFQUNYLE9BQStCLEVBQy9CLFlBQTBDOztRQUUxQyxJQUFJLE9BQU8sQ0FBQyw0QkFBNEIsRUFBRSxDQUFDO1lBQ3pDLE1BQU0sU0FBUyxHQUFHLE1BQU0sT0FBTyxDQUFDLEdBQUcsQ0FBYSxHQUFHLENBQUMsQ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NlIHtcbiAgICBjb25zdCB2YWx1ZSA9IGF3YWl0IHN0b3JhZ2UuZ2V0PFQ+KGtleSk7XG4gICAgcmV0dXJuIHZhbHVlID8/IG51bGw7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/implementations/util.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/index.ts":
/*!*****************************************************!*\
  !*** ../../libs/common/src/platform/state/index.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ACCOUNT_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ACCOUNT_DISK),\n/* harmony export */   ACCOUNT_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ACCOUNT_MEMORY),\n/* harmony export */   AC_BANNERS_DISMISSED_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.AC_BANNERS_DISMISSED_DISK),\n/* harmony export */   ANIMATION_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ANIMATION_DISK),\n/* harmony export */   APPLICATION_ID_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.APPLICATION_ID_DISK),\n/* harmony export */   AUTH_REQUEST_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.AUTH_REQUEST_DISK_LOCAL),\n/* harmony export */   AUTOFILL_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.AUTOFILL_SETTINGS_DISK),\n/* harmony export */   AUTOFILL_SETTINGS_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.AUTOFILL_SETTINGS_DISK_LOCAL),\n/* harmony export */   AVATAR_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.AVATAR_DISK),\n/* harmony export */   ActiveUserStateProvider: () => (/* reexport safe */ _user_state_provider__WEBPACK_IMPORTED_MODULE_4__.ActiveUserStateProvider),\n/* harmony export */   BADGE_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.BADGE_SETTINGS_DISK),\n/* harmony export */   BANNERS_DISMISSED_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.BANNERS_DISMISSED_DISK),\n/* harmony export */   BILLING_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.BILLING_DISK),\n/* harmony export */   BIOMETRIC_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.BIOMETRIC_SETTINGS_DISK),\n/* harmony export */   BROWSER_SEND_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.BROWSER_SEND_MEMORY),\n/* harmony export */   CIPHERS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CIPHERS_DISK),\n/* harmony export */   CIPHERS_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CIPHERS_DISK_LOCAL),\n/* harmony export */   CIPHERS_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CIPHERS_MEMORY),\n/* harmony export */   CLEAR_EVENT_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CLEAR_EVENT_DISK),\n/* harmony export */   COLLECTION_DATA: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.COLLECTION_DATA),\n/* harmony export */   CONFIG_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CONFIG_DISK),\n/* harmony export */   CRYPTO_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CRYPTO_DISK),\n/* harmony export */   CRYPTO_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.CRYPTO_MEMORY),\n/* harmony export */   DESKTOP_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.DESKTOP_SETTINGS_DISK),\n/* harmony export */   DEVICE_TRUST_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.DEVICE_TRUST_DISK_LOCAL),\n/* harmony export */   DOMAIN_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.DOMAIN_SETTINGS_DISK),\n/* harmony export */   DeriveDefinition: () => (/* reexport safe */ _derive_definition__WEBPACK_IMPORTED_MODULE_0__.DeriveDefinition),\n/* harmony export */   DerivedStateProvider: () => (/* reexport safe */ _derived_state_provider__WEBPACK_IMPORTED_MODULE_1__.DerivedStateProvider),\n/* harmony export */   ENVIRONMENT_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ENVIRONMENT_DISK),\n/* harmony export */   ENVIRONMENT_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ENVIRONMENT_MEMORY),\n/* harmony export */   EVENT_COLLECTION_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.EVENT_COLLECTION_DISK),\n/* harmony export */   FOLDER_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.FOLDER_DISK),\n/* harmony export */   GENERATOR_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.GENERATOR_DISK),\n/* harmony export */   GENERATOR_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.GENERATOR_MEMORY),\n/* harmony export */   GlobalStateProvider: () => (/* reexport safe */ _global_state_provider__WEBPACK_IMPORTED_MODULE_3__.GlobalStateProvider),\n/* harmony export */   KDF_CONFIG_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.KDF_CONFIG_DISK),\n/* harmony export */   KEY_CONNECTOR_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.KEY_CONNECTOR_DISK),\n/* harmony export */   KeyDefinition: () => (/* reexport safe */ _key_definition__WEBPACK_IMPORTED_MODULE_5__.KeyDefinition),\n/* harmony export */   LOGIN_EMAIL_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.LOGIN_EMAIL_DISK),\n/* harmony export */   LOGIN_EMAIL_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.LOGIN_EMAIL_MEMORY),\n/* harmony export */   LOGIN_STRATEGY_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.LOGIN_STRATEGY_MEMORY),\n/* harmony export */   MASTER_PASSWORD_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.MASTER_PASSWORD_DISK),\n/* harmony export */   MASTER_PASSWORD_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.MASTER_PASSWORD_MEMORY),\n/* harmony export */   NEW_WEB_LAYOUT_BANNER_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.NEW_WEB_LAYOUT_BANNER_DISK),\n/* harmony export */   ORGANIZATIONS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ORGANIZATIONS_DISK),\n/* harmony export */   ORGANIZATION_INVITE_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ORGANIZATION_INVITE_DISK),\n/* harmony export */   ORGANIZATION_MANAGEMENT_PREFERENCES_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ORGANIZATION_MANAGEMENT_PREFERENCES_DISK),\n/* harmony export */   PIN_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.PIN_DISK),\n/* harmony export */   PIN_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.PIN_MEMORY),\n/* harmony export */   POLICIES_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.POLICIES_DISK),\n/* harmony export */   POPUP_VIEW_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.POPUP_VIEW_MEMORY),\n/* harmony export */   PREMIUM_BANNER_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.PREMIUM_BANNER_DISK_LOCAL),\n/* harmony export */   PROVIDERS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.PROVIDERS_DISK),\n/* harmony export */   ROUTER_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.ROUTER_DISK),\n/* harmony export */   SEND_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.SEND_DISK),\n/* harmony export */   SEND_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.SEND_MEMORY),\n/* harmony export */   SM_ONBOARDING_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.SM_ONBOARDING_DISK),\n/* harmony export */   SSO_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.SSO_DISK),\n/* harmony export */   SYNC_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.SYNC_DISK),\n/* harmony export */   SingleUserStateProvider: () => (/* reexport safe */ _user_state_provider__WEBPACK_IMPORTED_MODULE_4__.SingleUserStateProvider),\n/* harmony export */   StateEventRunnerService: () => (/* reexport safe */ _state_event_runner_service__WEBPACK_IMPORTED_MODULE_7__.StateEventRunnerService),\n/* harmony export */   StateProvider: () => (/* reexport safe */ _state_provider__WEBPACK_IMPORTED_MODULE_2__.StateProvider),\n/* harmony export */   TASK_SCHEDULER_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.TASK_SCHEDULER_DISK),\n/* harmony export */   THEMING_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.THEMING_DISK),\n/* harmony export */   TOKEN_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.TOKEN_DISK),\n/* harmony export */   TOKEN_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.TOKEN_DISK_LOCAL),\n/* harmony export */   TOKEN_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.TOKEN_MEMORY),\n/* harmony export */   TRANSLATION_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.TRANSLATION_DISK),\n/* harmony export */   TWO_FACTOR_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.TWO_FACTOR_MEMORY),\n/* harmony export */   USER_DECRYPTION_OPTIONS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.USER_DECRYPTION_OPTIONS_DISK),\n/* harmony export */   USER_NOTIFICATION_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.USER_NOTIFICATION_SETTINGS_DISK),\n/* harmony export */   UserKeyDefinition: () => (/* reexport safe */ _user_key_definition__WEBPACK_IMPORTED_MODULE_6__.UserKeyDefinition),\n/* harmony export */   VAULT_BROWSER_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_BROWSER_MEMORY),\n/* harmony export */   VAULT_BROWSER_UI_ONBOARDING: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_BROWSER_UI_ONBOARDING),\n/* harmony export */   VAULT_FILTER_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_FILTER_DISK),\n/* harmony export */   VAULT_ONBOARDING: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_ONBOARDING),\n/* harmony export */   VAULT_SEARCH_MEMORY: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_SEARCH_MEMORY),\n/* harmony export */   VAULT_SETTINGS_DISK: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_SETTINGS_DISK),\n/* harmony export */   VAULT_TIMEOUT_SETTINGS_DISK_LOCAL: () => (/* reexport safe */ _state_definitions__WEBPACK_IMPORTED_MODULE_8__.VAULT_TIMEOUT_SETTINGS_DISK_LOCAL)\n/* harmony export */ });\n/* harmony import */ var _derive_definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./derive-definition */ \"../../libs/common/src/platform/state/derive-definition.ts\");\n/* harmony import */ var _derived_state_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./derived-state.provider */ \"../../libs/common/src/platform/state/derived-state.provider.ts\");\n/* harmony import */ var _state_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state.provider */ \"../../libs/common/src/platform/state/state.provider.ts\");\n/* harmony import */ var _global_state_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./global-state.provider */ \"../../libs/common/src/platform/state/global-state.provider.ts\");\n/* harmony import */ var _user_state_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./user-state.provider */ \"../../libs/common/src/platform/state/user-state.provider.ts\");\n/* harmony import */ var _key_definition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./key-definition */ \"../../libs/common/src/platform/state/key-definition.ts\");\n/* harmony import */ var _user_key_definition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./user-key-definition */ \"../../libs/common/src/platform/state/user-key-definition.ts\");\n/* harmony import */ var _state_event_runner_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./state-event-runner.service */ \"../../libs/common/src/platform/state/state-event-runner.service.ts\");\n/* harmony import */ var _state_definitions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./state-definitions */ \"../../libs/common/src/platform/state/state-definitions.ts\");\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBdUQ7QUFDUztBQUdmO0FBQ2E7QUFFMkI7QUFDbEI7QUFFYTtBQUNiO0FBRW5DIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL2luZGV4LnRzP2MzZTMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRGVyaXZlRGVmaW5pdGlvbiB9IGZyb20gXCIuL2Rlcml2ZS1kZWZpbml0aW9uXCI7XG5leHBvcnQgeyBEZXJpdmVkU3RhdGVQcm92aWRlciB9IGZyb20gXCIuL2Rlcml2ZWQtc3RhdGU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ceURL=webpack-internal:///../../libs/common/src/platform/state/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/key-definition.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/platform/state/key-definition.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyDefinition: () => (/* binding */ KeyDefinition),\n/* harmony export */   globalKeyBuilder: () => (/* binding */ globalKeyBuilder)\n/* harmony export */ });\n/* harmony import */ var _deserialization_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./deserialization-helpers */ \"../../libs/common/src/platform/state/deserialization-helpers.ts\");\n\n/**\n * KeyDefinitions describe the precise location to store data for a given piece of state.\n * The StateDefinition is used to describe the domain of the state, and the KeyDefinition\n * sub-divides that domain into specific keys.\n */\nclass KeyDefinition {\n    /**\n     * Creates a new instance of a KeyDefinition\n     * @param stateDefinition The state definition for which this key belongs to.\n     * @param key The name of the key, this should be unique per domain.\n     * @param options A set of options to customize the behavior of {@link KeyDefinition}. All options are required.\n     * @param options.deserializer A function to use to safely convert your type from json to your expected type.\n     *   Your data may be serialized/deserialized at any time and this needs callback needs to be able to faithfully re-initialize\n     *   from the JSON object representation of your type.\n     */\n    constructor(stateDefinition, key, options) {\n        var _a;\n        this.stateDefinition = stateDefinition;\n        this.key = key;\n        this.options = options;\n        if (options.deserializer == null) {\n            throw new Error(`'deserializer' is a required property on key ${this.errorKeyName}`);\n        }\n        if (options.cleanupDelayMs < 0) {\n            throw new Error(`'cleanupDelayMs' must be greater than or equal to 0. Value of ${options.cleanupDelayMs} passed to key ${this.errorKeyName} `);\n        }\n        // Normalize optional debug options\n        const { enableUpdateLogging = false, enableRetrievalLogging = false } = (_a = options.debug) !== null && _a !== void 0 ? _a : {};\n        this.debug = {\n            enableUpdateLogging,\n            enableRetrievalLogging,\n        };\n    }\n    /**\n     * Gets the deserializer configured for this {@link KeyDefinition}\n     */\n    get deserializer() {\n        return this.options.deserializer;\n    }\n    /**\n     * Gets the number of milliseconds to wait before cleaning up the state after the last subscriber has unsubscribed.\n     */\n    get cleanupDelayMs() {\n        var _a;\n        return this.options.cleanupDelayMs < 0 ? 0 : ((_a = this.options.cleanupDelayMs) !== null && _a !== void 0 ? _a : 1000);\n    }\n    /**\n     * Creates a {@link KeyDefinition} for state that is an array.\n     * @param stateDefinition The state definition to be added to the KeyDefinition\n     * @param key The key to be added to the KeyDefinition\n     * @param options The options to customize the final {@link KeyDefinition}.\n     * @returns A {@link KeyDefinition} initialized for arrays, the options run\n     * the deserializer on the provided options for each element of an array.\n     *\n     * @example\n     * ```typescript\n     * const MY_KEY = KeyDefinition.array<MyArrayElement>(MY_STATE, \"key\", {\n     *   deserializer: (myJsonElement) => convertToElement(myJsonElement),\n     * });\n     * ```\n     */\n    static array(stateDefinition, key, \n    // We have them provide options for the element of the array, depending on future options we add, this could get a little weird.\n    options) {\n        return new KeyDefinition(stateDefinition, key, Object.assign(Object.assign({}, options), { deserializer: (0,_deserialization_helpers__WEBPACK_IMPORTED_MODULE_0__.array)((e) => options.deserializer(e)) }));\n    }\n    /**\n     * Creates a {@link KeyDefinition} for state that is a record.\n     * @param stateDefinition The state definition to be added to the KeyDefinition\n     * @param key The key to be added to the KeyDefinition\n     * @param options The options to customize the final {@link KeyDefinition}.\n     * @returns A {@link KeyDefinition} that contains a serializer that will run the provided deserializer for each\n     * value in a record and returns every key as a string.\n     *\n     * @example\n     * ```typescript\n     * const MY_KEY = KeyDefinition.record<MyRecordValue>(MY_STATE, \"key\", {\n     *   deserializer: (myJsonValue) => convertToValue(myJsonValue),\n     * });\n     * ```\n     */\n    static record(stateDefinition, key, \n    // We have them provide options for the value of the record, depending on future options we add, this could get a little weird.\n    options) {\n        return new KeyDefinition(stateDefinition, key, Object.assign(Object.assign({}, options), { deserializer: (0,_deserialization_helpers__WEBPACK_IMPORTED_MODULE_0__.record)((v) => options.deserializer(v)) }));\n    }\n    get fullName() {\n        return `${this.stateDefinition.name}_${this.key}`;\n    }\n    get errorKeyName() {\n        return `${this.stateDefinition.name} > ${this.key}`;\n    }\n}\n/**\n * Creates a {@link StorageKey}\n * @param keyDefinition The key definition of which data the key should point to.\n * @returns A key that is ready to be used in a storage service to get data.\n */\nfunction globalKeyBuilder(keyDefinition) {\n    return `global_${keyDefinition.stateDefinition.name}_${keyDefinition.key}`;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11880 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/key-definition.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/state-definition.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/platform/state/state-definition.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StateDefinition: () => (/* binding */ StateDefinition)\n/* harmony export */ });\n/**\n * Defines the base location and instruction of where this state is expected to be located.\n */\nclass StateDefinition {\n    /**\n     * Creates a new instance of {@link StateDefinition}, the creation of which is owned by the platform team.\n     * @param name The name of the state, this needs to be unique from all other {@link StateDefinition}'s.\n     * @param defaultStorageLocation The location of where this state should be stored.\n     */\n    constructor(name, defaultStorageLocation, storageLocationOverrides) {\n        this.name = name;\n        this.defaultStorageLocation = defaultStorageLocation;\n        this.storageLocationOverrides = storageLocationOverrides !== null && storageLocationOverrides !== void 0 ? storageLocationOverrides : {};\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL3N0YXRlLWRlZmluaXRpb24udHMiLCJtYXBwaW5ncyI6Ijs7OztBQTJDQTs7R0FFRztBQUNJLE1B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mcm9tIGFsbCBvdGhlciB7QGxpbmsgU3RhdGVEZWZpbml0aW9ufSdzLlxuICAgKiBAcGFyYW0gZGVmYXVsdFN0b3JhZ2VMb2NhdGlvbiBUaGUgbG9jYXRpb24gb2Ygd2hlcmUgdGhpcyBzdGF0ZSBzaG91bGQgYmUgc3RvcmVkLlxuICAgKi9cbiAgY29uc3RydWN0b3IoXG4gICAgcmVhZG9ubHkgbmFtZTogc3RyaW5nLFxuICAgIHJlYWRvbmx5IGRlZmF1bHRTdG9yYWdlTG9jYXRpb246IFN0b3JhZ2VMb2NhdGlvbixcbiAgICBzdG9yYWdlTG9jYXRpb25PdmVycmlkZXM/OiBQYXJ0aWFsPENsaWVudExvY2F0aW9ucz4sXG4gICkge1xuICAgIHRoaXMuc3RvcmFnZUxvY2F0aW9uT3ZlcnJpZGVzID0gc3RvcmFnZUxvY2F0aW9uT3ZlcnJpZGVzID8/IHt9O1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/state-definition.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/state-definitions.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/platform/state/state-definitions.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ACCOUNT_DISK: () => (/* binding */ ACCOUNT_DISK),\n/* harmony export */   ACCOUNT_MEMORY: () => (/* binding */ ACCOUNT_MEMORY),\n/* harmony export */   AC_BANNERS_DISMISSED_DISK: () => (/* binding */ AC_BANNERS_DISMISSED_DISK),\n/* harmony export */   ANIMATION_DISK: () => (/* binding */ ANIMATION_DISK),\n/* harmony export */   APPLICATION_ID_DISK: () => (/* binding */ APPLICATION_ID_DISK),\n/* harmony export */   AUTH_REQUEST_DISK_LOCAL: () => (/* binding */ AUTH_REQUEST_DISK_LOCAL),\n/* harmony export */   AUTOFILL_SETTINGS_DISK: () => (/* binding */ AUTOFILL_SETTINGS_DISK),\n/* harmony export */   AUTOFILL_SETTINGS_DISK_LOCAL: () => (/* binding */ AUTOFILL_SETTINGS_DISK_LOCAL),\n/* harmony export */   AVATAR_DISK: () => (/* binding */ AVATAR_DISK),\n/* harmony export */   BADGE_SETTINGS_DISK: () => (/* binding */ BADGE_SETTINGS_DISK),\n/* harmony export */   BANNERS_DISMISSED_DISK: () => (/* binding */ BANNERS_DISMISSED_DISK),\n/* harmony export */   BILLING_DISK: () => (/* binding */ BILLING_DISK),\n/* harmony export */   BIOMETRIC_SETTINGS_DISK: () => (/* binding */ BIOMETRIC_SETTINGS_DISK),\n/* harmony export */   BROWSER_SEND_MEMORY: () => (/* binding */ BROWSER_SEND_MEMORY),\n/* harmony export */   CIPHERS_DISK: () => (/* binding */ CIPHERS_DISK),\n/* harmony export */   CIPHERS_DISK_LOCAL: () => (/* binding */ CIPHERS_DISK_LOCAL),\n/* harmony export */   CIPHERS_MEMORY: () => (/* binding */ CIPHERS_MEMORY),\n/* harmony export */   CLEAR_EVENT_DISK: () => (/* binding */ CLEAR_EVENT_DISK),\n/* harmony export */   COLLECTION_DATA: () => (/* binding */ COLLECTION_DATA),\n/* harmony export */   CONFIG_DISK: () => (/* binding */ CONFIG_DISK),\n/* harmony export */   CRYPTO_DISK: () => (/* binding */ CRYPTO_DISK),\n/* harmony export */   CRYPTO_MEMORY: () => (/* binding */ CRYPTO_MEMORY),\n/* harmony export */   DESKTOP_SETTINGS_DISK: () => (/* binding */ DESKTOP_SETTINGS_DISK),\n/* harmony export */   DEVICE_TRUST_DISK_LOCAL: () => (/* binding */ DEVICE_TRUST_DISK_LOCAL),\n/* harmony export */   DOMAIN_SETTINGS_DISK: () => (/* binding */ DOMAIN_SETTINGS_DISK),\n/* harmony export */   ENVIRONMENT_DISK: () => (/* binding */ ENVIRONMENT_DISK),\n/* harmony export */   ENVIRONMENT_MEMORY: () => (/* binding */ ENVIRONMENT_MEMORY),\n/* harmony export */   EVENT_COLLECTION_DISK: () => (/* binding */ EVENT_COLLECTION_DISK),\n/* harmony export */   FOLDER_DISK: () => (/* binding */ FOLDER_DISK),\n/* harmony export */   GENERATOR_DISK: () => (/* binding */ GENERATOR_DISK),\n/* harmony export */   GENERATOR_MEMORY: () => (/* binding */ GENERATOR_MEMORY),\n/* harmony export */   KDF_CONFIG_DISK: () => (/* binding */ KDF_CONFIG_DISK),\n/* harmony export */   KEY_CONNECTOR_DISK: () => (/* binding */ KEY_CONNECTOR_DISK),\n/* harmony export */   LOGIN_EMAIL_DISK: () => (/* binding */ LOGIN_EMAIL_DISK),\n/* harmony export */   LOGIN_EMAIL_MEMORY: () => (/* binding */ LOGIN_EMAIL_MEMORY),\n/* harmony export */   LOGIN_STRATEGY_MEMORY: () => (/* binding */ LOGIN_STRATEGY_MEMORY),\n/* harmony export */   MASTER_PASSWORD_DISK: () => (/* binding */ MASTER_PASSWORD_DISK),\n/* harmony export */   MASTER_PASSWORD_MEMORY: () => (/* binding */ MASTER_PASSWORD_MEMORY),\n/* harmony export */   NEW_WEB_LAYOUT_BANNER_DISK: () => (/* binding */ NEW_WEB_LAYOUT_BANNER_DISK),\n/* harmony export */   ORGANIZATIONS_DISK: () => (/* binding */ ORGANIZATIONS_DISK),\n/* harmony export */   ORGANIZATION_INVITE_DISK: () => (/* binding */ ORGANIZATION_INVITE_DISK),\n/* harmony export */   ORGANIZATION_MANAGEMENT_PREFERENCES_DISK: () => (/* binding */ ORGANIZATION_MANAGEMENT_PREFERENCES_DISK),\n/* harmony export */   PIN_DISK: () => (/* binding */ PIN_DISK),\n/* harmony export */   PIN_MEMORY: () => (/* binding */ PIN_MEMORY),\n/* harmony export */   POLICIES_DISK: () => (/* binding */ POLICIES_DISK),\n/* harmony export */   POPUP_VIEW_MEMORY: () => (/* binding */ POPUP_VIEW_MEMORY),\n/* harmony export */   PREMIUM_BANNER_DISK_LOCAL: () => (/* binding */ PREMIUM_BANNER_DISK_LOCAL),\n/* harmony export */   PROVIDERS_DISK: () => (/* binding */ PROVIDERS_DISK),\n/* harmony export */   ROUTER_DISK: () => (/* binding */ ROUTER_DISK),\n/* harmony export */   SEND_DISK: () => (/* binding */ SEND_DISK),\n/* harmony export */   SEND_MEMORY: () => (/* binding */ SEND_MEMORY),\n/* harmony export */   SM_ONBOARDING_DISK: () => (/* binding */ SM_ONBOARDING_DISK),\n/* harmony export */   SSO_DISK: () => (/* binding */ SSO_DISK),\n/* harmony export */   SYNC_DISK: () => (/* binding */ SYNC_DISK),\n/* harmony export */   TASK_SCHEDULER_DISK: () => (/* binding */ TASK_SCHEDULER_DISK),\n/* harmony export */   THEMING_DISK: () => (/* binding */ THEMING_DISK),\n/* harmony export */   TOKEN_DISK: () => (/* binding */ TOKEN_DISK),\n/* harmony export */   TOKEN_DISK_LOCAL: () => (/* binding */ TOKEN_DISK_LOCAL),\n/* harmony export */   TOKEN_MEMORY: () => (/* binding */ TOKEN_MEMORY),\n/* harmony export */   TRANSLATION_DISK: () => (/* binding */ TRANSLATION_DISK),\n/* harmony export */   TWO_FACTOR_MEMORY: () => (/* binding */ TWO_FACTOR_MEMORY),\n/* harmony export */   USER_DECRYPTION_OPTIONS_DISK: () => (/* binding */ USER_DECRYPTION_OPTIONS_DISK),\n/* harmony export */   USER_NOTIFICATION_SETTINGS_DISK: () => (/* binding */ USER_NOTIFICATION_SETTINGS_DISK),\n/* harmony export */   VAULT_BROWSER_MEMORY: () => (/* binding */ VAULT_BROWSER_MEMORY),\n/* harmony export */   VAULT_BROWSER_UI_ONBOARDING: () => (/* binding */ VAULT_BROWSER_UI_ONBOARDING),\n/* harmony export */   VAULT_FILTER_DISK: () => (/* binding */ VAULT_FILTER_DISK),\n/* harmony export */   VAULT_ONBOARDING: () => (/* binding */ VAULT_ONBOARDING),\n/* harmony export */   VAULT_SEARCH_MEMORY: () => (/* binding */ VAULT_SEARCH_MEMORY),\n/* harmony export */   VAULT_SETTINGS_DISK: () => (/* binding */ VAULT_SETTINGS_DISK),\n/* harmony export */   VAULT_TIMEOUT_SETTINGS_DISK_LOCAL: () => (/* binding */ VAULT_TIMEOUT_SETTINGS_DISK_LOCAL)\n/* harmony export */ });\n/* harmony import */ var _state_definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./state-definition */ \"../../libs/common/src/platform/state/state-definition.ts\");\n\n/**\n * `StateDefinition`s comes with some rules, to facilitate a quick review from\n * platform of this file, ensure you follow these rules, the ones marked with (tested)\n * have unit tests that you can run locally.\n *\n * 1. (tested) Names should not be null or undefined\n * 2. (tested) Name and storage location should be unique\n * 3. (tested) Name and storage location can't differ from another export by only casing\n * 4. (tested) Name should be longer than 3 characters. It should be descriptive, but brief.\n * 5. (tested) Name should not contain spaces or underscores\n * 6. Name should be human readable\n * 7. Name should be in camelCase format (unit tests ensure the first character is lowercase)\n * 8. Teams should only use state definitions they have created\n * 9. StateDefinitions should only be used for keys relating to the state name they chose\n *\n */\n// Admin Console\nconst ORGANIZATIONS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"organizations\", \"disk\");\nconst POLICIES_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"policies\", \"disk\");\nconst PROVIDERS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"providers\", \"disk\");\nconst ORGANIZATION_MANAGEMENT_PREFERENCES_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"organizationManagementPreferences\", \"disk\", {\n    web: \"disk-local\",\n});\nconst AC_BANNERS_DISMISSED_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"acBannersDismissed\", \"disk\", {\n    web: \"disk-local\",\n});\n// Billing\nconst BILLING_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"billing\", \"disk\");\n// Auth\nconst ACCOUNT_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"account\", \"disk\");\nconst ACCOUNT_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"account\", \"memory\");\nconst AUTH_REQUEST_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"authRequestLocal\", \"disk\", {\n    web: \"disk-local\",\n});\nconst AVATAR_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"avatar\", \"disk\", { web: \"disk-local\" });\nconst DEVICE_TRUST_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"deviceTrust\", \"disk\", {\n    web: \"disk-local\",\n    browser: \"disk-backup-local-storage\",\n});\nconst KDF_CONFIG_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"kdfConfig\", \"disk\");\nconst KEY_CONNECTOR_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"keyConnector\", \"disk\");\nconst LOGIN_EMAIL_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"loginEmail\", \"disk\", {\n    web: \"disk-local\",\n});\nconst LOGIN_EMAIL_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"loginEmail\", \"memory\");\nconst LOGIN_STRATEGY_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"loginStrategy\", \"memory\");\nconst MASTER_PASSWORD_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"masterPassword\", \"disk\");\nconst MASTER_PASSWORD_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"masterPassword\", \"memory\");\nconst PIN_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"pinUnlock\", \"disk\");\nconst PIN_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"pinUnlock\", \"memory\");\nconst ROUTER_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"router\", \"disk\");\nconst SSO_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"ssoLogin\", \"disk\");\nconst TOKEN_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"token\", \"disk\");\nconst TOKEN_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"tokenDiskLocal\", \"disk\", {\n    web: \"disk-local\",\n});\nconst TOKEN_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"token\", \"memory\");\nconst TWO_FACTOR_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"twoFactor\", \"memory\");\nconst USER_DECRYPTION_OPTIONS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"userDecryptionOptions\", \"disk\");\nconst ORGANIZATION_INVITE_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"organizationInvite\", \"disk\");\nconst VAULT_TIMEOUT_SETTINGS_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultTimeoutSettings\", \"disk\", {\n    web: \"disk-local\",\n});\n// Autofill\nconst BADGE_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"badgeSettings\", \"disk\");\nconst USER_NOTIFICATION_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"userNotificationSettings\", \"disk\");\nconst DOMAIN_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"domainSettings\", \"disk\");\nconst AUTOFILL_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"autofillSettings\", \"disk\");\nconst AUTOFILL_SETTINGS_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"autofillSettingsLocal\", \"disk\", {\n    web: \"disk-local\",\n});\n// Components\nconst NEW_WEB_LAYOUT_BANNER_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"newWebLayoutBanner\", \"disk\", {\n    web: \"disk-local\",\n});\n// Platform\nconst APPLICATION_ID_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"applicationId\", \"disk\", {\n    web: \"disk-local\",\n});\nconst BIOMETRIC_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"biometricSettings\", \"disk\");\nconst CLEAR_EVENT_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"clearEvent\", \"disk\");\nconst CONFIG_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"config\", \"disk\", {\n    web: \"disk-local\",\n});\nconst CRYPTO_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"crypto\", \"disk\");\nconst CRYPTO_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"crypto\", \"memory\");\nconst DESKTOP_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"desktopSettings\", \"disk\");\nconst ENVIRONMENT_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"environment\", \"disk\");\nconst ENVIRONMENT_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"environment\", \"memory\");\nconst POPUP_VIEW_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"popupView\", \"memory\", {\n    browser: \"memory-large-object\",\n});\nconst SYNC_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"sync\", \"disk\", { web: \"memory\" });\nconst THEMING_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"theming\", \"disk\", { web: \"disk-local\" });\nconst TRANSLATION_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"translation\", \"disk\", { web: \"disk-local\" });\nconst ANIMATION_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"animation\", \"disk\");\nconst TASK_SCHEDULER_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"taskScheduler\", \"disk\");\n// Secrets Manager\nconst SM_ONBOARDING_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"smOnboarding\", \"disk\", {\n    web: \"disk-local\",\n});\n// Tools\nconst GENERATOR_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"generator\", \"disk\");\nconst GENERATOR_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"generator\", \"memory\");\nconst BROWSER_SEND_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"sendBrowser\", \"memory\");\nconst EVENT_COLLECTION_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"eventCollection\", \"disk\");\nconst SEND_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"encryptedSend\", \"disk\", {\n    web: \"memory\",\n});\nconst SEND_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"decryptedSend\", \"memory\", {\n    browser: \"memory-large-object\",\n});\n// Vault\nconst COLLECTION_DATA = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"collection\", \"disk\", {\n    web: \"memory\",\n});\nconst FOLDER_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"folder\", \"disk\", { web: \"memory\" });\nconst VAULT_FILTER_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultFilter\", \"disk\", {\n    web: \"disk-local\",\n});\nconst VAULT_ONBOARDING = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultOnboarding\", \"disk\", {\n    web: \"disk-local\",\n});\nconst VAULT_SETTINGS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultSettings\", \"disk\", {\n    web: \"disk-local\",\n});\nconst VAULT_BROWSER_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultBrowser\", \"memory\", {\n    browser: \"memory-large-object\",\n});\nconst VAULT_SEARCH_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultSearch\", \"memory\", {\n    browser: \"memory-large-object\",\n});\nconst CIPHERS_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"ciphers\", \"disk\", { web: \"memory\" });\nconst CIPHERS_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"ciphersLocal\", \"disk\", {\n    web: \"disk-local\",\n});\nconst CIPHERS_MEMORY = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"ciphersMemory\", \"memory\", {\n    browser: \"memory-large-object\",\n});\nconst PREMIUM_BANNER_DISK_LOCAL = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"premiumBannerReprompt\", \"disk\", {\n    web: \"disk-local\",\n});\nconst BANNERS_DISMISSED_DISK = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"bannersDismissed\", \"disk\");\nconst VAULT_BROWSER_UI_ONBOARDING = new _state_definition__WEBPACK_IMPORTED_MODULE_0__.StateDefinition(\"vaultBrowserUiOnboarding\", \"disk\");\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18484 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/state-definitions.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/state-event-registrar.service.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/platform/state/state-event-registrar.service.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   STATE_LOCK_EVENT: () => (/* binding */ STATE_LOCK_EVENT),\n/* harmony export */   STATE_LOGOUT_EVENT: () => (/* binding */ STATE_LOGOUT_EVENT),\n/* harmony export */   StateEventRegistrarService: () => (/* binding */ StateEventRegistrarService)\n/* harmony export */ });\n/* harmony import */ var _key_definition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./key-definition */ \"../../libs/common/src/platform/state/key-definition.ts\");\n/* harmony import */ var _state_definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state-definitions */ \"../../libs/common/src/platform/state/state-definitions.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst STATE_LOCK_EVENT = _key_definition__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition.array(_state_definitions__WEBPACK_IMPORTED_MODULE_1__.CLEAR_EVENT_DISK, \"lock\", {\n    deserializer: (e) => e,\n});\nconst STATE_LOGOUT_EVENT = _key_definition__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition.array(_state_definitions__WEBPACK_IMPORTED_MODULE_1__.CLEAR_EVENT_DISK, \"logout\", {\n    deserializer: (e) => e,\n});\nclass StateEventRegistrarService {\n    constructor(globalStateProvider, storageServiceProvider) {\n        this.storageServiceProvider = storageServiceProvider;\n        this.stateEventStateMap = {\n            lock: globalStateProvider.get(STATE_LOCK_EVENT),\n            logout: globalStateProvider.get(STATE_LOGOUT_EVENT),\n        };\n    }\n    registerEvents(keyDefinition) {\n        return __awaiter(this, void 0, void 0, function* () {\n            for (const clearEvent of keyDefinition.clearOn) {\n                const eventState = this.stateEventStateMap[clearEvent];\n                // Determine the storage location for this\n                const [storageLocation] = this.storageServiceProvider.get(keyDefinition.stateDefinition.defaultStorageLocation, keyDefinition.stateDefinition.storageLocationOverrides);\n                const newEvent = {\n                    state: keyDefinition.stateDefinition.name,\n                    key: keyDefinition.key,\n                    location: storageLocation,\n                };\n                // Only update the event state if the existing list doesn't have a matching entry\n                yield eventState.update((existingTickets) => {\n                    existingTickets !== null && existingTickets !== void 0 ? existingTickets : (existingTickets = []);\n                    existingTickets.push(newEvent);\n                    return existingTickets;\n                }, {\n                    shouldUpdate: (currentTickets) => {\n                        return (\n                        // If the current tickets are null, then it will for sure be added\n                        currentTickets == null ||\n                            // If an existing match couldn't be found, we also need to add one\n                            currentTickets.findIndex((e) => e.state === newEvent.state &&\n                                e.key === newEvent.key &&\n                                e.location === newEvent.location) === -1);\n                    },\n                });\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5940 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/state-event-registrar.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/state-event-runner.service.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/platform/state/state-event-runner.service.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StateEventRunnerService: () => (/* binding */ StateEventRunnerService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _state_definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./state-definition */ \"../../libs/common/src/platform/state/state-definition.ts\");\n/* harmony import */ var _state_event_registrar_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state-event-registrar.service */ \"../../libs/common/src/platform/state/state-event-registrar.service.ts\");\n/* harmony import */ var _user_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./user-key-definition */ \"../../libs/common/src/platform/state/user-key-definition.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass StateEventRunnerService {\n    constructor(globalStateProvider, storageServiceProvider) {\n        this.storageServiceProvider = storageServiceProvider;\n        this.stateEventMap = {\n            lock: globalStateProvider.get(_state_event_registrar_service__WEBPACK_IMPORTED_MODULE_2__.STATE_LOCK_EVENT),\n            logout: globalStateProvider.get(_state_event_registrar_service__WEBPACK_IMPORTED_MODULE_2__.STATE_LOGOUT_EVENT),\n        };\n    }\n    handleEvent(event, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let tickets = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateEventMap[event].state$);\n            tickets !== null && tickets !== void 0 ? tickets : (tickets = []);\n            const failures = [];\n            for (const ticket of tickets) {\n                try {\n                    const [, service] = this.storageServiceProvider.get(ticket.location, {});\n                    const ticketStorageKey = this.storageKeyFor(userId, ticket);\n                    // Evaluate current value so we can avoid writing to state if we don't need to\n                    const currentValue = yield service.get(ticketStorageKey);\n                    if (currentValue != null) {\n                        yield service.remove(ticketStorageKey);\n                    }\n                }\n                catch (err) {\n                    let errorMessage = \"Unknown Error\";\n                    if (typeof err === \"object\" && \"message\" in err && typeof err.message === \"string\") {\n                        errorMessage = err.message;\n                    }\n                    failures.push(`${errorMessage} in ${ticket.state} > ${ticket.key} located ${ticket.location}`);\n                }\n            }\n            if (failures.length > 0) {\n                // Throw aggregated error\n                throw new Error(`One or more errors occurred while handling event '${event}' for user ${userId}.\\n${failures.join(\"\\n\")}`);\n            }\n        });\n    }\n    storageKeyFor(userId, ticket) {\n        const userKey = new _user_key_definition__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(new _state_definition__WEBPACK_IMPORTED_MODULE_1__.StateDefinition(ticket.state, ticket.location), ticket.key, {\n            deserializer: (v) => v,\n            clearOn: [],\n        });\n        return userKey.buildKey(userId);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6252 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/state-event-runner.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/state-update-options.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/platform/state/state-update-options.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DEFAULT_OPTIONS: () => (/* binding */ DEFAULT_OPTIONS),\n/* harmony export */   populateOptionsWithDefault: () => (/* binding */ populateOptionsWithDefault)\n/* harmony export */ });\nconst DEFAULT_OPTIONS = {\n    shouldUpdate: () => true,\n    combineLatestWith: null,\n    msTimeout: 1000,\n};\nfunction populateOptionsWithDefault(options) {\n    return Object.assign(Object.assign({}, DEFAULT_OPTIONS), options);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL3N0YXRlLXVwZGF0ZS1vcHRpb25zLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBRU8sTUFBTSxlQUFlLEdBQUc7SUFDN0IsWUFBWSxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUk7SUFDeEIsaUJBQWlCLEVBQUUsSUFBMkI7SUFDOUMsU0FBUyxFQUFFLElBQUk7Q0FDaEIsQ0FBQztBQVlLLFNBQVMsMEJBQTBCLENBQ3hDLE9BQXdDO0lBRXhDLHVDQUNNLGVBQW1ELEdBQ3BELE9BQU8sRUFDVjtBQUNKLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvcGxhdGZvcm0vc3RhdGUvc3RhdGUtdXBkYXRlLW9wdGlvbnMudHM/MDIyNCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSBcInJ4anNcIjtcblxuZXhwb3J0IGNvbnN0IERFRkFVTFRfT1BUSU9OUyA9IHtcbiAgc2hvdWxkVXBkYXRlOiAoKSA9PiB0cnVlLFxuICBjb21iaW5lTGF0ZXN0V2l0aDogbnVsbCBhcyBPYnNlcnZhYmxlPHVua25vd24+LFxuICBtc1RpbWVvdXQ6IDEwMDAsXG59O1xuXG50eXBlIERlZmluaXRlbHlUeXBlZERlZmF1bHQ8VCwgVENvbWJpbmU+ID0gT21pdDxcbiAgdHlwZW9mIERFRkFVTFRfT1BUSU9OUyxcbiAgXCJzaG91bGRVcGRhdGVcIiB8IFwiY29tYmluZUxhdGVzdFdpdGhcIlxuPiAmIHtcbiAgc2hvdWxkVXBkYXRlOiAoc3RhdGU6IFQsIGRlcGVuZGVuY3k6IFRDb21iaW5lKSA9PiBib29sZWFuO1xuICBjb21iaW5lTGF0ZXN0V2l0aD86IE9ic2VydmFibGU8VENvbWJpbmU+O1xufTtcblxuZXhwb3J0IHR5cGUgU3RhdGVVcGRhdGVPcHRpb25zPFQsIFRDb21iaW5lPiA9IFBhcnRpYWw8RGVmaW5pdGVseVR5cGVkRGVmYXVsdDxULCBUQ29tYmluZT4+O1xuXG5leHBvcnQgZnVuY3Rpb24gcG9wdWxhdGVPcHRpb25zV2l0aERlZmF1bHQ8VCwgVENvbWJpbmU+KFxuICBvcHRpb25zOiBTdGF0ZVVwZGF0ZU9wdGlvbnM8VCwgVENvbWJpbmU+LFxuKTogU3RhdGVVcGRhdGVPcHRpb25zPFQsIFRDb21iaW5lPiB7XG4gIHJldHVybiB7XG4gICAgLi4uKERFRkFVTFRfT1BUSU9OUyBhcyBTdGF0ZVVwZGF0ZU9wdGlvbnM8VCwgVENvbWJpbmU+KSxcbiAgICAuLi5vcHRpb25zLFxuICB9O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/state-update-options.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/state.provider.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/platform/state/state.provider.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StateProvider: () => (/* binding */ StateProvider)\n/* harmony export */ });\n/** Convenience wrapper class for {@link ActiveUserStateProvider}, {@link SingleUserStateProvider},\n * and {@link GlobalStateProvider}.\n */\nclass StateProvider {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6192 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/storage/memory-storage.service.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/platform/state/storage/memory-storage.service.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MemoryStorageService: () => (/* binding */ MemoryStorageService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _abstractions_storage_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../abstractions/storage.service */ \"../../libs/common/src/platform/abstractions/storage.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass MemoryStorageService extends _abstractions_storage_service__WEBPACK_IMPORTED_MODULE_1__.AbstractStorageService {\n    constructor() {\n        super(...arguments);\n        this.store = {};\n        this.updatesSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();\n    }\n    get valuesRequireDeserialization() {\n        return true;\n    }\n    get updates$() {\n        return this.updatesSubject.asObservable();\n    }\n    get(key) {\n        const json = this.store[key];\n        if (json) {\n            const obj = JSON.parse(json);\n            return Promise.resolve(obj);\n        }\n        return Promise.resolve(null);\n    }\n    has(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.get(key)) != null;\n        });\n    }\n    save(key, obj) {\n        if (obj == null) {\n            return this.remove(key);\n        }\n        // TODO: Remove once foreground/background contexts are separated in browser\n        // Needed to ensure ownership of all memory by the context running the storage service\n        this.store[key] = JSON.stringify(obj);\n        this.updatesSubject.next({ key, updateType: \"save\" });\n        return Promise.resolve();\n    }\n    remove(key) {\n        delete this.store[key];\n        this.updatesSubject.next({ key, updateType: \"remove\" });\n        return Promise.resolve();\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL3N0b3JhZ2UvbWVtb3J5LXN0b3JhZ2Uuc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQStCO0FBTWE7QUFFckMsTUFBTSxvQkFDWCxTQUFRLGlGQUFzQjtJQURoQzs7UUFJWSxVQUFLLEdBQTJCLEVBQUUsQ0FBQztRQUNyQyxtQkFBYyxHQUFHLElBQUkseUNBQU8sRUFBaUIsQ0FBQztJQXNDeEQsQ0FBQztJQXBDQyxJQUFJLDRCQUE0QjtRQUM5QixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7SUFDRCxJQUFJLFFBQVE7UUFDVixPQUFPLElBQUksQ0FBQyxjQUFjLENBQUMsWUFBWSxFQUFFLENBQUM7SUFDNUMsQ0FBQztJQUVELEdBQUcsQ0FBSSxHQUFXO1FBQ2hCLE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDN0IsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNULE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxLQUFLL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n0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/storage/memory-storage.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/user-key-definition.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/state/user-key-definition.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserKeyDefinition: () => (/* binding */ UserKeyDefinition)\n/* harmony export */ });\n/* harmony import */ var _misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _deserialization_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./deserialization-helpers */ \"../../libs/common/src/platform/state/deserialization-helpers.ts\");\nvar _a;\n\n\nconst USER_KEY_DEFINITION_MARKER = Symbol(\"UserKeyDefinition\");\nclass UserKeyDefinition {\n    constructor(stateDefinition, key, options) {\n        var _b;\n        this.stateDefinition = stateDefinition;\n        this.key = key;\n        this.options = options;\n        this[_a] = true;\n        if (options.deserializer == null) {\n            throw new Error(`'deserializer' is a required property on key ${this.errorKeyName}`);\n        }\n        if (options.cleanupDelayMs < 0) {\n            throw new Error(`'cleanupDelayMs' must be greater than or equal to 0. Value of ${options.cleanupDelayMs} passed to key ${this.errorKeyName} `);\n        }\n        // Filter out repeat values\n        this.clearOn = Array.from(new Set(options.clearOn));\n        // Normalize optional debug options\n        const { enableUpdateLogging = false, enableRetrievalLogging = false } = (_b = options.debug) !== null && _b !== void 0 ? _b : {};\n        this.debug = {\n            enableUpdateLogging,\n            enableRetrievalLogging,\n        };\n    }\n    /**\n     * Gets the deserializer configured for this {@link KeyDefinition}\n     */\n    get deserializer() {\n        return this.options.deserializer;\n    }\n    /**\n     * Gets the number of milliseconds to wait before cleaning up the state after the last subscriber has unsubscribed.\n     */\n    get cleanupDelayMs() {\n        var _b;\n        return this.options.cleanupDelayMs < 0 ? 0 : ((_b = this.options.cleanupDelayMs) !== null && _b !== void 0 ? _b : 1000);\n    }\n    /**\n     * Creates a {@link UserKeyDefinition} for state that is an array.\n     * @param stateDefinition The state definition to be added to the UserKeyDefinition\n     * @param key The key to be added to the KeyDefinition\n     * @param options The options to customize the final {@link UserKeyDefinition}.\n     * @returns A {@link UserKeyDefinition} initialized for arrays, the options run\n     * the deserializer on the provided options for each element of an array\n     * **unless that array is null, in which case it will return an empty list.**\n     *\n     * @example\n     * ```typescript\n     * const MY_KEY = UserKeyDefinition.array<MyArrayElement>(MY_STATE, \"key\", {\n     *   deserializer: (myJsonElement) => convertToElement(myJsonElement),\n     * });\n     * ```\n     */\n    static array(stateDefinition, key, \n    // We have them provide options for the element of the array, depending on future options we add, this could get a little weird.\n    options) {\n        return new UserKeyDefinition(stateDefinition, key, Object.assign(Object.assign({}, options), { deserializer: (0,_deserialization_helpers__WEBPACK_IMPORTED_MODULE_1__.array)((e) => options.deserializer(e)) }));\n    }\n    /**\n     * Creates a {@link UserKeyDefinition} for state that is a record.\n     * @param stateDefinition The state definition to be added to the UserKeyDefinition\n     * @param key The key to be added to the KeyDefinition\n     * @param options The options to customize the final {@link UserKeyDefinition}.\n     * @returns A {@link UserKeyDefinition} that contains a serializer that will run the provided deserializer for each\n     * value in a record and returns every key as a string **unless that record is null, in which case it will return an record.**\n     *\n     * @example\n     * ```typescript\n     * const MY_KEY = UserKeyDefinition.record<MyRecordValue>(MY_STATE, \"key\", {\n     *   deserializer: (myJsonValue) => convertToValue(myJsonValue),\n     * });\n     * ```\n     */\n    static record(stateDefinition, key, \n    // We have them provide options for the value of the record, depending on future options we add, this could get a little weird.\n    options) {\n        return new UserKeyDefinition(stateDefinition, key, Object.assign(Object.assign({}, options), { deserializer: (0,_deserialization_helpers__WEBPACK_IMPORTED_MODULE_1__.record)((v) => options.deserializer(v)) }));\n    }\n    get fullName() {\n        return `${this.stateDefinition.name}_${this.key}`;\n    }\n    buildKey(userId) {\n        if (!_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isGuid(userId)) {\n            throw new Error(`You cannot build a user key without a valid UserId, building for key ${this.fullName}`);\n        }\n        return `user_${userId}_${this.stateDefinition.name}_${this.key}`;\n    }\n    get errorKeyName() {\n        return `${this.stateDefinition.name} > ${this.key}`;\n    }\n}\n_a = USER_KEY_DEFINITION_MARKER;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9824 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/user-key-definition.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/user-state.provider.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/state/user-state.provider.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ActiveUserStateProvider: () => (/* binding */ ActiveUserStateProvider),\n/* harmony export */   SingleUserStateProvider: () => (/* binding */ SingleUserStateProvider)\n/* harmony export */ });\n/** A provider for getting an implementation of state scoped to a given key and userId */\nclass SingleUserStateProvider {\n}\n/** A provider for getting an implementation of state scoped to a given key, but always pointing\n * to the currently active user\n */\nclass ActiveUserStateProvider {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N0YXRlL3VzZXItc3RhdGUucHJvdmlkZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFPQSx5RkFBeUY7QUFDbEYsTUFBZSx1QkFBdUI7Q0FRNUM7QUFFRDs7R0FFRztBQUNJLE1BQWUsdUJBQXVCO0NBYTVDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4v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XMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/user-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/state/user-state.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/platform/state/user-state.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   activeMarker: () => (/* binding */ activeMarker)\n/* harmony export */ });\nconst activeMarker = Symbol(\"active\");\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4732 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/state/user-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/sync/core-sync.service.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/platform/sync/core-sync.service.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CoreSyncService: () => (/* binding */ CoreSyncService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _tools_send_models_data_send_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tools/send/models/data/send.data */ \"../../libs/common/src/tools/send/models/data/send.data.ts\");\n/* harmony import */ var _vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vault/models/data/cipher.data */ \"../../libs/common/src/vault/models/data/cipher.data.ts\");\n/* harmony import */ var _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../vault/models/data/folder.data */ \"../../libs/common/src/vault/models/data/folder.data.ts\");\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../state */ \"../../libs/common/src/platform/state/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nconst LAST_SYNC_DATE = new _state__WEBPACK_IMPORTED_MODULE_5__.UserKeyDefinition(_state__WEBPACK_IMPORTED_MODULE_5__.SYNC_DISK, \"lastSync\", {\n    deserializer: (d) => (d != null ? new Date(d) : null),\n    clearOn: [\"logout\"],\n});\n/**\n * Core SyncService Logic EXCEPT for fullSync so that implementations can differ.\n */\nclass CoreSyncService {\n    constructor(stateService, folderService, folderApiService, messageSender, logService, cipherService, collectionService, apiService, accountService, authService, sendService, sendApiService, stateProvider) {\n        this.stateService = stateService;\n        this.folderService = folderService;\n        this.folderApiService = folderApiService;\n        this.messageSender = messageSender;\n        this.logService = logService;\n        this.cipherService = cipherService;\n        this.collectionService = collectionService;\n        this.apiService = apiService;\n        this.accountService = accountService;\n        this.authService = authService;\n        this.sendService = sendService;\n        this.sendApiService = sendApiService;\n        this.stateProvider = stateProvider;\n        this.syncInProgress = false;\n    }\n    getLastSync() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            if (userId == null) {\n                return null;\n            }\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.lastSync$(userId));\n        });\n    }\n    lastSync$(userId) {\n        return this.stateProvider.getUser(userId, LAST_SYNC_DATE).state$;\n    }\n    activeUserLastSync$() {\n        return this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((a) => {\n            if (a == null) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null);\n            }\n            return this.lastSync$(a.id);\n        }));\n    }\n    setLastSync(date, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, LAST_SYNC_DATE).update(() => date);\n        });\n    }\n    syncUpsertFolder(notification, isEdit) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.syncStarted();\n            if (yield this.stateService.getIsAuthenticated()) {\n                try {\n                    const localFolder = yield this.folderService.get(notification.id);\n                    if ((!isEdit && localFolder == null) ||\n                        (isEdit && localFolder != null && localFolder.revisionDate < notification.revisionDate)) {\n                        const remoteFolder = yield this.folderApiService.get(notification.id);\n                        if (remoteFolder != null) {\n                            yield this.folderService.upsert(new _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_4__.FolderData(remoteFolder));\n                            this.messageSender.send(\"syncedUpsertedFolder\", { folderId: notification.id });\n                            return this.syncCompleted(true);\n                        }\n                    }\n                }\n                catch (e) {\n                    this.logService.error(e);\n                }\n            }\n            return this.syncCompleted(false);\n        });\n    }\n    syncDeleteFolder(notification) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.syncStarted();\n            if (yield this.stateService.getIsAuthenticated()) {\n                yield this.folderService.delete(notification.id);\n                this.messageSender.send(\"syncedDeletedFolder\", { folderId: notification.id });\n                this.syncCompleted(true);\n                return true;\n            }\n            return this.syncCompleted(false);\n        });\n    }\n    syncUpsertCipher(notification, isEdit) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.syncStarted();\n            if (yield this.stateService.getIsAuthenticated()) {\n                try {\n                    let shouldUpdate = true;\n                    const localCipher = yield this.cipherService.get(notification.id);\n                    if (localCipher != null && localCipher.revisionDate >= notification.revisionDate) {\n                        shouldUpdate = false;\n                    }\n                    let checkCollections = false;\n                    if (shouldUpdate) {\n                        if (isEdit) {\n                            shouldUpdate = localCipher != null;\n                            checkCollections = true;\n                        }\n                        else {\n                            if (notification.collectionIds == null || notification.organizationId == null) {\n                                shouldUpdate = localCipher == null;\n                            }\n                            else {\n                                shouldUpdate = false;\n                                checkCollections = true;\n                            }\n                        }\n                    }\n                    if (!shouldUpdate &&\n                        checkCollections &&\n                        notification.organizationId != null &&\n                        notification.collectionIds != null &&\n                        notification.collectionIds.length > 0) {\n                        const collections = yield this.collectionService.getAll();\n                        if (collections != null) {\n                            for (let i = 0; i < collections.length; i++) {\n                                if (notification.collectionIds.indexOf(collections[i].id) > -1) {\n                                    shouldUpdate = true;\n                                    break;\n                                }\n                            }\n                        }\n                    }\n                    if (shouldUpdate) {\n                        const remoteCipher = yield this.apiService.getFullCipherDetails(notification.id);\n                        if (remoteCipher != null) {\n                            yield this.cipherService.upsert(new _vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_3__.CipherData(remoteCipher));\n                            this.messageSender.send(\"syncedUpsertedCipher\", { cipherId: notification.id });\n                            return this.syncCompleted(true);\n                        }\n                    }\n                }\n                catch (e) {\n                    if (e != null && e.statusCode === 404 && isEdit) {\n                        yield this.cipherService.delete(notification.id);\n                        this.messageSender.send(\"syncedDeletedCipher\", { cipherId: notification.id });\n                        return this.syncCompleted(true);\n                    }\n                }\n            }\n            return this.syncCompleted(false);\n        });\n    }\n    syncDeleteCipher(notification) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.syncStarted();\n            if (yield this.stateService.getIsAuthenticated()) {\n                yield this.cipherService.delete(notification.id);\n                this.messageSender.send(\"syncedDeletedCipher\", { cipherId: notification.id });\n                return this.syncCompleted(true);\n            }\n            return this.syncCompleted(false);\n        });\n    }\n    syncUpsertSend(notification, isEdit) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.syncStarted();\n            const [activeUserId, status] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((a) => {\n                if (a == null) {\n                    (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)([null, _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.LoggedOut]);\n                }\n                return this.authService.authStatusFor$(a.id).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((s) => [a.id, s]));\n            })));\n            // Process only notifications for currently active user when user is not logged out\n            // TODO: once send service allows data manipulation of non-active users, this should process any received notification\n            if (activeUserId === notification.userId && status !== _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.LoggedOut) {\n                try {\n                    const localSend = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.sendService.get$(notification.id));\n                    if ((!isEdit && localSend == null) ||\n                        (isEdit && localSend != null && localSend.revisionDate < notification.revisionDate)) {\n                        const remoteSend = yield this.sendApiService.getSend(notification.id);\n                        if (remoteSend != null) {\n                            yield this.sendService.upsert(new _tools_send_models_data_send_data__WEBPACK_IMPORTED_MODULE_2__.SendData(remoteSend));\n                            this.messageSender.send(\"syncedUpsertedSend\", { sendId: notification.id });\n                            return this.syncCompleted(true);\n                        }\n                    }\n                }\n                catch (e) {\n                    this.logService.error(e);\n                }\n            }\n            return this.syncCompleted(false);\n        });\n    }\n    syncDeleteSend(notification) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.syncStarted();\n            if (yield this.stateService.getIsAuthenticated()) {\n                yield this.sendService.delete(notification.id);\n                this.messageSender.send(\"syncedDeletedSend\", { sendId: notification.id });\n                this.syncCompleted(true);\n                return true;\n            }\n            return this.syncCompleted(false);\n        });\n    }\n    // Helpers\n    syncStarted() {\n        this.syncInProgress = true;\n        this.messageSender.send(\"syncStarted\");\n    }\n    syncCompleted(successfully) {\n        this.syncInProgress = false;\n        this.messageSender.send(\"syncCompleted\", { successfully: successfully });\n        return successfully;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 23740 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/sync/core-sync.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/sync/default-sync.service.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/platform/sync/default-sync.service.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSyncService: () => (/* binding */ DefaultSyncService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _admin_console_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _admin_console_models_data_organization_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../admin-console/models/data/organization.data */ \"../../libs/common/src/admin-console/models/data/organization.data.ts\");\n/* harmony import */ var _admin_console_models_data_policy_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../admin-console/models/data/policy.data */ \"../../libs/common/src/admin-console/models/data/policy.data.ts\");\n/* harmony import */ var _admin_console_models_data_provider_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../admin-console/models/data/provider.data */ \"../../libs/common/src/admin-console/models/data/provider.data.ts\");\n/* harmony import */ var _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../auth/models/domain/force-set-password-reason */ \"../../libs/common/src/auth/models/domain/force-set-password-reason.ts\");\n/* harmony import */ var _tools_send_models_data_send_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../tools/send/models/data/send.data */ \"../../libs/common/src/tools/send/models/data/send.data.ts\");\n/* harmony import */ var _vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../vault/models/data/cipher.data */ \"../../libs/common/src/vault/models/data/cipher.data.ts\");\n/* harmony import */ var _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../vault/models/data/folder.data */ \"../../libs/common/src/vault/models/data/folder.data.ts\");\n/* harmony import */ var _misc_sequentialize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../misc/sequentialize */ \"../../libs/common/src/platform/misc/sequentialize.ts\");\n/* harmony import */ var _core_sync_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./core-sync.service */ \"../../libs/common/src/platform/sync/core-sync.service.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass DefaultSyncService extends _core_sync_service__WEBPACK_IMPORTED_MODULE_12__.CoreSyncService {\n    constructor(masterPasswordService, accountService, apiService, domainSettingsService, folderService, cipherService, keyService, collectionService, messageSender, policyService, sendService, logService, keyConnectorService, stateService, providerService, folderApiService, organizationService, sendApiService, userDecryptionOptionsService, avatarService, logoutCallback, billingAccountProfileStateService, tokenService, authService, stateProvider) {\n        super(stateService, folderService, folderApiService, messageSender, logService, cipherService, collectionService, apiService, accountService, authService, sendService, sendApiService, stateProvider);\n        this.masterPasswordService = masterPasswordService;\n        this.domainSettingsService = domainSettingsService;\n        this.keyService = keyService;\n        this.policyService = policyService;\n        this.keyConnectorService = keyConnectorService;\n        this.providerService = providerService;\n        this.organizationService = organizationService;\n        this.userDecryptionOptionsService = userDecryptionOptionsService;\n        this.avatarService = avatarService;\n        this.logoutCallback = logoutCallback;\n        this.billingAccountProfileStateService = billingAccountProfileStateService;\n        this.tokenService = tokenService;\n        this.syncInProgress = false;\n    }\n    fullSync(forceSync_1) {\n        return __awaiter(this, arguments, void 0, function* (forceSync, allowThrowOnError = false) {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            this.syncStarted();\n            const authStatus = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.authService.authStatusFor$(userId));\n            if (authStatus === _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_6__.AuthenticationStatus.LoggedOut) {\n                return this.syncCompleted(false);\n            }\n            const now = new Date();\n            let needsSync = false;\n            try {\n                needsSync = yield this.needsSyncing(forceSync);\n            }\n            catch (e) {\n                if (allowThrowOnError) {\n                    this.syncCompleted(false);\n                    throw e;\n                }\n            }\n            if (!needsSync) {\n                yield this.setLastSync(now, userId);\n                return this.syncCompleted(false);\n            }\n            try {\n                yield this.apiService.refreshIdentityToken();\n                const response = yield this.apiService.getSync();\n                yield this.syncProfile(response.profile);\n                yield this.syncFolders(response.folders, response.profile.id);\n                yield this.syncCollections(response.collections, response.profile.id);\n                yield this.syncCiphers(response.ciphers, response.profile.id);\n                yield this.syncSends(response.sends, response.profile.id);\n                yield this.syncSettings(response.domains, response.profile.id);\n                yield this.syncPolicies(response.policies, response.profile.id);\n                yield this.setLastSync(now, userId);\n                return this.syncCompleted(true);\n            }\n            catch (e) {\n                if (allowThrowOnError) {\n                    this.syncCompleted(false);\n                    throw e;\n                }\n                else {\n                    return this.syncCompleted(false);\n                }\n            }\n        });\n    }\n    needsSyncing(forceSync) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (forceSync) {\n                return true;\n            }\n            const lastSync = yield this.getLastSync();\n            if (lastSync == null || lastSync.getTime() === 0) {\n                return true;\n            }\n            const response = yield this.apiService.getAccountRevisionDate();\n            if (response < 0 && this.logoutCallback) {\n                // Account was deleted, log out now\n                yield this.logoutCallback(\"accountDeleted\");\n            }\n            if (new Date(response) <= lastSync) {\n                return false;\n            }\n            return true;\n        });\n    }\n    syncProfile(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const stamp = yield this.tokenService.getSecurityStamp(response.id);\n            if (stamp != null && stamp !== response.securityStamp) {\n                if (this.logoutCallback != null) {\n                    yield this.logoutCallback(\"invalidSecurityStamp\");\n                }\n                throw new Error(\"Stamp has changed\");\n            }\n            yield this.keyService.setMasterKeyEncryptedUserKey(response.key, response.id);\n            yield this.keyService.setPrivateKey(response.privateKey, response.id);\n            yield this.keyService.setProviderKeys(response.providers, response.id);\n            yield this.keyService.setOrgKeys(response.organizations, response.providerOrganizations, response.id);\n            yield this.avatarService.setSyncAvatarColor(response.id, response.avatarColor);\n            yield this.tokenService.setSecurityStamp(response.securityStamp, response.id);\n            yield this.accountService.setAccountEmailVerified(response.id, response.emailVerified);\n            yield this.billingAccountProfileStateService.setHasPremium(response.premiumPersonally, response.premiumFromOrganization, response.id);\n            yield this.keyConnectorService.setUsesKeyConnector(response.usesKeyConnector, response.id);\n            yield this.setForceSetPasswordReasonIfNeeded(response);\n            const providers = {};\n            response.providers.forEach((p) => {\n                providers[p.id] = new _admin_console_models_data_provider_data__WEBPACK_IMPORTED_MODULE_5__.ProviderData(p);\n            });\n            yield this.providerService.save(providers, response.id);\n            yield this.syncProfileOrganizations(response, response.id);\n            if (yield this.keyConnectorService.userNeedsMigration(response.id)) {\n                yield this.keyConnectorService.setConvertAccountRequired(true, response.id);\n                this.messageSender.send(\"convertAccountToKeyConnector\");\n            }\n            else {\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.keyConnectorService.removeConvertAccountRequired(response.id);\n            }\n        });\n    }\n    setForceSetPasswordReasonIfNeeded(profileResponse) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            // The `forcePasswordReset` flag indicates an admin has reset the user's password and must be updated\n            if (profileResponse.forcePasswordReset) {\n                yield this.masterPasswordService.setForceSetPasswordReason(_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_7__.ForceSetPasswordReason.AdminForcePasswordReset, profileResponse.id);\n            }\n            const userDecryptionOptions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.userDecryptionOptionsService.userDecryptionOptionsById$(profileResponse.id));\n            if (userDecryptionOptions === null || userDecryptionOptions === undefined) {\n                this.logService.error(\"Sync: Account decryption options are null or undefined.\");\n            }\n            // Even though TDE users should only be in a single org (per single org policy), check\n            // through all orgs for the manageResetPassword permission. If they have it in any org,\n            // they should be forced to set a password.\n            let hasManageResetPasswordPermission = false;\n            for (const org of profileResponse.organizations) {\n                const isAdmin = org.type === _admin_console_enums__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserType.Admin;\n                const isOwner = org.type === _admin_console_enums__WEBPACK_IMPORTED_MODULE_2__.OrganizationUserType.Owner;\n                // Note: apparently permissions only come down populated for custom roles.\n                if (isAdmin || isOwner || (org.permissions && org.permissions.manageResetPassword)) {\n                    hasManageResetPasswordPermission = true;\n                    break;\n                }\n            }\n            if (userDecryptionOptions.trustedDeviceOption !== undefined &&\n                !userDecryptionOptions.hasMasterPassword &&\n                hasManageResetPasswordPermission) {\n                // TDE user w/out MP went from having no password reset permission to having it.\n                // Must set the force password reset reason so the auth guard will redirect to the set password page.\n                const userId = (_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$))) === null || _a === void 0 ? void 0 : _a.id;\n                yield this.masterPasswordService.setForceSetPasswordReason(_auth_models_domain_force_set_password_reason__WEBPACK_IMPORTED_MODULE_7__.ForceSetPasswordReason.TdeUserWithoutPasswordHasPasswordResetPermission, userId);\n            }\n        });\n    }\n    syncProfileOrganizations(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const organizations = {};\n            response.organizations.forEach((o) => {\n                organizations[o.id] = new _admin_console_models_data_organization_data__WEBPACK_IMPORTED_MODULE_3__.OrganizationData(o, {\n                    isMember: true,\n                    isProviderUser: false,\n                });\n            });\n            response.providerOrganizations.forEach((o) => {\n                if (organizations[o.id] == null) {\n                    organizations[o.id] = new _admin_console_models_data_organization_data__WEBPACK_IMPORTED_MODULE_3__.OrganizationData(o, {\n                        isMember: false,\n                        isProviderUser: true,\n                    });\n                }\n                else {\n                    organizations[o.id].isProviderUser = true;\n                }\n            });\n            yield this.organizationService.replace(organizations, userId);\n        });\n    }\n    syncFolders(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const folders = {};\n            response.forEach((f) => {\n                folders[f.id] = new _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_10__.FolderData(f);\n            });\n            return yield this.folderService.replace(folders, userId);\n        });\n    }\n    syncCollections(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const collections = {};\n            response.forEach((c) => {\n                collections[c.id] = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionData(c);\n            });\n            return yield this.collectionService.replace(collections, userId);\n        });\n    }\n    syncCiphers(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const ciphers = {};\n            response.forEach((c) => {\n                ciphers[c.id] = new _vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(c);\n            });\n            return yield this.cipherService.replace(ciphers, userId);\n        });\n    }\n    syncSends(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const sends = {};\n            response.forEach((s) => {\n                sends[s.id] = new _tools_send_models_data_send_data__WEBPACK_IMPORTED_MODULE_8__.SendData(s);\n            });\n            return yield this.sendService.replace(sends, userId);\n        });\n    }\n    syncSettings(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let eqDomains = [];\n            if (response != null && response.equivalentDomains != null) {\n                eqDomains = eqDomains.concat(response.equivalentDomains);\n            }\n            if (response != null && response.globalEquivalentDomains != null) {\n                response.globalEquivalentDomains.forEach((global) => {\n                    if (global.domains.length > 0) {\n                        eqDomains.push(global.domains);\n                    }\n                });\n            }\n            return this.domainSettingsService.setEquivalentDomains(eqDomains, userId);\n        });\n    }\n    syncPolicies(response, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const policies = {};\n            if (response != null) {\n                response.forEach((p) => {\n                    policies[p.id] = new _admin_console_models_data_policy_data__WEBPACK_IMPORTED_MODULE_4__.PolicyData(p);\n                });\n            }\n            return yield this.policyService.replace(policies, userId);\n        });\n    }\n}\n__decorate([\n    (0,_misc_sequentialize__WEBPACK_IMPORTED_MODULE_11__.sequentialize)(() => \"fullSync\"),\n    __metadata(\"design:type\", Function),\n    __metadata(\"design:paramtypes\", [Boolean, Object]),\n    __metadata(\"design:returntype\", Promise)\n], DefaultSyncService.prototype, \"fullSync\", null);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 32244 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/sync/default-sync.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/sync/index.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/platform/sync/index.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SyncResponse: () => (/* reexport safe */ _sync_response__WEBPACK_IMPORTED_MODULE_1__.SyncResponse),\n/* harmony export */   SyncService: () => (/* reexport safe */ _sync_service__WEBPACK_IMPORTED_MODULE_0__.SyncService)\n/* harmony export */ });\n/* harmony import */ var _sync_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sync.service */ \"../../libs/common/src/platform/sync/sync.service.ts\");\n/* harmony import */ var _sync_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sync.response */ \"../../libs/common/src/platform/sync/sync.response.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N5bmMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUE2QztBQUNFIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N5bmMvaW5kZXgudHM/YjczYiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBTeW5jU2VydmljZSB9IGZyb20gXCIuL3N5bmMuc2VydmljZVwiO1xuZXhwb3J0IHsgU3luY1Jlc3BvbnNlIH0gZnJvbSBcIi4vc3luYy5yZXNwb25zZVwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/sync/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/sync/internal.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/platform/sync/internal.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CoreSyncService: () => (/* reexport safe */ _core_sync_service__WEBPACK_IMPORTED_MODULE_1__.CoreSyncService),\n/* harmony export */   DefaultSyncService: () => (/* reexport safe */ _default_sync_service__WEBPACK_IMPORTED_MODULE_0__.DefaultSyncService)\n/* harmony export */ });\n/* harmony import */ var _default_sync_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-sync.service */ \"../../libs/common/src/platform/sync/default-sync.service.ts\");\n/* harmony import */ var _core_sync_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core-sync.service */ \"../../libs/common/src/platform/sync/core-sync.service.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N5bmMvaW50ZXJuYWwudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUE0RDtBQUNOIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3BsYXRmb3JtL3N5bmMvaW50ZXJuYWwudHM/NmI3YyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBEZWZhdWx0U3luY1NlcnZpY2UgfSBmcm9tIFwiLi9kZWZhdWx0LXN5bmMuc2VydmljZVwiO1xuZXhwb3J0IHsgQ29yZVN5bmNTZXJ2aWNlIH0gZnJvbSBcIi4vY29yZS1zeW5jLnNlcnZpY2VcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/sync/internal.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/sync/sync.response.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/platform/sync/sync.response.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SyncResponse: () => (/* binding */ SyncResponse)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _admin_console_models_response_policy_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../admin-console/models/response/policy.response */ \"../../libs/common/src/admin-console/models/response/policy.response.ts\");\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _models_response_domains_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/response/domains.response */ \"../../libs/common/src/models/response/domains.response.ts\");\n/* harmony import */ var _models_response_profile_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/response/profile.response */ \"../../libs/common/src/models/response/profile.response.ts\");\n/* harmony import */ var _tools_send_models_response_send_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../tools/send/models/response/send.response */ \"../../libs/common/src/tools/send/models/response/send.response.ts\");\n/* harmony import */ var _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vault/models/response/cipher.response */ \"../../libs/common/src/vault/models/response/cipher.response.ts\");\n/* harmony import */ var _vault_models_response_folder_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../vault/models/response/folder.response */ \"../../libs/common/src/vault/models/response/folder.response.ts\");\n\n\n\n\n\n\n\n\nclass SyncResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_2__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.folders = [];\n        this.collections = [];\n        this.ciphers = [];\n        this.policies = [];\n        this.sends = [];\n        const profile = this.getResponseProperty(\"Profile\");\n        if (profile != null) {\n            this.profile = new _models_response_profile_response__WEBPACK_IMPORTED_MODULE_4__.ProfileResponse(profile);\n        }\n        const folders = this.getResponseProperty(\"Folders\");\n        if (folders != null) {\n            this.folders = folders.map((f) => new _vault_models_response_folder_response__WEBPACK_IMPORTED_MODULE_7__.FolderResponse(f));\n        }\n        const collections = this.getResponseProperty(\"Collections\");\n        if (collections != null) {\n            this.collections = collections.map((c) => new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionDetailsResponse(c));\n        }\n        const ciphers = this.getResponseProperty(\"Ciphers\");\n        if (ciphers != null) {\n            this.ciphers = ciphers.map((c) => new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_6__.CipherResponse(c));\n        }\n        const domains = this.getResponseProperty(\"Domains\");\n        if (domains != null) {\n            this.domains = new _models_response_domains_response__WEBPACK_IMPORTED_MODULE_3__.DomainsResponse(domains);\n        }\n        const policies = this.getResponseProperty(\"Policies\");\n        if (policies != null) {\n            this.policies = policies.map((p) => new _admin_console_models_response_policy_response__WEBPACK_IMPORTED_MODULE_1__.PolicyResponse(p));\n        }\n        const sends = this.getResponseProperty(\"Sends\");\n        if (sends != null) {\n            this.sends = sends.map((s) => new _tools_send_models_response_send_response__WEBPACK_IMPORTED_MODULE_5__.SendResponse(s));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5404 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/sync/sync.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/platform/sync/sync.service.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/platform/sync/sync.service.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SyncService: () => (/* binding */ SyncService)\n/* harmony export */ });\n/**\n * A class encapsulating sync operations and data.\n */\nclass SyncService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4292 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/platform/sync/sync.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/api.service.ts":
/*!*****************************************************!*\
  !*** ../../libs/common/src/services/api.service.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ApiService: () => (/* binding */ ApiService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _admin_console_models_response_organization_connection_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../admin-console/models/response/organization-connection.response */ \"../../libs/common/src/admin-console/models/response/organization-connection.response.ts\");\n/* harmony import */ var _admin_console_models_response_organization_export_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../admin-console/models/response/organization-export.response */ \"../../libs/common/src/admin-console/models/response/organization-export.response.ts\");\n/* harmony import */ var _admin_console_models_response_organization_sponsorship_sync_status_response__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../admin-console/models/response/organization-sponsorship-sync-status.response */ \"../../libs/common/src/admin-console/models/response/organization-sponsorship-sync-status.response.ts\");\n/* harmony import */ var _admin_console_models_response_provider_provider_organization_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../admin-console/models/response/provider/provider-organization.response */ \"../../libs/common/src/admin-console/models/response/provider/provider-organization.response.ts\");\n/* harmony import */ var _admin_console_models_response_provider_provider_user_bulk_public_key_response__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../admin-console/models/response/provider/provider-user-bulk-public-key.response */ \"../../libs/common/src/admin-console/models/response/provider/provider-user-bulk-public-key.response.ts\");\n/* harmony import */ var _admin_console_models_response_provider_provider_user_bulk_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../admin-console/models/response/provider/provider-user-bulk.response */ \"../../libs/common/src/admin-console/models/response/provider/provider-user-bulk.response.ts\");\n/* harmony import */ var _admin_console_models_response_provider_provider_user_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../admin-console/models/response/provider/provider-user.response */ \"../../libs/common/src/admin-console/models/response/provider/provider-user.response.ts\");\n/* harmony import */ var _admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../admin-console/models/response/selection-read-only.response */ \"../../libs/common/src/admin-console/models/response/selection-read-only.response.ts\");\n/* harmony import */ var _auth_models_request_identity_token_device_request__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../auth/models/request/identity-token/device.request */ \"../../libs/common/src/auth/models/request/identity-token/device.request.ts\");\n/* harmony import */ var _auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../auth/models/request/identity-token/token-two-factor.request */ \"../../libs/common/src/auth/models/request/identity-token/token-two-factor.request.ts\");\n/* harmony import */ var _auth_models_request_identity_token_user_api_token_request__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../auth/models/request/identity-token/user-api-token.request */ \"../../libs/common/src/auth/models/request/identity-token/user-api-token.request.ts\");\n/* harmony import */ var _auth_models_response_api_key_response__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../auth/models/response/api-key.response */ \"../../libs/common/src/auth/models/response/api-key.response.ts\");\n/* harmony import */ var _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../auth/models/response/auth-request.response */ \"../../libs/common/src/auth/models/response/auth-request.response.ts\");\n/* harmony import */ var _auth_models_response_device_verification_response__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../auth/models/response/device-verification.response */ \"../../libs/common/src/auth/models/response/device-verification.response.ts\");\n/* harmony import */ var _auth_models_response_identity_captcha_response__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../auth/models/response/identity-captcha.response */ \"../../libs/common/src/auth/models/response/identity-captcha.response.ts\");\n/* harmony import */ var _auth_models_response_identity_token_response__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../auth/models/response/identity-token.response */ \"../../libs/common/src/auth/models/response/identity-token.response.ts\");\n/* harmony import */ var _auth_models_response_identity_two_factor_response__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../auth/models/response/identity-two-factor.response */ \"../../libs/common/src/auth/models/response/identity-two-factor.response.ts\");\n/* harmony import */ var _auth_models_response_key_connector_user_key_response__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../auth/models/response/key-connector-user-key.response */ \"../../libs/common/src/auth/models/response/key-connector-user-key.response.ts\");\n/* harmony import */ var _auth_models_response_prelogin_response__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../auth/models/response/prelogin.response */ \"../../libs/common/src/auth/models/response/prelogin.response.ts\");\n/* harmony import */ var _auth_models_response_register_response__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../auth/models/response/register.response */ \"../../libs/common/src/auth/models/response/register.response.ts\");\n/* harmony import */ var _auth_models_response_sso_pre_validate_response__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../auth/models/response/sso-pre-validate.response */ \"../../libs/common/src/auth/models/response/sso-pre-validate.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_authenticator_response__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../auth/models/response/two-factor-authenticator.response */ \"../../libs/common/src/auth/models/response/two-factor-authenticator.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_duo_response__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../auth/models/response/two-factor-duo.response */ \"../../libs/common/src/auth/models/response/two-factor-duo.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_email_response__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../auth/models/response/two-factor-email.response */ \"../../libs/common/src/auth/models/response/two-factor-email.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_provider_response__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../auth/models/response/two-factor-provider.response */ \"../../libs/common/src/auth/models/response/two-factor-provider.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_recover_response__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../auth/models/response/two-factor-recover.response */ \"../../libs/common/src/auth/models/response/two-factor-recover.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_web_authn_response__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../auth/models/response/two-factor-web-authn.response */ \"../../libs/common/src/auth/models/response/two-factor-web-authn.response.ts\");\n/* harmony import */ var _auth_models_response_two_factor_yubi_key_response__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../auth/models/response/two-factor-yubi-key.response */ \"../../libs/common/src/auth/models/response/two-factor-yubi-key.response.ts\");\n/* harmony import */ var _billing_models_response_billing_history_response__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../billing/models/response/billing-history.response */ \"../../libs/common/src/billing/models/response/billing-history.response.ts\");\n/* harmony import */ var _billing_models_response_billing_payment_response__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../billing/models/response/billing-payment.response */ \"../../libs/common/src/billing/models/response/billing-payment.response.ts\");\n/* harmony import */ var _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../billing/models/response/payment.response */ \"../../libs/common/src/billing/models/response/payment.response.ts\");\n/* harmony import */ var _billing_models_response_plan_response__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../billing/models/response/plan.response */ \"../../libs/common/src/billing/models/response/plan.response.ts\");\n/* harmony import */ var _billing_models_response_subscription_response__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../billing/models/response/subscription.response */ \"../../libs/common/src/billing/models/response/subscription.response.ts\");\n/* harmony import */ var _billing_models_response_tax_info_response__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../billing/models/response/tax-info.response */ \"../../libs/common/src/billing/models/response/tax-info.response.ts\");\n/* harmony import */ var _billing_models_response_tax_rate_response__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../billing/models/response/tax-rate.response */ \"../../libs/common/src/billing/models/response/tax-rate.response.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _models_request_collection_bulk_delete_request__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../models/request/collection-bulk-delete.request */ \"../../libs/common/src/models/request/collection-bulk-delete.request.ts\");\n/* harmony import */ var _models_response_breach_account_response__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../models/response/breach-account.response */ \"../../libs/common/src/models/response/breach-account.response.ts\");\n/* harmony import */ var _models_response_domains_response__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../models/response/domains.response */ \"../../libs/common/src/models/response/domains.response.ts\");\n/* harmony import */ var _models_response_error_response__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../models/response/event.response */ \"../../libs/common/src/models/response/event.response.ts\");\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _models_response_profile_response__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../models/response/profile.response */ \"../../libs/common/src/models/response/profile.response.ts\");\n/* harmony import */ var _models_response_user_key_response__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../models/response/user-key.response */ \"../../libs/common/src/models/response/user-key.response.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_sync__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../platform/sync */ \"../../libs/common/src/platform/sync/index.ts\");\n/* harmony import */ var _vault_models_response_attachment_upload_data_response__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../vault/models/response/attachment-upload-data.response */ \"../../libs/common/src/vault/models/response/attachment-upload-data.response.ts\");\n/* harmony import */ var _vault_models_response_attachment_response__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../vault/models/response/attachment.response */ \"../../libs/common/src/vault/models/response/attachment.response.ts\");\n/* harmony import */ var _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../vault/models/response/cipher.response */ \"../../libs/common/src/vault/models/response/cipher.response.ts\");\n/* harmony import */ var _vault_models_response_optional_cipher_response__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../vault/models/response/optional-cipher.response */ \"../../libs/common/src/vault/models/response/optional-cipher.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @deprecated The `ApiService` class is deprecated and calls should be extracted into individual\n * api services. The `send` method is still allowed to be used within api services. For background\n * of this decision please read https://contributing.bitwarden.com/architecture/adr/refactor-api-service.\n */\nclass ApiService {\n    constructor(tokenService, platformUtilsService, environmentService, appIdService, refreshAccessTokenErrorCallback, logService, logoutCallback, vaultTimeoutSettingsService, customUserAgent = null) {\n        this.tokenService = tokenService;\n        this.platformUtilsService = platformUtilsService;\n        this.environmentService = environmentService;\n        this.appIdService = appIdService;\n        this.refreshAccessTokenErrorCallback = refreshAccessTokenErrorCallback;\n        this.logService = logService;\n        this.logoutCallback = logoutCallback;\n        this.vaultTimeoutSettingsService = vaultTimeoutSettingsService;\n        this.customUserAgent = customUserAgent;\n        this.isWebClient = false;\n        this.isDesktopClient = false;\n        this.device = platformUtilsService.getDevice();\n        this.deviceType = this.device.toString();\n        this.isWebClient =\n            this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.IEBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.ChromeBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.EdgeBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.FirefoxBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.OperaBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.SafariBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.UnknownBrowser ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.VivaldiBrowser;\n        this.isDesktopClient =\n            this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.WindowsDesktop ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.MacOsDesktop ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.LinuxDesktop ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.WindowsCLI ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.MacOsCLI ||\n                this.device === _enums__WEBPACK_IMPORTED_MODULE_37__.DeviceType.LinuxCLI;\n    }\n    // Auth APIs\n    postIdentityToken(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const headers = new Headers({\n                \"Content-Type\": \"application/x-www-form-urlencoded; charset=utf-8\",\n                Accept: \"application/json\",\n                \"Device-Type\": this.deviceType,\n            });\n            if (this.customUserAgent != null) {\n                headers.set(\"User-Agent\", this.customUserAgent);\n            }\n            request.alterIdentityTokenHeaders(headers);\n            const identityToken = request instanceof _auth_models_request_identity_token_user_api_token_request__WEBPACK_IMPORTED_MODULE_12__.UserApiTokenRequest\n                ? request.toIdentityToken()\n                : request.toIdentityToken(this.platformUtilsService.getClientType());\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const response = yield this.fetch(new Request(env.getIdentityUrl() + \"/connect/token\", {\n                body: this.qsStringify(identityToken),\n                credentials: yield this.getCredentials(),\n                cache: \"no-store\",\n                headers: headers,\n                method: \"POST\",\n            }));\n            let responseJson = null;\n            if (this.isJsonResponse(response)) {\n                responseJson = yield response.json();\n            }\n            if (responseJson != null) {\n                if (response.status === 200) {\n                    return new _auth_models_response_identity_token_response__WEBPACK_IMPORTED_MODULE_17__.IdentityTokenResponse(responseJson);\n                }\n                else if (response.status === 400 &&\n                    responseJson.TwoFactorProviders2 &&\n                    Object.keys(responseJson.TwoFactorProviders2).length) {\n                    return new _auth_models_response_identity_two_factor_response__WEBPACK_IMPORTED_MODULE_18__.IdentityTwoFactorResponse(responseJson);\n                }\n                else if (response.status === 400 &&\n                    responseJson.HCaptcha_SiteKey &&\n                    Object.keys(responseJson.HCaptcha_SiteKey).length) {\n                    return new _auth_models_response_identity_captcha_response__WEBPACK_IMPORTED_MODULE_16__.IdentityCaptchaResponse(responseJson);\n                }\n            }\n            return Promise.reject(new _models_response_error_response__WEBPACK_IMPORTED_MODULE_41__.ErrorResponse(responseJson, response.status, true));\n        });\n    }\n    refreshIdentityToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                yield this.refreshToken();\n            }\n            catch (e) {\n                this.logService.error(\"Error refreshing access token: \", e);\n                throw e;\n            }\n        });\n    }\n    // TODO: PM-3519: Create and move to AuthRequest Api service\n    postAuthRequest(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/auth-requests/\", request, false, true);\n            return new _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__.AuthRequestResponse(r);\n        });\n    }\n    postAdminAuthRequest(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/auth-requests/admin-request\", request, true, true);\n            return new _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__.AuthRequestResponse(r);\n        });\n    }\n    getAuthResponse(id, accessCode) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const path = `/auth-requests/${id}/response?code=${accessCode}`;\n            const r = yield this.send(\"GET\", path, null, false, true);\n            return new _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__.AuthRequestResponse(r);\n        });\n    }\n    getAuthRequest(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const path = `/auth-requests/${id}`;\n            const r = yield this.send(\"GET\", path, null, true, true);\n            return new _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__.AuthRequestResponse(r);\n        });\n    }\n    putAuthRequest(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const path = `/auth-requests/${id}`;\n            const r = yield this.send(\"PUT\", path, request, true, true);\n            return new _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__.AuthRequestResponse(r);\n        });\n    }\n    getAuthRequests() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const path = `/auth-requests/`;\n            const r = yield this.send(\"GET\", path, null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _auth_models_response_auth_request_response__WEBPACK_IMPORTED_MODULE_14__.AuthRequestResponse);\n        });\n    }\n    getLastAuthRequest() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const requests = yield this.getAuthRequests();\n            const activeRequests = requests.data.filter((m) => !m.isAnswered && !m.isExpired);\n            const lastRequest = activeRequests.sort((a, b) => a.creationDate.localeCompare(b.creationDate))[activeRequests.length - 1];\n            return lastRequest;\n        });\n    }\n    // Account APIs\n    getProfile() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/accounts/profile\", null, true, true);\n            return new _models_response_profile_response__WEBPACK_IMPORTED_MODULE_44__.ProfileResponse(r);\n        });\n    }\n    getUserSubscription() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/accounts/subscription\", null, true, true);\n            return new _billing_models_response_subscription_response__WEBPACK_IMPORTED_MODULE_34__.SubscriptionResponse(r);\n        });\n    }\n    getTaxInfo() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/accounts/tax\", null, true, true);\n            return new _billing_models_response_tax_info_response__WEBPACK_IMPORTED_MODULE_35__.TaxInfoResponse(r);\n        });\n    }\n    putProfile(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/accounts/profile\", request, true, true);\n            return new _models_response_profile_response__WEBPACK_IMPORTED_MODULE_44__.ProfileResponse(r);\n        });\n    }\n    putAvatar(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/accounts/avatar\", request, true, true);\n            return new _models_response_profile_response__WEBPACK_IMPORTED_MODULE_44__.ProfileResponse(r);\n        });\n    }\n    putTaxInfo(request) {\n        return this.send(\"PUT\", \"/accounts/tax\", request, true, false);\n    }\n    postPrelogin(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const r = yield this.send(\"POST\", \"/accounts/prelogin\", request, false, true, env.getIdentityUrl());\n            return new _auth_models_response_prelogin_response__WEBPACK_IMPORTED_MODULE_20__.PreloginResponse(r);\n        });\n    }\n    postEmailToken(request) {\n        return this.send(\"POST\", \"/accounts/email-token\", request, true, false);\n    }\n    postEmail(request) {\n        return this.send(\"POST\", \"/accounts/email\", request, true, false);\n    }\n    postPassword(request) {\n        return this.send(\"POST\", \"/accounts/password\", request, true, false);\n    }\n    setPassword(request) {\n        return this.send(\"POST\", \"/accounts/set-password\", request, true, false);\n    }\n    postSetKeyConnectorKey(request) {\n        return this.send(\"POST\", \"/accounts/set-key-connector-key\", request, true, false);\n    }\n    postSecurityStamp(request) {\n        return this.send(\"POST\", \"/accounts/security-stamp\", request, true, false);\n    }\n    getAccountRevisionDate() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/accounts/revision-date\", null, true, true);\n            return r;\n        });\n    }\n    postPasswordHint(request) {\n        return this.send(\"POST\", \"/accounts/password-hint\", request, false, false);\n    }\n    postRegister(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const r = yield this.send(\"POST\", \"/accounts/register\", request, false, true, env.getIdentityUrl());\n            return new _auth_models_response_register_response__WEBPACK_IMPORTED_MODULE_21__.RegisterResponse(r);\n        });\n    }\n    postPremium(data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/accounts/premium\", data, true, true);\n            return new _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_32__.PaymentResponse(r);\n        });\n    }\n    postReinstatePremium() {\n        return this.send(\"POST\", \"/accounts/reinstate-premium\", null, true, false);\n    }\n    postAccountStorage(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/accounts/storage\", request, true, true);\n            return new _billing_models_response_payment_response__WEBPACK_IMPORTED_MODULE_32__.PaymentResponse(r);\n        });\n    }\n    postAccountPayment(request) {\n        return this.send(\"POST\", \"/accounts/payment\", request, true, false);\n    }\n    postAccountLicense(data) {\n        return this.send(\"POST\", \"/accounts/license\", data, true, false);\n    }\n    postAccountKeys(request) {\n        return this.send(\"POST\", \"/accounts/keys\", request, true, false);\n    }\n    postAccountVerifyEmail() {\n        return this.send(\"POST\", \"/accounts/verify-email\", null, true, false);\n    }\n    postAccountVerifyEmailToken(request) {\n        return this.send(\"POST\", \"/accounts/verify-email-token\", request, false, false);\n    }\n    postAccountRecoverDelete(request) {\n        return this.send(\"POST\", \"/accounts/delete-recover\", request, false, false);\n    }\n    postAccountRecoverDeleteToken(request) {\n        return this.send(\"POST\", \"/accounts/delete-recover-token\", request, false, false);\n    }\n    postAccountKdf(request) {\n        return this.send(\"POST\", \"/accounts/kdf\", request, true, false);\n    }\n    deleteSsoUser(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.send(\"DELETE\", \"/accounts/sso/\" + organizationId, null, true, false);\n        });\n    }\n    getSsoUserIdentifier() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.send(\"GET\", \"/accounts/sso/user-identifier\", null, true, true);\n        });\n    }\n    postUserApiKey(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/accounts/api-key\", request, true, true);\n            return new _auth_models_response_api_key_response__WEBPACK_IMPORTED_MODULE_13__.ApiKeyResponse(r);\n        });\n    }\n    postUserRotateApiKey(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/accounts/rotate-api-key\", request, true, true);\n            return new _auth_models_response_api_key_response__WEBPACK_IMPORTED_MODULE_13__.ApiKeyResponse(r);\n        });\n    }\n    putUpdateTempPassword(request) {\n        return this.send(\"PUT\", \"/accounts/update-temp-password\", request, true, false);\n    }\n    putUpdateTdeOffboardingPassword(request) {\n        return this.send(\"PUT\", \"/accounts/update-tde-offboarding-password\", request, true, false);\n    }\n    postConvertToKeyConnector() {\n        return this.send(\"POST\", \"/accounts/convert-to-key-connector\", null, true, false);\n    }\n    // Account Billing APIs\n    getUserBillingHistory() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/accounts/billing/history\", null, true, true);\n            return new _billing_models_response_billing_history_response__WEBPACK_IMPORTED_MODULE_30__.BillingHistoryResponse(r);\n        });\n    }\n    getUserBillingPayment() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/accounts/billing/payment-method\", null, true, true);\n            return new _billing_models_response_billing_payment_response__WEBPACK_IMPORTED_MODULE_31__.BillingPaymentResponse(r);\n        });\n    }\n    // Cipher APIs\n    getCipher(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/ciphers/\" + id, null, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    getFullCipherDetails(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/ciphers/\" + id + \"/details\", null, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    getCipherAdmin(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/ciphers/\" + id + \"/admin\", null, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    getCiphersOrganization(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/ciphers/organization-details?organizationId=\" + organizationId, null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse);\n        });\n    }\n    postCipher(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/ciphers\", request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    postCipherCreate(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/ciphers/create\", request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    postCipherAdmin(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/ciphers/admin\", request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    putCipher(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/\" + id, request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    putPartialCipher(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/\" + id + \"/partial\", request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    putCipherAdmin(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/\" + id + \"/admin\", request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    deleteCipher(id) {\n        return this.send(\"DELETE\", \"/ciphers/\" + id, null, true, false);\n    }\n    deleteCipherAdmin(id) {\n        return this.send(\"DELETE\", \"/ciphers/\" + id + \"/admin\", null, true, false);\n    }\n    deleteManyCiphers(request) {\n        return this.send(\"DELETE\", \"/ciphers\", request, true, false);\n    }\n    deleteManyCiphersAdmin(request) {\n        return this.send(\"DELETE\", \"/ciphers/admin\", request, true, false);\n    }\n    putMoveCiphers(request) {\n        return this.send(\"PUT\", \"/ciphers/move\", request, true, false);\n    }\n    putShareCipher(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/\" + id + \"/share\", request, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    putShareCiphers(request) {\n        return this.send(\"PUT\", \"/ciphers/share\", request, true, false);\n    }\n    putCipherCollections(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.send(\"PUT\", \"/ciphers/\" + id + \"/collections_v2\", request, true, true);\n            return new _vault_models_response_optional_cipher_response__WEBPACK_IMPORTED_MODULE_51__.OptionalCipherResponse(response);\n        });\n    }\n    putCipherCollectionsAdmin(id, request) {\n        return this.send(\"PUT\", \"/ciphers/\" + id + \"/collections-admin\", request, true, false);\n    }\n    postPurgeCiphers(request, organizationId = null) {\n        let path = \"/ciphers/purge\";\n        if (organizationId != null) {\n            path += \"?organizationId=\" + organizationId;\n        }\n        return this.send(\"POST\", path, request, true, false);\n    }\n    putDeleteCipher(id) {\n        return this.send(\"PUT\", \"/ciphers/\" + id + \"/delete\", null, true, false);\n    }\n    putDeleteCipherAdmin(id) {\n        return this.send(\"PUT\", \"/ciphers/\" + id + \"/delete-admin\", null, true, false);\n    }\n    putDeleteManyCiphers(request) {\n        return this.send(\"PUT\", \"/ciphers/delete\", request, true, false);\n    }\n    putDeleteManyCiphersAdmin(request) {\n        return this.send(\"PUT\", \"/ciphers/delete-admin\", request, true, false);\n    }\n    putRestoreCipher(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/\" + id + \"/restore\", null, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    putRestoreCipherAdmin(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/\" + id + \"/restore-admin\", null, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    putRestoreManyCiphers(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/restore\", request, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse);\n        });\n    }\n    putRestoreManyCiphersAdmin(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/ciphers/restore-admin\", request, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse);\n        });\n    }\n    // Attachments APIs\n    getAttachmentData(cipherId, attachmentId, emergencyAccessId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const path = (emergencyAccessId != null ? \"/emergency-access/\" + emergencyAccessId + \"/\" : \"/ciphers/\") +\n                cipherId +\n                \"/attachment/\" +\n                attachmentId;\n            const r = yield this.send(\"GET\", path, null, true, true);\n            return new _vault_models_response_attachment_response__WEBPACK_IMPORTED_MODULE_49__.AttachmentResponse(r);\n        });\n    }\n    postCipherAttachment(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/ciphers/\" + id + \"/attachment/v2\", request, true, true);\n            return new _vault_models_response_attachment_upload_data_response__WEBPACK_IMPORTED_MODULE_48__.AttachmentUploadDataResponse(r);\n        });\n    }\n    /**\n     * @deprecated Mar 25 2021: This method has been deprecated in favor of direct uploads.\n     * This method still exists for backward compatibility with old server versions.\n     */\n    postCipherAttachmentLegacy(id, data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/ciphers/\" + id + \"/attachment\", data, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    /**\n     * @deprecated Mar 25 2021: This method has been deprecated in favor of direct uploads.\n     * This method still exists for backward compatibility with old server versions.\n     */\n    postCipherAttachmentAdminLegacy(id, data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/ciphers/\" + id + \"/attachment-admin\", data, true, true);\n            return new _vault_models_response_cipher_response__WEBPACK_IMPORTED_MODULE_50__.CipherResponse(r);\n        });\n    }\n    deleteCipherAttachment(id, attachmentId) {\n        return this.send(\"DELETE\", \"/ciphers/\" + id + \"/attachment/\" + attachmentId, null, true, false);\n    }\n    deleteCipherAttachmentAdmin(id, attachmentId) {\n        return this.send(\"DELETE\", \"/ciphers/\" + id + \"/attachment/\" + attachmentId + \"/admin\", null, true, false);\n    }\n    postShareCipherAttachment(id, attachmentId, data, organizationId) {\n        return this.send(\"POST\", \"/ciphers/\" + id + \"/attachment/\" + attachmentId + \"/share?organizationId=\" + organizationId, data, true, false);\n    }\n    renewAttachmentUploadUrl(id, attachmentId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/ciphers/\" + id + \"/attachment/\" + attachmentId + \"/renew\", null, true, true);\n            return new _vault_models_response_attachment_upload_data_response__WEBPACK_IMPORTED_MODULE_48__.AttachmentUploadDataResponse(r);\n        });\n    }\n    postAttachmentFile(id, attachmentId, data) {\n        return this.send(\"POST\", \"/ciphers/\" + id + \"/attachment/\" + attachmentId, data, true, false);\n    }\n    // Collections APIs\n    getCollectionAccessDetails(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/collections/\" + id + \"/details\", null, true, true);\n            return new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse(r);\n        });\n    }\n    getUserCollections() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/collections\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionResponse);\n        });\n    }\n    getCollections(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/collections\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionResponse);\n        });\n    }\n    getManyCollectionsWithAccessDetails(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/collections/details\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse);\n        });\n    }\n    getCollectionUsers(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/collections/\" + id + \"/users\", null, true, true);\n            return r.map((dr) => new _admin_console_models_response_selection_read_only_response__WEBPACK_IMPORTED_MODULE_9__.SelectionReadOnlyResponse(dr));\n        });\n    }\n    postCollection(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/organizations/\" + organizationId + \"/collections\", request, true, true);\n            return new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse(r);\n        });\n    }\n    putCollection(organizationId, id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/organizations/\" + organizationId + \"/collections/\" + id, request, true, true);\n            return new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionAccessDetailsResponse(r);\n        });\n    }\n    putCollectionUsers(organizationId, id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.send(\"PUT\", \"/organizations/\" + organizationId + \"/collections/\" + id + \"/users\", request, true, false);\n        });\n    }\n    deleteCollection(organizationId, id) {\n        return this.send(\"DELETE\", \"/organizations/\" + organizationId + \"/collections/\" + id, null, true, false);\n    }\n    deleteManyCollections(organizationId, collectionIds) {\n        return this.send(\"DELETE\", \"/organizations/\" + organizationId + \"/collections\", new _models_request_collection_bulk_delete_request__WEBPACK_IMPORTED_MODULE_38__.CollectionBulkDeleteRequest(collectionIds), true, false);\n    }\n    deleteCollectionUser(organizationId, id, organizationUserId) {\n        return this.send(\"DELETE\", \"/organizations/\" + organizationId + \"/collections/\" + id + \"/user/\" + organizationUserId, null, true, false);\n    }\n    // Groups APIs\n    getGroupUsers(organizationId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/groups/\" + id + \"/users\", null, true, true);\n            return r;\n        });\n    }\n    deleteGroupUser(organizationId, id, organizationUserId) {\n        return this.send(\"DELETE\", \"/organizations/\" + organizationId + \"/groups/\" + id + \"/user/\" + organizationUserId, null, true, false);\n    }\n    // Plan APIs\n    getPlans() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/plans\", null, false, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _billing_models_response_plan_response__WEBPACK_IMPORTED_MODULE_33__.PlanResponse);\n        });\n    }\n    getTaxRates() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/plans/sales-tax-rates/\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _billing_models_response_tax_rate_response__WEBPACK_IMPORTED_MODULE_36__.TaxRateResponse);\n        });\n    }\n    // Settings APIs\n    getSettingsDomains() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/settings/domains\", null, true, true);\n            return new _models_response_domains_response__WEBPACK_IMPORTED_MODULE_40__.DomainsResponse(r);\n        });\n    }\n    putSettingsDomains(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/settings/domains\", request, true, true);\n            return new _models_response_domains_response__WEBPACK_IMPORTED_MODULE_40__.DomainsResponse(r);\n        });\n    }\n    // Sync APIs\n    getSync() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const path = this.isDesktopClient || this.isWebClient ? \"/sync?excludeDomains=true\" : \"/sync\";\n            const r = yield this.send(\"GET\", path, null, true, true);\n            return new _platform_sync__WEBPACK_IMPORTED_MODULE_47__.SyncResponse(r);\n        });\n    }\n    // Two-factor APIs\n    getTwoFactorProviders() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/two-factor\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _auth_models_response_two_factor_provider_response__WEBPACK_IMPORTED_MODULE_26__.TwoFactorProviderResponse);\n        });\n    }\n    getTwoFactorOrganizationProviders(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/two-factor\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _auth_models_response_two_factor_provider_response__WEBPACK_IMPORTED_MODULE_26__.TwoFactorProviderResponse);\n        });\n    }\n    getTwoFactorAuthenticator(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-authenticator\", request, true, true);\n            return new _auth_models_response_two_factor_authenticator_response__WEBPACK_IMPORTED_MODULE_23__.TwoFactorAuthenticatorResponse(r);\n        });\n    }\n    getTwoFactorEmail(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-email\", request, true, true);\n            return new _auth_models_response_two_factor_email_response__WEBPACK_IMPORTED_MODULE_25__.TwoFactorEmailResponse(r);\n        });\n    }\n    getTwoFactorDuo(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-duo\", request, true, true);\n            return new _auth_models_response_two_factor_duo_response__WEBPACK_IMPORTED_MODULE_24__.TwoFactorDuoResponse(r);\n        });\n    }\n    getTwoFactorOrganizationDuo(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/organizations/\" + organizationId + \"/two-factor/get-duo\", request, true, true);\n            return new _auth_models_response_two_factor_duo_response__WEBPACK_IMPORTED_MODULE_24__.TwoFactorDuoResponse(r);\n        });\n    }\n    getTwoFactorYubiKey(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-yubikey\", request, true, true);\n            return new _auth_models_response_two_factor_yubi_key_response__WEBPACK_IMPORTED_MODULE_29__.TwoFactorYubiKeyResponse(r);\n        });\n    }\n    getTwoFactorWebAuthn(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-webauthn\", request, true, true);\n            return new _auth_models_response_two_factor_web_authn_response__WEBPACK_IMPORTED_MODULE_28__.TwoFactorWebAuthnResponse(r);\n        });\n    }\n    getTwoFactorWebAuthnChallenge(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-webauthn-challenge\", request, true, true);\n            return new _auth_models_response_two_factor_web_authn_response__WEBPACK_IMPORTED_MODULE_28__.ChallengeResponse(r);\n        });\n    }\n    getTwoFactorRecover(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/two-factor/get-recover\", request, true, true);\n            return new _auth_models_response_two_factor_recover_response__WEBPACK_IMPORTED_MODULE_27__.TwoFactorRecoverResponse(r);\n        });\n    }\n    putTwoFactorAuthenticator(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/two-factor/authenticator\", request, true, true);\n            return new _auth_models_response_two_factor_authenticator_response__WEBPACK_IMPORTED_MODULE_23__.TwoFactorAuthenticatorResponse(r);\n        });\n    }\n    deleteTwoFactorAuthenticator(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"DELETE\", \"/two-factor/authenticator\", request, true, true);\n            return new _auth_models_response_two_factor_provider_response__WEBPACK_IMPORTED_MODULE_26__.TwoFactorProviderResponse(r);\n        });\n    }\n    putTwoFactorEmail(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/two-factor/email\", request, true, true);\n            return new _auth_models_response_two_factor_email_response__WEBPACK_IMPORTED_MODULE_25__.TwoFactorEmailResponse(r);\n        });\n    }\n    putTwoFactorDuo(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/two-factor/duo\", request, true, true);\n            return new _auth_models_response_two_factor_duo_response__WEBPACK_IMPORTED_MODULE_24__.TwoFactorDuoResponse(r);\n        });\n    }\n    putTwoFactorOrganizationDuo(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/organizations/\" + organizationId + \"/two-factor/duo\", request, true, true);\n            return new _auth_models_response_two_factor_duo_response__WEBPACK_IMPORTED_MODULE_24__.TwoFactorDuoResponse(r);\n        });\n    }\n    putTwoFactorYubiKey(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/two-factor/yubikey\", request, true, true);\n            return new _auth_models_response_two_factor_yubi_key_response__WEBPACK_IMPORTED_MODULE_29__.TwoFactorYubiKeyResponse(r);\n        });\n    }\n    putTwoFactorWebAuthn(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = request.deviceResponse.response;\n            const data = Object.assign({}, request);\n            data.deviceResponse = {\n                id: request.deviceResponse.id,\n                rawId: btoa(request.deviceResponse.id),\n                type: request.deviceResponse.type,\n                extensions: request.deviceResponse.getClientExtensionResults(),\n                response: {\n                    AttestationObject: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__.Utils.fromBufferToB64(response.attestationObject),\n                    clientDataJson: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__.Utils.fromBufferToB64(response.clientDataJSON),\n                },\n            };\n            const r = yield this.send(\"PUT\", \"/two-factor/webauthn\", data, true, true);\n            return new _auth_models_response_two_factor_web_authn_response__WEBPACK_IMPORTED_MODULE_28__.TwoFactorWebAuthnResponse(r);\n        });\n    }\n    deleteTwoFactorWebAuthn(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"DELETE\", \"/two-factor/webauthn\", request, true, true);\n            return new _auth_models_response_two_factor_web_authn_response__WEBPACK_IMPORTED_MODULE_28__.TwoFactorWebAuthnResponse(r);\n        });\n    }\n    putTwoFactorDisable(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/two-factor/disable\", request, true, true);\n            return new _auth_models_response_two_factor_provider_response__WEBPACK_IMPORTED_MODULE_26__.TwoFactorProviderResponse(r);\n        });\n    }\n    putTwoFactorOrganizationDisable(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/organizations/\" + organizationId + \"/two-factor/disable\", request, true, true);\n            return new _auth_models_response_two_factor_provider_response__WEBPACK_IMPORTED_MODULE_26__.TwoFactorProviderResponse(r);\n        });\n    }\n    postTwoFactorRecover(request) {\n        return this.send(\"POST\", \"/two-factor/recover\", request, false, false);\n    }\n    postTwoFactorEmailSetup(request) {\n        return this.send(\"POST\", \"/two-factor/send-email\", request, true, false);\n    }\n    postTwoFactorEmail(request) {\n        return this.send(\"POST\", \"/two-factor/send-email-login\", request, false, false);\n    }\n    getDeviceVerificationSettings() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/two-factor/get-device-verification-settings\", null, true, true);\n            return new _auth_models_response_device_verification_response__WEBPACK_IMPORTED_MODULE_15__.DeviceVerificationResponse(r);\n        });\n    }\n    putDeviceVerificationSettings(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/two-factor/device-verification-settings\", request, true, true);\n            return new _auth_models_response_device_verification_response__WEBPACK_IMPORTED_MODULE_15__.DeviceVerificationResponse(r);\n        });\n    }\n    // Organization APIs\n    getCloudCommunicationsEnabled() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/connections/enabled\", null, true, true);\n            return r;\n        });\n    }\n    getOrganizationConnection(id, type, configType) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", `/organizations/connections/${id}/${type}`, null, true, true);\n            return new _admin_console_models_response_organization_connection_response__WEBPACK_IMPORTED_MODULE_2__.OrganizationConnectionResponse(r, configType);\n        });\n    }\n    createOrganizationConnection(request, configType) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/organizations/connections/\", request, true, true);\n            return new _admin_console_models_response_organization_connection_response__WEBPACK_IMPORTED_MODULE_2__.OrganizationConnectionResponse(r, configType);\n        });\n    }\n    updateOrganizationConnection(request, configType, organizationConnectionId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"PUT\", \"/organizations/connections/\" + organizationConnectionId, request, true, true);\n            return new _admin_console_models_response_organization_connection_response__WEBPACK_IMPORTED_MODULE_2__.OrganizationConnectionResponse(r, configType);\n        });\n    }\n    deleteOrganizationConnection(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.send(\"DELETE\", \"/organizations/connections/\" + id, null, true, false);\n        });\n    }\n    // Provider User APIs\n    getProviderUsers(providerId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/providers/\" + providerId + \"/users\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _admin_console_models_response_provider_provider_user_response__WEBPACK_IMPORTED_MODULE_8__.ProviderUserUserDetailsResponse);\n        });\n    }\n    getProviderUser(providerId, id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/providers/\" + providerId + \"/users/\" + id, null, true, true);\n            return new _admin_console_models_response_provider_provider_user_response__WEBPACK_IMPORTED_MODULE_8__.ProviderUserResponse(r);\n        });\n    }\n    postProviderUserInvite(providerId, request) {\n        return this.send(\"POST\", \"/providers/\" + providerId + \"/users/invite\", request, true, false);\n    }\n    postProviderUserReinvite(providerId, id) {\n        return this.send(\"POST\", \"/providers/\" + providerId + \"/users/\" + id + \"/reinvite\", null, true, false);\n    }\n    postManyProviderUserReinvite(providerId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/providers/\" + providerId + \"/users/reinvite\", request, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _admin_console_models_response_provider_provider_user_bulk_response__WEBPACK_IMPORTED_MODULE_7__.ProviderUserBulkResponse);\n        });\n    }\n    postProviderUserBulkConfirm(providerId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/providers/\" + providerId + \"/users/confirm\", request, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _admin_console_models_response_provider_provider_user_bulk_response__WEBPACK_IMPORTED_MODULE_7__.ProviderUserBulkResponse);\n        });\n    }\n    deleteManyProviderUsers(providerId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"DELETE\", \"/providers/\" + providerId + \"/users\", request, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _admin_console_models_response_provider_provider_user_bulk_response__WEBPACK_IMPORTED_MODULE_7__.ProviderUserBulkResponse);\n        });\n    }\n    postProviderUserAccept(providerId, id, request) {\n        return this.send(\"POST\", \"/providers/\" + providerId + \"/users/\" + id + \"/accept\", request, true, false);\n    }\n    postProviderUserConfirm(providerId, id, request) {\n        return this.send(\"POST\", \"/providers/\" + providerId + \"/users/\" + id + \"/confirm\", request, true, false);\n    }\n    postProviderUsersPublicKey(providerId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/providers/\" + providerId + \"/users/public-keys\", request, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _admin_console_models_response_provider_provider_user_bulk_public_key_response__WEBPACK_IMPORTED_MODULE_6__.ProviderUserBulkPublicKeyResponse);\n        });\n    }\n    putProviderUser(providerId, id, request) {\n        return this.send(\"PUT\", \"/providers/\" + providerId + \"/users/\" + id, request, true, false);\n    }\n    deleteProviderUser(providerId, id) {\n        return this.send(\"DELETE\", \"/providers/\" + providerId + \"/users/\" + id, null, true, false);\n    }\n    // Provider Organization APIs\n    getProviderClients(providerId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/providers/\" + providerId + \"/organizations\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _admin_console_models_response_provider_provider_organization_response__WEBPACK_IMPORTED_MODULE_5__.ProviderOrganizationOrganizationDetailsResponse);\n        });\n    }\n    postProviderAddOrganization(providerId, request) {\n        return this.send(\"POST\", \"/providers/\" + providerId + \"/organizations/add\", request, true, false);\n    }\n    postProviderCreateOrganization(providerId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/providers/\" + providerId + \"/organizations\", request, true, true);\n            return new _admin_console_models_response_provider_provider_organization_response__WEBPACK_IMPORTED_MODULE_5__.ProviderOrganizationResponse(r);\n        });\n    }\n    deleteProviderOrganization(providerId, id) {\n        return this.send(\"DELETE\", \"/providers/\" + providerId + \"/organizations/\" + id, null, true, false);\n    }\n    // Event APIs\n    getEvents(start, end, token) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", this.addEventParameters(\"/events\", start, end, token), null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__.EventResponse);\n        });\n    }\n    getEventsCipher(id, start, end, token) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", this.addEventParameters(\"/ciphers/\" + id + \"/events\", start, end, token), null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__.EventResponse);\n        });\n    }\n    getEventsOrganization(id, start, end, token) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", this.addEventParameters(\"/organizations/\" + id + \"/events\", start, end, token), null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__.EventResponse);\n        });\n    }\n    getEventsOrganizationUser(organizationId, id, start, end, token) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", this.addEventParameters(\"/organizations/\" + organizationId + \"/users/\" + id + \"/events\", start, end, token), null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__.EventResponse);\n        });\n    }\n    getEventsProvider(id, start, end, token) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", this.addEventParameters(\"/providers/\" + id + \"/events\", start, end, token), null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__.EventResponse);\n        });\n    }\n    getEventsProviderUser(providerId, id, start, end, token) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", this.addEventParameters(\"/providers/\" + providerId + \"/users/\" + id + \"/events\", start, end, token), null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_43__.ListResponse(r, _models_response_event_response__WEBPACK_IMPORTED_MODULE_42__.EventResponse);\n        });\n    }\n    postEventsCollect(request, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authHeader = yield this.tokenService.getAccessToken(userId);\n            const headers = new Headers({\n                \"Device-Type\": this.deviceType,\n                Authorization: \"Bearer \" + authHeader,\n                \"Content-Type\": \"application/json; charset=utf-8\",\n            });\n            if (this.customUserAgent != null) {\n                headers.set(\"User-Agent\", this.customUserAgent);\n            }\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const response = yield this.fetch(new Request(env.getEventsUrl() + \"/collect\", {\n                cache: \"no-store\",\n                credentials: yield this.getCredentials(),\n                method: \"POST\",\n                body: JSON.stringify(request),\n                headers: headers,\n            }));\n            if (response.status !== 200) {\n                return Promise.reject(\"Event post failed.\");\n            }\n        });\n    }\n    // User APIs\n    getUserPublicKey(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/users/\" + id + \"/public-key\", null, true, true);\n            return new _models_response_user_key_response__WEBPACK_IMPORTED_MODULE_45__.UserKeyResponse(r);\n        });\n    }\n    // HIBP APIs\n    getHibpBreach(username) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/hibp/breach?username=\" + username, null, true, true);\n            return r.map((a) => new _models_response_breach_account_response__WEBPACK_IMPORTED_MODULE_39__.BreachAccountResponse(a));\n        });\n    }\n    // Misc\n    postBitPayInvoice(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/bitpay-invoice\", request, true, true);\n            return r;\n        });\n    }\n    postSetupPayment() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/setup-payment\", null, true, true);\n            return r;\n        });\n    }\n    // Key Connector\n    getMasterKeyFromKeyConnector(keyConnectorUrl) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authHeader = yield this.getActiveBearerToken();\n            const response = yield this.fetch(new Request(keyConnectorUrl + \"/user-keys\", {\n                cache: \"no-store\",\n                method: \"GET\",\n                headers: new Headers({\n                    Accept: \"application/json\",\n                    Authorization: \"Bearer \" + authHeader,\n                }),\n            }));\n            if (response.status !== 200) {\n                const error = yield this.handleError(response, false, true);\n                return Promise.reject(error);\n            }\n            return new _auth_models_response_key_connector_user_key_response__WEBPACK_IMPORTED_MODULE_19__.KeyConnectorUserKeyResponse(yield response.json());\n        });\n    }\n    postUserKeyToKeyConnector(keyConnectorUrl, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authHeader = yield this.getActiveBearerToken();\n            const response = yield this.fetch(new Request(keyConnectorUrl + \"/user-keys\", {\n                cache: \"no-store\",\n                method: \"POST\",\n                headers: new Headers({\n                    Accept: \"application/json\",\n                    Authorization: \"Bearer \" + authHeader,\n                    \"Content-Type\": \"application/json; charset=utf-8\",\n                }),\n                body: JSON.stringify(request),\n            }));\n            if (response.status !== 200) {\n                const error = yield this.handleError(response, false, true);\n                return Promise.reject(error);\n            }\n        });\n    }\n    getKeyConnectorAlive(keyConnectorUrl) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.fetch(new Request(keyConnectorUrl + \"/alive\", {\n                cache: \"no-store\",\n                method: \"GET\",\n                headers: new Headers({\n                    Accept: \"application/json\",\n                    \"Content-Type\": \"application/json; charset=utf-8\",\n                }),\n            }));\n            if (response.status !== 200) {\n                const error = yield this.handleError(response, false, true);\n                return Promise.reject(error);\n            }\n        });\n    }\n    getOrganizationExport(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"GET\", \"/organizations/\" + organizationId + \"/export\", null, true, true);\n            return new _admin_console_models_response_organization_export_response__WEBPACK_IMPORTED_MODULE_3__.OrganizationExportResponse(r);\n        });\n    }\n    // Helpers\n    getActiveBearerToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let accessToken = yield this.tokenService.getAccessToken();\n            if (yield this.tokenService.tokenNeedsRefresh()) {\n                accessToken = yield this.refreshToken();\n            }\n            return accessToken;\n        });\n    }\n    fetch(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (request.method === \"GET\") {\n                request.headers.set(\"Cache-Control\", \"no-store\");\n                request.headers.set(\"Pragma\", \"no-cache\");\n            }\n            request.headers.set(\"Bitwarden-Client-Name\", this.platformUtilsService.getClientType());\n            request.headers.set(\"Bitwarden-Client-Version\", yield this.platformUtilsService.getApplicationVersionNumber());\n            return this.nativeFetch(request);\n        });\n    }\n    nativeFetch(request) {\n        return fetch(request);\n    }\n    preValidateSso(identifier) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (identifier == null || identifier === \"\") {\n                throw new Error(\"Organization Identifier was not provided.\");\n            }\n            const headers = new Headers({\n                Accept: \"application/json\",\n                \"Device-Type\": this.deviceType,\n            });\n            if (this.customUserAgent != null) {\n                headers.set(\"User-Agent\", this.customUserAgent);\n            }\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const path = `/sso/prevalidate?domainHint=${encodeURIComponent(identifier)}`;\n            const response = yield this.fetch(new Request(env.getIdentityUrl() + path, {\n                cache: \"no-store\",\n                credentials: yield this.getCredentials(),\n                headers: headers,\n                method: \"GET\",\n            }));\n            if (response.status === 200) {\n                const body = yield response.json();\n                return new _auth_models_response_sso_pre_validate_response__WEBPACK_IMPORTED_MODULE_22__.SsoPreValidateResponse(body);\n            }\n            else {\n                const error = yield this.handleError(response, false, true);\n                return Promise.reject(error);\n            }\n        });\n    }\n    postCreateSponsorship(sponsoredOrgId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.send(\"POST\", \"/organization/sponsorship/\" +\n                (this.platformUtilsService.isSelfHost() ? \"self-hosted/\" : \"\") +\n                sponsoredOrgId +\n                \"/families-for-enterprise\", request, true, false);\n        });\n    }\n    getSponsorshipSyncStatus(sponsoredOrgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.send(\"GET\", \"/organization/sponsorship/\" + sponsoredOrgId + \"/sync-status\", null, true, true);\n            return new _admin_console_models_response_organization_sponsorship_sync_status_response__WEBPACK_IMPORTED_MODULE_4__.OrganizationSponsorshipSyncStatusResponse(response);\n        });\n    }\n    deleteRevokeSponsorship(sponsoringOrganizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.send(\"DELETE\", \"/organization/sponsorship/\" +\n                (this.platformUtilsService.isSelfHost() ? \"self-hosted/\" : \"\") +\n                sponsoringOrganizationId, null, true, false);\n        });\n    }\n    deleteRemoveSponsorship(sponsoringOrgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.send(\"DELETE\", \"/organization/sponsorship/sponsored/\" + sponsoringOrgId, null, true, false);\n        });\n    }\n    postPreValidateSponsorshipToken(sponsorshipToken) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.send(\"POST\", \"/organization/sponsorship/validate-token?sponsorshipToken=\" +\n                encodeURIComponent(sponsorshipToken), null, true, true);\n            return r;\n        });\n    }\n    postRedeemSponsorship(sponsorshipToken, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.send(\"POST\", \"/organization/sponsorship/redeem?sponsorshipToken=\" + encodeURIComponent(sponsorshipToken), request, true, false);\n        });\n    }\n    postResendSponsorshipOffer(sponsoringOrgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.send(\"POST\", \"/organization/sponsorship/\" + sponsoringOrgId + \"/families-for-enterprise/resend\", null, true, false);\n        });\n    }\n    refreshToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const refreshToken = yield this.tokenService.getRefreshToken();\n            if (refreshToken != null && refreshToken !== \"\") {\n                return this.refreshAccessToken();\n            }\n            const clientId = yield this.tokenService.getClientId();\n            const clientSecret = yield this.tokenService.getClientSecret();\n            if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__.Utils.isNullOrWhitespace(clientId) && !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__.Utils.isNullOrWhitespace(clientSecret)) {\n                return this.refreshApiToken();\n            }\n            this.refreshAccessTokenErrorCallback();\n            throw new Error(\"Cannot refresh access token, no refresh token or api keys are stored.\");\n        });\n    }\n    refreshAccessToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const refreshToken = yield this.tokenService.getRefreshToken();\n            if (refreshToken == null || refreshToken === \"\") {\n                throw new Error();\n            }\n            const headers = new Headers({\n                \"Content-Type\": \"application/x-www-form-urlencoded; charset=utf-8\",\n                Accept: \"application/json\",\n                \"Device-Type\": this.deviceType,\n            });\n            if (this.customUserAgent != null) {\n                headers.set(\"User-Agent\", this.customUserAgent);\n            }\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            const decodedToken = yield this.tokenService.decodeAccessToken();\n            const response = yield this.fetch(new Request(env.getIdentityUrl() + \"/connect/token\", {\n                body: this.qsStringify({\n                    grant_type: \"refresh_token\",\n                    client_id: decodedToken.client_id,\n                    refresh_token: refreshToken,\n                }),\n                cache: \"no-store\",\n                credentials: yield this.getCredentials(),\n                headers: headers,\n                method: \"POST\",\n            }));\n            if (response.status === 200) {\n                const responseJson = yield response.json();\n                const tokenResponse = new _auth_models_response_identity_token_response__WEBPACK_IMPORTED_MODULE_17__.IdentityTokenResponse(responseJson);\n                const newDecodedAccessToken = yield this.tokenService.decodeAccessToken(tokenResponse.accessToken);\n                const userId = newDecodedAccessToken.sub;\n                const vaultTimeoutAction = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(userId));\n                const vaultTimeout = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(userId));\n                const refreshedTokens = yield this.tokenService.setTokens(tokenResponse.accessToken, vaultTimeoutAction, vaultTimeout, tokenResponse.refreshToken);\n                return refreshedTokens.accessToken;\n            }\n            else {\n                const error = yield this.handleError(response, true, true);\n                return Promise.reject(error);\n            }\n        });\n    }\n    refreshApiToken() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const clientId = yield this.tokenService.getClientId();\n            const clientSecret = yield this.tokenService.getClientSecret();\n            const appId = yield this.appIdService.getAppId();\n            const deviceRequest = new _auth_models_request_identity_token_device_request__WEBPACK_IMPORTED_MODULE_10__.DeviceRequest(appId, this.platformUtilsService);\n            const tokenRequest = new _auth_models_request_identity_token_user_api_token_request__WEBPACK_IMPORTED_MODULE_12__.UserApiTokenRequest(clientId, clientSecret, new _auth_models_request_identity_token_token_two_factor_request__WEBPACK_IMPORTED_MODULE_11__.TokenTwoFactorRequest(), deviceRequest);\n            const response = yield this.postIdentityToken(tokenRequest);\n            if (!(response instanceof _auth_models_response_identity_token_response__WEBPACK_IMPORTED_MODULE_17__.IdentityTokenResponse)) {\n                throw new Error(\"Invalid response received when refreshing api token\");\n            }\n            const newDecodedAccessToken = yield this.tokenService.decodeAccessToken(response.accessToken);\n            const userId = newDecodedAccessToken.sub;\n            const vaultTimeoutAction = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(userId));\n            const vaultTimeout = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(userId));\n            const refreshedToken = yield this.tokenService.setAccessToken(response.accessToken, vaultTimeoutAction, vaultTimeout);\n            return refreshedToken;\n        });\n    }\n    send(method, path, body, authed, hasResponse, apiUrl, alterHeaders) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            apiUrl = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__.Utils.isNullOrWhitespace(apiUrl) ? env.getApiUrl() : apiUrl;\n            // Prevent directory traversal from malicious paths\n            const pathParts = path.split(\"?\");\n            const requestUrl = apiUrl + _platform_misc_utils__WEBPACK_IMPORTED_MODULE_46__.Utils.normalizePath(pathParts[0]) + (pathParts.length > 1 ? `?${pathParts[1]}` : \"\");\n            const headers = new Headers({\n                \"Device-Type\": this.deviceType,\n            });\n            if (this.customUserAgent != null) {\n                headers.set(\"User-Agent\", this.customUserAgent);\n            }\n            const requestInit = {\n                cache: \"no-store\",\n                credentials: yield this.getCredentials(),\n                method: method,\n            };\n            if (authed) {\n                const authHeader = yield this.getActiveBearerToken();\n                headers.set(\"Authorization\", \"Bearer \" + authHeader);\n            }\n            if (body != null) {\n                if (typeof body === \"string\") {\n                    requestInit.body = body;\n                    headers.set(\"Content-Type\", \"application/x-www-form-urlencoded; charset=utf-8\");\n                }\n                else if (typeof body === \"object\") {\n                    if (body instanceof FormData) {\n                        requestInit.body = body;\n                    }\n                    else {\n                        headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n                        requestInit.body = JSON.stringify(body);\n                    }\n                }\n            }\n            if (hasResponse) {\n                headers.set(\"Accept\", \"application/json\");\n            }\n            if (alterHeaders != null) {\n                alterHeaders(headers);\n            }\n            requestInit.headers = headers;\n            const response = yield this.fetch(new Request(requestUrl, requestInit));\n            const responseType = response.headers.get(\"content-type\");\n            const responseIsJson = responseType != null && responseType.indexOf(\"application/json\") !== -1;\n            const responseIsCsv = responseType != null && responseType.indexOf(\"text/csv\") !== -1;\n            if (hasResponse && response.status === 200 && responseIsJson) {\n                const responseJson = yield response.json();\n                return responseJson;\n            }\n            else if (hasResponse && response.status === 200 && responseIsCsv) {\n                return yield response.text();\n            }\n            else if (response.status !== 200) {\n                const error = yield this.handleError(response, false, authed);\n                return Promise.reject(error);\n            }\n        });\n    }\n    handleError(response, tokenError, authed) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let responseJson = null;\n            if (this.isJsonResponse(response)) {\n                responseJson = yield response.json();\n            }\n            else if (this.isTextResponse(response)) {\n                responseJson = { Message: yield response.text() };\n            }\n            if (authed) {\n                if (response.status === 401 ||\n                    response.status === 403 ||\n                    (tokenError &&\n                        response.status === 400 &&\n                        responseJson != null &&\n                        responseJson.error === \"invalid_grant\")) {\n                    yield this.logoutCallback(\"invalidGrantError\");\n                    return null;\n                }\n            }\n            return new _models_response_error_response__WEBPACK_IMPORTED_MODULE_41__.ErrorResponse(responseJson, response.status, tokenError);\n        });\n    }\n    qsStringify(params) {\n        return Object.keys(params)\n            .map((key) => {\n            return encodeURIComponent(key) + \"=\" + encodeURIComponent(params[key]);\n        })\n            .join(\"&\");\n    }\n    getCredentials() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const env = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.environmentService.environment$);\n            if (!this.isWebClient || env.hasBaseUrl()) {\n                return \"include\";\n            }\n            return undefined;\n        });\n    }\n    addEventParameters(base, start, end, token) {\n        if (start != null) {\n            base += \"?start=\" + start;\n        }\n        if (end != null) {\n            base += base.indexOf(\"?\") > -1 ? \"&\" : \"?\";\n            base += \"end=\" + end;\n        }\n        if (token != null) {\n            base += base.indexOf(\"?\") > -1 ? \"&\" : \"?\";\n            base += \"continuationToken=\" + token;\n        }\n        return base;\n    }\n    isJsonResponse(response) {\n        const typeHeader = response.headers.get(\"content-type\");\n        return typeHeader != null && typeHeader.indexOf(\"application/json\") > -1;\n    }\n    isTextResponse(response) {\n        const typeHeader = response.headers.get(\"content-type\");\n        return typeHeader != null && typeHeader.indexOf(\"text\") > -1;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 158708 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/audit.service.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/services/audit.service.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuditService: () => (/* binding */ AuditService)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_throttle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/misc/throttle */ \"../../libs/common/src/platform/misc/throttle.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst PwnedPasswordsApi = \"https://api.pwnedpasswords.com/range/\";\nclass AuditService {\n    constructor(cryptoFunctionService, apiService) {\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.apiService = apiService;\n    }\n    passwordLeaked(password) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const hashBytes = yield this.cryptoFunctionService.hash(password, \"sha1\");\n            const hash = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromBufferToHex(hashBytes).toUpperCase();\n            const hashStart = hash.substr(0, 5);\n            const hashEnding = hash.substr(5);\n            const response = yield this.apiService.nativeFetch(new Request(PwnedPasswordsApi + hashStart));\n            const leakedHashes = yield response.text();\n            const match = leakedHashes.split(/\\r?\\n/).find((v) => {\n                return v.split(\":\")[0] === hashEnding;\n            });\n            return match != null ? parseInt(match.split(\":\")[1], 10) : 0;\n        });\n    }\n    breachedAccounts(username) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                return yield this.apiService.getHibpBreach(username);\n            }\n            catch (e) {\n                const error = e;\n                if (error.statusCode === 404) {\n                    return [];\n                }\n                throw new Error();\n            }\n        });\n    }\n}\n__decorate([\n    (0,_platform_misc_throttle__WEBPACK_IMPORTED_MODULE_0__.throttle)(100, () => \"passwordLeaked\"),\n    __metadata(\"design:type\", Function),\n    __metadata(\"design:paramtypes\", [String]),\n    __metadata(\"design:returntype\", Promise)\n], AuditService.prototype, \"passwordLeaked\", null);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4468 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/audit.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/event/event-collection.service.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/services/event/event-collection.service.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventCollectionService: () => (/* binding */ EventCollectionService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/enums/index.ts\");\n/* harmony import */ var _models_data_event_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/data/event.data */ \"../../libs/common/src/models/data/event.data.ts\");\n/* harmony import */ var _vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _key_definitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./key-definitions */ \"../../libs/common/src/services/event/key-definitions.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass EventCollectionService {\n    constructor(cipherService, stateProvider, organizationService, eventUploadService, authService, accountService) {\n        this.cipherService = cipherService;\n        this.stateProvider = stateProvider;\n        this.organizationService = organizationService;\n        this.eventUploadService = eventUploadService;\n        this.authService = authService;\n        this.accountService = accountService;\n        this.orgIds$ = this.organizationService.organizations$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => { var _a, _b; return (_b = (_a = orgs === null || orgs === void 0 ? void 0 : orgs.filter((o) => o.useEvents)) === null || _a === void 0 ? void 0 : _a.map((x) => x.id)) !== null && _b !== void 0 ? _b : []; }));\n    }\n    /** Adds an event to the active user's event collection\n     *  @param eventType the event type to be added\n     *  @param ciphers The collection of ciphers to log events for\n     *  @param uploadImmediately in some cases the recorded events should be uploaded right after being added\n     */\n    collectMany(eventType_1, ciphers_1) {\n        return __awaiter(this, arguments, void 0, function* (eventType, ciphers, uploadImmediately = false) {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            const eventStore = this.stateProvider.getUser(userId, _key_definitions__WEBPACK_IMPORTED_MODULE_5__.EVENT_COLLECTION);\n            if (!(yield this.shouldUpdate(null, eventType, ciphers))) {\n                return;\n            }\n            const events$ = this.orgIds$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((orgs) => ciphers\n                .filter((c) => orgs.includes(c.organizationId))\n                .map((c) => ({\n                type: eventType,\n                cipherId: c.id,\n                date: new Date().toISOString(),\n                organizationId: c.organizationId,\n            }))));\n            yield eventStore.update((currentEvents, newEvents) => [...(currentEvents !== null && currentEvents !== void 0 ? currentEvents : []), ...newEvents], {\n                combineLatestWith: events$,\n            });\n            if (uploadImmediately) {\n                yield this.eventUploadService.uploadEvents();\n            }\n        });\n    }\n    /** Adds an event to the active user's event collection\n     *  @param eventType the event type to be added\n     *  @param cipherId if provided the id of the cipher involved in the event\n     *  @param uploadImmediately in some cases the recorded events should be uploaded right after being added\n     *  @param organizationId the organizationId involved in the event. If the cipherId is not provided an organizationId is required\n     */\n    collect(eventType_1) {\n        return __awaiter(this, arguments, void 0, function* (eventType, cipherId = null, uploadImmediately = false, organizationId = null) {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            const eventStore = this.stateProvider.getUser(userId, _key_definitions__WEBPACK_IMPORTED_MODULE_5__.EVENT_COLLECTION);\n            if (!(yield this.shouldUpdate(organizationId, eventType, undefined, cipherId))) {\n                return;\n            }\n            const event = new _models_data_event_data__WEBPACK_IMPORTED_MODULE_3__.EventData();\n            event.type = eventType;\n            event.cipherId = cipherId;\n            event.date = new Date().toISOString();\n            event.organizationId = organizationId;\n            yield eventStore.update((events) => {\n                events = events !== null && events !== void 0 ? events : [];\n                events.push(event);\n                return events;\n            });\n            if (uploadImmediately) {\n                yield this.eventUploadService.uploadEvents();\n            }\n        });\n    }\n    /** Verifies if the event collection should be updated for the provided information\n     *  @param cipherId the cipher for the event\n     *  @param organizationId the organization for the event\n     */\n    shouldUpdate() {\n        return __awaiter(this, arguments, void 0, function* (organizationId = null, eventType = null, ciphers = [], cipherId) {\n            const cipher$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.from)(this.cipherService.get(cipherId));\n            const [authStatus, orgIds, cipher] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.zip)(this.authService.activeAccountStatus$, this.orgIds$, cipher$));\n            // The user must be authorized\n            if (authStatus != _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.Unlocked) {\n                return false;\n            }\n            // User must have organizations assigned to them\n            if (orgIds == null || orgIds.length == 0) {\n                return false;\n            }\n            // Individual vault export doesn't need cipher id or organization id.\n            if (eventType == _enums__WEBPACK_IMPORTED_MODULE_2__.EventType.User_ClientExportedVault) {\n                return true;\n            }\n            // If the cipherId was provided and a cipher exists, add it to the collection\n            if (cipher != null) {\n                ciphers.push(new _vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_4__.CipherView(cipher));\n            }\n            // If no ciphers there must be an organization id provided\n            if ((ciphers == null || ciphers.length == 0) && organizationId == null) {\n                return false;\n            }\n            // If the input list of ciphers is provided. Check the ciphers to see if any\n            // are in the user's org list\n            if (ciphers != null && ciphers.length > 0) {\n                const filtered = ciphers.filter((c) => orgIds.includes(c.organizationId));\n                return filtered.length > 0;\n            }\n            // If the organization id is provided it must be in the user's org list\n            if (organizationId != null && !orgIds.includes(organizationId)) {\n                return false;\n            }\n            return true;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13760 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/event/event-collection.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/event/event-upload.service.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/services/event/event-upload.service.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventUploadService: () => (/* binding */ EventUploadService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _models_request_event_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/request/event.request */ \"../../libs/common/src/models/request/event.request.ts\");\n/* harmony import */ var _platform_scheduling_scheduled_task_name_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/scheduling/scheduled-task-name.enum */ \"../../libs/common/src/platform/scheduling/scheduled-task-name.enum.ts\");\n/* harmony import */ var _key_definitions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./key-definitions */ \"../../libs/common/src/services/event/key-definitions.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass EventUploadService {\n    constructor(apiService, stateProvider, logService, authService, taskSchedulerService) {\n        this.apiService = apiService;\n        this.stateProvider = stateProvider;\n        this.logService = logService;\n        this.authService = authService;\n        this.taskSchedulerService = taskSchedulerService;\n        this.inited = false;\n        this.taskSchedulerService.registerTaskHandler(_platform_scheduling_scheduled_task_name_enum__WEBPACK_IMPORTED_MODULE_3__.ScheduledTaskNames.eventUploadsInterval, () => this.uploadEvents());\n    }\n    init(checkOnInterval) {\n        if (this.inited) {\n            return;\n        }\n        this.inited = true;\n        if (checkOnInterval) {\n            void this.uploadEvents();\n            this.taskSchedulerService.setInterval(_platform_scheduling_scheduled_task_name_enum__WEBPACK_IMPORTED_MODULE_3__.ScheduledTaskNames.eventUploadsInterval, 60 * 1000);\n        }\n    }\n    /** Upload the event collection from state.\n     *  @param userId upload events for provided user. If not active user will be used.\n     */\n    uploadEvents(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$);\n            }\n            if (!userId) {\n                return;\n            }\n            const isUnlocked = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.authService\n                .authStatusFor$(userId)\n                .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((status) => status === _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_1__.AuthenticationStatus.Unlocked)));\n            if (!isUnlocked) {\n                return;\n            }\n            const eventCollection = yield this.takeEvents(userId);\n            if (eventCollection == null || eventCollection.length === 0) {\n                return;\n            }\n            const request = eventCollection.map((e) => {\n                const req = new _models_request_event_request__WEBPACK_IMPORTED_MODULE_2__.EventRequest();\n                req.type = e.type;\n                req.cipherId = e.cipherId;\n                req.date = e.date;\n                req.organizationId = e.organizationId;\n                return req;\n            });\n            try {\n                yield this.apiService.postEventsCollect(request, userId);\n            }\n            catch (e) {\n                this.logService.error(e);\n                // Add the events back to state if there was an error and they were not uploaded.\n                yield this.stateProvider.setUserState(_key_definitions__WEBPACK_IMPORTED_MODULE_4__.EVENT_COLLECTION, eventCollection, userId);\n            }\n        });\n    }\n    /** Return user's events and then clear them from state\n     *  @param userId the user to grab and clear events for\n     */\n    takeEvents(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let taken = null;\n            yield this.stateProvider.getUser(userId, _key_definitions__WEBPACK_IMPORTED_MODULE_4__.EVENT_COLLECTION).update((current) => {\n                taken = current !== null && current !== void 0 ? current : [];\n                return [];\n            });\n            return taken;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7844 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/event/event-upload.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/event/key-definitions.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/services/event/key-definitions.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EVENT_COLLECTION: () => (/* binding */ EVENT_COLLECTION)\n/* harmony export */ });\n/* harmony import */ var _models_data_event_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/data/event.data */ \"../../libs/common/src/models/data/event.data.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n\nconst EVENT_COLLECTION = _platform_state__WEBPACK_IMPORTED_MODULE_1__.UserKeyDefinition.array(_platform_state__WEBPACK_IMPORTED_MODULE_1__.EVENT_COLLECTION_DISK, \"events\", {\n    deserializer: (s) => _models_data_event_data__WEBPACK_IMPORTED_MODULE_0__.EventData.fromJSON(s),\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3NlcnZpY2VzL2V2ZW50L2tleS1kZWZpbml0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBeUQ7QUFDdUI7QUFFekUsTUFBTSxnQkFBZ0IsR0FBRyw4REFBaUIsQ0FBQyxLQUFLLENBQ3JELGtFQUFxQixFQUNyQixRQUFRLEVBQ1I7SUFDRSxZQUFZLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLDhEQUFTLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQztJQUMxQyxPQUFPLEVBQUUsQ0FBQyxRQUFRLENBQUM7Q0FDcEIsQ0FDRixDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3NlcnZpY2VzL2V2ZW50L2tleS1kZWZpbml0aW9ucy50cz8yNzVmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEV2ZW50RGF0YSB9IGZyb20gXCIuLi8uLi9tb2RlbHMvZGF0YS9ldmVudC5kYXRhXCI7XG5pbXBvcnQgeyBFVkVOVF9DT0xMRUNUSU9OX0RJU0ssIFVzZXJLZXlEZWZpbml0aW9uIH0gZnJvbSBcIi4uLy4uL3BsYXRmb3JtL3N0YXRlXCI7XG5cbmV4cG9ydCBjb25zdCBFVkVOVF9DT0xMRUNUSU9OID0gVXNlcktleURlZmluaXRpb24uYXJyYXk8RXZlbnREYXRhPihcbiAgRVZFTlRfQ09MTEVDVElPTl9ESVNLLFxuICBcImV2ZW50c1wiLFxuICB7XG4gICAgZGVzZXJpYWxpemVyOiAocykgPT4gRXZlbnREYXRhLmZyb21KU09OKHMpLFxuICAgIGNsZWFyT246IFtcImxvZ291dFwiXSxcbiAgfSxcbik7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/services/event/key-definitions.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/search.service.ts":
/*!********************************************************!*\
  !*** ../../libs/common/src/services/search.service.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LUNR_SEARCH_INDEX: () => (/* binding */ LUNR_SEARCH_INDEX),\n/* harmony export */   LUNR_SEARCH_INDEXED_ENTITY_ID: () => (/* binding */ LUNR_SEARCH_INDEXED_ENTITY_ID),\n/* harmony export */   LUNR_SEARCH_INDEXING: () => (/* binding */ LUNR_SEARCH_INDEXING),\n/* harmony export */   SearchService: () => (/* binding */ SearchService)\n/* harmony export */ });\n/* harmony import */ var lunr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lunr */ \"lunr\");\n/* harmony import */ var lunr__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lunr__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/domain/domain-service */ \"../../libs/common/src/models/domain/domain-service.ts\");\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _vault_enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vault/enums/cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n/**\n * The `KeyDefinition` for accessing the search index in application state.\n * The key definition is configured to clear the index when the user locks the vault.\n */\nconst LUNR_SEARCH_INDEX = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.VAULT_SEARCH_MEMORY, \"searchIndex\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"lock\", \"logout\"],\n});\n/**\n * The `KeyDefinition` for accessing the ID of the entity currently indexed by Lunr search.\n * The key definition is configured to clear the indexed entity ID when the user locks the vault.\n */\nconst LUNR_SEARCH_INDEXED_ENTITY_ID = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.VAULT_SEARCH_MEMORY, \"searchIndexedEntityId\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"lock\", \"logout\"],\n});\n/**\n * The `KeyDefinition` for accessing the state of Lunr search indexing, indicating whether the Lunr search index is currently being built or updating.\n * The key definition is configured to clear the indexing state when the user locks the vault.\n */\nconst LUNR_SEARCH_INDEXING = new _platform_state__WEBPACK_IMPORTED_MODULE_3__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_3__.VAULT_SEARCH_MEMORY, \"isIndexing\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"lock\", \"logout\"],\n});\nclass SearchService {\n    constructor(logService, i18nService, stateProvider) {\n        this.logService = logService;\n        this.i18nService = i18nService;\n        this.stateProvider = stateProvider;\n        this.searchIndexState = this.stateProvider.getActive(LUNR_SEARCH_INDEX);\n        this.index$ = this.searchIndexState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((searchIndex) => (searchIndex ? lunr__WEBPACK_IMPORTED_MODULE_0__.Index.load(searchIndex) : null)));\n        this.searchIndexEntityIdState = this.stateProvider.getActive(LUNR_SEARCH_INDEXED_ENTITY_ID);\n        this.indexedEntityId$ = this.searchIndexEntityIdState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((id) => id));\n        this.searchIsIndexingState = this.stateProvider.getActive(LUNR_SEARCH_INDEXING);\n        this.searchIsIndexing$ = this.searchIsIndexingState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((indexing) => indexing !== null && indexing !== void 0 ? indexing : false));\n        this.immediateSearchLocales = [\"zh-CN\", \"zh-TW\", \"ja\", \"ko\", \"vi\"];\n        this.defaultSearchableMinLength = 2;\n        this.searchableMinLength = this.defaultSearchableMinLength;\n        this.i18nService.locale$.subscribe((locale) => {\n            if (this.immediateSearchLocales.indexOf(locale) !== -1) {\n                this.searchableMinLength = 1;\n            }\n            else {\n                this.searchableMinLength = this.defaultSearchableMinLength;\n            }\n        });\n        // Currently have to ensure this is only done a single time. Lunr allows you to register a function\n        // multiple times but they will add a warning message to the console. The way they do that breaks when ran on a service worker.\n        if (!SearchService.registeredPipeline) {\n            SearchService.registeredPipeline = true;\n            //register lunr pipeline function\n            lunr__WEBPACK_IMPORTED_MODULE_0__.Pipeline.registerFunction(this.normalizeAccentsPipelineFunction, \"normalizeAccents\");\n        }\n    }\n    clearIndex() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.searchIndexEntityIdState.update(() => null);\n            yield this.searchIndexState.update(() => null);\n            yield this.searchIsIndexingState.update(() => null);\n        });\n    }\n    isSearchable(query) {\n        return __awaiter(this, void 0, void 0, function* () {\n            query = SearchService.normalizeSearchQuery(query);\n            const index = yield this.getIndexForSearch();\n            const notSearchable = query == null ||\n                (index == null && query.length < this.searchableMinLength) ||\n                (index != null && query.length < this.searchableMinLength && query.indexOf(\">\") !== 0);\n            return !notSearchable;\n        });\n    }\n    indexCiphers(ciphers, indexedEntityId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (yield this.getIsIndexing()) {\n                return;\n            }\n            yield this.setIsIndexing(true);\n            yield this.setIndexedEntityIdForSearch(indexedEntityId);\n            const builder = new lunr__WEBPACK_IMPORTED_MODULE_0__.Builder();\n            builder.pipeline.add(this.normalizeAccentsPipelineFunction);\n            builder.ref(\"id\");\n            builder.field(\"shortid\", { boost: 100, extractor: (c) => c.id.substr(0, 8) });\n            builder.field(\"name\", {\n                boost: 10,\n            });\n            builder.field(\"subtitle\", {\n                boost: 5,\n                extractor: (c) => {\n                    if (c.subTitle != null && c.type === _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Card) {\n                        return c.subTitle.replace(/\\*/g, \"\");\n                    }\n                    return c.subTitle;\n                },\n            });\n            builder.field(\"notes\");\n            builder.field(\"login.username\", {\n                extractor: (c) => c.type === _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login && c.login != null ? c.login.username : null,\n            });\n            builder.field(\"login.uris\", { boost: 2, extractor: (c) => this.uriExtractor(c) });\n            builder.field(\"fields\", { extractor: (c) => this.fieldExtractor(c, false) });\n            builder.field(\"fields_joined\", { extractor: (c) => this.fieldExtractor(c, true) });\n            builder.field(\"attachments\", {\n                extractor: (c) => this.attachmentExtractor(c, false),\n            });\n            builder.field(\"attachments_joined\", {\n                extractor: (c) => this.attachmentExtractor(c, true),\n            });\n            builder.field(\"organizationid\", { extractor: (c) => c.organizationId });\n            ciphers = ciphers || [];\n            ciphers.forEach((c) => builder.add(c));\n            const index = builder.build();\n            yield this.setIndexForSearch(index.toJSON());\n            yield this.setIsIndexing(false);\n            this.logService.info(\"Finished search indexing\");\n        });\n    }\n    searchCiphers(query_1) {\n        return __awaiter(this, arguments, void 0, function* (query, filter = null, ciphers) {\n            const results = [];\n            if (query != null) {\n                query = SearchService.normalizeSearchQuery(query.trim().toLowerCase());\n            }\n            if (query === \"\") {\n                query = null;\n            }\n            if (ciphers == null) {\n                ciphers = [];\n            }\n            if (filter != null && Array.isArray(filter) && filter.length > 0) {\n                ciphers = ciphers.filter((c) => filter.every((f) => f == null || f(c)));\n            }\n            else if (filter != null) {\n                ciphers = ciphers.filter(filter);\n            }\n            if (!(yield this.isSearchable(query))) {\n                return ciphers;\n            }\n            if (yield this.getIsIndexing()) {\n                yield new Promise((r) => setTimeout(r, 250));\n                if (yield this.getIsIndexing()) {\n                    yield new Promise((r) => setTimeout(r, 500));\n                }\n            }\n            const index = yield this.getIndexForSearch();\n            if (index == null) {\n                // Fall back to basic search if index is not available\n                return this.searchCiphersBasic(ciphers, query);\n            }\n            const ciphersMap = new Map();\n            ciphers.forEach((c) => ciphersMap.set(c.id, c));\n            let searchResults = null;\n            const isQueryString = query != null && query.length > 1 && query.indexOf(\">\") === 0;\n            if (isQueryString) {\n                try {\n                    searchResults = index.search(query.substr(1).trim());\n                }\n                catch (e) {\n                    this.logService.error(e);\n                }\n            }\n            else {\n                const soWild = lunr__WEBPACK_IMPORTED_MODULE_0__.Query.wildcard.LEADING | lunr__WEBPACK_IMPORTED_MODULE_0__.Query.wildcard.TRAILING;\n                searchResults = index.query((q) => {\n                    lunr__WEBPACK_IMPORTED_MODULE_0__.tokenizer(query).forEach((token) => {\n                        const t = token.toString();\n                        q.term(t, { fields: [\"name\"], wildcard: soWild });\n                        q.term(t, { fields: [\"subtitle\"], wildcard: soWild });\n                        q.term(t, { fields: [\"login.uris\"], wildcard: soWild });\n                        q.term(t, {});\n                    });\n                });\n            }\n            if (searchResults != null) {\n                searchResults.forEach((r) => {\n                    if (ciphersMap.has(r.ref)) {\n                        results.push(ciphersMap.get(r.ref));\n                    }\n                });\n            }\n            return results;\n        });\n    }\n    searchCiphersBasic(ciphers, query, deleted = false) {\n        query = SearchService.normalizeSearchQuery(query.trim().toLowerCase());\n        return ciphers.filter((c) => {\n            if (deleted !== c.isDeleted) {\n                return false;\n            }\n            if (c.name != null && c.name.toLowerCase().indexOf(query) > -1) {\n                return true;\n            }\n            if (query.length >= 8 && c.id.startsWith(query)) {\n                return true;\n            }\n            if (c.subTitle != null && c.subTitle.toLowerCase().indexOf(query) > -1) {\n                return true;\n            }\n            if (c.login &&\n                c.login.hasUris &&\n                c.login.uris.some((loginUri) => { var _a; return ((_a = loginUri === null || loginUri === void 0 ? void 0 : loginUri.uri) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf(query)) > -1; })) {\n                return true;\n            }\n            return false;\n        });\n    }\n    searchSends(sends, query) {\n        query = SearchService.normalizeSearchQuery(query.trim().toLocaleLowerCase());\n        if (query === null) {\n            return sends;\n        }\n        const sendsMatched = [];\n        const lowPriorityMatched = [];\n        sends.forEach((s) => {\n            var _a, _b, _c;\n            if (s.name != null && s.name.toLowerCase().indexOf(query) > -1) {\n                sendsMatched.push(s);\n            }\n            else if (query.length >= 8 &&\n                (s.id.startsWith(query) ||\n                    s.accessId.toLocaleLowerCase().startsWith(query) ||\n                    (((_a = s.file) === null || _a === void 0 ? void 0 : _a.id) != null && s.file.id.startsWith(query)))) {\n                lowPriorityMatched.push(s);\n            }\n            else if (s.notes != null && s.notes.toLowerCase().indexOf(query) > -1) {\n                lowPriorityMatched.push(s);\n            }\n            else if (((_b = s.text) === null || _b === void 0 ? void 0 : _b.text) != null && s.text.text.toLowerCase().indexOf(query) > -1) {\n                lowPriorityMatched.push(s);\n            }\n            else if (((_c = s.file) === null || _c === void 0 ? void 0 : _c.fileName) != null && s.file.fileName.toLowerCase().indexOf(query) > -1) {\n                lowPriorityMatched.push(s);\n            }\n        });\n        return sendsMatched.concat(lowPriorityMatched);\n    }\n    getIndexForSearch() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.index$);\n        });\n    }\n    setIndexForSearch(index) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.searchIndexState.update(() => index);\n        });\n    }\n    setIndexedEntityIdForSearch(indexedEntityId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.searchIndexEntityIdState.update(() => indexedEntityId);\n        });\n    }\n    setIsIndexing(indexing) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.searchIsIndexingState.update(() => indexing);\n        });\n    }\n    getIsIndexing() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.searchIsIndexing$);\n        });\n    }\n    fieldExtractor(c, joined) {\n        if (!c.hasFields) {\n            return null;\n        }\n        let fields = [];\n        c.fields.forEach((f) => {\n            if (f.name != null) {\n                fields.push(f.name);\n            }\n            if (f.type === _vault_enums__WEBPACK_IMPORTED_MODULE_4__.FieldType.Text && f.value != null) {\n                fields.push(f.value);\n            }\n        });\n        fields = fields.filter((f) => f.trim() !== \"\");\n        if (fields.length === 0) {\n            return null;\n        }\n        return joined ? fields.join(\" \") : fields;\n    }\n    attachmentExtractor(c, joined) {\n        if (!c.hasAttachments) {\n            return null;\n        }\n        let attachments = [];\n        c.attachments.forEach((a) => {\n            if (a != null && a.fileName != null) {\n                if (joined && a.fileName.indexOf(\".\") > -1) {\n                    attachments.push(a.fileName.substr(0, a.fileName.lastIndexOf(\".\")));\n                }\n                else {\n                    attachments.push(a.fileName);\n                }\n            }\n        });\n        attachments = attachments.filter((f) => f.trim() !== \"\");\n        if (attachments.length === 0) {\n            return null;\n        }\n        return joined ? attachments.join(\" \") : attachments;\n    }\n    uriExtractor(c) {\n        if (c.type !== _vault_enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login || c.login == null || !c.login.hasUris) {\n            return null;\n        }\n        const uris = [];\n        c.login.uris.forEach((u) => {\n            if (u.uri == null || u.uri === \"\") {\n                return;\n            }\n            if (u.hostname != null) {\n                uris.push(u.hostname);\n                return;\n            }\n            let uri = u.uri;\n            if (u.match !== _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_2__.UriMatchStrategy.RegularExpression) {\n                const protocolIndex = uri.indexOf(\"://\");\n                if (protocolIndex > -1) {\n                    uri = uri.substr(protocolIndex + 3);\n                }\n                const queryIndex = uri.search(/\\?|&|#/);\n                if (queryIndex > -1) {\n                    uri = uri.substring(0, queryIndex);\n                }\n            }\n            uris.push(uri);\n        });\n        return uris.length > 0 ? uris : null;\n    }\n    normalizeAccentsPipelineFunction(token) {\n        const searchableFields = [\"name\", \"login.username\", \"subtitle\", \"notes\"];\n        const fields = token.metadata[\"fields\"];\n        const checkFields = fields.every((i) => searchableFields.includes(i));\n        if (checkFields) {\n            return SearchService.normalizeSearchQuery(token.toString());\n        }\n        return token;\n    }\n    // Remove accents/diacritics characters from text. This regex is equivalent to the Diacritic unicode property escape, i.e. it will match all diacritic characters.\n    static normalizeSearchQuery(query) {\n        return query === null || query === void 0 ? void 0 : query.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\");\n    }\n}\nSearchService.registeredPipeline = false;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 38676 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/search.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/vault-timeout/vault-timeout-settings.service.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/common/src/services/vault-timeout/vault-timeout-settings.service.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultTimeoutSettingsService: () => (/* binding */ VaultTimeoutSettingsService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums/vault-timeout-action.enum */ \"../../libs/common/src/enums/vault-timeout-action.enum.ts\");\n/* harmony import */ var _types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../types/vault-timeout.type */ \"../../libs/common/src/types/vault-timeout.type.ts\");\n/* harmony import */ var _vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./vault-timeout-settings.state */ \"../../libs/common/src/services/vault-timeout/vault-timeout-settings.state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass VaultTimeoutSettingsService {\n    constructor(accountService, pinService, userDecryptionOptionsService, keyService, tokenService, policyService, biometricStateService, stateProvider, logService, defaultVaultTimeout) {\n        this.accountService = accountService;\n        this.pinService = pinService;\n        this.userDecryptionOptionsService = userDecryptionOptionsService;\n        this.keyService = keyService;\n        this.tokenService = tokenService;\n        this.policyService = policyService;\n        this.biometricStateService = biometricStateService;\n        this.stateProvider = stateProvider;\n        this.logService = logService;\n        this.defaultVaultTimeout = defaultVaultTimeout;\n    }\n    setVaultTimeoutOptions(userId, timeout, action) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"User id required. Cannot set vault timeout settings.\");\n            }\n            if (timeout == null) {\n                throw new Error(\"Vault Timeout cannot be null.\");\n            }\n            if (action == null) {\n                throw new Error(\"Vault Timeout Action cannot be null.\");\n            }\n            // We swap these tokens from being on disk for lock actions, and in memory for logout actions\n            // Get them here to set them to their new location after changing the timeout action and clearing if needed\n            const accessToken = yield this.tokenService.getAccessToken();\n            const refreshToken = yield this.tokenService.getRefreshToken();\n            const clientId = yield this.tokenService.getClientId();\n            const clientSecret = yield this.tokenService.getClientSecret();\n            yield this.setVaultTimeout(userId, timeout);\n            if (timeout != _types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_3__.VaultTimeoutStringType.Never && action === _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.LogOut) {\n                // if we have a vault timeout and the action is log out, reset tokens\n                // as the tokens were stored on disk and now should be stored in memory\n                yield this.tokenService.clearTokens();\n            }\n            yield this.setVaultTimeoutAction(userId, action);\n            yield this.tokenService.setTokens(accessToken, action, timeout, refreshToken, [\n                clientId,\n                clientSecret,\n            ]);\n            yield this.keyService.refreshAdditionalKeys();\n        });\n    }\n    availableVaultTimeoutActions$(userId) {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.defer)(() => this.getAvailableVaultTimeoutActions(userId));\n    }\n    canLock(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const availableVaultTimeoutActions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.availableVaultTimeoutActions$(userId));\n            return (availableVaultTimeoutActions === null || availableVaultTimeoutActions === void 0 ? void 0 : availableVaultTimeoutActions.includes(_enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.Lock)) || false;\n        });\n    }\n    isBiometricLockSet(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const biometricUnlockPromise = userId == null\n                ? (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.biometricStateService.biometricUnlockEnabled$)\n                : this.biometricStateService.getBiometricUnlockEnabled(userId);\n            return yield biometricUnlockPromise;\n        });\n    }\n    setVaultTimeout(userId, timeout) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"User id required. Cannot set vault timeout.\");\n            }\n            if (timeout == null) {\n                throw new Error(\"Vault Timeout cannot be null.\");\n            }\n            yield this.stateProvider.setUserState(_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__.VAULT_TIMEOUT, timeout, userId);\n        });\n    }\n    getVaultTimeoutByUserId$(userId) {\n        if (!userId) {\n            throw new Error(\"User id required. Cannot get vault timeout.\");\n        }\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.stateProvider.getUserState$(_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__.VAULT_TIMEOUT, userId),\n            this.getMaxVaultTimeoutPolicyByUserId$(userId),\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(([currentVaultTimeout, maxVaultTimeoutPolicy]) => {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.from)(this.determineVaultTimeout(currentVaultTimeout, maxVaultTimeoutPolicy)).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.tap)((vaultTimeout) => {\n                // As a side effect, set the new value determined by determineVaultTimeout into state if it's different from the current\n                if (vaultTimeout !== currentVaultTimeout) {\n                    return this.stateProvider.setUserState(_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__.VAULT_TIMEOUT, vaultTimeout, userId);\n                }\n            }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.catchError)((error) => {\n                // Protect outer observable from canceling on error by catching and returning EMPTY\n                this.logService.error(`Error getting vault timeout: ${error}`);\n                return rxjs__WEBPACK_IMPORTED_MODULE_0__.EMPTY;\n            }));\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), // Avoid having the set side effect trigger a new emission of the same action\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n    }\n    determineVaultTimeout(currentVaultTimeout, maxVaultTimeoutPolicy) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // if current vault timeout is null, apply the client specific default\n            currentVaultTimeout = currentVaultTimeout !== null && currentVaultTimeout !== void 0 ? currentVaultTimeout : this.defaultVaultTimeout;\n            // If no policy applies, return the current vault timeout\n            if (!maxVaultTimeoutPolicy) {\n                return currentVaultTimeout;\n            }\n            // User is subject to a max vault timeout policy\n            const maxVaultTimeoutPolicyData = maxVaultTimeoutPolicy.data;\n            // If the current vault timeout is not numeric, change it to the policy compliant value\n            if (typeof currentVaultTimeout === \"string\") {\n                return maxVaultTimeoutPolicyData.minutes;\n            }\n            // For numeric vault timeouts, ensure they are smaller than maximum allowed value according to policy\n            const policyCompliantTimeout = Math.min(currentVaultTimeout, maxVaultTimeoutPolicyData.minutes);\n            return policyCompliantTimeout;\n        });\n    }\n    setVaultTimeoutAction(userId, action) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!userId) {\n                throw new Error(\"User id required. Cannot set vault timeout action.\");\n            }\n            if (!action) {\n                throw new Error(\"Vault Timeout Action cannot be null\");\n            }\n            yield this.stateProvider.setUserState(_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__.VAULT_TIMEOUT_ACTION, action, userId);\n        });\n    }\n    getVaultTimeoutActionByUserId$(userId) {\n        if (!userId) {\n            throw new Error(\"User id required. Cannot get vault timeout action.\");\n        }\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.stateProvider.getUserState$(_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__.VAULT_TIMEOUT_ACTION, userId),\n            this.getMaxVaultTimeoutPolicyByUserId$(userId),\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(([currentVaultTimeoutAction, maxVaultTimeoutPolicy]) => {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.from)(this.determineVaultTimeoutAction(userId, currentVaultTimeoutAction, maxVaultTimeoutPolicy)).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.tap)((vaultTimeoutAction) => {\n                // As a side effect, set the new value determined by determineVaultTimeout into state if it's different from the current\n                // We want to avoid having a null timeout action always so we set it to the default if it is null\n                // and if the user becomes subject to a policy that requires a specific action, we set it to that\n                if (vaultTimeoutAction !== currentVaultTimeoutAction) {\n                    return this.stateProvider.setUserState(_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_4__.VAULT_TIMEOUT_ACTION, vaultTimeoutAction, userId);\n                }\n            }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.catchError)((error) => {\n                // Protect outer observable from canceling on error by catching and returning EMPTY\n                this.logService.error(`Error getting vault timeout: ${error}`);\n                return rxjs__WEBPACK_IMPORTED_MODULE_0__.EMPTY;\n            }));\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), // Avoid having the set side effect trigger a new emission of the same action\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n    }\n    determineVaultTimeoutAction(userId, currentVaultTimeoutAction, maxVaultTimeoutPolicy) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const availableVaultTimeoutActions = yield this.getAvailableVaultTimeoutActions(userId);\n            if (availableVaultTimeoutActions.length === 1) {\n                return availableVaultTimeoutActions[0];\n            }\n            if (((_a = maxVaultTimeoutPolicy === null || maxVaultTimeoutPolicy === void 0 ? void 0 : maxVaultTimeoutPolicy.data) === null || _a === void 0 ? void 0 : _a.action) &&\n                availableVaultTimeoutActions.includes(maxVaultTimeoutPolicy.data.action)) {\n                // return policy defined vault timeout action\n                return maxVaultTimeoutPolicy.data.action;\n            }\n            // No policy applies from here on\n            // If the current vault timeout is null and lock is an option, set it as the default\n            if (currentVaultTimeoutAction == null &&\n                availableVaultTimeoutActions.includes(_enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.Lock)) {\n                return _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.Lock;\n            }\n            return currentVaultTimeoutAction;\n        });\n    }\n    getMaxVaultTimeoutPolicyByUserId$(userId) {\n        if (!userId) {\n            throw new Error(\"User id required. Cannot get max vault timeout policy.\");\n        }\n        return this.policyService\n            .getAll$(_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.PolicyType.MaximumVaultTimeout, userId)\n            .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policies) => { var _a; return (_a = policies[0]) !== null && _a !== void 0 ? _a : null; }));\n    }\n    getAvailableVaultTimeoutActions(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            userId !== null && userId !== void 0 ? userId : (userId = (_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$))) === null || _a === void 0 ? void 0 : _a.id);\n            const availableActions = [_enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.LogOut];\n            const canLock = (yield this.userHasMasterPassword(userId)) ||\n                (yield this.pinService.isPinSet(userId)) ||\n                (yield this.isBiometricLockSet(userId));\n            if (canLock) {\n                availableActions.push(_enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_2__.VaultTimeoutAction.Lock);\n            }\n            return availableActions;\n        });\n    }\n    clear(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.keyService.clearPinKeys(userId);\n        });\n    }\n    userHasMasterPassword(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId) {\n                const decryptionOptions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.userDecryptionOptionsService.userDecryptionOptionsById$(userId));\n                return !!(decryptionOptions === null || decryptionOptions === void 0 ? void 0 : decryptionOptions.hasMasterPassword);\n            }\n            else {\n                return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.userDecryptionOptionsService.hasMasterPassword$);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 25140 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/vault-timeout/vault-timeout-settings.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/vault-timeout/vault-timeout-settings.state.ts":
/*!************************************************************************************!*\
  !*** ../../libs/common/src/services/vault-timeout/vault-timeout-settings.state.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VAULT_TIMEOUT: () => (/* binding */ VAULT_TIMEOUT),\n/* harmony export */   VAULT_TIMEOUT_ACTION: () => (/* binding */ VAULT_TIMEOUT_ACTION)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/**\n * Settings use disk storage and local storage on web so settings can persist after logout\n * in order for us to know if the user's chose to never lock their vault or not.\n * When the user has never lock selected, we have to set the user key in memory\n * from the user auto unlock key stored on disk on client bootstrap.\n */\nconst VAULT_TIMEOUT_ACTION = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.VAULT_TIMEOUT_SETTINGS_DISK_LOCAL, \"vaultTimeoutAction\", {\n    deserializer: (vaultTimeoutAction) => vaultTimeoutAction,\n    clearOn: [], // persisted on logout\n});\nconst VAULT_TIMEOUT = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.VAULT_TIMEOUT_SETTINGS_DISK_LOCAL, \"vaultTimeout\", {\n    deserializer: (vaultTimeout) => vaultTimeout,\n    clearOn: [], // persisted on logout\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3NlcnZpY2VzL3ZhdWx0LXRpbWVvdXQvdmF1bHQtdGltZW91dC1zZXR0aW5ncy5zdGF0ZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFDNEY7QUFHNUY7Ozs7O0dBS0c7QUFDSSxNQUFNLG9CQUFvQixHQUFHLElBQUksOERBQWlCLENBQ3ZELDhFQUFpQyxFQUNqQyxvQkFBb0IsRUFDcEI7SUFDRSxZQUFZLEVBQUUsQ0FBQyxrQkFBa0IsRUFBRSxFQUFFLENBQUMsa0JBQWtCO0lBQ3hELE9BQU8sRUFBRSxFQUFFLEVBQUUsc0JBQXNCO0NBQ3BDLENBQ0YsQ0FBQztBQUVLLE1BQU0sYUFBYSxHQUFHLElBQUksOERBQWlCLENBQ2hELDhFQUFpQyxFQUNqQyxjQUFjLEVBQ2Q7SUFDRSxZQUFZLEVBQUUsQ0FBQyxZQUFZLEVBQUUsRUFBRSxDQUFDLFlBQVk7SUFDNUMsT0FBTyxFQUFFLEVBQUUsRUFBRSxzQkFBc0I7Q0FDcEMsQ0FDRixDQUFDIiwic291c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BVUxUX1RJTUVPVVRfU0VUVElOR1NfRElTS19MT0NBTCxcbiAgXCJ2YXVsdFRpbWVvdXRBY3Rpb25cIixcbiAge1xuICAgIGRlc2VyaWFsaXplcjogKHZhdWx0VGltZW91dEFjdGlvbikgPT4gdmF1bHRUaW1lb3V0QWN0aW9uLFxuICAgIGNsZWFyT246IFtdLCAvLyBwZXJzaXN0ZWQgb24gbG9nb3V0XG4gIH0sXG4pO1xuXG5leHBvcnQgY29uc3QgVkFVTFRfVElNRU9VVCA9IG5ldyBVc2VyS2V5RGVmaW5pdGlvbjxWYXVsdFRpbWVvdXQ+KFxuICBWQVVMVF9USU1FT1VUX1NFVFRJTkdTX0RJU0tfTE9DQUwsXG4gIFwidmF1bHRUaW1lb3V0XCIsXG4gIHtcbiAgICBkZXNlcmlhbGl6ZXI6ICh2YXVsdFRpbWVvdXQpID0+IHZhdWx0VGltZW91dCxcbiAgICBjbGVhck9uOiBbXSwgLy8gcGVyc2lzdGVkIG9uIGxvZ291dFxuICB9LFxuKTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/services/vault-timeout/vault-timeout-settings.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/services/vault-timeout/vault-timeout.service.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/common/src/services/vault-timeout/vault-timeout.service.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultTimeoutService: () => (/* binding */ VaultTimeoutService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/scheduling */ \"../../libs/common/src/platform/scheduling/index.ts\");\n/* harmony import */ var _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../auth/enums/authentication-status */ \"../../libs/common/src/auth/enums/authentication-status.ts\");\n/* harmony import */ var _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../enums/vault-timeout-action.enum */ \"../../libs/common/src/enums/vault-timeout-action.enum.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass VaultTimeoutService {\n    constructor(accountService, masterPasswordService, cipherService, folderService, collectionService, platformUtilsService, messagingService, searchService, stateService, authService, vaultTimeoutSettingsService, stateEventRunnerService, taskSchedulerService, logService, lockedCallback = null, loggedOutCallback = null) {\n        this.accountService = accountService;\n        this.masterPasswordService = masterPasswordService;\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.collectionService = collectionService;\n        this.platformUtilsService = platformUtilsService;\n        this.messagingService = messagingService;\n        this.searchService = searchService;\n        this.stateService = stateService;\n        this.authService = authService;\n        this.vaultTimeoutSettingsService = vaultTimeoutSettingsService;\n        this.stateEventRunnerService = stateEventRunnerService;\n        this.taskSchedulerService = taskSchedulerService;\n        this.logService = logService;\n        this.lockedCallback = lockedCallback;\n        this.loggedOutCallback = loggedOutCallback;\n        this.inited = false;\n        this.taskSchedulerService.registerTaskHandler(_bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_1__.ScheduledTaskNames.vaultTimeoutCheckInterval, () => this.checkVaultTimeout());\n    }\n    init(checkOnInterval) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.inited) {\n                return;\n            }\n            this.inited = true;\n            if (checkOnInterval) {\n                this.startCheck();\n            }\n        });\n    }\n    startCheck() {\n        this.checkVaultTimeout().catch((error) => this.logService.error(error));\n        this.taskSchedulerService.setInterval(_bitwarden_common_platform_scheduling__WEBPACK_IMPORTED_MODULE_1__.ScheduledTaskNames.vaultTimeoutCheckInterval, 10 * 1000);\n    }\n    checkVaultTimeout() {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Get whether or not the view is open a single time so it can be compared for each user\n            const isViewOpen = yield this.platformUtilsService.isViewOpen();\n            yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n                this.accountService.activeAccount$,\n                this.accountService.accountActivity$,\n            ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((_a) => __awaiter(this, [_a], void 0, function* ([activeAccount, accountActivity]) {\n                const activeUserId = activeAccount === null || activeAccount === void 0 ? void 0 : activeAccount.id;\n                for (const userIdString in accountActivity) {\n                    const userId = userIdString;\n                    if (userId != null &&\n                        (yield this.shouldLock(userId, accountActivity[userId], activeUserId, isViewOpen))) {\n                        yield this.executeTimeoutAction(userId);\n                    }\n                }\n            }))));\n        });\n    }\n    lock(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const authed = yield this.stateService.getIsAuthenticated({ userId: userId });\n            if (!authed) {\n                return;\n            }\n            const availableActions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.availableVaultTimeoutActions$(userId));\n            const supportsLock = availableActions.includes(_enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_3__.VaultTimeoutAction.Lock);\n            if (!supportsLock) {\n                yield this.logOut(userId);\n            }\n            const currentUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            const lockingUserId = userId !== null && userId !== void 0 ? userId : currentUserId;\n            // HACK: Start listening for the transition of the locking user from something to the locked state.\n            // This is very much a hack to ensure that the authentication status to retrievable right after\n            // it does its work. Particularly the `lockedCallback` and `\"locked\"` message. Instead\n            // lockedCallback should be deprecated and people should subscribe and react to `authStatusFor$` themselves.\n            const lockPromise = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.authService.authStatusFor$(lockingUserId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((authStatus) => authStatus === _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.Locked), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timeout)({\n                first: 5000,\n                with: () => {\n                    throw new Error(\"The lock process did not complete in a reasonable amount of time.\");\n                },\n            })));\n            if (userId == null || userId === currentUserId) {\n                yield this.searchService.clearIndex();\n                yield this.folderService.clearCache();\n                yield this.collectionService.clearActiveUserCache();\n            }\n            yield this.masterPasswordService.clearMasterKey(lockingUserId);\n            yield this.stateService.setUserKeyAutoUnlock(null, { userId: lockingUserId });\n            yield this.stateService.setCryptoMasterKeyAuto(null, { userId: lockingUserId });\n            yield this.cipherService.clearCache(lockingUserId);\n            yield this.stateEventRunnerService.handleEvent(\"lock\", lockingUserId);\n            // HACK: Sit here and wait for the the auth status to transition to `Locked`\n            // to ensure the message and lockedCallback will get the correct status\n            // if/when they call it.\n            yield lockPromise;\n            this.messagingService.send(\"locked\", { userId: lockingUserId });\n            if (this.lockedCallback != null) {\n                yield this.lockedCallback(userId);\n            }\n        });\n    }\n    logOut(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.loggedOutCallback != null) {\n                yield this.loggedOutCallback(\"vaultTimeout\", userId);\n            }\n        });\n    }\n    shouldLock(userId, lastActive, activeUserId, isViewOpen) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (isViewOpen && userId === activeUserId) {\n                // We know a view is open and this is the currently active user\n                // which means they are likely looking at their vault\n                // and they should not lock.\n                return false;\n            }\n            const authStatus = yield this.authService.getAuthStatus(userId);\n            if (authStatus === _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.Locked ||\n                authStatus === _auth_enums_authentication_status__WEBPACK_IMPORTED_MODULE_2__.AuthenticationStatus.LoggedOut) {\n                return false;\n            }\n            const vaultTimeout = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutByUserId$(userId));\n            if (typeof vaultTimeout === \"string\") {\n                return false;\n            }\n            if (lastActive == null) {\n                return false;\n            }\n            const vaultTimeoutSeconds = vaultTimeout * 60;\n            const diffSeconds = (new Date().getTime() - lastActive.getTime()) / 1000;\n            return diffSeconds >= vaultTimeoutSeconds;\n        });\n    }\n    executeTimeoutAction(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const timeoutAction = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.vaultTimeoutSettingsService.getVaultTimeoutActionByUserId$(userId));\n            timeoutAction === _enums_vault_timeout_action_enum__WEBPACK_IMPORTED_MODULE_3__.VaultTimeoutAction.LogOut\n                ? yield this.logOut(userId)\n                : yield this.lock(userId);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18048 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/services/vault-timeout/vault-timeout.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/index.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/state-migrations/index.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CURRENT_VERSION: () => (/* reexport safe */ _migrate__WEBPACK_IMPORTED_MODULE_0__.CURRENT_VERSION),\n/* harmony export */   createMigrationBuilder: () => (/* reexport safe */ _migrate__WEBPACK_IMPORTED_MODULE_0__.createMigrationBuilder),\n/* harmony export */   waitForMigrations: () => (/* reexport safe */ _migrate__WEBPACK_IMPORTED_MODULE_0__.waitForMigrations)\n/* harmony export */ });\n/* harmony import */ var _migrate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./migrate */ \"../../libs/common/src/state-migrations/migrate.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUF1RiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9zdGF0ZS1taWdyYXRpb25zL2luZGV4LnRzPzhiNTAiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgY3JlYXRlTWlncmF0aW9uQnVpbGRlciwgd2FpdEZvck1pZ3JhdGlvbnMsIENVUlJFTlRfVkVSU0lPTiB9IGZyb20gXCIuL21pZ3JhdGVcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrate.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrate.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CURRENT_VERSION: () => (/* binding */ CURRENT_VERSION),\n/* harmony export */   MIN_VERSION: () => (/* binding */ MIN_VERSION),\n/* harmony export */   createMigrationBuilder: () => (/* binding */ createMigrationBuilder),\n/* harmony export */   currentVersion: () => (/* binding */ currentVersion),\n/* harmony export */   waitForMigrations: () => (/* binding */ waitForMigrations)\n/* harmony export */ });\n/* harmony import */ var _migration_builder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./migration-builder */ \"../../libs/common/src/state-migrations/migration-builder.ts\");\n/* harmony import */ var _migrations_10_move_ever_had_user_key_to_state_providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./migrations/10-move-ever-had-user-key-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/10-move-ever-had-user-key-to-state-providers.ts\");\n/* harmony import */ var _migrations_11_move_org_keys_to_state_providers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./migrations/11-move-org-keys-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/11-move-org-keys-to-state-providers.ts\");\n/* harmony import */ var _migrations_12_move_environment_state_to_providers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./migrations/12-move-environment-state-to-providers */ \"../../libs/common/src/state-migrations/migrations/12-move-environment-state-to-providers.ts\");\n/* harmony import */ var _migrations_13_move_provider_keys_to_state_providers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./migrations/13-move-provider-keys-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/13-move-provider-keys-to-state-providers.ts\");\n/* harmony import */ var _migrations_14_move_biometric_client_key_half_state_to_providers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./migrations/14-move-biometric-client-key-half-state-to-providers */ \"../../libs/common/src/state-migrations/migrations/14-move-biometric-client-key-half-state-to-providers.ts\");\n/* harmony import */ var _migrations_15_move_folder_state_to_state_provider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./migrations/15-move-folder-state-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/15-move-folder-state-to-state-provider.ts\");\n/* harmony import */ var _migrations_16_move_last_sync_to_state_provider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./migrations/16-move-last-sync-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/16-move-last-sync-to-state-provider.ts\");\n/* harmony import */ var _migrations_17_move_enable_passkeys_to_state_providers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./migrations/17-move-enable-passkeys-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/17-move-enable-passkeys-to-state-providers.ts\");\n/* harmony import */ var _migrations_18_move_autofill_settings_to_state_providers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./migrations/18-move-autofill-settings-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/18-move-autofill-settings-to-state-providers.ts\");\n/* harmony import */ var _migrations_19_migrate_require_password_on_start__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./migrations/19-migrate-require-password-on-start */ \"../../libs/common/src/state-migrations/migrations/19-migrate-require-password-on-start.ts\");\n/* harmony import */ var _migrations_20_move_private_key_to_state_providers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./migrations/20-move-private-key-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/20-move-private-key-to-state-providers.ts\");\n/* harmony import */ var _migrations_21_move_collections_state_to_state_provider__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./migrations/21-move-collections-state-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/21-move-collections-state-to-state-provider.ts\");\n/* harmony import */ var _migrations_22_move_collapsed_groupings_to_state_provider__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./migrations/22-move-collapsed-groupings-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/22-move-collapsed-groupings-to-state-provider.ts\");\n/* harmony import */ var _migrations_23_move_biometric_prompts_to_state_providers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./migrations/23-move-biometric-prompts-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/23-move-biometric-prompts-to-state-providers.ts\");\n/* harmony import */ var _migrations_24_move_sm_onboarding_key_to_state_providers__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./migrations/24-move-sm-onboarding-key-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/24-move-sm-onboarding-key-to-state-providers.ts\");\n/* harmony import */ var _migrations_25_move_clear_clipboard_to_autofill_settings_state_provider__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./migrations/25-move-clear-clipboard-to-autofill-settings-state-provider */ \"../../libs/common/src/state-migrations/migrations/25-move-clear-clipboard-to-autofill-settings-state-provider.ts\");\n/* harmony import */ var _migrations_26_revert_move_last_sync_to_state_provider__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./migrations/26-revert-move-last-sync-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/26-revert-move-last-sync-to-state-provider.ts\");\n/* harmony import */ var _migrations_27_move_badge_settings_to_state_providers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./migrations/27-move-badge-settings-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/27-move-badge-settings-to-state-providers.ts\");\n/* harmony import */ var _migrations_28_move_biometric_unlock_to_state_providers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./migrations/28-move-biometric-unlock-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/28-move-biometric-unlock-to-state-providers.ts\");\n/* harmony import */ var _migrations_29_move_user_notification_settings_to_state_provider__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./migrations/29-move-user-notification-settings-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/29-move-user-notification-settings-to-state-provider.ts\");\n/* harmony import */ var _migrations_30_move_policy_state_to_state_provider__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./migrations/30-move-policy-state-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/30-move-policy-state-to-state-provider.ts\");\n/* harmony import */ var _migrations_31_move_enable_context_menu_to_autofill_settings_state_provider__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./migrations/31-move-enable-context-menu-to-autofill-settings-state-provider */ \"../../libs/common/src/state-migrations/migrations/31-move-enable-context-menu-to-autofill-settings-state-provider.ts\");\n/* harmony import */ var _migrations_32_move_preferred_language__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./migrations/32-move-preferred-language */ \"../../libs/common/src/state-migrations/migrations/32-move-preferred-language.ts\");\n/* harmony import */ var _migrations_33_move_app_id_to_state_providers__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./migrations/33-move-app-id-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/33-move-app-id-to-state-providers.ts\");\n/* harmony import */ var _migrations_34_move_domain_settings_to_state_providers__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./migrations/34-move-domain-settings-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/34-move-domain-settings-to-state-providers.ts\");\n/* harmony import */ var _migrations_35_move_theme_to_state_providers__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./migrations/35-move-theme-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/35-move-theme-to-state-providers.ts\");\n/* harmony import */ var _migrations_36_move_show_card_and_identity_to_state_provider__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./migrations/36-move-show-card-and-identity-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/36-move-show-card-and-identity-to-state-provider.ts\");\n/* harmony import */ var _migrations_37_move_avatar_color_to_state_providers__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./migrations/37-move-avatar-color-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/37-move-avatar-color-to-state-providers.ts\");\n/* harmony import */ var _migrations_38_migrate_token_svc_to_state_provider__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./migrations/38-migrate-token-svc-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/38-migrate-token-svc-to-state-provider.ts\");\n/* harmony import */ var _migrations_39_move_billing_account_profile_to_state_providers__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./migrations/39-move-billing-account-profile-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/39-move-billing-account-profile-to-state-providers.ts\");\n/* harmony import */ var _migrations_4_remove_ever_been_unlocked__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./migrations/4-remove-ever-been-unlocked */ \"../../libs/common/src/state-migrations/migrations/4-remove-ever-been-unlocked.ts\");\n/* harmony import */ var _migrations_40_move_organization_state_to_state_provider__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./migrations/40-move-organization-state-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/40-move-organization-state-to-state-provider.ts\");\n/* harmony import */ var _migrations_41_move_event_collection_to_state_provider__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./migrations/41-move-event-collection-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/41-move-event-collection-to-state-provider.ts\");\n/* harmony import */ var _migrations_42_move_enable_favicon_to_domain_settings_state_provider__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./migrations/42-move-enable-favicon-to-domain-settings-state-provider */ \"../../libs/common/src/state-migrations/migrations/42-move-enable-favicon-to-domain-settings-state-provider.ts\");\n/* harmony import */ var _migrations_43_move_auto_confirm_finger_prints_to_state_provider__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./migrations/43-move-auto-confirm-finger-prints-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/43-move-auto-confirm-finger-prints-to-state-provider.ts\");\n/* harmony import */ var _migrations_44_move_user_decryption_options_to_state_provider__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./migrations/44-move-user-decryption-options-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/44-move-user-decryption-options-to-state-provider.ts\");\n/* harmony import */ var _migrations_45_merge_environment_state__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./migrations/45-merge-environment-state */ \"../../libs/common/src/state-migrations/migrations/45-merge-environment-state.ts\");\n/* harmony import */ var _migrations_46_delete_orphaned_biometric_prompt_data__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./migrations/46-delete-orphaned-biometric-prompt-data */ \"../../libs/common/src/state-migrations/migrations/46-delete-orphaned-biometric-prompt-data.ts\");\n/* harmony import */ var _migrations_47_move_desktop_settings__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./migrations/47-move-desktop-settings */ \"../../libs/common/src/state-migrations/migrations/47-move-desktop-settings.ts\");\n/* harmony import */ var _migrations_48_move_ddg_to_state_provider__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./migrations/48-move-ddg-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/48-move-ddg-to-state-provider.ts\");\n/* harmony import */ var _migrations_49_move_account_server_configs__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./migrations/49-move-account-server-configs */ \"../../libs/common/src/state-migrations/migrations/49-move-account-server-configs.ts\");\n/* harmony import */ var _migrations_5_add_key_type_to_org_keys__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./migrations/5-add-key-type-to-org-keys */ \"../../libs/common/src/state-migrations/migrations/5-add-key-type-to-org-keys.ts\");\n/* harmony import */ var _migrations_50_move_key_connector_to_state_provider__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./migrations/50-move-key-connector-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/50-move-key-connector-to-state-provider.ts\");\n/* harmony import */ var _migrations_51_move_remembered_email_to_state_providers__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./migrations/51-move-remembered-email-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/51-move-remembered-email-to-state-providers.ts\");\n/* harmony import */ var _migrations_52_delete_installed_version__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./migrations/52-delete-installed-version */ \"../../libs/common/src/state-migrations/migrations/52-delete-installed-version.ts\");\n/* harmony import */ var _migrations_53_migrate_device_trust_svc_to_state_providers__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./migrations/53-migrate-device-trust-svc-to-state-providers */ \"../../libs/common/src/state-migrations/migrations/53-migrate-device-trust-svc-to-state-providers.ts\");\n/* harmony import */ var _migrations_54_move_encrypted_sends__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./migrations/54-move-encrypted-sends */ \"../../libs/common/src/state-migrations/migrations/54-move-encrypted-sends.ts\");\n/* harmony import */ var _migrations_55_move_master_key_state_to_provider__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./migrations/55-move-master-key-state-to-provider */ \"../../libs/common/src/state-migrations/migrations/55-move-master-key-state-to-provider.ts\");\n/* harmony import */ var _migrations_56_move_auth_requests__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./migrations/56-move-auth-requests */ \"../../libs/common/src/state-migrations/migrations/56-move-auth-requests.ts\");\n/* harmony import */ var _migrations_57_move_cipher_service_to_state_provider__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./migrations/57-move-cipher-service-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/57-move-cipher-service-to-state-provider.ts\");\n/* harmony import */ var _migrations_58_remove_refresh_token_migrated_state_provider_flag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./migrations/58-remove-refresh-token-migrated-state-provider-flag */ \"../../libs/common/src/state-migrations/migrations/58-remove-refresh-token-migrated-state-provider-flag.ts\");\n/* harmony import */ var _migrations_59_move_kdf_config_to_state_provider__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./migrations/59-move-kdf-config-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/59-move-kdf-config-to-state-provider.ts\");\n/* harmony import */ var _migrations_6_remove_legacy_etm_key__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./migrations/6-remove-legacy-etm-key */ \"../../libs/common/src/state-migrations/migrations/6-remove-legacy-etm-key.ts\");\n/* harmony import */ var _migrations_60_known_accounts__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./migrations/60-known-accounts */ \"../../libs/common/src/state-migrations/migrations/60-known-accounts.ts\");\n/* harmony import */ var _migrations_61_move_pin_state_to_providers__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./migrations/61-move-pin-state-to-providers */ \"../../libs/common/src/state-migrations/migrations/61-move-pin-state-to-providers.ts\");\n/* harmony import */ var _migrations_62_migrate_vault_timeout_settings_svc_to_state_provider__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./migrations/62-migrate-vault-timeout-settings-svc-to-state-provider */ \"../../libs/common/src/state-migrations/migrations/62-migrate-vault-timeout-settings-svc-to-state-provider.ts\");\n/* harmony import */ var _migrations_63_migrate_password_settings__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./migrations/63-migrate-password-settings */ \"../../libs/common/src/state-migrations/migrations/63-migrate-password-settings.ts\");\n/* harmony import */ var _migrations_64_migrate_generator_history__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./migrations/64-migrate-generator-history */ \"../../libs/common/src/state-migrations/migrations/64-migrate-generator-history.ts\");\n/* harmony import */ var _migrations_65_migrate_forwarder_settings__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./migrations/65-migrate-forwarder-settings */ \"../../libs/common/src/state-migrations/migrations/65-migrate-forwarder-settings.ts\");\n/* harmony import */ var _migrations_66_move_final_desktop_settings__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./migrations/66-move-final-desktop-settings */ \"../../libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.ts\");\n/* harmony import */ var _migrations_67_remove_unassigned_items_banner_dismissed__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./migrations/67-remove-unassigned-items-banner-dismissed */ \"../../libs/common/src/state-migrations/migrations/67-remove-unassigned-items-banner-dismissed.ts\");\n/* harmony import */ var _migrations_68_move_last_sync_date__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./migrations/68-move-last-sync-date */ \"../../libs/common/src/state-migrations/migrations/68-move-last-sync-date.ts\");\n/* harmony import */ var _migrations_7_move_biometric_auto_prompt_to_account__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./migrations/7-move-biometric-auto-prompt-to-account */ \"../../libs/common/src/state-migrations/migrations/7-move-biometric-auto-prompt-to-account.ts\");\n/* harmony import */ var _migrations_8_move_state_version__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./migrations/8-move-state-version */ \"../../libs/common/src/state-migrations/migrations/8-move-state-version.ts\");\n/* harmony import */ var _migrations_9_move_browser_settings_to_global__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./migrations/9-move-browser-settings-to-global */ \"../../libs/common/src/state-migrations/migrations/9-move-browser-settings-to-global.ts\");\n/* harmony import */ var _migrations_min_version__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./migrations/min-version */ \"../../libs/common/src/state-migrations/migrations/min-version.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst MIN_VERSION = 3;\nconst CURRENT_VERSION = 68;\nfunction createMigrationBuilder() {\n    return _migration_builder__WEBPACK_IMPORTED_MODULE_0__.MigrationBuilder.create()\n        .with(_migrations_min_version__WEBPACK_IMPORTED_MODULE_66__.MinVersionMigrator)\n        .with(_migrations_4_remove_ever_been_unlocked__WEBPACK_IMPORTED_MODULE_31__.RemoveEverBeenUnlockedMigrator, 3, 4)\n        .with(_migrations_5_add_key_type_to_org_keys__WEBPACK_IMPORTED_MODULE_42__.AddKeyTypeToOrgKeysMigrator, 4, 5)\n        .with(_migrations_6_remove_legacy_etm_key__WEBPACK_IMPORTED_MODULE_53__.RemoveLegacyEtmKeyMigrator, 5, 6)\n        .with(_migrations_7_move_biometric_auto_prompt_to_account__WEBPACK_IMPORTED_MODULE_63__.MoveBiometricAutoPromptToAccount, 6, 7)\n        .with(_migrations_8_move_state_version__WEBPACK_IMPORTED_MODULE_64__.MoveStateVersionMigrator, 7, 8)\n        .with(_migrations_9_move_browser_settings_to_global__WEBPACK_IMPORTED_MODULE_65__.MoveBrowserSettingsToGlobal, 8, 9)\n        .with(_migrations_10_move_ever_had_user_key_to_state_providers__WEBPACK_IMPORTED_MODULE_1__.EverHadUserKeyMigrator, 9, 10)\n        .with(_migrations_11_move_org_keys_to_state_providers__WEBPACK_IMPORTED_MODULE_2__.OrganizationKeyMigrator, 10, 11)\n        .with(_migrations_12_move_environment_state_to_providers__WEBPACK_IMPORTED_MODULE_3__.MoveEnvironmentStateToProviders, 11, 12)\n        .with(_migrations_13_move_provider_keys_to_state_providers__WEBPACK_IMPORTED_MODULE_4__.ProviderKeyMigrator, 12, 13)\n        .with(_migrations_14_move_biometric_client_key_half_state_to_providers__WEBPACK_IMPORTED_MODULE_5__.MoveBiometricClientKeyHalfToStateProviders, 13, 14)\n        .with(_migrations_15_move_folder_state_to_state_provider__WEBPACK_IMPORTED_MODULE_6__.FolderMigrator, 14, 15)\n        .with(_migrations_16_move_last_sync_to_state_provider__WEBPACK_IMPORTED_MODULE_7__.LastSyncMigrator, 15, 16)\n        .with(_migrations_17_move_enable_passkeys_to_state_providers__WEBPACK_IMPORTED_MODULE_8__.EnablePasskeysMigrator, 16, 17)\n        .with(_migrations_18_move_autofill_settings_to_state_providers__WEBPACK_IMPORTED_MODULE_9__.AutofillSettingsKeyMigrator, 17, 18)\n        .with(_migrations_19_migrate_require_password_on_start__WEBPACK_IMPORTED_MODULE_10__.RequirePasswordOnStartMigrator, 18, 19)\n        .with(_migrations_20_move_private_key_to_state_providers__WEBPACK_IMPORTED_MODULE_11__.PrivateKeyMigrator, 19, 20)\n        .with(_migrations_21_move_collections_state_to_state_provider__WEBPACK_IMPORTED_MODULE_12__.CollectionMigrator, 20, 21)\n        .with(_migrations_22_move_collapsed_groupings_to_state_provider__WEBPACK_IMPORTED_MODULE_13__.CollapsedGroupingsMigrator, 21, 22)\n        .with(_migrations_23_move_biometric_prompts_to_state_providers__WEBPACK_IMPORTED_MODULE_14__.MoveBiometricPromptsToStateProviders, 22, 23)\n        .with(_migrations_24_move_sm_onboarding_key_to_state_providers__WEBPACK_IMPORTED_MODULE_15__.SmOnboardingTasksMigrator, 23, 24)\n        .with(_migrations_25_move_clear_clipboard_to_autofill_settings_state_provider__WEBPACK_IMPORTED_MODULE_16__.ClearClipboardDelayMigrator, 24, 25)\n        .with(_migrations_26_revert_move_last_sync_to_state_provider__WEBPACK_IMPORTED_MODULE_17__.RevertLastSyncMigrator, 25, 26)\n        .with(_migrations_27_move_badge_settings_to_state_providers__WEBPACK_IMPORTED_MODULE_18__.BadgeSettingsMigrator, 26, 27)\n        .with(_migrations_28_move_biometric_unlock_to_state_providers__WEBPACK_IMPORTED_MODULE_19__.MoveBiometricUnlockToStateProviders, 27, 28)\n        .with(_migrations_29_move_user_notification_settings_to_state_provider__WEBPACK_IMPORTED_MODULE_20__.UserNotificationSettingsKeyMigrator, 28, 29)\n        .with(_migrations_30_move_policy_state_to_state_provider__WEBPACK_IMPORTED_MODULE_21__.PolicyMigrator, 29, 30)\n        .with(_migrations_31_move_enable_context_menu_to_autofill_settings_state_provider__WEBPACK_IMPORTED_MODULE_22__.EnableContextMenuMigrator, 30, 31)\n        .with(_migrations_32_move_preferred_language__WEBPACK_IMPORTED_MODULE_23__.PreferredLanguageMigrator, 31, 32)\n        .with(_migrations_33_move_app_id_to_state_providers__WEBPACK_IMPORTED_MODULE_24__.AppIdMigrator, 32, 33)\n        .with(_migrations_34_move_domain_settings_to_state_providers__WEBPACK_IMPORTED_MODULE_25__.DomainSettingsMigrator, 33, 34)\n        .with(_migrations_35_move_theme_to_state_providers__WEBPACK_IMPORTED_MODULE_26__.MoveThemeToStateProviderMigrator, 34, 35)\n        .with(_migrations_36_move_show_card_and_identity_to_state_provider__WEBPACK_IMPORTED_MODULE_27__.VaultSettingsKeyMigrator, 35, 36)\n        .with(_migrations_37_move_avatar_color_to_state_providers__WEBPACK_IMPORTED_MODULE_28__.AvatarColorMigrator, 36, 37)\n        .with(_migrations_38_migrate_token_svc_to_state_provider__WEBPACK_IMPORTED_MODULE_29__.TokenServiceStateProviderMigrator, 37, 38)\n        .with(_migrations_39_move_billing_account_profile_to_state_providers__WEBPACK_IMPORTED_MODULE_30__.MoveBillingAccountProfileMigrator, 38, 39)\n        .with(_migrations_40_move_organization_state_to_state_provider__WEBPACK_IMPORTED_MODULE_32__.OrganizationMigrator, 39, 40)\n        .with(_migrations_41_move_event_collection_to_state_provider__WEBPACK_IMPORTED_MODULE_33__.EventCollectionMigrator, 40, 41)\n        .with(_migrations_42_move_enable_favicon_to_domain_settings_state_provider__WEBPACK_IMPORTED_MODULE_34__.EnableFaviconMigrator, 41, 42)\n        .with(_migrations_43_move_auto_confirm_finger_prints_to_state_provider__WEBPACK_IMPORTED_MODULE_35__.AutoConfirmFingerPrintsMigrator, 42, 43)\n        .with(_migrations_44_move_user_decryption_options_to_state_provider__WEBPACK_IMPORTED_MODULE_36__.UserDecryptionOptionsMigrator, 43, 44)\n        .with(_migrations_45_merge_environment_state__WEBPACK_IMPORTED_MODULE_37__.MergeEnvironmentState, 44, 45)\n        .with(_migrations_46_delete_orphaned_biometric_prompt_data__WEBPACK_IMPORTED_MODULE_38__.DeleteBiometricPromptCancelledData, 45, 46)\n        .with(_migrations_47_move_desktop_settings__WEBPACK_IMPORTED_MODULE_39__.MoveDesktopSettingsMigrator, 46, 47)\n        .with(_migrations_48_move_ddg_to_state_provider__WEBPACK_IMPORTED_MODULE_40__.MoveDdgToStateProviderMigrator, 47, 48)\n        .with(_migrations_49_move_account_server_configs__WEBPACK_IMPORTED_MODULE_41__.AccountServerConfigMigrator, 48, 49)\n        .with(_migrations_50_move_key_connector_to_state_provider__WEBPACK_IMPORTED_MODULE_43__.KeyConnectorMigrator, 49, 50)\n        .with(_migrations_51_move_remembered_email_to_state_providers__WEBPACK_IMPORTED_MODULE_44__.RememberedEmailMigrator, 50, 51)\n        .with(_migrations_52_delete_installed_version__WEBPACK_IMPORTED_MODULE_45__.DeleteInstalledVersion, 51, 52)\n        .with(_migrations_53_migrate_device_trust_svc_to_state_providers__WEBPACK_IMPORTED_MODULE_46__.DeviceTrustServiceStateProviderMigrator, 52, 53)\n        .with(_migrations_54_move_encrypted_sends__WEBPACK_IMPORTED_MODULE_47__.SendMigrator, 53, 54)\n        .with(_migrations_55_move_master_key_state_to_provider__WEBPACK_IMPORTED_MODULE_48__.MoveMasterKeyStateToProviderMigrator, 54, 55)\n        .with(_migrations_56_move_auth_requests__WEBPACK_IMPORTED_MODULE_49__.AuthRequestMigrator, 55, 56)\n        .with(_migrations_57_move_cipher_service_to_state_provider__WEBPACK_IMPORTED_MODULE_50__.CipherServiceMigrator, 56, 57)\n        .with(_migrations_58_remove_refresh_token_migrated_state_provider_flag__WEBPACK_IMPORTED_MODULE_51__.RemoveRefreshTokenMigratedFlagMigrator, 57, 58)\n        .with(_migrations_59_move_kdf_config_to_state_provider__WEBPACK_IMPORTED_MODULE_52__.KdfConfigMigrator, 58, 59)\n        .with(_migrations_60_known_accounts__WEBPACK_IMPORTED_MODULE_54__.KnownAccountsMigrator, 59, 60)\n        .with(_migrations_61_move_pin_state_to_providers__WEBPACK_IMPORTED_MODULE_55__.PinStateMigrator, 60, 61)\n        .with(_migrations_62_migrate_vault_timeout_settings_svc_to_state_provider__WEBPACK_IMPORTED_MODULE_56__.VaultTimeoutSettingsServiceStateProviderMigrator, 61, 62)\n        .with(_migrations_63_migrate_password_settings__WEBPACK_IMPORTED_MODULE_57__.PasswordOptionsMigrator, 62, 63)\n        .with(_migrations_64_migrate_generator_history__WEBPACK_IMPORTED_MODULE_58__.GeneratorHistoryMigrator, 63, 64)\n        .with(_migrations_65_migrate_forwarder_settings__WEBPACK_IMPORTED_MODULE_59__.ForwarderOptionsMigrator, 64, 65)\n        .with(_migrations_66_move_final_desktop_settings__WEBPACK_IMPORTED_MODULE_60__.MoveFinalDesktopSettingsMigrator, 65, 66)\n        .with(_migrations_67_remove_unassigned_items_banner_dismissed__WEBPACK_IMPORTED_MODULE_61__.RemoveUnassignedItemsBannerDismissed, 66, 67)\n        .with(_migrations_68_move_last_sync_date__WEBPACK_IMPORTED_MODULE_62__.MoveLastSyncDate, 67, CURRENT_VERSION);\n}\nfunction currentVersion(storageService, logService) {\n    return __awaiter(this, void 0, void 0, function* () {\n        var _a;\n        let state = yield storageService.get(\"stateVersion\");\n        if (state == null) {\n            // Pre v8\n            state = (_a = (yield storageService.get(\"global\"))) === null || _a === void 0 ? void 0 : _a.stateVersion;\n        }\n        if (state == null) {\n            logService.info(\"No state version found, assuming empty state.\");\n            return -1;\n        }\n        logService.info(`State version: ${state}`);\n        return state;\n    });\n}\n/**\n * Waits for migrations to have a chance to run and will resolve the promise once they are.\n *\n * @param storageService Disk storage where the `stateVersion` will or is already saved in.\n * @param logService Log service\n */\nfunction waitForMigrations(storageService, logService) {\n    return __awaiter(this, void 0, void 0, function* () {\n        const isReady = () => __awaiter(this, void 0, void 0, function* () {\n            const version = yield currentVersion(storageService, logService);\n            // The saved version is what we consider the latest\n            // migrations should be complete, the state version\n            // shouldn't become larger than `CURRENT_VERSION` in\n            // any normal usage of the application but it is common\n            // enough in dev scenarios where we want to consider that\n            // ready as well and return true in that scenario.\n            return version >= CURRENT_VERSION;\n        });\n        const wait = (time) => __awaiter(this, void 0, void 0, function* () {\n            // Wait exponentially\n            const nextTime = time * 2;\n            if (nextTime > 8192) {\n                // Don't wait longer than ~8 seconds in a single wait,\n                // if the migrations still haven't happened. They aren't\n                // likely to.\n                return;\n            }\n            return new Promise((resolve) => {\n                setTimeout(() => __awaiter(this, void 0, void 0, function* () {\n                    if (!(yield isReady())) {\n                        logService.info(`Waiting for migrations to finish, waiting for ${nextTime}ms`);\n                        yield wait(nextTime);\n                    }\n                    resolve();\n                }), time);\n            });\n        });\n        if (!(yield isReady())) {\n            // Wait for 2ms to start with\n            yield wait(2);\n        }\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 23496 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrate.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migration-builder.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migration-builder.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MigrationBuilder: () => (/* binding */ MigrationBuilder)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nclass MigrationBuilder {\n    /** Create a new MigrationBuilder with an empty buffer of migrations to perform.\n     *\n     * Add migrations to the buffer with {@link with} and {@link rollback}.\n     * @returns A new MigrationBuilder.\n     */\n    static create() {\n        return new MigrationBuilder([]);\n    }\n    constructor(migrations) {\n        this.migrations = migrations;\n    }\n    /** Add a migrator to the MigrationBuilder. Types are updated such that the chained MigrationBuilder must currently be\n     * at state version equal to the from version of the migrator. Return as MigrationBuilder<TTo> where TTo is the to\n     * version of the migrator, so that the next migrator can be chained.\n     *\n     * @param migrate A migrator class or a tuple of a migrator class, the from version, and the to version. A tuple is\n     * required to instantiate version numbers unless a default constructor is defined.\n     * @returns A new MigrationBuilder with the to version of the migrator as the current version.\n     */\n    with(...migrate) {\n        return this.addMigrator(migrate, \"up\");\n    }\n    /** Add a migrator to rollback on the MigrationBuilder's list of migrations. As with {@link with}, types of\n     * MigrationBuilder and Migrator must align. However, this time the migration is reversed so TCurrent of the\n     * MigrationBuilder must be equal to the to version of the migrator. Return as MigrationBuilder<TFrom> where TFrom\n     * is the from version of the migrator, so that the next migrator can be chained.\n     *\n     * @param migrate A migrator class or a tuple of a migrator class, the from version, and the to version. A tuple is\n     * required to instantiate version numbers unless a default constructor is defined.\n     * @returns A new MigrationBuilder with the from version of the migrator as the current version.\n     */\n    rollback(...migrate) {\n        if (migrate.length === 3) {\n            migrate = [migrate[0], migrate[2], migrate[1]];\n        }\n        return this.addMigrator(migrate, \"down\");\n    }\n    /** Execute the migrations as defined in the MigrationBuilder's migrator buffer */\n    migrate(helper) {\n        return this.migrations.reduce((promise, migrator) => promise.then(() => __awaiter(this, void 0, void 0, function* () {\n            yield this.runMigrator(migrator.migrator, helper, migrator.direction);\n        })), Promise.resolve());\n    }\n    addMigrator(migrate, direction = \"up\") {\n        const newMigration = migrate.length === 1\n            ? { migrator: new migrate[0](), direction }\n            : { migrator: new migrate[0](migrate[1], migrate[2]), direction };\n        return new MigrationBuilder([...this.migrations, newMigration]);\n    }\n    runMigrator(migrator, helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const shouldMigrate = yield migrator.shouldMigrate(helper, direction);\n            helper.info(`Migrator ${migrator.constructor.name} (to version ${migrator.toVersion}) should migrate: ${shouldMigrate} - ${direction}`);\n            if (shouldMigrate) {\n                const method = direction === \"up\" ? migrator.migrate : migrator.rollback;\n                yield method.bind(migrator)(helper);\n                helper.info(`Migrator ${migrator.constructor.name} (to version ${migrator.toVersion}) migrated - ${direction}`);\n                yield migrator.updateVersion(helper, direction);\n                helper.info(`Migrator ${migrator.constructor.name} (to version ${migrator.toVersion}) updated version - ${direction}`);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9084 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migration-builder.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migration-helper.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migration-helper.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MigrationHelper: () => (/* binding */ MigrationHelper)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nclass MigrationHelper {\n    constructor(currentVersion, storageService, logService, type, clientType) {\n        this.currentVersion = currentVersion;\n        this.storageService = storageService;\n        this.logService = logService;\n        this.clientType = clientType;\n        this.type = type;\n    }\n    /**\n     * Gets a value from the storage service at the given key.\n     *\n     * This is a brute force method to just get a value from the storage service. If you can use {@link getFromGlobal} or {@link getFromUser}, you should.\n     * @param key location\n     * @returns the value at the location\n     */\n    get(key) {\n        return this.storageService.get(key);\n    }\n    /**\n     * Sets a value in the storage service at the given key.\n     *\n     * This is a brute force method to just set a value in the storage service. If you can use {@link setToGlobal} or {@link setToUser}, you should.\n     * @param key location\n     * @param value the value to set\n     * @returns\n     */\n    set(key, value) {\n        this.logService.info(`Setting ${key}`);\n        return this.storageService.save(key, value);\n    }\n    /**\n     * Remove a value in the storage service at the given key.\n     *\n     * This is a brute force method to just remove a value in the storage service. If you can use {@link removeFromGlobal} or {@link removeFromUser}, you should.\n     * @param key location\n     * @returns void\n     */\n    remove(key) {\n        this.logService.info(`Removing ${key}`);\n        return this.storageService.remove(key);\n    }\n    /**\n     * Gets a globally scoped value from a location derived through the key definition\n     *\n     * This is for use with the state providers framework, DO NOT use for values stored with {@link StateService},\n     * use {@link get} for those.\n     * @param keyDefinition unique key definition\n     * @returns value from store\n     */\n    getFromGlobal(keyDefinition) {\n        return this.get(this.getGlobalKey(keyDefinition));\n    }\n    /**\n     * Sets a globally scoped value to a location derived through the key definition\n     *\n     * This is for use with the state providers framework, DO NOT use for values stored with {@link StateService},\n     * use {@link set} for those.\n     * @param keyDefinition unique key definition\n     * @param value value to store\n     * @returns void\n     */\n    setToGlobal(keyDefinition, value) {\n        return this.set(this.getGlobalKey(keyDefinition), value);\n    }\n    /**\n     * Remove a globally scoped location derived through the key definition\n     *\n     * This is for use with the state providers framework, DO NOT use for values stored with {@link StateService},\n     * use {@link remove} for those.\n     * @param keyDefinition unique key definition\n     * @returns void\n     */\n    removeFromGlobal(keyDefinition) {\n        return this.remove(this.getGlobalKey(keyDefinition));\n    }\n    /**\n     * Gets a user scoped value from a location derived through the user id and key definition\n     *\n     * This is for use with the state providers framework, DO NOT use for values stored with {@link StateService},\n     * use {@link get} for those.\n     * @param userId userId to use in the key\n     * @param keyDefinition unique key definition\n     * @returns value from store\n     */\n    getFromUser(userId, keyDefinition) {\n        return this.get(this.getUserKey(userId, keyDefinition));\n    }\n    /**\n     * Sets a user scoped value to a location derived through the user id and key definition\n     *\n     * This is for use with the state providers framework, DO NOT use for values stored with {@link StateService},\n     * use {@link set} for those.\n     * @param userId userId to use in the key\n     * @param keyDefinition unique key definition\n     * @param value value to store\n     * @returns void\n     */\n    setToUser(userId, keyDefinition, value) {\n        return this.set(this.getUserKey(userId, keyDefinition), value);\n    }\n    /**\n     * Remove a user scoped location derived through the key definition\n     *\n     * This is for use with the state providers framework, DO NOT use for values stored with {@link StateService},\n     * use {@link remove} for those.\n     * @param keyDefinition unique key definition\n     * @returns void\n     */\n    removeFromUser(userId, keyDefinition) {\n        return this.remove(this.getUserKey(userId, keyDefinition));\n    }\n    info(message) {\n        this.logService.info(message);\n    }\n    /**\n     * Helper method to read all Account objects stored by the State Service.\n     *\n     * This is useful from creating migrations off of this paradigm, but should not be used once a value is migrated to a state provider.\n     *\n     * @returns a list of all accounts that have been authenticated with state service, cast the expected type.\n     */\n    getAccounts() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userIds = yield this.getKnownUserIds();\n            return Promise.all(userIds.map((userId) => __awaiter(this, void 0, void 0, function* () {\n                return ({\n                    userId,\n                    account: yield this.get(userId),\n                });\n            })));\n        });\n    }\n    /**\n     * Helper method to read known users ids.\n     */\n    getKnownUserIds() {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.currentVersion < 60) {\n                return knownAccountUserIdsBuilderPre60(this.storageService);\n            }\n            else {\n                return knownAccountUserIdsBuilder(this.storageService);\n            }\n        });\n    }\n    /**\n     * Builds a user storage key appropriate for the current version.\n     *\n     * @param userId userId to use in the key\n     * @param keyDefinition state and key to use in the key\n     * @returns\n     */\n    getUserKey(userId, keyDefinition) {\n        if (this.currentVersion < 9) {\n            return userKeyBuilderPre9();\n        }\n        else {\n            return userKeyBuilder(userId, keyDefinition);\n        }\n    }\n    /**\n     * Builds a global storage key appropriate for the current version.\n     *\n     * @param keyDefinition state and key to use in the key\n     * @returns\n     */\n    getGlobalKey(keyDefinition) {\n        if (this.currentVersion < 9) {\n            return globalKeyBuilderPre9();\n        }\n        else {\n            return globalKeyBuilder(keyDefinition);\n        }\n    }\n}\n/**\n * When this is updated, rename this function to `userKeyBuilderXToY` where `X` is the version number it\n * became relevant, and `Y` prior to the version it was updated.\n *\n * Be sure to update the map in `MigrationHelper` to point to the appropriate function for the current version.\n * @param userId The userId of the user you want the key to be for.\n * @param keyDefinition the key definition of which data the key should point to.\n * @returns\n */\nfunction userKeyBuilder(userId, keyDefinition) {\n    return `user_${userId}_${keyDefinition.stateDefinition.name}_${keyDefinition.key}`;\n}\nfunction userKeyBuilderPre9() {\n    throw Error(\"No key builder should be used for versions prior to 9.\");\n}\n/**\n * When this is updated, rename this function to `globalKeyBuilderXToY` where `X` is the version number\n * it became relevant, and `Y` prior to the version it was updated.\n *\n * Be sure to update the map in `MigrationHelper` to point to the appropriate function for the current version.\n * @param keyDefinition the key definition of which data the key should point to.\n * @returns\n */\nfunction globalKeyBuilder(keyDefinition) {\n    return `global_${keyDefinition.stateDefinition.name}_${keyDefinition.key}`;\n}\nfunction globalKeyBuilderPre9() {\n    throw Error(\"No key builder should be used for versions prior to 9.\");\n}\nfunction knownAccountUserIdsBuilderPre60(storageService) {\n    return __awaiter(this, void 0, void 0, function* () {\n        var _a;\n        return (_a = (yield storageService.get(\"authenticatedAccounts\"))) !== null && _a !== void 0 ? _a : [];\n    });\n}\nfunction knownAccountUserIdsBuilder(storageService) {\n    return __awaiter(this, void 0, void 0, function* () {\n        const accounts = yield storageService.get(globalKeyBuilder({ stateDefinition: { name: \"account\" }, key: \"accounts\" }));\n        return Object.keys(accounts !== null && accounts !== void 0 ? accounts : {});\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 17728 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migration-helper.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/10-move-ever-had-user-key-to-state-providers.ts":
/*!*********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/10-move-ever-had-user-key-to-state-providers.ts ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EverHadUserKeyMigrator: () => (/* binding */ EverHadUserKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_EVER_HAD_USER_KEY = {\n    key: \"everHadUserKey\",\n    stateDefinition: {\n        name: \"crypto\",\n    },\n};\nclass EverHadUserKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.everHadUserKey;\n                    yield helper.setToUser(userId, USER_EVER_HAD_USER_KEY, value !== null && value !== void 0 ? value : false);\n                    if (value != null) {\n                        delete account.profile.everHadUserKey;\n                    }\n                    yield helper.set(userId, account);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_EVER_HAD_USER_KEY);\n                    if (account) {\n                        account.profile = Object.assign((_a = account.profile) !== null && _a !== void 0 ? _a : {}, {\n                            everHadUserKey: value,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_EVER_HAD_USER_KEY, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4604 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/10-move-ever-had-user-key-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/11-move-org-keys-to-state-providers.ts":
/*!************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/11-move-org-keys-to-state-providers.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationKeyMigrator: () => (/* binding */ OrganizationKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_ENCRYPTED_ORGANIZATION_KEYS = {\n    key: \"organizationKeys\",\n    stateDefinition: {\n        name: \"crypto\",\n    },\n};\nclass OrganizationKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.organizationKeys) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_ENCRYPTED_ORGANIZATION_KEYS, value);\n                        delete account.keys.organizationKeys;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_ENCRYPTED_ORGANIZATION_KEYS);\n                    if (account && value) {\n                        account.keys = Object.assign((_a = account.keys) !== null && _a !== void 0 ? _a : {}, {\n                            organizationKeys: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_ENCRYPTED_ORGANIZATION_KEYS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5036 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/11-move-org-keys-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/12-move-environment-state-to-providers.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/12-move-environment-state-to-providers.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveEnvironmentStateToProviders: () => (/* binding */ MoveEnvironmentStateToProviders)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ENVIRONMENT_STATE = { name: \"environment\" };\nconst REGION_KEY = { key: \"region\", stateDefinition: ENVIRONMENT_STATE };\nconst URLS_KEY = { key: \"urls\", stateDefinition: ENVIRONMENT_STATE };\nclass MoveEnvironmentStateToProviders extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyGlobal = yield helper.get(\"global\");\n            // Move global data\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.region) != null) {\n                yield helper.setToGlobal(REGION_KEY, legacyGlobal.region);\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.environmentUrls) != null) {\n                yield helper.setToGlobal(URLS_KEY, legacyGlobal.environmentUrls);\n            }\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c, _d, _e;\n                // Move account data\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.region) != null) {\n                    yield helper.setToUser(userId, REGION_KEY, account.settings.region);\n                }\n                if (((_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? void 0 : _c.environmentUrls) != null) {\n                    yield helper.setToUser(userId, URLS_KEY, account.settings.environmentUrls);\n                }\n                // Delete old account data\n                (_d = account === null || account === void 0 ? void 0 : account.settings) === null || _d === void 0 ? true : delete _d.region;\n                (_e = account === null || account === void 0 ? void 0 : account.settings) === null || _e === void 0 ? true : delete _e.environmentUrls;\n                yield helper.set(userId, account);\n            })));\n            // Delete legacy global data\n            legacyGlobal === null || legacyGlobal === void 0 ? true : delete legacyGlobal.region;\n            legacyGlobal === null || legacyGlobal === void 0 ? true : delete legacyGlobal.environmentUrls;\n            yield helper.set(\"global\", legacyGlobal);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let legacyGlobal = yield helper.get(\"global\");\n            let updatedLegacyGlobal = false;\n            const globalRegion = yield helper.getFromGlobal(REGION_KEY);\n            if (globalRegion) {\n                if (!legacyGlobal) {\n                    legacyGlobal = {};\n                }\n                updatedLegacyGlobal = true;\n                legacyGlobal.region = globalRegion;\n                yield helper.setToGlobal(REGION_KEY, null);\n            }\n            const globalUrls = yield helper.getFromGlobal(URLS_KEY);\n            if (globalUrls) {\n                if (!legacyGlobal) {\n                    legacyGlobal = {};\n                }\n                updatedLegacyGlobal = true;\n                legacyGlobal.environmentUrls = globalUrls;\n                yield helper.setToGlobal(URLS_KEY, null);\n            }\n            if (updatedLegacyGlobal) {\n                yield helper.set(\"global\", legacyGlobal);\n            }\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updatedAccount = false;\n                    const userRegion = yield helper.getFromUser(userId, REGION_KEY);\n                    if (userRegion) {\n                        if (!account) {\n                            account = {};\n                        }\n                        if (!account.settings) {\n                            account.settings = {};\n                        }\n                        updatedAccount = true;\n                        account.settings.region = userRegion;\n                        yield helper.setToUser(userId, REGION_KEY, null);\n                    }\n                    const userUrls = yield helper.getFromUser(userId, URLS_KEY);\n                    if (userUrls) {\n                        if (!account) {\n                            account = {};\n                        }\n                        if (!account.settings) {\n                            account.settings = {};\n                        }\n                        updatedAccount = true;\n                        account.settings.environmentUrls = userUrls;\n                        yield helper.setToUser(userId, URLS_KEY, null);\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10576 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/12-move-environment-state-to-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/13-move-provider-keys-to-state-providers.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/13-move-provider-keys-to-state-providers.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProviderKeyMigrator: () => (/* binding */ ProviderKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_ENCRYPTED_PROVIDER_KEYS = {\n    key: \"providerKeys\",\n    stateDefinition: {\n        name: \"crypto\",\n    },\n};\nclass ProviderKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.providerKeys) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_ENCRYPTED_PROVIDER_KEYS, value);\n                        delete account.keys.providerKeys;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_ENCRYPTED_PROVIDER_KEYS);\n                    if (account && value) {\n                        account.keys = Object.assign((_a = account.keys) !== null && _a !== void 0 ? _a : {}, {\n                            providerKeys: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_ENCRYPTED_PROVIDER_KEYS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4952 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/13-move-provider-keys-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/14-move-biometric-client-key-half-state-to-providers.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/14-move-biometric-client-key-half-state-to-providers.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CLIENT_KEY_HALF: () => (/* binding */ CLIENT_KEY_HALF),\n/* harmony export */   MoveBiometricClientKeyHalfToStateProviders: () => (/* binding */ MoveBiometricClientKeyHalfToStateProviders)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n// Biometric text, no auto prompt text, fingerprint validated, and prompt cancelled are refreshed on every app start, so we don't need to migrate them\nconst CLIENT_KEY_HALF = {\n    key: \"clientKeyHalf\",\n    stateDefinition: { name: \"biometricSettings\" },\n};\nclass MoveBiometricClientKeyHalfToStateProviders extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c;\n                // Move account data\n                if (((_b = account === null || account === void 0 ? void 0 : account.keys) === null || _b === void 0 ? void 0 : _b.biometricEncryptionClientKeyHalf) != null) {\n                    yield helper.setToUser(userId, CLIENT_KEY_HALF, account.keys.biometricEncryptionClientKeyHalf);\n                    // Delete old account data\n                    (_c = account === null || account === void 0 ? void 0 : account.keys) === null || _c === void 0 ? true : delete _c.biometricEncryptionClientKeyHalf;\n                    yield helper.set(userId, account);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    let updatedAccount = false;\n                    const userKeyHalf = yield helper.getFromUser(userId, CLIENT_KEY_HALF);\n                    if (userKeyHalf) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.keys) !== null && _a !== void 0 ? _a : (account.keys = {});\n                        updatedAccount = true;\n                        account.keys.biometricEncryptionClientKeyHalf = userKeyHalf;\n                        yield helper.setToUser(userId, CLIENT_KEY_HALF, null);\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5388 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/14-move-biometric-client-key-half-state-to-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/15-move-folder-state-to-state-provider.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/15-move-folder-state-to-state-provider.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderMigrator: () => (/* binding */ FolderMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_ENCRYPTED_FOLDERS = {\n    key: \"folders\",\n    stateDefinition: {\n        name: \"folder\",\n    },\n};\nclass FolderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.folders) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_ENCRYPTED_FOLDERS, value);\n                        delete account.data.folders;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_ENCRYPTED_FOLDERS);\n                    if (account) {\n                        account.data = Object.assign((_a = account.data) !== null && _a !== void 0 ? _a : {}, {\n                            folders: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_ENCRYPTED_FOLDERS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4764 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/15-move-folder-state-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/16-move-last-sync-to-state-provider.ts":
/*!************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/16-move-last-sync-to-state-provider.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LastSyncMigrator: () => (/* binding */ LastSyncMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst LAST_SYNC_KEY = {\n    key: \"lastSync\",\n    stateDefinition: {\n        name: \"sync\",\n    },\n};\nclass LastSyncMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.lastSync;\n                    yield helper.setToUser(userId, LAST_SYNC_KEY, value !== null && value !== void 0 ? value : null);\n                    if (value != null) {\n                        delete account.profile.lastSync;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, LAST_SYNC_KEY);\n                    if (account) {\n                        account.profile = Object.assign((_a = account.profile) !== null && _a !== void 0 ? _a : {}, {\n                            lastSync: value,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, LAST_SYNC_KEY, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4472 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/16-move-last-sync-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/17-move-enable-passkeys-to-state-providers.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/17-move-enable-passkeys-to-state-providers.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnablePasskeysMigrator: () => (/* binding */ EnablePasskeysMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_ENABLE_PASSKEYS = {\n    key: \"enablePasskeys\",\n    stateDefinition: {\n        name: \"vaultSettings\",\n    },\n};\nclass EnablePasskeysMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const global = yield helper.get(\"global\");\n            if ((global === null || global === void 0 ? void 0 : global.enablePasskeys) != null) {\n                yield helper.setToGlobal(USER_ENABLE_PASSKEYS, global.enablePasskeys);\n                global === null || global === void 0 ? true : delete global.enablePasskeys;\n                yield helper.set(\"global\", global);\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let global = yield helper.get(\"global\");\n            const globalEnablePasskeys = yield helper.getFromGlobal(USER_ENABLE_PASSKEYS);\n            if (globalEnablePasskeys != null) {\n                global = Object.assign(global !== null && global !== void 0 ? global : {}, { enablePasskeys: globalEnablePasskeys });\n                yield helper.set(\"global\", global);\n                yield helper.setToGlobal(USER_ENABLE_PASSKEYS, undefined);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy8xNy1tb3ZlLWVuYWJsZS1wYXNza2V5cy10by1zdGF0ZS1wcm92aWRlcnMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFDdUM7QUFNdkMsTUFBTSxvQkFBb0IsR0FBc0I7SUFDOUMsR0FBRyxFQUFFLGdCQUFnQjtJQUNyQixlQUFlLEVBQUU7UUFDZixJQUFJLEVBQUUsZUFBZTtLQUN0QjtDQUNGLENBQUM7QUFFSyxNQUFNLHNCQUF1QixTQUFRLCtDQUFnQjtJQUNwRCxPQUFPLENBQUMsTUFBdUI7O1lBQ25DLE1BQU0sTUFBTSxHQUFHLE1BQU0sTUFBTSxDQUFDLEdBQUcsQ0FBcUIsUUFBUSxDQUFDLENBQUM7WUFFOUQsSUFBSSxPQUFNLGFBQU4sTUFBTSx1QkFBTixNQUFNLENBQUUsY0FBYyxLQUFJLElBQUksRUFBRSxDQUFDO2dCQUNuQyxNQUFNLE1BQU0sQ0FBQyxXQUFXLENBQUMsb0JBQW9CLEVBQUUsTUFBTSxDQUFDLGNBQWMsQ0FBQyxDQUFDO2dCQUMvRCxNQUFNLGFBQU4sTUFBTSw0QkFBTixNQUFNLENBQUUsY0FBYyxDQUFDO2dCQUM5QixNQUFNLE1BQU0sQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFLE1BQU0sQ0FBQyxDQUFDO1lBQ3JDLENBQUM7UUFDSCxDQUFDO0tBQUE7SUFFSyxRQUFRLENBQUMsTUFBdUI7O1lBQ3BDLElBQUksT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FsID0gT2JqZWN0LmFzc2lnbihnbG9iYWwgPz8ge30sIHsgZW5hYmxlUGFzc2tleXM6IGdsb2JhbEVuYWJsZVBhc3NrZXlzIH0pO1xuICAgICAgYXdhaXQgaGVscGVyLnNldChcImdsb2JhbFwiLCBnbG9iYWwpO1xuICAgICAgYXdhaXQgaGVscGVyLnNldFRvR2xvYmFsKFVTRVJfRU5BQkxFX1BBU1NLRVlTLCB1bmRlZmluZWQpO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/17-move-enable-passkeys-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/18-move-autofill-settings-to-state-providers.ts":
/*!*********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/18-move-autofill-settings-to-state-providers.ts ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AutofillSettingsKeyMigrator: () => (/* binding */ AutofillSettingsKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst AutofillOverlayVisibility = {\n    Off: 0,\n    OnButtonClick: 1,\n    OnFieldFocus: 2,\n};\nconst autofillSettingsStateDefinition = {\n    stateDefinition: {\n        name: \"autofillSettings\",\n    },\n};\nclass AutofillSettingsKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // global state (e.g. \"autoFillOverlayVisibility -> inlineMenuVisibility\")\n            const globalState = yield helper.get(\"global\");\n            if ((globalState === null || globalState === void 0 ? void 0 : globalState.autoFillOverlayVisibility) != null) {\n                yield helper.setToGlobal({\n                    stateDefinition: {\n                        name: \"autofillSettingsLocal\",\n                    },\n                    key: \"inlineMenuVisibility\",\n                }, globalState.autoFillOverlayVisibility);\n                // delete `autoFillOverlayVisibility` from state global\n                delete globalState.autoFillOverlayVisibility;\n                yield helper.set(\"global\", globalState);\n            }\n            // account state (e.g. account settings -> state provider framework keys)\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            // migrate account state\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updateAccount = false;\n                    const accountSettings = account === null || account === void 0 ? void 0 : account.settings;\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.autoFillOnPageLoadDefault) != null) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoadDefault\" }), accountSettings.autoFillOnPageLoadDefault);\n                        delete account.settings.autoFillOnPageLoadDefault;\n                        updateAccount = true;\n                    }\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.enableAutoFillOnPageLoad) != null) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoad\" }), accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.enableAutoFillOnPageLoad);\n                        delete account.settings.enableAutoFillOnPageLoad;\n                        updateAccount = true;\n                    }\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.dismissedAutoFillOnPageLoadCallout) != null) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoadCalloutIsDismissed\" }), accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.dismissedAutoFillOnPageLoadCallout);\n                        delete account.settings.dismissedAutoFillOnPageLoadCallout;\n                        updateAccount = true;\n                    }\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.disableAutoTotpCopy) != null) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autoCopyTotp\" }), \n                        // invert the value to match the new naming convention\n                        !(accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.disableAutoTotpCopy));\n                        delete account.settings.disableAutoTotpCopy;\n                        updateAccount = true;\n                    }\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.activateAutoFillOnPageLoadFromPolicy) != null) {\n                        yield helper.setToUser(userId, {\n                            stateDefinition: {\n                                name: \"autofillSettingsLocal\",\n                            },\n                            key: \"activateAutofillOnPageLoadFromPolicy\",\n                        }, accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.activateAutoFillOnPageLoadFromPolicy);\n                        delete account.settings.activateAutoFillOnPageLoadFromPolicy;\n                        updateAccount = true;\n                    }\n                    if (updateAccount) {\n                        // update the state account settings with the migrated values deleted\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // global state (e.g. \"inlineMenuVisibility -> autoFillOverlayVisibility\")\n            const globalState = (yield helper.get(\"global\")) || {};\n            const inlineMenuVisibility = yield helper.getFromGlobal({\n                stateDefinition: {\n                    name: \"autofillSettingsLocal\",\n                },\n                key: \"inlineMenuVisibility\",\n            });\n            if (inlineMenuVisibility) {\n                yield helper.set(\"global\", Object.assign(Object.assign({}, globalState), { autoFillOverlayVisibility: inlineMenuVisibility }));\n                // remove the global state provider framework key for `inlineMenuVisibility`\n                yield helper.setToGlobal({\n                    stateDefinition: {\n                        name: \"autofillSettingsLocal\",\n                    },\n                    key: \"inlineMenuVisibility\",\n                }, null);\n            }\n            // account state (e.g. state provider framework keys -> account settings)\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n            // rollback account state\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updateAccount = false;\n                    let settings = (account === null || account === void 0 ? void 0 : account.settings) || {};\n                    const autoFillOnPageLoadDefault = yield helper.getFromUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoadDefault\" }));\n                    const enableAutoFillOnPageLoad = yield helper.getFromUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoad\" }));\n                    const dismissedAutoFillOnPageLoadCallout = yield helper.getFromUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoadCalloutIsDismissed\" }));\n                    const autoCopyTotp = yield helper.getFromUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autoCopyTotp\" }));\n                    const activateAutoFillOnPageLoadFromPolicy = yield helper.getFromUser(userId, {\n                        stateDefinition: {\n                            name: \"autofillSettingsLocal\",\n                        },\n                        key: \"activateAutofillOnPageLoadFromPolicy\",\n                    });\n                    // update new settings and remove the account state provider framework keys for the rolled back values\n                    if (autoFillOnPageLoadDefault != null) {\n                        settings = Object.assign(Object.assign({}, settings), { autoFillOnPageLoadDefault });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoadDefault\" }), null);\n                        updateAccount = true;\n                    }\n                    if (enableAutoFillOnPageLoad != null) {\n                        settings = Object.assign(Object.assign({}, settings), { enableAutoFillOnPageLoad });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoad\" }), null);\n                        updateAccount = true;\n                    }\n                    if (dismissedAutoFillOnPageLoadCallout != null) {\n                        settings = Object.assign(Object.assign({}, settings), { dismissedAutoFillOnPageLoadCallout });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autofillOnPageLoadCalloutIsDismissed\" }), null);\n                        updateAccount = true;\n                    }\n                    if (autoCopyTotp != null) {\n                        // invert the value to match the new naming convention\n                        settings = Object.assign(Object.assign({}, settings), { disableAutoTotpCopy: !autoCopyTotp });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsStateDefinition), { key: \"autoCopyTotp\" }), null);\n                        updateAccount = true;\n                    }\n                    if (activateAutoFillOnPageLoadFromPolicy != null) {\n                        settings = Object.assign(Object.assign({}, settings), { activateAutoFillOnPageLoadFromPolicy });\n                        yield helper.setToUser(userId, {\n                            stateDefinition: {\n                                name: \"autofillSettingsLocal\",\n                            },\n                            key: \"activateAutofillOnPageLoadFromPolicy\",\n                        }, null);\n                        updateAccount = true;\n                    }\n                    if (updateAccount) {\n                        // commit updated settings to state\n                        yield helper.set(userId, Object.assign(Object.assign({}, account), { settings }));\n                    }\n                });\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 19488 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/18-move-autofill-settings-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/19-migrate-require-password-on-start.ts":
/*!*************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/19-migrate-require-password-on-start.ts ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   REQUIRE_PASSWORD_ON_START: () => (/* binding */ REQUIRE_PASSWORD_ON_START),\n/* harmony export */   RequirePasswordOnStartMigrator: () => (/* binding */ RequirePasswordOnStartMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n// Biometric text, no auto prompt text, fingerprint validated, and prompt cancelled are refreshed on every app start, so we don't need to migrate them\nconst REQUIRE_PASSWORD_ON_START = {\n    key: \"requirePasswordOnStart\",\n    stateDefinition: { name: \"biometricSettings\" },\n};\nclass RequirePasswordOnStartMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b;\n                // Move account data\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.requirePasswordOnStart) != null) {\n                    yield helper.setToUser(userId, REQUIRE_PASSWORD_ON_START, account.settings.requirePasswordOnStart);\n                    // Delete old account data\n                    delete account.settings.requirePasswordOnStart;\n                    yield helper.set(userId, account);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const requirePassword = yield helper.getFromUser(userId, REQUIRE_PASSWORD_ON_START);\n                    if (requirePassword) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.settings) !== null && _a !== void 0 ? _a : (account.settings = {});\n                        account.settings.requirePasswordOnStart = requirePassword;\n                        yield helper.setToUser(userId, REQUIRE_PASSWORD_ON_START, null);\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4892 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/19-migrate-require-password-on-start.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/20-move-private-key-to-state-providers.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/20-move-private-key-to-state-providers.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PrivateKeyMigrator: () => (/* binding */ PrivateKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_ENCRYPTED_PRIVATE_KEY = {\n    key: \"privateKey\",\n    stateDefinition: {\n        name: \"crypto\",\n    },\n};\nclass PrivateKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.privateKey) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_ENCRYPTED_PRIVATE_KEY, value);\n                        delete account.keys.privateKey;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_ENCRYPTED_PRIVATE_KEY);\n                    if (account && value) {\n                        account.keys = Object.assign((_a = account.keys) !== null && _a !== void 0 ? _a : {}, {\n                            privateKey: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_ENCRYPTED_PRIVATE_KEY, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4784 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/20-move-private-key-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/21-move-collections-state-to-state-provider.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/21-move-collections-state-to-state-provider.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollectionMigrator: () => (/* binding */ CollectionMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_ENCRYPTED_COLLECTIONS = {\n    key: \"collections\",\n    stateDefinition: {\n        name: \"collection\",\n    },\n};\nclass CollectionMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.collections) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_ENCRYPTED_COLLECTIONS, value);\n                        delete account.data.collections;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_ENCRYPTED_COLLECTIONS);\n                    if (account) {\n                        account.data = Object.assign((_a = account.data) !== null && _a !== void 0 ? _a : {}, {\n                            collections: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_ENCRYPTED_COLLECTIONS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4980 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/21-move-collections-state-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/22-move-collapsed-groupings-to-state-provider.ts":
/*!**********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/22-move-collapsed-groupings-to-state-provider.ts ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CollapsedGroupingsMigrator: () => (/* binding */ CollapsedGroupingsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst COLLAPSED_GROUPINGS = {\n    key: \"collapsedGroupings\",\n    stateDefinition: {\n        name: \"vaultFilter\",\n    },\n};\nclass CollapsedGroupingsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.collapsedGroupings;\n                    if (value != null) {\n                        yield helper.setToUser(userId, COLLAPSED_GROUPINGS, value);\n                        delete account.settings.collapsedGroupings;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, COLLAPSED_GROUPINGS);\n                    if (account) {\n                        account.settings = Object.assign((_a = account.settings) !== null && _a !== void 0 ? _a : {}, {\n                            collapsedGroupings: value,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, COLLAPSED_GROUPINGS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4604 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/22-move-collapsed-groupings-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/23-move-biometric-prompts-to-state-providers.ts":
/*!*********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/23-move-biometric-prompts-to-state-providers.ts ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DISMISSED_BIOMETRIC_REQUIRE_PASSWORD_ON_START_CALLOUT: () => (/* binding */ DISMISSED_BIOMETRIC_REQUIRE_PASSWORD_ON_START_CALLOUT),\n/* harmony export */   MoveBiometricPromptsToStateProviders: () => (/* binding */ MoveBiometricPromptsToStateProviders),\n/* harmony export */   PROMPT_AUTOMATICALLY: () => (/* binding */ PROMPT_AUTOMATICALLY)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n// prompt cancelled is refreshed on every app start/quit/unlock, so we don't need to migrate it\nconst DISMISSED_BIOMETRIC_REQUIRE_PASSWORD_ON_START_CALLOUT = {\n    key: \"dismissedBiometricRequirePasswordOnStartCallout\",\n    stateDefinition: { name: \"biometricSettings\" },\n};\nconst PROMPT_AUTOMATICALLY = {\n    key: \"promptAutomatically\",\n    stateDefinition: { name: \"biometricSettings\" },\n};\nclass MoveBiometricPromptsToStateProviders extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c, _d, _e;\n                if (account == null) {\n                    return;\n                }\n                // Move account data\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.dismissedBiometricRequirePasswordOnStartCallout) != null) {\n                    yield helper.setToUser(userId, DISMISSED_BIOMETRIC_REQUIRE_PASSWORD_ON_START_CALLOUT, account.settings.dismissedBiometricRequirePasswordOnStartCallout);\n                }\n                if (((_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? void 0 : _c.disableAutoBiometricsPrompt) != null) {\n                    yield helper.setToUser(userId, PROMPT_AUTOMATICALLY, !account.settings.disableAutoBiometricsPrompt);\n                }\n                // Delete old account data\n                (_d = account === null || account === void 0 ? void 0 : account.settings) === null || _d === void 0 ? true : delete _d.dismissedBiometricRequirePasswordOnStartCallout;\n                (_e = account === null || account === void 0 ? void 0 : account.settings) === null || _e === void 0 ? true : delete _e.disableAutoBiometricsPrompt;\n                yield helper.set(userId, account);\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    let updatedAccount = false;\n                    const userDismissed = yield helper.getFromUser(userId, DISMISSED_BIOMETRIC_REQUIRE_PASSWORD_ON_START_CALLOUT);\n                    if (userDismissed) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.settings) !== null && _a !== void 0 ? _a : (account.settings = {});\n                        updatedAccount = true;\n                        account.settings.dismissedBiometricRequirePasswordOnStartCallout = userDismissed;\n                        yield helper.setToUser(userId, DISMISSED_BIOMETRIC_REQUIRE_PASSWORD_ON_START_CALLOUT, null);\n                    }\n                    const userPromptAutomatically = yield helper.getFromUser(userId, PROMPT_AUTOMATICALLY);\n                    if (userPromptAutomatically != null) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_b = account.settings) !== null && _b !== void 0 ? _b : (account.settings = {});\n                        updatedAccount = true;\n                        account.settings.disableAutoBiometricsPrompt = !userPromptAutomatically;\n                        yield helper.setToUser(userId, PROMPT_AUTOMATICALLY, null);\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7936 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/23-move-biometric-prompts-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/24-move-sm-onboarding-key-to-state-providers.ts":
/*!*********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/24-move-sm-onboarding-key-to-state-providers.ts ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SM_ONBOARDING_TASKS: () => (/* binding */ SM_ONBOARDING_TASKS),\n/* harmony export */   SmOnboardingTasksMigrator: () => (/* binding */ SmOnboardingTasksMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst SM_ONBOARDING_TASKS = {\n    key: \"tasks\",\n    stateDefinition: { name: \"smOnboarding\" },\n};\nclass SmOnboardingTasksMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b;\n                // Move account data\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.smOnboardingTasks) != null) {\n                    yield helper.setToUser(userId, SM_ONBOARDING_TASKS, account.settings.smOnboardingTasks);\n                    // Delete old account data\n                    delete account.settings.smOnboardingTasks;\n                    yield helper.set(userId, account);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const smOnboardingTasks = yield helper.getFromUser(userId, SM_ONBOARDING_TASKS);\n                    if (smOnboardingTasks) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.settings) !== null && _a !== void 0 ? _a : (account.settings = {});\n                        account.settings.smOnboardingTasks = smOnboardingTasks;\n                        yield helper.setToUser(userId, SM_ONBOARDING_TASKS, null);\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4648 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/24-move-sm-onboarding-key-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/25-move-clear-clipboard-to-autofill-settings-state-provider.ts":
/*!************************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/25-move-clear-clipboard-to-autofill-settings-state-provider.ts ***!
  \************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ClearClipboardDelayMigrator: () => (/* binding */ ClearClipboardDelayMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ClearClipboardDelay = {\n    Never: null,\n    TenSeconds: 10,\n    TwentySeconds: 20,\n    ThirtySeconds: 30,\n    OneMinute: 60,\n    TwoMinutes: 120,\n    FiveMinutes: 300,\n};\nconst autofillSettingsLocalStateDefinition = {\n    stateDefinition: {\n        name: \"autofillSettingsLocal\",\n    },\n};\nclass ClearClipboardDelayMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // account state (e.g. account settings -> state provider framework keys)\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            // migrate account state\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const accountSettings = account === null || account === void 0 ? void 0 : account.settings;\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.clearClipboard) !== undefined) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsLocalStateDefinition), { key: \"clearClipboardDelay\" }), accountSettings.clearClipboard);\n                        delete account.settings.clearClipboard;\n                        // update the state account settings with the migrated values deleted\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // account state (e.g. state provider framework keys -> account settings)\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n            // rollback account state\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let settings = (account === null || account === void 0 ? void 0 : account.settings) || {};\n                    const clearClipboardDelay = yield helper.getFromUser(userId, Object.assign(Object.assign({}, autofillSettingsLocalStateDefinition), { key: \"clearClipboardDelay\" }));\n                    // update new settings and remove the account state provider framework keys for the rolled back values\n                    if (clearClipboardDelay !== undefined) {\n                        settings = Object.assign(Object.assign({}, settings), { clearClipboard: clearClipboardDelay });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, autofillSettingsLocalStateDefinition), { key: \"clearClipboardDelay\" }), null);\n                        // commit updated settings to state\n                        yield helper.set(userId, Object.assign(Object.assign({}, account), { settings }));\n                    }\n                });\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6820 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/25-move-clear-clipboard-to-autofill-settings-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/26-revert-move-last-sync-to-state-provider.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/26-revert-move-last-sync-to-state-provider.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RevertLastSyncMigrator: () => (/* binding */ RevertLastSyncMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst LAST_SYNC_KEY = {\n    key: \"lastSync\",\n    stateDefinition: {\n        name: \"sync\",\n    },\n};\nclass RevertLastSyncMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.lastSync;\n                    yield helper.setToUser(userId, LAST_SYNC_KEY, value !== null && value !== void 0 ? value : null);\n                    if (value != null) {\n                        delete account.profile.lastSync;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, LAST_SYNC_KEY);\n                    if (account) {\n                        account.profile = Object.assign((_a = account.profile) !== null && _a !== void 0 ? _a : {}, {\n                            lastSync: value,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, LAST_SYNC_KEY, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4496 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/26-revert-move-last-sync-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/27-move-badge-settings-to-state-providers.ts":
/*!******************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/27-move-badge-settings-to-state-providers.ts ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BadgeSettingsMigrator: () => (/* binding */ BadgeSettingsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst enableBadgeCounterKeyDefinition = {\n    stateDefinition: {\n        name: \"badgeSettings\",\n    },\n    key: \"enableBadgeCounter\",\n};\nclass BadgeSettingsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // account state (e.g. account settings -> state provider framework keys)\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            // migrate account state\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const accountSettings = account === null || account === void 0 ? void 0 : account.settings;\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.disableBadgeCounter) != undefined) {\n                        yield helper.setToUser(userId, enableBadgeCounterKeyDefinition, !accountSettings.disableBadgeCounter);\n                        delete account.settings.disableBadgeCounter;\n                        // update the state account settings with the migrated values deleted\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // account state (e.g. state provider framework keys -> account settings)\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n            // rollback account state\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let settings = (account === null || account === void 0 ? void 0 : account.settings) || {};\n                    const enableBadgeCounter = yield helper.getFromUser(userId, enableBadgeCounterKeyDefinition);\n                    // update new settings and remove the account state provider framework keys for the rolled back values\n                    if (enableBadgeCounter != undefined) {\n                        settings = Object.assign(Object.assign({}, settings), { disableBadgeCounter: !enableBadgeCounter });\n                        yield helper.setToUser(userId, enableBadgeCounterKeyDefinition, null);\n                        // commit updated settings to state\n                        yield helper.set(userId, Object.assign(Object.assign({}, account), { settings }));\n                    }\n                });\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5832 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/27-move-badge-settings-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/28-move-biometric-unlock-to-state-providers.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/28-move-biometric-unlock-to-state-providers.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BIOMETRIC_UNLOCK_ENABLED: () => (/* binding */ BIOMETRIC_UNLOCK_ENABLED),\n/* harmony export */   MoveBiometricUnlockToStateProviders: () => (/* binding */ MoveBiometricUnlockToStateProviders)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst BIOMETRIC_UNLOCK_ENABLED = {\n    key: \"biometricUnlockEnabled\",\n    stateDefinition: { name: \"biometricSettings\" },\n};\nclass MoveBiometricUnlockToStateProviders extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c;\n                if (account == null) {\n                    return;\n                }\n                // Move account data\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.biometricUnlock) != null) {\n                    yield helper.setToUser(userId, BIOMETRIC_UNLOCK_ENABLED, account.settings.biometricUnlock);\n                }\n                // Delete old account data\n                (_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? true : delete _c.biometricUnlock;\n                yield helper.set(userId, account);\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const biometricUnlock = yield helper.getFromUser(userId, BIOMETRIC_UNLOCK_ENABLED);\n                    if (biometricUnlock != null) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.settings) !== null && _a !== void 0 ? _a : (account.settings = {});\n                        account.settings.biometricUnlock = biometricUnlock;\n                        yield helper.setToUser(userId, BIOMETRIC_UNLOCK_ENABLED, null);\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4836 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/28-move-biometric-unlock-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/29-move-user-notification-settings-to-state-provider.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/29-move-user-notification-settings-to-state-provider.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserNotificationSettingsKeyMigrator: () => (/* binding */ UserNotificationSettingsKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass UserNotificationSettingsKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const globalState = yield helper.get(\"global\");\n            // disableAddLoginNotification -> enableAddedLoginPrompt\n            if ((globalState === null || globalState === void 0 ? void 0 : globalState.disableAddLoginNotification) != null) {\n                yield helper.setToGlobal({\n                    stateDefinition: {\n                        name: \"userNotificationSettings\",\n                    },\n                    key: \"enableAddedLoginPrompt\",\n                }, !globalState.disableAddLoginNotification);\n                // delete `disableAddLoginNotification` from state global\n                delete globalState.disableAddLoginNotification;\n                yield helper.set(\"global\", globalState);\n            }\n            // disableChangedPasswordNotification -> enableChangedPasswordPrompt\n            if ((globalState === null || globalState === void 0 ? void 0 : globalState.disableChangedPasswordNotification) != null) {\n                yield helper.setToGlobal({\n                    stateDefinition: {\n                        name: \"userNotificationSettings\",\n                    },\n                    key: \"enableChangedPasswordPrompt\",\n                }, !globalState.disableChangedPasswordNotification);\n                // delete `disableChangedPasswordNotification` from state global\n                delete globalState.disableChangedPasswordNotification;\n                yield helper.set(\"global\", globalState);\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const globalState = (yield helper.get(\"global\")) || {};\n            const enableAddedLoginPrompt = yield helper.getFromGlobal({\n                stateDefinition: {\n                    name: \"userNotificationSettings\",\n                },\n                key: \"enableAddedLoginPrompt\",\n            });\n            const enableChangedPasswordPrompt = yield helper.getFromGlobal({\n                stateDefinition: {\n                    name: \"userNotificationSettings\",\n                },\n                key: \"enableChangedPasswordPrompt\",\n            });\n            // enableAddedLoginPrompt -> disableAddLoginNotification\n            if (enableAddedLoginPrompt) {\n                yield helper.set(\"global\", Object.assign(Object.assign({}, globalState), { disableAddLoginNotification: !enableAddedLoginPrompt }));\n                // remove the global state provider framework key for `enableAddedLoginPrompt`\n                yield helper.setToGlobal({\n                    stateDefinition: {\n                        name: \"userNotificationSettings\",\n                    },\n                    key: \"enableAddedLoginPrompt\",\n                }, null);\n            }\n            // enableChangedPasswordPrompt -> disableChangedPasswordNotification\n            if (enableChangedPasswordPrompt) {\n                yield helper.set(\"global\", Object.assign(Object.assign({}, globalState), { disableChangedPasswordNotification: !enableChangedPasswordPrompt }));\n                // remove the global state provider framework key for `enableChangedPasswordPrompt`\n                yield helper.setToGlobal({\n                    stateDefinition: {\n                        name: \"userNotificationSettings\",\n                    },\n                    key: \"enableChangedPasswordPrompt\",\n                }, null);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7392 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/29-move-user-notification-settings-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/30-move-policy-state-to-state-provider.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/30-move-policy-state-to-state-provider.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PolicyMigrator: () => (/* binding */ PolicyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nvar PolicyType;\n(function (PolicyType) {\n    PolicyType[PolicyType[\"TwoFactorAuthentication\"] = 0] = \"TwoFactorAuthentication\";\n    PolicyType[PolicyType[\"MasterPassword\"] = 1] = \"MasterPassword\";\n    PolicyType[PolicyType[\"PasswordGenerator\"] = 2] = \"PasswordGenerator\";\n    PolicyType[PolicyType[\"SingleOrg\"] = 3] = \"SingleOrg\";\n    PolicyType[PolicyType[\"RequireSso\"] = 4] = \"RequireSso\";\n    PolicyType[PolicyType[\"PersonalOwnership\"] = 5] = \"PersonalOwnership\";\n    PolicyType[PolicyType[\"DisableSend\"] = 6] = \"DisableSend\";\n    PolicyType[PolicyType[\"SendOptions\"] = 7] = \"SendOptions\";\n    PolicyType[PolicyType[\"ResetPassword\"] = 8] = \"ResetPassword\";\n    PolicyType[PolicyType[\"MaximumVaultTimeout\"] = 9] = \"MaximumVaultTimeout\";\n    PolicyType[PolicyType[\"DisablePersonalVaultExport\"] = 10] = \"DisablePersonalVaultExport\";\n    PolicyType[PolicyType[\"ActivateAutofill\"] = 11] = \"ActivateAutofill\";\n})(PolicyType || (PolicyType = {}));\nconst POLICIES_KEY = {\n    key: \"policies\",\n    stateDefinition: {\n        name: \"policies\",\n    },\n};\nclass PolicyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.policies) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, POLICIES_KEY, value);\n                        delete account.data.policies;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all(accounts.map(({ userId, account }) => migrateAccount(userId, account)));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, POLICIES_KEY);\n                    if (account) {\n                        account.data = Object.assign((_a = account.data) !== null && _a !== void 0 ? _a : {}, {\n                            policies: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, POLICIES_KEY, null);\n                });\n            }\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackAccount(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6376 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/30-move-policy-state-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/31-move-enable-context-menu-to-autofill-settings-state-provider.ts":
/*!****************************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/31-move-enable-context-menu-to-autofill-settings-state-provider.ts ***!
  \****************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnableContextMenuMigrator: () => (/* binding */ EnableContextMenuMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst enableContextMenuKeyDefinition = {\n    stateDefinition: {\n        name: \"autofillSettings\",\n    },\n    key: \"enableContextMenu\",\n};\nclass EnableContextMenuMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const globalState = yield helper.get(\"global\");\n            // disableContextMenuItem -> enableContextMenu\n            if ((globalState === null || globalState === void 0 ? void 0 : globalState.disableContextMenuItem) != null) {\n                yield helper.setToGlobal(enableContextMenuKeyDefinition, !globalState.disableContextMenuItem);\n                // delete `disableContextMenuItem` from state global\n                delete globalState.disableContextMenuItem;\n                yield helper.set(\"global\", globalState);\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const globalState = (yield helper.get(\"global\")) || {};\n            const enableContextMenu = yield helper.getFromGlobal(enableContextMenuKeyDefinition);\n            // enableContextMenu -> disableContextMenuItem\n            if (enableContextMenu != null) {\n                yield helper.set(\"global\", Object.assign(Object.assign({}, globalState), { disableContextMenuItem: !enableContextMenu }));\n                // remove the global state provider framework key for `enableContextMenu`\n                yield helper.setToGlobal(enableContextMenuKeyDefinition, null);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy8zMS1tb3ZlLWVuYWJsZS1jb250ZXh0LW1lbnUtdG8tYXV0b2ZpbGwtc2V0dGluZ3Mtc3RhdGUtcHJvdmlkZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7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4gICAgaWYgKGVuYWJsZUNvbnRleHRNZW51ICE9IG51bGwpIHtcbiAgICAgIGF3YWl0IGhlbHBlci5zZXQ8RXhwZWN0ZWRHbG9iYWxTdGF0ZT4oXCJnbG9iYWxcIiwge1xuICAgICAgICAuLi5nbG9iYWxTdGF0ZSxcbiAgICAgICAgZGlzYWJsZUNvbnRleHRNZW51SXRlbTogIWVuYWJsZUNvbnRleHRNZW51LFxuICAgICAgfSk7XG5cbiAgICAgIC8vIHJlbW92ZSB0aGUgZ2xvYmFsIHN0YXRlIHByb3ZpZGVyIGZyYW1ld29yayBrZXkgZm9yIGBlbmFibGVDb250ZXh0TWVudWBcbiAgICAgIGF3YWl0IGhlbHBlci5zZXRUb0dsb2JhbChlbmFibGVDb250ZXh0TWVudUtleURlZmluaXRpb24sIG51bGwpO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/31-move-enable-context-menu-to-autofill-settings-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/32-move-preferred-language.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/32-move-preferred-language.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LOCALE_KEY: () => (/* binding */ LOCALE_KEY),\n/* harmony export */   PreferredLanguageMigrator: () => (/* binding */ PreferredLanguageMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst LOCALE_KEY = {\n    key: \"locale\",\n    stateDefinition: {\n        name: \"translation\",\n    },\n};\nclass PreferredLanguageMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // global state\n            const global = yield helper.get(\"global\");\n            if (!(global === null || global === void 0 ? void 0 : global.locale)) {\n                return;\n            }\n            yield helper.setToGlobal(LOCALE_KEY, global.locale);\n            delete global.locale;\n            yield helper.set(\"global\", global);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const locale = yield helper.getFromGlobal(LOCALE_KEY);\n            if (!locale) {\n                return;\n            }\n            const global = (_a = (yield helper.get(\"global\"))) !== null && _a !== void 0 ? _a : {};\n            global.locale = locale;\n            yield helper.set(\"global\", global);\n            yield helper.setToGlobal(LOCALE_KEY, null);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy8zMi1tb3ZlLXByZWZlcnJlZC1sYW5ndWFnZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFDdUM7QUFNaEMsTUFBTSxVQUFVLEdBQUc7SUFDeEIsR0FBRyxFQUFFLFFBQVE7SUFDYixlQUFlLEVBQUU7UUFDZixJQUFJLEVBQUUsYUFBYTtLQUNwQjtDQUNGLENBQUM7QUFFSyxNQUFNLHlCQUEwQixTQUFRLCtDQUF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ZD4ge1xuICAgIGNvbnN0IGxvY2FsZSA9IGF3YWl0IGhlbHBlci5nZXRGcm9tR2xvYmFsPHN0cmluZz4oTE9DQUxFX0tFWSk7XG5cbiAgICBpZiAoIWxvY2FsZSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICBjb25zdCBnbG9iYWwgPSAoYXdhaXQgaGVscGVyLmdldDxFeHBlY3RlZEdsb2JhbD4oXCJnbG9iYWxcIikpID8/IHt9O1xuICAgIGdsb2JhbC5sb2NhbGUgPSBsb2NhbGU7XG4gICAgYXdhaXQgaGVscGVyLnNldChcImdsb2JhbFwiLCBnbG9iYWwpO1xuICAgIGF3YWl0IGhlbHBlci5zZXRUb0dsb2JhbChMT0NBTEVfS0VZLCBudWxsKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/32-move-preferred-language.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/33-move-app-id-to-state-providers.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/33-move-app-id-to-state-providers.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ANONYMOUS_APP_ID_KEY: () => (/* binding */ ANONYMOUS_APP_ID_KEY),\n/* harmony export */   ANONYMOUS_APP_ID_STORAGE_KEY: () => (/* binding */ ANONYMOUS_APP_ID_STORAGE_KEY),\n/* harmony export */   APP_ID_KEY: () => (/* binding */ APP_ID_KEY),\n/* harmony export */   APP_ID_STORAGE_KEY: () => (/* binding */ APP_ID_STORAGE_KEY),\n/* harmony export */   AppIdMigrator: () => (/* binding */ AppIdMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst APP_ID_STORAGE_KEY = \"appId\";\nconst ANONYMOUS_APP_ID_STORAGE_KEY = \"anonymousAppId\";\nconst APP_ID_KEY = {\n    key: APP_ID_STORAGE_KEY,\n    stateDefinition: { name: \"applicationId\" },\n};\nconst ANONYMOUS_APP_ID_KEY = {\n    key: ANONYMOUS_APP_ID_STORAGE_KEY,\n    stateDefinition: { name: \"applicationId\" },\n};\nclass AppIdMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const appId = yield helper.get(APP_ID_STORAGE_KEY);\n            const anonymousAppId = yield helper.get(ANONYMOUS_APP_ID_STORAGE_KEY);\n            if (appId != null) {\n                yield helper.setToGlobal(APP_ID_KEY, appId);\n                yield helper.set(APP_ID_STORAGE_KEY, null);\n            }\n            if (anonymousAppId != null) {\n                yield helper.setToGlobal(ANONYMOUS_APP_ID_KEY, anonymousAppId);\n                yield helper.set(ANONYMOUS_APP_ID_STORAGE_KEY, null);\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const appId = yield helper.getFromGlobal(APP_ID_KEY);\n            const anonymousAppId = yield helper.getFromGlobal(ANONYMOUS_APP_ID_KEY);\n            if (appId != null) {\n                yield helper.set(APP_ID_STORAGE_KEY, appId);\n                yield helper.setToGlobal(APP_ID_KEY, null);\n            }\n            if (anonymousAppId != null) {\n                yield helper.set(ANONYMOUS_APP_ID_STORAGE_KEY, anonymousAppId);\n                yield helper.setToGlobal(ANONYMOUS_APP_ID_KEY, null);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4312 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/33-move-app-id-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/34-move-domain-settings-to-state-providers.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/34-move-domain-settings-to-state-providers.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DomainSettingsMigrator: () => (/* binding */ DomainSettingsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst UriMatchStrategy = {\n    Domain: 0,\n    Host: 1,\n    StartsWith: 2,\n    Exact: 3,\n    RegularExpression: 4,\n    Never: 5,\n};\nconst defaultUriMatchStrategyDefinition = {\n    stateDefinition: {\n        name: \"domainSettings\",\n    },\n    key: \"defaultUriMatchStrategy\",\n};\nconst equivalentDomainsDefinition = {\n    stateDefinition: {\n        name: \"domainSettings\",\n    },\n    key: \"equivalentDomains\",\n};\nconst neverDomainsDefinition = {\n    stateDefinition: {\n        name: \"domainSettings\",\n    },\n    key: \"neverDomains\",\n};\nclass DomainSettingsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let updateAccount = false;\n            // global state (\"neverDomains\")\n            const globalState = yield helper.get(\"global\");\n            if ((globalState === null || globalState === void 0 ? void 0 : globalState.neverDomains) != null) {\n                yield helper.setToGlobal(neverDomainsDefinition, globalState.neverDomains);\n                // delete `neverDomains` from state global\n                delete globalState.neverDomains;\n                yield helper.set(\"global\", globalState);\n            }\n            // account state (\"defaultUriMatch\" and \"settings.equivalentDomains\")\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            // migrate account state\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const accountSettings = account === null || account === void 0 ? void 0 : account.settings;\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.defaultUriMatch) != undefined) {\n                        yield helper.setToUser(userId, defaultUriMatchStrategyDefinition, accountSettings.defaultUriMatch);\n                        delete account.settings.defaultUriMatch;\n                        updateAccount = true;\n                    }\n                    if (((_a = accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.settings) === null || _a === void 0 ? void 0 : _a.equivalentDomains) != undefined) {\n                        yield helper.setToUser(userId, equivalentDomainsDefinition, accountSettings.settings.equivalentDomains);\n                        delete account.settings.settings.equivalentDomains;\n                        delete account.settings.settings;\n                        updateAccount = true;\n                    }\n                    if (updateAccount) {\n                        // update the state account settings with the migrated values deleted\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let updateAccount = false;\n            // global state (\"neverDomains\")\n            const globalState = (yield helper.get(\"global\")) || {};\n            const neverDomains = yield helper.getFromGlobal(neverDomainsDefinition);\n            if (neverDomains != null) {\n                yield helper.set(\"global\", Object.assign(Object.assign({}, globalState), { neverDomains: neverDomains }));\n                // remove the global state provider framework key for `neverDomains`\n                yield helper.setToGlobal(neverDomainsDefinition, null);\n            }\n            // account state (\"defaultUriMatchStrategy\" and \"equivalentDomains\")\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n            // rollback account state\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let settings = (account === null || account === void 0 ? void 0 : account.settings) || {};\n                    const defaultUriMatchStrategy = yield helper.getFromUser(userId, defaultUriMatchStrategyDefinition);\n                    const equivalentDomains = yield helper.getFromUser(userId, equivalentDomainsDefinition);\n                    // update new settings and remove the account state provider framework keys for the rolled back values\n                    if (defaultUriMatchStrategy != null) {\n                        settings = Object.assign(Object.assign({}, settings), { defaultUriMatch: defaultUriMatchStrategy });\n                        yield helper.setToUser(userId, defaultUriMatchStrategyDefinition, null);\n                        updateAccount = true;\n                    }\n                    if (equivalentDomains != null) {\n                        settings = Object.assign(Object.assign({}, settings), { settings: { equivalentDomains } });\n                        yield helper.setToUser(userId, equivalentDomainsDefinition, null);\n                        updateAccount = true;\n                    }\n                    // commit updated settings to state\n                    if (updateAccount) {\n                        yield helper.set(userId, Object.assign(Object.assign({}, account), { settings }));\n                    }\n                });\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11764 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/34-move-domain-settings-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/35-move-theme-to-state-providers.ts":
/*!*********************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/35-move-theme-to-state-providers.ts ***!
  \*********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveThemeToStateProviderMigrator: () => (/* binding */ MoveThemeToStateProviderMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst THEME_SELECTION = {\n    key: \"selection\",\n    stateDefinition: { name: \"theming\" },\n};\nclass MoveThemeToStateProviderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyGlobalState = yield helper.get(\"global\");\n            const theme = legacyGlobalState === null || legacyGlobalState === void 0 ? void 0 : legacyGlobalState.theme;\n            if (theme != null) {\n                yield helper.setToGlobal(THEME_SELECTION, theme);\n                delete legacyGlobalState.theme;\n                yield helper.set(\"global\", legacyGlobalState);\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const theme = yield helper.getFromGlobal(THEME_SELECTION);\n            if (theme != null) {\n                const legacyGlobal = (_a = (yield helper.get(\"global\"))) !== null && _a !== void 0 ? _a : {};\n                legacyGlobal.theme = theme;\n                yield helper.set(\"global\", legacyGlobal);\n                yield helper.removeFromGlobal(THEME_SELECTION);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//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wZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBjb25zdCBsZWdhY3lHbG9iYWxTdGF0ZSA9IGF3YWl0IGhlbHBlci5nZXQ8RXhwZWN0ZWRHbG9iYWw+KFwiZ2xvYmFsXCIpO1xuICAgIGNvbnN0IHRoZW1lID0gbGVnYWN5R2xvYmFsU3RhdGU/LnRoZW1lO1xuICAgIGlmICh0aGVtZSAhPSBudWxsKSB7XG4gICAgICBhd2FpdCBoZWxwZXIuc2V0VG9HbG9iYWwoVEhFTUVfU0VMRUNUSU9OLCB0aGVtZSk7XG4gICAgICBkZWxldGUgbGVnYWN5R2xvYmFsU3RhdGUudGhlbWU7XG4gICAgICBhd2FpdCBoZWxwZXIuc2V0KFwiZ2xvYmFsXCIsIGxlZ2FjeUdsb2JhbFN0YXRlKTtcbiAgICB9XG4gIH1cblxuICBhc3luYyByb2xsYmFjayhoZWxwZXI6IE1pZ3JhdGlvbkhlbHBlcik6IFByb21pc2U8dm9pZD4ge1xuICAgIGNvbnN0IHRoZW1lID0gYXdhaXQgaGVscGVyLmdldEZyb21HbG9iYWw8c3RyaW5nPihUSEVNRV9TRUxFQ1RJT04pO1xuICAgIGlmICh0aGVtZSAhPSBudWxsKSB7XG4gICAgICBjb25zdCBsZWdhY3lHbG9iYWwgPSAoYXdhaXQgaGVscGVyLmdldDxFeHBlY3RlZEdsb2JhbD4oXCJnbG9iYWxcIikpID8/IHt9O1xuICAgICAgbGVnYWN5R2xvYmFsLnRoZW1lID0gdGhlbWU7XG4gICAgICBhd2FpdCBoZWxwZXIuc2V0KFwiZ2xvYmFsXCIsIGxlZ2FjeUdsb2JhbCk7XG4gICAgICBhd2FpdCBoZWxwZXIucmVtb3ZlRnJvbUdsb2JhbChUSEVNRV9TRUxFQ1RJT04pO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/35-move-theme-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/36-move-show-card-and-identity-to-state-provider.ts":
/*!*************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/36-move-show-card-and-identity-to-state-provider.ts ***!
  \*************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultSettingsKeyMigrator: () => (/* binding */ VaultSettingsKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst vaultSettingsStateDefinition = {\n    stateDefinition: {\n        name: \"vaultSettings\",\n    },\n};\nclass VaultSettingsKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updateAccount = false;\n                    const accountSettings = account === null || account === void 0 ? void 0 : account.settings;\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.dontShowCardsCurrentTab) != null) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, vaultSettingsStateDefinition), { key: \"showCardsCurrentTab\" }), !accountSettings.dontShowCardsCurrentTab);\n                        delete account.settings.dontShowCardsCurrentTab;\n                        updateAccount = true;\n                    }\n                    if ((accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.dontShowIdentitiesCurrentTab) != null) {\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, vaultSettingsStateDefinition), { key: \"showIdentitiesCurrentTab\" }), !accountSettings.dontShowIdentitiesCurrentTab);\n                        delete account.settings.dontShowIdentitiesCurrentTab;\n                        updateAccount = true;\n                    }\n                    if (updateAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    let updateAccount = false;\n                    let settings = (_a = account === null || account === void 0 ? void 0 : account.settings) !== null && _a !== void 0 ? _a : {};\n                    const showCardsCurrentTab = yield helper.getFromUser(userId, Object.assign(Object.assign({}, vaultSettingsStateDefinition), { key: \"showCardsCurrentTab\" }));\n                    const showIdentitiesCurrentTab = yield helper.getFromUser(userId, Object.assign(Object.assign({}, vaultSettingsStateDefinition), { key: \"showIdentitiesCurrentTab\" }));\n                    if (showCardsCurrentTab != null) {\n                        // invert the value to match the new naming convention\n                        settings = Object.assign(Object.assign({}, settings), { dontShowCardsCurrentTab: !showCardsCurrentTab });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, vaultSettingsStateDefinition), { key: \"showCardsCurrentTab\" }), null);\n                        updateAccount = true;\n                    }\n                    if (showIdentitiesCurrentTab != null) {\n                        // invert the value to match the new naming convention\n                        settings = Object.assign(Object.assign({}, settings), { dontShowIdentitiesCurrentTab: !showIdentitiesCurrentTab });\n                        yield helper.setToUser(userId, Object.assign(Object.assign({}, vaultSettingsStateDefinition), { key: \"showIdentitiesCurrentTab\" }), null);\n                        updateAccount = true;\n                    }\n                    if (updateAccount) {\n                        yield helper.set(userId, Object.assign(Object.assign({}, account), { settings }));\n                    }\n                });\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8168 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/36-move-show-card-and-identity-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/37-move-avatar-color-to-state-providers.ts":
/*!****************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/37-move-avatar-color-to-state-providers.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AvatarColorMigrator: () => (/* binding */ AvatarColorMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst AVATAR_COLOR_STATE = { name: \"avatar\" };\nconst AVATAR_COLOR_KEY = {\n    key: \"avatarColor\",\n    stateDefinition: AVATAR_COLOR_STATE,\n};\nclass AvatarColorMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c;\n                // Move account avatarColor\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.avatarColor) != null) {\n                    yield helper.setToUser(userId, AVATAR_COLOR_KEY, account.settings.avatarColor);\n                    // Delete old account avatarColor property\n                    (_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? true : delete _c.avatarColor;\n                    yield helper.set(userId, account);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updatedAccount = false;\n                    const userAvatarColor = yield helper.getFromUser(userId, AVATAR_COLOR_KEY);\n                    if (userAvatarColor) {\n                        if (!account) {\n                            account = {};\n                        }\n                        updatedAccount = true;\n                        account.settings.avatarColor = userAvatarColor;\n                        yield helper.setToUser(userId, AVATAR_COLOR_KEY, null);\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4844 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/37-move-avatar-color-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/38-migrate-token-svc-to-state-provider.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/38-migrate-token-svc-to-state-provider.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ACCESS_TOKEN_DISK: () => (/* binding */ ACCESS_TOKEN_DISK),\n/* harmony export */   API_KEY_CLIENT_ID_DISK: () => (/* binding */ API_KEY_CLIENT_ID_DISK),\n/* harmony export */   API_KEY_CLIENT_SECRET_DISK: () => (/* binding */ API_KEY_CLIENT_SECRET_DISK),\n/* harmony export */   EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL: () => (/* binding */ EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL),\n/* harmony export */   REFRESH_TOKEN_DISK: () => (/* binding */ REFRESH_TOKEN_DISK),\n/* harmony export */   TokenServiceStateProviderMigrator: () => (/* binding */ TokenServiceStateProviderMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL = {\n    key: \"emailTwoFactorTokenRecord\",\n    stateDefinition: {\n        name: \"tokenDiskLocal\",\n    },\n};\nconst TOKEN_STATE_DEF_LIKE = {\n    name: \"token\",\n};\nconst ACCESS_TOKEN_DISK = {\n    key: \"accessToken\", // matches KeyDefinition.key\n    stateDefinition: TOKEN_STATE_DEF_LIKE,\n};\nconst REFRESH_TOKEN_DISK = {\n    key: \"refreshToken\",\n    stateDefinition: TOKEN_STATE_DEF_LIKE,\n};\nconst API_KEY_CLIENT_ID_DISK = {\n    key: \"apiKeyClientId\",\n    stateDefinition: TOKEN_STATE_DEF_LIKE,\n};\nconst API_KEY_CLIENT_SECRET_DISK = {\n    key: \"apiKeyClientSecret\",\n    stateDefinition: TOKEN_STATE_DEF_LIKE,\n};\nclass TokenServiceStateProviderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Move global data\n            const globalData = yield helper.get(\"global\");\n            // Create new global record for 2FA token that we can accumulate data in\n            const emailTwoFactorTokenRecord = {};\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account, globalTwoFactorToken, emailTwoFactorTokenRecord) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c, _d, _e;\n                    let updatedAccount = false;\n                    // migrate 2FA token from global to user state\n                    // Due to the existing implmentation, n users on the same device share the same global state value for 2FA token.\n                    // So, we will just migrate it to all users to keep it valid for whichever was the user that set it previously.\n                    // Note: don't bother migrating 2FA Token if user account or email is undefined\n                    const email = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.email;\n                    if (globalTwoFactorToken != undefined && account != undefined && email != undefined) {\n                        emailTwoFactorTokenRecord[email] = globalTwoFactorToken;\n                        // Note: don't set updatedAccount to true here as we aren't updating\n                        // the legacy user state, just migrating a global state to a new user state\n                    }\n                    // Migrate access token\n                    const existingAccessToken = (_b = account === null || account === void 0 ? void 0 : account.tokens) === null || _b === void 0 ? void 0 : _b.accessToken;\n                    if (existingAccessToken != null) {\n                        // Only migrate data that exists\n                        if (helper.type !== \"web-disk-local\") {\n                            // only migrate access token to session storage - never local.\n                            yield helper.setToUser(userId, ACCESS_TOKEN_DISK, existingAccessToken);\n                        }\n                        delete account.tokens.accessToken;\n                        updatedAccount = true;\n                    }\n                    // Migrate refresh token\n                    const existingRefreshToken = (_c = account === null || account === void 0 ? void 0 : account.tokens) === null || _c === void 0 ? void 0 : _c.refreshToken;\n                    if (existingRefreshToken != null) {\n                        if (helper.type !== \"web-disk-local\") {\n                            // only migrate refresh token to session storage - never local.\n                            yield helper.setToUser(userId, REFRESH_TOKEN_DISK, existingRefreshToken);\n                        }\n                        delete account.tokens.refreshToken;\n                        updatedAccount = true;\n                    }\n                    // Migrate API key client id\n                    const existingApiKeyClientId = (_d = account === null || account === void 0 ? void 0 : account.profile) === null || _d === void 0 ? void 0 : _d.apiKeyClientId;\n                    if (existingApiKeyClientId != null) {\n                        if (helper.type !== \"web-disk-local\") {\n                            // only migrate client id to session storage - never local.\n                            yield helper.setToUser(userId, API_KEY_CLIENT_ID_DISK, existingApiKeyClientId);\n                        }\n                        delete account.profile.apiKeyClientId;\n                        updatedAccount = true;\n                    }\n                    // Migrate API key client secret\n                    const existingApiKeyClientSecret = (_e = account === null || account === void 0 ? void 0 : account.keys) === null || _e === void 0 ? void 0 : _e.apiKeyClientSecret;\n                    if (existingApiKeyClientSecret != null) {\n                        if (helper.type !== \"web-disk-local\") {\n                            // only migrate client secret to session storage - never local.\n                            yield helper.setToUser(userId, API_KEY_CLIENT_SECRET_DISK, existingApiKeyClientSecret);\n                        }\n                        delete account.keys.apiKeyClientSecret;\n                        updatedAccount = true;\n                    }\n                    if (updatedAccount) {\n                        // Save the migrated account only if it was updated\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([\n                ...accounts.map(({ userId, account }) => migrateAccount(userId, account, globalData === null || globalData === void 0 ? void 0 : globalData.twoFactorToken, emailTwoFactorTokenRecord)),\n            ]);\n            // Save the global 2FA token record\n            yield helper.setToGlobal(EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL, emailTwoFactorTokenRecord);\n            // Delete global data\n            globalData === null || globalData === void 0 ? true : delete globalData.twoFactorToken;\n            yield helper.set(\"global\", globalData);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const accounts = yield helper.getAccounts();\n            // Since we migrated the global 2FA token to all users, we need to rollback the 2FA token for all users\n            // but we only need to set it to the global state once\n            // Go through accounts and find the first user that has a non-null email and 2FA token\n            let migratedTwoFactorToken = null;\n            for (const { account } of accounts) {\n                const email = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.email;\n                if (email == null) {\n                    continue;\n                }\n                const emailTwoFactorTokenRecord = yield helper.getFromGlobal(EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL);\n                migratedTwoFactorToken = emailTwoFactorTokenRecord[email];\n                if (migratedTwoFactorToken != null) {\n                    break;\n                }\n            }\n            if (migratedTwoFactorToken != null) {\n                let legacyGlobal = yield helper.get(\"global\");\n                if (!legacyGlobal) {\n                    legacyGlobal = {};\n                }\n                legacyGlobal.twoFactorToken = migratedTwoFactorToken;\n                yield helper.set(\"global\", legacyGlobal);\n            }\n            // delete global 2FA token record\n            yield helper.setToGlobal(EMAIL_TWO_FACTOR_TOKEN_RECORD_DISK_LOCAL, null);\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updatedLegacyAccount = false;\n                    // Rollback access token\n                    const migratedAccessToken = yield helper.getFromUser(userId, ACCESS_TOKEN_DISK);\n                    if ((account === null || account === void 0 ? void 0 : account.tokens) && migratedAccessToken != null) {\n                        account.tokens.accessToken = migratedAccessToken;\n                        updatedLegacyAccount = true;\n                    }\n                    yield helper.setToUser(userId, ACCESS_TOKEN_DISK, null);\n                    // Rollback refresh token\n                    const migratedRefreshToken = yield helper.getFromUser(userId, REFRESH_TOKEN_DISK);\n                    if ((account === null || account === void 0 ? void 0 : account.tokens) && migratedRefreshToken != null) {\n                        account.tokens.refreshToken = migratedRefreshToken;\n                        updatedLegacyAccount = true;\n                    }\n                    yield helper.setToUser(userId, REFRESH_TOKEN_DISK, null);\n                    // Rollback API key client id\n                    const migratedApiKeyClientId = yield helper.getFromUser(userId, API_KEY_CLIENT_ID_DISK);\n                    if ((account === null || account === void 0 ? void 0 : account.profile) && migratedApiKeyClientId != null) {\n                        account.profile.apiKeyClientId = migratedApiKeyClientId;\n                        updatedLegacyAccount = true;\n                    }\n                    yield helper.setToUser(userId, API_KEY_CLIENT_ID_DISK, null);\n                    // Rollback API key client secret\n                    const migratedApiKeyClientSecret = yield helper.getFromUser(userId, API_KEY_CLIENT_SECRET_DISK);\n                    if ((account === null || account === void 0 ? void 0 : account.keys) && migratedApiKeyClientSecret != null) {\n                        account.keys.apiKeyClientSecret = migratedApiKeyClientSecret;\n                        updatedLegacyAccount = true;\n                    }\n                    yield helper.setToUser(userId, API_KEY_CLIENT_SECRET_DISK, null);\n                    if (updatedLegacyAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 19380 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/38-migrate-token-svc-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/39-move-billing-account-profile-to-state-providers.ts":
/*!***************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/39-move-billing-account-profile-to-state-providers.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BILLING_ACCOUNT_PROFILE_KEY_DEFINITION: () => (/* binding */ BILLING_ACCOUNT_PROFILE_KEY_DEFINITION),\n/* harmony export */   MoveBillingAccountProfileMigrator: () => (/* binding */ MoveBillingAccountProfileMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst BILLING_ACCOUNT_PROFILE_KEY_DEFINITION = {\n    key: \"accountProfile\",\n    stateDefinition: {\n        name: \"billing\",\n    },\n};\nclass MoveBillingAccountProfileMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            const migrateAccount = (userId, account) => __awaiter(this, void 0, void 0, function* () {\n                var _a, _b, _c, _d;\n                const hasPremiumPersonally = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.hasPremiumPersonally;\n                const hasPremiumFromOrganization = (_b = account === null || account === void 0 ? void 0 : account.profile) === null || _b === void 0 ? void 0 : _b.hasPremiumFromOrganization;\n                if (hasPremiumPersonally != null || hasPremiumFromOrganization != null) {\n                    yield helper.setToUser(userId, BILLING_ACCOUNT_PROFILE_KEY_DEFINITION, {\n                        hasPremiumPersonally: hasPremiumPersonally,\n                        hasPremiumFromOrganization: hasPremiumFromOrganization,\n                    });\n                    (_c = account === null || account === void 0 ? void 0 : account.profile) === null || _c === void 0 ? true : delete _c.hasPremiumPersonally;\n                    (_d = account === null || account === void 0 ? void 0 : account.profile) === null || _d === void 0 ? true : delete _d.hasPremiumFromOrganization;\n                    yield helper.set(userId, account);\n                }\n            });\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            const rollbackAccount = (userId, account) => __awaiter(this, void 0, void 0, function* () {\n                var _a;\n                const value = yield helper.getFromUser(userId, BILLING_ACCOUNT_PROFILE_KEY_DEFINITION);\n                if (account && value) {\n                    account.profile = Object.assign((_a = account.profile) !== null && _a !== void 0 ? _a : {}, {\n                        hasPremiumPersonally: value === null || value === void 0 ? void 0 : value.hasPremiumPersonally,\n                        hasPremiumFromOrganization: value === null || value === void 0 ? void 0 : value.hasPremiumFromOrganization,\n                    });\n                    yield helper.set(userId, account);\n                }\n                yield helper.setToUser(userId, BILLING_ACCOUNT_PROFILE_KEY_DEFINITION, null);\n            });\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6152 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/39-move-billing-account-profile-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/4-remove-ever-been-unlocked.ts":
/*!****************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/4-remove-ever-been-unlocked.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RemoveEverBeenUnlockedMigrator: () => (/* binding */ RemoveEverBeenUnlockedMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass RemoveEverBeenUnlockedMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function removeEverBeenUnlocked(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    if (((_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.everBeenUnlocked) != null) {\n                        delete account.profile.everBeenUnlocked;\n                        return helper.set(userId, account);\n                    }\n                });\n            }\n            // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n            // eslint-disable-next-line @typescript-eslint/no-floating-promises\n            Promise.all(accounts.map(({ userId, account }) => removeEverBeenUnlocked(userId, account)));\n        });\n    }\n    rollback(helper) {\n        throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n    }\n    // Override is necessary because default implementation assumes `stateVersion` at the root, but for this version\n    // it is nested inside a global object.\n    updateVersion(helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const endVersion = direction === \"up\" ? this.toVersion : this.fromVersion;\n            helper.currentVersion = endVersion;\n            const global = (yield helper.get(\"global\")) || {};\n            yield helper.set(\"global\", Object.assign(Object.assign({}, global), { stateVersion: endVersion }));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy80LXJlbW92ZS1ldmVyLWJlZW4tdW5sb2NrZWQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFDZ0U7QUFJekQsTUFBTSw4QkFBK0IsU0FBUSwrQ0FBYztJQUMxRCxPQUFP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rpb24pOiBQcm9taXNlPHZvaWQ+IHtcbiAgICBjb25zdCBlbmRWZXJzaW9uID0gZGlyZWN0aW9uID09PSBcInVwXCIgPyB0aGlzLnRvVmVyc2lvbiA6IHRoaXMuZnJvbVZlcnNpb247XG4gICAgaGVscGVyLmN1cnJlbnRWZXJzaW9uID0gZW5kVmVyc2lvbjtcbiAgICBjb25zdCBnbG9iYWw6IHsgc3RhdGVWZXJzaW9uOiBudW1iZXIgfSA9IChhd2FpdCBoZWxwZXIuZ2V0KFwiZ2xvYmFsXCIpKSB8fCAoe30gYXMgYW55KTtcbiAgICBhd2FpdCBoZWxwZXIuc2V0KFwiZ2xvYmFsXCIsIHsgLi4uZ2xvYmFsLCBzdGF0ZVZlcnNpb246IGVuZFZlcnNpb24gfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/4-remove-ever-been-unlocked.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/40-move-organization-state-to-state-provider.ts":
/*!*********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/40-move-organization-state-to-state-provider.ts ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationMigrator: () => (/* binding */ OrganizationMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n// Local declarations of `OrganizationData` and the types of it's properties.\n// Duplicated to remain frozen in time when migration occurs.\nvar OrganizationUserStatusType;\n(function (OrganizationUserStatusType) {\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Invited\"] = 0] = \"Invited\";\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Accepted\"] = 1] = \"Accepted\";\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Confirmed\"] = 2] = \"Confirmed\";\n    OrganizationUserStatusType[OrganizationUserStatusType[\"Revoked\"] = -1] = \"Revoked\";\n})(OrganizationUserStatusType || (OrganizationUserStatusType = {}));\nvar OrganizationUserType;\n(function (OrganizationUserType) {\n    OrganizationUserType[OrganizationUserType[\"Owner\"] = 0] = \"Owner\";\n    OrganizationUserType[OrganizationUserType[\"Admin\"] = 1] = \"Admin\";\n    OrganizationUserType[OrganizationUserType[\"User\"] = 2] = \"User\";\n    OrganizationUserType[OrganizationUserType[\"Manager\"] = 3] = \"Manager\";\n    OrganizationUserType[OrganizationUserType[\"Custom\"] = 4] = \"Custom\";\n})(OrganizationUserType || (OrganizationUserType = {}));\nvar ProviderType;\n(function (ProviderType) {\n    ProviderType[ProviderType[\"Msp\"] = 0] = \"Msp\";\n    ProviderType[ProviderType[\"Reseller\"] = 1] = \"Reseller\";\n})(ProviderType || (ProviderType = {}));\nvar ProductType;\n(function (ProductType) {\n    ProductType[ProductType[\"Free\"] = 0] = \"Free\";\n    ProductType[ProductType[\"Families\"] = 1] = \"Families\";\n    ProductType[ProductType[\"Teams\"] = 2] = \"Teams\";\n    ProductType[ProductType[\"Enterprise\"] = 3] = \"Enterprise\";\n    ProductType[ProductType[\"TeamsStarter\"] = 4] = \"TeamsStarter\";\n})(ProductType || (ProductType = {}));\nconst USER_ORGANIZATIONS = {\n    key: \"organizations\",\n    stateDefinition: {\n        name: \"organizations\",\n    },\n};\nclass OrganizationMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.organizations;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_ORGANIZATIONS, value);\n                        delete account.data.organizations;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all(accounts.map(({ userId, account }) => migrateAccount(userId, account)));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, USER_ORGANIZATIONS);\n                    if (account) {\n                        account.data = Object.assign((_a = account.data) !== null && _a !== void 0 ? _a : {}, {\n                            organizations: value,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_ORGANIZATIONS, null);\n                });\n            }\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackAccount(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8452 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/40-move-organization-state-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/41-move-event-collection-to-state-provider.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/41-move-event-collection-to-state-provider.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EventCollectionMigrator: () => (/* binding */ EventCollectionMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst EVENT_COLLECTION = {\n    stateDefinition: {\n        name: \"eventCollection\",\n    },\n    key: \"eventCollection\",\n};\nclass EventCollectionMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.eventCollection;\n                    if (value != null) {\n                        yield helper.setToUser(userId, EVENT_COLLECTION, value);\n                        delete account.data.eventCollection;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, EVENT_COLLECTION);\n                    if (account) {\n                        account.data = Object.assign((_a = account.data) !== null && _a !== void 0 ? _a : {}, {\n                            eventCollection: value,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, EVENT_COLLECTION, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4532 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/41-move-event-collection-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/42-move-enable-favicon-to-domain-settings-state-provider.ts":
/*!*********************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/42-move-enable-favicon-to-domain-settings-state-provider.ts ***!
  \*********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnableFaviconMigrator: () => (/* binding */ EnableFaviconMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ShowFaviconDefinition = {\n    stateDefinition: {\n        name: \"domainSettings\",\n    },\n    key: \"showFavicons\",\n};\nclass EnableFaviconMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // global state (\"disableFavicon\" -> \"showFavicons\")\n            const globalState = yield helper.get(\"global\");\n            if ((globalState === null || globalState === void 0 ? void 0 : globalState.disableFavicon) != null) {\n                yield helper.setToGlobal(ShowFaviconDefinition, !globalState.disableFavicon);\n                // delete `disableFavicon` from state global\n                delete globalState.disableFavicon;\n                yield helper.set(\"global\", globalState);\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // global state (\"showFavicons\" -> \"disableFavicon\")\n            const globalState = (yield helper.get(\"global\")) || {};\n            const showFavicons = yield helper.getFromGlobal(ShowFaviconDefinition);\n            if (showFavicons != null) {\n                yield helper.set(\"global\", Object.assign(Object.assign({}, globalState), { disableFavicon: !showFavicons }));\n                // remove the global state provider framework key for `showFavicons`\n                yield helper.setToGlobal(ShowFaviconDefinition, null);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy80Mi1tb3ZlLWVuYWJsZS1mYXZpY29uLXRvLWRvbWFpbi1zZXR0aW5ncy1zdGF0ZS1wcm92aWRlci50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUN1QztBQU12QyxNQUFNLHFCQUFxQixHQUFzQjtJQUMvQyxlQUFlLEVBQUU7UUFDZixJQUFJLEVBQUUsZ0JBQWdCO0tBQ3ZCO0lBQ0QsR0FBRyxFQUFFLGNBQWM7Q0FDcEIsQ0FBQztBQUVLLE1BQU0scUJBQXNCLFNBQVEsK0NBQWdCO0lBQ25ELE9BQU8sQ0FBQyxNQUF1Qjs7WUFDbkMsb0RBQW9EO1lBQ3BELE1BQU0sV0FBVyxHQUFHLE1BQU0sTUFBTSxDQUFDLEdBQUcsQ0FBc0IsUUFBUSxDQUFDLENBQUM7WUFFcEUsSUFBSSxZQUFXL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IHN0YXRlIGdsb2JhbFxuICAgICAgZGVsZXRlIGdsb2JhbFN0YXRlLmRpc2FibGVGYXZpY29uO1xuXG4gICAgICBhd2FpdCBoZWxwZXIuc2V0PEV4cGVjdGVkR2xvYmFsU3RhdGU+KFwiZ2xvYmFsXCIsIGdsb2JhbFN0YXRlKTtcbiAgICB9XG4gIH1cblxuICBhc3luYyByb2xsYmFjayhoZWxwZXI6IE1pZ3JhdGlvbkhlbHBlcik6IFByb21pc2U8dm9pZD4ge1xuICAgIC8vIGdsb2JhbCBzdGF0ZSAoXCJzaG93RmF2aWNvbnNcIiAtPiBcImRpc2FibGVGYXZpY29uXCIpXG4gICAgY29uc3QgZ2xvYmFsU3RhdGUgPSAoYXdhaXQgaGVscGVyLmdldDxFeHBlY3RlZEdsb2JhbFN0YXRlPihcImdsb2JhbFwiKSkgfHwge307XG4gICAgY29uc3Qgc2hvd0Zhdmljb25zOiBib29sZWFuID0gYXdhaXQgaGVscGVyLmdldEZyb21HbG9iYWwoU2hvd0Zhdmljb25EZWZpbml0aW9uKTtcblxuICAgIGlmIChzaG93RmF2aWNvbnMgIT0gbnVsbCkge1xuICAgICAgYXdhaXQgaGVscGVyLnNldDxFeHBlY3RlZEdsb2JhbFN0YXRlPihcImdsb2JhbFwiLCB7XG4gICAgICAgIC4uLmdsb2JhbFN0YXRlLFxuICAgICAgICBkaXNhYmxlRmF2aWNvbjogIXNob3dGYXZpY29ucyxcbiAgICAgIH0pO1xuXG4gICAgICAvLyByZW1vdmUgdGhlIGdsb2JhbCBzdGF0ZSBwcm92aWRlciBmcmFtZXdvcmsga2V5IGZvciBgc2hvd0Zhdmljb25zYFxuICAgICAgYXdhaXQgaGVscGVyLnNldFRvR2xvYmFsKFNob3dGYXZpY29uRGVmaW5pdGlvbiwgbnVsbCk7XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/42-move-enable-favicon-to-domain-settings-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/43-move-auto-confirm-finger-prints-to-state-provider.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/43-move-auto-confirm-finger-prints-to-state-provider.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AutoConfirmFingerPrintsMigrator: () => (/* binding */ AutoConfirmFingerPrintsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ORGANIZATION_MANAGEMENT_PREFERENCES = {\n    name: \"organizationManagementPreferences\",\n};\nconst AUTO_CONFIRM_FINGERPRINTS = {\n    key: \"autoConfirmFingerPrints\",\n    stateDefinition: ORGANIZATION_MANAGEMENT_PREFERENCES,\n};\nclass AutoConfirmFingerPrintsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            yield Promise.all(legacyAccounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c;\n                if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.autoConfirmFingerPrints) != null) {\n                    yield helper.setToUser(userId, AUTO_CONFIRM_FINGERPRINTS, account.settings.autoConfirmFingerPrints);\n                    (_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? true : delete _c.autoConfirmFingerPrints;\n                    yield helper.set(userId, account);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackUser(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updatedAccount = false;\n                    const autoConfirmFingerPrints = yield helper.getFromUser(userId, AUTO_CONFIRM_FINGERPRINTS);\n                    if (autoConfirmFingerPrints) {\n                        if (!account) {\n                            account = {};\n                        }\n                        updatedAccount = true;\n                        account.settings.autoConfirmFingerPrints = autoConfirmFingerPrints;\n                        yield helper.setToUser(userId, AUTO_CONFIRM_FINGERPRINTS, null);\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackUser(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5136 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/43-move-auto-confirm-finger-prints-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/44-move-user-decryption-options-to-state-provider.ts":
/*!**************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/44-move-user-decryption-options-to-state-provider.ts ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserDecryptionOptionsMigrator: () => (/* binding */ UserDecryptionOptionsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst USER_DECRYPTION_OPTIONS = {\n    key: \"decryptionOptions\",\n    stateDefinition: {\n        name: \"userDecryptionOptions\",\n    },\n};\nclass UserDecryptionOptionsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const value = account === null || account === void 0 ? void 0 : account.decryptionOptions;\n                    if (value != null) {\n                        yield helper.setToUser(userId, USER_DECRYPTION_OPTIONS, value);\n                        delete account.decryptionOptions;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const value = yield helper.getFromUser(userId, USER_DECRYPTION_OPTIONS);\n                    if (account) {\n                        account.decryptionOptions = Object.assign(account.decryptionOptions, value);\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, USER_DECRYPTION_OPTIONS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4940 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/44-move-user-decryption-options-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/45-merge-environment-state.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/45-merge-environment-state.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MergeEnvironmentState: () => (/* binding */ MergeEnvironmentState)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ENVIRONMENT_STATE = { name: \"environment\" };\nconst ENVIRONMENT_REGION = {\n    key: \"region\",\n    stateDefinition: ENVIRONMENT_STATE,\n};\nconst ENVIRONMENT_URLS = {\n    key: \"urls\",\n    stateDefinition: ENVIRONMENT_STATE,\n};\nconst ENVIRONMENT_ENVIRONMENT = {\n    key: \"environment\",\n    stateDefinition: ENVIRONMENT_STATE,\n};\nclass MergeEnvironmentState extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const region = yield helper.getFromUser(userId, ENVIRONMENT_REGION);\n                    const urls = yield helper.getFromUser(userId, ENVIRONMENT_URLS);\n                    if (region == null && urls == null) {\n                        return;\n                    }\n                    yield helper.setToUser(userId, ENVIRONMENT_ENVIRONMENT, {\n                        region,\n                        urls,\n                    });\n                    yield helper.removeFromUser(userId, ENVIRONMENT_REGION);\n                    yield helper.removeFromUser(userId, ENVIRONMENT_URLS);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            const region = yield helper.getFromGlobal(ENVIRONMENT_REGION);\n            const urls = yield helper.getFromGlobal(ENVIRONMENT_URLS);\n            if (region == null && urls == null) {\n                return;\n            }\n            yield helper.setToGlobal(ENVIRONMENT_ENVIRONMENT, {\n                region,\n                urls,\n            });\n            yield helper.removeFromGlobal(ENVIRONMENT_REGION);\n            yield helper.removeFromGlobal(ENVIRONMENT_URLS);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const state = (yield helper.getFromUser(userId, ENVIRONMENT_ENVIRONMENT));\n                    yield helper.setToUser(userId, ENVIRONMENT_REGION, state === null || state === void 0 ? void 0 : state.region);\n                    yield helper.setToUser(userId, ENVIRONMENT_URLS, state === null || state === void 0 ? void 0 : state.urls);\n                    yield helper.removeFromUser(userId, ENVIRONMENT_ENVIRONMENT);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n            const state = (yield helper.getFromGlobal(ENVIRONMENT_ENVIRONMENT));\n            yield helper.setToGlobal(ENVIRONMENT_REGION, state === null || state === void 0 ? void 0 : state.region);\n            yield helper.setToGlobal(ENVIRONMENT_URLS, state === null || state === void 0 ? void 0 : state.urls);\n            yield helper.removeFromGlobal(ENVIRONMENT_ENVIRONMENT);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7380 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/45-merge-environment-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/46-delete-orphaned-biometric-prompt-data.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/46-delete-orphaned-biometric-prompt-data.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeleteBiometricPromptCancelledData: () => (/* binding */ DeleteBiometricPromptCancelledData),\n/* harmony export */   PROMPT_CANCELLED: () => (/* binding */ PROMPT_CANCELLED)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst PROMPT_CANCELLED = {\n    key: \"promptCancelled\",\n    stateDefinition: { name: \"biometricSettings\" },\n};\nclass DeleteBiometricPromptCancelledData extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield Promise.all((yield helper.getAccounts()).map((_a) => __awaiter(this, [_a], void 0, function* ({ userId }) {\n                if (helper.getFromUser(userId, PROMPT_CANCELLED) != null) {\n                    yield helper.removeFromUser(userId, PROMPT_CANCELLED);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy80Ni1kZWxldGUtb3JwaGFuZWQtYmlvbWV0cmljLXByb21wdC1kYXRhLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUNxRDtBQUU5QyxNQUFNLGdCQUFnQixHQUFzQjtJQUNqRCxHQUFHLEVBQUUsaUJBQWlCO0lBQ3RCLGVBQWUsRUFBRSxFQUFFLElBQUksRUFBRSxtQkFBbUIsRUFBRTtDQUMvQyxDQUFDO0FBRUssTUFBTSxrQ0FBbUMsU0FBUSwrQ0FBZ0I7SUFDaEUsT0FBTyxDQUFDLE1BQXVCOztZQUNuQyxNQUFNLE9BQU8sQ0FBQyxHQUFHLENBQ2YsQ0FBQyxNQUFNLE1BQU0sQ0FBQyxXQUFXLEVBQUUsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxLQUFtQixFQUFFLDBDQUFkLEVBQUUsTUFBTSxFQUFFO2dCQUNoRCxJQUFJLE1BQU0sQ0FBQyxXQUFXLENBQUMsTUFBTSxFQUFFLGdCQUFnQixDQUFDLElBQUksSUFBSSxFQUFFLENBQUM7b0JBQ3pELE1BQU0sTUFBTSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQztnQkFDeEQsQ0FBQztZQUNILENBQUMsRUFBQyxDQUNILENBQUM7UUFDSixDQUFDO0tBQUE7SUFFSyxRQUFRLENBQ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IodXNlcklkLCBQUk9NUFRfQ0FOQ0VMTEVEKTtcbiAgICAgICAgfVxuICAgICAgfSksXG4gICAgKTtcbiAgfVxuXG4gIGFzeW5jIHJvbGxiYWNrKGhlbHBlcjogTWlncmF0aW9uSGVscGVyKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgdGhyb3cgSVJSRVZFUlNJQkxFO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/46-delete-orphaned-biometric-prompt-data.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/47-move-desktop-settings.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/47-move-desktop-settings.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveDesktopSettingsMigrator: () => (/* binding */ MoveDesktopSettingsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst DESKTOP_SETTINGS_STATE = { name: \"desktopSettings\" };\nconst WINDOW_KEY = { key: \"window\", stateDefinition: DESKTOP_SETTINGS_STATE };\nconst CLOSE_TO_TRAY_KEY = {\n    key: \"closeToTray\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nconst MINIMIZE_TO_TRAY_KEY = {\n    key: \"minimizeToTray\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nconst START_TO_TRAY_KEY = {\n    key: \"startToTray\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nconst TRAY_ENABLED_KEY = {\n    key: \"trayEnabled\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nconst OPEN_AT_LOGIN_KEY = {\n    key: \"openAtLogin\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nconst ALWAYS_SHOW_DOCK_KEY = {\n    key: \"alwaysShowDock\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nconst ALWAYS_ON_TOP_KEY = {\n    key: \"alwaysOnTop\",\n    stateDefinition: DESKTOP_SETTINGS_STATE,\n};\nclass MoveDesktopSettingsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyGlobal = yield helper.get(\"global\");\n            let updatedGlobal = false;\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.window) !== undefined) {\n                yield helper.setToGlobal(WINDOW_KEY, legacyGlobal.window);\n                updatedGlobal = true;\n                delete legacyGlobal.window;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableCloseToTray) != null) {\n                yield helper.setToGlobal(CLOSE_TO_TRAY_KEY, legacyGlobal.enableCloseToTray);\n                updatedGlobal = true;\n                delete legacyGlobal.enableCloseToTray;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableMinimizeToTray) != null) {\n                yield helper.setToGlobal(MINIMIZE_TO_TRAY_KEY, legacyGlobal.enableMinimizeToTray);\n                updatedGlobal = true;\n                delete legacyGlobal.enableMinimizeToTray;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableStartToTray) != null) {\n                yield helper.setToGlobal(START_TO_TRAY_KEY, legacyGlobal.enableStartToTray);\n                updatedGlobal = true;\n                delete legacyGlobal.enableStartToTray;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableTray) != null) {\n                yield helper.setToGlobal(TRAY_ENABLED_KEY, legacyGlobal.enableTray);\n                updatedGlobal = true;\n                delete legacyGlobal.enableTray;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.openAtLogin) != null) {\n                yield helper.setToGlobal(OPEN_AT_LOGIN_KEY, legacyGlobal.openAtLogin);\n                updatedGlobal = true;\n                delete legacyGlobal.openAtLogin;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.alwaysShowDock) != null) {\n                yield helper.setToGlobal(ALWAYS_SHOW_DOCK_KEY, legacyGlobal.alwaysShowDock);\n                updatedGlobal = true;\n                delete legacyGlobal.alwaysShowDock;\n            }\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableAlwaysOnTop) != null) {\n                yield helper.setToGlobal(ALWAYS_ON_TOP_KEY, legacyGlobal.enableAlwaysOnTop);\n                updatedGlobal = true;\n                delete legacyGlobal.enableAlwaysOnTop;\n            }\n            if (updatedGlobal) {\n                yield helper.set(\"global\", legacyGlobal);\n            }\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    // We only migrate the global setting for this, if we find it on the account object\n                    // just delete it.\n                    if (((_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.enableAlwaysOnTop) != null) {\n                        delete account.settings.enableAlwaysOnTop;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => migrateAccount(userId, account)));\n        });\n    }\n    rollback(helper) {\n        throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10196 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/47-move-desktop-settings.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/48-move-ddg-to-state-provider.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/48-move-ddg-to-state-provider.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DDG_KEY: () => (/* binding */ DDG_KEY),\n/* harmony export */   MoveDdgToStateProviderMigrator: () => (/* binding */ MoveDdgToStateProviderMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst DDG_KEY = {\n    key: \"enableDuckDuckGoBrowserIntegration\",\n    stateDefinition: {\n        name: \"autofillSettings\",\n    },\n};\nclass MoveDdgToStateProviderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // global state\n            const global = yield helper.get(\"global\");\n            if ((global === null || global === void 0 ? void 0 : global.enableDuckDuckGoBrowserIntegration) == null) {\n                return;\n            }\n            yield helper.setToGlobal(DDG_KEY, global.enableDuckDuckGoBrowserIntegration);\n            delete global.enableDuckDuckGoBrowserIntegration;\n            yield helper.set(\"global\", global);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const enableDdg = yield helper.getFromGlobal(DDG_KEY);\n            if (!enableDdg) {\n                return;\n            }\n            const global = (_a = (yield helper.get(\"global\"))) !== null && _a !== void 0 ? _a : {};\n            global.enableDuckDuckGoBrowserIntegration = enableDdg;\n            yield helper.set(\"global\", global);\n            yield helper.removeFromGlobal(DDG_KEY);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy80OC1tb3ZlLWRkZy10by1zdGF0ZS1wcm92aWRlci50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFDdUM7QUFNaEMsTUFBTSxPQUFPLEdBQXNCO0lBQ3hDLEdBQUcsRUFBRSxvQ0FBb0M7SUFDekMsZUFBZSxFQUFFO1FBQ2YsSUFBSSxFQUFFLGtCQUFrQjtLQUN6QjtDQUNGLENBQUM7QUFFSyxNQUFNLDhCQUErQixTQUFRLCtDQUFnQjtJQUM1RCxPQUFPLENBQUMsTUFBdUI7O1lBQ25DLGVBQWU7WUFDZixNQUFNLE1BQU0sR0FBRyxNQUFNLE1BQU0sQ0FBQyxHQUFHLENBQWlCLFFBQVEsQ0FBQyxDQUFDO1lBQzFELElBQUksT0FBTSxhQUFOLE1BQU0sdUJBQU4sTUFBTSxDQUFFLGtDQUFrQyxLQUFJLElBQUksRUFBRSxDQUFDO2dCQUN2RCxPQUFPO1lBQ1QsQ0FBQztZQUVELE1BQU0sTUFBTSxDQUFDLFdBQVcsQ0FB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GVuYWJsZURkZyA9IGF3YWl0IGhlbHBlci5nZXRGcm9tR2xvYmFsPGJvb2xlYW4+KERER19LRVkpO1xuXG4gICAgaWYgKCFlbmFibGVEZGcpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICBjb25zdCBnbG9iYWwgPSAoYXdhaXQgaGVscGVyLmdldDxFeHBlY3RlZEdsb2JhbD4oXCJnbG9iYWxcIikpID8/IHt9O1xuICAgIGdsb2JhbC5lbmFibGVEdWNrRHVja0dvQnJvd3NlckludGVncmF0aW9uID0gZW5hYmxlRGRnO1xuICAgIGF3YWl0IGhlbHBlci5zZXQoXCJnbG9iYWxcIiwgZ2xvYmFsKTtcbiAgICBhd2FpdCBoZWxwZXIucmVtb3ZlRnJvbUdsb2JhbChEREdfS0VZKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/48-move-ddg-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/49-move-account-server-configs.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/49-move-account-server-configs.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AccountServerConfigMigrator: () => (/* binding */ AccountServerConfigMigrator),\n/* harmony export */   USER_SERVER_CONFIG: () => (/* binding */ USER_SERVER_CONFIG)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst CONFIG_DISK = { name: \"config\" };\nconst USER_SERVER_CONFIG = {\n    stateDefinition: CONFIG_DISK,\n    key: \"serverConfig\",\n};\nclass AccountServerConfigMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    if (((_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.serverConfig) != null) {\n                        yield helper.setToUser(userId, USER_SERVER_CONFIG, account.settings.serverConfig);\n                        delete account.settings.serverConfig;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const serverConfig = yield helper.getFromUser(userId, USER_SERVER_CONFIG);\n                    if (serverConfig) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.settings) !== null && _a !== void 0 ? _a : (account.settings = {});\n                        account.settings.serverConfig = serverConfig;\n                        yield helper.setToUser(userId, USER_SERVER_CONFIG, null);\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4816 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/49-move-account-server-configs.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/5-add-key-type-to-org-keys.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/5-add-key-type-to-org-keys.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AddKeyTypeToOrgKeysMigrator: () => (/* binding */ AddKeyTypeToOrgKeysMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass AddKeyTypeToOrgKeysMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function updateOrgKey(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const encryptedOrgKeys = (_b = (_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.organizationKeys) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (encryptedOrgKeys == null) {\n                        return;\n                    }\n                    const newOrgKeys = {};\n                    Object.entries(encryptedOrgKeys).forEach(([orgId, encKey]) => {\n                        newOrgKeys[orgId] = {\n                            type: \"organization\",\n                            key: encKey,\n                        };\n                    });\n                    account.keys.organizationKeys.encrypted = newOrgKeys;\n                    yield helper.set(userId, account);\n                });\n            }\n            // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n            // eslint-disable-next-line @typescript-eslint/no-floating-promises\n            Promise.all(accounts.map(({ userId, account }) => updateOrgKey(userId, account)));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function updateOrgKey(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const encryptedOrgKeys = (_b = (_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.organizationKeys) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (encryptedOrgKeys == null) {\n                        return;\n                    }\n                    const newOrgKeys = {};\n                    Object.entries(encryptedOrgKeys).forEach(([orgId, encKey]) => {\n                        newOrgKeys[orgId] = encKey.key;\n                    });\n                    account.keys.organizationKeys.encrypted = newOrgKeys;\n                    yield helper.set(userId, account);\n                });\n            }\n            // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n            // eslint-disable-next-line @typescript-eslint/no-floating-promises\n            Promise.all(accounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) { return updateOrgKey(userId, account); })));\n        });\n    }\n    // Override is necessary because default implementation assumes `stateVersion` at the root, but for this version\n    // it is nested inside a global object.\n    updateVersion(helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const endVersion = direction === \"up\" ? this.toVersion : this.fromVersion;\n            helper.currentVersion = endVersion;\n            const global = (yield helper.get(\"global\")) || {};\n            yield helper.set(\"global\", Object.assign(Object.assign({}, global), { stateVersion: endVersion }));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7036 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/5-add-key-type-to-org-keys.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/50-move-key-connector-to-state-provider.ts":
/*!****************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/50-move-key-connector-to-state-provider.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyConnectorMigrator: () => (/* binding */ KeyConnectorMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst usesKeyConnectorKeyDefinition = {\n    key: \"usesKeyConnector\",\n    stateDefinition: {\n        name: \"keyConnector\",\n    },\n};\nconst convertAccountToKeyConnectorKeyDefinition = {\n    key: \"convertAccountToKeyConnector\",\n    stateDefinition: {\n        name: \"keyConnector\",\n    },\n};\nclass KeyConnectorMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const usesKeyConnector = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.usesKeyConnector;\n                    const convertAccountToKeyConnector = (_b = account === null || account === void 0 ? void 0 : account.profile) === null || _b === void 0 ? void 0 : _b.convertAccountToKeyConnector;\n                    if (usesKeyConnector == null && convertAccountToKeyConnector == null) {\n                        return;\n                    }\n                    if (usesKeyConnector != null) {\n                        yield helper.setToUser(userId, usesKeyConnectorKeyDefinition, usesKeyConnector);\n                        delete account.profile.usesKeyConnector;\n                    }\n                    if (convertAccountToKeyConnector != null) {\n                        yield helper.setToUser(userId, convertAccountToKeyConnectorKeyDefinition, convertAccountToKeyConnector);\n                        delete account.profile.convertAccountToKeyConnector;\n                    }\n                    yield helper.set(userId, account);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const usesKeyConnector = yield helper.getFromUser(userId, usesKeyConnectorKeyDefinition);\n                    const convertAccountToKeyConnector = yield helper.getFromUser(userId, convertAccountToKeyConnectorKeyDefinition);\n                    if (usesKeyConnector == null && convertAccountToKeyConnector == null) {\n                        return;\n                    }\n                    if (usesKeyConnector != null) {\n                        account.profile.usesKeyConnector = usesKeyConnector;\n                        yield helper.setToUser(userId, usesKeyConnectorKeyDefinition, null);\n                    }\n                    if (convertAccountToKeyConnector != null) {\n                        account.profile.convertAccountToKeyConnector = convertAccountToKeyConnector;\n                        yield helper.setToUser(userId, convertAccountToKeyConnectorKeyDefinition, null);\n                    }\n                    yield helper.set(userId, account);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7212 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/50-move-key-connector-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/51-move-remembered-email-to-state-providers.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/51-move-remembered-email-to-state-providers.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RememberedEmailMigrator: () => (/* binding */ RememberedEmailMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst LOGIN_EMAIL_STATE = { name: \"loginEmail\" };\nconst STORED_EMAIL = {\n    key: \"storedEmail\",\n    stateDefinition: LOGIN_EMAIL_STATE,\n};\nclass RememberedEmailMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyGlobal = yield helper.get(\"global\");\n            // Move global data\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.rememberedEmail) != null) {\n                yield helper.setToGlobal(STORED_EMAIL, legacyGlobal.rememberedEmail);\n            }\n            // Delete legacy global data\n            legacyGlobal === null || legacyGlobal === void 0 ? true : delete legacyGlobal.rememberedEmail;\n            yield helper.set(\"global\", legacyGlobal);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let legacyGlobal = yield helper.get(\"global\");\n            let updatedLegacyGlobal = false;\n            const globalStoredEmail = yield helper.getFromGlobal(STORED_EMAIL);\n            if (globalStoredEmail) {\n                if (!legacyGlobal) {\n                    legacyGlobal = {};\n                }\n                updatedLegacyGlobal = true;\n                legacyGlobal.rememberedEmail = globalStoredEmail;\n                yield helper.setToGlobal(STORED_EMAIL, null);\n            }\n            if (updatedLegacyGlobal) {\n                yield helper.set(\"global\", legacyGlobal);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy81MS1tb3ZlLXJlbWVtYmVyZWQtZW1haWwtdG8tc3RhdGUtcHJvdmlkZXJzLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBQ3VDO0FBSXZDLE1BQU0saUJBQWlCLEdBQXdCLEVBQUUsSUFBSSxFQUFFLFlBQVksRUFBRSxDQUFDO0FBRXRFLE1BQU0sWUFBWSxHQUFzQjtJQUN0QyxHQUFHLEVBQUUsYUFBYTtJQUNsQixlQUFlLEVBQUUsaUJBQWlCO0NBQ25DLENBQUM7QUFFSyxNQUFNLHVCQUF3QixTQUFRLCtDQUFnQjtJQUNyRCxPQUFPLENBQUMsTUFBdUI7O1lBQ25DLE1BQU0sWUFBWSxHQUFHLE1BQU0sTUFBTSxDQUFDLEdBQUcsQ0FBc0IsUUFBUSxDQUFDLENBQUM7WUFFckUsbUJBQW1CO1lBQ25CLElBQUksYUFBWSxhQUFaLFlBQVksdUJBQVosWUFBWSxDQUFFLGVBQWUsS0FBSSxJQUFJLEVBQUUsQ0FBQztnQkFDMUMsTUFBTSxNQUFNLENBQUMsV0FBVyxDQUFDLFlBQVksRUFBRSxZQUFZLENBQUMsZUFBZSxDQUFDLEN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51-move-remembered-email-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/52-delete-installed-version.ts":
/*!****************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/52-delete-installed-version.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DeleteInstalledVersion: () => (/* binding */ DeleteInstalledVersion)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass DeleteInstalledVersion extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyGlobal = yield helper.get(\"global\");\n            if ((legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.installedVersion) != null) {\n                delete legacyGlobal.installedVersion;\n                yield helper.set(\"global\", legacyGlobal);\n            }\n        });\n    }\n    rollback(helper) {\n        throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3Jhd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zdGFsbGVkVmVyc2lvbiBleHRlbmRzIE1pZ3JhdG9yPDUxLCA1Mj4ge1xuICBhc3luYyBtaWdyYXRlKGhlbHBlcjogTWlncmF0aW9uSGVscGVyKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgY29uc3QgbGVnYWN5R2xvYmFsID0gYXdhaXQgaGVscGVyLmdldDxFeHBlY3RlZEdsb2JhbD4oXCJnbG9iYWxcIik7XG4gICAgaWYgKGxlZ2FjeUdsb2JhbD8uaW5zdGFsbGVkVmVyc2lvbiAhPSBudWxsKSB7XG4gICAgICBkZWxldGUgbGVnYWN5R2xvYmFsLmluc3RhbGxlZFZlcnNpb247XG4gICAgICBhd2FpdCBoZWxwZXIuc2V0KFwiZ2xvYmFsXCIsIGxlZ2FjeUdsb2JhbCk7XG4gICAgfVxuICB9XG4gIHJvbGxiYWNrKGhlbHBlcjogTWlncmF0aW9uSGVscGVyKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgdGhyb3cgSVJSRVZFUlNJQkxFO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/52-delete-installed-version.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/53-migrate-device-trust-svc-to-state-providers.ts":
/*!***********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/53-migrate-device-trust-svc-to-state-providers.ts ***!
  \***********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DEVICE_KEY: () => (/* binding */ DEVICE_KEY),\n/* harmony export */   DeviceTrustServiceStateProviderMigrator: () => (/* binding */ DeviceTrustServiceStateProviderMigrator),\n/* harmony export */   SHOULD_TRUST_DEVICE: () => (/* binding */ SHOULD_TRUST_DEVICE)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst DEVICE_KEY = {\n    key: \"deviceKey\", // matches KeyDefinition.key in DeviceTrustService\n    stateDefinition: {\n        name: \"deviceTrust\", // matches StateDefinition.name in StateDefinitions\n    },\n};\nconst SHOULD_TRUST_DEVICE = {\n    key: \"shouldTrustDevice\",\n    stateDefinition: {\n        name: \"deviceTrust\",\n    },\n};\nclass DeviceTrustServiceStateProviderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    let updatedAccount = false;\n                    // Migrate deviceKey\n                    const existingDeviceKey = (_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.deviceKey;\n                    if (existingDeviceKey != null) {\n                        // Only migrate data that exists\n                        yield helper.setToUser(userId, DEVICE_KEY, existingDeviceKey);\n                        delete account.keys.deviceKey;\n                        updatedAccount = true;\n                    }\n                    // Migrate shouldTrustDevice\n                    const existingShouldTrustDevice = (_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.trustDeviceChoiceForDecryption;\n                    if (existingShouldTrustDevice != null) {\n                        yield helper.setToUser(userId, SHOULD_TRUST_DEVICE, existingShouldTrustDevice);\n                        delete account.settings.trustDeviceChoiceForDecryption;\n                        updatedAccount = true;\n                    }\n                    if (updatedAccount) {\n                        // Save the migrated account\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    // Rollback deviceKey\n                    const migratedDeviceKey = yield helper.getFromUser(userId, DEVICE_KEY);\n                    if ((account === null || account === void 0 ? void 0 : account.keys) && migratedDeviceKey != null) {\n                        account.keys.deviceKey = migratedDeviceKey;\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, DEVICE_KEY, null);\n                    // Rollback shouldTrustDevice\n                    const migratedShouldTrustDevice = yield helper.getFromUser(userId, SHOULD_TRUST_DEVICE);\n                    if ((account === null || account === void 0 ? void 0 : account.settings) && migratedShouldTrustDevice != null) {\n                        account.settings.trustDeviceChoiceForDecryption = migratedShouldTrustDevice;\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, SHOULD_TRUST_DEVICE, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7788 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/53-migrate-device-trust-svc-to-state-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/54-move-encrypted-sends.ts":
/*!************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/54-move-encrypted-sends.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendMigrator: () => (/* binding */ SendMigrator),\n/* harmony export */   SendType: () => (/* binding */ SendType)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nvar SendType;\n(function (SendType) {\n    SendType[SendType[\"Text\"] = 0] = \"Text\";\n    SendType[SendType[\"File\"] = 1] = \"File\";\n})(SendType || (SendType = {}));\nconst ENCRYPTED_SENDS = {\n    stateDefinition: {\n        name: \"send\",\n    },\n    key: \"sends\",\n};\n/**\n * Only encrypted sends are stored on disk. Only the encrypted items need to be\n * migrated from the previous sends state data.\n */\nclass SendMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b;\n                    const value = (_b = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.sends) === null || _b === void 0 ? void 0 : _b.encrypted;\n                    if (value != null) {\n                        yield helper.setToUser(userId, ENCRYPTED_SENDS, value);\n                        delete account.data.sends;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, ENCRYPTED_SENDS);\n                    if (account) {\n                        account.data = Object.assign((_a = account.data) !== null && _a !== void 0 ? _a : {}, {\n                            sends: {\n                                encrypted: value,\n                            },\n                        });\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, ENCRYPTED_SENDS, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5000 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/54-move-encrypted-sends.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/55-move-master-key-state-to-provider.ts":
/*!*************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/55-move-master-key-state-to-provider.ts ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FORCE_SET_PASSWORD_REASON_DEFINITION: () => (/* binding */ FORCE_SET_PASSWORD_REASON_DEFINITION),\n/* harmony export */   MASTER_KEY_ENCRYPTED_USER_KEY_DEFINITION: () => (/* binding */ MASTER_KEY_ENCRYPTED_USER_KEY_DEFINITION),\n/* harmony export */   MASTER_KEY_HASH_DEFINITION: () => (/* binding */ MASTER_KEY_HASH_DEFINITION),\n/* harmony export */   MoveMasterKeyStateToProviderMigrator: () => (/* binding */ MoveMasterKeyStateToProviderMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst FORCE_SET_PASSWORD_REASON_DEFINITION = {\n    key: \"forceSetPasswordReason\",\n    stateDefinition: {\n        name: \"masterPassword\",\n    },\n};\nconst MASTER_KEY_HASH_DEFINITION = {\n    key: \"masterKeyHash\",\n    stateDefinition: {\n        name: \"masterPassword\",\n    },\n};\nconst MASTER_KEY_ENCRYPTED_USER_KEY_DEFINITION = {\n    key: \"masterKeyEncryptedUserKey\",\n    stateDefinition: {\n        name: \"masterPassword\",\n    },\n};\nclass MoveMasterKeyStateToProviderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c;\n                    const forceSetPasswordReason = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.forceSetPasswordReason;\n                    if (forceSetPasswordReason != null) {\n                        yield helper.setToUser(userId, FORCE_SET_PASSWORD_REASON_DEFINITION, forceSetPasswordReason);\n                        delete account.profile.forceSetPasswordReason;\n                        yield helper.set(userId, account);\n                    }\n                    const masterKeyHash = (_b = account === null || account === void 0 ? void 0 : account.profile) === null || _b === void 0 ? void 0 : _b.keyHash;\n                    if (masterKeyHash != null) {\n                        yield helper.setToUser(userId, MASTER_KEY_HASH_DEFINITION, masterKeyHash);\n                        delete account.profile.keyHash;\n                        yield helper.set(userId, account);\n                    }\n                    const masterKeyEncryptedUserKey = (_c = account === null || account === void 0 ? void 0 : account.keys) === null || _c === void 0 ? void 0 : _c.masterKeyEncryptedUserKey;\n                    if (masterKeyEncryptedUserKey != null) {\n                        yield helper.setToUser(userId, MASTER_KEY_ENCRYPTED_USER_KEY_DEFINITION, masterKeyEncryptedUserKey);\n                        delete account.keys.masterKeyEncryptedUserKey;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c;\n                    const forceSetPasswordReason = yield helper.getFromUser(userId, FORCE_SET_PASSWORD_REASON_DEFINITION);\n                    const masterKeyHash = yield helper.getFromUser(userId, MASTER_KEY_HASH_DEFINITION);\n                    const masterKeyEncryptedUserKey = yield helper.getFromUser(userId, MASTER_KEY_ENCRYPTED_USER_KEY_DEFINITION);\n                    if (account != null) {\n                        if (forceSetPasswordReason != null) {\n                            account.profile = Object.assign((_a = account.profile) !== null && _a !== void 0 ? _a : {}, {\n                                forceSetPasswordReason,\n                            });\n                        }\n                        if (masterKeyHash != null) {\n                            account.profile = Object.assign((_b = account.profile) !== null && _b !== void 0 ? _b : {}, {\n                                keyHash: masterKeyHash,\n                            });\n                        }\n                        if (masterKeyEncryptedUserKey != null) {\n                            account.keys = Object.assign((_c = account.keys) !== null && _c !== void 0 ? _c : {}, {\n                                masterKeyEncryptedUserKey,\n                            });\n                        }\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, FORCE_SET_PASSWORD_REASON_DEFINITION, null);\n                    yield helper.setToUser(userId, MASTER_KEY_HASH_DEFINITION, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9188 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/55-move-master-key-state-to-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/56-move-auth-requests.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/56-move-auth-requests.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AuthRequestMigrator: () => (/* binding */ AuthRequestMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ADMIN_AUTH_REQUEST_KEY = {\n    stateDefinition: {\n        name: \"authRequestLocal\",\n    },\n    key: \"adminAuthRequest\",\n};\nconst ACCEPT_AUTH_REQUESTS_KEY = {\n    stateDefinition: {\n        name: \"authRequestLocal\",\n    },\n    key: \"acceptAuthRequests\",\n};\nclass AuthRequestMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    let updatedAccount = false;\n                    // Migrate admin auth request\n                    const existingAdminAuthRequest = account === null || account === void 0 ? void 0 : account.adminAuthRequest;\n                    if (existingAdminAuthRequest != null) {\n                        yield helper.setToUser(userId, ADMIN_AUTH_REQUEST_KEY, existingAdminAuthRequest);\n                        delete account.adminAuthRequest;\n                        updatedAccount = true;\n                    }\n                    // Migrate approve login requests\n                    const existingApproveLoginRequests = (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.approveLoginRequests;\n                    if (existingApproveLoginRequests != null) {\n                        yield helper.setToUser(userId, ACCEPT_AUTH_REQUESTS_KEY, existingApproveLoginRequests);\n                        delete account.settings.approveLoginRequests;\n                        updatedAccount = true;\n                    }\n                    if (updatedAccount) {\n                        // Save the migrated account\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    let updatedAccount = false;\n                    // Rollback admin auth request\n                    const migratedAdminAuthRequest = yield helper.getFromUser(userId, ADMIN_AUTH_REQUEST_KEY);\n                    if (migratedAdminAuthRequest != null) {\n                        account.adminAuthRequest = migratedAdminAuthRequest;\n                        updatedAccount = true;\n                    }\n                    yield helper.setToUser(userId, ADMIN_AUTH_REQUEST_KEY, null);\n                    // Rollback approve login requests\n                    const migratedAcceptAuthRequest = yield helper.getFromUser(userId, ACCEPT_AUTH_REQUESTS_KEY);\n                    if (migratedAcceptAuthRequest != null) {\n                        account.settings = Object.assign((_a = account.settings) !== null && _a !== void 0 ? _a : {}, {\n                            approveLoginRequests: migratedAcceptAuthRequest,\n                        });\n                        updatedAccount = true;\n                    }\n                    yield helper.setToUser(userId, ACCEPT_AUTH_REQUESTS_KEY, null);\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7832 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/56-move-auth-requests.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/57-move-cipher-service-to-state-provider.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/57-move-cipher-service-to-state-provider.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CIPHERS_DISK: () => (/* binding */ CIPHERS_DISK),\n/* harmony export */   CIPHERS_DISK_LOCAL: () => (/* binding */ CIPHERS_DISK_LOCAL),\n/* harmony export */   CipherServiceMigrator: () => (/* binding */ CipherServiceMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst CIPHERS_DISK_LOCAL = {\n    key: \"localData\",\n    stateDefinition: {\n        name: \"ciphersLocal\",\n    },\n};\nconst CIPHERS_DISK = {\n    key: \"ciphers\",\n    stateDefinition: {\n        name: \"ciphers\",\n    },\n};\nclass CipherServiceMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c;\n                    let updatedAccount = false;\n                    //Migrate localData\n                    const localData = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.localData;\n                    if (localData != null) {\n                        yield helper.setToUser(userId, CIPHERS_DISK_LOCAL, localData);\n                        delete account.data.localData;\n                        updatedAccount = true;\n                    }\n                    //Migrate ciphers\n                    const ciphers = (_c = (_b = account === null || account === void 0 ? void 0 : account.data) === null || _b === void 0 ? void 0 : _b.ciphers) === null || _c === void 0 ? void 0 : _c.encrypted;\n                    if (ciphers != null) {\n                        yield helper.setToUser(userId, CIPHERS_DISK, ciphers);\n                        delete account.data.ciphers;\n                        updatedAccount = true;\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    //rollback localData\n                    const localData = yield helper.getFromUser(userId, CIPHERS_DISK_LOCAL);\n                    if (account.data && localData != null) {\n                        account.data.localData = localData;\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, CIPHERS_DISK_LOCAL, null);\n                    //rollback ciphers\n                    const ciphers = yield helper.getFromUser(userId, CIPHERS_DISK);\n                    if (account.data && ciphers != null) {\n                        (_a = account.data).ciphers || (_a.ciphers = { encrypted: null });\n                        account.data.ciphers.encrypted = ciphers;\n                        yield helper.set(userId, account);\n                    }\n                    yield helper.setToUser(userId, CIPHERS_DISK, null);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6932 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/57-move-cipher-service-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/58-remove-refresh-token-migrated-state-provider-flag.ts":
/*!*****************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/58-remove-refresh-token-migrated-state-provider-flag.ts ***!
  \*****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   REFRESH_TOKEN_MIGRATED_TO_SECURE_STORAGE: () => (/* binding */ REFRESH_TOKEN_MIGRATED_TO_SECURE_STORAGE),\n/* harmony export */   RemoveRefreshTokenMigratedFlagMigrator: () => (/* binding */ RemoveRefreshTokenMigratedFlagMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst REFRESH_TOKEN_MIGRATED_TO_SECURE_STORAGE = {\n    key: \"refreshTokenMigratedToSecureStorage\", // matches KeyDefinition.key\n    stateDefinition: {\n        name: \"token\", // matches StateDefinition.name in StateDefinitions\n    },\n};\nclass RemoveRefreshTokenMigratedFlagMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const refreshTokenMigratedFlag = yield helper.getFromUser(userId, REFRESH_TOKEN_MIGRATED_TO_SECURE_STORAGE);\n                    if (refreshTokenMigratedFlag != null) {\n                        // Only delete the flag if it exists\n                        yield helper.removeFromUser(userId, REFRESH_TOKEN_MIGRATED_TO_SECURE_STORAGE);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy81OC1yZW1vdmUtcmVmcmVzaC10b2tlbi1taWdyYXRlZC1zdGF0ZS1wcm92aWRlci1mbGFnLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUNxRDtBQUk5QyxNQUFNLHdDQUF3QyxHQUFzQjtJQUN6RSxHQUFHLEVBQUUscUNBQXFDLEVBQUUsNEJBQTRCO0lBQ3hFLGVBQWUsRUFBRTtRQUNmLElBQUksRUFBRSxPQUFPLEVBQUUsbURBQW1EO0tBQ25FO0NBQ0YsQ0FBQztBQUVLLE1BQU0sc0NBQXVDLFNBQVEsK0NBQWdCO0lBQ3BFLE9BQU8sQ0FBQyxNQUF1Qjs7WUFDbkMsTUFBTSxRQUFRLEdBQUcsTUFBTSxNQUFNLENBQUMsV0FBVyxFQUF1QixDQUFDO1lBQ2pFLFNBQWUsY0FBYyx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cbiAgICAgICAgLy8gT25seSBkZWxldGUgdGhlIGZsYWcgaWYgaXQgZXhpc3RzXG4gICAgICAgIGF3YWl0IGhlbHBlci5yZW1vdmVGcm9tVXNlcih1c2VySWQsIFJFRlJFU0hfVE9LRU5fTUlHUkFURURfVE9fU0VDVVJFX1NUT1JBR0UpO1xuICAgICAgfVxuICAgIH1cblxuICAgIGF3YWl0IFByb21pc2UuYWxsKFsuLi5hY2NvdW50cy5tYXAoKHsgdXNlcklkLCBhY2NvdW50IH0pID0+IG1pZ3JhdGVBY2NvdW50KHVzZXJJZCwgYWNjb3VudCkpXSk7XG4gIH1cblxuICBhc3luYyByb2xsYmFjayhoZWxwZXI6IE1pZ3JhdGlvbkhlbHBlcik6IFByb21pc2U8dm9pZD4ge1xuICAgIHRocm93IElSUkVWRVJTSUJMRTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/58-remove-refresh-token-migrated-state-provider-flag.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/59-move-kdf-config-to-state-provider.ts":
/*!*************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/59-move-kdf-config-to-state-provider.ts ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KdfConfigMigrator: () => (/* binding */ KdfConfigMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nvar KdfType;\n(function (KdfType) {\n    KdfType[KdfType[\"PBKDF2_SHA256\"] = 0] = \"PBKDF2_SHA256\";\n    KdfType[KdfType[\"Argon2id\"] = 1] = \"Argon2id\";\n})(KdfType || (KdfType = {}));\nclass KdfConfig {\n}\nconst kdfConfigKeyDefinition = {\n    key: \"kdfConfig\",\n    stateDefinition: {\n        name: \"kdfConfig\",\n    },\n};\nclass KdfConfigMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c, _d, _e, _f, _g, _h;\n                    const iterations = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.kdfIterations;\n                    const kdfType = (_b = account === null || account === void 0 ? void 0 : account.profile) === null || _b === void 0 ? void 0 : _b.kdfType;\n                    const memory = (_c = account === null || account === void 0 ? void 0 : account.profile) === null || _c === void 0 ? void 0 : _c.kdfMemory;\n                    const parallelism = (_d = account === null || account === void 0 ? void 0 : account.profile) === null || _d === void 0 ? void 0 : _d.kdfParallelism;\n                    const kdfConfig = {\n                        iterations: iterations,\n                        kdfType: kdfType,\n                        memory: memory,\n                        parallelism: parallelism,\n                    };\n                    if (kdfConfig != null) {\n                        yield helper.setToUser(userId, kdfConfigKeyDefinition, kdfConfig);\n                        (_e = account === null || account === void 0 ? void 0 : account.profile) === null || _e === void 0 ? true : delete _e.kdfIterations;\n                        (_f = account === null || account === void 0 ? void 0 : account.profile) === null || _f === void 0 ? true : delete _f.kdfType;\n                        (_g = account === null || account === void 0 ? void 0 : account.profile) === null || _g === void 0 ? true : delete _g.kdfMemory;\n                        (_h = account === null || account === void 0 ? void 0 : account.profile) === null || _h === void 0 ? true : delete _h.kdfParallelism;\n                    }\n                    yield helper.set(userId, account);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const kdfConfig = yield helper.getFromUser(userId, kdfConfigKeyDefinition);\n                    if (kdfConfig != null) {\n                        account.profile.kdfIterations = kdfConfig.iterations;\n                        account.profile.kdfType = kdfConfig.kdfType;\n                        account.profile.kdfMemory = kdfConfig.memory;\n                        account.profile.kdfParallelism = kdfConfig.parallelism;\n                        yield helper.setToUser(userId, kdfConfigKeyDefinition, null);\n                    }\n                    yield helper.set(userId, account);\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6728 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/59-move-kdf-config-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/6-remove-legacy-etm-key.ts":
/*!************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/6-remove-legacy-etm-key.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RemoveLegacyEtmKeyMigrator: () => (/* binding */ RemoveLegacyEtmKeyMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass RemoveLegacyEtmKeyMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function updateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    if ((_a = account === null || account === void 0 ? void 0 : account.keys) === null || _a === void 0 ? void 0 : _a.legacyEtmKey) {\n                        delete account.keys.legacyEtmKey;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all(accounts.map(({ userId, account }) => updateAccount(userId, account)));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n        });\n    }\n    // Override is necessary because default implementation assumes `stateVersion` at the root, but for this version\n    // it is nested inside a global object.\n    updateVersion(helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const endVersion = direction === \"up\" ? this.toVersion : this.fromVersion;\n            helper.currentVersion = endVersion;\n            const global = (yield helper.get(\"global\")) || {};\n            yield helper.set(\"global\", Object.assign(Object.assign({}, global), { stateVersion: endVersion }));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy82LXJlbW92Z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WxwZXIuZ2V0KFwiZ2xvYmFsXCIpKSB8fCAoe30gYXMgYW55KTtcbiAgICBhd2FpdCBoZWxwZXIuc2V0KFwiZ2xvYmFsXCIsIHsgLi4uZ2xvYmFsLCBzdGF0ZVZlcnNpb246IGVuZFZlcnNpb24gfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/6-remove-legacy-etm-key.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/60-known-accounts.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/60-known-accounts.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ACCOUNT_ACCOUNTS: () => (/* binding */ ACCOUNT_ACCOUNTS),\n/* harmony export */   ACCOUNT_ACTIVE_ACCOUNT_ID: () => (/* binding */ ACCOUNT_ACTIVE_ACCOUNT_ID),\n/* harmony export */   ACCOUNT_ACTIVITY: () => (/* binding */ ACCOUNT_ACTIVITY),\n/* harmony export */   KnownAccountsMigrator: () => (/* binding */ KnownAccountsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst ACCOUNT_ACCOUNTS = {\n    stateDefinition: {\n        name: \"account\",\n    },\n    key: \"accounts\",\n};\nconst ACCOUNT_ACTIVE_ACCOUNT_ID = {\n    stateDefinition: {\n        name: \"account\",\n    },\n    key: \"activeAccountId\",\n};\nconst ACCOUNT_ACTIVITY = {\n    stateDefinition: {\n        name: \"account\",\n    },\n    key: \"activity\",\n};\nclass KnownAccountsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.migrateAuthenticatedAccounts(helper);\n            yield this.migrateActiveAccountId(helper);\n            yield this.migrateAccountActivity(helper);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            // authenticated account are removed, but the accounts record also contains logged out accounts. Best we can do is to add them all back\n            const userIds = (_a = (yield helper.getKnownUserIds())) !== null && _a !== void 0 ? _a : [];\n            yield helper.set(\"authenticatedAccounts\", userIds);\n            yield helper.removeFromGlobal(ACCOUNT_ACCOUNTS);\n            // Active Account Id\n            const activeAccountId = yield helper.getFromGlobal(ACCOUNT_ACTIVE_ACCOUNT_ID);\n            if (activeAccountId) {\n                yield helper.set(\"activeUserId\", activeAccountId);\n            }\n            yield helper.removeFromGlobal(ACCOUNT_ACTIVE_ACCOUNT_ID);\n            // Account Activity\n            const accountActivity = yield helper.getFromGlobal(ACCOUNT_ACTIVITY);\n            if (accountActivity) {\n                const toStore = Object.entries(accountActivity).reduce((agg, [userId, dateString]) => {\n                    agg[userId] = new Date(dateString).getTime();\n                    return agg;\n                }, {});\n                yield helper.set(\"accountActivity\", toStore);\n            }\n            yield helper.removeFromGlobal(ACCOUNT_ACTIVITY);\n        });\n    }\n    migrateAuthenticatedAccounts(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const authenticatedAccounts = (_a = (yield helper.get(\"authenticatedAccounts\"))) !== null && _a !== void 0 ? _a : [];\n            const accounts = yield Promise.all(authenticatedAccounts.map((userId) => __awaiter(this, void 0, void 0, function* () {\n                const account = yield helper.get(userId);\n                return { userId, account };\n            })));\n            const accountsToStore = accounts.reduce((agg, { userId, account }) => {\n                var _a, _b;\n                if (account === null || account === void 0 ? void 0 : account.profile) {\n                    agg[userId] = {\n                        email: (_a = account.profile.email) !== null && _a !== void 0 ? _a : \"\",\n                        emailVerified: (_b = account.profile.emailVerified) !== null && _b !== void 0 ? _b : false,\n                        name: account.profile.name,\n                    };\n                }\n                return agg;\n            }, {});\n            yield helper.setToGlobal(ACCOUNT_ACCOUNTS, accountsToStore);\n            yield helper.remove(\"authenticatedAccounts\");\n        });\n    }\n    migrateAccountActivity(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const stored = yield helper.get(\"accountActivity\");\n            const accountActivity = Object.entries(stored !== null && stored !== void 0 ? stored : {}).reduce((agg, [userId, dateMs]) => {\n                agg[userId] = JSON.stringify(new Date(dateMs));\n                return agg;\n            }, {});\n            yield helper.setToGlobal(ACCOUNT_ACTIVITY, accountActivity);\n            yield helper.remove(\"accountActivity\");\n        });\n    }\n    migrateActiveAccountId(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeAccountId = yield helper.get(\"activeUserId\");\n            yield helper.setToGlobal(ACCOUNT_ACTIVE_ACCOUNT_ID, activeAccountId);\n            yield helper.remove(\"activeUserId\");\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9548 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/60-known-accounts.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/61-move-pin-state-to-providers.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/61-move-pin-state-to-providers.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OLD_PIN_KEY_ENCRYPTED_MASTER_KEY: () => (/* binding */ OLD_PIN_KEY_ENCRYPTED_MASTER_KEY),\n/* harmony export */   PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT: () => (/* binding */ PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT),\n/* harmony export */   PIN_STATE: () => (/* binding */ PIN_STATE),\n/* harmony export */   PinStateMigrator: () => (/* binding */ PinStateMigrator),\n/* harmony export */   USER_KEY_ENCRYPTED_PIN: () => (/* binding */ USER_KEY_ENCRYPTED_PIN)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst PIN_STATE = { name: \"pinUnlock\" };\nconst PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT = {\n    stateDefinition: PIN_STATE,\n    key: \"pinKeyEncryptedUserKeyPersistent\",\n};\nconst USER_KEY_ENCRYPTED_PIN = {\n    stateDefinition: PIN_STATE,\n    key: \"userKeyEncryptedPin\",\n};\nconst OLD_PIN_KEY_ENCRYPTED_MASTER_KEY = {\n    stateDefinition: PIN_STATE,\n    key: \"oldPinKeyEncryptedMasterKey\",\n};\nclass PinStateMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyAccounts = yield helper.getAccounts();\n            let updatedAccount = false;\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c, _d;\n                    // Migrate pinKeyEncryptedUserKey (to `pinKeyEncryptedUserKeyPersistent`)\n                    if (((_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.pinKeyEncryptedUserKey) != null) {\n                        yield helper.setToUser(userId, PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT, account.settings.pinKeyEncryptedUserKey);\n                        delete account.settings.pinKeyEncryptedUserKey;\n                        updatedAccount = true;\n                    }\n                    // Migrate protectedPin (to `userKeyEncryptedPin`)\n                    if (((_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? void 0 : _b.protectedPin) != null) {\n                        yield helper.setToUser(userId, USER_KEY_ENCRYPTED_PIN, account.settings.protectedPin);\n                        delete account.settings.protectedPin;\n                        updatedAccount = true;\n                    }\n                    // Migrate pinProtected (to `oldPinKeyEncryptedMasterKey`)\n                    if (((_d = (_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? void 0 : _c.pinProtected) === null || _d === void 0 ? void 0 : _d.encrypted) != null) {\n                        yield helper.setToUser(userId, OLD_PIN_KEY_ENCRYPTED_MASTER_KEY, account.settings.pinProtected.encrypted);\n                        delete account.settings.pinProtected;\n                        updatedAccount = true;\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([\n                ...legacyAccounts.map(({ userId, account }) => migrateAccount(userId, account)),\n            ]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    let updatedAccount = false;\n                    const accountPinKeyEncryptedUserKeyPersistent = yield helper.getFromUser(userId, PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT);\n                    const accountUserKeyEncryptedPin = yield helper.getFromUser(userId, USER_KEY_ENCRYPTED_PIN);\n                    const accountOldPinKeyEncryptedMasterKey = yield helper.getFromUser(userId, OLD_PIN_KEY_ENCRYPTED_MASTER_KEY);\n                    if (!account) {\n                        account = {};\n                    }\n                    if (accountPinKeyEncryptedUserKeyPersistent != null) {\n                        account.settings.pinKeyEncryptedUserKey = accountPinKeyEncryptedUserKeyPersistent;\n                        yield helper.setToUser(userId, PIN_KEY_ENCRYPTED_USER_KEY_PERSISTENT, null);\n                        updatedAccount = true;\n                    }\n                    if (accountUserKeyEncryptedPin != null) {\n                        account.settings.protectedPin = accountUserKeyEncryptedPin;\n                        yield helper.setToUser(userId, USER_KEY_ENCRYPTED_PIN, null);\n                        updatedAccount = true;\n                    }\n                    if (accountOldPinKeyEncryptedMasterKey != null) {\n                        account.settings = Object.assign((_a = account.settings) !== null && _a !== void 0 ? _a : {}, {\n                            pinProtected: {\n                                encrypted: accountOldPinKeyEncryptedMasterKey,\n                            },\n                        });\n                        yield helper.setToUser(userId, OLD_PIN_KEY_ENCRYPTED_MASTER_KEY, null);\n                        updatedAccount = true;\n                    }\n                    if (updatedAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackAccount(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10164 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/61-move-pin-state-to-providers.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/62-migrate-vault-timeout-settings-svc-to-state-provider.ts":
/*!********************************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/62-migrate-vault-timeout-settings-svc-to-state-provider.ts ***!
  \********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ClientType: () => (/* binding */ ClientType),\n/* harmony export */   VAULT_TIMEOUT: () => (/* binding */ VAULT_TIMEOUT),\n/* harmony export */   VAULT_TIMEOUT_ACTION: () => (/* binding */ VAULT_TIMEOUT_ACTION),\n/* harmony export */   VaultTimeoutSettingsServiceStateProviderMigrator: () => (/* binding */ VaultTimeoutSettingsServiceStateProviderMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst VAULT_TIMEOUT_SETTINGS_STATE_DEF_LIKE = {\n    name: \"vaultTimeoutSettings\",\n};\nconst VAULT_TIMEOUT = {\n    key: \"vaultTimeout\", // matches KeyDefinition.key\n    stateDefinition: VAULT_TIMEOUT_SETTINGS_STATE_DEF_LIKE,\n};\nconst VAULT_TIMEOUT_ACTION = {\n    key: \"vaultTimeoutAction\", // matches KeyDefinition.key\n    stateDefinition: VAULT_TIMEOUT_SETTINGS_STATE_DEF_LIKE,\n};\n// Define mapping of old values to new values for migration purposes\nconst vaultTimeoutTypeMigrateRecord = {\n    null: \"never\",\n    \"-1\": \"onRestart\",\n    \"-2\": \"onLocked\",\n    \"-3\": \"onSleep\",\n    \"-4\": \"onIdle\",\n};\n// define mapping of new values to old values for rollback purposes\nconst vaultTimeoutTypeRollbackRecord = {\n    never: null,\n    onRestart: -1,\n    onLocked: -2,\n    onSleep: -3,\n    onIdle: -4,\n};\nvar ClientType;\n(function (ClientType) {\n    ClientType[\"Web\"] = \"web\";\n    ClientType[\"Browser\"] = \"browser\";\n    ClientType[\"Desktop\"] = \"desktop\";\n    ClientType[\"Cli\"] = \"cli\";\n})(ClientType || (ClientType = {}));\nclass VaultTimeoutSettingsServiceStateProviderMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const globalData = yield helper.get(\"global\");\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a, _b, _c, _d;\n                    let updatedAccount = false;\n                    // Migrate vault timeout\n                    let existingVaultTimeout = (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.vaultTimeout;\n                    if (helper.clientType === ClientType.Cli && existingVaultTimeout === undefined) {\n                        // The CLI does not set a vault timeout by default so we need to set it to null\n                        // so that the migration can migrate null to \"never\" as the CLI does not have a vault timeout.\n                        existingVaultTimeout = null;\n                    }\n                    if (existingVaultTimeout !== undefined) {\n                        // check undefined so that we allow null values (previously meant never timeout)\n                        // Only migrate data that exists\n                        if (existingVaultTimeout === null || existingVaultTimeout < 0) {\n                            // Map null or negative values to new string values\n                            const newVaultTimeout = vaultTimeoutTypeMigrateRecord[existingVaultTimeout];\n                            yield helper.setToUser(userId, VAULT_TIMEOUT, newVaultTimeout);\n                        }\n                        else {\n                            // Persist positive numbers as is\n                            yield helper.setToUser(userId, VAULT_TIMEOUT, existingVaultTimeout);\n                        }\n                        (_b = account === null || account === void 0 ? void 0 : account.settings) === null || _b === void 0 ? true : delete _b.vaultTimeout;\n                        updatedAccount = true;\n                    }\n                    // Migrate vault timeout action\n                    const existingVaultTimeoutAction = (_c = account === null || account === void 0 ? void 0 : account.settings) === null || _c === void 0 ? void 0 : _c.vaultTimeoutAction;\n                    if (existingVaultTimeoutAction != null) {\n                        // Only migrate data that exists\n                        yield helper.setToUser(userId, VAULT_TIMEOUT_ACTION, existingVaultTimeoutAction);\n                        (_d = account === null || account === void 0 ? void 0 : account.settings) === null || _d === void 0 ? true : delete _d.vaultTimeoutAction;\n                        updatedAccount = true;\n                    }\n                    // Note: we are explicitly not worrying about mapping over the global fallback vault timeout / action\n                    // into the new state provider framework.  It was originally a fallback but hasn't been used for years\n                    // so this migration will clean up the global properties fully.\n                    if (updatedAccount) {\n                        // Save the migrated account only if it was updated\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n            // Delete global data (works for browser extension and web; CLI doesn't have these as global settings).\n            globalData === null || globalData === void 0 ? true : delete globalData.vaultTimeout;\n            globalData === null || globalData === void 0 ? true : delete globalData.vaultTimeoutAction;\n            yield helper.set(\"global\", globalData);\n            // Remove desktop only settings. These aren't found by the above global key removal b/c of\n            // the different storage key format. This removal does not cause any issues on migrating for other clients.\n            yield helper.remove(\"global\\\\.vaultTimeout\");\n            yield helper.remove(\"global\\\\.vaultTimeoutAction\");\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    let updatedLegacyAccount = false;\n                    // Rollback vault timeout\n                    const migratedVaultTimeout = yield helper.getFromUser(userId, VAULT_TIMEOUT);\n                    if ((account === null || account === void 0 ? void 0 : account.settings) && migratedVaultTimeout != null) {\n                        if (typeof migratedVaultTimeout === \"string\") {\n                            // Map new string values back to old values\n                            account.settings.vaultTimeout = vaultTimeoutTypeRollbackRecord[migratedVaultTimeout];\n                        }\n                        else {\n                            // persist numbers as is\n                            account.settings.vaultTimeout = migratedVaultTimeout;\n                        }\n                        updatedLegacyAccount = true;\n                    }\n                    yield helper.setToUser(userId, VAULT_TIMEOUT, null);\n                    // Rollback vault timeout action\n                    const migratedVaultTimeoutAction = yield helper.getFromUser(userId, VAULT_TIMEOUT_ACTION);\n                    if ((account === null || account === void 0 ? void 0 : account.settings) && migratedVaultTimeoutAction != null) {\n                        account.settings.vaultTimeoutAction = migratedVaultTimeoutAction;\n                        updatedLegacyAccount = true;\n                    }\n                    yield helper.setToUser(userId, VAULT_TIMEOUT_ACTION, null);\n                    if (updatedLegacyAccount) {\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => rollbackAccount(userId, account))]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 14240 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/62-migrate-vault-timeout-settings-svc-to-state-provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/63-migrate-password-settings.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/63-migrate-password-settings.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NAVIGATION: () => (/* binding */ NAVIGATION),\n/* harmony export */   PASSPHRASE: () => (/* binding */ PASSPHRASE),\n/* harmony export */   PASSWORD: () => (/* binding */ PASSWORD),\n/* harmony export */   PasswordOptionsMigrator: () => (/* binding */ PasswordOptionsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst NAVIGATION = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"generatorSettings\",\n};\nconst PASSWORD = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"passwordGeneratorSettings\",\n};\nconst PASSPHRASE = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"passphraseGeneratorSettings\",\n};\nclass PasswordOptionsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const legacyOptions = (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.passwordGenerationOptions;\n                    if (legacyOptions) {\n                        const converted = convertSettings(legacyOptions);\n                        yield storeSettings(helper, userId, converted);\n                        yield deleteSettings(helper, userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // not supported\n        });\n    }\n}\nfunction convertSettings(options) {\n    const password = {\n        length: options.length,\n        ambiguous: options.ambiguous,\n        uppercase: options.uppercase,\n        minUppercase: options.minUppercase,\n        lowercase: options.lowercase,\n        minLowercase: options.minLowercase,\n        number: options.number,\n        minNumber: options.minNumber,\n        special: options.special,\n        minSpecial: options.minSpecial,\n    };\n    const generator = {\n        type: options.type,\n    };\n    const passphrase = {\n        numWords: options.numWords,\n        wordSeparator: options.wordSeparator,\n        capitalize: options.capitalize,\n        includeNumber: options.includeNumber,\n    };\n    return { generator, password, passphrase };\n}\nfunction storeSettings(helper, userId, converted) {\n    return __awaiter(this, void 0, void 0, function* () {\n        var _a;\n        const existing = (_a = (yield helper.getFromUser(userId, NAVIGATION))) !== null && _a !== void 0 ? _a : {};\n        const updated = Object.assign(existing, converted.generator);\n        yield Promise.all([\n            helper.setToUser(userId, NAVIGATION, updated),\n            helper.setToUser(userId, PASSPHRASE, converted.passphrase),\n            helper.setToUser(userId, PASSWORD, converted.password),\n        ]);\n    });\n}\nfunction deleteSettings(helper, userId, account) {\n    return __awaiter(this, void 0, void 0, function* () {\n        var _a;\n        (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? true : delete _a.passwordGenerationOptions;\n        yield helper.set(userId, account);\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8932 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/63-migrate-password-settings.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/64-migrate-generator-history.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/64-migrate-generator-history.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorHistoryMigrator: () => (/* binding */ GeneratorHistoryMigrator),\n/* harmony export */   HISTORY: () => (/* binding */ HISTORY)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst HISTORY = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"localGeneratorHistoryBuffer\",\n};\nclass GeneratorHistoryMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const data = (_a = account === null || account === void 0 ? void 0 : account.data) === null || _a === void 0 ? void 0 : _a.passwordGenerationHistory;\n                    if (data && data.encrypted) {\n                        yield helper.setToUser(userId, HISTORY, data.encrypted);\n                        delete account.data.passwordGenerationHistory;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // not supported\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy82NC1taWdyYXRlLWdlbmVyYXRvci1oaXN0b3J5LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUN1QztBQWNoQyxNQUFNLE9BQU8sR0FBc0I7SUFDeEMsZUFBZSxFQUFFO1FBQ2YsSUFBSSxFQUFFLFdBQVc7S0FDbEI7SUFDRCxHQUFHLEVBQUUsNkJBQTZCO0NBQ25DLENBQUM7QUFFSyxNQUFNLHdCQUF5QixTQUFRLCtDQUFnQjtJQUN0RCxPQUFPLENBQUMsTUFBdUI7O1lBQ25DLE1BQU0sUUFBUSxHQUFHLE1BQU0sTUFBTSxDQUFDLFdBQVcsRUFBZSxDQUFDO1lBRXpELFNBQWUsY0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VyYXRpb25IaXN0b3J5O1xuICAgICAgaWYgKGRhdGEgJiYgZGF0YS5lbmNyeXB0ZWQpIHtcbiAgICAgICAgYXdhaXQgaGVscGVyLnNldFRvVXNlcih1c2VySWQsIEhJU1RPUlksIGRhdGEuZW5jcnlwdGVkKTtcbiAgICAgICAgZGVsZXRlIGFjY291bnQuZGF0YS5wYXNzd29yZEdlbmVyYXRpb25IaXN0b3J5O1xuICAgICAgICBhd2FpdCBoZWxwZXIuc2V0KHVzZXJJZCwgYWNjb3VudCk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgYXdhaXQgUHJvbWlzZS5hbGwoWy4uLmFjY291bnRzLm1hcCgoeyB1c2VySWQsIGFjY291bnQgfSkgPT4gbWlncmF0ZUFjY291bnQodXNlcklkLCBhY2NvdW50KSldKTtcbiAgfVxuXG4gIGFzeW5jIHJvbGxiYWNrKGhlbHBlcjogTWlncmF0aW9uSGVscGVyKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgLy8gbm90IHN1cHBvcnRlZFxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/64-migrate-generator-history.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/65-migrate-forwarder-settings.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/65-migrate-forwarder-settings.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ADDY_IO: () => (/* binding */ ADDY_IO),\n/* harmony export */   CATCHALL: () => (/* binding */ CATCHALL),\n/* harmony export */   DUCK_DUCK_GO: () => (/* binding */ DUCK_DUCK_GO),\n/* harmony export */   EFF_USERNAME: () => (/* binding */ EFF_USERNAME),\n/* harmony export */   FASTMAIL: () => (/* binding */ FASTMAIL),\n/* harmony export */   FIREFOX_RELAY: () => (/* binding */ FIREFOX_RELAY),\n/* harmony export */   FORWARD_EMAIL: () => (/* binding */ FORWARD_EMAIL),\n/* harmony export */   ForwarderOptionsMigrator: () => (/* binding */ ForwarderOptionsMigrator),\n/* harmony export */   NAVIGATION: () => (/* binding */ NAVIGATION),\n/* harmony export */   SIMPLE_LOGIN: () => (/* binding */ SIMPLE_LOGIN),\n/* harmony export */   SUBADDRESS: () => (/* binding */ SUBADDRESS)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst NAVIGATION = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"generatorSettings\",\n};\nconst CATCHALL = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"catchallGeneratorSettings\",\n};\nconst EFF_USERNAME = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"effUsernameGeneratorSettings\",\n};\nconst SUBADDRESS = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"subaddressGeneratorSettings\",\n};\nconst ADDY_IO = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"addyIoBuffer\",\n};\nconst DUCK_DUCK_GO = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"duckDuckGoBuffer\",\n};\nconst FASTMAIL = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"fastmailBuffer\",\n};\nconst FIREFOX_RELAY = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"firefoxRelayBuffer\",\n};\nconst FORWARD_EMAIL = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"forwardEmailBuffer\",\n};\nconst SIMPLE_LOGIN = {\n    stateDefinition: {\n        name: \"generator\",\n    },\n    key: \"simpleLoginBuffer\",\n};\nclass ForwarderOptionsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const accounts = yield helper.getAccounts();\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const legacyOptions = (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.usernameGenerationOptions;\n                    if (legacyOptions) {\n                        const converted = convertSettings(legacyOptions);\n                        yield storeSettings(helper, userId, converted);\n                        yield deleteSettings(helper, userId, account);\n                    }\n                });\n            }\n            yield Promise.all([...accounts.map(({ userId, account }) => migrateAccount(userId, account))]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // not supported\n        });\n    }\n}\nfunction convertSettings(options) {\n    const forwarders = {\n        addyIo: {\n            baseUrl: options.forwardedAnonAddyBaseUrl,\n            token: options.forwardedAnonAddyApiToken,\n            domain: options.forwardedAnonAddyDomain,\n        },\n        duckDuckGo: {\n            token: options.forwardedDuckDuckGoToken,\n        },\n        fastmail: {\n            token: options.forwardedFastmailApiToken,\n        },\n        firefoxRelay: {\n            token: options.forwardedFirefoxApiToken,\n        },\n        forwardEmail: {\n            token: options.forwardedForwardEmailApiToken,\n            domain: options.forwardedForwardEmailDomain,\n        },\n        simpleLogin: {\n            token: options.forwardedSimpleLoginApiKey,\n            baseUrl: options.forwardedSimpleLoginBaseUrl,\n        },\n    };\n    const generator = {\n        username: options.type,\n        forwarder: options.forwardedService,\n    };\n    const algorithms = {\n        effUsername: {\n            wordCapitalize: options.wordCapitalize,\n            wordIncludeNumber: options.wordIncludeNumber,\n        },\n        subaddress: {\n            subaddressType: options.subaddressType,\n            subaddressEmail: options.subaddressEmail,\n        },\n        catchall: {\n            catchallType: options.catchallType,\n            catchallDomain: options.catchallDomain,\n        },\n    };\n    return { generator, algorithms, forwarders };\n}\nfunction storeSettings(helper, userId, converted) {\n    return __awaiter(this, void 0, void 0, function* () {\n        yield Promise.all([\n            helper.setToUser(userId, NAVIGATION, converted.generator),\n            helper.setToUser(userId, CATCHALL, converted.algorithms.catchall),\n            helper.setToUser(userId, EFF_USERNAME, converted.algorithms.effUsername),\n            helper.setToUser(userId, SUBADDRESS, converted.algorithms.subaddress),\n            helper.setToUser(userId, ADDY_IO, converted.forwarders.addyIo),\n            helper.setToUser(userId, DUCK_DUCK_GO, converted.forwarders.duckDuckGo),\n            helper.setToUser(userId, FASTMAIL, converted.forwarders.fastmail),\n            helper.setToUser(userId, FIREFOX_RELAY, converted.forwarders.firefoxRelay),\n            helper.setToUser(userId, FORWARD_EMAIL, converted.forwarders.forwardEmail),\n            helper.setToUser(userId, SIMPLE_LOGIN, converted.forwarders.simpleLogin),\n        ]);\n    });\n}\nfunction deleteSettings(helper, userId, account) {\n    return __awaiter(this, void 0, void 0, function* () {\n        var _a;\n        (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? true : delete _a.usernameGenerationOptions;\n        yield helper.set(userId, account);\n    });\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 14396 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/65-migrate-forwarder-settings.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveFinalDesktopSettingsMigrator: () => (/* binding */ MoveFinalDesktopSettingsMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst DESKTOP_SETTINGS_DISK = {\n    name: \"desktopSettings\",\n};\nconst BROWSER_INTEGRATION_ENABLED = {\n    key: \"browserIntegrationEnabled\",\n    stateDefinition: DESKTOP_SETTINGS_DISK,\n};\nconst BROWSER_INTEGRATION_FINGERPRINT_ENABLED = {\n    key: \"browserIntegrationFingerprintEnabled\",\n    stateDefinition: DESKTOP_SETTINGS_DISK,\n};\nconst MINIMIZE_ON_COPY = {\n    key: \"minimizeOnCopy\",\n    stateDefinition: DESKTOP_SETTINGS_DISK,\n};\nclass MoveFinalDesktopSettingsMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const legacyGlobal = yield helper.get(\"global\");\n            const enableBrowserIntegrationValue = legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableBrowserIntegration;\n            const enableBrowserIntegrationFingerprintValue = legacyGlobal === null || legacyGlobal === void 0 ? void 0 : legacyGlobal.enableBrowserIntegrationFingerprint;\n            let updatedGlobal = false;\n            if (enableBrowserIntegrationValue != null) {\n                yield helper.setToGlobal(BROWSER_INTEGRATION_ENABLED, enableBrowserIntegrationValue);\n                delete legacyGlobal.enableBrowserIntegration;\n                updatedGlobal = true;\n            }\n            if (enableBrowserIntegrationFingerprintValue != null) {\n                yield helper.setToGlobal(BROWSER_INTEGRATION_FINGERPRINT_ENABLED, enableBrowserIntegrationFingerprintValue);\n                delete legacyGlobal.enableBrowserIntegrationFingerprint;\n                updatedGlobal = true;\n            }\n            if (updatedGlobal) {\n                yield helper.set(\"global\", legacyGlobal);\n            }\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const minimizeOnCopyToClipboardValue = (_a = account === null || account === void 0 ? void 0 : account.settings) === null || _a === void 0 ? void 0 : _a.minimizeOnCopyToClipboard;\n                    if (minimizeOnCopyToClipboardValue != null) {\n                        yield helper.setToUser(userId, MINIMIZE_ON_COPY, minimizeOnCopyToClipboardValue);\n                        delete account.settings.minimizeOnCopyToClipboard;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => migrateAccount(userId, account)));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const browserIntegrationEnabledValue = yield helper.getFromGlobal(BROWSER_INTEGRATION_ENABLED);\n            const browserIntegrationFingerprintEnabled = yield helper.getFromGlobal(BROWSER_INTEGRATION_FINGERPRINT_ENABLED);\n            if (browserIntegrationEnabledValue != null) {\n                let legacyGlobal = yield helper.get(\"global\");\n                legacyGlobal !== null && legacyGlobal !== void 0 ? legacyGlobal : (legacyGlobal = {});\n                legacyGlobal.enableBrowserIntegration = browserIntegrationEnabledValue;\n                yield helper.set(\"global\", legacyGlobal);\n                yield helper.removeFromGlobal(BROWSER_INTEGRATION_ENABLED);\n            }\n            if (browserIntegrationFingerprintEnabled != null) {\n                let legacyGlobal = yield helper.get(\"global\");\n                legacyGlobal !== null && legacyGlobal !== void 0 ? legacyGlobal : (legacyGlobal = {});\n                legacyGlobal.enableBrowserIntegrationFingerprint = browserIntegrationFingerprintEnabled;\n                yield helper.set(\"global\", legacyGlobal);\n                yield helper.removeFromGlobal(BROWSER_INTEGRATION_FINGERPRINT_ENABLED);\n            }\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    const minimizeOnCopyToClipboardValue = yield helper.getFromUser(userId, MINIMIZE_ON_COPY);\n                    if (minimizeOnCopyToClipboardValue != null) {\n                        account !== null && account !== void 0 ? account : (account = { settings: {} });\n                        account.settings.minimizeOnCopyToClipboard = minimizeOnCopyToClipboardValue;\n                        yield helper.set(userId, account);\n                        yield helper.removeFromUser(userId, MINIMIZE_ON_COPY);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackAccount(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10184 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/66-move-final-desktop-settings.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/67-remove-unassigned-items-banner-dismissed.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/67-remove-unassigned-items-banner-dismissed.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RemoveUnassignedItemsBannerDismissed: () => (/* binding */ RemoveUnassignedItemsBannerDismissed),\n/* harmony export */   SHOW_BANNER: () => (/* binding */ SHOW_BANNER)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst SHOW_BANNER = {\n    key: \"showBanner\",\n    stateDefinition: { name: \"unassignedItemsBanner\" },\n};\nclass RemoveUnassignedItemsBannerDismissed extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield Promise.all((yield helper.getAccounts()).map((_a) => __awaiter(this, [_a], void 0, function* ({ userId }) {\n                if (helper.getFromUser(userId, SHOW_BANNER) != null) {\n                    yield helper.removeFromUser(userId, SHOW_BANNER);\n                }\n            })));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy82Ny1yZW1vdmUtdW5hc3NpZ25lZC1pdGVtcy1iYW5uZXItZGlzbWlzc2VkLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUNxRDtBQUU5QyxNQUFNLFdBQVcsR0FBc0I7SUFDNUMsR0FBRyxFQUFFLFlBQVk7SUFDakIsZUFBZSxFQUFFLEVBQUUsSUFBSSxFQUFFLHVCQUF1QixFQUFFO0NBQ25ELENBQUM7QUFFSyxNQUFNLG9DQUFxQy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FwidW5hc3NpZ25lZEl0ZW1zQmFubmVyXCIgfSxcbn07XG5cbmV4cG9ydCBjbGFzcyBSZW1vdmVVbmFzc2lnbmVkSXRlbXNCYW5uZXJEaXNtaXNzZWQgZXh0ZW5kcyBNaWdyYXRvcjw2NiwgNjc+IHtcbiAgYXN5bmMgbWlncmF0ZShoZWxwZXI6IE1pZ3JhdGlvbkhlbHBlcik6IFByb21pc2U8dm9pZD4ge1xuICAgIGF3YWl0IFByb21pc2UuYWxsKFxuICAgICAgKGF3YWl0IGhlbHBlci5nZXRBY2NvdW50cygpKS5tYXAoYXN5bmMgKHsgdXNlcklkIH0pID0+IHtcbiAgICAgICAgaWYgKGhlbHBlci5nZXRGcm9tVXNlcih1c2VySWQsIFNIT1dfQkFOTkVSKSAhPSBudWxsKSB7XG4gICAgICAgICAgYXdhaXQgaGVscGVyLnJlbW92ZUZyb21Vc2VyKHVzZXJJZCwgU0hPV19CQU5ORVIpO1xuICAgICAgICB9XG4gICAgICB9KSxcbiAgICApO1xuICB9XG5cbiAgYXN5bmMgcm9sbGJhY2soaGVscGVyOiBNaWdyYXRpb25IZWxwZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICB0aHJvdyBJUlJFVkVSU0lCTEU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/67-remove-unassigned-items-banner-dismissed.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/68-move-last-sync-date.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/68-move-last-sync-date.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveLastSyncDate: () => (/* binding */ MoveLastSyncDate)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst LAST_SYNC_KEY = {\n    key: \"lastSync\",\n    stateDefinition: {\n        name: \"sync\",\n    },\n};\nclass MoveLastSyncDate extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function migrateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = (_a = account === null || account === void 0 ? void 0 : account.profile) === null || _a === void 0 ? void 0 : _a.lastSync;\n                    if (value != null) {\n                        yield helper.setToUser(userId, LAST_SYNC_KEY, value);\n                        delete account.profile.lastSync;\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => migrateAccount(userId, account)));\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            function rollbackAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    const value = yield helper.getFromUser(userId, LAST_SYNC_KEY);\n                    if (value != null) {\n                        account !== null && account !== void 0 ? account : (account = {});\n                        (_a = account.profile) !== null && _a !== void 0 ? _a : (account.profile = {});\n                        account.profile.lastSync = value;\n                        yield helper.set(userId, account);\n                        yield helper.removeFromUser(userId, LAST_SYNC_KEY);\n                    }\n                });\n            }\n            const accounts = yield helper.getAccounts();\n            yield Promise.all(accounts.map(({ userId, account }) => rollbackAccount(userId, account)));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4348 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/68-move-last-sync-date.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/7-move-biometric-auto-prompt-to-account.ts":
/*!****************************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/7-move-biometric-auto-prompt-to-account.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveBiometricAutoPromptToAccount: () => (/* binding */ MoveBiometricAutoPromptToAccount)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass MoveBiometricAutoPromptToAccount extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const global = yield helper.get(\"global\");\n            const noAutoPromptBiometrics = (_a = global === null || global === void 0 ? void 0 : global.noAutoPromptBiometrics) !== null && _a !== void 0 ? _a : false;\n            const accounts = yield helper.getAccounts();\n            function updateAccount(userId, account) {\n                return __awaiter(this, void 0, void 0, function* () {\n                    var _a;\n                    if (account == null) {\n                        return;\n                    }\n                    if (noAutoPromptBiometrics) {\n                        account.settings = Object.assign((_a = account === null || account === void 0 ? void 0 : account.settings) !== null && _a !== void 0 ? _a : {}, {\n                            disableAutoBiometricsPrompt: true,\n                        });\n                        yield helper.set(userId, account);\n                    }\n                });\n            }\n            delete global.noAutoPromptBiometrics;\n            yield Promise.all([\n                ...accounts.map(({ userId, account }) => updateAccount(userId, account)),\n                helper.set(\"global\", global),\n            ]);\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw _migrator__WEBPACK_IMPORTED_MODULE_0__.IRREVERSIBLE;\n        });\n    }\n    // Override is necessary because default implementation assumes `stateVersion` at the root, but for this version\n    // it is nested inside a global object.\n    updateVersion(helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const endVersion = direction === \"up\" ? this.toVersion : this.fromVersion;\n            helper.currentVersion = endVersion;\n            const global = (yield helper.get(\"global\")) || {};\n            yield helper.set(\"global\", Object.assign(Object.assign({}, global), { stateVersion: endVersion }));\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4564 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/7-move-biometric-auto-prompt-to-account.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/8-move-state-version.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/8-move-state-version.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveStateVersionMigrator: () => (/* binding */ MoveStateVersionMigrator)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass MoveStateVersionMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const global = yield helper.get(\"global\");\n            if (global.stateVersion) {\n                yield helper.set(\"stateVersion\", global.stateVersion);\n                delete global.stateVersion;\n                yield helper.set(\"global\", global);\n            }\n            else {\n                throw new Error(\"Migration failed, state version not found\");\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const version = yield helper.get(\"stateVersion\");\n            const global = yield helper.get(\"global\");\n            yield helper.set(\"global\", Object.assign(Object.assign({}, global), { stateVersion: version }));\n            yield helper.set(\"stateVersion\", undefined);\n        });\n    }\n    // Override is necessary because default implementation assumes `stateVersion` at the root, but this migration moves\n    // it from a `global` object to root.This makes for unique rollback versioning.\n    updateVersion(helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const endVersion = direction === \"up\" ? this.toVersion : this.fromVersion;\n            helper.currentVersion = endVersion;\n            if (direction === \"up\") {\n                yield helper.set(\"stateVersion\", endVersion);\n            }\n            else {\n                const global = (yield helper.get(\"global\")) || {};\n                yield helper.set(\"global\", Object.assign(Object.assign({}, global), { stateVersion: endVersion }));\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4204 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/8-move-state-version.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/9-move-browser-settings-to-global.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/9-move-browser-settings-to-global.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MoveBrowserSettingsToGlobal: () => (/* binding */ MoveBrowserSettingsToGlobal)\n/* harmony export */ });\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nclass MoveBrowserSettingsToGlobal extends _migrator__WEBPACK_IMPORTED_MODULE_0__.Migrator {\n    // Will first check if any of the accounts have a value from the given accountSelector\n    // if they do have a value it will set that value into global state but if multiple\n    // users have differing values it will prefer the false setting,\n    // if all users have true then it will take true.\n    tryAddSetting(accounts, accountSelector, globalSetter) {\n        const hasValue = accounts.some(({ account }) => {\n            return accountSelector(account) !== undefined;\n        });\n        if (hasValue) {\n            const value = !accounts.some(({ account }) => {\n                var _a;\n                return ((_a = accountSelector(account)) !== null && _a !== void 0 ? _a : false) === false;\n            });\n            globalSetter(value);\n        }\n    }\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const global = yield helper.get(\"global\");\n            const accounts = yield helper.getAccounts();\n            const globalNeverDomainsValue = accounts.reduce((accumulator, { account }) => {\n                var _a, _b;\n                const normalizedNeverDomains = (_b = (_a = account.settings) === null || _a === void 0 ? void 0 : _a.neverDomains) !== null && _b !== void 0 ? _b : {};\n                for (const [id, value] of Object.entries(normalizedNeverDomains)) {\n                    accumulator !== null && accumulator !== void 0 ? accumulator : (accumulator = {});\n                    accumulator[id] = value;\n                }\n                return accumulator;\n            }, undefined);\n            const targetGlobalState = {};\n            if (globalNeverDomainsValue != null) {\n                targetGlobalState.neverDomains = globalNeverDomainsValue;\n            }\n            this.tryAddSetting(accounts, (a) => { var _a; return (_a = a.settings) === null || _a === void 0 ? void 0 : _a.disableAddLoginNotification; }, (v) => (targetGlobalState.disableAddLoginNotification = v));\n            this.tryAddSetting(accounts, (a) => { var _a; return (_a = a.settings) === null || _a === void 0 ? void 0 : _a.disableChangedPasswordNotification; }, (v) => (targetGlobalState.disableChangedPasswordNotification = v));\n            this.tryAddSetting(accounts, (a) => { var _a; return (_a = a.settings) === null || _a === void 0 ? void 0 : _a.disableContextMenuItem; }, (v) => (targetGlobalState.disableContextMenuItem = v));\n            yield helper.set(\"global\", Object.assign(Object.assign({}, global), targetGlobalState));\n            yield Promise.all(accounts.map((_a) => __awaiter(this, [_a], void 0, function* ({ userId, account }) {\n                var _b, _c, _d, _e;\n                (_b = account.settings) === null || _b === void 0 ? true : delete _b.disableAddLoginNotification;\n                (_c = account.settings) === null || _c === void 0 ? true : delete _c.disableChangedPasswordNotification;\n                (_d = account.settings) === null || _d === void 0 ? true : delete _d.disableContextMenuItem;\n                (_e = account.settings) === null || _e === void 0 ? true : delete _e.neverDomains;\n                yield helper.set(userId, account);\n            })));\n        });\n    }\n    rollback(helper) {\n        throw new Error(\"Method not implemented.\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7820 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/9-move-browser-settings-to-global.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrations/min-version.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrations/min-version.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MinVersionMigrator: () => (/* binding */ MinVersionMigrator),\n/* harmony export */   minVersionError: () => (/* binding */ minVersionError)\n/* harmony export */ });\n/* harmony import */ var _migrate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../migrate */ \"../../libs/common/src/state-migrations/migrate.ts\");\n/* harmony import */ var _migrator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../migrator */ \"../../libs/common/src/state-migrations/migrator.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nfunction minVersionError(current) {\n    return `Your local data is too old to be migrated. Your current state version is ${current}, but minimum version is ${_migrate__WEBPACK_IMPORTED_MODULE_0__.MIN_VERSION}.`;\n}\nclass MinVersionMigrator extends _migrator__WEBPACK_IMPORTED_MODULE_1__.Migrator {\n    constructor() {\n        super(0, _migrate__WEBPACK_IMPORTED_MODULE_0__.MIN_VERSION);\n    }\n    // Overrides the default implementation to catch any version that may be passed in.\n    shouldMigrate(helper) {\n        return Promise.resolve(helper.currentVersion < _migrate__WEBPACK_IMPORTED_MODULE_0__.MIN_VERSION);\n    }\n    migrate(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (helper.currentVersion < _migrate__WEBPACK_IMPORTED_MODULE_0__.MIN_VERSION) {\n                throw new Error(minVersionError(helper.currentVersion));\n            }\n        });\n    }\n    rollback(helper) {\n        return __awaiter(this, void 0, void 0, function* () {\n            throw _migrator__WEBPACK_IMPORTED_MODULE_1__.IRREVERSIBLE;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0aW9ucy9taW4tdmVyc2lvbi50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQXFEO0FBRUE7QUFFOUMsU0FBUyxlQUFlLENBQUMsT0FBZTtJQUM3QyxPQUFPLDRFQUE0RSxPQUFPLDRCQUE0QixpREFBVyxHQUFHLENBQUM7QUFDdkksQ0FBQztBQUVNLE1BQU0sa0JBQW1CLFNBQVEsK0NBQXVCO0lBQzdEO1FBQ0UsS0FBSyxDQUFDLENBQUMsRUFBRSxpREFBVyxDQUFDLENBQUM7SUFDeEIsQ0FBQztJQUVELG1GQUFtRjtJQUMxRSxhQUFhLENBQUMsTUFBdUI7UUFDNUMsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxjQUFjLEdBQUcsaURBQVcsQ0FBQyxDQUFDO0lBQzlELENBQUM7SUFDSyxPQUFPLENBQUMsTUFBdUI7O1lBQ25DLElBQUksTUFBTSxDQUFDLGNBQWMsR0FBRyxpREFBVyxFQUFFLENBQUM7Z0JBQ3hDLE1BQU0sSUFBSSxLQUFLLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO1lBQzFELENBQUM7UUFDSCxDQUFDO0tBQUE7SUFDSyxRQUFRLENBQUMsTUFBdUI7O1lBQ3BD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lPGJvb2xlYW4+IHtcbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKGhlbHBlci5jdXJyZW50VmVyc2lvbiA8IE1JTl9WRVJTSU9OKTtcbiAgfVxuICBhc3luYyBtaWdyYXRlKGhlbHBlcjogTWlncmF0aW9uSGVscGVyKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgaWYgKGhlbHBlci5jdXJyZW50VmVyc2lvbiA8IE1JTl9WRVJTSU9OKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IobWluVmVyc2lvbkVycm9yKGhlbHBlci5jdXJyZW50VmVyc2lvbikpO1xuICAgIH1cbiAgfVxuICBhc3luYyByb2xsYmFjayhoZWxwZXI6IE1pZ3JhdGlvbkhlbHBlcik6IFByb21pc2U8dm9pZD4ge1xuICAgIHRocm93IElSUkVWRVJTSUJMRTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrations/min-version.ts\n");

/***/ }),

/***/ "../../libs/common/src/state-migrations/migrator.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/state-migrations/migrator.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IRREVERSIBLE: () => (/* binding */ IRREVERSIBLE),\n/* harmony export */   Migrator: () => (/* binding */ Migrator)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nconst IRREVERSIBLE = new Error(\"Irreversible migration\");\nclass Migrator {\n    constructor(fromVersion, toVersion) {\n        this.fromVersion = fromVersion;\n        this.toVersion = toVersion;\n        if (fromVersion == null || toVersion == null) {\n            throw new Error(\"Invalid migration\");\n        }\n        if (fromVersion > toVersion) {\n            throw new Error(\"Invalid migration\");\n        }\n    }\n    shouldMigrate(helper, direction) {\n        const startVersion = direction === \"up\" ? this.fromVersion : this.toVersion;\n        return Promise.resolve(helper.currentVersion === startVersion);\n    }\n    updateVersion(helper, direction) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const endVersion = direction === \"up\" ? this.toVersion : this.fromVersion;\n            helper.currentVersion = endVersion;\n            yield helper.set(\"stateVersion\", endVersion);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3N0YXRlLW1pZ3JhdGlvbnMvbWlncmF0b3IudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFJTyxNQUFNLFlBQVksR0FBRyxJQUFJLEtBQUssQ0FBQyx3QkFBd0IsQ0FBQyxDQUFDO0FBZ0J6RCxNQUFlLFFBQVE7SUFDNUIsWUFDUyxXQUFrQixFQUNsQixTQUFjO1FBRGQsZ0JBQVcsR0FBWCxXQUFXLENBQU87UUFDbEIsY0FBUyxHQUFULFNBQVMsQ0FBSztRQUVyQixJQUFJLFdBQVcsSUFBSSxJQUFJLElBQUksU0FBUyxJQUFJLElBQUksRUFBRSxDQUFDO1lBQzdDLE1BQU0sSUFBSSxLQUFLLENBQUMsbUJBQW1CLENBQUMsQ0FBQztRQUN2QyxDQUFDO1FBQ0QsSUFBSSxXQUFXLEdBQUcsU0FBUyxFQUFFLENBQUM7WUFDNUIsTUFBTSxJQUFJLEtBQUssQ0FBQyxtQkFBb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IGNvbnN0IHN0YXJ0VmVyc2lvbiA9IGRpcmVjdGlvbiA9PT0gXCJ1cFwiID8gdGhpcy5mcm9tVmVyc2lvbiA6IHRoaXMudG9WZXJzaW9uO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoaGVscGVyLmN1cnJlbnRWZXJzaW9uID09PSBzdGFydFZlcnNpb24pO1xuICB9XG4gIGFic3RyYWN0IG1pZ3JhdGUoaGVscGVyOiBNaWdyYXRpb25IZWxwZXIpOiBQcm9taXNlPHZvaWQ+O1xuICBhYnN0cmFjdCByb2xsYmFjayhoZWxwZXI6IE1pZ3JhdGlvbkhlbHBlcik6IFByb21pc2U8dm9pZD47XG4gIGFzeW5jIHVwZGF0ZVZlcnNpb24oaGVscGVyOiBNaWdyYXRpb25IZWxwZXIsIGRpcmVjdGlvbjogRGlyZWN0aW9uKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgY29uc3QgZW5kVmVyc2lvbiA9IGRpcmVjdGlvbiA9PT0gXCJ1cFwiID8gdGhpcy50b1ZlcnNpb24gOiB0aGlzLmZyb21WZXJzaW9uO1xuICAgIGhlbHBlci5jdXJyZW50VmVyc2lvbiA9IGVuZFZlcnNpb247XG4gICAgYXdhaXQgaGVscGVyLnNldChcInN0YXRlVmVyc2lvblwiLCBlbmRWZXJzaW9uKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/state-migrations/migrator.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/integration/integration-context.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/tools/integration/integration-context.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IntegrationContext: () => (/* binding */ IntegrationContext)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\n/** Utilities for processing integration settings */\nclass IntegrationContext {\n    /** Instantiates an integration context\n     *  @param metadata - defines integration capabilities\n     *  @param i18n - localizes error messages\n     */\n    constructor(metadata, settings, i18n) {\n        this.metadata = metadata;\n        this.settings = settings;\n        this.i18n = i18n;\n    }\n    /** Lookup the integration's baseUrl\n     *  @returns the baseUrl for the API's integration point.\n     *   - By default this is defined by the metadata\n     *   - When a service allows self-hosting, this can be supplied by `settings`.\n     *  @throws a localized error message when a base URL is neither defined by the metadata or\n     *   supplied by an argument.\n     */\n    baseUrl() {\n        var _a, _b;\n        // normalize baseUrl\n        const setting = (_a = (this.settings && \"baseUrl\" in this.settings\n            ? this.settings.baseUrl\n            : undefined)) !== null && _a !== void 0 ? _a : \"\";\n        let result = \"\";\n        // look up definition\n        if (this.metadata.selfHost === \"always\") {\n            result = setting;\n        }\n        else if (this.metadata.selfHost === \"never\" || setting.length <= 0) {\n            result = (_b = this.metadata.baseUrl) !== null && _b !== void 0 ? _b : \"\";\n        }\n        else {\n            result = setting;\n        }\n        // postconditions\n        if (result === \"\") {\n            const error = this.i18n.t(\"forwarderNoUrl\", this.metadata.name);\n            throw error;\n        }\n        return result;\n    }\n    /** look up a service API's authentication token\n     *  @param options.base64 when `true`, base64 encodes the result. Defaults to `false`.\n     *  @param options.suffix a string to append to the token. Defaults to empty.\n     *  @returns the user's authentication token\n     *  @throws a localized error message when the token is invalid.\n     *  @remarks the string is thrown for backwards compatibility\n     */\n    authenticationToken(options = null) {\n        var _a, _b;\n        // normalize `token` then assert it has a value\n        let token = \"token\" in this.settings ? ((_a = this.settings.token) !== null && _a !== void 0 ? _a : \"\") : \"\";\n        if (token === \"\") {\n            const error = this.i18n.t(\"forwaderInvalidToken\", this.metadata.name);\n            throw error;\n        }\n        // if a suffix exists, it needs to be included before encoding\n        token += (_b = options === null || options === void 0 ? void 0 : options.suffix) !== null && _b !== void 0 ? _b : \"\";\n        if (options === null || options === void 0 ? void 0 : options.base64) {\n            token = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromUtf8ToB64(token);\n        }\n        return token;\n    }\n    /** look up the website the integration is working with.\n     *  @param request supplies information about the state of the extension site\n     *  @returns The website or an empty string if a website isn't available\n     *  @remarks `website` is usually supplied when generating a credential from the vault\n     */\n    website(request) {\n        var _a;\n        return (_a = request.website) !== null && _a !== void 0 ? _a : \"\";\n    }\n    /** look up localized text indicating Bitwarden requested the forwarding address.\n     *  @param request supplies information about the state of the extension site\n     *  @returns localized text describing a generated forwarding address\n     */\n    generatedBy(request) {\n        const website = this.website(request);\n        const descriptionId = website === \"\" ? \"forwarderGeneratedBy\" : \"forwarderGeneratedByWithWebsite\";\n        const description = this.i18n.t(descriptionId, website);\n        return description;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7848 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/integration/integration-context.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/api-settings.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/api-settings.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/index.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/index.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RestClient: () => (/* reexport safe */ _rest_client__WEBPACK_IMPORTED_MODULE_2__.RestClient)\n/* harmony export */ });\n/* harmony import */ var _api_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api-settings */ \"../../libs/common/src/tools/integration/rpc/api-settings.ts\");\n/* harmony import */ var _integration_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./integration-request */ \"../../libs/common/src/tools/integration/rpc/integration-request.ts\");\n/* harmony import */ var _rest_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rest-client */ \"../../libs/common/src/tools/integration/rpc/rest-client.ts\");\n/* harmony import */ var _rpc_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rpc-definition */ \"../../libs/common/src/tools/integration/rpc/rpc-definition.ts\");\n/* harmony import */ var _rpc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rpc */ \"../../libs/common/src/tools/integration/rpc/rpc.ts\");\n/* harmony import */ var _token_header__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./token-header */ \"../../libs/common/src/tools/integration/rpc/token-header.ts\");\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL2ludGVncmF0aW9uL3JwYy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQStCO0FBQ087QUFDUjtBQUNHO0FBQ1g7QUFDUyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9pbnRlZ3JhdGlvbi9ycGMvaW5kZXgudHM/ZmFjMSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9hcGktc2V0dGluZ3NcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2ludGVncmF0aW9uLXJlcXVlc3RcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Jlc3QtY2xpZW50XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9ycGMtZGVmaW5pdGlvblwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcnBjXCI7XG5leHBvcnQgKiBmcm9tIFwiLi90b2tlbi1oZWFkZXJcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/integration/rpc/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/integration-request.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/integration-request.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/rest-client.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/rest-client.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RestClient: () => (/* binding */ RestClient)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n/** Makes remote procedure calls using a RESTful interface. */\nclass RestClient {\n    constructor(api, i18n) {\n        this.api = api;\n        this.i18n = i18n;\n    }\n    /** uses the fetch API to request a JSON payload. */\n    // FIXME: once legacy password generator is removed, replace forwarder-specific error\n    //   messages with RPC-generalized ones.\n    fetchJson(rpc, params) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // run the request\n            const request = rpc.toRequest(params);\n            const response = yield this.api.nativeFetch(request);\n            let result = undefined;\n            let errorKey = undefined;\n            let errorMessage = undefined;\n            const commonError = yield this.detectCommonErrors(response);\n            if (commonError) {\n                [errorKey, errorMessage] = commonError;\n            }\n            else if (rpc.hasJsonPayload(response)) {\n                [result, errorMessage] = rpc.processJson(yield response.json());\n            }\n            if (result) {\n                return result;\n            }\n            // handle failures\n            errorKey !== null && errorKey !== void 0 ? errorKey : (errorKey = errorMessage ? \"forwarderError\" : \"forwarderUnknownError\");\n            const error = this.i18n.t(errorKey, rpc.requestor.name, errorMessage);\n            throw error;\n        });\n    }\n    detectCommonErrors(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (response.status === 401 || response.status === 403) {\n                const message = yield this.tryGetErrorMessage(response);\n                const key = message ? \"forwaderInvalidTokenWithMessage\" : \"forwaderInvalidToken\";\n                return [key, message];\n            }\n            else if (response.status >= 400) {\n                const message = yield this.tryGetErrorMessage(response);\n                const key = message ? \"forwarderError\" : \"forwarderUnknownError\";\n                return [key, message];\n            }\n        });\n    }\n    tryGetErrorMessage(response) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b, _c;\n            const body = (_a = (yield response.text())) !== null && _a !== void 0 ? _a : \"\";\n            // nullish continues processing; false returns undefined\n            // FIXME: inspect content-type header to determine extraction process\n            const error = (_c = (_b = this.tryFindErrorAsJson(body)) !== null && _b !== void 0 ? _b : this.tryFindErrorAsText(body)) !== null && _c !== void 0 ? _c : response.statusText;\n            return error || undefined;\n        });\n    }\n    tryFindErrorAsJson(body) {\n        var _a, _b, _c, _d, _e;\n        // tryParse JSON object or string\n        const parsable = body.startsWith(\"{\") || body.startsWith(`'`) || body.startsWith(`\"`);\n        if (!parsable) {\n            // fail-and-continue because it's not JSON\n            return undefined;\n        }\n        let parsed = undefined;\n        try {\n            parsed = JSON.parse(body);\n        }\n        catch (_f) {\n            // fail-and-exit in case `body` is malformed JSON\n            return false;\n        }\n        // could be a string\n        if (parsed && typeof parsed === \"string\") {\n            return parsed;\n        }\n        // could be { error?: T, message?: U }\n        const error = (_b = (_a = parsed.error) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : null;\n        const message = (_d = (_c = parsed.message) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : null;\n        // `false` signals no message found\n        const result = error && message ? `${error}: ${message}` : ((_e = error !== null && error !== void 0 ? error : message) !== null && _e !== void 0 ? _e : false);\n        return result;\n    }\n    tryFindErrorAsText(body) {\n        if (!body.length || body.includes(\"<\")) {\n            return undefined;\n        }\n        return body;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8956 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/integration/rpc/rest-client.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/rpc-definition.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/rpc-definition.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/rpc.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/rpc.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/common/src/tools/integration/rpc/token-header.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/tools/integration/rpc/token-header.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/common/src/tools/password-strength/index.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/tools/password-strength/index.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordStrengthService: () => (/* reexport safe */ _password_strength_service__WEBPACK_IMPORTED_MODULE_1__.PasswordStrengthService),\n/* harmony export */   PasswordStrengthServiceAbstraction: () => (/* reexport safe */ _password_strength_service_abstraction__WEBPACK_IMPORTED_MODULE_0__.PasswordStrengthServiceAbstraction)\n/* harmony export */ });\n/* harmony import */ var _password_strength_service_abstraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./password-strength.service.abstraction */ \"../../libs/common/src/tools/password-strength/password-strength.service.abstraction.ts\");\n/* harmony import */ var _password_strength_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./password-strength.service */ \"../../libs/common/src/tools/password-strength/password-strength.service.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3Bhc3N3b3JkLXN0cmVuZ3RoL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBNkY7QUFDdkIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdG9vbHMvcGFzc3dvcmQtc3RyZW5ndGgvaW5kZXgudHM/NmUyNSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBQYXNzd29yZFN0cmVuZ3RoU2VydmljZUFic3RyYWN0aW9uIH0gZnJvbSBcIi4vcGFzc3dvcmQtc3RyZW5ndGguc2VydmljZS5hYnN0cmFjdGlvblwiO1xuZXhwb3J0IHsgUGFzc3dvcmRTdHJlbmd0aFNlcnZpY2UgfSBmcm9tIFwiLi9wYXNzd29yZC1zdHJlbmd0aC5zZXJ2aWNlXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/password-strength/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/password-strength/password-strength.service.abstraction.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/common/src/tools/password-strength/password-strength.service.abstraction.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordStrengthServiceAbstraction: () => (/* binding */ PasswordStrengthServiceAbstraction)\n/* harmony export */ });\nclass PasswordStrengthServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3Bhc3N3b3JkLXN0cmVuZ3RoL3Bhc3N3b3JkLXN0cmVuZ3RoLnNlcnZpY2UuYWJzdHJhY3Rpb24udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQWUsa0NBQWtDO0NBRXZEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3Bhc3N3b3JkLXN0cmVuZ3RoL3Bhc3N3b3JkLXN0cmVuZ3RoLnNlcnZpY2UuYWJzdHJhY3Rpb24udHM/NjExZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBaWENWQk5SZXN1bHQgfSBmcm9tIFwienhjdmJuXCI7XG5cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBQYXNzd29yZFN0cmVuZ3RoU2VydmljZUFic3RyYWN0aW9uIHtcbiAgZ2V0UGFzc3dvcmRTdHJlbmd0aDogKHBhc3N3b3JkOiBzdHJpbmcsIGVtYWlsPzogc3RyaW5nLCB1c2VySW5wdXRzPzogc3RyaW5nW10pID0+IFpYQ1ZCTlJlc3VsdDtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/password-strength/password-strength.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/password-strength/password-strength.service.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/common/src/tools/password-strength/password-strength.service.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordStrengthService: () => (/* binding */ PasswordStrengthService)\n/* harmony export */ });\n/* harmony import */ var zxcvbn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zxcvbn */ \"zxcvbn\");\n/* harmony import */ var zxcvbn__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zxcvbn__WEBPACK_IMPORTED_MODULE_0__);\n\nclass PasswordStrengthService {\n    /**\n     * Calculates a password strength score using zxcvbn.\n     * @param password The password to calculate the strength of.\n     * @param emailInput An unparsed email address to use as user input.\n     * @param userInputs An array of additional user inputs to use when calculating the strength.\n     */\n    getPasswordStrength(password, emailInput = null, userInputs = null) {\n        if (password == null || password.length === 0) {\n            return null;\n        }\n        const globalUserInputs = [\n            \"bitwarden\",\n            \"bit\",\n            \"warden\",\n            ...(userInputs !== null && userInputs !== void 0 ? userInputs : []),\n            ...this.emailToUserInputs(emailInput),\n        ];\n        // Use a hash set to get rid of any duplicate user inputs\n        const finalUserInputs = Array.from(new Set(globalUserInputs));\n        const result = zxcvbn__WEBPACK_IMPORTED_MODULE_0__(password, finalUserInputs);\n        return result;\n    }\n    /**\n     * Convert an email address into a list of user inputs for zxcvbn by\n     * taking the local part of the email address and splitting it into words.\n     * @param email\n     * @private\n     */\n    emailToUserInputs(email) {\n        if (email == null || email.length === 0) {\n            return [];\n        }\n        const atPosition = email.indexOf(\"@\");\n        if (atPosition < 0) {\n            return [];\n        }\n        return email\n            .substring(0, atPosition)\n            .trim()\n            .toLowerCase()\n            .split(/[^A-Za-z0-9]/);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3Bhc3N3b3JkLXN0cmVuZ3RoL3Bhc3N3b3JkLXN0cmVuZ3RoLnNlcnZpY2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQWlDO0FBSTFCLE1BQU0sdUJBQXVCO0lBQ2xDOzs7OztPQUtHO0lBQ0gsbUJBQW1CLENBQ2pCLFFBQWdCLEVBQ2hCLGFBQXFCLElBQUksRUFDekIsYUFBdUIsSUFBSTtRQUUzQixJQUFJLFFBQVEsSUFBSSxJQUFJLElBQUksUUFBUSxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUUsQ0FBQztZQUM5QyxPQUFPLElBQUksQ0FBQztRQUNkLENBQUM7UUFDRCxNQUFNLGdCQUFnQixHQUFHO1lBQ3ZCLFdBQVc7WUFDWCxLQUFLO1lBQ0wsUUFBUTtZQUNSLEdBQUcsQ0FBQyxVQUFVLGFBQVYsVUFBVSxjQUFWLFVBQVUsR0FBSSxFQUFFLENBQUM7WUFDckIsR0FBRyxJQUFJLENBQUMsaUJBQWlCLENBQUMsVUFBVSxDQUFDO1NBQ3RDLENBQUM7UUFDRix5REFBeUQ7UUFDekQsTUFBTSxlQUFlLEdBQUcsS0FBSyxDQUFDLElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUM7UUFDOUQsTUFBTSxNQUFNLEdBQUcsbUNBQU0sQ0FBQyxRQUFRLEVBQUUsZUFBZSxDQUFDLENBQUM7UUFDakQsT0FBTyxNQUFNLENBQUM7SUFDaEIsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ0ssaUJBQWl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tcbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYW4gZW1haWwgYWRkcmVzcyBpbnRvIGEgbGlzdCBvZiB1c2VyIGlucHV0cyBmb3IgenhjdmJuIGJ5XG4gICAqIHRha2luZyB0aGUgbG9jYWwgcGFydCBvZiB0aGUgZW1haWwgYWRkcmVzcyBhbmQgc3BsaXR0aW5nIGl0IGludG8gd29yZHMuXG4gICAqIEBwYXJhbSBlbWFpbFxuICAgKiBAcHJpdmF0ZVxuICAgKi9cbiAgcHJpdmF0ZSBlbWFpbFRvVXNlcklucHV0cyhlbWFpbDogc3RyaW5nKTogc3RyaW5nW10ge1xuICAgIGlmIChlbWFpbCA9PSBudWxsIHx8IGVtYWlsLmxlbmd0aCA9PT0gMCkge1xuICAgICAgcmV0dXJuIFtdO1xuICAgIH1cbiAgICBjb25zdCBhdFBvc2l0aW9uID0gZW1haWwuaW5kZXhPZihcIkBcIik7XG4gICAgaWYgKGF0UG9zaXRpb24gPCAwKSB7XG4gICAgICByZXR1cm4gW107XG4gICAgfVxuICAgIHJldHVybiBlbWFpbFxuICAgICAgLnN1YnN0cmluZygwLCBhdFBvc2l0aW9uKVxuICAgICAgLnRyaW0oKVxuICAgICAgLnRvTG93ZXJDYXNlKClcbiAgICAgIC5zcGxpdCgvW15BLVphLXowLTldLyk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/password-strength/password-strength.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/private-classifier.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/tools/private-classifier.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PrivateClassifier: () => (/* binding */ PrivateClassifier)\n/* harmony export */ });\nclass PrivateClassifier {\n    constructor(keys = undefined) {\n        this.keys = keys;\n    }\n    classify(value) {\n        var _a;\n        const pickMe = JSON.parse(JSON.stringify(value));\n        const keys = (_a = this.keys) !== null && _a !== void 0 ? _a : Object.keys(pickMe);\n        const picked = {};\n        for (const key of keys) {\n            picked[key] = pickMe[key];\n        }\n        const secret = picked;\n        return { disclosed: null, secret };\n    }\n    declassify(_disclosed, secret) {\n        var _a;\n        const result = {};\n        const keys = (_a = this.keys) !== null && _a !== void 0 ? _a : Object.keys(secret);\n        for (const key of keys) {\n            result[key] = secret[key];\n        }\n        return result;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3ByaXZhdGUtY2xhc3NpZmllci50cyIsIm1hcHBpbmdzIjoiOzs7O0FBSU8sTUFBTSxpQkFBaUI7SUFDNUIsWUFBb0IsT0FBZ0MsU0FBUztRQUF6QyxTQUFJLEdBQUosSUFBSSxDQUFxQztJQUFHLENBQUM7SUFFakUsUUFBUSxDQUFDLEtBQVc7O1FBQ2xCLE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO1FBQ2pELE1BQU0sSUFBSSxHQUE0QixVQUFJLENBQUMsSUFBSSxtQ0FBSyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBUyxDQUFDO1FBRWhGLE1BQU0sTUFBTSxHQUEyQixFQUFFLENBQUM7UUFDMUMsS0FBSyxNQUFNLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUN2QixNQUFNLENBQUMsR0FBRyxDQUFDLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQzVCLENBQUM7UUFDRCxNQUFNLE1BQU0sR0FBRyxNQ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lZDogSnNvbmlmeTxSZWNvcmQ8c3RyaW5nLCBuZXZlcj4+OyBzZWNyZXQ6IEpzb25pZnk8RGF0YT4gfSB7XG4gICAgY29uc3QgcGlja01lID0gSlNPTi5wYXJzZShKU09OLnN0cmluZ2lmeSh2YWx1ZSkpO1xuICAgIGNvbnN0IGtleXM6IChrZXlvZiBKc29uaWZ5PERhdGE+KVtdID0gdGhpcy5rZXlzID8/IChPYmplY3Qua2V5cyhwaWNrTWUpIGFzIGFueSk7XG5cbiAgICBjb25zdCBwaWNrZWQ6IFBhcnRpYWw8SnNvbmlmeTxEYXRhPj4gPSB7fTtcbiAgICBmb3IgKGNvbnN0IGtleSBvZiBrZXlzKSB7XG4gICAgICBwaWNrZWRba2V5XSA9IHBpY2tNZVtrZXldO1xuICAgIH1cbiAgICBjb25zdCBzZWNyZXQgPSBwaWNrZWQgYXMgSnNvbmlmeTxEYXRhPjtcblxuICAgIHJldHVybiB7IGRpc2Nsb3NlZDogbnVsbCwgc2VjcmV0IH07XG4gIH1cblxuICBkZWNsYXNzaWZ5KF9kaXNjbG9zZWQ6IEpzb25pZnk8UmVjb3JkPGtleW9mIERhdGEsIG5ldmVyPj4sIHNlY3JldDogSnNvbmlmeTxEYXRhPikge1xuICAgIGNvbnN0IHJlc3VsdDogUGFydGlhbDxKc29uaWZ5PERhdGE+PiA9IHt9O1xuICAgIGNvbnN0IGtleXM6IChrZXlvZiBKc29uaWZ5PERhdGE+KVtdID0gdGhpcy5rZXlzID8/IChPYmplY3Qua2V5cyhzZWNyZXQpIGFzIGFueSk7XG5cbiAgICBmb3IgKGNvbnN0IGtleSBvZiBrZXlzKSB7XG4gICAgICByZXN1bHRba2V5XSA9IHNlY3JldFtrZXldO1xuICAgIH1cblxuICAgIHJldHVybiByZXN1bHQgYXMgSnNvbmlmeTxEYXRhPjtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/private-classifier.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/public-classifier.ts":
/*!********************************************************!*\
  !*** ../../libs/common/src/tools/public-classifier.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PublicClassifier: () => (/* binding */ PublicClassifier)\n/* harmony export */ });\nclass PublicClassifier {\n    constructor(keys) {\n        this.keys = keys;\n    }\n    classify(value) {\n        const pickMe = JSON.parse(JSON.stringify(value));\n        const picked = {};\n        for (const key of this.keys) {\n            picked[key] = pickMe[key];\n        }\n        const disclosed = picked;\n        return { disclosed, secret: null };\n    }\n    declassify(disclosed, _secret) {\n        const result = {};\n        for (const key of this.keys) {\n            result[key] = disclosed[key];\n        }\n        return result;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3B1YmxpYy1jbGFzc2lmaWVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFJTyxNQUFNLGdCQUFnQjtJQUMzQixZQUFvQixJQUE2QjtRQUE3QixTQUFJLEdBQUosSUFBSSxDQUF5QjtJQUFHLENBQUM7SUFFckQsUUFBUSxDQUFDLEtBQVc7UUFDbEIsTUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7UUFFakQsTUFBTSxNQUFNLEdBQTJCLEVBQUUsQ0FBQztRQUMxQyxLQUFLLE1BQU0sR0FBRyxJQUFJLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztZQUM1QixNQUFNLENBQUMsR0FBRyxDQUFDLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQzVCLENBQUM7UU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1xuICAgIGNvbnN0IHBpY2tNZSA9IEpTT04ucGFyc2UoSlNPTi5zdHJpbmdpZnkodmFsdWUpKTtcblxuICAgIGNvbnN0IHBpY2tlZDogUGFydGlhbDxKc29uaWZ5PERhdGE+PiA9IHt9O1xuICAgIGZvciAoY29uc3Qga2V5IG9mIHRoaXMua2V5cykge1xuICAgICAgcGlja2VkW2tleV0gPSBwaWNrTWVba2V5XTtcbiAgICB9XG4gICAgY29uc3QgZGlzY2xvc2VkID0gcGlja2VkIGFzIEpzb25pZnk8RGF0YT47XG5cbiAgICByZXR1cm4geyBkaXNjbG9zZWQsIHNlY3JldDogbnVsbCB9O1xuICB9XG5cbiAgZGVjbGFzc2lmeShkaXNjbG9zZWQ6IEpzb25pZnk8RGF0YT4sIF9zZWNyZXQ6IEpzb25pZnk8UmVjb3JkPGtleW9mIERhdGEsIG5ldmVyPj4pIHtcbiAgICBjb25zdCByZXN1bHQ6IFBhcnRpYWw8SnNvbmlmeTxEYXRhPj4gPSB7fTtcblxuICAgIGZvciAoY29uc3Qga2V5IG9mIHRoaXMua2V5cykge1xuICAgICAgcmVzdWx0W2tleV0gPSBkaXNjbG9zZWRba2V5XTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmVzdWx0IGFzIEpzb25pZnk8RGF0YT47XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/public-classifier.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/rx.ts":
/*!*****************************************!*\
  !*** ../../libs/common/src/tools/rx.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   anyComplete: () => (/* binding */ anyComplete),\n/* harmony export */   distinctIfShallowMatch: () => (/* binding */ distinctIfShallowMatch),\n/* harmony export */   on: () => (/* binding */ on),\n/* harmony export */   ready: () => (/* binding */ ready),\n/* harmony export */   reduceCollection: () => (/* binding */ reduceCollection),\n/* harmony export */   withLatestReady: () => (/* binding */ withLatestReady)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * An observable operator that reduces an emitted collection to a single object,\n * returning a default if all items are ignored.\n * @param reduce The reduce function to apply to the filtered collection. The\n *  first argument is the accumulator, and the second is the current item. The\n *  return value is the new accumulator.\n * @param defaultValue The default value to return if the collection is empty. The\n *   default value is also the initial value of the accumulator.\n */\nfunction reduceCollection(reduce, defaultValue) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((values) => {\n        const reduced = (values !== null && values !== void 0 ? values : []).reduce(reduce, structuredClone(defaultValue));\n        return reduced;\n    });\n}\n/**\n * An observable operator that emits distinct values by checking that all\n *   values in the previous entry match the next entry. This method emits\n *   when a key is added and does not when a key is removed.\n * @remarks This method checks objects. It does not check items in arrays.\n */\nfunction distinctIfShallowMatch() {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)((previous, current) => {\n        let isDistinct = true;\n        for (const key in current) {\n            isDistinct && (isDistinct = previous[key] === current[key]);\n        }\n        return isDistinct;\n    });\n}\n/** Create an observable that, once subscribed, emits `true` then completes when\n *   any input completes. If an input is already complete when the subscription\n *   occurs, it emits immediately.\n *  @param watch$ the observable(s) to watch for completion; if an array is passed,\n *   null and undefined members are ignored. If `watch$` is empty, `anyComplete`\n *   will never complete.\n *  @returns An observable that emits `true` when any of its inputs\n *   complete. The observable forwards the first error from its input.\n *  @remarks This method is particularly useful in combination with `takeUntil` and\n *   streams that are not guaranteed to complete on their own.\n */\nfunction anyComplete(watch$) {\n    if (Array.isArray(watch$)) {\n        const completes$ = watch$\n            .filter((w$) => !!w$)\n            .map((w$) => w$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.ignoreElements)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.endWith)(true)));\n        const completed$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.race)(completes$);\n        return completed$;\n    }\n    else {\n        return watch$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.ignoreElements)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.endWith)(true));\n    }\n}\n/**\n * Create an observable that delays the input stream until all watches have\n *  emitted a value. The watched values are not included in the source stream.\n *  The last emission from the source is output when all the watches have\n *  emitted at least once.\n * @param watch$ the observable(s) to watch for readiness. If `watch$` is empty,\n *  `ready` will never emit.\n * @returns An observable that emits when the source stream emits. The observable\n *   errors if one of its watches completes before emitting. It also errors if one\n *   of its watches errors.\n */\nfunction ready(watch$) {\n    const watching$ = Array.isArray(watch$) ? watch$ : [watch$];\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.connect)((source$) => {\n        // this subscription is safe because `source$` connects only after there\n        // is an external subscriber.\n        const source = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        source$.subscribe(source);\n        // `concat` is subscribed immediately after it's returned, at which point\n        // `zip` blocks until all items in `watching$` are ready. If that occurs\n        // after `source$` is hot, then the replay subject sends the last-captured\n        // emission through immediately. Otherwise, `ready` waits for the next\n        // emission\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.zip)(watching$).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.first)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.ignoreElements)()), source).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)(anyComplete(source)));\n    }));\n}\nfunction withLatestReady(watch$) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.connect)((source$) => {\n        // these subscriptions are safe because `source$` connects only after there\n        // is an external subscriber.\n        const source = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        source$.subscribe(source);\n        const watch = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        watch$.subscribe(watch);\n        // `concat` is subscribed immediately after it's returned, at which point\n        // `zip` blocks until all items in `watching$` are ready. If that occurs\n        // after `source$` is hot, then the replay subject sends the last-captured\n        // emission through immediately. Otherwise, `ready` waits for the next\n        // emission\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.zip)(watch).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.first)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.ignoreElements)()), source).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.withLatestFrom)(watch), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)(anyComplete(source)));\n    });\n}\n/**\n * Create an observable that emits the latest value of the source stream\n *  when `watch$` emits. If `watch$` emits before the stream emits, then\n *  an emission occurs as soon as a value becomes ready.\n * @param watch$ the observable that triggers emissions\n * @returns An observable that emits when `watch$` emits. The observable\n *  errors if its source stream errors. It also errors if `on` errors. It\n *  completes if its watch completes.\n *\n * @remarks This works like `audit`, but it repeats emissions when\n *  watch$ fires.\n */\nfunction on(watch$) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.connect)((source$) => {\n        const source = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        source$.subscribe(source);\n        return watch$\n            .pipe(ready(source), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)(() => source.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.first)())))\n            .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)(anyComplete(source)));\n    }));\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11928 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/rx.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/enums/send-type.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/tools/send/enums/send-type.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendType: () => (/* binding */ SendType)\n/* harmony export */ });\nvar SendType;\n(function (SendType) {\n    SendType[SendType[\"Text\"] = 0] = \"Text\";\n    SendType[SendType[\"File\"] = 1] = \"File\";\n})(SendType || (SendType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvZW51bXMvc2VuZC10eXBlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLFFBR1g7QUFIRCxXQUFZLFFBQVE7SUFDbEIsdUNBQVE7SUFDUix1Q0FBUTtBQUNWLENBQUMsRUFIVyxRQUFRLEtBQVIsUUFBUSxRQUduQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9zZW5kL2VudW1zL3NlbmQtdHlwZS50cz80Yzc2Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFNlbmRUeXBlIHtcbiAgVGV4dCA9IDAsXG4gIEZpbGUgPSAxLFxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/enums/send-type.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/api/send-file.api.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/api/send-file.api.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFileApi: () => (/* binding */ SendFileApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SendFileApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.id = this.getResponseProperty(\"Id\");\n        this.fileName = this.getResponseProperty(\"FileName\");\n        this.size = this.getResponseProperty(\"Size\");\n        this.sizeName = this.getResponseProperty(\"SizeName\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL2FwaS9zZW5kLWZpbGUuYXBpLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXlFO0FBRWxFLE1BQU0sV0FBWSxTQUFRLHdFQUFZO0lBTTNDLFlBQVksT0FBWSxJQUFJO1FBQzFCLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNaLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2pCLE9BQU87UUFDVCxDQUFDO1FBQ0QsSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDekMsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDckQsSUFBSSxDQUFD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CJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/api/send-file.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/api/send-text.api.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/api/send-text.api.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendTextApi: () => (/* binding */ SendTextApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SendTextApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.text = this.getResponseProperty(\"Text\");\n        this.hidden = this.getResponseProperty(\"Hidden\") || false;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL2FwaS9zZW5kLXRleHQuYXBpLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXlFO0FBRWxFLE1BQU0sV0FBWSxTQUFRLHdFQUFZO0lBSTNDLFlBQVksT0FBWSxJQUFJO1FBQzFCLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNaLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2pCLE9BQU87UUFDVCxDQUFDO1FBQ0QsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDN0MsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLElBQUksS0FBSyxDQUFDO0lBQzVELENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9zZW5kL21vZGVscy9hcGkvc2VuZC10ZXh0LmFwaS50cz8zMjFlIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgU2VuZFRleHRBcGkgZXh0ZW5kcyBCYXNlUmVzcG9uc2Uge1xuICB0ZXh0OiBzdHJpbmc7XG4gIGhpZGRlbjogYm9vbGVhbjtcblxuICBjb25zdHJ1Y3RvcihkYXRhOiBhbnkgPSBudWxsKSB7XG4gICAgc3VwZXIoZGF0YSk7XG4gICAgaWYgKGRhdGEgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB0aGlzLnRleHQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUZXh0XCIpO1xuICAgIHRoaXMuaGlkZGVuID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiSGlkZGVuXCIpIHx8IGZhbHNlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/api/send-text.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/data/send-file.data.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/data/send-file.data.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFileData: () => (/* binding */ SendFileData)\n/* harmony export */ });\nclass SendFileData {\n    constructor(data) {\n        if (data == null) {\n            return;\n        }\n        this.id = data.id;\n        this.fileName = data.fileName;\n        this.size = data.size;\n        this.sizeName = data.sizeName;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL2RhdGEvc2VuZC1maWxlLmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sWUFBWTtJQU12QixZQUFZLElBQWtCO1FBQzVCLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2pCLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDO1FBQ2xCLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQztRQUM5QixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDdEIsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQ2hDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9zZW5kL21vZGVscy9kYXRhL3NlbmQtZmlsZS5kYXRhLnRzPzU4MjYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VuZEZpbGVBcGkgfSBmcm9tIFwiLi4vYXBpL3NlbmQtZmlsZS5hcGlcIjtcblxuZXhwb3J0IGNsYXNzIFNlbmRGaWxlRGF0YSB7XG4gIGlkOiBzdHJpbmc7XG4gIGZpbGVOYW1lOiBzdHJpbmc7XG4gIHNpemU6IHN0cmluZztcbiAgc2l6ZU5hbWU6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogU2VuZEZpbGVBcGkpIHtcbiAgICBpZiAoZGF0YSA9PSBudWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy5pZCA9IGRhdGEuaWQ7XG4gICAgdGhpcy5maWxlTmFtZSA9IGRhdGEuZmlsZU5hbWU7XG4gICAgdGhpcy5zaXplID0gZGF0YS5zaXplO1xuICAgIHRoaXMuc2l6ZU5hbWUgPSBkYXRhLnNpemVOYW1lO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/data/send-file.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/data/send-text.data.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/data/send-text.data.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendTextData: () => (/* binding */ SendTextData)\n/* harmony export */ });\nclass SendTextData {\n    constructor(data) {\n        if (data == null) {\n            return;\n        }\n        this.text = data.text;\n        this.hidden = data.hidden;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL2RhdGEvc2VuZC10ZXh0LmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sWUFBWTtJQUl2QixZQUFZLElBQWtCO1FBQzVCLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2pCLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQ3RCLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUM1QixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdG9vbHMvc2VuZC9tb2RlbHMvZGF0YS9zZW5kLXRleHQuZGF0YS50cz9jYzgyIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlbmRUZXh0QXBpIH0gZnJvbSBcIi4uL2FwaS9zZW5kLXRleHQuYXBpXCI7XG5cbmV4cG9ydCBjbGFzcyBTZW5kVGV4dERhdGEge1xuICB0ZXh0OiBzdHJpbmc7XG4gIGhpZGRlbjogYm9vbGVhbjtcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogU2VuZFRleHRBcGkpIHtcbiAgICBpZiAoZGF0YSA9PSBudWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy50ZXh0ID0gZGF0YS50ZXh0O1xuICAgIHRoaXMuaGlkZGVuID0gZGF0YS5oaWRkZW47XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/data/send-text.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/data/send.data.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/data/send.data.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendData: () => (/* binding */ SendData)\n/* harmony export */ });\n/* harmony import */ var _enums_send_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _send_file_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./send-file.data */ \"../../libs/common/src/tools/send/models/data/send-file.data.ts\");\n/* harmony import */ var _send_text_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./send-text.data */ \"../../libs/common/src/tools/send/models/data/send-text.data.ts\");\n\n\n\nclass SendData {\n    constructor(response) {\n        if (response == null) {\n            return;\n        }\n        this.id = response.id;\n        this.accessId = response.accessId;\n        this.type = response.type;\n        this.name = response.name;\n        this.notes = response.notes;\n        this.key = response.key;\n        this.maxAccessCount = response.maxAccessCount;\n        this.accessCount = response.accessCount;\n        this.revisionDate = response.revisionDate;\n        this.expirationDate = response.expirationDate;\n        this.deletionDate = response.deletionDate;\n        this.password = response.password;\n        this.disabled = response.disable;\n        this.hideEmail = response.hideEmail;\n        switch (this.type) {\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.Text:\n                this.text = new _send_text_data__WEBPACK_IMPORTED_MODULE_2__.SendTextData(response.text);\n                break;\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.File:\n                this.file = new _send_file_data__WEBPACK_IMPORTED_MODULE_1__.SendFileData(response.file);\n                break;\n            default:\n                break;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL2RhdGEvc2VuZC5kYXRhLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBaUQ7QUFHRDtBQUNBO0FBRXpDLE1BQU0sUUFBUTtJQWtCbkIsWUFBWSxRQUF1QjtRQUNqQyxJQUFJLFFBQVEsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNyQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxFQUFFLEdBQUcsUUFBUSxDQUFDLEVBQUUsQ0FBQztRQUN0QixJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0F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U2VuZEZpbGVEYXRhKHJlc3BvbnNlLmZpbGUpO1xuICAgICAgICBicmVhaztcbiAgICAgIGRlZmF1bHQ6XG4gICAgICAgIGJyZWFrO1xuICAgIH1cbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/data/send.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/domain/send-access.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/domain/send-access.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendAccess: () => (/* binding */ SendAccess)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _enums_send_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _view_send_access_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../view/send-access.view */ \"../../libs/common/src/tools/send/models/view/send-access.view.ts\");\n/* harmony import */ var _send_file__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./send-file */ \"../../libs/common/src/tools/send/models/domain/send-file.ts\");\n/* harmony import */ var _send_text__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./send-text */ \"../../libs/common/src/tools/send/models/domain/send-text.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass SendAccess extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            id: null,\n            name: null,\n            expirationDate: null,\n            creatorIdentifier: null,\n        }, [\"id\", \"expirationDate\", \"creatorIdentifier\"]);\n        this.type = obj.type;\n        switch (this.type) {\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.Text:\n                this.text = new _send_text__WEBPACK_IMPORTED_MODULE_4__.SendText(obj.text);\n                break;\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File:\n                this.file = new _send_file__WEBPACK_IMPORTED_MODULE_3__.SendFile(obj.file);\n                break;\n            default:\n                break;\n        }\n    }\n    decrypt(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const model = new _view_send_access_view__WEBPACK_IMPORTED_MODULE_2__.SendAccessView(this);\n            yield this.decryptObj(model, {\n                name: null,\n            }, null, key);\n            switch (this.type) {\n                case _enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.File:\n                    model.file = yield this.file.decrypt(key);\n                    break;\n                case _enums_send_type__WEBPACK_IMPORTED_MODULE_1__.SendType.Text:\n                    model.text = yield this.text.decrypt(key);\n                    break;\n                default:\n                    break;\n            }\n            return model;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4416 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/domain/send-access.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/domain/send-file.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/domain/send-file.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFile: () => (/* binding */ SendFile)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _view_send_file_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../view/send-file.view */ \"../../libs/common/src/tools/send/models/view/send-file.view.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass SendFile extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.size = obj.size;\n        this.buildDomainModel(this, obj, {\n            id: null,\n            sizeName: null,\n            fileName: null,\n        }, [\"id\", \"sizeName\"]);\n    }\n    decrypt(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const view = yield this.decryptObj(new _view_send_file_view__WEBPACK_IMPORTED_MODULE_2__.SendFileView(this), {\n                fileName: null,\n            }, null, key);\n            return view;\n        });\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return Object.assign(new SendFile(), obj, {\n            fileName: _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.fileName),\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL2RvbWFpbi9zZW5kLWZpbGUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUVvRTtBQUNNO0FBR3BCO0FBRS9DLE1BQU0sUUFBUyxTQUFRLDJFQUFNO0lBTWxDLFlBQVksR0FBa0I7UUFDNUIsS0FBSyxFQUFFLENBQUM7UUFDUixJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNoQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQztRQUNyQixJQUFJLENBQUMsZ0JBQWdCLENBQ25CLElBQUksRUFDSixHQUFHLEVBQ0g7WUFDRSxFQUFFLEVBQUUsSUFBSTtZQUNSLFFBQVEsRUFBRSxJQUFJO1lBQ2QsUUFBUSxFQUFFLElBQUk7U0FDZixFQUNELENBQUMsSUFBSSxFQUFFLFVBQVUsQ0FBQyxDQUNuQixDQUFDO0lBQ0osQ0FBQztJQUVLLE9BQU8sQ0FBQyxHQUF1Qjs7WUFDbkMsTUFBTSxJQUFJLEdBQUcsTUFBTSxJQUFJLENBQUMsVUFBVSxDQUNoQyxJQUFJLDhEQUFZLENBQUMsSUFBSSxDQUFDLEVBQ3RCO2dCQUNFLFFBQVEsRUFBRSxJQUFJO2FBQ2YsRUFDRCxJQUFJLEVBQ0osR0FBRyxDQUNKLENBQUM7WUFDRixPQUFPLElBQUksQ0FBQztRQUNkLENBQUM7S0FB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ouZmlsZU5hbWUpLFxuICAgIH0pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/domain/send-file.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/domain/send-text.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/domain/send-text.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendText: () => (/* binding */ SendText)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _view_send_text_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../view/send-text.view */ \"../../libs/common/src/tools/send/models/view/send-text.view.ts\");\n\n\n\nclass SendText extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.hidden = obj.hidden;\n        this.buildDomainModel(this, obj, {\n            text: null,\n        }, []);\n    }\n    decrypt(key) {\n        return this.decryptObj(new _view_send_text_view__WEBPACK_IMPORTED_MODULE_2__.SendTextView(this), {\n            text: null,\n        }, null, key);\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return Object.assign(new SendText(), obj, {\n            text: _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.text),\n        });\n    }\n}\n//# sourceURL=[module]\n//# sour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oaXMsXG4gICAgICBvYmosXG4gICAgICB7XG4gICAgICAgIHRleHQ6IG51bGwsXG4gICAgICB9LFxuICAgICAgW10sXG4gICAgKTtcbiAgfVxuXG4gIGRlY3J5cHQoa2V5OiBTeW1tZXRyaWNDcnlwdG9LZXkpOiBQcm9taXNlPFNlbmRUZXh0Vmlldz4ge1xuICAgIHJldHVybiB0aGlzLmRlY3J5cHRPYmooXG4gICAgICBuZXcgU2VuZFRleHRWaWV3KHRoaXMpLFxuICAgICAge1xuICAgICAgICB0ZXh0OiBudWxsLFxuICAgICAgfSxcbiAgICAgIG51bGwsXG4gICAgICBrZXksXG4gICAgKTtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IEpzb25pZnk8U2VuZFRleHQ+KSB7XG4gICAgaWYgKG9iaiA9PSBudWxsKSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICByZXR1cm4gT2JqZWN0LmFzc2lnbihuZXcgU2VuZFRleHQoKSwgb2JqLCB7XG4gICAgICB0ZXh0OiBFbmNTdHJpbmcuZnJvbUpTT04ob2JqLnRleHQpLFxuICAgIH0pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/domain/send-text.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/domain/send.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/domain/send.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Send: () => (/* binding */ Send)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _enums_send_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _view_send_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../view/send.view */ \"../../libs/common/src/tools/send/models/view/send.view.ts\");\n/* harmony import */ var _send_file__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./send-file */ \"../../libs/common/src/tools/send/models/domain/send-file.ts\");\n/* harmony import */ var _send_text__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./send-text */ \"../../libs/common/src/tools/send/models/domain/send-text.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\nclass Send extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            id: null,\n            accessId: null,\n            name: null,\n            notes: null,\n            key: null,\n        }, [\"id\", \"accessId\"]);\n        this.type = obj.type;\n        this.maxAccessCount = obj.maxAccessCount;\n        this.accessCount = obj.accessCount;\n        this.password = obj.password;\n        this.disabled = obj.disabled;\n        this.revisionDate = obj.revisionDate != null ? new Date(obj.revisionDate) : null;\n        this.deletionDate = obj.deletionDate != null ? new Date(obj.deletionDate) : null;\n        this.expirationDate = obj.expirationDate != null ? new Date(obj.expirationDate) : null;\n        this.hideEmail = obj.hideEmail;\n        switch (this.type) {\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.Text:\n                this.text = new _send_text__WEBPACK_IMPORTED_MODULE_6__.SendText(obj.text);\n                break;\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.File:\n                this.file = new _send_file__WEBPACK_IMPORTED_MODULE_5__.SendFile(obj.file);\n                break;\n            default:\n                break;\n        }\n    }\n    decrypt() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const model = new _view_send_view__WEBPACK_IMPORTED_MODULE_4__.SendView(this);\n            const keyService = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getContainerService().getKeyService();\n            const encryptService = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getContainerService().getEncryptService();\n            try {\n                const sendKeyEncryptionKey = yield keyService.getUserKey();\n                model.key = yield encryptService.decryptToBytes(this.key, sendKeyEncryptionKey);\n                model.cryptoKey = yield keyService.makeSendKey(model.key);\n            }\n            catch (e) {\n                // TODO: error?\n            }\n            yield this.decryptObj(model, {\n                name: null,\n                notes: null,\n            }, null, model.cryptoKey);\n            switch (this.type) {\n                case _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.File:\n                    model.file = yield this.file.decrypt(model.cryptoKey);\n                    break;\n                case _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.Text:\n                    model.text = yield this.text.decrypt(model.cryptoKey);\n                    break;\n                default:\n                    break;\n            }\n            return model;\n        });\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const revisionDate = obj.revisionDate == null ? null : new Date(obj.revisionDate);\n        const expirationDate = obj.expirationDate == null ? null : new Date(obj.expirationDate);\n        const deletionDate = obj.deletionDate == null ? null : new Date(obj.deletionDate);\n        return Object.assign(new Send(), obj, {\n            key: _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.key),\n            name: _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.name),\n            notes: _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.notes),\n            text: _send_text__WEBPACK_IMPORTED_MODULE_6__.SendText.fromJSON(obj.text),\n            file: _send_file__WEBPACK_IMPORTED_MODULE_5__.SendFile.fromJSON(obj.file),\n            revisionDate,\n            expirationDate,\n            deletionDate,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9312 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/domain/send.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/request/send-access.request.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/request/send-access.request.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendAccessRequest: () => (/* binding */ SendAccessRequest)\n/* harmony export */ });\nclass SendAccessRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3JlcXVlc3Qvc2VuZC1hY2Nlc3MucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxpQkFBaUI7Q0FFN0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdG9vbHMvc2VuZC9tb2RlbHMvcmVxdWVzdC9zZW5kLWFjY2Vzcy5yZXF1ZXN0LnRzP2QxNzgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFNlbmRBY2Nlc3NSZXF1ZXN0IHtcbiAgcGFzc3dvcmQ6IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/request/send-access.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/request/send-with-id.request.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/request/send-with-id.request.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendWithIdRequest: () => (/* binding */ SendWithIdRequest)\n/* harmony export */ });\n/* harmony import */ var _send_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./send.request */ \"../../libs/common/src/tools/send/models/request/send.request.ts\");\n\nclass SendWithIdRequest extends _send_request__WEBPACK_IMPORTED_MODULE_0__.SendRequest {\n    constructor(send) {\n        super(send);\n        this.id = send.id;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3JlcXVlc3Qvc2VuZC13aXRoLWlkLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFFNkM7QUFFdEMsTUFBTSxpQkFBa0IsU0FBUSxzREFBVztJQUdoRCxZQUFZLElBQVU7UUFDcEIsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ1osSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFDO0lBQ3BCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9zZW5kL21vZGVscy9yZXF1ZXN0L3NlbmQtd2l0aC1pZC5yZXF1ZXN0LnRzP2E4YTAiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VuZCB9IGZyb20gXCIuLi9kb21haW4vc2VuZFwiO1xuXG5pbXBvcnQgeyBTZW5kUmVxdWVzdCB9IGZyb20gXCIuL3NlbmQucmVxdWVzdFwiO1xuXG5leHBvcnQgY2xhc3MgU2VuZFdpdGhJZFJlcXVlc3QgZXh0ZW5kcyBTZW5kUmVxdWVzdCB7XG4gIGlkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3Ioc2VuZDogU2VuZCkge1xuICAgIHN1cGVyKHNlbmQpO1xuICAgIHRoaXMuaWQgPSBzZW5kLmlkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/request/send-with-id.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/request/send.request.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/request/send.request.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendRequest: () => (/* binding */ SendRequest)\n/* harmony export */ });\n/* harmony import */ var _enums_send_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _api_send_file_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/send-file.api */ \"../../libs/common/src/tools/send/models/api/send-file.api.ts\");\n/* harmony import */ var _api_send_text_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../api/send-text.api */ \"../../libs/common/src/tools/send/models/api/send-text.api.ts\");\n\n\n\nclass SendRequest {\n    constructor(send, fileLength) {\n        this.type = send.type;\n        this.fileLength = fileLength;\n        this.name = send.name ? send.name.encryptedString : null;\n        this.notes = send.notes ? send.notes.encryptedString : null;\n        this.maxAccessCount = send.maxAccessCount;\n        this.expirationDate = send.expirationDate != null ? send.expirationDate.toISOString() : null;\n        this.deletionDate = send.deletionDate != null ? send.deletionDate.toISOString() : null;\n        this.key = send.key != null ? send.key.encryptedString : null;\n        this.password = send.password;\n        this.disabled = send.disabled;\n        this.hideEmail = send.hideEmail;\n        switch (this.type) {\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.Text:\n                this.text = new _api_send_text_api__WEBPACK_IMPORTED_MODULE_2__.SendTextApi();\n                this.text.text = send.text.text != null ? send.text.text.encryptedString : null;\n                this.text.hidden = send.text.hidden;\n                break;\n            case _enums_send_type__WEBPACK_IMPORTED_MODULE_0__.SendType.File:\n                this.file = new _api_send_file_api__WEBPACK_IMPORTED_MODULE_1__.SendFileApi();\n                this.file.fileName = send.file.fileName != null ? send.file.fileName.encryptedString : null;\n                break;\n            default:\n                break;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4572 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/request/send.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/response/send-access.response.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/response/send-access.response.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendAccessResponse: () => (/* binding */ SendAccessResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _api_send_file_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/send-file.api */ \"../../libs/common/src/tools/send/models/api/send-file.api.ts\");\n/* harmony import */ var _api_send_text_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../api/send-text.api */ \"../../libs/common/src/tools/send/models/api/send-text.api.ts\");\n\n\n\nclass SendAccessResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.name = this.getResponseProperty(\"Name\");\n        const text = this.getResponseProperty(\"Text\");\n        if (text != null) {\n            this.text = new _api_send_text_api__WEBPACK_IMPORTED_MODULE_2__.SendTextApi(text);\n        }\n        const file = this.getResponseProperty(\"File\");\n        if (file != null) {\n            this.file = new _api_send_file_api__WEBPACK_IMPORTED_MODULE_1__.SendFileApi(file);\n        }\n        this.expirationDate = this.getResponseProperty(\"ExpirationDate\");\n        this.creatorIdentifier = this.getResponseProperty(\"CreatorIdentifier\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3Jlc3BvbnNlL3NlbmQtYWNjZXNzLnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBeUU7QUFFdEI7QUFDQTtBQUU1QyxNQUFNLGtCQUFtQixTQUFRLHdFQUFZO0lBU2xELFlBQVksUUFBYTtRQUN2QixLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7UUFDaEIsSUFBSSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQU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ChmaWxlICE9IG51bGwpIHtcbiAgICAgIHRoaXMuZmlsZSA9IG5ldyBTZW5kRmlsZUFwaShmaWxlKTtcbiAgICB9XG5cbiAgICB0aGlzLmV4cGlyYXRpb25EYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiRXhwaXJhdGlvbkRhdGVcIik7XG4gICAgdGhpcy5jcmVhdG9ySWRlbnRpZmllciA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkNyZWF0b3JJZGVudGlmaWVyXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/response/send-access.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/response/send-file-download-data.response.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/response/send-file-download-data.response.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFileDownloadDataResponse: () => (/* binding */ SendFileDownloadDataResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SendFileDownloadDataResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = null;\n        this.url = null;\n        this.id = this.getResponseProperty(\"Id\");\n        this.url = this.getResponseProperty(\"Url\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3Jlc3BvbnNlL3NlbmQtZmlsZS1kb3dubG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CJVcmxcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/response/send-file-download-data.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/response/send-file-upload-data.response.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/response/send-file-upload-data.response.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFileUploadDataResponse: () => (/* binding */ SendFileUploadDataResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _send_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./send.response */ \"../../libs/common/src/tools/send/models/response/send.response.ts\");\n\n\nclass SendFileUploadDataResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.url = null;\n        this.fileUploadType = this.getResponseProperty(\"FileUploadType\");\n        const sendResponse = this.getResponseProperty(\"SendResponse\");\n        this.sendResponse = sendResponse == null ? null : new _send_response__WEBPACK_IMPORTED_MODULE_1__.SendResponse(sendResponse);\n        this.url = this.getResponseProperty(\"Url\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3Jlc3BvbnNlL3NlbmQtZmlsZS11cGxvYWQtZGF0YS5yZXNwb25zZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBeUU7QUFHMUI7QUFFeEMsTUFBTSwwQ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RzIEJhc2VSZXNwb25zZSB7XG4gIGZpbGVVcGxvYWRUeXBlOiBGaWxlVXBsb2FkVHlwZTtcbiAgc2VuZFJlc3BvbnNlOiBTZW5kUmVzcG9uc2U7XG4gIHVybDogc3RyaW5nID0gbnVsbDtcbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IGFueSkge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICB0aGlzLmZpbGVVcGxvYWRUeXBlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiRmlsZVVwbG9hZFR5cGVcIik7XG4gICAgY29uc3Qgc2VuZFJlc3BvbnNlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiU2VuZFJlc3BvbnNlXCIpO1xuICAgIHRoaXMuc2VuZFJlc3BvbnNlID0gc2VuZFJlc3BvbnNlID09IG51bGwgPyBudWxsIDogbmV3IFNlbmRSZXNwb25zZShzZW5kUmVzcG9uc2UpO1xuICAgIHRoaXMudXJsID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVXJsXCIpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/response/send-file-upload-data.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/response/send.response.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/response/send.response.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendResponse: () => (/* binding */ SendResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _api_send_file_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/send-file.api */ \"../../libs/common/src/tools/send/models/api/send-file.api.ts\");\n/* harmony import */ var _api_send_text_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../api/send-text.api */ \"../../libs/common/src/tools/send/models/api/send-text.api.ts\");\n\n\n\nclass SendResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.accessId = this.getResponseProperty(\"AccessId\");\n        this.type = this.getResponseProperty(\"Type\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.notes = this.getResponseProperty(\"Notes\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.maxAccessCount = this.getResponseProperty(\"MaxAccessCount\");\n        this.accessCount = this.getResponseProperty(\"AccessCount\");\n        this.revisionDate = this.getResponseProperty(\"RevisionDate\");\n        this.expirationDate = this.getResponseProperty(\"ExpirationDate\");\n        this.deletionDate = this.getResponseProperty(\"DeletionDate\");\n        this.password = this.getResponseProperty(\"Password\");\n        this.disable = this.getResponseProperty(\"Disabled\") || false;\n        this.hideEmail = this.getResponseProperty(\"HideEmail\") || false;\n        const text = this.getResponseProperty(\"Text\");\n        if (text != null) {\n            this.text = new _api_send_text_api__WEBPACK_IMPORTED_MODULE_2__.SendTextApi(text);\n        }\n        const file = this.getResponseProperty(\"File\");\n        if (file != null) {\n            this.file = new _api_send_file_api__WEBPACK_IMPORTED_MODULE_1__.SendFileApi(file);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4584 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/response/send.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/view/send-access.view.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/view/send-access.view.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendAccessView: () => (/* binding */ SendAccessView)\n/* harmony export */ });\n/* harmony import */ var _send_file_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./send-file.view */ \"../../libs/common/src/tools/send/models/view/send-file.view.ts\");\n/* harmony import */ var _send_text_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./send-text.view */ \"../../libs/common/src/tools/send/models/view/send-text.view.ts\");\n\n\nclass SendAccessView {\n    constructor(s) {\n        this.id = null;\n        this.name = null;\n        this.type = null;\n        this.text = new _send_text_view__WEBPACK_IMPORTED_MODULE_1__.SendTextView();\n        this.file = new _send_file_view__WEBPACK_IMPORTED_MODULE_0__.SendFileView();\n        this.expirationDate = null;\n        this.creatorIdentifier = null;\n        if (!s) {\n            return;\n        }\n        this.id = s.id;\n        this.type = s.type;\n        this.expirationDate = s.expirationDate;\n        this.creatorIdentifier = s.creatorIdentifier;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3ZpZXcvc2VuZC1hY2Nlc3Mudmlldy50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFJZ0Q7QUFDQTtBQUV6QyxNQUFNLGNBQWM7SUFTekIsWUFBWSxDQUFjO1FBUjFCLE9BQUUsR0FBVyxJQUFJLENBQUM7UUFDbEIsU0FBSSxHQUFXLElBQUksQ0FBQztRQUNwQixTQUFJLEdBQWEsSUFBSSxDQUFDO1FBQ3RCLFNBQUksR0FBRyxJQUFJLHlEQUFZLEVBQUUsQ0FBQztRQUMxQixTQUFJLEdBQUcsSUFBSSx5REFBWSxFQUFFLENBQUM7UUFDMUIsbUJBQWMsR0FBUyxJQUFJLENBQUM7UUFDNUIsc0JBQWlCLEdBQVcsSUFBSSxD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mlldygpO1xuICBmaWxlID0gbmV3IFNlbmRGaWxlVmlldygpO1xuICBleHBpcmF0aW9uRGF0ZTogRGF0ZSA9IG51bGw7XG4gIGNyZWF0b3JJZGVudGlmaWVyOiBzdHJpbmcgPSBudWxsO1xuXG4gIGNvbnN0cnVjdG9yKHM/OiBTZW5kQWNjZXNzKSB7XG4gICAgaWYgKCFzKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy5pZCA9IHMuaWQ7XG4gICAgdGhpcy50eXBlID0gcy50eXBlO1xuICAgIHRoaXMuZXhwaXJhdGlvbkRhdGUgPSBzLmV4cGlyYXRpb25EYXRlO1xuICAgIHRoaXMuY3JlYXRvcklkZW50aWZpZXIgPSBzLmNyZWF0b3JJZGVudGlmaWVyO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/view/send-access.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/view/send-file.view.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/view/send-file.view.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendFileView: () => (/* binding */ SendFileView)\n/* harmony export */ });\nclass SendFileView {\n    constructor(f) {\n        this.id = null;\n        this.size = null;\n        this.sizeName = null;\n        this.fileName = null;\n        if (!f) {\n            return;\n        }\n        this.id = f.id;\n        this.size = f.size;\n        this.sizeName = f.sizeName;\n    }\n    get fileSize() {\n        try {\n            if (this.size != null) {\n                return parseInt(this.size, null);\n            }\n        }\n        catch (_a) {\n            // Invalid file size.\n        }\n        return 0;\n    }\n    static fromJSON(json) {\n        if (json == null) {\n            return null;\n        }\n        return Object.assign(new SendFileView(), json);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data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lIHNpemUuXG4gICAgfVxuICAgIHJldHVybiAwO1xuICB9XG5cbiAgc3RhdGljIGZyb21KU09OKGpzb246IERlZXBKc29uaWZ5PFNlbmRGaWxlVmlldz4pIHtcbiAgICBpZiAoanNvbiA9PSBudWxsKSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICByZXR1cm4gT2JqZWN0LmFzc2lnbihuZXcgU2VuZEZpbGVWaWV3KCksIGpzb24pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/view/send-file.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/view/send-text.view.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/view/send-text.view.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendTextView: () => (/* binding */ SendTextView)\n/* harmony export */ });\nclass SendTextView {\n    constructor(t) {\n        this.text = null;\n        if (!t) {\n            return;\n        }\n        this.hidden = t.hidden;\n    }\n    get maskedText() {\n        return this.text != null ? \"••••••••\" : null;\n    }\n    static fromJSON(json) {\n        if (json == null) {\n            return null;\n        }\n        return Object.assign(new SendTextView(), json);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvbW9kZWxzL3ZpZXcvc2VuZC10ZXh0LnZpZXcudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUlPLE1BQU0sWUFBWTtJQUl2QixZQUFZLENBQVk7UUFIeEIsU0FBSSxHQUFXLElBQUksQ0FBQztRQUlsQixJQUFJLENBQUMsQ0FBQyxFQUFFLENBQUM7WUFDUCxPQU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ldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLmhpZGRlbiA9IHQuaGlkZGVuO1xuICB9XG5cbiAgZ2V0IG1hc2tlZFRleHQoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy50ZXh0ICE9IG51bGwgPyBcIuKAouKAouKAouKAouKAouKAouKAouKAolwiIDogbnVsbDtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihqc29uOiBEZWVwSnNvbmlmeTxTZW5kVGV4dFZpZXc+KSB7XG4gICAgaWYgKGpzb24gPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24obmV3IFNlbmRUZXh0VmlldygpLCBqc29uKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/view/send-text.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/models/view/send.view.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/tools/send/models/view/send.view.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendView: () => (/* binding */ SendView)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _send_file_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./send-file.view */ \"../../libs/common/src/tools/send/models/view/send-file.view.ts\");\n/* harmony import */ var _send_text_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./send-text.view */ \"../../libs/common/src/tools/send/models/view/send-text.view.ts\");\n\n\n\n\nclass SendView {\n    constructor(s) {\n        this.id = null;\n        this.accessId = null;\n        this.name = null;\n        this.notes = null;\n        this.type = null;\n        this.text = new _send_text_view__WEBPACK_IMPORTED_MODULE_3__.SendTextView();\n        this.file = new _send_file_view__WEBPACK_IMPORTED_MODULE_2__.SendFileView();\n        this.maxAccessCount = null;\n        this.accessCount = 0;\n        this.revisionDate = null;\n        this.deletionDate = null;\n        this.expirationDate = null;\n        this.password = null;\n        this.disabled = false;\n        this.hideEmail = false;\n        if (!s) {\n            return;\n        }\n        this.id = s.id;\n        this.accessId = s.accessId;\n        this.type = s.type;\n        this.maxAccessCount = s.maxAccessCount;\n        this.accessCount = s.accessCount;\n        this.revisionDate = s.revisionDate;\n        this.deletionDate = s.deletionDate;\n        this.expirationDate = s.expirationDate;\n        this.disabled = s.disabled;\n        this.password = s.password;\n        this.hideEmail = s.hideEmail;\n    }\n    get urlB64Key() {\n        return _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToUrlB64(this.key);\n    }\n    get maxAccessCountReached() {\n        if (this.maxAccessCount == null) {\n            return false;\n        }\n        return this.accessCount >= this.maxAccessCount;\n    }\n    get expired() {\n        if (this.expirationDate == null) {\n            return false;\n        }\n        return this.expirationDate <= new Date();\n    }\n    get pendingDelete() {\n        return this.deletionDate <= new Date();\n    }\n    toJSON() {\n        return _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.merge(Object.assign({}, this), {\n            key: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromBufferToB64(this.key),\n        });\n    }\n    static fromJSON(json) {\n        if (json == null) {\n            return null;\n        }\n        return Object.assign(new SendView(), json, {\n            key: _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromB64ToArray(json.key),\n            cryptoKey: _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_1__.SymmetricCryptoKey.fromJSON(json.cryptoKey),\n            text: _send_text_view__WEBPACK_IMPORTED_MODULE_3__.SendTextView.fromJSON(json.text),\n            file: _send_file_view__WEBPACK_IMPORTED_MODULE_2__.SendFileView.fromJSON(json.file),\n            revisionDate: json.revisionDate == null ? null : new Date(json.revisionDate),\n            deletionDate: json.deletionDate == null ? null : new Date(json.deletionDate),\n            expirationDate: json.expirationDate == null ? null : new Date(json.expirationDate),\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7136 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/models/view/send.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/send-kdf.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/tools/send/send-kdf.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SEND_KDF_ITERATIONS: () => (/* binding */ SEND_KDF_ITERATIONS)\n/* harmony export */ });\nconst SEND_KDF_ITERATIONS = 100000;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvc2VuZC1rZGYudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sbUJBQW1CLEdBQUcsTUFBTSxDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvc2VuZC1rZGYudHM/ZDRiYyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgU0VORF9LREZfSVRFUkFUSU9OUyA9IDEwMDAwMDtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/send-kdf.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/services/key-definitions.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/tools/send/services/key-definitions.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SEND_USER_DECRYPTED: () => (/* binding */ SEND_USER_DECRYPTED),\n/* harmony export */   SEND_USER_ENCRYPTED: () => (/* binding */ SEND_USER_ENCRYPTED)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/** Encrypted send state stored on disk */\nconst SEND_USER_ENCRYPTED = _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_0__.SEND_DISK, \"sendUserEncrypted\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\n/** Decrypted send state stored in memory */\nconst SEND_USER_DECRYPTED = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.SEND_MEMORY, \"sendUserDecrypted\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"lock\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3NlbmQvc2VydmljZXMva2V5LWRlZmluaXRpb25zLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFvRjtBQUlwRiwwQ0FBMEM7QUFDbkMsTUFBTSxtQkFBbUIsR0FBRyw4REFBa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ICAgIGRlc2VyaWFsaXplcjogKG9iajogU2VuZERhdGEpID0+IG9iaixcbiAgICBjbGVhck9uOiBbXCJsb2dvdXRcIl0sXG4gIH0sXG4pO1xuXG4vKiogRGVjcnlwdGVkIHNlbmQgc3RhdGUgc3RvcmVkIGluIG1lbW9yeSAqL1xuZXhwb3J0IGNvbnN0IFNFTkRfVVNFUl9ERUNSWVBURUQgPSBuZXcgVXNlcktleURlZmluaXRpb248U2VuZFZpZXdbXT4oXG4gIFNFTkRfTUVNT1JZLFxuICBcInNlbmRVc2VyRGVjcnlwdGVkXCIsXG4gIHtcbiAgICBkZXNlcmlhbGl6ZXI6IChvYmopID0+IG9iaixcbiAgICBjbGVhck9uOiBbXCJsb2NrXCJdLFxuICB9LFxuKTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/services/key-definitions.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/services/send-api.service.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/tools/send/services/send-api.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendApiService: () => (/* binding */ SendApiService)\n/* harmony export */ });\n/* harmony import */ var _models_response_error_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _models_response_list_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../models/response/list.response */ \"../../libs/common/src/models/response/list.response.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums_send_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _models_data_send_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/data/send.data */ \"../../libs/common/src/tools/send/models/data/send.data.ts\");\n/* harmony import */ var _models_domain_send__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/domain/send */ \"../../libs/common/src/tools/send/models/domain/send.ts\");\n/* harmony import */ var _models_request_send_request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/request/send.request */ \"../../libs/common/src/tools/send/models/request/send.request.ts\");\n/* harmony import */ var _models_response_send_access_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/response/send-access.response */ \"../../libs/common/src/tools/send/models/response/send-access.response.ts\");\n/* harmony import */ var _models_response_send_file_download_data_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/response/send-file-download-data.response */ \"../../libs/common/src/tools/send/models/response/send-file-download-data.response.ts\");\n/* harmony import */ var _models_response_send_file_upload_data_response__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../models/response/send-file-upload-data.response */ \"../../libs/common/src/tools/send/models/response/send-file-upload-data.response.ts\");\n/* harmony import */ var _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../models/response/send.response */ \"../../libs/common/src/tools/send/models/response/send.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\nclass SendApiService {\n    constructor(apiService, fileUploadService, sendService) {\n        this.apiService = apiService;\n        this.fileUploadService = fileUploadService;\n        this.sendService = sendService;\n    }\n    getSend(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/sends/\" + id, null, true, true);\n            return new _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__.SendResponse(r);\n        });\n    }\n    postSendAccess(id, request, apiUrl) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const addSendIdHeader = (headers) => {\n                headers.set(\"Send-Id\", id);\n            };\n            const r = yield this.apiService.send(\"POST\", \"/sends/access/\" + id, request, false, true, apiUrl, addSendIdHeader);\n            return new _models_response_send_access_response__WEBPACK_IMPORTED_MODULE_7__.SendAccessResponse(r);\n        });\n    }\n    getSendFileDownloadData(send, request, apiUrl) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const addSendIdHeader = (headers) => {\n                headers.set(\"Send-Id\", send.id);\n            };\n            const r = yield this.apiService.send(\"POST\", \"/sends/\" + send.id + \"/access/file/\" + send.file.id, request, false, true, apiUrl, addSendIdHeader);\n            return new _models_response_send_file_download_data_response__WEBPACK_IMPORTED_MODULE_8__.SendFileDownloadDataResponse(r);\n        });\n    }\n    getSends() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/sends\", null, true, true);\n            return new _models_response_list_response__WEBPACK_IMPORTED_MODULE_1__.ListResponse(r, _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__.SendResponse);\n        });\n    }\n    postSend(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/sends\", request, true, true);\n            return new _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__.SendResponse(r);\n        });\n    }\n    postFileTypeSend(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/sends/file/v2\", request, true, true);\n            return new _models_response_send_file_upload_data_response__WEBPACK_IMPORTED_MODULE_9__.SendFileUploadDataResponse(r);\n        });\n    }\n    renewSendFileUploadUrl(sendId, fileId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/sends/\" + sendId + \"/file/\" + fileId, null, true, true);\n            return new _models_response_send_file_upload_data_response__WEBPACK_IMPORTED_MODULE_9__.SendFileUploadDataResponse(r);\n        });\n    }\n    postSendFile(sendId, fileId, data) {\n        return this.apiService.send(\"POST\", \"/sends/\" + sendId + \"/file/\" + fileId, data, true, false);\n    }\n    /**\n     * @deprecated Mar 25 2021: This method has been deprecated in favor of direct uploads.\n     * This method still exists for backward compatibility with old server versions.\n     */\n    postSendFileLegacy(data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/sends/file\", data, true, true);\n            return new _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__.SendResponse(r);\n        });\n    }\n    putSend(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/sends/\" + id, request, true, true);\n            return new _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__.SendResponse(r);\n        });\n    }\n    putSendRemovePassword(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/sends/\" + id + \"/remove-password\", null, true, true);\n            return new _models_response_send_response__WEBPACK_IMPORTED_MODULE_10__.SendResponse(r);\n        });\n    }\n    deleteSend(id) {\n        return this.apiService.send(\"DELETE\", \"/sends/\" + id, null, true, false);\n    }\n    save(sendData) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.upload(sendData);\n            const data = new _models_data_send_data__WEBPACK_IMPORTED_MODULE_4__.SendData(response);\n            yield this.sendService.upsert(data);\n            return new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__.Send(data);\n        });\n    }\n    delete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.deleteSend(id);\n            yield this.sendService.delete(id);\n        });\n    }\n    removePassword(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.putSendRemovePassword(id);\n            const data = new _models_data_send_data__WEBPACK_IMPORTED_MODULE_4__.SendData(response);\n            yield this.sendService.upsert(data);\n        });\n    }\n    // Send File Upload methods\n    upload(sendData) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const request = new _models_request_send_request__WEBPACK_IMPORTED_MODULE_6__.SendRequest(sendData[0], (_a = sendData[1]) === null || _a === void 0 ? void 0 : _a.buffer.byteLength);\n            let response;\n            if (sendData[0].id == null) {\n                if (sendData[0].type === _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.Text) {\n                    response = yield this.postSend(request);\n                }\n                else {\n                    try {\n                        const uploadDataResponse = yield this.postFileTypeSend(request);\n                        response = uploadDataResponse.sendResponse;\n                        yield this.fileUploadService.upload(uploadDataResponse, sendData[0].file.fileName, sendData[1], this.generateMethods(uploadDataResponse, response));\n                    }\n                    catch (e) {\n                        if (e instanceof _models_response_error_response__WEBPACK_IMPORTED_MODULE_0__.ErrorResponse && e.statusCode === 404) {\n                            response = yield this.legacyServerSendFileUpload(sendData, request);\n                        }\n                        else if (e instanceof _models_response_error_response__WEBPACK_IMPORTED_MODULE_0__.ErrorResponse) {\n                            throw new Error(e.getSingleMessage());\n                        }\n                        else {\n                            throw e;\n                        }\n                    }\n                }\n                sendData[0].id = response.id;\n                sendData[0].accessId = response.accessId;\n            }\n            else {\n                response = yield this.putSend(sendData[0].id, request);\n            }\n            return response;\n        });\n    }\n    generateMethods(uploadData, response) {\n        return {\n            postDirect: this.generatePostDirectCallback(response),\n            renewFileUploadUrl: this.generateRenewFileUploadUrlCallback(response.id, response.file.id),\n            rollback: this.generateRollbackCallback(response.id),\n        };\n    }\n    generatePostDirectCallback(sendResponse) {\n        return (data) => {\n            return this.postSendFile(sendResponse.id, sendResponse.file.id, data);\n        };\n    }\n    generateRenewFileUploadUrlCallback(sendId, fileId) {\n        return () => __awaiter(this, void 0, void 0, function* () {\n            const renewResponse = yield this.renewSendFileUploadUrl(sendId, fileId);\n            return renewResponse === null || renewResponse === void 0 ? void 0 : renewResponse.url;\n        });\n    }\n    generateRollbackCallback(sendId) {\n        return () => {\n            return this.deleteSend(sendId);\n        };\n    }\n    /**\n     * @deprecated Mar 25 2021: This method has been deprecated in favor of direct uploads.\n     * This method still exists for backward compatibility with old server versions.\n     */\n    legacyServerSendFileUpload(sendData, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const fd = new FormData();\n            try {\n                const blob = new Blob([sendData[1].buffer], { type: \"application/octet-stream\" });\n                fd.append(\"model\", JSON.stringify(request));\n                fd.append(\"data\", blob, sendData[0].file.fileName.encryptedString);\n            }\n            catch (e) {\n                if (_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isNode && !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isBrowser) {\n                    fd.append(\"model\", JSON.stringify(request));\n                    fd.append(\"data\", Buffer.from(sendData[1].buffer), {\n                        filepath: sendData[0].file.fileName.encryptedString,\n                        contentType: \"application/octet-stream\",\n                    });\n                }\n                else {\n                    throw e;\n                }\n            }\n            return yield this.postSendFileLegacy(fd);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20892 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/services/send-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/services/send-state.provider.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/tools/send/services/send-state.provider.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendStateProvider: () => (/* binding */ SendStateProvider)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _key_definitions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./key-definitions */ \"../../libs/common/src/tools/send/services/key-definitions.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n/** State provider for sends */\nclass SendStateProvider {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n        this.activeUserEncryptedState = this.stateProvider.getActive(_key_definitions__WEBPACK_IMPORTED_MODULE_1__.SEND_USER_ENCRYPTED);\n        this.encryptedState$ = this.activeUserEncryptedState.combinedState$;\n        this.activeUserDecryptedState = this.stateProvider.getActive(_key_definitions__WEBPACK_IMPORTED_MODULE_1__.SEND_USER_DECRYPTED);\n        this.decryptedState$ = this.activeUserDecryptedState.state$;\n    }\n    /** Gets the encrypted sends from state for an active user */\n    getEncryptedSends() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.encryptedState$);\n        });\n    }\n    /** Sets the encrypted send state for an active user */\n    setEncryptedSends(value, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, _key_definitions__WEBPACK_IMPORTED_MODULE_1__.SEND_USER_ENCRYPTED).update(() => value);\n        });\n    }\n    /** Gets the decrypted sends from state for the active user */\n    getDecryptedSends() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.decryptedState$);\n        });\n    }\n    /** Sets the decrypted send state for an active user */\n    setDecryptedSends(value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.activeUserDecryptedState.update(() => value);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4464 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/services/send-state.provider.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/send/services/send.service.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/tools/send/services/send.service.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SendService: () => (/* binding */ SendService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../auth/models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums_send_type__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enums/send-type */ \"../../libs/common/src/tools/send/enums/send-type.ts\");\n/* harmony import */ var _models_data_send_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/data/send.data */ \"../../libs/common/src/tools/send/models/data/send.data.ts\");\n/* harmony import */ var _models_domain_send__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/domain/send */ \"../../libs/common/src/tools/send/models/domain/send.ts\");\n/* harmony import */ var _models_domain_send_file__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/domain/send-file */ \"../../libs/common/src/tools/send/models/domain/send-file.ts\");\n/* harmony import */ var _models_domain_send_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/domain/send-text */ \"../../libs/common/src/tools/send/models/domain/send-text.ts\");\n/* harmony import */ var _models_request_send_with_id_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/request/send-with-id.request */ \"../../libs/common/src/tools/send/models/request/send-with-id.request.ts\");\n/* harmony import */ var _send_kdf__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../send-kdf */ \"../../libs/common/src/tools/send/send-kdf.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\nclass SendService {\n    constructor(keyService, i18nService, keyGenerationService, stateProvider, encryptService) {\n        this.keyService = keyService;\n        this.i18nService = i18nService;\n        this.keyGenerationService = keyGenerationService;\n        this.stateProvider = stateProvider;\n        this.encryptService = encryptService;\n        this.sendKeySalt = \"bitwarden-send\";\n        this.sendKeyPurpose = \"send\";\n        this.sends$ = this.stateProvider.encryptedState$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([, record]) => Object.values(record || {}).map((data) => new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__.Send(data))));\n        this.sendViews$ = this.stateProvider.encryptedState$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)(([, record]) => this.decryptSends(Object.values(record || {}).map((data) => new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__.Send(data)))));\n    }\n    encrypt(model, file, password, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let fileData = null;\n            const send = new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__.Send();\n            send.id = model.id;\n            send.type = model.type;\n            send.disabled = model.disabled;\n            send.hideEmail = model.hideEmail;\n            send.maxAccessCount = model.maxAccessCount;\n            send.deletionDate = model.deletionDate;\n            send.expirationDate = model.expirationDate;\n            if (model.key == null) {\n                const key = yield this.keyGenerationService.createKeyWithPurpose(128, this.sendKeyPurpose, this.sendKeySalt);\n                model.key = key.material;\n                model.cryptoKey = key.derivedKey;\n            }\n            if (password != null) {\n                const passwordKey = yield this.keyGenerationService.deriveKeyFromPassword(password, model.key, new _auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_1__.PBKDF2KdfConfig(_send_kdf__WEBPACK_IMPORTED_MODULE_9__.SEND_KDF_ITERATIONS));\n                send.password = passwordKey.keyB64;\n            }\n            if (key == null) {\n                key = yield this.keyService.getUserKey();\n            }\n            send.key = yield this.encryptService.encrypt(model.key, key);\n            send.name = yield this.encryptService.encrypt(model.name, model.cryptoKey);\n            send.notes = yield this.encryptService.encrypt(model.notes, model.cryptoKey);\n            if (send.type === _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.Text) {\n                send.text = new _models_domain_send_text__WEBPACK_IMPORTED_MODULE_7__.SendText();\n                send.text.text = yield this.encryptService.encrypt(model.text.text, model.cryptoKey);\n                send.text.hidden = model.text.hidden;\n            }\n            else if (send.type === _enums_send_type__WEBPACK_IMPORTED_MODULE_3__.SendType.File) {\n                send.file = new _models_domain_send_file__WEBPACK_IMPORTED_MODULE_6__.SendFile();\n                if (file != null) {\n                    if (file instanceof ArrayBuffer) {\n                        const [name, data] = yield this.encryptFileData(model.file.fileName, file, model.cryptoKey);\n                        send.file.fileName = name;\n                        fileData = data;\n                    }\n                    else {\n                        fileData = yield this.parseFile(send, file, model.cryptoKey);\n                    }\n                }\n            }\n            return [send, fileData];\n        });\n    }\n    get$(id) {\n        return this.sends$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)((oldSends, newSends) => {\n            const oldSend = oldSends.find((oldSend) => oldSend.id === id);\n            const newSend = newSends.find((newSend) => newSend.id === id);\n            if (!oldSend || !newSend) {\n                // If either oldSend or newSend is not found, consider them different\n                return false;\n            }\n            // Compare each property of the old and new Send objects\n            const allPropertiesSame = Object.keys(newSend).every((key) => {\n                if ((oldSend[key] != null && newSend[key] === null) ||\n                    (oldSend[key] === null && newSend[key] != null)) {\n                    // If a key from either old or new send is not found, and the key from the other send has a value, consider them different\n                    return false;\n                }\n                switch (key) {\n                    case \"name\":\n                    case \"notes\":\n                    case \"key\":\n                        if (oldSend[key] === null && newSend[key] === null) {\n                            return true;\n                        }\n                        return oldSend[key].encryptedString === newSend[key].encryptedString;\n                    case \"text\":\n                        if (oldSend[key].text == null && newSend[key].text == null) {\n                            return true;\n                        }\n                        if ((oldSend[key].text != null && newSend[key].text == null) ||\n                            (oldSend[key].text == null && newSend[key].text != null)) {\n                            return false;\n                        }\n                        return oldSend[key].text.encryptedString === newSend[key].text.encryptedString;\n                    case \"file\":\n                        //Files are never updated so never will be changed.\n                        return true;\n                    case \"revisionDate\":\n                    case \"expirationDate\":\n                    case \"deletionDate\":\n                        if (oldSend[key] === null && newSend[key] === null) {\n                            return true;\n                        }\n                        return oldSend[key].getTime() === newSend[key].getTime();\n                    default:\n                        // For other properties, compare directly\n                        return oldSend[key] === newSend[key];\n                }\n            });\n            return allPropertiesSame;\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((sends) => sends.find((o) => o.id === id)));\n    }\n    getFromState(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const [, sends] = yield this.stateProvider.getEncryptedSends();\n            // eslint-disable-next-line\n            if (sends == null || !sends.hasOwnProperty(id)) {\n                return null;\n            }\n            return new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__.Send(sends[id]);\n        });\n    }\n    getAll() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const [, sends] = yield this.stateProvider.getEncryptedSends();\n            const response = [];\n            for (const id in sends) {\n                // eslint-disable-next-line\n                if (sends.hasOwnProperty(id)) {\n                    response.push(new _models_domain_send__WEBPACK_IMPORTED_MODULE_5__.Send(sends[id]));\n                }\n            }\n            return response;\n        });\n    }\n    getAllDecryptedFromState() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decSends = yield this.stateProvider.getDecryptedSends();\n            if (decSends != null) {\n                return decSends;\n            }\n            decSends = [];\n            const hasKey = yield this.keyService.hasUserKey();\n            if (!hasKey) {\n                throw new Error(\"No user key found.\");\n            }\n            const promises = [];\n            const sends = yield this.getAll();\n            sends.forEach((send) => {\n                promises.push(send.decrypt().then((f) => decSends.push(f)));\n            });\n            yield Promise.all(promises);\n            decSends.sort(_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getSortFunction(this.i18nService, \"name\"));\n            yield this.stateProvider.setDecryptedSends(decSends);\n            return decSends;\n        });\n    }\n    upsert(send) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const [userId, currentSends] = yield this.stateProvider.getEncryptedSends();\n            let sends = currentSends;\n            if (sends == null) {\n                sends = {};\n            }\n            if (send instanceof _models_data_send_data__WEBPACK_IMPORTED_MODULE_4__.SendData) {\n                const s = send;\n                sends[s.id] = s;\n            }\n            else {\n                send.forEach((s) => {\n                    sends[s.id] = s;\n                });\n            }\n            yield this.replace(sends, userId);\n        });\n    }\n    delete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const [userId, sends] = yield this.stateProvider.getEncryptedSends();\n            if (sends == null) {\n                return;\n            }\n            if (typeof id === \"string\") {\n                if (sends[id] == null) {\n                    return;\n                }\n                delete sends[id];\n            }\n            else {\n                id.forEach((i) => {\n                    delete sends[i];\n                });\n            }\n            yield this.replace(sends, userId);\n        });\n    }\n    replace(sends, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.setEncryptedSends(sends, userId);\n        });\n    }\n    getRotatedData(originalUserKey, newUserKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (newUserKey == null) {\n                throw new Error(\"New user key is required for rotation.\");\n            }\n            if (originalUserKey == null) {\n                throw new Error(\"Original user key is required for rotation.\");\n            }\n            const req = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.sends$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((sends) => __awaiter(this, void 0, void 0, function* () { return this.toRotatedKeyRequestMap(sends, originalUserKey, newUserKey); }))));\n            // separate return for easier debugging\n            return req;\n        });\n    }\n    toRotatedKeyRequestMap(sends, originalUserKey, rotateUserKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const requests = yield Promise.all(sends.map((send) => __awaiter(this, void 0, void 0, function* () {\n                const sendKey = yield this.encryptService.decryptToBytes(send.key, originalUserKey);\n                send.key = yield this.encryptService.encrypt(sendKey, rotateUserKey);\n                return new _models_request_send_with_id_request__WEBPACK_IMPORTED_MODULE_8__.SendWithIdRequest(send);\n            })));\n            return requests;\n        });\n    }\n    parseFile(send, file, key) {\n        return new Promise((resolve, reject) => {\n            const reader = new FileReader();\n            reader.readAsArrayBuffer(file);\n            reader.onload = (evt) => __awaiter(this, void 0, void 0, function* () {\n                try {\n                    const [name, data] = yield this.encryptFileData(file.name, evt.target.result, key);\n                    send.file.fileName = name;\n                    resolve(data);\n                }\n                catch (e) {\n                    reject(e);\n                }\n            });\n            reader.onerror = () => {\n                reject(\"Error reading file.\");\n            };\n        });\n    }\n    encryptFileData(fileName, data, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                key = yield this.keyService.getUserKey();\n            }\n            const encFileName = yield this.encryptService.encrypt(fileName, key);\n            const encFileData = yield this.encryptService.encryptToBytes(new Uint8Array(data), key);\n            return [encFileName, encFileData];\n        });\n    }\n    decryptSends(sends) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decryptSendPromises = sends.map((s) => s.decrypt());\n            const decryptedSends = yield Promise.all(decryptSendPromises);\n            decryptedSends.sort(_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getSortFunction(this.i18nService, \"name\"));\n            return decryptedSends;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29624 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/send/services/send.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/buffered-key-definition.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/tools/state/buffered-key-definition.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BufferedKeyDefinition: () => (/* binding */ BufferedKeyDefinition)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/** Storage and mapping settings for data stored by a `BufferedState`.\n */\nclass BufferedKeyDefinition {\n    /**\n     * Defines a buffered state\n     * @param stateDefinition The domain of the buffer\n     * @param key Domain key that identifies the buffered value. This key must\n     *    not be reused in any capacity.\n     * @param options Configures the operation of the buffered state.\n     */\n    constructor(stateDefinition, key, options) {\n        this.stateDefinition = stateDefinition;\n        this.key = key;\n        this.options = options;\n    }\n    /** Converts the buffered key definition to a state provider\n     *  key definition\n     */\n    toKeyDefinition() {\n        const bufferedKey = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(this.stateDefinition, this.key, this.options);\n        return bufferedKey;\n    }\n    /** Checks whether the dependency triggers an overwrite. */\n    shouldOverwrite(dependency) {\n        var _a;\n        const shouldOverwrite = (_a = this.options) === null || _a === void 0 ? void 0 : _a.shouldOverwrite;\n        if (shouldOverwrite) {\n            return shouldOverwrite(dependency);\n        }\n        return dependency ? true : false;\n    }\n    /** Converts the input data format to its output format.\n     *  @returns the converted value.\n     */\n    map(input, dependency) {\n        var _a;\n        const map = (_a = this.options) === null || _a === void 0 ? void 0 : _a.map;\n        if (map) {\n            return map(input, dependency);\n        }\n        return Promise.resolve(input);\n    }\n    /** Checks whether the input type can be converted to the output type.\n     *  @returns `true` if the definition is defined and valid, otherwise `false`.\n     */\n    isValid(input, dependency) {\n        var _a;\n        if (input === null) {\n            return Promise.resolve(false);\n        }\n        const isValid = (_a = this.options) === null || _a === void 0 ? void 0 : _a.isValid;\n        if (isValid) {\n            return isValid(input, dependency);\n        }\n        return Promise.resolve(input ? true : false);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7224 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/buffered-key-definition.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/buffered-state.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/tools/state/buffered-state.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BufferedState: () => (/* binding */ BufferedState)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n/** Stateful storage that overwrites one state with a buffered state.\n *  When a overwrite occurs, the input state is automatically deleted.\n *  @remarks The buffered state can only overwrite non-nullish values. If the\n *   buffer key contains `null` or `undefined`, it will do nothing.\n */\nclass BufferedState {\n    /**\n     * Instantiate a buffered state\n     * @param provider constructs the buffer.\n     * @param key defines the buffer location.\n     * @param output updates when a overwrite occurs\n     * @param dependency$ provides data the buffer depends upon to evaluate and\n     *   transform its data. If this is omitted, then `true` is injected as\n     *   a dependency, which with a default output will trigger a overwrite immediately.\n     *\n     * @remarks `dependency$` enables overwrite control during dynamic circumstances,\n     *   such as when a overwrite should occur only if a user key is available.\n     */\n    constructor(provider, key, output, dependency$ = null) {\n        this.key = key;\n        this.output = output;\n        this.bufferedState = provider.getUser(output.userId, key.toKeyDefinition());\n        // overwrite the output value\n        const hasValue$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null), this.bufferedState.state$).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((buffer) => (buffer !== null && buffer !== void 0 ? buffer : null) !== null));\n        const overwriteDependency$ = (dependency$ !== null && dependency$ !== void 0 ? dependency$ : (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(true)).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((dependency) => [key.shouldOverwrite(dependency), dependency]));\n        const overwrite$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([hasValue$, overwriteDependency$]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((_a) => __awaiter(this, [_a], void 0, function* ([hasValue, [shouldOverwrite, dependency]]) {\n            if (hasValue && shouldOverwrite) {\n                yield this.overwriteOutput(dependency);\n            }\n            return [false, null];\n        })));\n        // drive overwrites only when there's a subscription;\n        // the output state determines when emissions occur\n        const output$ = this.output.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((output) => [true, output]));\n        this.state$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.merge)(overwrite$, output$).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)(([emit]) => emit), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([, output]) => output));\n        this.combinedState$ = this.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((state) => [this.output.userId, state]));\n        this.bufferedState$ = this.bufferedState.state$;\n    }\n    overwriteOutput(dependency) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // take the latest value from the buffer\n            let buffered;\n            yield this.bufferedState.update((state) => {\n                buffered = state !== null && state !== void 0 ? state : null;\n                return null;\n            });\n            // update the output state\n            const isValid = yield this.key.isValid(buffered, dependency);\n            if (isValid) {\n                const output = yield this.key.map(buffered, dependency);\n                yield this.output.update(() => output);\n            }\n        });\n    }\n    /** {@link SingleUserState.userId} */\n    get userId() {\n        return this.output.userId;\n    }\n    /** Buffers a value state. The buffered state overwrites the output\n     *  state when a subscription occurs.\n     *  @param value the state to roll over. Setting this to `null` or `undefined`\n     *  has no effect.\n     */\n    buffer(value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const normalized = value !== null && value !== void 0 ? value : null;\n            if (normalized !== null) {\n                yield this.bufferedState.update(() => normalized);\n            }\n        });\n    }\n    /** Updates the output state.\n     *  @param configureState a callback that returns an updated output\n     *   state. The callback receives the state's present value as its\n     *   first argument and the dependencies listed in `options.combinedLatestWith`\n     *   as its second argument.\n     *  @param options configures how the update is applied. See {@link StateUpdateOptions}.\n     */\n    update(configureState, options = null) {\n        return this.output.update(configureState, options);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10372 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/buffered-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/classified-format.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/tools/state/classified-format.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   isClassifiedFormat: () => (/* binding */ isClassifiedFormat)\n/* harmony export */ });\nfunction isClassifiedFormat(value) {\n    return \"id\" in value && \"secret\" in value && \"disclosed\" in value;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3N0YXRlL2NsYXNzaWZpZWQtZm9ybWF0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFvQk8sU0FBUyxrQkFBa0IsQ0FDaEMsS0FBVTtJQUVWLE9BQU8sSUFBSSxJQUFJLEtBQUssSUFBSSxRQUFRLElBQUksS0FBSyxJQUFJLFdBQVcsSUFBSSxLQUFLLENBQUM7QUFDcEUsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9zdGF0ZS9jbGFzc2lmaWVkLWZvcm1hdC50cz8zOTg5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEpzb25pZnkgfSBmcm9tIFwidHlwZS1mZXN0XCI7XG5cbi8qKiBEZXNjcmliZXMgdGhlIHN0cnVjdHVyZSBvZiBkYXRhIHN0b3JlZCBieSB0aGUgU2VjcmV0U3RhdGUnc1xuICogIGVuY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/src/tools/state/classified-format.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/data-packer.abstraction.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/tools/state/data-packer.abstraction.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DataPacker: () => (/* binding */ DataPacker)\n/* harmony export */ });\n/** A packing strategy that packs data into a string.\n */\nclass DataPacker {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3N0YXRlL2RhdGEtcGFja2VyLmFic3RyYWN0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFQTtHQUNHO0FBQ0ksTUFBZSxVQUFVO0NBZ0IvQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy90b29scy9zdGF0ZS9kYXRhLXBhY2tlci5hYnN0cmFjdGlvbi50cz8zYTdmIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEpzb25pZnkgfSBmcm9tIFwidHlwZS1mZXN0XCI7XG5cbi8qKiBBIHBhY2tpbmcgc3RyYXRlZ3kgdGhhdCBwYWNrcyBkYXRhIGludG8gYSBzdHJpbmcuXG4gKi9cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBEYXRhUGFja2VyIHtcbiAgLyoqXG4gICAqIFBhY2tzIHZhbHVlIGludG8gYSBzdHJpbmcgZm9ybWF0LlxuICAgKiBAdHlwZSB7RGF0YX0gaXMgdGhlIHR5cGUgb2YgZGF0YSBiZWluZyBwcm90ZWN0ZWQuXG4gICAqIEBwYXJhbSB2YWx1ZSBpcyBwYWNrZWQgaW50byB0aGUgc3RyaW5nXG4gICAqIEByZXR1cm5zIHRoZSBwYWNrZWQgc3RyaW5nXG4gICAqL1xuICBhYnN0cmFjdCBwYWNrPERhdGE+KHZhbHVlOiBKc29uaWZ5PERhdGE+KTogc3RyaW5nO1xuXG4gIC8qKiBVbnBhY2tzIGEgc3RyaW5nIHByb2R1Y2VkIGJ5IHBhY2suXG4gICAqIEBwYXJhbSBwYWNrZWRWYWx1ZSBpcyB0aGUgc3RyaW5nIHRvIHVucGFja1xuICAgKiBAdHlwZSB7RGF0YX0gaXMgdGhlIHR5cGUgb2YgZGF0YSBiZWluZyBwcm90ZWN0ZWQuXG4gICAqIEByZXR1cm5zIHRoZSBkYXRhIHN0b3JlZCB3aXRoaW4gdGhlIHNlY3JldC5cbiAgICogQHRocm93cyB3aGVuIGBwYWNrZWRWYWx1ZWAgaGFzIGFuIGludmFsaWQgZm9ybWF0LlxuICAgKi9cbiAgYWJzdHJhY3QgdW5wYWNrPERhdGE+KHBhY2tlZFZhbHVlOiBzdHJpbmcpOiBKc29uaWZ5PERhdGE+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/data-packer.abstraction.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/identity-state-constraint.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/tools/state/identity-state-constraint.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityConstraint: () => (/* binding */ IdentityConstraint),\n/* harmony export */   unconstrained$: () => (/* binding */ unconstrained$)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n\n// The constraints type shares the properties of the state,\n// but never has any members\nconst EMPTY_CONSTRAINTS = new Proxy(Object.freeze({}), {\n    get() {\n        return {};\n    },\n});\n/** A constraint that does nothing. */\nclass IdentityConstraint {\n    /** Instantiate the identity constraint */\n    constructor() {\n        this.constraints = EMPTY_CONSTRAINTS;\n    }\n    calibrate() {\n        return this;\n    }\n    adjust(state) {\n        return state;\n    }\n    fix(state) {\n        return state;\n    }\n}\n/** Emits a constraint that does not alter the input state. */\nfunction unconstrained$() {\n    const identity = new IdentityConstraint();\n    const constraints$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(identity);\n    return constraints$;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3N0YXRlL2lkZW50aXR5LXN0YXRlLWNvbnN0cmFpbnQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFtRDtBQVNuRCwyREFBMkQ7QUFDM0QsNEJBQTRCO0FBQzVCLE1BQU0saUJBQWlCLEdBQUcsSUFBSSxLQUFLLENBQU0sTUFBTSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsRUFBRTtJQUMxRCxHQUFHO1FBQ0QsT0FBTyxFQUFFLENBQUM7SUFDWixDQUFDO0NBQ0YsQ0FBQyxDQUFDO0FBRUgsc0NBQXNDO0FBQy9CLE1BQU0sa0JBQWtCO0lBRzdCLDBDQUEwQztJQUMxQztRQUVTLGdCQUFXLEdBQWlDLGlCQUFpQixDQUFDO0lBRnhELENBQUM7SUFJaEIsU0FBUztRQUNQLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVELE1BQU0sQ0FBQyxLQUFZO1FBQ2pCLE9BQU8sS0FBSyxDQUFDO0lBQ2YsQ0FBQztJQUVELEdBQUcsQ0FBQyxLQUFZO1FBQ2QsT0FBT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3RhdGU+LCBEeW5hbWljU3RhdGVDb25zdHJhaW50czxTdGF0ZT5cbntcbiAgLyoqIEluc3RhbnRpYXRlIHRoZSBpZGVudGl0eSBjb25zdHJhaW50ICovXG4gIGNvbnN0cnVjdG9yKCkge31cblxuICByZWFkb25seSBjb25zdHJhaW50czogUmVhZG9ubHk8Q29uc3RyYWludHM8U3RhdGU+PiA9IEVNUFRZX0NPTlNUUkFJTlRTO1xuXG4gIGNhbGlicmF0ZSgpIHtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuXG4gIGFkanVzdChzdGF0ZTogU3RhdGUpIHtcbiAgICByZXR1cm4gc3RhdGU7XG4gIH1cblxuICBmaXgoc3RhdGU6IFN0YXRlKSB7XG4gICAgcmV0dXJuIHN0YXRlO1xuICB9XG59XG5cbi8qKiBFbWl0cyBhIGNvbnN0cmFpbnQgdGhhdCBkb2VzIG5vdCBhbHRlciB0aGUgaW5wdXQgc3RhdGUuICovXG5leHBvcnQgZnVuY3Rpb24gdW5jb25zdHJhaW5lZCQ8U3RhdGUgZXh0ZW5kcyBvYmplY3Q+KCk6IE9ic2VydmFibGU8U3ViamVjdENvbnN0cmFpbnRzPFN0YXRlPj4ge1xuICBjb25zdCBpZGVudGl0eSA9IG5ldyBJZGVudGl0eUNvbnN0cmFpbnQ8U3RhdGU+KCk7XG4gIGNvbnN0IGNvbnN0cmFpbnRzJCA9IG5ldyBCZWhhdmlvclN1YmplY3QoaWRlbnRpdHkpO1xuXG4gIHJldHVybiBjb25zdHJhaW50cyQ7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/identity-state-constraint.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/object-key.ts":
/*!*******************************************************!*\
  !*** ../../libs/common/src/tools/state/object-key.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   isObjectKey: () => (/* binding */ isObjectKey),\n/* harmony export */   toUserKeyDefinition: () => (/* binding */ toUserKeyDefinition)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\nfunction isObjectKey(key) {\n    return key.target === \"object\" && \"format\" in key && \"classifier\" in key;\n}\nfunction toUserKeyDefinition(key) {\n    if (key.format === \"plain\") {\n        const plain = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(key.state, key.key, key.options);\n        return plain;\n    }\n    else if (key.format === \"classified\") {\n        const classified = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(key.state, key.key, {\n            cleanupDelayMs: key.options.cleanupDelayMs,\n            deserializer: (jsonValue) => jsonValue,\n            clearOn: key.options.clearOn,\n        });\n        return classified;\n    }\n    else {\n        throw new Error(`unknown format: ${key.format}`);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4160 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/object-key.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/padded-data-packer.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/tools/state/padded-data-packer.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PaddedDataPacker: () => (/* binding */ PaddedDataPacker)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _data_packer_abstraction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data-packer.abstraction */ \"../../libs/common/src/tools/state/data-packer.abstraction.ts\");\n\n\nconst DATA_PACKING = Object.freeze({\n    /** The character to use for padding. */\n    padding: \"0\",\n    /** The character dividing packed data. */\n    divider: \"|\",\n    /** A regular expression for detecting invalid padding. When the character\n     *  changes, this should be updated to include the new padding pattern.\n     */\n    hasInvalidPadding: /[^0]/,\n});\n/** A packing strategy that conceals the length of secret data by padding it\n *  to a multiple of the frame size.\n *  @example\n *  // packed === \"24|e2Zvbzp0cnVlfQ==|0000\"\n *  const packer = new SecretPacker(24);\n *  const packed = packer.pack({ foo: true });\n */\nclass PaddedDataPacker extends _data_packer_abstraction__WEBPACK_IMPORTED_MODULE_1__.DataPacker {\n    /** Instantiates the padded data packer\n     *  @param frameSize The size of the dataframe used to pad encrypted values.\n     */\n    constructor(frameSize) {\n        super();\n        this.frameSize = frameSize;\n    }\n    /**\n     * Packs value into a string format that conceals the length by obscuring it\n     * with the frameSize.\n     * @see {@link DataPackerAbstraction.unpack}\n     */\n    pack(value) {\n        // encode the value\n        const json = JSON.stringify(value);\n        const b64 = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromUtf8ToB64(json);\n        // calculate packing metadata\n        const frameSize = JSON.stringify(this.frameSize);\n        const separatorLength = 2 * DATA_PACKING.divider.length; // there are 2 separators\n        const payloadLength = b64.length + frameSize.length + separatorLength;\n        const paddingLength = this.frameSize - (payloadLength % this.frameSize);\n        // pack the data, thereby concealing its length\n        const padding = DATA_PACKING.padding.repeat(paddingLength);\n        const packed = `${frameSize}|${b64}|${padding}`;\n        return packed;\n    }\n    /** {@link DataPackerAbstraction.unpack} */\n    unpack(secret) {\n        // frame size is stored before the JSON payload in base 10\n        const frameEndIndex = secret.indexOf(DATA_PACKING.divider);\n        if (frameEndIndex < 1) {\n            throw new Error(\"missing frame size\");\n        }\n        const frameSize = parseInt(secret.slice(0, frameEndIndex), 10);\n        const dataStartIndex = frameEndIndex + 1;\n        // The decrypted string should be a multiple of the frame length\n        if (secret.length % frameSize > 0) {\n            throw new Error(\"invalid length\");\n        }\n        // encoded data terminates with the divider, followed by the padding character\n        const dataEndIndex = secret.lastIndexOf(DATA_PACKING.divider);\n        if (dataEndIndex == frameEndIndex) {\n            throw new Error(\"missing json object\");\n        }\n        const paddingStartIndex = dataEndIndex + 1;\n        // If the padding contains invalid padding characters then the padding could be used\n        // as a side channel for arbitrary data.\n        if (secret.slice(paddingStartIndex).match(DATA_PACKING.hasInvalidPadding)) {\n            throw new Error(\"invalid padding\");\n        }\n        // remove frame size and padding\n        const b64 = secret.slice(dataStartIndex, dataEndIndex);\n        // unpack the stored data\n        const json = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromB64ToUtf8(b64);\n        const unpacked = JSON.parse(json);\n        return unpacked;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7500 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/padded-data-packer.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/secret-classifier.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/tools/state/secret-classifier.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecretClassifier: () => (/* binding */ SecretClassifier)\n/* harmony export */ });\n/** Classifies an object's JSON-serializable data by property into\n *  3 categories:\n *  * Disclosed data MAY be stored in plaintext.\n *  * Excluded data MUST NOT be saved.\n *  * The remaining data is secret and MUST be stored using encryption.\n *\n *  This type should not be used to classify functions.\n *  Data that cannot be serialized by JSON.stringify() should\n *  be excluded.\n */\nclass SecretClassifier {\n    constructor(disclosed, excluded) {\n        this.disclosed = disclosed;\n        this.excluded = excluded;\n    }\n    /** Creates a classifier where all properties are secret.\n     *  @type {T} The type of secret being classified.\n     */\n    static allSecret() {\n        const disclosed = Object.freeze([]);\n        const excluded = Object.freeze([]);\n        return new SecretClassifier(disclosed, excluded);\n    }\n    /** Classify a property as disclosed.\n     *  @type {PropertyName} Available secrets to disclose.\n     *  @param disclose The property name to disclose.\n     *  @returns a new classifier\n     */\n    disclose(disclose) {\n        // update the fluent interface\n        const newDisclosed = [...this.disclosed, disclose];\n        const classifier = new SecretClassifier(\n        // since `NewDisclosed` is opaque to the type checker, it's necessary\n        // to assert the type of the array here.\n        Object.freeze(newDisclosed), this.excluded);\n        return classifier;\n    }\n    /** Classify a property as excluded.\n     *  @type {PropertyName} Available secrets to exclude.\n     *  @param exclude The property name to exclude.\n     *  @returns a new classifier\n     */\n    exclude(excludedPropertyName) {\n        // update the fluent interface\n        const newExcluded = [...this.excluded, excludedPropertyName];\n        const classifier = new SecretClassifier(this.disclosed, Object.freeze(newExcluded));\n        return classifier;\n    }\n    /** Partitions `secret` into its disclosed properties and secret properties.\n     *  @param value The object to partition\n     *  @returns an object that classifies secrets.\n     *    The `disclosed` member is new and contains disclosed properties.\n     *    The `secret` member is a copy of the secret parameter, including its\n     *    prototype, with all disclosed and excluded properties deleted.\n     */\n    classify(value) {\n        // need to JSONify during classification because the prototype is almost guaranteed\n        // to be invalid when this  method deletes arbitrary properties.\n        const secret = JSON.parse(JSON.stringify(value));\n        for (const excludedProp of this.excluded) {\n            delete secret[excludedProp];\n        }\n        const disclosed = {};\n        for (const disclosedProp of this.disclosed) {\n            // disclosedProp is known to be a subset of the keys of `Plaintext`, so these\n            // type assertions are accurate.\n            // FIXME: prove it to the compiler\n            disclosed[disclosedProp] = secret[disclosedProp];\n            delete secret[disclosedProp];\n        }\n        return {\n            disclosed: disclosed,\n            secret: secret,\n        };\n    }\n    /** Merges the properties of `secret` and `disclosed`. When `secret` and\n     *  `disclosed` contain the same property, the `secret` property overrides\n     *  the `disclosed` property.\n     *  @param disclosed an object whose disclosed properties are merged into\n     *    the output. Unknown properties are ignored.\n     *  @param secret an objects whose properties are merged into the output.\n     *    Excluded properties are ignored. Unknown properties are retained.\n     *  @returns a new object containing the merged data.\n     */\n    // Declassified data is always jsonified--the purpose of classifying it is to Jsonify it,\n    // which causes type conversions.\n    declassify(disclosed, secret) {\n        // removed unknown keys from `disclosed` to prevent any old edit\n        // of plaintext data from being laundered though declassification.\n        const cleaned = {};\n        for (const disclosedProp of this.disclosed) {\n            cleaned[disclosedProp] = disclosed[disclosedProp];\n        }\n        // merge decrypted into cleaned so that secret data clobbers public data\n        const merged = Object.assign(cleaned, secret);\n        // delete excluded props\n        for (const excludedProp of this.excluded) {\n            delete merged[excludedProp];\n        }\n        return merged;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10632 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/secret-classifier.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/secret-key-definition.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/tools/state/secret-key-definition.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecretKeyDefinition: () => (/* binding */ SecretKeyDefinition)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/** Encryption and storage settings for data stored by a `SecretState`.\n */\nclass SecretKeyDefinition {\n    constructor(stateDefinition, key, classifier, options, \n    // type erasure is necessary here because typescript doesn't support\n    // higher kinded types that generalize over collections. The invariants\n    // needed to make this typesafe are maintained by the static factories.\n    deconstruct, reconstruct) {\n        this.stateDefinition = stateDefinition;\n        this.key = key;\n        this.classifier = classifier;\n        this.options = options;\n        this.deconstruct = deconstruct;\n        this.reconstruct = reconstruct;\n    }\n    /** Converts the secret key to the `KeyDefinition` used for secret storage. */\n    toEncryptedStateKey() {\n        const secretKey = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(this.stateDefinition, this.key, {\n            cleanupDelayMs: this.options.cleanupDelayMs,\n            deserializer: (jsonValue) => jsonValue,\n            // Clear encrypted state on logout\n            clearOn: this.options.clearOn,\n        });\n        return secretKey;\n    }\n    /**\n     * Define a secret state for a single value\n     * @param stateDefinition The domain of the secret's durable state.\n     * @param key Domain key that identifies the stored value. This key must not be reused\n     *    in any capacity.\n     * @param classifier Partitions the value into encrypted, discarded, and public data.\n     * @param options Configures the operation of the secret state.\n     */\n    static value(stateDefinition, key, classifier, options) {\n        return new SecretKeyDefinition(stateDefinition, key, classifier, options, (value) => [[null, value]], ([[, inner]]) => inner);\n    }\n    /**\n     * Define a secret state for an array of values. Each item is encrypted separately.\n     * @param stateDefinition The domain of the secret's durable state.\n     * @param key Domain key that identifies the stored items. This key must not be reused\n     *    in any capacity.\n     * @param classifier Partitions each item into encrypted, discarded, and public data.\n     * @param options Configures the operation of the secret state.\n     */\n    static array(stateDefinition, key, classifier, options) {\n        return new SecretKeyDefinition(stateDefinition, key, classifier, options, (value) => value.map((v, id) => [id, v]), (values) => values.map(([, v]) => v));\n    }\n    /**\n     * Define a secret state for a record. Each property is encrypted separately.\n     * @param stateDefinition The domain of the secret's durable state.\n     * @param key Domain key that identifies the stored properties. This key must not be reused\n     *    in any capacity.\n     * @param classifier Partitions each property into encrypted, discarded, and public data.\n     * @param options Configures the operation of the secret state.\n     */\n    static record(stateDefinition, key, classifier, options) {\n        return new SecretKeyDefinition(stateDefinition, key, classifier, options, (value) => Object.entries(value), (values) => Object.fromEntries(values));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8312 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/secret-key-definition.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/secret-state.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/tools/state/secret-state.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecretState: () => (/* binding */ SecretState)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nconst ONE_MINUTE = 1000 * 60;\n/** Stores account-specific secrets protected by a UserKeyEncryptor.\n *\n *  @remarks This state store changes the structure of `Plaintext` during\n *  storage, and requires user keys to operate. It is incompatible with sync,\n *  which expects the disk storage format to be identical to the sync format.\n *\n *  DO NOT USE THIS for synchronized data.\n */\nclass SecretState {\n    // The constructor is private to avoid creating a circular dependency when\n    // wiring the derived and secret states together.\n    constructor(key, $encryptor, userId, provider) {\n        this.key = key;\n        this.$encryptor = $encryptor;\n        // construct the backing store\n        this.encryptedState = provider.getUser(userId, key.toEncryptedStateKey());\n        // cache plaintext\n        this.combinedState$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([this.encryptedState.combinedState$, this.$encryptor]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((_a) => __awaiter(this, [_a], void 0, function* ([[userId, state], encryptor]) { return [userId, yield this.declassifyAll(encryptor, state)]; })), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.share)({\n            connector: () => {\n                return new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n            },\n            resetOnRefCountZero: () => { var _a; return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timer)((_a = key.options.cleanupDelayMs) !== null && _a !== void 0 ? _a : ONE_MINUTE); },\n        }));\n        this.state$ = this.combinedState$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([, state]) => state));\n    }\n    /** {@link SingleUserState.userId} */\n    get userId() {\n        return this.encryptedState.userId;\n    }\n    /** Creates a secret state bound to an account encryptor. The account must be unlocked\n     *  when this method is called.\n     *  @param userId: the user to which the secret state is bound.\n     *  @param key Converts between a declassified secret and its formal type.\n     *  @param provider constructs state objects.\n     *  @param encryptor protects `Secret` data.\n     *  @throws when `key.stateDefinition` is backed by memory storage.\n     *  @remarks Secrets are written to a secret store as a named tuple. Data classification is\n     *    determined by the encryptor's classifier. Secret-classification data is jsonified,\n     *    encrypted, and stored in a `secret` property. Disclosed-classification data is stored\n     *    in a `disclosed` property. Omitted-classification data is not stored.\n     */\n    static from(userId, key, provider, encryptor$) {\n        const secretState = new SecretState(key, encryptor$, userId, provider);\n        return secretState;\n    }\n    declassifyItem(encryptor_1, _a) {\n        return __awaiter(this, arguments, void 0, function* (encryptor, { id, secret, disclosed }) {\n            const encrypted = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(secret);\n            const decrypted = yield encryptor.decrypt(encrypted);\n            const declassified = this.key.classifier.declassify(disclosed, decrypted);\n            const result = [id, this.key.options.deserializer(declassified)];\n            return result;\n        });\n    }\n    declassifyAll(encryptor, data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // fail fast if there's no value\n            if (data === null || data === undefined) {\n                return null;\n            }\n            // decrypt each item\n            const decryptTasks = data.map((item) => __awaiter(this, void 0, void 0, function* () { return this.declassifyItem(encryptor, item); }));\n            // reconstruct expected type\n            const results = yield Promise.all(decryptTasks);\n            const result = this.key.reconstruct(results);\n            return result;\n        });\n    }\n    classifyItem(encryptor_1, _a) {\n        return __awaiter(this, arguments, void 0, function* (encryptor, [id, item]) {\n            const classified = this.key.classifier.classify(item);\n            const encrypted = yield encryptor.encrypt(classified.secret);\n            // the deserializer in the plaintextState's `derive` configuration always runs, but\n            // `encryptedState` is not guaranteed to serialize the data, so it's necessary to\n            // round-trip `encrypted` proactively.\n            const serialized = {\n                id,\n                secret: JSON.parse(JSON.stringify(encrypted)),\n                disclosed: classified.disclosed,\n            };\n            return serialized;\n        });\n    }\n    classifyAll(encryptor, data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // fail fast if there's no value\n            if (data === null || data === undefined) {\n                return null;\n            }\n            // convert the object to a list format so that all encrypt and decrypt\n            // operations are self-similar\n            const desconstructed = this.key.deconstruct(data);\n            // encrypt each value individually\n            const classifyTasks = desconstructed.map((item) => __awaiter(this, void 0, void 0, function* () { return this.classifyItem(encryptor, item); }));\n            const classified = yield Promise.all(classifyTasks);\n            return classified;\n        });\n    }\n    /** Updates the secret stored by this state.\n     *  @param configureState a callback that returns an updated decrypted\n     *   secret state. The callback receives the state's present value as its\n     *   first argument and the dependencies listed in `options.combinedLatestWith`\n     *   as its second argument.\n     *  @param options configures how the update is applied. See {@link StateUpdateOptions}.\n     *  @returns a promise that resolves with the updated value read from the state.\n     *   The round-trip encrypts, decrypts, and deserializes the data, producing a new\n     *   object.\n     *  @remarks `configureState` must return a JSON-serializable object.\n     *   If there are properties of your class which are not JSON-serializable,\n     *   they can be lost when the secret state updates its backing store.\n     */\n    update(configureState_1) {\n        return __awaiter(this, arguments, void 0, function* (configureState, options = null) {\n            var _a, _b, _c;\n            const combineLatestWith = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n                (_a = options === null || options === void 0 ? void 0 : options.combineLatestWith) !== null && _a !== void 0 ? _a : (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null),\n                this.$encryptor,\n            ]);\n            // read the backing store\n            let latestClassified;\n            let latestCombined;\n            let latestEncryptor;\n            yield this.encryptedState.update((c) => c, {\n                shouldUpdate: (latest, combined) => {\n                    latestClassified = latest;\n                    [latestCombined, latestEncryptor] = combined;\n                    return false;\n                },\n                combineLatestWith,\n            });\n            // exit early if there's no update to apply\n            const latestDeclassified = yield this.declassifyAll(latestEncryptor, latestClassified);\n            const shouldUpdate = (_c = (_b = options === null || options === void 0 ? void 0 : options.shouldUpdate) === null || _b === void 0 ? void 0 : _b.call(options, latestDeclassified, latestCombined)) !== null && _c !== void 0 ? _c : true;\n            if (!shouldUpdate) {\n                return latestDeclassified;\n            }\n            // apply the update\n            const updatedDeclassified = configureState(latestDeclassified, latestCombined);\n            const updatedClassified = yield this.classifyAll(latestEncryptor, updatedDeclassified);\n            yield this.encryptedState.update(() => updatedClassified);\n            return updatedDeclassified;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16524 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/secret-state.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/state-constraints-dependency.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/tools/state/state-constraints-dependency.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   isDynamic: () => (/* binding */ isDynamic)\n/* harmony export */ });\n/** Returns `true` if the input constraint is a `DynamicStateConstraints<T>`.\n *  Otherwise, returns false.\n *  @param constraints the constraint to evaluate.\n * */\nfunction isDynamic(constraints) {\n    return constraints && \"calibrate\" in constraints;\n}\n//# s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291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/state-constraints-dependency.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/user-encryptor.abstraction.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/tools/state/user-encryptor.abstraction.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserEncryptor: () => (/* binding */ UserEncryptor)\n/* harmony export */ });\n/** An encryption strategy that protects a type's secrets with\n *  user-specific keys. This strategy is bound to a specific user.\n */\nclass UserEncryptor {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3Rvb2xzL3N0YXRlL3VzZXItZW5jcnlwdG9yLmFic3RyYWN0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFNQTs7R0FFRztBQUNJLE1BQWUsYUFBYTtDQXVCbEMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdG9vbHMvc3RhdGUvdXNlci1lbmNyeXB0b3IuYWJzdHJhY3Rpb24udHM/Y2Q1MyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBKc29uaWZ5IH0gZnJvbSBcInR5cGUtZmVzdFwiO1xuXG5pbXBvcnQgeyBVc2VySWQgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdHlwZXMvZ3VpZFwiO1xuXG5pbXBvcnQgeyBFbmNTdHJpbmcgfSBmcm9tIFwiLi4vLi4vcGxhdGZvcm0vbW9kZWxzL2RvbWFpbi9lbmMtc3RyaW5nXCI7XG5cbi8qKiBBbiBlbmNyeXB0aW9uIHN0cmF0ZWd5IHRo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R5cGUgdGhhdCBjYW4gYmVcbiAgICogIHJlaHlkcmF0ZWQgaW50byBhIGRvbWFpbiBvYmplY3QuXG4gICAqICBAcGFyYW0gc2VjcmV0IGFuIGVuY3J5cHRlZCBKU09OIHBheWxvYWQgY29udGFpbmluZyBlbmNyeXB0ZWQgc2VjcmV0cy5cbiAgICogIEByZXR1cm5zIGEgcHJvbWlzZSB0aGF0IHJlc29sdmVzIHRvIHRoZSByYXcgc3RhdGUuIFRoaXMgc3RhdGUgKmlzIG5vdCogYVxuICAgKiAgICBjbGFzcy4gSXQgY29udGFpbnMgb25seSBkYXRhIHRoYXQgY2FuIGJlIHJvdW5kLXRyaXBwZWQgdGhyb3VnaCBKU09OLFxuICAgKiAgICBhbmQgbGFja3MgbWVtYmVycyBzdWNoIGFzIGEgcHJvdG90eXBlIG9yIGJvdW5kIGZ1bmN0aW9ucy5cbiAgICogIEB0aHJvd3MgSWYgYHNlY3JldGAgb3IgYGRpc2Nsb3NlZGAgaXMgYG51bGxgIG9yIGB1bmRlZmluZWRgLCB0aGUgcHJvbWlzZVxuICAgKiAgICByZWplY3RzIHdpdGggYW4gZXJyb3IuXG4gICAqL1xuICBhYnN0cmFjdCBkZWNyeXB0PFNlY3JldD4oc2VjcmV0OiBFbmNTdHJpbmcpOiBQcm9taXNlPEpzb25pZnk8U2VjcmV0Pj47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/user-encryptor.abstraction.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/user-key-encryptor.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/tools/state/user-key-encryptor.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserKeyEncryptor: () => (/* binding */ UserKeyEncryptor)\n/* harmony export */ });\n/* harmony import */ var _user_encryptor_abstraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./user-encryptor.abstraction */ \"../../libs/common/src/tools/state/user-encryptor.abstraction.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n/** A classification strategy that protects a type's secrets by encrypting them\n *  with a `UserKey`\n */\nclass UserKeyEncryptor extends _user_encryptor_abstraction__WEBPACK_IMPORTED_MODULE_0__.UserEncryptor {\n    /** Instantiates the encryptor\n     *  @param userId identifies the user bound to the encryptor.\n     *  @param encryptService protects properties of `Secret`.\n     *  @param keyService looks up the user key when protecting data.\n     *  @param dataPacker packs and unpacks data classified as secrets.\n     */\n    constructor(userId, encryptService, key, dataPacker) {\n        super();\n        this.userId = userId;\n        this.encryptService = encryptService;\n        this.key = key;\n        this.dataPacker = dataPacker;\n        this.assertHasValue(\"userId\", userId);\n        this.assertHasValue(\"key\", key);\n        this.assertHasValue(\"dataPacker\", dataPacker);\n        this.assertHasValue(\"encryptService\", encryptService);\n    }\n    encrypt(secret) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.assertHasValue(\"secret\", secret);\n            let packed = this.dataPacker.pack(secret);\n            const encrypted = yield this.encryptService.encrypt(packed, this.key);\n            packed = null;\n            return encrypted;\n        });\n    }\n    decrypt(secret) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.assertHasValue(\"secret\", secret);\n            let decrypted = yield this.encryptService.decryptToUtf8(secret, this.key);\n            const unpacked = this.dataPacker.unpack(decrypted);\n            decrypted = null;\n            return unpacked;\n        });\n    }\n    assertHasValue(name, value) {\n        if (value === undefined || value === null) {\n            throw new Error(`${name} cannot be null or undefined`);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4752 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/user-key-encryptor.ts\n");

/***/ }),

/***/ "../../libs/common/src/tools/state/user-state-subject.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/tools/state/user-state-subject.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UserStateSubject: () => (/* binding */ UserStateSubject)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rx */ \"../../libs/common/src/tools/rx.ts\");\n/* harmony import */ var _classified_format__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./classified-format */ \"../../libs/common/src/tools/state/classified-format.ts\");\n/* harmony import */ var _identity_state_constraint__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity-state-constraint */ \"../../libs/common/src/tools/state/identity-state-constraint.ts\");\n/* harmony import */ var _object_key__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./object-key */ \"../../libs/common/src/tools/state/object-key.ts\");\n/* harmony import */ var _state_constraints_dependency__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./state-constraints-dependency */ \"../../libs/common/src/tools/state/state-constraints-dependency.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n/**\n * Adapt a state provider to an rxjs subject.\n *\n * This subject buffers the last value it received in memory. The buffer is erased\n * if the subject receives a complete or error event. It does not persist the buffer.\n *\n * Warning! The user state subject has a synchronous interface, but subscriptions are\n * always asynchronous.\n *\n * @template State the state stored by the subject\n * @template Dependencies use-specific dependencies provided by the user.\n */\nclass UserStateSubject extends rxjs__WEBPACK_IMPORTED_MODULE_0__.Observable {\n    /**\n     * Instantiates the user state subject bound to a persistent backing store\n     * @param key identifies the persistent backing store\n     * @param getState creates a persistent backing store using a key\n     * @param context tailor the subject's behavior for a particular\n     *   purpose.\n     * @param dependencies.when$ blocks updates to the state subject until\n     *   this becomes true. When this occurs, only the last-received update\n     *   is applied. The blocked update is kept in memory. It does not persist\n     *   to disk.\n     * @param dependencies.singleUserId$ writes block until the singleUserId$\n     *   is available.\n     */\n    constructor(key, getState, context) {\n        var _a, _b;\n        super();\n        this.key = key;\n        this.context = context;\n        // using subjects to ensure the right semantics are followed;\n        // if greater efficiency becomes desirable, consider implementing\n        // `SubjectLike` directly\n        this.input = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        this.output = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        if ((0,_object_key__WEBPACK_IMPORTED_MODULE_5__.isObjectKey)(this.key)) {\n            // classification and encryption only supported with `ObjectKey`\n            this.objectKey = this.key;\n            this.stateKey = (0,_object_key__WEBPACK_IMPORTED_MODULE_5__.toUserKeyDefinition)(this.key);\n            this.state = getState(this.stateKey);\n        }\n        else {\n            // raw state access granted with `UserKeyDefinition`\n            this.objectKey = null;\n            this.stateKey = this.key;\n            this.state = getState(this.stateKey);\n        }\n        // normalize dependencies\n        const when$ = ((_a = this.context.when$) !== null && _a !== void 0 ? _a : new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(true)).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)());\n        // manage dependencies through replay subjects since `UserStateSubject`\n        // reads them in multiple places\n        const encryptor$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        const { singleUserId$, singleUserEncryptor$ } = this.context;\n        this.encryptor(singleUserEncryptor$ !== null && singleUserEncryptor$ !== void 0 ? singleUserEncryptor$ : singleUserId$).subscribe(encryptor$);\n        const constraints$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        ((_b = this.context.constraints$) !== null && _b !== void 0 ? _b : (0,_identity_state_constraint__WEBPACK_IMPORTED_MODULE_4__.unconstrained$)())\n            .pipe(\n        // FIXME: this should probably log that an error occurred\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.catchError)(() => rxjs__WEBPACK_IMPORTED_MODULE_0__.EMPTY))\n            .subscribe(constraints$);\n        const dependencies$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        if (this.context.dependencies$) {\n            this.context.dependencies$.subscribe(dependencies$);\n        }\n        else {\n            dependencies$.next(null);\n        }\n        // wire output before input so that output normalizes the current state\n        // before any `next` value is processed\n        this.outputSubscription = this.state.state$\n            .pipe(this.declassify(encryptor$), this.adjust((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatestWith)(constraints$)))\n            .subscribe(this.output);\n        const last$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);\n        this.output\n            .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.last)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((o) => o.state))\n            .subscribe(last$);\n        // the update stream simulates the stateProvider's \"shouldUpdate\"\n        // functionality & applies policy\n        const updates$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)(this.input.pipe(this.when(when$), this.adjust((0,_rx__WEBPACK_IMPORTED_MODULE_2__.withLatestReady)(constraints$)), this.prepareUpdate(this, dependencies$)), \n        // when the output subscription completes, its last-emitted value\n        // loops around to the input for finalization\n        last$.pipe(this.fix(constraints$), this.prepareUpdate(last$, dependencies$)));\n        // classification/encryption bound to the input subscription's lifetime\n        // to ensure that `fix` has access to the encryptor key\n        //\n        // FIXME: this should probably timeout when a lock occurs\n        this.inputSubscription = updates$\n            .pipe(this.classify(encryptor$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)((0,_rx__WEBPACK_IMPORTED_MODULE_2__.anyComplete)([when$, this.input, encryptor$])))\n            .subscribe({\n            next: (state) => this.onNext(state),\n            error: (e) => this.onError(e),\n            complete: () => this.onComplete(),\n        });\n    }\n    encryptor(singleUserEncryptor$) {\n        return singleUserEncryptor$.pipe(\n        // normalize inputs\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((maybe) => {\n            if (typeof maybe === \"object\" && \"encryptor\" in maybe) {\n                return maybe;\n            }\n            else if (typeof maybe === \"string\") {\n                return { encryptor: null, userId: maybe };\n            }\n            else {\n                throw new Error(`Invalid encryptor input received for ${this.key.key}.`);\n            }\n        }), \n        // fail the stream if the state desyncs from the bound userId\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.startWith)({ userId: this.state.userId, encryptor: null }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pairwise)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([expected, actual]) => {\n            if (expected.userId === actual.userId) {\n                return actual;\n            }\n            else {\n                throw {\n                    expectedUserId: expected.userId,\n                    actualUserId: actual.userId,\n                };\n            }\n        }), \n        // reduce emissions to when encryptor changes\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(({ encryptor }) => encryptor));\n    }\n    when(when$) {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatestWith)(when$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)())), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)(([_, when]) => !!when), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([input]) => input));\n    }\n    prepareUpdate(init$, dependencies$) {\n        return (input$) => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)(\n        // `init$` becomes the accumulator for `scan`\n        init$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.first)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((init) => [init, null])), input$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((constrained) => constrained.state), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.withLatestFrom)(dependencies$))).pipe(\n        // scan only emits values that can cause updates\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.scan)(([prev], [pending, dependencies]) => {\n            var _a, _b, _c, _d, _e, _f;\n            const shouldUpdate = (_c = (_b = (_a = this.context).shouldUpdate) === null || _b === void 0 ? void 0 : _b.call(_a, prev, pending, dependencies)) !== null && _c !== void 0 ? _c : true;\n            if (shouldUpdate) {\n                // actual update\n                const next = (_f = (_e = (_d = this.context).nextValue) === null || _e === void 0 ? void 0 : _e.call(_d, prev, pending, dependencies)) !== null && _f !== void 0 ? _f : pending;\n                return [next, dependencies];\n            }\n            else {\n                // false update\n                return [prev, null];\n            }\n        }), \n        // the first emission primes `scan`s aggregator\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.skip)(1), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([state]) => state), \n        // clean up false updates\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)());\n    }\n    adjust(withConstraints) {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)(\n        // how constraints are blended with incoming emissions varies:\n        // * `output` needs to emit when constraints update\n        // * `input` needs to wait until a message flows through the pipe\n        withConstraints, (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([loadedState, constraints]) => {\n            // bypass nulls\n            if (!loadedState) {\n                return {\n                    constraints: {},\n                    state: null,\n                };\n            }\n            const calibration = (0,_state_constraints_dependency__WEBPACK_IMPORTED_MODULE_6__.isDynamic)(constraints)\n                ? constraints.calibrate(loadedState)\n                : constraints;\n            const adjusted = calibration.adjust(loadedState);\n            return {\n                constraints: calibration.constraints,\n                state: adjusted,\n            };\n        }));\n    }\n    fix(constraints$) {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatestWith)(constraints$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([loadedState, constraints]) => {\n            const calibration = (0,_state_constraints_dependency__WEBPACK_IMPORTED_MODULE_6__.isDynamic)(constraints)\n                ? constraints.calibrate(loadedState)\n                : constraints;\n            const fixed = calibration.fix(loadedState);\n            return {\n                constraints: calibration.constraints,\n                state: fixed,\n            };\n        }));\n    }\n    declassify(encryptor$) {\n        // short-circuit if they key lacks encryption support\n        if (!this.objectKey || this.objectKey.format === \"plain\") {\n            return (input$) => input$;\n        }\n        // if the key supports encryption, enable encryptor support\n        if (this.objectKey && this.objectKey.format === \"classified\") {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatestWith)(encryptor$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((_a) => __awaiter(this, [_a], void 0, function* ([input, encryptor]) {\n                // pass through null values\n                if (input === null || input === undefined) {\n                    return null;\n                }\n                // fail fast if the format is incorrect\n                if (!(0,_classified_format__WEBPACK_IMPORTED_MODULE_3__.isClassifiedFormat)(input)) {\n                    throw new Error(`Cannot declassify ${this.key.key}; unknown format.`);\n                }\n                // decrypt classified data\n                const { secret, disclosed } = input;\n                const encrypted = _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(secret);\n                const decryptedSecret = yield encryptor.decrypt(encrypted);\n                // assemble into proper state\n                const declassified = this.objectKey.classifier.declassify(disclosed, decryptedSecret);\n                const state = this.objectKey.options.deserializer(declassified);\n                return state;\n            })));\n        }\n        throw new Error(`unknown serialization format: ${this.objectKey.format}`);\n    }\n    classify(encryptor$) {\n        // short-circuit if they key lacks encryption support; `encryptor` is\n        // readied to preserve `dependencies.singleUserId$` emission contract\n        if (!this.objectKey || this.objectKey.format === \"plain\") {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,_rx__WEBPACK_IMPORTED_MODULE_2__.ready)(encryptor$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((input) => input));\n        }\n        // if the key supports encryption, enable encryptor support\n        if (this.objectKey && this.objectKey.format === \"classified\") {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,_rx__WEBPACK_IMPORTED_MODULE_2__.withLatestReady)(encryptor$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((_a) => __awaiter(this, [_a], void 0, function* ([input, encryptor]) {\n                // fail fast if there's no value\n                if (input === null || input === undefined) {\n                    return null;\n                }\n                // split data by classification level\n                const serialized = JSON.parse(JSON.stringify(input));\n                const classified = this.objectKey.classifier.classify(serialized);\n                // protect data\n                const encrypted = yield encryptor.encrypt(classified.secret);\n                const secret = JSON.parse(JSON.stringify(encrypted));\n                // wrap result in classified format envelope for storage\n                const envelope = {\n                    id: null,\n                    secret,\n                    disclosed: classified.disclosed,\n                };\n                // deliberate type erasure; the type is restored during `declassify`\n                return envelope;\n            })));\n        }\n        // FIXME: add \"encrypted\" format --> key contains encryption logic\n        // CONSIDER: should \"classified format\" algorithm be embedded in subject keys...?\n        throw new Error(`unknown serialization format: ${this.objectKey.format}`);\n    }\n    /** The userId to which the subject is bound.\n     */\n    get userId() {\n        return this.state.userId;\n    }\n    next(value) {\n        var _a;\n        (_a = this.input) === null || _a === void 0 ? void 0 : _a.next(value);\n    }\n    error(err) {\n        var _a;\n        (_a = this.input) === null || _a === void 0 ? void 0 : _a.error(err);\n    }\n    complete() {\n        var _a;\n        (_a = this.input) === null || _a === void 0 ? void 0 : _a.complete();\n    }\n    /** Subscribe to the subject's event stream\n     * @param observer listening for events\n     * @returns the subscription\n     */\n    subscribe(observer) {\n        return this.output.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((wc) => wc.state)).subscribe(observer);\n    }\n    /** A stream containing settings and their last-applied constraints. */\n    get withConstraints$() {\n        return this.output.asObservable();\n    }\n    onNext(value) {\n        this.state.update(() => value).catch((e) => this.onError(e));\n    }\n    onError(value) {\n        if (!this.isDisposed) {\n            this.output.error(value);\n        }\n        this.dispose();\n    }\n    onComplete() {\n        if (!this.isDisposed) {\n            this.output.complete();\n        }\n        this.dispose();\n    }\n    get isDisposed() {\n        return this.input === null;\n    }\n    dispose() {\n        var _a, _b;\n        if (!this.isDisposed) {\n            // clean up internal subscriptions\n            (_a = this.inputSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();\n            (_b = this.outputSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();\n            this.inputSubscription = null;\n            this.outputSubscription = null;\n            // drop input to ensure its value is removed from memory\n            this.input = null;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 33792 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/tools/state/user-state-subject.ts\n");

/***/ }),

/***/ "../../libs/common/src/types/vault-timeout.type.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/types/vault-timeout.type.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultTimeoutStringType: () => (/* binding */ VaultTimeoutStringType)\n/* harmony export */ });\n// Note: the below comments are just for documenting what they used to be.\nconst VaultTimeoutStringType = {\n    Never: \"never\", // null\n    OnRestart: \"onRestart\", // -1\n    OnLocked: \"onLocked\", // -2\n    OnSleep: \"onSleep\", // -3\n    OnIdle: \"onIdle\", // -4\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3R5cGVzL3ZhdWx0LXRpbWVvdXQudHlwZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsMEVBQTBFO0FBQ25FLE1BQU0sc0JBQXNCLEdBQUc7SUFDcEMsS0FBSyxFQUFFLE9BQU8sRUFBRSxPQUFPO0lBQ3ZCLFNBQVMsRUFBRSxXQUFXLEVBQUUsS0FBSztJQUM3QixRQUFRLEVBQUUsVUFBVSxFQUFFLEtBQUs7SUFDM0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLO0lBQ3pCLE1BQU0sRUFBRSxRQUFRLEVBQUUsS0FBSztDQUNmLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdHlwZXMvdmF1bHQtdGltZW91dC50eXBlLnRzPzRhMWUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gTm90ZTogdGhlIGJlbG93IGNvbW1lbnRzIGFyZSBqdXN0IGZvciBkb2N1bWVudGluZyB3aGF0IHRoZXkgdXNlZCB0byBiZS5cbmV4cG9ydCBjb25zdCBWYXVsdFRpbWVvdXRTdHJpbmdUeXBlID0ge1xuICBOZXZlcjogXCJuZXZlclwiLCAvLyBudWxsXG4gIE9uUmVzdGFydDogXCJvblJlc3RhcnRcIiwgLy8gLTFcbiAgT25Mb2NrZWQ6IFwib25Mb2NrZWRcIiwgLy8gLTJcbiAgT25TbGVlcDogXCJvblNsZWVwXCIsIC8vIC0zXG4gIE9uSWRsZTogXCJvbklkbGVcIiwgLy8gLTRcbn0gYXMgY29uc3Q7XG5cbmV4cG9ydCB0eXBlIFZhdWx0VGltZW91dCA9XG4gIHwgbnVtYmVyIC8vIDAgb3IgcG9zaXRpdmUgbnVtYmVycyBvbmx5XG4gIHwgKHR5cGVvZiBWYXVsdFRpbWVvdXRTdHJpbmdUeXBlKVtrZXlvZiB0eXBlb2YgVmF1bHRUaW1lb3V0U3RyaW5nVHlwZV07XG5cbmV4cG9ydCBpbnRlcmZhY2UgVmF1bHRUaW1lb3V0T3B0aW9uIHtcbiAgbmFtZTogc3RyaW5nO1xuICB2YWx1ZTogVmF1bHRUaW1lb3V0O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/types/vault-timeout.type.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/enums/cipher-reprompt-type.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/vault/enums/cipher-reprompt-type.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherRepromptType: () => (/* binding */ CipherRepromptType)\n/* harmony export */ });\nvar CipherRepromptType;\n(function (CipherRepromptType) {\n    CipherRepromptType[CipherRepromptType[\"None\"] = 0] = \"None\";\n    CipherRepromptType[CipherRepromptType[\"Password\"] = 1] = \"Password\";\n})(CipherRepromptType || (CipherRepromptType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2NpcGhlci1yZXByb21wdC10eXBlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLGtCQUdYO0FBSEQsV0FBWSxrQkFBa0I7SUFDNUIsMkRBQVE7SUFDUixtRUFBWTtBQUNkLENBQUMsRUFIVyxrQkFBa0IsS0FBbEIsa0JBQWtCLFFBRzdCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2NpcGhlci1yZXByb21wdC10eXBlLnRzPzVkOGQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gQ2lwaGVyUmVwcm9tcHRUeXBlIHtcbiAgTm9uZSA9IDAsXG4gIFBhc3N3b3JkID0gMSxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/enums/cipher-reprompt-type.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/enums/cipher-type.ts":
/*!********************************************************!*\
  !*** ../../libs/common/src/vault/enums/cipher-type.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherType: () => (/* binding */ CipherType)\n/* harmony export */ });\nvar CipherType;\n(function (CipherType) {\n    CipherType[CipherType[\"Login\"] = 1] = \"Login\";\n    CipherType[CipherType[\"SecureNote\"] = 2] = \"SecureNote\";\n    CipherType[CipherType[\"Card\"] = 3] = \"Card\";\n    CipherType[CipherType[\"Identity\"] = 4] = \"Identity\";\n})(CipherType || (CipherType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2NpcGhlci10eXBlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBQSxJQUFZLFVBS1g7QUFMRCxXQUFZLFVBQVU7SUFDcEIsNkNBQVM7SUFDVCx1REFBYztJQUNkLDJDQUFRO0lBQ1IsbURBQVk7QUFDZCxDQUFDLEVBTFcsVUFBVSxLQUFWLFVBQVUsUUFLckIiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvZW51bXMvY2lwaGVyLXR5cGUudHM/YmVmNCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBDaXBoZXJUeXBlIHtcbiAgTG9naW4gPSAxLFxuICBTZWN1cmVOb3RlID0gMixcbiAgQ2FyZCA9IDMsXG4gIElkZW50aXR5ID0gNCxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/enums/cipher-type.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/enums/field-type.enum.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/vault/enums/field-type.enum.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FieldType: () => (/* binding */ FieldType)\n/* harmony export */ });\nvar FieldType;\n(function (FieldType) {\n    FieldType[FieldType[\"Text\"] = 0] = \"Text\";\n    FieldType[FieldType[\"Hidden\"] = 1] = \"Hidden\";\n    FieldType[FieldType[\"Boolean\"] = 2] = \"Boolean\";\n    FieldType[FieldType[\"Linked\"] = 3] = \"Linked\";\n})(FieldType || (FieldType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2ZpZWxkLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxTQUtYO0FBTEQsV0FBWSxTQUFTO0lBQ25CLHlDQUFRO0lBQ1IsNkNBQVU7SUFDViwrQ0FBVztJQUNYLDZDQUFVO0FBQ1osQ0FBQyxFQUxXLFNBQVMsS0FBVCxTQUFTLFFBS3BCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2ZpZWxkLXR5cGUuZW51bS50cz9jNDc4Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEZpZWxkVHlwZSB7XG4gIFRleHQgPSAwLFxuICBIaWRkZW4gPSAxLFxuICBCb29sZWFuID0gMixcbiAgTGlua2VkID0gMyxcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/enums/field-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/enums/index.ts":
/*!**************************************************!*\
  !*** ../../libs/common/src/vault/enums/index.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardLinkedId: () => (/* reexport safe */ _linked_id_type_enum__WEBPACK_IMPORTED_MODULE_3__.CardLinkedId),\n/* harmony export */   CipherRepromptType: () => (/* reexport safe */ _cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_0__.CipherRepromptType),\n/* harmony export */   CipherType: () => (/* reexport safe */ _cipher_type__WEBPACK_IMPORTED_MODULE_1__.CipherType),\n/* harmony export */   FieldType: () => (/* reexport safe */ _field_type_enum__WEBPACK_IMPORTED_MODULE_2__.FieldType),\n/* harmony export */   IdentityLinkedId: () => (/* reexport safe */ _linked_id_type_enum__WEBPACK_IMPORTED_MODULE_3__.IdentityLinkedId),\n/* harmony export */   LoginLinkedId: () => (/* reexport safe */ _linked_id_type_enum__WEBPACK_IMPORTED_MODULE_3__.LoginLinkedId),\n/* harmony export */   SecureNoteType: () => (/* reexport safe */ _secure_note_type_enum__WEBPACK_IMPORTED_MODULE_4__.SecureNoteType)\n/* harmony export */ });\n/* harmony import */ var _cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cipher-reprompt-type */ \"../../libs/common/src/vault/enums/cipher-reprompt-type.ts\");\n/* harmony import */ var _cipher_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\n/* harmony import */ var _field_type_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./field-type.enum */ \"../../libs/common/src/vault/enums/field-type.enum.ts\");\n/* harmony import */ var _linked_id_type_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./linked-id-type.enum */ \"../../libs/common/src/vault/enums/linked-id-type.enum.ts\");\n/* harmony import */ var _secure_note_type_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./secure-note-type.enum */ \"../../libs/common/src/vault/enums/secure-note-type.enum.ts\");\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUF1QztBQUNUO0FBQ0k7QUFDSTtBQUNFIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2luZGV4LnRzP2VlZjkiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY2lwaGVyLXJlcHJvbXB0LXR5cGVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NpcGhlci10eXBlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9maWVsZC10eXBlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpbmtlZC1pZC10eXBlLmVudW1cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlY3VyZS1ub3RlLXR5cGUuZW51bVwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/enums/index.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/enums/linked-id-type.enum.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/vault/enums/linked-id-type.enum.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardLinkedId: () => (/* binding */ CardLinkedId),\n/* harmony export */   IdentityLinkedId: () => (/* binding */ IdentityLinkedId),\n/* harmony export */   LoginLinkedId: () => (/* binding */ LoginLinkedId)\n/* harmony export */ });\n// LoginView\nvar LoginLinkedId;\n(function (LoginLinkedId) {\n    LoginLinkedId[LoginLinkedId[\"Username\"] = 100] = \"Username\";\n    LoginLinkedId[LoginLinkedId[\"Password\"] = 101] = \"Password\";\n})(LoginLinkedId || (LoginLinkedId = {}));\n// CardView\nvar CardLinkedId;\n(function (CardLinkedId) {\n    CardLinkedId[CardLinkedId[\"CardholderName\"] = 300] = \"CardholderName\";\n    CardLinkedId[CardLinkedId[\"ExpMonth\"] = 301] = \"ExpMonth\";\n    CardLinkedId[CardLinkedId[\"ExpYear\"] = 302] = \"ExpYear\";\n    CardLinkedId[CardLinkedId[\"Code\"] = 303] = \"Code\";\n    CardLinkedId[CardLinkedId[\"Brand\"] = 304] = \"Brand\";\n    CardLinkedId[CardLinkedId[\"Number\"] = 305] = \"Number\";\n})(CardLinkedId || (CardLinkedId = {}));\n// IdentityView\nvar IdentityLinkedId;\n(function (IdentityLinkedId) {\n    IdentityLinkedId[IdentityLinkedId[\"Title\"] = 400] = \"Title\";\n    IdentityLinkedId[IdentityLinkedId[\"MiddleName\"] = 401] = \"MiddleName\";\n    IdentityLinkedId[IdentityLinkedId[\"Address1\"] = 402] = \"Address1\";\n    IdentityLinkedId[IdentityLinkedId[\"Address2\"] = 403] = \"Address2\";\n    IdentityLinkedId[IdentityLinkedId[\"Address3\"] = 404] = \"Address3\";\n    IdentityLinkedId[IdentityLinkedId[\"City\"] = 405] = \"City\";\n    IdentityLinkedId[IdentityLinkedId[\"State\"] = 406] = \"State\";\n    IdentityLinkedId[IdentityLinkedId[\"PostalCode\"] = 407] = \"PostalCode\";\n    IdentityLinkedId[IdentityLinkedId[\"Country\"] = 408] = \"Country\";\n    IdentityLinkedId[IdentityLinkedId[\"Company\"] = 409] = \"Company\";\n    IdentityLinkedId[IdentityLinkedId[\"Email\"] = 410] = \"Email\";\n    IdentityLinkedId[IdentityLinkedId[\"Phone\"] = 411] = \"Phone\";\n    IdentityLinkedId[IdentityLinkedId[\"Ssn\"] = 412] = \"Ssn\";\n    IdentityLinkedId[IdentityLinkedId[\"Username\"] = 413] = \"Username\";\n    IdentityLinkedId[IdentityLinkedId[\"PassportNumber\"] = 414] = \"PassportNumber\";\n    IdentityLinkedId[IdentityLinkedId[\"LicenseNumber\"] = 415] = \"LicenseNumber\";\n    IdentityLinkedId[IdentityLinkedId[\"FirstName\"] = 416] = \"FirstName\";\n    IdentityLinkedId[IdentityLinkedId[\"LastName\"] = 417] = \"LastName\";\n    IdentityLinkedId[IdentityLinkedId[\"FullName\"] = 418] = \"FullName\";\n})(IdentityLinkedId || (IdentityLinkedId = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL2xpbmtlZC1pZC10eXBlLmVudW0udHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBRUEsWUFBWTtBQUNaLElBQVksYUFHWDtBQUhELFdBQVksYUFBYTtJQUN2QiwyREFBYztJQUNkLDJEQUFjO0FBQ2hCLENBQUMsRUFIVyxhQUFhLEtBQWIsYUFBYSxRQUd4QjtBQUVELFdBQVc7QUFDWCxJQUFZLFlBT1g7QUFQRCxXQUFZLFlBQVk7SUFDdEIscUVBQW9CO0lBQ3BCLHlEQUFjO0lBQ2QsdURBQWE7SUFDYixpREFBVTtJQUNWLG1EQUFXO0lBQ1gscURBQVk7QUFDZCxDQUFDLEVBUFcsWUFBWSxLQUFaLFlBQVksUUFPdkI7QUFFRCxlQUFlO0FBQ2YsSUFBWSxnQkFvQlg7QUFwQkQsV0FBWSxnQkFBZ0I7SUFDMUIsMkRBQVc7SUFDWCxxRUFBZ0I7SUFDaEIsaUVBQWM7SUFDZCxpRUFBYztJQUNkLGlFQUFjO0lBQ2QseURBQVU7SUFDViwyREFBVztJQUNYLHFFQUFnQjtJQUNoQiwrREFBYTtJQUNiLCtEQUFhO0lBQ2IsMkRBQVc7SUFDWCwyREFBVztJQUNYLHVEQUFTO0lBQ1QsaUVBQWM7SUFDZCw2RUFBb0I7SUFDcEIsMkVBQW1CO0lBQ25CLG1FQUFlO0lBQ2YsaUVBQWM7SUFDZCxpRUFBYztBQUNoQixDQUFDLEVBcEJXLGdCQUFnQixLQUFoQixnQkFBZ0IsUUFvQjNCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3Zh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lUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/enums/linked-id-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/enums/secure-note-type.enum.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/vault/enums/secure-note-type.enum.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureNoteType: () => (/* binding */ SecureNoteType)\n/* harmony export */ });\nvar SecureNoteType;\n(function (SecureNoteType) {\n    SecureNoteType[SecureNoteType[\"Generic\"] = 0] = \"Generic\";\n})(SecureNoteType || (SecureNoteType = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL3NlY3VyZS1ub3RlLXR5cGUuZW51bS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsSUFBWSxjQUVYO0FBRkQsV0FBWSxjQUFjO0lBQ3hCLHlEQUFXO0FBQ2IsQ0FBQyxFQUZXLGNBQWMsS0FBZCxjQUFjLFFBRXpCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2VudW1zL3NlY3VyZS1ub3RlLXR5cGUuZW51bS50cz8zNmVmIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFNlY3VyZU5vdGVUeXBlIHtcbiAgR2VuZXJpYyA9IDAsXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/enums/secure-note-type.enum.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/linked-field-option.decorator.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/vault/linked-field-option.decorator.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LinkedMetadata: () => (/* binding */ LinkedMetadata),\n/* harmony export */   linkedFieldOption: () => (/* binding */ linkedFieldOption)\n/* harmony export */ });\nclass LinkedMetadata {\n    constructor(propertyKey, attributes) {\n        this.propertyKey = propertyKey;\n        this._i18nKey = attributes === null || attributes === void 0 ? void 0 : attributes.i18nKey;\n        this.sortPosition = attributes.sortPosition;\n    }\n    get i18nKey() {\n        var _a;\n        return (_a = this._i18nKey) !== null && _a !== void 0 ? _a : this.propertyKey;\n    }\n}\n/**\n * A decorator used to set metadata used by Linked custom fields. Apply it to a class property or getter to make it\n *    available as a Linked custom field option.\n * @param id - A unique value that is saved in the Field model. It is used to look up the decorated class property.\n * @param options - {@link LinkedMetadataAttributes}\n */\nfunction linkedFieldOption(id, attributes) {\n    return (prototype, propertyKey) => {\n        if (prototype.linkedFieldOptions == null) {\n            prototype.linkedFieldOptions = new Map();\n        }\n        prototype.linkedFieldOptions.set(id, new LinkedMetadata(propertyKey, attributes));\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L2xpbmtlZC1maWVsZC1vcHRpb24uZGVjb3JhdG9yLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBZ0JPLE1BQU0sY0FBYztJQUl6QixZQUNXLFdBQW1CLEVBQzVCLFVBQW9DO1FBRDNCLGdCQUFXLEdBQVgsV0FBVyxDQUFRO1FBRzVCLElBQUksQ0FBQyxRQUFRLEdBQUcsVUFBVSxhQUFWLFVBQVUsdUJBQVYsVUFBVSxDQUFFLE9BQU8sQ0FBQztRQUNwQyxJQUFJLENBQUMsWUFBWS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GlzIHNhdmVkIGluIHRoZSBGaWVsZCBtb2RlbC4gSXQgaXMgdXNlZCB0byBsb29rIHVwIHRoZSBkZWNvcmF0ZWQgY2xhc3MgcHJvcGVydHkuXG4gKiBAcGFyYW0gb3B0aW9ucyAtIHtAbGluayBMaW5rZWRNZXRhZGF0YUF0dHJpYnV0ZXN9XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBsaW5rZWRGaWVsZE9wdGlvbihpZDogTGlua2VkSWRUeXBlLCBhdHRyaWJ1dGVzOiBMaW5rZWRNZXRhZGF0YUF0dHJpYnV0ZXMpIHtcbiAgcmV0dXJuIChwcm90b3R5cGU6IEl0ZW1WaWV3LCBwcm9wZXJ0eUtleTogc3RyaW5nKSA9PiB7XG4gICAgaWYgKHByb3RvdHlwZS5saW5rZWRGaWVsZE9wdGlvbnMgPT0gbnVsbCkge1xuICAgICAgcHJvdG90eXBlLmxpbmtlZEZpZWxkT3B0aW9ucyA9IG5ldyBNYXA8TGlua2VkSWRUeXBlLCBMaW5rZWRNZXRhZGF0YT4oKTtcbiAgICB9XG5cbiAgICBwcm90b3R5cGUubGlua2VkRmllbGRPcHRpb25zLnNldChpZCwgbmV3IExpbmtlZE1ldGFkYXRhKHByb3BlcnR5S2V5LCBhdHRyaWJ1dGVzKSk7XG4gIH07XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/linked-field-option.decorator.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/card.api.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/vault/models/api/card.api.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardApi: () => (/* binding */ CardApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass CardApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.cardholderName = this.getResponseProperty(\"CardholderName\");\n        this.brand = this.getResponseProperty(\"Brand\");\n        this.number = this.getResponseProperty(\"Number\");\n        this.expMonth = this.getResponseProperty(\"ExpMonth\");\n        this.expYear = this.getResponseProperty(\"ExpYear\");\n        this.code = this.getResponseProperty(\"Code\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9hcGkvY2FyZC5hcGkudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSxPQUFRLFNBQVEsd0VBQVk7SUFRdkMsWUFBWSxPQUFZLElBQUk7UUFDMUIsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ1osSUFBSSxJQUFJLElBQUksSUFBSSxFQUFFLENBQUM7WUFDakIsT0FBTztRQUNULENBQUM7UUFDRCxJQUFJLENBQUMsY0FBYyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQ2pFLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQy9DLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLG1CQUFtQixDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ3JELElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLG1CQ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pO1xuICAgIHRoaXMuZXhwWWVhciA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkV4cFllYXJcIik7XG4gICAgdGhpcy5jb2RlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ29kZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/card.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/fido2-credential.api.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/vault/models/api/fido2-credential.api.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Fido2CredentialApi: () => (/* binding */ Fido2CredentialApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass Fido2CredentialApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.credentialId = this.getResponseProperty(\"CredentialId\");\n        this.keyType = this.getResponseProperty(\"KeyType\");\n        this.keyAlgorithm = this.getResponseProperty(\"KeyAlgorithm\");\n        this.keyCurve = this.getResponseProperty(\"KeyCurve\");\n        this.keyValue = this.getResponseProperty(\"keyValue\");\n        this.rpId = this.getResponseProperty(\"RpId\");\n        this.userHandle = this.getResponseProperty(\"UserHandle\");\n        this.userName = this.getResponseProperty(\"UserName\");\n        this.counter = this.getResponseProperty(\"Counter\");\n        this.rpName = this.getResponseProperty(\"RpName\");\n        this.userDisplayName = this.getResponseProperty(\"UserDisplayName\");\n        this.discoverable = this.getResponseProperty(\"Discoverable\");\n        this.creationDate = this.getRes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ShcIlJwTmFtZVwiKTtcbiAgICB0aGlzLnVzZXJEaXNwbGF5TmFtZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlVzZXJEaXNwbGF5TmFtZVwiKTtcbiAgICB0aGlzLmRpc2NvdmVyYWJsZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkRpc2NvdmVyYWJsZVwiKTtcbiAgICB0aGlzLmNyZWF0aW9uRGF0ZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkNyZWF0aW9uRGF0ZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/fido2-credential.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/field.api.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/vault/models/api/field.api.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FieldApi: () => (/* binding */ FieldApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass FieldApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.type = this.getResponseProperty(\"Type\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.value = this.getResponseProperty(\"Value\");\n        this.linkedId = this.getResponseProperty(\"linkedId\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9hcGk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SWQ6IExpbmtlZElkVHlwZTtcblxuICBjb25zdHJ1Y3RvcihkYXRhOiBhbnkgPSBudWxsKSB7XG4gICAgc3VwZXIoZGF0YSk7XG4gICAgaWYgKGRhdGEgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB0aGlzLnR5cGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJUeXBlXCIpO1xuICAgIHRoaXMubmFtZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIk5hbWVcIik7XG4gICAgdGhpcy52YWx1ZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlZhbHVlXCIpO1xuICAgIHRoaXMubGlua2VkSWQgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJsaW5rZWRJZFwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/field.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/identity.api.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/api/identity.api.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityApi: () => (/* binding */ IdentityApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass IdentityApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.title = this.getResponseProperty(\"Title\");\n        this.firstName = this.getResponseProperty(\"FirstName\");\n        this.middleName = this.getResponseProperty(\"MiddleName\");\n        this.lastName = this.getResponseProperty(\"LastName\");\n        this.address1 = this.getResponseProperty(\"Address1\");\n        this.address2 = this.getResponseProperty(\"Address2\");\n        this.address3 = this.getResponseProperty(\"Address3\");\n        this.city = this.getResponseProperty(\"City\");\n        this.state = this.getResponseProperty(\"State\");\n        this.postalCode = this.getResponseProperty(\"PostalCode\");\n        this.country = this.getResponseProperty(\"Country\");\n        this.company = this.getResponseProperty(\"Company\");\n        this.email = this.getResponseProperty(\"Email\");\n        this.phone = this.getResponseProperty(\"Phone\");\n        this.ssn = this.getResponseProperty(\"SSN\");\n        this.username = this.getResponseProperty(\"Username\");\n        this.passportNumber = this.getResponseProperty(\"PassportNumber\");\n        this.licenseNumber = this.getResponseProperty(\"LicenseNumber\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4304 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/identity.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/login-uri.api.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/vault/models/api/login-uri.api.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginUriApi: () => (/* binding */ LoginUriApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass LoginUriApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        this.match = null;\n        if (data == null) {\n            return;\n        }\n        this.uri = this.getResponseProperty(\"Uri\");\n        this.uriChecksum = this.getResponseProperty(\"UriChecksum\");\n        const match = this.getResponseProperty(\"Match\");\n        this.match = match != null ? match : null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMapping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tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIExvZ2luVXJpQXBpIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgdXJpOiBzdHJpbmc7XG4gIHVyaUNoZWNrc3VtOiBzdHJpbmc7XG4gIG1hdGNoOiBVcmlNYXRjaFN0cmF0ZWd5U2V0dGluZyA9IG51bGw7XG5cbiAgY29uc3RydWN0b3IoZGF0YTogYW55ID0gbnVsbCkge1xuICAgIHN1cGVyKGRhdGEpO1xuICAgIGlmIChkYXRhID09IG51bGwpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgdGhpcy51cmkgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJVcmlcIik7XG4gICAgdGhpcy51cmlDaGVja3N1bSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlVyaUNoZWNrc3VtXCIpO1xuICAgIGNvbnN0IG1hdGNoID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiTWF0Y2hcIik7XG4gICAgdGhpcy5tYXRjaCA9IG1hdGNoICE9IG51bGwgPyBtYXRjaCA6IG51bGw7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/login-uri.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/login.api.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/vault/models/api/login.api.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginApi: () => (/* binding */ LoginApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _fido2_credential_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fido2-credential.api */ \"../../libs/common/src/vault/models/api/fido2-credential.api.ts\");\n/* harmony import */ var _login_uri_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./login-uri.api */ \"../../libs/common/src/vault/models/api/login-uri.api.ts\");\n\n\n\nclass LoginApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.username = this.getResponseProperty(\"Username\");\n        this.password = this.getResponseProperty(\"Password\");\n        this.passwordRevisionDate = this.getResponseProperty(\"PasswordRevisionDate\");\n        this.totp = this.getResponseProperty(\"Totp\");\n        this.autofillOnPageLoad = this.getResponseProperty(\"AutofillOnPageLoad\");\n        const uris = this.getResponseProperty(\"Uris\");\n        if (uris != null) {\n            this.uris = uris.map((u) => new _login_uri_api__WEBPACK_IMPORTED_MODULE_2__.LoginUriApi(u));\n        }\n        const fido2Credentials = this.getResponseProperty(\"Fido2Credentials\");\n        if (fido2Credentials != null) {\n            this.fido2Credentials = fido2Credentials.map((key) => new _fido2_credential_api__WEBPACK_IMPORTED_MODULE_1__.Fido2CredentialApi(key));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9hcGkvbG9naW4uYXBpLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFFc0U7QUFFVjtBQUNkO0FBRXZDLE1BQU0sUUFBUyxTQUFRLHdFQUFZO0lBU3hDLFlBQVksT0FBWSxJQUFJO1FBQzFCLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNaLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2p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iAgICB0aGlzLnBhc3N3b3JkUmV2aXNpb25EYXRlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUGFzc3dvcmRSZXZpc2lvbkRhdGVcIik7XG4gICAgdGhpcy50b3RwID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVG90cFwiKTtcbiAgICB0aGlzLmF1dG9maWxsT25QYWdlTG9hZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkF1dG9maWxsT25QYWdlTG9hZFwiKTtcblxuICAgIGNvbnN0IHVyaXMgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJVcmlzXCIpO1xuICAgIGlmICh1cmlzICE9IG51bGwpIHtcbiAgICAgIHRoaXMudXJpcyA9IHVyaXMubWFwKCh1OiBhbnkpID0+IG5ldyBMb2dpblVyaUFwaSh1KSk7XG4gICAgfVxuXG4gICAgY29uc3QgZmlkbzJDcmVkZW50aWFscyA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIkZpZG8yQ3JlZGVudGlhbHNcIik7XG4gICAgaWYgKGZpZG8yQ3JlZGVudGlhbHMgIT0gbnVsbCkge1xuICAgICAgdGhpcy5maWRvMkNyZWRlbnRpYWxzID0gZmlkbzJDcmVkZW50aWFscy5tYXAoXG4gICAgICAgIChrZXk6IEpzb25PYmplY3QpID0+IG5ldyBGaWRvMkNyZWRlbnRpYWxBcGkoa2V5KSxcbiAgICAgICk7XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/login.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/api/secure-note.api.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/vault/models/api/secure-note.api.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureNoteApi: () => (/* binding */ SecureNoteApi)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass SecureNoteApi extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(data = null) {\n        super(data);\n        if (data == null) {\n            return;\n        }\n        this.type = this.getResponseProperty(\"Type\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9hcGkvc2VjdXJlLW5vdGUuYXBpLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRy9ELE1BQU0sYUFBYyxTQUFRLHdFQUFZO0lBRzdDLFlBQVksT0FBWSxJQUFJO1FBQzFCLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNaLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2pCLE9BQU87UUFDVCxDQUFDO1FBQ0QsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsbUJBQW1CLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDL0MsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9hcGkvc2VjdXJlLW5vdGUuYXBpLnRzPzI5M2UiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFzZVJlc3BvbnNlIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9yZXNwb25zZS9iYXNlLnJlc3BvbnNlXCI7XG5pbXBvcnQgeyBTZWN1cmVOb3RlVHlwZSB9IGZyb20gXCIuLi8uLi9lbnVtc1wiO1xuXG5leHBvcnQgY2xhc3MgU2VjdXJlTm90ZUFwaSBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIHR5cGU6IFNlY3VyZU5vdGVUeXBlO1xuXG4gIGNvbnN0cnVjdG9yKGRhdGE6IGFueSA9IG51bGwpIHtcbiAgICBzdXBlcihkYXRhKTtcbiAgICBpZiAoZGF0YSA9PSBudWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHRoaXMudHlwZSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIlR5cGVcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/api/secure-note.api.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/attachment.data.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/attachment.data.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AttachmentData: () => (/* binding */ AttachmentData)\n/* harmony export */ });\nclass AttachmentData {\n    constructor(response) {\n        if (response == null) {\n            return;\n        }\n        this.id = response.id;\n        this.url = response.url;\n        this.fileName = response.fileName;\n        this.key = response.key;\n        this.size = response.size;\n        this.sizeName = response.sizeName;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2F0dGFjaG1lbnQuZGF0YS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxjQUFjO0lBUXpCLFlBQVksUUFBNkI7UUFDdkMsSUFBSSxRQUFRLElBQUksSUFBSSxFQUFFLENBQUM7WUFDckI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4gICAgdGhpcy5maWxlTmFtZSA9IHJlc3BvbnNlLmZpbGVOYW1lO1xuICAgIHRoaXMua2V5ID0gcmVzcG9uc2Uua2V5O1xuICAgIHRoaXMuc2l6ZSA9IHJlc3BvbnNlLnNpemU7XG4gICAgdGhpcy5zaXplTmFtZSA9IHJlc3BvbnNlLnNpemVOYW1lO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/attachment.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/card.data.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/card.data.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardData: () => (/* binding */ CardData)\n/* harmony export */ });\nclass CardData {\n    constructor(data) {\n        if (data == null) {\n            return;\n        }\n        this.cardholderName = data.cardholderName;\n        this.brand = data.brand;\n        this.number = data.number;\n        this.expMonth = data.expMonth;\n        this.expYear = data.expYear;\n        this.code = data.code;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2NhcmQuZGF0YS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxRQUFRO0lBUW5CLFlBQVksSUFBYztRQUN4QixJQUFJLElBQUksSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNqQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxjQUFjLEdBQUcsSUFBSSxDQUFDLGNBQWMsQ0FBQztRQUMxQyxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDeEIsSUFBSSxDQ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VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/card.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/cipher.data.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/cipher.data.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherData: () => (/* binding */ CipherData)\n/* harmony export */ });\n/* harmony import */ var _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums/cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\n/* harmony import */ var _attachment_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attachment.data */ \"../../libs/common/src/vault/models/data/attachment.data.ts\");\n/* harmony import */ var _card_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./card.data */ \"../../libs/common/src/vault/models/data/card.data.ts\");\n/* harmony import */ var _field_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./field.data */ \"../../libs/common/src/vault/models/data/field.data.ts\");\n/* harmony import */ var _identity_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./identity.data */ \"../../libs/common/src/vault/models/data/identity.data.ts\");\n/* harmony import */ var _login_data__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login.data */ \"../../libs/common/src/vault/models/data/login.data.ts\");\n/* harmony import */ var _password_history_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./password-history.data */ \"../../libs/common/src/vault/models/data/password-history.data.ts\");\n/* harmony import */ var _secure_note_data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./secure-note.data */ \"../../libs/common/src/vault/models/data/secure-note.data.ts\");\n\n\n\n\n\n\n\n\nclass CipherData {\n    constructor(response, collectionIds) {\n        if (response == null) {\n            return;\n        }\n        this.id = response.id;\n        this.organizationId = response.organizationId;\n        this.folderId = response.folderId;\n        this.edit = response.edit;\n        this.viewPassword = response.viewPassword;\n        this.organizationUseTotp = response.organizationUseTotp;\n        this.favorite = response.favorite;\n        this.revisionDate = response.revisionDate;\n        this.type = response.type;\n        this.name = response.name;\n        this.notes = response.notes;\n        this.collectionIds = collectionIds != null ? collectionIds : response.collectionIds;\n        this.creationDate = response.creationDate;\n        this.deletedDate = response.deletedDate;\n        this.reprompt = response.reprompt;\n        this.key = response.key;\n        switch (this.type) {\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login:\n                this.login = new _login_data__WEBPACK_IMPORTED_MODULE_5__.LoginData(response.login);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote:\n                this.secureNote = new _secure_note_data__WEBPACK_IMPORTED_MODULE_7__.SecureNoteData(response.secureNote);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card:\n                this.card = new _card_data__WEBPACK_IMPORTED_MODULE_2__.CardData(response.card);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity:\n                this.identity = new _identity_data__WEBPACK_IMPORTED_MODULE_4__.IdentityData(response.identity);\n                break;\n            default:\n                break;\n        }\n        if (response.fields != null) {\n            this.fields = response.fields.map((f) => new _field_data__WEBPACK_IMPORTED_MODULE_3__.FieldData(f));\n        }\n        if (response.attachments != null) {\n            this.attachments = response.attachments.map((a) => new _attachment_data__WEBPACK_IMPORTED_MODULE_1__.AttachmentData(a));\n        }\n        if (response.passwordHistory != null) {\n            this.passwordHistory = response.passwordHistory.map((ph) => new _password_history_data__WEBPACK_IMPORTED_MODULE_6__.PasswordHistoryData(ph));\n        }\n    }\n    static fromJSON(obj) {\n        return Object.assign(new CipherData(), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7120 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/cipher.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/fido2-credential.data.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/fido2-credential.data.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Fido2CredentialData: () => (/* binding */ Fido2CredentialData)\n/* harmony export */ });\nclass Fido2CredentialData {\n    constructor(data) {\n        if (data == null) {\n            return;\n        }\n        this.credentialId = data.credentialId;\n        this.keyType = data.keyType;\n        this.keyAlgorithm = data.keyAlgorithm;\n        this.keyCurve = data.keyCurve;\n        this.keyValue = data.keyValue;\n        this.rpId = data.rpId;\n        this.userHandle = data.userHandle;\n        this.userName = data.userName;\n        this.counter = data.counter;\n        this.rpName = data.rpName;\n        this.userDisplayName = data.userDisplayName;\n        this.discoverable = data.discoverable;\n        this.creationDate = data.creationDate;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2ZpZG8yLWNyZWRlbnRpYWwuZGF0YS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxtQkFBbUI7SUFlOUIsWUFBWSxJQUF5QjtRQUNuQyxJQUFJLElBQUksSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNqQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLFlBQVksQ0FBQztRQUN0QyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUM7UUFDNUIsSUFBSSxDQUFDLFlBQVksR0FBRyxJQUFJLEN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9IGRhdGEuY3JlYXRpb25EYXRlO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/fido2-credential.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/field.data.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/field.data.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FieldData: () => (/* binding */ FieldData)\n/* harmony export */ });\nclass FieldData {\n    constructor(response) {\n        if (response == null) {\n            return;\n        }\n        this.type = response.type;\n        this.name = response.name;\n        this.value = response.value;\n        this.linkedId = response.linkedId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2ZpZWxkLmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUdPLE1BQU0sU0FBUztJQU1wQixZQUFZLFFBQW1CO1FBQzdCLElBQUksUUFBUSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ3JCLE9BQU87UUFDVCxDQUFDO1FBQ0QsSUFBSSxDQUFDLElBQUksR0FBRyxRQUFRLENBQUMsSUFBSSxDQUFDO1FBQzFCLElBQUksQ0FBQyxJQUFJLEdBQUcsUUFBUSxDQUFDLElBQUksQ0FBQztRQUMxQixJQUFJLENBQUMsS0FBSyxHQUFHLFFBQVEsQ0FBQyxLQUFLLENBQUM7UUFDNUIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUMsUUFBUSxDQUFDO0lBQ3BDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvZGF0YS9maWVsZC5kYXRhLnRzP2MyYmMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmllbGRUeXBlLCBMaW5rZWRJZFR5cGUgfSBmcm9tIFwiLi4vLi4vZW51bXNcIjtcbmltcG9ydCB7IEZpZWxkQXBpIH0gZnJvbSBcIi4uL2FwaS9maWVsZC5hcGlcIjtcblxuZXhwb3J0IGNsYXNzIEZpZWxkRGF0YSB7XG4gIHR5cGU6IEZpZWxkVHlwZTtcbiAgbmFtZTogc3RyaW5nO1xuICB2YWx1ZTogc3RyaW5nO1xuICBsaW5rZWRJZDogTGlua2VkSWRUeXBlO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlPzogRmllbGRBcGkpIHtcbiAgICBpZiAocmVzcG9uc2UgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB0aGlzLnR5cGUgPSByZXNwb25zZS50eXBlO1xuICAgIHRoaXMubmFtZSA9IHJlc3BvbnNlLm5hbWU7XG4gICAgdGhpcy52YWx1ZSA9IHJlc3BvbnNlLnZhbHVlO1xuICAgIHRoaXMubGlua2VkSWQgPSByZXNwb25zZS5saW5rZWRJZDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/field.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/folder.data.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/folder.data.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderData: () => (/* binding */ FolderData)\n/* harmony export */ });\nclass FolderData {\n    constructor(response) {\n        this.name = response === null || response === void 0 ? void 0 : response.name;\n        this.id = response === null || response === void 0 ? void 0 : response.id;\n        this.revisionDate = response === null || response === void 0 ? void 0 : response.revisionDate;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new FolderData({}), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2ZvbGRlci5kYXRhLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFJTyxNQUFNLFVBQVU7SUFLckIsWUFBWSxRQUFpQztRQUMzQyxJQUFJLENBQUMsSUFBSSxHQUFHLFFBQVEsYUFBUixRQUFRLHVCQUFSLFFBQVEsQ0FBRSxJQUFJLENBQUM7UUFDM0IsSUFBSSxDQUFDLEVBQUUsR0FBRyxRQUFRLGFBQVIsUUFBUSx1QkFBUixRQUFRLENBQUUsRUFBRSxDQUFDO1FBQ3ZCLElBQUksQ0FBQyxZQUFZLEdBQUcsUUFBUSxhQUFSLFFBQVEsdUJBQVIsUUFBUSxDQUFFLFlBQVksQ0FBQztJQUM3QyxDQUFDO0lBRUQsTUFBTSxDQUFDLFFBQVEsQ0FBQyxHQUF3QjtRQUN0QyxPQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxVQUFVLENBQUMsRUFBRSxDQUFDLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDaEQsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2ZvbGRlci5kYXRhLnRzP2E4MDMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSnNvbmlmeSB9IGZyb20gXCJ0eXBlLWZlc3RcIjtcblxuaW1wb3J0IHsgRm9sZGVyUmVzcG9uc2UgfSBmcm9tIFwiLi4vcmVzcG9uc2UvZm9sZGVyLnJlc3BvbnNlXCI7XG5cbmV4cG9ydCBjbGFzcyBGb2xkZXJEYXRhIHtcbiAgaWQ6IHN0cmluZztcbiAgbmFtZTogc3RyaW5nO1xuICByZXZpc2lvbkRhdGU6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogUGFydGlhbDxGb2xkZXJSZXNwb25zZT4pIHtcbiAgICB0aGlzLm5hbWUgPSByZXNwb25zZT8ubmFtZTtcbiAgICB0aGlzLmlkID0gcmVzcG9uc2U/LmlkO1xuICAgIHRoaXMucmV2aXNpb25EYXRlID0gcmVzcG9uc2U/LnJldmlzaW9uRGF0ZTtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IEpzb25pZnk8Rm9sZGVyRGF0YT4pIHtcbiAgICByZXR1cm4gT2JqZWN0LmFzc2lnbihuZXcgRm9sZGVyRGF0YSh7fSksIG9iaik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/folder.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/identity.data.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/identity.data.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityData: () => (/* binding */ IdentityData)\n/* harmony export */ });\nclass IdentityData {\n    constructor(data) {\n        if (data == null) {\n            return;\n        }\n        this.title = data.title;\n        this.firstName = data.firstName;\n        this.middleName = data.middleName;\n        this.lastName = data.lastName;\n        this.address1 = data.address1;\n        this.address2 = data.address2;\n        this.address3 = data.address3;\n        this.city = data.city;\n        this.state = data.state;\n        this.postalCode = data.postalCode;\n        this.country = data.country;\n        this.company = data.company;\n        this.email = data.email;\n        this.phone = data.phone;\n        this.ssn = data.ssn;\n        this.username = data.username;\n        this.passportNumber = data.passportNumber;\n        this.licenseNumber = data.licenseNumber;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2lkZW50aXR5LmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sWUFBWTtJQW9CdkIsWUFBWSxJQUFrQjtRQUM1QixJQUFJLElBQUksSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNqQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQztRQUN4QixJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUM7UUFDaEMsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDO1FBQ2xDLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQztRQUM5QixJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUM7UUFDOUIsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDO1FBQzlCLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQztRQUM5QixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUM7UUFDdEIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDO1FBQ3hCLElBQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQztRQUNsQyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUM7UUFDNUIsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJL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cyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/identity.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/login-uri.data.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/login-uri.data.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginUriData: () => (/* binding */ LoginUriData)\n/* harmony export */ });\nclass LoginUriData {\n    constructor(data) {\n        this.match = null;\n        if (data == null) {\n            return;\n        }\n        this.uri = data.uri;\n        this.uriChecksum = data.uriChecksum;\n        this.match = data.match;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2xvZ2luLXVyaS5kYXRhLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFHTyxNQUFNLFlBQVk7SUFLdkIsWUFBWSxJQUFrQjtRQUY5QixVQUFLLEdBQTRCLElBQUksQ0FBQztRQUdwQyxJQUFJLElBQUksSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNqQixPQUFPO1FBQ1QsQ0FBQztRQUNELElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQztRQUNwQixJQUFJLENBQUMsV0FBVyxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUM7UUFDcEMsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDO0lBQzFCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvZGF0YS9sb2dpbi11cmkuZGF0YS50cz84MDY4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFVyaU1hdGNoU3RyYXRlZ3lTZXR0aW5nIH0gZnJvbSBcIi4uLy4uLy4uL21vZGVscy9kb21haW4vZG9tYWluLXNlcnZpY2VcIjtcbmltcG9ydCB7IExvZ2luVXJpQXBpIH0gZnJvbSBcIi4uL2FwaS9sb2dpbi11cmkuYXBpXCI7XG5cbmV4cG9ydCBjbGFzcyBMb2dpblVyaURhdGEge1xuICB1cmk6IHN0cmluZztcbiAgdXJpQ2hlY2tzdW06IHN0cmluZztcbiAgbWF0Y2g6IFVyaU1hdGNoU3RyYXRlZ3lTZXR0aW5nID0gbnVsbDtcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogTG9naW5VcmlBcGkpIHtcbiAgICBpZiAoZGF0YSA9PSBudWxsKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIHRoaXMudXJpID0gZGF0YS51cmk7XG4gICAgdGhpcy51cmlDaGVja3N1bSA9IGRhdGEudXJpQ2hlY2tzdW07XG4gICAgdGhpcy5tYXRjaCA9IGRhdGEubWF0Y2g7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/login-uri.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/login.data.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/login.data.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginData: () => (/* binding */ LoginData)\n/* harmony export */ });\n/* harmony import */ var _fido2_credential_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fido2-credential.data */ \"../../libs/common/src/vault/models/data/fido2-credential.data.ts\");\n/* harmony import */ var _login_uri_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login-uri.data */ \"../../libs/common/src/vault/models/data/login-uri.data.ts\");\n\n\nclass LoginData {\n    constructor(data) {\n        var _a;\n        if (data == null) {\n            return;\n        }\n        this.username = data.username;\n        this.password = data.password;\n        this.passwordRevisionDate = data.passwordRevisionDate;\n        this.totp = data.totp;\n        this.autofillOnPageLoad = data.autofillOnPageLoad;\n        if (data.uris) {\n            this.uris = data.uris.map((u) => new _login_uri_data__WEBPACK_IMPORTED_MODULE_1__.LoginUriData(u));\n        }\n        if (data.fido2Credentials) {\n            this.fido2Credentials = (_a = data.fido2Credentials) === null || _a === void 0 ? void 0 : _a.map((key) => new _fido2_credential_data__WEBPACK_IMPORTED_MODULE_0__.Fido2CredentialData(key));\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL2xvZ2luLmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBRThEO0FBQ2Q7QUFFekMsTUFBTSxTQUFTO0lBU3BCLFlBQVksSUFBZTs7UUFDekIsSUFBSSxJQUFJLElBQUksSUFBSSxFQUFFLENBQUM7WUFDakIsT0FBTztRQUNULENBQUM7UUFFRCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUM7UUFDOUIsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDO1FBQzlCLElBQUksQ0FBQyxvQkFBb0IsR0FBRyxJQUFJLENBQUMsb0JBQW9CLENBQUM7UUFDdEQsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQ3RCLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxJQUFJLENBQUMsa0JBQWtCLENBQUM7UUFFbEQsSUFBSSxJQUFJ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4gIGZpZG8yQ3JlZGVudGlhbHM/OiBGaWRvMkNyZWRlbnRpYWxEYXRhW107XG5cbiAgY29uc3RydWN0b3IoZGF0YT86IExvZ2luQXBpKSB7XG4gICAgaWYgKGRhdGEgPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMudXNlcm5hbWUgPSBkYXRhLnVzZXJuYW1lO1xuICAgIHRoaXMucGFzc3dvcmQgPSBkYXRhLnBhc3N3b3JkO1xuICAgIHRoaXMucGFzc3dvcmRSZXZpc2lvbkRhdGUgPSBkYXRhLnBhc3N3b3JkUmV2aXNpb25EYXRlO1xuICAgIHRoaXMudG90cCA9IGRhdGEudG90cDtcbiAgICB0aGlzLmF1dG9maWxsT25QYWdlTG9hZCA9IGRhdGEuYXV0b2ZpbGxPblBhZ2VMb2FkO1xuXG4gICAgaWYgKGRhdGEudXJpcykge1xuICAgICAgdGhpcy51cmlzID0gZGF0YS51cmlzLm1hcCgodSkgPT4gbmV3IExvZ2luVXJpRGF0YSh1KSk7XG4gICAgfVxuXG4gICAgaWYgKGRhdGEuZmlkbzJDcmVkZW50aWFscykge1xuICAgICAgdGhpcy5maWRvMkNyZWRlbnRpYWxzID0gZGF0YS5maWRvMkNyZWRlbnRpYWxzPy5tYXAoKGtleSkgPT4gbmV3IEZpZG8yQ3JlZGVudGlhbERhdGEoa2V5KSk7XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/login.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/password-history.data.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/password-history.data.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordHistoryData: () => (/* binding */ PasswordHistoryData)\n/* harmony export */ });\nclass PasswordHistoryData {\n    constructor(response) {\n        if (response == null) {\n            return;\n        }\n        this.password = response.password;\n        this.lastUsedDate = response.lastUsedDate;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL3Bhc3N3b3JkLWhpc3RvcnkuZGF0YS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxtQkFBbUI7SUFJOUIsWUFBWSxRQUFrQztRQUM1QyxJQUFJLFFBQVEsSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNyQixPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDLFFBQVEsQ0FBQztRQUNsQyxJQUFJLENBQUMsWUFBWSxHQUFHLFFBQVEsQ0FBQyxZQUFZLENBQUM7SUFDNUMsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL3Bhc3N3b3JkLWhpc3RvcnkuZGF0YS50cz9jNDA0Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBhc3N3b3JkSGlzdG9yeVJlc3BvbnNlIH0gZnJvbSBcIi4uL3Jlc3BvbnNlL3Bhc3N3b3JkLWhpc3RvcnkucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIFBhc3N3b3JkSGlzdG9yeURhdGEge1xuICBwYXNzd29yZDogc3RyaW5nO1xuICBsYXN0VXNlZERhdGU6IHN0cmluZztcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZT86IFBhc3N3b3JkSGlzdG9yeVJlc3BvbnNlKSB7XG4gICAgaWYgKHJlc3BvbnNlID09IG51bGwpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLnBhc3N3b3JkID0gcmVzcG9uc2UucGFzc3dvcmQ7XG4gICAgdGhpcy5sYXN0VXNlZERhdGUgPSByZXNwb25zZS5sYXN0VXNlZERhdGU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/password-history.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/data/secure-note.data.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/vault/models/data/secure-note.data.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureNoteData: () => (/* binding */ SecureNoteData)\n/* harmony export */ });\nclass SecureNoteData {\n    constructor(data) {\n        if (data == null) {\n            return;\n        }\n        this.type = data.type;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kYXRhL3NlY3VyZS1ub3RlLmRhdGEudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUdPLE1BQU0sY0FBYztJQUd6QixZQUFZLElBQW9CO1FBQzlCLElBQUksSUFBSSxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2pCLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDO0lBQ3hCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvZGF0YS9zZWN1cmUtbm90ZS5kYXRhLnRzPzE1MDgiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VjdXJlTm90ZVR5cGUgfSBmcm9tIFwiLi4vLi4vZW51bXNcIjtcbmltcG9ydCB7IFNlY3VyZU5vdGVBcGkgfSBmcm9tIFwiLi4vYXBpL3NlY3VyZS1ub3RlLmFwaVwiO1xuXG5leHBvcnQgY2xhc3MgU2VjdXJlTm90ZURhdGEge1xuICB0eXBlOiBTZWN1cmVOb3RlVHlwZTtcblxuICBjb25zdHJ1Y3RvcihkYXRhPzogU2VjdXJlTm90ZUFwaSkge1xuICAgIGlmIChkYXRhID09IG51bGwpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLnR5cGUgPSBkYXRhLnR5cGU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/data/secure-note.data.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/attachment.ts":
/*!***************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/attachment.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Attachment: () => (/* binding */ Attachment)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _data_attachment_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../data/attachment.data */ \"../../libs/common/src/vault/models/data/attachment.data.ts\");\n/* harmony import */ var _view_attachment_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../view/attachment.view */ \"../../libs/common/src/vault/models/view/attachment.view.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass Attachment extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.size = obj.size;\n        this.buildDomainModel(this, obj, {\n            id: null,\n            url: null,\n            sizeName: null,\n            fileName: null,\n            key: null,\n        }, [\"id\", \"url\", \"sizeName\"]);\n    }\n    decrypt(orgId, encKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const view = yield this.decryptObj(new _view_attachment_view__WEBPACK_IMPORTED_MODULE_5__.AttachmentView(this), {\n                fileName: null,\n            }, orgId, encKey);\n            if (this.key != null) {\n                view.key = yield this.decryptAttachmentKey(orgId, encKey);\n            }\n            return view;\n        });\n    }\n    decryptAttachmentKey(orgId, encKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                if (encKey == null) {\n                    encKey = yield this.getKeyForDecryption(orgId);\n                }\n                const encryptService = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getContainerService().getEncryptService();\n                const decValue = yield encryptService.decryptToBytes(this.key, encKey);\n                return new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(decValue);\n            }\n            catch (e) {\n                // TODO: error?\n            }\n        });\n    }\n    getKeyForDecryption(orgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const keyService = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getContainerService().getKeyService();\n            return orgId != null\n                ? yield keyService.getOrgKey(orgId)\n                : yield keyService.getUserKeyWithLegacySupport();\n        });\n    }\n    toAttachmentData() {\n        const a = new _data_attachment_data__WEBPACK_IMPORTED_MODULE_4__.AttachmentData();\n        a.size = this.size;\n        this.buildDataModel(this, a, {\n            id: null,\n            url: null,\n            sizeName: null,\n            fileName: null,\n            key: null,\n        }, [\"id\", \"url\", \"sizeName\"]);\n        return a;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const key = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.key);\n        const fileName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.fileName);\n        return Object.assign(new Attachment(), obj, {\n            key,\n            fileName,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6828 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/attachment.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/card.ts":
/*!*********************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/card.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Card: () => (/* binding */ Card)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_card_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/card.data */ \"../../libs/common/src/vault/models/data/card.data.ts\");\n/* harmony import */ var _view_card_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n\n\n\n\nclass Card extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            cardholderName: null,\n            brand: null,\n            number: null,\n            expMonth: null,\n            expYear: null,\n            code: null,\n        }, []);\n    }\n    decrypt(orgId, encKey) {\n        return this.decryptObj(new _view_card_view__WEBPACK_IMPORTED_MODULE_3__.CardView(), {\n            cardholderName: null,\n            brand: null,\n            number: null,\n            expMonth: null,\n            expYear: null,\n            code: null,\n        }, orgId, encKey);\n    }\n    toCardData() {\n        const c = new _data_card_data__WEBPACK_IMPORTED_MODULE_2__.CardData();\n        this.buildDataModel(this, c, {\n            cardholderName: null,\n            brand: null,\n            number: null,\n            expMonth: null,\n            expYear: null,\n            code: null,\n        });\n        return c;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const cardholderName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.cardholderName);\n        const brand = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.brand);\n        const number = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.number);\n        const expMonth = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.expMonth);\n        const expYear = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.expYear);\n        const code = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.code);\n        return Object.assign(new Card(), obj, {\n            cardholderName,\n            brand,\n            number,\n            expMonth,\n            expYear,\n            code,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5120 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/card.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/cipher.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/cipher.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Cipher: () => (/* binding */ Cipher)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _platform_services_cryptography_initializer_key__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../platform/services/cryptography/initializer-key */ \"../../libs/common/src/platform/services/cryptography/initializer-key.ts\");\n/* harmony import */ var _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../enums/cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\n/* harmony import */ var _data_cipher_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../data/cipher.data */ \"../../libs/common/src/vault/models/data/cipher.data.ts\");\n/* harmony import */ var _view_cipher_view__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _attachment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./attachment */ \"../../libs/common/src/vault/models/domain/attachment.ts\");\n/* harmony import */ var _card__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./card */ \"../../libs/common/src/vault/models/domain/card.ts\");\n/* harmony import */ var _field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./field */ \"../../libs/common/src/vault/models/domain/field.ts\");\n/* harmony import */ var _identity__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./identity */ \"../../libs/common/src/vault/models/domain/identity.ts\");\n/* harmony import */ var _login__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./login */ \"../../libs/common/src/vault/models/domain/login.ts\");\n/* harmony import */ var _password__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./password */ \"../../libs/common/src/vault/models/domain/password.ts\");\n/* harmony import */ var _secure_note__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./secure-note */ \"../../libs/common/src/vault/models/domain/secure-note.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass Cipher extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n    constructor(obj, localData = null) {\n        super();\n        this.initializerKey = _platform_services_cryptography_initializer_key__WEBPACK_IMPORTED_MODULE_4__.InitializerKey.Cipher;\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            id: null,\n            organizationId: null,\n            folderId: null,\n            name: null,\n            notes: null,\n            key: null,\n        }, [\"id\", \"organizationId\", \"folderId\"]);\n        this.type = obj.type;\n        this.favorite = obj.favorite;\n        this.organizationUseTotp = obj.organizationUseTotp;\n        this.edit = obj.edit;\n        if (obj.viewPassword != null) {\n            this.viewPassword = obj.viewPassword;\n        }\n        else {\n            this.viewPassword = true; // Default for already synced Ciphers without viewPassword\n        }\n        this.revisionDate = obj.revisionDate != null ? new Date(obj.revisionDate) : null;\n        this.collectionIds = obj.collectionIds;\n        this.localData = localData;\n        this.creationDate = obj.creationDate != null ? new Date(obj.creationDate) : null;\n        this.deletedDate = obj.deletedDate != null ? new Date(obj.deletedDate) : null;\n        this.reprompt = obj.reprompt;\n        switch (this.type) {\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login:\n                this.login = new _login__WEBPACK_IMPORTED_MODULE_12__.Login(obj.login);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.SecureNote:\n                this.secureNote = new _secure_note__WEBPACK_IMPORTED_MODULE_14__.SecureNote(obj.secureNote);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Card:\n                this.card = new _card__WEBPACK_IMPORTED_MODULE_9__.Card(obj.card);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Identity:\n                this.identity = new _identity__WEBPACK_IMPORTED_MODULE_11__.Identity(obj.identity);\n                break;\n            default:\n                break;\n        }\n        if (obj.attachments != null) {\n            this.attachments = obj.attachments.map((a) => new _attachment__WEBPACK_IMPORTED_MODULE_8__.Attachment(a));\n        }\n        else {\n            this.attachments = null;\n        }\n        if (obj.fields != null) {\n            this.fields = obj.fields.map((f) => new _field__WEBPACK_IMPORTED_MODULE_10__.Field(f));\n        }\n        else {\n            this.fields = null;\n        }\n        if (obj.passwordHistory != null) {\n            this.passwordHistory = obj.passwordHistory.map((ph) => new _password__WEBPACK_IMPORTED_MODULE_13__.Password(ph));\n        }\n        else {\n            this.passwordHistory = null;\n        }\n    }\n    // We are passing the organizationId into the EncString.decrypt() method here, but because the encKey will always be\n    // present and so the organizationId will not be used.\n    // We will refactor the EncString.decrypt() in https://bitwarden.atlassian.net/browse/PM-3762 to remove the dependency on the organizationId.\n    decrypt(encKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const model = new _view_cipher_view__WEBPACK_IMPORTED_MODULE_7__.CipherView(this);\n            let bypassValidation = true;\n            if (this.key != null) {\n                const encryptService = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getContainerService().getEncryptService();\n                encKey = new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_3__.SymmetricCryptoKey(yield encryptService.decryptToBytes(this.key, encKey));\n                bypassValidation = false;\n            }\n            yield this.decryptObj(model, {\n                name: null,\n                notes: null,\n            }, this.organizationId, encKey);\n            switch (this.type) {\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login:\n                    model.login = yield this.login.decrypt(this.organizationId, bypassValidation, encKey);\n                    break;\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.SecureNote:\n                    model.secureNote = yield this.secureNote.decrypt(this.organizationId, encKey);\n                    break;\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Card:\n                    model.card = yield this.card.decrypt(this.organizationId, encKey);\n                    break;\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Identity:\n                    model.identity = yield this.identity.decrypt(this.organizationId, encKey);\n                    break;\n                default:\n                    break;\n            }\n            if (this.attachments != null && this.attachments.length > 0) {\n                const attachments = [];\n                yield this.attachments.reduce((promise, attachment) => {\n                    return promise\n                        .then(() => {\n                        return attachment.decrypt(this.organizationId, encKey);\n                    })\n                        .then((decAttachment) => {\n                        attachments.push(decAttachment);\n                    });\n                }, Promise.resolve());\n                model.attachments = attachments;\n            }\n            if (this.fields != null && this.fields.length > 0) {\n                const fields = [];\n                yield this.fields.reduce((promise, field) => {\n                    return promise\n                        .then(() => {\n                        return field.decrypt(this.organizationId, encKey);\n                    })\n                        .then((decField) => {\n                        fields.push(decField);\n                    });\n                }, Promise.resolve());\n                model.fields = fields;\n            }\n            if (this.passwordHistory != null && this.passwordHistory.length > 0) {\n                const passwordHistory = [];\n                yield this.passwordHistory.reduce((promise, ph) => {\n                    return promise\n                        .then(() => {\n                        return ph.decrypt(this.organizationId, encKey);\n                    })\n                        .then((decPh) => {\n                        passwordHistory.push(decPh);\n                    });\n                }, Promise.resolve());\n                model.passwordHistory = passwordHistory;\n            }\n            return model;\n        });\n    }\n    toCipherData() {\n        var _a;\n        const c = new _data_cipher_data__WEBPACK_IMPORTED_MODULE_6__.CipherData();\n        c.id = this.id;\n        c.organizationId = this.organizationId;\n        c.folderId = this.folderId;\n        c.edit = this.edit;\n        c.viewPassword = this.viewPassword;\n        c.organizationUseTotp = this.organizationUseTotp;\n        c.favorite = this.favorite;\n        c.revisionDate = this.revisionDate != null ? this.revisionDate.toISOString() : null;\n        c.type = this.type;\n        c.collectionIds = this.collectionIds;\n        c.creationDate = this.creationDate != null ? this.creationDate.toISOString() : null;\n        c.deletedDate = this.deletedDate != null ? this.deletedDate.toISOString() : null;\n        c.reprompt = this.reprompt;\n        c.key = (_a = this.key) === null || _a === void 0 ? void 0 : _a.encryptedString;\n        this.buildDataModel(this, c, {\n            name: null,\n            notes: null,\n        });\n        switch (c.type) {\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login:\n                c.login = this.login.toLoginData();\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.SecureNote:\n                c.secureNote = this.secureNote.toSecureNoteData();\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Card:\n                c.card = this.card.toCardData();\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Identity:\n                c.identity = this.identity.toIdentityData();\n                break;\n            default:\n                break;\n        }\n        if (this.fields != null) {\n            c.fields = this.fields.map((f) => f.toFieldData());\n        }\n        if (this.attachments != null) {\n            c.attachments = this.attachments.map((a) => a.toAttachmentData());\n        }\n        if (this.passwordHistory != null) {\n            c.passwordHistory = this.passwordHistory.map((ph) => ph.toPasswordHistoryData());\n        }\n        return c;\n    }\n    static fromJSON(obj) {\n        var _a, _b, _c;\n        if (obj == null) {\n            return null;\n        }\n        const domain = new Cipher();\n        const name = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.name);\n        const notes = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.notes);\n        const revisionDate = obj.revisionDate == null ? null : new Date(obj.revisionDate);\n        const deletedDate = obj.deletedDate == null ? null : new Date(obj.deletedDate);\n        const attachments = (_a = obj.attachments) === null || _a === void 0 ? void 0 : _a.map((a) => _attachment__WEBPACK_IMPORTED_MODULE_8__.Attachment.fromJSON(a));\n        const fields = (_b = obj.fields) === null || _b === void 0 ? void 0 : _b.map((f) => _field__WEBPACK_IMPORTED_MODULE_10__.Field.fromJSON(f));\n        const passwordHistory = (_c = obj.passwordHistory) === null || _c === void 0 ? void 0 : _c.map((ph) => _password__WEBPACK_IMPORTED_MODULE_13__.Password.fromJSON(ph));\n        const key = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.key);\n        Object.assign(domain, obj, {\n            name,\n            notes,\n            revisionDate,\n            deletedDate,\n            attachments,\n            fields,\n            passwordHistory,\n            key,\n        });\n        switch (obj.type) {\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Card:\n                domain.card = _card__WEBPACK_IMPORTED_MODULE_9__.Card.fromJSON(obj.card);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Identity:\n                domain.identity = _identity__WEBPACK_IMPORTED_MODULE_11__.Identity.fromJSON(obj.identity);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login:\n                domain.login = _login__WEBPACK_IMPORTED_MODULE_12__.Login.fromJSON(obj.login);\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_5__.CipherType.SecureNote:\n                domain.secureNote = _secure_note__WEBPACK_IMPORTED_MODULE_14__.SecureNote.fromJSON(obj.secureNote);\n                break;\n            default:\n                break;\n        }\n        return domain;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 25196 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/cipher.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/fido2-credential.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/fido2-credential.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Fido2Credential: () => (/* binding */ Fido2Credential)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_fido2_credential_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/fido2-credential.data */ \"../../libs/common/src/vault/models/data/fido2-credential.data.ts\");\n/* harmony import */ var _view_fido2_credential_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/fido2-credential.view */ \"../../libs/common/src/vault/models/view/fido2-credential.view.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nclass Fido2Credential extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        this.credentialId = null;\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            credentialId: null,\n            keyType: null,\n            keyAlgorithm: null,\n            keyCurve: null,\n            keyValue: null,\n            rpId: null,\n            userHandle: null,\n            userName: null,\n            counter: null,\n            rpName: null,\n            userDisplayName: null,\n            discoverable: null,\n        }, []);\n        this.creationDate = obj.creationDate != null ? new Date(obj.creationDate) : null;\n    }\n    decrypt(orgId, encKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const view = yield this.decryptObj(new _view_fido2_credential_view__WEBPACK_IMPORTED_MODULE_3__.Fido2CredentialView(), {\n                credentialId: null,\n                keyType: null,\n                keyAlgorithm: null,\n                keyCurve: null,\n                keyValue: null,\n                rpId: null,\n                userHandle: null,\n                userName: null,\n                rpName: null,\n                userDisplayName: null,\n                discoverable: null,\n            }, orgId, encKey);\n            const { counter } = yield this.decryptObj({ counter: \"\" }, {\n                counter: null,\n            }, orgId, encKey);\n            // Counter will end up as NaN if this fails\n            view.counter = parseInt(counter);\n            const { discoverable } = yield this.decryptObj({ discoverable: \"\" }, {\n                discoverable: null,\n            }, orgId, encKey);\n            view.discoverable = discoverable === \"true\";\n            view.creationDate = this.creationDate;\n            return view;\n        });\n    }\n    toFido2CredentialData() {\n        const i = new _data_fido2_credential_data__WEBPACK_IMPORTED_MODULE_2__.Fido2CredentialData();\n        i.creationDate = this.creationDate.toISOString();\n        this.buildDataModel(this, i, {\n            credentialId: null,\n            keyType: null,\n            keyAlgorithm: null,\n            keyCurve: null,\n            keyValue: null,\n            rpId: null,\n            userHandle: null,\n            userName: null,\n            counter: null,\n            rpName: null,\n            userDisplayName: null,\n            discoverable: null,\n        });\n        return i;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const credentialId = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.credentialId);\n        const keyType = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.keyType);\n        const keyAlgorithm = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.keyAlgorithm);\n        const keyCurve = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.keyCurve);\n        const keyValue = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.keyValue);\n        const rpId = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.rpId);\n        const userHandle = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.userHandle);\n        const userName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.userName);\n        const counter = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.counter);\n        const rpName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.rpName);\n        const userDisplayName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.userDisplayName);\n        const discoverable = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.discoverable);\n        const creationDate = obj.creationDate != null ? new Date(obj.creationDate) : null;\n        return Object.assign(new Fido2Credential(), obj, {\n            credentialId,\n            keyType,\n            keyAlgorithm,\n            keyCurve,\n            keyValue,\n            rpId,\n            userHandle,\n            userName,\n            counter,\n            rpName,\n            userDisplayName,\n            discoverable,\n            creationDate,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10180 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/fido2-credential.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/field.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/field.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Field: () => (/* binding */ Field)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_field_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/field.data */ \"../../libs/common/src/vault/models/data/field.data.ts\");\n/* harmony import */ var _view_field_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/field.view */ \"../../libs/common/src/vault/models/view/field.view.ts\");\n\n\n\n\nclass Field extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.type = obj.type;\n        this.linkedId = obj.linkedId;\n        this.buildDomainModel(this, obj, {\n            name: null,\n            value: null,\n        }, []);\n    }\n    decrypt(orgId, encKey) {\n        return this.decryptObj(new _view_field_view__WEBPACK_IMPORTED_MODULE_3__.FieldView(this), {\n            name: null,\n            value: null,\n        }, orgId, encKey);\n    }\n    toFieldData() {\n        const f = new _data_field_data__WEBPACK_IMPORTED_MODULE_2__.FieldData();\n        this.buildDataModel(this, f, {\n            name: null,\n            value: null,\n            type: null,\n            linkedId: null,\n        }, [\"type\", \"linkedId\"]);\n        return f;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const name = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.name);\n        const value = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.value);\n        return Object.assign(new Field(), obj, {\n            name,\n            value,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kb21haW4vZmllbGQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFFaUU7QUFDTTtBQUd4QjtBQUNBO0FBRXhDLE1BQU0sS0FBTSxTQUFRLDJFQ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ICAgIGYsXG4gICAgICB7XG4gICAgICAgIG5hbWU6IG51bGwsXG4gICAgICAgIHZhbHVlOiBudWxsLFxuICAgICAgICB0eXBlOiBudWxsLFxuICAgICAgICBsaW5rZWRJZDogbnVsbCxcbiAgICAgIH0sXG4gICAgICBbXCJ0eXBlXCIsIFwibGlua2VkSWRcIl0sXG4gICAgKTtcbiAgICByZXR1cm4gZjtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IFBhcnRpYWw8SnNvbmlmeTxGaWVsZD4+KTogRmllbGQge1xuICAgIGlmIChvYmogPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgY29uc3QgbmFtZSA9IEVuY1N0cmluZy5mcm9tSlNPTihvYmoubmFtZSk7XG4gICAgY29uc3QgdmFsdWUgPSBFbmNTdHJpbmcuZnJvbUpTT04ob2JqLnZhbHVlKTtcblxuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG5ldyBGaWVsZCgpLCBvYmosIHtcbiAgICAgIG5hbWUsXG4gICAgICB2YWx1ZSxcbiAgICB9KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/field.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/folder.ts":
/*!***********************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/folder.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Folder: () => (/* binding */ Folder),\n/* harmony export */   Test: () => (/* binding */ Test)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _view_folder_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass Test extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n}\nclass Folder extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            id: null,\n            name: null,\n        }, [\"id\"]);\n        this.revisionDate = obj.revisionDate != null ? new Date(obj.revisionDate) : null;\n    }\n    decrypt() {\n        return this.decryptObj(new _view_folder_view__WEBPACK_IMPORTED_MODULE_2__.FolderView(this), {\n            name: null,\n        }, null);\n    }\n    decryptWithKey(key, encryptService) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decrypted = yield this.decryptObjWithKey([\"name\"], key, encryptService, Folder);\n            const view = new _view_folder_view__WEBPACK_IMPORTED_MODULE_2__.FolderView(decrypted);\n            view.name = decrypted.name;\n            return view;\n        });\n    }\n    static fromJSON(obj) {\n        const revisionDate = obj.revisionDate == null ? null : new Date(obj.revisionDate);\n        return Object.assign(new Folder(), obj, { name: _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.name), revisionDate });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4144 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/folder.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/identity.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/identity.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Identity: () => (/* binding */ Identity)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_identity_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/identity.data */ \"../../libs/common/src/vault/models/data/identity.data.ts\");\n/* harmony import */ var _view_identity_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n\n\n\n\nclass Identity extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            title: null,\n            firstName: null,\n            middleName: null,\n            lastName: null,\n            address1: null,\n            address2: null,\n            address3: null,\n            city: null,\n            state: null,\n            postalCode: null,\n            country: null,\n            company: null,\n            email: null,\n            phone: null,\n            ssn: null,\n            username: null,\n            passportNumber: null,\n            licenseNumber: null,\n        }, []);\n    }\n    decrypt(orgId, encKey) {\n        return this.decryptObj(new _view_identity_view__WEBPACK_IMPORTED_MODULE_3__.IdentityView(), {\n            title: null,\n            firstName: null,\n            middleName: null,\n            lastName: null,\n            address1: null,\n            address2: null,\n            address3: null,\n            city: null,\n            state: null,\n            postalCode: null,\n            country: null,\n            company: null,\n            email: null,\n            phone: null,\n            ssn: null,\n            username: null,\n            passportNumber: null,\n            licenseNumber: null,\n        }, orgId, encKey);\n    }\n    toIdentityData() {\n        const i = new _data_identity_data__WEBPACK_IMPORTED_MODULE_2__.IdentityData();\n        this.buildDataModel(this, i, {\n            title: null,\n            firstName: null,\n            middleName: null,\n            lastName: null,\n            address1: null,\n            address2: null,\n            address3: null,\n            city: null,\n            state: null,\n            postalCode: null,\n            country: null,\n            company: null,\n            email: null,\n            phone: null,\n            ssn: null,\n            username: null,\n            passportNumber: null,\n            licenseNumber: null,\n        });\n        return i;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const title = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.title);\n        const firstName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.firstName);\n        const middleName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.middleName);\n        const lastName = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.lastName);\n        const address1 = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.address1);\n        const address2 = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.address2);\n        const address3 = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.address3);\n        const city = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.city);\n        const state = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.state);\n        const postalCode = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.postalCode);\n        const country = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.country);\n        const company = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.company);\n        const email = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.email);\n        const phone = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.phone);\n        const ssn = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.ssn);\n        const username = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.username);\n        const passportNumber = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.passportNumber);\n        const licenseNumber = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.licenseNumber);\n        return Object.assign(new Identity(), obj, {\n            title,\n            firstName,\n            middleName,\n            lastName,\n            address1,\n            address2,\n            address3,\n            city,\n            state,\n            postalCode,\n            country,\n            company,\n            email,\n            phone,\n            ssn,\n            username,\n            passportNumber,\n            licenseNumber,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10096 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/identity.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/login-uri.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/login-uri.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginUri: () => (/* binding */ LoginUri)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_login_uri_data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../data/login-uri.data */ \"../../libs/common/src/vault/models/data/login-uri.data.ts\");\n/* harmony import */ var _view_login_uri_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../view/login-uri.view */ \"../../libs/common/src/vault/models/view/login-uri.view.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass LoginUri extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.match = obj.match;\n        this.buildDomainModel(this, obj, {\n            uri: null,\n            uriChecksum: null,\n        }, []);\n    }\n    decrypt(orgId, encKey) {\n        return this.decryptObj(new _view_login_uri_view__WEBPACK_IMPORTED_MODULE_4__.LoginUriView(this), {\n            uri: null,\n        }, orgId, encKey);\n    }\n    validateChecksum(clearTextUri, orgId, encKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.uriChecksum == null) {\n                return false;\n            }\n            const keyService = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getContainerService().getEncryptService();\n            const localChecksum = yield keyService.hash(clearTextUri, \"sha256\");\n            const remoteChecksum = yield this.uriChecksum.decrypt(orgId, encKey);\n            return remoteChecksum === localChecksum;\n        });\n    }\n    toLoginUriData() {\n        const u = new _data_login_uri_data__WEBPACK_IMPORTED_MODULE_3__.LoginUriData();\n        this.buildDataModel(this, u, {\n            uri: null,\n            uriChecksum: null,\n            match: null,\n        }, [\"match\"]);\n        return u;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const uri = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.uri);\n        const uriChecksum = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString.fromJSON(obj.uriChecksum);\n        return Object.assign(new LoginUri(), obj, {\n            uri,\n            uriChecksum,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5164 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/login-uri.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/login.ts":
/*!**********************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/login.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Login: () => (/* binding */ Login)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_login_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/login.data */ \"../../libs/common/src/vault/models/data/login.data.ts\");\n/* harmony import */ var _view_login_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _fido2_credential__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fido2-credential */ \"../../libs/common/src/vault/models/domain/fido2-credential.ts\");\n/* harmony import */ var _login_uri__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login-uri */ \"../../libs/common/src/vault/models/domain/login-uri.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass Login extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.passwordRevisionDate =\n            obj.passwordRevisionDate != null ? new Date(obj.passwordRevisionDate) : null;\n        this.autofillOnPageLoad = obj.autofillOnPageLoad;\n        this.buildDomainModel(this, obj, {\n            username: null,\n            password: null,\n            totp: null,\n        }, []);\n        if (obj.uris) {\n            this.uris = [];\n            obj.uris.forEach((u) => {\n                this.uris.push(new _login_uri__WEBPACK_IMPORTED_MODULE_5__.LoginUri(u));\n            });\n        }\n        if (obj.fido2Credentials) {\n            this.fido2Credentials = obj.fido2Credentials.map((key) => new _fido2_credential__WEBPACK_IMPORTED_MODULE_4__.Fido2Credential(key));\n        }\n    }\n    decrypt(orgId, bypassValidation, encKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const view = yield this.decryptObj(new _view_login_view__WEBPACK_IMPORTED_MODULE_3__.LoginView(this), {\n                username: null,\n                password: null,\n                totp: null,\n            }, orgId, encKey);\n            if (this.uris != null) {\n                view.uris = [];\n                for (let i = 0; i < this.uris.length; i++) {\n                    // If the uri is null, there is nothing to decrypt or validate\n                    if (this.uris[i].uri == null) {\n                        continue;\n                    }\n                    const uri = yield this.uris[i].decrypt(orgId, encKey);\n                    // URIs are shared remotely after decryption\n                    // we need to validate that the string hasn't been changed by a compromised server\n                    // This validation is tied to the existence of cypher.key for backwards compatibility\n                    // So we bypass the validation if there's no cipher.key or procceed with the validation and\n                    // Skip the value if it's been tampered with.\n                    if (bypassValidation || (yield this.uris[i].validateChecksum(uri.uri, orgId, encKey))) {\n                        view.uris.push(uri);\n                    }\n                }\n            }\n            if (this.fido2Credentials != null) {\n                view.fido2Credentials = yield Promise.all(this.fido2Credentials.map((key) => key.decrypt(orgId, encKey)));\n            }\n            return view;\n        });\n    }\n    toLoginData() {\n        const l = new _data_login_data__WEBPACK_IMPORTED_MODULE_2__.LoginData();\n        l.passwordRevisionDate =\n            this.passwordRevisionDate != null ? this.passwordRevisionDate.toISOString() : null;\n        l.autofillOnPageLoad = this.autofillOnPageLoad;\n        this.buildDataModel(this, l, {\n            username: null,\n            password: null,\n            totp: null,\n        });\n        if (this.uris != null && this.uris.length > 0) {\n            l.uris = [];\n            this.uris.forEach((u) => {\n                l.uris.push(u.toLoginUriData());\n            });\n        }\n        if (this.fido2Credentials != null && this.fido2Credentials.length > 0) {\n            l.fido2Credentials = this.fido2Credentials.map((key) => key.toFido2CredentialData());\n        }\n        return l;\n    }\n    static fromJSON(obj) {\n        var _a, _b, _c;\n        if (obj == null) {\n            return null;\n        }\n        const username = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.username);\n        const password = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.password);\n        const totp = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.totp);\n        const passwordRevisionDate = obj.passwordRevisionDate == null ? null : new Date(obj.passwordRevisionDate);\n        const uris = (_a = obj.uris) === null || _a === void 0 ? void 0 : _a.map((uri) => _login_uri__WEBPACK_IMPORTED_MODULE_5__.LoginUri.fromJSON(uri));\n        const fido2Credentials = (_c = (_b = obj.fido2Credentials) === null || _b === void 0 ? void 0 : _b.map((key) => _fido2_credential__WEBPACK_IMPORTED_MODULE_4__.Fido2Credential.fromJSON(key))) !== null && _c !== void 0 ? _c : [];\n        return Object.assign(new Login(), obj, {\n            username,\n            password,\n            totp,\n            passwordRevisionDate,\n            uris,\n            fido2Credentials,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11068 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/login.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/password.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/password.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Password: () => (/* binding */ Password)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _data_password_history_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../data/password-history.data */ \"../../libs/common/src/vault/models/data/password-history.data.ts\");\n/* harmony import */ var _view_password_history_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../view/password-history.view */ \"../../libs/common/src/vault/models/view/password-history.view.ts\");\n\n\n\n\nclass Password extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.buildDomainModel(this, obj, {\n            password: null,\n        });\n        this.lastUsedDate = new Date(obj.lastUsedDate);\n    }\n    decrypt(orgId, encKey) {\n        return this.decryptObj(new _view_password_history_view__WEBPACK_IMPORTED_MODULE_3__.PasswordHistoryView(this), {\n            password: null,\n        }, orgId, encKey);\n    }\n    toPasswordHistoryData() {\n        const ph = new _data_password_history_data__WEBPACK_IMPORTED_MODULE_2__.PasswordHistoryData();\n        ph.lastUsedDate = this.lastUsedDate.toISOString();\n        this.buildDataModel(this, ph, {\n            password: null,\n        });\n        return ph;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        const password = _platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString.fromJSON(obj.password);\n        const lastUsedDate = obj.lastUsedDate == null ? null : new Date(obj.lastUsedDate);\n        return Object.assign(new Password(), obj, {\n            password,\n            lastUsedDate,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kb21haW4vcGFzc3dvcmQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFFaUU7QUFDTTtBQUVIO0FBQ0E7QUFFN0QsTUFBTSxRQUFTLFNBQVEsMkVBQU07SUFJbEMsWUFBWSxHQUF5QjtRQU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8SnNvbmlmeTxQYXNzd29yZD4+KTogUGFzc3dvcmQge1xuICAgIGlmIChvYmogPT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgY29uc3QgcGFzc3dvcmQgPSBFbmNTdHJpbmcuZnJvbUpTT04ob2JqLnBhc3N3b3JkKTtcbiAgICBjb25zdCBsYXN0VXNlZERhdGUgPSBvYmoubGFzdFVzZWREYXRlID09IG51bGwgPyBudWxsIDogbmV3IERhdGUob2JqLmxhc3RVc2VkRGF0ZSk7XG5cbiAgICByZXR1cm4gT2JqZWN0LmFzc2lnbihuZXcgUGFzc3dvcmQoKSwgb2JqLCB7XG4gICAgICBwYXNzd29yZCxcbiAgICAgIGxhc3RVc2VkRGF0ZSxcbiAgICB9KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/password.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/secure-note.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/secure-note.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureNote: () => (/* binding */ SecureNote)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/domain-base */ \"../../libs/common/src/platform/models/domain/domain-base.ts\");\n/* harmony import */ var _data_secure_note_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data/secure-note.data */ \"../../libs/common/src/vault/models/data/secure-note.data.ts\");\n/* harmony import */ var _view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n\n\n\nclass SecureNote extends _platform_models_domain_domain_base__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    constructor(obj) {\n        super();\n        if (obj == null) {\n            return;\n        }\n        this.type = obj.type;\n    }\n    decrypt(orgId, encKey) {\n        return Promise.resolve(new _view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView(this));\n    }\n    toSecureNoteData() {\n        const n = new _data_secure_note_data__WEBPACK_IMPORTED_MODULE_1__.SecureNoteData();\n        n.type = this.type;\n        return n;\n    }\n    static fromJSON(obj) {\n        if (obj == null) {\n            return null;\n        }\n        return Object.assign(new SecureNote(), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kb21haW4vc2VjdXJlLW5vdGUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUVpRTtBQUdQO0FBQ0E7QUFFbkQsTUFBTSxVQUFXLFNBQVEsMkVBQU07SUFHcEMsWUFBWSxHQUFvQjtRQUM5QixLQUFLLEVBQUUsQ0FBQztRQUNSLElBQUksR0FBRyxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ2hCLE9BQU87UUFDVCxDQUFDO1FBRUQsSUFBSSxDQUFDLElBQUksR0FBRyxHQUFHLENBQUMsSUFBSSxDQUFDO0lBQ3ZCLENBQUM7SUFFRCxPQUFPLENBQUMsS0FBYSxFQUFFLE1BQTJCO1FBQ2hELE9BQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxJQUFJLGtFQUFjLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUNuRCxDQUFDO0lBRUQsZ0JBQWdCO1FBQ2QsTUFBTSxDQUFDLEdBQUcsSUFBSSxrRUFBYyxFQUFFLENBQUM7UUFDL0IsQ0FBQyxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQ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iob2JqPzogU2VjdXJlTm90ZURhdGEpIHtcbiAgICBzdXBlcigpO1xuICAgIGlmIChvYmogPT0gbnVsbCkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMudHlwZSA9IG9iai50eXBlO1xuICB9XG5cbiAgZGVjcnlwdChvcmdJZDogc3RyaW5nLCBlbmNLZXk/OiBTeW1tZXRyaWNDcnlwdG9LZXkpOiBQcm9taXNlPFNlY3VyZU5vdGVWaWV3PiB7XG4gICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShuZXcgU2VjdXJlTm90ZVZpZXcodGhpcykpO1xuICB9XG5cbiAgdG9TZWN1cmVOb3RlRGF0YSgpOiBTZWN1cmVOb3RlRGF0YSB7XG4gICAgY29uc3QgbiA9IG5ldyBTZWN1cmVOb3RlRGF0YSgpO1xuICAgIG4udHlwZSA9IHRoaXMudHlwZTtcbiAgICByZXR1cm4gbjtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IEpzb25pZnk8U2VjdXJlTm90ZT4pOiBTZWN1cmVOb3RlIHtcbiAgICBpZiAob2JqID09IG51bGwpIHtcbiAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG5ldyBTZWN1cmVOb3RlKCksIG9iaik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/secure-note.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/sorted-ciphers-cache.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/sorted-ciphers-cache.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SortedCiphersCache: () => (/* binding */ SortedCiphersCache)\n/* harmony export */ });\nconst CacheTTL = 3000;\nclass SortedCiphersCache {\n    constructor(comparator) {\n        this.comparator = comparator;\n        this.sortedCiphersByUrl = new Map();\n        this.timeouts = new Map();\n    }\n    isCached(url) {\n        return this.sortedCiphersByUrl.has(url);\n    }\n    addCiphers(url, ciphers) {\n        ciphers.sort(this.comparator);\n        this.sortedCiphersByUrl.set(url, new Ciphers(ciphers));\n        this.resetTimer(url);\n    }\n    getLastUsed(url) {\n        this.resetTimer(url);\n        return this.isCached(url) ? this.sortedCiphersByUrl.get(url).getLastUsed() : null;\n    }\n    getLastLaunched(url) {\n        return this.isCached(url) ? this.sortedCiphersByUrl.get(url).getLastLaunched() : null;\n    }\n    getNext(url) {\n        this.resetTimer(url);\n        return this.isCached(url) ? this.sortedCiphersByUrl.get(url).getNext() : null;\n    }\n    updateLastUsedIndex(url) {\n        if (this.isCached(url)) {\n            this.sortedCiphersByUrl.get(url).updateLastUsedIndex();\n        }\n    }\n    clear() {\n        this.sortedCiphersByUrl.clear();\n        this.timeouts.clear();\n    }\n    resetTimer(url) {\n        clearTimeout(this.timeouts.get(url));\n        this.timeouts.set(url, setTimeout(() => {\n            this.sortedCiphersByUrl.delete(url);\n            this.timeouts.delete(url);\n        }, CacheTTL));\n    }\n}\nclass Ciphers {\n    constructor(ciphers) {\n        this.ciphers = ciphers;\n        this.lastUsedIndex = -1;\n    }\n    getLastUsed() {\n        this.lastUsedIndex = Math.max(this.lastUsedIndex, 0);\n        return this.ciphers[this.lastUsedIndex];\n    }\n    getLastLaunched() {\n        const usedCiphers = this.ciphers.filter((cipher) => { var _a; return (_a = cipher.localData) === null || _a === void 0 ? void 0 : _a.lastLaunched; });\n        const sortedCiphers = usedCiphers.sort((x, y) => y.localData.lastLaunched.valueOf() - x.localData.lastLaunched.valueOf());\n        return sortedCiphers[0];\n    }\n    getNextIndex() {\n        return (this.lastUsedIndex + 1) % this.ciphers.length;\n    }\n    getNext() {\n        return this.ciphers[this.getNextIndex()];\n    }\n    updateLastUsedIndex() {\n        this.lastUsedIndex = this.getNextIndex();\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6800 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/sorted-ciphers-cache.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/domain/tree-node.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/domain/tree-node.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TreeNode: () => (/* binding */ TreeNode)\n/* harmony export */ });\nclass TreeNode {\n    constructor(node, parent, name, id) {\n        this.children = [];\n        this.parent = parent;\n        this.node = node;\n        if (name) {\n            this.node.name = name;\n        }\n        if (id) {\n            this.node.id = id;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9kb21haW4vdHJlZS1ub2RlLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLFFBQVE7SUFLbkIsWUFBWSxJQUFPLEVBQUUsTUFBbUIsRUFBRSxJQUFhLEVBQUUsRUFBVztRQUZwRSxhQUFRLEdBQWtCLEVBQUUsQ0FBQztRQUczQixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUNyQixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixJQUFJLElBQUksRUFBRSxDQUFDO1lBQ1QsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ3hCLENBQUM7UUFDRCxJQUFJLEVBQUUsRUFBRSxDQUFDO1lBQ1AsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO1FBQ3BCLENBQUM7SUFDSCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL2RvbWFpbi90cmVlLW5vZGUudHM/MmZlMCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgVHJlZU5vZGU8VCBleHRlbmRzIElUcmVlTm9kZU9iamVjdD4ge1xuICBub2RlOiBUO1xuICBwYXJlbnQ6IFRyZWVOb2RlPFQ+O1xuICBjaGlsZHJlbjogVHJlZU5vZGU8VD5bXSA9IFtdO1xuXG4gIGNvbnN0cnVjdG9yKG5vZGU6IFQsIHBhcmVudDogVHJlZU5vZGU8VD4sIG5hbWU/OiBzdHJpbmcsIGlkPzogc3RyaW5nKSB7XG4gICAgdGhpcy5wYXJlbnQgPSBwYXJlbnQ7XG4gICAgdGhpcy5ub2RlID0gbm9kZTtcbiAgICBpZiAobmFtZSkge1xuICAgICAgdGhpcy5ub2RlLm5hbWUgPSBuYW1lO1xuICAgIH1cbiAgICBpZiAoaWQpIHtcbiAgICAgIHRoaXMubm9kZS5pZCA9IGlkO1xuICAgIH1cbiAgfVxufVxuXG5leHBvcnQgaW50ZXJmYWNlIElUcmVlTm9kZU9iamVjdCB7XG4gIGlkOiBzdHJpbmc7XG4gIG5hbWU6IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/domain/tree-node.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/attachment.request.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/attachment.request.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AttachmentRequest: () => (/* binding */ AttachmentRequest)\n/* harmony export */ });\nclass AttachmentRequest {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2F0dGFjaG1lbnQucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxpQkFBaUI7Q0FLN0IiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3JlcXVlc3QvYXR0YWNobWVudC5yZXF1ZXN0LnRzP2ZmM2YiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEF0dGFjaG1lbnRSZXF1ZXN0IHtcbiAgZmlsZU5hbWU6IHN0cmluZztcbiAga2V5OiBzdHJpbmc7XG4gIGZpbGVTaXplOiBudW1iZXI7XG4gIGFkbWluUmVxdWVzdDogYm9vbGVhbjtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/attachment.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-bulk-delete.request.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-bulk-delete.request.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherBulkDeleteRequest: () => (/* binding */ CipherBulkDeleteRequest)\n/* harmony export */ });\nclass CipherBulkDeleteRequest {\n    constructor(ids, organizationId) {\n        this.ids = ids == null ? [] : ids;\n        this.organizationId = organizationId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1idWxrLWRlbGV0ZS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLHVCQUF1QjtJQUlsQyxZQUFZLEdBQWEsRUFBRSxjQUF1QjtRQUNoRCxJQUFJLENBQUMsR0FBRyxHQUFHLEdBQUcsSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDO1FBQ2xDLElBQUksQ0FBQyxjQUFjLEdBQUcsY0FBYyxDQUFDO0lBQ3ZDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvcmVxdWVzdC9jaXBoZXItYnVsay1kZWxldGUucmVxdWVzdC50cz9iY2E1Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBDaXBoZXJCdWxrRGVsZXRlUmVxdWVzdCB7XG4gIGlkczogc3RyaW5nW107XG4gIG9yZ2FuaXphdGlvbklkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoaWRzOiBzdHJpbmdbXSwgb3JnYW5pemF0aW9uSWQ/OiBzdHJpbmcpIHtcbiAgICB0aGlzLmlkcyA9IGlkcyA9PSBudWxsID8gW10gOiBpZHM7XG4gICAgdGhpcy5vcmdhbml6YXRpb25JZCA9IG9yZ2FuaXphdGlvbklkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-bulk-delete.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-bulk-move.request.ts":
/*!******************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-bulk-move.request.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherBulkMoveRequest: () => (/* binding */ CipherBulkMoveRequest)\n/* harmony export */ });\nclass CipherBulkMoveRequest {\n    constructor(ids, folderId) {\n        this.ids = ids == null ? [] : ids;\n        this.folderId = folderId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1idWxrLW1vdmUucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSxxQkFBcUI7SUFJaEMsWUFBWSxHQUFhLEVBQUUsUUFBZ0I7UUFDekMsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUNsQyxJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztJQUMzQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3JlcXVlc3QvY2lwaGVyLWJ1bGstbW92ZS5yZXF1ZXN0LnRzPzkwMDAiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIENpcGhlckJ1bGtNb3ZlUmVxdWVzdCB7XG4gIGlkczogc3RyaW5nW107XG4gIGZvbGRlcklkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoaWRzOiBzdHJpbmdbXSwgZm9sZGVySWQ6IHN0cmluZykge1xuICAgIHRoaXMuaWRzID0gaWRzID09IG51bGwgPyBbXSA6IGlkcztcbiAgICB0aGlzLmZvbGRlcklkID0gZm9sZGVySWQ7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-bulk-move.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-bulk-restore.request.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-bulk-restore.request.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherBulkRestoreRequest: () => (/* binding */ CipherBulkRestoreRequest)\n/* harmony export */ });\nclass CipherBulkRestoreRequest {\n    constructor(ids, organizationId) {\n        this.ids = ids == null ? [] : ids;\n        this.organizationId = organizationId;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1idWxrLXJlc3RvcmUucmVxdWVzdC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSx3QkFBd0I7SUFJbkMsWUFBWSxHQUFhLEVBQUUsY0FBdUI7UUFDaEQsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUNsQyxJQUFJLENBQUMsY0FBYyxHQUFHLGNBQWMsQ0FBQztJQUN2QyxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3JlcXVlc3QvY2lwaGVyLWJ1bGstcmVzdG9yZS5yZXF1ZXN0LnRzP2FiMTIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIENpcGhlckJ1bGtSZXN0b3JlUmVxdWVzdCB7XG4gIGlkczogc3RyaW5nW107XG4gIG9yZ2FuaXphdGlvbklkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoaWRzOiBzdHJpbmdbXSwgb3JnYW5pemF0aW9uSWQ/OiBzdHJpbmcpIHtcbiAgICB0aGlzLmlkcyA9IGlkcyA9PSBudWxsID8gW10gOiBpZHM7XG4gICAgdGhpcy5vcmdhbml6YXRpb25JZCA9IG9yZ2FuaXphdGlvbklkO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-bulk-restore.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-bulk-share.request.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-bulk-share.request.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherBulkShareRequest: () => (/* binding */ CipherBulkShareRequest)\n/* harmony export */ });\n/* harmony import */ var _cipher_with_id_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cipher-with-id.request */ \"../../libs/common/src/vault/models/request/cipher-with-id.request.ts\");\n\nclass CipherBulkShareRequest {\n    constructor(ciphers, collectionIds) {\n        if (ciphers != null) {\n            this.ciphers = [];\n            ciphers.forEach((c) => {\n                this.ciphers.push(new _cipher_with_id_request__WEBPACK_IMPORTED_MODULE_0__.CipherWithIdRequest(c));\n            });\n        }\n        this.collectionIds = collectionIds;\n    }\n}\n//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XF1ZXN0W107XG4gIGNvbGxlY3Rpb25JZHM6IHN0cmluZ1tdO1xuXG4gIGNvbnN0cnVjdG9yKGNpcGhlcnM6IENpcGhlcltdLCBjb2xsZWN0aW9uSWRzOiBzdHJpbmdbXSkge1xuICAgIGlmIChjaXBoZXJzICE9IG51bGwpIHtcbiAgICAgIHRoaXMuY2lwaGVycyA9IFtdO1xuICAgICAgY2lwaGVycy5mb3JFYWNoKChjKSA9PiB7XG4gICAgICAgIHRoaXMuY2lwaGVycy5wdXNoKG5ldyBDaXBoZXJXaXRoSWRSZXF1ZXN0KGMpKTtcbiAgICAgIH0pO1xuICAgIH1cbiAgICB0aGlzLmNvbGxlY3Rpb25JZHMgPSBjb2xsZWN0aW9uSWRzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-bulk-share.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-bulk-update-collections.request.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-bulk-update-collections.request.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherBulkUpdateCollectionsRequest: () => (/* binding */ CipherBulkUpdateCollectionsRequest)\n/* harmony export */ });\nclass CipherBulkUpdateCollectionsRequest {\n    constructor(organizationId, cipherIds, collectionIds, removeCollections = false) {\n        this.organizationId = organizationId;\n        this.cipherIds = cipherIds;\n        this.collectionIds = collectionIds;\n        this.removeCollections = removeCollections;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1idWxrLX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WRzOiBDb2xsZWN0aW9uSWRbXSxcbiAgICByZW1vdmVDb2xsZWN0aW9uczogYm9vbGVhbiA9IGZhbHNlLFxuICApIHtcbiAgICB0aGlzLm9yZ2FuaXphdGlvbklkID0gb3JnYW5pemF0aW9uSWQ7XG4gICAgdGhpcy5jaXBoZXJJZHMgPSBjaXBoZXJJZHM7XG4gICAgdGhpcy5jb2xsZWN0aW9uSWRzID0gY29sbGVjdGlvbklkcztcbiAgICB0aGlzLnJlbW92ZUNvbGxlY3Rpb25zID0gcmVtb3ZlQ29sbGVjdGlvbnM7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-bulk-update-collections.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-collections.request.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-collections.request.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherCollectionsRequest: () => (/* binding */ CipherCollectionsRequest)\n/* harmony export */ });\nclass CipherCollectionsRequest {\n    constructor(collectionIds) {\n        this.collectionIds = collectionIds == null ? [] : collectionIds;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1jb2xsZWN0aW9ucy5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLHdCQUF3QjtJQUduQyxZQUFZLGFBQXVCO1FBQ2pDLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxhQUFhLENBQUM7SUFDbEUsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1jb2xsZWN0aW9ucy5yZXF1ZXN0LnRzP2VkNjgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIENpcGhlckNvbGxlY3Rpb25zUmVxdWVzdCB7XG4gIGNvbGxlY3Rpb25JZHM6IHN0cmluZ1tdO1xuXG4gIGNvbnN0cnVjdG9yKGNvbGxlY3Rpb25JZHM6IHN0cmluZ1tdKSB7XG4gICAgdGhpcy5jb2xsZWN0aW9uSWRzID0gY29sbGVjdGlvbklkcyA9PSBudWxsID8gW10gOiBjb2xsZWN0aW9uSWRzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-collections.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-create.request.ts":
/*!***************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-create.request.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherCreateRequest: () => (/* binding */ CipherCreateRequest)\n/* harmony export */ });\n/* harmony import */ var _cipher_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cipher.request */ \"../../libs/common/src/vault/models/request/cipher.request.ts\");\n\nclass CipherCreateRequest {\n    constructor(cipher) {\n        this.cipher = new _cipher_request__WEBPACK_IMPORTED_MODULE_0__.CipherRequest(cipher);\n        this.collectionIds = cipher.collectionIds;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/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/cipher-create.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-partial.request.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-partial.request.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherPartialRequest: () => (/* binding */ CipherPartialRequest)\n/* harmony export */ });\nclass CipherPartialRequest {\n    constructor(cipher) {\n        this.folderId = cipher.folderId;\n        this.favorite = cipher.favorite;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1wYXJ0aWFsLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sb0JBQW9CO0lBSS9CLFlBQVksTUFBYztRQUN4QixJQUFJLENBQUMsUUFBUSxHQUFHLE1BQU0sQ0FBQyxRQUFRLENBQUM7UUFDaEMsSUFBSSxDQUFDLFFBQVEsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDO0lBQ2xDLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvcmVxdWVzdC9jaXBoZXItcGFydGlhbC5yZXF1ZXN0LnRzPzVjMjYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2lwaGVyIH0gZnJvbSBcIi4uL2RvbWFpbi9jaXBoZXJcIjtcblxuZXhwb3J0IGNsYXNzIENpcGhlclBhcnRpYWxSZXF1ZXN0IHtcbiAgZm9sZGVySWQ6IHN0cmluZztcbiAgZmF2b3JpdGU6IGJvb2xlYW47XG5cbiAgY29uc3RydWN0b3IoY2lwaGVyOiBDaXBoZXIpIHtcbiAgICB0aGlzLmZvbGRlcklkID0gY2lwaGVyLmZvbGRlcklkO1xuICAgIHRoaXMuZmF2b3JpdGUgPSBjaXBoZXIuZmF2b3JpdGU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-partial.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-share.request.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-share.request.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherShareRequest: () => (/* binding */ CipherShareRequest)\n/* harmony export */ });\n/* harmony import */ var _cipher_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cipher.request */ \"../../libs/common/src/vault/models/request/cipher.request.ts\");\n\nclass CipherShareRequest {\n    constructor(cipher) {\n        this.cipher = new _cipher_request__WEBPACK_IMPORTED_MODULE_0__.CipherRequest(cipher);\n        this.collectionIds = cipher.collectionIds;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1zaGFyZS5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBRWlEO0FBRTFDLE1BQU0sa0JBQWtCO0lBSTdCLFlBQVksTUFBYztRQUN4QixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksMERBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUN4QyxJQUFJLENBQUMsYUFBYSxHQUFHLE1BQU0sQ0FBQyxhQUFhLENBQUM7SUFDNUMsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci1zaGFyZS5yZXF1ZXN0LnRzPzY0NDMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2lwaGVyIH0gZnJvbSBcIi4uL2RvbWFpbi9jaXBoZXJcIjtcblxuaW1wb3J0IHsgQ2lwaGVyUmVxdWVzdCB9IGZyb20gXCIuL2NpcGhlci5yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjbGFzcyBDaXBoZXJTaGFyZVJlcXVlc3Qge1xuICBjaXBoZXI6IENpcGhlclJlcXVlc3Q7XG4gIGNvbGxlY3Rpb25JZHM6IHN0cmluZ1tdO1xuXG4gIGNvbnN0cnVjdG9yKGNpcGhlcjogQ2lwaGVyKSB7XG4gICAgdGhpcy5jaXBoZXIgPSBuZXcgQ2lwaGVyUmVxdWVzdChjaXBoZXIpO1xuICAgIHRoaXMuY29sbGVjdGlvbklkcyA9IGNpcGhlci5jb2xsZWN0aW9uSWRzO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-share.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher-with-id.request.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher-with-id.request.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherWithIdRequest: () => (/* binding */ CipherWithIdRequest)\n/* harmony export */ });\n/* harmony import */ var _cipher_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cipher.request */ \"../../libs/common/src/vault/models/request/cipher.request.ts\");\n\nclass CipherWithIdRequest extends _cipher_request__WEBPACK_IMPORTED_MODULE_0__.CipherRequest {\n    constructor(cipher) {\n        super(cipher);\n        this.id = cipher.id;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2NpcGhlci13aXRoLWlkLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFFaUQ7QUFFMUMsTUFBTSxtQkFBb0IsU0FBUSwwREFBYTtJQUdwRCxZQUFZLE1BQWM7UUFDeEIsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ2QsSUFBSSxDQUFDLEVBQUUsR0FBRyxNQUFNLENBQUMsRUFBRSxDQUFDO0lBQ3RCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvcmVxdWVzdC9jaXBoZXItd2l0aC1pZC5yZXF1ZXN0LnRzP2RjZWEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2lwaGVyIH0gZnJvbSBcIi4uL2RvbWFpbi9jaXBoZXJcIjtcblxuaW1wb3J0IHsgQ2lwaGVyUmVxdWVzdCB9IGZyb20gXCIuL2NpcGhlci5yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjbGFzcyBDaXBoZXJXaXRoSWRSZXF1ZXN0IGV4dGVuZHMgQ2lwaGVyUmVxdWVzdCB7XG4gIGlkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoY2lwaGVyOiBDaXBoZXIpIHtcbiAgICBzdXBlcihjaXBoZXIpO1xuICAgIHRoaXMuaWQgPSBjaXBoZXIuaWQ7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher-with-id.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/cipher.request.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/cipher.request.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherRequest: () => (/* binding */ CipherRequest)\n/* harmony export */ });\n/* harmony import */ var _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums/cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\n/* harmony import */ var _api_card_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../api/card.api */ \"../../libs/common/src/vault/models/api/card.api.ts\");\n/* harmony import */ var _api_fido2_credential_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../api/fido2-credential.api */ \"../../libs/common/src/vault/models/api/fido2-credential.api.ts\");\n/* harmony import */ var _api_field_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../api/field.api */ \"../../libs/common/src/vault/models/api/field.api.ts\");\n/* harmony import */ var _api_identity_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../api/identity.api */ \"../../libs/common/src/vault/models/api/identity.api.ts\");\n/* harmony import */ var _api_login_uri_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../api/login-uri.api */ \"../../libs/common/src/vault/models/api/login-uri.api.ts\");\n/* harmony import */ var _api_login_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api/login.api */ \"../../libs/common/src/vault/models/api/login.api.ts\");\n/* harmony import */ var _api_secure_note_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../api/secure-note.api */ \"../../libs/common/src/vault/models/api/secure-note.api.ts\");\n/* harmony import */ var _attachment_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./attachment.request */ \"../../libs/common/src/vault/models/request/attachment.request.ts\");\n\n\n\n\n\n\n\n\n\nclass CipherRequest {\n    constructor(cipher) {\n        var _a, _b, _c;\n        this.type = cipher.type;\n        this.folderId = cipher.folderId;\n        this.organizationId = cipher.organizationId;\n        this.name = cipher.name ? cipher.name.encryptedString : null;\n        this.notes = cipher.notes ? cipher.notes.encryptedString : null;\n        this.favorite = cipher.favorite;\n        this.lastKnownRevisionDate = cipher.revisionDate;\n        this.reprompt = cipher.reprompt;\n        this.key = (_a = cipher.key) === null || _a === void 0 ? void 0 : _a.encryptedString;\n        switch (this.type) {\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login:\n                this.login = new _api_login_api__WEBPACK_IMPORTED_MODULE_6__.LoginApi();\n                this.login.uris =\n                    (_c = (_b = cipher.login.uris) === null || _b === void 0 ? void 0 : _b.map((u) => {\n                        const uri = new _api_login_uri_api__WEBPACK_IMPORTED_MODULE_5__.LoginUriApi();\n                        uri.uri = u.uri != null ? u.uri.encryptedString : null;\n                        uri.match = u.match != null ? u.match : null;\n                        uri.uriChecksum = u.uriChecksum != null ? u.uriChecksum.encryptedString : null;\n                        return uri;\n                    })) !== null && _c !== void 0 ? _c : [];\n                this.login.username = cipher.login.username ? cipher.login.username.encryptedString : null;\n                this.login.password = cipher.login.password ? cipher.login.password.encryptedString : null;\n                this.login.passwordRevisionDate =\n                    cipher.login.passwordRevisionDate != null\n                        ? cipher.login.passwordRevisionDate.toISOString()\n                        : null;\n                this.login.totp = cipher.login.totp ? cipher.login.totp.encryptedString : null;\n                this.login.autofillOnPageLoad = cipher.login.autofillOnPageLoad;\n                if (cipher.login.fido2Credentials != null) {\n                    this.login.fido2Credentials = cipher.login.fido2Credentials.map((key) => {\n                        const keyApi = new _api_fido2_credential_api__WEBPACK_IMPORTED_MODULE_2__.Fido2CredentialApi();\n                        keyApi.credentialId =\n                            key.credentialId != null ? key.credentialId.encryptedString : null;\n                        keyApi.keyType =\n                            key.keyType != null ? key.keyType.encryptedString : null;\n                        keyApi.keyAlgorithm =\n                            key.keyAlgorithm != null ? key.keyAlgorithm.encryptedString : null;\n                        keyApi.keyCurve =\n                            key.keyCurve != null ? key.keyCurve.encryptedString : null;\n                        keyApi.keyValue = key.keyValue != null ? key.keyValue.encryptedString : null;\n                        keyApi.rpId = key.rpId != null ? key.rpId.encryptedString : null;\n                        keyApi.rpName = key.rpName != null ? key.rpName.encryptedString : null;\n                        keyApi.counter = key.counter != null ? key.counter.encryptedString : null;\n                        keyApi.userHandle = key.userHandle != null ? key.userHandle.encryptedString : null;\n                        keyApi.userName = key.userName != null ? key.userName.encryptedString : null;\n                        keyApi.userDisplayName =\n                            key.userDisplayName != null ? key.userDisplayName.encryptedString : null;\n                        keyApi.discoverable =\n                            key.discoverable != null ? key.discoverable.encryptedString : null;\n                        keyApi.creationDate = key.creationDate != null ? key.creationDate.toISOString() : null;\n                        return keyApi;\n                    });\n                }\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote:\n                this.secureNote = new _api_secure_note_api__WEBPACK_IMPORTED_MODULE_7__.SecureNoteApi();\n                this.secureNote.type = cipher.secureNote.type;\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card:\n                this.card = new _api_card_api__WEBPACK_IMPORTED_MODULE_1__.CardApi();\n                this.card.cardholderName =\n                    cipher.card.cardholderName != null ? cipher.card.cardholderName.encryptedString : null;\n                this.card.brand = cipher.card.brand != null ? cipher.card.brand.encryptedString : null;\n                this.card.number = cipher.card.number != null ? cipher.card.number.encryptedString : null;\n                this.card.expMonth =\n                    cipher.card.expMonth != null ? cipher.card.expMonth.encryptedString : null;\n                this.card.expYear =\n                    cipher.card.expYear != null ? cipher.card.expYear.encryptedString : null;\n                this.card.code = cipher.card.code != null ? cipher.card.code.encryptedString : null;\n                break;\n            case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity:\n                this.identity = new _api_identity_api__WEBPACK_IMPORTED_MODULE_4__.IdentityApi();\n                this.identity.title =\n                    cipher.identity.title != null ? cipher.identity.title.encryptedString : null;\n                this.identity.firstName =\n                    cipher.identity.firstName != null ? cipher.identity.firstName.encryptedString : null;\n                this.identity.middleName =\n                    cipher.identity.middleName != null ? cipher.identity.middleName.encryptedString : null;\n                this.identity.lastName =\n                    cipher.identity.lastName != null ? cipher.identity.lastName.encryptedString : null;\n                this.identity.address1 =\n                    cipher.identity.address1 != null ? cipher.identity.address1.encryptedString : null;\n                this.identity.address2 =\n                    cipher.identity.address2 != null ? cipher.identity.address2.encryptedString : null;\n                this.identity.address3 =\n                    cipher.identity.address3 != null ? cipher.identity.address3.encryptedString : null;\n                this.identity.city =\n                    cipher.identity.city != null ? cipher.identity.city.encryptedString : null;\n                this.identity.state =\n                    cipher.identity.state != null ? cipher.identity.state.encryptedString : null;\n                this.identity.postalCode =\n                    cipher.identity.postalCode != null ? cipher.identity.postalCode.encryptedString : null;\n                this.identity.country =\n                    cipher.identity.country != null ? cipher.identity.country.encryptedString : null;\n                this.identity.company =\n                    cipher.identity.company != null ? cipher.identity.company.encryptedString : null;\n                this.identity.email =\n                    cipher.identity.email != null ? cipher.identity.email.encryptedString : null;\n                this.identity.phone =\n                    cipher.identity.phone != null ? cipher.identity.phone.encryptedString : null;\n                this.identity.ssn =\n                    cipher.identity.ssn != null ? cipher.identity.ssn.encryptedString : null;\n                this.identity.username =\n                    cipher.identity.username != null ? cipher.identity.username.encryptedString : null;\n                this.identity.passportNumber =\n                    cipher.identity.passportNumber != null\n                        ? cipher.identity.passportNumber.encryptedString\n                        : null;\n                this.identity.licenseNumber =\n                    cipher.identity.licenseNumber != null\n                        ? cipher.identity.licenseNumber.encryptedString\n                        : null;\n                break;\n            default:\n                break;\n        }\n        if (cipher.fields != null) {\n            this.fields = cipher.fields.map((f) => {\n                const field = new _api_field_api__WEBPACK_IMPORTED_MODULE_3__.FieldApi();\n                field.type = f.type;\n                field.name = f.name ? f.name.encryptedString : null;\n                field.value = f.value ? f.value.encryptedString : null;\n                field.linkedId = f.linkedId;\n                return field;\n            });\n        }\n        if (cipher.passwordHistory != null) {\n            this.passwordHistory = [];\n            cipher.passwordHistory.forEach((ph) => {\n                this.passwordHistory.push({\n                    lastUsedDate: ph.lastUsedDate,\n                    password: ph.password ? ph.password.encryptedString : null,\n                });\n            });\n        }\n        if (cipher.attachments != null) {\n            this.attachments = {};\n            this.attachments2 = {};\n            cipher.attachments.forEach((attachment) => {\n                const fileName = attachment.fileName ? attachment.fileName.encryptedString : null;\n                this.attachments[attachment.id] = fileName;\n                const attachmentRequest = new _attachment_request__WEBPACK_IMPORTED_MODULE_8__.AttachmentRequest();\n                attachmentRequest.fileName = fileName;\n                if (attachment.key != null) {\n                    attachmentRequest.key = attachment.key.encryptedString;\n                }\n                this.attachments2[attachment.id] = attachmentRequest;\n            });\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 24652 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/cipher.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/folder-with-id.request.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/folder-with-id.request.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderWithIdRequest: () => (/* binding */ FolderWithIdRequest)\n/* harmony export */ });\n/* harmony import */ var _folder_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./folder.request */ \"../../libs/common/src/vault/models/request/folder.request.ts\");\n\nclass FolderWithIdRequest extends _folder_request__WEBPACK_IMPORTED_MODULE_0__.FolderRequest {\n    constructor(folder) {\n        super(folder);\n        this.id = folder.id;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2ZvbGRlci13aXRoLWlkLnJlcXVlc3QudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFFaUQ7QUFFMUMsTUFBTSxtQkFBb0IsU0FBUSwwREFBYTtJQUdwRCxZQUFZLE1BQWM7UUFDeEIsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ2QsSUFBSSxDQUFDLEVBQUUsR0FBRyxNQUFNLENBQUMsRUFBRSxDQUFDO0lBQ3RCLENBQUM7Q0FDRiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvY29tbW9uL3NyYy92YXVsdC9tb2RlbHMvcmVxdWVzdC9mb2xkZXItd2l0aC1pZC5yZXF1ZXN0LnRzP2VmNzMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRm9sZGVyIH0gZnJvbSBcIi4uL2RvbWFpbi9mb2xkZXJcIjtcblxuaW1wb3J0IHsgRm9sZGVyUmVxdWVzdCB9IGZyb20gXCIuL2ZvbGRlci5yZXF1ZXN0XCI7XG5cbmV4cG9ydCBjbGFzcyBGb2xkZXJXaXRoSWRSZXF1ZXN0IGV4dGVuZHMgRm9sZGVyUmVxdWVzdCB7XG4gIGlkOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IoZm9sZGVyOiBGb2xkZXIpIHtcbiAgICBzdXBlcihmb2xkZXIpO1xuICAgIHRoaXMuaWQgPSBmb2xkZXIuaWQ7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/folder-with-id.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/request/folder.request.ts":
/*!********************************************************************!*\
  !*** ../../libs/common/src/vault/models/request/folder.request.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderRequest: () => (/* binding */ FolderRequest)\n/* harmony export */ });\nclass FolderRequest {\n    constructor(folder) {\n        this.name = folder.name ? folder.name.encryptedString : null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXF1ZXN0L2ZvbGRlci5yZXF1ZXN0LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNLGFBQWE7SUFHeEIsWUFBWSxNQUFjO1FBQ3hCLElBQUksQ0FBQyxJQUFJLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUMvRCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3JlcXVlc3QvZm9sZGVyLnJlcXVlc3QudHM/ODcyMiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGb2xkZXIgfSBmcm9tIFwiLi4vZG9tYWluL2ZvbGRlclwiO1xuXG5leHBvcnQgY2xhc3MgRm9sZGVyUmVxdWVzdCB7XG4gIG5hbWU6IHN0cmluZztcblxuICBjb25zdHJ1Y3Rvcihmb2xkZXI6IEZvbGRlcikge1xuICAgIHRoaXMubmFtZSA9IGZvbGRlci5uYW1lID8gZm9sZGVyLm5hbWUuZW5jcnlwdGVkU3RyaW5nIDogbnVsbDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/request/folder.request.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/response/attachment-upload-data.response.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/common/src/vault/models/response/attachment-upload-data.response.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AttachmentUploadDataResponse: () => (/* binding */ AttachmentUploadDataResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _cipher_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cipher.response */ \"../../libs/common/src/vault/models/response/cipher.response.ts\");\n\n\nclass AttachmentUploadDataResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.url = null;\n        this.attachmentId = this.getResponseProperty(\"AttachmentId\");\n        this.fileUploadType = this.getResponseProperty(\"FileUploadType\");\n        const cipherResponse = this.getResponseProperty(\"CipherResponse\");\n        const cipherMiniResponse = this.getResponseProperty(\"CipherMiniResponse\");\n        this.cipherResponse = cipherResponse == null ? null : new _cipher_response__WEBPACK_IMPORTED_MODULE_1__.CipherResponse(cipherResponse);\n        this.cipherMiniResponse =\n            cipherMiniResponse == null ? null : new _cipher_response__WEBPACK_IMPORTED_MODULE_1__.CipherResponse(cipherMiniResponse);\n        this.url = this.getResponseProperty(\"Url\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaW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c2VcIik7XG4gICAgY29uc3QgY2lwaGVyTWluaVJlc3BvbnNlID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiQ2lwaGVyTWluaVJlc3BvbnNlXCIpO1xuICAgIHRoaXMuY2lwaGVyUmVzcG9uc2UgPSBjaXBoZXJSZXNwb25zZSA9PSBudWxsID8gbnVsbCA6IG5ldyBDaXBoZXJSZXNwb25zZShjaXBoZXJSZXNwb25zZSk7XG4gICAgdGhpcy5jaXBoZXJNaW5pUmVzcG9uc2UgPVxuICAgICAgY2lwaGVyTWluaVJlc3BvbnNlID09IG51bGwgPyBudWxsIDogbmV3IENpcGhlclJlc3BvbnNlKGNpcGhlck1pbmlSZXNwb25zZSk7XG4gICAgdGhpcy51cmwgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJVcmxcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/response/attachment-upload-data.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/response/attachment.response.ts":
/*!**************************************************************************!*\
  !*** ../../libs/common/src/vault/models/response/attachment.response.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AttachmentResponse: () => (/* binding */ AttachmentResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass AttachmentResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.url = this.getResponseProperty(\"Url\");\n        this.fileName = this.getResponseProperty(\"FileName\");\n        this.key = this.getResponseProperty(\"Key\");\n        this.size = this.getResponseProperty(\"Size\");\n        this.sizeName = this.getResponseProperty(\"SizeName\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXNwb25zZS9hdHRhY2htZW50LnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRS9ELE1BQU0sa0JBQW1CLFNBQVEsd0VBQVk7SUFRbEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsRUFBRSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUMzQyxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUNyRCxJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUMzQyxJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN2RCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3Jlc3BvbnNlL2F0dGFjaG1lbnQucmVzcG9uc2UudHM/MWNhYSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIEF0dGFjaG1lbnRSZXNwb25zZSBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIGlkOiBzdHJpbmc7XG4gIHVybDogc3RyaW5nO1xuICBmaWxlTmFtZTogc3RyaW5nO1xuICBrZXk6IHN0cmluZztcbiAgc2l6ZTogc3RyaW5nO1xuICBzaXplTmFtZTogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHJlc3BvbnNlOiBhbnkpIHtcbiAgICBzdXBlcihyZXNwb25zZSk7XG4gICAgdGhpcy5pZCA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIklkXCIpO1xuICAgIHRoaXMudXJsID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiVXJsXCIpO1xuICAgIHRoaXMuZmlsZU5hbWUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJGaWxlTmFtZVwiKTtcbiAgICB0aGlzLmtleSA9IHRoaXMuZ2V0UmVzcG9uc2VQcm9wZXJ0eShcIktleVwiKTtcbiAgICB0aGlzLnNpemUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJTaXplXCIpO1xuICAgIHRoaXMuc2l6ZU5hbWUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJTaXplTmFtZVwiKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/response/attachment.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/response/cipher.response.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/vault/models/response/cipher.response.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherResponse: () => (/* binding */ CipherResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums/cipher-reprompt-type */ \"../../libs/common/src/vault/enums/cipher-reprompt-type.ts\");\n/* harmony import */ var _api_card_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../api/card.api */ \"../../libs/common/src/vault/models/api/card.api.ts\");\n/* harmony import */ var _api_field_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../api/field.api */ \"../../libs/common/src/vault/models/api/field.api.ts\");\n/* harmony import */ var _api_identity_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../api/identity.api */ \"../../libs/common/src/vault/models/api/identity.api.ts\");\n/* harmony import */ var _api_login_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../api/login.api */ \"../../libs/common/src/vault/models/api/login.api.ts\");\n/* harmony import */ var _api_secure_note_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../api/secure-note.api */ \"../../libs/common/src/vault/models/api/secure-note.api.ts\");\n/* harmony import */ var _attachment_response__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./attachment.response */ \"../../libs/common/src/vault/models/response/attachment.response.ts\");\n/* harmony import */ var _password_history_response__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./password-history.response */ \"../../libs/common/src/vault/models/response/password-history.response.ts\");\n\n\n\n\n\n\n\n\n\nclass CipherResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.organizationId = this.getResponseProperty(\"OrganizationId\");\n        this.folderId = this.getResponseProperty(\"FolderId\") || null;\n        this.type = this.getResponseProperty(\"Type\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.notes = this.getResponseProperty(\"Notes\");\n        this.favorite = this.getResponseProperty(\"Favorite\") || false;\n        this.edit = !!this.getResponseProperty(\"Edit\");\n        if (this.getResponseProperty(\"ViewPassword\") == null) {\n            this.viewPassword = true;\n        }\n        else {\n            this.viewPassword = this.getResponseProperty(\"ViewPassword\");\n        }\n        this.organizationUseTotp = this.getResponseProperty(\"OrganizationUseTotp\");\n        this.revisionDate = this.getResponseProperty(\"RevisionDate\");\n        this.collectionIds = this.getResponseProperty(\"CollectionIds\");\n        this.creationDate = this.getResponseProperty(\"CreationDate\");\n        this.deletedDate = this.getResponseProperty(\"DeletedDate\");\n        const login = this.getResponseProperty(\"Login\");\n        if (login != null) {\n            this.login = new _api_login_api__WEBPACK_IMPORTED_MODULE_5__.LoginApi(login);\n        }\n        const card = this.getResponseProperty(\"Card\");\n        if (card != null) {\n            this.card = new _api_card_api__WEBPACK_IMPORTED_MODULE_2__.CardApi(card);\n        }\n        const identity = this.getResponseProperty(\"Identity\");\n        if (identity != null) {\n            this.identity = new _api_identity_api__WEBPACK_IMPORTED_MODULE_4__.IdentityApi(identity);\n        }\n        const secureNote = this.getResponseProperty(\"SecureNote\");\n        if (secureNote != null) {\n            this.secureNote = new _api_secure_note_api__WEBPACK_IMPORTED_MODULE_6__.SecureNoteApi(secureNote);\n        }\n        const fields = this.getResponseProperty(\"Fields\");\n        if (fields != null) {\n            this.fields = fields.map((f) => new _api_field_api__WEBPACK_IMPORTED_MODULE_3__.FieldApi(f));\n        }\n        const attachments = this.getResponseProperty(\"Attachments\");\n        if (attachments != null) {\n            this.attachments = attachments.map((a) => new _attachment_response__WEBPACK_IMPORTED_MODULE_7__.AttachmentResponse(a));\n        }\n        const passwordHistory = this.getResponseProperty(\"PasswordHistory\");\n        if (passwordHistory != null) {\n            this.passwordHistory = passwordHistory.map((h) => new _password_history_response__WEBPACK_IMPORTED_MODULE_8__.PasswordHistoryResponse(h));\n        }\n        this.reprompt = this.getResponseProperty(\"Reprompt\") || _enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__.CipherRepromptType.None;\n        this.key = this.getResponseProperty(\"Key\") || null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8568 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/response/cipher.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/response/folder.response.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/vault/models/response/folder.response.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderResponse: () => (/* binding */ FolderResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass FolderResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.id = this.getResponseProperty(\"Id\");\n        this.name = this.getResponseProperty(\"Name\");\n        this.revisionDate = this.getResponseProperty(\"RevisionDate\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXNwb25zZS9mb2xkZXIucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0U7QUFFL0QsTUFBTSxjQUFlLFNBQVEsd0VBQVk7SUFLOUMsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxR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IifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/response/folder.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/response/optional-cipher.response.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/common/src/vault/models/response/optional-cipher.response.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OptionalCipherResponse: () => (/* binding */ OptionalCipherResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n/* harmony import */ var _cipher_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cipher.response */ \"../../libs/common/src/vault/models/response/cipher.response.ts\");\n\n\nclass OptionalCipherResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.unavailable = this.getResponseProperty(\"Unavailable\");\n        this.cipher = new _cipher_response__WEBPACK_IMPORTED_MODULE_1__.CipherResponse(this.getResponseProperty(\"Cipher\"));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXNwb25zZS9vcHRpb25hbC1jaXBoZXIucmVzcG9uc2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQXNFO0FBRW5CO0FBRTVDLE1BQU0sc0JBQXVCLFNBQVEsd0VBQVk7SUFJdEQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsV0FBVyxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMzRCxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksNERBQWMsQ0FBQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQztJQUN2RSxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3Jlc3BvbnNlL29wdGlvbmFsLWNpcGhlci5yZXNwb25zZS50cz83MjFhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VSZXNwb25zZSB9IGZyb20gXCIuLi8uLi8uLi9tb2RlbHMvcmVzcG9uc2UvYmFzZS5yZXNwb25zZVwiO1xuXG5pbXBvcnQgeyBDaXBoZXJSZXNwb25zZSB9IGZyb20gXCIuL2NpcGhlci5yZXNwb25zZVwiO1xuXG5leHBvcnQgY2xhc3MgT3B0aW9uYWxDaXBoZXJSZXNwb25zZSBleHRlbmRzIEJhc2VSZXNwb25zZSB7XG4gIHVuYXZhaWxhYmxlOiBib29sZWFuO1xuICBjaXBoZXI/OiBDaXBoZXJSZXNwb25zZTtcblxuICBjb25zdHJ1Y3RvcihyZXNwb25zZTogYW55KSB7XG4gICAgc3VwZXIocmVzcG9uc2UpO1xuICAgIHRoaXMudW5hdmFpbGFibGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJVbmF2YWlsYWJsZVwiKTtcbiAgICB0aGlzLmNpcGhlciA9IG5ldyBDaXBoZXJSZXNwb25zZSh0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJDaXBoZXJcIikpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/response/optional-cipher.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/response/password-history.response.ts":
/*!********************************************************************************!*\
  !*** ../../libs/common/src/vault/models/response/password-history.response.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordHistoryResponse: () => (/* binding */ PasswordHistoryResponse)\n/* harmony export */ });\n/* harmony import */ var _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/base.response */ \"../../libs/common/src/models/response/base.response.ts\");\n\nclass PasswordHistoryResponse extends _models_response_base_response__WEBPACK_IMPORTED_MODULE_0__.BaseResponse {\n    constructor(response) {\n        super(response);\n        this.password = this.getResponseProperty(\"Password\");\n        this.lastUsedDate = this.getResponseProperty(\"LastUsedDate\");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy9yZXNwb25zZS9wYXNzd29yZC1oaXN0b3J5LnJlc3BvbnNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQXNFO0FBRS9ELE1BQU0sdUJBQXdCLFNBQVEsd0VBQVk7SUFJdkQsWUFBWSxRQUFhO1FBQ3ZCLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUNoQixJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUNyRCxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQyxtQkFBbUIsQ0FBQyxjQUFjLENBQUMsQ0FBQztJQUMvRCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmF1bHQvbW9kZWxzL3Jlc3BvbnNlL3Bhc3N3b3JkLWhpc3RvcnkucmVzcG9uc2UudHM/NTE0OCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlUmVzcG9uc2UgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3Jlc3BvbnNlL2Jhc2UucmVzcG9uc2VcIjtcblxuZXhwb3J0IGNsYXNzIFBhc3N3b3JkSGlzdG9yeVJlc3BvbnNlIGV4dGVuZHMgQmFzZVJlc3BvbnNlIHtcbiAgcGFzc3dvcmQ6IHN0cmluZztcbiAgbGFzdFVzZWREYXRlOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3IocmVzcG9uc2U6IGFueSkge1xuICAgIHN1cGVyKHJlc3BvbnNlKTtcbiAgICB0aGlzLnBhc3N3b3JkID0gdGhpcy5nZXRSZXNwb25zZVByb3BlcnR5KFwiUGFzc3dvcmRcIik7XG4gICAgdGhpcy5sYXN0VXNlZERhdGUgPSB0aGlzLmdldFJlc3BvbnNlUHJvcGVydHkoXCJMYXN0VXNlZERhdGVcIik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/response/password-history.response.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/attachment.view.ts":
/*!******************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/attachment.view.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AttachmentView: () => (/* binding */ AttachmentView)\n/* harmony export */ });\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n\nclass AttachmentView {\n    constructor(a) {\n        this.id = null;\n        this.url = null;\n        this.size = null;\n        this.sizeName = null;\n        this.fileName = null;\n        this.key = null;\n        if (!a) {\n            return;\n        }\n        this.id = a.id;\n        this.url = a.url;\n        this.size = a.size;\n        this.sizeName = a.sizeName;\n    }\n    get fileSize() {\n        try {\n            if (this.size != null) {\n                return parseInt(this.size, null);\n            }\n        }\n        catch (_a) {\n            // Invalid file size.\n        }\n        return 0;\n    }\n    static fromJSON(obj) {\n        const key = obj.key == null ? null : _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_0__.SymmetricCryptoKey.fromJSON(obj.key);\n        return Object.assign(new AttachmentView(), obj, { key: key });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L2F0dGFjaG1lbnQudmlldy50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUcwRjtBQUduRixNQUFNLGNBQWM7SUFRekIsWUFBWSxDQUFjO1FBUDFCLE9BQUUsR0FBVyxJQUFJLENBQUM7UUFDbEIsUUFBRyxHQUFXLElBQUksQ0FBQztRQUNuQixTQUFJLEdBQVcsSUFBSSxDQUFDO1FBQ3BCLGFBQVEsR0FBVyxJQUFJLENBQUM7UUFDeEIsYUFBUSxHQUFXLElBQUksQ0FBQztRQUN4QixRQUFHLEdBQXVCLElBQUksQ0FBQztRQUc3QixJQUFJLENBQUMsQ0FBQyxFQUFFLENBQUM7WUFDUCxPQUFPO1FBQ1QsQ0FBQztRQUVELElBQUksQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQztRQUNmLElBQUksQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLEdBQUcsQ0FBQztRQUNqQixJQUFJLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUM7UUFDbkIsSUFBSSxDQUFDLFFBQVEsR0FBRyxDQUFDLENBQUMsUUFBUSxDQ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9iai5rZXkpO1xuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG5ldyBBdHRhY2htZW50VmlldygpLCBvYmosIHsga2V5OiBrZXkgfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/attachment.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/card.view.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/card.view.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CardView: () => (/* binding */ CardView)\n/* harmony export */ });\n/* harmony import */ var _autofill_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../autofill/utils */ \"../../libs/common/src/autofill/utils.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../linked-field-option.decorator */ \"../../libs/common/src/vault/linked-field-option.decorator.ts\");\n/* harmony import */ var _item_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./item.view */ \"../../libs/common/src/vault/models/view/item.view.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\n\n\nclass CardView extends _item_view__WEBPACK_IMPORTED_MODULE_3__.ItemView {\n    constructor() {\n        super(...arguments);\n        this.cardholderName = null;\n        this.expMonth = null;\n        this.expYear = null;\n        this.code = null;\n        this._brand = null;\n        this._number = null;\n        this._subTitle = null;\n    }\n    get maskedCode() {\n        return this.code != null ? \"•\".repeat(this.code.length) : null;\n    }\n    get maskedNumber() {\n        return this.number != null ? \"•\".repeat(this.number.length) : null;\n    }\n    get brand() {\n        return this._brand;\n    }\n    set brand(value) {\n        this._brand = value;\n        this._subTitle = null;\n    }\n    get number() {\n        return this._number;\n    }\n    set number(value) {\n        this._number = value;\n        this._subTitle = null;\n    }\n    get subTitle() {\n        if (this._subTitle == null) {\n            this._subTitle = this.brand;\n            if (this.number != null && this.number.length >= 4) {\n                if (this._subTitle != null && this._subTitle !== \"\") {\n                    this._subTitle += \", \";\n                }\n                else {\n                    this._subTitle = \"\";\n                }\n                // Show last 5 on amex, last 4 for all others\n                const count = this.number.length >= 5 && this.number.match(new RegExp(\"^3[47]\")) != null ? 5 : 4;\n                this._subTitle += \"*\" + this.number.substr(this.number.length - count);\n            }\n        }\n        return this._subTitle;\n    }\n    get expiration() {\n        const normalizedYear = (0,_autofill_utils__WEBPACK_IMPORTED_MODULE_0__.normalizeExpiryYearFormat)(this.expYear);\n        if (!this.expMonth && !normalizedYear) {\n            return null;\n        }\n        let exp = this.expMonth != null ? (\"0\" + this.expMonth).slice(-2) : \"__\";\n        exp += \" / \" + (normalizedYear || \"____\");\n        return exp;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new CardView(), obj);\n    }\n    // ref https://stackoverflow.com/a/5911300\n    static getCardBrandByPatterns(cardNum) {\n        if (cardNum == null || typeof cardNum !== \"string\" || cardNum.trim() === \"\") {\n            return null;\n        }\n        // Visa\n        let re = new RegExp(\"^4\");\n        if (cardNum.match(re) != null) {\n            return \"Visa\";\n        }\n        // Mastercard\n        // Updated for Mastercard 2017 BINs expansion\n        if (/^(5[1-5][0-9]{14}|2(22[1-9][0-9]{12}|2[3-9][0-9]{13}|[3-6][0-9]{14}|7[0-1][0-9]{13}|720[0-9]{12}))$/.test(cardNum)) {\n            return \"Mastercard\";\n        }\n        // AMEX\n        re = new RegExp(\"^3[47]\");\n        if (cardNum.match(re) != null) {\n            return \"Amex\";\n        }\n        // Discover\n        re = new RegExp(\"^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)\");\n        if (cardNum.match(re) != null) {\n            return \"Discover\";\n        }\n        // Diners\n        re = new RegExp(\"^36\");\n        if (cardNum.match(re) != null) {\n            return \"Diners Club\";\n        }\n        // Diners - Carte Blanche\n        re = new RegExp(\"^30[0-5]\");\n        if (cardNum.match(re) != null) {\n            return \"Diners Club\";\n        }\n        // JCB\n        re = new RegExp(\"^35(2[89]|[3-8][0-9])\");\n        if (cardNum.match(re) != null) {\n            return \"JCB\";\n        }\n        // Visa Electron\n        re = new RegExp(\"^(4026|417500|4508|4844|491(3|7))\");\n        if (cardNum.match(re) != null) {\n            return \"Visa\";\n        }\n        return null;\n    }\n}\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.CardLinkedId.CardholderName, { sortPosition: 0 }),\n    __metadata(\"design:type\", String)\n], CardView.prototype, \"cardholderName\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.CardLinkedId.ExpMonth, { sortPosition: 3, i18nKey: \"expirationMonth\" }),\n    __metadata(\"design:type\", String)\n], CardView.prototype, \"expMonth\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.CardLinkedId.ExpYear, { sortPosition: 4, i18nKey: \"expirationYear\" }),\n    __metadata(\"design:type\", String)\n], CardView.prototype, \"expYear\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.CardLinkedId.Code, { sortPosition: 5, i18nKey: \"securityCode\" }),\n    __metadata(\"design:type\", String)\n], CardView.prototype, \"code\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.CardLinkedId.Brand, { sortPosition: 2 }),\n    __metadata(\"design:type\", String),\n    __metadata(\"design:paramtypes\", [String])\n], CardView.prototype, \"brand\", null);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.CardLinkedId.Number, { sortPosition: 1 }),\n    __metadata(\"design:type\", String),\n    __metadata(\"design:paramtypes\", [String])\n], CardView.prototype, \"number\", null);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11268 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/card.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/cipher.view.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/cipher.view.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherView: () => (/* binding */ CipherView)\n/* harmony export */ });\n/* harmony import */ var _platform_services_cryptography_initializer_key__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/services/cryptography/initializer-key */ \"../../libs/common/src/platform/services/cryptography/initializer-key.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../enums/cipher-reprompt-type */ \"../../libs/common/src/vault/enums/cipher-reprompt-type.ts\");\n/* harmony import */ var _attachment_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./attachment.view */ \"../../libs/common/src/vault/models/view/attachment.view.ts\");\n/* harmony import */ var _card_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _field_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./field.view */ \"../../libs/common/src/vault/models/view/field.view.ts\");\n/* harmony import */ var _identity_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _login_view__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _password_history_view__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./password-history.view */ \"../../libs/common/src/vault/models/view/password-history.view.ts\");\n/* harmony import */ var _secure_note_view__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n\n\n\n\n\n\n\n\n\n\nclass CipherView {\n    constructor(c) {\n        var _a;\n        this.initializerKey = _platform_services_cryptography_initializer_key__WEBPACK_IMPORTED_MODULE_0__.InitializerKey.CipherView;\n        this.id = null;\n        this.organizationId = null;\n        this.folderId = null;\n        this.name = null;\n        this.notes = null;\n        this.type = null;\n        this.favorite = false;\n        this.organizationUseTotp = false;\n        this.edit = false;\n        this.viewPassword = true;\n        this.login = new _login_view__WEBPACK_IMPORTED_MODULE_7__.LoginView();\n        this.identity = new _identity_view__WEBPACK_IMPORTED_MODULE_6__.IdentityView();\n        this.card = new _card_view__WEBPACK_IMPORTED_MODULE_4__.CardView();\n        this.secureNote = new _secure_note_view__WEBPACK_IMPORTED_MODULE_9__.SecureNoteView();\n        this.attachments = null;\n        this.fields = null;\n        this.passwordHistory = null;\n        this.collectionIds = null;\n        this.revisionDate = null;\n        this.creationDate = null;\n        this.deletedDate = null;\n        this.reprompt = _enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_2__.CipherRepromptType.None;\n        if (!c) {\n            return;\n        }\n        this.id = c.id;\n        this.organizationId = c.organizationId;\n        this.folderId = c.folderId;\n        this.favorite = c.favorite;\n        this.organizationUseTotp = c.organizationUseTotp;\n        this.edit = c.edit;\n        this.viewPassword = c.viewPassword;\n        this.type = c.type;\n        this.localData = c.localData;\n        this.collectionIds = c.collectionIds;\n        this.revisionDate = c.revisionDate;\n        this.creationDate = c.creationDate;\n        this.deletedDate = c.deletedDate;\n        // Old locally stored ciphers might have reprompt == null. If so set it to None.\n        this.reprompt = (_a = c.reprompt) !== null && _a !== void 0 ? _a : _enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_2__.CipherRepromptType.None;\n    }\n    get item() {\n        switch (this.type) {\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login:\n                return this.login;\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.SecureNote:\n                return this.secureNote;\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Card:\n                return this.card;\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Identity:\n                return this.identity;\n            default:\n                break;\n        }\n        return null;\n    }\n    get subTitle() {\n        var _a;\n        return (_a = this.item) === null || _a === void 0 ? void 0 : _a.subTitle;\n    }\n    get hasPasswordHistory() {\n        return this.passwordHistory && this.passwordHistory.length > 0;\n    }\n    get hasAttachments() {\n        return this.attachments && this.attachments.length > 0;\n    }\n    get hasOldAttachments() {\n        if (this.hasAttachments) {\n            for (let i = 0; i < this.attachments.length; i++) {\n                if (this.attachments[i].key == null) {\n                    return true;\n                }\n            }\n        }\n        return false;\n    }\n    get hasFields() {\n        return this.fields && this.fields.length > 0;\n    }\n    get passwordRevisionDisplayDate() {\n        if (this.type !== _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login || this.login == null) {\n            return null;\n        }\n        else if (this.login.password == null || this.login.password === \"\") {\n            return null;\n        }\n        return this.login.passwordRevisionDate;\n    }\n    get isDeleted() {\n        return this.deletedDate != null;\n    }\n    get linkedFieldOptions() {\n        var _a;\n        return (_a = this.item) === null || _a === void 0 ? void 0 : _a.linkedFieldOptions;\n    }\n    get isUnassigned() {\n        return (this.organizationId != null && (this.collectionIds == null || this.collectionIds.length === 0));\n    }\n    /**\n     * Determines if the cipher can be launched in a new browser tab.\n     */\n    get canLaunch() {\n        return this.type === _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login && this.login.canLaunch;\n    }\n    linkedFieldValue(id) {\n        var _a;\n        const linkedFieldOption = (_a = this.linkedFieldOptions) === null || _a === void 0 ? void 0 : _a.get(id);\n        if (linkedFieldOption == null) {\n            return null;\n        }\n        const item = this.item;\n        return this.item[linkedFieldOption.propertyKey];\n    }\n    linkedFieldI18nKey(id) {\n        var _a;\n        return (_a = this.linkedFieldOptions.get(id)) === null || _a === void 0 ? void 0 : _a.i18nKey;\n    }\n    // This is used as a marker to indicate that the cipher view object still has its prototype\n    toJSON() {\n        return this;\n    }\n    static fromJSON(obj) {\n        var _a, _b, _c;\n        if (obj == null) {\n            return null;\n        }\n        const view = new CipherView();\n        const revisionDate = obj.revisionDate == null ? null : new Date(obj.revisionDate);\n        const deletedDate = obj.deletedDate == null ? null : new Date(obj.deletedDate);\n        const attachments = (_a = obj.attachments) === null || _a === void 0 ? void 0 : _a.map((a) => _attachment_view__WEBPACK_IMPORTED_MODULE_3__.AttachmentView.fromJSON(a));\n        const fields = (_b = obj.fields) === null || _b === void 0 ? void 0 : _b.map((f) => _field_view__WEBPACK_IMPORTED_MODULE_5__.FieldView.fromJSON(f));\n        const passwordHistory = (_c = obj.passwordHistory) === null || _c === void 0 ? void 0 : _c.map((ph) => _password_history_view__WEBPACK_IMPORTED_MODULE_8__.PasswordHistoryView.fromJSON(ph));\n        Object.assign(view, obj, {\n            revisionDate: revisionDate,\n            deletedDate: deletedDate,\n            attachments: attachments,\n            fields: fields,\n            passwordHistory: passwordHistory,\n        });\n        switch (obj.type) {\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Card:\n                view.card = _card_view__WEBPACK_IMPORTED_MODULE_4__.CardView.fromJSON(obj.card);\n                break;\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Identity:\n                view.identity = _identity_view__WEBPACK_IMPORTED_MODULE_6__.IdentityView.fromJSON(obj.identity);\n                break;\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login:\n                view.login = _login_view__WEBPACK_IMPORTED_MODULE_7__.LoginView.fromJSON(obj.login);\n                break;\n            case _enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.SecureNote:\n                view.secureNote = _secure_note_view__WEBPACK_IMPORTED_MODULE_9__.SecureNoteView.fromJSON(obj.secureNote);\n                break;\n            default:\n                break;\n        }\n        return view;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15260 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/cipher.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/fido2-credential.view.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/fido2-credential.view.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Fido2CredentialView: () => (/* binding */ Fido2CredentialView)\n/* harmony export */ });\n/* harmony import */ var _item_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./item.view */ \"../../libs/common/src/vault/models/view/item.view.ts\");\n\nclass Fido2CredentialView extends _item_view__WEBPACK_IMPORTED_MODULE_0__.ItemView {\n    constructor() {\n        super(...arguments);\n        this.creationDate = null;\n    }\n    get subTitle() {\n        return this.userDisplayName;\n    }\n    static fromJSON(obj) {\n        const creationDate = obj.creationDate != null ? new Date(obj.creationDate) : null;\n        return Object.assign(new Fido2CredentialView(), obj, {\n            creationDate,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L2ZpZG8yLWNyZWRlbnRpYWwudmlldy50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUV1QztBQUVoQyxNQUFNLG1CQUFvQixTQUFRLGdEQUFRO0lBQWpEOztRQWFFLGlCQUFZLEdBQVMsSUFBSSxDQUFDO0lBWTVCLENBQUM7SUFWQyxJQUFJLFFBQVE7UUFDVixPQUFPLElBQUksQ0FBQyxlQUFlLENBQUM7SUFDOUIsQ0FBQztJQUVELE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBMEM7UUFDeEQsTUFBTSxZQUFZLEdBQUcsR0FBRyxDQUFDLFlBQVksSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksSUFBSSxDQUFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDO1FBQ2xGLE9BQU8sTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLG1CQUFtQixFQUFFLEVBQUUsR0FBRyxFQUFFO1lBQ25ELFlBQVk7U0FDYixDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2F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uIE9iamVjdC5hc3NpZ24obmV3IEZpZG8yQ3JlZGVudGlhbFZpZXcoKSwgb2JqLCB7XG4gICAgICBjcmVhdGlvbkRhdGUsXG4gICAgfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/fido2-credential.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/field.view.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/field.view.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FieldView: () => (/* binding */ FieldView)\n/* harmony export */ });\nclass FieldView {\n    constructor(f) {\n        this.name = null;\n        this.value = null;\n        this.type = null;\n        this.newField = false; // Marks if the field is new and hasn't been saved\n        this.showValue = false;\n        this.showCount = false;\n        this.linkedId = null;\n        if (!f) {\n            return;\n        }\n        this.type = f.type;\n        this.linkedId = f.linkedId;\n    }\n    get maskedValue() {\n        return this.value != null ? \"••••••••\" : null;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new FieldView(), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L2ZpZWxkLnZpZXcudHMiLCJtYXBwaW5ncyI6Ijs7OztBQU1PLE1BQU0sU0FBUztJQVNwQixZQUFZLENBQVM7UUFSckIsU0FBSSxHQUFXLElBQUksQ0FBQztRQUNwQixVQUFLLEdBQVcsSUFBSSxDQUFDO1FBQ3JCLFNBQUksR0FBYyxJQUFJLENBQUM7UUFDdkIsYUFBUSxHQUFHLEtBQUssQ0FBQyxDQUFDLGtEQUFrRDtRQUNwRSxjQUFTLEdBQU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gIG5hbWU6IHN0cmluZyA9IG51bGw7XG4gIHZhbHVlOiBzdHJpbmcgPSBudWxsO1xuICB0eXBlOiBGaWVsZFR5cGUgPSBudWxsO1xuICBuZXdGaWVsZCA9IGZhbHNlOyAvLyBNYXJrcyBpZiB0aGUgZmllbGQgaXMgbmV3IGFuZCBoYXNuJ3QgYmVlbiBzYXZlZFxuICBzaG93VmFsdWUgPSBmYWxzZTtcbiAgc2hvd0NvdW50ID0gZmFsc2U7XG4gIGxpbmtlZElkOiBMaW5rZWRJZFR5cGUgPSBudWxsO1xuXG4gIGNvbnN0cnVjdG9yKGY/OiBGaWVsZCkge1xuICAgIGlmICghZikge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMudHlwZSA9IGYudHlwZTtcbiAgICB0aGlzLmxpbmtlZElkID0gZi5saW5rZWRJZDtcbiAgfVxuXG4gIGdldCBtYXNrZWRWYWx1ZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLnZhbHVlICE9IG51bGwgPyBcIuKAouKAouKAouKAouKAouKAouKAouKAolwiIDogbnVsbDtcbiAgfVxuXG4gIHN0YXRpYyBmcm9tSlNPTihvYmo6IFBhcnRpYWw8SnNvbmlmeTxGaWVsZFZpZXc+Pik6IEZpZWxkVmlldyB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24obmV3IEZpZWxkVmlldygpLCBvYmopO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/field.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/folder.view.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/folder.view.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderView: () => (/* binding */ FolderView)\n/* harmony export */ });\nclass FolderView {\n    constructor(f) {\n        this.id = null;\n        this.name = null;\n        this.revisionDate = null;\n        if (!f) {\n            return;\n        }\n        this.id = f.id;\n        this.revisionDate = f.revisionDate;\n    }\n    static fromJSON(obj) {\n        const revisionDate = obj.revisionDate == null ? null : new Date(obj.revisionDate);\n        return Object.assign(new FolderView(), obj, { revisionDate });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L2ZvbGRlci52aWV3LnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFPTyxNQUFNLFVBQVU7SUFLckIsWUFBWSxDQUE0QztRQUp4RCxPQUFFLEdBQVcsSUFBSSxDQUFDO1FBQ2xCLFNBQUksR0FBVyxJQUFJLENBQUM7UUFDcEIsaUJBQVksR0FBUyxJQUFJLENBQUM7UUFHeEIsSUFBSSxDQUFDLENBQUMsRUFBRSxDQUFDO1lBQ1AsT0FBTztRQUNULENBQUM7UUFFRCxJQUFJLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUM7UUFDZixJQUFJLENBQUMsWUFBWSxHQUFHLENBQUMsQ0FBQyxZQUFZLENBQUM7SUFDckMsQ0FBQztJQUVELE1BQU0sQ0FBQyxRQUFRLENBQUMsR0FBd0I7UUFDdEMsTUFBTSxZQUFZLEdBQUcsR0FBRyxDQUFDLFlBQVksSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxJQUFJLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxDQUFDO1FBQ2xGLE9BQU8sTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLFVBQVUsRUFBRSxFQUFFLEdBQUcsRUFBRSxFQUFFLFlBQVksRUFBRSxDQUFDLENBQUM7SUFDaEUsQ0FBQ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ID8gbnVsbCA6IG5ldyBEYXRlKG9iai5yZXZpc2lvbkRhdGUpO1xuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG5ldyBGb2xkZXJWaWV3KCksIG9iaiwgeyByZXZpc2lvbkRhdGUgfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/folder.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/identity.view.ts":
/*!****************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/identity.view.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IdentityView: () => (/* binding */ IdentityView)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../linked-field-option.decorator */ \"../../libs/common/src/vault/linked-field-option.decorator.ts\");\n/* harmony import */ var _item_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./item.view */ \"../../libs/common/src/vault/models/view/item.view.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\n\n\nclass IdentityView extends _item_view__WEBPACK_IMPORTED_MODULE_3__.ItemView {\n    constructor() {\n        super();\n        this.title = null;\n        this.middleName = null;\n        this.address1 = null;\n        this.address2 = null;\n        this.address3 = null;\n        this.city = null;\n        this.state = null;\n        this.postalCode = null;\n        this.country = null;\n        this.company = null;\n        this.email = null;\n        this.phone = null;\n        this.ssn = null;\n        this.username = null;\n        this.passportNumber = null;\n        this.licenseNumber = null;\n        this._firstName = null;\n        this._lastName = null;\n        this._subTitle = null;\n    }\n    get firstName() {\n        return this._firstName;\n    }\n    set firstName(value) {\n        this._firstName = value;\n        this._subTitle = null;\n    }\n    get lastName() {\n        return this._lastName;\n    }\n    set lastName(value) {\n        this._lastName = value;\n        this._subTitle = null;\n    }\n    get subTitle() {\n        if (this._subTitle == null && (this.firstName != null || this.lastName != null)) {\n            this._subTitle = \"\";\n            if (this.firstName != null) {\n                this._subTitle = this.firstName;\n            }\n            if (this.lastName != null) {\n                if (this._subTitle !== \"\") {\n                    this._subTitle += \" \";\n                }\n                this._subTitle += this.lastName;\n            }\n        }\n        return this._subTitle;\n    }\n    get fullName() {\n        if (this.title != null ||\n            this.firstName != null ||\n            this.middleName != null ||\n            this.lastName != null) {\n            let name = \"\";\n            if (this.title != null) {\n                name += this.title + \" \";\n            }\n            if (this.firstName != null) {\n                name += this.firstName + \" \";\n            }\n            if (this.middleName != null) {\n                name += this.middleName + \" \";\n            }\n            if (this.lastName != null) {\n                name += this.lastName;\n            }\n            return name.trim();\n        }\n        return null;\n    }\n    get fullAddress() {\n        let address = this.address1;\n        if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(this.address2)) {\n            if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(address)) {\n                address += \", \";\n            }\n            address += this.address2;\n        }\n        if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(this.address3)) {\n            if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(address)) {\n                address += \", \";\n            }\n            address += this.address3;\n        }\n        return address;\n    }\n    get fullAddressPart2() {\n        if (this.city == null && this.state == null && this.postalCode == null) {\n            return null;\n        }\n        const city = this.city || \"-\";\n        const state = this.state;\n        const postalCode = this.postalCode || \"-\";\n        let addressPart2 = city;\n        if (!_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(state)) {\n            addressPart2 += \", \" + state;\n        }\n        addressPart2 += \", \" + postalCode;\n        return addressPart2;\n    }\n    get fullAddressForCopy() {\n        let address = this.fullAddress;\n        if (this.city != null || this.state != null || this.postalCode != null) {\n            address += \"\\n\" + this.fullAddressPart2;\n        }\n        if (this.country != null) {\n            address += \"\\n\" + this.country;\n        }\n        return address;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new IdentityView(), obj);\n    }\n}\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Title, { sortPosition: 0 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"title\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.MiddleName, { sortPosition: 2 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"middleName\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Address1, { sortPosition: 12 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"address1\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Address2, { sortPosition: 13 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"address2\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Address3, { sortPosition: 14 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"address3\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.City, { sortPosition: 15, i18nKey: \"cityTown\" }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"city\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.State, { sortPosition: 16, i18nKey: \"stateProvince\" }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"state\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.PostalCode, { sortPosition: 17, i18nKey: \"zipPostalCode\" }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"postalCode\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Country, { sortPosition: 18 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"country\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Company, { sortPosition: 6 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"company\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Email, { sortPosition: 10 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"email\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Phone, { sortPosition: 11 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"phone\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Ssn, { sortPosition: 7 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"ssn\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.Username, { sortPosition: 5 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"username\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.PassportNumber, { sortPosition: 8 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"passportNumber\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.LicenseNumber, { sortPosition: 9 }),\n    __metadata(\"design:type\", String)\n], IdentityView.prototype, \"licenseNumber\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.FirstName, { sortPosition: 1 }),\n    __metadata(\"design:type\", String),\n    __metadata(\"design:paramtypes\", [String])\n], IdentityView.prototype, \"firstName\", null);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.LastName, { sortPosition: 4 }),\n    __metadata(\"design:type\", String),\n    __metadata(\"design:paramtypes\", [String])\n], IdentityView.prototype, \"lastName\", null);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.IdentityLinkedId.FullName, { sortPosition: 3 }),\n    __metadata(\"design:type\", String),\n    __metadata(\"design:paramtypes\", [])\n], IdentityView.prototype, \"fullName\", null);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13812 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/identity.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/item.view.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/item.view.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ItemView: () => (/* binding */ ItemView)\n/* harmony export */ });\nclass ItemView {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L2l0ZW0udmlldy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBR08sTUFBZSxRQUFRO0NBRzdCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L2l0ZW0udmlldy50cz9kMmNkIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFZpZXcgfSBmcm9tIFwiLi4vLi4vLi4vbW9kZWxzL3ZpZXcvdmlld1wiO1xuaW1wb3J0IHsgTGlua2VkTWV0YWRhdGEgfSBmcm9tIFwiLi4vLi4vbGlua2VkLWZpZWxkLW9wdGlvbi5kZWNvcmF0b3JcIjtcblxuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEl0ZW1WaWV3IGltcGxlbWVudHMgVmlldyB7XG4gIGxpbmtlZEZpZWxkT3B0aW9uczogTWFwPG51bWJlciwgTGlua2VkTWV0YWRhdGE+O1xuICBhYnN0cmFjdCBnZXQgc3ViVGl0bGUoKTogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/item.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/login-uri.view.ts":
/*!*****************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/login-uri.view.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginUriView: () => (/* binding */ LoginUriView)\n/* harmony export */ });\n/* harmony import */ var _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/domain/domain-service */ \"../../libs/common/src/models/domain/domain-service.ts\");\n/* harmony import */ var _platform_misc_safe_urls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/misc/safe-urls */ \"../../libs/common/src/platform/misc/safe-urls.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n\n\n\nclass LoginUriView {\n    constructor(u) {\n        this.match = null;\n        this._uri = null;\n        this._domain = null;\n        this._hostname = null;\n        this._host = null;\n        this._canLaunch = null;\n        if (!u) {\n            return;\n        }\n        this.match = u.match;\n    }\n    get uri() {\n        return this._uri;\n    }\n    set uri(value) {\n        this._uri = value;\n        this._domain = null;\n        this._canLaunch = null;\n    }\n    get domain() {\n        if (this._domain == null && this.uri != null) {\n            this._domain = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getDomain(this.uri);\n            if (this._domain === \"\") {\n                this._domain = null;\n            }\n        }\n        return this._domain;\n    }\n    get hostname() {\n        if (this.match === _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.RegularExpression) {\n            return null;\n        }\n        if (this._hostname == null && this.uri != null) {\n            this._hostname = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getHostname(this.uri);\n            if (this._hostname === \"\") {\n                this._hostname = null;\n            }\n        }\n        return this._hostname;\n    }\n    get host() {\n        if (this.match === _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.RegularExpression) {\n            return null;\n        }\n        if (this._host == null && this.uri != null) {\n            this._host = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getHost(this.uri);\n            if (this._host === \"\") {\n                this._host = null;\n            }\n        }\n        return this._host;\n    }\n    get hostnameOrUri() {\n        return this.hostname != null ? this.hostname : this.uri;\n    }\n    get hostOrUri() {\n        return this.host != null ? this.host : this.uri;\n    }\n    get isWebsite() {\n        return (this.uri != null &&\n            (this.uri.indexOf(\"http://\") === 0 ||\n                this.uri.indexOf(\"https://\") === 0 ||\n                (this.uri.indexOf(\"://\") < 0 && !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isNullOrWhitespace(_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getDomain(this.uri)))));\n    }\n    get canLaunch() {\n        if (this._canLaunch != null) {\n            return this._canLaunch;\n        }\n        if (this.uri != null && this.match !== _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.RegularExpression) {\n            this._canLaunch = _platform_misc_safe_urls__WEBPACK_IMPORTED_MODULE_1__.SafeUrls.canLaunch(this.launchUri);\n        }\n        else {\n            this._canLaunch = false;\n        }\n        return this._canLaunch;\n    }\n    get launchUri() {\n        return this.uri.indexOf(\"://\") < 0 && !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.isNullOrWhitespace(_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getDomain(this.uri))\n            ? \"http://\" + this.uri\n            : this.uri;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new LoginUriView(), obj);\n    }\n    matchesUri(targetUri, equivalentDomains, defaultUriMatch = null) {\n        var _a;\n        if (!this.uri || !targetUri) {\n            return false;\n        }\n        let matchType = (_a = this.match) !== null && _a !== void 0 ? _a : defaultUriMatch;\n        matchType !== null && matchType !== void 0 ? matchType : (matchType = _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.Domain);\n        const targetDomain = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getDomain(targetUri);\n        const matchDomains = equivalentDomains.add(targetDomain);\n        switch (matchType) {\n            case _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.Domain:\n                return this.matchesDomain(targetUri, matchDomains);\n            case _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.Host: {\n                const urlHost = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getHost(targetUri);\n                return urlHost != null && urlHost === _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getHost(this.uri);\n            }\n            case _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.Exact:\n                return targetUri === this.uri;\n            case _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.StartsWith:\n                return targetUri.startsWith(this.uri);\n            case _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.RegularExpression:\n                try {\n                    const regex = new RegExp(this.uri, \"i\");\n                    return regex.test(targetUri);\n                }\n                catch (e) {\n                    // Invalid regex\n                    return false;\n                }\n            case _models_domain_domain_service__WEBPACK_IMPORTED_MODULE_0__.UriMatchStrategy.Never:\n                return false;\n            default:\n                break;\n        }\n        return false;\n    }\n    matchesDomain(targetUri, matchDomains) {\n        if (targetUri == null || this.domain == null || !matchDomains.has(this.domain)) {\n            return false;\n        }\n        if (_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.DomainMatchBlacklist.has(this.domain)) {\n            const domainUrlHost = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.getHost(targetUri);\n            return !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_2__.Utils.DomainMatchBlacklist.get(this.domain).has(domainUrlHost);\n        }\n        return true;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12596 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/login-uri.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/login.view.ts":
/*!*************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/login.view.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LoginView: () => (/* binding */ LoginView)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../linked-field-option.decorator */ \"../../libs/common/src/vault/linked-field-option.decorator.ts\");\n/* harmony import */ var _fido2_credential_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fido2-credential.view */ \"../../libs/common/src/vault/models/view/fido2-credential.view.ts\");\n/* harmony import */ var _item_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./item.view */ \"../../libs/common/src/vault/models/view/item.view.ts\");\n/* harmony import */ var _login_uri_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login-uri.view */ \"../../libs/common/src/vault/models/view/login-uri.view.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\n\n\n\n\nclass LoginView extends _item_view__WEBPACK_IMPORTED_MODULE_4__.ItemView {\n    constructor(l) {\n        super();\n        this.username = null;\n        this.password = null;\n        this.passwordRevisionDate = null;\n        this.totp = null;\n        this.uris = [];\n        this.autofillOnPageLoad = null;\n        this.fido2Credentials = null;\n        if (!l) {\n            return;\n        }\n        this.passwordRevisionDate = l.passwordRevisionDate;\n        this.autofillOnPageLoad = l.autofillOnPageLoad;\n    }\n    get uri() {\n        return this.hasUris ? this.uris[0].uri : null;\n    }\n    get maskedPassword() {\n        return this.password != null ? \"••••••••\" : null;\n    }\n    get subTitle() {\n        var _a;\n        // if there's a passkey available, use that as a fallback\n        if (_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrEmpty(this.username) && ((_a = this.fido2Credentials) === null || _a === void 0 ? void 0 : _a.length) > 0) {\n            return this.fido2Credentials[0].userName;\n        }\n        return this.username;\n    }\n    get canLaunch() {\n        return this.hasUris && this.uris.some((u) => u.canLaunch);\n    }\n    get hasTotp() {\n        return !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(this.totp);\n    }\n    get launchUri() {\n        if (this.hasUris) {\n            const uri = this.uris.find((u) => u.canLaunch);\n            if (uri != null) {\n                return uri.launchUri;\n            }\n        }\n        return null;\n    }\n    get hasUris() {\n        return this.uris != null && this.uris.length > 0;\n    }\n    get hasFido2Credentials() {\n        return this.fido2Credentials != null && this.fido2Credentials.length > 0;\n    }\n    matchesUri(targetUri, equivalentDomains, defaultUriMatch = null) {\n        if (this.uris == null) {\n            return false;\n        }\n        return this.uris.some((uri) => uri.matchesUri(targetUri, equivalentDomains, defaultUriMatch));\n    }\n    static fromJSON(obj) {\n        var _a;\n        const passwordRevisionDate = obj.passwordRevisionDate == null ? null : new Date(obj.passwordRevisionDate);\n        const uris = obj.uris.map((uri) => _login_uri_view__WEBPACK_IMPORTED_MODULE_5__.LoginUriView.fromJSON(uri));\n        const fido2Credentials = (_a = obj.fido2Credentials) === null || _a === void 0 ? void 0 : _a.map((key) => _fido2_credential_view__WEBPACK_IMPORTED_MODULE_3__.Fido2CredentialView.fromJSON(key));\n        return Object.assign(new LoginView(), obj, {\n            passwordRevisionDate,\n            uris,\n            fido2Credentials,\n        });\n    }\n}\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.LoginLinkedId.Username, { sortPosition: 0 }),\n    __metadata(\"design:type\", String)\n], LoginView.prototype, \"username\", void 0);\n__decorate([\n    (0,_linked_field_option_decorator__WEBPACK_IMPORTED_MODULE_2__.linkedFieldOption)(_enums__WEBPACK_IMPORTED_MODULE_1__.LoginLinkedId.Password, { sortPosition: 1 }),\n    __metadata(\"design:type\", String)\n], LoginView.prototype, \"password\", void 0);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7856 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/login.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/password-history.view.ts":
/*!************************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/password-history.view.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordHistoryView: () => (/* binding */ PasswordHistoryView)\n/* harmony export */ });\nclass PasswordHistoryView {\n    constructor(ph) {\n        this.password = null;\n        this.lastUsedDate = null;\n        if (!ph) {\n            return;\n        }\n        this.lastUsedDate = ph.lastUsedDate;\n    }\n    static fromJSON(obj) {\n        const lastUsedDate = obj.lastUsedDate == null ? null : new Date(obj.lastUsedDate);\n        return Object.assign(new PasswordHistoryView(), obj, {\n            lastUsedDate: lastUsedDate,\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L21vZGVscy92aWV3L3Bhc3N3b3JkLWhpc3Rvcnkudmlldy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBS08sTUFBTSxtQkFBbUI7SUFJOUIsWUFBWSxFQUFhO1FBSHpCLGFBQVEsR0FBVyxJQUFJLENBQUM7UUFDeEIsaUJBQVksR0FBUyxJQUFJLENBQUM7UUFHeEIsSUFBSSxDQUFDLEVBQUUsRUFBRSxDQUFDO1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uICAgIHRoaXMubGFzdFVzZWREYXRlID0gcGgubGFzdFVzZWREYXRlO1xuICB9XG5cbiAgc3RhdGljIGZyb21KU09OKG9iajogUGFydGlhbDxKc29uaWZ5PFBhc3N3b3JkSGlzdG9yeVZpZXc+Pik6IFBhc3N3b3JkSGlzdG9yeVZpZXcge1xuICAgIGNvbnN0IGxhc3RVc2VkRGF0ZSA9IG9iai5sYXN0VXNlZERhdGUgPT0gbnVsbCA/IG51bGwgOiBuZXcgRGF0ZShvYmoubGFzdFVzZWREYXRlKTtcblxuICAgIHJldHVybiBPYmplY3QuYXNzaWduKG5ldyBQYXNzd29yZEhpc3RvcnlWaWV3KCksIG9iaiwge1xuICAgICAgbGFzdFVzZWREYXRlOiBsYXN0VXNlZERhdGUsXG4gICAgfSk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/password-history.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/models/view/secure-note.view.ts":
/*!*******************************************************************!*\
  !*** ../../libs/common/src/vault/models/view/secure-note.view.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureNoteView: () => (/* binding */ SecureNoteView)\n/* harmony export */ });\n/* harmony import */ var _item_view__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./item.view */ \"../../libs/common/src/vault/models/view/item.view.ts\");\n\nclass SecureNoteView extends _item_view__WEBPACK_IMPORTED_MODULE_0__.ItemView {\n    constructor(n) {\n        super();\n        this.type = null;\n        if (!n) {\n            return;\n        }\n        this.type = n.type;\n    }\n    get subTitle() {\n        return null;\n    }\n    static fromJSON(obj) {\n        return Object.assign(new SecureNoteView(), obj);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-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IFNlY3VyZU5vdGVWaWV3IGV4dGVuZHMgSXRlbVZpZXcge1xuICB0eXBlOiBTZWN1cmVOb3RlVHlwZSA9IG51bGw7XG5cbiAgY29uc3RydWN0b3Iobj86IFNlY3VyZU5vdGUpIHtcbiAgICBzdXBlcigpO1xuICAgIGlmICghbikge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIHRoaXMudHlwZSA9IG4udHlwZTtcbiAgfVxuXG4gIGdldCBzdWJUaXRsZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgc3RhdGljIGZyb21KU09OKG9iajogUGFydGlhbDxKc29uaWZ5PFNlY3VyZU5vdGVWaWV3Pj4pOiBTZWN1cmVOb3RlVmlldyB7XG4gICAgcmV0dXJuIE9iamVjdC5hc3NpZ24obmV3IFNlY3VyZU5vdGVWaWV3KCksIG9iaik7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/models/view/secure-note.view.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/service-utils.ts":
/*!****************************************************!*\
  !*** ../../libs/common/src/vault/service-utils.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ServiceUtils: () => (/* binding */ ServiceUtils)\n/* harmony export */ });\n/* harmony import */ var _models_domain_tree_node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./models/domain/tree-node */ \"../../libs/common/src/vault/models/domain/tree-node.ts\");\n\nclass ServiceUtils {\n    /**\n     * Recursively adds a node to nodeTree\n     * @param {TreeNode<ITreeNodeObject>[]} nodeTree - An array of TreeNodes that the node will be added to\n     * @param {number} partIndex - Index of the `parts` array that is being processed\n     * @param {string[]} parts - Array of strings that represent the path to the `obj` node\n     * @param {ITreeNodeObject} obj - The node to be added to the tree\n     * @param {ITreeNodeObject} parent - The parent node of the `obj` node\n     * @param {string} delimiter - The delimiter used to split the path string, will be used to combine the path for missing nodes\n     */\n    static nestedTraverse(nodeTree, partIndex, parts, obj, parent, delimiter) {\n        if (parts.length <= partIndex) {\n            return;\n        }\n        const end = partIndex === parts.length - 1;\n        const partName = parts[partIndex];\n        for (let i = 0; i < nodeTree.length; i++) {\n            if (nodeTree[i].node.name !== partName) {\n                continue;\n            }\n            if (end && nodeTree[i].node.id !== obj.id) {\n                // Another node exists with the same name as the node being added\n                nodeTree.push(new _models_domain_tree_node__WEBPACK_IMPORTED_MODULE_0__.TreeNode(obj, parent, partName));\n                return;\n            }\n            // Move down the tree to the next level\n            ServiceUtils.nestedTraverse(nodeTree[i].children, partIndex + 1, parts, obj, nodeTree[i], delimiter);\n            return;\n        }\n        // If there's no node here with the same name...\n        if (nodeTree.filter((n) => n.node.name === partName).length === 0) {\n            // And we're at the end of the path given, add the node\n            if (end) {\n                nodeTree.push(new _models_domain_tree_node__WEBPACK_IMPORTED_MODULE_0__.TreeNode(obj, parent, partName));\n                return;\n            }\n            // And we're not at the end of the path, combine the current name with the next name\n            // 1, *1.2, 1.2.1 becomes\n            // 1, *1.2/1.2.1\n            const newPartName = partName + delimiter + parts[partIndex + 1];\n            ServiceUtils.nestedTraverse(nodeTree, 0, [newPartName, ...parts.slice(partIndex + 2)], obj, parent, delimiter);\n        }\n    }\n    /**\n     * Searches a tree for a node with a matching `id`\n     * @param {TreeNode<T>} nodeTree - A single TreeNode branch that will be searched\n     * @param {string} id - The id of the node to be found\n     * @returns {TreeNode<T>} The node with a matching `id`\n     */\n    static getTreeNodeObject(nodeTree, id) {\n        if (nodeTree.node.id === id) {\n            return nodeTree;\n        }\n        for (let i = 0; i < nodeTree.children.length; i++) {\n            if (nodeTree.children[i].children != null) {\n                const node = ServiceUtils.getTreeNodeObject(nodeTree.children[i], id);\n                if (node !== null) {\n                    return node;\n                }\n            }\n        }\n        return null;\n    }\n    /**\n     * Searches an array of tree nodes for a node with a matching `id`\n     * @param {TreeNode<T>} nodeTree - An array of TreeNode branches that will be searched\n     * @param {string} id - The id of the node to be found\n     * @returns {TreeNode<T>} The node with a matching `id`\n     */\n    static getTreeNodeObjectFromList(nodeTree, id) {\n        for (let i = 0; i < nodeTree.length; i++) {\n            if (nodeTree[i].node.id === id) {\n                return nodeTree[i];\n            }\n            else if (nodeTree[i].children != null) {\n                const node = ServiceUtils.getTreeNodeObjectFromList(nodeTree[i].children, id);\n                if (node !== null) {\n                    return node;\n                }\n            }\n        }\n        return null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8904 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/service-utils.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/cipher-authorization.service.ts":
/*!****************************************************************************!*\
  !*** ../../libs/common/src/vault/services/cipher-authorization.service.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherAuthorizationService: () => (/* binding */ CipherAuthorizationService),\n/* harmony export */   DefaultCipherAuthorizationService: () => (/* binding */ DefaultCipherAuthorizationService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n\n/**\n * Service for managing user cipher authorization.\n */\nclass CipherAuthorizationService {\n}\n/**\n * {@link CipherAuthorizationService}\n */\nclass DefaultCipherAuthorizationService {\n    constructor(collectionService, organizationService) {\n        this.collectionService = collectionService;\n        this.organizationService = organizationService;\n    }\n    /**\n     *\n     * {@link CipherAuthorizationService.canDeleteCipher$}\n     */\n    canDeleteCipher$(cipher, allowedCollections, isAdminConsoleAction) {\n        if (cipher.organizationId == null) {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(true);\n        }\n        return this.organizationService.get$(cipher.organizationId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((organization) => {\n            if (isAdminConsoleAction) {\n                // If the user is an admin, they can delete an unassigned cipher\n                if (!cipher.collectionIds || cipher.collectionIds.length === 0) {\n                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)((organization === null || organization === void 0 ? void 0 : organization.canEditUnassignedCiphers) === true);\n                }\n                if (organization === null || organization === void 0 ? void 0 : organization.canEditAllCiphers) {\n                    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(true);\n                }\n            }\n            return this.collectionService\n                .decryptedCollectionViews$(cipher.collectionIds)\n                .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((allCollections) => {\n                const shouldFilter = allowedCollections === null || allowedCollections === void 0 ? void 0 : allowedCollections.some(Boolean);\n                const collections = shouldFilter\n                    ? allCollections.filter((c) => allowedCollections.includes(c.id))\n                    : allCollections;\n                return collections.some((collection) => collection.manage);\n            }));\n        }));\n    }\n    /**\n     * {@link CipherAuthorizationService.canCloneCipher$}\n     */\n    canCloneCipher$(cipher, isAdminConsoleAction) {\n        if (cipher.organizationId == null) {\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(true);\n        }\n        return this.organizationService.get$(cipher.organizationId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((organization) => {\n            var _a;\n            // Admins and custom users can always clone when in the Admin Console\n            if (isAdminConsoleAction &&\n                (organization.isAdmin || ((_a = organization.permissions) === null || _a === void 0 ? void 0 : _a.editAnyCollection))) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(true);\n            }\n            return this.collectionService\n                .decryptedCollectionViews$(cipher.collectionIds)\n                .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((allCollections) => allCollections.some((collection) => collection.manage)));\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ bufferSize: 1, refCount: false }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8968 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/cipher-authorization.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/cipher.service.ts":
/*!**************************************************************!*\
  !*** ../../libs/common/src/vault/services/cipher.service.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherService: () => (/* binding */ CipherService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! semver */ \"semver\");\n/* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(semver__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/enums/feature-flag.enum */ \"../../libs/common/src/enums/feature-flag.enum.ts\");\n/* harmony import */ var _platform_misc_sequentialize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../platform/misc/sequentialize */ \"../../libs/common/src/platform/misc/sequentialize.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _platform_models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../platform/models/domain/enc-array-buffer */ \"../../libs/common/src/platform/models/domain/enc-array-buffer.ts\");\n/* harmony import */ var _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../enums/cipher-type */ \"../../libs/common/src/vault/enums/cipher-type.ts\");\n/* harmony import */ var _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../models/data/cipher.data */ \"../../libs/common/src/vault/models/data/cipher.data.ts\");\n/* harmony import */ var _models_domain_attachment__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../models/domain/attachment */ \"../../libs/common/src/vault/models/domain/attachment.ts\");\n/* harmony import */ var _models_domain_card__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../models/domain/card */ \"../../libs/common/src/vault/models/domain/card.ts\");\n/* harmony import */ var _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../models/domain/cipher */ \"../../libs/common/src/vault/models/domain/cipher.ts\");\n/* harmony import */ var _models_domain_fido2_credential__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../models/domain/fido2-credential */ \"../../libs/common/src/vault/models/domain/fido2-credential.ts\");\n/* harmony import */ var _models_domain_field__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../models/domain/field */ \"../../libs/common/src/vault/models/domain/field.ts\");\n/* harmony import */ var _models_domain_identity__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../models/domain/identity */ \"../../libs/common/src/vault/models/domain/identity.ts\");\n/* harmony import */ var _models_domain_login__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../models/domain/login */ \"../../libs/common/src/vault/models/domain/login.ts\");\n/* harmony import */ var _models_domain_login_uri__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../models/domain/login-uri */ \"../../libs/common/src/vault/models/domain/login-uri.ts\");\n/* harmony import */ var _models_domain_password__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../models/domain/password */ \"../../libs/common/src/vault/models/domain/password.ts\");\n/* harmony import */ var _models_domain_secure_note__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../models/domain/secure-note */ \"../../libs/common/src/vault/models/domain/secure-note.ts\");\n/* harmony import */ var _models_domain_sorted_ciphers_cache__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../models/domain/sorted-ciphers-cache */ \"../../libs/common/src/vault/models/domain/sorted-ciphers-cache.ts\");\n/* harmony import */ var _models_request_cipher_bulk_delete_request__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../models/request/cipher-bulk-delete.request */ \"../../libs/common/src/vault/models/request/cipher-bulk-delete.request.ts\");\n/* harmony import */ var _models_request_cipher_bulk_move_request__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../models/request/cipher-bulk-move.request */ \"../../libs/common/src/vault/models/request/cipher-bulk-move.request.ts\");\n/* harmony import */ var _models_request_cipher_bulk_restore_request__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../models/request/cipher-bulk-restore.request */ \"../../libs/common/src/vault/models/request/cipher-bulk-restore.request.ts\");\n/* harmony import */ var _models_request_cipher_bulk_share_request__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../models/request/cipher-bulk-share.request */ \"../../libs/common/src/vault/models/request/cipher-bulk-share.request.ts\");\n/* harmony import */ var _models_request_cipher_bulk_update_collections_request__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../models/request/cipher-bulk-update-collections.request */ \"../../libs/common/src/vault/models/request/cipher-bulk-update-collections.request.ts\");\n/* harmony import */ var _models_request_cipher_collections_request__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../models/request/cipher-collections.request */ \"../../libs/common/src/vault/models/request/cipher-collections.request.ts\");\n/* harmony import */ var _models_request_cipher_create_request__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../models/request/cipher-create.request */ \"../../libs/common/src/vault/models/request/cipher-create.request.ts\");\n/* harmony import */ var _models_request_cipher_partial_request__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../models/request/cipher-partial.request */ \"../../libs/common/src/vault/models/request/cipher-partial.request.ts\");\n/* harmony import */ var _models_request_cipher_share_request__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../models/request/cipher-share.request */ \"../../libs/common/src/vault/models/request/cipher-share.request.ts\");\n/* harmony import */ var _models_request_cipher_with_id_request__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../models/request/cipher-with-id.request */ \"../../libs/common/src/vault/models/request/cipher-with-id.request.ts\");\n/* harmony import */ var _models_request_cipher_request__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../models/request/cipher.request */ \"../../libs/common/src/vault/models/request/cipher.request.ts\");\n/* harmony import */ var _models_view_password_history_view__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../models/view/password-history.view */ \"../../libs/common/src/vault/models/view/password-history.view.ts\");\n/* harmony import */ var _key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./key-state/ciphers.state */ \"../../libs/common/src/vault/services/key-state/ciphers.state.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst CIPHER_KEY_ENC_MIN_SERVER_VER = new semver__WEBPACK_IMPORTED_MODULE_1__.SemVer(\"2024.2.0\");\nclass CipherService {\n    constructor(keyService, domainSettingsService, apiService, i18nService, searchService, stateService, autofillSettingsService, encryptService, bulkEncryptService, cipherFileUploadService, configService, stateProvider, accountService) {\n        this.keyService = keyService;\n        this.domainSettingsService = domainSettingsService;\n        this.apiService = apiService;\n        this.i18nService = i18nService;\n        this.searchService = searchService;\n        this.stateService = stateService;\n        this.autofillSettingsService = autofillSettingsService;\n        this.encryptService = encryptService;\n        this.bulkEncryptService = bulkEncryptService;\n        this.cipherFileUploadService = cipherFileUploadService;\n        this.configService = configService;\n        this.stateProvider = stateProvider;\n        this.accountService = accountService;\n        this.sortedCiphersCache = new _models_domain_sorted_ciphers_cache__WEBPACK_IMPORTED_MODULE_20__.SortedCiphersCache(this.sortCiphersByLastUsed);\n        /**\n         * Observable that forces the `cipherViews$` observable to re-emit with the provided value.\n         * Used to let subscribers of `cipherViews$` know that the decrypted ciphers have been cleared for the active user.\n         * @private\n         */\n        this.forceCipherViews$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();\n        this.localDataState = this.stateProvider.getActive(_key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.LOCAL_DATA_KEY);\n        this.encryptedCiphersState = this.stateProvider.getActive(_key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.ENCRYPTED_CIPHERS);\n        this.decryptedCiphersState = this.stateProvider.getActive(_key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.DECRYPTED_CIPHERS);\n        this.addEditCipherInfoState = this.stateProvider.getActive(_key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.ADD_EDIT_CIPHER_INFO_KEY);\n        this.localData$ = this.localDataState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((data) => data !== null && data !== void 0 ? data : {}));\n        this.ciphers$ = this.encryptedCiphersState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((ciphers) => ciphers !== null && ciphers !== void 0 ? ciphers : {}));\n        // Decrypted ciphers depend on both ciphers and local data and need to be updated when either changes\n        this.cipherViews$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([this.encryptedCiphersState.state$, this.localData$]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)(([ciphers]) => ciphers != null), // Skip if ciphers haven't been loaded yor synced yet\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(() => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.merge)(this.forceCipherViews$, this.getAllDecrypted())), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ bufferSize: 1, refCount: true }));\n        this.addEditCipherInfo$ = this.addEditCipherInfoState.state$;\n    }\n    setDecryptedCipherCache(value, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // Sometimes we might prematurely decrypt the vault and that will result in no ciphers\n            // if we cache it then we may accidentally return it when it's not right, we'd rather try decryption again.\n            // We still want to set null though, that is the indicator that the cache isn't valid and we should do decryption.\n            if (value == null || value.length !== 0) {\n                yield this.setDecryptedCiphers(value, userId);\n            }\n            if (this.searchService != null) {\n                if (value == null) {\n                    yield this.searchService.clearIndex();\n                }\n                else {\n                    yield this.searchService.indexCiphers(value);\n                }\n            }\n        });\n    }\n    setDecryptedCiphers(value, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cipherViews = {};\n            value === null || value === void 0 ? void 0 : value.forEach((c) => {\n                cipherViews[c.id] = c;\n            });\n            yield this.stateProvider.setUserState(_key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.DECRYPTED_CIPHERS, cipherViews, userId);\n        });\n    }\n    clearCache(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$);\n            userId !== null && userId !== void 0 ? userId : (userId = activeUserId);\n            yield this.clearDecryptedCiphersState(userId);\n            // Force the cipherView$ observable (which always tracks the active user) to re-emit\n            if (userId == activeUserId) {\n                this.forceCipherViews$.next(null);\n            }\n        });\n    }\n    encrypt(model_1, userId_1, keyForCipherEncryption_1, keyForCipherKeyDecryption_1) {\n        return __awaiter(this, arguments, void 0, function* (model, userId, keyForCipherEncryption, keyForCipherKeyDecryption, originalCipher = null) {\n            var _a;\n            if (model.id != null) {\n                if (originalCipher == null) {\n                    originalCipher = yield this.get(model.id);\n                }\n                if (originalCipher != null) {\n                    yield this.updateModelfromExistingCipher(model, originalCipher, userId);\n                }\n                this.adjustPasswordHistoryLength(model);\n            }\n            const cipher = new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher();\n            cipher.id = model.id;\n            cipher.folderId = model.folderId;\n            cipher.favorite = model.favorite;\n            cipher.organizationId = model.organizationId;\n            cipher.type = model.type;\n            cipher.collectionIds = model.collectionIds;\n            cipher.revisionDate = model.revisionDate;\n            cipher.reprompt = model.reprompt;\n            cipher.edit = model.edit;\n            if (yield this.getCipherKeyEncryptionEnabled()) {\n                cipher.key = (_a = originalCipher === null || originalCipher === void 0 ? void 0 : originalCipher.key) !== null && _a !== void 0 ? _a : null;\n                const userOrOrgKey = yield this.getKeyForCipherKeyDecryption(cipher, userId);\n                // The keyForEncryption is only used for encrypting the cipher key, not the cipher itself, since cipher key encryption is enabled.\n                // If the caller has provided a key for cipher key encryption, use it. Otherwise, use the user or org key.\n                keyForCipherEncryption || (keyForCipherEncryption = userOrOrgKey);\n                // If the caller has provided a key for cipher key decryption, use it. Otherwise, use the user or org key.\n                keyForCipherKeyDecryption || (keyForCipherKeyDecryption = userOrOrgKey);\n                return this.encryptCipherWithCipherKey(model, cipher, keyForCipherEncryption, keyForCipherKeyDecryption);\n            }\n            else {\n                keyForCipherEncryption || (keyForCipherEncryption = yield this.getKeyForCipherKeyDecryption(cipher, userId));\n                // We want to ensure that the cipher key is null if cipher key encryption is disabled\n                // so that decryption uses the proper key.\n                cipher.key = null;\n                return this.encryptCipher(model, cipher, keyForCipherEncryption);\n            }\n        });\n    }\n    encryptAttachments(attachmentsModel, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (attachmentsModel == null || attachmentsModel.length === 0) {\n                return null;\n            }\n            const promises = [];\n            const encAttachments = [];\n            attachmentsModel.forEach((model) => __awaiter(this, void 0, void 0, function* () {\n                const attachment = new _models_domain_attachment__WEBPACK_IMPORTED_MODULE_10__.Attachment();\n                attachment.id = model.id;\n                attachment.size = model.size;\n                attachment.sizeName = model.sizeName;\n                attachment.url = model.url;\n                const promise = this.encryptObjProperty(model, attachment, {\n                    fileName: null,\n                }, key).then(() => __awaiter(this, void 0, void 0, function* () {\n                    if (model.key != null) {\n                        attachment.key = yield this.encryptService.encrypt(model.key.key, key);\n                    }\n                    encAttachments.push(attachment);\n                }));\n                promises.push(promise);\n            }));\n            yield Promise.all(promises);\n            return encAttachments;\n        });\n    }\n    encryptFields(fieldsModel, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!fieldsModel || !fieldsModel.length) {\n                return null;\n            }\n            const self = this;\n            const encFields = [];\n            yield fieldsModel.reduce((promise, field) => __awaiter(this, void 0, void 0, function* () {\n                yield promise;\n                const encField = yield self.encryptField(field, key);\n                encFields.push(encField);\n            }), Promise.resolve());\n            return encFields;\n        });\n    }\n    encryptField(fieldModel, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const field = new _models_domain_field__WEBPACK_IMPORTED_MODULE_14__.Field();\n            field.type = fieldModel.type;\n            field.linkedId = fieldModel.linkedId;\n            // normalize boolean type field values\n            if (fieldModel.type === _enums__WEBPACK_IMPORTED_MODULE_7__.FieldType.Boolean && fieldModel.value !== \"true\") {\n                fieldModel.value = \"false\";\n            }\n            yield this.encryptObjProperty(fieldModel, field, {\n                name: null,\n                value: null,\n            }, key);\n            return field;\n        });\n    }\n    encryptPasswordHistories(phModels, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!phModels || !phModels.length) {\n                return null;\n            }\n            const self = this;\n            const encPhs = [];\n            yield phModels.reduce((promise, ph) => __awaiter(this, void 0, void 0, function* () {\n                yield promise;\n                const encPh = yield self.encryptPasswordHistory(ph, key);\n                encPhs.push(encPh);\n            }), Promise.resolve());\n            return encPhs;\n        });\n    }\n    encryptPasswordHistory(phModel, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const ph = new _models_domain_password__WEBPACK_IMPORTED_MODULE_18__.Password();\n            ph.lastUsedDate = phModel.lastUsedDate;\n            yield this.encryptObjProperty(phModel, ph, {\n                password: null,\n            }, key);\n            return ph;\n        });\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            // eslint-disable-next-line\n            if (ciphers == null || !ciphers.hasOwnProperty(id)) {\n                return null;\n            }\n            const localData = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.localData$);\n            const cipherId = id;\n            return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(ciphers[cipherId], localData ? localData[cipherId] : null);\n        });\n    }\n    getAll() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const localData = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.localData$);\n            const ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            const response = [];\n            for (const id in ciphers) {\n                // eslint-disable-next-line\n                if (ciphers.hasOwnProperty(id)) {\n                    const cipherId = id;\n                    response.push(new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(ciphers[cipherId], localData ? localData[cipherId] : null));\n                }\n            }\n            return response;\n        });\n    }\n    /**\n     * Decrypts all ciphers for the active user and caches them in memory. If the ciphers have already been decrypted and\n     * cached, the cached ciphers are returned.\n     * @deprecated Use `cipherViews$` observable instead\n     */\n    getAllDecrypted() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decCiphers = yield this.getDecryptedCiphers();\n            if (decCiphers != null && decCiphers.length !== 0) {\n                yield this.reindexCiphers();\n                return yield this.getDecryptedCiphers();\n            }\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$);\n            if (activeUserId == null) {\n                return [];\n            }\n            decCiphers = yield this.decryptCiphers(yield this.getAll(), activeUserId);\n            yield this.setDecryptedCipherCache(decCiphers, activeUserId);\n            return decCiphers;\n        });\n    }\n    getDecryptedCiphers() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return Object.values(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.decryptedCiphersState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((c) => c !== null && c !== void 0 ? c : {}))));\n        });\n    }\n    decryptCiphers(ciphers, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const keys = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.keyService.cipherDecryptionKeys$(userId, true));\n            if (keys == null || (keys.userKey == null && Object.keys(keys.orgKeys).length === 0)) {\n                // return early if there are no keys to decrypt with\n                return;\n            }\n            // Group ciphers by orgId or under 'null' for the user's ciphers\n            const grouped = ciphers.reduce((agg, c) => {\n                var _a;\n                var _b;\n                (_a = agg[_b = c.organizationId]) !== null && _a !== void 0 ? _a : (agg[_b] = []);\n                agg[c.organizationId].push(c);\n                return agg;\n            }, {});\n            const decCiphers = (yield Promise.all(Object.entries(grouped).map((_a) => __awaiter(this, [_a], void 0, function* ([orgId, groupedCiphers]) {\n                var _b, _c;\n                if (yield this.configService.getFeatureFlag(_bitwarden_common_enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_2__.FeatureFlag.PM4154_BulkEncryptionService)) {\n                    return yield this.bulkEncryptService.decryptItems(groupedCiphers, (_b = keys.orgKeys[orgId]) !== null && _b !== void 0 ? _b : keys.userKey);\n                }\n                else {\n                    return yield this.encryptService.decryptItems(groupedCiphers, (_c = keys.orgKeys[orgId]) !== null && _c !== void 0 ? _c : keys.userKey);\n                }\n            }))))\n                .flat()\n                .sort(this.getLocaleSortingFunction());\n            return decCiphers;\n        });\n    }\n    reindexCiphers() {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const userId = yield this.stateService.getUserId();\n            const reindexRequired = this.searchService != null &&\n                ((_a = (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.searchService.indexedEntityId$))) !== null && _a !== void 0 ? _a : userId) !== userId;\n            if (reindexRequired) {\n                yield this.searchService.indexCiphers(yield this.getDecryptedCiphers(), userId);\n            }\n        });\n    }\n    getAllDecryptedForGrouping(groupingId_1) {\n        return __awaiter(this, arguments, void 0, function* (groupingId, folder = true) {\n            const ciphers = yield this.getAllDecrypted();\n            return ciphers.filter((cipher) => {\n                if (cipher.isDeleted) {\n                    return false;\n                }\n                if (folder && cipher.folderId === groupingId) {\n                    return true;\n                }\n                else if (!folder &&\n                    cipher.collectionIds != null &&\n                    cipher.collectionIds.indexOf(groupingId) > -1) {\n                    return true;\n                }\n                return false;\n            });\n        });\n    }\n    getAllDecryptedForUrl(url_1, includeOtherTypes_1) {\n        return __awaiter(this, arguments, void 0, function* (url, includeOtherTypes, defaultMatch = null) {\n            const ciphers = yield this.getAllDecrypted();\n            return yield this.filterCiphersForUrl(ciphers, url, includeOtherTypes, defaultMatch);\n        });\n    }\n    filterCiphersForUrl(ciphers_1, url_1, includeOtherTypes_1) {\n        return __awaiter(this, arguments, void 0, function* (ciphers, url, includeOtherTypes, defaultMatch = null) {\n            if (url == null && includeOtherTypes == null) {\n                return [];\n            }\n            const equivalentDomains = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.domainSettingsService.getUrlEquivalentDomains(url));\n            defaultMatch !== null && defaultMatch !== void 0 ? defaultMatch : (defaultMatch = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.domainSettingsService.defaultUriMatchStrategy$));\n            return ciphers.filter((cipher) => {\n                const cipherIsLogin = cipher.type === _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Login && cipher.login !== null;\n                if (cipher.deletedDate !== null) {\n                    return false;\n                }\n                if (Array.isArray(includeOtherTypes) &&\n                    includeOtherTypes.includes(cipher.type) &&\n                    !cipherIsLogin) {\n                    return true;\n                }\n                if (cipherIsLogin) {\n                    return cipher.login.matchesUri(url, equivalentDomains, defaultMatch);\n                }\n                return false;\n            });\n        });\n    }\n    getAllDecryptedCiphersOfType(type) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const ciphers = yield this.getAllDecrypted();\n            return ciphers\n                .filter((cipher) => cipher.deletedDate == null && type.includes(cipher.type))\n                .sort((a, b) => this.sortCiphersByLastUsedThenName(a, b));\n        });\n    }\n    getAllFromApiForOrganization(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.apiService.getCiphersOrganization(organizationId);\n            return yield this.decryptOrganizationCiphersResponse(response, organizationId);\n        });\n    }\n    getManyFromApiForOrganization(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const response = yield this.apiService.send(\"GET\", \"/ciphers/organization-details/assigned?organizationId=\" + organizationId, null, true, true);\n            return this.decryptOrganizationCiphersResponse(response, organizationId);\n        });\n    }\n    decryptOrganizationCiphersResponse(response, organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if ((response === null || response === void 0 ? void 0 : response.data) == null || response.data.length < 1) {\n                return [];\n            }\n            const ciphers = response.data.map((cr) => new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(cr)));\n            const key = yield this.keyService.getOrgKey(organizationId);\n            let decCiphers = [];\n            if (yield this.configService.getFeatureFlag(_bitwarden_common_enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_2__.FeatureFlag.PM4154_BulkEncryptionService)) {\n                decCiphers = yield this.bulkEncryptService.decryptItems(ciphers, key);\n            }\n            else {\n                decCiphers = yield this.encryptService.decryptItems(ciphers, key);\n            }\n            decCiphers.sort(this.getLocaleSortingFunction());\n            return decCiphers;\n        });\n    }\n    getLastUsedForUrl(url_1) {\n        return __awaiter(this, arguments, void 0, function* (url, autofillOnPageLoad = false) {\n            return this.getCipherForUrl(url, true, false, autofillOnPageLoad);\n        });\n    }\n    getLastLaunchedForUrl(url_1) {\n        return __awaiter(this, arguments, void 0, function* (url, autofillOnPageLoad = false) {\n            return this.getCipherForUrl(url, false, true, autofillOnPageLoad);\n        });\n    }\n    getNextCipherForUrl(url) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.getCipherForUrl(url, false, false, false);\n        });\n    }\n    getNextCardCipher() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cacheKey = \"cardCiphers\";\n            if (!this.sortedCiphersCache.isCached(cacheKey)) {\n                const ciphers = yield this.getAllDecryptedCiphersOfType([_enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Card]);\n                if (!(ciphers === null || ciphers === void 0 ? void 0 : ciphers.length)) {\n                    return null;\n                }\n                this.sortedCiphersCache.addCiphers(cacheKey, ciphers);\n            }\n            return this.sortedCiphersCache.getNext(cacheKey);\n        });\n    }\n    getNextIdentityCipher() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cacheKey = \"identityCiphers\";\n            if (!this.sortedCiphersCache.isCached(cacheKey)) {\n                const ciphers = yield this.getAllDecryptedCiphersOfType([_enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Identity]);\n                if (!(ciphers === null || ciphers === void 0 ? void 0 : ciphers.length)) {\n                    return null;\n                }\n                this.sortedCiphersCache.addCiphers(cacheKey, ciphers);\n            }\n            return this.sortedCiphersCache.getNext(cacheKey);\n        });\n    }\n    updateLastUsedIndexForUrl(url) {\n        this.sortedCiphersCache.updateLastUsedIndex(url);\n    }\n    updateLastUsedDate(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$);\n            let ciphersLocalData = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.localData$);\n            if (!ciphersLocalData) {\n                ciphersLocalData = {};\n            }\n            const cipherId = id;\n            if (ciphersLocalData[cipherId]) {\n                ciphersLocalData[cipherId].lastUsedDate = new Date().getTime();\n            }\n            else {\n                ciphersLocalData[cipherId] = {\n                    lastUsedDate: new Date().getTime(),\n                };\n            }\n            yield this.localDataState.update(() => ciphersLocalData);\n            const decryptedCipherCache = yield this.getDecryptedCiphers();\n            if (!decryptedCipherCache) {\n                return;\n            }\n            for (let i = 0; i < decryptedCipherCache.length; i++) {\n                const cached = decryptedCipherCache[i];\n                if (cached.id === id) {\n                    cached.localData = ciphersLocalData[id];\n                    break;\n                }\n            }\n            yield this.setDecryptedCiphers(decryptedCipherCache, userId);\n        });\n    }\n    updateLastLaunchedDate(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$);\n            let ciphersLocalData = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.localData$);\n            if (!ciphersLocalData) {\n                ciphersLocalData = {};\n            }\n            const currentTime = new Date().getTime();\n            ciphersLocalData[id] = {\n                lastLaunched: currentTime,\n                lastUsedDate: currentTime,\n            };\n            yield this.localDataState.update(() => ciphersLocalData);\n            const decryptedCipherCache = yield this.getDecryptedCiphers();\n            if (!decryptedCipherCache) {\n                return;\n            }\n            for (let i = 0; i < decryptedCipherCache.length; i++) {\n                const cached = decryptedCipherCache[i];\n                if (cached.id === id) {\n                    cached.localData = ciphersLocalData[id];\n                    break;\n                }\n            }\n            yield this.setDecryptedCiphers(decryptedCipherCache, userId);\n        });\n    }\n    saveNeverDomain(domain) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (domain == null) {\n                return;\n            }\n            let domains = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.domainSettingsService.neverDomains$);\n            if (!domains) {\n                domains = {};\n            }\n            domains[domain] = null;\n            yield this.domainSettingsService.setNeverDomains(domains);\n        });\n    }\n    createWithServer(cipher, orgAdmin) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let response;\n            if (orgAdmin && cipher.organizationId != null) {\n                const request = new _models_request_cipher_create_request__WEBPACK_IMPORTED_MODULE_27__.CipherCreateRequest(cipher);\n                response = yield this.apiService.postCipherAdmin(request);\n                const data = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response, cipher.collectionIds);\n                return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(data);\n            }\n            else if (cipher.collectionIds != null) {\n                const request = new _models_request_cipher_create_request__WEBPACK_IMPORTED_MODULE_27__.CipherCreateRequest(cipher);\n                response = yield this.apiService.postCipherCreate(request);\n            }\n            else {\n                const request = new _models_request_cipher_request__WEBPACK_IMPORTED_MODULE_31__.CipherRequest(cipher);\n                response = yield this.apiService.postCipher(request);\n            }\n            cipher.id = response.id;\n            const data = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response, cipher.collectionIds);\n            const updated = yield this.upsert(data);\n            // No local data for new ciphers\n            return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(updated[cipher.id]);\n        });\n    }\n    updateWithServer(cipher, orgAdmin, isNotClone) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let response;\n            if (orgAdmin && isNotClone) {\n                const request = new _models_request_cipher_request__WEBPACK_IMPORTED_MODULE_31__.CipherRequest(cipher);\n                response = yield this.apiService.putCipherAdmin(cipher.id, request);\n                const data = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response, cipher.collectionIds);\n                return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(data, cipher.localData);\n            }\n            else if (cipher.edit) {\n                const request = new _models_request_cipher_request__WEBPACK_IMPORTED_MODULE_31__.CipherRequest(cipher);\n                response = yield this.apiService.putCipher(cipher.id, request);\n            }\n            else {\n                const request = new _models_request_cipher_partial_request__WEBPACK_IMPORTED_MODULE_28__.CipherPartialRequest(cipher);\n                response = yield this.apiService.putPartialCipher(cipher.id, request);\n            }\n            const data = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response, cipher.collectionIds);\n            const updated = yield this.upsert(data);\n            // updating with server does not change local data\n            return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(updated[cipher.id], cipher.localData);\n        });\n    }\n    shareWithServer(cipher, organizationId, collectionIds, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const attachmentPromises = [];\n            if (cipher.attachments != null) {\n                cipher.attachments.forEach((attachment) => {\n                    if (attachment.key == null) {\n                        attachmentPromises.push(this.shareAttachmentWithServer(attachment, cipher.id, organizationId));\n                    }\n                });\n            }\n            yield Promise.all(attachmentPromises);\n            cipher.organizationId = organizationId;\n            cipher.collectionIds = collectionIds;\n            const encCipher = yield this.encryptSharedCipher(cipher, userId);\n            const request = new _models_request_cipher_share_request__WEBPACK_IMPORTED_MODULE_29__.CipherShareRequest(encCipher);\n            const response = yield this.apiService.putShareCipher(cipher.id, request);\n            const data = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response, collectionIds);\n            yield this.upsert(data);\n        });\n    }\n    shareManyWithServer(ciphers, organizationId, collectionIds, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const promises = [];\n            const encCiphers = [];\n            for (const cipher of ciphers) {\n                cipher.organizationId = organizationId;\n                cipher.collectionIds = collectionIds;\n                promises.push(this.encryptSharedCipher(cipher, userId).then((c) => {\n                    encCiphers.push(c);\n                }));\n            }\n            yield Promise.all(promises);\n            const request = new _models_request_cipher_bulk_share_request__WEBPACK_IMPORTED_MODULE_24__.CipherBulkShareRequest(encCiphers, collectionIds);\n            try {\n                yield this.apiService.putShareCiphers(request);\n            }\n            catch (e) {\n                for (const cipher of ciphers) {\n                    cipher.organizationId = null;\n                    cipher.collectionIds = null;\n                }\n                throw e;\n            }\n            yield this.upsert(encCiphers.map((c) => c.toCipherData()));\n        });\n    }\n    saveAttachmentWithServer(cipher, unencryptedFile, userId, admin = false) {\n        return new Promise((resolve, reject) => {\n            const reader = new FileReader();\n            reader.readAsArrayBuffer(unencryptedFile);\n            reader.onload = (evt) => __awaiter(this, void 0, void 0, function* () {\n                try {\n                    const cData = yield this.saveAttachmentRawWithServer(cipher, unencryptedFile.name, evt.target.result, userId, admin);\n                    resolve(cData);\n                }\n                catch (e) {\n                    reject(e);\n                }\n            });\n            reader.onerror = () => {\n                reject(\"Error reading file.\");\n            };\n        });\n    }\n    saveAttachmentRawWithServer(cipher_1, filename_1, data_1, userId_1) {\n        return __awaiter(this, arguments, void 0, function* (cipher, filename, data, userId, admin = false) {\n            const encKey = yield this.getKeyForCipherKeyDecryption(cipher, userId);\n            const cipherKeyEncryptionEnabled = yield this.getCipherKeyEncryptionEnabled();\n            const cipherEncKey = cipherKeyEncryptionEnabled && cipher.key != null\n                ? new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_6__.SymmetricCryptoKey(yield this.encryptService.decryptToBytes(cipher.key, encKey))\n                : encKey;\n            //if cipher key encryption is disabled but the item has an individual key,\n            //then we rollback to using the user key as the main key of encryption of the item\n            //in order to keep item and it's attachments with the same encryption level\n            if (cipher.key != null && !cipherKeyEncryptionEnabled) {\n                const model = yield cipher.decrypt(yield this.getKeyForCipherKeyDecryption(cipher, userId));\n                cipher = yield this.encrypt(model, userId);\n                yield this.updateWithServer(cipher);\n            }\n            const encFileName = yield this.encryptService.encrypt(filename, cipherEncKey);\n            const dataEncKey = yield this.keyService.makeDataEncKey(cipherEncKey);\n            const encData = yield this.encryptService.encryptToBytes(new Uint8Array(data), dataEncKey[0]);\n            const response = yield this.cipherFileUploadService.upload(cipher, encFileName, encData, admin, dataEncKey);\n            const cData = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response, cipher.collectionIds);\n            if (!admin) {\n                yield this.upsert(cData);\n            }\n            return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(cData);\n        });\n    }\n    saveCollectionsWithServer(cipher) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _models_request_cipher_collections_request__WEBPACK_IMPORTED_MODULE_26__.CipherCollectionsRequest(cipher.collectionIds);\n            const response = yield this.apiService.putCipherCollections(cipher.id, request);\n            // The response will now check for an unavailable value. This value determines whether\n            // the user still has Can Manage access to the item after updating.\n            if (response.unavailable) {\n                yield this.delete(cipher.id);\n                return;\n            }\n            const data = new _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData(response.cipher);\n            const updated = yield this.upsert(data);\n            return new _models_domain_cipher__WEBPACK_IMPORTED_MODULE_12__.Cipher(updated[cipher.id], cipher.localData);\n        });\n    }\n    saveCollectionsWithServerAdmin(cipher) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _models_request_cipher_collections_request__WEBPACK_IMPORTED_MODULE_26__.CipherCollectionsRequest(cipher.collectionIds);\n            yield this.apiService.putCipherCollectionsAdmin(cipher.id, request);\n        });\n    }\n    /**\n     * Bulk update collections for many ciphers with the server\n     * @param orgId\n     * @param cipherIds\n     * @param collectionIds\n     * @param removeCollections - If true, the collectionIds will be removed from the ciphers, otherwise they will be added\n     */\n    bulkUpdateCollectionsWithServer(orgId_1, cipherIds_1, collectionIds_1) {\n        return __awaiter(this, arguments, void 0, function* (orgId, cipherIds, collectionIds, removeCollections = false) {\n            var _a, _b;\n            const request = new _models_request_cipher_bulk_update_collections_request__WEBPACK_IMPORTED_MODULE_25__.CipherBulkUpdateCollectionsRequest(orgId, cipherIds, collectionIds, removeCollections);\n            yield this.apiService.send(\"POST\", \"/ciphers/bulk-collections\", request, true, false);\n            // Update the local state\n            const ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            for (const id of cipherIds) {\n                const cipher = ciphers[id];\n                if (cipher) {\n                    if (removeCollections) {\n                        cipher.collectionIds = (_a = cipher.collectionIds) === null || _a === void 0 ? void 0 : _a.filter((cid) => !collectionIds.includes(cid));\n                    }\n                    else {\n                        // Append to the collectionIds if it's not already there\n                        cipher.collectionIds = [...new Set([...((_b = cipher.collectionIds) !== null && _b !== void 0 ? _b : []), ...collectionIds])];\n                    }\n                }\n            }\n            yield this.clearCache();\n            yield this.encryptedCiphersState.update(() => ciphers);\n        });\n    }\n    upsert(cipher) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const ciphers = cipher instanceof _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_9__.CipherData ? [cipher] : cipher;\n            return yield this.updateEncryptedCipherState((current) => {\n                ciphers.forEach((c) => (current[c.id] = c));\n                return current;\n            });\n        });\n    }\n    replace(ciphers, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.updateEncryptedCipherState(() => ciphers, userId);\n        });\n    }\n    /**\n     * Updates ciphers for the currently active user. Inactive users can only clear all ciphers, for now.\n     * @param update update callback for encrypted cipher data\n     * @returns\n     */\n    updateEncryptedCipherState(update_1) {\n        return __awaiter(this, arguments, void 0, function* (update, userId = null) {\n            userId || (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$));\n            yield this.clearDecryptedCiphersState(userId);\n            const updatedCiphers = yield this.stateProvider\n                .getUser(userId, _key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.ENCRYPTED_CIPHERS)\n                .update((current) => {\n                const result = update(current !== null && current !== void 0 ? current : {});\n                return result;\n            });\n            return updatedCiphers;\n        });\n    }\n    clear(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.activeUserId$));\n            yield this.clearEncryptedCiphersState(userId);\n            yield this.clearCache(userId);\n        });\n    }\n    moveManyWithServer(ids, folderId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.putMoveCiphers(new _models_request_cipher_bulk_move_request__WEBPACK_IMPORTED_MODULE_22__.CipherBulkMoveRequest(ids, folderId));\n            let ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            if (ciphers == null) {\n                ciphers = {};\n            }\n            ids.forEach((id) => {\n                // eslint-disable-next-line\n                if (ciphers.hasOwnProperty(id)) {\n                    ciphers[id].folderId = folderId;\n                }\n            });\n            yield this.clearCache();\n            yield this.encryptedCiphersState.update(() => ciphers);\n        });\n    }\n    delete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            if (ciphers == null) {\n                return;\n            }\n            if (typeof id === \"string\") {\n                const cipherId = id;\n                if (ciphers[cipherId] == null) {\n                    return;\n                }\n                delete ciphers[cipherId];\n            }\n            else {\n                id.forEach((i) => {\n                    delete ciphers[i];\n                });\n            }\n            yield this.clearCache();\n            yield this.encryptedCiphersState.update(() => ciphers);\n        });\n    }\n    deleteWithServer(id_1) {\n        return __awaiter(this, arguments, void 0, function* (id, asAdmin = false) {\n            if (asAdmin) {\n                yield this.apiService.deleteCipherAdmin(id);\n            }\n            else {\n                yield this.apiService.deleteCipher(id);\n            }\n            yield this.delete(id);\n        });\n    }\n    deleteManyWithServer(ids_1) {\n        return __awaiter(this, arguments, void 0, function* (ids, asAdmin = false) {\n            const request = new _models_request_cipher_bulk_delete_request__WEBPACK_IMPORTED_MODULE_21__.CipherBulkDeleteRequest(ids);\n            if (asAdmin) {\n                yield this.apiService.deleteManyCiphersAdmin(request);\n            }\n            else {\n                yield this.apiService.deleteManyCiphers(request);\n            }\n            yield this.delete(ids);\n        });\n    }\n    deleteAttachment(id, attachmentId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            const cipherId = id;\n            // eslint-disable-next-line\n            if (ciphers == null || !ciphers.hasOwnProperty(id) || ciphers[cipherId].attachments == null) {\n                return;\n            }\n            for (let i = 0; i < ciphers[cipherId].attachments.length; i++) {\n                if (ciphers[cipherId].attachments[i].id === attachmentId) {\n                    ciphers[cipherId].attachments.splice(i, 1);\n                }\n            }\n            yield this.clearCache();\n            yield this.encryptedCiphersState.update(() => {\n                if (ciphers == null) {\n                    ciphers = {};\n                }\n                return ciphers;\n            });\n        });\n    }\n    deleteAttachmentWithServer(id, attachmentId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            try {\n                yield this.apiService.deleteCipherAttachment(id, attachmentId);\n            }\n            catch (e) {\n                return Promise.reject(e.getSingleMessage());\n            }\n            yield this.deleteAttachment(id, attachmentId);\n        });\n    }\n    sortCiphersByLastUsed(a, b) {\n        const aLastUsed = a.localData && a.localData.lastUsedDate ? a.localData.lastUsedDate : null;\n        const bLastUsed = b.localData && b.localData.lastUsedDate ? b.localData.lastUsedDate : null;\n        const bothNotNull = aLastUsed != null && bLastUsed != null;\n        if (bothNotNull && aLastUsed < bLastUsed) {\n            return 1;\n        }\n        if (aLastUsed != null && bLastUsed == null) {\n            return -1;\n        }\n        if (bothNotNull && aLastUsed > bLastUsed) {\n            return -1;\n        }\n        if (bLastUsed != null && aLastUsed == null) {\n            return 1;\n        }\n        return 0;\n    }\n    sortCiphersByLastUsedThenName(a, b) {\n        const result = this.sortCiphersByLastUsed(a, b);\n        if (result !== 0) {\n            return result;\n        }\n        return this.getLocaleSortingFunction()(a, b);\n    }\n    getLocaleSortingFunction() {\n        return (a, b) => {\n            let aName = a.name;\n            let bName = b.name;\n            if (aName == null && bName != null) {\n                return -1;\n            }\n            if (aName != null && bName == null) {\n                return 1;\n            }\n            if (aName == null && bName == null) {\n                return 0;\n            }\n            const result = this.i18nService.collator\n                ? this.i18nService.collator.compare(aName, bName)\n                : aName.localeCompare(bName);\n            if (result !== 0 || a.type !== _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Login || b.type !== _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Login) {\n                return result;\n            }\n            if (a.login.username != null) {\n                aName += a.login.username;\n            }\n            if (b.login.username != null) {\n                bName += b.login.username;\n            }\n            return this.i18nService.collator\n                ? this.i18nService.collator.compare(aName, bName)\n                : aName.localeCompare(bName);\n        };\n    }\n    softDelete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            if (ciphers == null) {\n                return;\n            }\n            const setDeletedDate = (cipherId) => {\n                if (ciphers[cipherId] == null) {\n                    return;\n                }\n                ciphers[cipherId].deletedDate = new Date().toISOString();\n            };\n            if (typeof id === \"string\") {\n                setDeletedDate(id);\n            }\n            else {\n                id.forEach(setDeletedDate);\n            }\n            yield this.clearCache();\n            yield this.encryptedCiphersState.update(() => {\n                if (ciphers == null) {\n                    ciphers = {};\n                }\n                return ciphers;\n            });\n        });\n    }\n    softDeleteWithServer(id_1) {\n        return __awaiter(this, arguments, void 0, function* (id, asAdmin = false) {\n            if (asAdmin) {\n                yield this.apiService.putDeleteCipherAdmin(id);\n            }\n            else {\n                yield this.apiService.putDeleteCipher(id);\n            }\n            yield this.softDelete(id);\n        });\n    }\n    softDeleteManyWithServer(ids_1) {\n        return __awaiter(this, arguments, void 0, function* (ids, asAdmin = false) {\n            const request = new _models_request_cipher_bulk_delete_request__WEBPACK_IMPORTED_MODULE_21__.CipherBulkDeleteRequest(ids);\n            if (asAdmin) {\n                yield this.apiService.putDeleteManyCiphersAdmin(request);\n            }\n            else {\n                yield this.apiService.putDeleteManyCiphers(request);\n            }\n            yield this.softDelete(ids);\n        });\n    }\n    restore(cipher) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.ciphers$);\n            if (ciphers == null) {\n                return;\n            }\n            const clearDeletedDate = (c) => {\n                const cipherId = c.id;\n                if (ciphers[cipherId] == null) {\n                    return;\n                }\n                ciphers[cipherId].deletedDate = null;\n                ciphers[cipherId].revisionDate = c.revisionDate;\n            };\n            if (cipher.constructor.name === Array.name) {\n                cipher.forEach(clearDeletedDate);\n            }\n            else {\n                clearDeletedDate(cipher);\n            }\n            yield this.clearCache();\n            yield this.encryptedCiphersState.update(() => {\n                if (ciphers == null) {\n                    ciphers = {};\n                }\n                return ciphers;\n            });\n        });\n    }\n    restoreWithServer(id_1) {\n        return __awaiter(this, arguments, void 0, function* (id, asAdmin = false) {\n            let response;\n            if (asAdmin) {\n                response = yield this.apiService.putRestoreCipherAdmin(id);\n            }\n            else {\n                response = yield this.apiService.putRestoreCipher(id);\n            }\n            yield this.restore({ id: id, revisionDate: response.revisionDate });\n        });\n    }\n    /**\n     * No longer using an asAdmin Param. Org Vault bulkRestore will assess if an item is unassigned or editable\n     * The Org Vault will pass those ids an array as well as the orgId when calling bulkRestore\n     */\n    restoreManyWithServer(ids_1) {\n        return __awaiter(this, arguments, void 0, function* (ids, orgId = null) {\n            let response;\n            if (orgId) {\n                const request = new _models_request_cipher_bulk_restore_request__WEBPACK_IMPORTED_MODULE_23__.CipherBulkRestoreRequest(ids, orgId);\n                response = yield this.apiService.putRestoreManyCiphersAdmin(request);\n            }\n            else {\n                const request = new _models_request_cipher_bulk_restore_request__WEBPACK_IMPORTED_MODULE_23__.CipherBulkRestoreRequest(ids);\n                response = yield this.apiService.putRestoreManyCiphers(request);\n            }\n            const restores = [];\n            for (const cipher of response.data) {\n                restores.push({ id: cipher.id, revisionDate: cipher.revisionDate });\n            }\n            yield this.restore(restores);\n        });\n    }\n    getKeyForCipherKeyDecryption(cipher, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return ((yield this.keyService.getOrgKey(cipher.organizationId)) ||\n                (yield this.keyService.getUserKeyWithLegacySupport(userId)));\n        });\n    }\n    setAddEditCipherInfo(value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.addEditCipherInfoState.update(() => value, {\n                shouldUpdate: (current) => !(current == null && value == null),\n            });\n        });\n    }\n    getRotatedData(originalUserKey, newUserKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (originalUserKey == null) {\n                throw new Error(\"Original user key is required to rotate ciphers\");\n            }\n            if (newUserKey == null) {\n                throw new Error(\"New user key is required to rotate ciphers\");\n            }\n            let encryptedCiphers = [];\n            const ciphers = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.cipherViews$);\n            if (!ciphers) {\n                return encryptedCiphers;\n            }\n            const userCiphers = ciphers.filter((c) => c.organizationId == null);\n            if (userCiphers.length === 0) {\n                return encryptedCiphers;\n            }\n            encryptedCiphers = yield Promise.all(userCiphers.map((cipher) => __awaiter(this, void 0, void 0, function* () {\n                const encryptedCipher = yield this.encrypt(cipher, userId, newUserKey, originalUserKey);\n                return new _models_request_cipher_with_id_request__WEBPACK_IMPORTED_MODULE_30__.CipherWithIdRequest(encryptedCipher);\n            })));\n            return encryptedCiphers;\n        });\n    }\n    // Helpers\n    // In the case of a cipher that is being shared with an organization, we want to decrypt the\n    // cipher key with the user's key and then re-encrypt it with the organization's key.\n    encryptSharedCipher(model, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const keyForCipherKeyDecryption = yield this.keyService.getUserKeyWithLegacySupport(userId);\n            return yield this.encrypt(model, userId, null, keyForCipherKeyDecryption);\n        });\n    }\n    updateModelfromExistingCipher(model, originalCipher, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const existingCipher = yield originalCipher.decrypt(yield this.getKeyForCipherKeyDecryption(originalCipher, userId));\n            model.passwordHistory = existingCipher.passwordHistory || [];\n            if (model.type === _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Login && existingCipher.type === _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Login) {\n                if (existingCipher.login.password != null &&\n                    existingCipher.login.password !== \"\" &&\n                    existingCipher.login.password !== model.login.password) {\n                    const ph = new _models_view_password_history_view__WEBPACK_IMPORTED_MODULE_32__.PasswordHistoryView();\n                    ph.password = existingCipher.login.password;\n                    ph.lastUsedDate = model.login.passwordRevisionDate = new Date();\n                    model.passwordHistory.splice(0, 0, ph);\n                }\n                else {\n                    model.login.passwordRevisionDate = existingCipher.login.passwordRevisionDate;\n                }\n            }\n            if (existingCipher.hasFields) {\n                const existingHiddenFields = existingCipher.fields.filter((f) => f.type === _enums__WEBPACK_IMPORTED_MODULE_7__.FieldType.Hidden &&\n                    f.name != null &&\n                    f.name !== \"\" &&\n                    f.value != null &&\n                    f.value !== \"\");\n                const hiddenFields = model.fields == null\n                    ? []\n                    : model.fields.filter((f) => f.type === _enums__WEBPACK_IMPORTED_MODULE_7__.FieldType.Hidden && f.name != null && f.name !== \"\");\n                existingHiddenFields.forEach((ef) => {\n                    const matchedField = hiddenFields.find((f) => f.name === ef.name);\n                    if (matchedField == null || matchedField.value !== ef.value) {\n                        const ph = new _models_view_password_history_view__WEBPACK_IMPORTED_MODULE_32__.PasswordHistoryView();\n                        ph.password = ef.name + \": \" + ef.value;\n                        ph.lastUsedDate = new Date();\n                        model.passwordHistory.splice(0, 0, ph);\n                    }\n                });\n            }\n        });\n    }\n    adjustPasswordHistoryLength(model) {\n        if (model.passwordHistory != null && model.passwordHistory.length === 0) {\n            model.passwordHistory = null;\n        }\n        else if (model.passwordHistory != null && model.passwordHistory.length > 5) {\n            // only save last 5 history\n            model.passwordHistory = model.passwordHistory.slice(0, 5);\n        }\n    }\n    shareAttachmentWithServer(attachmentView, cipherId, organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const attachmentResponse = yield this.apiService.nativeFetch(new Request(attachmentView.url, { cache: \"no-store\" }));\n            if (attachmentResponse.status !== 200) {\n                throw Error(\"Failed to download attachment: \" + attachmentResponse.status.toString());\n            }\n            const encBuf = yield _platform_models_domain_enc_array_buffer__WEBPACK_IMPORTED_MODULE_5__.EncArrayBuffer.fromResponse(attachmentResponse);\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            const userKey = yield this.keyService.getUserKeyWithLegacySupport(activeUserId.id);\n            const decBuf = yield this.encryptService.decryptToBytes(encBuf, userKey);\n            let encKey;\n            encKey = yield this.keyService.getOrgKey(organizationId);\n            encKey || (encKey = (yield this.keyService.getUserKeyWithLegacySupport()));\n            const dataEncKey = yield this.keyService.makeDataEncKey(encKey);\n            const encFileName = yield this.encryptService.encrypt(attachmentView.fileName, encKey);\n            const encData = yield this.encryptService.encryptToBytes(new Uint8Array(decBuf), dataEncKey[0]);\n            const fd = new FormData();\n            try {\n                const blob = new Blob([encData.buffer], { type: \"application/octet-stream\" });\n                fd.append(\"key\", dataEncKey[1].encryptedString);\n                fd.append(\"data\", blob, encFileName.encryptedString);\n            }\n            catch (e) {\n                if (_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isNode && !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isBrowser) {\n                    fd.append(\"key\", dataEncKey[1].encryptedString);\n                    fd.append(\"data\", Buffer.from(encData.buffer), {\n                        filepath: encFileName.encryptedString,\n                        contentType: \"application/octet-stream\",\n                    });\n                }\n                else {\n                    throw e;\n                }\n            }\n            try {\n                yield this.apiService.postShareCipherAttachment(cipherId, attachmentView.id, fd, organizationId);\n            }\n            catch (e) {\n                throw new Error(e.getSingleMessage());\n            }\n        });\n    }\n    encryptObjProperty(model, obj, map, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const promises = [];\n            const self = this;\n            for (const prop in map) {\n                // eslint-disable-next-line\n                if (!map.hasOwnProperty(prop)) {\n                    continue;\n                }\n                (function (theProp, theObj) {\n                    const p = Promise.resolve()\n                        .then(() => {\n                        const modelProp = model[map[theProp] || theProp];\n                        if (modelProp && modelProp !== \"\") {\n                            return self.encryptService.encrypt(modelProp, key);\n                        }\n                        return null;\n                    })\n                        .then((val) => {\n                        theObj[theProp] = val;\n                    });\n                    promises.push(p);\n                })(prop, obj);\n            }\n            yield Promise.all(promises);\n        });\n    }\n    encryptCipherData(cipher, model, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            switch (cipher.type) {\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Login:\n                    cipher.login = new _models_domain_login__WEBPACK_IMPORTED_MODULE_16__.Login();\n                    cipher.login.passwordRevisionDate = model.login.passwordRevisionDate;\n                    cipher.login.autofillOnPageLoad = model.login.autofillOnPageLoad;\n                    yield this.encryptObjProperty(model.login, cipher.login, {\n                        username: null,\n                        password: null,\n                        totp: null,\n                    }, key);\n                    if (model.login.uris != null) {\n                        cipher.login.uris = [];\n                        model.login.uris = model.login.uris.filter((u) => u.uri != null && u.uri !== \"\");\n                        for (let i = 0; i < model.login.uris.length; i++) {\n                            const loginUri = new _models_domain_login_uri__WEBPACK_IMPORTED_MODULE_17__.LoginUri();\n                            loginUri.match = model.login.uris[i].match;\n                            yield this.encryptObjProperty(model.login.uris[i], loginUri, {\n                                uri: null,\n                            }, key);\n                            const uriHash = yield this.encryptService.hash(model.login.uris[i].uri, \"sha256\");\n                            loginUri.uriChecksum = yield this.encryptService.encrypt(uriHash, key);\n                            cipher.login.uris.push(loginUri);\n                        }\n                    }\n                    if (model.login.fido2Credentials != null) {\n                        cipher.login.fido2Credentials = yield Promise.all(model.login.fido2Credentials.map((viewKey) => __awaiter(this, void 0, void 0, function* () {\n                            const domainKey = new _models_domain_fido2_credential__WEBPACK_IMPORTED_MODULE_13__.Fido2Credential();\n                            yield this.encryptObjProperty(viewKey, domainKey, {\n                                credentialId: null,\n                                keyType: null,\n                                keyAlgorithm: null,\n                                keyCurve: null,\n                                keyValue: null,\n                                rpId: null,\n                                rpName: null,\n                                userHandle: null,\n                                userName: null,\n                                userDisplayName: null,\n                                origin: null,\n                            }, key);\n                            domainKey.counter = yield this.encryptService.encrypt(String(viewKey.counter), key);\n                            domainKey.discoverable = yield this.encryptService.encrypt(String(viewKey.discoverable), key);\n                            domainKey.creationDate = viewKey.creationDate;\n                            return domainKey;\n                        })));\n                    }\n                    return;\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.SecureNote:\n                    cipher.secureNote = new _models_domain_secure_note__WEBPACK_IMPORTED_MODULE_19__.SecureNote();\n                    cipher.secureNote.type = model.secureNote.type;\n                    return;\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Card:\n                    cipher.card = new _models_domain_card__WEBPACK_IMPORTED_MODULE_11__.Card();\n                    yield this.encryptObjProperty(model.card, cipher.card, {\n                        cardholderName: null,\n                        brand: null,\n                        number: null,\n                        expMonth: null,\n                        expYear: null,\n                        code: null,\n                    }, key);\n                    return;\n                case _enums_cipher_type__WEBPACK_IMPORTED_MODULE_8__.CipherType.Identity:\n                    cipher.identity = new _models_domain_identity__WEBPACK_IMPORTED_MODULE_15__.Identity();\n                    yield this.encryptObjProperty(model.identity, cipher.identity, {\n                        title: null,\n                        firstName: null,\n                        middleName: null,\n                        lastName: null,\n                        address1: null,\n                        address2: null,\n                        address3: null,\n                        city: null,\n                        state: null,\n                        postalCode: null,\n                        country: null,\n                        company: null,\n                        email: null,\n                        phone: null,\n                        ssn: null,\n                        username: null,\n                        passportNumber: null,\n                        licenseNumber: null,\n                    }, key);\n                    return;\n                default:\n                    throw new Error(\"Unknown cipher type.\");\n            }\n        });\n    }\n    getAutofillOnPageLoadDefault() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.autofillSettingsService.autofillOnPageLoadDefault$);\n        });\n    }\n    getCipherForUrl(url, lastUsed, lastLaunched, autofillOnPageLoad) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const cacheKey = autofillOnPageLoad ? \"autofillOnPageLoad-\" + url : url;\n            if (!this.sortedCiphersCache.isCached(cacheKey)) {\n                let ciphers = yield this.getAllDecryptedForUrl(url);\n                if (!ciphers) {\n                    return null;\n                }\n                if (autofillOnPageLoad) {\n                    const autofillOnPageLoadDefault = yield this.getAutofillOnPageLoadDefault();\n                    ciphers = ciphers.filter((cipher) => cipher.login.autofillOnPageLoad ||\n                        (cipher.login.autofillOnPageLoad == null && autofillOnPageLoadDefault !== false));\n                    if (ciphers.length === 0) {\n                        return null;\n                    }\n                }\n                this.sortedCiphersCache.addCiphers(cacheKey, ciphers);\n            }\n            if (lastLaunched) {\n                return this.sortedCiphersCache.getLastLaunched(cacheKey);\n            }\n            else if (lastUsed) {\n                return this.sortedCiphersCache.getLastUsed(cacheKey);\n            }\n            else {\n                return this.sortedCiphersCache.getNext(cacheKey);\n            }\n        });\n    }\n    clearEncryptedCiphersState(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.setUserState(_key_state_ciphers_state__WEBPACK_IMPORTED_MODULE_33__.ENCRYPTED_CIPHERS, {}, userId);\n        });\n    }\n    clearDecryptedCiphersState(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.setDecryptedCiphers(null, userId);\n            this.clearSortedCiphers();\n        });\n    }\n    clearSortedCiphers() {\n        this.sortedCiphersCache.clear();\n    }\n    /**\n     * Encrypts a cipher object.\n     * @param model The cipher view model.\n     * @param cipher The cipher object.\n     * @param key The encryption key to encrypt with. This can be the org key, user key or cipher key, but must never be null\n     */\n    encryptCipher(model, cipher, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"Key to encrypt cipher must not be null. Use the org key, user key or cipher key.\");\n            }\n            yield Promise.all([\n                this.encryptObjProperty(model, cipher, {\n                    name: null,\n                    notes: null,\n                }, key),\n                this.encryptCipherData(cipher, model, key),\n                this.encryptFields(model.fields, key).then((fields) => {\n                    cipher.fields = fields;\n                }),\n                this.encryptPasswordHistories(model.passwordHistory, key).then((ph) => {\n                    cipher.passwordHistory = ph;\n                }),\n                this.encryptAttachments(model.attachments, key).then((attachments) => {\n                    cipher.attachments = attachments;\n                }),\n            ]);\n            return cipher;\n        });\n    }\n    encryptCipherWithCipherKey(model, cipher, keyForCipherKeyEncryption, keyForCipherKeyDecryption) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // First, we get the key for cipher key encryption, in its decrypted form\n            let decryptedCipherKey;\n            if (cipher.key == null) {\n                decryptedCipherKey = yield this.keyService.makeCipherKey();\n            }\n            else {\n                decryptedCipherKey = new _platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_6__.SymmetricCryptoKey(yield this.encryptService.decryptToBytes(cipher.key, keyForCipherKeyDecryption));\n            }\n            // Then, we have to encrypt the cipher key with the proper key.\n            cipher.key = yield this.encryptService.encrypt(decryptedCipherKey.key, keyForCipherKeyEncryption);\n            // Finally, we can encrypt the cipher with the decrypted cipher key.\n            return this.encryptCipher(model, cipher, decryptedCipherKey);\n        });\n    }\n    getCipherKeyEncryptionEnabled() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const featureEnabled = yield this.configService.getFeatureFlag(_bitwarden_common_enums_feature_flag_enum__WEBPACK_IMPORTED_MODULE_2__.FeatureFlag.CipherKeyEncryption);\n            const meetsServerVersion = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.configService.checkServerMeetsVersionRequirement$(CIPHER_KEY_ENC_MIN_SERVER_VER));\n            return featureEnabled && meetsServerVersion;\n        });\n    }\n}\n__decorate([\n    (0,_platform_misc_sequentialize__WEBPACK_IMPORTED_MODULE_3__.sequentialize)(() => \"getAllDecrypted\"),\n    __metadata(\"design:type\", Function),\n    __metadata(\"design:paramtypes\", []),\n    __metadata(\"design:returntype\", Promise)\n], CipherService.prototype, \"getAllDecrypted\", null);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 141756 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/cipher.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/file-upload/cipher-file-upload.service.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/common/src/vault/services/file-upload/cipher-file-upload.service.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherFileUploadService: () => (/* binding */ CipherFileUploadService)\n/* harmony export */ });\n/* harmony import */ var _models_response_error_response__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass CipherFileUploadService {\n    constructor(apiService, fileUploadService) {\n        this.apiService = apiService;\n        this.fileUploadService = fileUploadService;\n    }\n    upload(cipher, encFileName, encData, admin, dataEncKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = {\n                key: dataEncKey[1].encryptedString,\n                fileName: encFileName.encryptedString,\n                fileSize: encData.buffer.byteLength,\n                adminRequest: admin,\n            };\n            let response;\n            try {\n                const uploadDataResponse = yield this.apiService.postCipherAttachment(cipher.id, request);\n                response = admin ? uploadDataResponse.cipherMiniResponse : uploadDataResponse.cipherResponse;\n                yield this.fileUploadService.upload(uploadDataResponse, encFileName, encData, this.generateMethods(uploadDataResponse, response, request.adminRequest));\n            }\n            catch (e) {\n                if ((e instanceof _models_response_error_response__WEBPACK_IMPORTED_MODULE_0__.ErrorResponse && e.statusCode === 404) ||\n                    e.statusCode === 405) {\n                    response = yield this.legacyServerAttachmentFileUpload(request.adminRequest, cipher.id, encFileName, encData, dataEncKey[1]);\n                }\n                else if (e instanceof _models_response_error_response__WEBPACK_IMPORTED_MODULE_0__.ErrorResponse) {\n                    throw new Error(e.getSingleMessage());\n                }\n                else {\n                    throw e;\n                }\n            }\n            return response;\n        });\n    }\n    generateMethods(uploadData, response, isAdmin) {\n        return {\n            postDirect: this.generatePostDirectCallback(uploadData, isAdmin),\n            renewFileUploadUrl: this.generateRenewFileUploadUrlCallback(uploadData, response, isAdmin),\n            rollback: this.generateRollbackCallback(response, uploadData, isAdmin),\n        };\n    }\n    generatePostDirectCallback(uploadData, isAdmin) {\n        return (data) => {\n            const response = isAdmin ? uploadData.cipherMiniResponse : uploadData.cipherResponse;\n            return this.apiService.postAttachmentFile(response.id, uploadData.attachmentId, data);\n        };\n    }\n    generateRenewFileUploadUrlCallback(uploadData, response, isAdmin) {\n        return () => __awaiter(this, void 0, void 0, function* () {\n            const renewResponse = yield this.apiService.renewAttachmentUploadUrl(response.id, uploadData.attachmentId);\n            return renewResponse === null || renewResponse === void 0 ? void 0 : renewResponse.url;\n        });\n    }\n    generateRollbackCallback(response, uploadData, isAdmin) {\n        return () => {\n            if (isAdmin) {\n                return this.apiService.deleteCipherAttachmentAdmin(response.id, uploadData.attachmentId);\n            }\n            else {\n                return this.apiService.deleteCipherAttachment(response.id, uploadData.attachmentId);\n            }\n        };\n    }\n    /**\n     * @deprecated Mar 25 2021: This method has been deprecated in favor of direct uploads.\n     * This method still exists for backward compatibility with old server versions.\n     */\n    legacyServerAttachmentFileUpload(admin, cipherId, encFileName, encData, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const fd = new FormData();\n            try {\n                const blob = new Blob([encData.buffer], { type: \"application/octet-stream\" });\n                fd.append(\"key\", key.encryptedString);\n                fd.append(\"data\", blob, encFileName.encryptedString);\n            }\n            catch (e) {\n                if (_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isNode && !_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.isBrowser) {\n                    fd.append(\"key\", key.encryptedString);\n                    fd.append(\"data\", Buffer.from(encData.buffer), {\n                        filepath: encFileName.encryptedString,\n                        contentType: \"application/octet-stream\",\n                    });\n                }\n                else {\n                    throw e;\n                }\n            }\n            let response;\n            try {\n                if (admin) {\n                    response = yield this.apiService.postCipherAttachmentAdminLegacy(cipherId, fd);\n                }\n                else {\n                    response = yield this.apiService.postCipherAttachmentLegacy(cipherId, fd);\n                }\n            }\n            catch (e) {\n                throw new Error(e.getSingleMessage());\n            }\n            return response;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12640 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/file-upload/cipher-file-upload.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/folder/folder-api.service.ts":
/*!*************************************************************************!*\
  !*** ../../libs/common/src/vault/services/folder/folder-api.service.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderApiService: () => (/* binding */ FolderApiService)\n/* harmony export */ });\n/* harmony import */ var _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../vault/models/data/folder.data */ \"../../libs/common/src/vault/models/data/folder.data.ts\");\n/* harmony import */ var _vault_models_request_folder_request__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../vault/models/request/folder.request */ \"../../libs/common/src/vault/models/request/folder.request.ts\");\n/* harmony import */ var _vault_models_response_folder_response__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../vault/models/response/folder.response */ \"../../libs/common/src/vault/models/response/folder.response.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass FolderApiService {\n    constructor(folderService, apiService) {\n        this.folderService = folderService;\n        this.apiService = apiService;\n    }\n    save(folder) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _vault_models_request_folder_request__WEBPACK_IMPORTED_MODULE_1__.FolderRequest(folder);\n            let response;\n            if (folder.id == null) {\n                response = yield this.postFolder(request);\n                folder.id = response.id;\n            }\n            else {\n                response = yield this.putFolder(folder.id, request);\n            }\n            const data = new _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_0__.FolderData(response);\n            yield this.folderService.upsert(data);\n        });\n    }\n    delete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.deleteFolder(id);\n            yield this.folderService.delete(id);\n        });\n    }\n    deleteAll() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.apiService.send(\"DELETE\", \"/folders/all\", null, true, false);\n            yield this.folderService.clear();\n        });\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"GET\", \"/folders/\" + id, null, true, true);\n            return new _vault_models_response_folder_response__WEBPACK_IMPORTED_MODULE_2__.FolderResponse(r);\n        });\n    }\n    postFolder(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"POST\", \"/folders\", request, true, true);\n            return new _vault_models_response_folder_response__WEBPACK_IMPORTED_MODULE_2__.FolderResponse(r);\n        });\n    }\n    putFolder(id, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const r = yield this.apiService.send(\"PUT\", \"/folders/\" + id, request, true, true);\n            return new _vault_models_response_folder_response__WEBPACK_IMPORTED_MODULE_2__.FolderResponse(r);\n        });\n    }\n    deleteFolder(id) {\n        return this.apiService.send(\"DELETE\", \"/folders/\" + id, null, true, false);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5576 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/folder/folder-api.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/folder/folder.service.ts":
/*!*********************************************************************!*\
  !*** ../../libs/common/src/vault/services/folder/folder.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FolderService: () => (/* binding */ FolderService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../vault/models/data/folder.data */ \"../../libs/common/src/vault/models/data/folder.data.ts\");\n/* harmony import */ var _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../vault/models/domain/folder */ \"../../libs/common/src/vault/models/domain/folder.ts\");\n/* harmony import */ var _vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _models_request_folder_with_id_request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/request/folder-with-id.request */ \"../../libs/common/src/vault/models/request/folder-with-id.request.ts\");\n/* harmony import */ var _key_state_folder_state__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../key-state/folder.state */ \"../../libs/common/src/vault/services/key-state/folder.state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\nclass FolderService {\n    constructor(keyService, encryptService, i18nService, cipherService, stateProvider) {\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.i18nService = i18nService;\n        this.cipherService = cipherService;\n        this.stateProvider = stateProvider;\n        this.encryptedFoldersState = this.stateProvider.getActive(_key_state_folder_state__WEBPACK_IMPORTED_MODULE_6__.FOLDER_ENCRYPTED_FOLDERS);\n        this.decryptedFoldersState = this.stateProvider.getDerived(this.encryptedFoldersState.state$, _key_state_folder_state__WEBPACK_IMPORTED_MODULE_6__.FOLDER_DECRYPTED_FOLDERS, { folderService: this, keyService: this.keyService });\n        this.folders$ = this.encryptedFoldersState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((folderData) => Object.values(folderData).map((f) => new _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_3__.Folder(f))));\n        this.folderViews$ = this.decryptedFoldersState.state$;\n    }\n    clearCache() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.decryptedFoldersState.forceValue([]);\n        });\n    }\n    // TODO: This should be moved to EncryptService or something\n    encrypt(model, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const folder = new _vault_models_domain_folder__WEBPACK_IMPORTED_MODULE_3__.Folder();\n            folder.id = model.id;\n            folder.name = yield this.encryptService.encrypt(model.name, key);\n            return folder;\n        });\n    }\n    get(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const folders = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.folders$);\n            return folders.find((folder) => folder.id === id);\n        });\n    }\n    getDecrypted$(id) {\n        return this.folderViews$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((folders) => folders.find((folder) => folder.id === id)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.shareReplay)({ refCount: true, bufferSize: 1 }));\n    }\n    getAllFromState() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.folders$);\n        });\n    }\n    /**\n     * @deprecated For the CLI only\n     * @param id id of the folder\n     */\n    getFromState(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const folder = yield this.get(id);\n            if (!folder) {\n                return null;\n            }\n            return folder;\n        });\n    }\n    /**\n     * @deprecated Only use in CLI!\n     */\n    getAllDecryptedFromState() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.folderViews$);\n        });\n    }\n    upsert(folderData) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.encryptedFoldersState.update((folders) => {\n                if (folders == null) {\n                    folders = {};\n                }\n                if (folderData instanceof _vault_models_data_folder_data__WEBPACK_IMPORTED_MODULE_2__.FolderData) {\n                    const f = folderData;\n                    folders[f.id] = f;\n                }\n                else {\n                    folderData.forEach((f) => {\n                        folders[f.id] = f;\n                    });\n                }\n                return folders;\n            });\n        });\n    }\n    replace(folders, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!folders) {\n                return;\n            }\n            yield this.stateProvider.getUser(userId, _key_state_folder_state__WEBPACK_IMPORTED_MODULE_6__.FOLDER_ENCRYPTED_FOLDERS).update(() => {\n                const newFolders = Object.assign({}, folders);\n                return newFolders;\n            });\n        });\n    }\n    clear(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                yield this.encryptedFoldersState.update(() => ({}));\n                yield this.decryptedFoldersState.forceValue([]);\n            }\n            else {\n                yield this.stateProvider.getUser(userId, _key_state_folder_state__WEBPACK_IMPORTED_MODULE_6__.FOLDER_ENCRYPTED_FOLDERS).update(() => ({}));\n            }\n        });\n    }\n    delete(id) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.encryptedFoldersState.update((folders) => {\n                if (folders == null) {\n                    return;\n                }\n                const folderIdsToDelete = Array.isArray(id) ? id : [id];\n                folderIdsToDelete.forEach((id) => {\n                    if (folders[id] != null) {\n                        delete folders[id];\n                    }\n                });\n                return folders;\n            });\n            // Items in a deleted folder are re-assigned to \"No Folder\"\n            const ciphers = yield this.cipherService.getAll();\n            if (ciphers != null) {\n                const updates = [];\n                for (const cId in ciphers) {\n                    if (ciphers[cId].folderId === id) {\n                        ciphers[cId].folderId = null;\n                        updates.push(ciphers[cId]);\n                    }\n                }\n                if (updates.length > 0) {\n                    // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                    this.cipherService.upsert(updates.map((c) => c.toCipherData()));\n                }\n            }\n        });\n    }\n    decryptFolders(folders) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decryptFolderPromises = folders.map((f) => f.decrypt());\n            const decryptedFolders = yield Promise.all(decryptFolderPromises);\n            decryptedFolders.sort(_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.getSortFunction(this.i18nService, \"name\"));\n            const noneFolder = new _vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_4__.FolderView();\n            noneFolder.name = this.i18nService.t(\"noneFolder\");\n            decryptedFolders.push(noneFolder);\n            return decryptedFolders;\n        });\n    }\n    getRotatedData(originalUserKey, newUserKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (newUserKey == null) {\n                throw new Error(\"New user key is required for rotation.\");\n            }\n            let encryptedFolders = [];\n            const folders = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.folderViews$);\n            if (!folders) {\n                return encryptedFolders;\n            }\n            encryptedFolders = yield Promise.all(folders.map((folder) => __awaiter(this, void 0, void 0, function* () {\n                const encryptedFolder = yield this.encrypt(folder, newUserKey);\n                return new _models_request_folder_with_id_request__WEBPACK_IMPORTED_MODULE_5__.FolderWithIdRequest(encryptedFolder);\n            })));\n            return encryptedFolders;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16800 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/folder/folder.service.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/key-state/ciphers.state.ts":
/*!***********************************************************************!*\
  !*** ../../libs/common/src/vault/services/key-state/ciphers.state.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ADD_EDIT_CIPHER_INFO_KEY: () => (/* binding */ ADD_EDIT_CIPHER_INFO_KEY),\n/* harmony export */   DECRYPTED_CIPHERS: () => (/* binding */ DECRYPTED_CIPHERS),\n/* harmony export */   ENCRYPTED_CIPHERS: () => (/* binding */ ENCRYPTED_CIPHERS),\n/* harmony export */   LOCAL_DATA_KEY: () => (/* binding */ LOCAL_DATA_KEY)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/data/cipher.data */ \"../../libs/common/src/vault/models/data/cipher.data.ts\");\n/* harmony import */ var _models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n\n\n\nconst ENCRYPTED_CIPHERS = _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_0__.CIPHERS_DISK, \"ciphers\", {\n    deserializer: (obj) => _models_data_cipher_data__WEBPACK_IMPORTED_MODULE_1__.CipherData.fromJSON(obj),\n    clearOn: [\"logout\"],\n});\nconst DECRYPTED_CIPHERS = _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_0__.CIPHERS_MEMORY, \"decryptedCiphers\", {\n    deserializer: (cipher) => _models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView.fromJSON(cipher),\n    clearOn: [\"logout\", \"lock\"],\n});\nconst LOCAL_DATA_KEY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.CIPHERS_DISK_LOCAL, \"localData\", {\n    deserializer: (localData) => localData,\n    clearOn: [\"logout\"],\n});\nconst ADD_EDIT_CIPHER_INFO_KEY = new _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_platform_state__WEBPACK_IMPORTED_MODULE_0__.CIPHERS_MEMORY, \"addEditCipherInfo\", {\n    deserializer: (addEditCipherInfo) => {\n        if (addEditCipherInfo == null) {\n            return null;\n        }\n        const cipher = (addEditCipherInfo === null || addEditCipherInfo === void 0 ? void 0 : addEditCipherInfo.cipher.toJSON) != null\n            ? addEditCipherInfo.cipher\n            : _models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView.fromJSON(addEditCipherInfo === null || addEditCipherInfo === void 0 ? void 0 : addEditCipherInfo.cipher);\n        return { cipher, collectionIds: addEditCipherInfo.collectionIds };\n    },\n    clearOn: [\"logout\", \"lock\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4108 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/key-state/ciphers.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/key-state/folder.state.ts":
/*!**********************************************************************!*\
  !*** ../../libs/common/src/vault/services/key-state/folder.state.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FOLDER_DECRYPTED_FOLDERS: () => (/* binding */ FOLDER_DECRYPTED_FOLDERS),\n/* harmony export */   FOLDER_ENCRYPTED_FOLDERS: () => (/* binding */ FOLDER_ENCRYPTED_FOLDERS)\n/* harmony export */ });\n/* harmony import */ var _platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _models_data_folder_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/data/folder.data */ \"../../libs/common/src/vault/models/data/folder.data.ts\");\n/* harmony import */ var _models_domain_folder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/domain/folder */ \"../../libs/common/src/vault/models/domain/folder.ts\");\n/* harmony import */ var _models_view_folder_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\nconst FOLDER_ENCRYPTED_FOLDERS = _platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition.record(_platform_state__WEBPACK_IMPORTED_MODULE_0__.FOLDER_DISK, \"folders\", {\n    deserializer: (obj) => _models_data_folder_data__WEBPACK_IMPORTED_MODULE_1__.FolderData.fromJSON(obj),\n    clearOn: [\"logout\"],\n});\nconst FOLDER_DECRYPTED_FOLDERS = _platform_state__WEBPACK_IMPORTED_MODULE_0__.DeriveDefinition.from(FOLDER_ENCRYPTED_FOLDERS, {\n    deserializer: (obj) => obj.map((f) => _models_view_folder_view__WEBPACK_IMPORTED_MODULE_3__.FolderView.fromJSON(f)),\n    derive: (from_1, _a) => __awaiter(void 0, [from_1, _a], void 0, function* (from, { folderService, keyService }) {\n        const folders = Object.values(from || {}).map((f) => new _models_domain_folder__WEBPACK_IMPORTED_MODULE_2__.Folder(f));\n        if (yield keyService.hasUserKey()) {\n            return yield folderService.decryptFolders(folders);\n        }\n        else {\n            return [];\n        }\n    }),\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9jb21tb24vc3JjL3ZhdWx0L3NlcnZpY2VzL2tleS1zdGF0ZS9mb2xkZXIuc3RhdGUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRzJGO0FBRWhDO0FBQ1A7QUFDTztBQUVwRCxNQUFNLHdCQUF3QixHQUFHLDhEQUFpQixDQUFDLE1BQU0sQ0FDOUQsd0RBQVcsRUFDWCxTQUFTLEVBQ1Q7SUFDRSxZQUFZLEVBQUUsQ0FBQyxHQUF3QixFQUFFLEVBQUUsQ0FBQyxnRUFBVSxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUM7SUFDcEUsT0FBTyxFQUFFLENBQUMsUUFBUSxDQUFDO0NBQ3BCLENBQ0YsQ0FBQztBQUVLLE1BQU0sd0JBQXdCLEdBQUcsNkRBQWdCLENBQUMsSUFBSSxDQUkzRCx3QkFBd0IsRUFBRTtJQUMxQixZQUFZLEVBQUUsQ0FBQyxHQUFHLEVBQUUsRUFBRSxD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cm9tLCB7IGZvbGRlclNlcnZpY2UsIGtleVNlcnZpY2UgfSkgPT4ge1xuICAgIGNvbnN0IGZvbGRlcnMgPSBPYmplY3QudmFsdWVzKGZyb20gfHwge30pLm1hcCgoZikgPT4gbmV3IEZvbGRlcihmKSk7XG5cbiAgICBpZiAoYXdhaXQga2V5U2VydmljZS5oYXNVc2VyS2V5KCkpIHtcbiAgICAgIHJldHVybiBhd2FpdCBmb2xkZXJTZXJ2aWNlLmRlY3J5cHRGb2xkZXJzKGZvbGRlcnMpO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gW107XG4gICAgfVxuICB9LFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/key-state/folder.state.ts\n");

/***/ }),

/***/ "../../libs/common/src/vault/services/totp.service.ts":
/*!************************************************************!*\
  !*** ../../libs/common/src/vault/services/totp.service.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TotpService: () => (/* binding */ TotpService)\n/* harmony export */ });\n/* harmony import */ var _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\nconst B32Chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\";\nconst SteamChars = \"23456789BCDFGHJKMNPQRTVWXY\";\nclass TotpService {\n    constructor(cryptoFunctionService, logService) {\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.logService = logService;\n    }\n    getCode(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                return null;\n            }\n            let period = 30;\n            let alg = \"sha1\";\n            let digits = 6;\n            let keyB32 = key;\n            const isOtpAuth = key.toLowerCase().indexOf(\"otpauth://\") === 0;\n            const isSteamAuth = !isOtpAuth && key.toLowerCase().indexOf(\"steam://\") === 0;\n            if (isOtpAuth) {\n                const params = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getQueryParams(key);\n                if (params.has(\"digits\") && params.get(\"digits\") != null) {\n                    try {\n                        const digitParams = parseInt(params.get(\"digits\").trim(), null);\n                        if (digitParams > 10) {\n                            digits = 10;\n                        }\n                        else if (digitParams > 0) {\n                            digits = digitParams;\n                        }\n                    }\n                    catch (_a) {\n                        this.logService.error(\"Invalid digits param.\");\n                    }\n                }\n                if (params.has(\"period\") && params.get(\"period\") != null) {\n                    try {\n                        const periodParam = parseInt(params.get(\"period\").trim(), null);\n                        if (periodParam > 0) {\n                            period = periodParam;\n                        }\n                    }\n                    catch (_b) {\n                        this.logService.error(\"Invalid period param.\");\n                    }\n                }\n                if (params.has(\"secret\") && params.get(\"secret\") != null) {\n                    keyB32 = params.get(\"secret\");\n                }\n                if (params.has(\"algorithm\") && params.get(\"algorithm\") != null) {\n                    const algParam = params.get(\"algorithm\").toLowerCase();\n                    if (algParam === \"sha1\" || algParam === \"sha256\" || algParam === \"sha512\") {\n                        alg = algParam;\n                    }\n                }\n            }\n            else if (isSteamAuth) {\n                keyB32 = key.substr(\"steam://\".length);\n                digits = 5;\n            }\n            const epoch = Math.round(new Date().getTime() / 1000.0);\n            const timeHex = this.leftPad(this.decToHex(Math.floor(epoch / period)), 16, \"0\");\n            const timeBytes = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromHexToArray(timeHex);\n            const keyBytes = this.b32ToBytes(keyB32);\n            if (!keyBytes.length || !timeBytes.length) {\n                return null;\n            }\n            const hash = yield this.sign(keyBytes, timeBytes, alg);\n            if (hash.length === 0) {\n                return null;\n            }\n            const offset = hash[hash.length - 1] & 0xf;\n            const binary = ((hash[offset] & 0x7f) << 24) |\n                ((hash[offset + 1] & 0xff) << 16) |\n                ((hash[offset + 2] & 0xff) << 8) |\n                (hash[offset + 3] & 0xff);\n            let otp = \"\";\n            if (isSteamAuth) {\n                let fullCode = binary & 0x7fffffff;\n                for (let i = 0; i < digits; i++) {\n                    otp += SteamChars[fullCode % SteamChars.length];\n                    fullCode = Math.trunc(fullCode / SteamChars.length);\n                }\n            }\n            else {\n                otp = (binary % Math.pow(10, digits)).toString();\n                otp = this.leftPad(otp, digits, \"0\");\n            }\n            return otp;\n        });\n    }\n    getTimeInterval(key) {\n        let period = 30;\n        if (key != null && key.toLowerCase().indexOf(\"otpauth://\") === 0) {\n            const params = _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.getQueryParams(key);\n            if (params.has(\"period\") && params.get(\"period\") != null) {\n                try {\n                    period = parseInt(params.get(\"period\").trim(), null);\n                }\n                catch (_a) {\n                    this.logService.error(\"Invalid period param.\");\n                }\n            }\n        }\n        return period;\n    }\n    // Helpers\n    leftPad(s, l, p) {\n        if (l + 1 >= s.length) {\n            s = Array(l + 1 - s.length).join(p) + s;\n        }\n        return s;\n    }\n    decToHex(d) {\n        return (d < 15.5 ? \"0\" : \"\") + Math.round(d).toString(16);\n    }\n    b32ToHex(s) {\n        s = s.toUpperCase();\n        let cleanedInput = \"\";\n        for (let i = 0; i < s.length; i++) {\n            if (B32Chars.indexOf(s[i]) < 0) {\n                continue;\n            }\n            cleanedInput += s[i];\n        }\n        s = cleanedInput;\n        let bits = \"\";\n        let hex = \"\";\n        for (let i = 0; i < s.length; i++) {\n            const byteIndex = B32Chars.indexOf(s.charAt(i));\n            if (byteIndex < 0) {\n                continue;\n            }\n            bits += this.leftPad(byteIndex.toString(2), 5, \"0\");\n        }\n        for (let i = 0; i + 4 <= bits.length; i += 4) {\n            const chunk = bits.substr(i, 4);\n            hex = hex + parseInt(chunk, 2).toString(16);\n        }\n        return hex;\n    }\n    b32ToBytes(s) {\n        return _platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.fromHexToArray(this.b32ToHex(s));\n    }\n    sign(keyBytes, timeBytes, alg) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const signature = yield this.cryptoFunctionService.hmac(timeBytes, keyBytes, alg);\n            return new Uint8Array(signature);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15308 characters]\n//# sourceURL=webpack-internal:///../../libs/common/src/vault/services/totp.service.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/ascendo-csv-importer.ts":
/*!*****************************************************************!*\
  !*** ../../libs/importer/src/importers/ascendo-csv-importer.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AscendoCsvImporter: () => (/* binding */ AscendoCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass AscendoCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length < 2) {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValueOrDefault(value[value.length - 1]);\n            cipher.name = this.getValueOrDefault(value[0], \"--\");\n            if (value.length > 2 && value.length % 2 === 0) {\n                for (let i = 0; i < value.length - 2; i += 2) {\n                    const val = value[i + 2];\n                    const field = value[i + 1];\n                    if (this.isNullOrWhitespace(val) || this.isNullOrWhitespace(field)) {\n                        continue;\n                    }\n                    const fieldLower = field.toLowerCase();\n                    if (cipher.login.password == null && this.passwordFieldNames.indexOf(fieldLower) > -1) {\n                        cipher.login.password = this.getValueOrDefault(val);\n                    }\n                    else if (cipher.login.username == null &&\n                        this.usernameFieldNames.indexOf(fieldLower) > -1) {\n                        cipher.login.username = this.getValueOrDefault(val);\n                    }\n                    else if ((cipher.login.uris == null || cipher.login.uris.length === 0) &&\n                        this.uriFieldNames.indexOf(fieldLower) > -1) {\n                        cipher.login.uris = this.makeUriArray(val);\n                    }\n                    else {\n                        this.processKvp(cipher, field, val);\n                    }\n                }\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5896 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/ascendo-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/avast/avast-csv-importer.ts":
/*!*********************************************************************!*\
  !*** ../../libs/importer/src/importers/avast/avast-csv-importer.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AvastCsvImporter: () => (/* binding */ AvastCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass AvastCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.name);\n            cipher.login.uris = this.makeUriArray(value.web);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            cipher.login.username = this.getValueOrDefault(value.login);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2F2YXN0L2F2YXN0LWNzdi1pbXBvcnRlci50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBMEQ7QUFDVjtBQUd6QyxNQUFNLGdCQUFpQixTQUFRLHdEQUFZO0lBQ2hELEtBQUssQ0FBQyxJQUFZO1FBQ2hCLE1BQU0sTUFBTSxHQUFHLElBQUksK0RBQVksRUFBRSxDQUFDO1FBQ2xDLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO1FBQzFDLElBQUksT0FBTyxJQUFJLElBQUksRUFBRSxDQUFDO1lBQ3BCLE1BQU0sQ0FBQyxPQUFPLEdBQUcsS0FBSyxDQUFDO1lBQ3ZCLE9BQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztRQU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QuY2lwaGVycy5wdXNoKGNpcGhlcik7XG4gICAgfSk7XG5cbiAgICByZXN1bHQuc3VjY2VzcyA9IHRydWU7XG4gICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXN1bHQpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/avast/avast-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/avast/avast-json-importer.ts":
/*!**********************************************************************!*\
  !*** ../../libs/importer/src/importers/avast/avast-json-importer.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AvastJsonImporter: () => (/* binding */ AvastJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\nclass AvastJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        if (results.logins != null) {\n            results.logins.forEach((value) => {\n                const cipher = this.initLoginCipher();\n                cipher.name = this.getValueOrDefault(value.custName);\n                cipher.notes = this.getValueOrDefault(value.note);\n                cipher.login.uris = this.makeUriArray(value.url);\n                cipher.login.password = this.getValueOrDefault(value.pwd);\n                cipher.login.username = this.getValueOrDefault(value.loginName);\n                this.cleanupCipher(cipher);\n                result.ciphers.push(cipher);\n            });\n        }\n        if (results.notes != null) {\n            results.notes.forEach((value) => {\n                const cipher = this.initLoginCipher();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                cipher.name = this.getValueOrDefault(value.label);\n                cipher.notes = this.getValueOrDefault(value.text);\n                this.cleanupCipher(cipher);\n                result.ciphers.push(cipher);\n            });\n        }\n        if (results.cards != null) {\n            results.cards.forEach((value) => {\n                const cipher = this.initLoginCipher();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.name = this.getValueOrDefault(value.custName);\n                cipher.notes = this.getValueOrDefault(value.note);\n                cipher.card.cardholderName = this.getValueOrDefault(value.holderName);\n                cipher.card.number = this.getValueOrDefault(value.cardNumber);\n                cipher.card.code = this.getValueOrDefault(value.cvv);\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                if (value.expirationDate != null) {\n                    if (value.expirationDate.month != null) {\n                        cipher.card.expMonth = value.expirationDate.month + \"\";\n                    }\n                    if (value.expirationDate.year != null) {\n                        cipher.card.expYear = value.expirationDate.year + \"\";\n                    }\n                }\n                this.cleanupCipher(cipher);\n                result.ciphers.push(cipher);\n            });\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7636 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/avast/avast-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/avast/index.ts":
/*!********************************************************!*\
  !*** ../../libs/importer/src/importers/avast/index.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AvastCsvImporter: () => (/* reexport safe */ _avast_csv_importer__WEBPACK_IMPORTED_MODULE_0__.AvastCsvImporter),\n/* harmony export */   AvastJsonImporter: () => (/* reexport safe */ _avast_json_importer__WEBPACK_IMPORTED_MODULE_1__.AvastJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _avast_csv_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./avast-csv-importer */ \"../../libs/importer/src/importers/avast/avast-csv-importer.ts\");\n/* harmony import */ var _avast_json_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./avast-json-importer */ \"../../libs/importer/src/importers/avast/avast-json-importer.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2F2YXN0L2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBd0Q7QUFDRSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL2ltcG9ydGVycy9hdmFzdC9pbmRleC50cz9lYzY1Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEF2YXN0Q3N2SW1wb3J0ZXIgfSBmcm9tIFwiLi9hdmFzdC1jc3YtaW1wb3J0ZXJcIjtcbmV4cG9ydCB7IEF2YXN0SnNvbkltcG9ydGVyIH0gZnJvbSBcIi4vYXZhc3QtanNvbi1pbXBvcnRlclwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/avast/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/avira-csv-importer.ts":
/*!***************************************************************!*\
  !*** ../../libs/importer/src/importers/avira-csv-importer.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AviraCsvImporter: () => (/* binding */ AviraCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass AviraCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.name, this.getValueOrDefault(this.nameFromUrl(value.website), \"--\"));\n            cipher.login.uris = this.makeUriArray(value.website);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            if (this.isNullOrWhitespace(value.username) &&\n                !this.isNullOrWhitespace(value.secondary_username)) {\n                cipher.login.username = value.secondary_username;\n            }\n            else {\n                cipher.login.username = this.getValueOrDefault(value.username);\n                cipher.notes = this.getValueOrDefault(value.secondary_username);\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//#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bGxPcldoaXRlc3BhY2UodmFsdWUudXNlcm5hbWUpICYmXG4gICAgICAgICF0aGlzLmlzTnVsbE9yV2hpdGVzcGFjZSh2YWx1ZS5zZWNvbmRhcnlfdXNlcm5hbWUpXG4gICAgICApIHtcbiAgICAgICAgY2lwaGVyLmxvZ2luLnVzZXJuYW1lID0gdmFsdWUuc2Vjb25kYXJ5X3VzZXJuYW1lO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY2lwaGVyLmxvZ2luLnVzZXJuYW1lID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh2YWx1ZS51c2VybmFtZSk7XG4gICAgICAgIGNpcGhlci5ub3RlcyA9IHRoaXMuZ2V0VmFsdWVPckRlZmF1bHQodmFsdWUuc2Vjb25kYXJ5X3VzZXJuYW1lKTtcbiAgICAgIH1cblxuICAgICAgdGhpcy5jbGVhbnVwQ2lwaGVyKGNpcGhlcik7XG4gICAgICByZXN1bHQuY2lwaGVycy5wdXNoKGNpcGhlcik7XG4gICAgfSk7XG5cbiAgICByZXN1bHQuc3VjY2VzcyA9IHRydWU7XG4gICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXN1bHQpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/avira-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/base-importer.ts":
/*!**********************************************************!*\
  !*** ../../libs/importer/src/importers/base-importer.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BaseImporter: () => (/* binding */ BaseImporter)\n/* harmony export */ });\n/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! papaparse */ \"papaparse\");\n/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_autofill_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/autofill/utils */ \"../../libs/common/src/autofill/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_services_console_log_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/services/console-log.service */ \"../../libs/common/src/platform/services/console-log.service.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_field_view__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/field.view */ \"../../libs/common/src/vault/models/view/field.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_uri_view__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login-uri.view */ \"../../libs/common/src/vault/models/view/login-uri.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\nclass BaseImporter {\n    constructor() {\n        this.organizationId = null;\n        this.logService = new _bitwarden_common_platform_services_console_log_service__WEBPACK_IMPORTED_MODULE_4__.ConsoleLogService(false);\n        this.newLineRegex = /(?:\\r\\n|\\r|\\n)/;\n        this.passwordFieldNames = [\n            \"password\",\n            \"pass word\",\n            \"passphrase\",\n            \"pass phrase\",\n            \"pass\",\n            \"code\",\n            \"code word\",\n            \"codeword\",\n            \"secret\",\n            \"secret word\",\n            \"personpwd\",\n            \"key\",\n            \"keyword\",\n            \"key word\",\n            \"keyphrase\",\n            \"key phrase\",\n            \"form_pw\",\n            \"wppassword\",\n            \"pin\",\n            \"pwd\",\n            \"pw\",\n            \"pword\",\n            \"passwd\",\n            \"p\",\n            \"serial\",\n            \"serial#\",\n            \"license key\",\n            \"reg #\",\n            // Non-English names\n            \"passwort\",\n        ];\n        this.usernameFieldNames = [\n            \"user\",\n            \"name\",\n            \"user name\",\n            \"username\",\n            \"login name\",\n            \"email\",\n            \"e-mail\",\n            \"id\",\n            \"userid\",\n            \"user id\",\n            \"login\",\n            \"form_loginname\",\n            \"wpname\",\n            \"mail\",\n            \"loginid\",\n            \"login id\",\n            \"log\",\n            \"personlogin\",\n            \"first name\",\n            \"last name\",\n            \"card#\",\n            \"account #\",\n            \"member\",\n            \"member #\",\n            // Non-English names\n            \"nom\",\n            \"benutzername\",\n        ];\n        this.notesFieldNames = [\n            \"note\",\n            \"notes\",\n            \"comment\",\n            \"comments\",\n            \"memo\",\n            \"description\",\n            \"free form\",\n            \"freeform\",\n            \"free text\",\n            \"freetext\",\n            \"free\",\n            // Non-English names\n            \"kommentar\",\n        ];\n        this.uriFieldNames = [\n            \"url\",\n            \"hyper link\",\n            \"hyperlink\",\n            \"link\",\n            \"host\",\n            \"hostname\",\n            \"host name\",\n            \"server\",\n            \"address\",\n            \"hyper ref\",\n            \"href\",\n            \"web\",\n            \"website\",\n            \"web site\",\n            \"site\",\n            \"web-site\",\n            \"uri\",\n            // Non-English names\n            \"ort\",\n            \"adresse\",\n        ];\n        this.parseCsvOptions = {\n            encoding: \"UTF-8\",\n            skipEmptyLines: false,\n        };\n    }\n    get organization() {\n        return this.organizationId != null;\n    }\n    parseXml(data) {\n        // Ensure there are no external entity elements in the XML to prevent against XXE attacks.\n        if (!this.validateNoExternalEntities(data)) {\n            return null;\n        }\n        const parser = new DOMParser();\n        const doc = parser.parseFromString(data, \"application/xml\");\n        return doc != null && doc.querySelector(\"parsererror\") == null ? doc : null;\n    }\n    parseCsv(data, header, options = {}) {\n        const parseOptions = Object.assign({ header: header }, this.parseCsvOptions, options);\n        data = this.splitNewLine(data).join(\"\\n\").trim();\n        const result = papaparse__WEBPACK_IMPORTED_MODULE_0__.parse(data, parseOptions);\n        if (result.errors != null && result.errors.length > 0) {\n            result.errors.forEach((e) => {\n                if (e.row != null) {\n                    this.logService.warning(\"Error parsing row \" + e.row + \": \" + e.message);\n                }\n            });\n        }\n        return result.data && result.data.length > 0 ? result.data : null;\n    }\n    parseSingleRowCsv(rowData) {\n        if (this.isNullOrWhitespace(rowData)) {\n            return null;\n        }\n        const parsedRow = this.parseCsv(rowData, false);\n        if (parsedRow != null && parsedRow.length > 0 && parsedRow[0].length > 0) {\n            return parsedRow[0];\n        }\n        return null;\n    }\n    makeUriArray(uri) {\n        if (uri == null) {\n            return null;\n        }\n        if (typeof uri === \"string\") {\n            const loginUri = new _bitwarden_common_vault_models_view_login_uri_view__WEBPACK_IMPORTED_MODULE_9__.LoginUriView();\n            loginUri.uri = this.fixUri(uri);\n            if (this.isNullOrWhitespace(loginUri.uri)) {\n                return null;\n            }\n            loginUri.match = null;\n            return [loginUri];\n        }\n        if (uri.length > 0) {\n            const returnArr = [];\n            uri.forEach((u) => {\n                const loginUri = new _bitwarden_common_vault_models_view_login_uri_view__WEBPACK_IMPORTED_MODULE_9__.LoginUriView();\n                loginUri.uri = this.fixUri(u);\n                if (this.isNullOrWhitespace(loginUri.uri)) {\n                    return;\n                }\n                loginUri.match = null;\n                returnArr.push(loginUri);\n            });\n            return returnArr.length === 0 ? null : returnArr;\n        }\n        return null;\n    }\n    fixUri(uri) {\n        if (uri == null) {\n            return null;\n        }\n        uri = uri.trim();\n        if (uri.indexOf(\"://\") === -1 && uri.indexOf(\".\") >= 0) {\n            uri = \"http://\" + uri;\n        }\n        if (uri.length > 1000) {\n            return uri.substring(0, 1000);\n        }\n        return uri;\n    }\n    nameFromUrl(url) {\n        const hostname = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.getHostname(url);\n        if (this.isNullOrWhitespace(hostname)) {\n            return null;\n        }\n        return hostname.startsWith(\"www.\") ? hostname.replace(\"www.\", \"\") : hostname;\n    }\n    isNullOrWhitespace(str) {\n        return _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.isNullOrWhitespace(str);\n    }\n    getValueOrDefault(str, defaultValue = null) {\n        if (this.isNullOrWhitespace(str)) {\n            return defaultValue;\n        }\n        return str;\n    }\n    splitNewLine(str) {\n        return str.split(this.newLineRegex);\n    }\n    setCardExpiration(cipher, expiration) {\n        if (this.isNullOrWhitespace(expiration)) {\n            return false;\n        }\n        expiration = expiration.replace(/\\s/g, \"\");\n        const monthRegex = \"0?(?<month>[1-9]|1[0-2])\";\n        const yearRegex = \"(?<year>(?:[1-2][0-9])?[0-9]{2})\";\n        const expiryRegex = new RegExp(`^${monthRegex}/${yearRegex}$`);\n        const expiryMatch = expiration.match(expiryRegex);\n        if (!expiryMatch) {\n            return false;\n        }\n        cipher.card.expMonth = expiryMatch.groups.month;\n        const year = expiryMatch.groups.year;\n        cipher.card.expYear = (0,_bitwarden_common_autofill_utils__WEBPACK_IMPORTED_MODULE_2__.normalizeExpiryYearFormat)(year);\n        return true;\n    }\n    moveFoldersToCollections(result) {\n        result.folderRelationships.forEach((r) => result.collectionRelationships.push(r));\n        result.collections = result.folders.map((f) => {\n            const collection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionView();\n            collection.name = f.name;\n            collection.id = f.id;\n            return collection;\n        });\n        result.folderRelationships = [];\n        result.folders = [];\n    }\n    querySelectorDirectChild(parentEl, query) {\n        const els = this.querySelectorAllDirectChild(parentEl, query);\n        return els.length === 0 ? null : els[0];\n    }\n    querySelectorAllDirectChild(parentEl, query) {\n        return Array.from(parentEl.querySelectorAll(query)).filter((el) => el.parentNode === parentEl);\n    }\n    initLoginCipher() {\n        const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_6__.CipherView();\n        cipher.favorite = false;\n        cipher.notes = \"\";\n        cipher.fields = [];\n        cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_10__.LoginView();\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login;\n        return cipher;\n    }\n    cleanupCipher(cipher) {\n        if (cipher == null) {\n            return;\n        }\n        if (cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login) {\n            cipher.login = null;\n        }\n        if (this.isNullOrWhitespace(cipher.name)) {\n            cipher.name = \"--\";\n        }\n        if (this.isNullOrWhitespace(cipher.notes)) {\n            cipher.notes = null;\n        }\n        else {\n            cipher.notes = cipher.notes.trim();\n        }\n        if (cipher.fields != null && cipher.fields.length === 0) {\n            cipher.fields = null;\n        }\n        if (cipher.passwordHistory != null && cipher.passwordHistory.length === 0) {\n            cipher.passwordHistory = null;\n        }\n    }\n    processKvp(cipher, key, value, type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.FieldType.Text) {\n        if (this.isNullOrWhitespace(value)) {\n            return;\n        }\n        if (this.isNullOrWhitespace(key)) {\n            key = \"\";\n        }\n        if (value.length > 200 || value.trim().search(this.newLineRegex) > -1) {\n            if (cipher.notes == null) {\n                cipher.notes = \"\";\n            }\n            cipher.notes += key + \": \" + this.splitNewLine(value).join(\"\\n\") + \"\\n\";\n        }\n        else {\n            if (cipher.fields == null) {\n                cipher.fields = [];\n            }\n            const field = new _bitwarden_common_vault_models_view_field_view__WEBPACK_IMPORTED_MODULE_7__.FieldView();\n            field.type = type;\n            field.name = key;\n            field.value = value;\n            cipher.fields.push(field);\n        }\n    }\n    processFolder(result, folderName, addRelationship = true) {\n        if (this.isNullOrWhitespace(folderName)) {\n            return;\n        }\n        let folderIndex = result.folders.length;\n        // Replace backslashes with forward slashes, ensuring we create sub-folders\n        folderName = folderName.replace(\"\\\\\", \"/\");\n        let addFolder = true;\n        for (let i = 0; i < result.folders.length; i++) {\n            if (result.folders[i].name === folderName) {\n                addFolder = false;\n                folderIndex = i;\n                break;\n            }\n        }\n        if (addFolder) {\n            const f = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_8__.FolderView();\n            f.name = folderName;\n            result.folders.push(f);\n        }\n        //Some folders can have sub-folders but no ciphers directly, we should not add to the folderRelationships array\n        if (addRelationship) {\n            result.folderRelationships.push([result.ciphers.length, folderIndex]);\n        }\n    }\n    convertToNoteIfNeeded(cipher) {\n        if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login &&\n            this.isNullOrWhitespace(cipher.login.username) &&\n            this.isNullOrWhitespace(cipher.login.password) &&\n            (cipher.login.uris == null || cipher.login.uris.length === 0)) {\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.CipherType.SecureNote;\n            cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_11__.SecureNoteView();\n            cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.SecureNoteType.Generic;\n        }\n    }\n    processFullName(cipher, fullName) {\n        if (this.isNullOrWhitespace(fullName)) {\n            return;\n        }\n        const nameParts = fullName.split(\" \");\n        if (nameParts.length > 0) {\n            cipher.identity.firstName = this.getValueOrDefault(nameParts[0]);\n        }\n        if (nameParts.length === 2) {\n            cipher.identity.lastName = this.getValueOrDefault(nameParts[1]);\n        }\n        else if (nameParts.length >= 3) {\n            cipher.identity.middleName = this.getValueOrDefault(nameParts[1]);\n            cipher.identity.lastName = nameParts.slice(2, nameParts.length).join(\" \");\n        }\n    }\n    validateNoExternalEntities(data) {\n        const regex = new RegExp(\"<!ENTITY\", \"i\");\n        const hasExternalEntities = regex.test(data);\n        return !hasExternalEntities;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 30164 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/base-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/bitwarden/bitwarden-csv-importer.ts":
/*!*****************************************************************************!*\
  !*** ../../libs/importer/src/importers/bitwarden/bitwarden-csv-importer.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenCsvImporter: () => (/* binding */ BitwardenCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/enums/cipher-reprompt-type */ \"../../libs/common/src/vault/enums/cipher-reprompt-type.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_field_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/field.view */ \"../../libs/common/src/vault/models/view/field.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\n\n\n\nclass BitwardenCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_8__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_7__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (this.organization && !this.isNullOrWhitespace(value.collections)) {\n                const collections = value.collections.split(\",\");\n                collections.forEach((col) => {\n                    let addCollection = true;\n                    let collectionIndex = result.collections.length;\n                    for (let i = 0; i < result.collections.length; i++) {\n                        if (result.collections[i].name === col) {\n                            addCollection = false;\n                            collectionIndex = i;\n                            break;\n                        }\n                    }\n                    if (addCollection) {\n                        const collection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionView();\n                        collection.name = col;\n                        result.collections.push(collection);\n                    }\n                    result.collectionRelationships.push([result.ciphers.length, collectionIndex]);\n                });\n            }\n            else if (!this.organization) {\n                this.processFolder(result, value.folder);\n            }\n            const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_3__.CipherView();\n            cipher.favorite =\n                !this.organization && this.getValueOrDefault(value.favorite, \"0\") !== \"0\" ? true : false;\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login;\n            cipher.notes = this.getValueOrDefault(value.notes);\n            cipher.name = this.getValueOrDefault(value.name, \"--\");\n            try {\n                cipher.reprompt = parseInt(this.getValueOrDefault(value.reprompt, _bitwarden_common_vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_2__.CipherRepromptType.None.toString()), 10);\n            }\n            catch (e) {\n                // eslint-disable-next-line\n                console.error(\"Unable to parse reprompt value\", e);\n                cipher.reprompt = _bitwarden_common_vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_2__.CipherRepromptType.None;\n            }\n            if (!this.isNullOrWhitespace(value.fields)) {\n                const fields = this.splitNewLine(value.fields);\n                for (let i = 0; i < fields.length; i++) {\n                    if (this.isNullOrWhitespace(fields[i])) {\n                        continue;\n                    }\n                    const delimPosition = fields[i].lastIndexOf(\": \");\n                    if (delimPosition === -1) {\n                        continue;\n                    }\n                    if (cipher.fields == null) {\n                        cipher.fields = [];\n                    }\n                    const field = new _bitwarden_common_vault_models_view_field_view__WEBPACK_IMPORTED_MODULE_4__.FieldView();\n                    field.name = fields[i].substr(0, delimPosition);\n                    field.value = null;\n                    field.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.FieldType.Text;\n                    if (fields[i].length > delimPosition + 2) {\n                        field.value = fields[i].substr(delimPosition + 2);\n                    }\n                    cipher.fields.push(field);\n                }\n            }\n            const valueType = value.type != null ? value.type.toLowerCase() : null;\n            switch (valueType) {\n                case \"note\":\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.SecureNote;\n                    cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_6__.SecureNoteView();\n                    cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.SecureNoteType.Generic;\n                    break;\n                default: {\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.Login;\n                    cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_5__.LoginView();\n                    cipher.login.totp = this.getValueOrDefault(value.login_totp || value.totp);\n                    cipher.login.username = this.getValueOrDefault(value.login_username || value.username);\n                    cipher.login.password = this.getValueOrDefault(value.login_password || value.password);\n                    const uris = this.parseSingleRowCsv(value.login_uri || value.uri);\n                    cipher.login.uris = this.makeUriArray(uris);\n                    break;\n                }\n            }\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11996 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/bitwarden/bitwarden-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/bitwarden/bitwarden-json-importer.ts":
/*!******************************************************************************!*\
  !*** ../../libs/importer/src/importers/bitwarden/bitwarden-json-importer.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenJsonImporter: () => (/* binding */ BitwardenJsonImporter)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/models/export */ \"../../libs/common/src/models/export/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass BitwardenJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    constructor(keyService, encryptService, i18nService, cipherService, pinService, accountService) {\n        super();\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.i18nService = i18nService;\n        this.cipherService = cipherService;\n        this.pinService = pinService;\n        this.accountService = accountService;\n    }\n    parse(data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            this.result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n            const results = JSON.parse(data);\n            if (results == null || results.items == null) {\n                this.result.success = false;\n                return this.result;\n            }\n            if (results.encrypted) {\n                yield this.parseEncrypted(results);\n            }\n            else {\n                yield this.parseDecrypted(results);\n            }\n            return this.result;\n        });\n    }\n    parseEncrypted(results) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (results.encKeyValidation_DO_NOT_EDIT != null) {\n                let keyForDecryption = yield this.keyService.getOrgKey(this.organizationId);\n                if (keyForDecryption == null) {\n                    keyForDecryption = yield this.keyService.getUserKeyWithLegacySupport();\n                }\n                const encKeyValidation = new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString(results.encKeyValidation_DO_NOT_EDIT);\n                const encKeyValidationDecrypt = yield this.encryptService.decryptToUtf8(encKeyValidation, keyForDecryption);\n                if (encKeyValidationDecrypt === null) {\n                    this.result.success = false;\n                    this.result.errorMessage = this.i18nService.t(\"importEncKeyError\");\n                    return;\n                }\n            }\n            const groupingsMap = this.organization\n                ? yield this.parseCollections(results)\n                : yield this.parseFolders(results);\n            for (const c of results.items) {\n                const cipher = _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__.CipherWithIdExport.toDomain(c);\n                // reset ids incase they were set for some reason\n                cipher.id = null;\n                cipher.organizationId = this.organizationId;\n                cipher.collectionIds = null;\n                // make sure password history is limited\n                if (cipher.passwordHistory != null && cipher.passwordHistory.length > 5) {\n                    cipher.passwordHistory = cipher.passwordHistory.slice(0, 5);\n                }\n                if (!this.organization && c.folderId != null && groupingsMap.has(c.folderId)) {\n                    this.result.folderRelationships.push([\n                        this.result.ciphers.length,\n                        groupingsMap.get(c.folderId),\n                    ]);\n                }\n                else if (this.organization && c.collectionIds != null) {\n                    c.collectionIds.forEach((cId) => {\n                        if (groupingsMap.has(cId)) {\n                            this.result.collectionRelationships.push([\n                                this.result.ciphers.length,\n                                groupingsMap.get(cId),\n                            ]);\n                        }\n                    });\n                }\n                const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n                const view = yield cipher.decrypt(yield this.cipherService.getKeyForCipherKeyDecryption(cipher, activeUserId));\n                this.cleanupCipher(view);\n                this.result.ciphers.push(view);\n            }\n            this.result.success = true;\n        });\n    }\n    parseDecrypted(results) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const groupingsMap = this.organization\n                ? yield this.parseCollections(results)\n                : yield this.parseFolders(results);\n            results.items.forEach((c) => {\n                const cipher = _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__.CipherWithIdExport.toView(c);\n                // reset ids incase they were set for some reason\n                cipher.id = null;\n                cipher.organizationId = null;\n                cipher.collectionIds = null;\n                // make sure password history is limited\n                if (cipher.passwordHistory != null && cipher.passwordHistory.length > 5) {\n                    cipher.passwordHistory = cipher.passwordHistory.slice(0, 5);\n                }\n                if (!this.organization && c.folderId != null && groupingsMap.has(c.folderId)) {\n                    this.result.folderRelationships.push([\n                        this.result.ciphers.length,\n                        groupingsMap.get(c.folderId),\n                    ]);\n                }\n                else if (this.organization && c.collectionIds != null) {\n                    c.collectionIds.forEach((cId) => {\n                        if (groupingsMap.has(cId)) {\n                            this.result.collectionRelationships.push([\n                                this.result.ciphers.length,\n                                groupingsMap.get(cId),\n                            ]);\n                        }\n                    });\n                }\n                this.cleanupCipher(cipher);\n                this.result.ciphers.push(cipher);\n            });\n            this.result.success = true;\n        });\n    }\n    parseFolders(data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (data.folders == null) {\n                return null;\n            }\n            const groupingsMap = new Map();\n            for (const f of data.folders) {\n                let folderView;\n                if (data.encrypted) {\n                    const folder = _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__.FolderWithIdExport.toDomain(f);\n                    if (folder != null) {\n                        folderView = yield folder.decrypt();\n                    }\n                }\n                else {\n                    folderView = _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__.FolderWithIdExport.toView(f);\n                }\n                if (folderView != null) {\n                    groupingsMap.set(f.id, this.result.folders.length);\n                    this.result.folders.push(folderView);\n                }\n            }\n            return groupingsMap;\n        });\n    }\n    parseCollections(data) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (data.collections == null) {\n                return null;\n            }\n            const groupingsMap = new Map();\n            for (const c of data.collections) {\n                let collectionView;\n                if (data.encrypted) {\n                    const collection = _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__.CollectionWithIdExport.toDomain(c);\n                    collection.organizationId = this.organizationId;\n                    collectionView = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.keyService.activeUserOrgKeys$).then((orgKeys) => collection.decrypt(orgKeys[c.organizationId]));\n                }\n                else {\n                    collectionView = _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_1__.CollectionWithIdExport.toView(c);\n                    collectionView.organizationId = null;\n                }\n                if (collectionView != null) {\n                    groupingsMap.set(c.id, this.result.collections.length);\n                    this.result.collections.push(collectionView);\n                }\n            }\n            return groupingsMap;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 19648 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/bitwarden/bitwarden-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/bitwarden/bitwarden-password-protected-importer.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/importer/src/importers/bitwarden/bitwarden-password-protected-importer.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenPasswordProtectedImporter: () => (/* binding */ BitwardenPasswordProtectedImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/auth/models/domain/kdf-config */ \"../../libs/common/src/auth/models/domain/kdf-config.ts\");\n/* harmony import */ var _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _bitwarden_json_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bitwarden-json-importer */ \"../../libs/importer/src/importers/bitwarden/bitwarden-json-importer.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass BitwardenPasswordProtectedImporter extends _bitwarden_json_importer__WEBPACK_IMPORTED_MODULE_4__.BitwardenJsonImporter {\n    constructor(keyService, encryptService, i18nService, cipherService, pinService, accountService, promptForPassword_callback) {\n        super(keyService, encryptService, i18nService, cipherService, pinService, accountService);\n        this.promptForPassword_callback = promptForPassword_callback;\n    }\n    parse(data) {\n        const _super = Object.create(null, {\n            parse: { get: () => super.parse }\n        });\n        return __awaiter(this, void 0, void 0, function* () {\n            const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n            const parsedData = JSON.parse(data);\n            if (!parsedData) {\n                result.success = false;\n                return result;\n            }\n            // File is unencrypted\n            if (!(parsedData === null || parsedData === void 0 ? void 0 : parsedData.encrypted)) {\n                return yield _super.parse.call(this, data);\n            }\n            // File is account-encrypted\n            if (!(parsedData === null || parsedData === void 0 ? void 0 : parsedData.passwordProtected)) {\n                return yield _super.parse.call(this, data);\n            }\n            if (this.cannotParseFile(parsedData)) {\n                result.success = false;\n                return result;\n            }\n            // File is password-protected\n            const password = yield this.promptForPassword_callback();\n            if (!(yield this.checkPassword(parsedData, password))) {\n                result.success = false;\n                result.errorMessage = this.i18nService.t(\"invalidFilePassword\");\n                return result;\n            }\n            const encData = new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString(parsedData.data);\n            const clearTextData = yield this.encryptService.decryptToUtf8(encData, this.key);\n            return yield _super.parse.call(this, clearTextData);\n        });\n    }\n    checkPassword(jdoc, password) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (this.isNullOrWhitespace(password)) {\n                return false;\n            }\n            const kdfConfig = jdoc.kdfType === _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_1__.KdfType.PBKDF2_SHA256\n                ? new _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__.PBKDF2KdfConfig(jdoc.kdfIterations)\n                : new _bitwarden_common_auth_models_domain_kdf_config__WEBPACK_IMPORTED_MODULE_0__.Argon2KdfConfig(jdoc.kdfIterations, jdoc.kdfMemory, jdoc.kdfParallelism);\n            this.key = yield this.pinService.makePinKey(password, jdoc.salt, kdfConfig);\n            const encKeyValidation = new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_2__.EncString(jdoc.encKeyValidation_DO_NOT_EDIT);\n            const encKeyValidationDecrypt = yield this.encryptService.decryptToUtf8(encKeyValidation, this.key);\n            if (encKeyValidationDecrypt === null) {\n                return false;\n            }\n            return true;\n        });\n    }\n    cannotParseFile(jdoc) {\n        return (!jdoc ||\n            !jdoc.encrypted ||\n            !jdoc.passwordProtected ||\n            !jdoc.salt ||\n            !jdoc.kdfIterations ||\n            typeof jdoc.kdfIterations !== \"number\" ||\n            jdoc.kdfType == null ||\n            _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_1__.KdfType[jdoc.kdfType] == null ||\n            !jdoc.encKeyValidation_DO_NOT_EDIT ||\n            !jdoc.data);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8996 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/bitwarden/bitwarden-password-protected-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/bitwarden/index.ts":
/*!************************************************************!*\
  !*** ../../libs/importer/src/importers/bitwarden/index.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BitwardenCsvImporter: () => (/* reexport safe */ _bitwarden_csv_importer__WEBPACK_IMPORTED_MODULE_0__.BitwardenCsvImporter),\n/* harmony export */   BitwardenJsonImporter: () => (/* reexport safe */ _bitwarden_json_importer__WEBPACK_IMPORTED_MODULE_1__.BitwardenJsonImporter),\n/* harmony export */   BitwardenPasswordProtectedImporter: () => (/* reexport safe */ _bitwarden_password_protected_importer__WEBPACK_IMPORTED_MODULE_2__.BitwardenPasswordProtectedImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_csv_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bitwarden-csv-importer */ \"../../libs/importer/src/importers/bitwarden/bitwarden-csv-importer.ts\");\n/* harmony import */ var _bitwarden_json_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bitwarden-json-importer */ \"../../libs/importer/src/importers/bitwarden/bitwarden-json-importer.ts\");\n/* harmony import */ var _bitwarden_password_protected_importer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bitwarden-password-protected-importer */ \"../../libs/importer/src/importers/bitwarden/bitwarden-password-protected-importer.ts\");\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2JpdHdhcmRlbi9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBZ0U7QUFDRTtBQUMyQiIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL2ltcG9ydGVycy9iaXR3YXJkZW4vaW5kZXgudHM/MGIxOCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBCaXR3YXJkZW5Dc3ZJbXBvcnRlciB9IGZyb20gXCIuL2JpdHdhcmRlbi1jc3YtaW1wb3J0ZXJcIjtcbmV4cG9ydCB7IEJpdHdhcmRlbkpzb25JbXBvcnRlciB9IGZyb20gXCIuL2JpdHdhcmRlbi1qc29uLWltcG9ydGVyXCI7XG5leHBvcnQgeyBCaXR3YXJkZW5QYXNzd29yZFByb3RlY3RlZEltcG9ydGVyIH0gZnJvbSBcIi4vYml0d2FyZGVuLXBhc3N3b3JkLXByb3RlY3RlZC1pbXBvcnRlclwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/bitwarden/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/blackberry-csv-importer.ts":
/*!********************************************************************!*\
  !*** ../../libs/importer/src/importers/blackberry-csv-importer.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BlackBerryCsvImporter: () => (/* binding */ BlackBerryCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass BlackBerryCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.grouping === \"list\") {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.favorite = value.fav === \"1\";\n            cipher.name = this.getValueOrDefault(value.name);\n            cipher.notes = this.getValueOrDefault(value.extra);\n            if (value.grouping !== \"note\") {\n                cipher.login.uris = this.makeUriArray(value.url);\n                cipher.login.password = this.getValueOrDefault(value.password);\n                cipher.login.username = this.getValueOrDefault(value.username);\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2JsYWNrYmVycnktY3N2LWltcG9ydGVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUF1RDtBQUVSO0FBR3hDLE1BQU0scUJBQXNCLFNBQVEsd0RBQVk7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ICAgIHRoaXMuY2xlYW51cENpcGhlcihjaXBoZXIpO1xuICAgICAgcmVzdWx0LmNpcGhlcnMucHVzaChjaXBoZXIpO1xuICAgIH0pO1xuXG4gICAgcmVzdWx0LnN1Y2Nlc3MgPSB0cnVlO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzdWx0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/blackberry-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/blur-csv-importer.ts":
/*!**************************************************************!*\
  !*** ../../libs/importer/src/importers/blur-csv-importer.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BlurCsvImporter: () => (/* binding */ BlurCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass BlurCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.label === \"null\") {\n                value.label = null;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.label, this.getValueOrDefault(this.nameFromUrl(value.domain), \"--\"));\n            cipher.login.uris = this.makeUriArray(value.domain);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            if (this.isNullOrWhitespace(value.email) && !this.isNullOrWhitespace(value.username)) {\n                cipher.login.username = value.username;\n            }\n            else {\n                cipher.login.username = this.getValueOrDefault(value.email);\n                cipher.notes = this.getValueOrDefault(value.username);\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2JsdXItY3N2LWltcG9ydGVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUF1RDtBQUVSO0FBR3hDLE1BQU0sZUFBZ0IsU0FBUSx3REFBWTtJQUMvQyxLQUFLLENBQUMsSUFBWTtRQUNoQixNQUFNLE1BQU0sR0FBRyxJQUFJLCtEQUFZLEVBQUUsQ0FBQztRQUNsQyxNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztRQUMxQyxJQUFJLE9BQU8sSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNwQixNQUFNLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQztZQUN2QixPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDakMsQ0FBQztRQUVELE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQyxLQUFLLEVBQUUsRUFBRTtZQUN4QixJQUFJLEtBQUssQ0FBQyxLQUFLLEtBQUssTUFBTSxFQUFFLENBQUM7Z0JBQzNCLEtBQUssQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDO1lBQ3JCLENBQUM7WUFDRCxNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsZUFBZSxFQUFFLENBQUM7WUFDdEMsTUFBTSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsaUJBQWlCLENBQ2xDLEtBQU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AgICAgIGNpcGhlci5uYW1lID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdChcbiAgICAgICAgdmFsdWUubGFiZWwsXG4gICAgICAgIHRoaXMuZ2V0VmFsdWVPckRlZmF1bHQodGhpcy5uYW1lRnJvbVVybCh2YWx1ZS5kb21haW4pLCBcIi0tXCIpLFxuICAgICAgKTtcbiAgICAgIGNpcGhlci5sb2dpbi51cmlzID0gdGhpcy5tYWtlVXJpQXJyYXkodmFsdWUuZG9tYWluKTtcbiAgICAgIGNpcGhlci5sb2dpbi5wYXNzd29yZCA9IHRoaXMuZ2V0VmFsdWVPckRlZmF1bHQodmFsdWUucGFzc3dvcmQpO1xuXG4gICAgICBpZiAodGhpcy5pc051bGxPcldoaXRlc3BhY2UodmFsdWUuZW1haWwpICYmICF0aGlzLmlzTnVsbE9yV2hpdGVzcGFjZSh2YWx1ZS51c2VybmFtZSkpIHtcbiAgICAgICAgY2lwaGVyLmxvZ2luLnVzZXJuYW1lID0gdmFsdWUudXNlcm5hbWU7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjaXBoZXIubG9naW4udXNlcm5hbWUgPSB0aGlzLmdldFZhbHVlT3JEZWZhdWx0KHZhbHVlLmVtYWlsKTtcbiAgICAgICAgY2lwaGVyLm5vdGVzID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh2YWx1ZS51c2VybmFtZSk7XG4gICAgICB9XG5cbiAgICAgIHRoaXMuY2xlYW51cENpcGhlcihjaXBoZXIpO1xuICAgICAgcmVzdWx0LmNpcGhlcnMucHVzaChjaXBoZXIpO1xuICAgIH0pO1xuXG4gICAgcmVzdWx0LnN1Y2Nlc3MgPSB0cnVlO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzdWx0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/blur-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/buttercup-csv-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/buttercup-csv-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ButtercupCsvImporter: () => (/* binding */ ButtercupCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nconst OfficialProps = [\"!group_id\", \"!group_name\", \"title\", \"username\", \"password\", \"URL\", \"id\"];\nclass ButtercupCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            this.processFolder(result, this.getValueOrDefault(value[\"!group_name\"]));\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.title, \"--\");\n            cipher.login.username = this.getValueOrDefault(value.username);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            cipher.login.uris = this.makeUriArray(value.URL);\n            let processingCustomFields = false;\n            for (const prop in value) {\n                // eslint-disable-next-line\n                if (value.hasOwnProperty(prop)) {\n                    if (!processingCustomFields && OfficialProps.indexOf(prop) === -1) {\n                        processingCustomFields = true;\n                    }\n                    if (processingCustomFields) {\n                        this.processKvp(cipher, prop, value[prop]);\n                    }\n                }\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4748 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/buttercup-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/chrome-csv-importer.ts":
/*!****************************************************************!*\
  !*** ../../libs/importer/src/importers/chrome-csv-importer.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ChromeCsvImporter: () => (/* binding */ ChromeCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass ChromeCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    constructor() {\n        super(...arguments);\n        this.androidPatternRegex = new RegExp(\"^android:\\\\/\\\\/.*(?<=@)(.*)(?=\\\\/)\");\n    }\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            let name = value.name;\n            if (!name && this.androidPatternRegex.test(value.url)) {\n                name = value.url.match(this.androidPatternRegex)[1];\n            }\n            cipher.name = this.getValueOrDefault(name, \"--\");\n            cipher.login.username = this.getValueOrDefault(value.username);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            cipher.login.uris = this.makeUriArray(value.url);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise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LnVzZXJuYW1lID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh2YWx1ZS51c2VybmFtZSk7XG4gICAgICBjaXBoZXIubG9naW4ucGFzc3dvcmQgPSB0aGlzLmdldFZhbHVlT3JEZWZhdWx0KHZhbHVlLnBhc3N3b3JkKTtcbiAgICAgIGNpcGhlci5sb2dpbi51cmlzID0gdGhpcy5tYWtlVXJpQXJyYXkodmFsdWUudXJsKTtcbiAgICAgIHRoaXMuY2xlYW51cENpcGhlcihjaXBoZXIpO1xuICAgICAgcmVzdWx0LmNpcGhlcnMucHVzaChjaXBoZXIpO1xuICAgIH0pO1xuXG4gICAgcmVzdWx0LnN1Y2Nlc3MgPSB0cnVlO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzdWx0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/chrome-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/clipperz-html-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/clipperz-html-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ClipperzHtmlImporter: () => (/* binding */ ClipperzHtmlImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass ClipperzHtmlImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const doc = this.parseXml(data);\n        if (doc == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const textarea = doc.querySelector(\"textarea\");\n        if (textarea == null || this.isNullOrWhitespace(textarea.textContent)) {\n            result.errorMessage = \"Missing textarea.\";\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const entries = JSON.parse(textarea.textContent);\n        entries.forEach((entry) => {\n            const cipher = this.initLoginCipher();\n            if (!this.isNullOrWhitespace(entry.label)) {\n                cipher.name = entry.label.split(\" \")[0];\n            }\n            if (entry.data != null && !this.isNullOrWhitespace(entry.data.notes)) {\n                cipher.notes = entry.data.notes.split(\"\\\\n\").join(\"\\n\");\n            }\n            if (entry.currentVersion != null && entry.currentVersion.fields != null) {\n                for (const property in entry.currentVersion.fields) {\n                    // eslint-disable-next-line\n                    if (!entry.currentVersion.fields.hasOwnProperty(property)) {\n                        continue;\n                    }\n                    const field = entry.currentVersion.fields[property];\n                    const actionType = field.actionType != null ? field.actionType.toLowerCase() : null;\n                    switch (actionType) {\n                        case \"password\":\n                            cipher.login.password = this.getValueOrDefault(field.value);\n                            break;\n                        case \"email\":\n                        case \"username\":\n                        case \"user\":\n                        case \"name\":\n                            cipher.login.username = this.getValueOrDefault(field.value);\n                            break;\n                        case \"url\":\n                            cipher.login.uris = this.makeUriArray(field.value);\n                            break;\n                        default: {\n                            const labelLower = field.label != null ? field.label.toLowerCase() : null;\n                            if (cipher.login.password == null &&\n                                this.passwordFieldNames.indexOf(labelLower) > -1) {\n                                cipher.login.password = this.getValueOrDefault(field.value);\n                            }\n                            else if (cipher.login.username == null &&\n                                this.usernameFieldNames.indexOf(labelLower) > -1) {\n                                cipher.login.username = this.getValueOrDefault(field.value);\n                            }\n                            else if ((cipher.login.uris == null || cipher.login.uris.length === 0) &&\n                                this.uriFieldNames.indexOf(labelLower) > -1) {\n                                cipher.login.uris = this.makeUriArray(field.value);\n                            }\n                            else {\n                                this.processKvp(cipher, field.label, field.value);\n                            }\n                            break;\n                        }\n                    }\n                }\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9068 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/clipperz-html-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/codebook-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/codebook-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CodebookCsvImporter: () => (/* binding */ CodebookCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass CodebookCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            this.processFolder(result, this.getValueOrDefault(value.Category));\n            const cipher = this.initLoginCipher();\n            cipher.favorite = this.getValueOrDefault(value.Favorite) === \"True\";\n            cipher.name = this.getValueOrDefault(value.Entry, \"--\");\n            cipher.notes = this.getValueOrDefault(value.Note);\n            cipher.login.username = this.getValueOrDefault(value.Username, value.Email);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.totp = this.getValueOrDefault(value.TOTP);\n            cipher.login.uris = this.makeUriArray(value.Website);\n            if (!this.isNullOrWhitespace(value.Username)) {\n                this.processKvp(cipher, \"Email\", value.Email);\n            }\n            this.processKvp(cipher, \"Phone\", value.Phone);\n            this.processKvp(cipher, \"PIN\", value.PIN);\n            this.processKvp(cipher, \"Account\", value.Account);\n            this.processKvp(cipher, \"Date\", value.Date);\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5120 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/codebook-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/dashlane/dashlane-csv-importer.ts":
/*!***************************************************************************!*\
  !*** ../../libs/importer/src/importers/dashlane/dashlane-csv-importer.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DashlaneCsvImporter: () => (/* binding */ DashlaneCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\nconst _mappedCredentialsColumns = new Set([\n    \"title\",\n    \"note\",\n    \"username\",\n    \"password\",\n    \"url\",\n    \"otpSecret\",\n    \"category\",\n]);\nconst _mappedPersonalInfoAsIdentityColumns = new Set([\n    \"type\",\n    \"title\",\n    \"first_name\",\n    \"middle_name\",\n    \"last_name\",\n    \"login\",\n    \"email\",\n    \"phone_number\",\n    \"address\",\n    \"country\",\n    \"state\",\n    \"city\",\n    \"zip\",\n    // Skip item_name as we already have set a combined name\n    \"item_name\",\n]);\nconst _mappedSecureNoteColumns = new Set([\"title\", \"note\"]);\nclass DashlaneCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_5__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_4__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        if (results[0].type != null && results[0].title != null) {\n            const personalRecords = results;\n            // If personalRecords has only one \"name\" then create an Identity-Cipher\n            if (personalRecords.filter((x) => x.type === \"name\").length === 1) {\n                const cipher = this.initLoginCipher();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n                results.forEach((row) => {\n                    this.parsePersonalInformationRecordAsIdentity(cipher, row);\n                });\n                this.cleanupCipher(cipher);\n                result.ciphers.push(cipher);\n                result.success = true;\n                return Promise.resolve(result);\n            }\n        }\n        results.forEach((row) => {\n            const cipher = this.initLoginCipher();\n            const rowKeys = Object.keys(row);\n            if (rowKeys[0] === \"username\") {\n                this.processFolder(result, row.category);\n                this.parseCredentialsRecord(cipher, row);\n            }\n            if (rowKeys[0] === \"type\" && rowKeys[1] === \"account_name\") {\n                this.parsePaymentRecord(cipher, row);\n            }\n            if (rowKeys[0] === \"type\" && rowKeys[1] === \"number\") {\n                this.parseIdRecord(cipher, row);\n            }\n            if ((rowKeys[0] === \"type\") != null && rowKeys[1] === \"title\") {\n                this.parsePersonalInformationRecord(cipher, row);\n            }\n            if (rowKeys[0] === \"title\" && rowKeys[1] === \"note\") {\n                this.parseSecureNoteRecords(cipher, row);\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseCredentialsRecord(cipher, row) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n        cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_3__.LoginView();\n        cipher.name = row.title;\n        cipher.notes = row.note;\n        cipher.login.username = row.username;\n        cipher.login.password = row.password;\n        cipher.login.totp = row.otpSecret;\n        cipher.login.uris = this.makeUriArray(row.url);\n        this.importUnmappedFields(cipher, row, _mappedCredentialsColumns);\n    }\n    parsePaymentRecord(cipher, row) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n        cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n        cipher.name = row.account_name;\n        let mappedValues = [];\n        switch (row.type) {\n            case \"credit_card\":\n                cipher.card.cardholderName = row.account_name;\n                cipher.card.number = row.cc_number;\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                cipher.card.code = row.code;\n                this.setCardExpiration(cipher, `${row.expiration_month}/${row.expiration_year}`);\n                // If you add more mapped fields please extend this\n                mappedValues = [\n                    \"account_name\",\n                    \"account_holder\",\n                    \"cc_number\",\n                    \"code\",\n                    \"expiration_month\",\n                    \"expiration_year\",\n                ];\n                break;\n            case \"bank\":\n                cipher.card.cardholderName = row.account_holder;\n                cipher.card.number = row.account_number;\n                // If you add more mapped fields please extend this\n                mappedValues = [\"account_name\", \"account_holder\", \"account_number\"];\n                break;\n            default:\n                break;\n        }\n        this.importUnmappedFields(cipher, row, new Set(mappedValues));\n    }\n    parseIdRecord(cipher, row) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n        cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n        const mappedValues = [\"name\", \"number\"];\n        switch (row.type) {\n            case \"card\":\n                cipher.name = `${row.name} ${row.type}`;\n                this.processFullName(cipher, row.name);\n                cipher.identity.licenseNumber = row.number;\n                break;\n            case \"passport\":\n                cipher.name = `${row.name} ${row.type}`;\n                this.processFullName(cipher, row.name);\n                cipher.identity.passportNumber = row.number;\n                break;\n            case \"license\":\n                cipher.name = `${row.name} ${row.type}`;\n                this.processFullName(cipher, row.name);\n                cipher.identity.licenseNumber = row.number;\n                cipher.identity.state = row.state;\n                mappedValues.push(\"state\");\n                break;\n            case \"social_security\":\n                cipher.name = `${row.name} ${row.type}`;\n                this.processFullName(cipher, row.name);\n                cipher.identity.ssn = row.number;\n                break;\n            case \"tax_number\":\n                cipher.name = row.type;\n                cipher.identity.licenseNumber = row.number;\n                break;\n            default:\n                break;\n        }\n        // If you add more mapped fields please extend this\n        this.importUnmappedFields(cipher, row, new Set(mappedValues));\n    }\n    parsePersonalInformationRecord(cipher, row) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n        if (row.type === \"name\") {\n            cipher.name = `${row.title} ${row.first_name} ${row.middle_name} ${row.last_name}`\n                .replace(\"  \", \" \")\n                .trim();\n        }\n        else {\n            cipher.name = row.item_name;\n        }\n        const dataRow = row;\n        Object.keys(row).forEach((key) => {\n            this.processKvp(cipher, key, dataRow[key]);\n        });\n    }\n    parsePersonalInformationRecordAsIdentity(cipher, row) {\n        switch (row.type) {\n            case \"name\":\n                this.processFullName(cipher, `${row.first_name} ${row.middle_name} ${row.last_name}`);\n                cipher.identity.title = row.title;\n                cipher.name = cipher.identity.fullName;\n                cipher.identity.username = row.login;\n                break;\n            case \"email\":\n                cipher.identity.email = row.email;\n                break;\n            case \"number\":\n                cipher.identity.phone = row.phone_number;\n                break;\n            case \"address\":\n                cipher.identity.address1 = row.address;\n                cipher.identity.city = row.city;\n                cipher.identity.postalCode = row.zip;\n                cipher.identity.state = row.state;\n                cipher.identity.country = row.country;\n                break;\n            default:\n                break;\n        }\n        this.importUnmappedFields(cipher, row, _mappedPersonalInfoAsIdentityColumns);\n    }\n    parseSecureNoteRecords(cipher, row) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n        cipher.name = row.title;\n        cipher.notes = row.note;\n        this.importUnmappedFields(cipher, row, _mappedSecureNoteColumns);\n    }\n    importUnmappedFields(cipher, row, mappedValues) {\n        const unmappedFields = Object.keys(row).filter((x) => !mappedValues.has(x));\n        unmappedFields.forEach((key) => {\n            const item = row;\n            this.processKvp(cipher, key, item[key]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 22740 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/dashlane/dashlane-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/dashlane/dashlane-json-importer.ts":
/*!****************************************************************************!*\
  !*** ../../libs/importer/src/importers/dashlane/dashlane-json-importer.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DashlaneJsonImporter: () => (/* binding */ DashlaneJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\n\nconst HandledResults = new Set([\n    \"ADDRESS\",\n    \"AUTHENTIFIANT\",\n    \"BANKSTATEMENT\",\n    \"IDCARD\",\n    \"IDENTITY\",\n    \"PAYMENTMEANS_CREDITCARD\",\n    \"PAYMENTMEAN_PAYPAL\",\n    \"EMAIL\",\n]);\nclass DashlaneJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_6__.BaseImporter {\n    parse(data) {\n        this.result = new _models_import_result__WEBPACK_IMPORTED_MODULE_5__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || results.length === 0) {\n            this.result.success = false;\n            return Promise.resolve(this.result);\n        }\n        if (results.ADDRESS != null) {\n            this.processAddress(results.ADDRESS);\n        }\n        if (results.AUTHENTIFIANT != null) {\n            this.processAuth(results.AUTHENTIFIANT);\n        }\n        if (results.BANKSTATEMENT != null) {\n            this.processNote(results.BANKSTATEMENT, \"BankAccountName\");\n        }\n        if (results.IDCARD != null) {\n            this.processNote(results.IDCARD, \"Fullname\");\n        }\n        if (results.PAYMENTMEANS_CREDITCARD != null) {\n            this.processCard(results.PAYMENTMEANS_CREDITCARD);\n        }\n        if (results.IDENTITY != null) {\n            this.processIdentity(results.IDENTITY);\n        }\n        for (const key in results) {\n            // eslint-disable-next-line\n            if (results.hasOwnProperty(key) && !HandledResults.has(key)) {\n                this.processNote(results[key], null, \"Generic Note\");\n            }\n        }\n        this.result.success = true;\n        return Promise.resolve(this.result);\n    }\n    processAuth(results) {\n        results.forEach((credential) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(credential.title);\n            cipher.login.username = this.getValueOrDefault(credential.login, this.getValueOrDefault(credential.secondaryLogin));\n            if (this.isNullOrWhitespace(cipher.login.username)) {\n                cipher.login.username = this.getValueOrDefault(credential.email);\n            }\n            else if (!this.isNullOrWhitespace(credential.email)) {\n                cipher.notes = \"Email: \" + credential.email + \"\\n\";\n            }\n            cipher.login.password = this.getValueOrDefault(credential.password);\n            cipher.login.uris = this.makeUriArray(credential.domain);\n            cipher.notes += this.getValueOrDefault(credential.note, \"\");\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n        });\n    }\n    processIdentity(results) {\n        results.forEach((obj) => {\n            const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView();\n            cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_3__.IdentityView();\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n            cipher.name = this.getValueOrDefault(obj.fullName, \"\");\n            const nameParts = cipher.name.split(\" \");\n            if (nameParts.length > 0) {\n                cipher.identity.firstName = this.getValueOrDefault(nameParts[0]);\n            }\n            if (nameParts.length === 2) {\n                cipher.identity.lastName = this.getValueOrDefault(nameParts[1]);\n            }\n            else if (nameParts.length === 3) {\n                cipher.identity.middleName = this.getValueOrDefault(nameParts[1]);\n                cipher.identity.lastName = this.getValueOrDefault(nameParts[2]);\n            }\n            cipher.identity.username = this.getValueOrDefault(obj.pseudo);\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n        });\n    }\n    processAddress(results) {\n        results.forEach((obj) => {\n            const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView();\n            cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_3__.IdentityView();\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n            cipher.name = this.getValueOrDefault(obj.addressName);\n            cipher.identity.address1 = this.getValueOrDefault(obj.addressFull);\n            cipher.identity.city = this.getValueOrDefault(obj.city);\n            cipher.identity.state = this.getValueOrDefault(obj.state);\n            cipher.identity.postalCode = this.getValueOrDefault(obj.zipcode);\n            cipher.identity.country = this.getValueOrDefault(obj.country);\n            if (cipher.identity.country != null) {\n                cipher.identity.country = cipher.identity.country.toUpperCase();\n            }\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n        });\n    }\n    processCard(results) {\n        results.forEach((obj) => {\n            const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView();\n            cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n            cipher.name = this.getValueOrDefault(obj.bank);\n            cipher.card.number = this.getValueOrDefault(obj.cardNumber);\n            cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n            cipher.card.cardholderName = this.getValueOrDefault(obj.owner);\n            if (!this.isNullOrWhitespace(cipher.card.brand)) {\n                if (this.isNullOrWhitespace(cipher.name)) {\n                    cipher.name = cipher.card.brand;\n                }\n                else {\n                    cipher.name += \" - \" + cipher.card.brand;\n                }\n            }\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n        });\n    }\n    processNote(results, nameProperty, name = null) {\n        results.forEach((obj) => {\n            const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView();\n            cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_4__.SecureNoteView();\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n            cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n            if (name != null) {\n                cipher.name = name;\n            }\n            else {\n                cipher.name = this.getValueOrDefault(obj[nameProperty]);\n            }\n            for (const key in obj) {\n                // eslint-disable-next-line\n                if (obj.hasOwnProperty(key) && key !== nameProperty) {\n                    this.processKvp(cipher, key, obj[key].toString());\n                }\n            }\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 17496 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/dashlane/dashlane-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/dashlane/index.ts":
/*!***********************************************************!*\
  !*** ../../libs/importer/src/importers/dashlane/index.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DashlaneCsvImporter: () => (/* reexport safe */ _dashlane_csv_importer__WEBPACK_IMPORTED_MODULE_0__.DashlaneCsvImporter),\n/* harmony export */   DashlaneJsonImporter: () => (/* reexport safe */ _dashlane_json_importer__WEBPACK_IMPORTED_MODULE_1__.DashlaneJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _dashlane_csv_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dashlane-csv-importer */ \"../../libs/importer/src/importers/dashlane/dashlane-csv-importer.ts\");\n/* harmony import */ var _dashlane_json_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dashlane-json-importer */ \"../../libs/importer/src/importers/dashlane/dashlane-json-importer.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2Rhc2hsYW5lL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBOEQ7QUFDRSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL2ltcG9ydGVycy9kYXNobGFuZS9pbmRleC50cz8zY2UzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IERhc2hsYW5lQ3N2SW1wb3J0ZXIgfSBmcm9tIFwiLi9kYXNobGFuZS1jc3YtaW1wb3J0ZXJcIjtcbmV4cG9ydCB7IERhc2hsYW5lSnNvbkltcG9ydGVyIH0gZnJvbSBcIi4vZGFzaGxhbmUtanNvbi1pbXBvcnRlclwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/dashlane/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/encryptr-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/encryptr-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EncryptrCsvImporter: () => (/* binding */ EncryptrCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\nclass EncryptrCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.Label, \"--\");\n            cipher.notes = this.getValueOrDefault(value.Notes);\n            const text = this.getValueOrDefault(value.Text);\n            if (!this.isNullOrWhitespace(text)) {\n                if (this.isNullOrWhitespace(cipher.notes)) {\n                    cipher.notes = text;\n                }\n                else {\n                    cipher.notes += \"\\n\\n\" + text;\n                }\n            }\n            const type = value[\"Entry Type\"];\n            if (type === \"Password\") {\n                cipher.login.username = this.getValueOrDefault(value.Username);\n                cipher.login.password = this.getValueOrDefault(value.Password);\n                cipher.login.uris = this.makeUriArray(value[\"Site URL\"]);\n            }\n            else if (type === \"Credit Card\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                cipher.card.cardholderName = this.getValueOrDefault(value[\"Name on card\"]);\n                cipher.card.number = this.getValueOrDefault(value[\"Card Number\"]);\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                cipher.card.code = this.getValueOrDefault(value.CVV);\n                const expiry = this.getValueOrDefault(value.Expiry);\n                if (!this.isNullOrWhitespace(expiry)) {\n                    const expParts = expiry.split(\"/\");\n                    if (expParts.length > 1) {\n                        cipher.card.expMonth = parseInt(expParts[0], null).toString();\n                        cipher.card.expYear = (2000 + parseInt(expParts[1], null)).toString();\n                    }\n                }\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6828 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/encryptr-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/enpass/enpass-csv-importer.ts":
/*!***********************************************************************!*\
  !*** ../../libs/importer/src/importers/enpass/enpass-csv-importer.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnpassCsvImporter: () => (/* binding */ EnpassCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\nclass EnpassCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        let firstRow = true;\n        results.forEach((value) => {\n            if (value.length < 2 || (firstRow && (value[0] === \"Title\" || value[0] === \"title\"))) {\n                firstRow = false;\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValueOrDefault(value[value.length - 1]);\n            cipher.name = this.getValueOrDefault(value[0], \"--\");\n            if (value.length === 2 ||\n                (!this.containsField(value, \"username\") &&\n                    !this.containsField(value, \"password\") &&\n                    !this.containsField(value, \"email\") &&\n                    !this.containsField(value, \"url\"))) {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView();\n                cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n            }\n            if (this.containsField(value, \"cardholder\") &&\n                this.containsField(value, \"number\") &&\n                this.containsField(value, \"expiry date\")) {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n            }\n            if (value.length > 2 && value.length % 2 === 0) {\n                for (let i = 0; i < value.length - 2; i += 2) {\n                    const fieldValue = value[i + 2];\n                    if (this.isNullOrWhitespace(fieldValue)) {\n                        continue;\n                    }\n                    const fieldName = value[i + 1];\n                    const fieldNameLower = fieldName.toLowerCase();\n                    if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login) {\n                        if (fieldNameLower === \"url\" &&\n                            (cipher.login.uris == null || cipher.login.uris.length === 0)) {\n                            cipher.login.uris = this.makeUriArray(fieldValue);\n                            continue;\n                        }\n                        else if ((fieldNameLower === \"username\" || fieldNameLower === \"email\") &&\n                            this.isNullOrWhitespace(cipher.login.username)) {\n                            cipher.login.username = fieldValue;\n                            continue;\n                        }\n                        else if (fieldNameLower === \"password\" &&\n                            this.isNullOrWhitespace(cipher.login.password)) {\n                            cipher.login.password = fieldValue;\n                            continue;\n                        }\n                        else if (fieldNameLower === \"totp\" && this.isNullOrWhitespace(cipher.login.totp)) {\n                            cipher.login.totp = fieldValue;\n                            continue;\n                        }\n                    }\n                    else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card) {\n                        if (fieldNameLower === \"cardholder\" &&\n                            this.isNullOrWhitespace(cipher.card.cardholderName)) {\n                            cipher.card.cardholderName = fieldValue;\n                            continue;\n                        }\n                        else if (fieldNameLower === \"number\" && this.isNullOrWhitespace(cipher.card.number)) {\n                            cipher.card.number = fieldValue;\n                            cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                            continue;\n                        }\n                        else if (fieldNameLower === \"cvc\" && this.isNullOrWhitespace(cipher.card.code)) {\n                            cipher.card.code = fieldValue;\n                            continue;\n                        }\n                        else if (fieldNameLower === \"expiry date\" &&\n                            this.isNullOrWhitespace(cipher.card.expMonth) &&\n                            this.isNullOrWhitespace(cipher.card.expYear)) {\n                            if (this.setCardExpiration(cipher, fieldValue)) {\n                                continue;\n                            }\n                        }\n                        else if (fieldNameLower === \"type\") {\n                            // Skip since brand was determined from number above\n                            continue;\n                        }\n                    }\n                    this.processKvp(cipher, fieldName, fieldValue);\n                }\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    containsField(fields, name) {\n        if (fields == null || name == null) {\n            return false;\n        }\n        return (fields.filter((f) => !this.isNullOrWhitespace(f) && f.toLowerCase() === name.toLowerCase())\n            .length > 0);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12692 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/enpass/enpass-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/enpass/enpass-json-importer.ts":
/*!************************************************************************!*\
  !*** ../../libs/importer/src/importers/enpass/enpass-json-importer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnpassJsonImporter: () => (/* binding */ EnpassJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\nconst androidUrlRegex = new RegExp(\"androidapp://.*==@\", \"g\");\nclass EnpassJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || results.items == null || results.items.length === 0) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const foldersMap = new Map();\n        const foldersIndexMap = new Map();\n        const folderTree = this.buildFolderTree(results.folders);\n        this.flattenFolderTree(null, folderTree, foldersMap);\n        foldersMap.forEach((val, key) => {\n            foldersIndexMap.set(key, result.folders.length);\n            const f = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_2__.FolderView();\n            f.name = val;\n            result.folders.push(f);\n        });\n        results.items.forEach((item) => {\n            if (item.folders != null && item.folders.length > 0 && foldersIndexMap.has(item.folders[0])) {\n                result.folderRelationships.push([\n                    result.ciphers.length,\n                    foldersIndexMap.get(item.folders[0]),\n                ]);\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(item.title);\n            cipher.favorite = item.favorite > 0;\n            if (item.template_type != null && item.fields != null && item.fields.length > 0) {\n                if (item.template_type.indexOf(\"login.\") === 0 ||\n                    item.template_type.indexOf(\"password.\") === 0) {\n                    this.processLogin(cipher, item.fields);\n                }\n                else if (item.template_type.indexOf(\"creditcard.\") === 0) {\n                    this.processCard(cipher, item.fields);\n                }\n                else if (item.template_type.indexOf(\"identity.\") < 0 &&\n                    item.fields.some((f) => f.type === \"password\" && !this.isNullOrWhitespace(f.value))) {\n                    this.processLogin(cipher, item.fields);\n                }\n                else {\n                    this.processNote(cipher, item.fields);\n                }\n            }\n            cipher.notes += \"\\n\" + this.getValueOrDefault(item.note, \"\");\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    processLogin(cipher, fields) {\n        const urls = [];\n        fields.forEach((field) => {\n            if (this.isNullOrWhitespace(field.value) || field.type === \"section\") {\n                return;\n            }\n            if ((field.type === \"username\" || field.type === \"email\") &&\n                this.isNullOrWhitespace(cipher.login.username)) {\n                cipher.login.username = field.value;\n            }\n            else if (field.type === \"password\" && this.isNullOrWhitespace(cipher.login.password)) {\n                cipher.login.password = field.value;\n            }\n            else if (field.type === \"totp\" && this.isNullOrWhitespace(cipher.login.totp)) {\n                cipher.login.totp = field.value;\n            }\n            else if (field.type === \"url\") {\n                urls.push(field.value);\n            }\n            else if (field.type === \".Android#\") {\n                let cleanedValue = field.value.startsWith(\"androidapp://\")\n                    ? field.value\n                    : \"androidapp://\" + field.value;\n                cleanedValue = cleanedValue.replace(\"android://\", \"\");\n                cleanedValue = cleanedValue.replace(androidUrlRegex, \"androidapp://\");\n                urls.push(cleanedValue);\n            }\n            else {\n                this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n            }\n        });\n        cipher.login.uris = this.makeUriArray(urls);\n    }\n    processCard(cipher, fields) {\n        cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n        fields.forEach((field) => {\n            if (this.isNullOrWhitespace(field.value) ||\n                field.type === \"section\" ||\n                field.type === \"ccType\") {\n                return;\n            }\n            if (field.type === \"ccName\" && this.isNullOrWhitespace(cipher.card.cardholderName)) {\n                cipher.card.cardholderName = field.value;\n            }\n            else if (field.type === \"ccNumber\" && this.isNullOrWhitespace(cipher.card.number)) {\n                cipher.card.number = field.value;\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n            }\n            else if (field.type === \"ccCvc\" && this.isNullOrWhitespace(cipher.card.code)) {\n                cipher.card.code = field.value;\n            }\n            else if (field.type === \"ccExpiry\" && this.isNullOrWhitespace(cipher.card.expYear)) {\n                if (!this.setCardExpiration(cipher, field.value)) {\n                    this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                }\n            }\n            else {\n                this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n            }\n        });\n    }\n    processNote(cipher, fields) {\n        fields.forEach((field) => {\n            if (this.isNullOrWhitespace(field.value) || field.type === \"section\") {\n                return;\n            }\n            this.processKvp(cipher, field.label, field.value, field.sensitive === 1 ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n        });\n    }\n    buildFolderTree(folders) {\n        if (folders == null) {\n            return [];\n        }\n        const folderTree = [];\n        const map = new Map([]);\n        folders.forEach((obj) => {\n            map.set(obj.uuid, obj);\n            obj.children = [];\n        });\n        folders.forEach((obj) => {\n            if (obj.parent_uuid != null && obj.parent_uuid !== \"\" && map.has(obj.parent_uuid)) {\n                map.get(obj.parent_uuid).children.push(obj);\n            }\n            else {\n                folderTree.push(obj);\n            }\n        });\n        return folderTree;\n    }\n    flattenFolderTree(titlePrefix, tree, map) {\n        if (tree == null) {\n            return;\n        }\n        tree.forEach((f) => {\n            if (f.title != null && f.title.trim() !== \"\") {\n                let title = f.title.trim();\n                if (titlePrefix != null && titlePrefix.trim() !== \"\") {\n                    title = titlePrefix + \"/\" + title;\n                }\n                map.set(f.uuid, title);\n                if (f.children != null && f.children.length !== 0) {\n                    this.flattenFolderTree(title, f.children, map);\n                }\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20396 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/enpass/enpass-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/enpass/index.ts":
/*!*********************************************************!*\
  !*** ../../libs/importer/src/importers/enpass/index.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EnpassCsvImporter: () => (/* reexport safe */ _enpass_csv_importer__WEBPACK_IMPORTED_MODULE_0__.EnpassCsvImporter),\n/* harmony export */   EnpassJsonImporter: () => (/* reexport safe */ _enpass_json_importer__WEBPACK_IMPORTED_MODULE_1__.EnpassJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _enpass_csv_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enpass-csv-importer */ \"../../libs/importer/src/importers/enpass/enpass-csv-importer.ts\");\n/* harmony import */ var _enpass_json_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./enpass-json-importer */ \"../../libs/importer/src/importers/enpass/enpass-json-importer.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2VucGFzcy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQTBEO0FBQ0UiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2ltcG9ydGVyL3NyYy9pbXBvcnRlcnMvZW5wYXNzL2luZGV4LnRzP2VlNzMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRW5wYXNzQ3N2SW1wb3J0ZXIgfSBmcm9tIFwiLi9lbnBhc3MtY3N2LWltcG9ydGVyXCI7XG5leHBvcnQgeyBFbnBhc3NKc29uSW1wb3J0ZXIgfSBmcm9tIFwiLi9lbnBhc3MtanNvbi1pbXBvcnRlclwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/enpass/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/firefox-csv-importer.ts":
/*!*****************************************************************!*\
  !*** ../../libs/importer/src/importers/firefox-csv-importer.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FirefoxCsvImporter: () => (/* binding */ FirefoxCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass FirefoxCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results\n            .filter((value) => {\n            return value.url !== \"chrome://FirefoxAccounts\";\n        })\n            .forEach((value) => {\n            const cipher = this.initLoginCipher();\n            const url = this.getValueOrDefault(value.url, this.getValueOrDefault(value.hostname));\n            cipher.name = this.getValueOrDefault(this.nameFromUrl(url), \"--\");\n            cipher.login.username = this.getValueOrDefault(value.username);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            cipher.login.uris = this.makeUriArray(url);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2ZpcmVmb3gtY3N2LWltcG9ydGVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUF1RDtBQUVSO0FBR3hDLE1BQU0sa0JBQW1CLFNBQVEsd0RBQVk7SUFDbEQsS0FBSyxDQUFDLElBQVk7UUFDaEIsTUFBTSxNQUFNLEdBQUcsSUFBSSwrREFBWSxFQUFFLENBQUM7UUFDb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al:///../../libs/importer/src/importers/firefox-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/fsecure/fsecure-fsk-importer.ts":
/*!*************************************************************************!*\
  !*** ../../libs/importer/src/importers/fsecure/fsecure-fsk-importer.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FSecureFskImporter: () => (/* binding */ FSecureFskImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n/* harmony import */ var _fsecure_fsk_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fsecure-fsk-types */ \"../../libs/importer/src/importers/fsecure/fsecure-fsk-types.ts\");\n\n\n\n\n\nclass FSecureFskImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || results.data == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        for (const key in results.data) {\n            // eslint-disable-next-line\n            if (!results.data.hasOwnProperty(key)) {\n                continue;\n            }\n            const value = results.data[key];\n            const cipher = this.parseEntry(value);\n            result.ciphers.push(cipher);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseEntry(entry) {\n        const cipher = this.initLoginCipher();\n        cipher.name = this.getValueOrDefault(entry.service);\n        cipher.notes = this.getValueOrDefault(entry.notes);\n        cipher.favorite = entry.favorite > 0;\n        switch (entry.type) {\n            case _fsecure_fsk_types__WEBPACK_IMPORTED_MODULE_4__.FskEntryTypesEnum.Login:\n                this.handleLoginEntry(entry, cipher);\n                break;\n            case _fsecure_fsk_types__WEBPACK_IMPORTED_MODULE_4__.FskEntryTypesEnum.CreditCard:\n                this.handleCreditCardEntry(entry, cipher);\n                break;\n            default:\n                return;\n                break;\n        }\n        this.convertToNoteIfNeeded(cipher);\n        this.cleanupCipher(cipher);\n        return cipher;\n    }\n    handleLoginEntry(entry, cipher) {\n        cipher.login.username = this.getValueOrDefault(entry.username);\n        cipher.login.password = this.getValueOrDefault(entry.password);\n        cipher.login.uris = this.makeUriArray(entry.url);\n    }\n    handleCreditCardEntry(entry, cipher) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n        cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n        cipher.card.cardholderName = this.getValueOrDefault(entry.username);\n        cipher.card.number = this.getValueOrDefault(entry.creditNumber);\n        cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n        cipher.card.code = this.getValueOrDefault(entry.creditCvv);\n        if (!this.isNullOrWhitespace(entry.creditExpiry)) {\n            if (!this.setCardExpiration(cipher, entry.creditExpiry)) {\n                this.processKvp(cipher, \"Expiration\", entry.creditExpiry);\n            }\n        }\n        if (!this.isNullOrWhitespace(entry.password)) {\n            this.processKvp(cipher, \"PIN\", entry.password);\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7564 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/fsecure/fsecure-fsk-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/fsecure/fsecure-fsk-types.ts":
/*!**********************************************************************!*\
  !*** ../../libs/importer/src/importers/fsecure/fsecure-fsk-types.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FskEntryTypesEnum: () => (/* binding */ FskEntryTypesEnum)\n/* harmony export */ });\nvar FskEntryTypesEnum;\n(function (FskEntryTypesEnum) {\n    FskEntryTypesEnum[FskEntryTypesEnum[\"Login\"] = 1] = \"Login\";\n    FskEntryTypesEnum[FskEntryTypesEnum[\"CreditCard\"] = 2] = \"CreditCard\";\n})(FskEntryTypesEnum || (FskEntryTypesEnum = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2ZzZWN1cmUvZnNlY3VyZS1mc2stdHlwZXMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQVFBLElBQVksaUJBR1g7QUFIRCxXQUFZLGlCQUFpQjtJQUMzQiwyREFBUztJQUNULHFFQUFjO0FBQ2hCLENBQUMsRUFIVyxpQkFBaUIsS0FBakIsaUJBQWlCLFFBRzVCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2ZzZWN1cmUvZnNlY3VyZS1mc2stdHlwZXMudHM/YTJjYSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEZza0ZpbGUge1xuICBkYXRhOiBEYXRhO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIERhdGEge1xuICBba2V5OiBzdHJpbmddOiBGc2tFbnRyeTtcbn1cblxuZXhwb3J0IGVudW0gRnNrRW50cnlUeXBlc0VudW0ge1xuICBMb2dpbiA9IDEsXG4gIENyZWRpdENhcmQgPSAyLFxufVxuXG5leHBvcnQgaW50ZXJmYWNlIEZza0VudHJ5IHtcbiAgY29sb3I6IHN0cmluZztcbiAgY3JlZGl0Q3Z2OiBzdHJpbmc7XG4gIGNyZWRpdEV4cGlyeTogc3RyaW5nO1xuICBjcmVkaXROdW1iZXI6IHN0cmluZztcbiAgZmF2b3JpdGU6IG51bWJlcjsgLy8gVU5JWCB0aW1lc3RhbXBcbiAgbm90ZXM6IHN0cmluZztcbiAgcGFzc3dvcmQ6IHN0cmluZztcbiAgcGFzc3dvcmRMaXN0OiBQYXNzd29yZExpc3RbXTtcbiAgcGFzc3dvcmRNb2RpZmllZERhdGU6IG51bWJlcjsgLy8gVU5JWCB0aW1lc3RhbXBcbiAgcmV2OiBzdHJpbmcgfCBudW1iZXI7XG4gIHNlcnZpY2U6IHN0cmluZztcbiAgc3R5bGU6IHN0cmluZztcbiAgdHlwZTogRnNrRW50cnlUeXBlc0VudW07XG4gIHVybDogc3RyaW5nO1xuICB1c2VybmFtZTogc3RyaW5nO1xuICBjcmVhdGVkRGF0ZTogbnVtYmVyOyAvLyBVTklYIHRpbWVzdGFtcFxuICBtb2RpZmllZERhdGU6IG51bWJlcjsgLy8gVU5JWCB0aW1lc3RhbXBcbn1cblxuZXhwb3J0IGludGVyZmFjZSBQYXNzd29yZExpc3Qge1xuICBjaGFuZ2VkYXRlOiBzdHJpbmc7XG4gIHBhc3N3b3JkOiBzdHJpbmc7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/fsecure/fsecure-fsk-types.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/gnome-json-importer.ts":
/*!****************************************************************!*\
  !*** ../../libs/importer/src/importers/gnome-json-importer.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GnomeJsonImporter: () => (/* binding */ GnomeJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass GnomeJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || Object.keys(results).length === 0) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        for (const keyRing in results) {\n            if (!results.hasOwnProperty(keyRing) || // eslint-disable-line\n                this.isNullOrWhitespace(keyRing) ||\n                results[keyRing].length === 0) {\n                continue;\n            }\n            results[keyRing].forEach((value) => {\n                if (this.isNullOrWhitespace(value.display_name) ||\n                    value.display_name.indexOf(\"http\") !== 0) {\n                    return;\n                }\n                this.processFolder(result, keyRing);\n                const cipher = this.initLoginCipher();\n                cipher.name = value.display_name.replace(\"http://\", \"\").replace(\"https://\", \"\");\n                if (cipher.name.length > 30) {\n                    cipher.name = cipher.name.substring(0, 30);\n                }\n                cipher.login.password = this.getValueOrDefault(value.secret);\n                cipher.login.uris = this.makeUriArray(value.display_name);\n                if (value.attributes != null) {\n                    cipher.login.username =\n                        value.attributes != null\n                            ? this.getValueOrDefault(value.attributes.username_value)\n                            : null;\n                    for (const attr in value.attributes) {\n                        if (!value.attributes.hasOwnProperty(attr) || // eslint-disable-line\n                            attr === \"username_value\" ||\n                            attr === \"xdg:schema\") {\n                            continue;\n                        }\n                        this.processKvp(cipher, attr, value.attributes[attr]);\n                    }\n                }\n                this.convertToNoteIfNeeded(cipher);\n                this.cleanupCipher(cipher);\n                result.ciphers.push(cipher);\n            });\n        }\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6280 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/gnome-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/index.ts":
/*!**************************************************!*\
  !*** ../../libs/importer/src/importers/index.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AscendoCsvImporter: () => (/* reexport safe */ _ascendo_csv_importer__WEBPACK_IMPORTED_MODULE_0__.AscendoCsvImporter),\n/* harmony export */   AvastCsvImporter: () => (/* reexport safe */ _avast__WEBPACK_IMPORTED_MODULE_1__.AvastCsvImporter),\n/* harmony export */   AvastJsonImporter: () => (/* reexport safe */ _avast__WEBPACK_IMPORTED_MODULE_1__.AvastJsonImporter),\n/* harmony export */   AviraCsvImporter: () => (/* reexport safe */ _avira_csv_importer__WEBPACK_IMPORTED_MODULE_2__.AviraCsvImporter),\n/* harmony export */   BitwardenCsvImporter: () => (/* reexport safe */ _bitwarden__WEBPACK_IMPORTED_MODULE_5__.BitwardenCsvImporter),\n/* harmony export */   BitwardenJsonImporter: () => (/* reexport safe */ _bitwarden__WEBPACK_IMPORTED_MODULE_5__.BitwardenJsonImporter),\n/* harmony export */   BitwardenPasswordProtectedImporter: () => (/* reexport safe */ _bitwarden__WEBPACK_IMPORTED_MODULE_5__.BitwardenPasswordProtectedImporter),\n/* harmony export */   BlackBerryCsvImporter: () => (/* reexport safe */ _blackberry_csv_importer__WEBPACK_IMPORTED_MODULE_3__.BlackBerryCsvImporter),\n/* harmony export */   BlurCsvImporter: () => (/* reexport safe */ _blur_csv_importer__WEBPACK_IMPORTED_MODULE_6__.BlurCsvImporter),\n/* harmony export */   ButtercupCsvImporter: () => (/* reexport safe */ _buttercup_csv_importer__WEBPACK_IMPORTED_MODULE_7__.ButtercupCsvImporter),\n/* harmony export */   ChromeCsvImporter: () => (/* reexport safe */ _chrome_csv_importer__WEBPACK_IMPORTED_MODULE_4__.ChromeCsvImporter),\n/* harmony export */   ClipperzHtmlImporter: () => (/* reexport safe */ _clipperz_html_importer__WEBPACK_IMPORTED_MODULE_8__.ClipperzHtmlImporter),\n/* harmony export */   CodebookCsvImporter: () => (/* reexport safe */ _codebook_csv_importer__WEBPACK_IMPORTED_MODULE_9__.CodebookCsvImporter),\n/* harmony export */   DashlaneCsvImporter: () => (/* reexport safe */ _dashlane__WEBPACK_IMPORTED_MODULE_10__.DashlaneCsvImporter),\n/* harmony export */   DashlaneJsonImporter: () => (/* reexport safe */ _dashlane__WEBPACK_IMPORTED_MODULE_10__.DashlaneJsonImporter),\n/* harmony export */   EncryptrCsvImporter: () => (/* reexport safe */ _encryptr_csv_importer__WEBPACK_IMPORTED_MODULE_11__.EncryptrCsvImporter),\n/* harmony export */   EnpassCsvImporter: () => (/* reexport safe */ _enpass__WEBPACK_IMPORTED_MODULE_12__.EnpassCsvImporter),\n/* harmony export */   EnpassJsonImporter: () => (/* reexport safe */ _enpass__WEBPACK_IMPORTED_MODULE_12__.EnpassJsonImporter),\n/* harmony export */   FSecureFskImporter: () => (/* reexport safe */ _fsecure_fsecure_fsk_importer__WEBPACK_IMPORTED_MODULE_14__.FSecureFskImporter),\n/* harmony export */   FirefoxCsvImporter: () => (/* reexport safe */ _firefox_csv_importer__WEBPACK_IMPORTED_MODULE_13__.FirefoxCsvImporter),\n/* harmony export */   GnomeJsonImporter: () => (/* reexport safe */ _gnome_json_importer__WEBPACK_IMPORTED_MODULE_15__.GnomeJsonImporter),\n/* harmony export */   KasperskyTxtImporter: () => (/* reexport safe */ _kaspersky_txt_importer__WEBPACK_IMPORTED_MODULE_16__.KasperskyTxtImporter),\n/* harmony export */   KeePass2XmlImporter: () => (/* reexport safe */ _keepass2_xml_importer__WEBPACK_IMPORTED_MODULE_17__.KeePass2XmlImporter),\n/* harmony export */   KeePassXCsvImporter: () => (/* reexport safe */ _keepassx_csv_importer__WEBPACK_IMPORTED_MODULE_18__.KeePassXCsvImporter),\n/* harmony export */   KeeperCsvImporter: () => (/* reexport safe */ _keeper__WEBPACK_IMPORTED_MODULE_19__.KeeperCsvImporter),\n/* harmony export */   KeeperJsonImporter: () => (/* reexport safe */ _keeper__WEBPACK_IMPORTED_MODULE_19__.KeeperJsonImporter),\n/* harmony export */   LastPassCsvImporter: () => (/* reexport safe */ _lastpass_csv_importer__WEBPACK_IMPORTED_MODULE_20__.LastPassCsvImporter),\n/* harmony export */   LogMeOnceCsvImporter: () => (/* reexport safe */ _logmeonce_csv_importer__WEBPACK_IMPORTED_MODULE_21__.LogMeOnceCsvImporter),\n/* harmony export */   MSecureCsvImporter: () => (/* reexport safe */ _msecure_csv_importer__WEBPACK_IMPORTED_MODULE_23__.MSecureCsvImporter),\n/* harmony export */   MeldiumCsvImporter: () => (/* reexport safe */ _meldium_csv_importer__WEBPACK_IMPORTED_MODULE_22__.MeldiumCsvImporter),\n/* harmony export */   MykiCsvImporter: () => (/* reexport safe */ _myki_csv_importer__WEBPACK_IMPORTED_MODULE_24__.MykiCsvImporter),\n/* harmony export */   NordPassCsvImporter: () => (/* reexport safe */ _nordpass_csv_importer__WEBPACK_IMPORTED_MODULE_25__.NordPassCsvImporter),\n/* harmony export */   OnePassword1PifImporter: () => (/* reexport safe */ _onepassword__WEBPACK_IMPORTED_MODULE_26__.OnePassword1PifImporter),\n/* harmony export */   OnePassword1PuxImporter: () => (/* reexport safe */ _onepassword__WEBPACK_IMPORTED_MODULE_26__.OnePassword1PuxImporter),\n/* harmony export */   OnePasswordMacCsvImporter: () => (/* reexport safe */ _onepassword__WEBPACK_IMPORTED_MODULE_26__.OnePasswordMacCsvImporter),\n/* harmony export */   OnePasswordWinCsvImporter: () => (/* reexport safe */ _onepassword__WEBPACK_IMPORTED_MODULE_26__.OnePasswordWinCsvImporter),\n/* harmony export */   PadlockCsvImporter: () => (/* reexport safe */ _padlock_csv_importer__WEBPACK_IMPORTED_MODULE_27__.PadlockCsvImporter),\n/* harmony export */   PassKeepCsvImporter: () => (/* reexport safe */ _passkeep_csv_importer__WEBPACK_IMPORTED_MODULE_28__.PassKeepCsvImporter),\n/* harmony export */   PasskyJsonImporter: () => (/* reexport safe */ _passky_passky_json_importer__WEBPACK_IMPORTED_MODULE_29__.PasskyJsonImporter),\n/* harmony export */   PassmanJsonImporter: () => (/* reexport safe */ _passman_json_importer__WEBPACK_IMPORTED_MODULE_30__.PassmanJsonImporter),\n/* harmony export */   PasspackCsvImporter: () => (/* reexport safe */ _passpack_csv_importer__WEBPACK_IMPORTED_MODULE_31__.PasspackCsvImporter),\n/* harmony export */   PasswordAgentCsvImporter: () => (/* reexport safe */ _passwordagent_csv_importer__WEBPACK_IMPORTED_MODULE_32__.PasswordAgentCsvImporter),\n/* harmony export */   PasswordBossJsonImporter: () => (/* reexport safe */ _passwordboss_json_importer__WEBPACK_IMPORTED_MODULE_33__.PasswordBossJsonImporter),\n/* harmony export */   PasswordDragonXmlImporter: () => (/* reexport safe */ _passworddragon_xml_importer__WEBPACK_IMPORTED_MODULE_34__.PasswordDragonXmlImporter),\n/* harmony export */   PasswordSafeXmlImporter: () => (/* reexport safe */ _passwordsafe_xml_importer__WEBPACK_IMPORTED_MODULE_35__.PasswordSafeXmlImporter),\n/* harmony export */   PasswordWalletTxtImporter: () => (/* reexport safe */ _passwordwallet_txt_importer__WEBPACK_IMPORTED_MODULE_36__.PasswordWalletTxtImporter),\n/* harmony export */   ProtonPassJsonImporter: () => (/* reexport safe */ _protonpass_protonpass_json_importer__WEBPACK_IMPORTED_MODULE_37__.ProtonPassJsonImporter),\n/* harmony export */   PsonoJsonImporter: () => (/* reexport safe */ _psono_psono_json_importer__WEBPACK_IMPORTED_MODULE_38__.PsonoJsonImporter),\n/* harmony export */   RememBearCsvImporter: () => (/* reexport safe */ _remembear_csv_importer__WEBPACK_IMPORTED_MODULE_39__.RememBearCsvImporter),\n/* harmony export */   RoboFormCsvImporter: () => (/* reexport safe */ _roboform_csv_importer__WEBPACK_IMPORTED_MODULE_40__.RoboFormCsvImporter),\n/* harmony export */   SafariCsvImporter: () => (/* reexport safe */ _safari_csv_importer__WEBPACK_IMPORTED_MODULE_41__.SafariCsvImporter),\n/* harmony export */   SafeInCloudXmlImporter: () => (/* reexport safe */ _safeincloud_xml_importer__WEBPACK_IMPORTED_MODULE_42__.SafeInCloudXmlImporter),\n/* harmony export */   SaferPassCsvImporter: () => (/* reexport safe */ _saferpass_csv_importer__WEBPACK_IMPORTED_MODULE_43__.SaferPassCsvImporter),\n/* harmony export */   SecureSafeCsvImporter: () => (/* reexport safe */ _securesafe_csv_importer__WEBPACK_IMPORTED_MODULE_44__.SecureSafeCsvImporter),\n/* harmony export */   SplashIdCsvImporter: () => (/* reexport safe */ _splashid_csv_importer__WEBPACK_IMPORTED_MODULE_45__.SplashIdCsvImporter),\n/* harmony export */   StickyPasswordXmlImporter: () => (/* reexport safe */ _stickypassword_xml_importer__WEBPACK_IMPORTED_MODULE_46__.StickyPasswordXmlImporter),\n/* harmony export */   TrueKeyCsvImporter: () => (/* reexport safe */ _truekey_csv_importer__WEBPACK_IMPORTED_MODULE_47__.TrueKeyCsvImporter),\n/* harmony export */   UpmCsvImporter: () => (/* reexport safe */ _upm_csv_importer__WEBPACK_IMPORTED_MODULE_48__.UpmCsvImporter),\n/* harmony export */   YotiCsvImporter: () => (/* reexport safe */ _yoti_csv_importer__WEBPACK_IMPORTED_MODULE_49__.YotiCsvImporter),\n/* harmony export */   ZohoVaultCsvImporter: () => (/* reexport safe */ _zohovault_csv_importer__WEBPACK_IMPORTED_MODULE_50__.ZohoVaultCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _ascendo_csv_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascendo-csv-importer */ \"../../libs/importer/src/importers/ascendo-csv-importer.ts\");\n/* harmony import */ var _avast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./avast */ \"../../libs/importer/src/importers/avast/index.ts\");\n/* harmony import */ var _avira_csv_importer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./avira-csv-importer */ \"../../libs/importer/src/importers/avira-csv-importer.ts\");\n/* harmony import */ var _blackberry_csv_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./blackberry-csv-importer */ \"../../libs/importer/src/importers/blackberry-csv-importer.ts\");\n/* harmony import */ var _chrome_csv_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./chrome-csv-importer */ \"../../libs/importer/src/importers/chrome-csv-importer.ts\");\n/* harmony import */ var _bitwarden__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./bitwarden */ \"../../libs/importer/src/importers/bitwarden/index.ts\");\n/* harmony import */ var _blur_csv_importer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./blur-csv-importer */ \"../../libs/importer/src/importers/blur-csv-importer.ts\");\n/* harmony import */ var _buttercup_csv_importer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./buttercup-csv-importer */ \"../../libs/importer/src/importers/buttercup-csv-importer.ts\");\n/* harmony import */ var _clipperz_html_importer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./clipperz-html-importer */ \"../../libs/importer/src/importers/clipperz-html-importer.ts\");\n/* harmony import */ var _codebook_csv_importer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./codebook-csv-importer */ \"../../libs/importer/src/importers/codebook-csv-importer.ts\");\n/* harmony import */ var _dashlane__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dashlane */ \"../../libs/importer/src/importers/dashlane/index.ts\");\n/* harmony import */ var _encryptr_csv_importer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./encryptr-csv-importer */ \"../../libs/importer/src/importers/encryptr-csv-importer.ts\");\n/* harmony import */ var _enpass__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./enpass */ \"../../libs/importer/src/importers/enpass/index.ts\");\n/* harmony import */ var _firefox_csv_importer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./firefox-csv-importer */ \"../../libs/importer/src/importers/firefox-csv-importer.ts\");\n/* harmony import */ var _fsecure_fsecure_fsk_importer__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./fsecure/fsecure-fsk-importer */ \"../../libs/importer/src/importers/fsecure/fsecure-fsk-importer.ts\");\n/* harmony import */ var _gnome_json_importer__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./gnome-json-importer */ \"../../libs/importer/src/importers/gnome-json-importer.ts\");\n/* harmony import */ var _kaspersky_txt_importer__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./kaspersky-txt-importer */ \"../../libs/importer/src/importers/kaspersky-txt-importer.ts\");\n/* harmony import */ var _keepass2_xml_importer__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./keepass2-xml-importer */ \"../../libs/importer/src/importers/keepass2-xml-importer.ts\");\n/* harmony import */ var _keepassx_csv_importer__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./keepassx-csv-importer */ \"../../libs/importer/src/importers/keepassx-csv-importer.ts\");\n/* harmony import */ var _keeper__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./keeper */ \"../../libs/importer/src/importers/keeper/index.ts\");\n/* harmony import */ var _lastpass_csv_importer__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./lastpass-csv-importer */ \"../../libs/importer/src/importers/lastpass-csv-importer.ts\");\n/* harmony import */ var _logmeonce_csv_importer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./logmeonce-csv-importer */ \"../../libs/importer/src/importers/logmeonce-csv-importer.ts\");\n/* harmony import */ var _meldium_csv_importer__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./meldium-csv-importer */ \"../../libs/importer/src/importers/meldium-csv-importer.ts\");\n/* harmony import */ var _msecure_csv_importer__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./msecure-csv-importer */ \"../../libs/importer/src/importers/msecure-csv-importer.ts\");\n/* harmony import */ var _myki_csv_importer__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./myki-csv-importer */ \"../../libs/importer/src/importers/myki-csv-importer.ts\");\n/* harmony import */ var _nordpass_csv_importer__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./nordpass-csv-importer */ \"../../libs/importer/src/importers/nordpass-csv-importer.ts\");\n/* harmony import */ var _onepassword__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./onepassword */ \"../../libs/importer/src/importers/onepassword/index.ts\");\n/* harmony import */ var _padlock_csv_importer__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./padlock-csv-importer */ \"../../libs/importer/src/importers/padlock-csv-importer.ts\");\n/* harmony import */ var _passkeep_csv_importer__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./passkeep-csv-importer */ \"../../libs/importer/src/importers/passkeep-csv-importer.ts\");\n/* harmony import */ var _passky_passky_json_importer__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./passky/passky-json-importer */ \"../../libs/importer/src/importers/passky/passky-json-importer.ts\");\n/* harmony import */ var _passman_json_importer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./passman-json-importer */ \"../../libs/importer/src/importers/passman-json-importer.ts\");\n/* harmony import */ var _passpack_csv_importer__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./passpack-csv-importer */ \"../../libs/importer/src/importers/passpack-csv-importer.ts\");\n/* harmony import */ var _passwordagent_csv_importer__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./passwordagent-csv-importer */ \"../../libs/importer/src/importers/passwordagent-csv-importer.ts\");\n/* harmony import */ var _passwordboss_json_importer__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./passwordboss-json-importer */ \"../../libs/importer/src/importers/passwordboss-json-importer.ts\");\n/* harmony import */ var _passworddragon_xml_importer__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./passworddragon-xml-importer */ \"../../libs/importer/src/importers/passworddragon-xml-importer.ts\");\n/* harmony import */ var _passwordsafe_xml_importer__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./passwordsafe-xml-importer */ \"../../libs/importer/src/importers/passwordsafe-xml-importer.ts\");\n/* harmony import */ var _passwordwallet_txt_importer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./passwordwallet-txt-importer */ \"../../libs/importer/src/importers/passwordwallet-txt-importer.ts\");\n/* harmony import */ var _protonpass_protonpass_json_importer__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./protonpass/protonpass-json-importer */ \"../../libs/importer/src/importers/protonpass/protonpass-json-importer.ts\");\n/* harmony import */ var _psono_psono_json_importer__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./psono/psono-json-importer */ \"../../libs/importer/src/importers/psono/psono-json-importer.ts\");\n/* harmony import */ var _remembear_csv_importer__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./remembear-csv-importer */ \"../../libs/importer/src/importers/remembear-csv-importer.ts\");\n/* harmony import */ var _roboform_csv_importer__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./roboform-csv-importer */ \"../../libs/importer/src/importers/roboform-csv-importer.ts\");\n/* harmony import */ var _safari_csv_importer__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./safari-csv-importer */ \"../../libs/importer/src/importers/safari-csv-importer.ts\");\n/* harmony import */ var _safeincloud_xml_importer__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./safeincloud-xml-importer */ \"../../libs/importer/src/importers/safeincloud-xml-importer.ts\");\n/* harmony import */ var _saferpass_csv_importer__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./saferpass-csv-importer */ \"../../libs/importer/src/importers/saferpass-csv-importer.ts\");\n/* harmony import */ var _securesafe_csv_importer__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./securesafe-csv-importer */ \"../../libs/importer/src/importers/securesafe-csv-importer.ts\");\n/* harmony import */ var _splashid_csv_importer__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./splashid-csv-importer */ \"../../libs/importer/src/importers/splashid-csv-importer.ts\");\n/* harmony import */ var _stickypassword_xml_importer__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./stickypassword-xml-importer */ \"../../libs/importer/src/importers/stickypassword-xml-importer.ts\");\n/* harmony import */ var _truekey_csv_importer__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./truekey-csv-importer */ \"../../libs/importer/src/importers/truekey-csv-importer.ts\");\n/* harmony import */ var _upm_csv_importer__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./upm-csv-importer */ \"../../libs/importer/src/importers/upm-csv-importer.ts\");\n/* harmony import */ var _yoti_csv_importer__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./yoti-csv-importer */ \"../../libs/importer/src/importers/yoti-csv-importer.ts\");\n/* harmony import */ var _zohovault_csv_importer__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./zohovault-csv-importer */ \"../../libs/importer/src/importers/zohovault-csv-importer.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5564 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/kaspersky-txt-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/kaspersky-txt-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KasperskyTxtImporter: () => (/* binding */ KasperskyTxtImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nconst NotesHeader = \"Notes\\n\\n\";\nconst ApplicationsHeader = \"Applications\\n\\n\";\nconst WebsitesHeader = \"Websites\\n\\n\";\nconst Delimiter = \"\\n---\\n\";\nclass KasperskyTxtImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        let notesData;\n        let applicationsData;\n        let websitesData;\n        let workingData = this.splitNewLine(data).join(\"\\n\");\n        if (workingData.indexOf(NotesHeader) !== -1) {\n            const parts = workingData.split(NotesHeader);\n            if (parts.length > 1) {\n                workingData = parts[0];\n                notesData = parts[1];\n            }\n        }\n        if (workingData.indexOf(ApplicationsHeader) !== -1) {\n            const parts = workingData.split(ApplicationsHeader);\n            if (parts.length > 1) {\n                workingData = parts[0];\n                applicationsData = parts[1];\n            }\n        }\n        if (workingData.indexOf(WebsitesHeader) === 0) {\n            const parts = workingData.split(WebsitesHeader);\n            if (parts.length > 1) {\n                workingData = parts[0];\n                websitesData = parts[1];\n            }\n        }\n        const notes = this.parseDataCategory(notesData);\n        const applications = this.parseDataCategory(applicationsData);\n        const websites = this.parseDataCategory(websitesData);\n        notes.forEach((n) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(n.get(\"Name\"));\n            cipher.notes = this.getValueOrDefault(n.get(\"Text\"));\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        websites.concat(applications).forEach((w) => {\n            const cipher = this.initLoginCipher();\n            const nameKey = w.has(\"Website name\") ? \"Website name\" : \"Application\";\n            cipher.name = this.getValueOrDefault(w.get(nameKey), \"\");\n            if (!this.isNullOrWhitespace(w.get(\"Login name\"))) {\n                if (!this.isNullOrWhitespace(cipher.name)) {\n                    cipher.name += \": \";\n                }\n                cipher.name += w.get(\"Login name\");\n            }\n            cipher.notes = this.getValueOrDefault(w.get(\"Comment\"));\n            if (w.has(\"Website URL\")) {\n                cipher.login.uris = this.makeUriArray(w.get(\"Website URL\"));\n            }\n            cipher.login.username = this.getValueOrDefault(w.get(\"Login\"));\n            cipher.login.password = this.getValueOrDefault(w.get(\"Password\"));\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseDataCategory(data) {\n        if (this.isNullOrWhitespace(data) || data.indexOf(Delimiter) === -1) {\n            return [];\n        }\n        const items = [];\n        data.split(Delimiter).forEach((p) => {\n            if (p.indexOf(\"\\n\") === -1) {\n                return;\n            }\n            const item = new Map();\n            let itemComment;\n            let itemCommentKey;\n            p.split(\"\\n\").forEach((l) => {\n                if (itemComment != null) {\n                    itemComment += \"\\n\" + l;\n                    return;\n                }\n                const colonIndex = l.indexOf(\":\");\n                let key;\n                let val;\n                if (colonIndex === -1) {\n                    return;\n                }\n                else {\n                    key = l.substring(0, colonIndex);\n                    if (l.length > colonIndex + 1) {\n                        val = l.substring(colonIndex + 2);\n                    }\n                }\n                if (key != null) {\n                    item.set(key, val);\n                }\n                if (key === \"Comment\" || key === \"Text\") {\n                    itemComment = val;\n                    itemCommentKey = key;\n                }\n            });\n            if (itemComment != null && itemCommentKey != null) {\n                item.set(itemCommentKey, itemComment);\n            }\n            if (item.size === 0) {\n                return;\n            }\n            items.push(item);\n        });\n        return items;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11796 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/kaspersky-txt-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/keepass2-xml-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/keepass2-xml-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeePass2XmlImporter: () => (/* binding */ KeePass2XmlImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\nclass KeePass2XmlImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    constructor() {\n        super(...arguments);\n        this.result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n    }\n    parse(data) {\n        const doc = this.parseXml(data);\n        if (doc == null) {\n            this.result.success = false;\n            return Promise.resolve(this.result);\n        }\n        //Note: The doc.querySelector(\"KeePassFile > Root > Group\") no longers works on node and we have to breakdown the query by nodes\n        const KeePassFileNode = doc.querySelector(\"KeePassFile\");\n        if (KeePassFileNode == null) {\n            this.result.errorMessage = \"Missing `KeePassFile` node.\";\n            this.result.success = false;\n            return Promise.resolve(this.result);\n        }\n        const RootNode = KeePassFileNode.querySelector(\"Root\");\n        if (RootNode == null) {\n            this.result.errorMessage = \"Missing `KeePassFile > Root` node.\";\n            this.result.success = false;\n            return Promise.resolve(this.result);\n        }\n        const rootGroup = RootNode.querySelector(\"Group\");\n        if (rootGroup == null) {\n            this.result.errorMessage = \"Missing `KeePassFile > Root > Group` node.\";\n            this.result.success = false;\n            return Promise.resolve(this.result);\n        }\n        this.traverse(rootGroup, true, \"\");\n        if (this.organization) {\n            this.moveFoldersToCollections(this.result);\n        }\n        this.result.success = true;\n        return Promise.resolve(this.result);\n    }\n    traverse(node, isRootNode, groupPrefixName) {\n        const folderIndex = this.result.folders.length;\n        let groupName = groupPrefixName;\n        if (!isRootNode) {\n            if (groupName !== \"\") {\n                groupName += \"/\";\n            }\n            const nameEl = this.querySelectorDirectChild(node, \"Name\");\n            groupName += nameEl == null ? \"-\" : nameEl.textContent;\n            const folder = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_1__.FolderView();\n            folder.name = groupName;\n            this.result.folders.push(folder);\n        }\n        this.querySelectorAllDirectChild(node, \"Entry\").forEach((entry) => {\n            const cipherIndex = this.result.ciphers.length;\n            const cipher = this.initLoginCipher();\n            this.querySelectorAllDirectChild(entry, \"String\").forEach((entryString) => {\n                const valueEl = this.querySelectorDirectChild(entryString, \"Value\");\n                const value = valueEl != null ? valueEl.textContent : null;\n                if (this.isNullOrWhitespace(value)) {\n                    return;\n                }\n                const keyEl = this.querySelectorDirectChild(entryString, \"Key\");\n                const key = keyEl != null ? keyEl.textContent : null;\n                if (key === \"URL\") {\n                    cipher.login.uris = this.makeUriArray(value);\n                }\n                else if (key === \"UserName\") {\n                    cipher.login.username = value;\n                }\n                else if (key === \"Password\") {\n                    cipher.login.password = value;\n                }\n                else if (key === \"otp\") {\n                    cipher.login.totp = value.replace(\"key=\", \"\");\n                }\n                else if (key === \"Title\") {\n                    cipher.name = value;\n                }\n                else if (key === \"Notes\") {\n                    cipher.notes += value + \"\\n\";\n                }\n                else {\n                    let type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text;\n                    const attrs = valueEl.attributes;\n                    if (attrs.length > 0 &&\n                        attrs.ProtectInMemory != null &&\n                        attrs.ProtectInMemory.value === \"True\") {\n                        type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden;\n                    }\n                    this.processKvp(cipher, key, value, type);\n                }\n            });\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n            if (!isRootNode) {\n                this.result.folderRelationships.push([cipherIndex, folderIndex]);\n            }\n        });\n        this.querySelectorAllDirectChild(node, \"Group\").forEach((group) => {\n            this.traverse(group, false, groupName);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11208 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/keepass2-xml-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/keepassx-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/keepassx-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeePassXCsvImporter: () => (/* binding */ KeePassXCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass KeePassXCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (this.isNullOrWhitespace(value.Title)) {\n                return;\n            }\n            value.Group =\n                !this.isNullOrWhitespace(value.Group) && value.Group.startsWith(\"Root/\")\n                    ? value.Group.replace(\"Root/\", \"\")\n                    : value.Group;\n            const groupName = !this.isNullOrWhitespace(value.Group) ? value.Group : null;\n            this.processFolder(result, groupName);\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValueOrDefault(value.Notes);\n            cipher.name = this.getValueOrDefault(value.Title, \"--\");\n            cipher.login.username = this.getValueOrDefault(value.Username);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.uris = this.makeUriArray(value.URL);\n            cipher.login.totp = this.getValueOrDefault(value.TOTP);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4648 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/keepassx-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/keeper/index.ts":
/*!*********************************************************!*\
  !*** ../../libs/importer/src/importers/keeper/index.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeeperCsvImporter: () => (/* reexport safe */ _keeper_csv_importer__WEBPACK_IMPORTED_MODULE_0__.KeeperCsvImporter),\n/* harmony export */   KeeperJsonImporter: () => (/* reexport safe */ _keeper_json_importer__WEBPACK_IMPORTED_MODULE_1__.KeeperJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _keeper_csv_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./keeper-csv-importer */ \"../../libs/importer/src/importers/keeper/keeper-csv-importer.ts\");\n/* harmony import */ var _keeper_json_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./keeper-json-importer */ \"../../libs/importer/src/importers/keeper/keeper-json-importer.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2tlZXBlci9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQTBEO0FBQ0UiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2ltcG9ydGVyL3NyYy9pbXBvcnRlcnMva2VlcGVyL2luZGV4LnRzPzIyZWUiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgS2VlcGVyQ3N2SW1wb3J0ZXIgfSBmcm9tIFwiLi9rZWVwZXItY3N2LWltcG9ydGVyXCI7XG5leHBvcnQgeyBLZWVwZXJKc29uSW1wb3J0ZXIgfSBmcm9tIFwiLi9rZWVwZXItanNvbi1pbXBvcnRlclwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/keeper/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/keeper/keeper-csv-importer.ts":
/*!***********************************************************************!*\
  !*** ../../libs/importer/src/importers/keeper/keeper-csv-importer.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeeperCsvImporter: () => (/* binding */ KeeperCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass KeeperCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length < 6) {\n                return;\n            }\n            this.processFolder(result, value[0]);\n            const cipher = this.initLoginCipher();\n            const notes = this.getValueOrDefault(value[5]);\n            if (notes) {\n                cipher.notes = `${notes}\\n`;\n            }\n            cipher.name = this.getValueOrDefault(value[1], \"--\");\n            cipher.login.username = this.getValueOrDefault(value[2]);\n            cipher.login.password = this.getValueOrDefault(value[3]);\n            cipher.login.uris = this.makeUriArray(value[4]);\n            if (value.length > 7) {\n                // we have some custom fields.\n                for (let i = 7; i < value.length; i = i + 2) {\n                    if (value[i] == \"TFC:Keeper\") {\n                        cipher.login.totp = value[i + 1];\n                    }\n                    else {\n                        this.processKvp(cipher, value[i], value[i + 1]);\n                    }\n                }\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4864 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/keeper/keeper-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/keeper/keeper-json-importer.ts":
/*!************************************************************************!*\
  !*** ../../libs/importer/src/importers/keeper/keeper-json-importer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeeperJsonImporter: () => (/* binding */ KeeperJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass KeeperJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const keeperExport = JSON.parse(data);\n        if (keeperExport == null || keeperExport.records == null || keeperExport.records.length === 0) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        keeperExport.records.forEach((record) => {\n            this.parseFolders(result, record);\n            const cipher = this.initLoginCipher();\n            cipher.name = record.title;\n            cipher.login.username = record.login;\n            cipher.login.password = record.password;\n            cipher.login.uris = this.makeUriArray(record.login_url);\n            cipher.notes = record.notes;\n            if (record.custom_fields != null) {\n                let customfieldKeys = Object.keys(record.custom_fields);\n                if (record.custom_fields[\"TFC:Keeper\"] != null) {\n                    customfieldKeys = customfieldKeys.filter((item) => item !== \"TFC:Keeper\");\n                    cipher.login.totp = record.custom_fields[\"TFC:Keeper\"];\n                }\n                customfieldKeys.forEach((key) => {\n                    this.processKvp(cipher, key, record.custom_fields[key]);\n                });\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseFolders(result, record) {\n        if (record.folders == null || record.folders.length === 0) {\n            return;\n        }\n        record.folders.forEach((item) => {\n            if (item.folder != null) {\n                this.processFolder(result, item.folder);\n                return;\n            }\n            if (item.shared_folder != null) {\n                this.processFolder(result, item.shared_folder);\n                return;\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6168 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/keeper/keeper-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/lastpass-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/lastpass-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LastPassCsvImporter: () => (/* binding */ LastPassCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\n\n\n\nclass LastPassCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_8__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_7__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipherIndex = result.ciphers.length;\n            let folderIndex = result.folders.length;\n            let grouping = value.grouping;\n            if (grouping != null) {\n                // eslint-disable-next-line\n                grouping = grouping.replace(/\\\\/g, \"/\").replace(/[\\x00-\\x1F\\x7F-\\x9F]/g, \"\");\n            }\n            const hasFolder = this.getValueOrDefault(grouping, \"(none)\") !== \"(none)\";\n            let addFolder = hasFolder;\n            if (hasFolder) {\n                for (let i = 0; i < result.folders.length; i++) {\n                    if (result.folders[i].name === grouping) {\n                        addFolder = false;\n                        folderIndex = i;\n                        break;\n                    }\n                }\n            }\n            const cipher = this.buildBaseCipher(value);\n            if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login) {\n                cipher.notes = this.getValueOrDefault(value.extra);\n                cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_5__.LoginView();\n                cipher.login.uris = this.makeUriArray(value.url);\n                cipher.login.username = this.getValueOrDefault(value.username);\n                cipher.login.password = this.getValueOrDefault(value.password);\n                cipher.login.totp = this.getValueOrDefault(value.totp);\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote) {\n                this.parseSecureNote(value, cipher);\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card) {\n                cipher.card = this.parseCard(value);\n                cipher.notes = this.getValueOrDefault(value.notes);\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity) {\n                cipher.identity = this.parseIdentity(value);\n                cipher.notes = this.getValueOrDefault(value.notes);\n                if (!this.isNullOrWhitespace(value.ccnum)) {\n                    // there is a card on this identity too\n                    const cardCipher = this.buildBaseCipher(value);\n                    cardCipher.identity = null;\n                    cardCipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                    cardCipher.card = this.parseCard(value);\n                    result.ciphers.push(cardCipher);\n                }\n            }\n            result.ciphers.push(cipher);\n            if (addFolder) {\n                const f = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_3__.FolderView();\n                f.name = grouping;\n                result.folders.push(f);\n            }\n            if (hasFolder) {\n                result.folderRelationships.push([cipherIndex, folderIndex]);\n            }\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    buildBaseCipher(value) {\n        const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView();\n        // eslint-disable-next-line\n        if (value.hasOwnProperty(\"profilename\") && value.hasOwnProperty(\"profilelanguage\")) {\n            // form fill\n            cipher.favorite = false;\n            cipher.name = this.getValueOrDefault(value.profilename, \"--\");\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n            if (!this.isNullOrWhitespace(value.title) ||\n                !this.isNullOrWhitespace(value.firstname) ||\n                !this.isNullOrWhitespace(value.lastname) ||\n                !this.isNullOrWhitespace(value.address1) ||\n                !this.isNullOrWhitespace(value.phone) ||\n                !this.isNullOrWhitespace(value.username) ||\n                !this.isNullOrWhitespace(value.email)) {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n            }\n        }\n        else {\n            // site or secure note\n            cipher.favorite = !this.organization && this.getValueOrDefault(value.fav, \"0\") === \"1\";\n            cipher.name = this.getValueOrDefault(value.name, \"--\");\n            cipher.type = value.url === \"http://sn\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n        }\n        return cipher;\n    }\n    parseCard(value) {\n        const card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n        card.cardholderName = this.getValueOrDefault(value.ccname);\n        card.number = this.getValueOrDefault(value.ccnum);\n        card.code = this.getValueOrDefault(value.cccsc);\n        card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(card.number);\n        if (!this.isNullOrWhitespace(value.ccexp) && value.ccexp.indexOf(\"-\") > -1) {\n            const ccexpParts = value.ccexp.split(\"-\");\n            if (ccexpParts.length > 1) {\n                card.expYear = ccexpParts[0];\n                card.expMonth = ccexpParts[1];\n                if (card.expMonth.length === 2 && card.expMonth[0] === \"0\") {\n                    card.expMonth = card.expMonth[1];\n                }\n            }\n        }\n        return card;\n    }\n    parseIdentity(value) {\n        const identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_4__.IdentityView();\n        identity.title = this.getValueOrDefault(value.title);\n        identity.firstName = this.getValueOrDefault(value.firstname);\n        identity.middleName = this.getValueOrDefault(value.middlename);\n        identity.lastName = this.getValueOrDefault(value.lastname);\n        identity.username = this.getValueOrDefault(value.username);\n        identity.company = this.getValueOrDefault(value.company);\n        identity.ssn = this.getValueOrDefault(value.ssn);\n        identity.address1 = this.getValueOrDefault(value.address1);\n        identity.address2 = this.getValueOrDefault(value.address2);\n        identity.address3 = this.getValueOrDefault(value.address3);\n        identity.city = this.getValueOrDefault(value.city);\n        identity.state = this.getValueOrDefault(value.state);\n        identity.postalCode = this.getValueOrDefault(value.zip);\n        identity.country = this.getValueOrDefault(value.country);\n        identity.email = this.getValueOrDefault(value.email);\n        identity.phone = this.getValueOrDefault(value.phone);\n        if (!this.isNullOrWhitespace(identity.title)) {\n            identity.title = identity.title.charAt(0).toUpperCase() + identity.title.slice(1);\n        }\n        return identity;\n    }\n    parseSecureNote(value, cipher) {\n        const extraParts = this.splitNewLine(value.extra);\n        let processedNote = false;\n        if (extraParts.length) {\n            const typeParts = extraParts[0].split(\":\");\n            if (typeParts.length > 1 &&\n                typeParts[0] === \"NoteType\" &&\n                (typeParts[1] === \"Credit Card\" || typeParts[1] === \"Address\")) {\n                if (typeParts[1] === \"Credit Card\") {\n                    const mappedData = this.parseSecureNoteMapping(cipher, extraParts, {\n                        Number: \"number\",\n                        \"Name on Card\": \"cardholderName\",\n                        \"Security Code\": \"code\",\n                        // LP provides date in a format like 'June,2020'\n                        // Store in expMonth, then parse and modify\n                        \"Expiration Date\": \"expMonth\",\n                    });\n                    if (this.isNullOrWhitespace(mappedData.expMonth) || mappedData.expMonth === \",\") {\n                        // No expiration data\n                        mappedData.expMonth = undefined;\n                    }\n                    else {\n                        const [monthString, year] = mappedData.expMonth.split(\",\");\n                        // Parse month name into number\n                        if (!this.isNullOrWhitespace(monthString)) {\n                            const month = new Date(Date.parse(monthString.trim() + \" 1, 2012\")).getMonth() + 1;\n                            if (isNaN(month)) {\n                                mappedData.expMonth = undefined;\n                            }\n                            else {\n                                mappedData.expMonth = month.toString();\n                            }\n                        }\n                        else {\n                            mappedData.expMonth = undefined;\n                        }\n                        if (!this.isNullOrWhitespace(year)) {\n                            mappedData.expYear = year;\n                        }\n                    }\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                    cipher.card = mappedData;\n                }\n                else if (typeParts[1] === \"Address\") {\n                    const mappedData = this.parseSecureNoteMapping(cipher, extraParts, {\n                        Title: \"title\",\n                        \"First Name\": \"firstName\",\n                        \"Last Name\": \"lastName\",\n                        \"Middle Name\": \"middleName\",\n                        Company: \"company\",\n                        \"Address 1\": \"address1\",\n                        \"Address 2\": \"address2\",\n                        \"Address 3\": \"address3\",\n                        \"City / Town\": \"city\",\n                        State: \"state\",\n                        \"Zip / Postal Code\": \"postalCode\",\n                        Country: \"country\",\n                        \"Email Address\": \"email\",\n                        Username: \"username\",\n                    });\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                    cipher.identity = mappedData;\n                }\n                processedNote = true;\n            }\n        }\n        if (!processedNote) {\n            cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_6__.SecureNoteView();\n            cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n            cipher.notes = this.getValueOrDefault(value.extra);\n        }\n    }\n    parseSecureNoteMapping(cipher, extraParts, map) {\n        const dataObj = {};\n        let processingNotes = false;\n        extraParts.forEach((extraPart) => {\n            let key = null;\n            let val = null;\n            if (!processingNotes) {\n                if (this.isNullOrWhitespace(extraPart)) {\n                    return;\n                }\n                const colonIndex = extraPart.indexOf(\":\");\n                if (colonIndex === -1) {\n                    key = extraPart;\n                }\n                else {\n                    key = extraPart.substring(0, colonIndex);\n                    if (extraPart.length > colonIndex) {\n                        val = extraPart.substring(colonIndex + 1);\n                    }\n                }\n                if (this.isNullOrWhitespace(key) || this.isNullOrWhitespace(val) || key === \"NoteType\") {\n                    return;\n                }\n            }\n            if (processingNotes) {\n                cipher.notes += \"\\n\" + extraPart;\n            }\n            else if (key === \"Notes\") {\n                if (!this.isNullOrWhitespace(cipher.notes)) {\n                    cipher.notes += \"\\n\" + val;\n                }\n                else {\n                    cipher.notes = val;\n                }\n                processingNotes = true;\n                // eslint-disable-next-line\n            }\n            else if (map.hasOwnProperty(key)) {\n                dataObj[map[key]] = val;\n            }\n            else {\n                this.processKvp(cipher, key, val);\n            }\n        });\n        return dataObj;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 28788 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/lastpass-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/logmeonce-csv-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/logmeonce-csv-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LogMeOnceCsvImporter: () => (/* binding */ LogMeOnceCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass LogMeOnceCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length < 4) {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value[0], \"--\");\n            cipher.login.username = this.getValueOrDefault(value[2]);\n            cipher.login.password = this.getValueOrDefault(value[3]);\n            cipher.login.uris = this.makeUriArray(value[1]);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL2xvZ21lb25jZS1jc3YtaW1wb3J0ZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQXVEO0FBRVI7QUFHeEMsTUFBTSxvQkFBcUIsU0FBUSx3REFBWTtJQUNwRCxLQUFLLENBQUMsSUFBWTtRQUNoQixNQUFNLE1BQU0sR0FBRyxJQUFJLCtEQUFZLEVBQUUsQ0FBQztRQUNsQyxNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsQ0FBQztRQUMzQyxJQUFJLE9BQU8sSUFBSSxJQUFJLEVBQUUsQ0FBQztZQUNwQixNQUFNLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQztZQUN2QixPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDakMsQ0FBQztRQUVELE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQyxLQUFLLEVBQUUsRUFBRTtZQUN4QixJQUFJLEtBQUssQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFLENBQUM7Z0JBQ3JCLE9BQU87WUFDVCxDQUFDO1lBQ0QsTUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDL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xuICAgICAgcmVzdWx0LmNpcGhlcnMucHVzaChjaXBoZXIpO1xuICAgIH0pO1xuXG4gICAgcmVzdWx0LnN1Y2Nlc3MgPSB0cnVlO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzdWx0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/logmeonce-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/meldium-csv-importer.ts":
/*!*****************************************************************!*\
  !*** ../../libs/importer/src/importers/meldium-csv-importer.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MeldiumCsvImporter: () => (/* binding */ MeldiumCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass MeldiumCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.DisplayName, \"--\");\n            cipher.notes = this.getValueOrDefault(value.Notes);\n            cipher.login.username = this.getValueOrDefault(value.UserName);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.uris = this.makeUriArray(value.Url);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;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n");

/***/ }),

/***/ "../../libs/importer/src/importers/msecure-csv-importer.ts":
/*!*****************************************************************!*\
  !*** ../../libs/importer/src/importers/msecure-csv-importer.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MSecureCsvImporter: () => (/* binding */ MSecureCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\nclass MSecureCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n        const results = this.parseCsv(data, false, { delimiter: \",\" });\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length < 3) {\n                return;\n            }\n            const folderName = this.getValueOrDefault(value[2], \"Unassigned\") !== \"Unassigned\" ? value[2] : null;\n            this.processFolder(result, folderName);\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value[0].split(\"|\")[0], \"--\");\n            if (value[1] === \"Web Logins\" || value[1] === \"Login\") {\n                cipher.login.username = this.getValueOrDefault(this.splitValueRetainingLastPart(value[5]));\n                cipher.login.uris = this.makeUriArray(this.splitValueRetainingLastPart(value[4]));\n                cipher.login.password = this.getValueOrDefault(this.splitValueRetainingLastPart(value[6]));\n                cipher.notes = !this.isNullOrWhitespace(value[3]) ? value[3].split(\"\\\\n\").join(\"\\n\") : null;\n            }\n            else if (value[1] === \"Credit Card\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card.number = this.getValueOrDefault(this.splitValueRetainingLastPart(value[4]));\n                const [month, year] = this.getValueOrDefault(this.splitValueRetainingLastPart(value[5])).split(\"/\");\n                cipher.card.expMonth = month.trim();\n                cipher.card.expYear = year.trim();\n                cipher.card.code = this.getValueOrDefault(this.splitValueRetainingLastPart(value[6]));\n                cipher.card.cardholderName = this.getValueOrDefault(this.splitValueRetainingLastPart(value[7]));\n                cipher.card.brand = this.getValueOrDefault(this.splitValueRetainingLastPart(value[9]));\n                cipher.notes =\n                    this.getValueOrDefault(value[8].split(\"|\")[0]) +\n                        \": \" +\n                        this.getValueOrDefault(this.splitValueRetainingLastPart(value[8]), \"\") +\n                        \"\\n\" +\n                        this.getValueOrDefault(value[10].split(\"|\")[0]) +\n                        \": \" +\n                        this.getValueOrDefault(this.splitValueRetainingLastPart(value[10]), \"\") +\n                        \"\\n\" +\n                        this.getValueOrDefault(value[11].split(\"|\")[0]) +\n                        \": \" +\n                        this.getValueOrDefault(this.splitValueRetainingLastPart(value[11]), \"\");\n            }\n            else if (value.length > 3) {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_1__.SecureNoteView();\n                cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                for (let i = 3; i < value.length; i++) {\n                    if (!this.isNullOrWhitespace(value[i])) {\n                        cipher.notes += value[i] + \"\\n\";\n                    }\n                }\n            }\n            if (!this.isNullOrWhitespace(value[1]) &&\n                cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login &&\n                cipher.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card) {\n                cipher.name = value[1] + \": \" + cipher.name;\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    // mSecure returns values separated by \"|\" where after the second separator is the value\n    // like \"Password|8|myPassword\", we want to keep the \"myPassword\" but also ensure that if\n    // the value contains any \"|\" it works fine\n    splitValueRetainingLastPart(value) {\n        return value.split(\"|\").slice(0, 2).concat(value.split(\"|\").slice(2).join(\"|\")).pop();\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11400 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/msecure-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/myki-csv-importer.ts":
/*!**************************************************************!*\
  !*** ../../libs/importer/src/importers/myki-csv-importer.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MykiCsvImporter: () => (/* binding */ MykiCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\nconst mappedBaseColumns = [\"nickname\", \"additionalInfo\"];\nconst _mappedUserAccountColumns = new Set(mappedBaseColumns.concat([\"url\", \"username\", \"password\", \"twofaSecret\"]));\nconst _mappedCreditCardColumns = new Set(mappedBaseColumns.concat([\"cardNumber\", \"cardName\", \"exp_month\", \"exp_year\", \"cvv\"]));\nconst _mappedIdentityColumns = new Set(mappedBaseColumns.concat([\n    \"title\",\n    \"firstName\",\n    \"middleName\",\n    \"lastName\",\n    \"email\",\n    \"firstAddressLine\",\n    \"secondAddressLine\",\n    \"city\",\n    \"country\",\n    \"zipCode\",\n]));\nconst _mappedIdCardColumns = new Set(mappedBaseColumns.concat([\"idName\", \"idNumber\", \"idCountry\"]));\nconst _mappedTwoFaColumns = new Set(mappedBaseColumns.concat([\"authToken\"]));\nconst _mappedUserNoteColumns = new Set(mappedBaseColumns.concat([\"content\"]));\nclass MykiCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_5__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_4__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.nickname, \"--\");\n            cipher.notes = this.getValueOrDefault(value.additionalInfo);\n            if (value.url !== undefined) {\n                // Accounts\n                cipher.login.uris = this.makeUriArray(value.url);\n                cipher.login.username = this.getValueOrDefault(value.username);\n                cipher.login.password = this.getValueOrDefault(value.password);\n                cipher.login.totp = this.getValueOrDefault(value.twofaSecret);\n                this.importUnmappedFields(cipher, value, _mappedUserAccountColumns);\n            }\n            else if (value.authToken !== undefined) {\n                // TwoFA\n                cipher.login.totp = this.getValueOrDefault(value.authToken);\n                this.importUnmappedFields(cipher, value, _mappedTwoFaColumns);\n            }\n            else if (value.cardNumber !== undefined) {\n                // Cards\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card.cardholderName = this.getValueOrDefault(value.cardName);\n                cipher.card.number = this.getValueOrDefault(value.cardNumber);\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                cipher.card.expMonth = this.getValueOrDefault(value.exp_month);\n                cipher.card.expYear = this.getValueOrDefault(value.exp_year);\n                cipher.card.code = this.getValueOrDefault(value.cvv);\n                this.importUnmappedFields(cipher, value, _mappedCreditCardColumns);\n            }\n            else if (value.firstName !== undefined) {\n                // Identities\n                cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                cipher.identity.title = this.getValueOrDefault(value.title);\n                cipher.identity.firstName = this.getValueOrDefault(value.firstName);\n                cipher.identity.middleName = this.getValueOrDefault(value.middleName);\n                cipher.identity.lastName = this.getValueOrDefault(value.lastName);\n                cipher.identity.phone = this.getValueOrDefault(value.number);\n                cipher.identity.email = this.getValueOrDefault(value.email);\n                cipher.identity.address1 = this.getValueOrDefault(value.firstAddressLine);\n                cipher.identity.address2 = this.getValueOrDefault(value.secondAddressLine);\n                cipher.identity.city = this.getValueOrDefault(value.city);\n                cipher.identity.country = this.getValueOrDefault(value.country);\n                cipher.identity.postalCode = this.getValueOrDefault(value.zipCode);\n                this.importUnmappedFields(cipher, value, _mappedIdentityColumns);\n            }\n            else if (value.idType !== undefined) {\n                // IdCards\n                cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                this.processFullName(cipher, value.idName);\n                cipher.identity.country = this.getValueOrDefault(value.idCountry);\n                switch (value.idType) {\n                    // case \"Driver's License\":\n                    // case \"ID Card\":\n                    // case \"Outdoor License\":\n                    // case \"Software License\":\n                    // case \"Tax Number\":\n                    // case \"Bank Account\":\n                    // case \"Insurance Card\":\n                    // case \"Health Card\":\n                    // case \"Membership\":\n                    // case \"Database\":\n                    // case \"Reward Program\":\n                    // case \"Tour Visa\":\n                    case \"Passport\":\n                        cipher.identity.passportNumber = value.idNumber;\n                        break;\n                    case \"Social Security\":\n                        cipher.identity.ssn = value.idNumber;\n                        break;\n                    default:\n                        cipher.identity.licenseNumber = value.idNumber;\n                        break;\n                }\n                this.importUnmappedFields(cipher, value, _mappedIdCardColumns);\n            }\n            else if (value.content !== undefined) {\n                // Notes\n                cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_3__.SecureNoteView();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                cipher.notes = this.getValueOrDefault(value.content);\n                this.importUnmappedFields(cipher, value, _mappedUserNoteColumns);\n            }\n            else {\n                return;\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    importUnmappedFields(cipher, row, mappedValues) {\n        const unmappedFields = Object.keys(row).filter((x) => !mappedValues.has(x));\n        unmappedFields.forEach((key) => {\n            const item = row;\n            this.processKvp(cipher, key, item[key]);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 16540 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/myki-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/nordpass-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/nordpass-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NordPassCsvImporter: () => (/* binding */ NordPassCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/cipher.view */ \"../../libs/common/src/vault/models/view/cipher.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\nclass NordPassCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_5__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_4__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((record) => {\n            const recordType = this.evaluateType(record);\n            if (recordType === undefined) {\n                return;\n            }\n            this.processFolder(result, record.folder);\n            const cipher = new _bitwarden_common_vault_models_view_cipher_view__WEBPACK_IMPORTED_MODULE_2__.CipherView();\n            cipher.name = this.getValueOrDefault(record.name, \"--\");\n            cipher.notes = this.getValueOrDefault(record.note);\n            if (record.custom_fields) {\n                const customFieldsParsed = JSON.parse(record.custom_fields);\n                if (customFieldsParsed && customFieldsParsed.length > 0) {\n                    customFieldsParsed.forEach((field) => {\n                        let fieldType = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text;\n                        if (field.type == \"hidden\") {\n                            fieldType = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden;\n                        }\n                        this.processKvp(cipher, field.label, field.value, fieldType);\n                    });\n                }\n            }\n            switch (recordType) {\n                case _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login:\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n                    cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_3__.LoginView();\n                    cipher.login.username = this.getValueOrDefault(record.username);\n                    cipher.login.password = this.getValueOrDefault(record.password);\n                    if (record.additional_urls) {\n                        const additionalUrlsParsed = JSON.parse(record.additional_urls);\n                        const uris = [record.url, ...additionalUrlsParsed];\n                        cipher.login.uris = this.makeUriArray(uris);\n                    }\n                    else {\n                        cipher.login.uris = this.makeUriArray(record.url);\n                    }\n                    break;\n                case _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card:\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                    cipher.card.cardholderName = this.getValueOrDefault(record.cardholdername);\n                    cipher.card.number = this.getValueOrDefault(record.cardnumber);\n                    cipher.card.code = this.getValueOrDefault(record.cvc);\n                    cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                    this.setCardExpiration(cipher, record.expirydate);\n                    break;\n                case _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity:\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                    this.processFullName(cipher, this.getValueOrDefault(record.full_name));\n                    cipher.identity.address1 = this.getValueOrDefault(record.address1);\n                    cipher.identity.address2 = this.getValueOrDefault(record.address2);\n                    cipher.identity.city = this.getValueOrDefault(record.city);\n                    cipher.identity.state = this.getValueOrDefault(record.state);\n                    cipher.identity.postalCode = this.getValueOrDefault(record.zipcode);\n                    cipher.identity.country = this.getValueOrDefault(record.country);\n                    if (cipher.identity.country != null) {\n                        cipher.identity.country = cipher.identity.country.toUpperCase();\n                    }\n                    cipher.identity.email = this.getValueOrDefault(record.email);\n                    cipher.identity.phone = this.getValueOrDefault(record.phone_number);\n                    break;\n                case _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote:\n                    cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                    cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                    break;\n                default:\n                    break;\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    evaluateType(record) {\n        switch (record.type) {\n            case \"password\":\n                return _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n            case \"credit_card\":\n                return _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n            case \"note\":\n                return _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n            case \"identity\":\n                return _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n        }\n        return undefined;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12828 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/nordpass-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/cipher-import-context.ts":
/*!******************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/cipher-import-context.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CipherImportContext: () => (/* binding */ CipherImportContext)\n/* harmony export */ });\nclass CipherImportContext {\n    constructor(importRecord, property, cipher) {\n        this.importRecord = importRecord;\n        this.property = property;\n        this.cipher = cipher;\n        this.lowerProperty = property.toLowerCase();\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL29uZXBhc3N3b3JkL2NpcGhlci1pbXBvcnQtY29udGV4dC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxtQkFBbUI7SUFFOUIsWUFDUyxZQUFpQixFQUNqQixRQUFnQixFQUNoQixNQUFrQjtRQUZsQixpQkFBWSxHQUFaLFlBQVksQ0FBSztRQUNqQixhQUFRLEdBQVIsUUFBUSxDQUFRO1FBQ2hCLFdBQU0sR0FBTixNQUFNLENBQVk7UUFFekIsSUFBSSxDQUFDLGFBQWEsR0FBRyxRQUFRLENBQUMsV0FBVyxFQUFFLENBQUM7SUFDOUMsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL29uZXBhc3N3b3JkL2NpcGhlci1pbXBvcnQtY29udGV4dC50cz80ZjQwIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENpcGhlclZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL3ZpZXcvY2lwaGVyLnZpZXdcIjtcblxuZXhwb3J0IGNsYXNzIENpcGhlckltcG9ydENvbnRleHQge1xuICBsb3dlclByb3BlcnR5OiBzdHJpbmc7XG4gIGNvbnN0cnVjdG9yKFxuICAgIHB1YmxpYyBpbXBvcnRSZWNvcmQ6IGFueSxcbiAgICBwdWJsaWMgcHJvcGVydHk6IHN0cmluZyxcbiAgICBwdWJsaWMgY2lwaGVyOiBDaXBoZXJWaWV3LFxuICApIHtcbiAgICB0aGlzLmxvd2VyUHJvcGVydHkgPSBwcm9wZXJ0eS50b0xvd2VyQ2FzZSgpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/cipher-import-context.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/index.ts":
/*!**************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/index.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OnePassword1PifImporter: () => (/* reexport safe */ _onepassword_1pif_importer__WEBPACK_IMPORTED_MODULE_0__.OnePassword1PifImporter),\n/* harmony export */   OnePassword1PuxImporter: () => (/* reexport safe */ _onepassword_1pux_importer__WEBPACK_IMPORTED_MODULE_1__.OnePassword1PuxImporter),\n/* harmony export */   OnePasswordCsvImporter: () => (/* reexport safe */ _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_2__.OnePasswordCsvImporter),\n/* harmony export */   OnePasswordMacCsvImporter: () => (/* reexport safe */ _onepassword_mac_csv_importer__WEBPACK_IMPORTED_MODULE_3__.OnePasswordMacCsvImporter),\n/* harmony export */   OnePasswordWinCsvImporter: () => (/* reexport safe */ _onepassword_win_csv_importer__WEBPACK_IMPORTED_MODULE_4__.OnePasswordWinCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _onepassword_1pif_importer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./onepassword-1pif-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-1pif-importer.ts\");\n/* harmony import */ var _onepassword_1pux_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./onepassword-1pux-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-1pux-importer.ts\");\n/* harmony import */ var _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./onepassword-csv-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-csv-importer.ts\");\n/* harmony import */ var _onepassword_mac_csv_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./onepassword-mac-csv-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-mac-csv-importer.ts\");\n/* harmony import */ var _onepassword_win_csv_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./onepassword-win-csv-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-win-csv-importer.ts\");\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL29uZXBhc3N3b3JkL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBc0U7QUFDQTtBQUNGO0FBQ087QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL2ltcG9ydGVycy9vbmVwYXNzd29yZC9pbmRleC50cz8yYzQ1Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IE9uZVBhc3N3b3JkMVBpZkltcG9ydGVyIH0gZnJvbSBcIi4vb25lcGFzc3dvcmQtMXBpZi1pbXBvcnRlclwiO1xuZXhwb3J0IHsgT25lUGFzc3dvcmQxUHV4SW1wb3J0ZXIgfSBmcm9tIFwiLi9vbmVwYXNzd29yZC0xcHV4LWltcG9ydGVyXCI7XG5leHBvcnQgeyBPbmVQYXNzd29yZENzdkltcG9ydGVyIH0gZnJvbSBcIi4vb25lcGFzc3dvcmQtY3N2LWltcG9ydGVyXCI7XG5leHBvcnQgeyBPbmVQYXNzd29yZE1hY0NzdkltcG9ydGVyIH0gZnJvbSBcIi4vb25lcGFzc3dvcmQtbWFjLWNzdi1pbXBvcnRlclwiO1xuZXhwb3J0IHsgT25lUGFzc3dvcmRXaW5Dc3ZJbXBvcnRlciB9IGZyb20gXCIuL29uZXBhc3N3b3JkLXdpbi1jc3YtaW1wb3J0ZXJcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/onepassword-1pif-importer.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/onepassword-1pif-importer.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OnePassword1PifImporter: () => (/* binding */ OnePassword1PifImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_password_history_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/password-history.view */ \"../../libs/common/src/vault/models/view/password-history.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\n\n\nclass OnePassword1PifImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_6__.BaseImporter {\n    constructor() {\n        super(...arguments);\n        this.result = new _models_import_result__WEBPACK_IMPORTED_MODULE_5__.ImportResult();\n    }\n    parse(data) {\n        data.split(this.newLineRegex).forEach((line) => {\n            if (this.isNullOrWhitespace(line) || line[0] !== \"{\") {\n                return;\n            }\n            const item = JSON.parse(line);\n            if (item.trashed === true) {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            if (this.isNullOrWhitespace(item.hmac)) {\n                this.processStandardItem(item, cipher);\n            }\n            else {\n                this.processWinOpVaultItem(item, cipher);\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            this.result.ciphers.push(cipher);\n        });\n        this.result.success = true;\n        return Promise.resolve(this.result);\n    }\n    processWinOpVaultItem(item, cipher) {\n        if (item.overview != null) {\n            cipher.name = this.getValueOrDefault(item.overview.title);\n            if (item.overview.URLs != null) {\n                const urls = [];\n                item.overview.URLs.forEach((url) => {\n                    if (!this.isNullOrWhitespace(url.u)) {\n                        urls.push(url.u);\n                    }\n                });\n                cipher.login.uris = this.makeUriArray(urls);\n            }\n        }\n        if (item.details != null) {\n            if (item.details.passwordHistory != null) {\n                this.parsePasswordHistory(item.details.passwordHistory, cipher);\n            }\n            if (!this.isNullOrWhitespace(item.details.ccnum) ||\n                !this.isNullOrWhitespace(item.details.cvv)) {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n            }\n            else if (!this.isNullOrWhitespace(item.details.firstname) ||\n                !this.isNullOrWhitespace(item.details.address1)) {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n            }\n            if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login && !this.isNullOrWhitespace(item.details.password)) {\n                cipher.login.password = item.details.password;\n            }\n            if (!this.isNullOrWhitespace(item.details.notesPlain)) {\n                cipher.notes = item.details.notesPlain.split(this.newLineRegex).join(\"\\n\") + \"\\n\";\n            }\n            if (item.details.fields != null) {\n                this.parseFields(item.details.fields, cipher, \"designation\", \"value\", \"name\");\n            }\n            if (item.details.sections != null) {\n                item.details.sections.forEach((section) => {\n                    if (section.fields != null) {\n                        this.parseFields(section.fields, cipher, \"n\", \"v\", \"t\");\n                    }\n                });\n            }\n        }\n    }\n    processStandardItem(item, cipher) {\n        cipher.favorite = item.openContents && item.openContents.faveIndex ? true : false;\n        cipher.name = this.getValueOrDefault(item.title);\n        if (item.typeName === \"securenotes.SecureNote\") {\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n            cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_4__.SecureNoteView();\n            cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n        }\n        else if (item.typeName === \"wallet.financial.CreditCard\") {\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n            cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n        }\n        else if (item.typeName === \"identities.Identity\") {\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n            cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n        }\n        else {\n            cipher.login.uris = this.makeUriArray(item.location);\n        }\n        if (item.secureContents != null) {\n            if (item.secureContents.passwordHistory != null) {\n                this.parsePasswordHistory(item.secureContents.passwordHistory, cipher);\n            }\n            if (!this.isNullOrWhitespace(item.secureContents.notesPlain)) {\n                cipher.notes = item.secureContents.notesPlain.split(this.newLineRegex).join(\"\\n\") + \"\\n\";\n            }\n            if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login) {\n                if (!this.isNullOrWhitespace(item.secureContents.password)) {\n                    cipher.login.password = item.secureContents.password;\n                }\n                if (item.secureContents.URLs != null) {\n                    const urls = [];\n                    item.secureContents.URLs.forEach((u) => {\n                        if (!this.isNullOrWhitespace(u.url)) {\n                            urls.push(u.url);\n                        }\n                    });\n                    if (urls.length > 0) {\n                        cipher.login.uris = this.makeUriArray(urls);\n                    }\n                }\n            }\n            if (item.secureContents.fields != null) {\n                this.parseFields(item.secureContents.fields, cipher, \"designation\", \"value\", \"name\");\n            }\n            if (item.secureContents.sections != null) {\n                item.secureContents.sections.forEach((section) => {\n                    if (section.fields != null) {\n                        this.parseFields(section.fields, cipher, \"n\", \"v\", \"t\");\n                    }\n                });\n            }\n        }\n    }\n    parsePasswordHistory(items, cipher) {\n        const maxSize = items.length > 5 ? 5 : items.length;\n        cipher.passwordHistory = items\n            .filter((h) => !this.isNullOrWhitespace(h.value) && h.time != null)\n            .sort((a, b) => b.time - a.time)\n            .slice(0, maxSize)\n            .map((h) => {\n            const ph = new _bitwarden_common_vault_models_view_password_history_view__WEBPACK_IMPORTED_MODULE_3__.PasswordHistoryView();\n            ph.password = h.value;\n            ph.lastUsedDate = new Date((\"\" + h.time).length >= 13 ? h.time : h.time * 1000);\n            return ph;\n        });\n    }\n    parseFields(fields, cipher, designationKey, valueKey, nameKey) {\n        fields.forEach((field) => {\n            if (field[valueKey] == null || field[valueKey].toString().trim() === \"\") {\n                return;\n            }\n            // TODO: when date FieldType exists, store this as a date field type instead of formatted Text if k is 'date'\n            const fieldValue = field.k === \"date\"\n                ? new Date(field[valueKey] * 1000).toUTCString()\n                : field[valueKey].toString();\n            const fieldDesignation = field[designationKey] != null ? field[designationKey].toString() : null;\n            if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login) {\n                if (this.isNullOrWhitespace(cipher.login.username) && fieldDesignation === \"username\") {\n                    cipher.login.username = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(cipher.login.password) &&\n                    fieldDesignation === \"password\") {\n                    cipher.login.password = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(cipher.login.totp) &&\n                    fieldDesignation != null &&\n                    fieldDesignation.startsWith(\"TOTP_\")) {\n                    cipher.login.totp = fieldValue;\n                    return;\n                }\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card) {\n                if (this.isNullOrWhitespace(cipher.card.number) && fieldDesignation === \"ccnum\") {\n                    cipher.card.number = fieldValue;\n                    cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                    return;\n                }\n                else if (this.isNullOrWhitespace(cipher.card.code) && fieldDesignation === \"cvv\") {\n                    cipher.card.code = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(cipher.card.cardholderName) &&\n                    fieldDesignation === \"cardholder\") {\n                    cipher.card.cardholderName = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(cipher.card.expiration) &&\n                    fieldDesignation === \"expiry\" &&\n                    fieldValue.length === 6) {\n                    cipher.card.expMonth = fieldValue.substr(4, 2);\n                    if (cipher.card.expMonth[0] === \"0\") {\n                        cipher.card.expMonth = cipher.card.expMonth.substr(1, 1);\n                    }\n                    cipher.card.expYear = fieldValue.substr(0, 4);\n                    return;\n                }\n                else if (fieldDesignation === \"type\") {\n                    // Skip since brand was determined from number above\n                    return;\n                }\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity) {\n                const identity = cipher.identity;\n                if (this.isNullOrWhitespace(identity.firstName) && fieldDesignation === \"firstname\") {\n                    identity.firstName = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(identity.lastName) && fieldDesignation === \"lastname\") {\n                    identity.lastName = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(identity.middleName) && fieldDesignation === \"initial\") {\n                    identity.middleName = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(identity.phone) && fieldDesignation === \"defphone\") {\n                    identity.phone = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(identity.company) && fieldDesignation === \"company\") {\n                    identity.company = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(identity.email) && fieldDesignation === \"email\") {\n                    identity.email = fieldValue;\n                    return;\n                }\n                else if (this.isNullOrWhitespace(identity.username) && fieldDesignation === \"username\") {\n                    identity.username = fieldValue;\n                    return;\n                }\n                else if (fieldDesignation === \"address\") {\n                    // fieldValue is an object casted into a string, so access the plain value instead\n                    const { street, city, country, zip } = field[valueKey];\n                    identity.address1 = this.getValueOrDefault(street);\n                    identity.city = this.getValueOrDefault(city);\n                    if (!this.isNullOrWhitespace(country)) {\n                        identity.country = country.toUpperCase();\n                    }\n                    identity.postalCode = this.getValueOrDefault(zip);\n                    return;\n                }\n            }\n            const fieldName = this.isNullOrWhitespace(field[nameKey]) ? \"no_name\" : field[nameKey];\n            if (fieldName === \"password\" &&\n                cipher.passwordHistory != null &&\n                cipher.passwordHistory.some((h) => h.password === fieldValue)) {\n                return;\n            }\n            const fieldType = field.k === \"concealed\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text;\n            this.processKvp(cipher, fieldName, fieldValue, fieldType);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29552 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/onepassword-1pif-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/onepassword-1pux-importer.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/onepassword-1pux-importer.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OnePassword1PuxImporter: () => (/* binding */ OnePassword1PuxImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/enums/cipher-reprompt-type */ \"../../libs/common/src/vault/enums/cipher-reprompt-type.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_password_history_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/password-history.view */ \"../../libs/common/src/vault/models/view/password-history.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n/* harmony import */ var _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./types/onepassword-1pux-importer-types */ \"../../libs/importer/src/importers/onepassword/types/onepassword-1pux-importer-types.ts\");\n\n\n\n\n\n\n\n\n\n\nclass OnePassword1PuxImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_8__.BaseImporter {\n    constructor() {\n        super(...arguments);\n        this.result = new _models_import_result__WEBPACK_IMPORTED_MODULE_7__.ImportResult();\n    }\n    parse(data) {\n        const exportData = JSON.parse(data);\n        const account = exportData.accounts[0];\n        // TODO Add handling of multiple vaults\n        // const personalVaults = account.vaults[0].filter((v) => v.attrs.type === VaultAttributeTypeEnum.Personal);\n        account.vaults.forEach((vault) => {\n            vault.items.forEach((item) => {\n                if (item.state === \"archived\") {\n                    return;\n                }\n                const cipher = this.initLoginCipher();\n                const category = item.categoryUuid;\n                switch (category) {\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Login:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Database:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Password:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.WirelessRouter:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Server:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.API_Credential:\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n                        cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_4__.LoginView();\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.CreditCard:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.BankAccount:\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                        cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_2__.CardView();\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.SecureNote:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.SoftwareLicense:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.EmailAccount:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.MedicalRecord:\n                        // case CategoryEnum.Document:\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                        cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_6__.SecureNoteView();\n                        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Identity:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.DriversLicense:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.OutdoorLicense:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Membership:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Passport:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.RewardsProgram:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.SocialSecurityNumber:\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                        cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_3__.IdentityView();\n                        break;\n                    default:\n                        break;\n                }\n                cipher.favorite = item.favIndex === 1 ? true : false;\n                this.processOverview(item.overview, cipher);\n                this.processLoginFields(item, cipher);\n                this.processDetails(category, item.details, cipher);\n                this.parsePasswordHistory(item.details.passwordHistory, cipher);\n                this.processSections(category, item.details.sections, cipher);\n                if (!this.isNullOrWhitespace(item.details.notesPlain)) {\n                    cipher.notes = item.details.notesPlain.split(this.newLineRegex).join(\"\\n\") + \"\\n\";\n                }\n                this.convertToNoteIfNeeded(cipher);\n                this.cleanupCipher(cipher);\n                this.result.ciphers.push(cipher);\n            });\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(this.result);\n        }\n        this.result.success = true;\n        return Promise.resolve(this.result);\n    }\n    processOverview(overview, cipher) {\n        if (overview == null) {\n            return;\n        }\n        cipher.name = this.getValueOrDefault(overview.title);\n        if (overview.urls != null) {\n            const urls = [];\n            overview.urls.forEach((url) => {\n                if (!this.isNullOrWhitespace(url.url)) {\n                    urls.push(url.url);\n                }\n            });\n            cipher.login.uris = this.makeUriArray(urls);\n        }\n        if (overview.tags != null && overview.tags.length > 0) {\n            const folderName = this.capitalize(overview.tags[0]);\n            this.processFolder(this.result, folderName);\n        }\n    }\n    capitalize(inputString) {\n        return inputString.trim().replace(/\\w\\S*/g, (w) => w.replace(/^\\w/, (c) => c.toUpperCase()));\n    }\n    processLoginFields(item, cipher) {\n        if (item.details == null) {\n            return;\n        }\n        if (item.details.loginFields == null || item.details.loginFields.length === 0) {\n            return;\n        }\n        item.details.loginFields.forEach((loginField) => {\n            if (loginField.designation === \"username\" && loginField.value !== \"\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n                cipher.login.username = loginField.value;\n                return;\n            }\n            if (loginField.designation === \"password\" && loginField.value !== \"\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n                cipher.login.password = loginField.value;\n                return;\n            }\n            let fieldValue = loginField.value;\n            let fieldType = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text;\n            switch (loginField.fieldType) {\n                case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.LoginFieldTypeEnum.Password:\n                    fieldType = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden;\n                    break;\n                case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.LoginFieldTypeEnum.CheckBox:\n                    fieldValue = loginField.value !== \"\" ? \"true\" : \"false\";\n                    fieldType = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Boolean;\n                    break;\n                default:\n                    break;\n            }\n            this.processKvp(cipher, loginField.name, fieldValue, fieldType);\n        });\n    }\n    processDetails(category, details, cipher) {\n        if (category !== _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Password) {\n            return;\n        }\n        if (details == null) {\n            return;\n        }\n        cipher.login.password = details.password;\n    }\n    processSections(category, sections, cipher) {\n        if (sections == null || sections.length === 0) {\n            return;\n        }\n        sections.forEach((section) => {\n            if (section.fields == null) {\n                return;\n            }\n            this.parseSectionFields(category, section.fields, cipher, section.title);\n        });\n    }\n    parseSectionFields(category, fields, cipher, sectionTitle) {\n        fields.forEach((field) => {\n            const valueKey = Object.keys(field.value)[0];\n            const anyField = field;\n            if (anyField.value == null ||\n                anyField.value[valueKey] == null ||\n                anyField.value[valueKey] === \"\") {\n                return;\n            }\n            const fieldName = this.getFieldName(field.title, sectionTitle);\n            const fieldValue = this.extractValue(field.value, valueKey);\n            if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login) {\n                if (this.fillLogin(field, fieldValue, cipher)) {\n                    return;\n                }\n                switch (category) {\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Login:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Database:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.EmailAccount:\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.WirelessRouter:\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Server:\n                        if (this.isNullOrWhitespace(cipher.login.uri) && field.id === \"url\") {\n                            cipher.login.uris = this.makeUriArray(fieldValue);\n                            return;\n                        }\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.API_Credential:\n                        if (this.fillApiCredentials(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    default:\n                        break;\n                }\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card) {\n                if (this.fillCreditCard(field, fieldValue, cipher)) {\n                    return;\n                }\n                if (category === _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.BankAccount) {\n                    if (this.fillBankAccount(field, fieldValue, cipher)) {\n                        return;\n                    }\n                }\n            }\n            else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity) {\n                if (this.fillIdentity(field, fieldValue, cipher, valueKey)) {\n                    return;\n                }\n                if (valueKey === \"address\") {\n                    // fieldValue is an object casted into a string, so access the plain value instead\n                    const { street, city, country, zip, state } = field.value.address;\n                    cipher.identity.address1 = this.getValueOrDefault(street);\n                    cipher.identity.city = this.getValueOrDefault(city);\n                    if (!this.isNullOrWhitespace(country)) {\n                        cipher.identity.country = country.toUpperCase();\n                    }\n                    cipher.identity.postalCode = this.getValueOrDefault(zip);\n                    cipher.identity.state = this.getValueOrDefault(state);\n                    return;\n                }\n                switch (category) {\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Identity:\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.DriversLicense:\n                        if (this.fillDriversLicense(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.OutdoorLicense:\n                        if (this.fillOutdoorLicense(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Membership:\n                        if (this.fillMembership(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.Passport:\n                        if (this.fillPassport(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.RewardsProgram:\n                        if (this.fillRewardsProgram(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    case _types_onepassword_1pux_importer_types__WEBPACK_IMPORTED_MODULE_9__.CategoryEnum.SocialSecurityNumber:\n                        if (this.fillSSN(field, fieldValue, cipher)) {\n                            return;\n                        }\n                        break;\n                    default:\n                        break;\n                }\n            }\n            if (valueKey === \"email\") {\n                // fieldValue is an object casted into a string, so access the plain value instead\n                const { email_address, provider } = field.value.email;\n                this.processKvp(cipher, fieldName, email_address, _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                this.processKvp(cipher, \"provider\", provider, _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                return;\n            }\n            // Do not include a password field if it's already in the history\n            if (field.title === \"password\" &&\n                cipher.passwordHistory != null &&\n                cipher.passwordHistory.some((h) => h.password === fieldValue)) {\n                return;\n            }\n            // TODO ?? If one of the fields is marked as guarded, then activate Password-Reprompt for the entire item\n            if (field.guarded && cipher.reprompt === _bitwarden_common_vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__.CipherRepromptType.None) {\n                cipher.reprompt = _bitwarden_common_vault_enums_cipher_reprompt_type__WEBPACK_IMPORTED_MODULE_1__.CipherRepromptType.Password;\n            }\n            const fieldType = valueKey === \"concealed\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text;\n            this.processKvp(cipher, fieldName, fieldValue, fieldType);\n        });\n    }\n    // Use the title if available. If not use the sectionTitle if available.\n    // Default to an empty string in all other cases.\n    getFieldName(title, sectionTitle) {\n        if (!this.isNullOrWhitespace(title)) {\n            return title;\n        }\n        if (!this.isNullOrWhitespace(sectionTitle)) {\n            return sectionTitle;\n        }\n        return \"\";\n    }\n    extractValue(value, valueKey) {\n        if (valueKey === \"date\") {\n            return new Date(value.date * 1000).toUTCString();\n        }\n        if (valueKey === \"monthYear\") {\n            return value.monthYear.toString();\n        }\n        return value[valueKey];\n    }\n    fillLogin(field, fieldValue, cipher) {\n        const fieldName = this.getFieldName(field.title);\n        if (this.isNullOrWhitespace(cipher.login.username) && fieldName === \"username\") {\n            cipher.login.username = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.login.password) && fieldName === \"password\") {\n            cipher.login.password = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.login.totp) &&\n            field.id != null &&\n            field.id.startsWith(\"TOTP_\")) {\n            cipher.login.totp = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillApiCredentials(field, fieldValue, cipher) {\n        const fieldName = this.getFieldName(field.title);\n        if (this.isNullOrWhitespace(cipher.login.password) && fieldName === \"credential\") {\n            cipher.login.password = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.login.uri) && fieldName === \"hostname\") {\n            cipher.login.uris = this.makeUriArray(fieldValue);\n            return true;\n        }\n        return false;\n    }\n    fillCreditCard(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.card.number) && field.id === \"ccnum\") {\n            cipher.card.number = fieldValue;\n            cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_2__.CardView.getCardBrandByPatterns(cipher.card.number);\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.card.code) && field.id === \"cvv\") {\n            cipher.card.code = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.card.cardholderName) && field.id === \"cardholder\") {\n            cipher.card.cardholderName = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.card.expiration) && field.id === \"expiry\") {\n            const monthYear = fieldValue.toString().trim();\n            cipher.card.expMonth = monthYear.substring(4, 6);\n            if (cipher.card.expMonth[0] === \"0\") {\n                cipher.card.expMonth = cipher.card.expMonth.substring(1, 2);\n            }\n            cipher.card.expYear = monthYear.substring(0, 4);\n            return true;\n        }\n        if (field.id === \"type\") {\n            // Skip since brand was determined from number above\n            return true;\n        }\n        return false;\n    }\n    fillBankAccount(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.card.cardholderName) && field.id === \"owner\") {\n            cipher.card.cardholderName = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillIdentity(field, fieldValue, cipher, valueKey) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"firstname\") {\n            cipher.identity.firstName = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.lastName) && field.id === \"lastname\") {\n            cipher.identity.lastName = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.middleName) && field.id === \"initial\") {\n            cipher.identity.middleName = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.phone) && field.id === \"defphone\") {\n            cipher.identity.phone = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.company) && field.id === \"company\") {\n            cipher.identity.company = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.email)) {\n            if (valueKey === \"email\") {\n                const { email_address, provider } = field.value.email;\n                cipher.identity.email = this.getValueOrDefault(email_address);\n                this.processKvp(cipher, \"provider\", provider, _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                return true;\n            }\n            if (field.id === \"email\") {\n                cipher.identity.email = fieldValue;\n                return true;\n            }\n        }\n        if (this.isNullOrWhitespace(cipher.identity.username) && field.id === \"username\") {\n            cipher.identity.username = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillDriversLicense(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"fullname\") {\n            this.processFullName(cipher, fieldValue);\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.address1) && field.id === \"address\") {\n            cipher.identity.address1 = fieldValue;\n            return true;\n        }\n        // TODO ISO code\n        if (this.isNullOrWhitespace(cipher.identity.country) && field.id === \"country\") {\n            cipher.identity.country = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.state) && field.id === \"state\") {\n            cipher.identity.state = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.licenseNumber) && field.id === \"number\") {\n            cipher.identity.licenseNumber = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillOutdoorLicense(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"name\") {\n            this.processFullName(cipher, fieldValue);\n            return true;\n        }\n        // TODO ISO code\n        if (this.isNullOrWhitespace(cipher.identity.country) && field.id === \"country\") {\n            cipher.identity.country = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.state) && field.id === \"state\") {\n            cipher.identity.state = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillMembership(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"member_name\") {\n            this.processFullName(cipher, fieldValue);\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.company) && field.id === \"org_name\") {\n            cipher.identity.company = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.phone) && field.id === \"phone\") {\n            cipher.identity.phone = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillPassport(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"fullname\") {\n            this.processFullName(cipher, fieldValue);\n            return true;\n        }\n        // TODO Iso\n        if (this.isNullOrWhitespace(cipher.identity.country) && field.id === \"issuing_country\") {\n            cipher.identity.country = fieldValue;\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.passportNumber) && field.id === \"number\") {\n            cipher.identity.passportNumber = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillRewardsProgram(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"member_name\") {\n            this.processFullName(cipher, fieldValue);\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.company) && field.id === \"company_name\") {\n            cipher.identity.company = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    fillSSN(field, fieldValue, cipher) {\n        if (this.isNullOrWhitespace(cipher.identity.firstName) && field.id === \"name\") {\n            this.processFullName(cipher, fieldValue);\n            return true;\n        }\n        if (this.isNullOrWhitespace(cipher.identity.ssn) && field.id === \"number\") {\n            cipher.identity.ssn = fieldValue;\n            return true;\n        }\n        return false;\n    }\n    parsePasswordHistory(historyItems, cipher) {\n        if (historyItems == null || historyItems.length === 0) {\n            return;\n        }\n        const maxSize = historyItems.length > 5 ? 5 : historyItems.length;\n        cipher.passwordHistory = historyItems\n            .filter((h) => !this.isNullOrWhitespace(h.value) && h.time != null)\n            .sort((a, b) => b.time - a.time)\n            .slice(0, maxSize)\n            .map((h) => {\n            const ph = new _bitwarden_common_vault_models_view_password_history_view__WEBPACK_IMPORTED_MODULE_5__.PasswordHistoryView();\n            ph.password = h.value;\n            ph.lastUsedDate = new Date((\"\" + h.time).length >= 13 ? h.time : h.time * 1000);\n            return ph;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 54340 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/onepassword-1pux-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/onepassword-csv-importer.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/onepassword-csv-importer.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IgnoredProperties: () => (/* binding */ IgnoredProperties),\n/* harmony export */   OnePasswordCsvImporter: () => (/* binding */ OnePasswordCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n/* harmony import */ var _cipher_import_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cipher-import-context */ \"../../libs/importer/src/importers/onepassword/cipher-import-context.ts\");\n\n\n\n\n\nconst IgnoredProperties = [\n    \"ainfo\",\n    \"autosubmit\",\n    \"notesplain\",\n    \"ps\",\n    \"scope\",\n    \"tags\",\n    \"title\",\n    \"uuid\",\n    \"notes\",\n];\nclass OnePasswordCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    constructor() {\n        super(...arguments);\n        this.loginPropertyParsers = [\n            this.setLoginUsername,\n            this.setLoginPassword,\n            this.setLoginUris,\n        ];\n        this.creditCardPropertyParsers = [\n            this.setCreditCardNumber,\n            this.setCreditCardVerification,\n            this.setCreditCardCardholderName,\n            this.setCreditCardExpiry,\n        ];\n        this.identityPropertyParsers = [\n            this.setIdentityFirstName,\n            this.setIdentityInitial,\n            this.setIdentityLastName,\n            this.setIdentityUserName,\n            this.setIdentityEmail,\n            this.setIdentityPhone,\n            this.setIdentityCompany,\n        ];\n    }\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n        const results = this.parseCsv(data, true, {\n            quoteChar: '\"',\n            escapeChar: \"\\\\\",\n        });\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (this.isNullOrWhitespace(this.getProp(value, \"title\"))) {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(this.getProp(value, \"title\"), \"--\");\n            this.setNotes(value, cipher);\n            this.setCipherType(value, cipher);\n            let altUsername = null;\n            for (const property in value) {\n                // eslint-disable-next-line\n                if (!value.hasOwnProperty(property) || this.isNullOrWhitespace(value[property])) {\n                    continue;\n                }\n                const context = new _cipher_import_context__WEBPACK_IMPORTED_MODULE_4__.CipherImportContext(value, property, cipher);\n                if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login && this.setKnownLoginValue(context)) {\n                    continue;\n                }\n                else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card && this.setKnownCreditCardValue(context)) {\n                    continue;\n                }\n                else if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity && this.setKnownIdentityValue(context)) {\n                    continue;\n                }\n                altUsername = this.setUnknownValue(context, altUsername);\n            }\n            if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login &&\n                !this.isNullOrWhitespace(altUsername) &&\n                this.isNullOrWhitespace(cipher.login.username) &&\n                altUsername.indexOf(\"://\") === -1) {\n                cipher.login.username = altUsername;\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    getProp(obj, name) {\n        const lowerObj = Object.entries(obj).reduce((agg, entry) => {\n            agg[entry[0].toLowerCase()] = entry[1];\n            return agg;\n        }, {});\n        return lowerObj[name.toLowerCase()];\n    }\n    getPropByRegexp(obj, regexp) {\n        const matchingKeys = Object.keys(obj).reduce((agg, key) => {\n            if (key.match(regexp)) {\n                agg.push(key);\n            }\n            return agg;\n        }, []);\n        if (matchingKeys.length === 0) {\n            return null;\n        }\n        else {\n            return obj[matchingKeys[0]];\n        }\n    }\n    getPropIncluding(obj, name) {\n        const includesMap = Object.keys(obj).reduce((agg, entry) => {\n            if (entry.toLowerCase().includes(name.toLowerCase())) {\n                agg.push(entry);\n            }\n            return agg;\n        }, []);\n        if (includesMap.length === 0) {\n            return null;\n        }\n        else {\n            return obj[includesMap[0]];\n        }\n    }\n    setNotes(importRecord, cipher) {\n        cipher.notes =\n            this.getValueOrDefault(this.getProp(importRecord, \"notesPlain\"), \"\") +\n                \"\\n\" +\n                this.getValueOrDefault(this.getProp(importRecord, \"notes\"), \"\") +\n                \"\\n\";\n        cipher.notes.trim();\n    }\n    setKnownLoginValue(context) {\n        return this.loginPropertyParsers.reduce((agg, func) => {\n            if (!agg) {\n                agg = func.bind(this)(context);\n            }\n            return agg;\n        }, false);\n    }\n    setKnownCreditCardValue(context) {\n        return this.creditCardPropertyParsers.reduce((agg, func) => {\n            if (!agg) {\n                agg = func.bind(this)(context);\n            }\n            return agg;\n        }, false);\n    }\n    setKnownIdentityValue(context) {\n        return this.identityPropertyParsers.reduce((agg, func) => {\n            if (!agg) {\n                agg = func.bind(this)(context);\n            }\n            return agg;\n        }, false);\n    }\n    setUnknownValue(context, altUsername) {\n        if (IgnoredProperties.indexOf(context.lowerProperty) === -1 &&\n            !context.lowerProperty.startsWith(\"section:\") &&\n            !context.lowerProperty.startsWith(\"section \")) {\n            if (altUsername == null && context.lowerProperty === \"email\") {\n                return context.importRecord[context.property];\n            }\n            else if (context.lowerProperty === \"created date\" ||\n                context.lowerProperty === \"modified date\") {\n                const readableDate = new Date(parseInt(context.importRecord[context.property], 10) * 1000).toUTCString();\n                this.processKvp(context.cipher, \"1Password \" + context.property, readableDate);\n                return null;\n            }\n            if (context.lowerProperty.includes(\"password\") ||\n                context.lowerProperty.includes(\"key\") ||\n                context.lowerProperty.includes(\"secret\")) {\n                this.processKvp(context.cipher, context.property, context.importRecord[context.property], _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden);\n            }\n            else {\n                this.processKvp(context.cipher, context.property, context.importRecord[context.property]);\n            }\n        }\n        return null;\n    }\n    setIdentityFirstName(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.firstName) &&\n            context.lowerProperty.includes(\"first name\")) {\n            context.cipher.identity.firstName = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setIdentityInitial(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.middleName) &&\n            context.lowerProperty.includes(\"initial\")) {\n            context.cipher.identity.middleName = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setIdentityLastName(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.lastName) &&\n            context.lowerProperty.includes(\"last name\")) {\n            context.cipher.identity.lastName = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setIdentityUserName(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.username) &&\n            context.lowerProperty.includes(\"username\")) {\n            context.cipher.identity.username = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setIdentityCompany(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.company) &&\n            context.lowerProperty.includes(\"company\")) {\n            context.cipher.identity.company = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setIdentityPhone(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.phone) &&\n            context.lowerProperty.includes(\"default phone\")) {\n            context.cipher.identity.phone = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setIdentityEmail(context) {\n        if (this.isNullOrWhitespace(context.cipher.identity.email) &&\n            context.lowerProperty.includes(\"email\")) {\n            context.cipher.identity.email = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setCreditCardNumber(context) {\n        if (this.isNullOrWhitespace(context.cipher.card.number) &&\n            context.lowerProperty.includes(\"number\")) {\n            context.cipher.card.number = context.importRecord[context.property];\n            context.cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(context.cipher.card.number);\n            return true;\n        }\n        return false;\n    }\n    setCreditCardVerification(context) {\n        if (this.isNullOrWhitespace(context.cipher.card.code) &&\n            context.lowerProperty.includes(\"verification number\")) {\n            context.cipher.card.code = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setCreditCardCardholderName(context) {\n        if (this.isNullOrWhitespace(context.cipher.card.cardholderName) &&\n            context.lowerProperty.includes(\"cardholder name\")) {\n            context.cipher.card.cardholderName = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setCreditCardExpiry(context) {\n        if (this.isNullOrWhitespace(context.cipher.card.expiration) &&\n            context.lowerProperty.includes(\"expiry date\") &&\n            context.importRecord[context.property].length === 7) {\n            context.cipher.card.expMonth = context.importRecord[context.property].substr(0, 2);\n            if (context.cipher.card.expMonth[0] === \"0\") {\n                context.cipher.card.expMonth = context.cipher.card.expMonth.substr(1, 1);\n            }\n            context.cipher.card.expYear = context.importRecord[context.property].substr(3, 4);\n            return true;\n        }\n        return false;\n    }\n    setLoginPassword(context) {\n        if (this.isNullOrWhitespace(context.cipher.login.password) &&\n            context.lowerProperty === \"password\") {\n            context.cipher.login.password = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setLoginUsername(context) {\n        if (this.isNullOrWhitespace(context.cipher.login.username) &&\n            context.lowerProperty === \"username\") {\n            context.cipher.login.username = context.importRecord[context.property];\n            return true;\n        }\n        return false;\n    }\n    setLoginUris(context) {\n        if ((context.cipher.login.uris == null || context.cipher.login.uris.length === 0) &&\n            context.lowerProperty === \"urls\") {\n            const urls = context.importRecord[context.property].split(this.newLineRegex);\n            context.cipher.login.uris = this.makeUriArray(urls);\n            return true;\n        }\n        else if (context.lowerProperty === \"url\") {\n            if (context.cipher.login.uris == null) {\n                context.cipher.login.uris = [];\n            }\n            context.cipher.login.uris.concat(this.makeUriArray(context.importRecord[context.property]));\n            return true;\n        }\n        return false;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 31712 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/onepassword-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/onepassword-mac-csv-importer.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/onepassword-mac-csv-importer.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OnePasswordMacCsvImporter: () => (/* binding */ OnePasswordMacCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./onepassword-csv-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-csv-importer.ts\");\n\n\n\n\nclass OnePasswordMacCsvImporter extends _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_3__.OnePasswordCsvImporter {\n    setCipherType(value, cipher) {\n        const onePassType = this.getValueOrDefault(this.getProp(value, \"type\"), \"Login\");\n        switch (onePassType) {\n            case \"Credit Card\":\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_3__.IgnoredProperties.push(\"type\");\n                break;\n            case \"Identity\":\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n                _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_3__.IgnoredProperties.push(\"type\");\n                break;\n            case \"Login\":\n            case \"Secure Note\":\n                _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_3__.IgnoredProperties.push(\"type\");\n                break;\n            default:\n                break;\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL29uZXBhc3N3b3JkL29uZXBhc3N3b3JkLW1hYy1jc3YtaW1wb3J0ZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBMkQ7QUFDYztBQUVRO0FBSU07QUFFaEYsTUFBTSx5QkFBMEIsU0FBUSw2RUFBc0I7SUFDbkUsYUFBYSxDQUFDLEtBQVUsRUFBRSxNQUFrQjtRQUMxQyxNQUFNLFdBQVcsR0FBRyxJQUFJLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDakYsUUFBUSxXQUFXLEVBQUUsQ0FBQztZQUNwQixLQUFLLGFBQWE7Z0JBQ2hCLE1BQU0sQ0FBQyxJQUFJLEdBQUcscUVBQVUsQ0FBQyxJQUFJLENBQUM7Z0JBQzlCLE1BQU0sQ0FBQyxJQUFJLEdBQUcsSUFBSSxtRkFBUSxFQUFFLENBQUM7Z0JBQzdCLHdFQUFpQixDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztnQkFDL0IsTUFBTTtZQUNSLEtBQUssVUFBVTtnQkFDYixNQUFNLENBQUMsSUFBSSxHQUFHLHFFQUFVLENBQUMsUUFBUSxDQUFDO2dCQUNsQyxNQUFNLENBQUMsUUFBUSxHQUFHLElBQUksMkZBQVksRUFBRSxDQUFDO2dCQUNyQyx3RUFBaUIsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7Z0JBQy9CLE1BQU07WUFDUixLQUFLLE9BQU8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XIge1xuICBzZXRDaXBoZXJUeXBlKHZhbHVlOiBhbnksIGNpcGhlcjogQ2lwaGVyVmlldykge1xuICAgIGNvbnN0IG9uZVBhc3NUeXBlID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh0aGlzLmdldFByb3AodmFsdWUsIFwidHlwZVwiKSwgXCJMb2dpblwiKTtcbiAgICBzd2l0Y2ggKG9uZVBhc3NUeXBlKSB7XG4gICAgICBjYXNlIFwiQ3JlZGl0IENhcmRcIjpcbiAgICAgICAgY2lwaGVyLnR5cGUgPSBDaXBoZXJUeXBlLkNhcmQ7XG4gICAgICAgIGNpcGhlci5jYXJkID0gbmV3IENhcmRWaWV3KCk7XG4gICAgICAgIElnbm9yZWRQcm9wZXJ0aWVzLnB1c2goXCJ0eXBlXCIpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgXCJJZGVudGl0eVwiOlxuICAgICAgICBjaXBoZXIudHlwZSA9IENpcGhlclR5cGUuSWRlbnRpdHk7XG4gICAgICAgIGNpcGhlci5pZGVudGl0eSA9IG5ldyBJZGVudGl0eVZpZXcoKTtcbiAgICAgICAgSWdub3JlZFByb3BlcnRpZXMucHVzaChcInR5cGVcIik7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSBcIkxvZ2luXCI6XG4gICAgICBjYXNlIFwiU2VjdXJlIE5vdGVcIjpcbiAgICAgICAgSWdub3JlZFByb3BlcnRpZXMucHVzaChcInR5cGVcIik7XG4gICAgICAgIGJyZWFrO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/onepassword-mac-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/onepassword-win-csv-importer.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/onepassword-win-csv-importer.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OnePasswordWinCsvImporter: () => (/* binding */ OnePasswordWinCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/login.view */ \"../../libs/common/src/vault/models/view/login.view.ts\");\n/* harmony import */ var _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./onepassword-csv-importer */ \"../../libs/importer/src/importers/onepassword/onepassword-csv-importer.ts\");\n\n\n\n\n\nclass OnePasswordWinCsvImporter extends _onepassword_csv_importer__WEBPACK_IMPORTED_MODULE_4__.OnePasswordCsvImporter {\n    constructor() {\n        super();\n        this.identityPropertyParsers.push(this.setIdentityAddress);\n    }\n    setCipherType(value, cipher) {\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Login;\n        cipher.login = new _bitwarden_common_vault_models_view_login_view__WEBPACK_IMPORTED_MODULE_3__.LoginView();\n        if (!this.isNullOrWhitespace(this.getPropByRegexp(value, /\\d+: number/i)) &&\n            !this.isNullOrWhitespace(this.getPropByRegexp(value, /\\d+: expiry date/i))) {\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n            cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n        }\n        if (!this.isNullOrWhitespace(this.getPropByRegexp(value, /name \\d+: first name/i)) ||\n            !this.isNullOrWhitespace(this.getPropByRegexp(value, /name \\d+: initial/i)) ||\n            !this.isNullOrWhitespace(this.getPropByRegexp(value, /name \\d+: last name/i)) ||\n            !this.isNullOrWhitespace(this.getPropByRegexp(value, /internet \\d+: email/i))) {\n            cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n            cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n        }\n    }\n    setIdentityAddress(context) {\n        if (context.lowerProperty.match(/address \\d+: address/i)) {\n            this.processKvp(context.cipher, \"address\", context.importRecord[context.property]);\n            return true;\n        }\n        return false;\n    }\n    setCreditCardExpiry(context) {\n        if (this.isNullOrWhitespace(context.cipher.card.expiration) &&\n            context.lowerProperty.includes(\"expiry date\")) {\n            const expSplit = context.importRecord[context.property].split(\"/\");\n            context.cipher.card.expMonth = expSplit[0];\n            if (context.cipher.card.expMonth[0] === \"0\" && context.cipher.card.expMonth.length === 2) {\n                context.cipher.card.expMonth = context.cipher.card.expMonth.substr(1, 1);\n            }\n            context.cipher.card.expYear = expSplit[2].length > 4 ? expSplit[2].substr(0, 4) : expSplit[2];\n            return true;\n        }\n        return false;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6656 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/onepassword-win-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/onepassword/types/onepassword-1pux-importer-types.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/importer/src/importers/onepassword/types/onepassword-1pux-importer-types.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CategoryEnum: () => (/* binding */ CategoryEnum),\n/* harmony export */   LoginFieldTypeEnum: () => (/* binding */ LoginFieldTypeEnum)\n/* harmony export */ });\nvar CategoryEnum;\n(function (CategoryEnum) {\n    CategoryEnum[\"Login\"] = \"001\";\n    CategoryEnum[\"CreditCard\"] = \"002\";\n    CategoryEnum[\"SecureNote\"] = \"003\";\n    CategoryEnum[\"Identity\"] = \"004\";\n    CategoryEnum[\"Password\"] = \"005\";\n    CategoryEnum[\"Document\"] = \"006\";\n    CategoryEnum[\"SoftwareLicense\"] = \"100\";\n    CategoryEnum[\"BankAccount\"] = \"101\";\n    CategoryEnum[\"Database\"] = \"102\";\n    CategoryEnum[\"DriversLicense\"] = \"103\";\n    CategoryEnum[\"OutdoorLicense\"] = \"104\";\n    CategoryEnum[\"Membership\"] = \"105\";\n    CategoryEnum[\"Passport\"] = \"106\";\n    CategoryEnum[\"RewardsProgram\"] = \"107\";\n    CategoryEnum[\"SocialSecurityNumber\"] = \"108\";\n    CategoryEnum[\"WirelessRouter\"] = \"109\";\n    CategoryEnum[\"Server\"] = \"110\";\n    CategoryEnum[\"EmailAccount\"] = \"111\";\n    CategoryEnum[\"API_Credential\"] = \"112\";\n    CategoryEnum[\"MedicalRecord\"] = \"113\";\n})(CategoryEnum || (CategoryEnum = {}));\nvar LoginFieldTypeEnum;\n(function (LoginFieldTypeEnum) {\n    LoginFieldTypeEnum[\"TextOrHtml\"] = \"T\";\n    LoginFieldTypeEnum[\"EmailAddress\"] = \"E\";\n    LoginFieldTypeEnum[\"URL\"] = \"U\";\n    LoginFieldTypeEnum[\"Number\"] = \"N\";\n    LoginFieldTypeEnum[\"Password\"] = \"P\";\n    LoginFieldTypeEnum[\"TextArea\"] = \"A\";\n    LoginFieldTypeEnum[\"PhoneNumber\"] = \"TEL\";\n    LoginFieldTypeEnum[\"CheckBox\"] = \"C\";\n})(LoginFieldTypeEnum || (LoginFieldTypeEnum = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5984 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/onepassword/types/onepassword-1pux-importer-types.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/padlock-csv-importer.ts":
/*!*****************************************************************!*\
  !*** ../../libs/importer/src/importers/padlock-csv-importer.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PadlockCsvImporter: () => (/* binding */ PadlockCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\nclass PadlockCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_2__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_1__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        let headers = null;\n        results.forEach((value) => {\n            if (headers == null) {\n                headers = value.map((v) => v);\n                return;\n            }\n            if (value.length < 2 || value.length !== headers.length) {\n                return;\n            }\n            if (!this.isNullOrWhitespace(value[1])) {\n                if (this.organization) {\n                    const tags = value[1].split(\",\");\n                    tags.forEach((tag) => {\n                        tag = tag.trim();\n                        let addCollection = true;\n                        let collectionIndex = result.collections.length;\n                        for (let i = 0; i < result.collections.length; i++) {\n                            if (result.collections[i].name === tag) {\n                                addCollection = false;\n                                collectionIndex = i;\n                                break;\n                            }\n                        }\n                        if (addCollection) {\n                            const collection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionView();\n                            collection.name = tag;\n                            result.collections.push(collection);\n                        }\n                        result.collectionRelationships.push([result.ciphers.length, collectionIndex]);\n                    });\n                }\n                else {\n                    const tags = value[1].split(\",\");\n                    const tag = tags.length > 0 ? tags[0].trim() : null;\n                    this.processFolder(result, tag);\n                }\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value[0], \"--\");\n            for (let i = 2; i < value.length; i++) {\n                const header = headers[i].trim().toLowerCase();\n                if (this.isNullOrWhitespace(value[i]) || this.isNullOrWhitespace(header)) {\n                    continue;\n                }\n                if (this.usernameFieldNames.indexOf(header) > -1) {\n                    cipher.login.username = value[i];\n                }\n                else if (this.passwordFieldNames.indexOf(header) > -1) {\n                    cipher.login.password = value[i];\n                }\n                else if (this.uriFieldNames.indexOf(header) > -1) {\n                    cipher.login.uris = this.makeUriArray(value[i]);\n                }\n                else {\n                    this.processKvp(cipher, headers[i], value[i]);\n                }\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8164 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/padlock-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passkeep-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/passkeep-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PassKeepCsvImporter: () => (/* binding */ PassKeepCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass PassKeepCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            this.processFolder(result, this.getValue(\"category\", value));\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValue(\"description\", value);\n            cipher.name = this.getValueOrDefault(this.getValue(\"title\", value), \"--\");\n            cipher.login.username = this.getValue(\"username\", value);\n            cipher.login.password = this.getValue(\"password\", value);\n            cipher.login.uris = this.makeUriArray(this.getValue(\"site\", value));\n            this.processKvp(cipher, \"Password 2\", this.getValue(\"password2\", value));\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    getValue(key, value) {\n        return this.getValueOrDefault(value[key], this.getValueOrDefault(value[\" \" + key]));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4256 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passkeep-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passky/passky-json-importer.ts":
/*!************************************************************************!*\
  !*** ../../libs/importer/src/importers/passky/passky-json-importer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasskyJsonImporter: () => (/* binding */ PasskyJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass PasskyJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const passkyExport = JSON.parse(data);\n        if (passkyExport == null ||\n            passkyExport.passwords == null ||\n            passkyExport.passwords.length === 0) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        if (passkyExport.encrypted == true) {\n            result.success = false;\n            result.errorMessage = \"Unable to import an encrypted passky backup.\";\n            return Promise.resolve(result);\n        }\n        passkyExport.passwords.forEach((record) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = record.website;\n            cipher.login.username = record.username;\n            cipher.login.password = record.password;\n            cipher.login.uris = this.makeUriArray(record.website);\n            cipher.notes = record.message;\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL3Bhc3NreS9wYXNza3ktanNvbi1pbXBvcnRlci50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBMEQ7QUFDVjtBQUt6QyxNQUFNLGtCQUFtQixTQUFRLHdEQUFZO0lBQ2xELEtBQUssQ0FBQyxJQU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WFrZVVyaUFycmF5KHJlY29yZC53ZWJzaXRlKTtcbiAgICAgIGNpcGhlci5ub3RlcyA9IHJlY29yZC5tZXNzYWdlO1xuXG4gICAgICB0aGlzLmNvbnZlcnRUb05vdGVJZk5lZWRlZChjaXBoZXIpO1xuICAgICAgdGhpcy5jbGVhbnVwQ2lwaGVyKGNpcGhlcik7XG4gICAgICByZXN1bHQuY2lwaGVycy5wdXNoKGNpcGhlcik7XG4gICAgfSk7XG5cbiAgICByZXN1bHQuc3VjY2VzcyA9IHRydWU7XG4gICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXN1bHQpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passky/passky-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passman-json-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/passman-json-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PassmanJsonImporter: () => (/* binding */ PassmanJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass PassmanJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || results.length === 0) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((credential) => {\n            if (credential.tags != null && credential.tags.length > 0) {\n                const folderName = credential.tags[0].text;\n                this.processFolder(result, folderName);\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = credential.label;\n            cipher.login.username = this.getValueOrDefault(credential.username);\n            if (this.isNullOrWhitespace(cipher.login.username)) {\n                cipher.login.username = this.getValueOrDefault(credential.email);\n            }\n            else if (!this.isNullOrWhitespace(credential.email)) {\n                cipher.notes = \"Email: \" + credential.email + \"\\n\";\n            }\n            cipher.login.password = this.getValueOrDefault(credential.password);\n            cipher.login.uris = this.makeUriArray(credential.url);\n            cipher.notes += this.getValueOrDefault(credential.description, \"\");\n            if (credential.otp != null) {\n                cipher.login.totp = this.getValueOrDefault(credential.otp.secret);\n            }\n            if (credential.custom_fields != null) {\n                credential.custom_fields.forEach((customField) => {\n                    switch (customField.field_type) {\n                        case \"text\":\n                        case \"password\":\n                            this.processKvp(cipher, customField.label, customField.value);\n                            break;\n                    }\n                });\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6004 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passman-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passpack-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/passpack-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasspackCsvImporter: () => (/* binding */ PasspackCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\nclass PasspackCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_2__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_1__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const tagsJson = !this.isNullOrWhitespace(value.Tags) ? JSON.parse(value.Tags) : null;\n            const tags = tagsJson != null && tagsJson.tags != null && tagsJson.tags.length > 0\n                ? tagsJson.tags\n                    .map((tagJson) => {\n                    try {\n                        const t = JSON.parse(tagJson);\n                        return this.getValueOrDefault(t.tag);\n                    }\n                    catch (_a) {\n                        // Ignore error\n                    }\n                    return null;\n                })\n                    .filter((t) => !this.isNullOrWhitespace(t))\n                : null;\n            if (this.organization && tags != null && tags.length > 0) {\n                tags.forEach((tag) => {\n                    let addCollection = true;\n                    let collectionIndex = result.collections.length;\n                    for (let i = 0; i < result.collections.length; i++) {\n                        if (result.collections[i].name === tag) {\n                            addCollection = false;\n                            collectionIndex = i;\n                            break;\n                        }\n                    }\n                    if (addCollection) {\n                        const collection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_0__.CollectionView();\n                        collection.name = tag;\n                        result.collections.push(collection);\n                    }\n                    result.collectionRelationships.push([result.ciphers.length, collectionIndex]);\n                });\n            }\n            else if (!this.organization && tags != null && tags.length > 0) {\n                this.processFolder(result, tags[0]);\n            }\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValueOrDefault(value.Notes, \"\");\n            cipher.notes += \"\\n\\n\" + this.getValueOrDefault(value[\"Shared Notes\"], \"\") + \"\\n\";\n            cipher.name = this.getValueOrDefault(value[\"Entry Name\"], \"--\");\n            cipher.login.username = this.getValueOrDefault(value[\"User ID\"]);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.uris = this.makeUriArray(value.URL);\n            if (value.__parsed_extra != null && value.__parsed_extra.length > 0) {\n                value.__parsed_extra.forEach((extra) => {\n                    if (!this.isNullOrWhitespace(extra)) {\n                        cipher.notes += \"\\n\" + extra;\n                    }\n                });\n            }\n            const fieldsJson = !this.isNullOrWhitespace(value[\"Extra Fields\"])\n                ? JSON.parse(value[\"Extra Fields\"])\n                : null;\n            const fields = fieldsJson != null && fieldsJson.extraFields != null && fieldsJson.extraFields.length > 0\n                ? fieldsJson.extraFields.map((fieldJson) => {\n                    try {\n                        return JSON.parse(fieldJson);\n                    }\n                    catch (_a) {\n                        // Ignore error\n                    }\n                    return null;\n                })\n                : null;\n            if (fields != null) {\n                fields.forEach((f) => {\n                    if (f != null) {\n                        this.processKvp(cipher, f.name, f.data);\n                    }\n                });\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10300 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passpack-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passwordagent-csv-importer.ts":
/*!***********************************************************************!*\
  !*** ../../libs/importer/src/importers/passwordagent-csv-importer.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordAgentCsvImporter: () => (/* binding */ PasswordAgentCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass PasswordAgentCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        let newVersion = true;\n        results.forEach((value) => {\n            if (value.length !== 5 && value.length < 9) {\n                return;\n            }\n            const altFormat = value.length === 10 && value[0] === \"0\";\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value[altFormat ? 1 : 0], \"--\");\n            cipher.login.username = this.getValueOrDefault(value[altFormat ? 2 : 1]);\n            cipher.login.password = this.getValueOrDefault(value[altFormat ? 3 : 2]);\n            if (value.length === 5) {\n                newVersion = false;\n                cipher.notes = this.getValueOrDefault(value[4]);\n                cipher.login.uris = this.makeUriArray(value[3]);\n            }\n            else {\n                const folder = this.getValueOrDefault(value[altFormat ? 9 : 8], \"(None)\");\n                let folderName = folder !== \"(None)\" ? folder.split(\"\\\\\").join(\"/\") : null;\n                if (folderName != null) {\n                    folderName = folder.split(\" > \").join(\"/\");\n                    folderName = folder.split(\">\").join(\"/\");\n                }\n                this.processFolder(result, folderName);\n                cipher.notes = this.getValueOrDefault(value[altFormat ? 5 : 3]);\n                cipher.login.uris = this.makeUriArray(value[4]);\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (newVersion && this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6116 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passwordagent-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passwordboss-json-importer.ts":
/*!***********************************************************************!*\
  !*** ../../libs/importer/src/importers/passwordboss-json-importer.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordBossJsonImporter: () => (/* binding */ PasswordBossJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\nclass PasswordBossJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || results.items == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const foldersMap = new Map();\n        results.folders.forEach((value) => {\n            foldersMap.set(value.id, value.name);\n        });\n        const foldersIndexMap = new Map();\n        foldersMap.forEach((val, key) => {\n            foldersIndexMap.set(key, result.folders.length);\n            const f = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_2__.FolderView();\n            f.name = val;\n            result.folders.push(f);\n        });\n        results.items.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.name, \"--\");\n            cipher.login.uris = this.makeUriArray(value.login_url);\n            if (value.folder != null && foldersIndexMap.has(value.folder)) {\n                result.folderRelationships.push([result.ciphers.length, foldersIndexMap.get(value.folder)]);\n            }\n            if (value.identifiers == null) {\n                return;\n            }\n            if (!this.isNullOrWhitespace(value.identifiers.notes)) {\n                cipher.notes = value.identifiers.notes.split(\"\\\\r\\\\n\").join(\"\\n\").split(\"\\\\n\").join(\"\\n\");\n            }\n            if (value.type === \"CreditCard\") {\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n            }\n            for (const property in value.identifiers) {\n                // eslint-disable-next-line\n                if (!value.identifiers.hasOwnProperty(property)) {\n                    continue;\n                }\n                const valObj = value.identifiers[property];\n                const val = valObj != null ? valObj.toString() : null;\n                if (this.isNullOrWhitespace(val) ||\n                    property === \"notes\" ||\n                    property === \"ignoreItemInSecurityScore\") {\n                    continue;\n                }\n                if (property === \"custom_fields\") {\n                    valObj.forEach((cf) => {\n                        this.processKvp(cipher, cf.name, cf.value);\n                    });\n                    continue;\n                }\n                if (cipher.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card) {\n                    if (property === \"cardNumber\") {\n                        cipher.card.number = val;\n                        cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                        continue;\n                    }\n                    else if (property === \"nameOnCard\") {\n                        cipher.card.cardholderName = val;\n                        continue;\n                    }\n                    else if (property === \"security_code\") {\n                        cipher.card.code = val;\n                        continue;\n                    }\n                    else if (property === \"expires\") {\n                        try {\n                            const expDate = new Date(val);\n                            cipher.card.expYear = expDate.getFullYear().toString();\n                            cipher.card.expMonth = (expDate.getMonth() + 1).toString();\n                        }\n                        catch (_a) {\n                            // Ignore error\n                        }\n                        continue;\n                    }\n                    else if (property === \"cardType\") {\n                        continue;\n                    }\n                }\n                else {\n                    if ((property === \"username\" || property === \"email\") &&\n                        this.isNullOrWhitespace(cipher.login.username)) {\n                        cipher.login.username = val;\n                        continue;\n                    }\n                    else if (property === \"password\") {\n                        cipher.login.password = val;\n                        continue;\n                    }\n                    else if (property === \"totp\") {\n                        cipher.login.totp = val;\n                        continue;\n                    }\n                    else if ((cipher.login.uris == null || cipher.login.uris.length === 0) &&\n                        this.uriFieldNames.indexOf(property) > -1) {\n                        cipher.login.uris = this.makeUriArray(val);\n                        continue;\n                    }\n                }\n                this.processKvp(cipher, property, val);\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12204 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passwordboss-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passworddragon-xml-importer.ts":
/*!************************************************************************!*\
  !*** ../../libs/importer/src/importers/passworddragon-xml-importer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordDragonXmlImporter: () => (/* binding */ PasswordDragonXmlImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass PasswordDragonXmlImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const doc = this.parseXml(data);\n        if (doc == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const records = doc.querySelectorAll(\"PasswordManager > record\");\n        Array.from(records).forEach((record) => {\n            const category = this.querySelectorDirectChild(record, \"Category\");\n            const categoryText = category != null &&\n                !this.isNullOrWhitespace(category.textContent) &&\n                category.textContent !== \"Unfiled\"\n                ? category.textContent\n                : null;\n            this.processFolder(result, categoryText);\n            const accountName = this.querySelectorDirectChild(record, \"Account-Name\");\n            const userId = this.querySelectorDirectChild(record, \"User-Id\");\n            const password = this.querySelectorDirectChild(record, \"Password\");\n            const url = this.querySelectorDirectChild(record, \"URL\");\n            const notes = this.querySelectorDirectChild(record, \"Notes\");\n            const cipher = this.initLoginCipher();\n            cipher.name =\n                accountName != null ? this.getValueOrDefault(accountName.textContent, \"--\") : \"--\";\n            cipher.notes = notes != null ? this.getValueOrDefault(notes.textContent) : \"\";\n            cipher.login.username = userId != null ? this.getValueOrDefault(userId.textContent) : null;\n            cipher.login.password =\n                password != null ? this.getValueOrDefault(password.textContent) : null;\n            cipher.login.uris = url != null ? this.makeUriArray(url.textContent) : null;\n            const attributes = [];\n            for (let i = 1; i <= 10; i++) {\n                attributes.push(\"Attribute-\" + i);\n            }\n            this.querySelectorAllDirectChild(record, attributes.join(\",\")).forEach((attr) => {\n                if (this.isNullOrWhitespace(attr.textContent) || attr.textContent === \"null\") {\n                    return;\n                }\n                this.processKvp(cipher, attr.tagName, attr.textContent);\n            });\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7120 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passworddragon-xml-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passwordsafe-xml-importer.ts":
/*!**********************************************************************!*\
  !*** ../../libs/importer/src/importers/passwordsafe-xml-importer.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordSafeXmlImporter: () => (/* binding */ PasswordSafeXmlImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n/** This is the importer for the xml format from pwsafe.org  */\nclass PasswordSafeXmlImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const doc = this.parseXml(data);\n        if (doc == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const passwordSafe = doc.querySelector(\"passwordsafe\");\n        if (passwordSafe == null) {\n            result.errorMessage = \"Missing `passwordsafe` node.\";\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const notesDelimiter = passwordSafe.getAttribute(\"delimiter\");\n        const entries = doc.querySelectorAll(\"passwordsafe > entry\");\n        Array.from(entries).forEach((entry) => {\n            const group = this.querySelectorDirectChild(entry, \"group\");\n            const groupText = group != null && !this.isNullOrWhitespace(group.textContent)\n                ? group.textContent.split(\".\").join(\"/\")\n                : null;\n            this.processFolder(result, groupText);\n            const title = this.querySelectorDirectChild(entry, \"title\");\n            const username = this.querySelectorDirectChild(entry, \"username\");\n            const email = this.querySelectorDirectChild(entry, \"email\");\n            const password = this.querySelectorDirectChild(entry, \"password\");\n            const url = this.querySelectorDirectChild(entry, \"url\");\n            const notes = this.querySelectorDirectChild(entry, \"notes\");\n            const cipher = this.initLoginCipher();\n            cipher.name = title != null ? this.getValueOrDefault(title.textContent, \"--\") : \"--\";\n            cipher.notes =\n                notes != null\n                    ? this.getValueOrDefault(notes.textContent, \"\").split(notesDelimiter).join(\"\\n\")\n                    : null;\n            cipher.login.username =\n                username != null ? this.getValueOrDefault(username.textContent) : null;\n            cipher.login.password =\n                password != null ? this.getValueOrDefault(password.textContent) : null;\n            cipher.login.uris = url != null ? this.makeUriArray(url.textContent) : null;\n            if (this.isNullOrWhitespace(cipher.login.username) && email != null) {\n                cipher.login.username = this.getValueOrDefault(email.textContent);\n            }\n            else if (email != null && !this.isNullOrWhitespace(email.textContent)) {\n                cipher.notes = this.isNullOrWhitespace(cipher.notes)\n                    ? \"Email: \" + email.textContent\n                    : cipher.notes + \"\\n\" + \"Email: \" + email.textContent;\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8240 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passwordsafe-xml-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/passwordwallet-txt-importer.ts":
/*!************************************************************************!*\
  !*** ../../libs/importer/src/importers/passwordwallet-txt-importer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordWalletTxtImporter: () => (/* binding */ PasswordWalletTxtImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass PasswordWalletTxtImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length < 1) {\n                return;\n            }\n            if (value.length > 5) {\n                this.processFolder(result, value[5]);\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value[0], \"--\");\n            if (value.length > 4) {\n                cipher.notes = this.getValueOrDefault(value[4], \"\").split(\"¬\").join(\"\\n\");\n            }\n            if (value.length > 2) {\n                cipher.login.username = this.getValueOrDefault(value[2]);\n            }\n            if (value.length > 3) {\n                cipher.login.password = this.getValueOrDefault(value[3]);\n            }\n            if (value.length > 1) {\n                cipher.login.uris = this.makeUriArray(value[1]);\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4416 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/passwordwallet-txt-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/protonpass/protonpass-import-utils.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/importer/src/importers/protonpass/protonpass-import-utils.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   processNames: () => (/* binding */ processNames)\n/* harmony export */ });\nfunction processNames(fullname, firstname, middlename, lastname) {\n    let mappedFirstName = firstname;\n    let mappedMiddleName = middlename;\n    let mappedLastName = lastname;\n    if (fullname) {\n        const parts = fullname.trim().split(/\\s+/);\n        // Assign parts to first, middle, and last name based on the number of parts\n        mappedFirstName = parts[0] || firstname;\n        mappedLastName = parts.length > 1 ? parts[parts.length - 1] : lastname;\n        mappedMiddleName = parts.length > 2 ? parts.slice(1, -1).join(\" \") : middlename;\n    }\n    return { mappedFirstName, mappedMiddleName, mappedLastName };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL3Byb3RvbnBhc3MvcHJvdG9ucGFzcy1pbXBvcnQtdXRpbHMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLFNBQVMsWUFBWSxDQUMxQixRQUF1QixFQUN2QixTQUF3QixFQUN4QixVQUF5QixFQUN6QixRQUF1QjtJQUV2QixJQUFJLGVBQWUsR0FBRyxTQUFTLENBQUM7SUFDaEMsSUFBSSxnQkFBZ0IsR0FBRyxVQUFVLENBQUM7SUFDbEMsSUFBSSxjQUFjLEdBQUcsUUFBUSxDQUFDO0lBRTlCLElBQUksUUFBUSxFQUFFLENBQUM7UUFDYixNQUFNLEtBQUssR0FBRyxRQUFRLENBQUMsSUFBSSxFQUFFLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRTNDLDRFQUE0RTtRQUM1RSxlQUFlLEdBQUcsS0FBSyxDQUFDLENBQUMsQ0FBQyxJQUFJLFNBQVMsQ0FBQztRQUN4QyxjQUFjLEdBQUcsS0FBSyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQ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c1xuICAgIG1hcHBlZEZpcnN0TmFtZSA9IHBhcnRzWzBdIHx8IGZpcnN0bmFtZTtcbiAgICBtYXBwZWRMYXN0TmFtZSA9IHBhcnRzLmxlbmd0aCA+IDEgPyBwYXJ0c1twYXJ0cy5sZW5ndGggLSAxXSA6IGxhc3RuYW1lO1xuICAgIG1hcHBlZE1pZGRsZU5hbWUgPSBwYXJ0cy5sZW5ndGggPiAyID8gcGFydHMuc2xpY2UoMSwgLTEpLmpvaW4oXCIgXCIpIDogbWlkZGxlbmFtZTtcbiAgfVxuXG4gIHJldHVybiB7IG1hcHBlZEZpcnN0TmFtZSwgbWFwcGVkTWlkZGxlTmFtZSwgbWFwcGVkTGFzdE5hbWUgfTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/protonpass/protonpass-import-utils.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/protonpass/protonpass-json-importer.ts":
/*!********************************************************************************!*\
  !*** ../../libs/importer/src/importers/protonpass/protonpass-json-importer.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProtonPassJsonImporter: () => (/* binding */ ProtonPassJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/identity.view */ \"../../libs/common/src/vault/models/view/identity.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n/* harmony import */ var _protonpass_import_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./protonpass-import-utils */ \"../../libs/importer/src/importers/protonpass/protonpass-import-utils.ts\");\n/* harmony import */ var _types_protonpass_json_type__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./types/protonpass-json-type */ \"../../libs/importer/src/importers/protonpass/types/protonpass-json-type.ts\");\n\n\n\n\n\n\n\n\nclass ProtonPassJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_5__.BaseImporter {\n    constructor(i18nService) {\n        super();\n        this.i18nService = i18nService;\n        this.mappedIdentityItemKeys = [\n            \"fullName\",\n            \"firstName\",\n            \"middleName\",\n            \"lastName\",\n            \"email\",\n            \"phoneNumber\",\n            \"company\",\n            \"socialSecurityNumber\",\n            \"passportNumber\",\n            \"licenseNumber\",\n            \"organization\",\n            \"streetAddress\",\n            \"floor\",\n            \"county\",\n            \"city\",\n            \"stateOrProvince\",\n            \"zipOrPostalCode\",\n            \"countryOrRegion\",\n        ];\n        this.identityItemExtraFieldsKeys = [\n            \"extraPersonalDetails\",\n            \"extraAddressDetails\",\n            \"extraContactDetails\",\n            \"extraWorkDetails\",\n            \"extraSections\",\n        ];\n    }\n    processIdentityItemUnmappedAndExtraFields(cipher, identityItem) {\n        Object.keys(identityItem).forEach((key) => {\n            if (!this.mappedIdentityItemKeys.includes(key) &&\n                !this.identityItemExtraFieldsKeys.includes(key)) {\n                this.processKvp(cipher, key, identityItem[key]);\n                return;\n            }\n            if (this.identityItemExtraFieldsKeys.includes(key)) {\n                if (key !== \"extraSections\") {\n                    const extraFields = identityItem[key];\n                    extraFields === null || extraFields === void 0 ? void 0 : extraFields.forEach((extraField) => {\n                        this.processKvp(cipher, extraField.fieldName, extraField.data.content, extraField.type === \"hidden\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                    });\n                }\n                else {\n                    const extraSections = identityItem[key];\n                    extraSections === null || extraSections === void 0 ? void 0 : extraSections.forEach((extraSection) => {\n                        var _a;\n                        (_a = extraSection.sectionFields) === null || _a === void 0 ? void 0 : _a.forEach((extraField) => {\n                            this.processKvp(cipher, extraField.fieldName, extraField.data.content, extraField.type === \"hidden\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                        });\n                    });\n                }\n            }\n        });\n    }\n    parse(data) {\n        var _a, _b;\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_4__.ImportResult();\n        const results = JSON.parse(data);\n        if (results == null || results.vaults == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        if (results.encrypted) {\n            result.success = false;\n            result.errorMessage = this.i18nService.t(\"unsupportedEncryptedImport\");\n            return Promise.resolve(result);\n        }\n        for (const [, vault] of Object.entries(results.vaults)) {\n            for (const item of vault.items) {\n                if (item.state == _types_protonpass_json_type__WEBPACK_IMPORTED_MODULE_7__.ProtonPassItemState.TRASHED) {\n                    continue;\n                }\n                const cipher = this.initLoginCipher();\n                cipher.name = this.getValueOrDefault(item.data.metadata.name, \"--\");\n                cipher.notes = this.getValueOrDefault(item.data.metadata.note);\n                cipher.favorite = item.pinned;\n                switch (item.data.type) {\n                    case \"login\": {\n                        const loginContent = item.data.content;\n                        cipher.login.uris = this.makeUriArray(loginContent.urls);\n                        cipher.login.username = this.getValueOrDefault(loginContent.itemUsername);\n                        // if the cipher has no username then the email is used as the username\n                        if (cipher.login.username == null) {\n                            cipher.login.username = this.getValueOrDefault(loginContent.itemEmail);\n                        }\n                        else {\n                            this.processKvp(cipher, \"email\", loginContent.itemEmail);\n                        }\n                        cipher.login.password = this.getValueOrDefault(loginContent.password);\n                        cipher.login.totp = this.getValueOrDefault(loginContent.totpUri);\n                        for (const extraField of item.data.extraFields) {\n                            this.processKvp(cipher, extraField.fieldName, extraField.type == \"totp\" ? extraField.data.totpUri : extraField.data.content, extraField.type == \"text\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden);\n                        }\n                        break;\n                    }\n                    case \"note\":\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                        cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_3__.SecureNoteView();\n                        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                        break;\n                    case \"creditCard\": {\n                        const creditCardContent = item.data.content;\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                        cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                        cipher.card.cardholderName = this.getValueOrDefault(creditCardContent.cardholderName);\n                        cipher.card.number = this.getValueOrDefault(creditCardContent.number);\n                        cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(creditCardContent.number);\n                        cipher.card.code = this.getValueOrDefault(creditCardContent.verificationNumber);\n                        if (!this.isNullOrWhitespace(creditCardContent.expirationDate)) {\n                            cipher.card.expMonth = creditCardContent.expirationDate.substring(5, 7);\n                            cipher.card.expMonth = cipher.card.expMonth.replace(/^0+/, \"\");\n                            cipher.card.expYear = creditCardContent.expirationDate.substring(0, 4);\n                        }\n                        if (!this.isNullOrWhitespace(creditCardContent.pin)) {\n                            this.processKvp(cipher, \"PIN\", creditCardContent.pin, _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden);\n                        }\n                        break;\n                    }\n                    case \"identity\": {\n                        const identityContent = item.data.content;\n                        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Identity;\n                        cipher.identity = new _bitwarden_common_vault_models_view_identity_view__WEBPACK_IMPORTED_MODULE_2__.IdentityView();\n                        const { mappedFirstName, mappedMiddleName, mappedLastName } = (0,_protonpass_import_utils__WEBPACK_IMPORTED_MODULE_6__.processNames)(this.getValueOrDefault(identityContent.fullName), this.getValueOrDefault(identityContent.firstName), this.getValueOrDefault(identityContent.middleName), this.getValueOrDefault(identityContent.lastName));\n                        cipher.identity.firstName = mappedFirstName;\n                        cipher.identity.middleName = mappedMiddleName;\n                        cipher.identity.lastName = mappedLastName;\n                        cipher.identity.email = this.getValueOrDefault(identityContent.email);\n                        cipher.identity.phone = this.getValueOrDefault(identityContent.phoneNumber);\n                        cipher.identity.company = this.getValueOrDefault(identityContent.company);\n                        cipher.identity.ssn = this.getValueOrDefault(identityContent.socialSecurityNumber);\n                        cipher.identity.passportNumber = this.getValueOrDefault(identityContent.passportNumber);\n                        cipher.identity.licenseNumber = this.getValueOrDefault(identityContent.licenseNumber);\n                        const address3 = `${(_a = identityContent.floor) !== null && _a !== void 0 ? _a : \"\"} ${(_b = identityContent.county) !== null && _b !== void 0 ? _b : \"\"}`.trim();\n                        cipher.identity.address1 = this.getValueOrDefault(identityContent.organization);\n                        cipher.identity.address2 = this.getValueOrDefault(identityContent.streetAddress);\n                        cipher.identity.address3 = this.getValueOrDefault(address3);\n                        cipher.identity.city = this.getValueOrDefault(identityContent.city);\n                        cipher.identity.state = this.getValueOrDefault(identityContent.stateOrProvince);\n                        cipher.identity.postalCode = this.getValueOrDefault(identityContent.zipOrPostalCode);\n                        cipher.identity.country = this.getValueOrDefault(identityContent.countryOrRegion);\n                        this.processIdentityItemUnmappedAndExtraFields(cipher, identityContent);\n                        for (const extraField of item.data.extraFields) {\n                            this.processKvp(cipher, extraField.fieldName, extraField.data.content, extraField.type === \"hidden\" ? _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden : _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Text);\n                        }\n                        break;\n                    }\n                    default:\n                        continue;\n                }\n                this.processFolder(result, vault.name);\n                this.cleanupCipher(cipher);\n                result.ciphers.push(cipher);\n            }\n        }\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 23524 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/protonpass/protonpass-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/protonpass/types/protonpass-json-type.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/importer/src/importers/protonpass/types/protonpass-json-type.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ProtonPassItemState: () => (/* binding */ ProtonPassItemState)\n/* harmony export */ });\nvar ProtonPassItemState;\n(function (ProtonPassItemState) {\n    ProtonPassItemState[ProtonPassItemState[\"ACTIVE\"] = 1] = \"ACTIVE\";\n    ProtonPassItemState[ProtonPassItemState[\"TRASHED\"] = 2] = \"TRASHED\";\n})(ProtonPassItemState || (ProtonPassItemState = {}));\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4396 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/protonpass/types/protonpass-json-type.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/psono/psono-json-importer.ts":
/*!**********************************************************************!*\
  !*** ../../libs/importer/src/importers/psono/psono-json-importer.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PsonoJsonImporter: () => (/* binding */ PsonoJsonImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\nclass PsonoJsonImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    constructor() {\n        super(...arguments);\n        this.WEBSITE_mappedValues = new Set([\n            \"type\",\n            \"name\",\n            \"website_password_title\",\n            \"website_password_notes\",\n            \"website_password_username\",\n            \"website_password_password\",\n            \"website_password_url\",\n            \"autosubmit\",\n            \"website_password_auto_submit\",\n            \"urlfilter\",\n            \"website_password_url_filter\",\n        ]);\n        this.APP_PWD_mappedValues = new Set([\n            \"type\",\n            \"name\",\n            \"application_password_title\",\n            \"application_password_notes\",\n            \"application_password_username\",\n            \"application_password_password\",\n        ]);\n        this.BOOKMARK_mappedValues = new Set([\n            \"type\",\n            \"name\",\n            \"bookmark_title\",\n            \"bookmark_notes\",\n            \"bookmark_url\",\n        ]);\n        this.NOTES_mappedValues = new Set([\"type\", \"name\", \"note_title\", \"note_notes\"]);\n        this.TOTP_mappedValues = new Set([\"type\", \"name\", \"totp_title\", \"totp_notes\", \"totp_code\"]);\n        this.ENV_VARIABLES_mappedValues = new Set([\n            \"type\",\n            \"name\",\n            \"environment_variables_title\",\n            \"environment_variables_notes\",\n            \"environment_variables_variables\",\n        ]);\n        this.GPG_mappedValues = new Set([\n            \"type\",\n            \"name\",\n            \"mail_gpg_own_key_title\",\n            \"mail_gpg_own_key_public\",\n            \"mail_gpg_own_key_name\",\n            \"mail_gpg_own_key_email\",\n            \"mail_gpg_own_key_private\",\n        ]);\n    }\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n        const psonoExport = JSON.parse(data);\n        if (psonoExport == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        this.parseFolders(result, psonoExport.folders);\n        this.handleItemParsing(result, psonoExport.items);\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseFolders(result, folders, parentName) {\n        if (folders == null || folders.length === 0) {\n            return;\n        }\n        folders.forEach((folder) => {\n            const folderHasItems = folder.items != null && folder.items.length > 0;\n            const folderHasSubfolders = folder.folders != null && folder.folders.length > 0;\n            if (!folderHasItems && !folderHasSubfolders) {\n                return;\n            }\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(parentName)) {\n                folder.name = parentName + \"/\" + folder.name;\n            }\n            if (folderHasSubfolders) {\n                this.parseFolders(result, folder.folders, folder.name);\n            }\n            if (!folderHasItems) {\n                this.processFolder(result, folder.name, folderHasItems);\n            }\n            else {\n                this.handleItemParsing(result, folder.items, folder.name);\n            }\n        });\n    }\n    handleItemParsing(result, items, folderName) {\n        if (items == null || items.length === 0) {\n            return;\n        }\n        items.forEach((record) => {\n            const cipher = this.parsePsonoItem(record);\n            this.processFolder(result, folderName, true);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n    }\n    parsePsonoItem(item) {\n        const cipher = this.initLoginCipher();\n        switch (item.type) {\n            case \"website_password\":\n                this.parseWebsiteLogins(item, cipher);\n                break;\n            case \"application_password\":\n                this.parseApplicationPasswords(item, cipher);\n                break;\n            case \"environment_variables\":\n                this.parseEnvironmentVariables(item, cipher);\n                break;\n            case \"totp\":\n                this.parseTOTP(item, cipher);\n                break;\n            case \"bookmark\":\n                this.parseBookmarks(item, cipher);\n                break;\n            // Skipping this until we can save GPG into notes/custom fields\n            // case \"mail_gpg_own_key\":\n            //   this.parseGPG(item, cipher);\n            //   break;\n            case \"note\":\n                this.parseNotes(item, cipher);\n                break;\n            default:\n                break;\n        }\n        return cipher;\n    }\n    parseWebsiteLogins(entry, cipher) {\n        var _a;\n        if (entry == null || entry.type != \"website_password\") {\n            return;\n        }\n        cipher.name = entry.website_password_title;\n        cipher.notes = entry.website_password_notes;\n        cipher.login.username = entry.website_password_username;\n        cipher.login.password = entry.website_password_password;\n        cipher.login.uris = this.makeUriArray(entry.website_password_url);\n        this.processKvp(cipher, \"website_password_auto_submit\", (_a = entry.website_password_auto_submit) === null || _a === void 0 ? void 0 : _a.toString(), _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.FieldType.Boolean);\n        this.processKvp(cipher, \"website_password_url_filter\", entry.website_password_url_filter);\n        this.importUnmappedFields(cipher, entry, this.WEBSITE_mappedValues);\n    }\n    parseApplicationPasswords(entry, cipher) {\n        if (entry == null || entry.type != \"application_password\") {\n            return;\n        }\n        cipher.name = entry.application_password_title;\n        cipher.notes = entry.application_password_notes;\n        cipher.login.username = entry.application_password_username;\n        cipher.login.password = entry.application_password_password;\n        this.importUnmappedFields(cipher, entry, this.APP_PWD_mappedValues);\n    }\n    parseBookmarks(entry, cipher) {\n        if (entry == null || entry.type != \"bookmark\") {\n            return;\n        }\n        cipher.name = entry.bookmark_title;\n        cipher.notes = entry.bookmark_notes;\n        cipher.login.uris = this.makeUriArray(entry.bookmark_url);\n        this.importUnmappedFields(cipher, entry, this.BOOKMARK_mappedValues);\n    }\n    parseNotes(entry, cipher) {\n        if (entry == null || entry.type != \"note\") {\n            return;\n        }\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.SecureNote;\n        cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView();\n        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.SecureNoteType.Generic;\n        cipher.name = entry.note_title;\n        cipher.notes = entry.note_notes;\n        this.importUnmappedFields(cipher, entry, this.NOTES_mappedValues);\n    }\n    parseTOTP(entry, cipher) {\n        if (entry == null || entry.type != \"totp\") {\n            return;\n        }\n        cipher.name = entry.totp_title;\n        cipher.notes = entry.totp_notes;\n        cipher.login.totp = entry.totp_code;\n        this.importUnmappedFields(cipher, entry, this.TOTP_mappedValues);\n    }\n    parseEnvironmentVariables(entry, cipher) {\n        if (entry == null || entry.type != \"environment_variables\") {\n            return;\n        }\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.SecureNote;\n        cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView();\n        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.SecureNoteType.Generic;\n        cipher.name = entry.environment_variables_title;\n        cipher.notes = entry.environment_variables_notes;\n        entry.environment_variables_variables.forEach((KvPair) => {\n            this.processKvp(cipher, KvPair.key, KvPair.value);\n        });\n        this.importUnmappedFields(cipher, entry, this.ENV_VARIABLES_mappedValues);\n    }\n    parseGPG(entry, cipher) {\n        if (entry == null || entry.type != \"mail_gpg_own_key\") {\n            return;\n        }\n        cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.CipherType.SecureNote;\n        cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView();\n        cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.SecureNoteType.Generic;\n        cipher.name = entry.mail_gpg_own_key_title;\n        cipher.notes = entry.mail_gpg_own_key_public;\n        this.processKvp(cipher, \"mail_gpg_own_key_name\", entry.mail_gpg_own_key_name);\n        this.processKvp(cipher, \"mail_gpg_own_key_email\", entry.mail_gpg_own_key_email);\n        this.processKvp(cipher, \"mail_gpg_own_key_private\", entry.mail_gpg_own_key_private, _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_1__.FieldType.Hidden);\n        this.importUnmappedFields(cipher, entry, this.GPG_mappedValues);\n    }\n    importUnmappedFields(cipher, entry, mappedValues) {\n        const unmappedFields = Object.keys(entry).filter((x) => !mappedValues.has(x));\n        unmappedFields.forEach((key) => {\n            const item = entry;\n            this.processKvp(cipher, key, item[key].toString());\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 22676 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/psono/psono-json-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/remembear-csv-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/remembear-csv-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RememBearCsvImporter: () => (/* binding */ RememBearCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\nclass RememBearCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_3__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_2__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.trash === \"true\") {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.name);\n            cipher.notes = this.getValueOrDefault(value.notes);\n            if (value.type === \"LoginItem\") {\n                cipher.login.uris = this.makeUriArray(value.website);\n                cipher.login.password = this.getValueOrDefault(value.password);\n                cipher.login.username = this.getValueOrDefault(value.username);\n            }\n            else if (value.type === \"CreditCardItem\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                cipher.card.cardholderName = this.getValueOrDefault(value.cardholder);\n                cipher.card.number = this.getValueOrDefault(value.number);\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                cipher.card.code = this.getValueOrDefault(value.verification);\n                try {\n                    const expMonth = this.getValueOrDefault(value.expiryMonth);\n                    if (expMonth != null) {\n                        const expMonthNumber = parseInt(expMonth, null);\n                        if (expMonthNumber != null && expMonthNumber >= 1 && expMonthNumber <= 12) {\n                            cipher.card.expMonth = expMonthNumber.toString();\n                        }\n                    }\n                }\n                catch (_a) {\n                    // Ignore error\n                }\n                try {\n                    const expYear = this.getValueOrDefault(value.expiryYear);\n                    if (expYear != null) {\n                        const expYearNumber = parseInt(expYear, null);\n                        if (expYearNumber != null) {\n                            cipher.card.expYear = expYearNumber.toString();\n                        }\n                    }\n                }\n                catch (_b) {\n                    // Ignore error\n                }\n                const pin = this.getValueOrDefault(value.pin);\n                if (pin != null) {\n                    this.processKvp(cipher, \"PIN\", pin);\n                }\n                const zip = this.getValueOrDefault(value.zipCode);\n                if (zip != null) {\n                    this.processKvp(cipher, \"Zip Code\", zip);\n                }\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7748 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/remembear-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/roboform-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/roboform-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   RoboFormCsvImporter: () => (/* binding */ RoboFormCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass RoboFormCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        let i = 1;\n        results.forEach((value) => {\n            const folder = !this.isNullOrWhitespace(value.Folder) && value.Folder.startsWith(\"/\")\n                ? value.Folder.replace(\"/\", \"\")\n                : value.Folder;\n            const folderName = !this.isNullOrWhitespace(folder) ? folder : null;\n            this.processFolder(result, folderName);\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValueOrDefault(value.Note);\n            cipher.name = this.getValueOrDefault(value.Name, \"--\");\n            cipher.login.username = this.getValueOrDefault(value.Login);\n            cipher.login.password = this.getValueOrDefault(value.Pwd);\n            cipher.login.uris = this.makeUriArray(value.Url);\n            if (!this.isNullOrWhitespace(value.Rf_fields)) {\n                let fields = [value.Rf_fields];\n                if (value.__parsed_extra != null && value.__parsed_extra.length > 0) {\n                    fields = fields.concat(value.__parsed_extra);\n                }\n                fields.forEach((field) => {\n                    const parts = field.split(\":\");\n                    if (parts.length < 3) {\n                        return;\n                    }\n                    const key = parts[0] === \"-no-name-\" ? null : parts[0];\n                    const val = parts.length === 4 && parts[2] === \"rck\" ? parts[1] : parts[2];\n                    this.processKvp(cipher, key, val);\n                });\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            if (i === results.length &&\n                cipher.name === \"--\" &&\n                this.isNullOrWhitespace(cipher.login.password)) {\n                return;\n            }\n            result.ciphers.push(cipher);\n            i++;\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6780 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/roboform-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/safari-csv-importer.ts":
/*!****************************************************************!*\
  !*** ../../libs/importer/src/importers/safari-csv-importer.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SafariCsvImporter: () => (/* binding */ SafariCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass SafariCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            var _a;\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.Title, \"--\");\n            cipher.login.username = this.getValueOrDefault(value.Username);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.uris = this.makeUriArray((_a = value.Url) !== null && _a !== void 0 ? _a : value.URL);\n            cipher.login.totp = this.getValueOrDefault(value.OTPAuth);\n            cipher.notes = this.getValueOrDefault(value.Notes);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjoz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0gdHJ1ZTtcbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHJlc3VsdCk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/safari-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/safeincloud-xml-importer.ts":
/*!*********************************************************************!*\
  !*** ../../libs/importer/src/importers/safeincloud-xml-importer.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SafeInCloudXmlImporter: () => (/* binding */ SafeInCloudXmlImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\nclass SafeInCloudXmlImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n        const doc = this.parseXml(data);\n        if (doc == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const db = doc.querySelector(\"database\");\n        if (db == null) {\n            result.errorMessage = \"Missing `database` node.\";\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const foldersMap = new Map();\n        Array.from(doc.querySelectorAll(\"database > label\")).forEach((labelEl) => {\n            const name = labelEl.getAttribute(\"name\");\n            const id = labelEl.getAttribute(\"id\");\n            if (!this.isNullOrWhitespace(name) && !this.isNullOrWhitespace(id)) {\n                foldersMap.set(id, result.folders.length);\n                const folder = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_1__.FolderView();\n                folder.name = name;\n                result.folders.push(folder);\n            }\n        });\n        Array.from(doc.querySelectorAll(\"database > card\")).forEach((cardEl) => {\n            if (cardEl.getAttribute(\"template\") === \"true\" || cardEl.getAttribute(\"deleted\") === \"true\") {\n                return;\n            }\n            const labelIdEl = this.querySelectorDirectChild(cardEl, \"label_id\");\n            if (labelIdEl != null) {\n                const labelId = labelIdEl.textContent;\n                if (!this.isNullOrWhitespace(labelId) && foldersMap.has(labelId)) {\n                    result.folderRelationships.push([result.ciphers.length, foldersMap.get(labelId)]);\n                }\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(cardEl.getAttribute(\"title\"), \"--\");\n            if (cardEl.getAttribute(\"star\") === \"true\") {\n                cipher.favorite = true;\n            }\n            const cardType = cardEl.getAttribute(\"type\");\n            if (cardType === \"note\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView();\n                cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n            }\n            else {\n                Array.from(this.querySelectorAllDirectChild(cardEl, \"field\")).forEach((fieldEl) => {\n                    const text = fieldEl.textContent;\n                    if (this.isNullOrWhitespace(text)) {\n                        return;\n                    }\n                    const name = fieldEl.getAttribute(\"name\");\n                    const fieldType = this.getValueOrDefault(fieldEl.getAttribute(\"type\"), \"\").toLowerCase();\n                    if (fieldType === \"login\") {\n                        cipher.login.username = text;\n                    }\n                    else if (fieldType === \"password\" || fieldType === \"secret\") {\n                        // safeInCloud allows for more than one password. we just insert them here and find the one used as password later\n                        this.processKvp(cipher, name, text, _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden);\n                    }\n                    else if (fieldType === \"one_time_password\") {\n                        cipher.login.totp = text;\n                    }\n                    else if (fieldType === \"notes\") {\n                        cipher.notes += text + \"\\n\";\n                    }\n                    else if (fieldType === \"weblogin\" || fieldType === \"website\") {\n                        cipher.login.uris.push(...this.makeUriArray(text));\n                    }\n                    else {\n                        this.processKvp(cipher, name, text);\n                    }\n                });\n            }\n            Array.from(this.querySelectorAllDirectChild(cardEl, \"notes\")).forEach((notesEl) => {\n                cipher.notes += notesEl.textContent + \"\\n\";\n            });\n            this.setPassword(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    // Choose a password from all passwords. Take one that has password in its name, or the first one if there is no such entry\n    // if its name is password, we can safely remove it form the fields. otherwise, it would maybe be best to keep it as a hidden field\n    setPassword(cipher) {\n        const candidates = cipher.fields.filter((field) => field.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.FieldType.Hidden);\n        if (!candidates.length) {\n            return;\n        }\n        let choice;\n        for (const field of candidates) {\n            if (this.passwordFieldNames.includes(field.name.toLowerCase())) {\n                choice = field;\n                cipher.fields = cipher.fields.filter((f) => f !== choice);\n                break;\n            }\n        }\n        if (!choice) {\n            choice = candidates[0];\n        }\n        cipher.login.password = choice.value;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13260 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/safeincloud-xml-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/saferpass-csv-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/saferpass-csv-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SaferPassCsvImporter: () => (/* binding */ SaferPassCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass SaferPassCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(this.nameFromUrl(value.url), \"--\");\n            cipher.notes = this.getValueOrDefault(value.notes);\n            cipher.login.username = this.getValueOrDefault(value.username);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            cipher.login.uris = this.makeUriArray(value.url);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL3NhZmVycGFzcy1jc3YtaW1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ByZXN1bHQuc3VjY2VzcyA9IGZhbHNlO1xuICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXN1bHQpO1xuICAgIH1cblxuICAgIHJlc3VsdHMuZm9yRWFjaCgodmFsdWUpID0+IHtcbiAgICAgIGNvbnN0IGNpcGhlciA9IHRoaXMuaW5pdExvZ2luQ2lwaGVyKCk7XG4gICAgICBjaXBoZXIubmFtZSA9IHRoaXMuZ2V0VmFsdWVPckRlZmF1bHQodGhpcy5uYW1lRnJvbVVybCh2YWx1ZS51cmwpLCBcIi0tXCIpO1xuICAgICAgY2lwaGVyLm5vdGVzID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh2YWx1ZS5ub3Rlcyk7XG4gICAgICBjaXBoZXIubG9naW4udXNlcm5hbWUgPSB0aGlzLmdldFZhbHVlT3JEZWZhdWx0KHZhbHVlLnVzZXJuYW1lKTtcbiAgICAgIGNpcGhlci5sb2dpbi5wYXNzd29yZCA9IHRoaXMuZ2V0VmFsdWVPckRlZmF1bHQodmFsdWUucGFzc3dvcmQpO1xuICAgICAgY2lwaGVyLmxvZ2luLnVyaXMgPSB0aGlzLm1ha2VVcmlBcnJheSh2YWx1ZS51cmwpO1xuICAgICAgdGhpcy5jbGVhbnVwQ2lwaGVyKGNpcGhlcik7XG4gICAgICByZXN1bHQuY2lwaGVycy5wdXNoKGNpcGhlcik7XG4gICAgfSk7XG5cbiAgICByZXN1bHQuc3VjY2VzcyA9IHRydWU7XG4gICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZShyZXN1bHQpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/saferpass-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/securesafe-csv-importer.ts":
/*!********************************************************************!*\
  !*** ../../libs/importer/src/importers/securesafe-csv-importer.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SecureSafeCsvImporter: () => (/* binding */ SecureSafeCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass SecureSafeCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        // The url field can be in different case formats.\n        const urlField = Object.keys(results[0]).find((k) => /url/i.test(k));\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.Title);\n            cipher.notes = this.getValueOrDefault(value.Comment);\n            cipher.login.uris = this.makeUriArray(value[urlField]);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.username = this.getValueOrDefault(value.Username);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL3NlY3VyZXNhZmUtY3N2LWltcG9ydGVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUF1RDtBQUVSO0FBR3hDLE1BQU0scUJBQXNCLFNBQVEsd0RBQVk7SUFDckQsS0FBSyxDQUFDLElBQVk7UUFDaEIsTUFBTSxNQUFNLEdBQUcsSUFBSSwrREFBWSx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J9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/securesafe-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/splashid-csv-importer.ts":
/*!******************************************************************!*\
  !*** ../../libs/importer/src/importers/splashid-csv-importer.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SplashIdCsvImporter: () => (/* binding */ SplashIdCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass SplashIdCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length < 3) {\n                return;\n            }\n            this.processFolder(result, this.getValueOrDefault(value[value.length - 1]));\n            const cipher = this.initLoginCipher();\n            cipher.notes = this.getValueOrDefault(value[value.length - 2], \"\");\n            cipher.name = this.getValueOrDefault(value[1], \"--\");\n            if (value[0] === \"Web Logins\" || value[0] === \"Servers\" || value[0] === \"Email Accounts\") {\n                cipher.login.username = this.getValueOrDefault(value[2]);\n                cipher.login.password = this.getValueOrDefault(value[3]);\n                cipher.login.uris = this.makeUriArray(value[4]);\n                this.parseFieldsToNotes(cipher, 5, value);\n            }\n            else {\n                this.parseFieldsToNotes(cipher, 2, value);\n            }\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseFieldsToNotes(cipher, startIndex, value) {\n        // last 3 rows do not get parsed\n        for (let i = startIndex; i < value.length - 3; i++) {\n            if (this.isNullOrWhitespace(value[i])) {\n                continue;\n            }\n            cipher.notes += value[i] + \"\\n\";\n        }\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5576 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/splashid-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/stickypassword-xml-importer.ts":
/*!************************************************************************!*\
  !*** ../../libs/importer/src/importers/stickypassword-xml-importer.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StickyPasswordXmlImporter: () => (/* binding */ StickyPasswordXmlImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass StickyPasswordXmlImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const doc = this.parseXml(data);\n        if (doc == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        const loginNodes = doc.querySelectorAll(\"root > Database > Logins > Login\");\n        Array.from(loginNodes).forEach((loginNode) => {\n            const accountId = loginNode.getAttribute(\"ID\");\n            if (this.isNullOrWhitespace(accountId)) {\n                return;\n            }\n            const usernameText = loginNode.getAttribute(\"Name\");\n            const passwordText = loginNode.getAttribute(\"Password\");\n            let titleText = null;\n            let linkText = null;\n            let notesText = null;\n            let groupId = null;\n            let groupText = null;\n            const accountLogin = doc.querySelector(\"root > Database > Accounts > Account > \" +\n                'LoginLinks > Login[SourceLoginID=\"' +\n                accountId +\n                '\"]');\n            if (accountLogin != null) {\n                const account = accountLogin.parentElement.parentElement;\n                if (account != null) {\n                    titleText = account.getAttribute(\"Name\");\n                    linkText = account.getAttribute(\"Link\");\n                    groupId = account.getAttribute(\"ParentID\");\n                    notesText = account.getAttribute(\"Comments\");\n                    if (!this.isNullOrWhitespace(notesText)) {\n                        notesText = notesText.split(\"/n\").join(\"\\n\");\n                    }\n                }\n            }\n            if (!this.isNullOrWhitespace(groupId)) {\n                groupText = this.buildGroupText(doc, groupId, \"\");\n                this.processFolder(result, groupText);\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(titleText, \"--\");\n            cipher.notes = this.getValueOrDefault(notesText);\n            cipher.login.username = this.getValueOrDefault(usernameText);\n            cipher.login.password = this.getValueOrDefault(passwordText);\n            cipher.login.uris = this.makeUriArray(linkText);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    buildGroupText(doc, groupId, groupText) {\n        const group = doc.querySelector('root > Database > Groups > Group[ID=\"' + groupId + '\"]');\n        if (group == null) {\n            return groupText;\n        }\n        if (!this.isNullOrWhitespace(groupText)) {\n            groupText = \"/\" + groupText;\n        }\n        groupText = group.getAttribute(\"Name\") + groupText;\n        return this.buildGroupText(doc, group.getAttribute(\"ParentID\"), groupText);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8044 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/stickypassword-xml-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/truekey-csv-importer.ts":
/*!*****************************************************************!*\
  !*** ../../libs/importer/src/importers/truekey-csv-importer.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TrueKeyCsvImporter: () => (/* binding */ TrueKeyCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/card.view */ \"../../libs/common/src/vault/models/view/card.view.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/secure-note.view */ \"../../libs/common/src/vault/models/view/secure-note.view.ts\");\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\n\n\n\nconst PropertiesToIgnore = [\n    \"kind\",\n    \"autologin\",\n    \"favorite\",\n    \"hexcolor\",\n    \"protectedwithpassword\",\n    \"subdomainonly\",\n    \"type\",\n    \"tk_export_version\",\n    \"note\",\n    \"title\",\n    \"document_content\",\n];\nclass TrueKeyCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_4__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_3__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.favorite = this.getValueOrDefault(value.favorite, \"\").toLowerCase() === \"true\";\n            cipher.name = this.getValueOrDefault(value.name, \"--\");\n            cipher.notes = this.getValueOrDefault(value.memo, \"\");\n            cipher.login.username = this.getValueOrDefault(value.login);\n            cipher.login.password = this.getValueOrDefault(value.password);\n            cipher.login.uris = this.makeUriArray(value.url);\n            if (value.kind !== \"login\") {\n                cipher.name = this.getValueOrDefault(value.title, \"--\");\n                cipher.notes = this.getValueOrDefault(value.note, \"\");\n            }\n            if (value.kind === \"cc\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.Card;\n                cipher.card = new _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView();\n                cipher.card.cardholderName = this.getValueOrDefault(value.cardholder);\n                cipher.card.number = this.getValueOrDefault(value.number);\n                cipher.card.brand = _bitwarden_common_vault_models_view_card_view__WEBPACK_IMPORTED_MODULE_1__.CardView.getCardBrandByPatterns(cipher.card.number);\n                if (!this.isNullOrWhitespace(value.expiryDate)) {\n                    try {\n                        const expDate = new Date(value.expiryDate);\n                        cipher.card.expYear = expDate.getFullYear().toString();\n                        cipher.card.expMonth = (expDate.getMonth() + 1).toString();\n                    }\n                    catch (_a) {\n                        // Ignore error\n                    }\n                }\n            }\n            else if (value.kind !== \"login\") {\n                cipher.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.CipherType.SecureNote;\n                cipher.secureNote = new _bitwarden_common_vault_models_view_secure_note_view__WEBPACK_IMPORTED_MODULE_2__.SecureNoteView();\n                cipher.secureNote.type = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_0__.SecureNoteType.Generic;\n                if (!this.isNullOrWhitespace(cipher.notes)) {\n                    cipher.notes = this.getValueOrDefault(value.document_content, \"\");\n                }\n                for (const property in value) {\n                    if (value.hasOwnProperty(property) && // eslint-disable-line\n                        PropertiesToIgnore.indexOf(property.toLowerCase()) < 0 &&\n                        !this.isNullOrWhitespace(value[property])) {\n                        this.processKvp(cipher, property, value[property]);\n                    }\n                }\n            }\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8652 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/truekey-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/upm-csv-importer.ts":
/*!*************************************************************!*\
  !*** ../../libs/importer/src/importers/upm-csv-importer.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UpmCsvImporter: () => (/* binding */ UpmCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass UpmCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, false);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (value.length !== 5) {\n                return;\n            }\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value[0], \"--\");\n            cipher.notes = this.getValueOrDefault(value[4]);\n            cipher.login.username = this.getValueOrDefault(value[1]);\n            cipher.login.password = this.getValueOrDefault(value[2]);\n            cipher.login.uris = this.makeUriArray(value[3]);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return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JuIFByb21pc2UucmVzb2x2ZShyZXN1bHQpO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/upm-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/yoti-csv-importer.ts":
/*!**************************************************************!*\
  !*** ../../libs/importer/src/importers/yoti-csv-importer.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   YotiCsvImporter: () => (/* binding */ YotiCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass YotiCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            const cipher = this.initLoginCipher();\n            cipher.name = this.getValueOrDefault(value.Name, \"--\");\n            cipher.login.username = this.getValueOrDefault(value[\"User name\"]);\n            cipher.login.password = this.getValueOrDefault(value.Password);\n            cipher.login.uris = this.makeUriArray(value.URL);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        result.success = true;\n        return Promise.resolve(result);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW1wb3J0ZXJzL3lvdGktY3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PT4ge1xuICAgICAgY29uc3QgY2lwaGVyID0gdGhpcy5pbml0TG9naW5DaXBoZXIoKTtcbiAgICAgIGNpcGhlci5uYW1lID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh2YWx1ZS5OYW1lLCBcIi0tXCIpO1xuICAgICAgY2lwaGVyLmxvZ2luLnVzZXJuYW1lID0gdGhpcy5nZXRWYWx1ZU9yRGVmYXVsdCh2YWx1ZVtcIlVzZXIgbmFtZVwiXSk7XG4gICAgICBjaXBoZXIubG9naW4ucGFzc3dvcmQgPSB0aGlzLmdldFZhbHVlT3JEZWZhdWx0KHZhbHVlLlBhc3N3b3JkKTtcbiAgICAgIGNpcGhlci5sb2dpbi51cmlzID0gdGhpcy5tYWtlVXJpQXJyYXkodmFsdWUuVVJMKTtcbiAgICAgIHRoaXMuY2xlYW51cENpcGhlcihjaXBoZXIpO1xuICAgICAgcmVzdWx0LmNpcGhlcnMucHVzaChjaXBoZXIpO1xuICAgIH0pO1xuXG4gICAgcmVzdWx0LnN1Y2Nlc3MgPSB0cnVlO1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUocmVzdWx0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/yoti-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/importers/zohovault-csv-importer.ts":
/*!*******************************************************************!*\
  !*** ../../libs/importer/src/importers/zohovault-csv-importer.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ZohoVaultCsvImporter: () => (/* binding */ ZohoVaultCsvImporter)\n/* harmony export */ });\n/* harmony import */ var _models_import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../models/import-result */ \"../../libs/importer/src/models/import-result.ts\");\n/* harmony import */ var _base_importer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./base-importer */ \"../../libs/importer/src/importers/base-importer.ts\");\n\n\nclass ZohoVaultCsvImporter extends _base_importer__WEBPACK_IMPORTED_MODULE_1__.BaseImporter {\n    parse(data) {\n        const result = new _models_import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult();\n        const results = this.parseCsv(data, true);\n        if (results == null) {\n            result.success = false;\n            return Promise.resolve(result);\n        }\n        results.forEach((value) => {\n            if (this.isNullOrWhitespace(value[\"Password Name\"]) &&\n                this.isNullOrWhitespace(value[\"Secret Name\"])) {\n                return;\n            }\n            this.processFolder(result, this.getValueOrDefault(value.ChamberName));\n            const cipher = this.initLoginCipher();\n            cipher.favorite = this.getValueOrDefault(value.Favorite, \"0\") === \"1\";\n            cipher.notes = this.getValueOrDefault(value.Notes);\n            cipher.name = this.getValueOrDefault(value[\"Password Name\"], this.getValueOrDefault(value[\"Secret Name\"], \"--\"));\n            cipher.login.uris = this.makeUriArray(this.getValueOrDefault(value[\"Password URL\"], this.getValueOrDefault(value[\"Secret URL\"])));\n            this.parseData(cipher, value.SecretData);\n            this.parseData(cipher, value.CustomData);\n            this.convertToNoteIfNeeded(cipher);\n            this.cleanupCipher(cipher);\n            result.ciphers.push(cipher);\n        });\n        if (this.organization) {\n            this.moveFoldersToCollections(result);\n        }\n        result.success = true;\n        return Promise.resolve(result);\n    }\n    parseData(cipher, data) {\n        if (this.isNullOrWhitespace(data)) {\n            return;\n        }\n        const dataLines = this.splitNewLine(data);\n        dataLines.forEach((line) => {\n            const delimPosition = line.indexOf(\":\");\n            if (delimPosition < 0) {\n                return;\n            }\n            const field = line.substring(0, delimPosition);\n            const value = line.length > delimPosition ? line.substring(delimPosition + 1) : null;\n            if (this.isNullOrWhitespace(field) ||\n                this.isNullOrWhitespace(value) ||\n                field === \"SecretType\") {\n                return;\n            }\n            const fieldLower = field.toLowerCase();\n            if (cipher.login.username == null && this.usernameFieldNames.indexOf(fieldLower) > -1) {\n                cipher.login.username = value;\n            }\n            else if (cipher.login.password == null &&\n                this.passwordFieldNames.indexOf(fieldLower) > -1) {\n                cipher.login.password = value;\n            }\n            else {\n                this.processKvp(cipher, field, value);\n            }\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7688 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/importers/zohovault-csv-importer.ts\n");

/***/ }),

/***/ "../../libs/importer/src/index.ts":
/*!****************************************!*\
  !*** ../../libs/importer/src/index.ts ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportApiService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_1__.ImportApiService),\n/* harmony export */   ImportApiServiceAbstraction: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_1__.ImportApiServiceAbstraction),\n/* harmony export */   ImportCollectionServiceAbstraction: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_1__.ImportCollectionServiceAbstraction),\n/* harmony export */   ImportResult: () => (/* reexport safe */ _models__WEBPACK_IMPORTED_MODULE_0__.ImportResult),\n/* harmony export */   ImportService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_1__.ImportService),\n/* harmony export */   ImportServiceAbstraction: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_1__.ImportServiceAbstraction)\n/* harmony export */ });\n/* harmony import */ var _models__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./models */ \"../../libs/importer/src/models/index.ts\");\n/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services */ \"../../libs/importer/src/services/index.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBeUI7QUFFRSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL2luZGV4LnRzP2FlMTEiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vbW9kZWxzXCI7XG5cbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzXCI7XG5cbmV4cG9ydCB7IEltcG9ydGVyIH0gZnJvbSBcIi4vaW1wb3J0ZXJzL2ltcG9ydGVyXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/models/import-options.ts":
/*!********************************************************!*\
  !*** ../../libs/importer/src/models/import-options.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   featuredImportOptions: () => (/* binding */ featuredImportOptions),\n/* harmony export */   regularImportOptions: () => (/* binding */ regularImportOptions)\n/* harmony export */ });\nconst featuredImportOptions = [\n    { id: \"bitwardenjson\", name: \"Bitwarden (json)\" },\n    { id: \"bitwardencsv\", name: \"Bitwarden (csv)\" },\n    { id: \"chromecsv\", name: \"Chrome (csv)\" },\n    { id: \"dashlanecsv\", name: \"Dashlane (csv)\" },\n    { id: \"firefoxcsv\", name: \"Firefox (csv)\" },\n    { id: \"keepass2xml\", name: \"KeePass 2 (xml)\" },\n    { id: \"lastpasscsv\", name: \"LastPass\" },\n    { id: \"safaricsv\", name: \"Safari and macOS (csv)\" },\n    { id: \"1password1pux\", name: \"1Password (1pux/json)\" },\n];\nconst regularImportOptions = [\n    { id: \"keepassxcsv\", name: \"KeePassX (csv)\" },\n    { id: \"1password1pif\", name: \"1Password (1pif)\" },\n    { id: \"1passwordwincsv\", name: \"1Password 6 and 7 Windows (csv)\" },\n    { id: \"1passwordmaccsv\", name: \"1Password 6 and 7 Mac (csv)\" },\n    { id: \"dashlanejson\", name: \"Dashlane (json)\" },\n    { id: \"roboformcsv\", name: \"RoboForm (csv)\" },\n    { id: \"keepercsv\", name: \"Keeper (csv)\" },\n    // Temporarily remove this option for the Feb release\n    // { id: \"keeperjson\", name: \"Keeper (json)\" },\n    { id: \"enpasscsv\", name: \"Enpass (csv)\" },\n    { id: \"enpassjson\", name: \"Enpass (json)\" },\n    { id: \"protonpass\", name: \"ProtonPass (zip/json)\" },\n    { id: \"safeincloudxml\", name: \"SafeInCloud (xml)\" },\n    { id: \"pwsafexml\", name: \"Password Safe - pwsafe.org (xml)\" },\n    { id: \"stickypasswordxml\", name: \"Sticky Password (xml)\" },\n    { id: \"msecurecsv\", name: \"mSecure (csv)\" },\n    { id: \"truekeycsv\", name: \"True Key (csv)\" },\n    { id: \"passwordbossjson\", name: \"Password Boss (json)\" },\n    { id: \"zohovaultcsv\", name: \"Zoho Vault (csv)\" },\n    { id: \"splashidcsv\", name: \"SplashID (csv)\" },\n    { id: \"passworddragonxml\", name: \"Password Dragon (xml)\" },\n    { id: \"padlockcsv\", name: \"Padlock (csv)\" },\n    { id: \"passboltcsv\", name: \"Passbolt (csv)\" },\n    { id: \"clipperzhtml\", name: \"Clipperz (html)\" },\n    { id: \"aviracsv\", name: \"Avira (csv)\" },\n    { id: \"saferpasscsv\", name: \"SaferPass (csv)\" },\n    { id: \"upmcsv\", name: \"Universal Password Manager (csv)\" },\n    { id: \"ascendocsv\", name: \"Ascendo DataVault (csv)\" },\n    { id: \"meldiumcsv\", name: \"Meldium (csv)\" },\n    { id: \"passkeepcsv\", name: \"PassKeep (csv)\" },\n    { id: \"operacsv\", name: \"Opera (csv)\" },\n    { id: \"vivaldicsv\", name: \"Vivaldi (csv)\" },\n    { id: \"gnomejson\", name: \"GNOME Passwords and Keys/Seahorse (json)\" },\n    { id: \"blurcsv\", name: \"Blur (csv)\" },\n    { id: \"passwordagentcsv\", name: \"Password Agent (csv)\" },\n    { id: \"passpackcsv\", name: \"Passpack (csv)\" },\n    { id: \"passmanjson\", name: \"Passman (json)\" },\n    { id: \"avastcsv\", name: \"Avast Passwords (csv)\" },\n    { id: \"avastjson\", name: \"Avast Passwords (json)\" },\n    { id: \"fsecurefsk\", name: \"F-Secure KEY (fsk)\" },\n    { id: \"kasperskytxt\", name: \"Kaspersky Password Manager (txt)\" },\n    { id: \"remembearcsv\", name: \"RememBear (csv)\" },\n    { id: \"passwordwallettxt\", name: \"PasswordWallet (txt)\" },\n    { id: \"mykicsv\", name: \"Myki (csv)\" },\n    { id: \"securesafecsv\", name: \"SecureSafe (csv)\" },\n    { id: \"logmeoncecsv\", name: \"LogMeOnce (csv)\" },\n    { id: \"blackberrycsv\", name: \"BlackBerry Password Keeper (csv)\" },\n    { id: \"buttercupcsv\", name: \"Buttercup (csv)\" },\n    { id: \"codebookcsv\", name: \"Codebook (csv)\" },\n    { id: \"encryptrcsv\", name: \"Encryptr (csv)\" },\n    { id: \"yoticsv\", name: \"Yoti (csv)\" },\n    { id: \"nordpasscsv\", name: \"Nordpass (csv)\" },\n    { id: \"psonojson\", name: \"Psono (json)\" },\n    { id: \"passkyjson\", name: \"Passky (json)\" },\n];\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9932 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/models/import-options.ts\n");

/***/ }),

/***/ "../../libs/importer/src/models/import-result.ts":
/*!*******************************************************!*\
  !*** ../../libs/importer/src/models/import-result.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportResult: () => (/* binding */ ImportResult)\n/* harmony export */ });\nclass ImportResult {\n    constructor() {\n        this.success = false;\n        this.ciphers = [];\n        this.folders = [];\n        this.folderRelationships = [];\n        this.collections = [];\n        this.collectionRelationships = [];\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvbW9kZWxzL2ltcG9ydC1yZXN1bHQudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUlPLE1BQU0sWUFBWTtJQUF6QjtRQUNFLFlBQU8sR0FBRyxLQUFLLENBQUM7UUFFaEIsWUFBTyxHQUFpQixFQUFFLENBQUM7UUFDM0IsWUFBTyxHQUFpQixFQUFFLENBQUM7UUFDM0Isd0JBQW1CLEdBQXVCLEVBQUUsQ0FBQztRQUM3QyxnQkFBVyxHQUFxQixFQUFFLENBQUM7UUFDbkMsNEJBQXVCLEdBQXVCLEVBQUUsQ0FBQztJQUNuRCxDQUFDO0NBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2ltcG9ydGVyL3NyYy9tb2RlbHMvaW1wb3J0LXJlc3VsdC50cz8yNGU5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbGxlY3Rpb25WaWV3IH0gZnJvbSBcIkBiaXR3YXJkZW4vYWRtaW4tY29uc29sZS9jb21tb25cIjtcbmltcG9ydCB7IENpcGhlclZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL3ZpZXcvY2lwaGVyLnZpZXdcIjtcbmltcG9ydCB7IEZvbGRlclZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vdmF1bHQvbW9kZWxzL3ZpZXcvZm9sZGVyLnZpZXdcIjtcblxuZXhwb3J0IGNsYXNzIEltcG9ydFJlc3VsdCB7XG4gIHN1Y2Nlc3MgPSBmYWxzZTtcbiAgZXJyb3JNZXNzYWdlOiBzdHJpbmc7XG4gIGNpcGhlcnM6IENpcGhlclZpZXdbXSA9IFtdO1xuICBmb2xkZXJzOiBGb2xkZXJWaWV3W10gPSBbXTtcbiAgZm9sZGVyUmVsYXRpb25zaGlwczogW251bWJlciwgbnVtYmVyXVtdID0gW107XG4gIGNvbGxlY3Rpb25zOiBDb2xsZWN0aW9uVmlld1tdID0gW107XG4gIGNvbGxlY3Rpb25SZWxhdGlvbnNoaXBzOiBbbnVtYmVyLCBudW1iZXJdW10gPSBbXTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/importer/src/models/import-result.ts\n");

/***/ }),

/***/ "../../libs/importer/src/models/index.ts":
/*!***********************************************!*\
  !*** ../../libs/importer/src/models/index.ts ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportResult: () => (/* reexport safe */ _import_result__WEBPACK_IMPORTED_MODULE_0__.ImportResult)\n/* harmony export */ });\n/* harmony import */ var _import_result__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./import-result */ \"../../libs/importer/src/models/import-result.ts\");\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvbW9kZWxzL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQytDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvbW9kZWxzL2luZGV4LnRzP2FkYzIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSW1wb3J0VHlwZSwgSW1wb3J0T3B0aW9uIH0gZnJvbSBcIi4vaW1wb3J0LW9wdGlvbnNcIjtcbmV4cG9ydCB7IEltcG9ydFJlc3VsdCB9IGZyb20gXCIuL2ltcG9ydC1yZXN1bHRcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/importer/src/models/index.ts\n");

/***/ }),

/***/ "../../libs/importer/src/services/import-api.service.abstraction.ts":
/*!**************************************************************************!*\
  !*** ../../libs/importer/src/services/import-api.service.abstraction.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportApiServiceAbstraction: () => (/* binding */ ImportApiServiceAbstraction)\n/* harmony export */ });\nclass ImportApiServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvc2VydmljZXMvaW1wb3J0LWFwaS5zZXJ2aWNlLmFic3RyYWN0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFHTyxNQUFlLDJCQUEyQjtDQU1oRCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL3NlcnZpY2VzL2ltcG9ydC1hcGkuc2VydmljZS5hYnN0cmFjdGlvbi50cz8wMGQyIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEltcG9ydENpcGhlcnNSZXF1ZXN0IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL21vZGVscy9yZXF1ZXN0L2ltcG9ydC1jaXBoZXJzLnJlcXVlc3RcIjtcbmltcG9ydCB7IEltcG9ydE9yZ2FuaXphdGlvbkNpcGhlcnNSZXF1ZXN0IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL21vZGVscy9yZXF1ZXN0L2ltcG9ydC1vcmdhbml6YXRpb24tY2lwaGVycy5yZXF1ZXN0XCI7XG5cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBJbXBvcnRBcGlTZXJ2aWNlQWJzdHJhY3Rpb24ge1xuICBwb3N0SW1wb3J0Q2lwaGVyczogKHJlcXVlc3Q6IEltcG9ydENpcGhlcnNSZXF1ZXN0KSA9PiBQcm9taXNlPGFueT47XG4gIHBvc3RJbXBvcnRPcmdhbml6YXRpb25DaXBoZXJzOiAoXG4gICAgb3JnYW5pemF0aW9uSWQ6IHN0cmluZyxcbiAgICByZXF1ZXN0OiBJbXBvcnRPcmdhbml6YXRpb25DaXBoZXJzUmVxdWVzdCxcbiAgKSA9PiBQcm9taXNlPGFueT47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/services/import-api.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/importer/src/services/import-api.service.ts":
/*!**************************************************************!*\
  !*** ../../libs/importer/src/services/import-api.service.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportApiService: () => (/* binding */ ImportApiService)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nclass ImportApiService {\n    constructor(apiService) {\n        this.apiService = apiService;\n    }\n    postImportCiphers(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.apiService.send(\"POST\", \"/ciphers/import\", request, true, false);\n        });\n    }\n    postImportOrganizationCiphers(organizationId, request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.apiService.send(\"POST\", \"/ciphers/import-organization?organizationId=\" + organizationId, request, true, false);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvc2VydmljZXMvaW1wb3J0LWFwaS5zZXJ2aWNlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFNTyxNQUFNLGdCQUFnQjtJQUMzQixZQUFvQixVQUFzQjtRQUF0QixlQUFVLEdBQVYsVUFBVSxDQUFZO0lBQUcsQ0FBQztJQUV4QyxpQkFBaUIsQ0FBQyxPQUE2Qjs7WUFDbkQsT0FBTyxNQUFNLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxpQkFBaUIsRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBQ3JGLENBQUM7S0FBQTtJQUVLLDZCQUE2QixDQUNqQyxjQUFzQixFQUN0QixPQUF5Qzs7WUFFekMsT0FBTyxNQUFNLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUMvQixNQUFNLEVBQ04sOENBQThDLEdBQUcsY0FBYyxFQUMvRCxPQUFPLEVBQ1AsSUFBSSxFQUNKLEtBQUssQ0FDTixDQUFDO1FBQ0osQ0FBQztLQUFBO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2ltcG9ydGVyL3NyYy9zZXJ2aWNlcy9pbXBvcnQtYXBpLnNlcnZpY2UudHM/MmM4MCJd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W1wb3J0T3JnYW5pemF0aW9uQ2lwaGVyc1JlcXVlc3QsXG4gICk6IFByb21pc2U8YW55PiB7XG4gICAgcmV0dXJuIGF3YWl0IHRoaXMuYXBpU2VydmljZS5zZW5kKFxuICAgICAgXCJQT1NUXCIsXG4gICAgICBcIi9jaXBoZXJzL2ltcG9ydC1vcmdhbml6YXRpb24/b3JnYW5pemF0aW9uSWQ9XCIgKyBvcmdhbml6YXRpb25JZCxcbiAgICAgIHJlcXVlc3QsXG4gICAgICB0cnVlLFxuICAgICAgZmFsc2UsXG4gICAgKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/services/import-api.service.ts\n");

/***/ }),

/***/ "../../libs/importer/src/services/import-collection.service.abstraction.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/importer/src/services/import-collection.service.abstraction.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportCollectionServiceAbstraction: () => (/* binding */ ImportCollectionServiceAbstraction)\n/* harmony export */ });\nclass ImportCollectionServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvc2VydmljZXMvaW1wb3J0LWNvbGxlY3Rpb24uc2VydmljZS5hYnN0cmFjdGlvbi50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBZSxrQ0FBa0M7Q0FFdkQiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2ltcG9ydGVyL3NyYy9zZXJ2aWNlcy9pbXBvcnQtY29sbGVjdGlvbi5zZXJ2aWNlLmFic3RyYWN0aW9uLnRzPzdkNzMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29sbGVjdGlvblZpZXcgfSBmcm9tIFwiQGJpdHdhcmRlbi9hZG1pbi1jb25zb2xlL2NvbW1vblwiO1xuXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgSW1wb3J0Q29sbGVjdGlvblNlcnZpY2VBYnN0cmFjdGlvbiB7XG4gIGdldEFsbEFkbWluQ29sbGVjdGlvbnM6IChvcmdhbml6YXRpb25JZDogc3RyaW5nKSA9PiBQcm9taXNlPENvbGxlY3Rpb25WaWV3W10+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/importer/src/services/import-collection.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/importer/src/services/import.service.abstraction.ts":
/*!**********************************************************************!*\
  !*** ../../libs/importer/src/services/import.service.abstraction.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportServiceAbstraction: () => (/* binding */ ImportServiceAbstraction)\n/* harmony export */ });\nclass ImportServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvc2VydmljZXMvaW1wb3J0LnNlcnZpY2UuYWJzdHJhY3Rpb24udHMiLCJtYXBwaW5ncyI6Ijs7OztBQU9PLE1BQWUsd0JBQXdCO0NBZ0I3QyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL3NlcnZpY2VzL2ltcG9ydC5zZXJ2aWNlLmFic3RyYWN0aW9uLnRzP2U3ZjciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J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cmRwcm90ZWN0ZWRcIixcbiAgICBwcm9tcHRGb3JQYXNzd29yZF9jYWxsYmFjazogKCkgPT4gUHJvbWlzZTxzdHJpbmc+LFxuICAgIG9yZ2FuaXphdGlvbklkOiBzdHJpbmcsXG4gICkgPT4gSW1wb3J0ZXI7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/importer/src/services/import.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/importer/src/services/import.service.ts":
/*!**********************************************************!*\
  !*** ../../libs/importer/src/services/import.service.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportService: () => (/* binding */ ImportService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_models_request_import_ciphers_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/models/request/import-ciphers.request */ \"../../libs/common/src/models/request/import-ciphers.request.ts\");\n/* harmony import */ var _bitwarden_common_models_request_import_organization_ciphers_request__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/models/request/import-organization-ciphers.request */ \"../../libs/common/src/models/request/import-organization-ciphers.request.ts\");\n/* harmony import */ var _bitwarden_common_models_request_kvp_request__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/models/request/kvp.request */ \"../../libs/common/src/models/request/kvp.request.ts\");\n/* harmony import */ var _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/models/response/error.response */ \"../../libs/common/src/models/response/error.response.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_request_cipher_request__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @bitwarden/common/vault/models/request/cipher.request */ \"../../libs/common/src/vault/models/request/cipher.request.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_request_folder_with_id_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @bitwarden/common/vault/models/request/folder-with-id.request */ \"../../libs/common/src/vault/models/request/folder-with-id.request.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @bitwarden/common/vault/models/view/folder.view */ \"../../libs/common/src/vault/models/view/folder.view.ts\");\n/* harmony import */ var _importers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../importers */ \"../../libs/importer/src/importers/index.ts\");\n/* harmony import */ var _models_import_options__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../models/import-options */ \"../../libs/importer/src/models/import-options.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass ImportService {\n    constructor(cipherService, folderService, importApiService, i18nService, collectionService, keyService, encryptService, pinService, accountService) {\n        this.cipherService = cipherService;\n        this.folderService = folderService;\n        this.importApiService = importApiService;\n        this.i18nService = i18nService;\n        this.collectionService = collectionService;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n        this.pinService = pinService;\n        this.accountService = accountService;\n        this.featuredImportOptions = _models_import_options__WEBPACK_IMPORTED_MODULE_12__.featuredImportOptions;\n        this.regularImportOptions = _models_import_options__WEBPACK_IMPORTED_MODULE_12__.regularImportOptions;\n    }\n    getImportOptions() {\n        return this.featuredImportOptions.concat(this.regularImportOptions);\n    }\n    import(importer_1, fileContents_1) {\n        return __awaiter(this, arguments, void 0, function* (importer, fileContents, organizationId = null, selectedImportTarget = null, canAccessImportExport) {\n            let importResult;\n            try {\n                importResult = yield importer.parse(fileContents);\n            }\n            catch (error) {\n                if (error instanceof SyntaxError) {\n                    throw new Error(this.i18nService.t(\"importFormatError\"));\n                }\n                throw error;\n            }\n            if (!importResult.success) {\n                if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__.Utils.isNullOrWhitespace(importResult.errorMessage)) {\n                    throw new Error(importResult.errorMessage);\n                }\n                throw new Error(this.i18nService.t(\"importFormatError\"));\n            }\n            if (importResult.folders.length === 0 && importResult.ciphers.length === 0) {\n                throw new Error(this.i18nService.t(\"importNothingError\"));\n            }\n            if (importResult.ciphers.length > 0) {\n                const halfway = Math.floor(importResult.ciphers.length / 2);\n                const last = importResult.ciphers.length - 1;\n                if (this.badData(importResult.ciphers[0]) &&\n                    this.badData(importResult.ciphers[halfway]) &&\n                    this.badData(importResult.ciphers[last])) {\n                    throw new Error(this.i18nService.t(\"importFormatError\"));\n                }\n            }\n            if (organizationId && !selectedImportTarget && !canAccessImportExport) {\n                const hasUnassignedCollections = importResult.collectionRelationships.length < importResult.ciphers.length;\n                if (hasUnassignedCollections) {\n                    throw new Error(this.i18nService.t(\"importUnassignedItemsError\"));\n                }\n            }\n            try {\n                yield this.setImportTarget(importResult, organizationId, selectedImportTarget);\n                if (organizationId != null) {\n                    yield this.handleOrganizationalImport(importResult, organizationId);\n                }\n                else {\n                    yield this.handleIndividualImport(importResult);\n                }\n            }\n            catch (error) {\n                const errorResponse = new _bitwarden_common_models_response_error_response__WEBPACK_IMPORTED_MODULE_5__.ErrorResponse(error, 400);\n                throw this.handleServerError(errorResponse, importResult);\n            }\n            return importResult;\n        });\n    }\n    getImporter(format, promptForPassword_callback, organizationId = null) {\n        if (promptForPassword_callback == null) {\n            return null;\n        }\n        const importer = this.getImporterInstance(format, promptForPassword_callback);\n        if (importer == null) {\n            return null;\n        }\n        importer.organizationId = organizationId;\n        return importer;\n    }\n    getImporterInstance(format, promptForPassword_callback) {\n        if (format == null) {\n            return null;\n        }\n        switch (format) {\n            case \"bitwardencsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.BitwardenCsvImporter();\n            case \"bitwardenjson\":\n            case \"bitwardenpasswordprotected\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.BitwardenPasswordProtectedImporter(this.keyService, this.encryptService, this.i18nService, this.cipherService, this.pinService, this.accountService, promptForPassword_callback);\n            case \"lastpasscsv\":\n            case \"passboltcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.LastPassCsvImporter();\n            case \"keepassxcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.KeePassXCsvImporter();\n            case \"aviracsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.AviraCsvImporter();\n            case \"blurcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.BlurCsvImporter();\n            case \"safeincloudxml\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.SafeInCloudXmlImporter();\n            case \"padlockcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PadlockCsvImporter();\n            case \"keepass2xml\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.KeePass2XmlImporter();\n            case \"chromecsv\":\n            case \"operacsv\":\n            case \"vivaldicsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.ChromeCsvImporter();\n            case \"firefoxcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.FirefoxCsvImporter();\n            case \"upmcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.UpmCsvImporter();\n            case \"saferpasscsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.SaferPassCsvImporter();\n            case \"safaricsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.SafariCsvImporter();\n            case \"meldiumcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.MeldiumCsvImporter();\n            case \"1password1pif\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.OnePassword1PifImporter();\n            case \"1password1pux\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.OnePassword1PuxImporter();\n            case \"1passwordwincsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.OnePasswordWinCsvImporter();\n            case \"1passwordmaccsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.OnePasswordMacCsvImporter();\n            case \"keepercsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.KeeperCsvImporter();\n            // case \"keeperjson\":\n            //   return new KeeperJsonImporter();\n            case \"passworddragonxml\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasswordDragonXmlImporter();\n            case \"enpasscsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.EnpassCsvImporter();\n            case \"enpassjson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.EnpassJsonImporter();\n            case \"pwsafexml\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasswordSafeXmlImporter();\n            case \"dashlanecsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.DashlaneCsvImporter();\n            case \"dashlanejson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.DashlaneJsonImporter();\n            case \"msecurecsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.MSecureCsvImporter();\n            case \"stickypasswordxml\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.StickyPasswordXmlImporter();\n            case \"truekeycsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.TrueKeyCsvImporter();\n            case \"clipperzhtml\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.ClipperzHtmlImporter();\n            case \"roboformcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.RoboFormCsvImporter();\n            case \"ascendocsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.AscendoCsvImporter();\n            case \"passwordbossjson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasswordBossJsonImporter();\n            case \"zohovaultcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.ZohoVaultCsvImporter();\n            case \"splashidcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.SplashIdCsvImporter();\n            case \"passkeepcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PassKeepCsvImporter();\n            case \"gnomejson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.GnomeJsonImporter();\n            case \"passwordagentcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasswordAgentCsvImporter();\n            case \"passpackcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasspackCsvImporter();\n            case \"passmanjson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PassmanJsonImporter();\n            case \"avastcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.AvastCsvImporter();\n            case \"avastjson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.AvastJsonImporter();\n            case \"fsecurefsk\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.FSecureFskImporter();\n            case \"kasperskytxt\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.KasperskyTxtImporter();\n            case \"remembearcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.RememBearCsvImporter();\n            case \"passwordwallettxt\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasswordWalletTxtImporter();\n            case \"mykicsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.MykiCsvImporter();\n            case \"securesafecsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.SecureSafeCsvImporter();\n            case \"logmeoncecsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.LogMeOnceCsvImporter();\n            case \"blackberrycsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.BlackBerryCsvImporter();\n            case \"buttercupcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.ButtercupCsvImporter();\n            case \"codebookcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.CodebookCsvImporter();\n            case \"encryptrcsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.EncryptrCsvImporter();\n            case \"yoticsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.YotiCsvImporter();\n            case \"nordpasscsv\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.NordPassCsvImporter();\n            case \"psonojson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PsonoJsonImporter();\n            case \"passkyjson\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.PasskyJsonImporter();\n            case \"protonpass\":\n                return new _importers__WEBPACK_IMPORTED_MODULE_11__.ProtonPassJsonImporter(this.i18nService);\n            default:\n                return null;\n        }\n    }\n    handleIndividualImport(importResult) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _bitwarden_common_models_request_import_ciphers_request__WEBPACK_IMPORTED_MODULE_2__.ImportCiphersRequest();\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            for (let i = 0; i < importResult.ciphers.length; i++) {\n                const c = yield this.cipherService.encrypt(importResult.ciphers[i], activeUserId);\n                request.ciphers.push(new _bitwarden_common_vault_models_request_cipher_request__WEBPACK_IMPORTED_MODULE_8__.CipherRequest(c));\n            }\n            const userKey = yield this.keyService.getUserKeyWithLegacySupport(activeUserId);\n            if (importResult.folders != null) {\n                for (let i = 0; i < importResult.folders.length; i++) {\n                    const f = yield this.folderService.encrypt(importResult.folders[i], userKey);\n                    request.folders.push(new _bitwarden_common_vault_models_request_folder_with_id_request__WEBPACK_IMPORTED_MODULE_9__.FolderWithIdRequest(f));\n                }\n            }\n            if (importResult.folderRelationships != null) {\n                importResult.folderRelationships.forEach((r) => request.folderRelationships.push(new _bitwarden_common_models_request_kvp_request__WEBPACK_IMPORTED_MODULE_4__.KvpRequest(r[0], r[1])));\n            }\n            return yield this.importApiService.postImportCiphers(request);\n        });\n    }\n    handleOrganizationalImport(importResult, organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = new _bitwarden_common_models_request_import_organization_ciphers_request__WEBPACK_IMPORTED_MODULE_3__.ImportOrganizationCiphersRequest();\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            for (let i = 0; i < importResult.ciphers.length; i++) {\n                importResult.ciphers[i].organizationId = organizationId;\n                const c = yield this.cipherService.encrypt(importResult.ciphers[i], activeUserId);\n                request.ciphers.push(new _bitwarden_common_vault_models_request_cipher_request__WEBPACK_IMPORTED_MODULE_8__.CipherRequest(c));\n            }\n            if (importResult.collections != null) {\n                for (let i = 0; i < importResult.collections.length; i++) {\n                    importResult.collections[i].organizationId = organizationId;\n                    const c = yield this.collectionService.encrypt(importResult.collections[i]);\n                    request.collections.push(new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionWithIdRequest(c));\n                }\n            }\n            if (importResult.collectionRelationships != null) {\n                importResult.collectionRelationships.forEach((r) => request.collectionRelationships.push(new _bitwarden_common_models_request_kvp_request__WEBPACK_IMPORTED_MODULE_4__.KvpRequest(r[0], r[1])));\n            }\n            return yield this.importApiService.postImportOrganizationCiphers(organizationId, request);\n        });\n    }\n    badData(c) {\n        return ((c.name == null || c.name === \"--\") &&\n            c.type === _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_7__.CipherType.Login &&\n            c.login != null &&\n            _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__.Utils.isNullOrWhitespace(c.login.password));\n    }\n    handleServerError(errorResponse, importResult) {\n        if (errorResponse.validationErrors == null) {\n            return new Error(errorResponse.message);\n        }\n        let errorMessage = \"\";\n        Object.entries(errorResponse.validationErrors).forEach(([key, value], index) => {\n            let item;\n            let itemType;\n            const i = Number(key.match(/[0-9]+/)[0]);\n            switch (key.match(/^\\w+/)[0]) {\n                case \"Ciphers\":\n                    item = importResult.ciphers[i];\n                    itemType = _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_7__.CipherType[item.type];\n                    break;\n                case \"Folders\":\n                    item = importResult.folders[i];\n                    itemType = \"Folder\";\n                    break;\n                case \"Collections\":\n                    item = importResult.collections[i];\n                    itemType = \"Collection\";\n                    break;\n                default:\n                    return;\n            }\n            if (index > 0) {\n                errorMessage += \"\\n\\n\";\n            }\n            if (itemType !== \"Folder\" && itemType !== \"Collection\") {\n                errorMessage += \"[\" + (i + 1) + \"] \";\n            }\n            errorMessage += \"[\" + itemType + '] \"' + item.name + '\": ' + value;\n        });\n        return new Error(errorMessage);\n    }\n    setImportTarget(importResult, organizationId, importTarget) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!importTarget) {\n                return;\n            }\n            if (organizationId) {\n                if (!(importTarget instanceof _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionView)) {\n                    throw new Error(this.i18nService.t(\"errorAssigningTargetCollection\"));\n                }\n                const noCollectionRelationShips = [];\n                importResult.ciphers.forEach((c, index) => {\n                    if (!Array.isArray(importResult.collectionRelationships) ||\n                        !importResult.collectionRelationships.some(([cipherPos]) => cipherPos === index)) {\n                        noCollectionRelationShips.push([index, 0]);\n                    }\n                });\n                const collections = [...importResult.collections];\n                importResult.collections = [importTarget];\n                collections.map((x) => {\n                    const f = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_1__.CollectionView();\n                    f.name = `${importTarget.name}/${x.name}`;\n                    importResult.collections.push(f);\n                });\n                const relationships = [...importResult.collectionRelationships];\n                importResult.collectionRelationships = [...noCollectionRelationShips];\n                relationships.map((x) => {\n                    importResult.collectionRelationships.push([x[0], x[1] + 1]);\n                });\n                return;\n            }\n            if (!(importTarget instanceof _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_10__.FolderView)) {\n                throw new Error(this.i18nService.t(\"errorAssigningTargetFolder\"));\n            }\n            const noFolderRelationShips = [];\n            importResult.ciphers.forEach((c, index) => {\n                if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_6__.Utils.isNullOrEmpty(c.folderId)) {\n                    c.folderId = importTarget.id;\n                    noFolderRelationShips.push([index, 0]);\n                }\n            });\n            const folders = [...importResult.folders];\n            importResult.folders = [importTarget];\n            folders.map((x) => {\n                const newFolderName = `${importTarget.name}/${x.name}`;\n                const f = new _bitwarden_common_vault_models_view_folder_view__WEBPACK_IMPORTED_MODULE_10__.FolderView();\n                f.name = newFolderName;\n                importResult.folders.push(f);\n            });\n            const relationships = [...importResult.folderRelationships];\n            importResult.folderRelationships = [...noFolderRelationShips];\n            relationships.map((x) => {\n                importResult.folderRelationships.push([x[0], x[1] + 1]);\n            });\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 41528 characters]\n//# sourceURL=webpack-internal:///../../libs/importer/src/services/import.service.ts\n");

/***/ }),

/***/ "../../libs/importer/src/services/index.ts":
/*!*************************************************!*\
  !*** ../../libs/importer/src/services/index.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ImportApiService: () => (/* reexport safe */ _import_api_service__WEBPACK_IMPORTED_MODULE_1__.ImportApiService),\n/* harmony export */   ImportApiServiceAbstraction: () => (/* reexport safe */ _import_api_service_abstraction__WEBPACK_IMPORTED_MODULE_0__.ImportApiServiceAbstraction),\n/* harmony export */   ImportCollectionServiceAbstraction: () => (/* reexport safe */ _import_collection_service_abstraction__WEBPACK_IMPORTED_MODULE_4__.ImportCollectionServiceAbstraction),\n/* harmony export */   ImportService: () => (/* reexport safe */ _import_service__WEBPACK_IMPORTED_MODULE_3__.ImportService),\n/* harmony export */   ImportServiceAbstraction: () => (/* reexport safe */ _import_service_abstraction__WEBPACK_IMPORTED_MODULE_2__.ImportServiceAbstraction)\n/* harmony export */ });\n/* harmony import */ var _import_api_service_abstraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./import-api.service.abstraction */ \"../../libs/importer/src/services/import-api.service.abstraction.ts\");\n/* harmony import */ var _import_api_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./import-api.service */ \"../../libs/importer/src/services/import-api.service.ts\");\n/* harmony import */ var _import_service_abstraction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./import.service.abstraction */ \"../../libs/importer/src/services/import.service.abstraction.ts\");\n/* harmony import */ var _import_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./import.service */ \"../../libs/importer/src/services/import.service.ts\");\n/* harmony import */ var _import_collection_service_abstraction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./import-collection.service.abstraction */ \"../../libs/importer/src/services/import-collection.service.abstraction.ts\");\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9pbXBvcnRlci9zcmMvc2VydmljZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUErRTtBQUN2QjtBQUVnQjtBQUN2QjtBQUU0QyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvaW1wb3J0ZXIvc3JjL3NlcnZpY2VzL2luZGV4LnRzP2E3NzgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSW1wb3J0QXBpU2VydmljZUFic3RyYWN0aW9uIH0gZnJvbSBcIi4vaW1wb3J0LWFwaS5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5leHBvcnQgeyBJbXBvcnRBcGlTZXJ2aWNlIH0gZnJvbSBcIi4vaW1wb3J0LWFwaS5zZXJ2aWNlXCI7XG5cbmV4cG9ydCB7IEltcG9ydFNlcnZpY2VBYnN0cmFjdGlvbiB9IGZyb20gXCIuL2ltcG9ydC5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5leHBvcnQgeyBJbXBvcnRTZXJ2aWNlIH0gZnJvbSBcIi4vaW1wb3J0LnNlcnZpY2VcIjtcblxuZXhwb3J0IHsgSW1wb3J0Q29sbGVjdGlvblNlcnZpY2VBYnN0cmFjdGlvbiB9IGZyb20gXCIuL2ltcG9ydC1jb2xsZWN0aW9uLnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/importer/src/services/index.ts\n");

/***/ }),

/***/ "../../libs/key-management/src/abstractions/key.service.ts":
/*!*****************************************************************!*\
  !*** ../../libs/key-management/src/abstractions/key.service.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyService: () => (/* binding */ KeyService),\n/* harmony export */   UserPrivateKeyDecryptionFailedError: () => (/* binding */ UserPrivateKeyDecryptionFailedError)\n/* harmony export */ });\nclass UserPrivateKeyDecryptionFailedError extends Error {\n    constructor() {\n        super(\"Failed to decrypt the user's private key.\");\n    }\n}\nclass KeyService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 24348 characters]\n//# sourceURL=webpack-internal:///../../libs/key-management/src/abstractions/key.service.ts\n");

/***/ }),

/***/ "../../libs/key-management/src/biometrics/biometric-state.service.ts":
/*!***************************************************************************!*\
  !*** ../../libs/key-management/src/biometrics/biometric-state.service.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BiometricStateService: () => (/* binding */ BiometricStateService),\n/* harmony export */   DefaultBiometricStateService: () => (/* binding */ DefaultBiometricStateService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _common_src_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/src/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _biometric_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./biometric.state */ \"../../libs/key-management/src/biometrics/biometric.state.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass BiometricStateService {\n}\nclass DefaultBiometricStateService {\n    constructor(stateProvider) {\n        this.stateProvider = stateProvider;\n        this.biometricUnlockEnabledState = this.stateProvider.getActive(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.BIOMETRIC_UNLOCK_ENABLED);\n        this.biometricUnlockEnabled$ = this.biometricUnlockEnabledState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(Boolean));\n        this.requirePasswordOnStartState = this.stateProvider.getActive(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.REQUIRE_PASSWORD_ON_START);\n        this.requirePasswordOnStart$ = this.requirePasswordOnStartState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((value) => !!value));\n        this.encryptedClientKeyHalfState = this.stateProvider.getActive(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_CLIENT_KEY_HALF);\n        this.encryptedClientKeyHalf$ = this.encryptedClientKeyHalfState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(encryptedClientKeyHalfToEncString));\n        this.dismissedRequirePasswordOnStartCalloutState = this.stateProvider.getActive(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.DISMISSED_REQUIRE_PASSWORD_ON_START_CALLOUT);\n        this.dismissedRequirePasswordOnStartCallout$ =\n            this.dismissedRequirePasswordOnStartCalloutState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(Boolean));\n        this.promptCancelledState = this.stateProvider.getGlobal(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.PROMPT_CANCELLED);\n        this.promptCancelled$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.stateProvider.activeUserId$,\n            this.promptCancelledState.state$,\n        ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([userId, record]) => {\n            var _a;\n            return (_a = record === null || record === void 0 ? void 0 : record[userId]) !== null && _a !== void 0 ? _a : false;\n        }));\n        this.promptAutomaticallyState = this.stateProvider.getActive(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.PROMPT_AUTOMATICALLY);\n        this.promptAutomatically$ = this.promptAutomaticallyState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(Boolean));\n        this.fingerprintValidatedState = this.stateProvider.getGlobal(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.FINGERPRINT_VALIDATED);\n        this.fingerprintValidated$ = this.fingerprintValidatedState.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(Boolean));\n    }\n    setBiometricUnlockEnabled(enabled) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.biometricUnlockEnabledState.update(() => enabled);\n        });\n    }\n    getBiometricUnlockEnabled(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUser(userId, _biometric_state__WEBPACK_IMPORTED_MODULE_2__.BIOMETRIC_UNLOCK_ENABLED).state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(Boolean)));\n        });\n    }\n    setRequirePasswordOnStart(value) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let currentActiveId;\n            yield this.requirePasswordOnStartState.update((_, [userId]) => {\n                currentActiveId = userId;\n                return value;\n            }, {\n                combineLatestWith: this.requirePasswordOnStartState.combinedState$,\n            });\n            if (!value) {\n                yield this.removeEncryptedClientKeyHalf(currentActiveId);\n            }\n        });\n    }\n    setEncryptedClientKeyHalf(encryptedKeyHalf, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const value = (_a = encryptedKeyHalf === null || encryptedKeyHalf === void 0 ? void 0 : encryptedKeyHalf.encryptedString) !== null && _a !== void 0 ? _a : null;\n            if (userId) {\n                yield this.stateProvider.getUser(userId, _biometric_state__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_CLIENT_KEY_HALF).update(() => value);\n            }\n            else {\n                yield this.encryptedClientKeyHalfState.update(() => value);\n            }\n        });\n    }\n    removeEncryptedClientKeyHalf(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, _biometric_state__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_CLIENT_KEY_HALF).update(() => null);\n        });\n    }\n    getRequirePasswordOnStart(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return !!(yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider.getUser(userId, _biometric_state__WEBPACK_IMPORTED_MODULE_2__.REQUIRE_PASSWORD_ON_START).state$));\n        });\n    }\n    getEncryptedClientKeyHalf(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.stateProvider\n                .getUser(userId, _biometric_state__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_CLIENT_KEY_HALF)\n                .state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(encryptedClientKeyHalfToEncString)));\n        });\n    }\n    logout(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, _biometric_state__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_CLIENT_KEY_HALF).update(() => null);\n            yield this.resetUserPromptCancelled(userId);\n            // Persist auto prompt setting through logout\n            // Persist dismissed require password on start callout through logout\n        });\n    }\n    setDismissedRequirePasswordOnStartCallout() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.dismissedRequirePasswordOnStartCalloutState.update(() => true);\n        });\n    }\n    resetUserPromptCancelled(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getGlobal(_biometric_state__WEBPACK_IMPORTED_MODULE_2__.PROMPT_CANCELLED).update((data, activeUserId) => {\n                delete data[userId !== null && userId !== void 0 ? userId : activeUserId];\n                return data;\n            }, {\n                combineLatestWith: this.stateProvider.activeUserId$,\n                shouldUpdate: (data, activeUserId) => (data === null || data === void 0 ? void 0 : data[userId !== null && userId !== void 0 ? userId : activeUserId]) != null,\n            });\n        });\n    }\n    setUserPromptCancelled() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.promptCancelledState.update((record, userId) => {\n                record !== null && record !== void 0 ? record : (record = {});\n                record[userId] = true;\n                return record;\n            }, {\n                combineLatestWith: this.stateProvider.activeUserId$,\n                shouldUpdate: (_, userId) => {\n                    if (userId == null) {\n                        throw new Error(\"Cannot update biometric prompt cancelled state without an active user\");\n                    }\n                    return true;\n                },\n            });\n        });\n    }\n    resetAllPromptCancelled() {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.promptCancelledState.update(() => null);\n        });\n    }\n    setPromptAutomatically(prompt) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.promptAutomaticallyState.update(() => prompt);\n        });\n    }\n    setFingerprintValidated(validated) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.fingerprintValidatedState.update(() => validated);\n        });\n    }\n}\nfunction encryptedClientKeyHalfToEncString(encryptedKeyHalf) {\n    return encryptedKeyHalf == null ? null : new _common_src_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_1__.EncString(encryptedKeyHalf);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 21508 characters]\n//# sourceURL=webpack-internal:///../../libs/key-management/src/biometrics/biometric-state.service.ts\n");

/***/ }),

/***/ "../../libs/key-management/src/biometrics/biometric.service.ts":
/*!*********************************************************************!*\
  !*** ../../libs/key-management/src/biometrics/biometric.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BiometricsService: () => (/* binding */ BiometricsService)\n/* harmony export */ });\n/**\n * The biometrics service is used to provide access to the status of and access to biometric functionality on the platforms.\n */\nclass BiometricsService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9rZXktbWFuYWdlbWVudC9zcmMvYmlvbWV0cmljcy9iaW9tZXRyaWMuc2VydmljZS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUE7O0dBRUc7QUFDSSxNQUFlLGlCQUFpQjtDQWlDdEMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL2tleS1tYW5hZ2VtZW50L3NyYy9iaW9tZXRyaWNzL2Jpb21ldHJpYy5zZXJ2aWNlLnRzPzdhZWUiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaGUgYmlvbWV0cmljcyBzZXJ2aWNlIGlzIHVzZWQgdG8gcHJvdmlkZSBhY2Nlc3MgdG8gdGhlIHN0YXR1cyBvZiBhbmQgYWNjZXNzIHRvIGJpb21ldHJpYyBmdW5jdGlvbmFsaXR5IG9uIHRoZSBwbGF0Zm9ybXMuXG4gKi9cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBCaW9tZXRyaWNzU2VydmljZSB7XG4gIC8qKlxuICAgKiBDaGVjayBpZiB0aGUgcGxhdGZvcm0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mljcyBzdXBwb3J0IGNhbiBiZSBhdXRvbWF0aWNhbGx5IHNldHVwLCBvciByZXF1aXJlcyB1c2VyIGludGVyYWN0aW9uLlxuICAgKiBBdXRvLXNldHVwIGlzIHByZXZlbnRlZCBieSBzYW5kYm94ZWQgZW52aXJvbm1lbnRzLCBzdWNoIGFzIFNuYXAgYW5kIEZsYXRwYWsuXG4gICAqXG4gICAqIEByZXR1cm5zIHRydWUgaWYgYmlvbWV0cmljcyBzdXBwb3J0IGNhbiBiZSBhdXRvbWF0aWNhbGx5IHNldHVwLCBmYWxzZSBpZiBpdCByZXF1aXJlcyB1c2VyIGludGVyYWN0aW9uLlxuICAgKi9cbiAgYWJzdHJhY3QgYmlvbWV0cmljc1N1cHBvcnRzQXV0b1NldHVwKCk6IFByb21pc2U8Ym9vbGVhbj47XG4gIC8qKlxuICAgKiBTdGFydCBhdXRvbWF0aWMgYmlvbWV0cmljIHNldHVwLCB3aGljaCBwbGFjZXMgdGhlIHJlcXVpcmVkIGNvbmZpZ3VyYXRpb24gZmlsZXMgLyBjaGFuZ2VzIHRoZSByZXF1aXJlZCBzZXR0aW5ncy5cbiAgICovXG4gIGFic3RyYWN0IGJpb21ldHJpY3NTZXR1cCgpOiBQcm9taXNlPHZvaWQ+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/key-management/src/biometrics/biometric.service.ts\n");

/***/ }),

/***/ "../../libs/key-management/src/biometrics/biometric.state.ts":
/*!*******************************************************************!*\
  !*** ../../libs/key-management/src/biometrics/biometric.state.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BIOMETRIC_UNLOCK_ENABLED: () => (/* binding */ BIOMETRIC_UNLOCK_ENABLED),\n/* harmony export */   DISMISSED_REQUIRE_PASSWORD_ON_START_CALLOUT: () => (/* binding */ DISMISSED_REQUIRE_PASSWORD_ON_START_CALLOUT),\n/* harmony export */   ENCRYPTED_CLIENT_KEY_HALF: () => (/* binding */ ENCRYPTED_CLIENT_KEY_HALF),\n/* harmony export */   FINGERPRINT_VALIDATED: () => (/* binding */ FINGERPRINT_VALIDATED),\n/* harmony export */   PROMPT_AUTOMATICALLY: () => (/* binding */ PROMPT_AUTOMATICALLY),\n/* harmony export */   PROMPT_CANCELLED: () => (/* binding */ PROMPT_CANCELLED),\n/* harmony export */   REQUIRE_PASSWORD_ON_START: () => (/* binding */ REQUIRE_PASSWORD_ON_START)\n/* harmony export */ });\n/* harmony import */ var _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/src/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/**\n * Indicates whether the user elected to store a biometric key to unlock their vault.\n */\nconst BIOMETRIC_UNLOCK_ENABLED = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"biometricUnlockEnabled\", {\n    deserializer: (obj) => obj,\n    clearOn: [],\n});\n/**\n * Boolean indicating the user has elected to require a password to use their biometric key upon starting the application.\n *\n * A true setting controls whether {@link ENCRYPTED_CLIENT_KEY_HALF} is set.\n */\nconst REQUIRE_PASSWORD_ON_START = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"requirePasswordOnStart\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\n/**\n * If the user has elected to require a password on first unlock of an application instance, this key will store the\n * encrypted client key half used to unlock the vault.\n *\n * For operating systems without application-level key storage, this key half is concatenated with a signature\n * provided by the OS and used to encrypt the biometric key prior to storage.\n */\nconst ENCRYPTED_CLIENT_KEY_HALF = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"clientKeyHalf\", {\n    deserializer: (obj) => obj,\n    clearOn: [\"logout\"],\n});\n/**\n * Indicates the user has been warned about the security implications of using biometrics and, depending on the OS,\n * recommended to require a password on first unlock of an application instance.\n */\nconst DISMISSED_REQUIRE_PASSWORD_ON_START_CALLOUT = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"dismissedBiometricRequirePasswordOnStartCallout\", {\n    deserializer: (obj) => obj,\n    clearOn: [],\n});\n/**\n * Stores whether the user has elected to cancel the biometric prompt. This is stored on disk due to process-reload\n * wiping memory state. We don't want to prompt the user again if they've elected to cancel.\n */\nconst PROMPT_CANCELLED = _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition.record(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"promptCancelled\", {\n    deserializer: (obj) => obj,\n});\n/**\n * Stores whether the user has elected to automatically prompt for biometric unlock on application start.\n */\nconst PROMPT_AUTOMATICALLY = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"promptAutomatically\", {\n    deserializer: (obj) => obj,\n    clearOn: [],\n});\n/**\n * Stores whether or not IPC handshake has been validated this session.\n */\nconst FINGERPRINT_VALIDATED = new _common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.KeyDefinition(_common_src_platform_state__WEBPACK_IMPORTED_MODULE_0__.BIOMETRIC_SETTINGS_DISK, \"fingerprintValidated\", {\n    deserializer: (obj) => obj,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5816 characters]\n//# sourceURL=webpack-internal:///../../libs/key-management/src/biometrics/biometric.state.ts\n");

/***/ }),

/***/ "../../libs/key-management/src/index.ts":
/*!**********************************************!*\
  !*** ../../libs/key-management/src/index.ts ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BIOMETRIC_UNLOCK_ENABLED: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.BIOMETRIC_UNLOCK_ENABLED),\n/* harmony export */   BiometricStateService: () => (/* reexport safe */ _biometrics_biometric_state_service__WEBPACK_IMPORTED_MODULE_0__.BiometricStateService),\n/* harmony export */   BiometricsService: () => (/* reexport safe */ _biometrics_biometric_service__WEBPACK_IMPORTED_MODULE_1__.BiometricsService),\n/* harmony export */   DISMISSED_REQUIRE_PASSWORD_ON_START_CALLOUT: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.DISMISSED_REQUIRE_PASSWORD_ON_START_CALLOUT),\n/* harmony export */   DefaultBiometricStateService: () => (/* reexport safe */ _biometrics_biometric_state_service__WEBPACK_IMPORTED_MODULE_0__.DefaultBiometricStateService),\n/* harmony export */   DefaultKeyService: () => (/* reexport safe */ _key_service__WEBPACK_IMPORTED_MODULE_4__.DefaultKeyService),\n/* harmony export */   ENCRYPTED_CLIENT_KEY_HALF: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.ENCRYPTED_CLIENT_KEY_HALF),\n/* harmony export */   FINGERPRINT_VALIDATED: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.FINGERPRINT_VALIDATED),\n/* harmony export */   KeyService: () => (/* reexport safe */ _abstractions_key_service__WEBPACK_IMPORTED_MODULE_3__.KeyService),\n/* harmony export */   PROMPT_AUTOMATICALLY: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.PROMPT_AUTOMATICALLY),\n/* harmony export */   PROMPT_CANCELLED: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.PROMPT_CANCELLED),\n/* harmony export */   REQUIRE_PASSWORD_ON_START: () => (/* reexport safe */ _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__.REQUIRE_PASSWORD_ON_START)\n/* harmony export */ });\n/* harmony import */ var _biometrics_biometric_state_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./biometrics/biometric-state.service */ \"../../libs/key-management/src/biometrics/biometric-state.service.ts\");\n/* harmony import */ var _biometrics_biometric_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./biometrics/biometric.service */ \"../../libs/key-management/src/biometrics/biometric.service.ts\");\n/* harmony import */ var _biometrics_biometric_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./biometrics/biometric.state */ \"../../libs/key-management/src/biometrics/biometric.state.ts\");\n/* harmony import */ var _abstractions_key_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./abstractions/key.service */ \"../../libs/key-management/src/abstractions/key.service.ts\");\n/* harmony import */ var _key_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./key.service */ \"../../libs/key-management/src/key.service.ts\");\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9rZXktbWFuYWdlbWVudC9zcmMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFHOEM7QUFDcUI7QUFDdEI7QUFFVztBQUNOIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy9rZXktbWFuYWdlbWVudC9zcmMvaW5kZXgudHM/ZGUzNCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQge1xuICBCaW9tZXRyaWNTdGF0ZVNlcnZpY2UsXG4gIERlZmF1bHRCaW9tZXRyaWNTdGF0ZVNlcnZpY2UsXG59IGZyb20gXCIuL2Jpb21ldHJpY3MvYmlvbWV0cmljLXN0YXRlLnNlcnZpY2VcIjtcbmV4cG9ydCB7IEJpb21ldHJpY3NTZXJ2aWNlIH0gZnJvbSBcIi4vYmlvbWV0cmljcy9iaW9tZXRyaWMuc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vYmlvbWV0cmljcy9iaW9tZXRyaWMuc3RhdGVcIjtcblxuZXhwb3J0IHsgS2V5U2VydmljZSB9IGZyb20gXCIuL2Fic3RyYWN0aW9ucy9rZXkuc2VydmljZVwiO1xuZXhwb3J0IHsgRGVmYXVsdEtleVNlcnZpY2UgfSBmcm9tIFwiLi9rZXkuc2VydmljZVwiO1xuZXhwb3J0IHsgVXNlcktleVJvdGF0aW9uRGF0YVByb3ZpZGVyIH0gZnJvbSBcIi4vYWJzdHJhY3Rpb25zL3VzZXIta2V5LXJvdGF0aW9uLWRhdGEtcHJvdmlkZXIuYWJzdHJhY3Rpb25cIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/key-management/src/index.ts\n");

/***/ }),

/***/ "../../libs/key-management/src/key.service.ts":
/*!****************************************************!*\
  !*** ../../libs/key-management/src/key.service.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultKeyService: () => (/* binding */ DefaultKeyService)\n/* harmony export */ });\n/* harmony import */ var big_integer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big-integer */ \"big-integer\");\n/* harmony import */ var big_integer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(big_integer__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _common_src_admin_console_models_domain_encrypted_organization_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/src/admin-console/models/domain/encrypted-organization-key */ \"../../libs/common/src/admin-console/models/domain/encrypted-organization-key.ts\");\n/* harmony import */ var _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/src/platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _common_src_platform_misc_convert_values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/src/platform/misc/convert-values */ \"../../libs/common/src/platform/misc/convert-values.ts\");\n/* harmony import */ var _common_src_platform_misc_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/src/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _common_src_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/src/platform/misc/wordlist */ \"../../libs/common/src/platform/misc/wordlist.ts\");\n/* harmony import */ var _common_src_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../common/src/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _common_src_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/src/platform/models/domain/symmetric-crypto-key */ \"../../libs/common/src/platform/models/domain/symmetric-crypto-key.ts\");\n/* harmony import */ var _common_src_platform_services_key_state_org_keys_state__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../common/src/platform/services/key-state/org-keys.state */ \"../../libs/common/src/platform/services/key-state/org-keys.state.ts\");\n/* harmony import */ var _common_src_platform_services_key_state_provider_keys_state__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../common/src/platform/services/key-state/provider-keys.state */ \"../../libs/common/src/platform/services/key-state/provider-keys.state.ts\");\n/* harmony import */ var _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../common/src/platform/services/key-state/user-key.state */ \"../../libs/common/src/platform/services/key-state/user-key.state.ts\");\n/* harmony import */ var _common_src_services_vault_timeout_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../common/src/services/vault-timeout/vault-timeout-settings.state */ \"../../libs/common/src/services/vault-timeout/vault-timeout-settings.state.ts\");\n/* harmony import */ var _common_src_types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../common/src/types/vault-timeout.type */ \"../../libs/common/src/types/vault-timeout.type.ts\");\n/* harmony import */ var _abstractions_key_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./abstractions/key.service */ \"../../libs/key-management/src/abstractions/key.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nclass DefaultKeyService {\n    constructor(pinService, masterPasswordService, keyGenerationService, cryptoFunctionService, encryptService, platformUtilService, logService, stateService, accountService, stateProvider, kdfConfigService) {\n        this.pinService = pinService;\n        this.masterPasswordService = masterPasswordService;\n        this.keyGenerationService = keyGenerationService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.encryptService = encryptService;\n        this.platformUtilService = platformUtilService;\n        this.logService = logService;\n        this.stateService = stateService;\n        this.accountService = accountService;\n        this.stateProvider = stateProvider;\n        this.kdfConfigService = kdfConfigService;\n        // User Key\n        this.activeUserEverHadUserKey = stateProvider.getActive(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_EVER_HAD_USER_KEY);\n        this.everHadUserKey$ = this.activeUserEverHadUserKey.state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((x) => x !== null && x !== void 0 ? x : false));\n        this.activeUserOrgKeys$ = this.stateProvider.activeUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((userId) => (userId != null ? this.orgKeys$(userId) : rxjs__WEBPACK_IMPORTED_MODULE_1__.NEVER)));\n    }\n    setUserKey(key, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"No key provided. Lock the user to clear the key\");\n            }\n            if (userId == null) {\n                throw new Error(\"No userId provided.\");\n            }\n            // Set userId to ensure we have one for the account status update\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_KEY, key, userId);\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_EVER_HAD_USER_KEY, true, userId);\n            yield this.storeAdditionalKeys(key, userId);\n        });\n    }\n    setUserKeys(userKey, encPrivateKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userKey == null) {\n                throw new Error(\"No userKey provided. Lock the user to clear the key\");\n            }\n            if (encPrivateKey == null) {\n                throw new Error(\"No encPrivateKey provided.\");\n            }\n            if (userId == null) {\n                throw new Error(\"No userId provided.\");\n            }\n            const decryptedPrivateKey = yield this.decryptPrivateKey(encPrivateKey, userKey);\n            if (decryptedPrivateKey == null) {\n                throw new _abstractions_key_service__WEBPACK_IMPORTED_MODULE_14__.UserPrivateKeyDecryptionFailedError();\n            }\n            yield this.setUserKey(userKey, userId);\n            yield this.setPrivateKey(encPrivateKey, userId);\n        });\n    }\n    refreshAdditionalKeys() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n            if (activeUserId == null) {\n                throw new Error(\"Can only refresh keys while there is an active user.\");\n            }\n            const key = yield this.getUserKey(activeUserId);\n            yield this.setUserKey(key, activeUserId);\n        });\n    }\n    getInMemoryUserKeyFor$(userId) {\n        return this.stateProvider.getUserState$(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_KEY, userId);\n    }\n    getUserKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.getUserState$(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_KEY, userId));\n            return userKey;\n        });\n    }\n    isLegacyUser(masterKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            masterKey !== null && masterKey !== void 0 ? masterKey : (masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.masterPasswordService.masterKey$(userId)));\n            return yield this.validateUserKey(masterKey, userId);\n        });\n    }\n    // TODO: legacy support for user key is no longer needed since we require users to migrate on login\n    getUserKeyWithLegacySupport(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            const userKey = yield this.getUserKey(userId);\n            if (userKey) {\n                return userKey;\n            }\n            // Legacy support: encryption used to be done with the master key (derived from master password).\n            // Users who have not migrated will have a null user key and must use the master key instead.\n            const masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            return masterKey;\n        });\n    }\n    getUserKeyFromStorage(keySuffix, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            const userKey = yield this.getKeyFromStorage(keySuffix, userId);\n            if (userKey) {\n                if (!(yield this.validateUserKey(userKey, userId))) {\n                    this.logService.warning(\"Invalid key, throwing away stored keys\");\n                    yield this.clearAllStoredUserKeys(userId);\n                }\n                return userKey;\n            }\n        });\n    }\n    hasUserKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            if (userId == null) {\n                return false;\n            }\n            return yield this.hasUserKeyInMemory(userId);\n        });\n    }\n    hasUserKeyInMemory(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            if (userId == null) {\n                return false;\n            }\n            return (yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.getUserState$(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_KEY, userId))) != null;\n        });\n    }\n    hasUserKeyStored(keySuffix, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.getKeyFromStorage(keySuffix, userId)) != null;\n        });\n    }\n    makeUserKey(masterKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!masterKey) {\n                const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n                masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            }\n            if (masterKey == null) {\n                throw new Error(\"No Master Key found.\");\n            }\n            const newUserKey = yield this.keyGenerationService.createKey(512);\n            return this.buildProtectedSymmetricKey(masterKey, newUserKey.key);\n        });\n    }\n    /**\n     * Clears the user key. Clears all stored versions of the user keys as well, such as the biometrics key\n     * @param userId The desired user\n     */\n    clearUserKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                // nothing to do\n                return;\n            }\n            // Set userId to ensure we have one for the account status update\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_KEY, null, userId);\n            yield this.clearAllStoredUserKeys(userId);\n        });\n    }\n    clearStoredUserKey(keySuffix, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (keySuffix === _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto) {\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.stateService.setUserKeyAutoUnlock(null, { userId: userId });\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.clearDeprecatedKeys(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto, userId);\n            }\n            if (keySuffix === _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin) {\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.pinService.clearPinKeyEncryptedUserKeyEphemeral(userId);\n                // FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.\n                // eslint-disable-next-line @typescript-eslint/no-floating-promises\n                this.clearDeprecatedKeys(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin, userId);\n            }\n        });\n    }\n    setMasterKeyEncryptedUserKey(userKeyMasterKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            yield this.masterPasswordService.setMasterKeyEncryptedUserKey(new _common_src_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_7__.EncString(userKeyMasterKey), userId);\n        });\n    }\n    // TODO: Move to MasterPasswordService\n    getOrDeriveMasterKey(password, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const [resolvedUserId, email] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.combineLatest)([this.accountService.activeAccount$, this.accountService.accounts$]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)(([activeAccount, accounts]) => {\n                var _a;\n                userId !== null && userId !== void 0 ? userId : (userId = activeAccount === null || activeAccount === void 0 ? void 0 : activeAccount.id);\n                return [userId, (_a = accounts[userId]) === null || _a === void 0 ? void 0 : _a.email];\n            })));\n            let masterKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.masterPasswordService.masterKey$(resolvedUserId));\n            return (masterKey || (masterKey = yield this.makeMasterKey(password, email, yield this.kdfConfigService.getKdfConfig())));\n        });\n    }\n    /**\n     * Derive a master key from a password and email.\n     *\n     * @remarks\n     * Does not validate the kdf config to ensure it satisfies the minimum requirements for the given kdf type.\n     * TODO: Move to MasterPasswordService\n     */\n    makeMasterKey(password, email, KdfConfig) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.keyGenerationService.deriveKeyFromPassword(password, email, KdfConfig));\n        });\n    }\n    encryptUserKeyWithMasterKey(masterKey, userKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userKey || (userKey = yield this.getUserKey());\n            return yield this.buildProtectedSymmetricKey(masterKey, userKey.key);\n        });\n    }\n    // TODO: move to MasterPasswordService\n    hashMasterKey(password, key, hashPurpose) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!key) {\n                const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n                key = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.masterPasswordService.masterKey$(userId));\n            }\n            if (password == null || key == null) {\n                throw new Error(\"Invalid parameters.\");\n            }\n            const iterations = hashPurpose === _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.HashPurpose.LocalAuthorization ? 2 : 1;\n            const hash = yield this.cryptoFunctionService.pbkdf2(key.key, password, \"sha256\", iterations);\n            return _common_src_platform_misc_utils__WEBPACK_IMPORTED_MODULE_5__.Utils.fromBufferToB64(hash);\n        });\n    }\n    // TODO: move to MasterPasswordService\n    compareAndUpdateKeyHash(masterPassword, masterKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n            const storedPasswordHash = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.masterPasswordService.masterKeyHash$(userId));\n            if (masterPassword != null && storedPasswordHash != null) {\n                const localKeyHash = yield this.hashMasterKey(masterPassword, masterKey, _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.HashPurpose.LocalAuthorization);\n                if (localKeyHash != null && storedPasswordHash === localKeyHash) {\n                    return true;\n                }\n                // TODO: remove serverKeyHash check in 1-2 releases after everyone's keyHash has been updated\n                const serverKeyHash = yield this.hashMasterKey(masterPassword, masterKey, _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.HashPurpose.ServerAuthorization);\n                if (serverKeyHash != null && storedPasswordHash === serverKeyHash) {\n                    yield this.masterPasswordService.setMasterKeyHash(localKeyHash, userId);\n                    return true;\n                }\n            }\n            return false;\n        });\n    }\n    setOrgKeys(orgs, providerOrgs, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, _common_src_platform_services_key_state_org_keys_state__WEBPACK_IMPORTED_MODULE_9__.USER_ENCRYPTED_ORGANIZATION_KEYS).update(() => {\n                const encOrgKeyData = {};\n                orgs.forEach((org) => {\n                    encOrgKeyData[org.id] = {\n                        type: \"organization\",\n                        key: org.key,\n                    };\n                });\n                providerOrgs.forEach((org) => {\n                    encOrgKeyData[org.id] = {\n                        type: \"provider\",\n                        providerId: org.providerId,\n                        key: org.key,\n                    };\n                });\n                return encOrgKeyData;\n            });\n        });\n    }\n    getOrgKey(orgId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n            if (activeUserId == null) {\n                throw new Error(\"A user must be active to retrieve an org key\");\n            }\n            const orgKeys = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.orgKeys$(activeUserId));\n            return orgKeys[orgId];\n        });\n    }\n    makeDataEncKey(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"No key provided\");\n            }\n            const newSymKey = yield this.keyGenerationService.createKey(512);\n            return this.buildProtectedSymmetricKey(key, newSymKey.key);\n        });\n    }\n    clearOrgKeys(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                // nothing to do\n                return;\n            }\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_org_keys_state__WEBPACK_IMPORTED_MODULE_9__.USER_ENCRYPTED_ORGANIZATION_KEYS, null, userId);\n        });\n    }\n    setProviderKeys(providers, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.getUser(userId, _common_src_platform_services_key_state_provider_keys_state__WEBPACK_IMPORTED_MODULE_10__.USER_ENCRYPTED_PROVIDER_KEYS).update(() => {\n                const encProviderKeys = {};\n                providers.forEach((provider) => {\n                    encProviderKeys[provider.id] = provider.key;\n                });\n                return encProviderKeys;\n            });\n        });\n    }\n    // TODO: Deprecate in favor of observable\n    getProviderKey(providerId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            if (providerId == null) {\n                return null;\n            }\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n            const providerKeys = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.providerKeys$(activeUserId));\n            return (_a = providerKeys[providerId]) !== null && _a !== void 0 ? _a : null;\n        });\n    }\n    clearProviderKeys(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                // nothing to do\n                return;\n            }\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_provider_keys_state__WEBPACK_IMPORTED_MODULE_10__.USER_ENCRYPTED_PROVIDER_KEYS, null, userId);\n        });\n    }\n    // TODO: Make userId required\n    makeOrgKey(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const shareKey = yield this.keyGenerationService.createKey(512);\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            const publicKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.userPublicKey$(userId));\n            const encShareKey = yield this.encryptService.rsaEncrypt(shareKey.key, publicKey);\n            return [encShareKey, shareKey];\n        });\n    }\n    setPrivateKey(encPrivateKey, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (encPrivateKey == null) {\n                return;\n            }\n            yield this.stateProvider\n                .getUser(userId, _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_ENCRYPTED_PRIVATE_KEY)\n                .update(() => encPrivateKey);\n        });\n    }\n    getPrivateKey() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n            if (activeUserId == null) {\n                throw new Error(\"User must be active while attempting to retrieve private key.\");\n            }\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.userPrivateKey$(activeUserId));\n        });\n    }\n    // TODO: Make public key required\n    getFingerprint(fingerprintMaterial, publicKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (publicKey == null) {\n                const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n                publicKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.userPublicKey$(activeUserId));\n            }\n            if (publicKey === null) {\n                throw new Error(\"No public key available.\");\n            }\n            const keyFingerprint = yield this.cryptoFunctionService.hash(publicKey, \"sha256\");\n            const userFingerprint = yield this.cryptoFunctionService.hkdfExpand(keyFingerprint, fingerprintMaterial, 32, \"sha256\");\n            return this.hashPhrase(userFingerprint);\n        });\n    }\n    makeKeyPair(key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (key == null) {\n                throw new Error(\"'key' is a required parameter and must be non-null.\");\n            }\n            const keyPair = yield this.cryptoFunctionService.rsaGenerateKeyPair(2048);\n            const publicB64 = _common_src_platform_misc_utils__WEBPACK_IMPORTED_MODULE_5__.Utils.fromBufferToB64(keyPair[0]);\n            const privateEnc = yield this.encryptService.encrypt(keyPair[1], key);\n            return [publicB64, privateEnc];\n        });\n    }\n    /**\n     * Clears the user's key pair\n     * @param userId The desired user\n     */\n    clearKeyPair(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (userId == null) {\n                // nothing to do\n                return;\n            }\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_ENCRYPTED_PRIVATE_KEY, null, userId);\n        });\n    }\n    clearPinKeys(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            if (userId == null) {\n                throw new Error(\"Cannot clear PIN keys, no user Id resolved.\");\n            }\n            yield this.pinService.clearPinKeyEncryptedUserKeyPersistent(userId);\n            yield this.pinService.clearPinKeyEncryptedUserKeyEphemeral(userId);\n            yield this.pinService.clearUserKeyEncryptedPin(userId);\n            yield this.clearDeprecatedKeys(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin, userId);\n        });\n    }\n    makeSendKey(keyMaterial) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.keyGenerationService.deriveKeyFromMaterial(keyMaterial, \"bitwarden-send\", \"send\");\n        });\n    }\n    makeCipherKey() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return (yield this.keyGenerationService.createKey(512));\n        });\n    }\n    clearKeys(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            userId !== null && userId !== void 0 ? userId : (userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$));\n            if (userId == null) {\n                throw new Error(\"Cannot clear keys, no user Id resolved.\");\n            }\n            yield this.masterPasswordService.clearMasterKeyHash(userId);\n            yield this.clearUserKey(userId);\n            yield this.clearOrgKeys(userId);\n            yield this.clearProviderKeys(userId);\n            yield this.clearKeyPair(userId);\n            yield this.clearPinKeys(userId);\n            yield this.stateProvider.setUserState(_common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_EVER_HAD_USER_KEY, null, userId);\n        });\n    }\n    // EFForg/OpenWireless\n    // ref https://github.com/EFForg/OpenWireless/blob/master/app/js/diceware.js\n    randomNumber(min, max) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let rval = 0;\n            const range = max - min + 1;\n            const bitsNeeded = Math.ceil(Math.log2(range));\n            if (bitsNeeded > 53) {\n                throw new Error(\"We cannot generate numbers larger than 53 bits.\");\n            }\n            const bytesNeeded = Math.ceil(bitsNeeded / 8);\n            const mask = Math.pow(2, bitsNeeded) - 1;\n            // 7776 -> (2^13 = 8192) -1 == 8191 or 0x00001111 11111111\n            // Fill a byte array with N random numbers\n            const byteArray = new Uint8Array(yield this.cryptoFunctionService.randomBytes(bytesNeeded));\n            let p = (bytesNeeded - 1) * 8;\n            for (let i = 0; i < bytesNeeded; i++) {\n                rval += byteArray[i] * Math.pow(2, p);\n                p -= 8;\n            }\n            // Use & to apply the mask and reduce the number of recursive lookups\n            rval = rval & mask;\n            if (rval >= range) {\n                // Integer out of acceptable range\n                return this.randomNumber(min, max);\n            }\n            // Return an integer that falls within the range\n            return min + rval;\n        });\n    }\n    // ---HELPERS---\n    validateUserKey(key, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (!key) {\n                return false;\n            }\n            try {\n                const encPrivateKey = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.getUser(userId, _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_ENCRYPTED_PRIVATE_KEY).state$);\n                if (encPrivateKey == null) {\n                    return false;\n                }\n                // Can decrypt private key\n                const privateKey = yield this.decryptPrivateKey(encPrivateKey, key);\n                if (privateKey == null) {\n                    // failed to decrypt\n                    return false;\n                }\n                // Can successfully derive public key\n                const publicKey = yield this.derivePublicKey(privateKey);\n                if (publicKey == null) {\n                    // failed to decrypt\n                    return false;\n                }\n            }\n            catch (e) {\n                return false;\n            }\n            return true;\n        });\n    }\n    /**\n     * Initialize all necessary crypto keys needed for a new account.\n     * Warning! This completely replaces any existing keys!\n     */\n    initAccount() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.activeUserId$);\n            if (activeUserId == null) {\n                throw new Error(\"Cannot initilize an account if one is not active.\");\n            }\n            // Verify user key doesn't exist\n            const existingUserKey = yield this.getUserKey(activeUserId);\n            if (existingUserKey != null) {\n                this.logService.error(\"Tried to initialize account with existing user key.\");\n                throw new Error(\"Cannot initialize account, keys already exist.\");\n            }\n            const userKey = (yield this.keyGenerationService.createKey(512));\n            const [publicKey, privateKey] = yield this.makeKeyPair(userKey);\n            yield this.setUserKey(userKey, activeUserId);\n            yield this.stateProvider\n                .getUser(activeUserId, _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_ENCRYPTED_PRIVATE_KEY)\n                .update(() => privateKey.encryptedString);\n            return {\n                userKey,\n                publicKey,\n                privateKey,\n            };\n        });\n    }\n    /**\n     * Generates any additional keys if needed. Additional keys are\n     * keys such as biometrics, auto, and pin keys.\n     * Useful to make sure other keys stay in sync when the user key\n     * has been rotated.\n     * @param key The user key\n     * @param userId The desired user\n     */\n    storeAdditionalKeys(key, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const storeAuto = yield this.shouldStoreKey(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto, userId);\n            if (storeAuto) {\n                yield this.stateService.setUserKeyAutoUnlock(key.keyB64, { userId: userId });\n            }\n            else {\n                yield this.stateService.setUserKeyAutoUnlock(null, { userId: userId });\n            }\n            yield this.clearDeprecatedKeys(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto, userId);\n            const storePin = yield this.shouldStoreKey(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin, userId);\n            if (storePin) {\n                // Decrypt userKeyEncryptedPin with user key\n                const pin = yield this.encryptService.decryptToUtf8(yield this.pinService.getUserKeyEncryptedPin(userId), key);\n                const pinKeyEncryptedUserKey = yield this.pinService.createPinKeyEncryptedUserKey(pin, key, userId);\n                const noPreExistingPersistentKey = (yield this.pinService.getPinKeyEncryptedUserKeyPersistent(userId)) == null;\n                yield this.pinService.storePinKeyEncryptedUserKey(pinKeyEncryptedUserKey, noPreExistingPersistentKey, userId);\n                // We can't always clear deprecated keys because the pin is only\n                // migrated once used to unlock\n                yield this.clearDeprecatedKeys(_common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin, userId);\n            }\n            else {\n                yield this.pinService.clearPinKeyEncryptedUserKeyPersistent(userId);\n                yield this.pinService.clearPinKeyEncryptedUserKeyEphemeral(userId);\n            }\n        });\n    }\n    shouldStoreKey(keySuffix, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let shouldStoreKey = false;\n            switch (keySuffix) {\n                case _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto: {\n                    // TODO: Sharing the UserKeyDefinition is temporary to get around a circ dep issue between\n                    // the VaultTimeoutSettingsSvc and this service.\n                    // This should be fixed as part of the PM-7082 - Auto Key Service work.\n                    const vaultTimeout = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.stateProvider.getUserState$(_common_src_services_vault_timeout_vault_timeout_settings_state__WEBPACK_IMPORTED_MODULE_12__.VAULT_TIMEOUT, userId));\n                    shouldStoreKey = vaultTimeout == _common_src_types_vault_timeout_type__WEBPACK_IMPORTED_MODULE_13__.VaultTimeoutStringType.Never;\n                    break;\n                }\n                case _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin: {\n                    const userKeyEncryptedPin = yield this.pinService.getUserKeyEncryptedPin(userId);\n                    shouldStoreKey = !!userKeyEncryptedPin;\n                    break;\n                }\n            }\n            return shouldStoreKey;\n        });\n    }\n    getKeyFromStorage(keySuffix, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (keySuffix === _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto) {\n                const userKey = yield this.stateService.getUserKeyAutoUnlock({ userId: userId });\n                if (userKey) {\n                    return new _common_src_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_8__.SymmetricCryptoKey(_common_src_platform_misc_utils__WEBPACK_IMPORTED_MODULE_5__.Utils.fromB64ToArray(userKey));\n                }\n            }\n            return null;\n        });\n    }\n    clearAllStoredUserKeys(userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateService.setUserKeyAutoUnlock(null, { userId: userId });\n            yield this.pinService.clearPinKeyEncryptedUserKeyEphemeral(userId);\n        });\n    }\n    hashPhrase(hash_1) {\n        return __awaiter(this, arguments, void 0, function* (hash, minimumEntropy = 64) {\n            const entropyPerWord = Math.log(_common_src_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_6__.EFFLongWordList.length) / Math.log(2);\n            let numWords = Math.ceil(minimumEntropy / entropyPerWord);\n            const hashArr = Array.from(new Uint8Array(hash));\n            const entropyAvailable = hashArr.length * 4;\n            if (numWords * entropyPerWord > entropyAvailable) {\n                throw new Error(\"Output entropy of hash function is too small\");\n            }\n            const phrase = [];\n            let hashNumber = big_integer__WEBPACK_IMPORTED_MODULE_0__.fromArray(hashArr, 256);\n            while (numWords--) {\n                const remainder = hashNumber.mod(_common_src_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_6__.EFFLongWordList.length);\n                hashNumber = hashNumber.divide(_common_src_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_6__.EFFLongWordList.length);\n                phrase.push(_common_src_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_6__.EFFLongWordList[remainder]);\n            }\n            return phrase;\n        });\n    }\n    buildProtectedSymmetricKey(encryptionKey, newSymKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let protectedSymKey = null;\n            if (encryptionKey.key.byteLength === 32) {\n                const stretchedEncryptionKey = yield this.keyGenerationService.stretchKey(encryptionKey);\n                protectedSymKey = yield this.encryptService.encrypt(newSymKey, stretchedEncryptionKey);\n            }\n            else if (encryptionKey.key.byteLength === 64) {\n                protectedSymKey = yield this.encryptService.encrypt(newSymKey, encryptionKey);\n            }\n            else {\n                throw new Error(\"Invalid key size.\");\n            }\n            return [new _common_src_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_8__.SymmetricCryptoKey(newSymKey), protectedSymKey];\n        });\n    }\n    // --LEGACY METHODS--\n    // We previously used the master key for additional keys, but now we use the user key.\n    // These methods support migrating the old keys to the new ones.\n    // TODO: Remove after 2023.10 release (https://bitwarden.atlassian.net/browse/PM-3475)\n    clearDeprecatedKeys(keySuffix, userId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (keySuffix === _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Auto) {\n                yield this.stateService.setCryptoMasterKeyAuto(null, { userId: userId });\n            }\n            else if (keySuffix === _common_src_platform_enums__WEBPACK_IMPORTED_MODULE_3__.KeySuffixOptions.Pin) {\n                yield this.pinService.clearOldPinKeyEncryptedMasterKey(userId);\n            }\n        });\n    }\n    userKey$(userId) {\n        return this.stateProvider.getUser(userId, _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_KEY).state$;\n    }\n    userKeyWithLegacySupport$(userId) {\n        return this.userKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((userKey) => {\n            if (userKey != null) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(userKey);\n            }\n            // Legacy path\n            return this.masterPasswordService.masterKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((masterKey) => __awaiter(this, void 0, void 0, function* () {\n                if (!(yield this.validateUserKey(masterKey, userId))) {\n                    // We don't have a UserKey or a valid MasterKey\n                    return null;\n                }\n                // The master key is valid meaning, the org keys and such are encrypted with this key\n                return masterKey;\n            })));\n        }));\n    }\n    userPublicKey$(userId) {\n        return this.userPrivateKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((pk) => __awaiter(this, void 0, void 0, function* () { return yield this.derivePublicKey(pk); })));\n    }\n    derivePublicKey(privateKey) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (privateKey == null) {\n                return null;\n            }\n            return (yield this.cryptoFunctionService.rsaExtractPublicKey(privateKey));\n        });\n    }\n    userPrivateKey$(userId) {\n        return this.userPrivateKeyHelper$(userId, false).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((keys) => keys === null || keys === void 0 ? void 0 : keys.userPrivateKey));\n    }\n    userEncryptedPrivateKey$(userId) {\n        return this.stateProvider.getUser(userId, _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_ENCRYPTED_PRIVATE_KEY).state$;\n    }\n    userPrivateKeyWithLegacySupport$(userId) {\n        return this.userPrivateKeyHelper$(userId, true).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((keys) => keys === null || keys === void 0 ? void 0 : keys.userPrivateKey));\n    }\n    userPrivateKeyHelper$(userId, legacySupport) {\n        const userKey$ = legacySupport ? this.userKeyWithLegacySupport$(userId) : this.userKey$(userId);\n        return userKey$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((userKey) => {\n            if (userKey == null) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(null);\n            }\n            return this.stateProvider.getUser(userId, _common_src_platform_services_key_state_user_key_state__WEBPACK_IMPORTED_MODULE_11__.USER_ENCRYPTED_PRIVATE_KEY).state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((encryptedPrivateKey) => __awaiter(this, void 0, void 0, function* () { return yield this.decryptPrivateKey(encryptedPrivateKey, userKey); })), \n            // Combine outerscope info with user private key\n            (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((userPrivateKey) => ({\n                userKey,\n                userPrivateKey,\n            })));\n        }));\n    }\n    decryptPrivateKey(encryptedPrivateKey, key) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (encryptedPrivateKey == null) {\n                return null;\n            }\n            return (yield this.encryptService.decryptToBytes(new _common_src_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_7__.EncString(encryptedPrivateKey), key));\n        });\n    }\n    providerKeys$(userId) {\n        return this.userPrivateKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((userPrivateKey) => {\n            if (userPrivateKey == null) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(null);\n            }\n            return this.providerKeysHelper$(userId, userPrivateKey);\n        }));\n    }\n    /**\n     * A helper for decrypting provider keys that requires a user id and that users decrypted private key\n     * this is helpful for when you may have already grabbed the user private key and don't want to redo\n     * that work to get the provider keys.\n     */\n    providerKeysHelper$(userId, userPrivateKey) {\n        return this.stateProvider.getUser(userId, _common_src_platform_services_key_state_provider_keys_state__WEBPACK_IMPORTED_MODULE_10__.USER_ENCRYPTED_PROVIDER_KEYS).state$.pipe(\n        // Convert each value in the record to it's own decryption observable\n        (0,_common_src_platform_misc_convert_values__WEBPACK_IMPORTED_MODULE_4__.convertValues)((_, value) => __awaiter(this, void 0, void 0, function* () {\n            const decrypted = yield this.encryptService.rsaDecrypt(new _common_src_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_7__.EncString(value), userPrivateKey);\n            return new _common_src_platform_models_domain_symmetric_crypto_key__WEBPACK_IMPORTED_MODULE_8__.SymmetricCryptoKey(decrypted);\n        })), \n        // switchMap since there are no side effects\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((encryptedProviderKeys) => {\n            if (encryptedProviderKeys == null) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(null);\n            }\n            // Can't give an empty record to forkJoin\n            if (Object.keys(encryptedProviderKeys).length === 0) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)({});\n            }\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.forkJoin)(encryptedProviderKeys);\n        }));\n    }\n    orgKeys$(userId) {\n        return this.cipherDecryptionKeys$(userId, true).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((keys) => keys === null || keys === void 0 ? void 0 : keys.orgKeys));\n    }\n    encryptedOrgKeys$(userId) {\n        return this.stateProvider.getUser(userId, _common_src_platform_services_key_state_org_keys_state__WEBPACK_IMPORTED_MODULE_9__.USER_ENCRYPTED_ORGANIZATION_KEYS).state$;\n    }\n    cipherDecryptionKeys$(userId, legacySupport = false) {\n        return this.userPrivateKeyHelper$(userId, legacySupport).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((userKeys) => {\n            if (userKeys == null) {\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)(null);\n            }\n            const userPrivateKey = userKeys.userPrivateKey;\n            if (userPrivateKey == null) {\n                // We can't do any org based decryption\n                return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.of)({ userKey: userKeys.userKey, orgKeys: null });\n            }\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.combineLatest)([\n                this.stateProvider.getUser(userId, _common_src_platform_services_key_state_org_keys_state__WEBPACK_IMPORTED_MODULE_9__.USER_ENCRYPTED_ORGANIZATION_KEYS).state$,\n                this.providerKeysHelper$(userId, userPrivateKey),\n            ]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.switchMap)((_a) => __awaiter(this, [_a], void 0, function* ([encryptedOrgKeys, providerKeys]) {\n                const result = {};\n                for (const orgId of Object.keys(encryptedOrgKeys !== null && encryptedOrgKeys !== void 0 ? encryptedOrgKeys : {})) {\n                    if (result[orgId] != null) {\n                        continue;\n                    }\n                    const encrypted = _common_src_admin_console_models_domain_encrypted_organization_key__WEBPACK_IMPORTED_MODULE_2__.BaseEncryptedOrganizationKey.fromData(encryptedOrgKeys[orgId]);\n                    let decrypted;\n                    if (_common_src_admin_console_models_domain_encrypted_organization_key__WEBPACK_IMPORTED_MODULE_2__.BaseEncryptedOrganizationKey.isProviderEncrypted(encrypted)) {\n                        decrypted = yield encrypted.decrypt(this.encryptService, providerKeys);\n                    }\n                    else {\n                        decrypted = yield encrypted.decrypt(this.encryptService, userPrivateKey);\n                    }\n                    result[orgId] = decrypted;\n                }\n                return result;\n            })), \n            // Combine them back together\n            (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((orgKeys) => ({ userKey: userKeys.userKey, orgKeys: orgKeys })));\n        }));\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 83944 characters]\n//# sourceURL=webpack-internal:///../../libs/key-management/src/key.service.ts\n");

/***/ }),

/***/ "../../libs/node/src/node-utils.ts":
/*!*****************************************!*\
  !*** ../../libs/node/src/node-utils.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NodeUtils: () => (/* binding */ NodeUtils)\n/* harmony export */ });\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ \"fs\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ \"path\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var readline__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! readline */ \"readline\");\n/* harmony import */ var readline__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(readline__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nclass NodeUtils {\n    static mkdirpSync(targetDir, mode = \"700\", relative = false, relativeDir = null) {\n        const initialDir = path__WEBPACK_IMPORTED_MODULE_1__.isAbsolute(targetDir) ? path__WEBPACK_IMPORTED_MODULE_1__.sep : \"\";\n        const baseDir = relative ? (relativeDir != null ? relativeDir : __dirname) : \".\";\n        targetDir.split(path__WEBPACK_IMPORTED_MODULE_1__.sep).reduce((parentDir, childDir) => {\n            const dir = path__WEBPACK_IMPORTED_MODULE_1__.resolve(baseDir, parentDir, childDir);\n            if (!fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dir)) {\n                fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(dir, mode);\n            }\n            return dir;\n        }, initialDir);\n    }\n    static readFirstLine(fileName) {\n        return new Promise((resolve, reject) => {\n            const readStream = fs__WEBPACK_IMPORTED_MODULE_0__.createReadStream(fileName, { encoding: \"utf8\" });\n            const readInterface = readline__WEBPACK_IMPORTED_MODULE_2__.createInterface(readStream);\n            readInterface\n                .on(\"line\", (line) => {\n                readStream.close();\n                resolve(line);\n            })\n                .on(\"error\", (err) => reject(err));\n        });\n    }\n    // https://stackoverflow.com/a/31394257\n    static bufferToArrayBuffer(buf) {\n        return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy9ub2RlL3NyYy9ub2RlLXV0aWxzLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBeUI7QUFDSTtBQUNRO0FBRTlCLE1BQU0sU0FBUztJQUNwQixNQUFNLENBQUMsVUFBVSxDQUFDLFNBQWlCLEVBQUUsSUFBSSxHQUFHLEtBQUssRUFBRSxRQUFRLEdBQUcsS0FBSyxFQUFFLGNBQXNCLElBQUk7UUFDN0YsTUFBTSxVQUFVLEdBQUcsNENBQWUsQ0FBQyxT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ZXR1cm4gYnVmLmJ1ZmZlci5zbGljZShidWYuYnl0ZU9mZnNldCwgYnVmLmJ5dGVPZmZzZXQgKyBidWYuYnl0ZUxlbmd0aCk7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/node/src/node-utils.ts\n");

/***/ }),

/***/ "../../libs/node/src/services/node-crypto-function.service.ts":
/*!********************************************************************!*\
  !*** ../../libs/node/src/services/node-crypto-function.service.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NodeCryptoFunctionService: () => (/* binding */ NodeCryptoFunctionService)\n/* harmony export */ });\n/* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! crypto */ \"crypto\");\n/* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var argon2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! argon2 */ \"argon2\");\n/* harmony import */ var argon2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(argon2__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var node_forge__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! node-forge */ \"node-forge\");\n/* harmony import */ var node_forge__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(node_forge__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_platform_models_domain_decrypt_parameters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/decrypt-parameters */ \"../../libs/common/src/platform/models/domain/decrypt-parameters.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\nclass NodeCryptoFunctionService {\n    pbkdf2(password, salt, algorithm, iterations) {\n        const len = algorithm === \"sha256\" ? 32 : 64;\n        const nodePassword = this.toNodeValue(password);\n        const nodeSalt = this.toNodeValue(salt);\n        return new Promise((resolve, reject) => {\n            crypto__WEBPACK_IMPORTED_MODULE_0__.pbkdf2(nodePassword, nodeSalt, iterations, len, algorithm, (error, key) => {\n                if (error != null) {\n                    reject(error);\n                }\n                else {\n                    resolve(this.toUint8Buffer(key));\n                }\n            });\n        });\n    }\n    argon2(password, salt, iterations, memory, parallelism) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const nodePassword = this.toNodeValue(password);\n            const nodeSalt = this.toNodeBuffer(this.toUint8Buffer(salt));\n            const hash = yield argon2__WEBPACK_IMPORTED_MODULE_1__.hash(nodePassword, {\n                salt: nodeSalt,\n                raw: true,\n                hashLength: 32,\n                timeCost: iterations,\n                memoryCost: memory,\n                parallelism: parallelism,\n                type: argon2__WEBPACK_IMPORTED_MODULE_1__.argon2id,\n            });\n            return this.toUint8Buffer(hash);\n        });\n    }\n    // ref: https://tools.ietf.org/html/rfc5869\n    hkdf(ikm, salt, info, outputByteSize, algorithm) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const saltBuf = this.toUint8Buffer(salt);\n            const prk = yield this.hmac(ikm, saltBuf, algorithm);\n            return this.hkdfExpand(prk, info, outputByteSize, algorithm);\n        });\n    }\n    // ref: https://tools.ietf.org/html/rfc5869\n    hkdfExpand(prk, info, outputByteSize, algorithm) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const hashLen = algorithm === \"sha256\" ? 32 : 64;\n            if (outputByteSize > 255 * hashLen) {\n                throw new Error(\"outputByteSize is too large.\");\n            }\n            const prkArr = new Uint8Array(prk);\n            if (prkArr.length < hashLen) {\n                throw new Error(\"prk is too small.\");\n            }\n            const infoBuf = this.toUint8Buffer(info);\n            const infoArr = new Uint8Array(infoBuf);\n            let runningOkmLength = 0;\n            let previousT = new Uint8Array(0);\n            const n = Math.ceil(outputByteSize / hashLen);\n            const okm = new Uint8Array(n * hashLen);\n            for (let i = 0; i < n; i++) {\n                const t = new Uint8Array(previousT.length + infoArr.length + 1);\n                t.set(previousT);\n                t.set(infoArr, previousT.length);\n                t.set([i + 1], t.length - 1);\n                previousT = yield this.hmac(t, prk, algorithm);\n                okm.set(previousT, runningOkmLength);\n                runningOkmLength += previousT.length;\n                if (runningOkmLength >= outputByteSize) {\n                    break;\n                }\n            }\n            return okm.slice(0, outputByteSize);\n        });\n    }\n    hash(value, algorithm) {\n        const nodeValue = this.toNodeValue(value);\n        const hash = crypto__WEBPACK_IMPORTED_MODULE_0__.createHash(algorithm);\n        hash.update(nodeValue);\n        return Promise.resolve(this.toUint8Buffer(hash.digest()));\n    }\n    hmac(value, key, algorithm) {\n        const nodeValue = this.toNodeBuffer(value);\n        const nodeKey = this.toNodeBuffer(key);\n        const hmac = crypto__WEBPACK_IMPORTED_MODULE_0__.createHmac(algorithm, nodeKey);\n        hmac.update(nodeValue);\n        return Promise.resolve(this.toUint8Buffer(hmac.digest()));\n    }\n    compare(a, b) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const key = yield this.randomBytes(32);\n            const mac1 = yield this.hmac(a, key, \"sha256\");\n            const mac2 = yield this.hmac(b, key, \"sha256\");\n            if (mac1.byteLength !== mac2.byteLength) {\n                return false;\n            }\n            const arr1 = new Uint8Array(mac1);\n            const arr2 = new Uint8Array(mac2);\n            for (let i = 0; i < arr2.length; i++) {\n                if (arr1[i] !== arr2[i]) {\n                    return false;\n                }\n            }\n            return true;\n        });\n    }\n    hmacFast(value, key, algorithm) {\n        return this.hmac(value, key, algorithm);\n    }\n    compareFast(a, b) {\n        return this.compare(a, b);\n    }\n    aesEncrypt(data, iv, key) {\n        const nodeData = this.toNodeBuffer(data);\n        const nodeIv = this.toNodeBuffer(iv);\n        const nodeKey = this.toNodeBuffer(key);\n        const cipher = crypto__WEBPACK_IMPORTED_MODULE_0__.createCipheriv(\"aes-256-cbc\", nodeKey, nodeIv);\n        const encBuf = Buffer.concat([cipher.update(nodeData), cipher.final()]);\n        return Promise.resolve(this.toUint8Buffer(encBuf));\n    }\n    aesDecryptFastParameters(data, iv, mac, key) {\n        const p = new _bitwarden_common_platform_models_domain_decrypt_parameters__WEBPACK_IMPORTED_MODULE_4__.DecryptParameters();\n        p.encKey = key.encKey;\n        p.data = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromB64ToArray(data);\n        p.iv = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromB64ToArray(iv);\n        const macData = new Uint8Array(p.iv.byteLength + p.data.byteLength);\n        macData.set(new Uint8Array(p.iv), 0);\n        macData.set(new Uint8Array(p.data), p.iv.byteLength);\n        p.macData = macData;\n        if (key.macKey != null) {\n            p.macKey = key.macKey;\n        }\n        if (mac != null) {\n            p.mac = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromB64ToArray(mac);\n        }\n        return p;\n    }\n    aesDecryptFast(parameters, mode) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decBuf = yield this.aesDecrypt(parameters.data, parameters.iv, parameters.encKey, mode);\n            return _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromBufferToUtf8(decBuf);\n        });\n    }\n    aesDecrypt(data, iv, key, mode) {\n        const nodeData = this.toNodeBuffer(data);\n        const nodeIv = mode === \"ecb\" ? null : this.toNodeBuffer(iv);\n        const nodeKey = this.toNodeBuffer(key);\n        const decipher = crypto__WEBPACK_IMPORTED_MODULE_0__.createDecipheriv(this.toNodeCryptoAesMode(mode), nodeKey, nodeIv);\n        const decBuf = Buffer.concat([decipher.update(nodeData), decipher.final()]);\n        return Promise.resolve(this.toUint8Buffer(decBuf));\n    }\n    rsaEncrypt(data, publicKey, algorithm) {\n        if (algorithm === \"sha256\") {\n            throw new Error(\"Node crypto does not support RSA-OAEP SHA-256\");\n        }\n        const pem = this.toPemPublicKey(publicKey);\n        const decipher = crypto__WEBPACK_IMPORTED_MODULE_0__.publicEncrypt(pem, this.toNodeBuffer(data));\n        return Promise.resolve(this.toUint8Buffer(decipher));\n    }\n    rsaDecrypt(data, privateKey, algorithm) {\n        if (algorithm === \"sha256\") {\n            throw new Error(\"Node crypto does not support RSA-OAEP SHA-256\");\n        }\n        const pem = this.toPemPrivateKey(privateKey);\n        const decipher = crypto__WEBPACK_IMPORTED_MODULE_0__.privateDecrypt(pem, this.toNodeBuffer(data));\n        return Promise.resolve(this.toUint8Buffer(decipher));\n    }\n    rsaExtractPublicKey(privateKey) {\n        const privateKeyByteString = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromBufferToByteString(privateKey);\n        const privateKeyAsn1 = node_forge__WEBPACK_IMPORTED_MODULE_2__.asn1.fromDer(privateKeyByteString);\n        const forgePrivateKey = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.privateKeyFromAsn1(privateKeyAsn1);\n        const forgePublicKey = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.setRsaPublicKey(forgePrivateKey.n, forgePrivateKey.e);\n        const publicKeyAsn1 = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.publicKeyToAsn1(forgePublicKey);\n        const publicKeyByteString = node_forge__WEBPACK_IMPORTED_MODULE_2__.asn1.toDer(publicKeyAsn1).data;\n        const publicKeyArray = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromByteStringToArray(publicKeyByteString);\n        return Promise.resolve(publicKeyArray);\n    }\n    rsaGenerateKeyPair(length) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return new Promise((resolve, reject) => {\n                node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.rsa.generateKeyPair({\n                    bits: length,\n                    workers: -1,\n                    e: 0x10001, // 65537\n                }, (error, keyPair) => {\n                    if (error != null) {\n                        reject(error);\n                        return;\n                    }\n                    const publicKeyAsn1 = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.publicKeyToAsn1(keyPair.publicKey);\n                    const publicKeyByteString = node_forge__WEBPACK_IMPORTED_MODULE_2__.asn1.toDer(publicKeyAsn1).getBytes();\n                    const publicKey = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromByteStringToArray(publicKeyByteString);\n                    const privateKeyAsn1 = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.privateKeyToAsn1(keyPair.privateKey);\n                    const privateKeyPkcs8 = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.wrapRsaPrivateKey(privateKeyAsn1);\n                    const privateKeyByteString = node_forge__WEBPACK_IMPORTED_MODULE_2__.asn1.toDer(privateKeyPkcs8).getBytes();\n                    const privateKey = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromByteStringToArray(privateKeyByteString);\n                    resolve([publicKey, privateKey]);\n                });\n            });\n        });\n    }\n    aesGenerateKey(bitLength) {\n        return this.randomBytes(bitLength / 8);\n    }\n    randomBytes(length) {\n        return new Promise((resolve, reject) => {\n            crypto__WEBPACK_IMPORTED_MODULE_0__.randomBytes(length, (error, bytes) => {\n                if (error != null) {\n                    reject(error);\n                }\n                else {\n                    resolve(this.toUint8Buffer(bytes));\n                }\n            });\n        });\n    }\n    toNodeValue(value) {\n        let nodeValue;\n        if (typeof value === \"string\") {\n            nodeValue = value;\n        }\n        else {\n            nodeValue = this.toNodeBuffer(value);\n        }\n        return nodeValue;\n    }\n    toNodeBuffer(value) {\n        return Buffer.from(value);\n    }\n    toUint8Buffer(value) {\n        let buf;\n        if (typeof value === \"string\") {\n            buf = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromUtf8ToArray(value);\n        }\n        else {\n            buf = value;\n        }\n        return buf;\n    }\n    toPemPrivateKey(key) {\n        const byteString = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromBufferToByteString(key);\n        const asn1 = node_forge__WEBPACK_IMPORTED_MODULE_2__.asn1.fromDer(byteString);\n        const privateKey = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.privateKeyFromAsn1(asn1);\n        const rsaPrivateKey = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.privateKeyToAsn1(privateKey);\n        const privateKeyInfo = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.wrapRsaPrivateKey(rsaPrivateKey);\n        return node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.privateKeyInfoToPem(privateKeyInfo);\n    }\n    toPemPublicKey(key) {\n        const byteString = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.fromBufferToByteString(key);\n        const asn1 = node_forge__WEBPACK_IMPORTED_MODULE_2__.asn1.fromDer(byteString);\n        const publicKey = node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.publicKeyFromAsn1(asn1);\n        return node_forge__WEBPACK_IMPORTED_MODULE_2__.pki.publicKeyToPem(publicKey);\n    }\n    toNodeCryptoAesMode(mode) {\n        return mode === \"cbc\" ? \"aes-256-cbc\" : \"aes-256-ecb\";\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29576 characters]\n//# sourceURL=webpack-internal:///../../libs/node/src/services/node-crypto-function.service.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/index.ts":
/*!***************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/index.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EXPORT_FORMATS: () => (/* reexport safe */ _services_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_1__.EXPORT_FORMATS),\n/* harmony export */   ExportHelper: () => (/* reexport safe */ _services_export_helper__WEBPACK_IMPORTED_MODULE_7__.ExportHelper),\n/* harmony export */   IndividualVaultExportService: () => (/* reexport safe */ _services_individual_vault_export_service__WEBPACK_IMPORTED_MODULE_6__.IndividualVaultExportService),\n/* harmony export */   IndividualVaultExportServiceAbstraction: () => (/* reexport safe */ _services_individual_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_5__.IndividualVaultExportServiceAbstraction),\n/* harmony export */   OrganizationVaultExportService: () => (/* reexport safe */ _services_org_vault_export_service__WEBPACK_IMPORTED_MODULE_4__.OrganizationVaultExportService),\n/* harmony export */   OrganizationVaultExportServiceAbstraction: () => (/* reexport safe */ _services_org_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_3__.OrganizationVaultExportServiceAbstraction),\n/* harmony export */   VaultExportService: () => (/* reexport safe */ _services_vault_export_service__WEBPACK_IMPORTED_MODULE_2__.VaultExportService),\n/* harmony export */   VaultExportServiceAbstraction: () => (/* reexport safe */ _services_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_1__.VaultExportServiceAbstraction)\n/* harmony export */ });\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types */ \"../../libs/tools/export/vault-export/vault-export-core/src/types/index.ts\");\n/* harmony import */ var _services_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services/vault-export.service.abstraction */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.abstraction.ts\");\n/* harmony import */ var _services_vault_export_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./services/vault-export.service */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.ts\");\n/* harmony import */ var _services_org_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./services/org-vault-export.service.abstraction */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.abstraction.ts\");\n/* harmony import */ var _services_org_vault_export_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./services/org-vault-export.service */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.ts\");\n/* harmony import */ var _services_individual_vault_export_service_abstraction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./services/individual-vault-export.service.abstraction */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.abstraction.ts\");\n/* harmony import */ var _services_individual_vault_export_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./services/individual-vault-export.service */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.ts\");\n/* harmony import */ var _services_export_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./services/export-helper */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/export-helper.ts\");\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQXdCO0FBRW9DO0FBQ1o7QUFDZ0I7QUFDWjtBQUNtQjtBQUNaO0FBQ2xCIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9pbmRleC50cz9mYjQ2Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3R5cGVzXCI7XG5cbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzL3ZhdWx0LWV4cG9ydC5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zZXJ2aWNlcy92YXVsdC1leHBvcnQuc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2VydmljZXMvb3JnLXZhdWx0LWV4cG9ydC5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zZXJ2aWNlcy9vcmctdmF1bHQtZXhwb3J0LnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzL2luZGl2aWR1YWwtdmF1bHQtZXhwb3J0LnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzL2luZGl2aWR1YWwtdmF1bHQtZXhwb3J0LnNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcnZpY2VzL2V4cG9ydC1oZWxwZXJcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/index.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/base-vault-export.service.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/base-vault-export.service.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BaseVaultExportService: () => (/* binding */ BaseVaultExportService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/enums */ \"../../libs/common/src/platform/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\nclass BaseVaultExportService {\n    constructor(pinService, encryptService, cryptoFunctionService, kdfConfigService) {\n        this.pinService = pinService;\n        this.encryptService = encryptService;\n        this.cryptoFunctionService = cryptoFunctionService;\n        this.kdfConfigService = kdfConfigService;\n    }\n    buildPasswordExport(clearText, password) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const kdfConfig = yield this.kdfConfigService.getKdfConfig();\n            const salt = _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.fromBufferToB64(yield this.cryptoFunctionService.randomBytes(16));\n            const key = yield this.pinService.makePinKey(password, salt, kdfConfig);\n            const encKeyValidation = yield this.encryptService.encrypt(_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_1__.Utils.newGuid(), key);\n            const encText = yield this.encryptService.encrypt(clearText, key);\n            const jsonDoc = {\n                encrypted: true,\n                passwordProtected: true,\n                salt: salt,\n                kdfType: kdfConfig.kdfType,\n                kdfIterations: kdfConfig.iterations,\n                encKeyValidation_DO_NOT_EDIT: encKeyValidation.encryptedString,\n                data: encText.encryptedString,\n            };\n            if (kdfConfig.kdfType === _bitwarden_common_platform_enums__WEBPACK_IMPORTED_MODULE_0__.KdfType.Argon2id) {\n                jsonDoc.kdfMemory = kdfConfig.memory;\n                jsonDoc.kdfParallelism = kdfConfig.parallelism;\n            }\n            return JSON.stringify(jsonDoc, null, \"  \");\n        });\n    }\n    buildCommonCipher(cipher, c) {\n        cipher.type = null;\n        cipher.name = c.name;\n        cipher.notes = c.notes;\n        cipher.fields = null;\n        cipher.reprompt = c.reprompt;\n        // Login props\n        cipher.login_uri = null;\n        cipher.login_username = null;\n        cipher.login_password = null;\n        cipher.login_totp = null;\n        if (c.fields) {\n            c.fields.forEach((f) => {\n                if (!cipher.fields) {\n                    cipher.fields = \"\";\n                }\n                else {\n                    cipher.fields += \"\\n\";\n                }\n                cipher.fields += (f.name || \"\") + \": \" + f.value;\n            });\n        }\n        switch (c.type) {\n            case _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_2__.CipherType.Login:\n                cipher.type = \"login\";\n                cipher.login_username = c.login.username;\n                cipher.login_password = c.login.password;\n                cipher.login_totp = c.login.totp;\n                if (c.login.uris) {\n                    cipher.login_uri = [];\n                    c.login.uris.forEach((u) => {\n                        cipher.login_uri.push(u.uri);\n                    });\n                }\n                break;\n            case _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_2__.CipherType.SecureNote:\n                cipher.type = \"note\";\n                break;\n            default:\n                return;\n        }\n        return cipher;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8436 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/base-vault-export.service.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/export-helper.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/export-helper.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ExportHelper: () => (/* binding */ ExportHelper)\n/* harmony export */ });\nclass ExportHelper {\n    static getFileName(prefix = null, extension = \"csv\") {\n        const now = new Date();\n        const dateString = now.getFullYear() +\n            \"\" +\n            this.padNumber(now.getMonth() + 1, 2) +\n            \"\" +\n            this.padNumber(now.getDate(), 2) +\n            this.padNumber(now.getHours(), 2) +\n            \"\" +\n            this.padNumber(now.getMinutes(), 2) +\n            this.padNumber(now.getSeconds(), 2);\n        return \"bitwarden\" + (prefix ? \"_\" + prefix : \"\") + \"_export_\" + dateString + \".\" + extension;\n    }\n    static padNumber(num, width, padCharacter = \"0\") {\n        const numString = num.toString();\n        return numString.length >= width\n            ? numString\n            : new Array(width - numString.length + 1).join(padCharacter) + numString;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9zZXJ2aWNlcy9leHBvcnQtaGVscGVyLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFBTyxNQUFNLFlBQVk7SUFDdkIsTUFBTSxDQUFDLFdBQVcsQ0FBQyxTQUFpQixJQUFJLEVBQUUsU0FBUyxHQUFHLEtBQUs7UUFDekQsTUFBTSxHQUFHLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUN2QixNQUFNLFVBQV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HN0cmluZyB7XG4gICAgY29uc3QgbnVtU3RyaW5nID0gbnVtLnRvU3RyaW5nKCk7XG4gICAgcmV0dXJuIG51bVN0cmluZy5sZW5ndGggPj0gd2lkdGhcbiAgICAgID8gbnVtU3RyaW5nXG4gICAgICA6IG5ldyBBcnJheSh3aWR0aCAtIG51bVN0cmluZy5sZW5ndGggKyAxKS5qb2luKHBhZENoYXJhY3RlcikgKyBudW1TdHJpbmc7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/export-helper.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.abstraction.ts":
/*!**************************************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.abstraction.ts ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IndividualVaultExportServiceAbstraction: () => (/* binding */ IndividualVaultExportServiceAbstraction)\n/* harmony export */ });\nclass IndividualVaultExportServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9zZXJ2aWNlcy9pbmRpdmlkdWFsLXZhdWx0LWV4cG9ydC5zZXJ2aWNlLmFic3RyYWN0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFlLHVDQUF1QztDQUc1RCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZXhwb3J0L3ZhdWx0LWV4cG9ydC92YXVsdC1leHBvcnQtY29yZS9zcmMvc2VydmljZXMvaW5kaXZpZHVhbC12YXVsdC1leHBvcnQuc2VydmljZS5hYnN0cmFjdGlvbi50cz9hZWJhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEV4cG9ydEZvcm1hdCB9IGZyb20gXCIuL3ZhdWx0LWV4cG9ydC5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBJbmRpdmlkdWFsVmF1bHRFeHBvcnRTZXJ2aWNlQWJzdHJhY3Rpb24ge1xuICBnZXRFeHBvcnQ6IChmb3JtYXQ6IEV4cG9ydEZvcm1hdCkgPT4gUHJvbWlzZTxzdHJpbmc+O1xuICBnZXRQYXNzd29yZFByb3RlY3RlZEV4cG9ydDogKHBhc3N3b3JkOiBzdHJpbmcpID0+IFByb21pc2U8c3RyaW5nPjtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.ts":
/*!**************************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.ts ***!
  \**************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   IndividualVaultExportService: () => (/* binding */ IndividualVaultExportService)\n/* harmony export */ });\n/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! papaparse */ \"papaparse\");\n/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/models/export */ \"../../libs/common/src/models/export/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _base_vault_export_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./base-vault-export.service */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/base-vault-export.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\nclass IndividualVaultExportService extends _base_vault_export_service__WEBPACK_IMPORTED_MODULE_5__.BaseVaultExportService {\n    constructor(folderService, cipherService, pinService, keyService, encryptService, cryptoFunctionService, kdfConfigService, accountService) {\n        super(pinService, encryptService, cryptoFunctionService, kdfConfigService);\n        this.folderService = folderService;\n        this.cipherService = cipherService;\n        this.keyService = keyService;\n        this.accountService = accountService;\n    }\n    getExport() {\n        return __awaiter(this, arguments, void 0, function* (format = \"csv\") {\n            if (format === \"encrypted_json\") {\n                return this.getEncryptedExport();\n            }\n            return this.getDecryptedExport(format);\n        });\n    }\n    getPasswordProtectedExport(password) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const clearText = yield this.getExport(\"json\");\n            return this.buildPasswordExport(clearText, password);\n        });\n    }\n    getDecryptedExport(format) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decFolders = [];\n            let decCiphers = [];\n            const promises = [];\n            promises.push(this.folderService.getAllDecryptedFromState().then((folders) => {\n                decFolders = folders;\n            }));\n            promises.push(this.cipherService.getAllDecrypted().then((ciphers) => {\n                decCiphers = ciphers.filter((f) => f.deletedDate == null);\n            }));\n            yield Promise.all(promises);\n            if (format === \"csv\") {\n                return this.buildCsvExport(decFolders, decCiphers);\n            }\n            return this.buildJsonExport(decFolders, decCiphers);\n        });\n    }\n    getEncryptedExport() {\n        return __awaiter(this, void 0, void 0, function* () {\n            let folders = [];\n            let ciphers = [];\n            const promises = [];\n            promises.push(this.folderService.getAllFromState().then((f) => {\n                folders = f;\n            }));\n            promises.push(this.cipherService.getAll().then((c) => {\n                ciphers = c.filter((f) => f.deletedDate == null);\n            }));\n            yield Promise.all(promises);\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            const userKey = yield this.keyService.getUserKeyWithLegacySupport(activeUserId);\n            const encKeyValidation = yield this.encryptService.encrypt(_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_3__.Utils.newGuid(), userKey);\n            const jsonDoc = {\n                encrypted: true,\n                encKeyValidation_DO_NOT_EDIT: encKeyValidation.encryptedString,\n                folders: [],\n                items: [],\n            };\n            folders.forEach((f) => {\n                if (f.id == null) {\n                    return;\n                }\n                const folder = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_2__.FolderWithIdExport();\n                folder.build(f);\n                jsonDoc.folders.push(folder);\n            });\n            ciphers.forEach((c) => {\n                if (c.organizationId != null) {\n                    return;\n                }\n                const cipher = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_2__.CipherWithIdExport();\n                cipher.build(c);\n                cipher.collectionIds = null;\n                jsonDoc.items.push(cipher);\n            });\n            return JSON.stringify(jsonDoc, null, \"  \");\n        });\n    }\n    buildCsvExport(decFolders, decCiphers) {\n        const foldersMap = new Map();\n        decFolders.forEach((f) => {\n            if (f.id != null) {\n                foldersMap.set(f.id, f);\n            }\n        });\n        const exportCiphers = [];\n        decCiphers.forEach((c) => {\n            // only export logins and secure notes\n            if (c.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_4__.CipherType.Login && c.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_4__.CipherType.SecureNote) {\n                return;\n            }\n            if (c.organizationId != null) {\n                return;\n            }\n            const cipher = {};\n            cipher.folder =\n                c.folderId != null && foldersMap.has(c.folderId) ? foldersMap.get(c.folderId).name : null;\n            cipher.favorite = c.favorite ? 1 : null;\n            this.buildCommonCipher(cipher, c);\n            exportCiphers.push(cipher);\n        });\n        return papaparse__WEBPACK_IMPORTED_MODULE_0__.unparse(exportCiphers);\n    }\n    buildJsonExport(decFolders, decCiphers) {\n        const jsonDoc = {\n            encrypted: false,\n            folders: [],\n            items: [],\n        };\n        decFolders.forEach((f) => {\n            if (f.id == null) {\n                return;\n            }\n            const folder = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_2__.FolderWithIdExport();\n            folder.build(f);\n            jsonDoc.folders.push(folder);\n        });\n        decCiphers.forEach((c) => {\n            if (c.organizationId != null) {\n                return;\n            }\n            const cipher = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_2__.CipherWithIdExport();\n            cipher.build(c);\n            cipher.collectionIds = null;\n            jsonDoc.items.push(cipher);\n        });\n        return JSON.stringify(jsonDoc, null, \"  \");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15684 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/individual-vault-export.service.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.abstraction.ts":
/*!*******************************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.abstraction.ts ***!
  \*******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationVaultExportServiceAbstraction: () => (/* binding */ OrganizationVaultExportServiceAbstraction)\n/* harmony export */ });\nclass OrganizationVaultExportServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9zZXJ2aWNlcy9vcmctdmF1bHQtZXhwb3J0LnNlcnZpY2UuYWJzdHJhY3Rpb24udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQWUseUNBQXlDO0NBVzlEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9zZXJ2aWNlcy9vcmctdmF1bHQtZXhwb3J0LnNlcnZpY2UuYWJzdHJhY3Rpb24udHM/ZDI2NyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFeHBvcnRGb3JtYXQgfSBmcm9tIFwiLi92YXVsdC1leHBvcnQuc2VydmljZS5hYnN0cmFjdGlvblwiO1xuXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgT3JnYW5pemF0aW9uVmF1bHRFeHBvcnRTZXJ2aWNlQWJzdHJhY3Rpb24ge1xuICBnZXRQYXNzd29yZFByb3RlY3RlZEV4cG9ydDogKFxuICAgIG9yZ2FuaXphdGlvbklkOiBzdHJpbmcsXG4gICAgcGFzc3dvcmQ6IHN0cmluZyxcbiAgICBvbmx5TWFuYWdlZENvbGxlY3Rpb25zOiBib29sZWFuLFxuICApID0+IFByb21pc2U8c3RyaW5nPjtcbiAgZ2V0T3JnYW5pemF0aW9uRXhwb3J0OiAoXG4gICAgb3JnYW5pemF0aW9uSWQ6IHN0cmluZyxcbiAgICBmb3JtYXQ6IEV4cG9ydEZvcm1hdCxcbiAgICBvbmx5TWFuYWdlZENvbGxlY3Rpb25zOiBib29sZWFuLFxuICApID0+IFByb21pc2U8c3RyaW5nPjtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OrganizationVaultExportService: () => (/* binding */ OrganizationVaultExportService)\n/* harmony export */ });\n/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! papaparse */ \"papaparse\");\n/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/admin-console/common */ \"../../libs/admin-console/src/common/index.ts\");\n/* harmony import */ var _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/models/export */ \"../../libs/common/src/models/export/index.ts\");\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/vault/enums */ \"../../libs/common/src/vault/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/vault/models/data/cipher.data */ \"../../libs/common/src/vault/models/data/cipher.data.ts\");\n/* harmony import */ var _bitwarden_common_vault_models_domain_cipher__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @bitwarden/common/vault/models/domain/cipher */ \"../../libs/common/src/vault/models/domain/cipher.ts\");\n/* harmony import */ var _base_vault_export_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./base-vault-export.service */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/base-vault-export.service.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\nclass OrganizationVaultExportService extends _base_vault_export_service__WEBPACK_IMPORTED_MODULE_8__.BaseVaultExportService {\n    constructor(cipherService, apiService, pinService, keyService, encryptService, cryptoFunctionService, collectionService, kdfConfigService, accountService) {\n        super(pinService, encryptService, cryptoFunctionService, kdfConfigService);\n        this.cipherService = cipherService;\n        this.apiService = apiService;\n        this.keyService = keyService;\n        this.collectionService = collectionService;\n        this.accountService = accountService;\n    }\n    getPasswordProtectedExport(organizationId, password, onlyManagedCollections) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const clearText = yield this.getOrganizationExport(organizationId, \"json\", onlyManagedCollections);\n            return this.buildPasswordExport(clearText, password);\n        });\n    }\n    getOrganizationExport(organizationId_1) {\n        return __awaiter(this, arguments, void 0, function* (organizationId, format = \"csv\", onlyManagedCollections) {\n            if (_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.isNullOrWhitespace(organizationId)) {\n                throw new Error(\"OrganizationId must be set\");\n            }\n            if (format === \"encrypted_json\") {\n                return onlyManagedCollections\n                    ? this.getEncryptedManagedExport(organizationId)\n                    : this.getOrganizationEncryptedExport(organizationId);\n            }\n            return onlyManagedCollections\n                ? this.getDecryptedManagedExport(organizationId, format)\n                : this.getOrganizationDecryptedExport(organizationId, format);\n        });\n    }\n    getOrganizationDecryptedExport(organizationId, format) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const decCollections = [];\n            const decCiphers = [];\n            const promises = [];\n            const activeUserId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.map)((a) => a === null || a === void 0 ? void 0 : a.id)));\n            promises.push(this.apiService.getOrganizationExport(organizationId).then((exportData) => {\n                const exportPromises = [];\n                if (exportData != null) {\n                    if (exportData.collections != null && exportData.collections.length > 0) {\n                        exportData.collections.forEach((c) => {\n                            const collection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_2__.Collection(new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_2__.CollectionData(c));\n                            exportPromises.push((0,rxjs__WEBPACK_IMPORTED_MODULE_1__.firstValueFrom)(this.keyService.activeUserOrgKeys$)\n                                .then((keys) => collection.decrypt(keys[organizationId]))\n                                .then((decCol) => {\n                                decCollections.push(decCol);\n                            }));\n                        });\n                    }\n                    if (exportData.ciphers != null && exportData.ciphers.length > 0) {\n                        exportData.ciphers\n                            .filter((c) => c.deletedDate === null)\n                            .forEach((c) => __awaiter(this, void 0, void 0, function* () {\n                            const cipher = new _bitwarden_common_vault_models_domain_cipher__WEBPACK_IMPORTED_MODULE_7__.Cipher(new _bitwarden_common_vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_6__.CipherData(c));\n                            exportPromises.push(this.cipherService\n                                .getKeyForCipherKeyDecryption(cipher, activeUserId)\n                                .then((key) => cipher.decrypt(key))\n                                .then((decCipher) => {\n                                decCiphers.push(decCipher);\n                            }));\n                        }));\n                    }\n                }\n                return Promise.all(exportPromises);\n            }));\n            yield Promise.all(promises);\n            if (format === \"csv\") {\n                return this.buildCsvExport(decCollections, decCiphers);\n            }\n            return this.buildJsonExport(decCollections, decCiphers);\n        });\n    }\n    getOrganizationEncryptedExport(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const collections = [];\n            const ciphers = [];\n            const promises = [];\n            promises.push(this.apiService.getCollections(organizationId).then((c) => {\n                if (c != null && c.data != null && c.data.length > 0) {\n                    c.data.forEach((r) => {\n                        const collection = new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_2__.Collection(new _bitwarden_admin_console_common__WEBPACK_IMPORTED_MODULE_2__.CollectionData(r));\n                        collections.push(collection);\n                    });\n                }\n            }));\n            promises.push(this.apiService.getCiphersOrganization(organizationId).then((c) => {\n                if (c != null && c.data != null && c.data.length > 0) {\n                    c.data\n                        .filter((item) => item.deletedDate === null)\n                        .forEach((item) => {\n                        const cipher = new _bitwarden_common_vault_models_domain_cipher__WEBPACK_IMPORTED_MODULE_7__.Cipher(new _bitwarden_common_vault_models_data_cipher_data__WEBPACK_IMPORTED_MODULE_6__.CipherData(item));\n                        ciphers.push(cipher);\n                    });\n                }\n            }));\n            yield Promise.all(promises);\n            return this.BuildEncryptedExport(organizationId, collections, ciphers);\n        });\n    }\n    getDecryptedManagedExport(organizationId, format) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let decCiphers = [];\n            let allDecCiphers = [];\n            let decCollections = [];\n            const promises = [];\n            promises.push(this.collectionService.getAllDecrypted().then((collections) => __awaiter(this, void 0, void 0, function* () {\n                decCollections = collections.filter((c) => c.organizationId == organizationId && c.manage);\n            })));\n            promises.push(this.cipherService.getAllDecrypted().then((ciphers) => {\n                allDecCiphers = ciphers;\n            }));\n            yield Promise.all(promises);\n            decCiphers = allDecCiphers.filter((f) => f.deletedDate == null &&\n                f.organizationId == organizationId &&\n                decCollections.some((dC) => f.collectionIds.some((cId) => dC.id === cId)));\n            if (format === \"csv\") {\n                return this.buildCsvExport(decCollections, decCiphers);\n            }\n            return this.buildJsonExport(decCollections, decCiphers);\n        });\n    }\n    getEncryptedManagedExport(organizationId) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let encCiphers = [];\n            let allCiphers = [];\n            let encCollections = [];\n            const promises = [];\n            promises.push(this.collectionService.getAll().then((collections) => {\n                encCollections = collections.filter((c) => c.organizationId == organizationId && c.manage);\n            }));\n            promises.push(this.cipherService.getAll().then((ciphers) => {\n                allCiphers = ciphers;\n            }));\n            yield Promise.all(promises);\n            encCiphers = allCiphers.filter((f) => f.deletedDate == null &&\n                f.organizationId == organizationId &&\n                encCollections.some((eC) => f.collectionIds.some((cId) => eC.id === cId)));\n            return this.BuildEncryptedExport(organizationId, encCollections, encCiphers);\n        });\n    }\n    BuildEncryptedExport(organizationId, collections, ciphers) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const orgKey = yield this.keyService.getOrgKey(organizationId);\n            const encKeyValidation = yield this.encryptService.encrypt(_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_4__.Utils.newGuid(), orgKey);\n            const jsonDoc = {\n                encrypted: true,\n                encKeyValidation_DO_NOT_EDIT: encKeyValidation.encryptedString,\n                collections: [],\n                items: [],\n            };\n            collections.forEach((c) => {\n                const collection = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_3__.CollectionWithIdExport();\n                collection.build(c);\n                jsonDoc.collections.push(collection);\n            });\n            ciphers.forEach((c) => {\n                const cipher = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_3__.CipherWithIdExport();\n                cipher.build(c);\n                jsonDoc.items.push(cipher);\n            });\n            return JSON.stringify(jsonDoc, null, \"  \");\n        });\n    }\n    buildCsvExport(decCollections, decCiphers) {\n        const collectionsMap = new Map();\n        decCollections.forEach((c) => {\n            collectionsMap.set(c.id, c);\n        });\n        const exportCiphers = [];\n        decCiphers.forEach((c) => {\n            // only export logins and secure notes\n            if (c.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.CipherType.Login && c.type !== _bitwarden_common_vault_enums__WEBPACK_IMPORTED_MODULE_5__.CipherType.SecureNote) {\n                return;\n            }\n            const cipher = {};\n            cipher.collections = [];\n            if (c.collectionIds != null) {\n                cipher.collections = c.collectionIds\n                    .filter((id) => collectionsMap.has(id))\n                    .map((id) => collectionsMap.get(id).name);\n            }\n            this.buildCommonCipher(cipher, c);\n            exportCiphers.push(cipher);\n        });\n        return papaparse__WEBPACK_IMPORTED_MODULE_0__.unparse(exportCiphers);\n    }\n    buildJsonExport(decCollections, decCiphers) {\n        const jsonDoc = {\n            encrypted: false,\n            collections: [],\n            items: [],\n        };\n        decCollections.forEach((c) => {\n            const collection = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_3__.CollectionWithIdExport();\n            collection.build(c);\n            jsonDoc.collections.push(collection);\n        });\n        decCiphers.forEach((c) => {\n            const cipher = new _bitwarden_common_models_export__WEBPACK_IMPORTED_MODULE_3__.CipherWithIdExport();\n            cipher.build(c);\n            jsonDoc.items.push(cipher);\n        });\n        return JSON.stringify(jsonDoc, null, \"  \");\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 26608 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/org-vault-export.service.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.abstraction.ts":
/*!***************************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.abstraction.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EXPORT_FORMATS: () => (/* binding */ EXPORT_FORMATS),\n/* harmony export */   VaultExportServiceAbstraction: () => (/* binding */ VaultExportServiceAbstraction)\n/* harmony export */ });\nconst EXPORT_FORMATS = [\"csv\", \"json\", \"encrypted_json\"];\nclass VaultExportServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9zZXJ2aWNlcy92YXVsdC1leHBvcnQuc2VydmljZS5hYnN0cmFjdGlvbi50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUFPLE1BQU0sY0FBYyxHQUFHLENBQUMsS0FBSyxFQUFFLE1BQU0sRUFBRSxnQkFBZ0IsQ0FBVSxDQUFDO0FBR2xFLE1BQWUsNkJBQTZCO0NBU2xEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy9zZXJ2aWNlcy92YXVsdC1leHBvcnQuc2VydmljZS5hYnN0cmFjdGlvbi50cz85ZmZlIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBFWFBPUlRfRk9STUFUUyA9IFtcImNzdlwiLCBcImpzb25cIiwgXCJlbmNyeXB0ZWRfanNvblwiXSBhcyBjb25zdDtcbmV4cG9ydCB0eXBlIEV4cG9ydEZvcm1hdCA9ICh0eXBlb2YgRVhQT1JUX0ZPUk1BVFMpW251bWJlcl07XG5cbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBWYXVsdEV4cG9ydFNlcnZpY2VBYnN0cmFjdGlvbiB7XG4gIGdldEV4cG9ydDogKGZvcm1hdDogRXhwb3J0Rm9ybWF0LCBwYXNzd29yZDogc3RyaW5nKSA9PiBQcm9taXNlPHN0cmluZz47XG4gIGdldE9yZ2FuaXphdGlvbkV4cG9ydDogKFxuICAgIG9yZ2FuaXphdGlvbklkOiBzdHJpbmcsXG4gICAgZm9ybWF0OiBFeHBvcnRGb3JtYXQsXG4gICAgcGFzc3dvcmQ6IHN0cmluZyxcbiAgICBvbmx5TWFuYWdlZENvbGxlY3Rpb25zPzogYm9vbGVhbixcbiAgKSA9PiBQcm9taXNlPHN0cmluZz47XG4gIGdldEZpbGVOYW1lOiAocHJlZml4Pzogc3RyaW5nLCBleHRlbnNpb24/OiBzdHJpbmcpID0+IHN0cmluZztcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VaultExportService: () => (/* binding */ VaultExportService)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/utils */ \"../../libs/common/src/platform/misc/utils.ts\");\n/* harmony import */ var _export_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./export-helper */ \"../../libs/tools/export/vault-export/vault-export-core/src/services/export-helper.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\nclass VaultExportService {\n    constructor(individualVaultExportService, organizationVaultExportService) {\n        this.individualVaultExportService = individualVaultExportService;\n        this.organizationVaultExportService = organizationVaultExportService;\n    }\n    getExport() {\n        return __awaiter(this, arguments, void 0, function* (format = \"csv\", password) {\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(password)) {\n                if (format == \"csv\") {\n                    throw new Error(\"CSV does not support password protected export\");\n                }\n                return this.individualVaultExportService.getPasswordProtectedExport(password);\n            }\n            return this.individualVaultExportService.getExport(format);\n        });\n    }\n    getOrganizationExport(organizationId_1, format_1, password_1) {\n        return __awaiter(this, arguments, void 0, function* (organizationId, format, password, onlyManagedCollections = false) {\n            if (!_bitwarden_common_platform_misc_utils__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrWhitespace(password)) {\n                if (format == \"csv\") {\n                    throw new Error(\"CSV does not support password protected export\");\n                }\n                return this.organizationVaultExportService.getPasswordProtectedExport(organizationId, password, onlyManagedCollections);\n            }\n            return this.organizationVaultExportService.getOrganizationExport(organizationId, format, onlyManagedCollections);\n        });\n    }\n    getFileName(prefix = null, extension = \"csv\") {\n        return _export_helper__WEBPACK_IMPORTED_MODULE_1__.ExportHelper.getFileName(prefix, extension);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4352 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/services/vault-export.service.ts\n");

/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/types/bitwarden-csv-export-type.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/types/bitwarden-csv-export-type.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/types/bitwarden-json-export-types.ts":
/*!*******************************************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/types/bitwarden-json-export-types.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/export/vault-export/vault-export-core/src/types/index.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/export/vault-export/vault-export-core/src/types/index.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bitwarden_csv_export_type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bitwarden-csv-export-type */ \"../../libs/tools/export/vault-export/vault-export-core/src/types/bitwarden-csv-export-type.ts\");\n/* harmony import */ var _bitwarden_json_export_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bitwarden-json-export-types */ \"../../libs/tools/export/vault-export/vault-export-core/src/types/bitwarden-json-export-types.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9leHBvcnQvdmF1bHQtZXhwb3J0L3ZhdWx0LWV4cG9ydC1jb3JlL3NyYy90eXBlcy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7QUFBNEM7QUFDRSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZXhwb3J0L3ZhdWx0LWV4cG9ydC92YXVsdC1leHBvcnQtY29yZS9zcmMvdHlwZXMvaW5kZXgudHM/OTc3NyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9iaXR3YXJkZW4tY3N2LWV4cG9ydC10eXBlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9iaXR3YXJkZW4tanNvbi1leHBvcnQtdHlwZXNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/export/vault-export/vault-export-core/src/types/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/abstractions/generator-strategy.abstraction.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/abstractions/generator-strategy.abstraction.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorStrategy: () => (/* binding */ GeneratorStrategy)\n/* harmony export */ });\n/** Tailors the generator service to generate a specific kind of credentials */\nclass GeneratorStrategy {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvYWJzdHJhY3Rpb25zL2dlbmVyYXRvci1zdHJhdGVneS5hYnN0cmFjdGlvbi50cyIsIm1hcHBpbmdzIjoiOzs7O0FBV0EsK0VBQStFO0FBQ3hFLE1BQWUsaUJBQWlCO0NBNkJ0QyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2Fic3RyYWN0aW9ucy9nZW5lcmF0b3Itc3RyYXRlZ3kuYWJzdHJhY3Rpb24udHM/MzUxMCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSBcInJ4anNcIjtcblxuaW1wb3J0IHsgUG9saWN5VHlwZSB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9hZG1pbi1jb25zb2xlL2VudW1zXCI7XG4vLyBGSVhNRTogdXNlIGluZGV4LnRzIGltcG9ydHMgb25jZSBwb2xpY3kgYWJzdHJhY3Rpb25zIGFuZCBtb2RlbHNcbi8vIGltcGxlbWVudCBBRFItMDAwMlxuaW1wb3J0IHsgUG9saWN5IGFzIEFkbWluUG9saWN5IH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL2FkbWluLWNvbnNvbGUvbW9kZWxzL2RvbWFpbi9wb2xpY3lcIjtcbmltcG9ydCB7IFNpbmdsZVVzZXJTdGF0ZSB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi9wbGF0Zm9ybS9zdGF0ZVwiO1xuaW1wb3J0IHsgVXNlcklkIH0gZnJvbSBcIkBiaXR3YXJkZ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vbGljeSBiZWluZyBldmFsdWF0ZWQuXG4gICAqIEByZXR1cm5zIHRoZSBwb2xpY3kgZXZhbHVhdG9yLiBJZiBgcG9saWN5YCBpcyBpcyBgbnVsbGAgb3IgYHVuZGVmaW5lZGAsXG4gICAqIHRoZW4gdGhlIGV2YWx1YXRvciBkZWZhdWx0cyB0byB0aGUgYXBwbGljYXRpb24ncyBsaW1pdHMuXG4gICAqIEB0aHJvd3Mgd2hlbiB0aGUgcG9saWN5J3MgdHlwZSBkb2VzIG5vdCBtYXRjaCB0aGUgZ2VuZXJhdG9yJ3MgcG9saWN5IHR5cGUuXG4gICAqL1xuICB0b0V2YWx1YXRvcjogKCkgPT4gKFxuICAgIHNvdXJjZTogT2JzZXJ2YWJsZTxBZG1pblBvbGljeVtdPixcbiAgKSA9PiBPYnNlcnZhYmxlPFBvbGljeUV2YWx1YXRvcjxQb2xpY3ksIE9wdGlvbnM+PjtcblxuICAvKiogR2VuZXJhdGVzIGNyZWRlbnRpYWxzIGZyb20gdGhlIGdpdmVuIG9wdGlvbnMuXG4gICAqIEBwYXJhbSBvcHRpb25zIFRoZSBvcHRpb25zIHVzZWQgdG8gZ2VuZXJhdGUgdGhlIGNyZWRlbnRpYWxzLlxuICAgKiBAcmV0dXJucyBhIHByb21pc2UgdGhhdCByZXNvbHZlcyB0byB0aGUgZ2VuZXJhdGVkIGNyZWRlbnRpYWxzLlxuICAgKi9cbiAgZ2VuZXJhdGU6IChvcHRpb25zOiBPcHRpb25zKSA9PiBQcm9taXNlPHN0cmluZz47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/abstractions/generator-strategy.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/abstractions/generator.service.abstraction.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/abstractions/generator.service.abstraction.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorService: () => (/* binding */ GeneratorService)\n/* harmony export */ });\n/** Generates credentials used for user authentication\n *  @typeParam Options the credential generation configuration\n *  @typeParam Policy the policy enforced by the generator\n */\nclass GeneratorService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvYWJzdHJhY3Rpb25zL2dlbmVyYXRvci5zZXJ2aWNlLmFic3RyYWN0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFNQTs7O0dBR0c7QUFDSSxNQUFlLGdCQUFnQjtDQW1DckMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9hYnN0cmFjdGlvbnMvZ2VuZXJhdG9yLnNlcnZpY2UuYWJzdHJhY3Rpb24udHM/YTA1OCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYnNlcnZhYmxlIH0gZnJvbSBcInJ4anNcIjtcblxuaW1wb3J0IHsgVXNlcklkIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL3R5cGVzL2d1aWRcIjtcblxuaW1wb3J0IHsgUG9saWN5RXZhbHVhdG9yIH0gZnJvbSBcIi4vcG9saWN5LWV2YWx1YXRvci5hYnN0cmFjdGlvblwiO1xuXG4vKiogR2VuZXJhdGVzIGNyZWRlbnRpYWxzIHVzZWQgZm9yIHVzZXIgYXV0aGVudGljYXRpb25cbiAqICBAdHlwZVBhcmFtIE9wdGlvbnMgdGhlIGNyZWRlbnRpYWwgZ2VuZXJhdGlvbiBjb25maWd1cmF0aW9uXG4gKiAgQHR5cGVQYXJhbSBQb2xpY3k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yIG1ha2luZyB0aGUgcmVxdWVzdFxuICAgKiBAcGFyYW0gb3B0aW9ucyB0aGUgb3B0aW9ucyB0byBlbmZvcmNlIHRoZSBwb2xpY3kgb25cbiAgICogQHJldHVybnMgYSBuZXcgaW5zdGFuY2Ugb2YgdGhlIG9wdGlvbnMgd2l0aCB0aGUgcG9saWN5IGVuZm9yY2VkXG4gICAqL1xuICBlbmZvcmNlUG9saWN5OiAodXNlcklkOiBVc2VySWQsIG9wdGlvbnM6IE9wdGlvbnMpID0+IFByb21pc2U8T3B0aW9ucz47XG5cbiAgLyoqIEdlbmVyYXRlcyBjcmVkZW50aWFsc1xuICAgKiBAcGFyYW0gb3B0aW9ucyB0aGUgb3B0aW9ucyB0byBnZW5lcmF0ZSBjcmVkZW50aWFscyB3aXRoXG4gICAqIEByZXR1cm5zIGEgcHJvbWlzZSB0aGF0IHJlc29sdmVzIHdpdGggdGhlIGdlbmVyYXRlZCBjcmVkZW50aWFsc1xuICAgKi9cbiAgZ2VuZXJhdGU6IChvcHRpb25zOiBPcHRpb25zKSA9PiBQcm9taXNlPHN0cmluZz47XG5cbiAgLyoqIFNhdmVzIHRoZSBnaXZlbiBvcHRpb25zIHRvIGRpc2suXG4gICAqIEBwYXJhbSB1c2VySWQ6IElkZW50aWZpZXMgdGhlIHVzZXIgbWFraW5nIHRoZSByZXF1ZXN0XG4gICAqIEBwYXJhbSBvcHRpb25zIHRoZSBvcHRpb25zIHRvIHNhdmVcbiAgICogQHJldHVybnMgYSBwcm9taXNlIHRoYXQgcmVzb2x2ZXMgd2hlbiB0aGUgb3B0aW9ucyBhcmUgc2F2ZWRcbiAgICovXG4gIHNhdmVPcHRpb25zOiAodXNlcklkOiBVc2VySWQsIG9wdGlvbnM6IE9wdGlvbnMpID0+IFByb21pc2U8dm9pZD47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/abstractions/generator.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/abstractions/index.ts":
/*!*****************************************************************!*\
  !*** ../../libs/tools/generator/core/src/abstractions/index.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorService: () => (/* reexport safe */ _generator_service_abstraction__WEBPACK_IMPORTED_MODULE_0__.GeneratorService),\n/* harmony export */   GeneratorStrategy: () => (/* reexport safe */ _generator_strategy_abstraction__WEBPACK_IMPORTED_MODULE_1__.GeneratorStrategy),\n/* harmony export */   PolicyEvaluator: () => (/* reexport safe */ _policy_evaluator_abstraction__WEBPACK_IMPORTED_MODULE_2__.PolicyEvaluator)\n/* harmony export */ });\n/* harmony import */ var _generator_service_abstraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./generator.service.abstraction */ \"../../libs/tools/generator/core/src/abstractions/generator.service.abstraction.ts\");\n/* harmony import */ var _generator_strategy_abstraction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./generator-strategy.abstraction */ \"../../libs/tools/generator/core/src/abstractions/generator-strategy.abstraction.ts\");\n/* harmony import */ var _policy_evaluator_abstraction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./policy-evaluator.abstraction */ \"../../libs/tools/generator/core/src/abstractions/policy-evaluator.abstraction.ts\");\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvYWJzdHJhY3Rpb25zL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFtRTtBQUNFO0FBQ0oiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9hYnN0cmFjdGlvbnMvaW5kZXgudHM/N2I0MCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBHZW5lcmF0b3JTZXJ2aWNlIH0gZnJvbSBcIi4vZ2VuZXJhdG9yLnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbmV4cG9ydCB7IEdlbmVyYXRvclN0cmF0ZWd5IH0gZnJvbSBcIi4vZ2VuZXJhdG9yLXN0cmF0ZWd5LmFic3RyYWN0aW9uXCI7XG5leHBvcnQgeyBQb2xpY3lFdmFsdWF0b3IgfSBmcm9tIFwiLi9wb2xpY3ktZXZhbHVhdG9yLmFic3RyYWN0aW9uXCI7XG5leHBvcnQgeyBSYW5kb21pemVyIH0gZnJvbSBcIi4uL2VuZ2luZS9hYnN0cmFjdGlvbnNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/abstractions/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/abstractions/policy-evaluator.abstraction.ts":
/*!****************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/abstractions/policy-evaluator.abstraction.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PolicyEvaluator: () => (/* binding */ PolicyEvaluator)\n/* harmony export */ });\n/** Applies policy to a generation request */\nclass PolicyEvaluator {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvYWJzdHJhY3Rpb25zL3BvbGljeS1ldmFsdWF0b3IuYWJzdHJhY3Rpb24udHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDZDQUE2Q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b2xpY3kgb3ZlcnJpZGVzLlxuICAgKiAgICAgICAgICAgUGFzcyB0aGUgcmVzdWx0IHRvIGBzYW5pdGl6ZWAgdG8gZW5zdXJlIGNvbnNpc3RlbmN5LlxuICAgKi9cbiAgYXBwbHlQb2xpY3k6IChvcHRpb25zOiBQb2xpY3lUYXJnZXQpID0+IFBvbGljeVRhcmdldDtcblxuICAvKiogRW5zdXJlcyBpbnRlcm5hbCBvcHRpb25zIGNvbnNpc3RlbmN5LlxuICAgKiAgQHBhcmFtIG9wdGlvbnMgVGhlIG9wdGlvbnMgdG8gY2FzY2FkZS4gVGhlc2Ugb3B0aW9ucyBhcmUgbm90IGFsdGVyZWQuXG4gICAqICBAcmV0dXJucyBBIG5ldyBnZW5lcmF0aW9uIHJlcXVlc3Qgd2l0aCBjYXNjYWRlIGFwcGxpZWQuXG4gICAqICBAcmVtYXJrcyAgVGhpcyBtZXRob2QgZmlsbHMgbnVsbCBhbmQgdW5kZWZpbmVkIHZhbHVlcyBieSBsb29raW5nIGF0XG4gICAqICBwYWlycyBvZiBmbGFncyBhbmQgdmFsdWVzIChlLmcuIGBudW1iZXJgIGFuZCBgbWluTnVtYmVyYCkuIElmIHRoZSBmbGFnXG4gICAqICBhbmQgdmFsdWUgYXJlIGluY29uc2lzdGVudCwgdGhlIGZsYWcgY2FzY2FkZXMgdG8gdGhlIHZhbHVlLlxuICAgKi9cbiAgc2FuaXRpemU6IChvcHRpb25zOiBQb2xpY3lUYXJnZXQpID0+IFBvbGljeVRhcmdldDtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/abstractions/policy-evaluator.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-addy-io-options.ts":
/*!***************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-addy-io-options.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultAddyIoOptions: () => (/* binding */ DefaultAddyIoOptions)\n/* harmony export */ });\nconst DefaultAddyIoOptions = Object.freeze({\n    website: null,\n    baseUrl: \"https://app.addy.io\",\n    token: \"\",\n    domain: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWFkZHktaW8tb3B0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSxvQkFBb0IsR0FBOEMsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUMzRixPQUFPLEVBQUUsSUFBSTtJQUNiLE9BQU8sRUFBRSxxQkFBcUI7SUFDOUIsS0FBSyxFQUFFLEVBQUU7SUFDVCxNQUFNLEVBQUUsRUFBRTtDQUNYLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2RhdGEvZGVmYXVsdC1hZGR5LWlvLW9wdGlvbnMudHM/MWVlYyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFbWFpbERvbWFpbk9wdGlvbnMsIFNlbGZIb3N0ZWRBcGlPcHRpb25zIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmV4cG9ydCBjb25zdCBEZWZhdWx0QWRkeUlvT3B0aW9uczogU2VsZkhvc3RlZEFwaU9wdGlvbnMgJiBFbWFpbERvbWFpbk9wdGlvbnMgPSBPYmplY3QuZnJlZXplKHtcbiAgd2Vic2l0ZTogbnVsbCxcbiAgYmFzZVVybDogXCJodHRwczovL2FwcC5hZGR5LmlvXCIsXG4gIHRva2VuOiBcIlwiLFxuICBkb21haW46IFwiXCIsXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-addy-io-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-catchall-options.ts":
/*!****************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-catchall-options.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultCatchallOptions: () => (/* binding */ DefaultCatchallOptions)\n/* harmony export */ });\n/** The default options for catchall address generation. */\nconst DefaultCatchallOptions = Object.freeze({\n    catchallType: \"random\",\n    catchallDomain: \"\",\n    website: null,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWNhdGNoYWxsLW9wdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVBLDJEQUEyRDtBQUNwRCxNQUFNLHNCQUFzQixHQUE4QixNQUFNLENBQUMsTUFBTSxDQUFDO0lBQzdFLFlBQVksRUFBRSxRQUFRO0lBQ3RCLGNBQWMsRUFBRSxFQUFFO0lBQ2xCLE9BQU8sRUFBRSxJQUFJO0NBQ2QsQ0FBQyxDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWNhdGNoYWxsLW9wdGlvbnMudHM/NjBjYSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDYXRjaGFsbEdlbmVyYXRpb25PcHRpb25zIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbi8qKiBUaGUgZGVmYXVsdCBvcHRpb25zIGZvciBjYXRjaGFsbCBhZGRyZXNzIGdlbmVyYXRpb24uICovXG5leHBvcnQgY29uc3QgRGVmYXVsdENhdGNoYWxsT3B0aW9uczogQ2F0Y2hhbGxHZW5lcmF0aW9uT3B0aW9ucyA9IE9iamVjdC5mcmVlemUoe1xuICBjYXRjaGFsbFR5cGU6IFwicmFuZG9tXCIsXG4gIGNhdGNoYWxsRG9tYWluOiBcIlwiLFxuICB3ZWJzaXRlOiBudWxsLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-catchall-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-credential-preferences.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-credential-preferences.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultCredentialPreferences: () => (/* binding */ DefaultCredentialPreferences)\n/* harmony export */ });\n/* harmony import */ var _generator_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./generator-types */ \"../../libs/tools/generator/core/src/data/generator-types.ts\");\n\nconst DefaultCredentialPreferences = Object.freeze({\n    email: Object.freeze({\n        algorithm: _generator_types__WEBPACK_IMPORTED_MODULE_0__.EmailAlgorithms[0],\n        updated: new Date(0),\n    }),\n    password: Object.freeze({\n        algorithm: _generator_types__WEBPACK_IMPORTED_MODULE_0__.PasswordAlgorithms[0],\n        updated: new Date(0),\n    }),\n    username: Object.freeze({\n        algorithm: _generator_types__WEBPACK_IMPORTED_MODULE_0__.UsernameAlgorithms[0],\n        updated: new Date(0),\n    }),\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,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MsIFVzZXJuYW1lQWxnb3JpdGhtcyB9IGZyb20gXCIuL2dlbmVyYXRvci10eXBlc1wiO1xuXG5leHBvcnQgY29uc3QgRGVmYXVsdENyZWRlbnRpYWxQcmVmZXJlbmNlczogQ3JlZGVudGlhbFByZWZlcmVuY2UgPSBPYmplY3QuZnJlZXplKHtcbiAgZW1haWw6IE9iamVjdC5mcmVlemUoe1xuICAgIGFsZ29yaXRobTogRW1haWxBbGdvcml0aG1zWzBdLFxuICAgIHVwZGF0ZWQ6IG5ldyBEYXRlKDApLFxuICB9KSxcbiAgcGFzc3dvcmQ6IE9iamVjdC5mcmVlemUoe1xuICAgIGFsZ29yaXRobTogUGFzc3dvcmRBbGdvcml0aG1zWzBdLFxuICAgIHVwZGF0ZWQ6IG5ldyBEYXRlKDApLFxuICB9KSxcbiAgdXNlcm5hbWU6IE9iamVjdC5mcmVlemUoe1xuICAgIGFsZ29yaXRobTogVXNlcm5hbWVBbGdvcml0aG1zWzBdLFxuICAgIHVwZGF0ZWQ6IG5ldyBEYXRlKDApLFxuICB9KSxcbn0pO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-credential-preferences.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-duck-duck-go-options.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-duck-duck-go-options.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultDuckDuckGoOptions: () => (/* binding */ DefaultDuckDuckGoOptions)\n/* harmony export */ });\nconst DefaultDuckDuckGoOptions = Object.freeze({\n    website: null,\n    token: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWR1Y2stZHVjay1nby1vcHRpb25zLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNLHdCQUF3QixHQUFlLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDaEUsT0FBTyxFQUFFLElBQUk7SUFDYixLQUFLLEVBQUUsRUFBRTtDQUNWLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2RhdGEvZGVmYXVsdC1kdWNrLWR1Y2stZ28tb3B0aW9ucy50cz9kZjdhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFwaU9wdGlvbnMgfSBmcm9tIFwiLi4vdHlwZXNcIjtcblxuZXhwb3J0IGNvbnN0IERlZmF1bHREdWNrRHVja0dvT3B0aW9uczogQXBpT3B0aW9ucyA9IE9iamVjdC5mcmVlemUoe1xuICB3ZWJzaXRlOiBudWxsLFxuICB0b2tlbjogXCJcIixcbn0pO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-duck-duck-go-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-eff-username-options.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-eff-username-options.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultEffUsernameOptions: () => (/* binding */ DefaultEffUsernameOptions)\n/* harmony export */ });\n/** The default options for EFF long word generation. */\nconst DefaultEffUsernameOptions = Object.freeze({\n    wordCapitalize: false,\n    wordIncludeNumber: false,\n    website: null,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWVmZi11c2VybmFtZS1vcHRpb25zLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFQSx3REFBd0Q7QUFDakQsTUFBTSx5QkFBeUIsR0FBaUMsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUNuRixjQUFjLEVBQUUsS0FBSztJQUNyQixpQkFBaUIsRUFBRSxLQUFLO0lBQ3hCLE9BQU8sRUFBRSxJQUFJO0NBQ2QsQ0FBQyxDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWVmZi11c2VybmFtZS1vcHRpb25zLnRzPzY4M2EiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRWZmVXNlcm5hbWVHZW5lcmF0aW9uT3B0aW9ucyB9IGZyb20gXCIuLi90eXBlc1wiO1xuXG4vKiogVGhlIGRlZmF1bHQgb3B0aW9ucyBmb3IgRUZGIGxvbmcgd29yZCBnZW5lcmF0aW9uLiAqL1xuZXhwb3J0IGNvbnN0IERlZmF1bHRFZmZVc2VybmFtZU9wdGlvbnM6IEVmZlVzZXJuYW1lR2VuZXJhdGlvbk9wdGlvbnMgPSBPYmplY3QuZnJlZXplKHtcbiAgd29yZENhcGl0YWxpemU6IGZhbHNlLFxuICB3b3JkSW5jbHVkZU51bWJlcjogZmFsc2UsXG4gIHdlYnNpdGU6IG51bGwsXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-eff-username-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-fastmail-options.ts":
/*!****************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-fastmail-options.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultFastmailOptions: () => (/* binding */ DefaultFastmailOptions)\n/* harmony export */ });\nconst DefaultFastmailOptions = Object.freeze({\n    website: \"\",\n    domain: \"\",\n    prefix: \"\",\n    token: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWZhc3RtYWlsLW9wdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVPLE1BQU0sc0JBQXNCLEdBQW9DLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDbkYsT0FBTyxFQUFFLEVBQUU7SUFDWCxNQUFNLEVBQUUsRUFBRTtJQUNWLE1BQU0sRUFBRSxFQUFFO0lBQ1YsS0FBSyxFQUFFLEVBQUU7Q0FDVixDQUFDLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9kYXRhL2RlZmF1bHQtZmFzdG1haWwtb3B0aW9ucy50cz9hODA4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFwaU9wdGlvbnMsIEVtYWlsUHJlZml4T3B0aW9ucyB9IGZyb20gXCIuLi90eXBlc1wiO1xuXG5leHBvcnQgY29uc3QgRGVmYXVsdEZhc3RtYWlsT3B0aW9uczogQXBpT3B0aW9ucyAmIEVtYWlsUHJlZml4T3B0aW9ucyA9IE9iamVjdC5mcmVlemUoe1xuICB3ZWJzaXRlOiBcIlwiLFxuICBkb21haW46IFwiXCIsXG4gIHByZWZpeDogXCJcIixcbiAgdG9rZW46IFwiXCIsXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-fastmail-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-firefox-relay-options.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-firefox-relay-options.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultFirefoxRelayOptions: () => (/* binding */ DefaultFirefoxRelayOptions)\n/* harmony export */ });\nconst DefaultFirefoxRelayOptions = Object.freeze({\n    website: null,\n    token: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWZpcmVmb3gtcmVsYXktb3B0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSwwQkFBMEIsR0FBZSxNQUFNLENBQUMsTUFBTSxDQUFDO0lBQ2xFLE9BQU8sRUFBRSxJQUFJO0lBQ2IsS0FBSyxFQUFFLEVBQUU7Q0FDVixDQUFDLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9kYXRhL2RlZmF1bHQtZmlyZWZveC1yZWxheS1vcHRpb25zLnRzPzliZGQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQXBpT3B0aW9ucyB9IGZyb20gXCIuLi90eXBlc1wiO1xuXG5leHBvcnQgY29uc3QgRGVmYXVsdEZpcmVmb3hSZWxheU9wdGlvbnM6IEFwaU9wdGlvbnMgPSBPYmplY3QuZnJlZXplKHtcbiAgd2Vic2l0ZTogbnVsbCxcbiAgdG9rZW46IFwiXCIsXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-firefox-relay-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-forward-email-options.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-forward-email-options.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultForwardEmailOptions: () => (/* binding */ DefaultForwardEmailOptions)\n/* harmony export */ });\nconst DefaultForwardEmailOptions = Object.freeze({\n    website: null,\n    token: \"\",\n    domain: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LWZvcndhcmQtZW1haWwtb3B0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBRU8sTUFBTSwwQkFBMEIsR0FBb0MsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUN2RixPQUFPLEVBQUUsSUFBSTtJQUNiLEtBQUssRUFBRSxFQUFFO0lBQ1QsTUFBTSxFQUFFLEVBQUU7Q0FDWCxDQUFDLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9kYXRhL2RlZmF1bHQtZm9yd2FyZC1lbWFpbC1vcHRpb25zLnRzP2Y5MjMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQXBpT3B0aW9ucywgRW1haWxEb21haW5PcHRpb25zIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmV4cG9ydCBjb25zdCBEZWZhdWx0Rm9yd2FyZEVtYWlsT3B0aW9uczogQXBpT3B0aW9ucyAmIEVtYWlsRG9tYWluT3B0aW9ucyA9IE9iamVjdC5mcmVlemUoe1xuICB3ZWJzaXRlOiBudWxsLFxuICB0b2tlbjogXCJcIixcbiAgZG9tYWluOiBcIlwiLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-forward-email-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-passphrase-boundaries.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-passphrase-boundaries.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultPassphraseBoundaries: () => (/* binding */ DefaultPassphraseBoundaries)\n/* harmony export */ });\nfunction initializeBoundaries() {\n    const numWords = Object.freeze({\n        min: 6,\n        max: 20,\n    });\n    return Object.freeze({\n        numWords,\n    });\n}\n/** Immutable default boundaries for passphrase generation.\n * These are used when the policy does not override a value.\n */\nconst DefaultPassphraseBoundaries = initializeBoundaries();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXBhc3NwaHJhc2UtYm91bmRhcmllcy50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsU0FBUyxvQkFBb0I7SUFDM0IsTUFBTSxRQUFRLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQztRQUM3QixHQUFHLEVBQUUsQ0FBQztRQUNOLEdBQUcsRUFBRSxFQUFFO0tBQ1IsQ0FBQyxDQUFDO0lBRUgsT0FBTyxNQUFNLENBQUMsTUFBTSxDQUFDO1FBQ25CLFFBQVE7S0FDVCxDQUFDLENBQUM7QUFDTCxDQUFDO0FBRUQ7O0dBRUc7QUFDSSxNQUFNLDJCQUEyQixHQUFHLG9CQUFvQixFQUFFLENBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9kYXRhL2RlZmF1bHQtcGFzc3BocmFzZS1ib3VuZGFyaWVzLnRzPzQyNmQiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gaW5pdGlhbGl6ZUJvdW5kYXJpZXMoKSB7XG4gIGNvbnN0IG51bVdvcmRzID0gT2JqZWN0LmZyZWV6ZSh7XG4gICAgbWluOiA2LFxuICAgIG1heDogMjAsXG4gIH0pO1xuXG4gIHJldHVybiBPYmplY3QuZnJlZXplKHtcbiAgICBudW1Xb3JkcyxcbiAgfSk7XG59XG5cbi8qKiBJbW11dGFibGUgZGVmYXVsdCBib3VuZGFyaWVzIGZvciBwYXNzcGhyYXNlIGdlbmVyYXRpb24uXG4gKiBUaGVzZSBhcmUgdXNlZCB3aGVuIHRoZSBwb2xpY3kgZG9lcyBub3Qgb3ZlcnJpZGUgYSB2YWx1ZS5cbiAqL1xuZXhwb3J0IGNvbnN0IERlZmF1bHRQYXNzcGhyYXNlQm91bmRhcmllcyA9IGluaXRpYWxpemVCb3VuZGFyaWVzKCk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-passphrase-boundaries.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-passphrase-generation-options.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-passphrase-generation-options.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultPassphraseGenerationOptions: () => (/* binding */ DefaultPassphraseGenerationOptions)\n/* harmony export */ });\n/** The default options for passphrase generation. */\nconst DefaultPassphraseGenerationOptions = Object.freeze({\n    numWords: 6,\n    wordSeparator: \"-\",\n    capitalize: false,\n    includeNumber: false,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXBhc3NwaHJhc2UtZ2VuZXJhdGlvbi1vcHRpb25zLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFQSxxREFBcUQ7QUFDOUMsTUFBTSxrQ0FBa0MsR0FDN0MsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUNaLFFBQVEsRUFBRSxDQUFDO0lBQ1gsYUFBYSxFQUFFLEdBQUc7SUFDbEIsVUFBVSxFQUFFLEtBQUs7SUFDakIsYUFBYSxFQUFFLEtBQUs7Q0FDckIsQ0FBQyxDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXBhc3NwaHJhc2UtZ2VuZXJhdGlvbi1vcHRpb25zLnRzPzcwZmYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUGFzc3BocmFzZUdlbmVyYXRpb25PcHRpb25zIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbi8qKiBUaGUgZGVmYXVsdCBvcHRpb25zIGZvciBwYXNzcGhyYXNlIGdlbmVyYXRpb24uICovXG5leHBvcnQgY29uc3QgRGVmYXVsdFBhc3NwaHJhc2VHZW5lcmF0aW9uT3B0aW9uczogUGFydGlhbDxQYXNzcGhyYXNlR2VuZXJhdGlvbk9wdGlvbnM+ID1cbiAgT2JqZWN0LmZyZWV6ZSh7XG4gICAgbnVtV29yZHM6IDYsXG4gICAgd29yZFNlcGFyYXRvcjogXCItXCIsXG4gICAgY2FwaXRhbGl6ZTogZmFsc2UsXG4gICAgaW5jbHVkZU51bWJlcjogZmFsc2UsXG4gIH0pO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-passphrase-generation-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-password-boundaries.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-password-boundaries.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultPasswordBoundaries: () => (/* binding */ DefaultPasswordBoundaries)\n/* harmony export */ });\nfunction initializeBoundaries() {\n    const length = Object.freeze({\n        min: 5,\n        max: 128,\n    });\n    const minDigits = Object.freeze({\n        min: 0,\n        max: 9,\n    });\n    const minSpecialCharacters = Object.freeze({\n        min: 0,\n        max: 9,\n    });\n    return Object.freeze({\n        length,\n        minDigits,\n        minSpecialCharacters,\n    });\n}\n/** Immutable default boundaries for password generation.\n * These are used when the policy does not override a value.\n */\nconst DefaultPasswordBoundaries = initializeBoundaries();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXBhc3N3b3JkLWJvdW5kYXJpZXMudHMiL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2lhbENoYXJhY3RlcnMgPSBPYmplY3QuZnJlZXplKHtcbiAgICBtaW46IDAsXG4gICAgbWF4OiA5LFxuICB9KTtcblxuICByZXR1cm4gT2JqZWN0LmZyZWV6ZSh7XG4gICAgbGVuZ3RoLFxuICAgIG1pbkRpZ2l0cyxcbiAgICBtaW5TcGVjaWFsQ2hhcmFjdGVycyxcbiAgfSk7XG59XG5cbi8qKiBJbW11dGFibGUgZGVmYXVsdCBib3VuZGFyaWVzIGZvciBwYXNzd29yZCBnZW5lcmF0aW9uLlxuICogVGhlc2UgYXJlIHVzZWQgd2hlbiB0aGUgcG9saWN5IGRvZXMgbm90IG92ZXJyaWRlIGEgdmFsdWUuXG4gKi9cbmV4cG9ydCBjb25zdCBEZWZhdWx0UGFzc3dvcmRCb3VuZGFyaWVzID0gaW5pdGlhbGl6ZUJvdW5kYXJpZXMoKTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-password-boundaries.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-password-generation-options.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-password-generation-options.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultPasswordGenerationOptions: () => (/* binding */ DefaultPasswordGenerationOptions)\n/* harmony export */ });\n/* harmony import */ var _default_password_boundaries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-password-boundaries */ \"../../libs/tools/generator/core/src/data/default-password-boundaries.ts\");\n\n/** The default options for password generation. */\nconst DefaultPasswordGenerationOptions = Object.freeze({\n    length: 14,\n    minLength: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length.min,\n    ambiguous: true,\n    uppercase: true,\n    minUppercase: 1,\n    lowercase: true,\n    minLowercase: 1,\n    number: true,\n    minNumber: 1,\n    special: false,\n    minSpecial: 0,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXBhc3N3b3JkLWdlbmVyYXRpb24tb3B0aW9ucy50cyIsIm1hcHBpbmdzIjoiOzs7OztBQUUwRTtBQUUxRSxtREFBbUQ7QUFDNUMsTUFBTSxnQ0FBZ0MsR0FDZixNQUFNLENBQUMsTUFBTSxDQUFDO0lBQzFDLE1BQU0sRUFBRSxFQUFFO0lBQ1YsU0FBUyxFQUFFLG1GQUF5QixDQUFDLE1BQU0sQ0FBQyxHQUFHO0lBQy9DLFNBQVMsRUFBRSxJQUFJO0lBQ2YsU0FBUyxFQUFFLElBQUk7SUFDZixZQUFZLEVBQUUsQ0FBQztJQUNmLFNBQVMsRUFBRSxJQUFJO0lBQ2YsWUFBWSxFQUFFLENBQUM7SUFDZixNQUFNLEVBQUUsSUFBSTtJQUNaLFNBQVMsRUFBRSxDQUFDO0lBQ1osT0FBTyxFQUFFLEtBQUs7SUFDZCxVQUFVLEVBQUUsQ0FBQztDQUNkLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2RhdGEvZGVmYXVsdC1wYXNzd29yZC1nZW5lcmF0aW9uLW9wdGlvbnMudHM/MDlhZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQYXNzd29yZEdlbmVyYXRpb25PcHRpb25zLCBQYXNzd29yZEdlbmVyYXRvclNldHRpbmdzIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmltcG9ydCB7IERlZmF1bHRQYXNzd29yZEJvdW5kYXJpZXMgfSBmcm9tIFwiLi9kZWZhdWx0LXBhc3N3b3JkLWJvdW5kYXJpZXNcIjtcblxuLyoqIFRoZSBkZWZhdWx0IG9wdGlvbnMgZm9yIHBhc3N3b3JkIGdlbmVyYXRpb24uICovXG5leHBvcnQgY29uc3QgRGVmYXVsdFBhc3N3b3JkR2VuZXJhdGlvbk9wdGlvbnM6IFBhcnRpYWw8UGFzc3dvcmRHZW5lcmF0aW9uT3B0aW9ucz4gJlxuICBQYXNzd29yZEdlbmVyYXRvclNldHRpbmdzID0gT2JqZWN0LmZyZWV6ZSh7XG4gIGxlbmd0aDogMTQsXG4gIG1pbkxlbmd0aDogRGVmYXVsdFBhc3N3b3JkQm91bmRhcmllcy5sZW5ndGgubWluLFxuICBhbWJpZ3VvdXM6IHRydWUsXG4gIHVwcGVyY2FzZTogdHJ1ZSxcbiAgbWluVXBwZXJjYXNlOiAxLFxuICBsb3dlcmNhc2U6IHRydWUsXG4gIG1pbkxvd2VyY2FzZTogMSxcbiAgbnVtYmVyOiB0cnVlLFxuICBtaW5OdW1iZXI6IDEsXG4gIHNwZWNpYWw6IGZhbHNlLFxuICBtaW5TcGVjaWFsOiAwLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-password-generation-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-simple-login-options.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-simple-login-options.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSimpleLoginOptions: () => (/* binding */ DefaultSimpleLoginOptions)\n/* harmony export */ });\nconst DefaultSimpleLoginOptions = Object.freeze({\n    website: null,\n    baseUrl: \"https://app.simplelogin.io\",\n    token: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXNpbXBsZS1sb2dpbi1vcHRpb25zLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNLHlCQUF5QixHQUF5QixNQUFNLENBQUMsTUFBTSxDQUFDO0lBQzNFLE9BQU8sRUFBRSxJQUFJO0lBQ2IsT0FBTyxFQUFFLDRCQUE0QjtJQUNyQyxLQUFLLEVBQUUsRUFBRTtDQUNWLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2RhdGEvZGVmYXVsdC1zaW1wbGUtbG9naW4tb3B0aW9ucy50cz9kYTZkIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlbGZIb3N0ZWRBcGlPcHRpb25zIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmV4cG9ydCBjb25zdCBEZWZhdWx0U2ltcGxlTG9naW5PcHRpb25zOiBTZWxmSG9zdGVkQXBpT3B0aW9ucyA9IE9iamVjdC5mcmVlemUoe1xuICB3ZWJzaXRlOiBudWxsLFxuICBiYXNlVXJsOiBcImh0dHBzOi8vYXBwLnNpbXBsZWxvZ2luLmlvXCIsXG4gIHRva2VuOiBcIlwiLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-simple-login-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/default-subaddress-generator-options.ts":
/*!****************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/default-subaddress-generator-options.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultSubaddressOptions: () => (/* binding */ DefaultSubaddressOptions)\n/* harmony export */ });\n/** The default options for email subaddress generation. */\nconst DefaultSubaddressOptions = Object.freeze({\n    subaddressType: \"random\",\n    subaddressEmail: \"\",\n    website: null,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXN1YmFkZHJlc3MtZ2VuZXJhdG9yLW9wdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUVBLDJEQUEyRDtBQUNwRCxNQUFNLHdCQUF3QixHQUFnQyxNQUFNLENBQUMsTUFBTSxDQUFDO0lBQ2pGLGNBQWMsRUFBRSxRQUFRO0lBQ3hCLGVBQWUsRUFBRSxFQUFFO0lBQ25CLE9BQU8sRUFBRSxJQUFJO0NBQ2QsQ0FBQyxDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9kZWZhdWx0LXN1YmFkZHJlc3MtZ2VuZXJhdG9yLW9wdGlvbnMudHM/NzUzOSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTdWJhZGRyZXNzR2VuZXJhdGlvbk9wdGlvbnMgfSBmcm9tIFwiLi4vdHlwZXNcIjtcblxuLyoqIFRoZSBkZWZhdWx0IG9wdGlvbnMgZm9yIGVtYWlsIHN1YmFkZHJlc3MgZ2VuZXJhdGlvbi4gKi9cbmV4cG9ydCBjb25zdCBEZWZhdWx0U3ViYWRkcmVzc09wdGlvbnM6IFN1YmFkZHJlc3NHZW5lcmF0aW9uT3B0aW9ucyA9IE9iamVjdC5mcmVlemUoe1xuICBzdWJhZGRyZXNzVHlwZTogXCJyYW5kb21cIixcbiAgc3ViYWRkcmVzc0VtYWlsOiBcIlwiLFxuICB3ZWJzaXRlOiBudWxsLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/default-subaddress-generator-options.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/forwarders.ts":
/*!**************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/forwarders.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Forwarders: () => (/* binding */ Forwarders)\n/* harmony export */ });\n/** Metadata about an email forwarding service.\n *  @remarks This is used to populate the forwarder selection list\n *  and to identify forwarding services in error messages.\n */\nconst Forwarders = Object.freeze({\n    /** For https://addy.io/ */\n    AddyIo: Object.freeze({\n        id: \"anonaddy\",\n        name: \"Addy.io\",\n        validForSelfHosted: true,\n    }),\n    /** For https://duckduckgo.com/email/ */\n    DuckDuckGo: Object.freeze({\n        id: \"duckduckgo\",\n        name: \"DuckDuckGo\",\n        validForSelfHosted: false,\n    }),\n    /** For https://www.fastmail.com. */\n    Fastmail: Object.freeze({\n        id: \"fastmail\",\n        name: \"Fastmail\",\n        validForSelfHosted: true,\n    }),\n    /** For https://relay.firefox.com/ */\n    FirefoxRelay: Object.freeze({\n        id: \"firefoxrelay\",\n        name: \"Firefox Relay\",\n        validForSelfHosted: false,\n    }),\n    /** For https://forwardemail.net/ */\n    ForwardEmail: Object.freeze({\n        id: \"forwardemail\",\n        name: \"Forward Email\",\n        validForSelfHosted: true,\n    }),\n    /** For https://simplelogin.io/ */\n    SimpleLogin: Object.freeze({\n        id: \"simplelogin\",\n        name: \"SimpleLogin\",\n        validForSelfHosted: true,\n    }),\n});\n//# sourceURL=[module]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6IHRydWUsXG4gIH0gYXMgRm9yd2FyZGVyTWV0YWRhdGEpLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/forwarders.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/generator-types.ts":
/*!*******************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/generator-types.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialAlgorithms: () => (/* binding */ CredentialAlgorithms),\n/* harmony export */   EmailAlgorithms: () => (/* binding */ EmailAlgorithms),\n/* harmony export */   PasswordAlgorithms: () => (/* binding */ PasswordAlgorithms),\n/* harmony export */   UsernameAlgorithms: () => (/* binding */ UsernameAlgorithms)\n/* harmony export */ });\n/** Types of passwords that may be generated by the credential generator */\nconst PasswordAlgorithms = Object.freeze([\"password\", \"passphrase\"]);\n/** Types of usernames that may be generated by the credential generator */\nconst UsernameAlgorithms = Object.freeze([\"username\"]);\n/** Types of email addresses that may be generated by the credential generator */\nconst EmailAlgorithms = Object.freeze([\"catchall\", \"subaddress\"]);\n/** All types of credentials that may be generated by the credential generator */\nconst CredentialAlgorithms = Object.freeze([\n    ...PasswordAlgorithms,\n    ...UsernameAlgorithms,\n    ...EmailAlgorithms,\n]);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9nZW5lcmF0b3ItdHlwZXMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLDJFQUEyRTtBQUNwRSxNQUFNLGtCQUFrQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQyxVQUFVLEVBQ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RoYXQgbWF5IGJlIGdlbmVyYXRlZCBieSB0aGUgY3JlZGVudGlhbCBnZW5lcmF0b3IgKi9cbmV4cG9ydCBjb25zdCBFbWFpbEFsZ29yaXRobXMgPSBPYmplY3QuZnJlZXplKFtcImNhdGNoYWxsXCIsIFwic3ViYWRkcmVzc1wiXSBhcyBjb25zdCk7XG5cbi8qKiBBbGwgdHlwZXMgb2YgY3JlZGVudGlhbHMgdGhhdCBtYXkgYmUgZ2VuZXJhdGVkIGJ5IHRoZSBjcmVkZW50aWFsIGdlbmVyYXRvciAqL1xuZXhwb3J0IGNvbnN0IENyZWRlbnRpYWxBbGdvcml0aG1zID0gT2JqZWN0LmZyZWV6ZShbXG4gIC4uLlBhc3N3b3JkQWxnb3JpdGhtcyxcbiAgLi4uVXNlcm5hbWVBbGdvcml0aG1zLFxuICAuLi5FbWFpbEFsZ29yaXRobXMsXG5dIGFzIGNvbnN0KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/generator-types.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/generators.ts":
/*!**************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/generators.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Generators: () => (/* binding */ Generators),\n/* harmony export */   toCredentialGeneratorConfiguration: () => (/* binding */ toCredentialGeneratorConfiguration)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_identity_state_constraint__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/state/identity-state-constraint */ \"../../libs/common/src/tools/state/identity-state-constraint.ts\");\n/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../engine */ \"../../libs/tools/generator/core/src/engine/index.ts\");\n/* harmony import */ var _engine_forwarder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../engine/forwarder */ \"../../libs/tools/generator/core/src/engine/forwarder.ts\");\n/* harmony import */ var _policies__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../policies */ \"../../libs/tools/generator/core/src/policies/index.ts\");\n/* harmony import */ var _strategies_storage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../strategies/storage */ \"../../libs/tools/generator/core/src/strategies/storage.ts\");\n/* harmony import */ var _default_catchall_options__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./default-catchall-options */ \"../../libs/tools/generator/core/src/data/default-catchall-options.ts\");\n/* harmony import */ var _default_eff_username_options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./default-eff-username-options */ \"../../libs/tools/generator/core/src/data/default-eff-username-options.ts\");\n/* harmony import */ var _default_passphrase_boundaries__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./default-passphrase-boundaries */ \"../../libs/tools/generator/core/src/data/default-passphrase-boundaries.ts\");\n/* harmony import */ var _default_passphrase_generation_options__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./default-passphrase-generation-options */ \"../../libs/tools/generator/core/src/data/default-passphrase-generation-options.ts\");\n/* harmony import */ var _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./default-password-boundaries */ \"../../libs/tools/generator/core/src/data/default-password-boundaries.ts\");\n/* harmony import */ var _default_password_generation_options__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./default-password-generation-options */ \"../../libs/tools/generator/core/src/data/default-password-generation-options.ts\");\n/* harmony import */ var _default_subaddress_generator_options__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./default-subaddress-generator-options */ \"../../libs/tools/generator/core/src/data/default-subaddress-generator-options.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst PASSPHRASE = Object.freeze({\n    id: \"passphrase\",\n    category: \"password\",\n    nameKey: \"passphrase\",\n    generateKey: \"generatePassphrase\",\n    generatedValueKey: \"passphrase\",\n    copyKey: \"copyPassphrase\",\n    onlyOnRequest: false,\n    request: [],\n    engine: {\n        create(dependencies) {\n            return new _engine__WEBPACK_IMPORTED_MODULE_2__.PasswordRandomizer(dependencies.randomizer);\n        },\n    },\n    settings: {\n        initial: _default_passphrase_generation_options__WEBPACK_IMPORTED_MODULE_9__.DefaultPassphraseGenerationOptions,\n        constraints: {\n            numWords: {\n                min: _default_passphrase_boundaries__WEBPACK_IMPORTED_MODULE_8__.DefaultPassphraseBoundaries.numWords.min,\n                max: _default_passphrase_boundaries__WEBPACK_IMPORTED_MODULE_8__.DefaultPassphraseBoundaries.numWords.max,\n            },\n            wordSeparator: { maxLength: 1 },\n        },\n        account: _strategies_storage__WEBPACK_IMPORTED_MODULE_5__.PASSPHRASE_SETTINGS,\n    },\n    policy: {\n        type: _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator,\n        disabledValue: Object.freeze({\n            minNumberWords: 0,\n            capitalize: false,\n            includeNumber: false,\n        }),\n        combine: _policies__WEBPACK_IMPORTED_MODULE_4__.passphraseLeastPrivilege,\n        createEvaluator: (policy) => new _policies__WEBPACK_IMPORTED_MODULE_4__.PassphraseGeneratorOptionsEvaluator(policy),\n        toConstraints: (policy) => new _policies__WEBPACK_IMPORTED_MODULE_4__.PassphrasePolicyConstraints(policy),\n    },\n});\nconst PASSWORD = Object.freeze({\n    id: \"password\",\n    category: \"password\",\n    nameKey: \"password\",\n    generateKey: \"generatePassword\",\n    generatedValueKey: \"password\",\n    copyKey: \"copyPassword\",\n    onlyOnRequest: false,\n    request: [],\n    engine: {\n        create(dependencies) {\n            return new _engine__WEBPACK_IMPORTED_MODULE_2__.PasswordRandomizer(dependencies.randomizer);\n        },\n    },\n    settings: {\n        initial: _default_password_generation_options__WEBPACK_IMPORTED_MODULE_11__.DefaultPasswordGenerationOptions,\n        constraints: {\n            length: {\n                min: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__.DefaultPasswordBoundaries.length.min,\n                max: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__.DefaultPasswordBoundaries.length.max,\n            },\n            minNumber: {\n                min: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__.DefaultPasswordBoundaries.minDigits.min,\n                max: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__.DefaultPasswordBoundaries.minDigits.max,\n            },\n            minSpecial: {\n                min: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__.DefaultPasswordBoundaries.minSpecialCharacters.min,\n                max: _default_password_boundaries__WEBPACK_IMPORTED_MODULE_10__.DefaultPasswordBoundaries.minSpecialCharacters.max,\n            },\n        },\n        account: _strategies_storage__WEBPACK_IMPORTED_MODULE_5__.PASSWORD_SETTINGS,\n    },\n    policy: {\n        type: _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator,\n        disabledValue: Object.freeze({\n            minLength: 0,\n            useUppercase: false,\n            useLowercase: false,\n            useNumbers: false,\n            numberCount: 0,\n            useSpecial: false,\n            specialCount: 0,\n        }),\n        combine: _policies__WEBPACK_IMPORTED_MODULE_4__.passwordLeastPrivilege,\n        createEvaluator: (policy) => new _policies__WEBPACK_IMPORTED_MODULE_4__.PasswordGeneratorOptionsEvaluator(policy),\n        toConstraints: (policy) => new _policies__WEBPACK_IMPORTED_MODULE_4__.DynamicPasswordPolicyConstraints(policy),\n    },\n});\nconst USERNAME = Object.freeze({\n    id: \"username\",\n    category: \"username\",\n    nameKey: \"randomWord\",\n    generateKey: \"generateUsername\",\n    generatedValueKey: \"username\",\n    copyKey: \"copyUsername\",\n    onlyOnRequest: false,\n    request: [],\n    engine: {\n        create(dependencies) {\n            return new _engine__WEBPACK_IMPORTED_MODULE_2__.UsernameRandomizer(dependencies.randomizer);\n        },\n    },\n    settings: {\n        initial: _default_eff_username_options__WEBPACK_IMPORTED_MODULE_7__.DefaultEffUsernameOptions,\n        constraints: {},\n        account: _strategies_storage__WEBPACK_IMPORTED_MODULE_5__.EFF_USERNAME_SETTINGS,\n    },\n    policy: {\n        type: _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator,\n        disabledValue: {},\n        combine(_acc, _policy) {\n            return {};\n        },\n        createEvaluator(_policy) {\n            return new _policies__WEBPACK_IMPORTED_MODULE_4__.DefaultPolicyEvaluator();\n        },\n        toConstraints(_policy) {\n            return new _bitwarden_common_tools_state_identity_state_constraint__WEBPACK_IMPORTED_MODULE_1__.IdentityConstraint();\n        },\n    },\n});\nconst CATCHALL = Object.freeze({\n    id: \"catchall\",\n    category: \"email\",\n    nameKey: \"catchallEmail\",\n    descriptionKey: \"catchallEmailDesc\",\n    generateKey: \"generateEmail\",\n    generatedValueKey: \"email\",\n    copyKey: \"copyEmail\",\n    onlyOnRequest: false,\n    request: [],\n    engine: {\n        create(dependencies) {\n            return new _engine__WEBPACK_IMPORTED_MODULE_2__.EmailRandomizer(dependencies.randomizer);\n        },\n    },\n    settings: {\n        initial: _default_catchall_options__WEBPACK_IMPORTED_MODULE_6__.DefaultCatchallOptions,\n        constraints: { catchallDomain: { minLength: 1 } },\n        account: _strategies_storage__WEBPACK_IMPORTED_MODULE_5__.CATCHALL_SETTINGS,\n    },\n    policy: {\n        type: _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator,\n        disabledValue: {},\n        combine(_acc, _policy) {\n            return {};\n        },\n        createEvaluator(_policy) {\n            return new _policies__WEBPACK_IMPORTED_MODULE_4__.DefaultPolicyEvaluator();\n        },\n        toConstraints(_policy) {\n            return new _bitwarden_common_tools_state_identity_state_constraint__WEBPACK_IMPORTED_MODULE_1__.IdentityConstraint();\n        },\n    },\n});\nconst SUBADDRESS = Object.freeze({\n    id: \"subaddress\",\n    category: \"email\",\n    nameKey: \"plusAddressedEmail\",\n    descriptionKey: \"plusAddressedEmailDesc\",\n    generateKey: \"generateEmail\",\n    generatedValueKey: \"email\",\n    copyKey: \"copyEmail\",\n    onlyOnRequest: false,\n    request: [],\n    engine: {\n        create(dependencies) {\n            return new _engine__WEBPACK_IMPORTED_MODULE_2__.EmailRandomizer(dependencies.randomizer);\n        },\n    },\n    settings: {\n        initial: _default_subaddress_generator_options__WEBPACK_IMPORTED_MODULE_12__.DefaultSubaddressOptions,\n        constraints: {},\n        account: _strategies_storage__WEBPACK_IMPORTED_MODULE_5__.SUBADDRESS_SETTINGS,\n    },\n    policy: {\n        type: _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator,\n        disabledValue: {},\n        combine(_acc, _policy) {\n            return {};\n        },\n        createEvaluator(_policy) {\n            return new _policies__WEBPACK_IMPORTED_MODULE_4__.DefaultPolicyEvaluator();\n        },\n        toConstraints(_policy) {\n            return new _bitwarden_common_tools_state_identity_state_constraint__WEBPACK_IMPORTED_MODULE_1__.IdentityConstraint();\n        },\n    },\n});\nfunction toCredentialGeneratorConfiguration(configuration) {\n    const forwarder = Object.freeze({\n        id: { forwarder: configuration.id },\n        category: \"email\",\n        nameKey: configuration.name,\n        descriptionKey: \"forwardedEmailDesc\",\n        generateKey: \"generateEmail\",\n        generatedValueKey: \"email\",\n        copyKey: \"copyEmail\",\n        onlyOnRequest: true,\n        request: configuration.forwarder.request,\n        engine: {\n            create(dependencies) {\n                // FIXME: figure out why `configuration` fails to typecheck\n                const config = configuration;\n                return new _engine_forwarder__WEBPACK_IMPORTED_MODULE_3__.Forwarder(config, dependencies.client, dependencies.i18nService);\n            },\n        },\n        settings: {\n            initial: configuration.forwarder.defaultSettings,\n            constraints: configuration.forwarder.settingsConstraints,\n            account: configuration.forwarder.settings,\n        },\n        policy: {\n            type: _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator,\n            disabledValue: {},\n            combine(_acc, _policy) {\n                return {};\n            },\n            createEvaluator(_policy) {\n                return new _policies__WEBPACK_IMPORTED_MODULE_4__.DefaultPolicyEvaluator();\n            },\n            toConstraints(_policy) {\n                return new _bitwarden_common_tools_state_identity_state_constraint__WEBPACK_IMPORTED_MODULE_1__.IdentityConstraint();\n            },\n        },\n    });\n    return forwarder;\n}\n/** Generator configurations */\nconst Generators = Object.freeze({\n    /** Passphrase generator configuration */\n    passphrase: PASSPHRASE,\n    /** Password generator configuration */\n    password: PASSWORD,\n    /** Username generator configuration */\n    username: USERNAME,\n    /** Catchall email generator configuration */\n    catchall: CATCHALL,\n    /** Email subaddress generator configuration */\n    subaddress: SUBADDRESS,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 20988 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/generators.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/index.ts":
/*!*********************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/index.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialAlgorithms: () => (/* reexport safe */ _generator_types__WEBPACK_IMPORTED_MODULE_19__.CredentialAlgorithms),\n/* harmony export */   DefaultAddyIoOptions: () => (/* reexport safe */ _default_addy_io_options__WEBPACK_IMPORTED_MODULE_1__.DefaultAddyIoOptions),\n/* harmony export */   DefaultCatchallOptions: () => (/* reexport safe */ _default_catchall_options__WEBPACK_IMPORTED_MODULE_2__.DefaultCatchallOptions),\n/* harmony export */   DefaultCredentialPreferences: () => (/* reexport safe */ _default_credential_preferences__WEBPACK_IMPORTED_MODULE_12__.DefaultCredentialPreferences),\n/* harmony export */   DefaultDuckDuckGoOptions: () => (/* reexport safe */ _default_duck_duck_go_options__WEBPACK_IMPORTED_MODULE_3__.DefaultDuckDuckGoOptions),\n/* harmony export */   DefaultEffUsernameOptions: () => (/* reexport safe */ _default_eff_username_options__WEBPACK_IMPORTED_MODULE_8__.DefaultEffUsernameOptions),\n/* harmony export */   DefaultFastmailOptions: () => (/* reexport safe */ _default_fastmail_options__WEBPACK_IMPORTED_MODULE_4__.DefaultFastmailOptions),\n/* harmony export */   DefaultFirefoxRelayOptions: () => (/* reexport safe */ _default_firefox_relay_options__WEBPACK_IMPORTED_MODULE_9__.DefaultFirefoxRelayOptions),\n/* harmony export */   DefaultForwardEmailOptions: () => (/* reexport safe */ _default_forward_email_options__WEBPACK_IMPORTED_MODULE_5__.DefaultForwardEmailOptions),\n/* harmony export */   DefaultPassphraseBoundaries: () => (/* reexport safe */ _default_passphrase_boundaries__WEBPACK_IMPORTED_MODULE_6__.DefaultPassphraseBoundaries),\n/* harmony export */   DefaultPassphraseGenerationOptions: () => (/* reexport safe */ _default_passphrase_generation_options__WEBPACK_IMPORTED_MODULE_10__.DefaultPassphraseGenerationOptions),\n/* harmony export */   DefaultPasswordBoundaries: () => (/* reexport safe */ _default_password_boundaries__WEBPACK_IMPORTED_MODULE_7__.DefaultPasswordBoundaries),\n/* harmony export */   DefaultPasswordGenerationOptions: () => (/* reexport safe */ _default_password_generation_options__WEBPACK_IMPORTED_MODULE_11__.DefaultPasswordGenerationOptions),\n/* harmony export */   DefaultSimpleLoginOptions: () => (/* reexport safe */ _default_simple_login_options__WEBPACK_IMPORTED_MODULE_14__.DefaultSimpleLoginOptions),\n/* harmony export */   DefaultSubaddressOptions: () => (/* reexport safe */ _default_subaddress_generator_options__WEBPACK_IMPORTED_MODULE_13__.DefaultSubaddressOptions),\n/* harmony export */   EmailAlgorithms: () => (/* reexport safe */ _generator_types__WEBPACK_IMPORTED_MODULE_19__.EmailAlgorithms),\n/* harmony export */   Forwarders: () => (/* reexport safe */ _forwarders__WEBPACK_IMPORTED_MODULE_15__.Forwarders),\n/* harmony export */   Generators: () => (/* reexport safe */ _generators__WEBPACK_IMPORTED_MODULE_0__.Generators),\n/* harmony export */   Integrations: () => (/* reexport safe */ _integrations__WEBPACK_IMPORTED_MODULE_16__.Integrations),\n/* harmony export */   PasswordAlgorithms: () => (/* reexport safe */ _generator_types__WEBPACK_IMPORTED_MODULE_19__.PasswordAlgorithms),\n/* harmony export */   Policies: () => (/* reexport safe */ _policies__WEBPACK_IMPORTED_MODULE_17__.Policies),\n/* harmony export */   UsernameAlgorithms: () => (/* reexport safe */ _generator_types__WEBPACK_IMPORTED_MODULE_19__.UsernameAlgorithms),\n/* harmony export */   UsernameDigits: () => (/* reexport safe */ _username_digits__WEBPACK_IMPORTED_MODULE_18__.UsernameDigits),\n/* harmony export */   getForwarderConfiguration: () => (/* reexport safe */ _integrations__WEBPACK_IMPORTED_MODULE_16__.getForwarderConfiguration),\n/* harmony export */   toCredentialGeneratorConfiguration: () => (/* reexport safe */ _generators__WEBPACK_IMPORTED_MODULE_0__.toCredentialGeneratorConfiguration)\n/* harmony export */ });\n/* harmony import */ var _generators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./generators */ \"../../libs/tools/generator/core/src/data/generators.ts\");\n/* harmony import */ var _default_addy_io_options__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-addy-io-options */ \"../../libs/tools/generator/core/src/data/default-addy-io-options.ts\");\n/* harmony import */ var _default_catchall_options__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default-catchall-options */ \"../../libs/tools/generator/core/src/data/default-catchall-options.ts\");\n/* harmony import */ var _default_duck_duck_go_options__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./default-duck-duck-go-options */ \"../../libs/tools/generator/core/src/data/default-duck-duck-go-options.ts\");\n/* harmony import */ var _default_fastmail_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./default-fastmail-options */ \"../../libs/tools/generator/core/src/data/default-fastmail-options.ts\");\n/* harmony import */ var _default_forward_email_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./default-forward-email-options */ \"../../libs/tools/generator/core/src/data/default-forward-email-options.ts\");\n/* harmony import */ var _default_passphrase_boundaries__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./default-passphrase-boundaries */ \"../../libs/tools/generator/core/src/data/default-passphrase-boundaries.ts\");\n/* harmony import */ var _default_password_boundaries__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./default-password-boundaries */ \"../../libs/tools/generator/core/src/data/default-password-boundaries.ts\");\n/* harmony import */ var _default_eff_username_options__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./default-eff-username-options */ \"../../libs/tools/generator/core/src/data/default-eff-username-options.ts\");\n/* harmony import */ var _default_firefox_relay_options__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./default-firefox-relay-options */ \"../../libs/tools/generator/core/src/data/default-firefox-relay-options.ts\");\n/* harmony import */ var _default_passphrase_generation_options__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./default-passphrase-generation-options */ \"../../libs/tools/generator/core/src/data/default-passphrase-generation-options.ts\");\n/* harmony import */ var _default_password_generation_options__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./default-password-generation-options */ \"../../libs/tools/generator/core/src/data/default-password-generation-options.ts\");\n/* harmony import */ var _default_credential_preferences__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./default-credential-preferences */ \"../../libs/tools/generator/core/src/data/default-credential-preferences.ts\");\n/* harmony import */ var _default_subaddress_generator_options__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./default-subaddress-generator-options */ \"../../libs/tools/generator/core/src/data/default-subaddress-generator-options.ts\");\n/* harmony import */ var _default_simple_login_options__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./default-simple-login-options */ \"../../libs/tools/generator/core/src/data/default-simple-login-options.ts\");\n/* harmony import */ var _forwarders__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./forwarders */ \"../../libs/tools/generator/core/src/data/forwarders.ts\");\n/* harmony import */ var _integrations__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./integrations */ \"../../libs/tools/generator/core/src/data/integrations.ts\");\n/* harmony import */ var _policies__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./policies */ \"../../libs/tools/generator/core/src/data/policies.ts\");\n/* harmony import */ var _username_digits__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./username-digits */ \"../../libs/tools/generator/core/src/data/username-digits.ts\");\n/* harmony import */ var _generator_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./generator-types */ \"../../libs/tools/generator/core/src/data/generator-types.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBNkI7QUFDYTtBQUNDO0FBQ0k7QUFDSjtBQUNLO0FBQ0E7QUFDRjtBQUNDO0FBQ0M7QUFDUTtBQUNGO0FBQ0w7QUFDTTtBQUNSO0FBQ2xCO0FBQ0U7QUFDSjtBQUNPO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9kYXRhL2luZGV4LnRzPzU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ZXhwb3J0ICogZnJvbSBcIi4vZm9yd2FyZGVyc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vaW50ZWdyYXRpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9wb2xpY2llc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vdXNlcm5hbWUtZGlnaXRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9nZW5lcmF0b3ItdHlwZXNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/integrations.ts":
/*!****************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/integrations.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Integrations: () => (/* binding */ Integrations),\n/* harmony export */   getForwarderConfiguration: () => (/* binding */ getForwarderConfiguration)\n/* harmony export */ });\n/* harmony import */ var _integration_addy_io__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../integration/addy-io */ \"../../libs/tools/generator/core/src/integration/addy-io.ts\");\n/* harmony import */ var _integration_duck_duck_go__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../integration/duck-duck-go */ \"../../libs/tools/generator/core/src/integration/duck-duck-go.ts\");\n/* harmony import */ var _integration_fastmail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../integration/fastmail */ \"../../libs/tools/generator/core/src/integration/fastmail.ts\");\n/* harmony import */ var _integration_firefox_relay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../integration/firefox-relay */ \"../../libs/tools/generator/core/src/integration/firefox-relay.ts\");\n/* harmony import */ var _integration_forward_email__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../integration/forward-email */ \"../../libs/tools/generator/core/src/integration/forward-email.ts\");\n/* harmony import */ var _integration_simple_login__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../integration/simple-login */ \"../../libs/tools/generator/core/src/integration/simple-login.ts\");\n\n\n\n\n\n\n/** Fixed list of integrations available to the application\n *  @example\n *\n *  // Use `toCredentialGeneratorConfiguration(id :ForwarderIntegration)`\n *  // to convert an integration to a generator configuration\n *  const generator = toCredentialGeneratorConfiguration(Integrations.AddyIo);\n */\nconst Integrations = Object.freeze({\n    AddyIo: _integration_addy_io__WEBPACK_IMPORTED_MODULE_0__.AddyIo,\n    DuckDuckGo: _integration_duck_duck_go__WEBPACK_IMPORTED_MODULE_1__.DuckDuckGo,\n    Fastmail: _integration_fastmail__WEBPACK_IMPORTED_MODULE_2__.Fastmail,\n    FirefoxRelay: _integration_firefox_relay__WEBPACK_IMPORTED_MODULE_3__.FirefoxRelay,\n    ForwardEmail: _integration_forward_email__WEBPACK_IMPORTED_MODULE_4__.ForwardEmail,\n    SimpleLogin: _integration_simple_login__WEBPACK_IMPORTED_MODULE_5__.SimpleLogin,\n});\nconst integrations = new Map(Object.values(Integrations).map((i) => [i.id, i]));\nfunction getForwarderConfiguration(id) {\n    const maybeForwarder = integrations.get(id);\n    if (maybeForwarder && \"forwarder\" in maybeForwarder) {\n        return maybeForwarder;\n    }\n    else {\n        return null;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS9pbnRlZ3JhdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFJZ0Q7QUFDUztBQUNOO0FBQ1M7QUFDQTtBQUNGO0FBRTFEOzs7Ozs7R0FNRztBQUNJLE1BQU0sWUFBWSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDeEMsTUFB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gbmV3IE1hcChPYmplY3QudmFsdWVzKEludGVncmF0aW9ucykubWFwKChpKSA9PiBbaS5pZCwgaV0pKTtcblxuZXhwb3J0IGZ1bmN0aW9uIGdldEZvcndhcmRlckNvbmZpZ3VyYXRpb24oaWQ6IEludGVncmF0aW9uSWQpOiBGb3J3YXJkZXJDb25maWd1cmF0aW9uPEFwaVNldHRpbmdzPiB7XG4gIGNvbnN0IG1heWJlRm9yd2FyZGVyID0gaW50ZWdyYXRpb25zLmdldChpZCk7XG5cbiAgaWYgKG1heWJlRm9yd2FyZGVyICYmIFwiZm9yd2FyZGVyXCIgaW4gbWF5YmVGb3J3YXJkZXIpIHtcbiAgICByZXR1cm4gbWF5YmVGb3J3YXJkZXIgYXMgRm9yd2FyZGVyQ29uZmlndXJhdGlvbjxBcGlTZXR0aW5ncz47XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/integrations.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/policies.ts":
/*!************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/policies.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Policies: () => (/* binding */ Policies)\n/* harmony export */ });\n/* harmony import */ var _generators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./generators */ \"../../libs/tools/generator/core/src/data/generators.ts\");\n\n/** Policy configurations\n *  @deprecated use Generator.*.policy instead\n */\nconst Policies = Object.freeze({\n    Passphrase: _generators__WEBPACK_IMPORTED_MODULE_0__.Generators.passphrase.policy,\n    Password: _generators__WEBPACK_IMPORTED_MODULE_0__.Generators.password.policy,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data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ZC5wb2xpY3ksXG59IHNhdGlzZmllcyB7XG4gIC8qKiBQYXNzcGhyYXNlIHBvbGljeSBjb25maWd1cmF0aW9uICovXG4gIFBhc3NwaHJhc2U6IFBvbGljeUNvbmZpZ3VyYXRpb248UGFzc3BocmFzZUdlbmVyYXRvclBvbGljeSwgUGFzc3BocmFzZUdlbmVyYXRpb25PcHRpb25zPjtcblxuICAvKiogUGFzc3dvcmQgcG9saWN5IGNvbmZpZ3VyYXRpb24gKi9cbiAgUGFzc3dvcmQ6IFBvbGljeUNvbmZpZ3VyYXRpb248UGFzc3dvcmRHZW5lcmF0b3JQb2xpY3ksIFBhc3N3b3JkR2VuZXJhdGlvbk9wdGlvbnM+O1xufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/policies.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/data/username-digits.ts":
/*!*******************************************************************!*\
  !*** ../../libs/tools/generator/core/src/data/username-digits.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UsernameDigits: () => (/* binding */ UsernameDigits)\n/* harmony export */ });\nconst UsernameDigits = Object.freeze({\n    enabled: 4,\n    disabled: 0,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZGF0YS91c2VybmFtZS1kaWdpdHMudHMiLCJtYXBwaW5ncyI6Ijs7OztBQUFPLE1BQU0sY0FBYyxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUM7SUFDMUMsT0FBTyxFQUFFLENBQUM7SUFDVixRQUFRLEVBQUUsQ0FBQztDQUNaLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2RhdGEvdXNlcm5hbWUtZGlnaXRzLnRzPzQwOGQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IFVzZXJuYW1lRGlnaXRzID0gT2JqZWN0LmZyZWV6ZSh7XG4gIGVuYWJsZWQ6IDQsXG4gIGRpc2FibGVkOiAwLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/data/username-digits.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/data.ts":
/*!**********************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/data.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Ascii: () => (/* binding */ Ascii),\n/* harmony export */   SUBADDRESS_PARSER: () => (/* binding */ SUBADDRESS_PARSER)\n/* harmony export */ });\nfunction toCharacterSet(characters) {\n    const set = characters.split(\"\");\n    return Object.freeze(set);\n}\nconst SpecialCharacters = toCharacterSet(\"!@#$%^&*\");\n/** Sets of Ascii characters used for password generation */\nconst Ascii = Object.freeze({\n    /** The full set of characters available to the generator */\n    Full: Object.freeze({\n        Uppercase: toCharacterSet(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"),\n        Lowercase: toCharacterSet(\"abcdefghijkmnopqrstuvwxyz\"),\n        Digit: toCharacterSet(\"0123456789\"),\n        Special: SpecialCharacters,\n    }),\n    /** All characters available to the generator that are not ambiguous. */\n    Unmistakable: Object.freeze({\n        Uppercase: toCharacterSet(\"ABCDEFGHJKLMNPQRSTUVWXYZ\"),\n        Lowercase: toCharacterSet(\"abcdefghijklmnopqrstuvwxyz\"),\n        Digit: toCharacterSet(\"23456789\"),\n        Special: SpecialCharacters,\n    }),\n});\n/** Splits an email into a username, subaddress, and domain named group.\n * Subaddress is optional.\n */\nconst SUBADDRESS_PARSER = new RegExp(\"(?<username>[^@+]+)(?<subaddress>\\\\+.+)?(?<domain>@.+)\");\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZW5naW5lL2RhdGEudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFFQSxTQUFTLGNBQWMsQ0FBQyxVQUFrQjtJQUN4QyxNQUFNLEdBQUcsR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBRWpDLE9BQU8sTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFtQixDQUFDLENBQUM7QUFDNUMsQ0FBQztBQUVELE1BQU0saUJBQWlCLEdBQUcsY0FBYyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0FBRXJELDREQUE0RDtBQUNyRCxNQUFNLEtBQUssR0FBRyxNQUFNLENBQUMsTUFBTSxDQUFDO0lBQ2pDLDREQUE0RDtJQUM1RCxJQUFJLEVBQUUsTUFBTSxDQUFDLE1BQU0sQ0FBQztRQUNsQixTQUFTLEVBQUUsY0FBYyxDQUFDLDRCQUE0QixDQUFDO1FBQ3ZELFNBQVMsRUFBRSxjQUFjLENBQUMsMkJBQTJCLENBQUM7UUFDdEQsS0FBSyxFQUFFLGNBQWMsQ0FBQyxZQUFZLENBQUM7UUFDbkMsT0FBTyxFQUFFLGlCQUFpQjtLQUNWLENBQUM7SUFFbkIsd0VBQXdFO0lBQ3hFLFlBQVksRUFBRSxNQUFNLENBQUMsTUFBTSxDQUFDO1FBQzFCLFNBQVMsRUFBRSxjQUFjLENBQUMsMEJBQTBCLENBQUM7UUFDckQsU0FBUyxFQUFFLGNBQWMsQ0FBQyw0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/tools/generator/core/src/engine/email-calculator.ts":
/*!**********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/email-calculator.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EmailCalculator: () => (/* binding */ EmailCalculator)\n/* harmony export */ });\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data */ \"../../libs/tools/generator/core/src/engine/data.ts\");\n\n/** Generation algorithms that produce deterministic email addresses */\nclass EmailCalculator {\n    /**\n     * Appends appendText to the subaddress of an email address.\n     * @param appendText  The calculation fails if this is shorter than 1 character\n     *   long, undefined, or null.\n     * @param email the email address to alter.\n     * @returns `email` with `appendText` added to its subaddress (the part\n     *   following the \"+\"). If there is no subaddress, a subaddress is created.\n     *   If the email address fails to parse, it is returned unaltered.\n     */\n    appendToSubaddress(appendText, email) {\n        var _a;\n        let result = (email !== null && email !== void 0 ? email : \"\").trim();\n        const suffix = (appendText !== null && appendText !== void 0 ? appendText : \"\").trim();\n        if (suffix.length < 1) {\n            return result;\n        }\n        const parsed = _data__WEBPACK_IMPORTED_MODULE_0__.SUBADDRESS_PARSER.exec(result);\n        if (!parsed) {\n            return result;\n        }\n        const subaddress = ((_a = parsed.groups.subaddress) !== null && _a !== void 0 ? _a : \"+\") + suffix;\n        result = `${parsed.groups.username}${subaddress}${parsed.groups.domain}`;\n        return result;\n    }\n    /**\n     * Derives an email address from a username and domain name.\n     * @param username the username part of the email address. The calculation fails if this is\n     *   shorter than 1 character long, undefined, or null.\n     * @param domain the domain part of the email address. The calculation fails if this is empty,\n     *   undefined, or null.\n     * @returns an email address or `null` if the calculation fails.\n     */\n    concatenate(username, domain) {\n        const emailDomain = (domain === null || domain === void 0 ? void 0 : domain.startsWith(\"@\")) ? domain.substring(1, Infinity) : (domain !== null && domain !== void 0 ? domain : \"\");\n        if (emailDomain.length < 1) {\n            return null;\n        }\n        const emailWebsite = username !== null && username !== void 0 ? username : \"\";\n        if (emailWebsite.length < 1) {\n            return null;\n        }\n        const result = `${emailWebsite}@${emailDomain}`;\n        return result;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4560 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/email-calculator.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/email-randomizer.ts":
/*!**********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/email-randomizer.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EmailRandomizer: () => (/* binding */ EmailRandomizer)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/wordlist */ \"../../libs/common/src/platform/misc/wordlist.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types */ \"../../libs/tools/generator/core/src/types/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data */ \"../../libs/tools/generator/core/src/engine/data.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n/** Generation algorithms that produce randomized email addresses */\nclass EmailRandomizer {\n    /** Instantiates the email randomizer\n     *  @param random data source for random data\n     */\n    constructor(random) {\n        this.random = random;\n    }\n    /** Appends a random set of characters as a subaddress\n     *  @param email the email address used to generate a subaddress. If this address\n     *    already contains a subaddress, the subaddress is extended.\n     *  @param options.length the number of characters to append to the subaddress. Defaults to 8. If\n     *    the length is <= 0, the function returns the input address.\n     *  @returns a promise that resolves with the generated email address. If the provided address\n     *    lacks a username (the part before the \"@\") or domain (the part after the \"@\"), the function\n     *    returns the input address.\n     */\n    randomAsciiSubaddress(email, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            let result = email !== null && email !== void 0 ? email : \"\";\n            const subaddressLength = (_a = options === null || options === void 0 ? void 0 : options.length) !== null && _a !== void 0 ? _a : 8;\n            if (subaddressLength < 1) {\n                return result;\n            }\n            const parsed = _data__WEBPACK_IMPORTED_MODULE_2__.SUBADDRESS_PARSER.exec(result);\n            if (!parsed) {\n                return result;\n            }\n            let subaddress = (_b = parsed.groups.subaddress) !== null && _b !== void 0 ? _b : \"+\";\n            subaddress += yield this.random.chars(subaddressLength);\n            result = `${parsed.groups.username}${subaddress}${parsed.groups.domain}`;\n            return result;\n        });\n    }\n    /** Creates a catchall address composed of random characters\n     *  @param domain the domain part of the generated email address.\n     *  @param options.length the number of characters to include in the catchall\n     *    address. Defaults to 8.\n     *  @returns a promise that resolves with the generated email address. If the domain\n     *    is empty, resolves to null instead.\n     */\n    randomAsciiCatchall(domain, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const emailDomain = (domain === null || domain === void 0 ? void 0 : domain.startsWith(\"@\")) ? domain.substring(1, Infinity) : (domain !== null && domain !== void 0 ? domain : \"\");\n            if (emailDomain.length < 1) {\n                return null;\n            }\n            const length = (_a = options === null || options === void 0 ? void 0 : options.length) !== null && _a !== void 0 ? _a : 8;\n            if (length < 1) {\n                return null;\n            }\n            const catchall = yield this.random.chars(length);\n            const result = `${catchall}@${domain}`;\n            return result;\n        });\n    }\n    /** Creates a catchall address composed of random words\n     *  @param domain the domain part of the generated email address.\n     *  @param options.numberOfWords the number of words to include in the catchall\n     *    address. Defaults to 1.\n     *  @param options.words selects words from the provided wordlist. Defaults to\n     *    the EFF \"5-dice\" list.\n     *  @returns a promise that resolves with the generated email address.\n     */\n    randomWordsCatchall(domain, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            const emailDomain = (domain === null || domain === void 0 ? void 0 : domain.startsWith(\"@\")) ? domain.substring(1, Infinity) : (domain !== null && domain !== void 0 ? domain : \"\");\n            if (emailDomain.length < 1) {\n                return null;\n            }\n            const numberOfWords = (_a = options === null || options === void 0 ? void 0 : options.numberOfWords) !== null && _a !== void 0 ? _a : 1;\n            if (numberOfWords < 1) {\n                return null;\n            }\n            const wordList = (_b = options === null || options === void 0 ? void 0 : options.words) !== null && _b !== void 0 ? _b : _bitwarden_common_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_0__.EFFLongWordList;\n            const words = [];\n            for (let i = 0; i < numberOfWords; i++) {\n                // camelCase the words for legibility\n                words[i] = yield this.random.pickWord(wordList, { titleCase: i !== 0 });\n            }\n            const result = `${words.join(\"\")}@${domain}`;\n            return result;\n        });\n    }\n    generate(_request, settings) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (isCatchallGenerationOptions(settings)) {\n                const email = yield this.randomAsciiCatchall(settings.catchallDomain);\n                return new _types__WEBPACK_IMPORTED_MODULE_1__.GeneratedCredential(email, \"catchall\", Date.now());\n            }\n            else if (isSubaddressGenerationOptions(settings)) {\n                const email = yield this.randomAsciiSubaddress(settings.subaddressEmail);\n                return new _types__WEBPACK_IMPORTED_MODULE_1__.GeneratedCredential(email, \"subaddress\", Date.now());\n            }\n            throw new Error(\"Invalid settings received by generator.\");\n        });\n    }\n}\nfunction isCatchallGenerationOptions(settings) {\n    return \"catchallDomain\" in (settings !== null && settings !== void 0 ? settings : {});\n}\nfunction isSubaddressGenerationOptions(settings) {\n    return \"subaddressEmail\" in (settings !== null && settings !== void 0 ? settings : {});\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11276 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/email-randomizer.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/forwarder-context.ts":
/*!***********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/forwarder-context.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ForwarderContext: () => (/* binding */ ForwarderContext)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_tools_integration_integration_context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/tools/integration/integration-context */ \"../../libs/common/src/tools/integration/integration-context.ts\");\n\n/**\n * Surfaces contextual information to forwarder integrations.\n */\nclass ForwarderContext extends _bitwarden_common_tools_integration_integration_context__WEBPACK_IMPORTED_MODULE_0__.IntegrationContext {\n    /** Instantiates the context.\n     * @param configuration of the forwarder this context assists\n     * @param settings loaded from the forwarder's state\n     * @param i18n localizes error handling\n     */\n    constructor(configuration, settings, i18n) {\n        super(configuration, settings, i18n);\n        this.configuration = configuration;\n    }\n    /** look up the domain part of an email address from the forwarder's settings.\n     *  @returns a domain part of an email address\n     *  @throws a localized error message when the domain isn't found.\n     *  @remarks the string is thrown for backwards compatibility\n     */\n    emailDomain() {\n        var _a;\n        const domain = \"domain\" in this.settings ? ((_a = this.settings.domain) !== null && _a !== void 0 ? _a : \"\") : \"\";\n        if (domain === \"\") {\n            const error = this.i18n.t(\"forwarderNoDomain\", this.configuration.name);\n            throw error;\n        }\n        return domain;\n    }\n    /** look up a prefix applied to the email address from the forwarder's settings.\n     *  @returns the prefix\n     *  @throws a localized error message when the prefix isn't found.\n     *  @remarks the string is thrown for backwards compatibility\n     */\n    emailPrefix() {\n        var _a;\n        const prefix = \"prefix\" in this.settings ? ((_a = this.settings.prefix) !== null && _a !== void 0 ? _a : \"\") : \"\";\n        if (prefix === \"\") {\n            const error = this.i18n.t(\"forwarderNoPrefix\", this.configuration.name);\n            throw error;\n        }\n        return prefix;\n    }\n    /** look up a localized error message indicating an account id is required\n     *  but wasn't found.\n     *  @remarks this returns a string instead of throwing it so that the\n     *    user can decide upon control flow.\n     */\n    missingAccountIdCause() {\n        return this.i18n.t(\"forwarderNoAccountId\", this.configuration.name);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5056 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/forwarder-context.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/forwarder.ts":
/*!***************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/forwarder.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Forwarder: () => (/* binding */ Forwarder)\n/* harmony export */ });\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../types */ \"../../libs/tools/generator/core/src/types/index.ts\");\n/* harmony import */ var _forwarder_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./forwarder-context */ \"../../libs/tools/generator/core/src/engine/forwarder-context.ts\");\n/* harmony import */ var _rpc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rpc */ \"../../libs/tools/generator/core/src/engine/rpc/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n/** Generation algorithms that query an email forwarding service to\n *  create anonymized email addresses.\n */\nclass Forwarder {\n    /** Instantiates the email forwarder engine\n     *  @param configuration The forwarder to query\n     *  @param client requests data from the forwarding service\n     *  @param i18nService localizes messages sent to the forwarding service\n     *   and user-addressable errors\n     */\n    constructor(configuration, client, i18nService) {\n        this.configuration = configuration;\n        this.client = client;\n        this.i18nService = i18nService;\n    }\n    generate(request, settings) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const requestOptions = { website: request.website };\n            const getAccount = yield this.getAccountId(this.configuration, settings);\n            if (getAccount) {\n                requestOptions.accountId = yield this.client.fetchJson(getAccount, requestOptions);\n            }\n            const create = this.createForwardingAddress(this.configuration, settings);\n            const result = yield this.client.fetchJson(create, requestOptions);\n            const id = { forwarder: this.configuration.id };\n            return new _types__WEBPACK_IMPORTED_MODULE_0__.GeneratedCredential(result, id, Date.now());\n        });\n    }\n    createContext(configuration, settings) {\n        return new _forwarder_context__WEBPACK_IMPORTED_MODULE_1__.ForwarderContext(configuration, settings, this.i18nService);\n    }\n    createForwardingAddress(configuration, settings) {\n        const context = this.createContext(configuration, settings);\n        const rpc = new _rpc__WEBPACK_IMPORTED_MODULE_2__.CreateForwardingAddressRpc(configuration, context);\n        return rpc;\n    }\n    getAccountId(configuration, settings) {\n        if (!configuration.forwarder.getAccountId) {\n            return null;\n        }\n        const context = this.createContext(configuration, settings);\n        const rpc = new _rpc__WEBPACK_IMPORTED_MODULE_2__.GetAccountIdRpc(configuration, context);\n        return rpc;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5896 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/forwarder.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/index.ts":
/*!***********************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/index.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EmailCalculator: () => (/* reexport safe */ _email_calculator__WEBPACK_IMPORTED_MODULE_4__.EmailCalculator),\n/* harmony export */   EmailRandomizer: () => (/* reexport safe */ _email_randomizer__WEBPACK_IMPORTED_MODULE_3__.EmailRandomizer),\n/* harmony export */   ForwarderContext: () => (/* reexport safe */ _forwarder_context__WEBPACK_IMPORTED_MODULE_1__.ForwarderContext),\n/* harmony export */   KeyServiceRandomizer: () => (/* reexport safe */ _key_service_randomizer__WEBPACK_IMPORTED_MODULE_0__.KeyServiceRandomizer),\n/* harmony export */   PasswordRandomizer: () => (/* reexport safe */ _password_randomizer__WEBPACK_IMPORTED_MODULE_5__.PasswordRandomizer),\n/* harmony export */   UsernameRandomizer: () => (/* reexport safe */ _username_randomizer__WEBPACK_IMPORTED_MODULE_6__.UsernameRandomizer)\n/* harmony export */ });\n/* harmony import */ var _key_service_randomizer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./key-service-randomizer */ \"../../libs/tools/generator/core/src/engine/key-service-randomizer.ts\");\n/* harmony import */ var _forwarder_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./forwarder-context */ \"../../libs/tools/generator/core/src/engine/forwarder-context.ts\");\n/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./settings */ \"../../libs/tools/generator/core/src/engine/settings.ts\");\n/* harmony import */ var _email_randomizer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./email-randomizer */ \"../../libs/tools/generator/core/src/engine/email-randomizer.ts\");\n/* harmony import */ var _email_calculator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./email-calculator */ \"../../libs/tools/generator/core/src/engine/email-calculator.ts\");\n/* harmony import */ var _password_randomizer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./password-randomizer */ \"../../libs/tools/generator/core/src/engine/password-randomizer.ts\");\n/* harmony import */ var _username_randomizer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./username-randomizer */ \"../../libs/tools/generator/core/src/engine/username-randomizer.ts\");\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZW5naW5lL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBZ0U7QUFFVDtBQUM1QjtBQUMwQjtBQUNBO0FBQ007QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2VuZ2luZS9pbmRleC50cz9iYTc3Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEtleVNlcnZpY2VSYW5kb21pemVyIH0gZnJvbSBcIi4va2V5LXNlcnZpY2UtcmFuZG9taXplclwiO1xuZXhwb3J0IHsgRm9yd2FyZGVyQ29uZmlndXJhdGlvbiwgQWNjb3VudFJlcXVlc3QgfSBmcm9tIFwiLi9mb3J3YXJkZXItY29uZmlndXJhdGlvblwiO1xuZXhwb3J0IHsgRm9yd2FyZGVyQ29udGV4dCB9IGZyb20gXCIuL2ZvcndhcmRlci1jb250ZXh0XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zZXR0aW5nc1wiO1xuZXhwb3J0IHsgRW1haWxSYW5kb21pemVyIH0gZnJvbSBcIi4vZW1haWwtcmFuZG9taXplclwiO1xuZXhwb3J0IHsgRW1haWxDYWxjdWxhdG9yIH0gZnJvbSBcIi4vZW1haWwtY2FsY3VsYXRvclwiO1xuZXhwb3J0IHsgUGFzc3dvcmRSYW5kb21pemVyIH0gZnJvbSBcIi4vcGFzc3dvcmQtcmFuZG9taXplclwiO1xuZXhwb3J0IHsgVXNlcm5hbWVSYW5kb21pemVyIH0gZnJvbSBcIi4vdXNlcm5hbWUtcmFuZG9taXplclwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/key-service-randomizer.ts":
/*!****************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/key-service-randomizer.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   KeyServiceRandomizer: () => (/* binding */ KeyServiceRandomizer)\n/* harmony export */ });\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n/** A randomizer backed by a KeyService. */\nclass KeyServiceRandomizer {\n    /** instantiates the type.\n     * @param keyService generates random numbers\n     */\n    constructor(keyService) {\n        this.keyService = keyService;\n    }\n    pick(list) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const length = (_a = list === null || list === void 0 ? void 0 : list.length) !== null && _a !== void 0 ? _a : 0;\n            if (length <= 0) {\n                throw new Error(\"list must have at least one entry.\");\n            }\n            const index = yield this.uniform(0, list.length - 1);\n            return list[index];\n        });\n    }\n    pickWord(list, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            let word = yield this.pick(list);\n            if ((_a = options === null || options === void 0 ? void 0 : options.titleCase) !== null && _a !== void 0 ? _a : false) {\n                word = word.charAt(0).toUpperCase() + word.slice(1);\n            }\n            if ((_b = options === null || options === void 0 ? void 0 : options.number) !== null && _b !== void 0 ? _b : false) {\n                const num = yield this.keyService.randomNumber(1, 9);\n                word = word + num.toString();\n            }\n            return word;\n        });\n    }\n    // ref: https://stackoverflow.com/a/12646864/1090359\n    shuffle(items, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            const length = (_a = items === null || items === void 0 ? void 0 : items.length) !== null && _a !== void 0 ? _a : 0;\n            if (length <= 0) {\n                throw new Error(\"items must have at least one entry.\");\n            }\n            const shuffled = ((_b = options === null || options === void 0 ? void 0 : options.copy) !== null && _b !== void 0 ? _b : true) ? [...items] : items;\n            for (let i = shuffled.length - 1; i > 0; i--) {\n                const j = yield this.uniform(0, i);\n                [shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]];\n            }\n            return shuffled;\n        });\n    }\n    chars(length) {\n        return __awaiter(this, void 0, void 0, function* () {\n            let str = \"\";\n            const charSet = \"abcdefghijklmnopqrstuvwxyz1234567890\";\n            for (let i = 0; i < length; i++) {\n                const randomCharIndex = yield this.uniform(0, charSet.length - 1);\n                str += charSet.charAt(randomCharIndex);\n            }\n            return str;\n        });\n    }\n    uniform(min, max) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return this.keyService.randomNumber(min, max);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5860 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/key-service-randomizer.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/password-randomizer.ts":
/*!*************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/password-randomizer.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordRandomizer: () => (/* binding */ PasswordRandomizer)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/wordlist */ \"../../libs/common/src/platform/misc/wordlist.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types */ \"../../libs/tools/generator/core/src/types/index.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./data */ \"../../libs/tools/generator/core/src/engine/data.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n/** Generation algorithms that produce randomized secrets */\nclass PasswordRandomizer {\n    /** Instantiates the password randomizer\n     *  @param randomizer data source for random data\n     */\n    constructor(randomizer) {\n        this.randomizer = randomizer;\n    }\n    /** create a password from ASCII codepoints\n     *  @param request refines the generated password\n     *  @returns a promise that completes with the generated password\n     */\n    randomAscii(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // randomize character sets\n            const sets = toAsciiSets(request);\n            const shuffled = yield this.randomizer.shuffle(sets);\n            // generate password\n            const generating = shuffled.flatMap((set) => this.randomizer.pick(set));\n            const generated = yield Promise.all(generating);\n            const result = generated.join(\"\");\n            return result;\n        });\n    }\n    /** create a passphrase from the EFF's \"5 dice\" word list\n     *  @param request refines the generated passphrase\n     * @returns a promise that completes with the generated passphrase\n     */\n    randomEffLongWords(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // select which word gets the number, if any\n            let luckyNumber = -1;\n            if (request.number) {\n                luckyNumber = yield this.randomizer.uniform(0, request.numberOfWords - 1);\n            }\n            // generate the passphrase\n            const wordList = new Array(request.numberOfWords);\n            for (let i = 0; i < request.numberOfWords; i++) {\n                const word = yield this.randomizer.pickWord(_bitwarden_common_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_0__.EFFLongWordList, {\n                    titleCase: request.capitalize,\n                    number: i === luckyNumber,\n                });\n                wordList[i] = word;\n            }\n            return wordList.join(request.separator);\n        });\n    }\n    generate(_request, settings) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (isPasswordGenerationOptions(settings)) {\n                const request = (0,_util__WEBPACK_IMPORTED_MODULE_2__.optionsToRandomAsciiRequest)(settings);\n                const password = yield this.randomAscii(request);\n                return new _types__WEBPACK_IMPORTED_MODULE_1__.GeneratedCredential(password, \"password\", Date.now());\n            }\n            else if (isPassphraseGenerationOptions(settings)) {\n                const request = (0,_util__WEBPACK_IMPORTED_MODULE_2__.optionsToEffWordListRequest)(settings);\n                const passphrase = yield this.randomEffLongWords(request);\n                return new _types__WEBPACK_IMPORTED_MODULE_1__.GeneratedCredential(passphrase, \"passphrase\", Date.now());\n            }\n            throw new Error(\"Invalid settings received by generator.\");\n        });\n    }\n}\nfunction isPasswordGenerationOptions(settings) {\n    return \"length\" in (settings !== null && settings !== void 0 ? settings : {});\n}\nfunction isPassphraseGenerationOptions(settings) {\n    return \"numWords\" in (settings !== null && settings !== void 0 ? settings : {});\n}\n// given a generator request, convert each of its `number | undefined` properties\n// to an array of character sets, one for each property. The transformation is\n// deterministic.\nfunction toAsciiSets(request) {\n    // allocate an array and initialize each cell with a fixed value\n    function allocate(size, value) {\n        const data = new Array(size > 0 ? size : 0);\n        data.fill(value, 0, size);\n        return data;\n    }\n    const allSet = [];\n    const active = request.ambiguous ? _data__WEBPACK_IMPORTED_MODULE_3__.Ascii.Full : _data__WEBPACK_IMPORTED_MODULE_3__.Ascii.Unmistakable;\n    const parts = [];\n    if (request.uppercase !== undefined) {\n        parts.push(...allocate(request.uppercase, active.Uppercase));\n        allSet.push(...active.Uppercase);\n    }\n    if (request.lowercase !== undefined) {\n        parts.push(...allocate(request.lowercase, active.Lowercase));\n        allSet.push(...active.Lowercase);\n    }\n    if (request.digits !== undefined) {\n        parts.push(...allocate(request.digits, active.Digit));\n        allSet.push(...active.Digit);\n    }\n    if (request.special !== undefined) {\n        parts.push(...allocate(request.special, active.Special));\n        allSet.push(...active.Special);\n    }\n    parts.push(...allocate(request.all, allSet));\n    return parts;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11484 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/password-randomizer.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/rpc/create-forwarding-address.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/rpc/create-forwarding-address.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CreateForwardingAddressRpc: () => (/* binding */ CreateForwardingAddressRpc)\n/* harmony export */ });\nclass CreateForwardingAddressRpc {\n    constructor(requestor, context) {\n        this.requestor = requestor;\n        this.context = context;\n    }\n    get createForwardingEmail() {\n        return this.requestor.forwarder.createForwardingEmail;\n    }\n    toRequest(req) {\n        const url = this.createForwardingEmail.url(req, this.context);\n        const token = this.requestor.authenticate(req, this.context);\n        const body = this.body(req);\n        const request = new Request(url, {\n            redirect: \"manual\",\n            cache: \"no-store\",\n            method: \"POST\",\n            headers: new Headers(Object.assign(Object.assign({}, token), { \"Content-Type\": \"application/json\", Accept: \"application/json\" })),\n            body,\n        });\n        return request;\n    }\n    body(req) {\n        const toBody = this.createForwardingEmail.body;\n        if (!toBody) {\n            return undefined;\n        }\n        const body = toBody(req, this.context);\n        if (!body) {\n            return undefined;\n        }\n        return JSON.stringify(body);\n    }\n    hasJsonPayload(response) {\n        return this.createForwardingEmail.hasJsonPayload(response, this.context);\n    }\n    processJson(json) {\n        return this.createForwardingEmail.processJson(json, this.context);\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4448 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/rpc/create-forwarding-address.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/rpc/get-account-id.ts":
/*!************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/rpc/get-account-id.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GetAccountIdRpc: () => (/* binding */ GetAccountIdRpc)\n/* harmony export */ });\nclass GetAccountIdRpc {\n    constructor(requestor, context) {\n        this.requestor = requestor;\n        this.context = context;\n    }\n    hasJsonPayload(response) {\n        return this.requestor.forwarder.getAccountId.hasJsonPayload(response, this.context);\n    }\n    processJson(json) {\n        return this.requestor.forwarder.getAccountId.processJson(json, this.context);\n    }\n    toRequest(req) {\n        const url = this.requestor.forwarder.getAccountId.url(req, this.context);\n        const token = this.requestor.authenticate(req, this.context);\n        const request = new Request(url, {\n            redirect: \"manual\",\n            cache: \"no-store\",\n            method: \"GET\",\n            headers: new Headers(Object.assign(Object.assign({}, token), { \"Content-Type\": \"application/json\", Accept: \"application/json\" })),\n        });\n        return request;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZW5naW5lL3JwYy9nZXQtYWNjb3VudC1pZC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBTU8sTUFBTSxlQUFlO0lBSzFCLFlBQ1csU0FBMkMsRUFDM0MsT0FBbUM7UUFEbkMsY0FBUyxHQUFULFNBQVMsQ0FBa0M7UUFDM0MsWUFBTyxHQUFQLE9BQU8sQ0FBNEI7SUFDM0MsQ0FBQztJQUVKLGNBQWMsQ0FBQyxRQUFrQjtRQUMvQixPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsU0FBUyxDQUFDLFlBQVksQ0FBQyxjQUFjLENBQUMsUUFBUSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUN0RixDQUFDO0lBRUQsV0FBVyxDQUFDLElBQVM7UUFDbkIsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLFNBQVMsQ0FBQyxZQUFZLENBQUMsV0FBVyxDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDL0UsQ0FBQztJQUVELFNBQVMsQ0FBQyxHQUFRO1FBQ2hCLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsU0FBUyxDQUFDLFlBQVksQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUN6RSxNQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLFlBQVksQ0FBQyxHQUFHLEVBQUUsSUFBSSxDQUFDLE9BQXVDLENBQUMsQ0FBQztRQUU3RixNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxHQUFHL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ICAgIEFjY2VwdDogXCJhcHBsaWNhdGlvbi9qc29uXCIsXG4gICAgICB9KSxcbiAgICB9KTtcblxuICAgIHJldHVybiByZXF1ZXN0O1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/rpc/get-account-id.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/rpc/index.ts":
/*!***************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/rpc/index.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CreateForwardingAddressRpc: () => (/* reexport safe */ _create_forwarding_address__WEBPACK_IMPORTED_MODULE_0__.CreateForwardingAddressRpc),\n/* harmony export */   GetAccountIdRpc: () => (/* reexport safe */ _get_account_id__WEBPACK_IMPORTED_MODULE_1__.GetAccountIdRpc)\n/* harmony export */ });\n/* harmony import */ var _create_forwarding_address__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-forwarding-address */ \"../../libs/tools/generator/core/src/engine/rpc/create-forwarding-address.ts\");\n/* harmony import */ var _get_account_id__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./get-account-id */ \"../../libs/tools/generator/core/src/engine/rpc/get-account-id.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZW5naW5lL3JwYy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQTRDO0FBQ1giLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9lbmdpbmUvcnBjL2luZGV4LnRzPzA3YWIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY3JlYXRlLWZvcndhcmRpbmctYWRkcmVzc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZ2V0LWFjY291bnQtaWRcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/rpc/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/settings.ts":
/*!**************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/settings.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/engine/username-randomizer.ts":
/*!*************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/engine/username-randomizer.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UsernameRandomizer: () => (/* binding */ UsernameRandomizer)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/misc/wordlist */ \"../../libs/common/src/platform/misc/wordlist.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../types */ \"../../libs/tools/generator/core/src/types/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n/** Generation algorithms that produce randomized usernames */\nclass UsernameRandomizer {\n    /** Instantiates the username randomizer\n     *  @param random data source for random data\n     */\n    constructor(random) {\n        this.random = random;\n    }\n    /** Creates a username composed of random words\n     *  @param request parameters to which the generated username conforms\n     *  @returns a promise that resolves with the generated username.\n     */\n    randomWords(request) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b, _c;\n            const numberOfWords = (_a = request === null || request === void 0 ? void 0 : request.numberOfWords) !== null && _a !== void 0 ? _a : 1;\n            if (numberOfWords < 1) {\n                return \"\";\n            }\n            const digits = Math.max((_b = request === null || request === void 0 ? void 0 : request.digits) !== null && _b !== void 0 ? _b : 0, 0);\n            let selectCase = (_) => false;\n            if ((request === null || request === void 0 ? void 0 : request.casing) === \"camelCase\") {\n                selectCase = (i) => i !== 0;\n            }\n            else if ((request === null || request === void 0 ? void 0 : request.casing) === \"TitleCase\") {\n                selectCase = (_) => true;\n            }\n            const wordList = (_c = request === null || request === void 0 ? void 0 : request.words) !== null && _c !== void 0 ? _c : _bitwarden_common_platform_misc_wordlist__WEBPACK_IMPORTED_MODULE_0__.EFFLongWordList;\n            const parts = [];\n            for (let i = 0; i < numberOfWords; i++) {\n                const word = yield this.random.pickWord(wordList, { titleCase: selectCase(i) });\n                parts.push(word);\n            }\n            for (let i = 0; i < digits; i++) {\n                const digit = yield this.random.uniform(0, 9);\n                parts.push(digit.toString());\n            }\n            const result = parts.join(\"\");\n            return result;\n        });\n    }\n    generate(_request, settings) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (isEffUsernameGenerationOptions(settings)) {\n                const username = yield this.randomWords({\n                    digits: settings.wordIncludeNumber ? 1 : 0,\n                    casing: settings.wordCapitalize ? \"TitleCase\" : \"lowercase\",\n                });\n                return new _types__WEBPACK_IMPORTED_MODULE_1__.GeneratedCredential(username, \"username\", Date.now());\n            }\n            throw new Error(\"Invalid settings received by generator.\");\n        });\n    }\n}\nfunction isEffUsernameGenerationOptions(settings) {\n    return \"wordIncludeNumber\" in (settings !== null && settings !== void 0 ? settings : {});\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6168 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/engine/username-randomizer.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/factories.ts":
/*!********************************************************!*\
  !*** ../../libs/tools/generator/core/src/factories.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   createRandomizer: () => (/* binding */ createRandomizer)\n/* harmony export */ });\n/* harmony import */ var _engine_key_service_randomizer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine/key-service-randomizer */ \"../../libs/tools/generator/core/src/engine/key-service-randomizer.ts\");\n// contains logic that constructs generator services dynamically given\n// a generator id.\n\nfunction createRandomizer(keyService) {\n    return new _engine_key_service_randomizer__WEBPACK_IMPORTED_MODULE_0__.KeyServiceRandomizer(keyService);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZmFjdG9yaWVzLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsc0VBQXNFO0FBQ3RFLGtCQUFrQjtBQUtxRDtBQUVoRSxTQUFTLGdCQUFnQixDQUFDLFVBQXNCO0lBQ3JELE9BQU8sSUFBSSxnRkFBb0IsQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUM5QyxDQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvZmFjdG9yaWVzLnRzPzUyY2UiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gY29udGFpbnMgbG9naWMgdGhhdCBjb25zdHJ1Y3RzIGdlbmVyYXRvciBzZXJ2aWNlcyBkeW5hbWljYWxseSBnaXZlblxuLy8gYSBnZW5lcmF0b3IgaWQuXG5cbmltcG9ydCB7IEtleVNlcnZpY2UgfSBmcm9tIFwiQGJpdHdhcmRlbi9rZXktbWFuYWdlbWVudFwiO1xuXG5pbXBvcnQgeyBSYW5kb21pemVyIH0gZnJvbSBcIi4vYWJzdHJhY3Rpb25zXCI7XG5pbXBvcnQgeyBLZXlTZXJ2aWNlUmFuZG9taXplciB9IGZyb20gXCIuL2VuZ2luZS9rZXktc2VydmljZS1yYW5kb21pemVyXCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVSYW5kb21pemVyKGtleVNlcnZpY2U6IEtleVNlcnZpY2UpOiBSYW5kb21pemVyIHtcbiAgcmV0dXJuIG5ldyBLZXlTZXJ2aWNlUmFuZG9taXplcihrZXlTZXJ2aWNlKTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/factories.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/index.ts":
/*!****************************************************!*\
  !*** ../../libs/tools/generator/core/src/index.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialAlgorithms: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.CredentialAlgorithms),\n/* harmony export */   CredentialCategories: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.CredentialCategories),\n/* harmony export */   CredentialGeneratorService: () => (/* reexport safe */ _services__WEBPACK_IMPORTED_MODULE_4__.CredentialGeneratorService),\n/* harmony export */   DefaultAddyIoOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultAddyIoOptions),\n/* harmony export */   DefaultCatchallOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultCatchallOptions),\n/* harmony export */   DefaultCredentialPreferences: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultCredentialPreferences),\n/* harmony export */   DefaultDuckDuckGoOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultDuckDuckGoOptions),\n/* harmony export */   DefaultEffUsernameOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultEffUsernameOptions),\n/* harmony export */   DefaultFastmailOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultFastmailOptions),\n/* harmony export */   DefaultFirefoxRelayOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultFirefoxRelayOptions),\n/* harmony export */   DefaultForwardEmailOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultForwardEmailOptions),\n/* harmony export */   DefaultPassphraseBoundaries: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseBoundaries),\n/* harmony export */   DefaultPassphraseGenerationOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseGenerationOptions),\n/* harmony export */   DefaultPasswordBoundaries: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordBoundaries),\n/* harmony export */   DefaultPasswordGenerationOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions),\n/* harmony export */   DefaultSimpleLoginOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultSimpleLoginOptions),\n/* harmony export */   DefaultSubaddressOptions: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.DefaultSubaddressOptions),\n/* harmony export */   EmailAlgorithms: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.EmailAlgorithms),\n/* harmony export */   Forwarders: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.Forwarders),\n/* harmony export */   GeneratedCredential: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.GeneratedCredential),\n/* harmony export */   GeneratorService: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.GeneratorService),\n/* harmony export */   GeneratorStrategy: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.GeneratorStrategy),\n/* harmony export */   Generators: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.Generators),\n/* harmony export */   Integrations: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.Integrations),\n/* harmony export */   PasswordAlgorithms: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.PasswordAlgorithms),\n/* harmony export */   Policies: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.Policies),\n/* harmony export */   PolicyEvaluator: () => (/* reexport safe */ _abstractions__WEBPACK_IMPORTED_MODULE_0__.PolicyEvaluator),\n/* harmony export */   UsernameAlgorithms: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.UsernameAlgorithms),\n/* harmony export */   UsernameDigits: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.UsernameDigits),\n/* harmony export */   createRandomizer: () => (/* reexport safe */ _factories__WEBPACK_IMPORTED_MODULE_2__.createRandomizer),\n/* harmony export */   engine: () => (/* reexport module object */ _engine__WEBPACK_IMPORTED_MODULE_5__),\n/* harmony export */   getForwarderConfiguration: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.getForwarderConfiguration),\n/* harmony export */   integration: () => (/* reexport module object */ _integration__WEBPACK_IMPORTED_MODULE_6__),\n/* harmony export */   isEmailAlgorithm: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.isEmailAlgorithm),\n/* harmony export */   isForwarderIntegration: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.isForwarderIntegration),\n/* harmony export */   isPasswordAlgorithm: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.isPasswordAlgorithm),\n/* harmony export */   isSameAlgorithm: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.isSameAlgorithm),\n/* harmony export */   isUsernameAlgorithm: () => (/* reexport safe */ _types__WEBPACK_IMPORTED_MODULE_3__.isUsernameAlgorithm),\n/* harmony export */   policies: () => (/* reexport module object */ _policies__WEBPACK_IMPORTED_MODULE_7__),\n/* harmony export */   rx: () => (/* reexport module object */ _rx__WEBPACK_IMPORTED_MODULE_8__),\n/* harmony export */   services: () => (/* reexport module object */ _services__WEBPACK_IMPORTED_MODULE_4__),\n/* harmony export */   strategies: () => (/* reexport module object */ _strategies__WEBPACK_IMPORTED_MODULE_9__),\n/* harmony export */   toCredentialGeneratorConfiguration: () => (/* reexport safe */ _data__WEBPACK_IMPORTED_MODULE_1__.toCredentialGeneratorConfiguration)\n/* harmony export */ });\n/* harmony import */ var _abstractions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstractions */ \"../../libs/tools/generator/core/src/abstractions/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./factories */ \"../../libs/tools/generator/core/src/factories.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types */ \"../../libs/tools/generator/core/src/types/index.ts\");\n/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./services */ \"../../libs/tools/generator/core/src/services/index.ts\");\n/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./engine */ \"../../libs/tools/generator/core/src/engine/index.ts\");\n/* harmony import */ var _integration__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./integration */ \"../../libs/tools/generator/core/src/integration/index.ts\");\n/* harmony import */ var _policies__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./policies */ \"../../libs/tools/generator/core/src/policies/index.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./strategies */ \"../../libs/tools/generator/core/src/strategies/index.ts\");\n// The root module interface has API stability guarantees\n\n\n\n\n\n// These internal interfacess are exposed for use by other generator modules\n// They are unstable and may change arbitrarily\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx5REFBeUQ7QUFDMUI7QUFDUjtBQUN3QjtBQUN2QjtBQUNnQztBQUV4RCw0RUFBNEU7QUFDNUUsK0NBQStDO0FBQ1o7QUFDVTtBQUNOO0FBQ1o7QUFDWTtBQUNJIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvaW5kZXgudHM/YzJiZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUaGUgcm9vdCBtb2R1bGUgaW50ZXJmYWNlIGhhcyBBUEkgc3RhYmlsaXR5IGd1YXJhbnRlZXNcbmV4cG9ydCAqIGZyb20gXCIuL2Fic3RyYWN0aW9uc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGF0YVwiO1xuZXhwb3J0IHsgY3JlYXRlUmFuZG9taXplciB9IGZyb20gXCIuL2ZhY3Rvcmllc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vdHlwZXNcIjtcbmV4cG9ydCB7IENyZWRlbnRpYWxHZW5lcmF0b3JTZXJ2aWNlIH0gZnJvbSBcIi4vc2VydmljZXNcIjtcblxuLy8gVGhlc2UgaW50ZXJuYWwgaW50ZXJmYWNlc3MgYXJlIGV4cG9zZWQgZm9yIHVzZSBieSBvdGhlciBnZW5lcmF0b3IgbW9kdWxlc1xuLy8gVGhleSBhcmUgdW5zdGFibGUgYW5kIG1heSBjaGFuZ2UgYXJiaXRyYXJpbHlcbmV4cG9ydCAqIGFzIGVuZ2luZSBmcm9tIFwiLi9lbmdpbmVcIjtcbmV4cG9ydCAqIGFzIGludGVncmF0aW9uIGZyb20gXCIuL2ludGVncmF0aW9uXCI7XG5leHBvcnQgKiBhcyBwb2xpY2llcyBmcm9tIFwiLi9wb2xpY2llc1wiO1xuZXhwb3J0ICogYXMgcnggZnJvbSBcIi4vcnhcIjtcbmV4cG9ydCAqIGFzIHNlcnZpY2VzIGZyb20gXCIuL3NlcnZpY2VzXCI7XG5leHBvcnQgKiBhcyBzdHJhdGVnaWVzIGZyb20gXCIuL3N0cmF0ZWdpZXNcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/addy-io.ts":
/*!******************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/addy-io.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AddyIo: () => (/* binding */ AddyIo)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/private-classifier */ \"../../libs/common/src/tools/private-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/public-classifier */ \"../../libs/common/src/tools/public-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n\n\n\n\n// default values\nconst defaultSettings = Object.freeze({\n    token: \"\",\n    domain: \"\",\n});\n// supported RPC calls\nconst createForwardingEmail = Object.freeze({\n    url(_request, context) {\n        return context.baseUrl() + \"/api/v1/aliases\";\n    },\n    body(request, context) {\n        return {\n            domain: context.emailDomain(),\n            description: context.generatedBy(request),\n        };\n    },\n    hasJsonPayload(response) {\n        return response.status === 200 || response.status === 201;\n    },\n    processJson(json) {\n        var _a;\n        return [(_a = json === null || json === void 0 ? void 0 : json.data) === null || _a === void 0 ? void 0 : _a.email];\n    },\n});\n// forwarder configuration\nconst forwarder = Object.freeze({\n    defaultSettings,\n    createForwardingEmail,\n    request: [\"token\", \"baseUrl\", \"domain\"],\n    settingsConstraints: {\n        token: { required: true },\n        domain: { required: true },\n        baseUrl: {},\n    },\n    local: {\n        settings: {\n            // FIXME: integration should issue keys at runtime\n            // based on integrationId & extension metadata\n            // e.g. key: \"forwarder.AddyIo.local.settings\",\n            key: \"addyIoForwarder\",\n            target: \"object\",\n            format: \"classified\",\n            classifier: new _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__.PrivateClassifier(),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\"],\n            },\n        },\n        import: {\n            key: \"forwarder.AddyIo.local.import\",\n            target: \"object\",\n            format: \"plain\",\n            classifier: new _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__.PublicClassifier([\"token\", \"baseUrl\", \"domain\"]),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_MEMORY,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\", \"lock\"],\n            },\n        },\n    },\n    settings: new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"addyIoForwarder\", {\n        deserializer: (value) => value,\n        clearOn: [],\n    }),\n    importBuffer: new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"addyIoBuffer\", {\n        deserializer: (value) => value,\n        clearOn: [\"logout\"],\n    }),\n});\nconst AddyIo = Object.freeze({\n    // integration\n    id: \"anonaddy\",\n    name: \"Addy.io\",\n    extends: [\"forwarder\"],\n    // hosting\n    selfHost: \"maybe\",\n    baseUrl: \"https://app.addy.io\",\n    authenticate(_request, context) {\n        return { Authorization: \"Bearer \" + context.authenticationToken() };\n    },\n    // extensions\n    forwarder,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8412 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/addy-io.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/duck-duck-go.ts":
/*!***********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/duck-duck-go.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DuckDuckGo: () => (/* binding */ DuckDuckGo)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/private-classifier */ \"../../libs/common/src/tools/private-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/public-classifier */ \"../../libs/common/src/tools/public-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n\n\n\n\n// default values\nconst defaultSettings = Object.freeze({\n    token: \"\",\n});\n// supported RPC calls\nconst createForwardingEmail = Object.freeze({\n    url(_request, context) {\n        return context.baseUrl() + \"/email/addresses\";\n    },\n    body(_request, _context) {\n        return undefined;\n    },\n    hasJsonPayload(response) {\n        return response.status === 200 || response.status === 201;\n    },\n    processJson(json) {\n        return [`${json.address}@duck.com`];\n    },\n});\n// forwarder configuration\nconst forwarder = Object.freeze({\n    defaultSettings,\n    createForwardingEmail,\n    request: [\"token\"],\n    settingsConstraints: {\n        token: { required: true },\n    },\n    local: {\n        settings: {\n            // FIXME: integration should issue keys at runtime\n            // based on integrationId & extension metadata\n            // e.g. key: \"forwarder.DuckDuckGo.local.settings\",\n            key: \"duckDuckGoForwarder\",\n            target: \"object\",\n            format: \"classified\",\n            classifier: new _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__.PrivateClassifier(),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\"],\n            },\n        },\n        import: {\n            key: \"forwarder.DuckDuckGo.local.import\",\n            target: \"object\",\n            format: \"plain\",\n            classifier: new _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__.PublicClassifier([\"token\"]),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_MEMORY,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\", \"lock\"],\n            },\n        },\n    },\n    settings: new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"duckDuckGoForwarder\", {\n        deserializer: (value) => value,\n        clearOn: [],\n    }),\n    importBuffer: new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"duckDuckGoBuffer\", {\n        deserializer: (value) => value,\n        clearOn: [\"logout\"],\n    }),\n});\n// integration-wide configuration\nconst DuckDuckGo = Object.freeze({\n    id: \"duckduckgo\",\n    name: \"DuckDuckGo\",\n    baseUrl: \"https://quack.duckduckgo.com/api\",\n    selfHost: \"never\",\n    extends: [\"forwarder\"],\n    authenticate(_request, context) {\n        return { Authorization: \"Bearer \" + context.authenticationToken() };\n    },\n    forwarder,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7768 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/duck-duck-go.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/fastmail.ts":
/*!*******************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/fastmail.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Fastmail: () => (/* binding */ Fastmail)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/private-classifier */ \"../../libs/common/src/tools/private-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/public-classifier */ \"../../libs/common/src/tools/public-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n\n\n\n\n// default values\nconst defaultSettings = Object.freeze({\n    domain: \"\",\n    prefix: \"\",\n    token: \"\",\n});\n// supported RPC calls\nconst getAccountId = Object.freeze({\n    url(_request, context) {\n        // cannot use \"/.well-known/jmap\" because integration RPCs\n        // never follow redirects\n        return context.baseUrl() + \"/jmap/session\";\n    },\n    hasJsonPayload(response) {\n        return response.status === 200;\n    },\n    processJson(json, context) {\n        var _a, _b;\n        const result = (_b = (_a = json.primaryAccounts) === null || _a === void 0 ? void 0 : _a[\"https://www.fastmail.com/dev/maskedemail\"]) !== null && _b !== void 0 ? _b : undefined;\n        return [result, result ? undefined : context.missingAccountIdCause()];\n    },\n});\nconst createForwardingEmail = Object.freeze({\n    url(_request, context) {\n        return context.baseUrl() + \"/jmap/api/\";\n    },\n    body(request, context) {\n        const body = {\n            using: [\"https://www.fastmail.com/dev/maskedemail\", \"urn:ietf:params:jmap:core\"],\n            methodCalls: [\n                [\n                    \"MaskedEmail/set\",\n                    {\n                        accountId: request.accountId,\n                        create: {\n                            \"new-masked-email\": {\n                                state: \"enabled\",\n                                description: \"\",\n                                forDomain: context.website(request),\n                                emailPrefix: \"\",\n                            },\n                        },\n                    },\n                    \"0\",\n                ],\n            ],\n        };\n        return body;\n    },\n    hasJsonPayload(response) {\n        return response.status === 200;\n    },\n    processJson(json) {\n        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;\n        if (json.methodResponses != null &&\n            json.methodResponses.length > 0 &&\n            json.methodResponses[0].length > 0) {\n            if (json.methodResponses[0][0] === \"MaskedEmail/set\") {\n                if (((_b = (_a = json.methodResponses[0][1]) === null || _a === void 0 ? void 0 : _a.created) === null || _b === void 0 ? void 0 : _b[\"new-masked-email\"]) != null) {\n                    const email = (_e = (_d = (_c = json.methodResponses[0][1]) === null || _c === void 0 ? void 0 : _c.created) === null || _d === void 0 ? void 0 : _d[\"new-masked-email\"]) === null || _e === void 0 ? void 0 : _e.email;\n                    return [email];\n                }\n                if (((_g = (_f = json.methodResponses[0][1]) === null || _f === void 0 ? void 0 : _f.notCreated) === null || _g === void 0 ? void 0 : _g[\"new-masked-email\"]) != null) {\n                    const errorDescription = (_k = (_j = (_h = json.methodResponses[0][1]) === null || _h === void 0 ? void 0 : _h.notCreated) === null || _j === void 0 ? void 0 : _j[\"new-masked-email\"]) === null || _k === void 0 ? void 0 : _k.description;\n                    return [undefined, errorDescription];\n                }\n            }\n            else if (json.methodResponses[0][0] === \"error\") {\n                const errorDescription = (_l = json.methodResponses[0][1]) === null || _l === void 0 ? void 0 : _l.description;\n                return [undefined, errorDescription];\n            }\n        }\n    },\n});\n// forwarder configuration\nconst forwarder = Object.freeze({\n    defaultSettings,\n    createForwardingEmail,\n    getAccountId,\n    request: [\"token\"],\n    settingsConstraints: {\n        token: { required: true },\n        domain: { required: true },\n        prefix: {},\n    },\n    local: {\n        settings: {\n            // FIXME: integration should issue keys at runtime\n            // based on integrationId & extension metadata\n            // e.g. key: \"forwarder.Fastmail.local.settings\"\n            key: \"fastmailForwarder\",\n            target: \"object\",\n            format: \"classified\",\n            classifier: new _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__.PrivateClassifier(),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\"],\n            },\n        },\n        import: {\n            key: \"forwarder.Fastmail.local.import\",\n            target: \"object\",\n            format: \"plain\",\n            classifier: new _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__.PublicClassifier([\"token\"]),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_MEMORY,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\", \"lock\"],\n            },\n        },\n    },\n    settings: new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"fastmailForwarder\", {\n        deserializer: (value) => value,\n        clearOn: [],\n    }),\n    importBuffer: new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"fastmailBuffer\", {\n        deserializer: (value) => value,\n        clearOn: [\"logout\"],\n    }),\n});\n// integration-wide configuration\nconst Fastmail = Object.freeze({\n    id: \"fastmail\",\n    name: \"Fastmail\",\n    baseUrl: \"https://api.fastmail.com\",\n    selfHost: \"maybe\",\n    extends: [\"forwarder\"],\n    authenticate(_request, context) {\n        return { Authorization: \"Bearer \" + context.authenticationToken() };\n    },\n    forwarder,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13412 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/fastmail.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/firefox-relay.ts":
/*!************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/firefox-relay.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FirefoxRelay: () => (/* binding */ FirefoxRelay)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/private-classifier */ \"../../libs/common/src/tools/private-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/public-classifier */ \"../../libs/common/src/tools/public-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n\n\n\n\n// default values\nconst defaultSettings = Object.freeze({\n    token: \"\",\n});\n// supported RPC calls\nconst createForwardingEmail = Object.freeze({\n    url(_request, context) {\n        return context.baseUrl() + \"/v1/relayaddresses/\";\n    },\n    body(request, context) {\n        return {\n            enabled: true,\n            generated_for: context.website(request),\n            description: context.generatedBy(request),\n        };\n    },\n    hasJsonPayload(response) {\n        return response.status === 200 || response.status === 201;\n    },\n    processJson(json) {\n        return [json.full_address];\n    },\n});\n// forwarder configuration\nconst forwarder = Object.freeze({\n    defaultSettings,\n    createForwardingEmail,\n    request: [\"token\"],\n    settingsConstraints: {\n        token: { required: true },\n    },\n    local: {\n        settings: {\n            // FIXME: integration should issue keys at runtime\n            // based on integrationId & extension metadata\n            // e.g. key: \"forwarder.Firefox.local.settings\",\n            key: \"firefoxRelayForwarder\",\n            target: \"object\",\n            format: \"classified\",\n            classifier: new _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__.PrivateClassifier(),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\"],\n            },\n        },\n        import: {\n            key: \"forwarder.Firefox.local.import\",\n            target: \"object\",\n            format: \"plain\",\n            classifier: new _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__.PublicClassifier([\"token\"]),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_MEMORY,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\", \"lock\"],\n            },\n        },\n    },\n    settings: new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"firefoxRelayForwarder\", {\n        deserializer: (value) => value,\n        clearOn: [],\n    }),\n    importBuffer: new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"firefoxRelayBuffer\", {\n        deserializer: (value) => value,\n        clearOn: [\"logout\"],\n    }),\n});\n// integration-wide configuration\nconst FirefoxRelay = Object.freeze({\n    id: \"firefoxrelay\",\n    name: \"Firefox Relay\",\n    baseUrl: \"https://relay.firefox.com/api\",\n    selfHost: \"never\",\n    extends: [\"forwarder\"],\n    authenticate(_request, context) {\n        return { Authorization: \"Token \" + context.authenticationToken() };\n    },\n    forwarder,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8164 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/firefox-relay.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/forward-email.ts":
/*!************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/forward-email.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ForwardEmail: () => (/* binding */ ForwardEmail)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/private-classifier */ \"../../libs/common/src/tools/private-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/public-classifier */ \"../../libs/common/src/tools/public-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n\n\n\n\n// default values\nconst defaultSettings = Object.freeze({\n    token: \"\",\n    domain: \"\",\n});\n// supported RPC calls\nconst createForwardingEmail = Object.freeze({\n    url(_request, context) {\n        const domain = context.emailDomain();\n        return context.baseUrl() + `/v1/domains/${domain}/aliases`;\n    },\n    body(request, context) {\n        return {\n            labels: context.website(request),\n            description: context.generatedBy(request),\n        };\n    },\n    hasJsonPayload(response) {\n        return response.status === 200 || response.status === 201;\n    },\n    processJson(json, context) {\n        var _a;\n        const { name, domain } = json;\n        const domainPart = (_a = domain === null || domain === void 0 ? void 0 : domain.name) !== null && _a !== void 0 ? _a : context.emailDomain();\n        return [`${name}@${domainPart}`];\n    },\n});\n// forwarder configuration\nconst forwarder = Object.freeze({\n    defaultSettings,\n    request: [\"token\", \"domain\"],\n    settingsConstraints: {\n        token: { required: true },\n        domain: { required: true },\n    },\n    local: {\n        settings: {\n            // FIXME: integration should issue keys at runtime\n            // based on integrationId & extension metadata\n            // e.g. key: \"forwarder.ForwardEmail.local.settings\",\n            key: \"forwardEmailForwarder\",\n            target: \"object\",\n            format: \"classified\",\n            classifier: new _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__.PrivateClassifier(),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\"],\n            },\n        },\n        import: {\n            key: \"forwarder.ForwardEmail.local.import\",\n            target: \"object\",\n            format: \"plain\",\n            classifier: new _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__.PublicClassifier([\"token\", \"domain\"]),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_MEMORY,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\", \"lock\"],\n            },\n        },\n    },\n    settings: new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"forwardEmailForwarder\", {\n        deserializer: (value) => value,\n        clearOn: [],\n    }),\n    importBuffer: new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"forwardEmailBuffer\", {\n        deserializer: (value) => value,\n        clearOn: [\"logout\"],\n    }),\n    createForwardingEmail,\n});\nconst ForwardEmail = Object.freeze({\n    // integration metadata\n    id: \"forwardemail\",\n    name: \"Forward Email\",\n    extends: [\"forwarder\"],\n    // service provider\n    selfHost: \"never\",\n    baseUrl: \"https://api.forwardemail.net\",\n    authenticate(_request, context) {\n        return { Authorization: \"Basic \" + context.authenticationToken({ base64: true, suffix: \":\" }) };\n    },\n    // specialized configurations\n    forwarder,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9168 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/forward-email.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/index.ts":
/*!****************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/index.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AddyIo: () => (/* reexport safe */ _addy_io__WEBPACK_IMPORTED_MODULE_0__.AddyIo),\n/* harmony export */   DuckDuckGo: () => (/* reexport safe */ _duck_duck_go__WEBPACK_IMPORTED_MODULE_1__.DuckDuckGo),\n/* harmony export */   Fastmail: () => (/* reexport safe */ _fastmail__WEBPACK_IMPORTED_MODULE_2__.Fastmail),\n/* harmony export */   FirefoxRelay: () => (/* reexport safe */ _firefox_relay__WEBPACK_IMPORTED_MODULE_3__.FirefoxRelay),\n/* harmony export */   ForwardEmail: () => (/* reexport safe */ _forward_email__WEBPACK_IMPORTED_MODULE_4__.ForwardEmail),\n/* harmony export */   SimpleLogin: () => (/* reexport safe */ _simple_login__WEBPACK_IMPORTED_MODULE_5__.SimpleLogin)\n/* harmony export */ });\n/* harmony import */ var _addy_io__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./addy-io */ \"../../libs/tools/generator/core/src/integration/addy-io.ts\");\n/* harmony import */ var _duck_duck_go__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duck-duck-go */ \"../../libs/tools/generator/core/src/integration/duck-duck-go.ts\");\n/* harmony import */ var _fastmail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fastmail */ \"../../libs/tools/generator/core/src/integration/fastmail.ts\");\n/* harmony import */ var _firefox_relay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./firefox-relay */ \"../../libs/tools/generator/core/src/integration/firefox-relay.ts\");\n/* harmony import */ var _forward_email__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./forward-email */ \"../../libs/tools/generator/core/src/integration/forward-email.ts\");\n/* harmony import */ var _simple_login__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./simple-login */ \"../../libs/tools/generator/core/src/integration/simple-login.ts\");\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvaW50ZWdyYXRpb24vaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQTBCO0FBQ0s7QUFDSjtBQUNLO0FBQ0E7QUFDRCIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2NvcmUvc3JjL2ludGVncmF0aW9uL2luZGV4LnRzPzZlNmMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vYWRkeS1pb1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZHVjay1kdWNrLWdvXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9mYXN0bWFpbFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZmlyZWZveC1yZWxheVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZm9yd2FyZC1lbWFpbFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vc2ltcGxlLWxvZ2luXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/integration/simple-login.ts":
/*!***********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/integration/simple-login.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SimpleLogin: () => (/* binding */ SimpleLogin)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/private-classifier */ \"../../libs/common/src/tools/private-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/public-classifier */ \"../../libs/common/src/tools/public-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n\n\n\n\n// default values\nconst defaultSettings = Object.freeze({\n    token: \"\",\n    domain: \"\",\n});\n// supported RPC calls\nconst createForwardingEmail = Object.freeze({\n    url(request, context) {\n        const endpoint = context.baseUrl() + \"/api/alias/random/new\";\n        const hostname = context.website(request);\n        const url = hostname !== \"\" ? `${endpoint}?hostname=${hostname}` : endpoint;\n        return url;\n    },\n    body(request, context) {\n        return { note: context.generatedBy(request) };\n    },\n    hasJsonPayload(response) {\n        return response.status === 200 || response.status === 201;\n    },\n    processJson(json) {\n        return [json === null || json === void 0 ? void 0 : json.alias];\n    },\n});\n// forwarder configuration\nconst forwarder = Object.freeze({\n    defaultSettings,\n    createForwardingEmail,\n    request: [\"token\", \"baseUrl\"],\n    settingsConstraints: {\n        token: { required: true },\n    },\n    local: {\n        settings: {\n            // FIXME: integration should issue keys at runtime\n            // based on integrationId & extension metadata\n            // e.g. key: \"forwarder.SimpleLogin.local.settings\",\n            key: \"simpleLoginForwarder\",\n            target: \"object\",\n            format: \"classified\",\n            classifier: new _bitwarden_common_tools_private_classifier__WEBPACK_IMPORTED_MODULE_1__.PrivateClassifier(),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\"],\n            },\n        },\n        import: {\n            key: \"forwarder.SimpleLogin.local.import\",\n            target: \"object\",\n            format: \"plain\",\n            classifier: new _bitwarden_common_tools_public_classifier__WEBPACK_IMPORTED_MODULE_2__.PublicClassifier([\"token\", \"baseUrl\"]),\n            state: _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_MEMORY,\n            options: {\n                deserializer: (value) => value,\n                clearOn: [\"logout\", \"lock\"],\n            },\n        },\n    },\n    settings: new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"simpleLoginForwarder\", {\n        deserializer: (value) => value,\n        clearOn: [],\n    }),\n    importBuffer: new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_3__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"simpleLoginBuffer\", {\n        deserializer: (value) => value,\n        clearOn: [\"logout\"],\n    }),\n});\n// integration-wide configuration\nconst SimpleLogin = Object.freeze({\n    id: \"simplelogin\",\n    name: \"SimpleLogin\",\n    selfHost: \"maybe\",\n    extends: [\"forwarder\"],\n    baseUrl: \"https://app.simplelogin.io\",\n    authenticate(_request, context) {\n        return { Authentication: context.authenticationToken() };\n    },\n    forwarder,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8552 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/integration/simple-login.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/available-algorithms-policy.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/available-algorithms-policy.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   availableAlgorithms: () => (/* binding */ availableAlgorithms)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/generator-core */ \"../../libs/tools/generator/core/src/index.ts\");\n\n\n/** Reduces policies to a set of available algorithms\n *  @param policies the policies to reduce\n *  @returns the resulting `AlgorithmAvailabilityPolicy`\n */\nfunction availableAlgorithms(policies) {\n    const overridePassword = policies\n        .filter((policy) => policy.type === _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator && policy.enabled)\n        .reduce((type, policy) => { var _a; return (type === \"password\" ? type : ((_a = policy.data.overridePasswordType) !== null && _a !== void 0 ? _a : type)); }, null);\n    const policy = [..._bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.EmailAlgorithms, ..._bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.UsernameAlgorithms];\n    if (overridePassword) {\n        policy.push(overridePassword);\n    }\n    else {\n        policy.push(..._bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.PasswordAlgorithms);\n    }\n    return policy;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvcG9saWNpZXMvYXZhaWxhYmxlLWFsZ29yaXRobXMtcG9saWN5LnRzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFtRTtBQVNoQztBQUVuQzs7O0dBR0c7QUFDSSxTQUFTLG1CQUFtQixDQUFDLFFBQWtCO0lBQ3BELE1BQU0sZ0JBQWdCLEdBQUcsUUFBUTtTQUM5QixNQUFNLENBQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssNkVBQVUsQ0FBQyxpQkFBaUIsSUFBSSxNQUFNLENBQUMsT0FBTyxDQUFDO1NBQ2xGLE1BQU0sQ0FDTCxDQUFDLElBQUksRUFBRSxNQUFNLEVBQUUsRUFBRSxXQUFDLFFBQUMsSUFBSSxLQUFLLFVBQVUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLFlBQU0sQ0FBQyxJQUFJLENBQUMsb0JBQW9CLG1DQUFJLElBQUksQ0FBQyxDQUFDLEtBQzNGLElBQTJCLENBQzVCLENBQUM7SUFFSixNQUFNLE1BQU0sR0FBMEIsQ0FBQyxHQUFHLHNFQUFlLEVBQUUsR0FBRyx5RUFBa0IsQ0FBQyxDQUFDO0lBQ2xGLElBQUksZ0JBQWdCLEVBQUUsQ0FBQztRQUNyQixNQUFNLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLENBQUM7SUFDaEMsQ0FBQztTQUFNLENBQUM7UUFDTixNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcseUVBQWt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10ge1xuICBjb25zdCBvdmVycmlkZVBhc3N3b3JkID0gcG9saWNpZXNcbiAgICAuZmlsdGVyKChwb2xpY3kpID0+IHBvbGljeS50eXBlID09PSBQb2xpY3lUeXBlLlBhc3N3b3JkR2VuZXJhdG9yICYmIHBvbGljeS5lbmFibGVkKVxuICAgIC5yZWR1Y2UoXG4gICAgICAodHlwZSwgcG9saWN5KSA9PiAodHlwZSA9PT0gXCJwYXNzd29yZFwiID8gdHlwZSA6IChwb2xpY3kuZGF0YS5vdmVycmlkZVBhc3N3b3JkVHlwZSA/PyB0eXBlKSksXG4gICAgICBudWxsIGFzIENyZWRlbnRpYWxBbGdvcml0aG0sXG4gICAgKTtcblxuICBjb25zdCBwb2xpY3k6IENyZWRlbnRpYWxBbGdvcml0aG1bXSA9IFsuLi5FbWFpbEFsZ29yaXRobXMsIC4uLlVzZXJuYW1lQWxnb3JpdGhtc107XG4gIGlmIChvdmVycmlkZVBhc3N3b3JkKSB7XG4gICAgcG9saWN5LnB1c2gob3ZlcnJpZGVQYXNzd29yZCk7XG4gIH0gZWxzZSB7XG4gICAgcG9saWN5LnB1c2goLi4uUGFzc3dvcmRBbGdvcml0aG1zKTtcbiAgfVxuXG4gIHJldHVybiBwb2xpY3k7XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/available-algorithms-policy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/constraints.ts":
/*!*******************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/constraints.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   AtLeastOne: () => (/* binding */ AtLeastOne),\n/* harmony export */   RequiresTrue: () => (/* binding */ RequiresTrue),\n/* harmony export */   atLeast: () => (/* binding */ atLeast),\n/* harmony export */   atLeastSum: () => (/* binding */ atLeastSum),\n/* harmony export */   enforceConstant: () => (/* binding */ enforceConstant),\n/* harmony export */   fitLength: () => (/* binding */ fitLength),\n/* harmony export */   fitToBounds: () => (/* binding */ fitToBounds),\n/* harmony export */   maybe: () => (/* binding */ maybe),\n/* harmony export */   maybeReadonly: () => (/* binding */ maybeReadonly),\n/* harmony export */   readonlyTrueWhen: () => (/* binding */ readonlyTrueWhen)\n/* harmony export */ });\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n\nconst AtLeastOne = { min: 1 };\nconst RequiresTrue = { requiredValue: true };\n/** Ensures the minimum and maximum bounds of a constraint are at least as large as the\n *  combined minimum bounds of `dependencies`.\n *  @param current the constraint extended by the combinator.\n *  @param dependencies the constraints summed to determine the bounds of `current`.\n *  @returns a copy of `current` with the new bounds applied.\n *\n */\nfunction atLeastSum(current, dependencies) {\n    var _a;\n    // length must be at least as long as the required character set\n    const minConsistentLength = (0,_util__WEBPACK_IMPORTED_MODULE_0__.sum)(...dependencies.map((c) => c === null || c === void 0 ? void 0 : c.min));\n    const minLength = Math.max((_a = current === null || current === void 0 ? void 0 : current.min) !== null && _a !== void 0 ? _a : 0, minConsistentLength);\n    const length = atLeast(minLength, current);\n    return length;\n}\n/** Extends a constraint with a readonly field.\n *  @param readonly Adds a readonly field when this is `true`.\n *  @param constraint the constraint extended by the combinator.\n *  @returns a copy of `constraint` with the readonly constraint applied as-needed.\n */\nfunction maybeReadonly(readonly, constraint) {\n    if (!readonly) {\n        return constraint;\n    }\n    const result = Object.assign({}, constraint !== null && constraint !== void 0 ? constraint : {});\n    result.readonly = true;\n    return result;\n}\n/** Conditionally enables a constraint.\n *  @param enabled the condition to evaluate\n *  @param constraint the condition to conditionally enable\n *  @returns `constraint` when `enabled` is true. Otherwise returns `undefined.\n */\nfunction maybe(enabled, constraint) {\n    return enabled ? constraint : undefined;\n}\n// copies `constraint`; ensures both bounds >= value\n/** Ensures the boundaries of a constraint are at least equal to the minimum.\n *  @param minimum the lower bound of the constraint. When this is `undefined` or `null`,\n *   the method returns `constraint`.\n *  @param constraint the constraint to evaluate. When this is `undefined` or `null`,\n *   the method creates a new constraint.\n *  @returns a copy of `constraint`. When `minimum` has a value, the returned constraint\n *   always includes a minimum bound. When `constraint` has a maximum defined, both\n *   its minimum and maximum are checked against `minimum`.\n */\nfunction atLeast(minimum, constraint) {\n    var _a;\n    if (minimum === undefined || minimum === null) {\n        return constraint;\n    }\n    const atLeast = Object.assign({}, (constraint !== null && constraint !== void 0 ? constraint : {}));\n    atLeast.min = Math.max((_a = atLeast.min) !== null && _a !== void 0 ? _a : -Infinity, minimum);\n    if (\"max\" in atLeast) {\n        atLeast.max = Math.max(atLeast.max, minimum);\n    }\n    return atLeast;\n}\n/** Ensures a value falls within the minimum and maximum boundaries of a constraint.\n *  @param value the value to check. Nullish values are coerced to 0.\n *  @param constraint the constraint to evaluate against.\n *  @returns If the value is below the minimum constraint, the minimum bound is\n *   returned. If the value is above the maximum constraint, the maximum bound is\n *   returned. Otherwise, the value is returned.\n */\nfunction fitToBounds(value, constraint) {\n    if (!constraint) {\n        return value;\n    }\n    const { min, max } = constraint;\n    const withUpperBound = Math.min(value !== null && value !== void 0 ? value : 0, max !== null && max !== void 0 ? max : Infinity);\n    const withLowerBound = Math.max(withUpperBound, min !== null && min !== void 0 ? min : -Infinity);\n    return withLowerBound;\n}\n/** Fits the length of a string within the minimum and maximum length boundaries\n *  of a constraint.\n *  @param value the value to check. Nullish values are coerced to the empty string.\n *  @param constraint the constraint to evaluate against.\n *  @param options.fillString a string to fill values from. Defaults to a space.\n *   When fillString contains multiple characters, each is filled in order. The\n *   fill string repeats when it gets to the end of the string and there are\n *   more characters to fill.\n *  @returns If the value is below the required length, returns a copy padded\n *   by the fillString. If the value is above the required length, returns a copy\n *   padded to the maximum length.\n * */\nfunction fitLength(value, constraint, options) {\n    if (!constraint) {\n        return value;\n    }\n    const { minLength, maxLength } = constraint;\n    const { fillString } = options !== null && options !== void 0 ? options : { fillString: \" \" };\n    const trimmed = (value !== null && value !== void 0 ? value : \"\").slice(0, maxLength !== null && maxLength !== void 0 ? maxLength : Infinity);\n    const result = trimmed.padEnd(minLength !== null && minLength !== void 0 ? minLength : trimmed.length, fillString);\n    return result;\n}\n/** Enforces a readonly field has a required value.\n *  @param value the value to check.\n *  @param constraint the constraint to evaluate against.\n *  @returns If the constraint's readonly field is `true`, returns the\n *   constraint's required value or `undefined` if none is specified.\n *   Otherwise returns the value.\n *  @remarks This method can be used to ensure a conditionally-calculated\n *   field becomes undefined. Simply specify `readonly` without a `requiredValue`\n *   then use `??` to perform the calculation.\n */\nfunction enforceConstant(value, constraint) {\n    if (constraint === null || constraint === void 0 ? void 0 : constraint.readonly) {\n        return constraint.requiredValue;\n    }\n    else {\n        return value;\n    }\n}\n/** Conditionally create a readonly true value.\n *  @param enabled When true, create the value.\n *  @returns When enabled is true, a readonly constraint with a constant value\n *  of `true`. Otherwise returns `undefined`.\n */\nfunction readonlyTrueWhen(enabled) {\n    const readonlyValue = maybeReadonly(enabled, RequiresTrue);\n    const maybeReadonlyValue = maybe(enabled, readonlyValue);\n    return maybeReadonlyValue;\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12236 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/constraints.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/default-policy-evaluator.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/default-policy-evaluator.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultPolicyEvaluator: () => (/* binding */ DefaultPolicyEvaluator)\n/* harmony export */ });\n/** A policy evaluator that does not apply any policy */\nclass DefaultPolicyEvaluator {\n    /** {@link PolicyEvaluator.policy} */\n    get policy() {\n        return {};\n    }\n    /** {@link PolicyEvaluator.policyInEffect} */\n    get policyInEffect() {\n        return false;\n    }\n    /** {@link PolicyEvaluator.applyPolicy} */\n    applyPolicy(options) {\n        return options;\n    }\n    /** {@link PolicyEvaluator.sanitize} */\n    sanitize(options) {\n        return options;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvcG9saWNpZXMvZGVmYXVsdC1wb2xpY3ktZXZhbHVhdG9yLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFHQSx3REFBd0Q7QUFDakQsTUFBTSxzQkFBc0I7SUFHakMscUNBQXFDO0lBQ3JDLElBQUksTUFBTTtRQUNSLE9BQU8sRUFBRSxDQUFDO0lBQ1osQ0FBQztJQUVELDZDQUE2QztJQUM3QyxJQUFJLGNBQWM7UUFDaEIsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBRUQsMENBQTBDO0lBQzFDLFdBQVcsQ0FBQyxPQUFxQjtRQUMvQixPQUFPLE9BQU8sQ0FBQztJQUNqQixDQUFDO0lBRUQsdUNBQXVDO0lBQ3ZDLFFBQVEsQ0FBQyxPQUFxQjtRQUM1QixPQUFPLE9BQU8sQ0FBQztJQUNqQixDQUFDO0NBQ0YiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9wb2xpY2llcy9kZWZhdWx0LXBvbGljeS1ldmFsdWF0b3IudHM/YzMzNiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQb2xpY3lFdmFsdWF0b3IgfSBmcm9tIFwiLi4vYWJzdHJhY3Rpb25zXCI7XG5pbXBvcnQgeyBOb1BvbGljeSB9IGZyb20gXCIuLi90eXBlc1wiO1xuXG4vKiogQSBwb2xpY3kgZXZhbHVhdG9yIHRoYXQgZG9lcyBub3QgYXBwbHkgYW55IHBvbGljeSAqL1xuZXhwb3J0IGNsYXNzIERlZmF1bHRQb2xpY3lFdmFsdWF0b3I8UG9saWN5VGFyZ2V0PlxuICBpbXBsZW1lbnRzIFBvbGljeUV2YWx1YXRvcjxOb1BvbGljeSwgUG9saWN5VGFyZ2V0Plxue1xuICAvKioge0BsaW5rIFBvbGljeUV2YWx1YXRvci5wb2xpY3l9ICovXG4gIGdldCBwb2xpY3koKSB7XG4gICAgcmV0dXJuIHt9O1xuICB9XG5cbiAgLyoqIHtAbGluayBQb2xpY3lFdmFsdWF0b3IucG9saWN5SW5FZmZlY3R9ICovXG4gIGdldCBwb2xpY3lJbkVmZmVjdCgpIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cblxuICAvKioge0BsaW5rIFBvbGljeUV2YWx1YXRvci5hcHBseVBvbGljeX0gKi9cbiAgYXBwbHlQb2xpY3kob3B0aW9uczogUG9saWN5VGFyZ2V0KSB7XG4gICAgcmV0dXJuIG9wdGlvbnM7XG4gIH1cblxuICAvKioge0BsaW5rIFBvbGljeUV2YWx1YXRvci5zYW5pdGl6ZX0gKi9cbiAgc2FuaXRpemUob3B0aW9uczogUG9saWN5VGFyZ2V0KSB7XG4gICAgcmV0dXJuIG9wdGlvbnM7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/default-policy-evaluator.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/dynamic-password-policy-constraints.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/dynamic-password-policy-constraints.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DynamicPasswordPolicyConstraints: () => (/* binding */ DynamicPasswordPolicyConstraints)\n/* harmony export */ });\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _constraints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constraints */ \"../../libs/tools/generator/core/src/policies/constraints.ts\");\n/* harmony import */ var _password_policy_constraints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./password-policy-constraints */ \"../../libs/tools/generator/core/src/policies/password-policy-constraints.ts\");\n\n\n\n/** Creates state constraints by blending policy and password settings. */\nclass DynamicPasswordPolicyConstraints {\n    /** Instantiates the object.\n     *  @param policy the password policy to enforce. This cannot be\n     *  `null` or `undefined`.\n     */\n    constructor(policy) {\n        const minLowercase = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.maybe)(policy.useLowercase, _constraints__WEBPACK_IMPORTED_MODULE_1__.AtLeastOne);\n        const minUppercase = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.maybe)(policy.useUppercase, _constraints__WEBPACK_IMPORTED_MODULE_1__.AtLeastOne);\n        const minNumber = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(policy.numberCount || (policy.useNumbers && _constraints__WEBPACK_IMPORTED_MODULE_1__.AtLeastOne.min), _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minDigits);\n        const minSpecial = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(policy.specialCount || (policy.useSpecial && _constraints__WEBPACK_IMPORTED_MODULE_1__.AtLeastOne.min), _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minSpecialCharacters);\n        const baseLength = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(policy.minLength, _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length);\n        const subLengths = [minLowercase, minUppercase, minNumber, minSpecial];\n        const length = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeastSum)(baseLength, subLengths);\n        this.constraints = Object.freeze({\n            policyInEffect: policyInEffect(policy),\n            lowercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.readonlyTrueWhen)(policy.useLowercase),\n            uppercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.readonlyTrueWhen)(policy.useUppercase),\n            number: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.readonlyTrueWhen)(policy.useNumbers),\n            special: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.readonlyTrueWhen)(policy.useSpecial),\n            length,\n            minLowercase,\n            minUppercase,\n            minNumber,\n            minSpecial,\n        });\n    }\n    calibrate(state) {\n        var _a, _b, _c, _d, _e, _f;\n        // decide which constraints are active\n        const lowercase = state.lowercase || ((_a = this.constraints.lowercase) === null || _a === void 0 ? void 0 : _a.requiredValue) || false;\n        const uppercase = state.uppercase || ((_b = this.constraints.uppercase) === null || _b === void 0 ? void 0 : _b.requiredValue) || false;\n        const number = state.number || ((_c = this.constraints.number) === null || _c === void 0 ? void 0 : _c.requiredValue) || false;\n        const special = state.special || ((_d = this.constraints.special) === null || _d === void 0 ? void 0 : _d.requiredValue) || false;\n        // minimum constraints cannot `atLeast(state...) because doing so would force\n        // the constrained value to only increase\n        const constraints = Object.assign(Object.assign({}, this.constraints), { minLowercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.maybe)(lowercase, (_e = this.constraints.minLowercase) !== null && _e !== void 0 ? _e : _constraints__WEBPACK_IMPORTED_MODULE_1__.AtLeastOne), minUppercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.maybe)(uppercase, (_f = this.constraints.minUppercase) !== null && _f !== void 0 ? _f : _constraints__WEBPACK_IMPORTED_MODULE_1__.AtLeastOne), minNumber: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.maybe)(number, this.constraints.minNumber), minSpecial: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.maybe)(special, this.constraints.minSpecial) });\n        // lower bound of length must always at least fit its sub-lengths\n        constraints.length = (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeastSum)(this.constraints.length, [\n            (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(state.minNumber, constraints.minNumber),\n            (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(state.minSpecial, constraints.minSpecial),\n            (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(state.minLowercase, constraints.minLowercase),\n            (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(state.minUppercase, constraints.minUppercase),\n        ]);\n        const stateConstraints = new _password_policy_constraints__WEBPACK_IMPORTED_MODULE_2__.PasswordPolicyConstraints(constraints);\n        return stateConstraints;\n    }\n}\nfunction policyInEffect(policy) {\n    const policies = [\n        policy.useUppercase,\n        policy.useLowercase,\n        policy.useNumbers,\n        policy.useSpecial,\n        policy.minLength > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length.min,\n        policy.numberCount > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minDigits.min,\n        policy.specialCount > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minSpecialCharacters.min,\n    ];\n    return policies.includes(true);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 9380 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/dynamic-password-policy-constraints.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/index.ts":
/*!*************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/index.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultPolicyEvaluator: () => (/* reexport safe */ _default_policy_evaluator__WEBPACK_IMPORTED_MODULE_0__.DefaultPolicyEvaluator),\n/* harmony export */   DynamicPasswordPolicyConstraints: () => (/* reexport safe */ _dynamic_password_policy_constraints__WEBPACK_IMPORTED_MODULE_1__.DynamicPasswordPolicyConstraints),\n/* harmony export */   PassphraseGeneratorOptionsEvaluator: () => (/* reexport safe */ _passphrase_generator_options_evaluator__WEBPACK_IMPORTED_MODULE_2__.PassphraseGeneratorOptionsEvaluator),\n/* harmony export */   PassphrasePolicyConstraints: () => (/* reexport safe */ _passphrase_policy_constraints__WEBPACK_IMPORTED_MODULE_3__.PassphrasePolicyConstraints),\n/* harmony export */   PasswordGeneratorOptionsEvaluator: () => (/* reexport safe */ _password_generator_options_evaluator__WEBPACK_IMPORTED_MODULE_4__.PasswordGeneratorOptionsEvaluator),\n/* harmony export */   passphraseLeastPrivilege: () => (/* reexport safe */ _passphrase_least_privilege__WEBPACK_IMPORTED_MODULE_5__.passphraseLeastPrivilege),\n/* harmony export */   passwordLeastPrivilege: () => (/* reexport safe */ _password_least_privilege__WEBPACK_IMPORTED_MODULE_6__.passwordLeastPrivilege)\n/* harmony export */ });\n/* harmony import */ var _default_policy_evaluator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-policy-evaluator */ \"../../libs/tools/generator/core/src/policies/default-policy-evaluator.ts\");\n/* harmony import */ var _dynamic_password_policy_constraints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dynamic-password-policy-constraints */ \"../../libs/tools/generator/core/src/policies/dynamic-password-policy-constraints.ts\");\n/* harmony import */ var _passphrase_generator_options_evaluator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./passphrase-generator-options-evaluator */ \"../../libs/tools/generator/core/src/policies/passphrase-generator-options-evaluator.ts\");\n/* harmony import */ var _passphrase_policy_constraints__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./passphrase-policy-constraints */ \"../../libs/tools/generator/core/src/policies/passphrase-policy-constraints.ts\");\n/* harmony import */ var _password_generator_options_evaluator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./password-generator-options-evaluator */ \"../../libs/tools/generator/core/src/policies/password-generator-options-evaluator.ts\");\n/* harmony import */ var _passphrase_least_privilege__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./passphrase-least-privilege */ \"../../libs/tools/generator/core/src/policies/passphrase-least-privilege.ts\");\n/* harmony import */ var _password_least_privilege__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./password-least-privilege */ \"../../libs/tools/generator/core/src/policies/password-least-privilege.ts\");\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvcG9saWNpZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBb0U7QUFDcUI7QUFDTTtBQUNqQjtBQUNhO0FBQ25CO0FBQ0oiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9jb3JlL3NyYy9wb2xpY2llcy9pbmRleC50cz8wNjJiIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IERlZmF1bHRQb2xpY3lFdmFsdWF0b3IgfSBmcm9tIFwiLi9kZWZhdWx0LXBvbGljeS1ldmFsdWF0b3JcIjtcbmV4cG9ydCB7IER5bmFtaWNQYXNzd29yZFBvbGljeUNvbnN0cmFpbnRzIH0gZnJvbSBcIi4vZHluYW1pYy1wYXNzd29yZC1wb2xpY3ktY29uc3RyYWludHNcIjtcbmV4cG9ydCB7IFBhc3NwaHJhc2VHZW5lcmF0b3JPcHRpb25zRXZhbHVhdG9yIH0gZnJvbSBcIi4vcGFzc3BocmFzZS1nZW5lcmF0b3Itb3B0aW9ucy1ldmFsdWF0b3JcIjtcbmV4cG9ydCB7IFBhc3NwaHJhc2VQb2xpY3lDb25zdHJhaW50cyB9IGZyb20gXCIuL3Bhc3NwaHJhc2UtcG9saWN5LWNvbnN0cmFpbnRzXCI7XG5leHBvcnQgeyBQYXNzd29yZEdlbmVyYXRvck9wdGlvbnNFdmFsdWF0b3IgfSBmcm9tIFwiLi9wYXNzd29yZC1nZW5lcmF0b3Itb3B0aW9ucy1ldmFsdWF0b3JcIjtcbmV4cG9ydCB7IHBhc3NwaHJhc2VMZWFzdFByaXZpbGVnZSB9IGZyb20gXCIuL3Bhc3NwaHJhc2UtbGVhc3QtcHJpdmlsZWdlXCI7XG5leHBvcnQgeyBwYXNzd29yZExlYXN0UHJpdmlsZWdlIH0gZnJvbSBcIi4vcGFzc3dvcmQtbGVhc3QtcHJpdmlsZWdlXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/passphrase-generator-options-evaluator.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/passphrase-generator-options-evaluator.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PassphraseGeneratorOptionsEvaluator: () => (/* binding */ PassphraseGeneratorOptionsEvaluator)\n/* harmony export */ });\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n\n/** Enforces policy for passphrase generation options.\n */\nclass PassphraseGeneratorOptionsEvaluator {\n    /** Instantiates the evaluator.\n     * @param policy The policy applied by the evaluator. When this conflicts with\n     *               the defaults, the policy takes precedence.\n     */\n    constructor(policy) {\n        function createBoundary(value, defaultBoundary) {\n            const boundary = {\n                min: Math.max(defaultBoundary.min, value),\n                max: Math.max(defaultBoundary.max, value),\n            };\n            return boundary;\n        }\n        this.policy = structuredClone(policy);\n        this.numWords = createBoundary(policy.minNumberWords, _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseBoundaries.numWords);\n    }\n    /** {@link PolicyEvaluator.policyInEffect} */\n    get policyInEffect() {\n        const policies = [\n            this.policy.capitalize,\n            this.policy.includeNumber,\n            this.policy.minNumberWords > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseBoundaries.numWords.min,\n        ];\n        return policies.includes(true);\n    }\n    /** Apply policy to the input options.\n     *  @param options The options to build from. These options are not altered.\n     *  @returns A new password generation request with policy applied.\n     */\n    applyPolicy(options) {\n        function fitToBounds(value, boundaries) {\n            const { min, max } = boundaries;\n            const withUpperBound = Math.min(value !== null && value !== void 0 ? value : boundaries.min, max);\n            const withLowerBound = Math.max(withUpperBound, min);\n            return withLowerBound;\n        }\n        // apply policy overrides\n        const capitalize = this.policy.capitalize || options.capitalize || false;\n        const includeNumber = this.policy.includeNumber || options.includeNumber || false;\n        // apply boundaries\n        const numWords = fitToBounds(options.numWords, this.numWords);\n        return Object.assign(Object.assign({}, options), { numWords,\n            capitalize,\n            includeNumber });\n    }\n    /** Ensures internal options consistency.\n     *  @param options The options to cascade. These options are not altered.\n     *  @returns A passphrase generation request with cascade applied.\n     */\n    sanitize(options) {\n        var _a, _b;\n        // ensure words are separated by a single character or the empty string\n        const wordSeparator = options.wordSeparator === \"\"\n            ? \"\"\n            : ((_b = (_a = options.wordSeparator) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseGenerationOptions.wordSeparator);\n        return Object.assign(Object.assign({}, options), { wordSeparator });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7536 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/passphrase-generator-options-evaluator.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/passphrase-least-privilege.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/passphrase-least-privilege.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   passphraseLeastPrivilege: () => (/* binding */ passphraseLeastPrivilege)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n\n/** Reduces a policy into an accumulator by accepting the most restrictive\n *  values from each policy.\n *  @param acc the accumulator\n *  @param policy the policy to reduce\n *  @returns the most restrictive values between the policy and accumulator.\n */\nfunction passphraseLeastPrivilege(acc, policy) {\n    var _a;\n    if (policy.type !== _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator) {\n        return acc;\n    }\n    return {\n        minNumberWords: Math.max(acc.minNumberWords, (_a = policy.data.minNumberWords) !== null && _a !== void 0 ? _a : acc.minNumberWords),\n        capitalize: policy.data.capitalize || acc.capitalize,\n        includeNumber: policy.data.includeNumber || acc.includeNumber,\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvcG9saWNpZXMvcGFzc3BocmFzZS1sZWFzdC1wcml2aWxlZ2UudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBbUU7QUFPbkU7Ozs7O0dBS0c7QUFDSSxTQUFTLHdCQUF3QixDQUN0QyxHQUE4Qix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1xuXG4vKiogUmVkdWNlcyBhIHBvbGljeSBpbnRvIGFuIGFjY3VtdWxhdG9yIGJ5IGFjY2VwdGluZyB0aGUgbW9zdCByZXN0cmljdGl2ZVxuICogIHZhbHVlcyBmcm9tIGVhY2ggcG9saWN5LlxuICogIEBwYXJhbSBhY2MgdGhlIGFjY3VtdWxhdG9yXG4gKiAgQHBhcmFtIHBvbGljeSB0aGUgcG9saWN5IHRvIHJlZHVjZVxuICogIEByZXR1cm5zIHRoZSBtb3N0IHJlc3RyaWN0aXZlIHZhbHVlcyBiZXR3ZWVuIHRoZSBwb2xpY3kgYW5kIGFjY3VtdWxhdG9yLlxuICovXG5leHBvcnQgZnVuY3Rpb24gcGFzc3BocmFzZUxlYXN0UHJpdmlsZWdlKFxuICBhY2M6IFBhc3NwaHJhc2VHZW5lcmF0b3JQb2xpY3ksXG4gIHBvbGljeTogUG9saWN5LFxuKTogUGFzc3BocmFzZUdlbmVyYXRvclBvbGljeSB7XG4gIGlmIChwb2xpY3kudHlwZSAhPT0gUG9saWN5VHlwZS5QYXNzd29yZEdlbmVyYXRvcikge1xuICAgIHJldHVybiBhY2M7XG4gIH1cblxuICByZXR1cm4ge1xuICAgIG1pbk51bWJlcldvcmRzOiBNYXRoLm1heChhY2MubWluTnVtYmVyV29yZHMsIHBvbGljeS5kYXRhLm1pbk51bWJlcldvcmRzID8/IGFjYy5taW5OdW1iZXJXb3JkcyksXG4gICAgY2FwaXRhbGl6ZTogcG9saWN5LmRhdGEuY2FwaXRhbGl6ZSB8fCBhY2MuY2FwaXRhbGl6ZSxcbiAgICBpbmNsdWRlTnVtYmVyOiBwb2xpY3kuZGF0YS5pbmNsdWRlTnVtYmVyIHx8IGFjYy5pbmNsdWRlTnVtYmVyLFxuICB9O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/passphrase-least-privilege.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/passphrase-policy-constraints.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/passphrase-policy-constraints.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PassphrasePolicyConstraints: () => (/* binding */ PassphrasePolicyConstraints)\n/* harmony export */ });\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _constraints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constraints */ \"../../libs/tools/generator/core/src/policies/constraints.ts\");\n\n\nclass PassphrasePolicyConstraints {\n    /** Creates a passphrase policy constraints\n     *  @param policy the password policy to enforce. This cannot be\n     *  `null` or `undefined`.\n     */\n    constructor(policy) {\n        this.policy = policy;\n        this.constraints = {\n            policyInEffect: policyInEffect(policy),\n            wordSeparator: { minLength: 0, maxLength: 1 },\n            capitalize: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.readonlyTrueWhen)(policy.capitalize),\n            includeNumber: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.readonlyTrueWhen)(policy.includeNumber),\n            numWords: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.atLeast)(policy.minNumberWords, _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseBoundaries.numWords),\n        };\n    }\n    adjust(state) {\n        const result = {\n            wordSeparator: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitLength)(state.wordSeparator, this.constraints.wordSeparator, {\n                fillString: _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseGenerationOptions.wordSeparator,\n            }),\n            capitalize: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.enforceConstant)(state.capitalize, this.constraints.capitalize),\n            includeNumber: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.enforceConstant)(state.includeNumber, this.constraints.includeNumber),\n            numWords: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitToBounds)(state.numWords, this.constraints.numWords),\n        };\n        return result;\n    }\n    fix(state) {\n        return state;\n    }\n}\nfunction policyInEffect(policy) {\n    const policies = [\n        policy.capitalize,\n        policy.includeNumber,\n        policy.minNumberWords > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPassphraseBoundaries.numWords.min,\n    ];\n    return policies.includes(true);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4596 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/passphrase-policy-constraints.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/password-generator-options-evaluator.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/password-generator-options-evaluator.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordGeneratorOptionsEvaluator: () => (/* binding */ PasswordGeneratorOptionsEvaluator)\n/* harmony export */ });\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n\n/** Enforces policy for password generation.\n */\nclass PasswordGeneratorOptionsEvaluator {\n    // Constraints<PasswordGenerationOptions> compatibility\n    get minNumber() {\n        return this.minDigits;\n    }\n    get minSpecial() {\n        return this.minSpecialCharacters;\n    }\n    /** Instantiates the evaluator.\n     * @param policy The policy applied by the evaluator. When this conflicts with\n     *               the defaults, the policy takes precedence.\n     */\n    constructor(policy) {\n        function createBoundary(value, defaultBoundary) {\n            const boundary = {\n                min: Math.max(defaultBoundary.min, value),\n                max: Math.max(defaultBoundary.max, value),\n            };\n            return boundary;\n        }\n        this.policy = structuredClone(policy);\n        this.minDigits = createBoundary(policy.numberCount, _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minDigits);\n        this.minSpecialCharacters = createBoundary(policy.specialCount, _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minSpecialCharacters);\n        // the overall length should be at least as long as the sum of the minimums\n        const minConsistentLength = this.minDigits.min + this.minSpecialCharacters.min;\n        const minPolicyLength = policy.minLength > 0 ? policy.minLength : _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length.min;\n        const minLength = Math.max(minPolicyLength, minConsistentLength, _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length.min);\n        this.length = {\n            min: minLength,\n            max: Math.max(_data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length.max, minLength),\n        };\n    }\n    /** {@link PolicyEvaluator.policyInEffect} */\n    get policyInEffect() {\n        const policies = [\n            this.policy.useUppercase,\n            this.policy.useLowercase,\n            this.policy.useNumbers,\n            this.policy.useSpecial,\n            this.policy.minLength > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.length.min,\n            this.policy.numberCount > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minDigits.min,\n            this.policy.specialCount > _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordBoundaries.minSpecialCharacters.min,\n        ];\n        return policies.includes(true);\n    }\n    /** {@link PolicyEvaluator.applyPolicy} */\n    applyPolicy(options) {\n        function fitToBounds(value, boundaries) {\n            const { min, max } = boundaries;\n            const withUpperBound = Math.min(value || 0, max);\n            const withLowerBound = Math.max(withUpperBound, min);\n            return withLowerBound;\n        }\n        // apply policy overrides\n        const uppercase = this.policy.useUppercase || options.uppercase || false;\n        const lowercase = this.policy.useLowercase || options.lowercase || false;\n        // these overrides can cascade numeric fields to boolean fields\n        const number = this.policy.useNumbers || options.number || options.minNumber > 0;\n        const special = this.policy.useSpecial || options.special || options.minSpecial > 0;\n        // apply boundaries; the boundaries can cascade boolean fields to numeric fields\n        const length = fitToBounds(options.length, this.length);\n        const minNumber = fitToBounds(options.minNumber, this.minDigits);\n        const minSpecial = fitToBounds(options.minSpecial, this.minSpecialCharacters);\n        return Object.assign(Object.assign({}, options), { length,\n            uppercase,\n            lowercase,\n            number,\n            minNumber,\n            special,\n            minSpecial });\n    }\n    /** {@link PolicyEvaluator.sanitize} */\n    sanitize(options) {\n        var _a;\n        function cascade(enabled, value) {\n            const enabledResult = enabled !== null && enabled !== void 0 ? enabled : value > 0;\n            const valueResult = enabledResult ? value || 1 : 0;\n            return [enabledResult, valueResult];\n        }\n        const [lowercase, minLowercase] = cascade(options.lowercase, options.minLowercase);\n        const [uppercase, minUppercase] = cascade(options.uppercase, options.minUppercase);\n        const [number, minNumber] = cascade(options.number, options.minNumber);\n        const [special, minSpecial] = cascade(options.special, options.minSpecial);\n        // minimums can only increase the length\n        const minConsistentLength = minLowercase + minUppercase + minNumber + minSpecial;\n        const minLength = Math.max(minConsistentLength, this.length.min);\n        const length = Math.max((_a = options.length) !== null && _a !== void 0 ? _a : minLength, minLength);\n        return Object.assign(Object.assign({}, options), { length,\n            minLength,\n            lowercase,\n            minLowercase,\n            uppercase,\n            minUppercase,\n            number,\n            minNumber,\n            special,\n            minSpecial });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 13308 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/password-generator-options-evaluator.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/password-least-privilege.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/password-least-privilege.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   passwordLeastPrivilege: () => (/* binding */ passwordLeastPrivilege)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n\n/** Reduces a policy into an accumulator by accepting the most restrictive\n *  values from each policy.\n *  @param acc the accumulator\n *  @param policy the policy to reduce\n *  @returns the most restrictive values between the policy and accumulator.\n */\nfunction passwordLeastPrivilege(acc, policy) {\n    var _a, _b, _c;\n    if (policy.type !== _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator || !policy.enabled) {\n        return acc;\n    }\n    return {\n        minLength: Math.max(acc.minLength, (_a = policy.data.minLength) !== null && _a !== void 0 ? _a : acc.minLength),\n        useUppercase: policy.data.useUpper || acc.useUppercase,\n        useLowercase: policy.data.useLower || acc.useLowercase,\n        useNumbers: policy.data.useNumbers || acc.useNumbers,\n        numberCount: Math.max(acc.numberCount, (_b = policy.data.minNumbers) !== null && _b !== void 0 ? _b : acc.numberCount),\n        useSpecial: policy.data.useSpecial || acc.useSpecial,\n        specialCount: Math.max(acc.specialCount, (_c = policy.data.minSpecial) !== null && _c !== void 0 ? _c : acc.specialCount),\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvcG9saWNpZXMvcGFzc3dvcmQtbGVhc3QtcHJpdmlsZWdlLnRzIiwibWFwcGluZ3MiOiI7Ozs7O0FBQW1FO0FBT25FOzs7OztHQUtHO0FBQ0ksU0FBUyxzQkFBc0IsQ0FBQyxHQUE0QixFQUFFLE1BQWM7O0lBQ2pGLElBQUksTUFBTSxDQUFDLElBQUksS0FBSyw2RUFBVSxDQUFDLGlCQUFpQixJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sRUFBRSxDQUFDO1FBQ3BFLE9BQU8sR0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ksXG4gICAgdXNlVXBwZXJjYXNlOiBwb2xpY3kuZGF0YS51c2VVcHBlciB8fCBhY2MudXNlVXBwZXJjYXNlLFxuICAgIHVzZUxvd2VyY2FzZTogcG9saWN5LmRhdGEudXNlTG93ZXIgfHwgYWNjLnVzZUxvd2VyY2FzZSxcbiAgICB1c2VOdW1iZXJzOiBwb2xpY3kuZGF0YS51c2VOdW1iZXJzIHx8IGFjYy51c2VOdW1iZXJzLFxuICAgIG51bWJlckNvdW50OiBNYXRoLm1heChhY2MubnVtYmVyQ291bnQsIHBvbGljeS5kYXRhLm1pbk51bWJlcnMgPz8gYWNjLm51bWJlckNvdW50KSxcbiAgICB1c2VTcGVjaWFsOiBwb2xpY3kuZGF0YS51c2VTcGVjaWFsIHx8IGFjYy51c2VTcGVjaWFsLFxuICAgIHNwZWNpYWxDb3VudDogTWF0aC5tYXgoYWNjLnNwZWNpYWxDb3VudCwgcG9saWN5LmRhdGEubWluU3BlY2lhbCA/PyBhY2Muc3BlY2lhbENvdW50KSxcbiAgfTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/password-least-privilege.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/policies/password-policy-constraints.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/policies/password-policy-constraints.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordPolicyConstraints: () => (/* binding */ PasswordPolicyConstraints)\n/* harmony export */ });\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _constraints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constraints */ \"../../libs/tools/generator/core/src/policies/constraints.ts\");\n\n\nclass PasswordPolicyConstraints {\n    /** Creates a password policy constraints\n     *  @param constraints Constraints derived from the policy and application-defined defaults\n     */\n    constructor(constraints) {\n        this.constraints = constraints;\n    }\n    adjust(state) {\n        // constrain values\n        const result = Object.assign(Object.assign({}, (state !== null && state !== void 0 ? state : _data__WEBPACK_IMPORTED_MODULE_0__.DefaultPasswordGenerationOptions)), { length: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitToBounds)(state.length, this.constraints.length), lowercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.enforceConstant)(state.lowercase, this.constraints.lowercase), uppercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.enforceConstant)(state.uppercase, this.constraints.uppercase), number: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.enforceConstant)(state.number, this.constraints.number), special: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.enforceConstant)(state.special, this.constraints.special), minLowercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitToBounds)(state.minLowercase, this.constraints.minLowercase), minUppercase: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitToBounds)(state.minUppercase, this.constraints.minUppercase), minNumber: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitToBounds)(state.minNumber, this.constraints.minNumber), minSpecial: (0,_constraints__WEBPACK_IMPORTED_MODULE_1__.fitToBounds)(state.minSpecial, this.constraints.minSpecial) });\n        // ensure include flags are consistent with the constrained values\n        result.lowercase || (result.lowercase = state.minLowercase > 0);\n        result.uppercase || (result.uppercase = state.minUppercase > 0);\n        result.number || (result.number = state.minNumber > 0);\n        result.special || (result.special = state.minSpecial > 0);\n        // when all flags are disabled, enable a few\n        const anyEnabled = [result.lowercase, result.uppercase, result.number, result.special].some((flag) => flag);\n        if (!anyEnabled) {\n            result.lowercase = true;\n            result.uppercase = true;\n        }\n        return result;\n    }\n    fix(state) {\n        return state;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5424 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/policies/password-policy-constraints.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/rx.ts":
/*!*************************************************!*\
  !*** ../../libs/tools/generator/core/src/rx.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   mapPolicyToConstraints: () => (/* binding */ mapPolicyToConstraints),\n/* harmony export */   mapPolicyToEvaluator: () => (/* binding */ mapPolicyToEvaluator),\n/* harmony export */   newDefaultEvaluator: () => (/* binding */ newDefaultEvaluator)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/rx */ \"../../libs/common/src/tools/rx.ts\");\n/* harmony import */ var _policies__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./policies */ \"../../libs/tools/generator/core/src/policies/index.ts\");\n\n\n\n/** Maps an administrative console policy to a policy evaluator using the provided configuration.\n *  @param configuration the configuration that constructs the evaluator.\n */\nfunction mapPolicyToEvaluator(configuration) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_1__.reduceCollection)(configuration.combine, configuration.disabledValue), (0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_1__.distinctIfShallowMatch)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(configuration.createEvaluator));\n}\n/** Maps an administrative console policy to constraints using the provided configuration.\n *  @param configuration the configuration that constructs the constraints.\n */\nfunction mapPolicyToConstraints(configuration) {\n    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_1__.reduceCollection)(configuration.combine, configuration.disabledValue), (0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_1__.distinctIfShallowMatch)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(configuration.toConstraints));\n}\n/** Constructs a method that maps a policy to the default (no-op) policy. */\nfunction newDefaultEvaluator() {\n    return () => {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pipe)((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((_) => new _policies__WEBPACK_IMPORTED_MODULE_2__.DefaultPolicyEvaluator()));\n    };\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvcngudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFpQztBQUVxRDtBQUVsQztBQUdwRDs7R0FFRztBQUNJLFNBQVMsb0JBQW9CLENBQ2xDLGFBQXFEO0lBRXJELE9BQU8sMENBQUksQ0FDVCw0RUFBZ0IsQ0FBQyxhQUFhLENBQUMsT0FBTyxFQUFFLGFBQWEsQ0FBQyxhQUFhLENBQUMsRUFDcEUsa0ZBQXNCLEVBQUUsRUFDeEIseUNBQUcsQ0FBQyxhQUFhLENBQUMsZUFBZSxDQUFDLENBQ25DLENBQUM7QUFDSixDQUFDO0FBRUQ7O0dBRUc7QUFDSSxTQUFTLHNCQUFzQixDQUNwQyxhQUFxRDtJQUVyRCxPQUFPLDBDQUFJLENBQ1QsNEVBQWdCLENBQUMsYUFBYSxDQUFDLE9BQU8sRUFBRSxhQUFhLENBQUMsYUFBYSxDQUFDLEVBQ3B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jdGlvbiBuZXdEZWZhdWx0RXZhbHVhdG9yPFRhcmdldD4oKSB7XG4gIHJldHVybiAoKSA9PiB7XG4gICAgcmV0dXJuIHBpcGUobWFwKChfKSA9PiBuZXcgRGVmYXVsdFBvbGljeUV2YWx1YXRvcjxUYXJnZXQ+KCkpKTtcbiAgfTtcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/rx.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/services/credential-generator.service.ts":
/*!************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/services/credential-generator.service.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialGeneratorService: () => (/* binding */ CredentialGeneratorService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_integration_rpc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/integration/rpc */ \"../../libs/common/src/tools/integration/rpc/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/rx */ \"../../libs/common/src/tools/rx.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_padded_data_packer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/tools/state/padded-data-packer */ \"../../libs/common/src/tools/state/padded-data-packer.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_user_key_encryptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/tools/state/user-key-encryptor */ \"../../libs/common/src/tools/state/user-key-encryptor.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_user_state_subject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/tools/state/user-state-subject */ \"../../libs/common/src/tools/state/user-state-subject.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _policies_available_algorithms_policy__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../policies/available-algorithms-policy */ \"../../libs/tools/generator/core/src/policies/available-algorithms-policy.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../types */ \"../../libs/tools/generator/core/src/types/index.ts\");\n/* harmony import */ var _credential_preferences__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./credential-preferences */ \"../../libs/tools/generator/core/src/services/credential-preferences.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\nconst OPTIONS_FRAME_SIZE = 512;\nclass CredentialGeneratorService {\n    constructor(randomizer, stateProvider, policyService, apiService, i18nService, encryptService, keyService) {\n        this.randomizer = randomizer;\n        this.stateProvider = stateProvider;\n        this.policyService = policyService;\n        this.apiService = apiService;\n        this.i18nService = i18nService;\n        this.encryptService = encryptService;\n        this.keyService = keyService;\n    }\n    getDependencyProvider() {\n        return {\n            client: new _bitwarden_common_tools_integration_rpc__WEBPACK_IMPORTED_MODULE_2__.RestClient(this.apiService, this.i18nService),\n            i18nService: this.i18nService,\n            randomizer: this.randomizer,\n        };\n    }\n    // FIXME: the rxjs methods of this service can be a lot more resilient if\n    // `Subjects` are introduced where sharing occurs\n    /** Generates a stream of credentials\n     * @param configuration determines which generator's settings are loaded\n     * @param dependencies.on$ when specified, a new credential is emitted when\n     *   this emits. Otherwise, a new credential is emitted when the settings\n     *   update.\n     */\n    generate$(configuration, dependencies) {\n        var _a, _b;\n        // instantiate the engine\n        const engine = configuration.engine.create(this.getDependencyProvider());\n        // stream blocks until all of these values are received\n        const website$ = (_a = dependencies === null || dependencies === void 0 ? void 0 : dependencies.website$) !== null && _a !== void 0 ? _a : new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(null);\n        const request$ = website$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((website) => ({ website })));\n        const settings$ = this.settings$(configuration, dependencies);\n        // if on$ triggers before settings are loaded, trigger as soon\n        // as they become available.\n        let readyOn$ = null;\n        if (dependencies === null || dependencies === void 0 ? void 0 : dependencies.on$) {\n            const NO_EMISSIONS = {};\n            const ready$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([settings$, request$]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.first)(null, NO_EMISSIONS), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((value) => value !== NO_EMISSIONS), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.share)());\n            readyOn$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)((_b = dependencies.on$) === null || _b === void 0 ? void 0 : _b.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)(() => ready$)), dependencies.on$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.skipUntil)(ready$)));\n        }\n        // generation proper\n        const generate$ = (readyOn$ !== null && readyOn$ !== void 0 ? readyOn$ : settings$).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.withLatestFrom)(request$, settings$), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)(([, request, settings]) => engine.generate(request, settings)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)((0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_3__.anyComplete)([request$, settings$])));\n        return generate$;\n    }\n    algorithms$(category, dependencies) {\n        var _a;\n        // any cast required here because TypeScript fails to bind `category`\n        // to the union-typed overload of `algorithms`.\n        const algorithms = this.algorithms(category);\n        // fall back to default bindings\n        const userId$ = (_a = dependencies === null || dependencies === void 0 ? void 0 : dependencies.userId$) !== null && _a !== void 0 ? _a : this.stateProvider.activeUserId$;\n        // monitor completion\n        const completion$ = userId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.ignoreElements)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.endWith)(true));\n        // apply policy\n        const algorithms$ = userId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => {\n            // complete policy emissions otherwise `switchMap` holds `algorithms$` open indefinitely\n            const policies$ = this.policyService.getAll$(_bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.PolicyType.PasswordGenerator, userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((p) => new Set((0,_policies_available_algorithms_policy__WEBPACK_IMPORTED_MODULE_8__.availableAlgorithms)(p))), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)(completion$));\n            return policies$;\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((available) => {\n            const filtered = algorithms.filter((c) => (0,_types__WEBPACK_IMPORTED_MODULE_10__.isForwarderIntegration)(c.id) || available.has(c.id));\n            return filtered;\n        }));\n        return algorithms$;\n    }\n    algorithms(category) {\n        const categories = Array.isArray(category) ? category : [category];\n        const algorithms = categories\n            .flatMap((c) => _types__WEBPACK_IMPORTED_MODULE_10__.CredentialCategories[c])\n            .map((id) => this.algorithm(id))\n            .filter((info) => info !== null);\n        const forwarders = Object.keys(_data__WEBPACK_IMPORTED_MODULE_7__.Integrations)\n            .map((key) => {\n            const forwarder = { forwarder: _data__WEBPACK_IMPORTED_MODULE_7__.Integrations[key].id };\n            return this.algorithm(forwarder);\n        })\n            .filter((forwarder) => categories.includes(forwarder.category));\n        return algorithms.concat(forwarders);\n    }\n    /** Look up the metadata for a specific generator algorithm\n     *  @param id identifies the algorithm\n     *  @returns the requested metadata, or `null` if the metadata wasn't found.\n     */\n    algorithm(id) {\n        let generator = null;\n        let integration = null;\n        if ((0,_types__WEBPACK_IMPORTED_MODULE_10__.isForwarderIntegration)(id)) {\n            const forwarderConfig = (0,_data__WEBPACK_IMPORTED_MODULE_7__.getForwarderConfiguration)(id.forwarder);\n            integration = forwarderConfig;\n            if (forwarderConfig) {\n                generator = (0,_data__WEBPACK_IMPORTED_MODULE_7__.toCredentialGeneratorConfiguration)(forwarderConfig);\n            }\n        }\n        else {\n            generator = _data__WEBPACK_IMPORTED_MODULE_7__.Generators[id];\n        }\n        if (!generator) {\n            throw new Error(`Invalid credential algorithm: ${JSON.stringify(id)}`);\n        }\n        const info = {\n            id: generator.id,\n            category: generator.category,\n            name: integration ? integration.name : this.i18nService.t(generator.nameKey),\n            generate: this.i18nService.t(generator.generateKey),\n            generatedValue: this.i18nService.t(generator.generatedValueKey),\n            copy: this.i18nService.t(generator.copyKey),\n            onlyOnRequest: generator.onlyOnRequest,\n            request: generator.request,\n        };\n        if (generator.descriptionKey) {\n            info.description = this.i18nService.t(generator.descriptionKey);\n        }\n        return info;\n    }\n    encryptor$(userId) {\n        const packer = new _bitwarden_common_tools_state_padded_data_packer__WEBPACK_IMPORTED_MODULE_4__.PaddedDataPacker(OPTIONS_FRAME_SIZE);\n        const encryptor$ = this.keyService.userKey$(userId).pipe(\n        // complete when the account locks\n        (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeWhile)((key) => !!key), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((key) => {\n            const encryptor = new _bitwarden_common_tools_state_user_key_encryptor__WEBPACK_IMPORTED_MODULE_5__.UserKeyEncryptor(userId, this.encryptService, key, packer);\n            return { userId, encryptor };\n        }));\n        return encryptor$;\n    }\n    /** Get the settings for the provided configuration\n     * @param configuration determines which generator's settings are loaded\n     * @param dependencies.userId$ identifies the user to which the settings are bound.\n     *   If this parameter is not provided, the observable follows the active user and\n     *   may not complete.\n     * @returns an observable that emits settings\n     * @remarks the observable enforces policies on the settings\n     */\n    settings$(configuration, dependencies) {\n        var _a;\n        const userId$ = (_a = dependencies === null || dependencies === void 0 ? void 0 : dependencies.userId$) !== null && _a !== void 0 ? _a : this.stateProvider.activeUserId$;\n        const constraints$ = this.policy$(configuration, { userId$ });\n        const settings$ = userId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((userId) => !!userId), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => {\n            const state$ = new _bitwarden_common_tools_state_user_state_subject__WEBPACK_IMPORTED_MODULE_6__.UserStateSubject(configuration.settings.account, (key) => this.stateProvider.getUser(userId, key), { constraints$, singleUserEncryptor$: this.encryptor$(userId) });\n            return state$;\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((settings) => settings !== null && settings !== void 0 ? settings : structuredClone(configuration.settings.initial)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)((0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_3__.anyComplete)(userId$)));\n        return settings$;\n    }\n    /** Get a subject bound to credential generator preferences.\n     *  @param dependencies.singleUserId$ identifies the user to which the preferences are bound\n     *  @returns a promise that resolves with the subject once `dependencies.singleUserId$`\n     *   becomes available.\n     *  @remarks Preferences determine which algorithms are used when generating a\n     *   credential from a credential category (e.g. `PassX` or `Username`). Preferences\n     *   should not be used to hold navigation history. Use @bitwarden/generator-navigation\n     *   instead.\n     */\n    preferences(dependencies) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(dependencies.singleUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((userId) => !!userId)));\n            // FIXME: enforce policy\n            const subject = new _bitwarden_common_tools_state_user_state_subject__WEBPACK_IMPORTED_MODULE_6__.UserStateSubject(_credential_preferences__WEBPACK_IMPORTED_MODULE_11__.PREFERENCES, (key) => this.stateProvider.getUser(userId, key), { singleUserEncryptor$: this.encryptor$(userId) });\n            return subject;\n        });\n    }\n    /** Get a subject bound to a specific user's settings\n     * @param configuration determines which generator's settings are loaded\n     * @param dependencies.singleUserId$ identifies the user to which the settings are bound\n     * @returns a promise that resolves with the subject once\n     *  `dependencies.singleUserId$` becomes available.\n     * @remarks the subject enforces policy for the settings\n     */\n    settings(configuration, dependencies) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const userId = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(dependencies.singleUserId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((userId) => !!userId)));\n            const constraints$ = this.policy$(configuration, { userId$: dependencies.singleUserId$ });\n            const subject = new _bitwarden_common_tools_state_user_state_subject__WEBPACK_IMPORTED_MODULE_6__.UserStateSubject(configuration.settings.account, (key) => this.stateProvider.getUser(userId, key), { constraints$, singleUserEncryptor$: this.encryptor$(userId) });\n            return subject;\n        });\n    }\n    /** Get the policy constraints for the provided configuration\n     *  @param dependencies.userId$ determines which user's policy is loaded\n     *  @returns an observable that emits the policy once `dependencies.userId$`\n     *   and the policy become available.\n     */\n    policy$(configuration, dependencies) {\n        const completion$ = dependencies.userId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.ignoreElements)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.endWith)(true));\n        const constraints$ = dependencies.userId$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.switchMap)((userId) => {\n            // complete policy emissions otherwise `mergeMap` holds `policies$` open indefinitely\n            const policies$ = this.policyService\n                .getAll$(configuration.policy.type, userId)\n                .pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.takeUntil)(completion$));\n            return policies$;\n        }), (0,_rx__WEBPACK_IMPORTED_MODULE_9__.mapPolicyToConstraints)(configuration.policy));\n        return constraints$;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 30420 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/services/credential-generator.service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/services/credential-preferences.ts":
/*!******************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/services/credential-preferences.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PREFERENCES: () => (/* binding */ PREFERENCES)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n\n\n/** plaintext password generation options */\nconst PREFERENCES = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"credentialPreferences\", {\n    deserializer: (value) => {\n        var _a, _b;\n        const result = (_a = value) !== null && _a !== void 0 ? _a : {};\n        for (const key in _data__WEBPACK_IMPORTED_MODULE_1__.DefaultCredentialPreferences) {\n            // bind `key` to `category` to transmute the type\n            const category = key;\n            const preference = (_b = result[category]) !== null && _b !== void 0 ? _b : Object.assign({}, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultCredentialPreferences[category]);\n            if (typeof preference.updated === \"string\") {\n                preference.updated = new Date(preference.updated);\n            }\n            result[category] = preference;\n        }\n        return result;\n    },\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc2VydmljZXMvY3JlZGVudGlhbC1wcmVmZXJlbmNlcy50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBcUY7QUFFOUI7QUFHdkQsNENBQTRDO0FBQ3JDLE1BQU0sV0FBVyxHQUFHLElBQUksK0VBQWlCLENBQzlDLDRFQUFjLEVBQ2QsdUJBQXVCLEVBQ3ZCO0lBQ0UsWUFBWSxFQUFFLENBQUMsS0FBSyxFQUFFLEVBQUU7O1FBQ3RCLE1BQU0sTUFBTSxHQUFHLE1BQUMsS0FBYSxtQ0FBSSxFQUFFLENBQUM7UUFFcEMsS0FBSyxNQUFNLEdBQUcsSUFBSSwrREFBNEIsRUFBRSxDQUFDO1lBQy9DLGlEQUFpRDtZQUNqRCxNQUFNLFFBQVEsR0FBOEMsR0FBVSxDQUFDO1lBRXZFLE1BQU0sVUFBVSxHQUFHLFlBQU0sQ0FBQyxRQUFRLENBQUMscURBQVMsK0RBQTRCLENBQ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WFsaXplcjogKHZhbHVlKSA9PiB7XG4gICAgICBjb25zdCByZXN1bHQgPSAodmFsdWUgYXMgYW55KSA/PyB7fTtcblxuICAgICAgZm9yIChjb25zdCBrZXkgaW4gRGVmYXVsdENyZWRlbnRpYWxQcmVmZXJlbmNlcykge1xuICAgICAgICAvLyBiaW5kIGBrZXlgIHRvIGBjYXRlZ29yeWAgdG8gdHJhbnNtdXRlIHRoZSB0eXBlXG4gICAgICAgIGNvbnN0IGNhdGVnb3J5OiBrZXlvZiB0eXBlb2YgRGVmYXVsdENyZWRlbnRpYWxQcmVmZXJlbmNlcyA9IGtleSBhcyBhbnk7XG5cbiAgICAgICAgY29uc3QgcHJlZmVyZW5jZSA9IHJlc3VsdFtjYXRlZ29yeV0gPz8geyAuLi5EZWZhdWx0Q3JlZGVudGlhbFByZWZlcmVuY2VzW2NhdGVnb3J5XSB9O1xuICAgICAgICBpZiAodHlwZW9mIHByZWZlcmVuY2UudXBkYXRlZCA9PT0gXCJzdHJpbmdcIikge1xuICAgICAgICAgIHByZWZlcmVuY2UudXBkYXRlZCA9IG5ldyBEYXRlKHByZWZlcmVuY2UudXBkYXRlZCk7XG4gICAgICAgIH1cblxuICAgICAgICByZXN1bHRbY2F0ZWdvcnldID0gcHJlZmVyZW5jZTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9LFxuICAgIGNsZWFyT246IFtcImxvZ291dFwiXSxcbiAgfSxcbik7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/services/credential-preferences.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/services/default-generator.service.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/services/default-generator.service.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultGeneratorService: () => (/* binding */ DefaultGeneratorService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n/** {@link GeneratorServiceAbstraction} */\nclass DefaultGeneratorService {\n    /** Instantiates the generator service\n     * @param strategy tailors the service to a specific generator type\n     *            (e.g. password, passphrase)\n     * @param policy provides the policy to enforce\n     */\n    constructor(strategy, policy) {\n        this.strategy = strategy;\n        this.policy = policy;\n        this._evaluators$ = new Map();\n    }\n    /** {@link GeneratorService.options$} */\n    options$(userId) {\n        return this.strategy.durableState(userId).state$;\n    }\n    /** {@link GeneratorService.defaults$} */\n    defaults$(userId) {\n        return this.strategy.defaults$(userId);\n    }\n    /** {@link GeneratorService.saveOptions} */\n    saveOptions(userId, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.strategy.durableState(userId).update(() => options);\n        });\n    }\n    /** {@link GeneratorService.evaluator$} */\n    evaluator$(userId) {\n        let evaluator$ = this._evaluators$.get(userId);\n        if (!evaluator$) {\n            evaluator$ = this.createEvaluator(userId);\n            this._evaluators$.set(userId, evaluator$);\n        }\n        return evaluator$;\n    }\n    createEvaluator(userId) {\n        const evaluator$ = this.policy.getAll$(this.strategy.policy, userId).pipe(\n        // create the evaluator from the policies\n        this.strategy.toEvaluator());\n        return evaluator$;\n    }\n    /** {@link GeneratorService.enforcePolicy} */\n    enforcePolicy(userId, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const policy = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.evaluator$(userId));\n            const evaluated = policy.applyPolicy(options);\n            const sanitized = policy.sanitize(evaluated);\n            return sanitized;\n        });\n    }\n    /** {@link GeneratorService.generate} */\n    generate(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield this.strategy.generate(options);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5608 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/services/default-generator.service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/services/index.ts":
/*!*************************************************************!*\
  !*** ../../libs/tools/generator/core/src/services/index.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialGeneratorService: () => (/* reexport safe */ _credential_generator_service__WEBPACK_IMPORTED_MODULE_1__.CredentialGeneratorService),\n/* harmony export */   DefaultGeneratorService: () => (/* reexport safe */ _default_generator_service__WEBPACK_IMPORTED_MODULE_0__.DefaultGeneratorService)\n/* harmony export */ });\n/* harmony import */ var _default_generator_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-generator.service */ \"../../libs/tools/generator/core/src/services/default-generator.service.ts\");\n/* harmony import */ var _credential_generator_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./credential-generator.service */ \"../../libs/tools/generator/core/src/services/credential-generator.service.ts\");\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc2VydmljZXMvaW5kZXgudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFzRTtBQUNNIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc2VydmljZXMvaW5kZXgudHM/YTdmMyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBEZWZhdWx0R2VuZXJhdG9yU2VydmljZSB9IGZyb20gXCIuL2RlZmF1bHQtZ2VuZXJhdG9yLnNlcnZpY2VcIjtcbmV4cG9ydCB7IENyZWRlbnRpYWxHZW5lcmF0b3JTZXJ2aWNlIH0gZnJvbSBcIi4vY3JlZGVudGlhbC1nZW5lcmF0b3Iuc2VydmljZVwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/services/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/catchall-generator-strategy.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/catchall-generator-strategy.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CatchallGeneratorStrategy: () => (/* binding */ CatchallGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./storage */ \"../../libs/tools/generator/core/src/strategies/storage.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n/** Strategy for creating usernames using a catchall email address */\nclass CatchallGeneratorStrategy {\n    /** Instantiates the generation strategy\n     *  @param usernameService generates a catchall address for a domain\n     */\n    constructor(emailCalculator, emailRandomizer, stateProvider, defaultOptions = _data__WEBPACK_IMPORTED_MODULE_1__.DefaultCatchallOptions) {\n        this.emailCalculator = emailCalculator;\n        this.emailRandomizer = emailRandomizer;\n        this.stateProvider = stateProvider;\n        this.defaultOptions = defaultOptions;\n        // configuration\n        this.durableState = (0,_util__WEBPACK_IMPORTED_MODULE_3__.sharedStateByUserId)(_storage__WEBPACK_IMPORTED_MODULE_4__.CATCHALL_SETTINGS, this.stateProvider);\n        this.defaults$ = (0,_util__WEBPACK_IMPORTED_MODULE_3__.observe$PerUserId)(() => this.defaultOptions);\n        this.toEvaluator = (0,_rx__WEBPACK_IMPORTED_MODULE_2__.newDefaultEvaluator)();\n        this.policy = _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator;\n    }\n    // algorithm\n    generate(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.catchallType == null) {\n                options.catchallType = \"random\";\n            }\n            if (options.catchallType === \"website-name\") {\n                return yield this.emailCalculator.concatenate(options.website, options.catchallDomain);\n            }\n            return this.emailRandomizer.randomAsciiCatchall(options.catchallDomain);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc3RyYXRlZ2llcy9jYXRjaGFsbC1nZW5lcmF0b3Itc3RyYXRlZ3kudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQW1FO0FBSWxCO0FBRUw7QUFFcUI7QUFFbkI7QUFFOUMscUVBQXFFO0FBQzlELE1BQU0seUJBQXlCO0lBR3BDOztPQUVHO0lBQ0gsWUFDVSxlQUFnQyxFQUNoQyxlQUFnQyxFQUNoQyxhQUE0QixFQUM1QixpQkFBNEMseURBQXNCO1FBSGxFLG9CQUFlLEdBQWYsZUFBZSxDQUFpQjtRQUNoQyxvQkFBZSxHQUFmLGVBQWUsQ0FBaUI7UUFDaEMsa0JBQWEsR0FBYixhQUFhLENBQWU7UUFDNUIsbUJBQWMsR0FBZCxjQUFjLENBQW9EO1FBRzVFLGdCQUFnQjtRQUNoQixpQkFBWSxHQUFHLDBEQUFtQixDQUFDLHVEQUFpQixFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUMxRSxjQUFTLEdBQUcsd0RBQWlCLENBQUMsR0FBRyxFQUFFLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxDQUFDO1FBQ3pELGdCQUFXLEdBQUcsd0RBQW1CLEVBQTZCLENBQUM7UUFDdEQsV0FBTSxHQUFHLDZFQUFVLENBQUMsaUJBQWlCLENBQUM7SUFONUMsQ0FBQztJQVFKLFlBQVk7SUFDTixRQUFRLENBQUMsT0FBa0M7O1lBQy9DLEl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iAgZHVyYWJsZVN0YXRlID0gc2hhcmVkU3RhdGVCeVVzZXJJZChDQVRDSEFMTF9TRVRUSU5HUywgdGhpcy5zdGF0ZVByb3ZpZGVyKTtcbiAgZGVmYXVsdHMkID0gb2JzZXJ2ZSRQZXJVc2VySWQoKCkgPT4gdGhpcy5kZWZhdWx0T3B0aW9ucyk7XG4gIHRvRXZhbHVhdG9yID0gbmV3RGVmYXVsdEV2YWx1YXRvcjxDYXRjaGFsbEdlbmVyYXRpb25PcHRpb25zPigpO1xuICByZWFkb25seSBwb2xpY3kgPSBQb2xpY3lUeXBlLlBhc3N3b3JkR2VuZXJhdG9yO1xuXG4gIC8vIGFsZ29yaXRobVxuICBhc3luYyBnZW5lcmF0ZShvcHRpb25zOiBDYXRjaGFsbEdlbmVyYXRpb25PcHRpb25zKSB7XG4gICAgaWYgKG9wdGlvbnMuY2F0Y2hhbGxUeXBlID09IG51bGwpIHtcbiAgICAgIG9wdGlvbnMuY2F0Y2hhbGxUeXBlID0gXCJyYW5kb21cIjtcbiAgICB9XG5cbiAgICBpZiAob3B0aW9ucy5jYXRjaGFsbFR5cGUgPT09IFwid2Vic2l0ZS1uYW1lXCIpIHtcbiAgICAgIHJldHVybiBhd2FpdCB0aGlzLmVtYWlsQ2FsY3VsYXRvci5jb25jYXRlbmF0ZShvcHRpb25zLndlYnNpdGUsIG9wdGlvbnMuY2F0Y2hhbGxEb21haW4pO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzLmVtYWlsUmFuZG9taXplci5yYW5kb21Bc2NpaUNhdGNoYWxsKG9wdGlvbnMuY2F0Y2hhbGxEb21haW4pO1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/catchall-generator-strategy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/eff-username-generator-strategy.ts":
/*!*****************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/eff-username-generator-strategy.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EffUsernameGeneratorStrategy: () => (/* binding */ EffUsernameGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./storage */ \"../../libs/tools/generator/core/src/strategies/storage.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n/** Strategy for creating usernames from the EFF wordlist */\nclass EffUsernameGeneratorStrategy {\n    /** Instantiates the generation strategy\n     *  @param usernameService generates a username from EFF word list\n     */\n    constructor(randomizer, stateProvider, defaultOptions = _data__WEBPACK_IMPORTED_MODULE_1__.DefaultEffUsernameOptions) {\n        this.randomizer = randomizer;\n        this.stateProvider = stateProvider;\n        this.defaultOptions = defaultOptions;\n        // configuration\n        this.durableState = (0,_util__WEBPACK_IMPORTED_MODULE_3__.sharedStateByUserId)(_storage__WEBPACK_IMPORTED_MODULE_4__.EFF_USERNAME_SETTINGS, this.stateProvider);\n        this.defaults$ = (0,_util__WEBPACK_IMPORTED_MODULE_3__.observe$PerUserId)(() => this.defaultOptions);\n        this.toEvaluator = (0,_rx__WEBPACK_IMPORTED_MODULE_2__.newDefaultEvaluator)();\n        this.policy = _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator;\n    }\n    // algorithm\n    generate(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            var _a, _b;\n            const casing = ((_a = options.wordCapitalize) !== null && _a !== void 0 ? _a : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultEffUsernameOptions.wordCapitalize)\n                ? \"TitleCase\"\n                : \"lowercase\";\n            const digits = ((_b = options.wordIncludeNumber) !== null && _b !== void 0 ? _b : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultEffUsernameOptions.wordIncludeNumber)\n                ? _data__WEBPACK_IMPORTED_MODULE_1__.UsernameDigits.enabled\n                : _data__WEBPACK_IMPORTED_MODULE_1__.UsernameDigits.disabled;\n            const word = yield this.randomizer.randomWords({ numberOfWords: 1, casing, digits });\n            return word;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc3RyYXRlZ2llcy9lZmYtdXNlcm5hbWUtZ2VuZXJhdG9yLXN0cmF0ZWd5LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFtRTtBQUlDO0FBRXhCO0FBRXFCO0FBRWY7QUFFbEQsNERBQTREO0FBQ3JELE1BQU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mFtZUdlbmVyYXRpb25PcHRpb25zKSB7XG4gICAgY29uc3QgY2FzaW5nID1cbiAgICAgIChvcHRpb25zLndvcmRDYXBpdGFsaXplID8/IERlZmF1bHRFZmZVc2VybmFtZU9wdGlvbnMud29yZENhcGl0YWxpemUpXG4gICAgICAgID8gXCJUaXRsZUNhc2VcIlxuICAgICAgICA6IFwibG93ZXJjYXNlXCI7XG4gICAgY29uc3QgZGlnaXRzID1cbiAgICAgIChvcHRpb25zLndvcmRJbmNsdWRlTnVtYmVyID8/IERlZmF1bHRFZmZVc2VybmFtZU9wdGlvbnMud29yZEluY2x1ZGVOdW1iZXIpXG4gICAgICAgID8gVXNlcm5hbWVEaWdpdHMuZW5hYmxlZFxuICAgICAgICA6IFVzZXJuYW1lRGlnaXRzLmRpc2FibGVkO1xuICAgIGNvbnN0IHdvcmQgPSBhd2FpdCB0aGlzLnJhbmRvbWl6ZXIucmFuZG9tV29yZHMoeyBudW1iZXJPZldvcmRzOiAxLCBjYXNpbmcsIGRpZ2l0cyB9KTtcbiAgICByZXR1cm4gd29yZDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/eff-username-generator-strategy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/forwarder-generator-strategy.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/forwarder-generator-strategy.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ForwarderGeneratorStrategy: () => (/* binding */ ForwarderGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-state */ \"../../libs/common/src/tools/state/buffered-state.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_padded_data_packer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/padded-data-packer */ \"../../libs/common/src/tools/state/padded-data-packer.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_secret_key_definition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/tools/state/secret-key-definition */ \"../../libs/common/src/tools/state/secret-key-definition.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_secret_state__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bitwarden/common/tools/state/secret-state */ \"../../libs/common/src/tools/state/secret-state.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_user_key_encryptor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @bitwarden/common/tools/state/user-key-encryptor */ \"../../libs/common/src/tools/state/user-key-encryptor.ts\");\n/* harmony import */ var _abstractions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../abstractions */ \"../../libs/tools/generator/core/src/abstractions/index.ts\");\n/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../engine */ \"../../libs/tools/generator/core/src/engine/index.ts\");\n/* harmony import */ var _engine_rpc_create_forwarding_address__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../engine/rpc/create-forwarding-address */ \"../../libs/tools/generator/core/src/engine/rpc/create-forwarding-address.ts\");\n/* harmony import */ var _engine_rpc_get_account_id__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../engine/rpc/get-account-id */ \"../../libs/tools/generator/core/src/engine/rpc/get-account-id.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _options_classifier__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./options-classifier */ \"../../libs/tools/generator/core/src/strategies/options-classifier.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst OPTIONS_FRAME_SIZE = 512;\n/** An email forwarding service configurable through an API. */\nclass ForwarderGeneratorStrategy extends _abstractions__WEBPACK_IMPORTED_MODULE_7__.GeneratorStrategy {\n    /** Initializes the generator strategy\n     *  @param encryptService protects sensitive forwarder options\n     *  @param keyService looks up the user key when protecting data.\n     *  @param stateProvider creates the durable state for options storage\n     */\n    constructor(configuration, client, i18nService, encryptService, keyService, stateProvider) {\n        super();\n        this.configuration = configuration;\n        this.client = client;\n        this.i18nService = i18nService;\n        this.encryptService = encryptService;\n        this.keyService = keyService;\n        this.stateProvider = stateProvider;\n        // configuration\n        this.policy = _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.PolicyType.PasswordGenerator;\n        this.defaults$ = (0,_util__WEBPACK_IMPORTED_MODULE_12__.observe$PerUserId)(() => this.configuration.forwarder.defaultSettings);\n        this.toEvaluator = (0,_rx__WEBPACK_IMPORTED_MODULE_11__.newDefaultEvaluator)();\n        this.durableState = (0,_util__WEBPACK_IMPORTED_MODULE_12__.sharedByUserId)((userId) => this.getUserSecrets(userId));\n        this.generate = (options) => __awaiter(this, void 0, void 0, function* () {\n            const requestOptions = { website: options.website };\n            const getAccount = yield this.getAccountId(this.configuration, options);\n            if (getAccount) {\n                requestOptions.accountId = yield this.client.fetchJson(getAccount, requestOptions);\n            }\n            const create = this.createForwardingAddress(this.configuration, options);\n            const result = yield this.client.fetchJson(create, requestOptions);\n            return result;\n        });\n    }\n    get key() {\n        return this.configuration.forwarder.settings;\n    }\n    get rolloverKey() {\n        return this.configuration.forwarder.importBuffer;\n    }\n    // per-user encrypted state\n    getUserSecrets(userId) {\n        // construct the encryptor\n        const packer = new _bitwarden_common_tools_state_padded_data_packer__WEBPACK_IMPORTED_MODULE_3__.PaddedDataPacker(OPTIONS_FRAME_SIZE);\n        const encryptor$ = this.keyService.userKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((key) => (key ? new _bitwarden_common_tools_state_user_key_encryptor__WEBPACK_IMPORTED_MODULE_6__.UserKeyEncryptor(userId, this.encryptService, key, packer) : null)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((encryptor) => !!encryptor));\n        // always exclude request properties\n        const classifier = new _options_classifier__WEBPACK_IMPORTED_MODULE_13__.OptionsClassifier();\n        // Derive the secret key definition\n        const key = _bitwarden_common_tools_state_secret_key_definition__WEBPACK_IMPORTED_MODULE_4__.SecretKeyDefinition.value(this.key.stateDefinition, this.key.key, classifier, {\n            deserializer: (d) => this.key.deserializer(d),\n            cleanupDelayMs: this.key.cleanupDelayMs,\n            clearOn: this.key.clearOn,\n        });\n        // the type parameter is explicit because type inference fails for `Omit<Options, \"website\">`\n        const secretState = _bitwarden_common_tools_state_secret_state__WEBPACK_IMPORTED_MODULE_5__.SecretState.from(userId, key, this.stateProvider, encryptor$);\n        // rollover should occur once the user key is available for decryption\n        const canDecrypt$ = this.keyService.userKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((key) => key !== null));\n        const rolloverState = new _bitwarden_common_tools_state_buffered_state__WEBPACK_IMPORTED_MODULE_2__.BufferedState(this.stateProvider, this.rolloverKey, secretState, canDecrypt$);\n        // cast through unknown required because there's no way to prove to\n        // the compiler that `OptionsClassifier` runs within the buffer wrapping\n        // the secret state.\n        return rolloverState;\n    }\n    createContext(configuration, settings) {\n        return new _engine__WEBPACK_IMPORTED_MODULE_8__.ForwarderContext(configuration, settings, this.i18nService);\n    }\n    createForwardingAddress(configuration, settings) {\n        const context = this.createContext(configuration, settings);\n        const rpc = new _engine_rpc_create_forwarding_address__WEBPACK_IMPORTED_MODULE_9__.CreateForwardingAddressRpc(configuration, context);\n        return rpc;\n    }\n    getAccountId(configuration, settings) {\n        if (!configuration.forwarder.getAccountId) {\n            return null;\n        }\n        const context = this.createContext(configuration, settings);\n        const rpc = new _engine_rpc_get_account_id__WEBPACK_IMPORTED_MODULE_10__.GetAccountIdRpc(configuration, context);\n        return rpc;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12896 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/forwarder-generator-strategy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/index.ts":
/*!***************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/index.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CatchallGeneratorStrategy: () => (/* reexport safe */ _catchall_generator_strategy__WEBPACK_IMPORTED_MODULE_3__.CatchallGeneratorStrategy),\n/* harmony export */   EffUsernameGeneratorStrategy: () => (/* reexport safe */ _eff_username_generator_strategy__WEBPACK_IMPORTED_MODULE_5__.EffUsernameGeneratorStrategy),\n/* harmony export */   ForwarderGeneratorStrategy: () => (/* reexport safe */ _forwarder_generator_strategy__WEBPACK_IMPORTED_MODULE_0__.ForwarderGeneratorStrategy),\n/* harmony export */   PassphraseGeneratorStrategy: () => (/* reexport safe */ _passphrase_generator_strategy__WEBPACK_IMPORTED_MODULE_1__.PassphraseGeneratorStrategy),\n/* harmony export */   PasswordGeneratorStrategy: () => (/* reexport safe */ _password_generator_strategy__WEBPACK_IMPORTED_MODULE_2__.PasswordGeneratorStrategy),\n/* harmony export */   SubaddressGeneratorStrategy: () => (/* reexport safe */ _subaddress_generator_strategy__WEBPACK_IMPORTED_MODULE_4__.SubaddressGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var _forwarder_generator_strategy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./forwarder-generator-strategy */ \"../../libs/tools/generator/core/src/strategies/forwarder-generator-strategy.ts\");\n/* harmony import */ var _passphrase_generator_strategy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./passphrase-generator-strategy */ \"../../libs/tools/generator/core/src/strategies/passphrase-generator-strategy.ts\");\n/* harmony import */ var _password_generator_strategy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./password-generator-strategy */ \"../../libs/tools/generator/core/src/strategies/password-generator-strategy.ts\");\n/* harmony import */ var _catchall_generator_strategy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./catchall-generator-strategy */ \"../../libs/tools/generator/core/src/strategies/catchall-generator-strategy.ts\");\n/* harmony import */ var _subaddress_generator_strategy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./subaddress-generator-strategy */ \"../../libs/tools/generator/core/src/strategies/subaddress-generator-strategy.ts\");\n/* harmony import */ var _eff_username_generator_strategy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./eff-username-generator-strategy */ \"../../libs/tools/generator/core/src/strategies/eff-username-generator-strategy.ts\");\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc3RyYXRlZ2llcy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBNEU7QUFDRTtBQUNKO0FBQ0E7QUFDSTtBQUNHIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc3RyYXRlZ2llcy9pbmRleC50cz8xYjJkIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IEZvcndhcmRlckdlbmVyYXRvclN0cmF0ZWd5IH0gZnJvbSBcIi4vZm9yd2FyZGVyLWdlbmVyYXRvci1zdHJhdGVneVwiO1xuZXhwb3J0IHsgUGFzc3BocmFzZUdlbmVyYXRvclN0cmF0ZWd5IH0gZnJvbSBcIi4vcGFzc3BocmFzZS1nZW5lcmF0b3Itc3RyYXRlZ3lcIjtcbmV4cG9ydCB7IFBhc3N3b3JkR2VuZXJhdG9yU3RyYXRlZ3kgfSBmcm9tIFwiLi9wYXNzd29yZC1nZW5lcmF0b3Itc3RyYXRlZ3lcIjtcbmV4cG9ydCB7IENhdGNoYWxsR2VuZXJhdG9yU3RyYXRlZ3kgfSBmcm9tIFwiLi9jYXRjaGFsbC1nZW5lcmF0b3Itc3RyYXRlZ3lcIjtcbmV4cG9ydCB7IFN1YmFkZHJlc3NHZW5lcmF0b3JTdHJhdGVneSB9IGZyb20gXCIuL3N1YmFkZHJlc3MtZ2VuZXJhdG9yLXN0cmF0ZWd5XCI7XG5leHBvcnQgeyBFZmZVc2VybmFtZUdlbmVyYXRvclN0cmF0ZWd5IH0gZnJvbSBcIi4vZWZmLXVzZXJuYW1lLWdlbmVyYXRvci1zdHJhdGVneVwiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/options-classifier.ts":
/*!****************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/options-classifier.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OptionsClassifier: () => (/* binding */ OptionsClassifier)\n/* harmony export */ });\n/** Classifies an object by excluding IntegrationRequest parameters.\n */\nclass OptionsClassifier {\n    /** Partitions `secret` into its disclosed properties and secret properties.\n     *  @param value The object to partition\n     *  @returns an object that classifies secrets.\n     *    The `disclosed` member is new and contains disclosed properties.\n     *    The `secret` member is a copy of the secret parameter, including its\n     *    prototype, with all disclosed and excluded properties deleted.\n     */\n    classify(value) {\n        const secret = JSON.parse(JSON.stringify(value));\n        delete secret.website;\n        const disclosed = {};\n        return { disclosed, secret };\n    }\n    /** Merges the properties of `secret` and `disclosed`. When `secret` and\n     *  `disclosed` contain the same property, the `secret` property overrides\n     *  the `disclosed` property.\n     *  @param disclosed an object whose disclosed properties are merged into\n     *    the output. Unknown properties are ignored.\n     *  @param secret an objects whose properties are merged into the output.\n     *    Excluded properties are ignored. Unknown properties are retained.\n     *  @returns a new object containing the merged data.\n     *\n     *  @remarks Declassified data is always jsonified--the purpose of classifying it is\n     *   to Jsonify it,\n     *   which causes type conversions.\n     */\n    declassify(_disclosed, secret) {\n        const result = Object.assign(Object.assign({}, secret), { website: null });\n        return result;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4v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AgZGVjbGFzc2lmeShfZGlzY2xvc2VkOiBKc29uaWZ5PFJlY29yZDxrZXlvZiBTZXR0aW5ncywgbmV2ZXI+Piwgc2VjcmV0OiBKc29uaWZ5PFNldHRpbmdzPikge1xuICAgIGNvbnN0IHJlc3VsdCA9IHsgLi4uKHNlY3JldCBhcyBhbnkpLCB3ZWJzaXRlOiBudWxsIH07XG4gICAgcmV0dXJuIHJlc3VsdCBhcyBKc29uaWZ5PE9wdGlvbnM+O1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/options-classifier.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/passphrase-generator-strategy.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/passphrase-generator-strategy.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PassphraseGeneratorStrategy: () => (/* binding */ PassphraseGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./storage */ \"../../libs/tools/generator/core/src/strategies/storage.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n/** Generates passphrases composed of random words */\nclass PassphraseGeneratorStrategy {\n    /** instantiates the password generator strategy.\n     *  @param legacy generates the passphrase\n     *  @param stateProvider provides durable state\n     */\n    constructor(randomizer, stateProvider) {\n        this.randomizer = randomizer;\n        this.stateProvider = stateProvider;\n        // configuration\n        this.durableState = (0,_util__WEBPACK_IMPORTED_MODULE_3__.sharedStateByUserId)(_storage__WEBPACK_IMPORTED_MODULE_4__.PASSPHRASE_SETTINGS, this.stateProvider);\n        this.defaults$ = (0,_util__WEBPACK_IMPORTED_MODULE_3__.observe$PerUserId)(() => _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseGenerationOptions);\n        this.policy = _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator;\n    }\n    toEvaluator() {\n        return (0,_rx__WEBPACK_IMPORTED_MODULE_2__.mapPolicyToEvaluator)(_data__WEBPACK_IMPORTED_MODULE_1__.Policies.Passphrase);\n    }\n    // algorithm\n    generate(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = (0,_util__WEBPACK_IMPORTED_MODULE_3__.optionsToEffWordListRequest)(options);\n            return this.randomizer.randomEffLongWords(request);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9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hyZXF1ZXN0KTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/passphrase-generator-strategy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/password-generator-strategy.ts":
/*!*************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/password-generator-strategy.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordGeneratorStrategy: () => (/* binding */ PasswordGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./storage */ \"../../libs/tools/generator/core/src/strategies/storage.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n/** Generates passwords composed of random characters */\nclass PasswordGeneratorStrategy {\n    /** instantiates the password generator strategy.\n     *  @param legacy generates the password\n     */\n    constructor(randomizer, stateProvider) {\n        this.randomizer = randomizer;\n        this.stateProvider = stateProvider;\n        // configuration\n        this.durableState = (0,_util__WEBPACK_IMPORTED_MODULE_3__.sharedStateByUserId)(_storage__WEBPACK_IMPORTED_MODULE_4__.PASSWORD_SETTINGS, this.stateProvider);\n        this.defaults$ = (0,_util__WEBPACK_IMPORTED_MODULE_3__.observe$PerUserId)(() => _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions);\n        this.policy = _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator;\n    }\n    toEvaluator() {\n        return (0,_rx__WEBPACK_IMPORTED_MODULE_2__.mapPolicyToEvaluator)(_data__WEBPACK_IMPORTED_MODULE_1__.Policies.Password);\n    }\n    // algorithm\n    generate(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const request = (0,_util__WEBPACK_IMPORTED_MODULE_3__.optionsToRandomAsciiRequest)(options);\n            const result = yield this.randomizer.randomAscii(request);\n            return result;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc3RyYXRlZ2llcy9wYXNzd29yZC1nZW5lcmF0b3Itc3RyYXRlZ3kudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQW1FO0FBSUU7QUFFeEI7QUFFaUQ7QUFFaEQ7QUFFOUMsd0RBQXdEO0FBQ2pELE1BQU0seUJBQXlCO0lBR3BDOztPQUVHO0lBQ0gsWUFDVSxVQUE4QixFQUM5QixhQUE0QjtRQUQ1QixlQU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vbWl6ZXIsXG4gICAgcHJpdmF0ZSBzdGF0ZVByb3ZpZGVyOiBTdGF0ZVByb3ZpZGVyLFxuICApIHt9XG5cbiAgLy8gY29uZmlndXJhdGlvblxuICBkdXJhYmxlU3RhdGUgPSBzaGFyZWRTdGF0ZUJ5VXNlcklkKFBBU1NXT1JEX1NFVFRJTkdTLCB0aGlzLnN0YXRlUHJvdmlkZXIpO1xuICBkZWZhdWx0cyQgPSBvYnNlcnZlJFBlclVzZXJJZCgoKSA9PiBEZWZhdWx0UGFzc3dvcmRHZW5lcmF0aW9uT3B0aW9ucyk7XG4gIHJlYWRvbmx5IHBvbGljeSA9IFBvbGljeVR5cGUuUGFzc3dvcmRHZW5lcmF0b3I7XG4gIHRvRXZhbHVhdG9yKCkge1xuICAgIHJldHVybiBtYXBQb2xpY3lUb0V2YWx1YXRvcihQb2xpY2llcy5QYXNzd29yZCk7XG4gIH1cblxuICAvLyBhbGdvcml0aG1cbiAgYXN5bmMgZ2VuZXJhdGUob3B0aW9uczogUGFzc3dvcmRHZW5lcmF0aW9uT3B0aW9ucyk6IFByb21pc2U8c3RyaW5nPiB7XG4gICAgY29uc3QgcmVxdWVzdCA9IG9wdGlvbnNUb1JhbmRvbUFzY2lpUmVxdWVzdChvcHRpb25zKTtcbiAgICBjb25zdCByZXN1bHQgPSBhd2FpdCB0aGlzLnJhbmRvbWl6ZXIucmFuZG9tQXNjaWkocmVxdWVzdCk7XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/password-generator-strategy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/storage.ts":
/*!*****************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/storage.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CATCHALL_SETTINGS: () => (/* binding */ CATCHALL_SETTINGS),\n/* harmony export */   EFF_USERNAME_SETTINGS: () => (/* binding */ EFF_USERNAME_SETTINGS),\n/* harmony export */   PASSPHRASE_SETTINGS: () => (/* binding */ PASSPHRASE_SETTINGS),\n/* harmony export */   PASSWORD_SETTINGS: () => (/* binding */ PASSWORD_SETTINGS),\n/* harmony export */   SUBADDRESS_SETTINGS: () => (/* binding */ SUBADDRESS_SETTINGS)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/** plaintext password generation options */\nconst PASSWORD_SETTINGS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"passwordGeneratorSettings\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\n/** plaintext passphrase generation options */\nconst PASSPHRASE_SETTINGS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"passphraseGeneratorSettings\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\n/** plaintext username generation options */\nconst EFF_USERNAME_SETTINGS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"effUsernameGeneratorSettings\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\n/** plaintext configuration for a domain catch-all address. */\nconst CATCHALL_SETTINGS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"catchallGeneratorSettings\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\n/** plaintext configuration for an email subaddress. */\nconst SUBADDRESS_SETTINGS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"subaddressGeneratorSettings\", {\n    deserializer: (value) => value,\n    clearOn: [],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvY29yZS9zcmMvc3RyYXRlZ2llcy9zdG9yYWdlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFxRjtBQVVyRiw0Q0FBNEM7QUFDckMsTUFBTSxpQkFBaUIsR0FBRyxJQUFJLCtFQUFpQixDQUNwRCw0RUFBYyxFQUNkLDJCQUEyQixFQUMzQjtJQUNFLFlBQVksRUFBRSxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsS0FBSztJQUM5QixPQUFPLEVBQUUsRUFBRTtDQUNaLENBQ0YsQ0FBQztBQUVGLDhDQUE4QztBQUN2QyxNQUFNLG1CQUFtQixHQUFHLElBQUksK0VBQWlCLENBQ3RELDRFQUFjLEVBQ2QsNkJBQTZCLEVBQzdCO0lBQ0UsWUFBWSxFQUFFLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxLQUFLO0lBQzlCLE9BQU8sRUFBRSxFQUFFO0NBQ1osQ0FDRixDQUFDO0FBRUYsNENBQTRDO0FBQ3JDLE1BQU0scUJBQXFCLEdBQUcsSUFBSSwrRUFBaUIsQ0FDeEQsNEVBQWMsRUFDZCw4QkFBOEIsRUFDOUI7SUFDRSxZQUFZLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLEtBQUs7SUFDOUIsT0FBTyxFQUFFLEVBQUU7Q0FDWixDQ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HUyA9IG5ldyBVc2VyS2V5RGVmaW5pdGlvbjxDYXRjaGFsbEdlbmVyYXRpb25PcHRpb25zPihcbiAgR0VORVJBVE9SX0RJU0ssXG4gIFwiY2F0Y2hhbGxHZW5lcmF0b3JTZXR0aW5nc1wiLFxuICB7XG4gICAgZGVzZXJpYWxpemVyOiAodmFsdWUpID0+IHZhbHVlLFxuICAgIGNsZWFyT246IFtdLFxuICB9LFxuKTtcblxuLyoqIHBsYWludGV4dCBjb25maWd1cmF0aW9uIGZvciBhbiBlbWFpbCBzdWJhZGRyZXNzLiAqL1xuZXhwb3J0IGNvbnN0IFNVQkFERFJFU1NfU0VUVElOR1MgPSBuZXcgVXNlcktleURlZmluaXRpb248U3ViYWRkcmVzc0dlbmVyYXRpb25PcHRpb25zPihcbiAgR0VORVJBVE9SX0RJU0ssXG4gIFwic3ViYWRkcmVzc0dlbmVyYXRvclNldHRpbmdzXCIsXG4gIHtcbiAgICBkZXNlcmlhbGl6ZXI6ICh2YWx1ZSkgPT4gdmFsdWUsXG4gICAgY2xlYXJPbjogW10sXG4gIH0sXG4pO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/storage.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/strategies/subaddress-generator-strategy.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/strategies/subaddress-generator-strategy.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SubaddressGeneratorStrategy: () => (/* binding */ SubaddressGeneratorStrategy)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n/* harmony import */ var _rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../rx */ \"../../libs/tools/generator/core/src/rx.ts\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ \"../../libs/tools/generator/core/src/util.ts\");\n/* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./storage */ \"../../libs/tools/generator/core/src/strategies/storage.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n/** Strategy for creating an email subaddress\n *  @remarks The subaddress is the part following the `+`.\n *  For example, if the email address is `jd+xyz@domain.io`,\n *  the subaddress is `xyz`.\n */\nclass SubaddressGeneratorStrategy {\n    /** Instantiates the generation strategy\n     *  @param usernameService generates an email subaddress from an email address\n     */\n    constructor(emailCalculator, emailRandomizer, stateProvider, defaultOptions = _data__WEBPACK_IMPORTED_MODULE_1__.DefaultSubaddressOptions) {\n        this.emailCalculator = emailCalculator;\n        this.emailRandomizer = emailRandomizer;\n        this.stateProvider = stateProvider;\n        this.defaultOptions = defaultOptions;\n        // configuration\n        this.durableState = (0,_util__WEBPACK_IMPORTED_MODULE_3__.sharedStateByUserId)(_storage__WEBPACK_IMPORTED_MODULE_4__.SUBADDRESS_SETTINGS, this.stateProvider);\n        this.defaults$ = (0,_util__WEBPACK_IMPORTED_MODULE_3__.observe$PerUserId)(() => this.defaultOptions);\n        this.toEvaluator = (0,_rx__WEBPACK_IMPORTED_MODULE_2__.newDefaultEvaluator)();\n        this.policy = _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator;\n    }\n    // algorithm\n    generate(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            if (options.subaddressType == null) {\n                options.subaddressType = \"random\";\n            }\n            if (options.subaddressType === \"website-name\") {\n                return this.emailCalculator.appendToSubaddress(options.website, options.subaddressEmail);\n            }\n            return this.emailRandomizer.randomAsciiSubaddress(options.subaddressEmail);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4140 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/strategies/subaddress-generator-strategy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/types/boundary.ts":
/*!*************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/boundary.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/catchall-generator-options.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/catchall-generator-options.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/credential-generator-configuration.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/credential-generator-configuration.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/credential-generator.ts":
/*!*************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/credential-generator.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/eff-username-generator-options.ts":
/*!***********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/eff-username-generator-options.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/forwarder-options.ts":
/*!**********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/forwarder-options.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/generated-credential.ts":
/*!*************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/generated-credential.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratedCredential: () => (/* binding */ GeneratedCredential)\n/* harmony export */ });\n/** A credential generation result */\nclass GeneratedCredential {\n    /**\n     * Instantiates a generated credential\n     * @param credential The value of the generated credential (e.g. a password)\n     * @param category The kind of credential\n     * @param generationDate The date that the credential was generated.\n     *   Numeric values should are interpreted using {@link Date.valueOf}\n     *   semantics.\n     */\n    constructor(credential, category, generationDate) {\n        this.credential = credential;\n        this.category = category;\n        if (typeof generationDate === \"number\") {\n            this.generationDate = new Date(generationDate);\n        }\n        else {\n            this.generationDate = generationDate;\n        }\n    }\n    /** Constructs a credential from its `toJSON` representation */\n    static fromJSON(jsonValue) {\n        return new GeneratedCredential(jsonValue.credential, jsonValue.category, jsonValue.generationDate);\n    }\n    /** Serializes a credential to a JSON-compatible object */\n    toJSON() {\n        return {\n            credential: this.credential,\n            category: this.category,\n            generationDate: this.generationDate.valueOf(),\n        };\n    }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0gXCJudW1iZXJcIikge1xuICAgICAgdGhpcy5nZW5lcmF0aW9uRGF0ZSA9IG5ldyBEYXRlKGdlbmVyYXRpb25EYXRlKTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5nZW5lcmF0aW9uRGF0ZSA9IGdlbmVyYXRpb25EYXRlO1xuICAgIH1cbiAgfVxuXG4gIC8qKiBUaGUgZGF0ZSB0aGF0IHRoZSBjcmVkZW50aWFsIHdhcyBnZW5lcmF0ZWQgKi9cbiAgZ2VuZXJhdGlvbkRhdGU6IERhdGU7XG5cbiAgLyoqIENvbnN0cnVjdHMgYSBjcmVkZW50aWFsIGZyb20gaXRzIGB0b0pTT05gIHJlcHJlc2VudGF0aW9uICovXG4gIHN0YXRpYyBmcm9tSlNPTihqc29uVmFsdWU6IEpzb25pZnk8R2VuZXJhdGVkQ3JlZGVudGlhbD4pIHtcbiAgICByZXR1cm4gbmV3IEdlbmVyYXRlZENyZWRlbnRpYWwoXG4gICAgICBqc29uVmFsdWUuY3JlZGVudGlhbCxcbiAgICAgIGpzb25WYWx1ZS5jYXRlZ29yeSxcbiAgICAgIGpzb25WYWx1ZS5nZW5lcmF0aW9uRGF0ZSxcbiAgICApO1xuICB9XG5cbiAgLyoqIFNlcmlhbGl6ZXMgYSBjcmVkZW50aWFsIHRvIGEgSlNPTi1jb21wYXRpYmxlIG9iamVjdCAqL1xuICB0b0pTT04oKSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIGNyZWRlbnRpYWw6IHRoaXMuY3JlZGVudGlhbCxcbiAgICAgIGNhdGVnb3J5OiB0aGlzLmNhdGVnb3J5LFxuICAgICAgZ2VuZXJhdGlvbkRhdGU6IHRoaXMuZ2VuZXJhdGlvbkRhdGUudmFsdWVPZigpLFxuICAgIH07XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/types/generated-credential.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/types/generator-constraints.ts":
/*!**************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/generator-constraints.ts ***!
  \**************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/generator-options.ts":
/*!**********************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/generator-options.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/generator-type.ts":
/*!*******************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/generator-type.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialCategories: () => (/* binding */ CredentialCategories),\n/* harmony export */   isEmailAlgorithm: () => (/* binding */ isEmailAlgorithm),\n/* harmony export */   isForwarderIntegration: () => (/* binding */ isForwarderIntegration),\n/* harmony export */   isPasswordAlgorithm: () => (/* binding */ isPasswordAlgorithm),\n/* harmony export */   isSameAlgorithm: () => (/* binding */ isSameAlgorithm),\n/* harmony export */   isUsernameAlgorithm: () => (/* binding */ isUsernameAlgorithm)\n/* harmony export */ });\n/* harmony import */ var _data_generator_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../data/generator-types */ \"../../libs/tools/generator/core/src/data/generator-types.ts\");\n\n/** Returns true when the input algorithm is a forwarder integration. */\nfunction isForwarderIntegration(algorithm) {\n    return algorithm && typeof algorithm === \"object\" && \"forwarder\" in algorithm;\n}\nfunction isSameAlgorithm(lhs, rhs) {\n    if (lhs === rhs) {\n        return true;\n    }\n    else if (isForwarderIntegration(lhs) && isForwarderIntegration(rhs)) {\n        return lhs.forwarder === rhs.forwarder;\n    }\n    else {\n        return false;\n    }\n}\n/** Compound credential types supported by the credential generator. */\nconst CredentialCategories = Object.freeze({\n    /** Lists algorithms in the \"password\" credential category */\n    password: _data_generator_types__WEBPACK_IMPORTED_MODULE_0__.PasswordAlgorithms,\n    /** Lists algorithms in the \"username\" credential category */\n    username: _data_generator_types__WEBPACK_IMPORTED_MODULE_0__.UsernameAlgorithms,\n    /** Lists algorithms in the \"email\" credential category */\n    email: _data_generator_types__WEBPACK_IMPORTED_MODULE_0__.EmailAlgorithms,\n});\n/** Returns true when the input algorithm is a password algorithm. */\nfunction isPasswordAlgorithm(algorithm) {\n    return _data_generator_types__WEBPACK_IMPORTED_MODULE_0__.PasswordAlgorithms.includes(algorithm);\n}\n/** Returns true when the input algorithm is a username algorithm. */\nfunction isUsernameAlgorithm(algorithm) {\n    return _data_generator_types__WEBPACK_IMPORTED_MODULE_0__.UsernameAlgorithms.includes(algorithm);\n}\n/** Returns true when the input algorithm is an email algorithm. */\nfunction isEmailAlgorithm(algorithm) {\n    return _data_generator_types__WEBPACK_IMPORTED_MODULE_0__.EmailAlgorithms.includes(algorithm) || isForwarderIntegration(algorithm);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5888 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/types/generator-type.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/types/index.ts":
/*!**********************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/index.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CredentialCategories: () => (/* reexport safe */ _generator_type__WEBPACK_IMPORTED_MODULE_9__.CredentialCategories),\n/* harmony export */   GeneratedCredential: () => (/* reexport safe */ _generated_credential__WEBPACK_IMPORTED_MODULE_7__.GeneratedCredential),\n/* harmony export */   isEmailAlgorithm: () => (/* reexport safe */ _generator_type__WEBPACK_IMPORTED_MODULE_9__.isEmailAlgorithm),\n/* harmony export */   isForwarderIntegration: () => (/* reexport safe */ _generator_type__WEBPACK_IMPORTED_MODULE_9__.isForwarderIntegration),\n/* harmony export */   isPasswordAlgorithm: () => (/* reexport safe */ _generator_type__WEBPACK_IMPORTED_MODULE_9__.isPasswordAlgorithm),\n/* harmony export */   isSameAlgorithm: () => (/* reexport safe */ _generator_type__WEBPACK_IMPORTED_MODULE_9__.isSameAlgorithm),\n/* harmony export */   isUsernameAlgorithm: () => (/* reexport safe */ _generator_type__WEBPACK_IMPORTED_MODULE_9__.isUsernameAlgorithm)\n/* harmony export */ });\n/* harmony import */ var _boundary__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./boundary */ \"../../libs/tools/generator/core/src/types/boundary.ts\");\n/* harmony import */ var _catchall_generator_options__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catchall-generator-options */ \"../../libs/tools/generator/core/src/types/catchall-generator-options.ts\");\n/* harmony import */ var _credential_generator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./credential-generator */ \"../../libs/tools/generator/core/src/types/credential-generator.ts\");\n/* harmony import */ var _credential_generator_configuration__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./credential-generator-configuration */ \"../../libs/tools/generator/core/src/types/credential-generator-configuration.ts\");\n/* harmony import */ var _eff_username_generator_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./eff-username-generator-options */ \"../../libs/tools/generator/core/src/types/eff-username-generator-options.ts\");\n/* harmony import */ var _forwarder_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./forwarder-options */ \"../../libs/tools/generator/core/src/types/forwarder-options.ts\");\n/* harmony import */ var _generator_constraints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./generator-constraints */ \"../../libs/tools/generator/core/src/types/generator-constraints.ts\");\n/* harmony import */ var _generated_credential__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./generated-credential */ \"../../libs/tools/generator/core/src/types/generated-credential.ts\");\n/* harmony import */ var _generator_options__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./generator-options */ \"../../libs/tools/generator/core/src/types/generator-options.ts\");\n/* harmony import */ var _generator_type__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./generator-type */ \"../../libs/tools/generator/core/src/types/generator-type.ts\");\n/* harmony import */ var _no_policy__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./no-policy */ \"../../libs/tools/generator/core/src/types/no-policy.ts\");\n/* harmony import */ var _passphrase_generation_options__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./passphrase-generation-options */ \"../../libs/tools/generator/core/src/types/passphrase-generation-options.ts\");\n/* harmony import */ var _passphrase_generator_policy__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./passphrase-generator-policy */ \"../../libs/tools/generator/core/src/types/passphrase-generator-policy.ts\");\n/* harmony import */ var _password_generation_options__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./password-generation-options */ \"../../libs/tools/generator/core/src/types/password-generation-options.ts\");\n/* harmony import */ var _password_generator_policy__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./password-generator-policy */ \"../../libs/tools/generator/core/src/types/password-generator-policy.ts\");\n/* harmony import */ var _policy_configuration__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./policy-configuration */ \"../../libs/tools/generator/core/src/types/policy-configuration.ts\");\n/* harmony import */ var _subaddress_generator_options__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./subaddress-generator-options */ \"../../libs/tools/generator/core/src/types/subaddress-generator-options.ts\");\n/* harmony import */ var _word_options__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./word-options */ \"../../libs/tools/generator/core/src/types/word-options.ts\");\n\n\n\n\n\n\n\n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HlwZSBQYXNzd29yZFR5cGUgPSBQYXNzd29yZEFsZ29yaXRobTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/types/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/core/src/types/no-policy.ts":
/*!**************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/no-policy.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/passphrase-generation-options.ts":
/*!**********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/passphrase-generation-options.ts ***!
  \**********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/passphrase-generator-policy.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/passphrase-generator-policy.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/password-generation-options.ts":
/*!********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/password-generation-options.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/password-generator-policy.ts":
/*!******************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/password-generator-policy.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/policy-configuration.ts":
/*!*************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/policy-configuration.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/subaddress-generator-options.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/subaddress-generator-options.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/types/word-options.ts":
/*!*****************************************************************!*\
  !*** ../../libs/tools/generator/core/src/types/word-options.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/core/src/util.ts":
/*!***************************************************!*\
  !*** ../../libs/tools/generator/core/src/util.ts ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   observe$PerUserId: () => (/* binding */ observe$PerUserId),\n/* harmony export */   optionsToEffWordListRequest: () => (/* binding */ optionsToEffWordListRequest),\n/* harmony export */   optionsToRandomAsciiRequest: () => (/* binding */ optionsToRandomAsciiRequest),\n/* harmony export */   sharedByUserId: () => (/* binding */ sharedByUserId),\n/* harmony export */   sharedStateByUserId: () => (/* binding */ sharedStateByUserId),\n/* harmony export */   sum: () => (/* binding */ sum)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data */ \"../../libs/tools/generator/core/src/data/index.ts\");\n\n\n/** construct a method that outputs a copy of `defaultValue` as an observable. */\nfunction observe$PerUserId(create) {\n    const _subjects = new Map();\n    return (key) => {\n        let value = _subjects.get(key);\n        if (value === undefined) {\n            const initialValue = create();\n            value = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(Object.assign({}, initialValue));\n            _subjects.set(key, value);\n        }\n        return value.asObservable();\n    };\n}\n/** construct a method that caches user-specific states by userid. */\nfunction sharedByUserId(create) {\n    const _subjects = new Map();\n    return (key) => {\n        let value = _subjects.get(key);\n        if (value === undefined) {\n            value = create(key);\n            _subjects.set(key, value);\n        }\n        return value;\n    };\n}\n/** construct a method that loads a user-specific state from the provider. */\nfunction sharedStateByUserId(key, provider) {\n    return (id) => provider.getUser(id, key);\n}\n/** returns the sum of items in the list. */\nconst sum = (...items) => (items !== null && items !== void 0 ? items : []).reduce((sum, current) => sum + (current !== null && current !== void 0 ? current : 0), 0);\n/* converts password generation option sets, which are defined by\n * an \"enabled\" and \"quantity\" parameter, to the password engine's\n * parameters, which represent disabled options as `undefined`\n * properties.\n */\nfunction optionsToRandomAsciiRequest(options) {\n    var _a, _b;\n    // helper for processing common option sets\n    function process(\n    // values read from the options\n    enabled, quantity, \n    // value used if an option is missing\n    defaultEnabled, defaultQuantity) {\n        const isEnabled = enabled !== null && enabled !== void 0 ? enabled : defaultEnabled;\n        const actualQuantity = quantity !== null && quantity !== void 0 ? quantity : defaultQuantity;\n        const result = isEnabled ? actualQuantity : undefined;\n        return result;\n    }\n    const request = {\n        uppercase: process(options.uppercase, options.minUppercase, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.uppercase, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.minUppercase),\n        lowercase: process(options.lowercase, options.minLowercase, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.lowercase, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.minLowercase),\n        digits: process(options.number, options.minNumber, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.number, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.minNumber),\n        special: process(options.special, options.minSpecial, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.special, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.minSpecial),\n        ambiguous: (_a = options.ambiguous) !== null && _a !== void 0 ? _a : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPasswordGenerationOptions.ambiguous,\n        all: 0,\n    };\n    // engine represents character sets as \"include only\"; you assert how many all\n    // characters there can be rather than a total length. This conversion has\n    // the character classes win, so that the result is always consistent with policy\n    // minimums.\n    const required = sum(request.uppercase, request.lowercase, request.digits, request.special);\n    const remaining = ((_b = options.length) !== null && _b !== void 0 ? _b : 0) - required;\n    request.all = Math.max(remaining, 0);\n    return request;\n}\n/* converts passphrase generation option sets to the eff word list request\n */\nfunction optionsToEffWordListRequest(options) {\n    var _a, _b, _c, _d;\n    const requestWords = (_a = options.numWords) !== null && _a !== void 0 ? _a : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseGenerationOptions.numWords;\n    const request = {\n        numberOfWords: Math.max(requestWords, _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseBoundaries.numWords.min),\n        capitalize: (_b = options.capitalize) !== null && _b !== void 0 ? _b : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseGenerationOptions.capitalize,\n        number: (_c = options.includeNumber) !== null && _c !== void 0 ? _c : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseGenerationOptions.includeNumber,\n        separator: (_d = options.wordSeparator) !== null && _d !== void 0 ? _d : _data__WEBPACK_IMPORTED_MODULE_1__.DefaultPassphraseGenerationOptions.wordSeparator,\n    };\n    return request;\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 10276 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/core/src/util.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/generated-credential.ts":
/*!*********************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/generated-credential.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratedCredential: () => (/* binding */ GeneratedCredential)\n/* harmony export */ });\n/** A credential generation result */\nclass GeneratedCredential {\n    /**\n     * Instantiates a generated credential\n     * @param credential The value of the generated credential (e.g. a password)\n     * @param category The kind of credential\n     * @param generationDate The date that the credential was generated.\n     *   Numeric values should are interpreted using {@link Date.valueOf}\n     *   semantics.\n     */\n    constructor(credential, category, generationDate) {\n        this.credential = credential;\n        this.category = category;\n        if (typeof generationDate === \"number\") {\n            this.generationDate = new Date(generationDate);\n        }\n        else {\n            this.generationDate = generationDate;\n        }\n    }\n    /** Constructs a credential from its `toJSON` representation */\n    static fromJSON(jsonValue) {\n        return new GeneratedCredential(jsonValue.credential, jsonValue.category, jsonValue.generationDate);\n    }\n    /** Serializes a credential to a JSON-compatible object */\n    toJSON() {\n        return {\n            credential: this.credential,\n            category: this.category,\n            generationDate: this.generationDate.valueOf(),\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9nZW5lcmF0ZWQtY3JlZGVudGlhbC50cyIsIm1hcHBpbmdzIjoiOzs7O0FBSUEscUNBQXFDO0FBQzlCLE1BQU0sbUJBQW1CO0lBQzlCOzs7Ozs7O09BT0c7SUFDSCxZQUNXLFVBQWtCLEVBQ2xCLFFBQTZCLEVBQ3RDLGNBQTZCO1FBRnBCLGVBQVUsR0FBVixVQUFVLENBQVE7UUF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XG4gIC8qKiBDb25zdHJ1Y3RzIGEgY3JlZGVudGlhbCBmcm9tIGl0cyBgdG9KU09OYCByZXByZXNlbnRhdGlvbiAqL1xuICBzdGF0aWMgZnJvbUpTT04oanNvblZhbHVlOiBKc29uaWZ5PEdlbmVyYXRlZENyZWRlbnRpYWw+KSB7XG4gICAgcmV0dXJuIG5ldyBHZW5lcmF0ZWRDcmVkZW50aWFsKFxuICAgICAganNvblZhbHVlLmNyZWRlbnRpYWwsXG4gICAgICBqc29uVmFsdWUuY2F0ZWdvcnksXG4gICAgICBqc29uVmFsdWUuZ2VuZXJhdGlvbkRhdGUsXG4gICAgKTtcbiAgfVxuXG4gIC8qKiBTZXJpYWxpemVzIGEgY3JlZGVudGlhbCB0byBhIEpTT04tY29tcGF0aWJsZSBvYmplY3QgKi9cbiAgdG9KU09OKCkge1xuICAgIHJldHVybiB7XG4gICAgICBjcmVkZW50aWFsOiB0aGlzLmNyZWRlbnRpYWwsXG4gICAgICBjYXRlZ29yeTogdGhpcy5jYXRlZ29yeSxcbiAgICAgIGdlbmVyYXRpb25EYXRlOiB0aGlzLmdlbmVyYXRpb25EYXRlLnZhbHVlT2YoKSxcbiAgICB9O1xuICB9XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/generated-credential.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/generated-password-history.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/generated-password-history.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratedPasswordHistory: () => (/* binding */ GeneratedPasswordHistory)\n/* harmony export */ });\nclass GeneratedPasswordHistory {\n    constructor(password, date) {\n        this.password = password;\n        this.date = date;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9nZW5lcmF0ZWQtcGFzc3dvcmQtaGlzdG9yeS50cyIsIm1hcHBpbmdzIjoiOzs7O0FBQU8sTUFBTSx3QkFBd0I7SUFJbkMsWUFBWSxRQUFnQixFQUFFLElBQVk7UUFDeEMsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7UUFDekIsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7SUFDbkIsQ0FBQztDQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9nZW5lcmF0ZWQtcGFzc3dvcmQtaGlzdG9yeS50cz9hMTllIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBHZW5lcmF0ZWRQYXNzd29yZEhpc3Rvcnkge1xuICBwYXNzd29yZDogc3RyaW5nO1xuICBkYXRlOiBudW1iZXI7XG5cbiAgY29uc3RydWN0b3IocGFzc3dvcmQ6IHN0cmluZywgZGF0ZTogbnVtYmVyKSB7XG4gICAgdGhpcy5wYXNzd29yZCA9IHBhc3N3b3JkO1xuICAgIHRoaXMuZGF0ZSA9IGRhdGU7XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/generated-password-history.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/generator-history.abstraction.ts":
/*!******************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/generator-history.abstraction.ts ***!
  \******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorHistoryService: () => (/* binding */ GeneratorHistoryService)\n/* harmony export */ });\n/** Tracks the history of password generations.\n *  Each user gets their own store.\n */\nclass GeneratorHistoryService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9nZW5lcmF0b3ItaGlzdG9yeS5hYnN0cmFjdGlvbi50cyIsIm1hcHBpbmdzIjoiOzs7O0FBT0E7O0dBRUc7QUFDSSxNQUFlLHVCQUF1QjtDQTRDNUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AYml0d2FyZGVuL2NsaS8uLi8uLi9saWJzL3Rvb2xzL2dlbmVyYXRvci9leHRlbnNpb25zL2hpc3Rvcnkvc3JjL2dlbmVyYXRvci1oaXN0b3J5LmFic3RyYWN0aW9uLnRzP2YxNTEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gXCJyeGpzXCI7XG5cbmltcG9ydCB7IFVzZXJJZCB9IGZyb20gXCJAYml0d2FyZGVuL2NvbW1vbi90eXBlcy9ndWlkXCI7XG5pbXBvcnQgeyBDcmVkZW50aWFsQWxnb3JpdGhtIH0gZnJvbSBcIkBiaXR3YXJkZW4vZ2VuZXJhdG9yLWNvcmVcIjtcblxuaW1wb3J0IHsgR2VuZXJhdGVkQ3JlZGVudGlhbCB9IGZyb20gXCIuL2dlbmVyYXRlZC1jcmVkZW50aWFsXCI7XG5cbi8qKiBUcmFja3MgdGhlIGhpc3Rvcnkgb2YgcGFzc3dvcmQgZ2VuZXJhdGlvbnMuXG4gKiAgRWFjaCB1c2VyIGdldHMgdGhlaXIgb3duIHN0b3JlLlxuICovXG5leHBvcnQgYWJ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IGlzIHN0b3JlZCBpbiB0aGUgdmF1bHQuXG4gICAqL1xuICB0YWtlOiAodXNlcklkOiBVc2VySWQsIGNyZWRlbnRpYWw6IHN0cmluZykgPT4gUHJvbWlzZTxHZW5lcmF0ZWRDcmVkZW50aWFsIHwgbnVsbD47XG5cbiAgLyoqIERlbGV0ZXMgYSB1c2VyJ3MgY3JlZGVudGlhbCBoaXN0b3J5LlxuICAgKiAgQHBhcmFtIHVzZXJJZCBpZGVudGlmaWVzIHRoZSB1c2VyIHRha2luZyB0aGUgY3JlZGVudGlhbC5cbiAgICogIEByZXR1cm5zIEEgcHJvbWlzZSB0aGF0IGNvbXBsZXRlcyB3aGVuIHRoZSBoaXN0b3J5IGlzIGNsZWFyZWQuXG4gICAqL1xuICBjbGVhcjogKHVzZXJJZDogVXNlcklkKSA9PiBQcm9taXNlPEdlbmVyYXRlZENyZWRlbnRpYWxbXT47XG5cbiAgLyoqIExpc3RzIGFsbCBjcmVkZW50aWFscyBmb3IgYSB1c2VyLlxuICAgKiAgQHBhcmFtIHVzZXJJZCBpZGVudGlmaWVzIHRoZSB1c2VyIGxpc3RpbmcgdGhlIGNyZWRlbnRpYWwuXG4gICAqICBAcmVtYXJrcyBUaGlzIGZpZWxkIGlzIGV2ZW50dWFsbHkgY29uc2lzdGVudCB3aXRoIGB0cmFja2AgYW5kIGB0YWtlYCBvcGVyYXRpb25zLlxuICAgKiAgICBJdCBpcyBub3QgZ3VhcmFudGVlZCB0byBpbW1lZGlhdGVseSByZWZsZWN0IHRob3NlIGNoYW5nZXMuXG4gICAqL1xuICBjcmVkZW50aWFscyQ6ICh1c2VySWQ6IFVzZXJJZCkgPT4gT2JzZXJ2YWJsZTxHZW5lcmF0ZWRDcmVkZW50aWFsW10+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/generator-history.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/index.ts":
/*!******************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/index.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratedCredential: () => (/* reexport safe */ _generated_credential__WEBPACK_IMPORTED_MODULE_0__.GeneratedCredential),\n/* harmony export */   GeneratedPasswordHistory: () => (/* reexport safe */ _generated_password_history__WEBPACK_IMPORTED_MODULE_1__.GeneratedPasswordHistory),\n/* harmony export */   GeneratorHistoryService: () => (/* reexport safe */ _generator_history_abstraction__WEBPACK_IMPORTED_MODULE_2__.GeneratorHistoryService),\n/* harmony export */   LocalGeneratorHistoryService: () => (/* reexport safe */ _local_generator_history_service__WEBPACK_IMPORTED_MODULE_3__.LocalGeneratorHistoryService)\n/* harmony export */ });\n/* harmony import */ var _generated_credential__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./generated-credential */ \"../../libs/tools/generator/extensions/history/src/generated-credential.ts\");\n/* harmony import */ var _generated_password_history__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./generated-password-history */ \"../../libs/tools/generator/extensions/history/src/generated-password-history.ts\");\n/* harmony import */ var _generator_history_abstraction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./generator-history.abstraction */ \"../../libs/tools/generator/extensions/history/src/generator-history.abstraction.ts\");\n/* harmony import */ var _local_generator_history_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./local-generator-history.service */ \"../../libs/tools/generator/extensions/history/src/local-generator-history.service.ts\");\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUE2RDtBQUNXO0FBQ0U7QUFDTyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2V4dGVuc2lvbnMvaGlzdG9yeS9zcmMvaW5kZXgudHM/YzE3MSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBHZW5lcmF0ZWRDcmVkZW50aWFsIH0gZnJvbSBcIi4vZ2VuZXJhdGVkLWNyZWRlbnRpYWxcIjtcbmV4cG9ydCB7IEdlbmVyYXRlZFBhc3N3b3JkSGlzdG9yeSB9IGZyb20gXCIuL2dlbmVyYXRlZC1wYXNzd29yZC1oaXN0b3J5XCI7XG5leHBvcnQgeyBHZW5lcmF0b3JIaXN0b3J5U2VydmljZSB9IGZyb20gXCIuL2dlbmVyYXRvci1oaXN0b3J5LmFic3RyYWN0aW9uXCI7XG5leHBvcnQgeyBMb2NhbEdlbmVyYXRvckhpc3RvcnlTZXJ2aWNlIH0gZnJvbSBcIi4vbG9jYWwtZ2VuZXJhdG9yLWhpc3Rvcnkuc2VydmljZVwiO1xuZXhwb3J0IHsgR2VuZXJhdG9yQ2F0ZWdvcnkgfSBmcm9tIFwiLi9vcHRpb25zXCI7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/key-definitions.ts":
/*!****************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/key-definitions.ts ***!
  \****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GENERATOR_HISTORY: () => (/* binding */ GENERATOR_HISTORY),\n/* harmony export */   GENERATOR_HISTORY_BUFFER: () => (/* binding */ GENERATOR_HISTORY_BUFFER)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-key-definition */ \"../../libs/common/src/tools/state/buffered-key-definition.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_secret_classifier__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/state/secret-classifier */ \"../../libs/common/src/tools/state/secret-classifier.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_secret_key_definition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/secret-key-definition */ \"../../libs/common/src/tools/state/secret-key-definition.ts\");\n/* harmony import */ var _generated_credential__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./generated-credential */ \"../../libs/tools/generator/extensions/history/src/generated-credential.ts\");\n/* harmony import */ var _generated_password_history__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./generated-password-history */ \"../../libs/tools/generator/extensions/history/src/generated-password-history.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n/** encrypted password generation history */\nconst GENERATOR_HISTORY = _bitwarden_common_tools_state_secret_key_definition__WEBPACK_IMPORTED_MODULE_3__.SecretKeyDefinition.array(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"localGeneratorHistory\", _bitwarden_common_tools_state_secret_classifier__WEBPACK_IMPORTED_MODULE_2__.SecretClassifier.allSecret(), {\n    deserializer: _generated_credential__WEBPACK_IMPORTED_MODULE_4__.GeneratedCredential.fromJSON,\n    clearOn: [\"logout\"],\n});\n/** encrypted password generation history subject to migration */\nconst GENERATOR_HISTORY_BUFFER = new _bitwarden_common_tools_state_buffered_key_definition__WEBPACK_IMPORTED_MODULE_1__.BufferedKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"localGeneratorHistoryBuffer\", {\n    deserializer(history) {\n        const items = history;\n        return items === null || items === void 0 ? void 0 : items.map((h) => new _generated_password_history__WEBPACK_IMPORTED_MODULE_5__.GeneratedPasswordHistory(h.password, h.date));\n    },\n    isValid(history) {\n        return __awaiter(this, void 0, void 0, function* () {\n            return history.length ? true : false;\n        });\n    },\n    map(history, decryptor) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const credentials = yield decryptor.decrypt(history);\n            const mapped = credentials.map((c) => new _generated_credential__WEBPACK_IMPORTED_MODULE_4__.GeneratedCredential(c.password, \"password\", c.date));\n            return mapped;\n        });\n    },\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9rZXktZGVmaW5pdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFa0U7QUFDNEI7QUFDWDtBQUNPO0FBRTdCO0FBQ1c7QUFHeEUsNENBQTRDO0FBQ3JDLE1BQU0saUJBQWlCLEdBQUcsb0dBQW1CLENBQUMsS0FBSyxDQUN4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B9LFxuICBhc3luYyBpc1ZhbGlkKGhpc3RvcnkpIHtcbiAgICByZXR1cm4gaGlzdG9yeS5sZW5ndGggPyB0cnVlIDogZmFsc2U7XG4gIH0sXG4gIGFzeW5jIG1hcChoaXN0b3J5LCBkZWNyeXB0b3IpIHtcbiAgICBjb25zdCBjcmVkZW50aWFscyA9IGF3YWl0IGRlY3J5cHRvci5kZWNyeXB0KGhpc3RvcnkpO1xuICAgIGNvbnN0IG1hcHBlZCA9IGNyZWRlbnRpYWxzLm1hcCgoYykgPT4gbmV3IEdlbmVyYXRlZENyZWRlbnRpYWwoYy5wYXNzd29yZCwgXCJwYXNzd29yZFwiLCBjLmRhdGUpKTtcbiAgICByZXR1cm4gbWFwcGVkO1xuICB9LFxuICBjbGVhck9uOiBbXCJsb2dvdXRcIl0sXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/key-definitions.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/legacy-password-history-decryptor.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/legacy-password-history-decryptor.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LegacyPasswordHistoryDecryptor: () => (/* binding */ LegacyPasswordHistoryDecryptor)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/models/domain/enc-string */ \"../../libs/common/src/platform/models/domain/enc-string.ts\");\n/* harmony import */ var _generated_password_history__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./generated-password-history */ \"../../libs/tools/generator/extensions/history/src/generated-password-history.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n/** Strategy that decrypts a password history */\nclass LegacyPasswordHistoryDecryptor {\n    constructor(userId, keyService, encryptService) {\n        this.userId = userId;\n        this.keyService = keyService;\n        this.encryptService = encryptService;\n    }\n    /** Decrypts a password history. */\n    decrypt(history) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const key = yield this.keyService.getUserKey(this.userId);\n            const promises = (history !== null && history !== void 0 ? history : []).map((item) => __awaiter(this, void 0, void 0, function* () {\n                const encrypted = new _bitwarden_common_platform_models_domain_enc_string__WEBPACK_IMPORTED_MODULE_0__.EncString(item.password);\n                const decrypted = yield this.encryptService.decryptToUtf8(encrypted, key);\n                return new _generated_password_history__WEBPACK_IMPORTED_MODULE_1__.GeneratedPasswordHistory(decrypted, item.date);\n            }));\n            const decrypted = yield Promise.all(promises);\n            return decrypted;\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9oaXN0b3J5L3NyYy9sZWdhY3ktcGFzc3dvcmQtaGlzdG9yeS1kZWNyeXB0b3IudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQ2dGO0FBSVI7QUFFeEUsZ0RBQWdEO0FBQ3pDLE1BQU0sOEJBQThCO0lBQ3pDLFlBQ1UsTUFBYyxFQUNkLFVBQXNCLEVBQ3RCLGNBQThCO1FBRjlC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NlcktleSh0aGlzLnVzZXJJZCk7XG5cbiAgICBjb25zdCBwcm9taXNlcyA9IChoaXN0b3J5ID8/IFtdKS5tYXAoYXN5bmMgKGl0ZW0pID0+IHtcbiAgICAgIGNvbnN0IGVuY3J5cHRlZCA9IG5ldyBFbmNTdHJpbmcoaXRlbS5wYXNzd29yZCk7XG4gICAgICBjb25zdCBkZWNyeXB0ZWQgPSBhd2FpdCB0aGlzLmVuY3J5cHRTZXJ2aWNlLmRlY3J5cHRUb1V0ZjgoZW5jcnlwdGVkLCBrZXkpO1xuICAgICAgcmV0dXJuIG5ldyBHZW5lcmF0ZWRQYXNzd29yZEhpc3RvcnkoZGVjcnlwdGVkLCBpdGVtLmRhdGUpO1xuICAgIH0pO1xuXG4gICAgY29uc3QgZGVjcnlwdGVkID0gYXdhaXQgUHJvbWlzZS5hbGwocHJvbWlzZXMpO1xuXG4gICAgcmV0dXJuIGRlY3J5cHRlZDtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/legacy-password-history-decryptor.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/history/src/local-generator-history.service.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/history/src/local-generator-history.service.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LocalGeneratorHistoryService: () => (/* binding */ LocalGeneratorHistoryService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_tools_state_buffered_state__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/tools/state/buffered-state */ \"../../libs/common/src/tools/state/buffered-state.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_padded_data_packer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/state/padded-data-packer */ \"../../libs/common/src/tools/state/padded-data-packer.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_secret_state__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bitwarden/common/tools/state/secret-state */ \"../../libs/common/src/tools/state/secret-state.ts\");\n/* harmony import */ var _bitwarden_common_tools_state_user_key_encryptor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @bitwarden/common/tools/state/user-key-encryptor */ \"../../libs/common/src/tools/state/user-key-encryptor.ts\");\n/* harmony import */ var _generated_credential__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./generated-credential */ \"../../libs/tools/generator/extensions/history/src/generated-credential.ts\");\n/* harmony import */ var _generator_history_abstraction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./generator-history.abstraction */ \"../../libs/tools/generator/extensions/history/src/generator-history.abstraction.ts\");\n/* harmony import */ var _key_definitions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./key-definitions */ \"../../libs/tools/generator/extensions/history/src/key-definitions.ts\");\n/* harmony import */ var _legacy_password_history_decryptor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./legacy-password-history-decryptor */ \"../../libs/tools/generator/extensions/history/src/legacy-password-history-decryptor.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\n\n\nconst OPTIONS_FRAME_SIZE = 2048;\n/** Tracks the history of password generations local to a device.\n *  {@link GeneratorHistoryService}\n */\nclass LocalGeneratorHistoryService extends _generator_history_abstraction__WEBPACK_IMPORTED_MODULE_6__.GeneratorHistoryService {\n    constructor(encryptService, keyService, stateProvider, options = { maxTotal: 200 }) {\n        super();\n        this.encryptService = encryptService;\n        this.keyService = keyService;\n        this.stateProvider = stateProvider;\n        this.options = options;\n        this._credentialStates = new Map();\n        /** {@link GeneratorHistoryService.track} */\n        this.track = (userId, credential, category, date) => __awaiter(this, void 0, void 0, function* () {\n            const state = this.getCredentialState(userId);\n            let result = null;\n            yield state.update((credentials) => {\n                credentials = credentials !== null && credentials !== void 0 ? credentials : [];\n                // add the result\n                result = new _generated_credential__WEBPACK_IMPORTED_MODULE_5__.GeneratedCredential(credential, category, date !== null && date !== void 0 ? date : Date.now());\n                credentials.unshift(result);\n                // trim history\n                const removeAt = Math.max(0, this.options.maxTotal);\n                credentials.splice(removeAt, Infinity);\n                return credentials;\n            }, {\n                shouldUpdate: (credentials) => { var _a; return !((_a = credentials === null || credentials === void 0 ? void 0 : credentials.some((f) => f.credential === credential)) !== null && _a !== void 0 ? _a : false); },\n            });\n            return result;\n        });\n        /** {@link GeneratorHistoryService.take} */\n        this.take = (userId, credential) => __awaiter(this, void 0, void 0, function* () {\n            const state = this.getCredentialState(userId);\n            let credentialIndex;\n            let result = null;\n            yield state.update((credentials) => {\n                credentials = credentials !== null && credentials !== void 0 ? credentials : [];\n                [result] = credentials.splice(credentialIndex, 1);\n                return credentials;\n            }, {\n                shouldUpdate: (credentials) => {\n                    var _a;\n                    credentialIndex = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.findIndex((f) => f.credential === credential)) !== null && _a !== void 0 ? _a : -1;\n                    return credentialIndex >= 0;\n                },\n            });\n            return result;\n        });\n        /** {@link GeneratorHistoryService.take} */\n        this.clear = (userId) => __awaiter(this, void 0, void 0, function* () {\n            var _a;\n            const state = this.getCredentialState(userId);\n            const result = (_a = (yield state.update(() => null))) !== null && _a !== void 0 ? _a : [];\n            return result;\n        });\n        /** {@link GeneratorHistoryService.credentials$} */\n        this.credentials$ = (userId) => {\n            return this.getCredentialState(userId).state$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((credentials) => credentials !== null && credentials !== void 0 ? credentials : []));\n        };\n    }\n    getCredentialState(userId) {\n        let state = this._credentialStates.get(userId);\n        if (!state) {\n            state = this.createSecretState(userId);\n            this._credentialStates.set(userId, state);\n        }\n        return state;\n    }\n    createSecretState(userId) {\n        // construct the encryptor\n        const packer = new _bitwarden_common_tools_state_padded_data_packer__WEBPACK_IMPORTED_MODULE_2__.PaddedDataPacker(OPTIONS_FRAME_SIZE);\n        const encryptor$ = this.keyService.userKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((key) => (key ? new _bitwarden_common_tools_state_user_key_encryptor__WEBPACK_IMPORTED_MODULE_4__.UserKeyEncryptor(userId, this.encryptService, key, packer) : null)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((encryptor) => !!encryptor));\n        // construct the durable state\n        const state = _bitwarden_common_tools_state_secret_state__WEBPACK_IMPORTED_MODULE_3__.SecretState.from(userId, _key_definitions__WEBPACK_IMPORTED_MODULE_7__.GENERATOR_HISTORY, this.stateProvider, encryptor$);\n        // decryptor is just an algorithm, but it can't run until the key is available;\n        // providing it via an observable makes running it early impossible\n        const decryptor = new _legacy_password_history_decryptor__WEBPACK_IMPORTED_MODULE_8__.LegacyPasswordHistoryDecryptor(userId, this.keyService, this.encryptService);\n        const decryptor$ = this.keyService.userKey$(userId).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((key) => key && decryptor));\n        // move data from the old password history once decryptor is available\n        const buffer = new _bitwarden_common_tools_state_buffered_state__WEBPACK_IMPORTED_MODULE_1__.BufferedState(this.stateProvider, _key_definitions__WEBPACK_IMPORTED_MODULE_7__.GENERATOR_HISTORY_BUFFER, state, decryptor$);\n        return buffer;\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 12164 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/history/src/local-generator-history.service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/create-legacy-password-generation-service.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/create-legacy-password-generation-service.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   legacyPasswordGenerationServiceFactory: () => (/* binding */ legacyPasswordGenerationServiceFactory)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/generator-core */ \"../../libs/tools/generator/core/src/index.ts\");\n/* harmony import */ var _bitwarden_generator_history__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/generator-history */ \"../../libs/tools/generator/extensions/history/src/index.ts\");\n/* harmony import */ var _bitwarden_generator_navigation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/generator-navigation */ \"../../libs/tools/generator/extensions/navigation/src/index.ts\");\n/* harmony import */ var _legacy_password_generation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./legacy-password-generation.service */ \"../../libs/tools/generator/extensions/legacy/src/legacy-password-generation.service.ts\");\n\n\n\n\nconst { PassphraseGeneratorStrategy, PasswordGeneratorStrategy } = _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.strategies;\nconst { KeyServiceRandomizer, PasswordRandomizer } = _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.engine;\nconst DefaultGeneratorService = _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.services.DefaultGeneratorService;\nfunction legacyPasswordGenerationServiceFactory(encryptService, keyService, policyService, accountService, stateProvider) {\n    const randomizer = new KeyServiceRandomizer(keyService);\n    const passwordRandomizer = new PasswordRandomizer(randomizer);\n    const passwords = new DefaultGeneratorService(new PasswordGeneratorStrategy(passwordRandomizer, stateProvider), policyService);\n    const passphrases = new DefaultGeneratorService(new PassphraseGeneratorStrategy(passwordRandomizer, stateProvider), policyService);\n    const navigation = new _bitwarden_generator_navigation__WEBPACK_IMPORTED_MODULE_2__.DefaultGeneratorNavigationService(stateProvider, policyService);\n    const history = new _bitwarden_generator_history__WEBPACK_IMPORTED_MODULE_1__.LocalGeneratorHistoryService(encryptService, keyService, stateProvider);\n    return new _legacy_password_generation_service__WEBPACK_IMPORTED_MODULE_3__.LegacyPasswordGenerationService(accountService, navigation, passwords, passphrases, history);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 4280 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/create-legacy-password-generation-service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/create-legacy-username-generation-service.ts":
/*!*****************************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/create-legacy-username-generation-service.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   legacyUsernameGenerationServiceFactory: () => (/* binding */ legacyUsernameGenerationServiceFactory)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_tools_integration_rpc__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/tools/integration/rpc */ \"../../libs/common/src/tools/integration/rpc/index.ts\");\n/* harmony import */ var _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/generator-core */ \"../../libs/tools/generator/core/src/index.ts\");\n/* harmony import */ var _bitwarden_generator_navigation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/generator-navigation */ \"../../libs/tools/generator/extensions/navigation/src/index.ts\");\n/* harmony import */ var _legacy_username_generation_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./legacy-username-generation.service */ \"../../libs/tools/generator/extensions/legacy/src/legacy-username-generation.service.ts\");\n\n\n\n\nconst { KeyServiceRandomizer, UsernameRandomizer, EmailRandomizer, EmailCalculator } = _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.engine;\nconst DefaultGeneratorService = _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.services.DefaultGeneratorService;\nconst { CatchallGeneratorStrategy, SubaddressGeneratorStrategy, EffUsernameGeneratorStrategy, ForwarderGeneratorStrategy, } = _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.strategies;\nfunction legacyUsernameGenerationServiceFactory(apiService, i18nService, keyService, encryptService, policyService, accountService, stateProvider) {\n    const randomizer = new KeyServiceRandomizer(keyService);\n    const restClient = new _bitwarden_common_tools_integration_rpc__WEBPACK_IMPORTED_MODULE_0__.RestClient(apiService, i18nService);\n    const usernameRandomizer = new UsernameRandomizer(randomizer);\n    const emailRandomizer = new EmailRandomizer(randomizer);\n    const emailCalculator = new EmailCalculator();\n    const effUsername = new DefaultGeneratorService(new EffUsernameGeneratorStrategy(usernameRandomizer, stateProvider), policyService);\n    const subaddress = new DefaultGeneratorService(new SubaddressGeneratorStrategy(emailCalculator, emailRandomizer, stateProvider), policyService);\n    const catchall = new DefaultGeneratorService(new CatchallGeneratorStrategy(emailCalculator, emailRandomizer, stateProvider), policyService);\n    const addyIo = new DefaultGeneratorService(new ForwarderGeneratorStrategy(_bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Integrations.AddyIo, restClient, i18nService, encryptService, keyService, stateProvider), policyService);\n    const duckDuckGo = new DefaultGeneratorService(new ForwarderGeneratorStrategy(_bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Integrations.DuckDuckGo, restClient, i18nService, encryptService, keyService, stateProvider), policyService);\n    const fastmail = new DefaultGeneratorService(new ForwarderGeneratorStrategy(_bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Integrations.Fastmail, restClient, i18nService, encryptService, keyService, stateProvider), policyService);\n    const firefoxRelay = new DefaultGeneratorService(new ForwarderGeneratorStrategy(_bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Integrations.FirefoxRelay, restClient, i18nService, encryptService, keyService, stateProvider), policyService);\n    const forwardEmail = new DefaultGeneratorService(new ForwarderGeneratorStrategy(_bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Integrations.ForwardEmail, restClient, i18nService, encryptService, keyService, stateProvider), policyService);\n    const simpleLogin = new DefaultGeneratorService(new ForwarderGeneratorStrategy(_bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Integrations.SimpleLogin, restClient, i18nService, encryptService, keyService, stateProvider), policyService);\n    const navigation = new _bitwarden_generator_navigation__WEBPACK_IMPORTED_MODULE_2__.DefaultGeneratorNavigationService(stateProvider, policyService);\n    return new _legacy_username_generation_service__WEBPACK_IMPORTED_MODULE_3__.LegacyUsernameGenerationService(accountService, navigation, catchall, effUsername, subaddress, addyIo, duckDuckGo, fastmail, firefoxRelay, forwardEmail, simpleLogin);\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8888 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/create-legacy-username-generation-service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/index.ts":
/*!*****************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/index.ts ***!
  \*****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordGenerationServiceAbstraction: () => (/* reexport safe */ _password_generation_service_abstraction__WEBPACK_IMPORTED_MODULE_0__.PasswordGenerationServiceAbstraction),\n/* harmony export */   UsernameGenerationServiceAbstraction: () => (/* reexport safe */ _username_generation_service_abstraction__WEBPACK_IMPORTED_MODULE_3__.UsernameGenerationServiceAbstraction),\n/* harmony export */   legacyPasswordGenerationServiceFactory: () => (/* reexport safe */ _create_legacy_password_generation_service__WEBPACK_IMPORTED_MODULE_1__.legacyPasswordGenerationServiceFactory),\n/* harmony export */   legacyUsernameGenerationServiceFactory: () => (/* reexport safe */ _create_legacy_username_generation_service__WEBPACK_IMPORTED_MODULE_4__.legacyUsernameGenerationServiceFactory)\n/* harmony export */ });\n/* harmony import */ var _password_generation_service_abstraction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./password-generation.service.abstraction */ \"../../libs/tools/generator/extensions/legacy/src/password-generation.service.abstraction.ts\");\n/* harmony import */ var _create_legacy_password_generation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-legacy-password-generation-service */ \"../../libs/tools/generator/extensions/legacy/src/create-legacy-password-generation-service.ts\");\n/* harmony import */ var _password_generator_options__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./password-generator-options */ \"../../libs/tools/generator/extensions/legacy/src/password-generator-options.ts\");\n/* harmony import */ var _username_generation_service_abstraction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./username-generation.service.abstraction */ \"../../libs/tools/generator/extensions/legacy/src/username-generation.service.abstraction.ts\");\n/* harmony import */ var _create_legacy_username_generation_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./create-legacy-username-generation-service */ \"../../libs/tools/generator/extensions/legacy/src/create-legacy-username-generation-service.ts\");\n/* harmony import */ var _username_generation_options__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./username-generation-options */ \"../../libs/tools/generator/extensions/legacy/src/username-generation-options.ts\");\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9sZWdhY3kvc3JjL2luZGV4LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBMEQ7QUFDRTtBQUNmO0FBQ2E7QUFDRTtBQUNkIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9sZWdhY3kvc3JjL2luZGV4LnRzPzRlNzMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vcGFzc3dvcmQtZ2VuZXJhdGlvbi5zZXJ2aWNlLmFic3RyYWN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jcmVhdGUtbGVnYWN5LXBhc3N3b3JkLWdlbmVyYXRpb24tc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcGFzc3dvcmQtZ2VuZXJhdG9yLW9wdGlvbnNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXJuYW1lLWdlbmVyYXRpb24uc2VydmljZS5hYnN0cmFjdGlvblwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY3JlYXRlLWxlZ2FjeS11c2VybmFtZS1nZW5lcmF0aW9uLXNlcnZpY2VcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3VzZXJuYW1lLWdlbmVyYXRpb24tb3B0aW9uc1wiO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/legacy-password-generation.service.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/legacy-password-generation.service.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LegacyPasswordGenerationService: () => (/* binding */ LegacyPasswordGenerationService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_admin_console_models_domain_password_generator_policy_options__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/models/domain/password-generator-policy-options */ \"../../libs/common/src/admin-console/models/domain/password-generator-policy-options.ts\");\n/* harmony import */ var _bitwarden_generator_history__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/generator-history */ \"../../libs/tools/generator/extensions/history/src/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n/** Adapts the generator 2.0 design to 1.0 angular services. */\nclass LegacyPasswordGenerationService {\n    constructor(accountService, navigation, passwords, passphrases, history) {\n        this.accountService = accountService;\n        this.navigation = navigation;\n        this.passwords = passwords;\n        this.passphrases = passphrases;\n        this.history = history;\n    }\n    generatePassword(options) {\n        if (options.type === \"password\") {\n            return this.passwords.generate(options);\n        }\n        else {\n            return this.passphrases.generate(options);\n        }\n    }\n    generatePassphrase(options) {\n        return this.passphrases.generate(options);\n    }\n    getRawOptions$() {\n        function withSequenceNumber(observable$) {\n            return observable$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((evaluator, i) => [evaluator, i]));\n        }\n        // initial array ensures that destructuring never fails; sequence numbers\n        // set to `-1` so that the first update reflects that the policy changed from\n        // \"unknown\" to \"whatever was provided by the service\". This needs to be called\n        // each time the active user changes or the `concat` will block.\n        function initial$() {\n            const initial = [\n                null,\n                null,\n                [null, -1],\n                null,\n                null,\n                [null, -1],\n                null,\n                null,\n                [null, -1],\n            ];\n            return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(initial);\n        }\n        function intermediatePairsToRawOptions([previous, current]) {\n            const [, , [, passwordPrevious], , , [, passphrasePrevious], , , [, generatorPrevious]] = previous;\n            const [passwordOptions, passwordDefaults, [passwordEvaluator, passwordCurrent], passphraseOptions, passphraseDefaults, [passphraseEvaluator, passphraseCurrent], generatorOptions, generatorDefaults, [generatorEvaluator, generatorCurrent],] = current;\n            // when any of the sequence numbers change, the emission occurs as the result of\n            // a policy update\n            const policyEmitted = passwordPrevious < passwordCurrent ||\n                passphrasePrevious < passphraseCurrent ||\n                generatorPrevious < generatorCurrent;\n            const result = [\n                passwordOptions,\n                passwordDefaults,\n                passwordEvaluator,\n                passphraseOptions,\n                passphraseDefaults,\n                passphraseEvaluator,\n                generatorOptions,\n                generatorDefaults,\n                generatorEvaluator,\n                policyEmitted,\n            ];\n            return result;\n        }\n        // look upon my works, ye mighty, and despair!\n        const rawOptions$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((activeUser) => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concat)(initial$(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.passwords.options$(activeUser.id),\n            this.passwords.defaults$(activeUser.id),\n            withSequenceNumber(this.passwords.evaluator$(activeUser.id)),\n            this.passphrases.options$(activeUser.id),\n            this.passphrases.defaults$(activeUser.id),\n            withSequenceNumber(this.passphrases.evaluator$(activeUser.id)),\n            this.navigation.options$(activeUser.id),\n            this.navigation.defaults$(activeUser.id),\n            withSequenceNumber(this.navigation.evaluator$(activeUser.id)),\n        ]))), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.pairwise)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(intermediatePairsToRawOptions));\n        return rawOptions$;\n    }\n    getOptions$() {\n        const options$ = this.getRawOptions$().pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([passwordOptions, passwordDefaults, passwordEvaluator, passphraseOptions, passphraseDefaults, passphraseEvaluator, generatorOptions, generatorDefaults, generatorEvaluator, policyUpdated,]) => {\n            const passwordOptionsWithPolicy = passwordEvaluator.applyPolicy(passwordOptions !== null && passwordOptions !== void 0 ? passwordOptions : passwordDefaults);\n            const passphraseOptionsWithPolicy = passphraseEvaluator.applyPolicy(passphraseOptions !== null && passphraseOptions !== void 0 ? passphraseOptions : passphraseDefaults);\n            const generatorOptionsWithPolicy = generatorEvaluator.applyPolicy(generatorOptions !== null && generatorOptions !== void 0 ? generatorOptions : generatorDefaults);\n            const options = this.toPasswordGeneratorOptions({\n                password: passwordEvaluator.sanitize(passwordOptionsWithPolicy),\n                passphrase: passphraseEvaluator.sanitize(passphraseOptionsWithPolicy),\n                generator: generatorEvaluator.sanitize(generatorOptionsWithPolicy),\n                policyUpdated,\n            });\n            const policy = Object.assign(new _bitwarden_common_admin_console_models_domain_password_generator_policy_options__WEBPACK_IMPORTED_MODULE_1__.PasswordGeneratorPolicyOptions(), passwordEvaluator.policy, passphraseEvaluator.policy, generatorEvaluator.policy);\n            return [options, policy];\n        }));\n        return options$;\n    }\n    getOptions() {\n        return __awaiter(this, void 0, void 0, function* () {\n            return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.getOptions$());\n        });\n    }\n    enforcePasswordGeneratorPoliciesOnOptions(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const options$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((activeUser) => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.zip)(this.passwords.evaluator$(activeUser.id), this.passphrases.evaluator$(activeUser.id), this.navigation.evaluator$(activeUser.id))), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([passwordEvaluator, passphraseEvaluator, navigationEvaluator]) => {\n                const policy = Object.assign(new _bitwarden_common_admin_console_models_domain_password_generator_policy_options__WEBPACK_IMPORTED_MODULE_1__.PasswordGeneratorPolicyOptions(), passwordEvaluator.policy, passphraseEvaluator.policy, navigationEvaluator.policy);\n                const navigationApplied = navigationEvaluator.applyPolicy(options);\n                const navigationSanitized = Object.assign(Object.assign({}, options), navigationEvaluator.sanitize(navigationApplied));\n                if (navigationSanitized.type === \"password\") {\n                    const applied = passwordEvaluator.applyPolicy(navigationSanitized);\n                    const sanitized = passwordEvaluator.sanitize(applied);\n                    return [sanitized, policy];\n                }\n                else {\n                    const applied = passphraseEvaluator.applyPolicy(navigationSanitized);\n                    const sanitized = passphraseEvaluator.sanitize(applied);\n                    return [sanitized, policy];\n                }\n            }));\n            const [sanitized, policy] = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(options$);\n            return [\n                // callers assume this function updates the options parameter\n                Object.assign(options, sanitized),\n                policy,\n            ];\n        });\n    }\n    saveOptions(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const stored = this.toStoredOptions(options);\n            const activeAccount = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            // generator settings needs to preserve whether password or passphrase is selected,\n            // so `navigationOptions` is mutated.\n            const navigationOptions$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.zip)(this.navigation.options$(activeAccount.id), this.navigation.defaults$(activeAccount.id)).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([options, defaults]) => options !== null && options !== void 0 ? options : defaults));\n            let navigationOptions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(navigationOptions$);\n            navigationOptions = Object.assign(navigationOptions, stored.generator);\n            yield this.navigation.saveOptions(activeAccount.id, navigationOptions);\n            // overwrite all other settings with latest values\n            yield this.passwords.saveOptions(activeAccount.id, stored.password);\n            yield this.passphrases.saveOptions(activeAccount.id, stored.passphrase);\n        });\n    }\n    toStoredOptions(options) {\n        return {\n            generator: {\n                type: options.type,\n            },\n            password: {\n                length: options.length,\n                minLength: options.minLength,\n                ambiguous: options.ambiguous,\n                uppercase: options.uppercase,\n                minUppercase: options.minUppercase,\n                lowercase: options.lowercase,\n                minLowercase: options.minLowercase,\n                number: options.number,\n                minNumber: options.minNumber,\n                special: options.special,\n                minSpecial: options.minSpecial,\n            },\n            passphrase: {\n                numWords: options.numWords,\n                wordSeparator: options.wordSeparator,\n                capitalize: options.capitalize,\n                includeNumber: options.includeNumber,\n            },\n            policyUpdated: false,\n        };\n    }\n    toPasswordGeneratorOptions(options) {\n        return {\n            type: options.generator.type,\n            length: options.password.length,\n            minLength: options.password.minLength,\n            ambiguous: options.password.ambiguous,\n            uppercase: options.password.uppercase,\n            minUppercase: options.password.minUppercase,\n            lowercase: options.password.lowercase,\n            minLowercase: options.password.minLowercase,\n            number: options.password.number,\n            minNumber: options.password.minNumber,\n            special: options.password.special,\n            minSpecial: options.password.minSpecial,\n            numWords: options.passphrase.numWords,\n            wordSeparator: options.passphrase.wordSeparator,\n            capitalize: options.passphrase.capitalize,\n            includeNumber: options.passphrase.includeNumber,\n            policyUpdated: options.policyUpdated,\n        };\n    }\n    getHistory() {\n        const history = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((account) => this.history.credentials$(account.id)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timeout)({\n            // timeout after 1 second\n            each: 1000,\n            with() {\n                return [];\n            },\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((history) => history.map(toGeneratedPasswordHistory)));\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(history);\n    }\n    addHistory(password) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const account = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            if (account === null || account === void 0 ? void 0 : account.id) {\n                // legacy service doesn't distinguish credential types\n                yield this.history.track(account.id, password, \"password\");\n            }\n        });\n    }\n    clear() {\n        const history$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.filter)((account) => !!(account === null || account === void 0 ? void 0 : account.id)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((account) => this.history.clear(account.id)), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.timeout)({\n            // timeout after 1 second\n            each: 1000,\n            with() {\n                return [];\n            },\n        }), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((history) => history.map(toGeneratedPasswordHistory)));\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(history$);\n    }\n}\nfunction toGeneratedPasswordHistory(value) {\n    return new _bitwarden_generator_history__WEBPACK_IMPORTED_MODULE_2__.GeneratedPasswordHistory(value.credential, value.generationDate.valueOf());\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29120 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/legacy-password-generation.service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/legacy-username-generation.service.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/legacy-username-generation.service.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   LegacyUsernameGenerationService: () => (/* binding */ LegacyUsernameGenerationService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/generator-core */ \"../../libs/tools/generator/core/src/index.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n/** Adapts the generator 2.0 design to 1.0 angular services. */\nclass LegacyUsernameGenerationService {\n    constructor(accountService, navigation, catchall, effUsername, subaddress, addyIo, duckDuckGo, fastmail, firefoxRelay, forwardEmail, simpleLogin) {\n        this.accountService = accountService;\n        this.navigation = navigation;\n        this.catchall = catchall;\n        this.effUsername = effUsername;\n        this.subaddress = subaddress;\n        this.addyIo = addyIo;\n        this.duckDuckGo = duckDuckGo;\n        this.fastmail = fastmail;\n        this.firefoxRelay = firefoxRelay;\n        this.forwardEmail = forwardEmail;\n        this.simpleLogin = simpleLogin;\n    }\n    generateUsername(options) {\n        if (options.type === \"catchall\") {\n            return this.generateCatchall(options);\n        }\n        else if (options.type === \"subaddress\") {\n            return this.generateSubaddress(options);\n        }\n        else if (options.type === \"forwarded\") {\n            return this.generateForwarded(options);\n        }\n        else {\n            return this.generateWord(options);\n        }\n    }\n    generateWord(options) {\n        return this.effUsername.generate(options);\n    }\n    generateSubaddress(options) {\n        return this.subaddress.generate(options);\n    }\n    generateCatchall(options) {\n        return this.catchall.generate(options);\n    }\n    generateForwarded(options) {\n        if (!options.forwardedService) {\n            return null;\n        }\n        const stored = this.toStoredOptions(options);\n        switch (options.forwardedService) {\n            case _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Forwarders.AddyIo.id:\n                return this.addyIo.generate(stored.forwarders.addyIo);\n            case _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Forwarders.DuckDuckGo.id:\n                return this.duckDuckGo.generate(stored.forwarders.duckDuckGo);\n            case _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Forwarders.Fastmail.id:\n                return this.fastmail.generate(stored.forwarders.fastmail);\n            case _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Forwarders.FirefoxRelay.id:\n                return this.firefoxRelay.generate(stored.forwarders.firefoxRelay);\n            case _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Forwarders.ForwardEmail.id:\n                return this.forwardEmail.generate(stored.forwarders.forwardEmail);\n            case _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_1__.Forwarders.SimpleLogin.id:\n                return this.simpleLogin.generate(stored.forwarders.simpleLogin);\n        }\n    }\n    getOptions$() {\n        // look upon my works, ye mighty, and despair!\n        const options$ = this.accountService.activeAccount$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.concatMap)((account) => (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.combineLatest)([\n            this.navigation.options$(account.id),\n            this.navigation.defaults$(account.id),\n            this.catchall.options$(account.id),\n            this.catchall.defaults$(account.id),\n            this.effUsername.options$(account.id),\n            this.effUsername.defaults$(account.id),\n            this.subaddress.options$(account.id),\n            this.subaddress.defaults$(account.id),\n            this.addyIo.options$(account.id),\n            this.addyIo.defaults$(account.id),\n            this.duckDuckGo.options$(account.id),\n            this.duckDuckGo.defaults$(account.id),\n            this.fastmail.options$(account.id),\n            this.fastmail.defaults$(account.id),\n            this.firefoxRelay.options$(account.id),\n            this.firefoxRelay.defaults$(account.id),\n            this.forwardEmail.options$(account.id),\n            this.forwardEmail.defaults$(account.id),\n            this.simpleLogin.options$(account.id),\n            this.simpleLogin.defaults$(account.id),\n        ])), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([generatorOptions, generatorDefaults, catchallOptions, catchallDefaults, effUsernameOptions, effUsernameDefaults, subaddressOptions, subaddressDefaults, addyIoOptions, addyIoDefaults, duckDuckGoOptions, duckDuckGoDefaults, fastmailOptions, fastmailDefaults, firefoxRelayOptions, firefoxRelayDefaults, forwardEmailOptions, forwardEmailDefaults, simpleLoginOptions, simpleLoginDefaults,]) => this.toUsernameOptions({\n            generator: generatorOptions !== null && generatorOptions !== void 0 ? generatorOptions : generatorDefaults,\n            algorithms: {\n                catchall: catchallOptions !== null && catchallOptions !== void 0 ? catchallOptions : catchallDefaults,\n                effUsername: effUsernameOptions !== null && effUsernameOptions !== void 0 ? effUsernameOptions : effUsernameDefaults,\n                subaddress: subaddressOptions !== null && subaddressOptions !== void 0 ? subaddressOptions : subaddressDefaults,\n            },\n            forwarders: {\n                addyIo: addyIoOptions !== null && addyIoOptions !== void 0 ? addyIoOptions : addyIoDefaults,\n                duckDuckGo: duckDuckGoOptions !== null && duckDuckGoOptions !== void 0 ? duckDuckGoOptions : duckDuckGoDefaults,\n                fastmail: fastmailOptions !== null && fastmailOptions !== void 0 ? fastmailOptions : fastmailDefaults,\n                firefoxRelay: firefoxRelayOptions !== null && firefoxRelayOptions !== void 0 ? firefoxRelayOptions : firefoxRelayDefaults,\n                forwardEmail: forwardEmailOptions !== null && forwardEmailOptions !== void 0 ? forwardEmailOptions : forwardEmailDefaults,\n                simpleLogin: simpleLoginOptions !== null && simpleLoginOptions !== void 0 ? simpleLoginOptions : simpleLoginDefaults,\n            },\n        })));\n        return options$;\n    }\n    getOptions() {\n        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.getOptions$());\n    }\n    saveOptions(options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const stored = this.toStoredOptions(options);\n            const activeAccount = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.accountService.activeAccount$);\n            const saved = yield this.saveGeneratorOptions(activeAccount.id, options.type, stored);\n            if (!saved) {\n                yield this.saveForwarderOptions(activeAccount.id, options.forwardedService, stored);\n            }\n            // run navigation options 2nd so that navigation options update doesn't race the `saved options`\n            // update in Firefox.\n            yield this.saveNavigationOptions(activeAccount.id, stored);\n        });\n    }\n    saveNavigationOptions(account, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            // generator settings needs to preserve whether password or passphrase is selected,\n            // so `navigationOptions` is mutated.\n            const navigationOptions$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.zip)(this.navigation.options$(account), this.navigation.defaults$(account)).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)(([options, defaults]) => options !== null && options !== void 0 ? options : defaults));\n            let navigationOptions = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(navigationOptions$);\n            navigationOptions = Object.assign(navigationOptions, options.generator);\n            yield this.navigation.saveOptions(account, navigationOptions);\n        });\n    }\n    saveGeneratorOptions(account, type, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            switch (type) {\n                case \"word\":\n                    yield this.effUsername.saveOptions(account, options.algorithms.effUsername);\n                    return true;\n                case \"subaddress\":\n                    yield this.subaddress.saveOptions(account, options.algorithms.subaddress);\n                    return true;\n                case \"catchall\":\n                    yield this.catchall.saveOptions(account, options.algorithms.catchall);\n                    return true;\n                default:\n                    return false;\n            }\n        });\n    }\n    saveForwarderOptions(account, forwarder, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            switch (forwarder) {\n                case \"anonaddy\":\n                    yield this.addyIo.saveOptions(account, options.forwarders.addyIo);\n                    return true;\n                case \"duckduckgo\":\n                    yield this.duckDuckGo.saveOptions(account, options.forwarders.duckDuckGo);\n                    return true;\n                case \"fastmail\":\n                    yield this.fastmail.saveOptions(account, options.forwarders.fastmail);\n                    return true;\n                case \"firefoxrelay\":\n                    yield this.firefoxRelay.saveOptions(account, options.forwarders.firefoxRelay);\n                    return true;\n                case \"forwardemail\":\n                    yield this.forwardEmail.saveOptions(account, options.forwarders.forwardEmail);\n                    return true;\n                case \"simplelogin\":\n                    yield this.simpleLogin.saveOptions(account, options.forwarders.simpleLogin);\n                    return true;\n                default:\n                    return false;\n            }\n        });\n    }\n    toStoredOptions(options) {\n        const forwarders = {\n            addyIo: {\n                baseUrl: options.forwardedAnonAddyBaseUrl,\n                token: options.forwardedAnonAddyApiToken,\n                domain: options.forwardedAnonAddyDomain,\n                website: options.website,\n            },\n            duckDuckGo: {\n                token: options.forwardedDuckDuckGoToken,\n                website: options.website,\n            },\n            fastmail: {\n                token: options.forwardedFastmailApiToken,\n                website: options.website,\n            },\n            firefoxRelay: {\n                token: options.forwardedFirefoxApiToken,\n                website: options.website,\n            },\n            forwardEmail: {\n                token: options.forwardedForwardEmailApiToken,\n                domain: options.forwardedForwardEmailDomain,\n                website: options.website,\n            },\n            simpleLogin: {\n                token: options.forwardedSimpleLoginApiKey,\n                baseUrl: options.forwardedSimpleLoginBaseUrl,\n                website: options.website,\n            },\n        };\n        const generator = {\n            username: options.type,\n            forwarder: options.forwardedService,\n        };\n        const algorithms = {\n            effUsername: {\n                wordCapitalize: options.wordCapitalize,\n                wordIncludeNumber: options.wordIncludeNumber,\n                website: options.website,\n            },\n            subaddress: {\n                subaddressType: options.subaddressType,\n                subaddressEmail: options.subaddressEmail,\n                website: options.website,\n            },\n            catchall: {\n                catchallType: options.catchallType,\n                catchallDomain: options.catchallDomain,\n                website: options.website,\n            },\n        };\n        return { generator, algorithms, forwarders };\n    }\n    toUsernameOptions(options) {\n        return {\n            type: options.generator.username,\n            wordCapitalize: options.algorithms.effUsername.wordCapitalize,\n            wordIncludeNumber: options.algorithms.effUsername.wordIncludeNumber,\n            subaddressType: options.algorithms.subaddress.subaddressType,\n            subaddressEmail: options.algorithms.subaddress.subaddressEmail,\n            catchallType: options.algorithms.catchall.catchallType,\n            catchallDomain: options.algorithms.catchall.catchallDomain,\n            forwardedService: options.generator.forwarder,\n            forwardedAnonAddyApiToken: options.forwarders.addyIo.token,\n            forwardedAnonAddyDomain: options.forwarders.addyIo.domain,\n            forwardedAnonAddyBaseUrl: options.forwarders.addyIo.baseUrl,\n            forwardedDuckDuckGoToken: options.forwarders.duckDuckGo.token,\n            forwardedFirefoxApiToken: options.forwarders.firefoxRelay.token,\n            forwardedFastmailApiToken: options.forwarders.fastmail.token,\n            forwardedForwardEmailApiToken: options.forwarders.forwardEmail.token,\n            forwardedForwardEmailDomain: options.forwarders.forwardEmail.domain,\n            forwardedSimpleLoginApiKey: options.forwarders.simpleLogin.token,\n            forwardedSimpleLoginBaseUrl: options.forwarders.simpleLogin.baseUrl,\n        };\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 29740 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/legacy-username-generation.service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/password-generation.service.abstraction.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/password-generation.service.abstraction.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PasswordGenerationServiceAbstraction: () => (/* binding */ PasswordGenerationServiceAbstraction)\n/* harmony export */ });\n/** @deprecated Use {@link GeneratorService} with a password or passphrase {@link GeneratorStrategy} instead. */\nclass PasswordGenerationServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9sZWdhY3kvc3JjL3Bhc3N3b3JkLWdlbmVyYXRpb24uc2VydmljZS5hYnN0cmFjdGlvbi50cyIsIm1hcHBpbmdzIjoiOzs7O0FBT0EsZ0hBQWdIO0FBQ3pHLE1BQWUsb0NBQW9DO0NBWXpEIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQGJpdHdhcmRlbi9jbGkvLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9sZWdhY3kvc3JjL3Bhc3N3b3JkLWdlbmVyYXRpb24uc2VydmljZS5hYnN0cmFjdGlvbi50cz84OTM3Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tIFwicnhqc1wiO1xuXG5pbXBvcnQgeyBQYXNzd29yZEdlbmVyYXRvclBvbGljeU9wdGlvbnMgfSBmcm9tIFwiQGJpdHdhcmRlbi9jb21tb24vYWRtaW4tY29uc29sZS9tb2RlbHMvZG9tYWluL3Bhc3N3b3JkLWdlbmVyYXRvci1wb2xpY3ktb3B0aW9uc1wiO1xuaW1wb3J0IHsgR2VuZXJhdGVkUGFzc3dvcmRIaXN0b3J5IH0gZnJvbSBcIkBiaXR3YXJkZW4vZ2VuZXJhdG9yLWhpc3RvcnlcIjtcblxuaW1wb3J0IHsgUGFzc3dvcmRHZW5lcmF0b3JPcHRpb25zIH0gZnJvbSBcIi4vcGFzc3dvcmQtZ2VuZXJhdG9yLW9wdGlvbnNcIjtcblxuLyoqIEBkZXByZWNhdGVkIFVzZSB7QGxpbmsgR2VuZXJhdG9yU2VydmljZX0gd2l0aCBhIHBhc3N3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+O1xuICBjbGVhcjogKHVzZXJJZD86IHN0cmluZykgPT4gUHJvbWlzZTxHZW5lcmF0ZWRQYXNzd29yZEhpc3RvcnlbXT47XG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/password-generation.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/password-generator-options.ts":
/*!**************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/password-generator-options.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/username-generation-options.ts":
/*!***************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/username-generation-options.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);



/***/ }),

/***/ "../../libs/tools/generator/extensions/legacy/src/username-generation.service.abstraction.ts":
/*!***************************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/legacy/src/username-generation.service.abstraction.ts ***!
  \***************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   UsernameGenerationServiceAbstraction: () => (/* binding */ UsernameGenerationServiceAbstraction)\n/* harmony export */ });\n/** @deprecated Use {@link GeneratorService} with a username {@link GeneratorStrategy} instead. */\nclass UsernameGenerationServiceAbstraction {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9sZWdhY3kvc3JjL3VzZXJuYW1lLWdlbmVyYXRpb24uc2Vydm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xzdHJpbmc+O1xuICBnZW5lcmF0ZUZvcndhcmRlZDogKG9wdGlvbnM6IFVzZXJuYW1lR2VuZXJhdG9yT3B0aW9ucykgPT4gUHJvbWlzZTxzdHJpbmc+O1xuICBnZXRPcHRpb25zOiAoKSA9PiBQcm9taXNlPFVzZXJuYW1lR2VuZXJhdG9yT3B0aW9ucz47XG4gIGdldE9wdGlvbnMkOiAoKSA9PiBPYnNlcnZhYmxlPFVzZXJuYW1lR2VuZXJhdG9yT3B0aW9ucz47XG4gIHNhdmVPcHRpb25zOiAob3B0aW9uczogVXNlcm5hbWVHZW5lcmF0b3JPcHRpb25zKSA9PiBQcm9taXNlPHZvaWQ+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/legacy/src/username-generation.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.service.ts":
/*!****************************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.service.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultGeneratorNavigationService: () => (/* binding */ DefaultGeneratorNavigationService)\n/* harmony export */ });\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ \"rxjs\");\n/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n/* harmony import */ var _bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bitwarden/common/tools/rx */ \"../../libs/common/src/tools/rx.ts\");\n/* harmony import */ var _default_generator_navigation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./default-generator-navigation */ \"../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.ts\");\n/* harmony import */ var _generator_navigation_evaluator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./generator-navigation-evaluator */ \"../../libs/tools/generator/extensions/navigation/src/generator-navigation-evaluator.ts\");\n/* harmony import */ var _generator_navigation_policy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./generator-navigation-policy */ \"../../libs/tools/generator/extensions/navigation/src/generator-navigation-policy.ts\");\n/* harmony import */ var _key_definitions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./key-definitions */ \"../../libs/tools/generator/extensions/navigation/src/key-definitions.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\n\n\n\n\n\n\n\nclass DefaultGeneratorNavigationService {\n    /** instantiates the password generator strategy.\n     * @param stateProvider provides durable state\n     * @param policy provides the policy to enforce\n     */\n    constructor(stateProvider, policy) {\n        this.stateProvider = stateProvider;\n        this.policy = policy;\n    }\n    /** An observable monitoring the options saved to disk.\n     *  The observable updates when the options are saved.\n     *   @param userId: Identifies the user making the request\n     */\n    options$(userId) {\n        return this.stateProvider.getUserState$(_key_definitions__WEBPACK_IMPORTED_MODULE_6__.GENERATOR_SETTINGS, userId);\n    }\n    /** Gets the default options. */\n    defaults$(userId) {\n        return new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(Object.assign({}, _default_generator_navigation__WEBPACK_IMPORTED_MODULE_3__.DefaultGeneratorNavigation));\n    }\n    /** An observable monitoring the options used to enforce policy.\n     *  The observable updates when the policy changes.\n     *  @param userId: Identifies the user making the request\n     */\n    evaluator$(userId) {\n        const evaluator$ = this.policy.getAll$(_bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_1__.PolicyType.PasswordGenerator, userId).pipe((0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_2__.reduceCollection)(_generator_navigation_policy__WEBPACK_IMPORTED_MODULE_5__.preferPassword, _generator_navigation_policy__WEBPACK_IMPORTED_MODULE_5__.DisabledGeneratorNavigationPolicy), (0,_bitwarden_common_tools_rx__WEBPACK_IMPORTED_MODULE_2__.distinctIfShallowMatch)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.map)((policy) => new _generator_navigation_evaluator__WEBPACK_IMPORTED_MODULE_4__.GeneratorNavigationEvaluator(policy)));\n        return evaluator$;\n    }\n    /** Enforces the policy on the given options\n     * @param userId: Identifies the user making the request\n     * @param options the options to enforce the policy on\n     * @returns a new instance of the options with the policy enforced\n     */\n    enforcePolicy(userId, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            const evaluator = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.firstValueFrom)(this.evaluator$(userId));\n            const applied = evaluator.applyPolicy(options);\n            const sanitized = evaluator.sanitize(applied);\n            return sanitized;\n        });\n    }\n    /** Saves the navigation options to disk.\n     * @param userId: Identifies the user making the request\n     * @param options the options to save\n     * @returns a promise that resolves when the options are saved\n     */\n    saveOptions(userId, options) {\n        return __awaiter(this, void 0, void 0, function* () {\n            yield this.stateProvider.setUserState(_key_definitions__WEBPACK_IMPORTED_MODULE_6__.GENERATOR_SETTINGS, options, userId);\n        });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6264 characters]\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.service.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.ts":
/*!********************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultGeneratorNavigation: () => (/* binding */ DefaultGeneratorNavigation)\n/* harmony export */ });\n/** The default options for password generation. */\nconst DefaultGeneratorNavigation = Object.freeze({\n    type: \"password\",\n    username: \"word\",\n    forwarder: \"\",\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9uYXZpZ2F0aW9uL3NyYy9kZWZhdWx0LWdlbmVyYXRvci1uYXZpZ2F0aW9uLnRzIiwibWFwcGluZ3MiOiI7Ozs7QUFFQSxtREFBbUQ7QUFDNUMsTUFBTSwwQkFBMEIsR0FBaUMsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUNwRixJQUFJLEVBQUUsVUFBVTtJQUNoQixRQUFRLEVBQUUsTUFBTTtJQUNoQixTQUFTLEVBQUUsRUFBRTtDQUNkLENBQUMsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2V4dGVuc2lvbnMvbmF2aWdhdGlvbi9zcmMvZGVmYXVsdC1nZW5lcmF0b3ItbmF2aWdhdGlvbi50cz8zNWZhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEdlbmVyYXRvck5hdmlnYXRpb24gfSBmcm9tIFwiLi9nZW5lcmF0b3ItbmF2aWdhdGlvblwiO1xuXG4vKiogVGhlIGRlZmF1bHQgb3B0aW9ucyBmb3IgcGFzc3dvcmQgZ2VuZXJhdGlvbi4gKi9cbmV4cG9ydCBjb25zdCBEZWZhdWx0R2VuZXJhdG9yTmF2aWdhdGlvbjogUGFydGlhbDxHZW5lcmF0b3JOYXZpZ2F0aW9uPiA9IE9iamVjdC5mcmVlemUoe1xuICB0eXBlOiBcInBhc3N3b3JkXCIsXG4gIHVzZXJuYW1lOiBcIndvcmRcIixcbiAgZm9yd2FyZGVyOiBcIlwiLFxufSk7XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/generator-navigation-evaluator.ts":
/*!**********************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/generator-navigation-evaluator.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorNavigationEvaluator: () => (/* binding */ GeneratorNavigationEvaluator)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/generator-core */ \"../../libs/tools/generator/core/src/index.ts\");\n/* harmony import */ var _default_generator_navigation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-generator-navigation */ \"../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.ts\");\n\n\n/** Enforces policy for generator navigation options.\n */\nclass GeneratorNavigationEvaluator {\n    /** Instantiates the evaluator.\n     * @param policy The policy applied by the evaluator. When this conflicts with\n     *               the defaults, the policy takes precedence.\n     */\n    constructor(policy) {\n        this.policy = policy;\n    }\n    /** {@link PolicyEvaluator.policyInEffect} */\n    get policyInEffect() {\n        var _a;\n        return _bitwarden_generator_core__WEBPACK_IMPORTED_MODULE_0__.PasswordAlgorithms.includes((_a = this.policy) === null || _a === void 0 ? void 0 : _a.overridePasswordType);\n    }\n    /** Apply policy to the input options.\n     *  @param options The options to build from. These options are not altered.\n     *  @returns A new password generation request with policy applied.\n     */\n    applyPolicy(options) {\n        var _a;\n        const result = Object.assign({}, options);\n        if (this.policyInEffect) {\n            result.type = (_a = this.policy.overridePasswordType) !== null && _a !== void 0 ? _a : result.type;\n        }\n        return result;\n    }\n    /** Ensures internal options consistency.\n     *  @param options The options to cascade. These options are not altered.\n     *  @returns A passphrase generation request with cascade applied.\n     */\n    sanitize(options) {\n        var _a;\n        return Object.assign(Object.assign({}, options), { type: (_a = options.type) !== null && _a !== void 0 ? _a : _default_generator_navigation__WEBPACK_IMPORTED_MODULE_1__.DefaultGeneratorNavigation.type });\n    }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9uYXZpZ2F0aW9uL3NyYy9nZW5lcmF0b3ItbmF2aWdhdGlvbi1ldmFsdWF0b3IudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQWdGO0FBRUo7QUFJNUU7R0FDRztBQUNJLE1BQU0sNEJBQTRCO0lBR3ZDOzs7T0FHRztJQUNILFlBQXFCLE1BQWlDO1FBQWpDLFdBQU0sR0FBTixNQUFNLENBQTJCO0lBQUcsQ0FBQztJQUUxRCw2Q0FBNkM7SUFDN0MsSUFBSSxjQUFjOztRQUNoQixPQUFPLHlFQUFrQixDQUFDLFFBQVEsQ0FBQyxVQUFJLENBQUMsTUFBTSwwQ0FBRSxvQkFBb0IsQ0FBQyxDQUFDO0lBQ3hFLENBQUM7SUFFRDs7O09BR0c7SUFDSCxXQUFXLENBQUMsT0FBNEI7O1FBQ3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iBHZW5lcmF0b3JOYXZpZ2F0aW9uKTogR2VuZXJhdG9yTmF2aWdhdGlvbiB7XG4gICAgY29uc3QgcmVzdWx0ID0geyAuLi5vcHRpb25zIH07XG5cbiAgICBpZiAodGhpcy5wb2xpY3lJbkVmZmVjdCkge1xuICAgICAgcmVzdWx0LnR5cGUgPSB0aGlzLnBvbGljeS5vdmVycmlkZVBhc3N3b3JkVHlwZSA/PyByZXN1bHQudHlwZTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG5cbiAgLyoqIEVuc3VyZXMgaW50ZXJuYWwgb3B0aW9ucyBjb25zaXN0ZW5jeS5cbiAgICogIEBwYXJhbSBvcHRpb25zIFRoZSBvcHRpb25zIHRvIGNhc2NhZGUuIFRoZXNlIG9wdGlvbnMgYXJlIG5vdCBhbHRlcmVkLlxuICAgKiAgQHJldHVybnMgQSBwYXNzcGhyYXNlIGdlbmVyYXRpb24gcmVxdWVzdCB3aXRoIGNhc2NhZGUgYXBwbGllZC5cbiAgICovXG4gIHNhbml0aXplKG9wdGlvbnM6IEdlbmVyYXRvck5hdmlnYXRpb24pOiBHZW5lcmF0b3JOYXZpZ2F0aW9uIHtcbiAgICByZXR1cm4ge1xuICAgICAgLi4ub3B0aW9ucyxcbiAgICAgIHR5cGU6IG9wdGlvbnMudHlwZSA/PyBEZWZhdWx0R2VuZXJhdG9yTmF2aWdhdGlvbi50eXBlLFxuICAgIH07XG4gIH1cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/generator-navigation-evaluator.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/generator-navigation-policy.ts":
/*!*******************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/generator-navigation-policy.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DisabledGeneratorNavigationPolicy: () => (/* binding */ DisabledGeneratorNavigationPolicy),\n/* harmony export */   preferPassword: () => (/* binding */ preferPassword)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/admin-console/enums */ \"../../libs/common/src/admin-console/enums/index.ts\");\n\n/** Reduces a policy into an accumulator by preferring the password generator\n *  type to other generator types.\n *  @param acc the accumulator\n *  @param policy the policy to reduce\n *  @returns the resulting `GeneratorNavigationPolicy`\n */\nfunction preferPassword(acc, policy) {\n    const isEnabled = policy.type === _bitwarden_common_admin_console_enums__WEBPACK_IMPORTED_MODULE_0__.PolicyType.PasswordGenerator && policy.enabled;\n    if (!isEnabled) {\n        return acc;\n    }\n    const isOverridable = acc.overridePasswordType !== \"password\" && policy.data.overridePasswordType;\n    const result = isOverridable\n        ? Object.assign(Object.assign({}, acc), { overridePasswordType: policy.data.overridePasswordType }) : acc;\n    return result;\n}\n/** The default options for password generation policy. */\nconst DisabledGeneratorNavigationPolicy = Object.freeze({\n    overridePasswordType: null,\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9uYXZpZ2F0aW9uL3NyYy9nZW5lcmF0b3ItbmF2aWdhdGlvbi1wb2xpY3kudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQW1FO0FBY25FOzs7OztHQUtHO0FBQ0ksU0FBUyxjQUFjLENBQzVCLEdBQThCLEVBQzlCLE1BQWM7SUFFZCxNQUFNLFNBQVMsR0FBRyxNQUFNLENBQUMsSUFBSSxLQUFLLDZFQUFVLENBQUMsaUJBQWlCLElBQUksTUFBTSxDQUFDLE9BQU8sQ0FBQztJQUNqRixJQUFJLEN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jb25zdCBpc092ZXJyaWRhYmxlID0gYWNjLm92ZXJyaWRlUGFzc3dvcmRUeXBlICE9PSBcInBhc3N3b3JkXCIgJiYgcG9saWN5LmRhdGEub3ZlcnJpZGVQYXNzd29yZFR5cGU7XG4gIGNvbnN0IHJlc3VsdCA9IGlzT3ZlcnJpZGFibGVcbiAgICA/IHsgLi4uYWNjLCBvdmVycmlkZVBhc3N3b3JkVHlwZTogcG9saWN5LmRhdGEub3ZlcnJpZGVQYXNzd29yZFR5cGUgfVxuICAgIDogYWNjO1xuXG4gIHJldHVybiByZXN1bHQ7XG59XG5cbi8qKiBUaGUgZGVmYXVsdCBvcHRpb25zIGZvciBwYXNzd29yZCBnZW5lcmF0aW9uIHBvbGljeS4gKi9cbmV4cG9ydCBjb25zdCBEaXNhYmxlZEdlbmVyYXRvck5hdmlnYXRpb25Qb2xpY3k6IEdlbmVyYXRvck5hdmlnYXRpb25Qb2xpY3kgPSBPYmplY3QuZnJlZXplKHtcbiAgb3ZlcnJpZGVQYXNzd29yZFR5cGU6IG51bGwsXG59KTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/generator-navigation-policy.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/generator-navigation.service.abstraction.ts":
/*!********************************************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/generator-navigation.service.abstraction.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GeneratorNavigationService: () => (/* binding */ GeneratorNavigationService)\n/* harmony export */ });\n/** Loads and stores generator navigational data\n */\nclass GeneratorNavigationService {\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4v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jZSBvZiB0aGUgb3B0aW9ucyB3aXRoIHRoZSBwb2xpY3kgZW5mb3JjZWRcbiAgICovXG4gIGVuZm9yY2VQb2xpY3k6ICh1c2VySWQ6IFVzZXJJZCwgb3B0aW9uczogR2VuZXJhdG9yTmF2aWdhdGlvbikgPT4gUHJvbWlzZTxHZW5lcmF0b3JOYXZpZ2F0aW9uPjtcblxuICAvKiogU2F2ZXMgdGhlIG5hdmlnYXRpb24gb3B0aW9ucyB0byBkaXNrLlxuICAgKiBAcGFyYW0gdXNlcklkOiBJZGVudGlmaWVzIHRoZSB1c2VyIG1ha2luZyB0aGUgcmVxdWVzdFxuICAgKiBAcGFyYW0gb3B0aW9ucyB0aGUgb3B0aW9ucyB0byBzYXZlXG4gICAqIEByZXR1cm5zIGEgcHJvbWlzZSB0aGF0IHJlc29sdmVzIHdoZW4gdGhlIG9wdGlvbnMgYXJlIHNhdmVkXG4gICAqL1xuICBzYXZlT3B0aW9uczogKHVzZXJJZDogVXNlcklkLCBvcHRpb25zOiBHZW5lcmF0b3JOYXZpZ2F0aW9uKSA9PiBQcm9taXNlPHZvaWQ+O1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/generator-navigation.service.abstraction.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/index.ts":
/*!*********************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/index.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DefaultGeneratorNavigation: () => (/* reexport safe */ _default_generator_navigation__WEBPACK_IMPORTED_MODULE_0__.DefaultGeneratorNavigation),\n/* harmony export */   DefaultGeneratorNavigationService: () => (/* reexport safe */ _default_generator_navigation_service__WEBPACK_IMPORTED_MODULE_1__.DefaultGeneratorNavigationService),\n/* harmony export */   GeneratorNavigationEvaluator: () => (/* reexport safe */ _generator_navigation_evaluator__WEBPACK_IMPORTED_MODULE_2__.GeneratorNavigationEvaluator),\n/* harmony export */   GeneratorNavigationService: () => (/* reexport safe */ _generator_navigation_service_abstraction__WEBPACK_IMPORTED_MODULE_3__.GeneratorNavigationService)\n/* harmony export */ });\n/* harmony import */ var _default_generator_navigation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-generator-navigation */ \"../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.ts\");\n/* harmony import */ var _default_generator_navigation_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-generator-navigation.service */ \"../../libs/tools/generator/extensions/navigation/src/default-generator-navigation.service.ts\");\n/* harmony import */ var _generator_navigation_evaluator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./generator-navigation-evaluator */ \"../../libs/tools/generator/extensions/navigation/src/generator-navigation-evaluator.ts\");\n/* harmony import */ var _generator_navigation_service_abstraction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./generator-navigation.service.abstraction */ \"../../libs/tools/generator/extensions/navigation/src/generator-navigation.service.abstraction.ts\");\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9uYXZpZ2F0aW9uL3NyYy9pbmRleC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUE0RTtBQUNlO0FBRVg7QUFDUSIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2V4dGVuc2lvbnMvbmF2aWdhdGlvbi9zcmMvaW5kZXgudHM/MDNmYyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBEZWZhdWx0R2VuZXJhdG9yTmF2aWdhdGlvbiB9IGZyb20gXCIuL2RlZmF1bHQtZ2VuZXJhdG9yLW5hdmlnYXRpb25cIjtcbmV4cG9ydCB7IERlZmF1bHRHZW5lcmF0b3JOYXZpZ2F0aW9uU2VydmljZSB9IGZyb20gXCIuL2RlZmF1bHQtZ2VuZXJhdG9yLW5hdmlnYXRpb24uc2VydmljZVwiO1xuZXhwb3J0IHsgR2VuZXJhdG9yTmF2aWdhdGlvbiB9IGZyb20gXCIuL2dlbmVyYXRvci1uYXZpZ2F0aW9uXCI7XG5leHBvcnQgeyBHZW5lcmF0b3JOYXZpZ2F0aW9uRXZhbHVhdG9yIH0gZnJvbSBcIi4vZ2VuZXJhdG9yLW5hdmlnYXRpb24tZXZhbHVhdG9yXCI7XG5leHBvcnQgeyBHZW5lcmF0b3JOYXZpZ2F0aW9uU2VydmljZSB9IGZyb20gXCIuL2dlbmVyYXRvci1uYXZpZ2F0aW9uLnNlcnZpY2UuYWJzdHJhY3Rpb25cIjtcbmV4cG9ydCB7IEdlbmVyYXRvck5hdmlnYXRpb25Qb2xpY3kgfSBmcm9tIFwiLi9nZW5lcmF0b3ItbmF2aWdhdGlvbi1wb2xpY3lcIjtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/index.ts\n");

/***/ }),

/***/ "../../libs/tools/generator/extensions/navigation/src/key-definitions.ts":
/*!*******************************************************************************!*\
  !*** ../../libs/tools/generator/extensions/navigation/src/key-definitions.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   GENERATOR_SETTINGS: () => (/* binding */ GENERATOR_SETTINGS)\n/* harmony export */ });\n/* harmony import */ var _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @bitwarden/common/platform/state */ \"../../libs/common/src/platform/state/index.ts\");\n\n/** plaintext password generation options */\nconst GENERATOR_SETTINGS = new _bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.UserKeyDefinition(_bitwarden_common_platform_state__WEBPACK_IMPORTED_MODULE_0__.GENERATOR_DISK, \"generatorSettings\", {\n    deserializer: (value) => value,\n    clearOn: [\"logout\"],\n});\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi4vLi4vbGlicy90b29scy9nZW5lcmF0b3IvZXh0ZW5zaW9ucy9uYXZpZ2F0aW9uL3NyYy9rZXktZGVmaW5pdGlvbnMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBcUY7QUFJckYsNENBQTRDO0FBQ3JDLE1BQU0sa0JBQWtCLEdBQUcsSUFBSSwrRUFBaUIsQ0FDckQsNEVBQWMsRUFDZCxtQkFBbUIsRUFDbkI7SUFDRSxZQUFZLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLEtBQUs7SUFDOUIsT0FBTyxFQUFFLENBQUMsUUFBUSxDQUFDO0NBQ3BCLENBQ0YsQ0FBQyIsInNvdXJjZXMiOlsid2VicGFjazovL0BiaXR3YXJkZW4vY2xpLy4uLy4uL2xpYnMvdG9vbHMvZ2VuZXJhdG9yL2V4dGVuc2lvbnMvbmF2aWdhdGlvbi9zcmMva2V5LWRlZmluaXRpb25zLnRzPzE5MDQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgR0VORVJBVE9SX0RJU0ssIFVzZXJLZXlEZWZpbml0aW9uIH0gZnJvbSBcIkBiaXR3YXJkZW4vY29tbW9uL3BsYXRmb3JtL3N0YXRlXCI7XG5cbmltcG9ydCB7IEdlbmVyYXRvck5hdmlnYXRpb24gfSBmcm9tIFwiLi9nZW5lcmF0b3ItbmF2aWdhdGlvblwiO1xuXG4vKiogcGxhaW50ZXh0IHBhc3N3b3JkIGdlbmVyYXRpb24gb3B0aW9ucyAqL1xuZXhwb3J0IGNvbnN0IEdFTkVSQVRPUl9TRVRUSU5HUyA9IG5ldyBVc2VyS2V5RGVmaW5pdGlvbjxHZW5lcmF0b3JOYXZpZ2F0aW9uPihcbiAgR0VORVJBVE9SX0RJU0ssXG4gIFwiZ2VuZXJhdG9yU2V0dGluZ3NcIixcbiAge1xuICAgIGRlc2VyaWFsaXplcjogKHZhbHVlKSA9PiB2YWx1ZSxcbiAgICBjbGVhck9uOiBbXCJsb2dvdXRcIl0sXG4gIH0sXG4pO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///../../libs/tools/generator/extensions/navigation/src/key-definitions.ts\n");

/***/ }),

/***/ "@koa/multer":
/*!******************************!*\
  !*** external "@koa/multer" ***!
  \******************************/
/***/ ((module) => {

module.exports = require("@koa/multer");

/***/ }),

/***/ "@koa/router":
/*!******************************!*\
  !*** external "@koa/router" ***!
  \******************************/
/***/ ((module) => {

module.exports = require("@koa/router");

/***/ }),

/***/ "argon2":
/*!*************************!*\
  !*** external "argon2" ***!
  \*************************/
/***/ ((module) => {

module.exports = require("argon2");

/***/ }),

/***/ "big-integer":
/*!******************************!*\
  !*** external "big-integer" ***!
  \******************************/
/***/ ((module) => {

module.exports = require("big-integer");

/***/ }),

/***/ "buffer/":
/*!**************************!*\
  !*** external "buffer/" ***!
  \**************************/
/***/ ((module) => {

module.exports = require("buffer/");

/***/ }),

/***/ "chalk":
/*!************************!*\
  !*** external "chalk" ***!
  \************************/
/***/ ((module) => {

module.exports = require("chalk");

/***/ }),

/***/ "commander":
/*!****************************!*\
  !*** external "commander" ***!
  \****************************/
/***/ ((module) => {

module.exports = require("commander");

/***/ }),

/***/ "form-data":
/*!****************************!*\
  !*** external "form-data" ***!
  \****************************/
/***/ ((module) => {

module.exports = require("form-data");

/***/ }),

/***/ "https-proxy-agent":
/*!************************************!*\
  !*** external "https-proxy-agent" ***!
  \************************************/
/***/ ((module) => {

module.exports = require("https-proxy-agent");

/***/ }),

/***/ "inquirer":
/*!***************************!*\
  !*** external "inquirer" ***!
  \***************************/
/***/ ((module) => {

module.exports = require("inquirer");

/***/ }),

/***/ "jsdom":
/*!************************!*\
  !*** external "jsdom" ***!
  \************************/
/***/ ((module) => {

module.exports = require("jsdom");

/***/ }),

/***/ "jszip":
/*!************************!*\
  !*** external "jszip" ***!
  \************************/
/***/ ((module) => {

module.exports = require("jszip");

/***/ }),

/***/ "koa":
/*!**********************!*\
  !*** external "koa" ***!
  \**********************/
/***/ ((module) => {

module.exports = require("koa");

/***/ }),

/***/ "koa-bodyparser":
/*!*********************************!*\
  !*** external "koa-bodyparser" ***!
  \*********************************/
/***/ ((module) => {

module.exports = require("koa-bodyparser");

/***/ }),

/***/ "koa-json":
/*!***************************!*\
  !*** external "koa-json" ***!
  \***************************/
/***/ ((module) => {

module.exports = require("koa-json");

/***/ }),

/***/ "lowdb":
/*!************************!*\
  !*** external "lowdb" ***!
  \************************/
/***/ ((module) => {

module.exports = require("lowdb");

/***/ }),

/***/ "lowdb/adapters/FileSync":
/*!******************************************!*\
  !*** external "lowdb/adapters/FileSync" ***!
  \******************************************/
/***/ ((module) => {

module.exports = require("lowdb/adapters/FileSync");

/***/ }),

/***/ "lunr":
/*!***********************!*\
  !*** external "lunr" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("lunr");

/***/ }),

/***/ "node-fetch":
/*!*****************************!*\
  !*** external "node-fetch" ***!
  \*****************************/
/***/ ((module) => {

module.exports = require("node-fetch");

/***/ }),

/***/ "node-forge":
/*!*****************************!*\
  !*** external "node-forge" ***!
  \*****************************/
/***/ ((module) => {

module.exports = require("node-forge");

/***/ }),

/***/ "open":
/*!***********************!*\
  !*** external "open" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("open");

/***/ }),

/***/ "papaparse":
/*!****************************!*\
  !*** external "papaparse" ***!
  \****************************/
/***/ ((module) => {

module.exports = require("papaparse");

/***/ }),

/***/ "proper-lockfile":
/*!**********************************!*\
  !*** external "proper-lockfile" ***!
  \**********************************/
/***/ ((module) => {

module.exports = require("proper-lockfile");

/***/ }),

/***/ "rxjs":
/*!***********************!*\
  !*** external "rxjs" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("rxjs");

/***/ }),

/***/ "semver":
/*!*************************!*\
  !*** external "semver" ***!
  \*************************/
/***/ ((module) => {

module.exports = require("semver");

/***/ }),

/***/ "tldts":
/*!************************!*\
  !*** external "tldts" ***!
  \************************/
/***/ ((module) => {

module.exports = require("tldts");

/***/ }),

/***/ "url":
/*!**********************!*\
  !*** external "url" ***!
  \**********************/
/***/ ((module) => {

module.exports = require("url");

/***/ }),

/***/ "zxcvbn":
/*!*************************!*\
  !*** external "zxcvbn" ***!
  \*************************/
/***/ ((module) => {

module.exports = require("zxcvbn");

/***/ }),

/***/ "child_process":
/*!********************************!*\
  !*** external "child_process" ***!
  \********************************/
/***/ ((module) => {

module.exports = require("child_process");

/***/ }),

/***/ "crypto":
/*!*************************!*\
  !*** external "crypto" ***!
  \*************************/
/***/ ((module) => {

module.exports = require("crypto");

/***/ }),

/***/ "fs":
/*!*********************!*\
  !*** external "fs" ***!
  \*********************/
/***/ ((module) => {

module.exports = require("fs");

/***/ }),

/***/ "http":
/*!***********************!*\
  !*** external "http" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("http");

/***/ }),

/***/ "path":
/*!***********************!*\
  !*** external "path" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("path");

/***/ }),

/***/ "readline":
/*!***************************!*\
  !*** external "readline" ***!
  \***************************/
/***/ ((module) => {

module.exports = require("readline");

/***/ }),

/***/ "./package.json":
/*!**********************!*\
  !*** ./package.json ***!
  \**********************/
/***/ ((module) => {

module.exports = /*#__PURE__*/JSON.parse('{"name":"@bitwarden/cli","description":"A secure and free password manager for all of your devices.","version":"2024.11.0","keywords":["bitwarden","password","vault","password manager","cli"],"author":"Bitwarden Inc. <hello@bitwarden.com> (https://bitwarden.com)","homepage":"https://bitwarden.com","repository":{"type":"git","url":"https://github.com/bitwarden/clients"},"license":"SEE LICENSE IN LICENSE.txt","scripts":{"clean":"rimraf dist","build:oss":"webpack","build:oss:debug":"npm run build:oss && node --inspect ./build/bw.js","build:oss:watch":"webpack --watch","build:oss:prod":"cross-env NODE_ENV=production webpack","build:oss:prod:watch":"cross-env NODE_ENV=production webpack --watch","debug":"node --inspect ./build/bw.js","publish:npm":"npm run build:oss:prod && npm publish --access public","build:bit":"webpack -c ../../bitwarden_license/bit-cli/webpack.config.js","build:bit:debug":"npm run build:bit && node --inspect ./build/bw.js","build:bit:watch":"webpack --watch -c ../../bitwarden_license/bit-cli/webpack.config.js","build:bit:prod":"cross-env NODE_ENV=production npm run build:bit","build:bit:prod:watch":"cross-env NODE_ENV=production npm run build:bit:watch","dist:oss:win":"npm run build:oss:prod && npm run clean && npm run package:oss:win","dist:oss:mac":"npm run build:oss:prod && npm run clean && npm run package:oss:mac","dist:oss:lin":"npm run build:oss:prod && npm run clean && npm run package:oss:lin","dist:bit:win":"npm run build:bit:prod && npm run clean && npm run package:bit:win","dist:bit:mac":"npm run build:bit:prod && npm run clean && npm run package:bit:mac","dist:bit:lin":"npm run build:bit:prod && npm run clean && npm run package:bit:lin","package:oss:win":"pkg . --targets win-x64 --output ./dist/oss/windows/bw.exe","package:oss:mac":"pkg . --targets macos-x64 --output ./dist/oss/macos/bw","package:oss:lin":"pkg . --targets linux-x64 --output ./dist/oss/linux/bw","package:bit:win":"pkg . --targets win-x64 --output ./dist/bit/windows/bw.exe","package:bit:mac":"pkg . --targets macos-x64 --output ./dist/bit/macos/bw","package:bit:lin":"pkg . --targets linux-x64 --output ./dist/bit/linux/bw","test":"jest","test:watch":"jest --watch","test:watch:all":"jest --watchAll"},"bin":{"bw":"build/bw.js"},"pkg":{"assets":["./build/**/*","../../node_modules/argon2/**/*"]},"dependencies":{"@koa/multer":"3.0.2","@koa/router":"13.1.0","argon2":"0.41.1","big-integer":"1.6.52","browser-hrtime":"1.1.8","chalk":"4.1.2","commander":"11.1.0","form-data":"4.0.0","https-proxy-agent":"7.0.5","inquirer":"8.2.6","jsdom":"25.0.1","jszip":"3.10.1","koa":"2.15.3","koa-bodyparser":"4.4.1","koa-json":"2.0.2","lowdb":"1.0.0","lunr":"2.3.9","multer":"1.4.5-lts.1","node-fetch":"2.6.12","node-forge":"1.3.1","open":"8.4.2","papaparse":"5.4.1","proper-lockfile":"4.1.2","rxjs":"7.8.1","tldts":"6.1.58","zxcvbn":"4.4.2"}}');

/***/ }),

/***/ "../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.wasm":
/*!**********************************************************************************!*\
  !*** ../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.wasm ***!
  \**********************************************************************************/
/***/ ((module, exports, __webpack_require__) => {

/* harmony import */ var WEBPACK_IMPORTED_MODULE_0 = __webpack_require__(/*! ./bitwarden_wasm_internal_bg.js */ "../../node_modules/@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.js");
module.exports = __webpack_require__.v(exports, module.id, "0a9d424db325351f6dd8", {
	"./bitwarden_wasm_internal_bg.js": {
		"__wbindgen_string_get": WEBPACK_IMPORTED_MODULE_0.__wbindgen_string_get,
		"__wbindgen_object_drop_ref": WEBPACK_IMPORTED_MODULE_0.__wbindgen_object_drop_ref,
		"__wbindgen_is_object": WEBPACK_IMPORTED_MODULE_0.__wbindgen_is_object,
		"__wbg_getwithrefkey_edc2c8960f0f1191": WEBPACK_IMPORTED_MODULE_0.__wbg_getwithrefkey_edc2c8960f0f1191,
		"__wbindgen_is_undefined": WEBPACK_IMPORTED_MODULE_0.__wbindgen_is_undefined,
		"__wbindgen_in": WEBPACK_IMPORTED_MODULE_0.__wbindgen_in,
		"__wbg_isSafeInteger_b9dff570f01a9100": WEBPACK_IMPORTED_MODULE_0.__wbg_isSafeInteger_b9dff570f01a9100,
		"__wbindgen_as_number": WEBPACK_IMPORTED_MODULE_0.__wbindgen_as_number,
		"__wbindgen_is_string": WEBPACK_IMPORTED_MODULE_0.__wbindgen_is_string,
		"__wbg_entries_c02034de337d3ee2": WEBPACK_IMPORTED_MODULE_0.__wbg_entries_c02034de337d3ee2,
		"__wbg_length_f217bbbf7e8e4df4": WEBPACK_IMPORTED_MODULE_0.__wbg_length_f217bbbf7e8e4df4,
		"__wbg_get_5419cf6b954aa11d": WEBPACK_IMPORTED_MODULE_0.__wbg_get_5419cf6b954aa11d,
		"__wbindgen_object_clone_ref": WEBPACK_IMPORTED_MODULE_0.__wbindgen_object_clone_ref,
		"__wbg_next_b06e115d1b01e10b": WEBPACK_IMPORTED_MODULE_0.__wbg_next_b06e115d1b01e10b,
		"__wbg_done_983b5ffcaec8c583": WEBPACK_IMPORTED_MODULE_0.__wbg_done_983b5ffcaec8c583,
		"__wbg_value_2ab8a198c834c26a": WEBPACK_IMPORTED_MODULE_0.__wbg_value_2ab8a198c834c26a,
		"__wbg_new_92c27aa873e8170e": WEBPACK_IMPORTED_MODULE_0.__wbg_new_92c27aa873e8170e,
		"__wbg_call_3bfa248576352471": WEBPACK_IMPORTED_MODULE_0.__wbg_call_3bfa248576352471,
		"__wbg_new_e69b5f66fda8f13c": WEBPACK_IMPORTED_MODULE_0.__wbg_new_e69b5f66fda8f13c,
		"__wbg_setmethod_ce2da76000b02f6a": WEBPACK_IMPORTED_MODULE_0.__wbg_setmethod_ce2da76000b02f6a,
		"__wbg_new_a9ae04a5200606a5": WEBPACK_IMPORTED_MODULE_0.__wbg_new_a9ae04a5200606a5,
		"__wbg_setheaders_f5205d36e423a544": WEBPACK_IMPORTED_MODULE_0.__wbg_setheaders_f5205d36e423a544,
		"__wbg_setmode_4919fd636102c586": WEBPACK_IMPORTED_MODULE_0.__wbg_setmode_4919fd636102c586,
		"__wbg_setcredentials_a4e661320cdb9738": WEBPACK_IMPORTED_MODULE_0.__wbg_setcredentials_a4e661320cdb9738,
		"__wbg_setbody_aa8b691bec428bf4": WEBPACK_IMPORTED_MODULE_0.__wbg_setbody_aa8b691bec428bf4,
		"__wbg_signal_9acfcec9e7dffc22": WEBPACK_IMPORTED_MODULE_0.__wbg_signal_9acfcec9e7dffc22,
		"__wbg_setsignal_812ccb8269a7fd90": WEBPACK_IMPORTED_MODULE_0.__wbg_setsignal_812ccb8269a7fd90,
		"__wbg_append_8b3e7f74a47ea7d5": WEBPACK_IMPORTED_MODULE_0.__wbg_append_8b3e7f74a47ea7d5,
		"__wbg_instanceof_Response_3c0e210a57ff751d": WEBPACK_IMPORTED_MODULE_0.__wbg_instanceof_Response_3c0e210a57ff751d,
		"__wbg_status_5f4e900d22140a18": WEBPACK_IMPORTED_MODULE_0.__wbg_status_5f4e900d22140a18,
		"__wbg_url_58af972663531d16": WEBPACK_IMPORTED_MODULE_0.__wbg_url_58af972663531d16,
		"__wbg_headers_1b9bf90c73fae600": WEBPACK_IMPORTED_MODULE_0.__wbg_headers_1b9bf90c73fae600,
		"__wbg_stringify_eead5648c09faaf8": WEBPACK_IMPORTED_MODULE_0.__wbg_stringify_eead5648c09faaf8,
		"__wbg_abort_c57daab47a6c1215": WEBPACK_IMPORTED_MODULE_0.__wbg_abort_c57daab47a6c1215,
		"__wbg_text_ebeee8b31af4c919": WEBPACK_IMPORTED_MODULE_0.__wbg_text_ebeee8b31af4c919,
		"__wbindgen_string_new": WEBPACK_IMPORTED_MODULE_0.__wbindgen_string_new,
		"__wbindgen_jsval_loose_eq": WEBPACK_IMPORTED_MODULE_0.__wbindgen_jsval_loose_eq,
		"__wbindgen_cb_drop": WEBPACK_IMPORTED_MODULE_0.__wbindgen_cb_drop,
		"__wbindgen_error_new": WEBPACK_IMPORTED_MODULE_0.__wbindgen_error_new,
		"__wbg_new_1073970097e5a420": WEBPACK_IMPORTED_MODULE_0.__wbg_new_1073970097e5a420,
		"__wbg_set_f975102236d3c502": WEBPACK_IMPORTED_MODULE_0.__wbg_set_f975102236d3c502,
		"__wbg_new_abda76e883ba8a5f": WEBPACK_IMPORTED_MODULE_0.__wbg_new_abda76e883ba8a5f,
		"__wbg_stack_658279fe44541cf6": WEBPACK_IMPORTED_MODULE_0.__wbg_stack_658279fe44541cf6,
		"__wbg_error_f851667af71bcfc6": WEBPACK_IMPORTED_MODULE_0.__wbg_error_f851667af71bcfc6,
		"__wbg_self_bf91bf94d9e04084": WEBPACK_IMPORTED_MODULE_0.__wbg_self_bf91bf94d9e04084,
		"__wbg_window_52dd9f07d03fd5f8": WEBPACK_IMPORTED_MODULE_0.__wbg_window_52dd9f07d03fd5f8,
		"__wbg_globalThis_05c129bf37fcf1be": WEBPACK_IMPORTED_MODULE_0.__wbg_globalThis_05c129bf37fcf1be,
		"__wbg_global_3eca19bb09e9c484": WEBPACK_IMPORTED_MODULE_0.__wbg_global_3eca19bb09e9c484,
		"__wbg_newnoargs_1ede4bf2ebbaaf43": WEBPACK_IMPORTED_MODULE_0.__wbg_newnoargs_1ede4bf2ebbaaf43,
		"__wbg_call_a9ef466721e824f2": WEBPACK_IMPORTED_MODULE_0.__wbg_call_a9ef466721e824f2,
		"__wbg_iterator_695d699a44d6234c": WEBPACK_IMPORTED_MODULE_0.__wbg_iterator_695d699a44d6234c,
		"__wbg_get_ef828680c64da212": WEBPACK_IMPORTED_MODULE_0.__wbg_get_ef828680c64da212,
		"__wbindgen_is_function": WEBPACK_IMPORTED_MODULE_0.__wbindgen_is_function,
		"__wbg_next_13b477da1eaa3897": WEBPACK_IMPORTED_MODULE_0.__wbg_next_13b477da1eaa3897,
		"__wbg_new_034f913e7636e987": WEBPACK_IMPORTED_MODULE_0.__wbg_new_034f913e7636e987,
		"__wbg_push_36cf4d81d7da33d1": WEBPACK_IMPORTED_MODULE_0.__wbg_push_36cf4d81d7da33d1,
		"__wbg_instanceof_ArrayBuffer_74945570b4a62ec7": WEBPACK_IMPORTED_MODULE_0.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7,
		"__wbg_new_70a2f23d1565c04c": WEBPACK_IMPORTED_MODULE_0.__wbg_new_70a2f23d1565c04c,
		"__wbg_has_bd717f25f195f23d": WEBPACK_IMPORTED_MODULE_0.__wbg_has_bd717f25f195f23d,
		"__wbg_resolve_0aad7c1484731c99": WEBPACK_IMPORTED_MODULE_0.__wbg_resolve_0aad7c1484731c99,
		"__wbg_then_748f75edfb032440": WEBPACK_IMPORTED_MODULE_0.__wbg_then_748f75edfb032440,
		"__wbg_then_4866a7d9f55d8f3e": WEBPACK_IMPORTED_MODULE_0.__wbg_then_4866a7d9f55d8f3e,
		"__wbindgen_memory": WEBPACK_IMPORTED_MODULE_0.__wbindgen_memory,
		"__wbg_buffer_ccaed51a635d8a2d": WEBPACK_IMPORTED_MODULE_0.__wbg_buffer_ccaed51a635d8a2d,
		"__wbg_newwithbyteoffsetandlength_7e3eb787208af730": WEBPACK_IMPORTED_MODULE_0.__wbg_newwithbyteoffsetandlength_7e3eb787208af730,
		"__wbg_length_9254c4bd3b9f23c4": WEBPACK_IMPORTED_MODULE_0.__wbg_length_9254c4bd3b9f23c4,
		"__wbg_new_fec2611eb9180f95": WEBPACK_IMPORTED_MODULE_0.__wbg_new_fec2611eb9180f95,
		"__wbg_set_ec2fcf81bc573fd9": WEBPACK_IMPORTED_MODULE_0.__wbg_set_ec2fcf81bc573fd9,
		"__wbg_instanceof_Uint8Array_df0761410414ef36": WEBPACK_IMPORTED_MODULE_0.__wbg_instanceof_Uint8Array_df0761410414ef36,
		"__wbg_new_4e7308fbedde3997": WEBPACK_IMPORTED_MODULE_0.__wbg_new_4e7308fbedde3997,
		"__wbg_append_43a4b1c9d5df4168": WEBPACK_IMPORTED_MODULE_0.__wbg_append_43a4b1c9d5df4168,
		"__wbg_settype_623d2ee701e6310a": WEBPACK_IMPORTED_MODULE_0.__wbg_settype_623d2ee701e6310a,
		"__wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206": WEBPACK_IMPORTED_MODULE_0.__wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206,
		"__wbg_append_7ee78799a92a9731": WEBPACK_IMPORTED_MODULE_0.__wbg_append_7ee78799a92a9731,
		"__wbg_append_8135c71037096394": WEBPACK_IMPORTED_MODULE_0.__wbg_append_8135c71037096394,
		"__wbg_fetch_f8d735ba6fe1b719": WEBPACK_IMPORTED_MODULE_0.__wbg_fetch_f8d735ba6fe1b719,
		"__wbg_fetch_1fdc4448ed9eec00": WEBPACK_IMPORTED_MODULE_0.__wbg_fetch_1fdc4448ed9eec00,
		"__wbg_new_75169ae5a9683c55": WEBPACK_IMPORTED_MODULE_0.__wbg_new_75169ae5a9683c55,
		"__wbindgen_boolean_get": WEBPACK_IMPORTED_MODULE_0.__wbindgen_boolean_get,
		"__wbindgen_number_get": WEBPACK_IMPORTED_MODULE_0.__wbindgen_number_get,
		"__wbg_String_b9412f8799faab3e": WEBPACK_IMPORTED_MODULE_0.__wbg_String_b9412f8799faab3e,
		"__wbindgen_debug_string": WEBPACK_IMPORTED_MODULE_0.__wbindgen_debug_string,
		"__wbindgen_throw": WEBPACK_IMPORTED_MODULE_0.__wbindgen_throw,
		"__wbg_queueMicrotask_848aa4969108a57e": WEBPACK_IMPORTED_MODULE_0.__wbg_queueMicrotask_848aa4969108a57e,
		"__wbg_queueMicrotask_c5419c06eab41e73": WEBPACK_IMPORTED_MODULE_0.__wbg_queueMicrotask_c5419c06eab41e73,
		"__wbg_newwithstrandinit_4b92c89af0a8e383": WEBPACK_IMPORTED_MODULE_0.__wbg_newwithstrandinit_4b92c89af0a8e383,
		"__wbg_debug_a0b6c2c5ac9a4bfd": WEBPACK_IMPORTED_MODULE_0.__wbg_debug_a0b6c2c5ac9a4bfd,
		"__wbg_error_4d17c5bb1ca90c94": WEBPACK_IMPORTED_MODULE_0.__wbg_error_4d17c5bb1ca90c94,
		"__wbg_info_1c7fba7da21072d1": WEBPACK_IMPORTED_MODULE_0.__wbg_info_1c7fba7da21072d1,
		"__wbg_log_4de37a0274d94769": WEBPACK_IMPORTED_MODULE_0.__wbg_log_4de37a0274d94769,
		"__wbg_warn_2e2787d40aad9a81": WEBPACK_IMPORTED_MODULE_0.__wbg_warn_2e2787d40aad9a81,
		"__wbindgen_closure_wrapper1610": WEBPACK_IMPORTED_MODULE_0.__wbindgen_closure_wrapper1610
	}
});

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			id: moduleId,
/******/ 			loaded: false,
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/async module */
/******/ 	(() => {
/******/ 		var webpackQueues = typeof Symbol === "function" ? Symbol("webpack queues") : "__webpack_queues__";
/******/ 		var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__";
/******/ 		var webpackError = typeof Symbol === "function" ? Symbol("webpack error") : "__webpack_error__";
/******/ 		var resolveQueue = (queue) => {
/******/ 			if(queue && queue.d < 1) {
/******/ 				queue.d = 1;
/******/ 				queue.forEach((fn) => (fn.r--));
/******/ 				queue.forEach((fn) => (fn.r-- ? fn.r++ : fn()));
/******/ 			}
/******/ 		}
/******/ 		var wrapDeps = (deps) => (deps.map((dep) => {
/******/ 			if(dep !== null && typeof dep === "object") {
/******/ 				if(dep[webpackQueues]) return dep;
/******/ 				if(dep.then) {
/******/ 					var queue = [];
/******/ 					queue.d = 0;
/******/ 					dep.then((r) => {
/******/ 						obj[webpackExports] = r;
/******/ 						resolveQueue(queue);
/******/ 					}, (e) => {
/******/ 						obj[webpackError] = e;
/******/ 						resolveQueue(queue);
/******/ 					});
/******/ 					var obj = {};
/******/ 					obj[webpackQueues] = (fn) => (fn(queue));
/******/ 					return obj;
/******/ 				}
/******/ 			}
/******/ 			var ret = {};
/******/ 			ret[webpackQueues] = x => {};
/******/ 			ret[webpackExports] = dep;
/******/ 			return ret;
/******/ 		}));
/******/ 		__webpack_require__.a = (module, body, hasAwait) => {
/******/ 			var queue;
/******/ 			hasAwait && ((queue = []).d = -1);
/******/ 			var depQueues = new Set();
/******/ 			var exports = module.exports;
/******/ 			var currentDeps;
/******/ 			var outerResolve;
/******/ 			var reject;
/******/ 			var promise = new Promise((resolve, rej) => {
/******/ 				reject = rej;
/******/ 				outerResolve = resolve;
/******/ 			});
/******/ 			promise[webpackExports] = exports;
/******/ 			promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {}));
/******/ 			module.exports = promise;
/******/ 			body((deps) => {
/******/ 				currentDeps = wrapDeps(deps);
/******/ 				var fn;
/******/ 				var getResult = () => (currentDeps.map((d) => {
/******/ 					if(d[webpackError]) throw d[webpackError];
/******/ 					return d[webpackExports];
/******/ 				}))
/******/ 				var promise = new Promise((resolve) => {
/******/ 					fn = () => (resolve(getResult));
/******/ 					fn.r = 0;
/******/ 					var fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn))));
/******/ 					currentDeps.map((dep) => (dep[webpackQueues](fnQueue)));
/******/ 				});
/******/ 				return fn.r ? promise : getResult();
/******/ 			}, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue)));
/******/ 			queue && queue.d < 0 && (queue.d = 0);
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	(() => {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = (module) => {
/******/ 			var getter = module && module.__esModule ?
/******/ 				() => (module['default']) :
/******/ 				() => (module);
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	(() => {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = (exports, definition) => {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/harmony module decorator */
/******/ 	(() => {
/******/ 		__webpack_require__.hmd = (module) => {
/******/ 			module = Object.create(module);
/******/ 			if (!module.children) module.children = [];
/******/ 			Object.defineProperty(module, 'exports', {
/******/ 				enumerable: true,
/******/ 				set: () => {
/******/ 					throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
/******/ 				}
/******/ 			});
/******/ 			return module;
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	(() => {
/******/ 		__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/wasm loading */
/******/ 	(() => {
/******/ 		__webpack_require__.v = (exports, wasmModuleId, wasmModuleHash, importsObj) => {
/******/ 			return new Promise(function (resolve, reject) {
/******/ 				try {
/******/ 					var { readFile } = require('fs');
/******/ 					var { join } = require('path');
/******/ 		
/******/ 					readFile(join(__dirname, "" + wasmModuleHash + ".module.wasm"), function(err, buffer){
/******/ 						if (err) return reject(err);
/******/ 		
/******/ 						// Fake fetch response
/******/ 						resolve({
/******/ 							arrayBuffer() { return buffer; }
/******/ 						});
/******/ 					});
/******/ 				} catch (err) { reject(err); }
/******/ 			})
/******/ 				.then((x) => (x.arrayBuffer()))
/******/ 				.then((bytes) => (WebAssembly.instantiate(bytes, importsObj)))
/******/ 				.then((res) => (Object.assign(exports, res.instance.exports)));
/******/ 		};
/******/ 	})();
/******/ 	
/******/ 	/* webpack/runtime/publicPath */
/******/ 	(() => {
/******/ 		__webpack_require__.p = "";
/******/ 	})();
/******/ 	
/************************************************************************/
/******/ 	
/******/ 	// startup
/******/ 	// Load entry module and return exports
/******/ 	// This entry module can't be inlined because the eval-source-map devtool is used.
/******/ 	var __webpack_exports__ = __webpack_require__("../../bitwarden_license/bit-cli/src/bw.ts");
/******/ 	
/******/ })()
;