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AAS,MAAQ,GACjB,OAAO,iBAAiB,EAAU,CAAE,WAAY,CAAE,OAAO,GAAQ,CAAC,OAAO,aAAc,CAAE,MAAO,WAClG","file":"/npm/@ballerine/ballerine-sdk@1.1.5/dist/ballerine-sdk.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@ballerine/ballerine-sdk@1.1.5/dist/ballerine-sdk.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*! Ballerine SDK - v1.1.5 - production-build */\n(function(global2, factory) {\n  typeof exports === \"object\" && typeof module !== \"undefined\" ? factory(exports) : typeof define === \"function\" && define.amd ? define([\"exports\"], factory) : (global2 = typeof globalThis !== \"undefined\" ? globalThis : global2 || self, factory(global2.BallerineSDK = {}));\n})(this, function(exports2) {\n  \"use strict\";\n  function noop() {\n  }\n  const identity = (x) => x;\n  function assign(tar, src) {\n    for (const k in src)\n      tar[k] = src[k];\n    return tar;\n  }\n  function run(fn) {\n    return fn();\n  }\n  function blank_object() {\n    return /* @__PURE__ */ Object.create(null);\n  }\n  function run_all(fns) {\n    fns.forEach(run);\n  }\n  function is_function(thing) {\n    return typeof thing === \"function\";\n  }\n  function safe_not_equal(a, b) {\n    return a != a ? b == b : a !== b || (a && typeof a === \"object\" || typeof a === \"function\");\n  }\n  let src_url_equal_anchor;\n  function src_url_equal(element_src, url) {\n    if (!src_url_equal_anchor) {\n      src_url_equal_anchor = document.createElement(\"a\");\n    }\n    src_url_equal_anchor.href = url;\n    return element_src === src_url_equal_anchor.href;\n  }\n  function is_empty(obj) {\n    return Object.keys(obj).length === 0;\n  }\n  function subscribe$1(store, ...callbacks) {\n    if (store == null) {\n      return noop;\n    }\n    const unsub = store.subscribe(...callbacks);\n    return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n  }\n  function get_store_value(store) {\n    let value;\n    subscribe$1(store, (_) => value = _)();\n    return value;\n  }\n  function component_subscribe(component, store, callback) {\n    component.$$.on_destroy.push(subscribe$1(store, callback));\n  }\n  function create_slot(definition, ctx, $$scope, fn) {\n    if (definition) {\n      const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n      return definition[0](slot_ctx);\n    }\n  }\n  function get_slot_context(definition, ctx, $$scope, fn) {\n    return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx;\n  }\n  function get_slot_changes(definition, $$scope, dirty, fn) {\n    if (definition[2] && fn) {\n      const lets = definition[2](fn(dirty));\n      if ($$scope.dirty === void 0) {\n        return lets;\n      }\n      if (typeof lets === \"object\") {\n        const merged = [];\n        const len = Math.max($$scope.dirty.length, lets.length);\n        for (let i = 0; i < len; i += 1) {\n          merged[i] = $$scope.dirty[i] | lets[i];\n        }\n        return merged;\n      }\n      return $$scope.dirty | lets;\n    }\n    return $$scope.dirty;\n  }\n  function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n    if (slot_changes) {\n      const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n      slot.p(slot_context, slot_changes);\n    }\n  }\n  function get_all_dirty_from_scope($$scope) {\n    if ($$scope.ctx.length > 32) {\n      const dirty = [];\n      const length = $$scope.ctx.length / 32;\n      for (let i = 0; i < length; i++) {\n        dirty[i] = -1;\n      }\n      return dirty;\n    }\n    return -1;\n  }\n  function exclude_internal_props(props) {\n    const result = {};\n    for (const k in props)\n      if (k[0] !== \"$\")\n        result[k] = props[k];\n    return result;\n  }\n  function null_to_empty(value) {\n    return value == null ? \"\" : value;\n  }\n  function set_store_value(store, ret, value) {\n    store.set(value);\n    return ret;\n  }\n  const is_client = typeof window !== \"undefined\";\n  let now = is_client ? () => window.performance.now() : () => Date.now();\n  let raf = is_client ? (cb) => requestAnimationFrame(cb) : noop;\n  const tasks = /* @__PURE__ */ new Set();\n  function run_tasks(now2) {\n    tasks.forEach((task) => {\n      if (!task.c(now2)) {\n        tasks.delete(task);\n        task.f();\n      }\n    });\n    if (tasks.size !== 0)\n      raf(run_tasks);\n  }\n  function loop(callback) {\n    let task;\n    if (tasks.size === 0)\n      raf(run_tasks);\n    return {\n      promise: new Promise((fulfill) => {\n        tasks.add(task = { c: callback, f: fulfill });\n      }),\n      abort() {\n        tasks.delete(task);\n      }\n    };\n  }\n  function append(target, node) {\n    target.appendChild(node);\n  }\n  function append_styles(target, style_sheet_id, styles) {\n    const append_styles_to = get_root_for_style(target);\n    if (!append_styles_to.getElementById(style_sheet_id)) {\n      const style = element(\"style\");\n      style.id = style_sheet_id;\n      style.textContent = styles;\n      append_stylesheet(append_styles_to, style);\n    }\n  }\n  function get_root_for_style(node) {\n    if (!node)\n      return document;\n    const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n    if (root && root.host) {\n      return root;\n    }\n    return node.ownerDocument;\n  }\n  function append_empty_stylesheet(node) {\n    const style_element = element(\"style\");\n    append_stylesheet(get_root_for_style(node), style_element);\n    return style_element.sheet;\n  }\n  function append_stylesheet(node, style) {\n    append(node.head || node, style);\n    return style.sheet;\n  }\n  function insert(target, node, anchor) {\n    target.insertBefore(node, anchor || null);\n  }\n  function detach(node) {\n    node.parentNode.removeChild(node);\n  }\n  function destroy_each(iterations, detaching) {\n    for (let i = 0; i < iterations.length; i += 1) {\n      if (iterations[i])\n        iterations[i].d(detaching);\n    }\n  }\n  function element(name) {\n    return document.createElement(name);\n  }\n  function svg_element(name) {\n    return document.createElementNS(\"http://www.w3.org/2000/svg\", name);\n  }\n  function text(data) {\n    return document.createTextNode(data);\n  }\n  function space() {\n    return text(\" \");\n  }\n  function empty() {\n    return text(\"\");\n  }\n  function listen(node, event, handler, options) {\n    node.addEventListener(event, handler, options);\n    return () => node.removeEventListener(event, handler, options);\n  }\n  function attr(node, attribute, value) {\n    if (value == null)\n      node.removeAttribute(attribute);\n    else if (node.getAttribute(attribute) !== value)\n      node.setAttribute(attribute, value);\n  }\n  function set_svg_attributes(node, attributes) {\n    for (const key in attributes) {\n      attr(node, key, attributes[key]);\n    }\n  }\n  function children(element2) {\n    return Array.from(element2.childNodes);\n  }\n  function set_data(text2, data) {\n    data = \"\" + data;\n    if (text2.wholeText !== data)\n      text2.data = data;\n  }\n  function set_style(node, key, value, important) {\n    if (value === null) {\n      node.style.removeProperty(key);\n    } else {\n      node.style.setProperty(key, value, important ? \"important\" : \"\");\n    }\n  }\n  function toggle_class(element2, name, toggle) {\n    element2.classList[toggle ? \"add\" : \"remove\"](name);\n  }\n  function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n    const e = document.createEvent(\"CustomEvent\");\n    e.initCustomEvent(type, bubbles, cancelable, detail);\n    return e;\n  }\n  class HtmlTag {\n    constructor(is_svg = false) {\n      this.is_svg = false;\n      this.is_svg = is_svg;\n      this.e = this.n = null;\n    }\n    c(html) {\n      this.h(html);\n    }\n    m(html, target, anchor = null) {\n      if (!this.e) {\n        if (this.is_svg)\n          this.e = svg_element(target.nodeName);\n        else\n          this.e = element(target.nodeName);\n        this.t = target;\n        this.c(html);\n      }\n      this.i(anchor);\n    }\n    h(html) {\n      this.e.innerHTML = html;\n      this.n = Array.from(this.e.childNodes);\n    }\n    i(anchor) {\n      for (let i = 0; i < this.n.length; i += 1) {\n        insert(this.t, this.n[i], anchor);\n      }\n    }\n    p(html) {\n      this.d();\n      this.h(html);\n      this.i(this.a);\n    }\n    d() {\n      this.n.forEach(detach);\n    }\n  }\n  function construct_svelte_component(component, props) {\n    return new component(props);\n  }\n  const managed_styles = /* @__PURE__ */ new Map();\n  let active = 0;\n  function hash(str) {\n    let hash2 = 5381;\n    let i = str.length;\n    while (i--)\n      hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i);\n    return hash2 >>> 0;\n  }\n  function create_style_information(doc, node) {\n    const info = { stylesheet: append_empty_stylesheet(node), rules: {} };\n    managed_styles.set(doc, info);\n    return info;\n  }\n  function create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n    const step = 16.666 / duration;\n    let keyframes = \"{\\n\";\n    for (let p = 0; p <= 1; p += step) {\n      const t2 = a + (b - a) * ease(p);\n      keyframes += p * 100 + `%{${fn(t2, 1 - t2)}}\n`;\n    }\n    const rule = keyframes + `100% {${fn(b, 1 - b)}}\n}`;\n    const name = `__svelte_${hash(rule)}_${uid}`;\n    const doc = get_root_for_style(node);\n    const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);\n    if (!rules[name]) {\n      rules[name] = true;\n      stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n    }\n    const animation = node.style.animation || \"\";\n    node.style.animation = `${animation ? `${animation}, ` : \"\"}${name} ${duration}ms linear ${delay}ms 1 both`;\n    active += 1;\n    return name;\n  }\n  function delete_rule(node, name) {\n    const previous = (node.style.animation || \"\").split(\", \");\n    const next = previous.filter(name ? (anim) => anim.indexOf(name) < 0 : (anim) => anim.indexOf(\"__svelte\") === -1);\n    const deleted = previous.length - next.length;\n    if (deleted) {\n      node.style.animation = next.join(\", \");\n      active -= deleted;\n      if (!active)\n        clear_rules();\n    }\n  }\n  function clear_rules() {\n    raf(() => {\n      if (active)\n        return;\n      managed_styles.forEach((info) => {\n        const { ownerNode } = info.stylesheet;\n        if (ownerNode)\n          detach(ownerNode);\n      });\n      managed_styles.clear();\n    });\n  }\n  function create_animation(node, from, fn, params) {\n    if (!from)\n      return noop;\n    const to = node.getBoundingClientRect();\n    if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n      return noop;\n    const {\n      delay = 0,\n      duration = 300,\n      easing = identity,\n      start: start_time = now() + delay,\n      end = start_time + duration,\n      tick = noop,\n      css\n    } = fn(node, { from, to }, params);\n    let running = true;\n    let started = false;\n    let name;\n    function start() {\n      if (css) {\n        name = create_rule(node, 0, 1, duration, delay, easing, css);\n      }\n      if (!delay) {\n        started = true;\n      }\n    }\n    function stop() {\n      if (css)\n        delete_rule(node, name);\n      running = false;\n    }\n    loop((now2) => {\n      if (!started && now2 >= start_time) {\n        started = true;\n      }\n      if (started && now2 >= end) {\n        tick(1, 0);\n        stop();\n      }\n      if (!running) {\n        return false;\n      }\n      if (started) {\n        const p = now2 - start_time;\n        const t2 = 0 + 1 * easing(p / duration);\n        tick(t2, 1 - t2);\n      }\n      return true;\n    });\n    start();\n    tick(0, 1);\n    return stop;\n  }\n  function fix_position(node) {\n    const style = getComputedStyle(node);\n    if (style.position !== \"absolute\" && style.position !== \"fixed\") {\n      const { width, height } = style;\n      const a = node.getBoundingClientRect();\n      node.style.position = \"absolute\";\n      node.style.width = width;\n      node.style.height = height;\n      add_transform(node, a);\n    }\n  }\n  function add_transform(node, a) {\n    const b = node.getBoundingClientRect();\n    if (a.left !== b.left || a.top !== b.top) {\n      const style = getComputedStyle(node);\n      const transform = style.transform === \"none\" ? \"\" : style.transform;\n      node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n    }\n  }\n  let current_component;\n  function set_current_component(component) {\n    current_component = component;\n  }\n  function get_current_component() {\n    if (!current_component)\n      throw new Error(\"Function called outside component initialization\");\n    return current_component;\n  }\n  function onMount(fn) {\n    get_current_component().$$.on_mount.push(fn);\n  }\n  function onDestroy(fn) {\n    get_current_component().$$.on_destroy.push(fn);\n  }\n  function createEventDispatcher() {\n    const component = get_current_component();\n    return (type, detail, { cancelable = false } = {}) => {\n      const callbacks = component.$$.callbacks[type];\n      if (callbacks) {\n        const event = custom_event(type, detail, { cancelable });\n        callbacks.slice().forEach((fn) => {\n          fn.call(component, event);\n        });\n        return !event.defaultPrevented;\n      }\n      return true;\n    };\n  }\n  function bubble(component, event) {\n    const callbacks = component.$$.callbacks[event.type];\n    if (callbacks) {\n      callbacks.slice().forEach((fn) => fn.call(this, event));\n    }\n  }\n  const dirty_components = [];\n  const binding_callbacks = [];\n  const render_callbacks = [];\n  const flush_callbacks = [];\n  const resolved_promise = Promise.resolve();\n  let update_scheduled = false;\n  function schedule_update() {\n    if (!update_scheduled) {\n      update_scheduled = true;\n      resolved_promise.then(flush);\n    }\n  }\n  function add_render_callback(fn) {\n    render_callbacks.push(fn);\n  }\n  const seen_callbacks = /* @__PURE__ */ new Set();\n  let flushidx = 0;\n  function flush() {\n    const saved_component = current_component;\n    do {\n      while (flushidx < dirty_components.length) {\n        const component = dirty_components[flushidx];\n        flushidx++;\n        set_current_component(component);\n        update(component.$$);\n      }\n      set_current_component(null);\n      dirty_components.length = 0;\n      flushidx = 0;\n      while (binding_callbacks.length)\n        binding_callbacks.pop()();\n      for (let i = 0; i < render_callbacks.length; i += 1) {\n        const callback = render_callbacks[i];\n        if (!seen_callbacks.has(callback)) {\n          seen_callbacks.add(callback);\n          callback();\n        }\n      }\n      render_callbacks.length = 0;\n    } while (dirty_components.length);\n    while (flush_callbacks.length) {\n      flush_callbacks.pop()();\n    }\n    update_scheduled = false;\n    seen_callbacks.clear();\n    set_current_component(saved_component);\n  }\n  function update($$) {\n    if ($$.fragment !== null) {\n      $$.update();\n      run_all($$.before_update);\n      const dirty = $$.dirty;\n      $$.dirty = [-1];\n      $$.fragment && $$.fragment.p($$.ctx, dirty);\n      $$.after_update.forEach(add_render_callback);\n    }\n  }\n  let promise;\n  function wait() {\n    if (!promise) {\n      promise = Promise.resolve();\n      promise.then(() => {\n        promise = null;\n      });\n    }\n    return promise;\n  }\n  function dispatch(node, direction, kind) {\n    node.dispatchEvent(custom_event(`${direction ? \"intro\" : \"outro\"}${kind}`));\n  }\n  const outroing = /* @__PURE__ */ new Set();\n  let outros;\n  function group_outros() {\n    outros = {\n      r: 0,\n      c: [],\n      p: outros\n    };\n  }\n  function check_outros() {\n    if (!outros.r) {\n      run_all(outros.c);\n    }\n    outros = outros.p;\n  }\n  function transition_in(block, local2) {\n    if (block && block.i) {\n      outroing.delete(block);\n      block.i(local2);\n    }\n  }\n  function transition_out(block, local2, detach2, callback) {\n    if (block && block.o) {\n      if (outroing.has(block))\n        return;\n      outroing.add(block);\n      outros.c.push(() => {\n        outroing.delete(block);\n        if (callback) {\n          if (detach2)\n            block.d(1);\n          callback();\n        }\n      });\n      block.o(local2);\n    } else if (callback) {\n      callback();\n    }\n  }\n  const null_transition = { duration: 0 };\n  function create_in_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = false;\n    let animation_name;\n    let task;\n    let uid = 0;\n    function cleanup() {\n      if (animation_name)\n        delete_rule(node, animation_name);\n    }\n    function go() {\n      const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n      if (css)\n        animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n      tick(0, 1);\n      const start_time = now() + delay;\n      const end_time = start_time + duration;\n      if (task)\n        task.abort();\n      running = true;\n      add_render_callback(() => dispatch(node, true, \"start\"));\n      task = loop((now2) => {\n        if (running) {\n          if (now2 >= end_time) {\n            tick(1, 0);\n            dispatch(node, true, \"end\");\n            cleanup();\n            return running = false;\n          }\n          if (now2 >= start_time) {\n            const t2 = easing((now2 - start_time) / duration);\n            tick(t2, 1 - t2);\n          }\n        }\n        return running;\n      });\n    }\n    let started = false;\n    return {\n      start() {\n        if (started)\n          return;\n        started = true;\n        delete_rule(node);\n        if (is_function(config)) {\n          config = config();\n          wait().then(go);\n        } else {\n          go();\n        }\n      },\n      invalidate() {\n        started = false;\n      },\n      end() {\n        if (running) {\n          cleanup();\n          running = false;\n        }\n      }\n    };\n  }\n  function create_out_transition(node, fn, params) {\n    let config = fn(node, params);\n    let running = true;\n    let animation_name;\n    const group = outros;\n    group.r += 1;\n    function go() {\n      const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n      if (css)\n        animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n      const start_time = now() + delay;\n      const end_time = start_time + duration;\n      add_render_callback(() => dispatch(node, false, \"start\"));\n      loop((now2) => {\n        if (running) {\n          if (now2 >= end_time) {\n            tick(0, 1);\n            dispatch(node, false, \"end\");\n            if (!--group.r) {\n              run_all(group.c);\n            }\n            return false;\n          }\n          if (now2 >= start_time) {\n            const t2 = easing((now2 - start_time) / duration);\n            tick(1 - t2, t2);\n          }\n        }\n        return running;\n      });\n    }\n    if (is_function(config)) {\n      wait().then(() => {\n        config = config();\n        go();\n      });\n    } else {\n      go();\n    }\n    return {\n      end(reset) {\n        if (reset && config.tick) {\n          config.tick(1, 0);\n        }\n        if (running) {\n          if (animation_name)\n            delete_rule(node, animation_name);\n          running = false;\n        }\n      }\n    };\n  }\n  function outro_and_destroy_block(block, lookup) {\n    transition_out(block, 1, 1, () => {\n      lookup.delete(block.key);\n    });\n  }\n  function fix_and_outro_and_destroy_block(block, lookup) {\n    block.f();\n    outro_and_destroy_block(block, lookup);\n  }\n  function update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block2, next, get_context) {\n    let o = old_blocks.length;\n    let n = list.length;\n    let i = o;\n    const old_indexes = {};\n    while (i--)\n      old_indexes[old_blocks[i].key] = i;\n    const new_blocks = [];\n    const new_lookup = /* @__PURE__ */ new Map();\n    const deltas = /* @__PURE__ */ new Map();\n    i = n;\n    while (i--) {\n      const child_ctx = get_context(ctx, list, i);\n      const key = get_key(child_ctx);\n      let block = lookup.get(key);\n      if (!block) {\n        block = create_each_block2(key, child_ctx);\n        block.c();\n      } else if (dynamic) {\n        block.p(child_ctx, dirty);\n      }\n      new_lookup.set(key, new_blocks[i] = block);\n      if (key in old_indexes)\n        deltas.set(key, Math.abs(i - old_indexes[key]));\n    }\n    const will_move = /* @__PURE__ */ new Set();\n    const did_move = /* @__PURE__ */ new Set();\n    function insert2(block) {\n      transition_in(block, 1);\n      block.m(node, next);\n      lookup.set(block.key, block);\n      next = block.first;\n      n--;\n    }\n    while (o && n) {\n      const new_block = new_blocks[n - 1];\n      const old_block = old_blocks[o - 1];\n      const new_key = new_block.key;\n      const old_key = old_block.key;\n      if (new_block === old_block) {\n        next = new_block.first;\n        o--;\n        n--;\n      } else if (!new_lookup.has(old_key)) {\n        destroy(old_block, lookup);\n        o--;\n      } else if (!lookup.has(new_key) || will_move.has(new_key)) {\n        insert2(new_block);\n      } else if (did_move.has(old_key)) {\n        o--;\n      } else if (deltas.get(new_key) > deltas.get(old_key)) {\n        did_move.add(new_key);\n        insert2(new_block);\n      } else {\n        will_move.add(old_key);\n        o--;\n      }\n    }\n    while (o--) {\n      const old_block = old_blocks[o];\n      if (!new_lookup.has(old_block.key))\n        destroy(old_block, lookup);\n    }\n    while (n)\n      insert2(new_blocks[n - 1]);\n    return new_blocks;\n  }\n  function get_spread_update(levels, updates) {\n    const update2 = {};\n    const to_null_out = {};\n    const accounted_for = { $$scope: 1 };\n    let i = levels.length;\n    while (i--) {\n      const o = levels[i];\n      const n = updates[i];\n      if (n) {\n        for (const key in o) {\n          if (!(key in n))\n            to_null_out[key] = 1;\n        }\n        for (const key in n) {\n          if (!accounted_for[key]) {\n            update2[key] = n[key];\n            accounted_for[key] = 1;\n          }\n        }\n        levels[i] = n;\n      } else {\n        for (const key in o) {\n          accounted_for[key] = 1;\n        }\n      }\n    }\n    for (const key in to_null_out) {\n      if (!(key in update2))\n        update2[key] = void 0;\n    }\n    return update2;\n  }\n  function get_spread_object(spread_props) {\n    return typeof spread_props === \"object\" && spread_props !== null ? spread_props : {};\n  }\n  function create_component(block) {\n    block && block.c();\n  }\n  function mount_component(component, target, anchor, customElement) {\n    const { fragment, after_update } = component.$$;\n    fragment && fragment.m(target, anchor);\n    if (!customElement) {\n      add_render_callback(() => {\n        const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);\n        if (component.$$.on_destroy) {\n          component.$$.on_destroy.push(...new_on_destroy);\n        } else {\n          run_all(new_on_destroy);\n        }\n        component.$$.on_mount = [];\n      });\n    }\n    after_update.forEach(add_render_callback);\n  }\n  function destroy_component(component, detaching) {\n    const $$ = component.$$;\n    if ($$.fragment !== null) {\n      run_all($$.on_destroy);\n      $$.fragment && $$.fragment.d(detaching);\n      $$.on_destroy = $$.fragment = null;\n      $$.ctx = [];\n    }\n  }\n  function make_dirty(component, i) {\n    if (component.$$.dirty[0] === -1) {\n      dirty_components.push(component);\n      schedule_update();\n      component.$$.dirty.fill(0);\n    }\n    component.$$.dirty[i / 31 | 0] |= 1 << i % 31;\n  }\n  function init(component, options, instance2, create_fragment2, not_equal, props, append_styles2, dirty = [-1]) {\n    const parent_component = current_component;\n    set_current_component(component);\n    const $$ = component.$$ = {\n      fragment: null,\n      ctx: [],\n      props,\n      update: noop,\n      not_equal,\n      bound: blank_object(),\n      on_mount: [],\n      on_destroy: [],\n      on_disconnect: [],\n      before_update: [],\n      after_update: [],\n      context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),\n      callbacks: blank_object(),\n      dirty,\n      skip_bound: false,\n      root: options.target || parent_component.$$.root\n    };\n    append_styles2 && append_styles2($$.root);\n    let ready = false;\n    $$.ctx = instance2 ? instance2(component, options.props || {}, (i, ret, ...rest) => {\n      const value = rest.length ? rest[0] : ret;\n      if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n        if (!$$.skip_bound && $$.bound[i])\n          $$.bound[i](value);\n        if (ready)\n          make_dirty(component, i);\n      }\n      return ret;\n    }) : [];\n    $$.update();\n    ready = true;\n    run_all($$.before_update);\n    $$.fragment = create_fragment2 ? create_fragment2($$.ctx) : false;\n    if (options.target) {\n      if (options.hydrate) {\n        const nodes = children(options.target);\n        $$.fragment && $$.fragment.l(nodes);\n        nodes.forEach(detach);\n      } else {\n        $$.fragment && $$.fragment.c();\n      }\n      if (options.intro)\n        transition_in(component.$$.fragment);\n      mount_component(component, options.target, options.anchor, options.customElement);\n      flush();\n    }\n    set_current_component(parent_component);\n  }\n  class SvelteComponent {\n    $destroy() {\n      destroy_component(this, 1);\n      this.$destroy = noop;\n    }\n    $on(type, callback) {\n      if (!is_function(callback)) {\n        return noop;\n      }\n      const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);\n      callbacks.push(callback);\n      return () => {\n        const index = callbacks.indexOf(callback);\n        if (index !== -1)\n          callbacks.splice(index, 1);\n      };\n    }\n    $set($$props) {\n      if (this.$$set && !is_empty($$props)) {\n        this.$$.skip_bound = true;\n        this.$$set($$props);\n        this.$$.skip_bound = false;\n      }\n    }\n  }\n  function cubicOut(t2) {\n    const f = t2 - 1;\n    return f * f * f + 1;\n  }\n  function fade(node, { delay = 0, duration = 400, easing = identity } = {}) {\n    const o = +getComputedStyle(node).opacity;\n    return {\n      delay,\n      duration,\n      easing,\n      css: (t2) => `opacity: ${t2 * o}`\n    };\n  }\n  function fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n    const style = getComputedStyle(node);\n    const target_opacity = +style.opacity;\n    const transform = style.transform === \"none\" ? \"\" : style.transform;\n    const od = target_opacity * (1 - opacity);\n    return {\n      delay,\n      duration,\n      easing,\n      css: (t2, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t2) * x}px, ${(1 - t2) * y}px);\n\t\t\topacity: ${target_opacity - od * u}`\n    };\n  }\n  function flip(node, { from, to }, params = {}) {\n    const style = getComputedStyle(node);\n    const transform = style.transform === \"none\" ? \"\" : style.transform;\n    const [ox, oy] = style.transformOrigin.split(\" \").map(parseFloat);\n    const dx = from.left + from.width * ox / to.width - (to.left + ox);\n    const dy = from.top + from.height * oy / to.height - (to.top + oy);\n    const { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;\n    return {\n      delay,\n      duration: is_function(duration) ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,\n      easing,\n      css: (t2, u) => {\n        const x = u * dx;\n        const y = u * dy;\n        const sx = t2 + u * from.width / to.width;\n        const sy = t2 + u * from.height / to.height;\n        return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;\n      }\n    };\n  }\n  const subscriber_queue = [];\n  function readable(value, start) {\n    return {\n      subscribe: writable(value, start).subscribe\n    };\n  }\n  function writable(value, start = noop) {\n    let stop;\n    const subscribers = /* @__PURE__ */ new Set();\n    function set(new_value) {\n      if (safe_not_equal(value, new_value)) {\n        value = new_value;\n        if (stop) {\n          const run_queue = !subscriber_queue.length;\n          for (const subscriber of subscribers) {\n            subscriber[1]();\n            subscriber_queue.push(subscriber, value);\n          }\n          if (run_queue) {\n            for (let i = 0; i < subscriber_queue.length; i += 2) {\n              subscriber_queue[i][0](subscriber_queue[i + 1]);\n            }\n            subscriber_queue.length = 0;\n          }\n        }\n      }\n    }\n    function update2(fn) {\n      set(fn(value));\n    }\n    function subscribe2(run2, invalidate = noop) {\n      const subscriber = [run2, invalidate];\n      subscribers.add(subscriber);\n      if (subscribers.size === 1) {\n        stop = start(set) || noop;\n      }\n      run2(value);\n      return () => {\n        subscribers.delete(subscriber);\n        if (subscribers.size === 0) {\n          stop();\n          stop = null;\n        }\n      };\n    }\n    return { set, update: update2, subscribe: subscribe2 };\n  }\n  function derived(stores, fn, initial_value) {\n    const single = !Array.isArray(stores);\n    const stores_array = single ? [stores] : stores;\n    const auto = fn.length < 2;\n    return readable(initial_value, (set) => {\n      let inited = false;\n      const values = [];\n      let pending = 0;\n      let cleanup = noop;\n      const sync = () => {\n        if (pending) {\n          return;\n        }\n        cleanup();\n        const result = fn(single ? values[0] : values, set);\n        if (auto) {\n          set(result);\n        } else {\n          cleanup = is_function(result) ? result : noop;\n        }\n      };\n      const unsubscribers = stores_array.map((store, i) => subscribe$1(store, (value) => {\n        values[i] = value;\n        pending &= ~(1 << i);\n        if (inited) {\n          sync();\n        }\n      }, () => {\n        pending |= 1 << i;\n      }));\n      inited = true;\n      sync();\n      return function stop() {\n        run_all(unsubscribers);\n        cleanup();\n      };\n    });\n  }\n  const defaults = {\n    duration: 4e3,\n    initial: 1,\n    next: 0,\n    pausable: false,\n    dismissable: true,\n    reversed: false,\n    intro: { x: 256 }\n  };\n  const createToast = () => {\n    const { subscribe: subscribe2, update: update2 } = writable([]);\n    let count = 0;\n    const options = {};\n    const _obj = (obj) => obj instanceof Object;\n    const push = (msg, opts = {}) => {\n      const param = { target: \"default\", ..._obj(msg) ? msg : { ...opts, msg } };\n      const conf = options[param.target] || {};\n      const entry = {\n        ...defaults,\n        ...conf,\n        ...param,\n        theme: { ...conf.theme, ...param.theme },\n        classes: [...conf.classes || [], ...param.classes || []],\n        id: ++count\n      };\n      update2((n) => entry.reversed ? [...n, entry] : [entry, ...n]);\n      return count;\n    };\n    const pop = (id) => {\n      update2((n) => {\n        if (!n.length || id === 0)\n          return [];\n        if (_obj(id))\n          return n.filter((i) => id(i));\n        const target = id || Math.max(...n.map((i) => i.id));\n        return n.filter((i) => i.id !== target);\n      });\n    };\n    const set = (id, opts = {}) => {\n      const param = _obj(id) ? { ...id } : { ...opts, id };\n      update2((n) => {\n        const idx = n.findIndex((i) => i.id === param.id);\n        if (idx > -1) {\n          n[idx] = { ...n[idx], ...param };\n        }\n        return n;\n      });\n    };\n    const _init = (target = \"default\", opts = {}) => {\n      options[target] = opts;\n      return options;\n    };\n    return { subscribe: subscribe2, push, pop, set, _init };\n  };\n  const toast = createToast();\n  function is_date(obj) {\n    return Object.prototype.toString.call(obj) === \"[object Date]\";\n  }\n  function get_interpolator(a, b) {\n    if (a === b || a !== a)\n      return () => a;\n    const type = typeof a;\n    if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) {\n      throw new Error(\"Cannot interpolate values of different type\");\n    }\n    if (Array.isArray(a)) {\n      const arr = b.map((bi, i) => {\n        return get_interpolator(a[i], bi);\n      });\n      return (t2) => arr.map((fn) => fn(t2));\n    }\n    if (type === \"object\") {\n      if (!a || !b)\n        throw new Error(\"Object cannot be null\");\n      if (is_date(a) && is_date(b)) {\n        a = a.getTime();\n        b = b.getTime();\n        const delta = b - a;\n        return (t2) => new Date(a + t2 * delta);\n      }\n      const keys = Object.keys(b);\n      const interpolators = {};\n      keys.forEach((key) => {\n        interpolators[key] = get_interpolator(a[key], b[key]);\n      });\n      return (t2) => {\n        const result = {};\n        keys.forEach((key) => {\n          result[key] = interpolators[key](t2);\n        });\n        return result;\n      };\n    }\n    if (type === \"number\") {\n      const delta = b - a;\n      return (t2) => a + t2 * delta;\n    }\n    throw new Error(`Cannot interpolate ${type} values`);\n  }\n  function tweened(value, defaults2 = {}) {\n    const store = writable(value);\n    let task;\n    let target_value = value;\n    function set(new_value, opts) {\n      if (value == null) {\n        store.set(value = new_value);\n        return Promise.resolve();\n      }\n      target_value = new_value;\n      let previous_task = task;\n      let started = false;\n      let { delay = 0, duration = 400, easing = identity, interpolate = get_interpolator } = assign(assign({}, defaults2), opts);\n      if (duration === 0) {\n        if (previous_task) {\n          previous_task.abort();\n          previous_task = null;\n        }\n        store.set(value = target_value);\n        return Promise.resolve();\n      }\n      const start = now() + delay;\n      let fn;\n      task = loop((now2) => {\n        if (now2 < start)\n          return true;\n        if (!started) {\n          fn = interpolate(value, new_value);\n          if (typeof duration === \"function\")\n            duration = duration(value, new_value);\n          started = true;\n        }\n        if (previous_task) {\n          previous_task.abort();\n          previous_task = null;\n        }\n        const elapsed = now2 - start;\n        if (elapsed > duration) {\n          store.set(value = new_value);\n          return false;\n        }\n        store.set(value = fn(easing(elapsed / duration)));\n        return true;\n      });\n      return task.promise;\n    }\n    return {\n      set,\n      update: (fn, opts) => set(fn(target_value, value), opts),\n      subscribe: store.subscribe\n    };\n  }\n  function add_css$D(target) {\n    append_styles(target, \"svelte-5er0t9\", \"._toastItem.svelte-5er0t9{width:var(--toastWidth, 16rem);height:var(--toastHeight, auto);min-height:var(--toastMinHeight, 3.5rem);margin:var(--toastMargin, 0 0 0.5rem 0);padding:var(--toastPadding, 0);background:var(--toastBackground, rgba(66, 66, 66, 0.9));color:var(--toastColor, #fff);box-shadow:var(\\n    --toastBoxShadow,\\n    0 4px 6px -1px rgba(0, 0, 0, 0.1),\\n    0 2px 4px -1px rgba(0, 0, 0, 0.06)\\n  );border:var(--toastBorder, none);border-radius:var(--toastBorderRadius, 0.125rem);position:relative;display:flex;flex-direction:row;align-items:center;overflow:hidden;will-change:transform, opacity;-webkit-tap-highlight-color:transparent}._toastMsg.svelte-5er0t9{padding:var(--toastMsgPadding, 0.75rem 0.5rem);flex:1 1 0%}.pe.svelte-5er0t9,._toastMsg.svelte-5er0t9 a{pointer-events:auto}._toastBtn.svelte-5er0t9{width:2rem;height:100%;font:1rem sans-serif;display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none}._toastBar.svelte-5er0t9{top:var(--toastBarTop, auto);right:var(--toastBarRight, auto);bottom:var(--toastBarBottom, 0);left:var(--toastBarLeft, 0);height:var(--toastBarHeight, 6px);width:var(--toastBarWidth, 100%);position:absolute;display:block;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;pointer-events:none}._toastBar.svelte-5er0t9::-webkit-progress-bar{background:transparent}._toastBar.svelte-5er0t9::-webkit-progress-value{background:var(--toastProgressBackground, var(--toastBarBackground, rgba(33, 150, 243, 0.75)))}._toastBar.svelte-5er0t9::-moz-progress-bar{background:var(--toastProgressBackground, var(--toastBarBackground, rgba(33, 150, 243, 0.75)))}\");\n  }\n  function create_else_block$5(ctx) {\n    let html_tag;\n    let raw_value = ctx[0].msg + \"\";\n    let html_anchor;\n    return {\n      c() {\n        html_tag = new HtmlTag(false);\n        html_anchor = empty();\n        html_tag.a = html_anchor;\n      },\n      m(target, anchor) {\n        html_tag.m(raw_value, target, anchor);\n        insert(target, html_anchor, anchor);\n      },\n      p(ctx2, dirty) {\n        if (dirty & 1 && raw_value !== (raw_value = ctx2[0].msg + \"\"))\n          html_tag.p(raw_value);\n      },\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(html_anchor);\n        if (detaching)\n          html_tag.d();\n      }\n    };\n  }\n  function create_if_block_1$j(ctx) {\n    let switch_instance;\n    let switch_instance_anchor;\n    let current;\n    const switch_instance_spread_levels = [ctx[6]()];\n    var switch_value = ctx[0].component.src;\n    function switch_props(ctx2) {\n      let switch_instance_props = {};\n      for (let i = 0; i < switch_instance_spread_levels.length; i += 1) {\n        switch_instance_props = assign(switch_instance_props, switch_instance_spread_levels[i]);\n      }\n      return { props: switch_instance_props };\n    }\n    if (switch_value) {\n      switch_instance = construct_svelte_component(switch_value, switch_props());\n    }\n    return {\n      c() {\n        if (switch_instance)\n          create_component(switch_instance.$$.fragment);\n        switch_instance_anchor = empty();\n      },\n      m(target, anchor) {\n        if (switch_instance)\n          mount_component(switch_instance, target, anchor);\n        insert(target, switch_instance_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const switch_instance_changes = dirty & 64 ? get_spread_update(switch_instance_spread_levels, [get_spread_object(ctx2[6]())]) : {};\n        if (switch_value !== (switch_value = ctx2[0].component.src)) {\n          if (switch_instance) {\n            group_outros();\n            const old_component = switch_instance;\n            transition_out(old_component.$$.fragment, 1, 0, () => {\n              destroy_component(old_component, 1);\n            });\n            check_outros();\n          }\n          if (switch_value) {\n            switch_instance = construct_svelte_component(switch_value, switch_props());\n            create_component(switch_instance.$$.fragment);\n            transition_in(switch_instance.$$.fragment, 1);\n            mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);\n          } else {\n            switch_instance = null;\n          }\n        } else if (switch_value) {\n          switch_instance.$set(switch_instance_changes);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        if (switch_instance)\n          transition_in(switch_instance.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        if (switch_instance)\n          transition_out(switch_instance.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(switch_instance_anchor);\n        if (switch_instance)\n          destroy_component(switch_instance, detaching);\n      }\n    };\n  }\n  function create_if_block$n(ctx) {\n    let div;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        div = element(\"div\");\n        div.textContent = \"\\u2715\";\n        attr(div, \"class\", \"_toastBtn pe svelte-5er0t9\");\n        attr(div, \"role\", \"button\");\n        attr(div, \"tabindex\", \"-1\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (!mounted) {\n          dispose = listen(div, \"click\", ctx[3]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function create_fragment$J(ctx) {\n    let div1;\n    let div0;\n    let current_block_type_index;\n    let if_block0;\n    let t0;\n    let t1;\n    let progress_1;\n    let current;\n    let mounted;\n    let dispose;\n    const if_block_creators = [create_if_block_1$j, create_else_block$5];\n    const if_blocks = [];\n    function select_block_type(ctx2, dirty) {\n      if (ctx2[0].component)\n        return 0;\n      return 1;\n    }\n    current_block_type_index = select_block_type(ctx);\n    if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n    let if_block1 = ctx[0].dismissable && create_if_block$n(ctx);\n    return {\n      c() {\n        div1 = element(\"div\");\n        div0 = element(\"div\");\n        if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        progress_1 = element(\"progress\");\n        attr(div0, \"role\", \"status\");\n        attr(div0, \"class\", \"_toastMsg svelte-5er0t9\");\n        toggle_class(div0, \"pe\", ctx[0].component);\n        attr(progress_1, \"class\", \"_toastBar svelte-5er0t9\");\n        progress_1.value = ctx[1];\n        attr(div1, \"class\", \"_toastItem svelte-5er0t9\");\n        toggle_class(div1, \"pe\", ctx[0].pausable);\n      },\n      m(target, anchor) {\n        insert(target, div1, anchor);\n        append(div1, div0);\n        if_blocks[current_block_type_index].m(div0, null);\n        append(div1, t0);\n        if (if_block1)\n          if_block1.m(div1, null);\n        append(div1, t1);\n        append(div1, progress_1);\n        current = true;\n        if (!mounted) {\n          dispose = [\n            listen(div1, \"mouseenter\", ctx[4]),\n            listen(div1, \"mouseleave\", ctx[5])\n          ];\n          mounted = true;\n        }\n      },\n      p(ctx2, [dirty]) {\n        let previous_block_index = current_block_type_index;\n        current_block_type_index = select_block_type(ctx2);\n        if (current_block_type_index === previous_block_index) {\n          if_blocks[current_block_type_index].p(ctx2, dirty);\n        } else {\n          group_outros();\n          transition_out(if_blocks[previous_block_index], 1, 1, () => {\n            if_blocks[previous_block_index] = null;\n          });\n          check_outros();\n          if_block0 = if_blocks[current_block_type_index];\n          if (!if_block0) {\n            if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);\n            if_block0.c();\n          } else {\n            if_block0.p(ctx2, dirty);\n          }\n          transition_in(if_block0, 1);\n          if_block0.m(div0, null);\n        }\n        if (!current || dirty & 1) {\n          toggle_class(div0, \"pe\", ctx2[0].component);\n        }\n        if (ctx2[0].dismissable) {\n          if (if_block1) {\n            if_block1.p(ctx2, dirty);\n          } else {\n            if_block1 = create_if_block$n(ctx2);\n            if_block1.c();\n            if_block1.m(div1, t1);\n          }\n        } else if (if_block1) {\n          if_block1.d(1);\n          if_block1 = null;\n        }\n        if (!current || dirty & 2) {\n          progress_1.value = ctx2[1];\n        }\n        if (!current || dirty & 1) {\n          toggle_class(div1, \"pe\", ctx2[0].pausable);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div1);\n        if_blocks[current_block_type_index].d();\n        if (if_block1)\n          if_block1.d();\n        mounted = false;\n        run_all(dispose);\n      }\n    };\n  }\n  function instance$G($$self, $$props, $$invalidate) {\n    let $progress;\n    let { item } = $$props;\n    const progress = tweened(item.initial, { duration: item.duration, easing: identity });\n    component_subscribe($$self, progress, (value) => $$invalidate(1, $progress = value));\n    const close = () => toast.pop(item.id);\n    const autoclose = () => {\n      if ($progress === 1 || $progress === 0) {\n        close();\n      }\n    };\n    let next = item.initial;\n    let prev = next;\n    let paused = false;\n    const pause = () => {\n      if (item.pausable && !paused && $progress !== next) {\n        progress.set($progress, { duration: 0 });\n        paused = true;\n      }\n    };\n    const resume = () => {\n      if (paused) {\n        const d = item.duration;\n        const duration = d - d * (($progress - prev) / (next - prev));\n        progress.set(next, { duration }).then(autoclose);\n        paused = false;\n      }\n    };\n    const getProps = () => {\n      const { props = {}, sendIdTo } = item.component;\n      if (sendIdTo) {\n        props[sendIdTo] = item.id;\n      }\n      return props;\n    };\n    onDestroy(() => {\n      if (typeof item.onpop === \"function\") {\n        item.onpop(item.id);\n      }\n    });\n    $$self.$$set = ($$props2) => {\n      if (\"item\" in $$props2)\n        $$invalidate(0, item = $$props2.item);\n    };\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 1) {\n        if (typeof item.progress !== \"undefined\") {\n          $$invalidate(0, item.next = item.progress, item);\n        }\n      }\n      if ($$self.$$.dirty & 131) {\n        if (next !== item.next) {\n          $$invalidate(7, next = item.next);\n          prev = $progress;\n          paused = false;\n          progress.set(next).then(autoclose);\n        }\n      }\n    };\n    return [item, $progress, progress, close, pause, resume, getProps, next];\n  }\n  class ToastItem extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$G, create_fragment$J, safe_not_equal, { item: 0 }, add_css$D);\n    }\n  }\n  function add_css$C(target) {\n    append_styles(target, \"svelte-yh90az\", \"._toastContainer.svelte-yh90az{top:var(--toastContainerTop, 1.5rem);right:var(--toastContainerRight, 2rem);bottom:var(--toastContainerBottom, auto);left:var(--toastContainerLeft, auto);position:fixed;margin:0;padding:0;list-style-type:none;pointer-events:none;z-index:var(--toastContainerZIndex, 9999)}\");\n  }\n  function get_each_context$h(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[5] = list[i];\n    return child_ctx;\n  }\n  function create_each_block$h(key_1, ctx) {\n    let li;\n    let toastitem;\n    let t2;\n    let li_class_value;\n    let li_style_value;\n    let li_intro;\n    let li_outro;\n    let rect;\n    let stop_animation = noop;\n    let current;\n    toastitem = new ToastItem({ props: { item: ctx[5] } });\n    return {\n      key: key_1,\n      first: null,\n      c() {\n        li = element(\"li\");\n        create_component(toastitem.$$.fragment);\n        t2 = space();\n        attr(li, \"class\", li_class_value = null_to_empty(ctx[5].classes.join(\" \")) + \" svelte-yh90az\");\n        attr(li, \"style\", li_style_value = ctx[1](ctx[5].theme));\n        this.first = li;\n      },\n      m(target, anchor) {\n        insert(target, li, anchor);\n        mount_component(toastitem, li, null);\n        append(li, t2);\n        current = true;\n      },\n      p(new_ctx, dirty) {\n        ctx = new_ctx;\n        const toastitem_changes = {};\n        if (dirty & 1)\n          toastitem_changes.item = ctx[5];\n        toastitem.$set(toastitem_changes);\n        if (!current || dirty & 1 && li_class_value !== (li_class_value = null_to_empty(ctx[5].classes.join(\" \")) + \" svelte-yh90az\")) {\n          attr(li, \"class\", li_class_value);\n        }\n        if (!current || dirty & 1 && li_style_value !== (li_style_value = ctx[1](ctx[5].theme))) {\n          attr(li, \"style\", li_style_value);\n        }\n      },\n      r() {\n        rect = li.getBoundingClientRect();\n      },\n      f() {\n        fix_position(li);\n        stop_animation();\n        add_transform(li, rect);\n      },\n      a() {\n        stop_animation();\n        stop_animation = create_animation(li, rect, flip, { duration: 200 });\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(toastitem.$$.fragment, local2);\n        add_render_callback(() => {\n          if (li_outro)\n            li_outro.end(1);\n          li_intro = create_in_transition(li, fly, ctx[5].intro);\n          li_intro.start();\n        });\n        current = true;\n      },\n      o(local2) {\n        transition_out(toastitem.$$.fragment, local2);\n        if (li_intro)\n          li_intro.invalidate();\n        li_outro = create_out_transition(li, fade, {});\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(li);\n        destroy_component(toastitem);\n        if (detaching && li_outro)\n          li_outro.end();\n      }\n    };\n  }\n  function create_fragment$I(ctx) {\n    let ul;\n    let each_blocks = [];\n    let each_1_lookup = /* @__PURE__ */ new Map();\n    let current;\n    let each_value = ctx[0];\n    const get_key = (ctx2) => ctx2[5].id;\n    for (let i = 0; i < each_value.length; i += 1) {\n      let child_ctx = get_each_context$h(ctx, each_value, i);\n      let key = get_key(child_ctx);\n      each_1_lookup.set(key, each_blocks[i] = create_each_block$h(key, child_ctx));\n    }\n    return {\n      c() {\n        ul = element(\"ul\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(ul, \"class\", \"_toastContainer svelte-yh90az\");\n      },\n      m(target, anchor) {\n        insert(target, ul, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(ul, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 3) {\n          each_value = ctx2[0];\n          group_outros();\n          for (let i = 0; i < each_blocks.length; i += 1)\n            each_blocks[i].r();\n          each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, ul, fix_and_outro_and_destroy_block, create_each_block$h, null, get_each_context$h);\n          for (let i = 0; i < each_blocks.length; i += 1)\n            each_blocks[i].a();\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(ul);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].d();\n        }\n      }\n    };\n  }\n  function instance$F($$self, $$props, $$invalidate) {\n    let $toast;\n    component_subscribe($$self, toast, ($$value) => $$invalidate(4, $toast = $$value));\n    let { options = {} } = $$props;\n    let { target = \"default\" } = $$props;\n    let items;\n    const getCss = (theme) => Object.keys(theme).reduce((a, c) => `${a}${c}:${theme[c]};`, \"\");\n    $$self.$$set = ($$props2) => {\n      if (\"options\" in $$props2)\n        $$invalidate(2, options = $$props2.options);\n      if (\"target\" in $$props2)\n        $$invalidate(3, target = $$props2.target);\n    };\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 12) {\n        toast._init(target, options);\n      }\n      if ($$self.$$.dirty & 24) {\n        $$invalidate(0, items = $toast.filter((i) => i.target === target));\n      }\n    };\n    return [items, getCss, options, target, $toast];\n  }\n  class SvelteToast extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$F, create_fragment$I, safe_not_equal, { options: 2, target: 3 }, add_css$C);\n    }\n  }\n  const initConnectionCheck = (t2) => {\n    window.addEventListener(\"online\", () => {\n      toast.push(t2(\"general\", \"online\"));\n    });\n    window.addEventListener(\"offline\", () => {\n      toast.push(t2(\"general\", \"offline\"));\n    });\n  };\n  var Steps = /* @__PURE__ */ ((Steps2) => {\n    Steps2[\"Welcome\"] = \"welcome\";\n    Steps2[\"DocumentSelection\"] = \"document-selection\";\n    Steps2[\"DocumentStart\"] = \"document-start\";\n    Steps2[\"DocumentPhoto\"] = \"document-photo\";\n    Steps2[\"CheckDocument\"] = \"check-document\";\n    Steps2[\"DocumentPhotoBackStart\"] = \"document-photo-back-start\";\n    Steps2[\"DocumentPhotoBack\"] = \"document-photo-back\";\n    Steps2[\"CheckDocumentPhotoBack\"] = \"check-document-photo-back\";\n    Steps2[\"SelfieStart\"] = \"selfie-start\";\n    Steps2[\"Selfie\"] = \"selfie\";\n    Steps2[\"CheckSelfie\"] = \"check-selfie\";\n    Steps2[\"A4DocumentStart\"] = \"a4-document-start\";\n    Steps2[\"A4DocumentPhoto\"] = \"a4-document-photo\";\n    Steps2[\"CheckA4Document\"] = \"check-a4-document\";\n    Steps2[\"Registration\"] = \"registration\";\n    Steps2[\"Final\"] = \"final\";\n    Steps2[\"Loading\"] = \"loading\";\n    Steps2[\"Resubmission\"] = \"resubmission\";\n    Steps2[\"Decline\"] = \"decline\";\n    Steps2[\"Error\"] = \"error\";\n    return Steps2;\n  })(Steps || {});\n  var Elements = /* @__PURE__ */ ((Elements2) => {\n    Elements2[\"Image\"] = \"image\";\n    Elements2[\"Photo\"] = \"photo\";\n    Elements2[\"Title\"] = \"title\";\n    Elements2[\"Paragraph\"] = \"paragraph\";\n    Elements2[\"Button\"] = \"button\";\n    Elements2[\"Input\"] = \"input\";\n    Elements2[\"Container\"] = \"container\";\n    Elements2[\"DocumentOption\"] = \"document-option\";\n    Elements2[\"IconButton\"] = \"icon-button\";\n    Elements2[\"CameraButton\"] = \"camera-button\";\n    Elements2[\"VideoContainer\"] = \"video-container\";\n    Elements2[\"List\"] = \"list\";\n    Elements2[\"ErrorText\"] = \"error-text\";\n    return Elements2;\n  })(Elements || {});\n  var commonjsGlobal = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : {};\n  function getDefaultExportFromCjs(x) {\n    return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, \"default\") ? x[\"default\"] : x;\n  }\n  var build = { exports: {} };\n  (function(module2, exports3) {\n    !function(e, t2) {\n      module2.exports = t2();\n    }(commonjsGlobal, function() {\n      return function(e) {\n        function t2(i) {\n          if (n[i])\n            return n[i].exports;\n          var r = n[i] = { i, l: false, exports: {} };\n          return e[i].call(r.exports, r, r.exports, t2), r.l = true, r.exports;\n        }\n        var n = {};\n        return t2.m = e, t2.c = n, t2.d = function(e2, n2, i) {\n          t2.o(e2, n2) || Object.defineProperty(e2, n2, { configurable: false, enumerable: true, get: i });\n        }, t2.n = function(e2) {\n          var n2 = e2 && e2.__esModule ? function() {\n            return e2.default;\n          } : function() {\n            return e2;\n          };\n          return t2.d(n2, \"a\", n2), n2;\n        }, t2.o = function(e2, t3) {\n          return Object.prototype.hasOwnProperty.call(e2, t3);\n        }, t2.p = \"\", t2(t2.s = 4);\n      }([function(e, t2, n) {\n        n.d(t2, \"b\", function() {\n          return o;\n        }), n.d(t2, \"c\", function() {\n          return a;\n        });\n        var i = n(1), r = n(7);\n        n.d(t2, \"a\", function() {\n          return r.a;\n        }), n.d(t2, \"d\", function() {\n          return i.b;\n        });\n        var o = i.a.FACING_MODES, a = i.a.IMAGE_TYPES;\n      }, function(e, t2, n) {\n        var i = n(6);\n        n.d(t2, \"a\", function() {\n          return i.a;\n        });\n        var r = n(2);\n        n.d(t2, \"b\", function() {\n          return r.a;\n        });\n      }, function(e, t2, n) {\n        function i(e2, t3) {\n          if (!(t3 >= 0 && t3 <= 1))\n            throw new Error(t3 + \" is invalid imageCompression, choose between: [0, 1]\");\n          if (!l.f.includes(e2))\n            throw new Error(e2 + \" is invalid imageType, choose between: \" + l.f.join(\", \"));\n          return true;\n        }\n        function r(e2, t3) {\n          var n2 = {};\n          try {\n            i(e2, t3), n2.imageType = e2, n2.imageCompression = t3;\n          } catch (e3) {\n            console.error(e3), console.error(\"default value of \" + l.c.PNG + \" is used\"), n2.imageType = l.c.PNG, n2.imageCompression = null;\n          }\n          return n2;\n        }\n        function o() {\n          var e2 = window.navigator.platform, t3 = window.navigator.userAgent;\n          return e2 || t3;\n        }\n        function a() {\n          return \"ontouchend\" in document;\n        }\n        function u(e2, t3, n2) {\n          var i2 = e2 * parseFloat(n2);\n          return { imageWidth: i2, imageHeight: t3 / (e2 / i2) };\n        }\n        function c(e2, t3, n2) {\n          return r(t3, n2).imageType === l.c.JPG ? n2 ? e2.toDataURL(l.b[l.c.JPG], n2) : e2.toDataURL(l.b[l.c.JPG]) : e2.toDataURL(l.b[t3]);\n        }\n        function s(e2, t3) {\n          return e2 || t3;\n        }\n        function f() {\n          var e2 = o();\n          if (/iPad|iPhone|iPod/.test(e2))\n            return true;\n          var t3 = a();\n          return !(!/Mac/.test(e2) || !t3);\n        }\n        function d() {\n          return { userAgent: window.navigator.userAgent, platform: window.navigator.platform, _getStringWithPlatform: o(), _getHasTouchEvents: a(), getIsIOS: f() };\n        }\n        t2.c = u, t2.b = c, t2.e = s, t2.d = f, t2.a = d;\n        var l = n(3);\n      }, function(e, t2, n) {\n        function i(e2, t3, n2) {\n          return t3 in e2 ? Object.defineProperty(e2, t3, { value: n2, enumerable: true, configurable: true, writable: true }) : e2[t3] = n2, e2;\n        }\n        n.d(t2, \"e\", function() {\n          return o;\n        }), n.d(t2, \"a\", function() {\n          return a;\n        }), n.d(t2, \"f\", function() {\n          return u;\n        }), n.d(t2, \"c\", function() {\n          return c;\n        }), n.d(t2, \"b\", function() {\n          return s;\n        }), n.d(t2, \"d\", function() {\n          return f;\n        });\n        var r, o = [\"user\", \"environment\"], a = { USER: \"user\", ENVIRONMENT: \"environment\" }, u = [\"jpg\", \"png\"], c = { PNG: \"png\", JPG: \"jpg\" }, s = (r = {}, i(r, \"jpg\", \"image/jpeg\"), i(r, \"png\", \"image/png\"), r), f = { audio: false, video: true };\n      }, function(e, t2, n) {\n        e.exports = n(5);\n      }, function(e, t2, n) {\n        Object.defineProperty(t2, \"__esModule\", { value: true });\n        var i = n(0);\n        n.d(t2, \"FACING_MODES\", function() {\n          return i.b;\n        }), n.d(t2, \"IMAGE_TYPES\", function() {\n          return i.c;\n        }), n.d(t2, \"_getDebugPlatformInfo\", function() {\n          return i.d;\n        });\n        var r = n(9);\n        n.d(t2, \"downloadPhoto\", function() {\n          return r.a;\n        }), t2.default = i.a;\n      }, function(e, t2, n) {\n        function i(e2, t3) {\n          if (!(e2 instanceof t3))\n            throw new TypeError(\"Cannot call a class as a function\");\n        }\n        n.d(t2, \"a\", function() {\n          return u;\n        });\n        var r = n(2), o = n(3), a = function() {\n          function e2(e3, t3) {\n            for (var n2 = 0; n2 < t3.length; n2++) {\n              var i2 = t3[n2];\n              i2.enumerable = i2.enumerable || false, i2.configurable = true, \"value\" in i2 && (i2.writable = true), Object.defineProperty(e3, i2.key, i2);\n            }\n          }\n          return function(t3, n2, i2) {\n            return n2 && e2(t3.prototype, n2), i2 && e2(t3, i2), t3;\n          };\n        }(), u = function() {\n          function e2() {\n            i(this, e2);\n          }\n          return a(e2, null, [{ key: \"getDataUri\", value: function(e3, t3) {\n            var n2 = t3.sizeFactor, i2 = t3.imageType, o2 = t3.imageCompression, a2 = t3.isImageMirror, u2 = e3.videoWidth, c = e3.videoHeight, s = Object(r.c)(u2, c, n2), f = s.imageWidth, d = s.imageHeight, l = document.createElement(\"canvas\");\n            l.width = f, l.height = d;\n            var v = l.getContext(\"2d\");\n            return a2 && v.setTransform(-1, 0, 0, 1, l.width, 0), v.drawImage(e3, 0, 0, f, d), Object(r.b)(l, i2, o2);\n          } }, { key: \"getWindowURL\", value: function() {\n            return window.URL || window.webkitURL || window.mozURL || window.msURL;\n          } }, { key: \"getNavigatorMediaDevices\", value: function() {\n            var e3 = null, t3 = !(!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia), n2 = !(!navigator.mozGetUserMedia && !navigator.webkitGetUserMedia);\n            if (t3)\n              e3 = navigator.mediaDevices;\n            else if (n2) {\n              var i2 = navigator.mozGetUserMedia || navigator.webkitGetUserMedia, r2 = { getUserMedia: function(e4) {\n                return new Promise(function(t4, n3) {\n                  i2.call(navigator, e4, t4, n3);\n                });\n              } };\n              e3 = Object.assign(i2, r2);\n            }\n            return e3;\n          } }, { key: \"isSupportedFacingMode\", value: function() {\n            return e2.getNavigatorMediaDevices().getSupportedConstraints().facingMode;\n          } }, { key: \"getIdealConstraints\", value: function(t3, n2) {\n            if (!Object(r.e)(t3, n2))\n              return o.d;\n            var i2 = e2.getNavigatorMediaDevices().getSupportedConstraints();\n            if (!i2.width || !i2.height)\n              return console.error(\"Constraint width or height not supported! fallback to default resolution\"), o.d;\n            var a2 = void 0, u2 = void 0;\n            if (t3) {\n              o.e.includes(t3) ? a2 = t3 : u2 = { exact: t3 };\n            }\n            return { audio: false, video: { facingMode: a2, deviceId: u2, width: n2 && n2.width, height: n2 && n2.height } };\n          } }, { key: \"getMaxResolutionConstraints\", value: function() {\n            var t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\", n2 = arguments[1];\n            console.warn(\"getMaxResolutionConstraints() numberOfMaxResolutionTry:\", n2);\n            var i2 = [{ width: { min: 640 } }, { width: { min: 800 } }, { width: { min: 900 } }, { width: { min: 1024 } }, { width: { min: 1080 } }, { width: { min: 1280 } }, { width: { min: 1920 } }, { width: { min: 2560 } }, { width: { min: 3840 } }], o2 = e2.getIdealConstraints(t3, {});\n            if (n2 === 0) {\n              if (Object(r.d)()) {\n                console.warn(\"fallback to iOS constraints\");\n                return e2.getIdealConstraints(t3, { width: { min: 640, ideal: 3840 }, height: { min: 480, ideal: 2160 } });\n              }\n              return o2.video.advanced = i2, o2;\n            }\n            if (n2 < i2.length) {\n              var a2 = i2.slice(0, -n2);\n              return o2.video.advanced = a2, o2;\n            }\n            return null;\n          } }, { key: \"FACING_MODES\", get: function() {\n            return o.a;\n          } }, { key: \"IMAGE_TYPES\", get: function() {\n            return o.c;\n          } }]), e2;\n        }();\n      }, function(e, t2, n) {\n        function i(e2, t3) {\n          if (!(e2 instanceof t3))\n            throw new TypeError(\"Cannot call a class as a function\");\n        }\n        n.d(t2, \"a\", function() {\n          return c;\n        });\n        var r = n(1), o = n(8), a = function() {\n          function e2(e3, t3) {\n            for (var n2 = 0; n2 < t3.length; n2++) {\n              var i2 = t3[n2];\n              i2.enumerable = i2.enumerable || false, i2.configurable = true, \"value\" in i2 && (i2.writable = true), Object.defineProperty(e3, i2.key, i2);\n            }\n          }\n          return function(t3, n2, i2) {\n            return n2 && e2(t3.prototype, n2), i2 && e2(t3, i2), t3;\n          };\n        }(), u = r.a.IMAGE_TYPES.PNG, c = function() {\n          function e2(t3) {\n            i(this, e2), this.videoElement = t3, this.stream = null, this.numberOfMaxResolutionTry = 0, this.settings = null, this.cameras = [], this.windowURL = r.a.getWindowURL(), this.mediaDevices = r.a.getNavigatorMediaDevices();\n          }\n          return a(e2, [{ key: \"_getStreamDevice\", value: function(e3, t3) {\n            var n2 = this;\n            return new Promise(function(i2, o2) {\n              var a2 = r.a.getIdealConstraints(e3, t3);\n              n2.mediaDevices.getUserMedia(a2).then(function(e4) {\n                n2._gotStream(e4), i2(e4);\n              }).catch(function(e4) {\n                o2(e4);\n              });\n            });\n          } }, { key: \"_getStreamDeviceMaxResolution\", value: function(e3) {\n            var t3 = this, n2 = r.a.getMaxResolutionConstraints(e3, this.numberOfMaxResolutionTry);\n            if (n2 == null) {\n              var i2 = {};\n              return this._getStreamDevice(e3, i2);\n            }\n            return new Promise(function(i3, r2) {\n              t3.mediaDevices.getUserMedia(n2).then(function(e4) {\n                t3._gotStream(e4), i3(e4);\n              }).catch(function(n3) {\n                setTimeout(function() {\n                  t3.numberOfMaxResolutionTry += 1, t3._getStreamDeviceMaxResolution(e3).catch(function() {\n                    r2(n3);\n                  });\n                }, 20);\n              });\n            });\n          } }, { key: \"_setVideoSrc\", value: function(e3) {\n            if (\"srcObject\" in this.videoElement)\n              this.videoElement.srcObject = e3;\n            else {\n              var t3 = this.windowURL.createObjectURL(e3);\n              this.videoElement.src = t3;\n            }\n          } }, { key: \"_setSettings\", value: function(e3) {\n            this.settings = null;\n            var t3 = e3 && e3.getTracks ? e3.getTracks() : [];\n            t3.length > 0 && t3[0].getSettings && (this.settings = t3[0].getSettings());\n          } }, { key: \"_enumerateCamerasPromise\", value: function() {\n            var e3 = this;\n            return new Promise(function(t3, n2) {\n              var i2 = [];\n              e3.mediaDevices.enumerateDevices().then(function(e4) {\n                e4.forEach(function(e5) {\n                  e5.kind === \"videoinput\" && e5.deviceId && i2.push(e5);\n                }), t3(i2);\n              }).catch(function(e4) {\n                n2(e4);\n              });\n            });\n          } }, { key: \"_gotStream\", value: function(e3) {\n            this.stream = e3, this._setSettings(e3), this._setVideoSrc(e3);\n          } }, { key: \"getCameraSettings\", value: function() {\n            return this.settings;\n          } }, { key: \"enumerateCameras\", value: function() {\n            var e3 = this;\n            return this.stream ? this._enumerateCamerasPromise() : this.stopCamera().then(function() {\n            }).catch(function() {\n            }).then(function() {\n              var t3 = { video: true };\n              return e3.mediaDevices.getUserMedia(t3).then(function(e4) {\n                setTimeout(function() {\n                  e4.getTracks().forEach(function(e5) {\n                    e5.stop();\n                  });\n                }, 20);\n              }).then(function() {\n              }).catch(function() {\n              }).then(function() {\n                return e3._enumerateCamerasPromise();\n              });\n            });\n          } }, { key: \"startCamera\", value: function(e3, t3) {\n            var n2 = this;\n            return this.stopCamera().then(function() {\n            }).catch(function() {\n            }).then(function() {\n              return n2._getStreamDevice(e3, t3);\n            });\n          } }, { key: \"startCameraMaxResolution\", value: function() {\n            var e3 = this, t3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\";\n            return this.numberOfMaxResolutionTry = 0, this.stopCamera().then(function() {\n            }).catch(function() {\n            }).then(function() {\n              return e3._getStreamDeviceMaxResolution(t3);\n            });\n          } }, { key: \"getDataUri\", value: function(e3) {\n            var t3 = { sizeFactor: e3.sizeFactor === void 0 ? o.c : e3.sizeFactor, imageType: e3.imageType === void 0 ? u : e3.imageType, imageCompression: e3.imageCompression === void 0 ? o.a : e3.imageCompression, isImageMirror: e3.isImageMirror === void 0 ? o.b : e3.isImageMirror };\n            return r.a.getDataUri(this.videoElement, t3);\n          } }, { key: \"stopCamera\", value: function() {\n            var e3 = this;\n            return new Promise(function(t3, n2) {\n              e3.stream && (e3.stream.getTracks().forEach(function(e4) {\n                e4.stop();\n              }), e3.videoElement.src = \"\", e3.stream = null, e3._setSettings(null), t3()), n2(Error(\"no stream to stop!\"));\n            });\n          } }]), e2;\n        }();\n      }, function(e, t2, n) {\n        n.d(t2, \"c\", function() {\n          return i;\n        }), n.d(t2, \"a\", function() {\n          return r;\n        }), n.d(t2, \"b\", function() {\n          return o;\n        });\n        var i = 1, r = null, o = false;\n      }, function(e, t2, n) {\n        var i = n(10);\n        n.d(t2, \"a\", function() {\n          return i.a;\n        });\n      }, function(e, t2, n) {\n        function i(e2) {\n          for (var t3 = atob(e2.split(\",\")[1]), n2 = e2.split(\",\")[0].split(\":\")[1].split(\";\")[0], i2 = new ArrayBuffer(t3.length), r2 = new Uint8Array(i2), o2 = 0; o2 < t3.length; o2++)\n            r2[o2] = t3.charCodeAt(o2);\n          return new Blob([i2], { type: n2 });\n        }\n        function r(e2, t3) {\n          return e2 += \"\", e2.length >= t3 ? e2 : new Array(t3 - e2.length + 1).join(\"0\") + e2;\n        }\n        function o(e2) {\n          var t3 = s.c.PNG;\n          return e2 === \"image/jpeg\" && (t3 = s.c.JPG), t3;\n        }\n        function a(e2, t3, n2) {\n          return e2 + \"-\" + r(t3, 4) + \".\" + o(n2);\n        }\n        function u(e2, t3, n2) {\n          window.URL = window.webkitURL || window.URL;\n          var i2 = document.createElement(\"a\");\n          i2.download = a(t3, n2, e2.type), i2.href = window.URL.createObjectURL(e2);\n          var r2 = document.createEvent(\"MouseEvents\");\n          r2.initMouseEvent(\"click\", true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null), i2.dispatchEvent(r2);\n        }\n        function c(e2) {\n          var t3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"photo\", n2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;\n          u(i(e2), t3, n2);\n        }\n        t2.a = c;\n        var s = n(0);\n      }]);\n    });\n  })(build);\n  var CameraPhoto = /* @__PURE__ */ getDefaultExportFromCjs(build.exports);\n  const cssProperties = [\n    \"margin\",\n    \"padding\",\n    \"font-family\",\n    \"font-size\",\n    \"font-weight\",\n    \"line-height\",\n    \"vertical-align\",\n    \"width\",\n    \"height\",\n    \"background\",\n    \"color\",\n    \"border-radius\",\n    \"border\",\n    \"display\",\n    \"align-items\",\n    \"text-align\",\n    \"justify-content\",\n    \"cursor\",\n    \"position\",\n    \"top\",\n    \"bottom\",\n    \"left\",\n    \"right\",\n    \"hover\",\n    \"active\",\n    \"box-shadow\",\n    \"flex-direction\",\n    \"align-self\",\n    \"fill\",\n    \"flex-grow\",\n    \"background-position-y\"\n  ];\n  const makeStylesFromConfiguration = (globalComponentStyles = {}, configStyles = {}) => {\n    let styles = [];\n    const setProperties = (globalCss, localCss, property, prefix = \"\") => {\n      if (localCss && localCss[property]) {\n        styles.push(`--${prefix}${property}: ${localCss[property]};`);\n        return;\n      }\n      if (globalCss && globalCss[property]) {\n        styles.push(`--${prefix}${property}: ${globalCss[property]};`);\n        return;\n      }\n    };\n    cssProperties.map((property) => {\n      if (property === \"hover\") {\n        cssProperties.map((hoverProperty) => {\n          const globalHoverProperties = globalComponentStyles.hover;\n          const localHoverProperties = configStyles.hover;\n          setProperties(globalHoverProperties, localHoverProperties, hoverProperty, \"hover-\");\n        });\n        return;\n      }\n      if (property === \"active\") {\n        cssProperties.map((property2) => {\n          const globalActiveProperties = globalComponentStyles.active;\n          const localActiveHoverProperties = configStyles.active;\n          setProperties(globalActiveProperties, localActiveHoverProperties, property2, \"active-\");\n        });\n        return;\n      }\n      setProperties(globalComponentStyles, configStyles, property);\n    });\n    return styles.join(\"\\n\");\n  };\n  const makesLocalStyles = (configStyles) => {\n    let styles = [];\n    const setProperties = (css, property, prefix = \"\") => {\n      if (css[property])\n        styles.push(`--${prefix}${property}: ${css[property]};`);\n    };\n    cssProperties.map((property) => {\n      if (property === \"hover\" && configStyles.hover) {\n        cssProperties.map((hoverProperty) => {\n          const cssHoverProperties = configStyles.hover;\n          setProperties(cssHoverProperties, hoverProperty, \"hover-\");\n        });\n        return;\n      }\n      if (property === \"active\" && configStyles.active) {\n        cssProperties.map((property2) => {\n          const cssActiveProperties = configStyles.active;\n          setProperties(cssActiveProperties, property2, \"active-\");\n        });\n        return;\n      }\n      setProperties(configStyles, property);\n    });\n    return styles.join(\"\\n\");\n  };\n  function add_css$B(target) {\n    append_styles(target, \"svelte-psvvdq\", \"button.svelte-psvvdq{cursor:pointer;border:none;outline:none;padding:var(--padding);font-size:var(--font-size);font-weight:var(--font-weight);width:var(--width);background:var(--background);color:var(--color);border-radius:var(--border-radius);box-shadow:var(--box-shadow);margin:var(--margin)}\");\n  }\n  function create_fragment$H(ctx) {\n    let button;\n    let current;\n    let mounted;\n    let dispose;\n    const default_slot_template = ctx[3].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[2], null);\n    return {\n      c() {\n        button = element(\"button\");\n        if (default_slot)\n          default_slot.c();\n        attr(button, \"style\", ctx[0]);\n        attr(button, \"class\", \"svelte-psvvdq\");\n      },\n      m(target, anchor) {\n        insert(target, button, anchor);\n        if (default_slot) {\n          default_slot.m(button, null);\n        }\n        current = true;\n        if (!mounted) {\n          dispose = listen(button, \"click\", ctx[4]);\n          mounted = true;\n        }\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 4)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[2], !current ? get_all_dirty_from_scope(ctx2[2]) : get_slot_changes(default_slot_template, ctx2[2], dirty, null), null);\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(button);\n        if (default_slot)\n          default_slot.d(detaching);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function instance$E($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(5, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.button, styleProps);\n    function click_handler(event) {\n      bubble.call(this, $$self, event);\n    }\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(1, configuration$12 = $$props2.configuration);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(2, $$scope = $$props2.$$scope);\n    };\n    return [style, configuration$12, $$scope, slots, click_handler];\n  }\n  class Button extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$E, create_fragment$H, safe_not_equal, { configuration: 1 }, add_css$B);\n    }\n  }\n  function add_css$A(target) {\n    append_styles(target, \"svelte-1qp73fh\", \"h1.svelte-1qp73fh{font-size:var(--font-size);font-weight:var(--font-weight);margin:var(--margin);padding:var(--padding);text-align:var(--text-align);color:var(--color);align-self:var(--align-self);z-index:2}\");\n  }\n  function create_fragment$G(ctx) {\n    let h1;\n    let current;\n    const default_slot_template = ctx[3].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[2], null);\n    return {\n      c() {\n        h1 = element(\"h1\");\n        if (default_slot)\n          default_slot.c();\n        attr(h1, \"style\", ctx[0]);\n        attr(h1, \"class\", \"svelte-1qp73fh\");\n      },\n      m(target, anchor) {\n        insert(target, h1, anchor);\n        if (default_slot) {\n          default_slot.m(h1, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 4)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[2], !current ? get_all_dirty_from_scope(ctx2[2]) : get_slot_changes(default_slot_template, ctx2[2], dirty, null), null);\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(h1);\n        if (default_slot)\n          default_slot.d(detaching);\n      }\n    };\n  }\n  function instance$D($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(4, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.title, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(1, configuration$12 = $$props2.configuration);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(2, $$scope = $$props2.$$scope);\n    };\n    return [style, configuration$12, $$scope, slots];\n  }\n  class Title extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$D, create_fragment$G, safe_not_equal, { configuration: 1 }, add_css$A);\n    }\n  }\n  function add_css$z(target) {\n    append_styles(target, \"svelte-1jr5rat\", \"div.svelte-1jr5rat{margin:var(--margin);max-width:100%;flex-grow:var(--flex-grow, 0);text-align:center}\");\n  }\n  function create_fragment$F(ctx) {\n    let div;\n    let raw_value = ctx[0].src + \"\";\n    return {\n      c() {\n        div = element(\"div\");\n        attr(div, \"style\", ctx[1]);\n        attr(div, \"class\", \"svelte-1jr5rat\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        div.innerHTML = raw_value;\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(div);\n      }\n    };\n  }\n  function instance$C($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(3, $globalConfiguration = $$value));\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const attributes = configuration$12.attributes;\n    const style = makeStylesFromConfiguration($globalConfiguration.image, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n    };\n    return [attributes, style, configuration$12];\n  }\n  class Image$1 extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$C, create_fragment$F, safe_not_equal, { configuration: 2 }, add_css$z);\n    }\n  }\n  function add_css$y(target) {\n    append_styles(target, \"svelte-gebyse\", \"p.svelte-gebyse{transition:all 0.1s ease-in;font-size:var(--font-size);font-weight:var(--font-weight);margin:var(--margin);text-align:var(--text-align);color:var(--color);z-index:2;align-self:var(--align-self);white-space:break-spaces}p.active.svelte-gebyse{color:var(--active-color)}\");\n  }\n  function create_fragment$E(ctx) {\n    let p;\n    let current;\n    const default_slot_template = ctx[4].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[3], null);\n    return {\n      c() {\n        p = element(\"p\");\n        if (default_slot)\n          default_slot.c();\n        attr(p, \"style\", ctx[1]);\n        attr(p, \"class\", \"svelte-gebyse\");\n        toggle_class(p, \"active\", ctx[0]);\n      },\n      m(target, anchor) {\n        insert(target, p, anchor);\n        if (default_slot) {\n          default_slot.m(p, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 8)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[3], !current ? get_all_dirty_from_scope(ctx2[3]) : get_slot_changes(default_slot_template, ctx2[3], dirty, null), null);\n          }\n        }\n        if (!current || dirty & 1) {\n          toggle_class(p, \"active\", ctx2[0]);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(p);\n        if (default_slot)\n          default_slot.d(detaching);\n      }\n    };\n  }\n  function instance$B($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(5, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    let { active: active2 = false } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.paragraph, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n      if (\"active\" in $$props2)\n        $$invalidate(0, active2 = $$props2.active);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(3, $$scope = $$props2.$$scope);\n    };\n    return [active2, style, configuration$12, $$scope, slots];\n  }\n  class Paragraph extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$B, create_fragment$E, safe_not_equal, { configuration: 2, active: 0 }, add_css$y);\n    }\n  }\n  function add_css$x(target) {\n    append_styles(target, \"svelte-1dmo04f\", \".container.svelte-1dmo04f{margin:var(--margin);padding:var(--padding);width:var(--width);min-width:var(--width);height:var(--height);background:var(--background);border-radius:var(--border-radius);display:var(--display);align-items:var(--align-items);justify-content:var(--justify-content);transition:all 0.1s ease-in}.container.active.svelte-1dmo04f{background:var(--active-background)}\");\n  }\n  function create_fragment$D(ctx) {\n    let div;\n    let current;\n    const default_slot_template = ctx[4].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[3], null);\n    return {\n      c() {\n        div = element(\"div\");\n        if (default_slot)\n          default_slot.c();\n        attr(div, \"style\", ctx[1]);\n        attr(div, \"class\", \"container svelte-1dmo04f\");\n        toggle_class(div, \"active\", ctx[0]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (default_slot) {\n          default_slot.m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 8)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[3], !current ? get_all_dirty_from_scope(ctx2[3]) : get_slot_changes(default_slot_template, ctx2[3], dirty, null), null);\n          }\n        }\n        if (!current || dirty & 1) {\n          toggle_class(div, \"active\", ctx2[0]);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (default_slot)\n          default_slot.d(detaching);\n      }\n    };\n  }\n  function instance$A($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(5, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    let { active: active2 = false } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.container, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n      if (\"active\" in $$props2)\n        $$invalidate(0, active2 = $$props2.active);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(3, $$scope = $$props2.$$scope);\n    };\n    return [active2, style, configuration$12, $$scope, slots];\n  }\n  class Container extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$A, create_fragment$D, safe_not_equal, { configuration: 2, active: 0 }, add_css$x);\n    }\n  }\n  function add_css$w(target) {\n    append_styles(target, \"svelte-8wcku5\", \"button.svelte-8wcku5{cursor:pointer;border:none;outline:none;width:var(--width);min-width:var(--width);height:var(--height);background:var(--background);border-radius:var(--border-radius);position:var(--position);display:var(--display);align-items:var(--align-items);justify-content:var(--justify-content);top:var(--top);left:var(--left);right:var(--right);z-index:3}\");\n  }\n  function create_fragment$C(ctx) {\n    let button;\n    let img;\n    let img_src_value;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        button = element(\"button\");\n        img = element(\"img\");\n        if (!src_url_equal(img.src, img_src_value = ctx[0].src))\n          attr(img, \"src\", img_src_value);\n        attr(img, \"alt\", ctx[0].alt);\n        attr(img, \"width\", ctx[0].width);\n        attr(img, \"height\", ctx[0].height);\n        attr(button, \"style\", ctx[1]);\n        attr(button, \"class\", \"svelte-8wcku5\");\n      },\n      m(target, anchor) {\n        insert(target, button, anchor);\n        append(button, img);\n        if (!mounted) {\n          dispose = listen(button, \"click\", ctx[3]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(button);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function instance$z($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(4, $globalConfiguration = $$value));\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const attributes = configuration$12.attributes;\n    const style = makeStylesFromConfiguration($globalConfiguration.iconButton, styleProps);\n    function click_handler(event) {\n      bubble.call(this, $$self, event);\n    }\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n    };\n    return [attributes, style, configuration$12, click_handler];\n  }\n  class IconButton extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$z, create_fragment$C, safe_not_equal, { configuration: 2 }, add_css$w);\n    }\n  }\n  function add_css$v(target) {\n    append_styles(target, \"svelte-g8tebh\", \"button.svelte-g8tebh{cursor:pointer;display:flex;justify-content:space-between;border:none;outline:none;padding:var(--padding);font-size:var(--font-size);width:var(--width);background:var(--background);color:var(--color);border-radius:var(--border-radius)}\");\n  }\n  function create_fragment$B(ctx) {\n    let button;\n    let t2;\n    let img;\n    let img_src_value;\n    let current;\n    let mounted;\n    let dispose;\n    const default_slot_template = ctx[4].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[3], null);\n    return {\n      c() {\n        button = element(\"button\");\n        if (default_slot)\n          default_slot.c();\n        t2 = space();\n        img = element(\"img\");\n        if (!src_url_equal(img.src, img_src_value = ctx[0].src))\n          attr(img, \"src\", img_src_value);\n        attr(img, \"alt\", ctx[0].alt);\n        attr(img, \"width\", ctx[0].width);\n        attr(img, \"height\", ctx[0].height);\n        attr(button, \"style\", ctx[1]);\n        attr(button, \"class\", \"svelte-g8tebh\");\n      },\n      m(target, anchor) {\n        insert(target, button, anchor);\n        if (default_slot) {\n          default_slot.m(button, null);\n        }\n        append(button, t2);\n        append(button, img);\n        current = true;\n        if (!mounted) {\n          dispose = listen(button, \"click\", ctx[5]);\n          mounted = true;\n        }\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 8)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[3], !current ? get_all_dirty_from_scope(ctx2[3]) : get_slot_changes(default_slot_template, ctx2[3], dirty, null), null);\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(button);\n        if (default_slot)\n          default_slot.d(detaching);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function instance$y($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(6, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const attributes = configuration$12.attributes;\n    const style = makeStylesFromConfiguration($globalConfiguration.buttonWithIcon, styleProps);\n    function click_handler(event) {\n      bubble.call(this, $$self, event);\n    }\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(3, $$scope = $$props2.$$scope);\n    };\n    return [attributes, style, configuration$12, $$scope, slots, click_handler];\n  }\n  class ButtonWithIcon extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$y, create_fragment$B, safe_not_equal, { configuration: 2 }, add_css$v);\n    }\n  }\n  function add_css$u(target) {\n    append_styles(target, \"svelte-wx4s1e\", \".container.svelte-wx4s1e{width:100%;height:100%;top:0px;left:0px;position:absolute;display:flex;justify-content:center;align-items:center;background-color:white}.loader-wrapper.svelte-wx4s1e{position:relative}.loader.svelte-wx4s1e{position:relative;top:50%;margin:-28px auto 0;border-radius:50%;animation:svelte-wx4s1e-loader-rotate 1s linear infinite}.small.svelte-wx4s1e{width:41px;height:41px;border:4px solid var(--background);border-right-color:transparent}.medium.svelte-wx4s1e{width:56px;height:56px;border:8px solid var(--background);border-right-color:transparent}.small.svelte-wx4s1e::after{content:'';width:4px;height:4px;background:var(--background);border-radius:50%;position:absolute;top:1px;left:27px}.medium.svelte-wx4s1e::after{content:'';width:8px;height:8px;background:var(--background);border-radius:50%;position:absolute;top:-1px;left:33px}@keyframes svelte-wx4s1e-loader-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}\");\n  }\n  function create_else_block$4(ctx) {\n    let div1;\n    let div0;\n    return {\n      c() {\n        div1 = element(\"div\");\n        div0 = element(\"div\");\n        attr(div0, \"style\", ctx[2]);\n        attr(div0, \"class\", \"loader svelte-wx4s1e\");\n        toggle_class(div0, \"small\", ctx[0] === \"small\");\n        toggle_class(div0, \"medium\", ctx[0] === \"medium\");\n        attr(div1, \"class\", \"loader-wrapper svelte-wx4s1e\");\n      },\n      m(target, anchor) {\n        insert(target, div1, anchor);\n        append(div1, div0);\n      },\n      p(ctx2, dirty) {\n        if (dirty & 1) {\n          toggle_class(div0, \"small\", ctx2[0] === \"small\");\n        }\n        if (dirty & 1) {\n          toggle_class(div0, \"medium\", ctx2[0] === \"medium\");\n        }\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div1);\n      }\n    };\n  }\n  function create_if_block$m(ctx) {\n    let div2;\n    let div1;\n    let div0;\n    return {\n      c() {\n        div2 = element(\"div\");\n        div1 = element(\"div\");\n        div0 = element(\"div\");\n        attr(div0, \"style\", ctx[2]);\n        attr(div0, \"class\", \"loader svelte-wx4s1e\");\n        toggle_class(div0, \"small\", ctx[0] === \"small\");\n        toggle_class(div0, \"medium\", ctx[0] === \"medium\");\n        attr(div1, \"class\", \"loader-wrapper svelte-wx4s1e\");\n        attr(div2, \"class\", \"container svelte-wx4s1e\");\n      },\n      m(target, anchor) {\n        insert(target, div2, anchor);\n        append(div2, div1);\n        append(div1, div0);\n      },\n      p(ctx2, dirty) {\n        if (dirty & 1) {\n          toggle_class(div0, \"small\", ctx2[0] === \"small\");\n        }\n        if (dirty & 1) {\n          toggle_class(div0, \"medium\", ctx2[0] === \"medium\");\n        }\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div2);\n      }\n    };\n  }\n  function create_fragment$A(ctx) {\n    let if_block_anchor;\n    function select_block_type(ctx2, dirty) {\n      if (ctx2[1])\n        return create_if_block$m;\n      return create_else_block$4;\n    }\n    let current_block_type = select_block_type(ctx);\n    let if_block = current_block_type(ctx);\n    return {\n      c() {\n        if_block.c();\n        if_block_anchor = empty();\n      },\n      m(target, anchor) {\n        if_block.m(target, anchor);\n        insert(target, if_block_anchor, anchor);\n      },\n      p(ctx2, [dirty]) {\n        if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {\n          if_block.p(ctx2, dirty);\n        } else {\n          if_block.d(1);\n          if_block = current_block_type(ctx2);\n          if (if_block) {\n            if_block.c();\n            if_block.m(if_block_anchor.parentNode, if_block_anchor);\n          }\n        }\n      },\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if_block.d(detaching);\n        if (detaching)\n          detach(if_block_anchor);\n      }\n    };\n  }\n  function instance$x($$self, $$props, $$invalidate) {\n    let $configuration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(3, $configuration = $$value));\n    let { size = \"medium\" } = $$props;\n    let { fullPage = true } = $$props;\n    const styleProps = $configuration.loader;\n    const style = makesLocalStyles(styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"size\" in $$props2)\n        $$invalidate(0, size = $$props2.size);\n      if (\"fullPage\" in $$props2)\n        $$invalidate(1, fullPage = $$props2.fullPage);\n    };\n    return [size, fullPage, style];\n  }\n  class Loader extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$x, create_fragment$A, safe_not_equal, { size: 0, fullPage: 1 }, add_css$u);\n    }\n  }\n  function add_css$t(target) {\n    append_styles(target, \"svelte-18om8an\", \"div.container.svelte-18om8an{display:flex;align-items:center;justify-content:center;flex:1}img.svelte-18om8an{border-radius:var(--border-radius);margin:var(--margin);max-width:100%;max-height:35vh;animation:svelte-18om8an-slide-in-bottom 0.8s linear both}@keyframes svelte-18om8an-slide-in-bottom{0%{transform:translateY(20px);opacity:0}70%{transform:translateY(-5px);opacity:1}100%{transform:translateY(0);opacity:1}}\");\n  }\n  function create_else_block$3(ctx) {\n    let loader;\n    let current;\n    loader = new Loader({\n      props: { size: \"small\", fullPage: false }\n    });\n    return {\n      c() {\n        create_component(loader.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(loader, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(loader.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(loader.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(loader, detaching);\n      }\n    };\n  }\n  function create_if_block$l(ctx) {\n    let img;\n    let img_src_value;\n    return {\n      c() {\n        img = element(\"img\");\n        if (!src_url_equal(img.src, img_src_value = ctx[0]))\n          attr(img, \"src\", img_src_value);\n        attr(img, \"alt\", \"result\");\n        attr(img, \"style\", ctx[1]);\n        attr(img, \"class\", \"svelte-18om8an\");\n      },\n      m(target, anchor) {\n        insert(target, img, anchor);\n      },\n      p(ctx2, dirty) {\n        if (dirty & 1 && !src_url_equal(img.src, img_src_value = ctx2[0])) {\n          attr(img, \"src\", img_src_value);\n        }\n      },\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(img);\n      }\n    };\n  }\n  function create_fragment$z(ctx) {\n    let div;\n    let current_block_type_index;\n    let if_block;\n    let current;\n    const if_block_creators = [create_if_block$l, create_else_block$3];\n    const if_blocks = [];\n    function select_block_type(ctx2, dirty) {\n      if (ctx2[0])\n        return 0;\n      return 1;\n    }\n    current_block_type_index = select_block_type(ctx);\n    if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n    return {\n      c() {\n        div = element(\"div\");\n        if_block.c();\n        attr(div, \"class\", \"container svelte-18om8an\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if_blocks[current_block_type_index].m(div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        let previous_block_index = current_block_type_index;\n        current_block_type_index = select_block_type(ctx2);\n        if (current_block_type_index === previous_block_index) {\n          if_blocks[current_block_type_index].p(ctx2, dirty);\n        } else {\n          group_outros();\n          transition_out(if_blocks[previous_block_index], 1, 1, () => {\n            if_blocks[previous_block_index] = null;\n          });\n          check_outros();\n          if_block = if_blocks[current_block_type_index];\n          if (!if_block) {\n            if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);\n            if_block.c();\n          } else {\n            if_block.p(ctx2, dirty);\n          }\n          transition_in(if_block, 1);\n          if_block.m(div, null);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if_blocks[current_block_type_index].d();\n      }\n    };\n  }\n  function instance$w($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(3, $globalConfiguration = $$value));\n    let { configuration: configuration$12 } = $$props;\n    let { src } = $$props;\n    const styleProps = configuration$12.style;\n    configuration$12.attributes;\n    const style = makeStylesFromConfiguration($globalConfiguration.photo, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n      if (\"src\" in $$props2)\n        $$invalidate(0, src = $$props2.src);\n    };\n    return [src, style, configuration$12];\n  }\n  class Photo extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$w, create_fragment$z, safe_not_equal, { configuration: 2, src: 0 }, add_css$t);\n    }\n  }\n  function add_css$s(target) {\n    append_styles(target, \"svelte-nxnon4\", \"button.svelte-nxnon4{margin:var(--margin);width:76px;height:76px;border-radius:50%;border:5px solid #fff;display:flex;justify-content:center;align-items:center;background:transparent;outline:none;cursor:pointer;z-index:2}.inner-container.svelte-nxnon4{width:64px;height:64px;min-width:64px;background:#fff;border-radius:50%}\");\n  }\n  function create_fragment$y(ctx) {\n    let button;\n    let span;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        button = element(\"button\");\n        span = element(\"span\");\n        attr(span, \"class\", \"inner-container svelte-nxnon4\");\n        attr(button, \"style\", ctx[0]);\n        attr(button, \"class\", \"svelte-nxnon4\");\n      },\n      m(target, anchor) {\n        insert(target, button, anchor);\n        append(button, span);\n        if (!mounted) {\n          dispose = listen(button, \"click\", ctx[2]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(button);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function instance$v($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(3, $globalConfiguration = $$value));\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.cameraButton, styleProps);\n    function click_handler(event) {\n      bubble.call(this, $$self, event);\n    }\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(1, configuration$12 = $$props2.configuration);\n    };\n    return [style, configuration$12, click_handler];\n  }\n  class CameraButton extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$v, create_fragment$y, safe_not_equal, { configuration: 1 }, add_css$s);\n    }\n  }\n  function add_css$r(target) {\n    append_styles(target, \"svelte-1eicrz7\", \".container.svelte-1eicrz7{flex:1;display:flex;align-items:center;justify-content:center}.mirror.svelte-1eicrz7 video{transform:rotateY(180deg)}.container.svelte-1eicrz7 video{position:absolute;width:100%;height:100%;top:0px;left:0px;right:0;bottom:0;object-fit:cover;z-index:1}\");\n  }\n  function create_fragment$x(ctx) {\n    let div;\n    let current;\n    const default_slot_template = ctx[4].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[3], null);\n    return {\n      c() {\n        div = element(\"div\");\n        if (default_slot)\n          default_slot.c();\n        attr(div, \"class\", \"container svelte-1eicrz7\");\n        attr(div, \"style\", ctx[1]);\n        toggle_class(div, \"mirror\", ctx[0]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (default_slot) {\n          default_slot.m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 8)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[3], !current ? get_all_dirty_from_scope(ctx2[3]) : get_slot_changes(default_slot_template, ctx2[3], dirty, null), null);\n          }\n        }\n        if (!current || dirty & 1) {\n          toggle_class(div, \"mirror\", ctx2[0]);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (default_slot)\n          default_slot.d(detaching);\n      }\n    };\n  }\n  function instance$u($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(5, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    let { isSelfie = false } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.videoContainer, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(2, configuration$12 = $$props2.configuration);\n      if (\"isSelfie\" in $$props2)\n        $$invalidate(0, isSelfie = $$props2.isSelfie);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(3, $$scope = $$props2.$$scope);\n    };\n    return [isSelfie, style, configuration$12, $$scope, slots];\n  }\n  class VideoContainer extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$u, create_fragment$x, safe_not_equal, { configuration: 2, isSelfie: 0 }, add_css$r);\n    }\n  }\n  var lodash_merge = { exports: {} };\n  (function(module2, exports3) {\n    var LARGE_ARRAY_SIZE = 200;\n    var HASH_UNDEFINED = \"__lodash_hash_undefined__\";\n    var HOT_COUNT = 800, HOT_SPAN = 16;\n    var MAX_SAFE_INTEGER = 9007199254740991;\n    var argsTag = \"[object Arguments]\", arrayTag = \"[object Array]\", asyncTag = \"[object AsyncFunction]\", boolTag = \"[object Boolean]\", dateTag = \"[object Date]\", errorTag = \"[object Error]\", funcTag = \"[object Function]\", genTag = \"[object GeneratorFunction]\", mapTag = \"[object Map]\", numberTag = \"[object Number]\", nullTag = \"[object Null]\", objectTag = \"[object Object]\", proxyTag = \"[object Proxy]\", regexpTag = \"[object RegExp]\", setTag = \"[object Set]\", stringTag = \"[object String]\", undefinedTag = \"[object Undefined]\", weakMapTag = \"[object WeakMap]\";\n    var arrayBufferTag = \"[object ArrayBuffer]\", dataViewTag = \"[object DataView]\", float32Tag = \"[object Float32Array]\", float64Tag = \"[object Float64Array]\", int8Tag = \"[object Int8Array]\", int16Tag = \"[object Int16Array]\", int32Tag = \"[object Int32Array]\", uint8Tag = \"[object Uint8Array]\", uint8ClampedTag = \"[object Uint8ClampedArray]\", uint16Tag = \"[object Uint16Array]\", uint32Tag = \"[object Uint32Array]\";\n    var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n    var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n    var reIsUint = /^(?:0|[1-9]\\d*)$/;\n    var typedArrayTags = {};\n    typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\n    typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n    var freeGlobal = typeof commonjsGlobal == \"object\" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\n    var freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\n    var root = freeGlobal || freeSelf || Function(\"return this\")();\n    var freeExports = exports3 && !exports3.nodeType && exports3;\n    var freeModule = freeExports && true && module2 && !module2.nodeType && module2;\n    var moduleExports = freeModule && freeModule.exports === freeExports;\n    var freeProcess = moduleExports && freeGlobal.process;\n    var nodeUtil = function() {\n      try {\n        var types = freeModule && freeModule.require && freeModule.require(\"util\").types;\n        if (types) {\n          return types;\n        }\n        return freeProcess && freeProcess.binding && freeProcess.binding(\"util\");\n      } catch (e) {\n      }\n    }();\n    var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n    function apply(func, thisArg, args) {\n      switch (args.length) {\n        case 0:\n          return func.call(thisArg);\n        case 1:\n          return func.call(thisArg, args[0]);\n        case 2:\n          return func.call(thisArg, args[0], args[1]);\n        case 3:\n          return func.call(thisArg, args[0], args[1], args[2]);\n      }\n      return func.apply(thisArg, args);\n    }\n    function baseTimes(n, iteratee) {\n      var index = -1, result = Array(n);\n      while (++index < n) {\n        result[index] = iteratee(index);\n      }\n      return result;\n    }\n    function baseUnary(func) {\n      return function(value) {\n        return func(value);\n      };\n    }\n    function getValue(object, key) {\n      return object == null ? void 0 : object[key];\n    }\n    function overArg(func, transform) {\n      return function(arg) {\n        return func(transform(arg));\n      };\n    }\n    var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;\n    var coreJsData = root[\"__core-js_shared__\"];\n    var funcToString = funcProto.toString;\n    var hasOwnProperty = objectProto.hasOwnProperty;\n    var maskSrcKey = function() {\n      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || \"\");\n      return uid ? \"Symbol(src)_1.\" + uid : \"\";\n    }();\n    var nativeObjectToString = objectProto.toString;\n    var objectCtorString = funcToString.call(Object);\n    var reIsNative = RegExp(\"^\" + funcToString.call(hasOwnProperty).replace(reRegExpChar, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\");\n    var Buffer = moduleExports ? root.Buffer : void 0, Symbol2 = root.Symbol, Uint8Array2 = root.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;\n    var defineProperty = function() {\n      try {\n        var func = getNative(Object, \"defineProperty\");\n        func({}, \"\", {});\n        return func;\n      } catch (e) {\n      }\n    }();\n    var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeMax = Math.max, nativeNow = Date.now;\n    var Map2 = getNative(root, \"Map\"), nativeCreate = getNative(Object, \"create\");\n    var baseCreate = function() {\n      function object() {\n      }\n      return function(proto) {\n        if (!isObject(proto)) {\n          return {};\n        }\n        if (objectCreate) {\n          return objectCreate(proto);\n        }\n        object.prototype = proto;\n        var result = new object();\n        object.prototype = void 0;\n        return result;\n      };\n    }();\n    function Hash(entries) {\n      var index = -1, length = entries == null ? 0 : entries.length;\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n    function hashClear() {\n      this.__data__ = nativeCreate ? nativeCreate(null) : {};\n      this.size = 0;\n    }\n    function hashDelete(key) {\n      var result = this.has(key) && delete this.__data__[key];\n      this.size -= result ? 1 : 0;\n      return result;\n    }\n    function hashGet(key) {\n      var data = this.__data__;\n      if (nativeCreate) {\n        var result = data[key];\n        return result === HASH_UNDEFINED ? void 0 : result;\n      }\n      return hasOwnProperty.call(data, key) ? data[key] : void 0;\n    }\n    function hashHas(key) {\n      var data = this.__data__;\n      return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);\n    }\n    function hashSet(key, value) {\n      var data = this.__data__;\n      this.size += this.has(key) ? 0 : 1;\n      data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;\n      return this;\n    }\n    Hash.prototype.clear = hashClear;\n    Hash.prototype[\"delete\"] = hashDelete;\n    Hash.prototype.get = hashGet;\n    Hash.prototype.has = hashHas;\n    Hash.prototype.set = hashSet;\n    function ListCache(entries) {\n      var index = -1, length = entries == null ? 0 : entries.length;\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n    function listCacheClear() {\n      this.__data__ = [];\n      this.size = 0;\n    }\n    function listCacheDelete(key) {\n      var data = this.__data__, index = assocIndexOf(data, key);\n      if (index < 0) {\n        return false;\n      }\n      var lastIndex = data.length - 1;\n      if (index == lastIndex) {\n        data.pop();\n      } else {\n        splice.call(data, index, 1);\n      }\n      --this.size;\n      return true;\n    }\n    function listCacheGet(key) {\n      var data = this.__data__, index = assocIndexOf(data, key);\n      return index < 0 ? void 0 : data[index][1];\n    }\n    function listCacheHas(key) {\n      return assocIndexOf(this.__data__, key) > -1;\n    }\n    function listCacheSet(key, value) {\n      var data = this.__data__, index = assocIndexOf(data, key);\n      if (index < 0) {\n        ++this.size;\n        data.push([key, value]);\n      } else {\n        data[index][1] = value;\n      }\n      return this;\n    }\n    ListCache.prototype.clear = listCacheClear;\n    ListCache.prototype[\"delete\"] = listCacheDelete;\n    ListCache.prototype.get = listCacheGet;\n    ListCache.prototype.has = listCacheHas;\n    ListCache.prototype.set = listCacheSet;\n    function MapCache(entries) {\n      var index = -1, length = entries == null ? 0 : entries.length;\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n    function mapCacheClear() {\n      this.size = 0;\n      this.__data__ = {\n        \"hash\": new Hash(),\n        \"map\": new (Map2 || ListCache)(),\n        \"string\": new Hash()\n      };\n    }\n    function mapCacheDelete(key) {\n      var result = getMapData(this, key)[\"delete\"](key);\n      this.size -= result ? 1 : 0;\n      return result;\n    }\n    function mapCacheGet(key) {\n      return getMapData(this, key).get(key);\n    }\n    function mapCacheHas(key) {\n      return getMapData(this, key).has(key);\n    }\n    function mapCacheSet(key, value) {\n      var data = getMapData(this, key), size = data.size;\n      data.set(key, value);\n      this.size += data.size == size ? 0 : 1;\n      return this;\n    }\n    MapCache.prototype.clear = mapCacheClear;\n    MapCache.prototype[\"delete\"] = mapCacheDelete;\n    MapCache.prototype.get = mapCacheGet;\n    MapCache.prototype.has = mapCacheHas;\n    MapCache.prototype.set = mapCacheSet;\n    function Stack(entries) {\n      var data = this.__data__ = new ListCache(entries);\n      this.size = data.size;\n    }\n    function stackClear() {\n      this.__data__ = new ListCache();\n      this.size = 0;\n    }\n    function stackDelete(key) {\n      var data = this.__data__, result = data[\"delete\"](key);\n      this.size = data.size;\n      return result;\n    }\n    function stackGet(key) {\n      return this.__data__.get(key);\n    }\n    function stackHas(key) {\n      return this.__data__.has(key);\n    }\n    function stackSet(key, value) {\n      var data = this.__data__;\n      if (data instanceof ListCache) {\n        var pairs = data.__data__;\n        if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {\n          pairs.push([key, value]);\n          this.size = ++data.size;\n          return this;\n        }\n        data = this.__data__ = new MapCache(pairs);\n      }\n      data.set(key, value);\n      this.size = data.size;\n      return this;\n    }\n    Stack.prototype.clear = stackClear;\n    Stack.prototype[\"delete\"] = stackDelete;\n    Stack.prototype.get = stackGet;\n    Stack.prototype.has = stackHas;\n    Stack.prototype.set = stackSet;\n    function arrayLikeKeys(value, inherited) {\n      var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;\n      for (var key in value) {\n        if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == \"length\" || isBuff && (key == \"offset\" || key == \"parent\") || isType && (key == \"buffer\" || key == \"byteLength\" || key == \"byteOffset\") || isIndex(key, length)))) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n    function assignMergeValue(object, key, value) {\n      if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {\n        baseAssignValue(object, key, value);\n      }\n    }\n    function assignValue(object, key, value) {\n      var objValue = object[key];\n      if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {\n        baseAssignValue(object, key, value);\n      }\n    }\n    function assocIndexOf(array, key) {\n      var length = array.length;\n      while (length--) {\n        if (eq(array[length][0], key)) {\n          return length;\n        }\n      }\n      return -1;\n    }\n    function baseAssignValue(object, key, value) {\n      if (key == \"__proto__\" && defineProperty) {\n        defineProperty(object, key, {\n          \"configurable\": true,\n          \"enumerable\": true,\n          \"value\": value,\n          \"writable\": true\n        });\n      } else {\n        object[key] = value;\n      }\n    }\n    var baseFor = createBaseFor();\n    function baseGetTag(value) {\n      if (value == null) {\n        return value === void 0 ? undefinedTag : nullTag;\n      }\n      return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n    }\n    function baseIsArguments(value) {\n      return isObjectLike(value) && baseGetTag(value) == argsTag;\n    }\n    function baseIsNative(value) {\n      if (!isObject(value) || isMasked(value)) {\n        return false;\n      }\n      var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n      return pattern.test(toSource(value));\n    }\n    function baseIsTypedArray(value) {\n      return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n    }\n    function baseKeysIn(object) {\n      if (!isObject(object)) {\n        return nativeKeysIn(object);\n      }\n      var isProto = isPrototype(object), result = [];\n      for (var key in object) {\n        if (!(key == \"constructor\" && (isProto || !hasOwnProperty.call(object, key)))) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n    function baseMerge(object, source, srcIndex, customizer, stack) {\n      if (object === source) {\n        return;\n      }\n      baseFor(source, function(srcValue, key) {\n        stack || (stack = new Stack());\n        if (isObject(srcValue)) {\n          baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n        } else {\n          var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + \"\", object, source, stack) : void 0;\n          if (newValue === void 0) {\n            newValue = srcValue;\n          }\n          assignMergeValue(object, key, newValue);\n        }\n      }, keysIn);\n    }\n    function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n      var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);\n      if (stacked) {\n        assignMergeValue(object, key, stacked);\n        return;\n      }\n      var newValue = customizer ? customizer(objValue, srcValue, key + \"\", object, source, stack) : void 0;\n      var isCommon = newValue === void 0;\n      if (isCommon) {\n        var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n        newValue = srcValue;\n        if (isArr || isBuff || isTyped) {\n          if (isArray(objValue)) {\n            newValue = objValue;\n          } else if (isArrayLikeObject(objValue)) {\n            newValue = copyArray(objValue);\n          } else if (isBuff) {\n            isCommon = false;\n            newValue = cloneBuffer(srcValue, true);\n          } else if (isTyped) {\n            isCommon = false;\n            newValue = cloneTypedArray(srcValue, true);\n          } else {\n            newValue = [];\n          }\n        } else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n          newValue = objValue;\n          if (isArguments(objValue)) {\n            newValue = toPlainObject(objValue);\n          } else if (!isObject(objValue) || isFunction(objValue)) {\n            newValue = initCloneObject(srcValue);\n          }\n        } else {\n          isCommon = false;\n        }\n      }\n      if (isCommon) {\n        stack.set(srcValue, newValue);\n        mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n        stack[\"delete\"](srcValue);\n      }\n      assignMergeValue(object, key, newValue);\n    }\n    function baseRest(func, start) {\n      return setToString(overRest(func, start, identity2), func + \"\");\n    }\n    var baseSetToString = !defineProperty ? identity2 : function(func, string) {\n      return defineProperty(func, \"toString\", {\n        \"configurable\": true,\n        \"enumerable\": false,\n        \"value\": constant(string),\n        \"writable\": true\n      });\n    };\n    function cloneBuffer(buffer, isDeep) {\n      if (isDeep) {\n        return buffer.slice();\n      }\n      var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n      buffer.copy(result);\n      return result;\n    }\n    function cloneArrayBuffer(arrayBuffer) {\n      var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n      new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));\n      return result;\n    }\n    function cloneTypedArray(typedArray, isDeep) {\n      var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n      return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n    }\n    function copyArray(source, array) {\n      var index = -1, length = source.length;\n      array || (array = Array(length));\n      while (++index < length) {\n        array[index] = source[index];\n      }\n      return array;\n    }\n    function copyObject(source, props, object, customizer) {\n      var isNew = !object;\n      object || (object = {});\n      var index = -1, length = props.length;\n      while (++index < length) {\n        var key = props[index];\n        var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;\n        if (newValue === void 0) {\n          newValue = source[key];\n        }\n        if (isNew) {\n          baseAssignValue(object, key, newValue);\n        } else {\n          assignValue(object, key, newValue);\n        }\n      }\n      return object;\n    }\n    function createAssigner(assigner) {\n      return baseRest(function(object, sources) {\n        var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;\n        customizer = assigner.length > 3 && typeof customizer == \"function\" ? (length--, customizer) : void 0;\n        if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n          customizer = length < 3 ? void 0 : customizer;\n          length = 1;\n        }\n        object = Object(object);\n        while (++index < length) {\n          var source = sources[index];\n          if (source) {\n            assigner(object, source, index, customizer);\n          }\n        }\n        return object;\n      });\n    }\n    function createBaseFor(fromRight) {\n      return function(object, iteratee, keysFunc) {\n        var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;\n        while (length--) {\n          var key = props[fromRight ? length : ++index];\n          if (iteratee(iterable[key], key, iterable) === false) {\n            break;\n          }\n        }\n        return object;\n      };\n    }\n    function getMapData(map, key) {\n      var data = map.__data__;\n      return isKeyable(key) ? data[typeof key == \"string\" ? \"string\" : \"hash\"] : data.map;\n    }\n    function getNative(object, key) {\n      var value = getValue(object, key);\n      return baseIsNative(value) ? value : void 0;\n    }\n    function getRawTag(value) {\n      var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];\n      try {\n        value[symToStringTag] = void 0;\n        var unmasked = true;\n      } catch (e) {\n      }\n      var result = nativeObjectToString.call(value);\n      if (unmasked) {\n        if (isOwn) {\n          value[symToStringTag] = tag;\n        } else {\n          delete value[symToStringTag];\n        }\n      }\n      return result;\n    }\n    function initCloneObject(object) {\n      return typeof object.constructor == \"function\" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};\n    }\n    function isIndex(value, length) {\n      var type = typeof value;\n      length = length == null ? MAX_SAFE_INTEGER : length;\n      return !!length && (type == \"number\" || type != \"symbol\" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);\n    }\n    function isIterateeCall(value, index, object) {\n      if (!isObject(object)) {\n        return false;\n      }\n      var type = typeof index;\n      if (type == \"number\" ? isArrayLike(object) && isIndex(index, object.length) : type == \"string\" && index in object) {\n        return eq(object[index], value);\n      }\n      return false;\n    }\n    function isKeyable(value) {\n      var type = typeof value;\n      return type == \"string\" || type == \"number\" || type == \"symbol\" || type == \"boolean\" ? value !== \"__proto__\" : value === null;\n    }\n    function isMasked(func) {\n      return !!maskSrcKey && maskSrcKey in func;\n    }\n    function isPrototype(value) {\n      var Ctor = value && value.constructor, proto = typeof Ctor == \"function\" && Ctor.prototype || objectProto;\n      return value === proto;\n    }\n    function nativeKeysIn(object) {\n      var result = [];\n      if (object != null) {\n        for (var key in Object(object)) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n    function objectToString(value) {\n      return nativeObjectToString.call(value);\n    }\n    function overRest(func, start, transform) {\n      start = nativeMax(start === void 0 ? func.length - 1 : start, 0);\n      return function() {\n        var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);\n        while (++index < length) {\n          array[index] = args[start + index];\n        }\n        index = -1;\n        var otherArgs = Array(start + 1);\n        while (++index < start) {\n          otherArgs[index] = args[index];\n        }\n        otherArgs[start] = transform(array);\n        return apply(func, this, otherArgs);\n      };\n    }\n    function safeGet(object, key) {\n      if (key === \"constructor\" && typeof object[key] === \"function\") {\n        return;\n      }\n      if (key == \"__proto__\") {\n        return;\n      }\n      return object[key];\n    }\n    var setToString = shortOut(baseSetToString);\n    function shortOut(func) {\n      var count = 0, lastCalled = 0;\n      return function() {\n        var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);\n        lastCalled = stamp;\n        if (remaining > 0) {\n          if (++count >= HOT_COUNT) {\n            return arguments[0];\n          }\n        } else {\n          count = 0;\n        }\n        return func.apply(void 0, arguments);\n      };\n    }\n    function toSource(func) {\n      if (func != null) {\n        try {\n          return funcToString.call(func);\n        } catch (e) {\n        }\n        try {\n          return func + \"\";\n        } catch (e) {\n        }\n      }\n      return \"\";\n    }\n    function eq(value, other) {\n      return value === other || value !== value && other !== other;\n    }\n    var isArguments = baseIsArguments(function() {\n      return arguments;\n    }()) ? baseIsArguments : function(value) {\n      return isObjectLike(value) && hasOwnProperty.call(value, \"callee\") && !propertyIsEnumerable.call(value, \"callee\");\n    };\n    var isArray = Array.isArray;\n    function isArrayLike(value) {\n      return value != null && isLength(value.length) && !isFunction(value);\n    }\n    function isArrayLikeObject(value) {\n      return isObjectLike(value) && isArrayLike(value);\n    }\n    var isBuffer = nativeIsBuffer || stubFalse;\n    function isFunction(value) {\n      if (!isObject(value)) {\n        return false;\n      }\n      var tag = baseGetTag(value);\n      return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n    }\n    function isLength(value) {\n      return typeof value == \"number\" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n    }\n    function isObject(value) {\n      var type = typeof value;\n      return value != null && (type == \"object\" || type == \"function\");\n    }\n    function isObjectLike(value) {\n      return value != null && typeof value == \"object\";\n    }\n    function isPlainObject(value) {\n      if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n        return false;\n      }\n      var proto = getPrototype(value);\n      if (proto === null) {\n        return true;\n      }\n      var Ctor = hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n      return typeof Ctor == \"function\" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;\n    }\n    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n    function toPlainObject(value) {\n      return copyObject(value, keysIn(value));\n    }\n    function keysIn(object) {\n      return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n    }\n    var merge = createAssigner(function(object, source, srcIndex) {\n      baseMerge(object, source, srcIndex);\n    });\n    function constant(value) {\n      return function() {\n        return value;\n      };\n    }\n    function identity2(value) {\n      return value;\n    }\n    function stubFalse() {\n      return false;\n    }\n    module2.exports = merge;\n  })(lodash_merge, lodash_merge.exports);\n  var mergeObj = lodash_merge.exports;\n  var lodash_keyby = { exports: {} };\n  (function(module2, exports3) {\n    var LARGE_ARRAY_SIZE = 200;\n    var FUNC_ERROR_TEXT = \"Expected a function\";\n    var HASH_UNDEFINED = \"__lodash_hash_undefined__\";\n    var UNORDERED_COMPARE_FLAG = 1, PARTIAL_COMPARE_FLAG = 2;\n    var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991;\n    var argsTag = \"[object Arguments]\", arrayTag = \"[object Array]\", boolTag = \"[object Boolean]\", dateTag = \"[object Date]\", errorTag = \"[object Error]\", funcTag = \"[object Function]\", genTag = \"[object GeneratorFunction]\", mapTag = \"[object Map]\", numberTag = \"[object Number]\", objectTag = \"[object Object]\", promiseTag = \"[object Promise]\", regexpTag = \"[object RegExp]\", setTag = \"[object Set]\", stringTag = \"[object String]\", symbolTag = \"[object Symbol]\", weakMapTag = \"[object WeakMap]\";\n    var arrayBufferTag = \"[object ArrayBuffer]\", dataViewTag = \"[object DataView]\", float32Tag = \"[object Float32Array]\", float64Tag = \"[object Float64Array]\", int8Tag = \"[object Int8Array]\", int16Tag = \"[object Int16Array]\", int32Tag = \"[object Int32Array]\", uint8Tag = \"[object Uint8Array]\", uint8ClampedTag = \"[object Uint8ClampedArray]\", uint16Tag = \"[object Uint16Array]\", uint32Tag = \"[object Uint32Array]\";\n    var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/, reIsPlainProp = /^\\w*$/, reLeadingDot = /^\\./, rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n    var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n    var reEscapeChar = /\\\\(\\\\)?/g;\n    var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n    var reIsUint = /^(?:0|[1-9]\\d*)$/;\n    var typedArrayTags = {};\n    typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\n    typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n    var freeGlobal = typeof commonjsGlobal == \"object\" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\n    var freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\n    var root = freeGlobal || freeSelf || Function(\"return this\")();\n    var freeExports = exports3 && !exports3.nodeType && exports3;\n    var freeModule = freeExports && true && module2 && !module2.nodeType && module2;\n    var moduleExports = freeModule && freeModule.exports === freeExports;\n    var freeProcess = moduleExports && freeGlobal.process;\n    var nodeUtil = function() {\n      try {\n        return freeProcess && freeProcess.binding(\"util\");\n      } catch (e) {\n      }\n    }();\n    var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n    function arrayAggregator(array, setter, iteratee, accumulator) {\n      var index = -1, length = array ? array.length : 0;\n      while (++index < length) {\n        var value = array[index];\n        setter(accumulator, value, iteratee(value), array);\n      }\n      return accumulator;\n    }\n    function arraySome(array, predicate) {\n      var index = -1, length = array ? array.length : 0;\n      while (++index < length) {\n        if (predicate(array[index], index, array)) {\n          return true;\n        }\n      }\n      return false;\n    }\n    function baseProperty(key) {\n      return function(object) {\n        return object == null ? void 0 : object[key];\n      };\n    }\n    function baseTimes(n, iteratee) {\n      var index = -1, result = Array(n);\n      while (++index < n) {\n        result[index] = iteratee(index);\n      }\n      return result;\n    }\n    function baseUnary(func) {\n      return function(value) {\n        return func(value);\n      };\n    }\n    function getValue(object, key) {\n      return object == null ? void 0 : object[key];\n    }\n    function isHostObject(value) {\n      var result = false;\n      if (value != null && typeof value.toString != \"function\") {\n        try {\n          result = !!(value + \"\");\n        } catch (e) {\n        }\n      }\n      return result;\n    }\n    function mapToArray(map) {\n      var index = -1, result = Array(map.size);\n      map.forEach(function(value, key) {\n        result[++index] = [key, value];\n      });\n      return result;\n    }\n    function overArg(func, transform) {\n      return function(arg) {\n        return func(transform(arg));\n      };\n    }\n    function setToArray(set) {\n      var index = -1, result = Array(set.size);\n      set.forEach(function(value) {\n        result[++index] = value;\n      });\n      return result;\n    }\n    var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;\n    var coreJsData = root[\"__core-js_shared__\"];\n    var maskSrcKey = function() {\n      var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || \"\");\n      return uid ? \"Symbol(src)_1.\" + uid : \"\";\n    }();\n    var funcToString = funcProto.toString;\n    var hasOwnProperty = objectProto.hasOwnProperty;\n    var objectToString = objectProto.toString;\n    var reIsNative = RegExp(\"^\" + funcToString.call(hasOwnProperty).replace(reRegExpChar, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\");\n    var Symbol2 = root.Symbol, Uint8Array2 = root.Uint8Array, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;\n    var nativeKeys = overArg(Object.keys, Object);\n    var DataView2 = getNative(root, \"DataView\"), Map2 = getNative(root, \"Map\"), Promise2 = getNative(root, \"Promise\"), Set2 = getNative(root, \"Set\"), WeakMap = getNative(root, \"WeakMap\"), nativeCreate = getNative(Object, \"create\");\n    var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);\n    var symbolProto = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;\n    function Hash(entries) {\n      var index = -1, length = entries ? entries.length : 0;\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n    function hashClear() {\n      this.__data__ = nativeCreate ? nativeCreate(null) : {};\n    }\n    function hashDelete(key) {\n      return this.has(key) && delete this.__data__[key];\n    }\n    function hashGet(key) {\n      var data = this.__data__;\n      if (nativeCreate) {\n        var result = data[key];\n        return result === HASH_UNDEFINED ? void 0 : result;\n      }\n      return hasOwnProperty.call(data, key) ? data[key] : void 0;\n    }\n    function hashHas(key) {\n      var data = this.__data__;\n      return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);\n    }\n    function hashSet(key, value) {\n      var data = this.__data__;\n      data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;\n      return this;\n    }\n    Hash.prototype.clear = hashClear;\n    Hash.prototype[\"delete\"] = hashDelete;\n    Hash.prototype.get = hashGet;\n    Hash.prototype.has = hashHas;\n    Hash.prototype.set = hashSet;\n    function ListCache(entries) {\n      var index = -1, length = entries ? entries.length : 0;\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n    function listCacheClear() {\n      this.__data__ = [];\n    }\n    function listCacheDelete(key) {\n      var data = this.__data__, index = assocIndexOf(data, key);\n      if (index < 0) {\n        return false;\n      }\n      var lastIndex = data.length - 1;\n      if (index == lastIndex) {\n        data.pop();\n      } else {\n        splice.call(data, index, 1);\n      }\n      return true;\n    }\n    function listCacheGet(key) {\n      var data = this.__data__, index = assocIndexOf(data, key);\n      return index < 0 ? void 0 : data[index][1];\n    }\n    function listCacheHas(key) {\n      return assocIndexOf(this.__data__, key) > -1;\n    }\n    function listCacheSet(key, value) {\n      var data = this.__data__, index = assocIndexOf(data, key);\n      if (index < 0) {\n        data.push([key, value]);\n      } else {\n        data[index][1] = value;\n      }\n      return this;\n    }\n    ListCache.prototype.clear = listCacheClear;\n    ListCache.prototype[\"delete\"] = listCacheDelete;\n    ListCache.prototype.get = listCacheGet;\n    ListCache.prototype.has = listCacheHas;\n    ListCache.prototype.set = listCacheSet;\n    function MapCache(entries) {\n      var index = -1, length = entries ? entries.length : 0;\n      this.clear();\n      while (++index < length) {\n        var entry = entries[index];\n        this.set(entry[0], entry[1]);\n      }\n    }\n    function mapCacheClear() {\n      this.__data__ = {\n        \"hash\": new Hash(),\n        \"map\": new (Map2 || ListCache)(),\n        \"string\": new Hash()\n      };\n    }\n    function mapCacheDelete(key) {\n      return getMapData(this, key)[\"delete\"](key);\n    }\n    function mapCacheGet(key) {\n      return getMapData(this, key).get(key);\n    }\n    function mapCacheHas(key) {\n      return getMapData(this, key).has(key);\n    }\n    function mapCacheSet(key, value) {\n      getMapData(this, key).set(key, value);\n      return this;\n    }\n    MapCache.prototype.clear = mapCacheClear;\n    MapCache.prototype[\"delete\"] = mapCacheDelete;\n    MapCache.prototype.get = mapCacheGet;\n    MapCache.prototype.has = mapCacheHas;\n    MapCache.prototype.set = mapCacheSet;\n    function SetCache(values) {\n      var index = -1, length = values ? values.length : 0;\n      this.__data__ = new MapCache();\n      while (++index < length) {\n        this.add(values[index]);\n      }\n    }\n    function setCacheAdd(value) {\n      this.__data__.set(value, HASH_UNDEFINED);\n      return this;\n    }\n    function setCacheHas(value) {\n      return this.__data__.has(value);\n    }\n    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n    SetCache.prototype.has = setCacheHas;\n    function Stack(entries) {\n      this.__data__ = new ListCache(entries);\n    }\n    function stackClear() {\n      this.__data__ = new ListCache();\n    }\n    function stackDelete(key) {\n      return this.__data__[\"delete\"](key);\n    }\n    function stackGet(key) {\n      return this.__data__.get(key);\n    }\n    function stackHas(key) {\n      return this.__data__.has(key);\n    }\n    function stackSet(key, value) {\n      var cache = this.__data__;\n      if (cache instanceof ListCache) {\n        var pairs = cache.__data__;\n        if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {\n          pairs.push([key, value]);\n          return this;\n        }\n        cache = this.__data__ = new MapCache(pairs);\n      }\n      cache.set(key, value);\n      return this;\n    }\n    Stack.prototype.clear = stackClear;\n    Stack.prototype[\"delete\"] = stackDelete;\n    Stack.prototype.get = stackGet;\n    Stack.prototype.has = stackHas;\n    Stack.prototype.set = stackSet;\n    function arrayLikeKeys(value, inherited) {\n      var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];\n      var length = result.length, skipIndexes = !!length;\n      for (var key in value) {\n        if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == \"length\" || isIndex(key, length)))) {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n    function assocIndexOf(array, key) {\n      var length = array.length;\n      while (length--) {\n        if (eq(array[length][0], key)) {\n          return length;\n        }\n      }\n      return -1;\n    }\n    function baseAggregator(collection, setter, iteratee, accumulator) {\n      baseEach(collection, function(value, key, collection2) {\n        setter(accumulator, value, iteratee(value), collection2);\n      });\n      return accumulator;\n    }\n    var baseEach = createBaseEach(baseForOwn);\n    var baseFor = createBaseFor();\n    function baseForOwn(object, iteratee) {\n      return object && baseFor(object, iteratee, keys);\n    }\n    function baseGet(object, path) {\n      path = isKey(path, object) ? [path] : castPath(path);\n      var index = 0, length = path.length;\n      while (object != null && index < length) {\n        object = object[toKey(path[index++])];\n      }\n      return index && index == length ? object : void 0;\n    }\n    function baseGetTag(value) {\n      return objectToString.call(value);\n    }\n    function baseHasIn(object, key) {\n      return object != null && key in Object(object);\n    }\n    function baseIsEqual(value, other, customizer, bitmask, stack) {\n      if (value === other) {\n        return true;\n      }\n      if (value == null || other == null || !isObject(value) && !isObjectLike(other)) {\n        return value !== value && other !== other;\n      }\n      return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);\n    }\n    function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {\n      var objIsArr = isArray(object), othIsArr = isArray(other), objTag = arrayTag, othTag = arrayTag;\n      if (!objIsArr) {\n        objTag = getTag(object);\n        objTag = objTag == argsTag ? objectTag : objTag;\n      }\n      if (!othIsArr) {\n        othTag = getTag(other);\n        othTag = othTag == argsTag ? objectTag : othTag;\n      }\n      var objIsObj = objTag == objectTag && !isHostObject(object), othIsObj = othTag == objectTag && !isHostObject(other), isSameTag = objTag == othTag;\n      if (isSameTag && !objIsObj) {\n        stack || (stack = new Stack());\n        return objIsArr || isTypedArray(object) ? equalArrays(object, other, equalFunc, customizer, bitmask, stack) : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);\n      }\n      if (!(bitmask & PARTIAL_COMPARE_FLAG)) {\n        var objIsWrapped = objIsObj && hasOwnProperty.call(object, \"__wrapped__\"), othIsWrapped = othIsObj && hasOwnProperty.call(other, \"__wrapped__\");\n        if (objIsWrapped || othIsWrapped) {\n          var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;\n          stack || (stack = new Stack());\n          return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);\n        }\n      }\n      if (!isSameTag) {\n        return false;\n      }\n      stack || (stack = new Stack());\n      return equalObjects(object, other, equalFunc, customizer, bitmask, stack);\n    }\n    function baseIsMatch(object, source, matchData, customizer) {\n      var index = matchData.length, length = index, noCustomizer = !customizer;\n      if (object == null) {\n        return !length;\n      }\n      object = Object(object);\n      while (index--) {\n        var data = matchData[index];\n        if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {\n          return false;\n        }\n      }\n      while (++index < length) {\n        data = matchData[index];\n        var key = data[0], objValue = object[key], srcValue = data[1];\n        if (noCustomizer && data[2]) {\n          if (objValue === void 0 && !(key in object)) {\n            return false;\n          }\n        } else {\n          var stack = new Stack();\n          if (customizer) {\n            var result = customizer(objValue, srcValue, key, object, source, stack);\n          }\n          if (!(result === void 0 ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) {\n            return false;\n          }\n        }\n      }\n      return true;\n    }\n    function baseIsNative(value) {\n      if (!isObject(value) || isMasked(value)) {\n        return false;\n      }\n      var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;\n      return pattern.test(toSource(value));\n    }\n    function baseIsTypedArray(value) {\n      return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n    }\n    function baseIteratee(value) {\n      if (typeof value == \"function\") {\n        return value;\n      }\n      if (value == null) {\n        return identity2;\n      }\n      if (typeof value == \"object\") {\n        return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);\n      }\n      return property(value);\n    }\n    function baseKeys(object) {\n      if (!isPrototype(object)) {\n        return nativeKeys(object);\n      }\n      var result = [];\n      for (var key in Object(object)) {\n        if (hasOwnProperty.call(object, key) && key != \"constructor\") {\n          result.push(key);\n        }\n      }\n      return result;\n    }\n    function baseMatches(source) {\n      var matchData = getMatchData(source);\n      if (matchData.length == 1 && matchData[0][2]) {\n        return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n      }\n      return function(object) {\n        return object === source || baseIsMatch(object, source, matchData);\n      };\n    }\n    function baseMatchesProperty(path, srcValue) {\n      if (isKey(path) && isStrictComparable(srcValue)) {\n        return matchesStrictComparable(toKey(path), srcValue);\n      }\n      return function(object) {\n        var objValue = get(object, path);\n        return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, void 0, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);\n      };\n    }\n    function basePropertyDeep(path) {\n      return function(object) {\n        return baseGet(object, path);\n      };\n    }\n    function baseToString(value) {\n      if (typeof value == \"string\") {\n        return value;\n      }\n      if (isSymbol(value)) {\n        return symbolToString ? symbolToString.call(value) : \"\";\n      }\n      var result = value + \"\";\n      return result == \"0\" && 1 / value == -INFINITY ? \"-0\" : result;\n    }\n    function castPath(value) {\n      return isArray(value) ? value : stringToPath(value);\n    }\n    function createAggregator(setter, initializer) {\n      return function(collection, iteratee) {\n        var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};\n        return func(collection, setter, baseIteratee(iteratee), accumulator);\n      };\n    }\n    function createBaseEach(eachFunc, fromRight) {\n      return function(collection, iteratee) {\n        if (collection == null) {\n          return collection;\n        }\n        if (!isArrayLike(collection)) {\n          return eachFunc(collection, iteratee);\n        }\n        var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);\n        while (fromRight ? index-- : ++index < length) {\n          if (iteratee(iterable[index], index, iterable) === false) {\n            break;\n          }\n        }\n        return collection;\n      };\n    }\n    function createBaseFor(fromRight) {\n      return function(object, iteratee, keysFunc) {\n        var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;\n        while (length--) {\n          var key = props[fromRight ? length : ++index];\n          if (iteratee(iterable[key], key, iterable) === false) {\n            break;\n          }\n        }\n        return object;\n      };\n    }\n    function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {\n      var isPartial = bitmask & PARTIAL_COMPARE_FLAG, arrLength = array.length, othLength = other.length;\n      if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n        return false;\n      }\n      var stacked = stack.get(array);\n      if (stacked && stack.get(other)) {\n        return stacked == other;\n      }\n      var index = -1, result = true, seen = bitmask & UNORDERED_COMPARE_FLAG ? new SetCache() : void 0;\n      stack.set(array, other);\n      stack.set(other, array);\n      while (++index < arrLength) {\n        var arrValue = array[index], othValue = other[index];\n        if (customizer) {\n          var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);\n        }\n        if (compared !== void 0) {\n          if (compared) {\n            continue;\n          }\n          result = false;\n          break;\n        }\n        if (seen) {\n          if (!arraySome(other, function(othValue2, othIndex) {\n            if (!seen.has(othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, customizer, bitmask, stack))) {\n              return seen.add(othIndex);\n            }\n          })) {\n            result = false;\n            break;\n          }\n        } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {\n          result = false;\n          break;\n        }\n      }\n      stack[\"delete\"](array);\n      stack[\"delete\"](other);\n      return result;\n    }\n    function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {\n      switch (tag) {\n        case dataViewTag:\n          if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {\n            return false;\n          }\n          object = object.buffer;\n          other = other.buffer;\n        case arrayBufferTag:\n          if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {\n            return false;\n          }\n          return true;\n        case boolTag:\n        case dateTag:\n        case numberTag:\n          return eq(+object, +other);\n        case errorTag:\n          return object.name == other.name && object.message == other.message;\n        case regexpTag:\n        case stringTag:\n          return object == other + \"\";\n        case mapTag:\n          var convert = mapToArray;\n        case setTag:\n          var isPartial = bitmask & PARTIAL_COMPARE_FLAG;\n          convert || (convert = setToArray);\n          if (object.size != other.size && !isPartial) {\n            return false;\n          }\n          var stacked = stack.get(object);\n          if (stacked) {\n            return stacked == other;\n          }\n          bitmask |= UNORDERED_COMPARE_FLAG;\n          stack.set(object, other);\n          var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);\n          stack[\"delete\"](object);\n          return result;\n        case symbolTag:\n          if (symbolValueOf) {\n            return symbolValueOf.call(object) == symbolValueOf.call(other);\n          }\n      }\n      return false;\n    }\n    function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {\n      var isPartial = bitmask & PARTIAL_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), othLength = othProps.length;\n      if (objLength != othLength && !isPartial) {\n        return false;\n      }\n      var index = objLength;\n      while (index--) {\n        var key = objProps[index];\n        if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n          return false;\n        }\n      }\n      var stacked = stack.get(object);\n      if (stacked && stack.get(other)) {\n        return stacked == other;\n      }\n      var result = true;\n      stack.set(object, other);\n      stack.set(other, object);\n      var skipCtor = isPartial;\n      while (++index < objLength) {\n        key = objProps[index];\n        var objValue = object[key], othValue = other[key];\n        if (customizer) {\n          var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);\n        }\n        if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack) : compared)) {\n          result = false;\n          break;\n        }\n        skipCtor || (skipCtor = key == \"constructor\");\n      }\n      if (result && !skipCtor) {\n        var objCtor = object.constructor, othCtor = other.constructor;\n        if (objCtor != othCtor && (\"constructor\" in object && \"constructor\" in other) && !(typeof objCtor == \"function\" && objCtor instanceof objCtor && typeof othCtor == \"function\" && othCtor instanceof othCtor)) {\n          result = false;\n        }\n      }\n      stack[\"delete\"](object);\n      stack[\"delete\"](other);\n      return result;\n    }\n    function getMapData(map, key) {\n      var data = map.__data__;\n      return isKeyable(key) ? data[typeof key == \"string\" ? \"string\" : \"hash\"] : data.map;\n    }\n    function getMatchData(object) {\n      var result = keys(object), length = result.length;\n      while (length--) {\n        var key = result[length], value = object[key];\n        result[length] = [key, value, isStrictComparable(value)];\n      }\n      return result;\n    }\n    function getNative(object, key) {\n      var value = getValue(object, key);\n      return baseIsNative(value) ? value : void 0;\n    }\n    var getTag = baseGetTag;\n    if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {\n      getTag = function(value) {\n        var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;\n        if (ctorString) {\n          switch (ctorString) {\n            case dataViewCtorString:\n              return dataViewTag;\n            case mapCtorString:\n              return mapTag;\n            case promiseCtorString:\n              return promiseTag;\n            case setCtorString:\n              return setTag;\n            case weakMapCtorString:\n              return weakMapTag;\n          }\n        }\n        return result;\n      };\n    }\n    function hasPath(object, path, hasFunc) {\n      path = isKey(path, object) ? [path] : castPath(path);\n      var result, index = -1, length = path.length;\n      while (++index < length) {\n        var key = toKey(path[index]);\n        if (!(result = object != null && hasFunc(object, key))) {\n          break;\n        }\n        object = object[key];\n      }\n      if (result) {\n        return result;\n      }\n      var length = object ? object.length : 0;\n      return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));\n    }\n    function isIndex(value, length) {\n      length = length == null ? MAX_SAFE_INTEGER : length;\n      return !!length && (typeof value == \"number\" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);\n    }\n    function isKey(value, object) {\n      if (isArray(value)) {\n        return false;\n      }\n      var type = typeof value;\n      if (type == \"number\" || type == \"symbol\" || type == \"boolean\" || value == null || isSymbol(value)) {\n        return true;\n      }\n      return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);\n    }\n    function isKeyable(value) {\n      var type = typeof value;\n      return type == \"string\" || type == \"number\" || type == \"symbol\" || type == \"boolean\" ? value !== \"__proto__\" : value === null;\n    }\n    function isMasked(func) {\n      return !!maskSrcKey && maskSrcKey in func;\n    }\n    function isPrototype(value) {\n      var Ctor = value && value.constructor, proto = typeof Ctor == \"function\" && Ctor.prototype || objectProto;\n      return value === proto;\n    }\n    function isStrictComparable(value) {\n      return value === value && !isObject(value);\n    }\n    function matchesStrictComparable(key, srcValue) {\n      return function(object) {\n        if (object == null) {\n          return false;\n        }\n        return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));\n      };\n    }\n    var stringToPath = memoize(function(string) {\n      string = toString(string);\n      var result = [];\n      if (reLeadingDot.test(string)) {\n        result.push(\"\");\n      }\n      string.replace(rePropName, function(match, number, quote, string2) {\n        result.push(quote ? string2.replace(reEscapeChar, \"$1\") : number || match);\n      });\n      return result;\n    });\n    function toKey(value) {\n      if (typeof value == \"string\" || isSymbol(value)) {\n        return value;\n      }\n      var result = value + \"\";\n      return result == \"0\" && 1 / value == -INFINITY ? \"-0\" : result;\n    }\n    function toSource(func) {\n      if (func != null) {\n        try {\n          return funcToString.call(func);\n        } catch (e) {\n        }\n        try {\n          return func + \"\";\n        } catch (e) {\n        }\n      }\n      return \"\";\n    }\n    var keyBy = createAggregator(function(result, value, key) {\n      result[key] = value;\n    });\n    function memoize(func, resolver) {\n      if (typeof func != \"function\" || resolver && typeof resolver != \"function\") {\n        throw new TypeError(FUNC_ERROR_TEXT);\n      }\n      var memoized = function() {\n        var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;\n        if (cache.has(key)) {\n          return cache.get(key);\n        }\n        var result = func.apply(this, args);\n        memoized.cache = cache.set(key, result);\n        return result;\n      };\n      memoized.cache = new (memoize.Cache || MapCache)();\n      return memoized;\n    }\n    memoize.Cache = MapCache;\n    function eq(value, other) {\n      return value === other || value !== value && other !== other;\n    }\n    function isArguments(value) {\n      return isArrayLikeObject(value) && hasOwnProperty.call(value, \"callee\") && (!propertyIsEnumerable.call(value, \"callee\") || objectToString.call(value) == argsTag);\n    }\n    var isArray = Array.isArray;\n    function isArrayLike(value) {\n      return value != null && isLength(value.length) && !isFunction(value);\n    }\n    function isArrayLikeObject(value) {\n      return isObjectLike(value) && isArrayLike(value);\n    }\n    function isFunction(value) {\n      var tag = isObject(value) ? objectToString.call(value) : \"\";\n      return tag == funcTag || tag == genTag;\n    }\n    function isLength(value) {\n      return typeof value == \"number\" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n    }\n    function isObject(value) {\n      var type = typeof value;\n      return !!value && (type == \"object\" || type == \"function\");\n    }\n    function isObjectLike(value) {\n      return !!value && typeof value == \"object\";\n    }\n    function isSymbol(value) {\n      return typeof value == \"symbol\" || isObjectLike(value) && objectToString.call(value) == symbolTag;\n    }\n    var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n    function toString(value) {\n      return value == null ? \"\" : baseToString(value);\n    }\n    function get(object, path, defaultValue) {\n      var result = object == null ? void 0 : baseGet(object, path);\n      return result === void 0 ? defaultValue : result;\n    }\n    function hasIn(object, path) {\n      return object != null && hasPath(object, path, baseHasIn);\n    }\n    function keys(object) {\n      return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n    }\n    function identity2(value) {\n      return value;\n    }\n    function property(path) {\n      return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n    }\n    module2.exports = keyBy;\n  })(lodash_keyby, lodash_keyby.exports);\n  var toObjByKey = lodash_keyby.exports;\n  const en = {\n    welcome: {\n      title: \"Verify your identity\",\n      button: \"Choose document type\",\n      description: \"We need some information to help us confirm \\nyour identity.\",\n      tip: \"Verifying usually takes a few seconds.\"\n    },\n    \"document-selection\": {\n      title: \"Upload ID\",\n      description: \"Choose the document type you would like to \\nidentify with\",\n      tip: \"Choose document type\"\n    },\n    \"document-options\": {\n      \"passport-title\": \"Passport\",\n      \"passport-description\": \"Your official travel document.\",\n      \"id_card-title\": \"ID Card\",\n      \"id_card-description\": \"Your government-issued personal ID.\",\n      \"drivers_license-title\": \"Drivers license\",\n      \"drivers_license-description\": \"Your government-issued Drivers license\",\n      \"voter_id-title\": \"Voter ID\",\n      \"voter_id-description\": \"\"\n    },\n    \"document-photo\": {\n      \"id_card-title\": \"Upload ID\",\n      \"id_card-description\": \"To open an account, we need to verify your identity. Please prepare your ID, passport, or resident card.\",\n      \"passport-title\": \"Passport\",\n      \"passport-description\": \"Place your passport inside the frame and take a \\npicture. \\nMake sure it is not cut or has any glare.\",\n      \"voter_id-title\": \"Voter ID front side\",\n      \"voter_id-description\": \"Place your voter card inside the frome and take a picture. \\nMake sure it is not cut or has any glare.\",\n      \"drivers_license-title\": \"Drivers license\",\n      \"drivers_license-description\": \"Place your drivers license inside the frame and take \\na picture. \\nMake sure it is not cut or has any glare.\"\n    },\n    \"document-photo-back\": {\n      \"id_card-title\": \"Upload ID\",\n      \"id_card-description\": \"To open an account, we need to verify your identity. Please prepare your ID, passport, or resident card.\",\n      \"passport-title\": \"Upload ID\",\n      \"passport-description\": \"To open an account, we need to verify your identity. Please prepare your ID, passport, or resident card.\",\n      \"voter_id-title\": \"Voter ID back side\",\n      \"voter_id-description\": \"Place the back side of your Voter ID inside the frame and \\ntake a picture. \\nMake sure it is not cut or has any glare.\",\n      \"drivers_license-title\": \"Drivers license back side\",\n      \"drivers_license-description\": \"Place the back side of your Drivers license inside \\nthe frame and take a picture. \\nMake sure it is not cut or has any glare.\"\n    },\n    \"check-document\": {\n      \"id_card-title\": \"Review picture\",\n      \"id_card-description\": \"Make sure the information is seen clearly, with no blur \\nor glare.\",\n      \"passport-title\": \"Review picture\",\n      \"passport-description\": \"Make sure the information is seen clearly, with no blur \\nor glare.\",\n      \"voter_id-title\": \"Review picture\",\n      \"voter_id-description\": \"Make sure the information is seen clearly, with no blur \\nor glare.\",\n      \"drivers_license-title\": \"Review picture\",\n      \"drivers_license-description\": \"Make sure the information is seen clearly, with no blur \\nor glare.\"\n    },\n    \"document-photo-back-start\": {\n      title: \"ID back side\",\n      description: \"Please take a picture of the back side of your ID\",\n      button: \"Take photo\",\n      \"voter_id-title\": \"Voter ID back side\",\n      \"voter_id-description\": \"Please take a picture of the back side of your Voter ID\",\n      \"drivers_license-title\": \"Drivers license back side\",\n      \"drivers_license-description\": \"Please take a picture of the back side of your Drivers \\nlicense\"\n    },\n    \"check-document-photo-back\": {\n      title: \"Review picture\",\n      description: \"Make sure the information is seen clearly, with no blur \\nor glare.\"\n    },\n    \"navigation-buttons\": {\n      next: \"Looks good\",\n      back: \"Take again\"\n    },\n    \"selfie-start\": {\n      title: \"Selfie\",\n      button: \"Take a selfie\",\n      description: \"Make sure your face is clear and is fully inside the \\nframe.\"\n    },\n    selfie: {\n      title: \"Selfie\",\n      description: \"Place your face inside the frome and take a picture. \\nMake sure it is clearly visable.\"\n    },\n    \"check-selfie\": {\n      title: \"Review picture\",\n      description: \"Make sure your face is clearly visible and fits inside \\nthe frame.\"\n    },\n    final: {\n      title: \"Success\",\n      description: \"Your identity has been successfully verified.\",\n      button: \"Next\"\n    },\n    loader: {\n      \"text-one\": \"We're verifying your documents\",\n      \"text-two\": \"This may take a few seconds\",\n      \"text-three\": \"Taking more than usual\"\n    },\n    resubmission: {\n      \"201-title\": \"Missing images\",\n      \"201-button\": \"Retry uploading\",\n      \"201-description\": \"It seems like you haven't sent us all of the images we need in order to verify you. please retry uploading the images.\",\n      \"204-title\": \"Couldn\\u2019t verify the images\",\n      \"204-button\": \"Retry uploading\",\n      \"204-description\": \"The image of the document you have sent us was in bad quality. please retry uploading the images\",\n      \"205-title\": \"Couldn\\u2019t verify the images\",\n      \"205-button\": \"Retry uploading\",\n      \"205-description\": \"The document you have sent us seems to be damaged, please retry uploading using a different document.\",\n      \"206-title\": \"Unsupported document\",\n      \"206-button\": \"Choose different document\",\n      \"206-description\": \"The document you have sent us was not supported. Please take a photo of a valid document.\",\n      \"207-title\": \"Expired document\",\n      \"207-button\": \"Retry uploading\",\n      \"207-description\": \"The document you have sent seems to be expired. Please take a photo of a valid document.\",\n      \"606-title\": \"Unclear selfie\",\n      \"606-button\": \"Retry uploading\",\n      \"606-description\": \"It seems like the photo of your face was not clear, please try again.\",\n      \"614-title\": \"Document not fully visible\",\n      \"614-button\": \"Retry uploading\",\n      \"614-description\": \"The document you have sent is not fully inside the picture.\",\n      \"615-title\": \"Back side not fully visible\",\n      \"615-button\": \"Retry uploading\",\n      \"615-description\": \"The back side of the document you have sent is not fully inside the picture.\"\n    },\n    loading: {\n      \"review-hint\": \"Taking longer than usual\"\n    },\n    decline: {\n      title: \"Failed to verify\",\n      button: \"Close\",\n      description: \"It seems like there was an issue verifying your documents.\"\n    },\n    timeout: {\n      title: \"Something went wrong\",\n      button: \"Close\",\n      description: \"It seems like there was an issue verifiying your documents.\"\n    },\n    general: {\n      online: \"You are online!\",\n      offline: \"You are offline, please check your connection\",\n      errorDocuments: \"Error sending documents\",\n      errorDocumentVerification: \"Error document verification\"\n    }\n  };\n  const es = {\n    welcome: {\n      title: \"es: Verify your identity\",\n      button: \"es: Choose document type\",\n      description: \"es: We need some information to help us confirm \\nyour identity.\",\n      tip: \"es: Verifying usually takes a few seconds.\"\n    },\n    \"document-selection\": {\n      title: \"es: Upload ID\",\n      description: \"es: Choose the document type you would like to \\nidentify with\",\n      tip: \"es: Choose document type\"\n    },\n    \"document-options\": {\n      \"passport-title\": \"es: Passport\",\n      \"passport-description\": \"es: \",\n      \"id_card-title\": \"es: ID Card\",\n      \"card-description\": \"es: \",\n      \"drivers_license-title\": \"es: Drivers license\",\n      \"drivers_license-description\": \"es: \",\n      \"voter_id-title\": \"es: Voter ID\",\n      \"voter_id-description\": \"es: \"\n    },\n    \"document-photo\": {\n      \"id_card-title\": \"es: Upload ID\",\n      \"id_card-description\": \"es: To open an account, we need to verify your identity. Please prepare your ID, passport, or resident card.\",\n      \"passport-title\": \"es: Passport\",\n      \"passport-description\": \"es: Place your passport inside the frame and take a \\npicture. \\nMake sure it is not cut or has any glare.\",\n      \"voter_id-title\": \"es: Voter ID front side\",\n      \"voter_id-description\": \"es: Place your voter card inside the frome and take a picture. \\nMake sure it is not cut or has any glare.\",\n      \"drivers_license-title\": \"es: Drivers license\",\n      \"drivers_license-description\": \"es: Place your drivers license inside the frame and take \\na picture. \\nMake sure it is not cut or has any glare.\"\n    },\n    \"document-photo-back\": {\n      \"id_card-title\": \"es: Upload ID\",\n      \"id_card-description\": \"es: To open an account, we need to verify your identity. Please prepare your ID, passport, or resident card.\",\n      \"passport-title\": \"es: Upload ID\",\n      \"passport-description\": \"es: To open an account, we need to verify your identity. Please prepare your ID, passport, or resident card.\",\n      \"voter_id-title\": \"es: Voter ID back side\",\n      \"voter_id-description\": \"es: Place the back side of your Voter ID inside the frame and \\ntake a picture. \\nMake sure it is not cut or has any glare.\",\n      \"drivers_license-title\": \"es: Drivers license back side\",\n      \"drivers_license-description\": \"es: Place the back side of your Drivers license inside \\nthe frame and take a picture. \\nMake sure it is not cut or has any glare.\"\n    },\n    \"check-document\": {\n      \"id_card-title\": \"es: Review picture\",\n      \"id_card-description\": \"es: Make sure the information is seen clearly, with no blur \\nor glare.\",\n      \"passport-title\": \"es: Review picture\",\n      \"passport-description\": \"es: Make sure the information is seen clearly, with no blur \\nor glare.\",\n      \"voter_id-title\": \"es: Review picture\",\n      \"voter_id-description\": \"es: Make sure the information is seen clearly, with no blur \\nor glare.\",\n      \"drivers_license-title\": \"es: Review picture\",\n      \"drivers_license-description\": \"es: Make sure the information is seen clearly, with no blur \\nor glare.\"\n    },\n    resubmission: {\n      \"201-title\": \"es: Missing images\",\n      \"201-button\": \"es: Retry uploading\",\n      \"201-description\": \"es: It seems like you haven't sent us all of the images we need in order to verify you. please retry uploading the images.\",\n      \"204-title\": \"es: Couldn\\u2019t verify the images\",\n      \"204-button\": \"es: Retry uploading\",\n      \"204-description\": \"es: The image of the document you have sent us was in bad quality. please retry uploading the images\",\n      \"205-title\": \"es: Couldn\\u2019t verify the images\",\n      \"205-button\": \"es: Retry uploading\",\n      \"205-description\": \"es: The document you have sent us seems to be damaged, please retry uploading using a different document.\",\n      \"206-title\": \"es: Unsupported document\",\n      \"206-button\": \"es: Choose different document\",\n      \"206-description\": \"es: The document you have sent us was not supported. Please take a photo of a valid document.\",\n      \"207-title\": \"es: Expired document\",\n      \"207-button\": \"es: Retry uploading\",\n      \"207-description\": \"es: The document you have sent seems to be expired. Please take a photo of a valid document.\",\n      \"606-title\": \"es: Unclear selfie\",\n      \"606-button\": \"es: Retry uploading\",\n      \"606-description\": \"es: It seems like the photo of your face was not clear, please try again.\",\n      \"614-title\": \"es: Document not fully visible\",\n      \"614-button\": \"es: Retry uploading\",\n      \"614-description\": \"es: The document you have sent is not fully inside the picture.\",\n      \"615-title\": \"es: Back side not fully visible\",\n      \"615-button\": \"es: Retry uploading\",\n      \"615-description\": \"es: The back side of the document you have sent is not fully inside the picture.\"\n    },\n    loading: {\n      \"review-hint\": \"es: Taking longer than usual\"\n    },\n    decline: {\n      title: \"es: Failed to verify\",\n      button: \"es: Close\",\n      description: \"es: It seems like there was an issue verifying your documents.\"\n    },\n    timeout: {\n      title: \"es: Something went wrong\",\n      button: \"es: Close\",\n      description: \"es: It seems like there was an issue verifiying your documents.\"\n    },\n    \"document-photo-back-start\": {\n      title: \"es: ID back side\",\n      description: \"es: Please take a picture of the back side of your ID\",\n      button: \"es: Take photo\",\n      \"voter_id-title\": \"es: Voter ID back side\",\n      \"voter_id-description\": \"es: Please take a picture of the back side of your Voter ID\",\n      \"drivers_license-title\": \"es: Drivers license back side\",\n      \"drivers_license-description\": \"es: Please take a picture of the back side of your Drivers \\nlicense\"\n    },\n    \"check-document-photo-back\": {\n      title: \"es: Review picture\",\n      description: \"es: Make sure the information is seen clearly, with no blur \\nor glare.\"\n    },\n    \"navigation-buttons\": {\n      next: \"es: Looks good\",\n      back: \"es: Take again\"\n    },\n    \"selfie-start\": {\n      title: \"es: Selfie\",\n      button: \"es: Take a selfie\",\n      description: \"es: Make sure your face is clear and is fully inside the \\nframe.\"\n    },\n    selfie: {\n      title: \"es: Selfie\",\n      description: \"es: Place your face inside the frome and take a picture. \\nMake sure it is clearly visable.\"\n    },\n    \"check-selfie\": {\n      title: \"es: Review picture\",\n      description: \"es: Make sure your face is clearly visible and fits inside \\nthe frame.\"\n    },\n    final: {\n      title: \"es: Success\",\n      description: \"es: Your identity has been successfully verified.\",\n      button: \"es: Next\"\n    },\n    loader: {\n      \"text-one\": \"es: We're verifying your documents\",\n      \"text-two\": \"es: This may take a few seconds\",\n      \"text-three\": \"es: Taking more than usual\"\n    },\n    general: {\n      online: \"es: You are online!\",\n      offline: \"es: You are offline, please check your connection\",\n      errorDocuments: \"es: Error sending documents\",\n      errorDocumentVerification: \"es: Error document verification\"\n    }\n  };\n  const fr = {};\n  var translation = {\n    en,\n    es,\n    fr\n  };\n  let texts = translation;\n  const preloadByExtension = async (src) => {\n    return new Promise(async (resolve, reject) => {\n      const extension = src.split(\".\").pop();\n      if (extension === \"svg\") {\n        const response = await fetch(src);\n        const svg = await response.text();\n        return resolve(svg);\n      }\n      const img = new Image();\n      img.onload = () => resolve(img.src);\n      img.onerror = reject;\n      img.src = src;\n    });\n  };\n  const updateSteps = async (steps2) => {\n    var _a;\n    const updatedSteps = { ...steps2 };\n    const stepsKeys = Object.keys(steps2);\n    for (let i = 0; i < stepsKeys.length; i++) {\n      const step = steps2[stepsKeys[i]];\n      if (step.elements) {\n        for (let j = 0; j < step.elements.length; j++) {\n          const element2 = step.elements[j];\n          if (element2.type === Elements.Image && ((_a = element2.props.attributes) == null ? void 0 : _a.src)) {\n            const { src } = element2.props.attributes;\n            updatedSteps[stepsKeys[i]].elements[j].props.attributes.src = await preloadByExtension(src);\n          }\n        }\n      }\n    }\n    return updatedSteps;\n  };\n  const preloadImages = async (configuration2) => {\n    return {\n      ...configuration2,\n      steps: await updateSteps(configuration2.steps)\n    };\n  };\n  const updateConfiguration = async (configOverrides) => {\n    let configurationResult = void 0;\n    configuration.update((currentConfig) => {\n      const mergedConfig = mergeConfig(currentConfig, configOverrides);\n      configurationResult = mergedConfig;\n      return mergedConfig;\n    });\n    const config = configurationResult;\n    const updatedConfig = await preloadImages(config);\n    configuration.update(() => updatedConfig);\n  };\n  const updateTranslations = async (translations) => {\n    if (translations.overrides) {\n      texts = mergeObj(texts, translations.overrides);\n    }\n    if (translations.useRemoteFile) {\n      try {\n        const response = await fetch(translations.useRemoteFile);\n        const overrides = await response.json();\n        texts = mergeObj(texts, overrides);\n      } catch (error) {\n        console.error(error);\n      }\n    }\n  };\n  const mergeConfig = (originalConfig, overrides) => {\n    var _a;\n    const newConfig = mergeObj(originalConfig, v1adapter(overrides));\n    if (newConfig.steps && newConfig.steps[Steps.DocumentSelection] && newConfig.steps[Steps.DocumentSelection].documentOptions) {\n      const documentOptions = (_a = newConfig.steps[Steps.DocumentSelection].documentOptions) == null ? void 0 : _a.reduce((docOpts, docType) => {\n        docOpts[docType] = newConfig.documentOptions.options[docType];\n        return docOpts;\n      }, {});\n      newConfig.documentOptions.options = documentOptions;\n    }\n    return newConfig;\n  };\n  const v1adapter = (config) => {\n    const { uiConfig = {}, endUserInfo = {} } = config;\n    const { flows: flows2 = {}, ...restUiConfig } = uiConfig;\n    const newFlows = {};\n    let flowSteps = {};\n    for (const [flowName, flow] of Object.entries(flows2)) {\n      if (flow) {\n        const { steps: steps2, ...flowConfig } = flow;\n        newFlows[flowName] = {\n          name: flowName,\n          ...flowConfig\n        };\n        if (steps2) {\n          newFlows[flowName].stepsOrder = steps2.map((step) => step.name);\n        }\n        const stepsConfig = toObjByKey(steps2, (e) => e.id);\n        flowSteps = {\n          ...flowSteps,\n          ...stepsConfig\n        };\n      }\n    }\n    return {\n      flows: newFlows,\n      steps: flowSteps,\n      endUserInfo,\n      ...restUiConfig\n    };\n  };\n  const currentLanguage = writable(\"en\");\n  let language;\n  currentLanguage.subscribe((lang) => {\n    language = lang;\n  });\n  const t = (module2, key) => {\n    if (!texts[language])\n      return \"Language not defined: \" + language;\n    if (!texts[language][module2])\n      return \"Text module not found: \" + module2;\n    if (!texts[language][module2][key])\n      return \"Text key not found: \" + key;\n    return texts[language][module2][key];\n  };\n  function add_css$q(target) {\n    append_styles(target, \"svelte-9sqqwf\", \"li.svelte-9sqqwf{font-size:var(--font-size);font-weight:var(--font-weight);margin:var(--margin);text-align:var(--text-align);color:var(--color);z-index:2}\");\n  }\n  function create_fragment$w(ctx) {\n    let li;\n    let current;\n    const default_slot_template = ctx[3].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[2], null);\n    return {\n      c() {\n        li = element(\"li\");\n        if (default_slot)\n          default_slot.c();\n        attr(li, \"style\", ctx[0]);\n        attr(li, \"class\", \"svelte-9sqqwf\");\n      },\n      m(target, anchor) {\n        insert(target, li, anchor);\n        if (default_slot) {\n          default_slot.m(li, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 4)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[2], !current ? get_all_dirty_from_scope(ctx2[2]) : get_slot_changes(default_slot_template, ctx2[2], dirty, null), null);\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(li);\n        if (default_slot)\n          default_slot.d(detaching);\n      }\n    };\n  }\n  function instance$t($$self, $$props, $$invalidate) {\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration2 } = $$props;\n    const styleProps = configuration2.style;\n    const style = makesLocalStyles(styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(1, configuration2 = $$props2.configuration);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(2, $$scope = $$props2.$$scope);\n    };\n    return [style, configuration2, $$scope, slots];\n  }\n  class ListItem extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$t, create_fragment$w, safe_not_equal, { configuration: 1 }, add_css$q);\n    }\n  }\n  function add_css$p(target) {\n    append_styles(target, \"svelte-1wxgltb\", \"p.svelte-1wxgltb{font-size:16px;line-height:1;margin:0}\");\n  }\n  function create_key_block(ctx) {\n    let p;\n    let t2;\n    let p_intro;\n    let p_outro;\n    let current;\n    return {\n      c() {\n        p = element(\"p\");\n        t2 = text(ctx[0]);\n        attr(p, \"class\", \"svelte-1wxgltb\");\n      },\n      m(target, anchor) {\n        insert(target, p, anchor);\n        append(p, t2);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (!current || dirty & 1)\n          set_data(t2, ctx2[0]);\n      },\n      i(local2) {\n        if (current)\n          return;\n        add_render_callback(() => {\n          if (p_outro)\n            p_outro.end(1);\n          p_intro = create_in_transition(p, fly, { y: 16 });\n          p_intro.start();\n        });\n        current = true;\n      },\n      o(local2) {\n        if (p_intro)\n          p_intro.invalidate();\n        p_outro = create_out_transition(p, fly, { y: 16 });\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(p);\n        if (detaching && p_outro)\n          p_outro.end();\n      }\n    };\n  }\n  function create_fragment$v(ctx) {\n    let previous_key = ctx[0];\n    let key_block_anchor;\n    let current;\n    let key_block = create_key_block(ctx);\n    return {\n      c() {\n        key_block.c();\n        key_block_anchor = empty();\n      },\n      m(target, anchor) {\n        key_block.m(target, anchor);\n        insert(target, key_block_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 1 && safe_not_equal(previous_key, previous_key = ctx2[0])) {\n          group_outros();\n          transition_out(key_block, 1, 1, noop);\n          check_outros();\n          key_block = create_key_block(ctx2);\n          key_block.c();\n          transition_in(key_block, 1);\n          key_block.m(key_block_anchor.parentNode, key_block_anchor);\n        } else {\n          key_block.p(ctx2, dirty);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(key_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(key_block);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(key_block_anchor);\n        key_block.d(detaching);\n      }\n    };\n  }\n  function instance$s($$self, $$props, $$invalidate) {\n    let { texts: texts2 } = $$props;\n    let text2 = \"\";\n    const intervals = [];\n    for (const item of texts2) {\n      const start = setTimeout(() => {\n        $$invalidate(0, text2 = item.text);\n      }, item.startTime);\n      intervals.push(start);\n      if (item.endTime !== \"infinity\") {\n        const end = setTimeout(() => {\n          $$invalidate(0, text2 = \"\");\n        }, item.endTime);\n        intervals.push(end);\n      }\n    }\n    onDestroy(() => {\n      for (const interval of intervals) {\n        clearInterval(interval);\n      }\n    });\n    $$self.$$set = ($$props2) => {\n      if (\"texts\" in $$props2)\n        $$invalidate(1, texts2 = $$props2.texts);\n    };\n    return [text2, texts2];\n  }\n  class FlyingText extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$s, create_fragment$v, safe_not_equal, { texts: 1 }, add_css$p);\n    }\n  }\n  const getOverlaySrc = (documentType) => {\n    const cardOverlayDocumentTypes = [\n      DocumentType.DRIVERS_LICENSE,\n      DocumentType.RESIDENCE_PERMIT,\n      DocumentType.ID_CARD,\n      DocumentType.VOTER_ID,\n      DocumentType.WORK_PERMIT,\n      DocumentType.VISA\n    ];\n    if (cardOverlayDocumentTypes.includes(documentType)) {\n      return \"https://cdn.ballerine.io/ui-packs/default/images/card-overlay.svg\";\n    }\n    if (documentType === DocumentType.PASSPORT) {\n      return \"https://cdn.ballerine.io/ui-packs/default/images/passport-overlay.svg\";\n    }\n    if (documentType === DocumentType.SELFIE) {\n      return \"https://cdn.ballerine.io/ui-packs/default/images/selfie-overlay.svg\";\n    }\n    return \"https://cdn.ballerine.io/ui-packs/default/images/a4-overlay.svg\";\n  };\n  function add_css$o(target) {\n    append_styles(target, \"svelte-1anvnl9\", \".overlay.svelte-1anvnl9{position:absolute;background-repeat:no-repeat;background-size:auto;background-position:center;top:0;left:0;width:100%;height:100%;z-index:1}@media(min-height: 800px){.overlay.svelte-1anvnl9{background-size:cover}}@media(max-height: 680px){.overlay.svelte-1anvnl9{background-position-y:var(--background-position-y)}}\");\n  }\n  function create_fragment$u(ctx) {\n    let div;\n    let style_background_image = `url(${ctx[0]})`;\n    return {\n      c() {\n        div = element(\"div\");\n        attr(div, \"class\", \"overlay svelte-1anvnl9\");\n        attr(div, \"style\", ctx[1]);\n        set_style(div, \"background-image\", style_background_image, false);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(div);\n      }\n    };\n  }\n  function instance$r($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(3, $globalConfiguration = $$value));\n    let { type } = $$props;\n    const src = getOverlaySrc(type);\n    const style = makeStylesFromConfiguration($globalConfiguration.overlay);\n    $$self.$$set = ($$props2) => {\n      if (\"type\" in $$props2)\n        $$invalidate(2, type = $$props2.type);\n    };\n    return [src, style, type];\n  }\n  class Overlay extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$r, create_fragment$u, safe_not_equal, { type: 2 }, add_css$o);\n    }\n  }\n  const FLOW_STORE_KEY = \"flow\";\n  const setFlowName = (flows2, name) => {\n    console.log(\"setFlowName\", name);\n    if (name && flows2[name])\n      return sessionStorage.setItem(FLOW_STORE_KEY, name);\n    const savedFlow = sessionStorage.getItem(FLOW_STORE_KEY);\n    if (!savedFlow || !flows2[savedFlow])\n      sessionStorage.setItem(FLOW_STORE_KEY, \"default\");\n  };\n  const getFlowName = () => sessionStorage.getItem(FLOW_STORE_KEY) || \"default\";\n  const getFlowOrders = (configuration2) => {\n    const flowName = sessionStorage.getItem(FLOW_STORE_KEY);\n    if (!flowName) {\n      return new Error(\"Flow name wasn't provided\");\n    }\n    const flowConfiguration = configuration2.flows[flowName];\n    if (!flowConfiguration) {\n      return new Error(`Flow configuration doesn't exist for the name: ${flowName}`);\n    }\n    return flowConfiguration.stepsOrder;\n  };\n  const getFlowConfig = (configuration2) => {\n    const flowName = sessionStorage.getItem(FLOW_STORE_KEY);\n    if (!flowName) {\n      throw new Error(\"Flow name wasn't provided\");\n    }\n    const flowConfiguration = configuration2.flows[flowName];\n    if (!flowConfiguration) {\n      throw new Error(`Flow configuration doesn't exist for the name: ${flowName}`);\n    }\n    return flowConfiguration;\n  };\n  const isNativeCamera = (configuration2) => {\n    const flowName = sessionStorage.getItem(FLOW_STORE_KEY);\n    const flowConfiguration = configuration2.flows[flowName];\n    return !!(flowConfiguration == null ? void 0 : flowConfiguration.nativeCamera);\n  };\n  function create_fragment$t(ctx) {\n    let t_1;\n    return {\n      c() {\n        t_1 = text(ctx[0]);\n      },\n      m(target, anchor) {\n        insert(target, t_1, anchor);\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 1)\n          set_data(t_1, ctx2[0]);\n      },\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(t_1);\n      }\n    };\n  }\n  function instance$q($$self, $$props, $$invalidate) {\n    let { module: module2 } = $$props;\n    let { key } = $$props;\n    let text2;\n    currentLanguage.subscribe(() => {\n      $$invalidate(0, text2 = t(module2, key));\n    });\n    $$self.$$set = ($$props2) => {\n      if (\"module\" in $$props2)\n        $$invalidate(1, module2 = $$props2.module);\n      if (\"key\" in $$props2)\n        $$invalidate(2, key = $$props2.key);\n    };\n    return [text2, module2, key];\n  }\n  class T extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$q, create_fragment$t, safe_not_equal, { module: 1, key: 2 });\n    }\n  }\n  const getListLength = (language2, module2) => {\n    const list = texts[language2][module2];\n    return Object.keys(list).length - 1;\n  };\n  function add_css$n(target) {\n    append_styles(target, \"svelte-1nti07n\", \".container.svelte-1nti07n{margin:var(--margin);padding:var(--padding);align-items:var(--align-items);text-align:var(--text-align);justify-content:var(--justify-content)}\");\n  }\n  function get_each_context$g(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[10] = list[i];\n    child_ctx[12] = i;\n    return child_ctx;\n  }\n  function create_default_slot_1$h(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"title\",\n        module: `list-${ctx[3]}`\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_default_slot$h(ctx) {\n    let t0;\n    let t1;\n    let current;\n    t0 = new T({\n      props: {\n        key: `item-${ctx[12] + 1}`,\n        module: `list-${ctx[3]}`\n      }\n    });\n    return {\n      c() {\n        create_component(t0.$$.fragment);\n        t1 = space();\n      },\n      m(target, anchor) {\n        mount_component(t0, target, anchor);\n        insert(target, t1, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t0.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t0.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t0, detaching);\n        if (detaching)\n          detach(t1);\n      }\n    };\n  }\n  function create_each_block$g(ctx) {\n    let listitem;\n    let current;\n    listitem = new ListItem({\n      props: {\n        configuration: ctx[1],\n        $$slots: { default: [create_default_slot$h] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(listitem.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(listitem, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const listitem_changes = {};\n        if (dirty & 8192) {\n          listitem_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        listitem.$set(listitem_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(listitem.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(listitem.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(listitem, detaching);\n      }\n    };\n  }\n  function create_fragment$s(ctx) {\n    let div;\n    let title;\n    let t2;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[0],\n        $$slots: { default: [create_default_slot_1$h] },\n        $$scope: { ctx }\n      }\n    });\n    let each_value = ctx[4];\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$g(get_each_context$g(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        create_component(title.$$.fragment);\n        t2 = space();\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"style\", ctx[2]);\n        attr(div, \"class\", \"container svelte-1nti07n\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        mount_component(title, div, null);\n        append(div, t2);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        const title_changes = {};\n        if (dirty & 8192) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n        if (dirty & 10) {\n          each_value = ctx2[4];\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$g(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$g(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_component(title);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$p($$self, $$props, $$invalidate) {\n    let $currentLanguage;\n    let $globalConfiguration;\n    component_subscribe($$self, currentLanguage, ($$value) => $$invalidate(6, $currentLanguage = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(7, $globalConfiguration = $$value));\n    let { configuration: configuration$12 } = $$props;\n    const globalListProps = $globalConfiguration.list.listProps;\n    const globalListStyles = globalListProps.style;\n    const titleProps = $globalConfiguration.list.titleProps;\n    const listElementProps = $globalConfiguration.list.listElementProps;\n    const style = makeStylesFromConfiguration(globalListStyles, configuration$12.style);\n    const flowId = getFlowName();\n    const listItems = new Array(getListLength($currentLanguage, `list-${flowId}`)).fill(null);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(5, configuration$12 = $$props2.configuration);\n    };\n    return [titleProps, listElementProps, style, flowId, listItems, configuration$12];\n  }\n  class List extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$p, create_fragment$s, safe_not_equal, { configuration: 5 }, add_css$n);\n    }\n  }\n  const posthog = window.posthog || {};\n  const flowStart = () => {\n    posthog && posthog.capture && posthog.capture(\"flow-start\");\n  };\n  const visitedPage = (pathname, search) => {\n    posthog && posthog.capture && posthog.capture(\"visited-page\", { pathname, search });\n  };\n  const flowApproved = () => {\n    posthog && posthog.capture && posthog.capture(\"flow-approved\");\n  };\n  const flowDeclined = () => {\n    posthog && posthog.capture && posthog.capture(\"flow-declined\");\n  };\n  const flowResubmission = () => {\n    posthog && posthog.capture && posthog.capture(\"flow-resubmission\");\n  };\n  const flowUploadLoader = () => {\n    posthog && posthog.capture && posthog.capture(\"flow-upload-loader\");\n  };\n  const flowError = () => {\n    posthog && posthog.capture && posthog.capture(\"flow-error\");\n  };\n  const outerScopeContext = window.__blrn_context;\n  const isProd = window.__blrn_is_prod;\n  const endpoint = outerScopeContext && outerScopeContext.debug !== void 0 ? \"/upload-docs\" : \"/v2/enduser/verify\";\n  const local = outerScopeContext && outerScopeContext.local !== void 0;\n  const baseUrl = local ? \"http://localhost:3001\" : window.__blrn_api_url;\n  const docTypeMapping = {\n    documentBack: \"document-back\",\n    documentFront: \"document-front\",\n    selfie: \"face\"\n  };\n  const subscribe = () => {\n    window.addEventListener(\"message\", (e) => {\n      const event = e.data;\n      if (event.eventName === \"blrn_set_lang\") {\n        const language2 = event.config.lang;\n        currentLanguage.set(language2);\n      }\n    });\n  };\n  const sendFlowCompleteEvent = (verificationResponse) => {\n    const { status, idvResult } = verificationResponse;\n    const eventOptions = {\n      eventName: \"blrn_event\",\n      eventType: \"sync_flow_complete\",\n      details: { status, idvResult }\n    };\n    window.parent.postMessage(eventOptions, \"*\");\n  };\n  const sendVerificationUpdateEvent = (details, shouldExit = false) => {\n    const eventOptions = {\n      eventName: \"blrn_event\",\n      eventType: \"verification_update\",\n      shouldExit,\n      details\n    };\n    window.parent.postMessage(eventOptions, \"*\");\n  };\n  const sendNavigationUpdateEvent = () => {\n    let as = get_store_value(appState);\n    const eventOptions = {\n      eventName: \"blrn_event\",\n      eventType: \"navigation_update\",\n      details: {\n        currentIdx: as.currentStepIdx,\n        currentPage: as.currentPage,\n        previousPage: as.previousPage\n      }\n    };\n    window.parent.postMessage(eventOptions, \"*\");\n  };\n  const sendButtonClickEvent = (actionName, status, as, shouldExit = false) => {\n    const eventOptions = {\n      eventName: \"blrn_event\",\n      eventType: \"button_click\",\n      shouldExit,\n      details: {\n        actionName,\n        currentIdx: as.currentStepIdx,\n        currentPage: as.currentPage,\n        status\n      }\n    };\n    window.parent.postMessage(eventOptions, \"*\");\n  };\n  const generateParams = (data) => {\n    let params = { sync: true };\n    Object.keys(data).forEach((key) => {\n      const value = data[key];\n      params[key] = value;\n    });\n    return params;\n  };\n  const requestHeaders = (token) => ({\n    mode: \"no-cors\",\n    \"Content-Type\": \"application/json\",\n    Authorization: `Bearer ${token || \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbmRVc2VySWQiOiJhMzE5Yzk1ZC03ODY4LTQyNDAtOTQ5YS1mMDRmNDEwMzRlYzEiLCJjbGllbnRJZCI6IjJlOGJiZTJjLTJhYjktNGRkZi1iOWI5LTZlZWM5M2Q3YjQzMSIsImlhdCI6MTY1OTM1NDAwNywiZXhwIjoxODczODcyOTU4Njc0MTM4OCwiaXNzIjoiMmU4YmJlMmMtMmFiOS00ZGRmLWI5YjktNmVlYzkzZDdiNDMxIn0.aEaz4y7pBYG6Ia1Yb74cUOp0E0UsgtCItgLd2EXjo3U\"}`\n  });\n  const getVerificationStatus = async (configuration2, endUserId) => {\n    const verificationId = localStorage.getItem(\"verificationId\");\n    const response = await fetch(`${baseUrl}/v2/enduser/verify/status/${verificationId}`, {\n      headers: requestHeaders(configuration2.endUserInfo.token)\n    });\n    return response.json();\n  };\n  const verifyDocuments = async (data, endUserId, configuration2) => {\n    const documentsForUpload = [];\n    if (data.selfie) {\n      documentsForUpload.push({\n        type: docTypeMapping[\"selfie\"],\n        metadata: {},\n        pages: [{ base64: data.selfie }]\n      });\n    }\n    documentsForUpload.push(...data.docs);\n    const payload = {\n      endUserInfo: {\n        firstName: configuration2.endUserInfo.firstName,\n        lastName: configuration2.endUserInfo.lastName,\n        id: endUserId,\n        type: getFlowConfig(configuration2).userType,\n        phone: configuration2.endUserInfo.phone,\n        email: configuration2.endUserInfo.email,\n        language: configuration2.endUserInfo.language\n      },\n      documents: documentsForUpload,\n      clientId: outerScopeContext && outerScopeContext.b_cid || configuration2.clientId\n    };\n    if (!isProd) {\n      const devMocks = {\n        resultTime: outerScopeContext && outerScopeContext.mockResultTime || 7,\n        reasonCode: outerScopeContext && outerScopeContext.mockReasonCode,\n        code: outerScopeContext && outerScopeContext.mockCode,\n        idvResult: outerScopeContext && outerScopeContext.mockIdvResult || \"approved\"\n      };\n      payload.devMocks = devMocks;\n    }\n    const res = await fetch(baseUrl + endpoint, {\n      method: \"POST\",\n      headers: requestHeaders(configuration2.endUserInfo.token),\n      body: JSON.stringify(payload)\n    });\n    if (!res.ok) {\n      throw new Error(res.statusText);\n    }\n    const verificationRes = await res.json();\n    localStorage.setItem(\"verificationId\", verificationRes.verificationId);\n    return verificationRes;\n  };\n  function add_css$m(target) {\n    append_styles(target, \"svelte-1519gu5\", \".container.svelte-1519gu5{display:flex;flex-direction:column;height:100%;padding:var(--padding);position:var(--position);background:var(--background);line-height:var(--line-height);text-align:center}\");\n  }\n  function get_each_context$f(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[6] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_5$5(ctx) {\n    let div;\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[6].props }\n    });\n    iconbutton.$on(\"click\", ctx[4]);\n    return {\n      c() {\n        div = element(\"div\");\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        mount_component(iconbutton, div, null);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_component(iconbutton);\n      }\n    };\n  }\n  function create_if_block_4$8(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[6].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_3$f(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[6].props,\n        $$slots: { default: [create_default_slot_2$c] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 512) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$c(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"title\", module: \"welcome\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$g(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[6].props,\n        $$slots: { default: [create_default_slot_1$g] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 512) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$g(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: ctx[6].props.context || \"\",\n        module: \"welcome\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$i(ctx) {\n    let list;\n    let current;\n    list = new List({\n      props: { configuration: ctx[6].props }\n    });\n    return {\n      c() {\n        create_component(list.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(list, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(list.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(list.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(list, detaching);\n      }\n    };\n  }\n  function create_if_block$k(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[6].props,\n        $$slots: { default: [create_default_slot$g] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[5]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 512) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot$g(ctx) {\n    let t0;\n    let t1;\n    let current;\n    t0 = new T({\n      props: { key: \"button\", module: \"welcome\" }\n    });\n    return {\n      c() {\n        create_component(t0.$$.fragment);\n        t1 = space();\n      },\n      m(target, anchor) {\n        mount_component(t0, target, anchor);\n        insert(target, t1, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t0.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t0.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t0, detaching);\n        if (detaching)\n          detach(t1);\n      }\n    };\n  }\n  function create_each_block$f(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let t4;\n    let if_block5_anchor;\n    let current;\n    let if_block0 = ctx[6].type === Elements.IconButton && create_if_block_5$5(ctx);\n    let if_block1 = ctx[6].type === Elements.Image && create_if_block_4$8(ctx);\n    let if_block2 = ctx[6].type === Elements.Title && create_if_block_3$f(ctx);\n    let if_block3 = ctx[6].type === Elements.Paragraph && create_if_block_2$g(ctx);\n    let if_block4 = ctx[6].type === Elements.List && create_if_block_1$i(ctx);\n    let if_block5 = ctx[6].type === Elements.Button && create_if_block$k(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        t4 = space();\n        if (if_block5)\n          if_block5.c();\n        if_block5_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, t4, anchor);\n        if (if_block5)\n          if_block5.m(target, anchor);\n        insert(target, if_block5_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[6].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.Image)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.List)\n          if_block4.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.Button)\n          if_block5.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        transition_in(if_block5);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        transition_out(if_block5);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(t4);\n        if (if_block5)\n          if_block5.d(detaching);\n        if (detaching)\n          detach(if_block5_anchor);\n      }\n    };\n  }\n  function create_fragment$r(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[2].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$f(get_each_context$f(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-1519gu5\");\n        attr(div, \"style\", ctx[3]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 7) {\n          each_value = ctx2[2].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$f(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$f(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$o($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $appState;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    component_subscribe($$self, appState, ($$value) => $$invalidate(1, $appState = $$value));\n    const step = $configuration.steps[Steps.Welcome];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const click_handler = () => {\n      sendButtonClickEvent(\"close\", { status: \"document_collection\" }, $appState, true);\n      addCloseToURLParams();\n    };\n    const click_handler_1 = () => {\n      flowStart();\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    return [$configuration, $appState, step, style, click_handler, click_handler_1];\n  }\n  class Welcome extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$o, create_fragment$r, safe_not_equal, {}, add_css$m);\n    }\n  }\n  function create_fragment$q(ctx) {\n    let svg;\n    let rect0;\n    let rect1;\n    let path;\n    return {\n      c() {\n        svg = svg_element(\"svg\");\n        rect0 = svg_element(\"rect\");\n        rect1 = svg_element(\"rect\");\n        path = svg_element(\"path\");\n        attr(rect0, \"x\", \"3\");\n        attr(rect0, \"y\", \"3\");\n        attr(rect0, \"width\", \"35\");\n        attr(rect0, \"height\", \"35\");\n        attr(rect0, \"rx\", \"17.5\");\n        attr(rect0, \"fill\", \"#007AFF\");\n        attr(rect1, \"x\", \"3\");\n        attr(rect1, \"y\", \"3\");\n        attr(rect1, \"width\", \"35\");\n        attr(rect1, \"height\", \"35\");\n        attr(rect1, \"rx\", \"17.5\");\n        attr(rect1, \"stroke\", \"#007AFF\");\n        attr(rect1, \"stroke-opacity\", \"0.2\");\n        attr(rect1, \"stroke-width\", \"5\");\n        attr(path, \"fill-rule\", \"evenodd\");\n        attr(path, \"clip-rule\", \"evenodd\");\n        attr(path, \"d\", \"M12.8167 16.8333C12.8167 15.3974 13.9807 14.2333 15.4167 14.2333H25.5833C27.0193 14.2333 28.1833 15.3974 28.1833 16.8333V24.1667C28.1833 25.6026 27.0193 26.7667 25.5833 26.7667H15.4167C13.9807 26.7667 12.8167 25.6026 12.8167 24.1667V16.8333ZM15.4167 15.4333C14.6435 15.4333 14.0167 16.0601 14.0167 16.8333V24.1667C14.0167 24.9399 14.6435 25.5667 15.4167 25.5667H25.5833C26.3565 25.5667 26.9833 24.9399 26.9833 24.1667V16.8333C26.9833 16.0601 26.3565 15.4333 25.5833 15.4333H15.4167ZM16.0042 19.4375C16.0042 18.3237 16.907 17.4208 18.0208 17.4208C19.1346 17.4208 20.0375 18.3237 20.0375 19.4375C20.0375 19.9312 19.8601 20.3834 19.5656 20.734C20.2785 21.2255 20.7458 22.0477 20.7458 22.9792C20.7458 23.3105 20.4772 23.5792 20.1458 23.5792C19.8144 23.5792 19.5458 23.3105 19.5458 22.9792C19.5458 22.1369 18.8631 21.4542 18.0208 21.4542C17.1786 21.4542 16.4958 22.1369 16.4958 22.9792C16.4958 23.3105 16.2272 23.5792 15.8958 23.5792C15.5644 23.5792 15.2958 23.3105 15.2958 22.9792C15.2958 22.0477 15.7631 21.2255 16.4761 20.734C16.1815 20.3834 16.0042 19.9312 16.0042 19.4375ZM18.0208 18.6208C17.5698 18.6208 17.2042 18.9865 17.2042 19.4375C17.2042 19.8885 17.5698 20.2542 18.0208 20.2542C18.4719 20.2542 18.8375 19.8885 18.8375 19.4375C18.8375 18.9865 18.4719 18.6208 18.0208 18.6208ZM21.3166 19.0833C21.3166 18.752 21.5853 18.4833 21.9166 18.4833H24.75C25.0814 18.4833 25.35 18.752 25.35 19.0833C25.35 19.4147 25.0814 19.6833 24.75 19.6833H21.9166C21.5853 19.6833 21.3166 19.4147 21.3166 19.0833ZM22.625 21.3167C22.2936 21.3167 22.025 21.5853 22.025 21.9167C22.025 22.248 22.2936 22.5167 22.625 22.5167H24.75C25.0814 22.5167 25.35 22.248 25.35 21.9167C25.35 21.5853 25.0814 21.3167 24.75 21.3167H22.625Z\");\n        attr(path, \"fill\", \"white\");\n        attr(svg, \"width\", \"41\");\n        attr(svg, \"height\", \"41\");\n        attr(svg, \"viewBox\", \"0 0 41 41\");\n        attr(svg, \"fill\", \"none\");\n        attr(svg, \"xmlns\", \"http://www.w3.org/2000/svg\");\n      },\n      m(target, anchor) {\n        insert(target, svg, anchor);\n        append(svg, rect0);\n        append(svg, rect1);\n        append(svg, path);\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(svg);\n      }\n    };\n  }\n  class Card extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, null, create_fragment$q, safe_not_equal, {});\n    }\n  }\n  function create_fragment$p(ctx) {\n    let svg;\n    let path;\n    let svg_levels = [\n      { width: \"11\" },\n      { height: \"14\" },\n      { viewBox: \"0 0 11 14\" },\n      ctx[0],\n      { xmlns: \"http://www.w3.org/2000/svg\" }\n    ];\n    let svg_data = {};\n    for (let i = 0; i < svg_levels.length; i += 1) {\n      svg_data = assign(svg_data, svg_levels[i]);\n    }\n    return {\n      c() {\n        svg = svg_element(\"svg\");\n        path = svg_element(\"path\");\n        attr(path, \"fill\", \"current\");\n        attr(path, \"d\", \"M2 0H8.66667C9.1971 0 9.70581 0.210714 10.0809 0.585786C10.456 0.960859 10.6667 1.46957 10.6667 2V11.3333C10.6667 11.8638 10.456 12.3725 10.0809 12.7475C9.70581 13.1226 9.1971 13.3333 8.66667 13.3333H2C1.46957 13.3333 0.960859 13.1226 0.585786 12.7475C0.210714 12.3725 0 11.8638 0 11.3333L0 2C0 1.46957 0.210714 0.960859 0.585786 0.585786C0.960859 0.210714 1.46957 0 2 0V0ZM7.33333 1.33333C7.15652 1.33333 6.98695 1.40357 6.86193 1.5286C6.7369 1.65362 6.66667 1.82319 6.66667 2C6.66667 2.17681 6.7369 2.34638 6.86193 2.4714C6.98695 2.59643 7.15652 2.66667 7.33333 2.66667H8.66667C8.84348 2.66667 9.01305 2.59643 9.13807 2.4714C9.26309 2.34638 9.33333 2.17681 9.33333 2C9.33333 1.82319 9.26309 1.65362 9.13807 1.5286C9.01305 1.40357 8.84348 1.33333 8.66667 1.33333H7.33333ZM2 6C1.82319 6 1.65362 6.07024 1.5286 6.19526C1.40357 6.32029 1.33333 6.48986 1.33333 6.66667C1.33333 6.84348 1.40357 7.01305 1.5286 7.13807C1.65362 7.2631 1.82319 7.33333 2 7.33333H8.66667C8.84348 7.33333 9.01305 7.2631 9.13807 7.13807C9.26309 7.01305 9.33333 6.84348 9.33333 6.66667C9.33333 6.48986 9.26309 6.32029 9.13807 6.19526C9.01305 6.07024 8.84348 6 8.66667 6H2ZM2 8C1.82319 8 1.65362 8.07024 1.5286 8.19526C1.40357 8.32029 1.33333 8.48986 1.33333 8.66667C1.33333 8.84348 1.40357 9.01305 1.5286 9.13807C1.65362 9.2631 1.82319 9.33333 2 9.33333H8.66667C8.84348 9.33333 9.01305 9.2631 9.13807 9.13807C9.26309 9.01305 9.33333 8.84348 9.33333 8.66667C9.33333 8.48986 9.26309 8.32029 9.13807 8.19526C9.01305 8.07024 8.84348 8 8.66667 8H2ZM2 10C1.82319 10 1.65362 10.0702 1.5286 10.1953C1.40357 10.3203 1.33333 10.4899 1.33333 10.6667C1.33333 10.8435 1.40357 11.013 1.5286 11.1381C1.65362 11.2631 1.82319 11.3333 2 11.3333H5.33333C5.51014 11.3333 5.67971 11.2631 5.80474 11.1381C5.92976 11.013 6 10.8435 6 10.6667C6 10.4899 5.92976 10.3203 5.80474 10.1953C5.67971 10.0702 5.51014 10 5.33333 10H2ZM7.33333 3.33333C7.15652 3.33333 6.98695 3.40357 6.86193 3.5286C6.7369 3.65362 6.66667 3.82319 6.66667 4C6.66667 4.17681 6.7369 4.34638 6.86193 4.4714C6.98695 4.59643 7.15652 4.66667 7.33333 4.66667H8.66667C8.84348 4.66667 9.01305 4.59643 9.13807 4.4714C9.26309 4.34638 9.33333 4.17681 9.33333 4C9.33333 3.82319 9.26309 3.65362 9.13807 3.5286C9.01305 3.40357 8.84348 3.33333 8.66667 3.33333H7.33333ZM2 1.33333C1.82319 1.33333 1.65362 1.40357 1.5286 1.5286C1.40357 1.65362 1.33333 1.82319 1.33333 2V4C1.33333 4.17681 1.40357 4.34638 1.5286 4.4714C1.65362 4.59643 1.82319 4.66667 2 4.66667H5.33333C5.51014 4.66667 5.67971 4.59643 5.80474 4.4714C5.92976 4.34638 6 4.17681 6 4V2C6 1.82319 5.92976 1.65362 5.80474 1.5286C5.67971 1.40357 5.51014 1.33333 5.33333 1.33333H2Z\");\n        set_svg_attributes(svg, svg_data);\n      },\n      m(target, anchor) {\n        insert(target, svg, anchor);\n        append(svg, path);\n      },\n      p(ctx2, [dirty]) {\n        set_svg_attributes(svg, svg_data = get_spread_update(svg_levels, [\n          { width: \"11\" },\n          { height: \"14\" },\n          { viewBox: \"0 0 11 14\" },\n          dirty & 1 && ctx2[0],\n          { xmlns: \"http://www.w3.org/2000/svg\" }\n        ]));\n      },\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(svg);\n      }\n    };\n  }\n  function instance$n($$self, $$props, $$invalidate) {\n    $$self.$$set = ($$new_props) => {\n      $$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));\n    };\n    $$props = exclude_internal_props($$props);\n    return [$$props];\n  }\n  class Passport extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$n, create_fragment$p, safe_not_equal, {});\n    }\n  }\n  function create_fragment$o(ctx) {\n    let svg;\n    let rect0;\n    let rect1;\n    let path;\n    return {\n      c() {\n        svg = svg_element(\"svg\");\n        rect0 = svg_element(\"rect\");\n        rect1 = svg_element(\"rect\");\n        path = svg_element(\"path\");\n        attr(rect0, \"x\", \"3\");\n        attr(rect0, \"y\", \"3\");\n        attr(rect0, \"width\", \"35\");\n        attr(rect0, \"height\", \"35\");\n        attr(rect0, \"rx\", \"17.5\");\n        attr(rect0, \"fill\", \"#007AFF\");\n        attr(rect1, \"x\", \"3\");\n        attr(rect1, \"y\", \"3\");\n        attr(rect1, \"width\", \"35\");\n        attr(rect1, \"height\", \"35\");\n        attr(rect1, \"rx\", \"17.5\");\n        attr(rect1, \"stroke\", \"#007AFF\");\n        attr(rect1, \"stroke-opacity\", \"0.2\");\n        attr(rect1, \"stroke-width\", \"5\");\n        attr(path, \"fill-rule\", \"evenodd\");\n        attr(path, \"clip-rule\", \"evenodd\");\n        attr(path, \"d\", \"M15.6655 15.7143C15.7693 15.2691 16.1661 14.9542 16.6232 14.9542H24.4164C24.8769 14.9542 25.2758 15.2737 25.3761 15.7232C25.3785 15.7336 25.3811 15.7439 25.3839 15.7542L26.2568 18.8707C26.3024 19.0337 26.4148 19.1699 26.5662 19.2456L26.8354 19.3802C27.4368 19.6809 27.8166 20.2955 27.8166 20.9678V23.8542C27.8166 24.1786 27.5536 24.4417 27.2291 24.4417H26.4387C26.1073 24.4417 25.8387 24.7103 25.8387 25.0417V25.4375C25.8387 25.9806 25.3984 26.4208 24.8554 26.4208C24.3107 26.4208 23.8708 25.9803 23.8708 25.4375V25.0417C23.8708 24.7103 23.6021 24.4417 23.2708 24.4417H17.7291C17.3977 24.4417 17.1291 24.7103 17.1291 25.0417V25.4376C17.1291 25.9806 16.6889 26.4208 16.1459 26.4208C15.6029 26.4208 15.1627 25.9806 15.1627 25.4376V25.0417C15.1627 24.7103 14.894 24.4417 14.5627 24.4417H13.7708C13.4463 24.4417 13.1833 24.1786 13.1833 23.8542V20.9684C13.1833 20.2959 13.5634 19.6811 14.165 19.3805L14.435 19.2457C14.5844 19.171 14.6959 19.0375 14.7428 18.8771L15.6571 15.7463C15.6602 15.7357 15.663 15.725 15.6655 15.7143ZM16.6232 13.7542C15.6142 13.7542 14.7376 14.4453 14.501 15.4245L13.6643 18.2892L13.6287 18.307C12.6204 18.8108 11.9833 19.8412 11.9833 20.9684V23.8542C11.9833 24.8414 12.7836 25.6417 13.7708 25.6417H13.9721C14.075 26.7517 15.0089 27.6208 16.1459 27.6208C17.2828 27.6208 18.2168 26.7517 18.3197 25.6417H22.6802C22.7832 26.752 23.7175 27.6208 24.8554 27.6208C25.9923 27.6208 26.9263 26.7518 27.0293 25.6417H27.2291C28.2163 25.6417 29.0166 24.8414 29.0166 23.8542V20.9678C29.0166 19.841 28.38 18.8109 27.3721 18.3069L27.3406 18.2912L26.5435 15.4448C26.3145 14.4558 25.4331 13.7542 24.4164 13.7542H16.6232ZM17.3332 22.0729C17.3332 22.6194 16.8901 23.0625 16.3436 23.0625C15.7971 23.0625 15.354 22.6194 15.354 22.0729C15.354 21.5264 15.7971 21.0833 16.3436 21.0833C16.8901 21.0833 17.3332 21.5264 17.3332 22.0729ZM24.6561 23.0625C25.2026 23.0625 25.6457 22.6194 25.6457 22.0729C25.6457 21.5264 25.2026 21.0833 24.6561 21.0833C24.1096 21.0833 23.6665 21.5264 23.6665 22.0729C23.6665 22.6194 24.1096 23.0625 24.6561 23.0625ZM16.9375 18.5042C16.6061 18.5042 16.3375 18.7728 16.3375 19.1042C16.3375 19.4355 16.6061 19.7042 16.9375 19.7042H24.0625C24.3939 19.7042 24.6625 19.4355 24.6625 19.1042C24.6625 18.7728 24.3939 18.5042 24.0625 18.5042H16.9375Z\");\n        attr(path, \"fill\", \"white\");\n        attr(svg, \"width\", \"41\");\n        attr(svg, \"height\", \"41\");\n        attr(svg, \"viewBox\", \"0 0 41 41\");\n        attr(svg, \"fill\", \"none\");\n        attr(svg, \"xmlns\", \"http://www.w3.org/2000/svg\");\n      },\n      m(target, anchor) {\n        insert(target, svg, anchor);\n        append(svg, rect0);\n        append(svg, rect1);\n        append(svg, path);\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(svg);\n      }\n    };\n  }\n  class License extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, null, create_fragment$o, safe_not_equal, {});\n    }\n  }\n  function create_fragment$n(ctx) {\n    let svg;\n    let rect0;\n    let rect1;\n    let path;\n    return {\n      c() {\n        svg = svg_element(\"svg\");\n        rect0 = svg_element(\"rect\");\n        rect1 = svg_element(\"rect\");\n        path = svg_element(\"path\");\n        attr(rect0, \"x\", \"3\");\n        attr(rect0, \"y\", \"3\");\n        attr(rect0, \"width\", \"35\");\n        attr(rect0, \"height\", \"35\");\n        attr(rect0, \"rx\", \"17.5\");\n        attr(rect0, \"fill\", \"#007AFF\");\n        attr(rect1, \"x\", \"3\");\n        attr(rect1, \"y\", \"3\");\n        attr(rect1, \"width\", \"35\");\n        attr(rect1, \"height\", \"35\");\n        attr(rect1, \"rx\", \"17.5\");\n        attr(rect1, \"stroke\", \"#007AFF\");\n        attr(rect1, \"stroke-opacity\", \"0.2\");\n        attr(rect1, \"stroke-width\", \"5\");\n        attr(path, \"fill-rule\", \"evenodd\");\n        attr(path, \"clip-rule\", \"evenodd\");\n        attr(path, \"d\", \"M16 13H25C26.1046 13 27 13.8954 27 15V26C27 27.1046 26.1046 28 25 28H16C14.8954 28 14 27.1046 14 26V15C14 13.8954 14.8954 13 16 13ZM13 15C13 13.3431 14.3431 12 16 12H25C26.6569 12 28 13.3431 28 15V26C28 27.6569 26.6569 29 25 29H16C14.3431 29 13 27.6569 13 26V15ZM19.3626 17.7811C19.5921 17.3986 19.8307 17.1657 20.05 17.0363V20.05H18.7152C18.7773 19.1333 19.0253 18.3432 19.3626 17.7811ZM19.0297 16.7251C18.3606 17.4506 17.8964 18.6568 17.8134 20.05H16.4747C16.6429 18.5288 17.6535 17.2615 19.0297 16.7251ZM19.0297 24.2749C18.3606 23.5494 17.8964 22.3432 17.8134 20.95H16.4747C16.6429 22.4712 17.6535 23.7385 19.0297 24.2749ZM19.3626 23.2189C19.5921 23.6014 19.8307 23.8343 20.05 23.9637V20.95H18.7152C18.7773 21.8667 19.0253 22.6568 19.3626 23.2189ZM24.5253 20.95C24.3571 22.4711 23.3465 23.7384 21.9704 24.2748C22.6395 23.5493 23.1037 22.3431 23.1867 20.95H24.5253ZM21.6375 23.2189C21.9748 22.6568 22.2228 21.8667 22.2849 20.95H20.95L20.95 23.9638C21.1693 23.8344 21.408 23.6015 21.6375 23.2189ZM24.5253 20.05H23.1867C23.1037 18.6569 22.6395 17.4507 21.9704 16.7252C23.3465 17.2616 24.3571 18.5289 24.5253 20.05ZM21.6375 17.7811C21.408 17.3985 21.1693 17.1656 20.95 17.0362L20.95 20.05H22.2849C22.2228 19.1333 21.9748 18.3432 21.6375 17.7811ZM20.5 15.55C17.7662 15.55 15.55 17.7662 15.55 20.5C15.55 23.2338 17.7662 25.45 20.5 25.45C23.2338 25.45 25.45 23.2338 25.45 20.5C25.45 17.7662 23.2338 15.55 20.5 15.55Z\");\n        attr(path, \"fill\", \"white\");\n        attr(svg, \"width\", \"41\");\n        attr(svg, \"height\", \"41\");\n        attr(svg, \"viewBox\", \"0 0 41 41\");\n        attr(svg, \"fill\", \"none\");\n        attr(svg, \"xmlns\", \"http://www.w3.org/2000/svg\");\n      },\n      m(target, anchor) {\n        insert(target, svg, anchor);\n        append(svg, rect0);\n        append(svg, rect1);\n        append(svg, path);\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(svg);\n      }\n    };\n  }\n  class PassportTwo extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, null, create_fragment$n, safe_not_equal, {});\n    }\n  }\n  function add_css$l(target) {\n    append_styles(target, \"svelte-12gmroc\", \".icon.svelte-12gmroc{display:contents;fill:var(--fill);color:var(--fill)}.icon.active.svelte-12gmroc{fill:var(--active-fill);color:var(--active-fill)}\");\n  }\n  function create_fragment$m(ctx) {\n    let div;\n    let switch_instance;\n    let current;\n    var switch_value = ctx[4];\n    function switch_props(ctx2) {\n      return {\n        props: {\n          height: ctx2[1],\n          width: ctx2[0],\n          style: \"transition: fill 0.3s\"\n        }\n      };\n    }\n    if (switch_value) {\n      switch_instance = construct_svelte_component(switch_value, switch_props(ctx));\n    }\n    return {\n      c() {\n        div = element(\"div\");\n        if (switch_instance)\n          create_component(switch_instance.$$.fragment);\n        attr(div, \"style\", ctx[3]);\n        attr(div, \"class\", \"icon svelte-12gmroc\");\n        toggle_class(div, \"active\", ctx[2]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (switch_instance)\n          mount_component(switch_instance, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        const switch_instance_changes = {};\n        if (dirty & 2)\n          switch_instance_changes.height = ctx2[1];\n        if (dirty & 1)\n          switch_instance_changes.width = ctx2[0];\n        if (switch_value !== (switch_value = ctx2[4])) {\n          if (switch_instance) {\n            group_outros();\n            const old_component = switch_instance;\n            transition_out(old_component.$$.fragment, 1, 0, () => {\n              destroy_component(old_component, 1);\n            });\n            check_outros();\n          }\n          if (switch_value) {\n            switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));\n            create_component(switch_instance.$$.fragment);\n            transition_in(switch_instance.$$.fragment, 1);\n            mount_component(switch_instance, div, null);\n          } else {\n            switch_instance = null;\n          }\n        } else if (switch_value) {\n          switch_instance.$set(switch_instance_changes);\n        }\n        if (!current || dirty & 4) {\n          toggle_class(div, \"active\", ctx2[2]);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        if (switch_instance)\n          transition_in(switch_instance.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        if (switch_instance)\n          transition_out(switch_instance.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (switch_instance)\n          destroy_component(switch_instance);\n      }\n    };\n  }\n  function instance$m($$self, $$props, $$invalidate) {\n    let icons = { Card, Passport, License, PassportTwo };\n    let { name = \"Card\" } = $$props;\n    let { width = 16 } = $$props;\n    let { height = 16 } = $$props;\n    let { active: active2 = false } = $$props;\n    let { configuration: configuration2 } = $$props;\n    const style = makesLocalStyles(configuration2.style);\n    const icon = icons[name];\n    $$self.$$set = ($$props2) => {\n      if (\"name\" in $$props2)\n        $$invalidate(5, name = $$props2.name);\n      if (\"width\" in $$props2)\n        $$invalidate(0, width = $$props2.width);\n      if (\"height\" in $$props2)\n        $$invalidate(1, height = $$props2.height);\n      if (\"active\" in $$props2)\n        $$invalidate(2, active2 = $$props2.active);\n      if (\"configuration\" in $$props2)\n        $$invalidate(6, configuration2 = $$props2.configuration);\n    };\n    return [width, height, active2, style, icon, name, configuration2];\n  }\n  class Icon extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$m, create_fragment$m, safe_not_equal, {\n        name: 5,\n        width: 0,\n        height: 1,\n        active: 2,\n        configuration: 6\n      }, add_css$l);\n    }\n  }\n  /*!\n   * Compressor.js v1.1.1\n   * https://fengyuanchen.github.io/compressorjs\n   *\n   * Copyright 2018-present Chen Fengyuan\n   * Released under the MIT license\n   *\n   * Date: 2021-10-05T02:32:40.212Z\n   */\n  function ownKeys(object, enumerableOnly) {\n    var keys = Object.keys(object);\n    if (Object.getOwnPropertySymbols) {\n      var symbols = Object.getOwnPropertySymbols(object);\n      if (enumerableOnly) {\n        symbols = symbols.filter(function(sym) {\n          return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n        });\n      }\n      keys.push.apply(keys, symbols);\n    }\n    return keys;\n  }\n  function _objectSpread2(target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i] != null ? arguments[i] : {};\n      if (i % 2) {\n        ownKeys(Object(source), true).forEach(function(key) {\n          _defineProperty(target, key, source[key]);\n        });\n      } else if (Object.getOwnPropertyDescriptors) {\n        Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n      } else {\n        ownKeys(Object(source)).forEach(function(key) {\n          Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n        });\n      }\n    }\n    return target;\n  }\n  function _classCallCheck(instance2, Constructor) {\n    if (!(instance2 instanceof Constructor)) {\n      throw new TypeError(\"Cannot call a class as a function\");\n    }\n  }\n  function _defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var descriptor = props[i];\n      descriptor.enumerable = descriptor.enumerable || false;\n      descriptor.configurable = true;\n      if (\"value\" in descriptor)\n        descriptor.writable = true;\n      Object.defineProperty(target, descriptor.key, descriptor);\n    }\n  }\n  function _createClass(Constructor, protoProps, staticProps) {\n    if (protoProps)\n      _defineProperties(Constructor.prototype, protoProps);\n    if (staticProps)\n      _defineProperties(Constructor, staticProps);\n    return Constructor;\n  }\n  function _defineProperty(obj, key, value) {\n    if (key in obj) {\n      Object.defineProperty(obj, key, {\n        value,\n        enumerable: true,\n        configurable: true,\n        writable: true\n      });\n    } else {\n      obj[key] = value;\n    }\n    return obj;\n  }\n  function _extends() {\n    _extends = Object.assign || function(target) {\n      for (var i = 1; i < arguments.length; i++) {\n        var source = arguments[i];\n        for (var key in source) {\n          if (Object.prototype.hasOwnProperty.call(source, key)) {\n            target[key] = source[key];\n          }\n        }\n      }\n      return target;\n    };\n    return _extends.apply(this, arguments);\n  }\n  var canvasToBlob = { exports: {} };\n  (function(module2) {\n    if (typeof window === \"undefined\") {\n      return;\n    }\n    (function(window2) {\n      var CanvasPrototype = window2.HTMLCanvasElement && window2.HTMLCanvasElement.prototype;\n      var hasBlobConstructor = window2.Blob && function() {\n        try {\n          return Boolean(new Blob());\n        } catch (e) {\n          return false;\n        }\n      }();\n      var hasArrayBufferViewSupport = hasBlobConstructor && window2.Uint8Array && function() {\n        try {\n          return new Blob([new Uint8Array(100)]).size === 100;\n        } catch (e) {\n          return false;\n        }\n      }();\n      var BlobBuilder = window2.BlobBuilder || window2.WebKitBlobBuilder || window2.MozBlobBuilder || window2.MSBlobBuilder;\n      var dataURIPattern = /^data:((.*?)(;charset=.*?)?)(;base64)?,/;\n      var dataURLtoBlob = (hasBlobConstructor || BlobBuilder) && window2.atob && window2.ArrayBuffer && window2.Uint8Array && function(dataURI) {\n        var matches, mediaType, isBase64, dataString, byteString, arrayBuffer, intArray, i, bb;\n        matches = dataURI.match(dataURIPattern);\n        if (!matches) {\n          throw new Error(\"invalid data URI\");\n        }\n        mediaType = matches[2] ? matches[1] : \"text/plain\" + (matches[3] || \";charset=US-ASCII\");\n        isBase64 = !!matches[4];\n        dataString = dataURI.slice(matches[0].length);\n        if (isBase64) {\n          byteString = atob(dataString);\n        } else {\n          byteString = decodeURIComponent(dataString);\n        }\n        arrayBuffer = new ArrayBuffer(byteString.length);\n        intArray = new Uint8Array(arrayBuffer);\n        for (i = 0; i < byteString.length; i += 1) {\n          intArray[i] = byteString.charCodeAt(i);\n        }\n        if (hasBlobConstructor) {\n          return new Blob([hasArrayBufferViewSupport ? intArray : arrayBuffer], {\n            type: mediaType\n          });\n        }\n        bb = new BlobBuilder();\n        bb.append(arrayBuffer);\n        return bb.getBlob(mediaType);\n      };\n      if (window2.HTMLCanvasElement && !CanvasPrototype.toBlob) {\n        if (CanvasPrototype.mozGetAsFile) {\n          CanvasPrototype.toBlob = function(callback, type, quality) {\n            var self2 = this;\n            setTimeout(function() {\n              if (quality && CanvasPrototype.toDataURL && dataURLtoBlob) {\n                callback(dataURLtoBlob(self2.toDataURL(type, quality)));\n              } else {\n                callback(self2.mozGetAsFile(\"blob\", type));\n              }\n            });\n          };\n        } else if (CanvasPrototype.toDataURL && dataURLtoBlob) {\n          if (CanvasPrototype.msToBlob) {\n            CanvasPrototype.toBlob = function(callback, type, quality) {\n              var self2 = this;\n              setTimeout(function() {\n                if ((type && type !== \"image/png\" || quality) && CanvasPrototype.toDataURL && dataURLtoBlob) {\n                  callback(dataURLtoBlob(self2.toDataURL(type, quality)));\n                } else {\n                  callback(self2.msToBlob(type));\n                }\n              });\n            };\n          } else {\n            CanvasPrototype.toBlob = function(callback, type, quality) {\n              var self2 = this;\n              setTimeout(function() {\n                callback(dataURLtoBlob(self2.toDataURL(type, quality)));\n              });\n            };\n          }\n        }\n      }\n      if (module2.exports) {\n        module2.exports = dataURLtoBlob;\n      } else {\n        window2.dataURLtoBlob = dataURLtoBlob;\n      }\n    })(window);\n  })(canvasToBlob);\n  var toBlob = canvasToBlob.exports;\n  var isBlob = function isBlob2(value) {\n    if (typeof Blob === \"undefined\") {\n      return false;\n    }\n    return value instanceof Blob || Object.prototype.toString.call(value) === \"[object Blob]\";\n  };\n  var DEFAULTS = {\n    strict: true,\n    checkOrientation: true,\n    maxWidth: Infinity,\n    maxHeight: Infinity,\n    minWidth: 0,\n    minHeight: 0,\n    width: void 0,\n    height: void 0,\n    resize: \"none\",\n    quality: 0.8,\n    mimeType: \"auto\",\n    convertTypes: [\"image/png\"],\n    convertSize: 5e6,\n    beforeDraw: null,\n    drew: null,\n    success: null,\n    error: null\n  };\n  var IS_BROWSER = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n  var WINDOW = IS_BROWSER ? window : {};\n  var isPositiveNumber = function isPositiveNumber2(value) {\n    return value > 0 && value < Infinity;\n  };\n  var slice = Array.prototype.slice;\n  function toArray(value) {\n    return Array.from ? Array.from(value) : slice.call(value);\n  }\n  var REGEXP_IMAGE_TYPE = /^image\\/.+$/;\n  function isImageType(value) {\n    return REGEXP_IMAGE_TYPE.test(value);\n  }\n  function imageTypeToExtension(value) {\n    var extension = isImageType(value) ? value.substr(6) : \"\";\n    if (extension === \"jpeg\") {\n      extension = \"jpg\";\n    }\n    return \".\".concat(extension);\n  }\n  var fromCharCode = String.fromCharCode;\n  function getStringFromCharCode(dataView, start, length) {\n    var str = \"\";\n    var i;\n    length += start;\n    for (i = start; i < length; i += 1) {\n      str += fromCharCode(dataView.getUint8(i));\n    }\n    return str;\n  }\n  var btoa = WINDOW.btoa;\n  function arrayBufferToDataURL(arrayBuffer, mimeType) {\n    var chunks = [];\n    var chunkSize = 8192;\n    var uint8 = new Uint8Array(arrayBuffer);\n    while (uint8.length > 0) {\n      chunks.push(fromCharCode.apply(null, toArray(uint8.subarray(0, chunkSize))));\n      uint8 = uint8.subarray(chunkSize);\n    }\n    return \"data:\".concat(mimeType, \";base64,\").concat(btoa(chunks.join(\"\")));\n  }\n  function resetAndGetOrientation(arrayBuffer) {\n    var dataView = new DataView(arrayBuffer);\n    var orientation;\n    try {\n      var littleEndian;\n      var app1Start;\n      var ifdStart;\n      if (dataView.getUint8(0) === 255 && dataView.getUint8(1) === 216) {\n        var length = dataView.byteLength;\n        var offset = 2;\n        while (offset + 1 < length) {\n          if (dataView.getUint8(offset) === 255 && dataView.getUint8(offset + 1) === 225) {\n            app1Start = offset;\n            break;\n          }\n          offset += 1;\n        }\n      }\n      if (app1Start) {\n        var exifIDCode = app1Start + 4;\n        var tiffOffset = app1Start + 10;\n        if (getStringFromCharCode(dataView, exifIDCode, 4) === \"Exif\") {\n          var endianness = dataView.getUint16(tiffOffset);\n          littleEndian = endianness === 18761;\n          if (littleEndian || endianness === 19789) {\n            if (dataView.getUint16(tiffOffset + 2, littleEndian) === 42) {\n              var firstIFDOffset = dataView.getUint32(tiffOffset + 4, littleEndian);\n              if (firstIFDOffset >= 8) {\n                ifdStart = tiffOffset + firstIFDOffset;\n              }\n            }\n          }\n        }\n      }\n      if (ifdStart) {\n        var _length = dataView.getUint16(ifdStart, littleEndian);\n        var _offset;\n        var i;\n        for (i = 0; i < _length; i += 1) {\n          _offset = ifdStart + i * 12 + 2;\n          if (dataView.getUint16(_offset, littleEndian) === 274) {\n            _offset += 8;\n            orientation = dataView.getUint16(_offset, littleEndian);\n            dataView.setUint16(_offset, 1, littleEndian);\n            break;\n          }\n        }\n      }\n    } catch (e) {\n      orientation = 1;\n    }\n    return orientation;\n  }\n  function parseOrientation(orientation) {\n    var rotate = 0;\n    var scaleX = 1;\n    var scaleY = 1;\n    switch (orientation) {\n      case 2:\n        scaleX = -1;\n        break;\n      case 3:\n        rotate = -180;\n        break;\n      case 4:\n        scaleY = -1;\n        break;\n      case 5:\n        rotate = 90;\n        scaleY = -1;\n        break;\n      case 6:\n        rotate = 90;\n        break;\n      case 7:\n        rotate = 90;\n        scaleX = -1;\n        break;\n      case 8:\n        rotate = -90;\n        break;\n    }\n    return {\n      rotate,\n      scaleX,\n      scaleY\n    };\n  }\n  var REGEXP_DECIMALS = /\\.\\d*(?:0|9){12}\\d*$/;\n  function normalizeDecimalNumber(value) {\n    var times = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;\n    return REGEXP_DECIMALS.test(value) ? Math.round(value * times) / times : value;\n  }\n  function getAdjustedSizes(_ref) {\n    var aspectRatio = _ref.aspectRatio, height = _ref.height, width = _ref.width;\n    var type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"none\";\n    var isValidWidth = isPositiveNumber(width);\n    var isValidHeight = isPositiveNumber(height);\n    if (isValidWidth && isValidHeight) {\n      var adjustedWidth = height * aspectRatio;\n      if ((type === \"contain\" || type === \"none\") && adjustedWidth > width || type === \"cover\" && adjustedWidth < width) {\n        height = width / aspectRatio;\n      } else {\n        width = height * aspectRatio;\n      }\n    } else if (isValidWidth) {\n      height = width / aspectRatio;\n    } else if (isValidHeight) {\n      width = height * aspectRatio;\n    }\n    return {\n      width,\n      height\n    };\n  }\n  var ArrayBuffer$1 = WINDOW.ArrayBuffer, FileReader$1 = WINDOW.FileReader;\n  var URL$1 = WINDOW.URL || WINDOW.webkitURL;\n  var REGEXP_EXTENSION = /\\.\\w+$/;\n  var AnotherCompressor = WINDOW.Compressor;\n  var Compressor = /* @__PURE__ */ function() {\n    function Compressor2(file, options) {\n      _classCallCheck(this, Compressor2);\n      this.file = file;\n      this.image = new Image();\n      this.options = _objectSpread2(_objectSpread2({}, DEFAULTS), options);\n      this.aborted = false;\n      this.result = null;\n      this.init();\n    }\n    _createClass(Compressor2, [{\n      key: \"init\",\n      value: function init2() {\n        var _this = this;\n        var file = this.file, options = this.options;\n        if (!isBlob(file)) {\n          this.fail(new Error(\"The first argument must be a File or Blob object.\"));\n          return;\n        }\n        var mimeType = file.type;\n        if (!isImageType(mimeType)) {\n          this.fail(new Error(\"The first argument must be an image File or Blob object.\"));\n          return;\n        }\n        if (!URL$1 || !FileReader$1) {\n          this.fail(new Error(\"The current browser does not support image compression.\"));\n          return;\n        }\n        if (!ArrayBuffer$1) {\n          options.checkOrientation = false;\n        }\n        if (URL$1 && !options.checkOrientation) {\n          this.load({\n            url: URL$1.createObjectURL(file)\n          });\n        } else {\n          var reader = new FileReader$1();\n          var checkOrientation = options.checkOrientation && mimeType === \"image/jpeg\";\n          this.reader = reader;\n          reader.onload = function(_ref) {\n            var target = _ref.target;\n            var result = target.result;\n            var data = {};\n            if (checkOrientation) {\n              var orientation = resetAndGetOrientation(result);\n              if (orientation > 1 || !URL$1) {\n                data.url = arrayBufferToDataURL(result, mimeType);\n                if (orientation > 1) {\n                  _extends(data, parseOrientation(orientation));\n                }\n              } else {\n                data.url = URL$1.createObjectURL(file);\n              }\n            } else {\n              data.url = result;\n            }\n            _this.load(data);\n          };\n          reader.onabort = function() {\n            _this.fail(new Error(\"Aborted to read the image with FileReader.\"));\n          };\n          reader.onerror = function() {\n            _this.fail(new Error(\"Failed to read the image with FileReader.\"));\n          };\n          reader.onloadend = function() {\n            _this.reader = null;\n          };\n          if (checkOrientation) {\n            reader.readAsArrayBuffer(file);\n          } else {\n            reader.readAsDataURL(file);\n          }\n        }\n      }\n    }, {\n      key: \"load\",\n      value: function load(data) {\n        var _this2 = this;\n        var file = this.file, image = this.image;\n        image.onload = function() {\n          _this2.draw(_objectSpread2(_objectSpread2({}, data), {}, {\n            naturalWidth: image.naturalWidth,\n            naturalHeight: image.naturalHeight\n          }));\n        };\n        image.onabort = function() {\n          _this2.fail(new Error(\"Aborted to load the image.\"));\n        };\n        image.onerror = function() {\n          _this2.fail(new Error(\"Failed to load the image.\"));\n        };\n        if (WINDOW.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(WINDOW.navigator.userAgent)) {\n          image.crossOrigin = \"anonymous\";\n        }\n        image.alt = file.name;\n        image.src = data.url;\n      }\n    }, {\n      key: \"draw\",\n      value: function draw(_ref2) {\n        var _this3 = this;\n        var naturalWidth = _ref2.naturalWidth, naturalHeight = _ref2.naturalHeight, _ref2$rotate = _ref2.rotate, rotate = _ref2$rotate === void 0 ? 0 : _ref2$rotate, _ref2$scaleX = _ref2.scaleX, scaleX = _ref2$scaleX === void 0 ? 1 : _ref2$scaleX, _ref2$scaleY = _ref2.scaleY, scaleY = _ref2$scaleY === void 0 ? 1 : _ref2$scaleY;\n        var file = this.file, image = this.image, options = this.options;\n        var canvas = document.createElement(\"canvas\");\n        var context = canvas.getContext(\"2d\");\n        var is90DegreesRotated = Math.abs(rotate) % 180 === 90;\n        var resizable = (options.resize === \"contain\" || options.resize === \"cover\") && isPositiveNumber(options.width) && isPositiveNumber(options.height);\n        var maxWidth = Math.max(options.maxWidth, 0) || Infinity;\n        var maxHeight = Math.max(options.maxHeight, 0) || Infinity;\n        var minWidth = Math.max(options.minWidth, 0) || 0;\n        var minHeight = Math.max(options.minHeight, 0) || 0;\n        var aspectRatio = naturalWidth / naturalHeight;\n        var width = options.width, height = options.height;\n        if (is90DegreesRotated) {\n          var _ref3 = [maxHeight, maxWidth];\n          maxWidth = _ref3[0];\n          maxHeight = _ref3[1];\n          var _ref4 = [minHeight, minWidth];\n          minWidth = _ref4[0];\n          minHeight = _ref4[1];\n          var _ref5 = [height, width];\n          width = _ref5[0];\n          height = _ref5[1];\n        }\n        if (resizable) {\n          aspectRatio = width / height;\n        }\n        var _getAdjustedSizes = getAdjustedSizes({\n          aspectRatio,\n          width: maxWidth,\n          height: maxHeight\n        }, \"contain\");\n        maxWidth = _getAdjustedSizes.width;\n        maxHeight = _getAdjustedSizes.height;\n        var _getAdjustedSizes2 = getAdjustedSizes({\n          aspectRatio,\n          width: minWidth,\n          height: minHeight\n        }, \"cover\");\n        minWidth = _getAdjustedSizes2.width;\n        minHeight = _getAdjustedSizes2.height;\n        if (resizable) {\n          var _getAdjustedSizes3 = getAdjustedSizes({\n            aspectRatio,\n            width,\n            height\n          }, options.resize);\n          width = _getAdjustedSizes3.width;\n          height = _getAdjustedSizes3.height;\n        } else {\n          var _getAdjustedSizes4 = getAdjustedSizes({\n            aspectRatio,\n            width,\n            height\n          });\n          var _getAdjustedSizes4$wi = _getAdjustedSizes4.width;\n          width = _getAdjustedSizes4$wi === void 0 ? naturalWidth : _getAdjustedSizes4$wi;\n          var _getAdjustedSizes4$he = _getAdjustedSizes4.height;\n          height = _getAdjustedSizes4$he === void 0 ? naturalHeight : _getAdjustedSizes4$he;\n        }\n        width = Math.floor(normalizeDecimalNumber(Math.min(Math.max(width, minWidth), maxWidth)));\n        height = Math.floor(normalizeDecimalNumber(Math.min(Math.max(height, minHeight), maxHeight)));\n        var destX = -width / 2;\n        var destY = -height / 2;\n        var destWidth = width;\n        var destHeight = height;\n        var params = [];\n        if (resizable) {\n          var srcX = 0;\n          var srcY = 0;\n          var srcWidth = naturalWidth;\n          var srcHeight = naturalHeight;\n          var _getAdjustedSizes5 = getAdjustedSizes({\n            aspectRatio,\n            width: naturalWidth,\n            height: naturalHeight\n          }, {\n            contain: \"cover\",\n            cover: \"contain\"\n          }[options.resize]);\n          srcWidth = _getAdjustedSizes5.width;\n          srcHeight = _getAdjustedSizes5.height;\n          srcX = (naturalWidth - srcWidth) / 2;\n          srcY = (naturalHeight - srcHeight) / 2;\n          params.push(srcX, srcY, srcWidth, srcHeight);\n        }\n        params.push(destX, destY, destWidth, destHeight);\n        if (is90DegreesRotated) {\n          var _ref6 = [height, width];\n          width = _ref6[0];\n          height = _ref6[1];\n        }\n        canvas.width = width;\n        canvas.height = height;\n        if (!isImageType(options.mimeType)) {\n          options.mimeType = file.type;\n        }\n        var fillStyle = \"transparent\";\n        if (file.size > options.convertSize && options.convertTypes.indexOf(options.mimeType) >= 0) {\n          options.mimeType = \"image/jpeg\";\n        }\n        if (options.mimeType === \"image/jpeg\") {\n          fillStyle = \"#fff\";\n        }\n        context.fillStyle = fillStyle;\n        context.fillRect(0, 0, width, height);\n        if (options.beforeDraw) {\n          options.beforeDraw.call(this, context, canvas);\n        }\n        if (this.aborted) {\n          return;\n        }\n        context.save();\n        context.translate(width / 2, height / 2);\n        context.rotate(rotate * Math.PI / 180);\n        context.scale(scaleX, scaleY);\n        context.drawImage.apply(context, [image].concat(params));\n        context.restore();\n        if (options.drew) {\n          options.drew.call(this, context, canvas);\n        }\n        if (this.aborted) {\n          return;\n        }\n        var done = function done2(result) {\n          if (!_this3.aborted) {\n            _this3.done({\n              naturalWidth,\n              naturalHeight,\n              result\n            });\n          }\n        };\n        if (canvas.toBlob) {\n          canvas.toBlob(done, options.mimeType, options.quality);\n        } else {\n          done(toBlob(canvas.toDataURL(options.mimeType, options.quality)));\n        }\n      }\n    }, {\n      key: \"done\",\n      value: function done(_ref7) {\n        var naturalWidth = _ref7.naturalWidth, naturalHeight = _ref7.naturalHeight, result = _ref7.result;\n        var file = this.file, image = this.image, options = this.options;\n        if (URL$1 && !options.checkOrientation) {\n          URL$1.revokeObjectURL(image.src);\n        }\n        if (result) {\n          if (options.strict && result.size > file.size && options.mimeType === file.type && !(options.width > naturalWidth || options.height > naturalHeight || options.minWidth > naturalWidth || options.minHeight > naturalHeight || options.maxWidth < naturalWidth || options.maxHeight < naturalHeight)) {\n            result = file;\n          } else {\n            var date = new Date();\n            result.lastModified = date.getTime();\n            result.lastModifiedDate = date;\n            result.name = file.name;\n            if (result.name && result.type !== file.type) {\n              result.name = result.name.replace(REGEXP_EXTENSION, imageTypeToExtension(result.type));\n            }\n          }\n        } else {\n          result = file;\n        }\n        this.result = result;\n        if (options.success) {\n          options.success.call(this, result);\n        }\n      }\n    }, {\n      key: \"fail\",\n      value: function fail(err) {\n        var options = this.options;\n        if (options.error) {\n          options.error.call(this, err);\n        } else {\n          throw err;\n        }\n      }\n    }, {\n      key: \"abort\",\n      value: function abort() {\n        if (!this.aborted) {\n          this.aborted = true;\n          if (this.reader) {\n            this.reader.abort();\n          } else if (!this.image.complete) {\n            this.image.onload = null;\n            this.image.onabort();\n          } else {\n            this.fail(new Error(\"The compression process has been aborted.\"));\n          }\n        }\n      }\n    }], [{\n      key: \"noConflict\",\n      value: function noConflict() {\n        window.Compressor = AnotherCompressor;\n        return Compressor2;\n      }\n    }, {\n      key: \"setDefaults\",\n      value: function setDefaults(options) {\n        _extends(DEFAULTS, options);\n      }\n    }]);\n    return Compressor2;\n  }();\n  const nativeCameraHandler = (e) => {\n    return new Promise((resolve, reject) => {\n      if (!e.target) {\n        return reject(\"Event target is missing\");\n      }\n      const target = e.target;\n      let image = target.files[0];\n      let reader1 = new FileReader();\n      reader1.readAsDataURL(image);\n      reader1.onload = (e2) => {\n        e2.target.result;\n      };\n      new Compressor(image, {\n        quality: 0.6,\n        success(result) {\n          let reader = new FileReader();\n          reader.readAsDataURL(result);\n          reader.onload = (e2) => {\n            const image2 = e2.target.result;\n            resolve(image2);\n          };\n        },\n        error(err) {\n          return reject(err.message);\n        }\n      });\n    });\n  };\n  const clearDocs = (type, configuration2, documents2) => {\n    const { options } = configuration2.documentOptions;\n    const isFromOptions = options.find((o) => o.document.type === type);\n    if (isFromOptions) {\n      return documents2.filter((d) => !options.find((o) => o.document.type === d.type));\n    }\n    return documents2.filter((d) => type !== d.type);\n  };\n  const addDocument = (type, base64, configuration2, documents2, document2) => {\n    const clearedDocuments = clearDocs(type, configuration2, documents2);\n    return [\n      ...clearedDocuments,\n      {\n        ...document2,\n        pages: [{ side: \"front\", base64 }]\n      }\n    ];\n  };\n  const getUpdatedPages = (base64, doc) => {\n    const existingPage = doc.pages.find((p) => p.side === \"back\");\n    if (existingPage) {\n      return doc.pages.map((page) => {\n        if (page.side === \"back\") {\n          return {\n            ...page,\n            base64,\n            side: \"back\"\n          };\n        }\n        return page;\n      });\n    }\n    return [...doc.pages, { base64, side: \"back\" }];\n  };\n  const updateDocument = (type, base64, documents2) => {\n    return documents2.map((doc) => {\n      if (doc.type === type) {\n        const newPagesState = getUpdatedPages(base64, doc);\n        return { ...doc, pages: newPagesState };\n      }\n      return doc;\n    });\n  };\n  function add_css$k(target) {\n    append_styles(target, \"svelte-1myhbj3\", \".document-option.svelte-1myhbj3{cursor:pointer;border-radius:var(--border-radius);padding:var(--padding);margin:var(--margin);width:var(--width);border:var(--border);display:var(--display);text-align:var(--text-align);transition:all 0.1s ease-in;user-select:none;position:relative}.document-option.svelte-1myhbj3:hover{background:var(--hover-background);border:var(--hover-border)}.document-option.svelte-1myhbj3:active{background:var(--hover-background);border:var(--hover-border)}.document-option.active.svelte-1myhbj3{background:var(--hover-background);border:var(--hover-border)}.camera-input.svelte-1myhbj3{position:absolute;width:100%;height:100%;top:0px;left:0px;z-index:3;opacity:0}\");\n  }\n  function create_if_block_1$h(ctx) {\n    let input;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        input = element(\"input\");\n        attr(input, \"class\", \"camera-input svelte-1myhbj3\");\n        attr(input, \"type\", \"file\");\n        attr(input, \"accept\", \"image/*\");\n        attr(input, \"capture\", \"environment\");\n      },\n      m(target, anchor) {\n        insert(target, input, anchor);\n        if (!mounted) {\n          dispose = listen(input, \"change\", ctx[8]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(input);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function create_default_slot_2$b(ctx) {\n    let icon;\n    let current;\n    icon = new Icon({\n      props: {\n        name: ctx[2].icon,\n        width: ctx[2].width,\n        height: ctx[2].height,\n        configuration: ctx[0].iconProps,\n        active: ctx[4] || ctx[1]\n      }\n    });\n    return {\n      c() {\n        create_component(icon.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(icon, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const icon_changes = {};\n        if (dirty & 4)\n          icon_changes.name = ctx2[2].icon;\n        if (dirty & 4)\n          icon_changes.width = ctx2[2].width;\n        if (dirty & 4)\n          icon_changes.height = ctx2[2].height;\n        if (dirty & 1)\n          icon_changes.configuration = ctx2[0].iconProps;\n        if (dirty & 18)\n          icon_changes.active = ctx2[4] || ctx2[1];\n        icon.$set(icon_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(icon.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(icon.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(icon, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$f(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${ctx[3].type}-title`,\n        module: \"document-options\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const t_changes = {};\n        if (dirty & 8)\n          t_changes.key = `${ctx2[3].type}-title`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$j(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[0].descriptionProps,\n        active: ctx[4] || ctx[1],\n        $$slots: { default: [create_default_slot$f] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 1)\n          paragraph_changes.configuration = ctx2[0].descriptionProps;\n        if (dirty & 18)\n          paragraph_changes.active = ctx2[4] || ctx2[1];\n        if (dirty & 16392) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$f(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${ctx[3].type}-description`,\n        module: \"document-options\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const t_changes = {};\n        if (dirty & 8)\n          t_changes.key = `${ctx2[3].type}-description`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_fragment$l(ctx) {\n    let div1;\n    let show_if = isNativeCamera(ctx[5]);\n    let t0;\n    let container;\n    let t1;\n    let div0;\n    let paragraph;\n    let t2;\n    let current;\n    let mounted;\n    let dispose;\n    let if_block0 = show_if && create_if_block_1$h(ctx);\n    container = new Container({\n      props: {\n        configuration: ctx[0].iconContainerProps,\n        active: ctx[4] || ctx[1],\n        $$slots: { default: [create_default_slot_2$b] },\n        $$scope: { ctx }\n      }\n    });\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[0].titleProps,\n        active: ctx[4] || ctx[1],\n        $$slots: { default: [create_default_slot_1$f] },\n        $$scope: { ctx }\n      }\n    });\n    let if_block1 = ctx[0].descriptionProps && create_if_block$j(ctx);\n    return {\n      c() {\n        div1 = element(\"div\");\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        create_component(container.$$.fragment);\n        t1 = space();\n        div0 = element(\"div\");\n        create_component(paragraph.$$.fragment);\n        t2 = space();\n        if (if_block1)\n          if_block1.c();\n        attr(div0, \"class\", \"text-container\");\n        attr(div1, \"style\", ctx[9]);\n        attr(div1, \"class\", \"document-option svelte-1myhbj3\");\n        toggle_class(div1, \"active\", ctx[1]);\n      },\n      m(target, anchor) {\n        insert(target, div1, anchor);\n        if (if_block0)\n          if_block0.m(div1, null);\n        append(div1, t0);\n        mount_component(container, div1, null);\n        append(div1, t1);\n        append(div1, div0);\n        mount_component(paragraph, div0, null);\n        append(div0, t2);\n        if (if_block1)\n          if_block1.m(div0, null);\n        current = true;\n        if (!mounted) {\n          dispose = [\n            listen(div1, \"click\", ctx[7]),\n            listen(div1, \"mouseover\", ctx[10]),\n            listen(div1, \"focus\", ctx[11]),\n            listen(div1, \"mouseleave\", ctx[12])\n          ];\n          mounted = true;\n        }\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 32)\n          show_if = isNativeCamera(ctx2[5]);\n        if (show_if) {\n          if (if_block0) {\n            if_block0.p(ctx2, dirty);\n          } else {\n            if_block0 = create_if_block_1$h(ctx2);\n            if_block0.c();\n            if_block0.m(div1, t0);\n          }\n        } else if (if_block0) {\n          if_block0.d(1);\n          if_block0 = null;\n        }\n        const container_changes = {};\n        if (dirty & 1)\n          container_changes.configuration = ctx2[0].iconContainerProps;\n        if (dirty & 18)\n          container_changes.active = ctx2[4] || ctx2[1];\n        if (dirty & 16407) {\n          container_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        container.$set(container_changes);\n        const paragraph_changes = {};\n        if (dirty & 1)\n          paragraph_changes.configuration = ctx2[0].titleProps;\n        if (dirty & 18)\n          paragraph_changes.active = ctx2[4] || ctx2[1];\n        if (dirty & 16392) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n        if (ctx2[0].descriptionProps) {\n          if (if_block1) {\n            if_block1.p(ctx2, dirty);\n            if (dirty & 1) {\n              transition_in(if_block1, 1);\n            }\n          } else {\n            if_block1 = create_if_block$j(ctx2);\n            if_block1.c();\n            transition_in(if_block1, 1);\n            if_block1.m(div0, null);\n          }\n        } else if (if_block1) {\n          group_outros();\n          transition_out(if_block1, 1, 1, () => {\n            if_block1 = null;\n          });\n          check_outros();\n        }\n        if (!current || dirty & 2) {\n          toggle_class(div1, \"active\", ctx2[1]);\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(container.$$.fragment, local2);\n        transition_in(paragraph.$$.fragment, local2);\n        transition_in(if_block1);\n        current = true;\n      },\n      o(local2) {\n        transition_out(container.$$.fragment, local2);\n        transition_out(paragraph.$$.fragment, local2);\n        transition_out(if_block1);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div1);\n        if (if_block0)\n          if_block0.d();\n        destroy_component(container);\n        destroy_component(paragraph);\n        if (if_block1)\n          if_block1.d();\n        mounted = false;\n        run_all(dispose);\n      }\n    };\n  }\n  function instance$l($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(5, $globalConfiguration = $$value));\n    let { configuration: configuration$12 } = $$props;\n    let { active: active2 } = $$props;\n    let { attributes } = $$props;\n    let { document: document2 } = $$props;\n    let hover = false;\n    const setHover = (status) => $$invalidate(4, hover = status);\n    const dispatch2 = createEventDispatcher();\n    const handleSelect = () => {\n      dispatch2(\"selectOption\", document2.type);\n    };\n    const handler = async (e) => {\n      if (!e.target)\n        return;\n      const image = await nativeCameraHandler(e);\n      dispatch2(\"photoTake\", { image, type: document2.type });\n    };\n    const style = makesLocalStyles(configuration$12.optionProps.style);\n    const mouseover_handler = () => setHover(true);\n    const focus_handler = () => setHover(true);\n    const mouseleave_handler = () => setHover(false);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(0, configuration$12 = $$props2.configuration);\n      if (\"active\" in $$props2)\n        $$invalidate(1, active2 = $$props2.active);\n      if (\"attributes\" in $$props2)\n        $$invalidate(2, attributes = $$props2.attributes);\n      if (\"document\" in $$props2)\n        $$invalidate(3, document2 = $$props2.document);\n    };\n    return [\n      configuration$12,\n      active2,\n      attributes,\n      document2,\n      hover,\n      $globalConfiguration,\n      setHover,\n      handleSelect,\n      handler,\n      style,\n      mouseover_handler,\n      focus_handler,\n      mouseleave_handler\n    ];\n  }\n  class DocumentOption extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$l, create_fragment$l, safe_not_equal, {\n        configuration: 0,\n        active: 1,\n        attributes: 2,\n        document: 3\n      }, add_css$k);\n    }\n  }\n  function get_each_context$e(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[7] = list[i];\n    return child_ctx;\n  }\n  function create_each_block$e(ctx) {\n    var _a;\n    let documentoption;\n    let current;\n    documentoption = new DocumentOption({\n      props: {\n        configuration: ctx[0].documentOptions,\n        attributes: ctx[7].attributes,\n        document: ctx[7].document,\n        active: ((_a = ctx[1]) == null ? void 0 : _a.type) === ctx[7].document.type\n      }\n    });\n    documentoption.$on(\"selectOption\", ctx[3]);\n    documentoption.$on(\"photoTake\", ctx[4]);\n    return {\n      c() {\n        create_component(documentoption.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(documentoption, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const documentoption_changes = {};\n        if (dirty & 1)\n          documentoption_changes.configuration = ctx2[0].documentOptions;\n        if (dirty & 2)\n          documentoption_changes.active = ((_a2 = ctx2[1]) == null ? void 0 : _a2.type) === ctx2[7].document.type;\n        documentoption.$set(documentoption_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(documentoption.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(documentoption.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(documentoption, detaching);\n      }\n    };\n  }\n  function create_fragment$k(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[2];\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$e(get_each_context$e(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"document-options\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 31) {\n          each_value = ctx2[2];\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$e(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$e(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$k($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $documents;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    component_subscribe($$self, documents, ($$value) => $$invalidate(6, $documents = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(1, $selectedDocumentInfo = $$value));\n    let { step } = $$props;\n    const ducumentOptions = [];\n    Object.keys($configuration.documentOptions.options).forEach((key) => {\n      const type = key;\n      const option = $configuration.documentOptions.options[type];\n      ducumentOptions.push(option);\n    });\n    const handleSelectOption = async ({ detail }) => {\n      if (isNativeCamera($configuration))\n        return;\n      const type = detail;\n      const option = $configuration.documentOptions.options[type];\n      set_store_value(selectedDocumentInfo, $selectedDocumentInfo = option === null || option === void 0 ? void 0 : option.document, $selectedDocumentInfo);\n      await navigator.mediaDevices.getUserMedia({ video: true });\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const handlePhotoTake = async ({ detail }) => {\n      const option = $configuration.documentOptions.options[detail.type];\n      const document2 = {\n        type: detail.type,\n        metadata: {},\n        pages: []\n      };\n      const newDocumentsState = addDocument(document2.type, detail.image, $configuration, $documents, document2);\n      set_store_value(selectedDocumentInfo, $selectedDocumentInfo = option === null || option === void 0 ? void 0 : option.document, $selectedDocumentInfo);\n      set_store_value(documents, $documents = newDocumentsState, $documents);\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    $$self.$$set = ($$props2) => {\n      if (\"step\" in $$props2)\n        $$invalidate(5, step = $$props2.step);\n    };\n    return [\n      $configuration,\n      $selectedDocumentInfo,\n      ducumentOptions,\n      handleSelectOption,\n      handlePhotoTake,\n      step\n    ];\n  }\n  class DocumentOptions extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$k, create_fragment$k, safe_not_equal, { step: 5 });\n    }\n  }\n  function add_css$j(target) {\n    append_styles(target, \"svelte-w5fv3q\", \".container.svelte-w5fv3q{position:var(--position);padding:var(--padding);text-align:center;background:var(--background);height:100%}\");\n  }\n  function get_each_context$d(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[4] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_3$e(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[4].props }\n    });\n    iconbutton.$on(\"click\", ctx[3]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_2$f(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[4].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_1$g(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[4].props,\n        $$slots: { default: [create_default_slot_1$e] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 128) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$e(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"title\",\n        module: \"document-selection\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$i(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[4].props,\n        $$slots: { default: [create_default_slot$e] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 128) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$e(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: ctx[4].props.context || \"description\",\n        module: \"document-selection\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_each_block$d(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[4].type === Elements.IconButton && create_if_block_3$e(ctx);\n    let if_block1 = ctx[4].type === Elements.Image && create_if_block_2$f(ctx);\n    let if_block2 = ctx[4].type === Elements.Title && create_if_block_1$g(ctx);\n    let if_block3 = ctx[4].type === Elements.Paragraph && create_if_block$i(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[4].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[4].type === Elements.Image)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[4].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[4].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$j(ctx) {\n    let div;\n    let t2;\n    let documentoptions;\n    let current;\n    let each_value = ctx[1].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$d(get_each_context$d(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    documentoptions = new DocumentOptions({ props: { step: ctx[1] } });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        create_component(documentoptions.$$.fragment);\n        attr(div, \"class\", \"container svelte-w5fv3q\");\n        attr(div, \"style\", ctx[2]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        mount_component(documentoptions, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 3) {\n          each_value = ctx2[1].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$d(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$d(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(documentoptions.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(documentoptions.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        destroy_component(documentoptions);\n      }\n    };\n  }\n  function instance$j($$self, $$props, $$invalidate) {\n    let $configuration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    const step = $configuration.steps[Steps.DocumentSelection];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    return [$configuration, step, style, click_handler];\n  }\n  class DocumentSelection extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$j, create_fragment$j, safe_not_equal, {}, add_css$j);\n    }\n  }\n  function add_css$i(target) {\n    append_styles(target, \"svelte-ii8mp3\", \".container.svelte-ii8mp3{height:100%;padding:var(--padding);position:var(--position);background:var(--background);text-align:center}.button-container.svelte-ii8mp3{position:relative}.camera-input.svelte-ii8mp3{position:absolute;width:100%;height:100%;top:0px;left:0px;z-index:3;opacity:0;cursor:pointer}\");\n  }\n  function get_each_context$c(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[9] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_5$4(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[9].props }\n    });\n    iconbutton.$on(\"click\", ctx[7]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_4$7(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[9].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_3$d(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot_2$a] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 4097) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$a(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-title`,\n        module: \"document-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-title`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$e(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot_1$d] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 4097) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$d(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-description`,\n        module: \"document-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-description`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$h(ctx) {\n    let div;\n    let show_if = isNativeCamera(ctx[1]);\n    let t0;\n    let button;\n    let t1;\n    let current;\n    let if_block = show_if && create_if_block_1$f(ctx);\n    button = new Button({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot$d] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[4]);\n    return {\n      c() {\n        div = element(\"div\");\n        if (if_block)\n          if_block.c();\n        t0 = space();\n        create_component(button.$$.fragment);\n        t1 = space();\n        attr(div, \"class\", \"button-container svelte-ii8mp3\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (if_block)\n          if_block.m(div, null);\n        append(div, t0);\n        mount_component(button, div, null);\n        append(div, t1);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (dirty & 2)\n          show_if = isNativeCamera(ctx2[1]);\n        if (show_if) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n          } else {\n            if_block = create_if_block_1$f(ctx2);\n            if_block.c();\n            if_block.m(div, t0);\n          }\n        } else if (if_block) {\n          if_block.d(1);\n          if_block = null;\n        }\n        const button_changes = {};\n        if (dirty & 4097) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (if_block)\n          if_block.d();\n        destroy_component(button);\n      }\n    };\n  }\n  function create_if_block_1$f(ctx) {\n    let input;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        input = element(\"input\");\n        attr(input, \"class\", \"camera-input svelte-ii8mp3\");\n        attr(input, \"type\", \"file\");\n        attr(input, \"accept\", \"image/*\");\n        attr(input, \"capture\", \"environment\");\n      },\n      m(target, anchor) {\n        insert(target, input, anchor);\n        if (!mounted) {\n          dispose = listen(input, \"change\", ctx[5]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(input);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function create_default_slot$d(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-button`,\n        module: \"document-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-button`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_each_block$c(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[9].type === Elements.IconButton && create_if_block_5$4(ctx);\n    let if_block1 = ctx[9].type === Elements.Image && create_if_block_4$7(ctx);\n    let if_block2 = ctx[9].type === Elements.Title && create_if_block_3$d(ctx);\n    let if_block3 = ctx[9].type === Elements.Paragraph && create_if_block_2$e(ctx);\n    let if_block4 = ctx[9].type === Elements.Button && create_if_block$h(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[9].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Image)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Button)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_fragment$i(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[2].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-ii8mp3\");\n        attr(div, \"style\", ctx[3]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 55) {\n          each_value = ctx2[2].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$c(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$c(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$i($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $documents;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $configuration = $$value));\n    component_subscribe($$self, documents, ($$value) => $$invalidate(8, $documents = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(6, $selectedDocumentInfo = $$value));\n    const step = $configuration.steps[Steps.DocumentStart];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let documentInfo = void 0;\n    const handleGoToNextStep = async () => {\n      await navigator.mediaDevices.getUserMedia({ video: true });\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const handler = async (e) => {\n      if (!e.target)\n        return;\n      const image = await nativeCameraHandler(e);\n      if (!documentInfo) {\n        throw Error(\"document context wasn't provided\");\n      }\n      const document2 = {\n        type: documentInfo.type,\n        metadata: {},\n        pages: []\n      };\n      const newDocumentsState = addDocument(document2.type, image, $configuration, $documents, document2);\n      set_store_value(documents, $documents = newDocumentsState, $documents);\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 67) {\n        {\n          $$invalidate(0, documentInfo = step.documentInfo || $selectedDocumentInfo);\n          if (!documentInfo)\n            goToPrevStep(step, currentStepRoute, $configuration);\n        }\n      }\n    };\n    return [\n      documentInfo,\n      $configuration,\n      step,\n      style,\n      handleGoToNextStep,\n      handler,\n      $selectedDocumentInfo,\n      click_handler\n    ];\n  }\n  class DocumentStart extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$i, create_fragment$i, safe_not_equal, {}, add_css$i);\n    }\n  }\n  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {\n    DocumentType2[\"PASSPORT\"] = \"passport\";\n    DocumentType2[\"DRIVERS_LICENSE\"] = \"drivers_license\";\n    DocumentType2[\"RESIDENCE_PERMIT\"] = \"residence_permit\";\n    DocumentType2[\"ID_CARD\"] = \"id_card\";\n    DocumentType2[\"VOTER_ID\"] = \"voter_id\";\n    DocumentType2[\"WORK_PERMIT\"] = \"work_permit\";\n    DocumentType2[\"VISA\"] = \"visa\";\n    DocumentType2[\"BANK_STATEMENT\"] = \"bankStatement\";\n    DocumentType2[\"PROOF_OF_BUSINESS_TAX_ID\"] = \"proofOfBusinessTaxID\";\n    DocumentType2[\"OPERATING_LICENSE\"] = \"operatingLicense\";\n    DocumentType2[\"BUSINESS_REGISTRATION\"] = \"businessRegistration\";\n    DocumentType2[\"SELFIE\"] = \"selfie\";\n    return DocumentType2;\n  })(DocumentType || {});\n  var DocumentVariant = /* @__PURE__ */ ((DocumentVariant2) => {\n    DocumentVariant2[\"A4\"] = \"a4\";\n    DocumentVariant2[\"REGULAR\"] = \"regular\";\n    return DocumentVariant2;\n  })(DocumentVariant || {});\n  function add_css$h(target) {\n    append_styles(target, \"svelte-1mwxhrr\", \".container.svelte-1mwxhrr{height:100%;position:var(--position);background:var(--background);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}\");\n  }\n  function get_each_context$b(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[15] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_5$3(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[15].props }\n    });\n    iconbutton.$on(\"click\", ctx[8]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_4$6(ctx) {\n    let videocontainer;\n    let current;\n    videocontainer = new VideoContainer({\n      props: {\n        configuration: ctx[15].props,\n        $$slots: { default: [create_default_slot_2$9] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(videocontainer.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(videocontainer, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const videocontainer_changes = {};\n        if (dirty & 262148) {\n          videocontainer_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        videocontainer.$set(videocontainer_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(videocontainer.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(videocontainer.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(videocontainer, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$9(ctx) {\n    let video_1;\n    return {\n      c() {\n        video_1 = element(\"video\");\n        video_1.autoplay = true;\n        video_1.playsInline = true;\n      },\n      m(target, anchor) {\n        insert(target, video_1, anchor);\n        ctx[9](video_1);\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(video_1);\n        ctx[9](null);\n      }\n    };\n  }\n  function create_if_block_3$c(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[15].props,\n        $$slots: { default: [create_default_slot_1$c] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 262145) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$c(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-title`,\n        module: \"document-photo\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-title`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$d(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[15].props,\n        $$slots: { default: [create_default_slot$c] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 262145) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$c(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-description`,\n        module: \"document-photo\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-description`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$e(ctx) {\n    let camerabutton;\n    let current;\n    camerabutton = new CameraButton({\n      props: { configuration: ctx[15].props }\n    });\n    camerabutton.$on(\"click\", ctx[6]);\n    return {\n      c() {\n        create_component(camerabutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(camerabutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(camerabutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(camerabutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(camerabutton, detaching);\n      }\n    };\n  }\n  function create_each_block$b(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[15].type === Elements.IconButton && create_if_block_5$3(ctx);\n    let if_block1 = ctx[15].type === Elements.VideoContainer && create_if_block_4$6(ctx);\n    let if_block2 = ctx[15].type === Elements.Title && create_if_block_3$c(ctx);\n    let if_block3 = ctx[15].type === Elements.Paragraph && create_if_block_2$d(ctx);\n    let if_block4 = ctx[15].type === Elements.CameraButton && create_if_block_1$e(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[15].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[15].type === Elements.VideoContainer)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[15].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[15].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[15].type === Elements.CameraButton)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_if_block$g(ctx) {\n    let overlay;\n    let current;\n    overlay = new Overlay({\n      props: { type: ctx[0].type }\n    });\n    return {\n      c() {\n        create_component(overlay.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(overlay, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const overlay_changes = {};\n        if (dirty & 1)\n          overlay_changes.type = ctx2[0].type;\n        overlay.$set(overlay_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(overlay.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(overlay.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(overlay, detaching);\n      }\n    };\n  }\n  function create_fragment$h(ctx) {\n    let div;\n    let t2;\n    let current;\n    let each_value = ctx[4].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    let if_block = ctx[0] && create_if_block$g(ctx);\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        if (if_block)\n          if_block.c();\n        attr(div, \"class\", \"container svelte-1mwxhrr\");\n        attr(div, \"style\", ctx[5]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        if (if_block)\n          if_block.m(div, null);\n        ctx[10](div);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 87) {\n          each_value = ctx2[4].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$b(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$b(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n        if (ctx2[0]) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n            if (dirty & 1) {\n              transition_in(if_block, 1);\n            }\n          } else {\n            if_block = create_if_block$g(ctx2);\n            if_block.c();\n            transition_in(if_block, 1);\n            if_block.m(div, null);\n          }\n        } else if (if_block) {\n          group_outros();\n          transition_out(if_block, 1, 1, () => {\n            if_block = null;\n          });\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        if (if_block)\n          if_block.d();\n        ctx[10](null);\n      }\n    };\n  }\n  function instance$h($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $documents;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $configuration = $$value));\n    component_subscribe($$self, documents, ($$value) => $$invalidate(12, $documents = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(7, $selectedDocumentInfo = $$value));\n    let video;\n    let container;\n    let cameraPhoto = void 0;\n    const step = $configuration.steps[Steps.DocumentPhoto];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let documentInfo = void 0;\n    onMount(() => {\n      if (!video)\n        return;\n      cameraPhoto = new CameraPhoto(video);\n      cameraPhoto.startCamera(build.exports.FACING_MODES.ENVIRONMENT, { width: 1920, height: 1080 }).then((stream) => {\n        console.log(\"stream\", stream);\n      }).catch((error) => {\n        console.log(\"error\", error);\n      });\n    });\n    onDestroy(() => {\n      cameraPhoto === null || cameraPhoto === void 0 ? void 0 : cameraPhoto.stopCamera();\n    });\n    const clearDocs2 = (type) => {\n      const { options } = $configuration.documentOptions;\n      const isFromOptions = Object.keys(options).find((key) => key === type);\n      if (isFromOptions) {\n        return $documents.filter((d) => !Object.keys(options).find((key) => key === d.type));\n      }\n      return $documents.filter((d) => type !== d.type);\n    };\n    const addDocument2 = (type, base64, document2) => {\n      const clearedDocuments = clearDocs2(type);\n      return [\n        ...clearedDocuments,\n        Object.assign(Object.assign({}, document2), { pages: [{ side: \"front\", base64 }] })\n      ];\n    };\n    const handleTakePhoto = () => {\n      if (!cameraPhoto)\n        return;\n      const base64 = cameraPhoto.getDataUri($configuration.settings.cameraSettings);\n      if (documentInfo) {\n        const document2 = {\n          type: documentInfo === null || documentInfo === void 0 ? void 0 : documentInfo.type,\n          pages: [],\n          metadata: {}\n        };\n        set_store_value(documents, $documents = addDocument2(document2.type, base64, document2), $documents);\n        return goToNextStep(step, currentStepRoute, $configuration);\n      }\n      return goToPrevStep(step, currentStepRoute, $configuration);\n    };\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    function video_1_binding($$value) {\n      binding_callbacks[$$value ? \"unshift\" : \"push\"](() => {\n        video = $$value;\n        $$invalidate(2, video);\n      });\n    }\n    function div_binding($$value) {\n      binding_callbacks[$$value ? \"unshift\" : \"push\"](() => {\n        container = $$value;\n        $$invalidate(3, container);\n      });\n    }\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 131) {\n        {\n          $$invalidate(0, documentInfo = step.documentInfo || $selectedDocumentInfo);\n          if (!documentInfo) {\n            goToPrevStep(step, currentStepRoute, $configuration);\n          }\n        }\n      }\n    };\n    return [\n      documentInfo,\n      $configuration,\n      video,\n      container,\n      step,\n      style,\n      handleTakePhoto,\n      $selectedDocumentInfo,\n      click_handler,\n      video_1_binding,\n      div_binding\n    ];\n  }\n  class DocumentPhoto extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$h, create_fragment$h, safe_not_equal, {}, add_css$h);\n    }\n  }\n  function add_css$g(target) {\n    append_styles(target, \"svelte-1j8so59\", \".navigation-buttons.svelte-1j8so59{display:var(--display);padding:var(--padding);position:var(--position);bottom:var(--bottom);left:var(--left);width:var(--width);box-shadow:var(--box-shadow);justify-content:var(--justify-content);align-items:var(--align-items);flex-direction:var(--flex-direction)}\");\n  }\n  function create_else_block_1(ctx) {\n    let buttonwithicon;\n    let current;\n    buttonwithicon = new ButtonWithIcon({\n      props: {\n        configuration: ctx[2].backButton.props,\n        $$slots: { default: [create_default_slot_3] },\n        $$scope: { ctx }\n      }\n    });\n    buttonwithicon.$on(\"click\", ctx[8]);\n    return {\n      c() {\n        create_component(buttonwithicon.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(buttonwithicon, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const buttonwithicon_changes = {};\n        if (dirty & 4096) {\n          buttonwithicon_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        buttonwithicon.$set(buttonwithicon_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(buttonwithicon.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(buttonwithicon.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(buttonwithicon, detaching);\n      }\n    };\n  }\n  function create_if_block_3$b(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: {\n        configuration: ctx[2].backButton.props\n      }\n    });\n    iconbutton.$on(\"click\", ctx[7]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_2$c(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[2].backButton.props,\n        $$slots: { default: [create_default_slot_2$8] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[6]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 4096) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot_3(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"back\",\n        module: \"navigation-buttons\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$8(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"back\",\n        module: \"navigation-buttons\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_else_block$2(ctx) {\n    let buttonwithicon;\n    let current;\n    buttonwithicon = new ButtonWithIcon({\n      props: {\n        configuration: ctx[2].nextButton.props,\n        $$slots: { default: [create_default_slot_1$b] },\n        $$scope: { ctx }\n      }\n    });\n    buttonwithicon.$on(\"click\", ctx[11]);\n    return {\n      c() {\n        create_component(buttonwithicon.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(buttonwithicon, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const buttonwithicon_changes = {};\n        if (dirty & 4096) {\n          buttonwithicon_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        buttonwithicon.$set(buttonwithicon_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(buttonwithicon.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(buttonwithicon.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(buttonwithicon, detaching);\n      }\n    };\n  }\n  function create_if_block_1$d(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: {\n        configuration: ctx[2].nextButton.props\n      }\n    });\n    iconbutton.$on(\"click\", ctx[10]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block$f(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[2].nextButton.props,\n        $$slots: { default: [create_default_slot$b] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[9]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 4096) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$b(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"next\",\n        module: \"navigation-buttons\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_default_slot$b(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"next\",\n        module: \"navigation-buttons\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_fragment$g(ctx) {\n    let div;\n    let current_block_type_index;\n    let if_block0;\n    let t2;\n    let current_block_type_index_1;\n    let if_block1;\n    let current;\n    const if_block_creators = [create_if_block_2$c, create_if_block_3$b, create_else_block_1];\n    const if_blocks = [];\n    function select_block_type(ctx2, dirty) {\n      if (ctx2[2].backButton.type === \"button\")\n        return 0;\n      if (ctx2[2].backButton.type === \"iconButton\")\n        return 1;\n      return 2;\n    }\n    current_block_type_index = select_block_type(ctx);\n    if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n    const if_block_creators_1 = [create_if_block$f, create_if_block_1$d, create_else_block$2];\n    const if_blocks_1 = [];\n    function select_block_type_1(ctx2, dirty) {\n      if (ctx2[2].nextButton.type === \"button\")\n        return 0;\n      if (ctx2[2].nextButton.type === \"iconButton\")\n        return 1;\n      return 2;\n    }\n    current_block_type_index_1 = select_block_type_1(ctx);\n    if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);\n    return {\n      c() {\n        div = element(\"div\");\n        if_block0.c();\n        t2 = space();\n        if_block1.c();\n        attr(div, \"style\", ctx[3]);\n        attr(div, \"class\", \"navigation-buttons svelte-1j8so59\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if_blocks[current_block_type_index].m(div, null);\n        append(div, t2);\n        if_blocks_1[current_block_type_index_1].m(div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if_block0.p(ctx2, dirty);\n        if_block1.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if_blocks[current_block_type_index].d();\n        if_blocks_1[current_block_type_index_1].d();\n      }\n    };\n  }\n  function instance$g($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $globalConfiguration = $$value));\n    const { navigationButtons: configuration$12 } = $globalConfiguration;\n    let { step } = $$props;\n    let { skipBackSide = false } = $$props;\n    const style = makesLocalStyles(configuration$12.props.style);\n    const skipType = skipBackSide ? \"back-side\" : void 0;\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $globalConfiguration, skipType);\n    const click_handler_1 = () => goToPrevStep(step, currentStepRoute, $globalConfiguration, skipType);\n    const click_handler_2 = () => goToPrevStep(step, currentStepRoute, $globalConfiguration, skipType);\n    const click_handler_3 = () => goToNextStep(step, currentStepRoute, $globalConfiguration, skipType);\n    const click_handler_4 = () => goToNextStep(step, currentStepRoute, $globalConfiguration, skipType);\n    const click_handler_5 = () => goToNextStep(step, currentStepRoute, $globalConfiguration, skipType);\n    $$self.$$set = ($$props2) => {\n      if (\"step\" in $$props2)\n        $$invalidate(0, step = $$props2.step);\n      if (\"skipBackSide\" in $$props2)\n        $$invalidate(5, skipBackSide = $$props2.skipBackSide);\n    };\n    return [\n      step,\n      $globalConfiguration,\n      configuration$12,\n      style,\n      skipType,\n      skipBackSide,\n      click_handler,\n      click_handler_1,\n      click_handler_2,\n      click_handler_3,\n      click_handler_4,\n      click_handler_5\n    ];\n  }\n  class NavigationButtons extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$g, create_fragment$g, safe_not_equal, { step: 0, skipBackSide: 5 }, add_css$g);\n    }\n  }\n  function add_css$f(target) {\n    append_styles(target, \"svelte-1c0mazk\", \".container.svelte-1c0mazk{padding:var(--padding);position:var(--position);background:var(--background);text-align:center;height:100%;display:flex;flex-direction:column}\");\n  }\n  function get_each_context$a(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[9] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_3$a(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[9].props }\n    });\n    iconbutton.$on(\"click\", ctx[8]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_2$b(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot_1$a] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 4097) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$a(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-title`,\n        module: \"check-document\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-title`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$c(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot$a] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 4097) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$a(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-description`,\n        module: \"check-document\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-description`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$e(ctx) {\n    let photo;\n    let current;\n    photo = new Photo({\n      props: {\n        configuration: ctx[9].props,\n        src: ctx[2]\n      }\n    });\n    return {\n      c() {\n        create_component(photo.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(photo, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const photo_changes = {};\n        if (dirty & 4)\n          photo_changes.src = ctx2[2];\n        photo.$set(photo_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(photo.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(photo.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(photo, detaching);\n      }\n    };\n  }\n  function create_each_block$a(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[9].type === Elements.IconButton && create_if_block_3$a(ctx);\n    let if_block1 = ctx[9].type === Elements.Title && create_if_block_2$b(ctx);\n    let if_block2 = ctx[9].type === Elements.Paragraph && create_if_block_1$c(ctx);\n    let if_block3 = ctx[9].type === Elements.Photo && create_if_block$e(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[9].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Title)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Paragraph)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Photo)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$f(ctx) {\n    let div;\n    let t2;\n    let navigationbuttons;\n    let current;\n    let each_value = ctx[4].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    navigationbuttons = new NavigationButtons({\n      props: {\n        step: ctx[4],\n        skipBackSide: ctx[3]\n      }\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        create_component(navigationbuttons.$$.fragment);\n        attr(div, \"class\", \"container svelte-1c0mazk\");\n        attr(div, \"style\", ctx[5]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        mount_component(navigationbuttons, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 23) {\n          each_value = ctx2[4].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$a(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$a(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n        const navigationbuttons_changes = {};\n        if (dirty & 8)\n          navigationbuttons_changes.skipBackSide = ctx2[3];\n        navigationbuttons.$set(navigationbuttons_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(navigationbuttons.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(navigationbuttons.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        destroy_component(navigationbuttons);\n      }\n    };\n  }\n  function instance$f($$self, $$props, $$invalidate) {\n    let $documents;\n    let $configuration;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, documents, ($$value) => $$invalidate(6, $documents = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $configuration = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(7, $selectedDocumentInfo = $$value));\n    const step = $configuration.steps[Steps.CheckDocument];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let documentInfo = void 0;\n    let image = \"\";\n    let skipBackSide = false;\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 195) {\n        {\n          $$invalidate(0, documentInfo = step.documentInfo || $selectedDocumentInfo);\n          if (!documentInfo) {\n            goToPrevStep(step, currentStepRoute, $configuration);\n          }\n          if (documentInfo) {\n            $$invalidate(2, image = getDocImage(documentInfo.type, $documents));\n            $$invalidate(3, skipBackSide = !documentInfo.backSide && !step.documentInfo);\n          }\n        }\n      }\n    };\n    return [\n      documentInfo,\n      $configuration,\n      image,\n      skipBackSide,\n      step,\n      style,\n      $documents,\n      $selectedDocumentInfo,\n      click_handler\n    ];\n  }\n  class CheckDocument extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$f, create_fragment$f, safe_not_equal, {}, add_css$f);\n    }\n  }\n  function add_css$e(target) {\n    append_styles(target, \"svelte-1iwrygj\", \".container.svelte-1iwrygj{display:flex;flex-direction:column;height:100%;padding:var(--padding);position:var(--position);background:var(--background);text-align:center}.button-container.svelte-1iwrygj{position:relative}.camera-input.svelte-1iwrygj{position:absolute;width:100%;height:100%;top:0px;left:0px;z-index:3;opacity:0}\");\n  }\n  function get_each_context$9(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[10] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_5$2(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[10].props }\n    });\n    iconbutton.$on(\"click\", ctx[8]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_4$5(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[10].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_3$9(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[10].props,\n        $$slots: { default: [create_default_slot_2$7] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 8192) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$7(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"title\",\n        module: \"document-photo-back-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$a(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[10].props,\n        $$slots: { default: [create_default_slot_1$9] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 8192) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$9(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"description\",\n        module: \"document-photo-back-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$d(ctx) {\n    let div;\n    let show_if = isNativeCamera(ctx[0]);\n    let t0;\n    let button;\n    let t1;\n    let current;\n    let if_block = show_if && create_if_block_1$b(ctx);\n    button = new Button({\n      props: {\n        configuration: ctx[10].props,\n        $$slots: { default: [create_default_slot$9] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[9]);\n    return {\n      c() {\n        div = element(\"div\");\n        if (if_block)\n          if_block.c();\n        t0 = space();\n        create_component(button.$$.fragment);\n        t1 = space();\n        attr(div, \"class\", \"button-container svelte-1iwrygj\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (if_block)\n          if_block.m(div, null);\n        append(div, t0);\n        mount_component(button, div, null);\n        append(div, t1);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (dirty & 1)\n          show_if = isNativeCamera(ctx2[0]);\n        if (show_if) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n          } else {\n            if_block = create_if_block_1$b(ctx2);\n            if_block.c();\n            if_block.m(div, t0);\n          }\n        } else if (if_block) {\n          if_block.d(1);\n          if_block = null;\n        }\n        const button_changes = {};\n        if (dirty & 8192) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (if_block)\n          if_block.d();\n        destroy_component(button);\n      }\n    };\n  }\n  function create_if_block_1$b(ctx) {\n    let input;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        input = element(\"input\");\n        attr(input, \"class\", \"camera-input svelte-1iwrygj\");\n        attr(input, \"type\", \"file\");\n        attr(input, \"accept\", \"image/*\");\n        attr(input, \"capture\", \"environment\");\n      },\n      m(target, anchor) {\n        insert(target, input, anchor);\n        if (!mounted) {\n          dispose = listen(input, \"change\", ctx[3]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(input);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function create_default_slot$9(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"button\",\n        module: \"document-photo-back-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_each_block$9(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[10].type === Elements.IconButton && create_if_block_5$2(ctx);\n    let if_block1 = ctx[10].type === Elements.Image && create_if_block_4$5(ctx);\n    let if_block2 = ctx[10].type === Elements.Title && create_if_block_3$9(ctx);\n    let if_block3 = ctx[10].type === Elements.Paragraph && create_if_block_2$a(ctx);\n    let if_block4 = ctx[10].type === Elements.Button && create_if_block$d(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[10].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.Image)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.Button)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_fragment$e(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[1].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-1iwrygj\");\n        attr(div, \"style\", ctx[2]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 11) {\n          each_value = ctx2[1].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$9(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$9(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$e($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $documents;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    component_subscribe($$self, documents, ($$value) => $$invalidate(6, $documents = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(7, $selectedDocumentInfo = $$value));\n    const step = $configuration.steps[Steps.DocumentPhotoBackStart];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let documentInfo = void 0;\n    let document2;\n    const handler = async (e) => {\n      const image = await nativeCameraHandler(e);\n      if (!documentInfo) {\n        throw Error(\"document context wasn't provided\");\n      }\n      if (!document2)\n        return;\n      const newDocumentsState = updateDocument(document2.type, image, $documents);\n      set_store_value(documents, $documents = newDocumentsState, $documents);\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    const click_handler_1 = () => goToNextStep(step, currentStepRoute, $configuration);\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 241) {\n        {\n          $$invalidate(4, documentInfo = step.documentInfo || $selectedDocumentInfo);\n          if (!documentInfo)\n            goToPrevStep(step, currentStepRoute, $configuration);\n          $$invalidate(5, document2 = $documents.find((d) => d.type === (documentInfo === null || documentInfo === void 0 ? void 0 : documentInfo.type)));\n          if (!document2)\n            goToPrevStep(step, currentStepRoute, $configuration);\n        }\n      }\n    };\n    return [\n      $configuration,\n      step,\n      style,\n      handler,\n      documentInfo,\n      document2,\n      $documents,\n      $selectedDocumentInfo,\n      click_handler,\n      click_handler_1\n    ];\n  }\n  class DocumentPhotoBackStart extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$e, create_fragment$e, safe_not_equal, {}, add_css$e);\n    }\n  }\n  function add_css$d(target) {\n    append_styles(target, \"svelte-1mwxhrr\", \".container.svelte-1mwxhrr{height:100%;position:var(--position);background:var(--background);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}\");\n  }\n  function get_each_context$8(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[11] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_5$1(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[11].props }\n    });\n    iconbutton.$on(\"click\", ctx[7]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_4$4(ctx) {\n    let videocontainer;\n    let current;\n    videocontainer = new VideoContainer({\n      props: {\n        configuration: ctx[11].props,\n        $$slots: { default: [create_default_slot_2$6] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(videocontainer.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(videocontainer, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const videocontainer_changes = {};\n        if (dirty & 16388) {\n          videocontainer_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        videocontainer.$set(videocontainer_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(videocontainer.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(videocontainer.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(videocontainer, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$6(ctx) {\n    let video_1;\n    return {\n      c() {\n        video_1 = element(\"video\");\n        video_1.autoplay = true;\n        video_1.playsInline = true;\n      },\n      m(target, anchor) {\n        insert(target, video_1, anchor);\n        ctx[8](video_1);\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(video_1);\n        ctx[8](null);\n      }\n    };\n  }\n  function create_if_block_3$8(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[11].props,\n        $$slots: { default: [create_default_slot_1$8] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 16385) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$8(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-title`,\n        module: \"document-photo-back\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-title`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$9(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[11].props,\n        $$slots: { default: [create_default_slot$8] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 16385) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$8(ctx) {\n    var _a;\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${(_a = ctx[0]) == null ? void 0 : _a.type}-description`,\n        module: \"document-photo-back\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        var _a2;\n        const t_changes = {};\n        if (dirty & 1)\n          t_changes.key = `${(_a2 = ctx2[0]) == null ? void 0 : _a2.type}-description`;\n        t2.$set(t_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$a(ctx) {\n    let camerabutton;\n    let current;\n    camerabutton = new CameraButton({\n      props: { configuration: ctx[11].props }\n    });\n    camerabutton.$on(\"click\", ctx[5]);\n    return {\n      c() {\n        create_component(camerabutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(camerabutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(camerabutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(camerabutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(camerabutton, detaching);\n      }\n    };\n  }\n  function create_each_block$8(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[11].type === Elements.IconButton && create_if_block_5$1(ctx);\n    let if_block1 = ctx[11].type === Elements.VideoContainer && create_if_block_4$4(ctx);\n    let if_block2 = ctx[11].type === Elements.Title && create_if_block_3$8(ctx);\n    let if_block3 = ctx[11].type === Elements.Paragraph && create_if_block_2$9(ctx);\n    let if_block4 = ctx[11].type === Elements.CameraButton && create_if_block_1$a(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[11].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[11].type === Elements.VideoContainer)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[11].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[11].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[11].type === Elements.CameraButton)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_if_block$c(ctx) {\n    let overlay;\n    let current;\n    overlay = new Overlay({\n      props: { type: ctx[0].type }\n    });\n    return {\n      c() {\n        create_component(overlay.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(overlay, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const overlay_changes = {};\n        if (dirty & 1)\n          overlay_changes.type = ctx2[0].type;\n        overlay.$set(overlay_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(overlay.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(overlay.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(overlay, detaching);\n      }\n    };\n  }\n  function create_fragment$d(ctx) {\n    let div;\n    let t2;\n    let current;\n    let each_value = ctx[3].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    let if_block = ctx[0] && create_if_block$c(ctx);\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        if (if_block)\n          if_block.c();\n        attr(div, \"class\", \"container svelte-1mwxhrr\");\n        attr(div, \"style\", ctx[4]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        if (if_block)\n          if_block.m(div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 47) {\n          each_value = ctx2[3].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$8(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$8(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n        if (ctx2[0]) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n            if (dirty & 1) {\n              transition_in(if_block, 1);\n            }\n          } else {\n            if_block = create_if_block$c(ctx2);\n            if_block.c();\n            transition_in(if_block, 1);\n            if_block.m(div, null);\n          }\n        } else if (if_block) {\n          group_outros();\n          transition_out(if_block, 1, 1, () => {\n            if_block = null;\n          });\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        if (if_block)\n          if_block.d();\n      }\n    };\n  }\n  function instance$d($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $documents;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $configuration = $$value));\n    component_subscribe($$self, documents, ($$value) => $$invalidate(10, $documents = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(6, $selectedDocumentInfo = $$value));\n    let video;\n    let cameraPhoto = void 0;\n    const step = $configuration.steps[Steps.DocumentPhotoBack];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let documentInfo = void 0;\n    onMount(() => {\n      if (!video)\n        return;\n      cameraPhoto = new CameraPhoto(video);\n      cameraPhoto.startCamera(build.exports.FACING_MODES.ENVIRONMENT, { width: 1920, height: 1080 }).then((stream) => {\n        console.log(\"stream\", stream);\n      }).catch((error) => {\n        console.log(\"error\", error);\n      });\n    });\n    onDestroy(() => {\n      cameraPhoto === null || cameraPhoto === void 0 ? void 0 : cameraPhoto.stopCamera();\n    });\n    const handleTakePhoto = () => {\n      const document2 = $documents.find((d) => d.type === (documentInfo === null || documentInfo === void 0 ? void 0 : documentInfo.type));\n      if (!cameraPhoto || !document2)\n        return;\n      const base64 = cameraPhoto.getDataUri($configuration.settings.cameraSettings);\n      const newDocumentsState = updateDocument(document2.type, base64, $documents);\n      set_store_value(documents, $documents = newDocumentsState, $documents);\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    function video_1_binding($$value) {\n      binding_callbacks[$$value ? \"unshift\" : \"push\"](() => {\n        video = $$value;\n        $$invalidate(2, video);\n      });\n    }\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 67) {\n        {\n          $$invalidate(0, documentInfo = step.documentInfo || $selectedDocumentInfo);\n          if (!documentInfo) {\n            goToPrevStep(step, currentStepRoute, $configuration);\n          }\n        }\n      }\n    };\n    return [\n      documentInfo,\n      $configuration,\n      video,\n      step,\n      style,\n      handleTakePhoto,\n      $selectedDocumentInfo,\n      click_handler,\n      video_1_binding\n    ];\n  }\n  class DocumentPhotoBack extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$d, create_fragment$d, safe_not_equal, {}, add_css$d);\n    }\n  }\n  function add_css$c(target) {\n    append_styles(target, \"svelte-1c0mazk\", \".container.svelte-1c0mazk{padding:var(--padding);position:var(--position);background:var(--background);text-align:center;height:100%;display:flex;flex-direction:column}\");\n  }\n  function get_each_context$7(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[8] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_3$7(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[8].props }\n    });\n    iconbutton.$on(\"click\", ctx[7]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_2$8(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[8].props,\n        $$slots: { default: [create_default_slot_1$7] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 2048) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$7(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"title\",\n        module: \"check-document-photo-back\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$9(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[8].props,\n        $$slots: { default: [create_default_slot$7] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 2048) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$7(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"description\",\n        module: \"check-document-photo-back\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$b(ctx) {\n    let photo;\n    let current;\n    photo = new Photo({\n      props: {\n        configuration: ctx[8].props,\n        src: ctx[1]\n      }\n    });\n    return {\n      c() {\n        create_component(photo.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(photo, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const photo_changes = {};\n        if (dirty & 2)\n          photo_changes.src = ctx2[1];\n        photo.$set(photo_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(photo.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(photo.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(photo, detaching);\n      }\n    };\n  }\n  function create_each_block$7(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[8].type === Elements.IconButton && create_if_block_3$7(ctx);\n    let if_block1 = ctx[8].type === Elements.Title && create_if_block_2$8(ctx);\n    let if_block2 = ctx[8].type === Elements.Paragraph && create_if_block_1$9(ctx);\n    let if_block3 = ctx[8].type === Elements.Photo && create_if_block$b(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[8].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[8].type === Elements.Title)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[8].type === Elements.Paragraph)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[8].type === Elements.Photo)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$c(ctx) {\n    let div;\n    let t2;\n    let navigationbuttons;\n    let current;\n    let each_value = ctx[2].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    navigationbuttons = new NavigationButtons({ props: { step: ctx[2] } });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        create_component(navigationbuttons.$$.fragment);\n        attr(div, \"class\", \"container svelte-1c0mazk\");\n        attr(div, \"style\", ctx[3]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        mount_component(navigationbuttons, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 7) {\n          each_value = ctx2[2].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$7(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$7(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(navigationbuttons.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(navigationbuttons.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        destroy_component(navigationbuttons);\n      }\n    };\n  }\n  function instance$c($$self, $$props, $$invalidate) {\n    let $documents;\n    let $configuration;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, documents, ($$value) => $$invalidate(5, $documents = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(6, $selectedDocumentInfo = $$value));\n    const step = $configuration.steps[Steps.CheckDocumentPhotoBack];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let image;\n    let documentInfo = void 0;\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 113) {\n        {\n          $$invalidate(4, documentInfo = step.documentInfo || $selectedDocumentInfo);\n          if ($documents.length === 0 || !documentInfo) {\n            goToPrevStep(step, currentStepRoute, $configuration);\n          }\n          if (documentInfo) {\n            $$invalidate(1, image = getDocImage(documentInfo.type, $documents, \"back\"));\n          }\n        }\n      }\n    };\n    return [\n      $configuration,\n      image,\n      step,\n      style,\n      documentInfo,\n      $documents,\n      $selectedDocumentInfo,\n      click_handler\n    ];\n  }\n  class CheckDocumentPhotoBack extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$c, create_fragment$c, safe_not_equal, {}, add_css$c);\n    }\n  }\n  var DecisionStatus = /* @__PURE__ */ ((DecisionStatus2) => {\n    DecisionStatus2[\"APPROVED\"] = \"approved\";\n    DecisionStatus2[\"RESUBMISSION_REQUESTED\"] = \"resubmission_requested\";\n    DecisionStatus2[\"DECLINED\"] = \"declined\";\n    DecisionStatus2[\"EXPIRED\"] = \"expired\";\n    DecisionStatus2[\"ABANDONED\"] = \"abandoned\";\n    DecisionStatus2[\"REVIEW\"] = \"review\";\n    return DecisionStatus2;\n  })(DecisionStatus || {});\n  function add_css$b(target) {\n    append_styles(target, \"svelte-1xr1kex\", \".container.svelte-1xr1kex{display:flex;flex-direction:column;padding:var(--padding);position:relative;background:var(--background);text-align:center;height:100%}\");\n  }\n  function get_each_context$6(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[5] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_4$3(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[5].props }\n    });\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_3$6(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[5].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_2$7(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot_2$5] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 256) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$5(ctx) {\n    let t2;\n    let current;\n    t2 = new T({ props: { key: \"title\", module: \"final\" } });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$8(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot_1$6] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 256) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$6(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: ctx[5].props.context || \"description\",\n        module: \"final\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$a(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot$6] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[2]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 256) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot$6(ctx) {\n    let t0;\n    let t1;\n    let current;\n    t0 = new T({\n      props: { key: \"button\", module: \"final\" }\n    });\n    return {\n      c() {\n        create_component(t0.$$.fragment);\n        t1 = space();\n      },\n      m(target, anchor) {\n        mount_component(t0, target, anchor);\n        insert(target, t1, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t0.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t0.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t0, detaching);\n        if (detaching)\n          detach(t1);\n      }\n    };\n  }\n  function create_each_block$6(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[5].type === Elements.IconButton && create_if_block_4$3(ctx);\n    let if_block1 = ctx[5].type === Elements.Image && create_if_block_3$6(ctx);\n    let if_block2 = ctx[5].type === Elements.Title && create_if_block_2$7(ctx);\n    let if_block3 = ctx[5].type === Elements.Paragraph && create_if_block_1$8(ctx);\n    let if_block4 = ctx[5].type === Elements.Button && create_if_block$a(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[5].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Image)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Button)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_fragment$b(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[0].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-1xr1kex\");\n        attr(div, \"style\", ctx[1]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 5) {\n          each_value = ctx2[0].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$6(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$6(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$b($$self, $$props, $$invalidate) {\n    let $currentParams;\n    let $configuration;\n    component_subscribe($$self, currentParams, ($$value) => $$invalidate(3, $currentParams = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(4, $configuration = $$value));\n    const step = $configuration.steps[Steps.Final];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    flowApproved();\n    const handleClose = () => {\n      sendFlowCompleteEvent({\n        status: \"completed\",\n        idvResult: DecisionStatus.APPROVED\n      });\n      addCloseToURLParams();\n    };\n    onDestroy(() => {\n      set_store_value(currentParams, $currentParams = null, $currentParams);\n    });\n    return [step, style, handleClose];\n  }\n  class Final extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$b, create_fragment$b, safe_not_equal, {}, add_css$b);\n    }\n  }\n  function add_css$a(target) {\n    append_styles(target, \"svelte-fmiwiv\", \".container.svelte-fmiwiv{display:flex;flex-direction:column;padding:var(--padding);position:var(--position);text-align:center;height:100%;background:var(--background)}.button-container.svelte-fmiwiv{position:relative}.camera-input.svelte-fmiwiv{position:absolute;width:100%;height:100%;top:0px;left:0px;z-index:3;opacity:0;cursor:pointer}\");\n  }\n  function get_each_context$5(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[9] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_5(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[9].props }\n    });\n    iconbutton.$on(\"click\", ctx[6]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_4$2(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[9].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_3$5(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot_2$4] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 4096) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$4(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"title\", module: \"selfie-start\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$6(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot_1$5] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 4096) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$5(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: ctx[9].props.context || \"description\",\n        module: \"selfie-start\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$9(ctx) {\n    let div;\n    let show_if = isNativeCamera(ctx[1]);\n    let t0;\n    let button;\n    let t1;\n    let current;\n    let if_block = show_if && create_if_block_1$7(ctx);\n    button = new Button({\n      props: {\n        configuration: ctx[9].props,\n        $$slots: { default: [create_default_slot$5] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[7]);\n    return {\n      c() {\n        div = element(\"div\");\n        if (if_block)\n          if_block.c();\n        t0 = space();\n        create_component(button.$$.fragment);\n        t1 = space();\n        attr(div, \"class\", \"button-container svelte-fmiwiv\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (if_block)\n          if_block.m(div, null);\n        append(div, t0);\n        mount_component(button, div, null);\n        append(div, t1);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (dirty & 2)\n          show_if = isNativeCamera(ctx2[1]);\n        if (show_if) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n          } else {\n            if_block = create_if_block_1$7(ctx2);\n            if_block.c();\n            if_block.m(div, t0);\n          }\n        } else if (if_block) {\n          if_block.d(1);\n          if_block = null;\n        }\n        const button_changes = {};\n        if (dirty & 4096) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (if_block)\n          if_block.d();\n        destroy_component(button);\n      }\n    };\n  }\n  function create_if_block_1$7(ctx) {\n    let input;\n    let mounted;\n    let dispose;\n    return {\n      c() {\n        input = element(\"input\");\n        attr(input, \"class\", \"camera-input svelte-fmiwiv\");\n        attr(input, \"type\", \"file\");\n        attr(input, \"accept\", \"image/*\");\n        attr(input, \"capture\", \"user\");\n      },\n      m(target, anchor) {\n        insert(target, input, anchor);\n        if (!mounted) {\n          dispose = listen(input, \"change\", ctx[4]);\n          mounted = true;\n        }\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(input);\n        mounted = false;\n        dispose();\n      }\n    };\n  }\n  function create_default_slot$5(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"button\", module: \"selfie-start\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_each_block$5(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[9].type === Elements.IconButton && create_if_block_5(ctx);\n    let if_block1 = ctx[9].type === Elements.Image && create_if_block_4$2(ctx);\n    let if_block2 = ctx[9].type === Elements.Title && create_if_block_3$5(ctx);\n    let if_block3 = ctx[9].type === Elements.Paragraph && create_if_block_2$6(ctx);\n    let if_block4 = ctx[9].type === Elements.Button && create_if_block$9(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[9].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Image)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[9].type === Elements.Button)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_fragment$a(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[2].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-fmiwiv\");\n        attr(div, \"style\", ctx[3]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 23) {\n          each_value = ctx2[2].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$5(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$5(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$a($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $selfieUri;\n    let $selectedDocumentInfo;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $configuration = $$value));\n    component_subscribe($$self, selfieUri, ($$value) => $$invalidate(8, $selfieUri = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(5, $selectedDocumentInfo = $$value));\n    const step = $configuration.steps[Steps.SelfieStart];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let skipBackSide = false;\n    const handler = async (e) => {\n      if (!e.target)\n        return;\n      set_store_value(selfieUri, $selfieUri = await nativeCameraHandler(e), $selfieUri);\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration, skipBackSide ? \"back-side\" : void 0);\n    const click_handler_1 = () => goToNextStep(step, currentStepRoute, $configuration);\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 32) {\n        {\n          if ($selectedDocumentInfo && !$selectedDocumentInfo.backSide) {\n            $$invalidate(0, skipBackSide = true);\n          }\n        }\n      }\n    };\n    return [\n      skipBackSide,\n      $configuration,\n      step,\n      style,\n      handler,\n      $selectedDocumentInfo,\n      click_handler,\n      click_handler_1\n    ];\n  }\n  class SelfieStart extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$a, create_fragment$a, safe_not_equal, {}, add_css$a);\n    }\n  }\n  const isMobile = () => {\n    const toMatch = [/Android/i, /webOS/i, /iPhone/i, /iPad/i, /iPod/i, /BlackBerry/i, /Windows Phone/i];\n    return toMatch.some((toMatchItem) => {\n      return navigator.userAgent.match(toMatchItem);\n    });\n  };\n  function add_css$9(target) {\n    append_styles(target, \"svelte-1mwxhrr\", \".container.svelte-1mwxhrr{height:100%;position:var(--position);background:var(--background);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}\");\n  }\n  function get_each_context$4(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[10] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_4$1(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[10].props }\n    });\n    iconbutton.$on(\"click\", ctx[5]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_3$4(ctx) {\n    let videocontainer;\n    let current;\n    videocontainer = new VideoContainer({\n      props: {\n        configuration: ctx[10].props,\n        isSelfie: true,\n        $$slots: { default: [create_default_slot_2$3] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(videocontainer.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(videocontainer, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const videocontainer_changes = {};\n        if (dirty & 8193) {\n          videocontainer_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        videocontainer.$set(videocontainer_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(videocontainer.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(videocontainer.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(videocontainer, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$3(ctx) {\n    let video_1;\n    return {\n      c() {\n        video_1 = element(\"video\");\n        video_1.autoplay = true;\n        video_1.playsInline = true;\n      },\n      m(target, anchor) {\n        insert(target, video_1, anchor);\n        ctx[6](video_1);\n      },\n      p: noop,\n      d(detaching) {\n        if (detaching)\n          detach(video_1);\n        ctx[6](null);\n      }\n    };\n  }\n  function create_if_block_2$5(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[10].props,\n        $$slots: { default: [create_default_slot_1$4] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 8192) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$4(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"title\", module: \"selfie\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$6(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[10].props,\n        $$slots: { default: [create_default_slot$4] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 8192) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$4(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"description\", module: \"selfie\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$8(ctx) {\n    let camerabutton;\n    let current;\n    camerabutton = new CameraButton({\n      props: { configuration: ctx[10].props }\n    });\n    camerabutton.$on(\"click\", ctx[4]);\n    return {\n      c() {\n        create_component(camerabutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(camerabutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(camerabutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(camerabutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(camerabutton, detaching);\n      }\n    };\n  }\n  function create_each_block$4(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let t3;\n    let if_block4_anchor;\n    let current;\n    let if_block0 = ctx[10].type === Elements.IconButton && create_if_block_4$1(ctx);\n    let if_block1 = ctx[10].type === Elements.VideoContainer && create_if_block_3$4(ctx);\n    let if_block2 = ctx[10].type === Elements.Title && create_if_block_2$5(ctx);\n    let if_block3 = ctx[10].type === Elements.Paragraph && create_if_block_1$6(ctx);\n    let if_block4 = ctx[10].type === Elements.CameraButton && create_if_block$8(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        t3 = space();\n        if (if_block4)\n          if_block4.c();\n        if_block4_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, t3, anchor);\n        if (if_block4)\n          if_block4.m(target, anchor);\n        insert(target, if_block4_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[10].type === Elements.IconButton)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.VideoContainer)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n        if (ctx2[10].type === Elements.CameraButton)\n          if_block4.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        transition_in(if_block4);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        transition_out(if_block4);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(t3);\n        if (if_block4)\n          if_block4.d(detaching);\n        if (detaching)\n          detach(if_block4_anchor);\n      }\n    };\n  }\n  function create_fragment$9(ctx) {\n    let div;\n    let t2;\n    let overlay;\n    let current;\n    let each_value = ctx[2].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    overlay = new Overlay({ props: { type: DocumentType.SELFIE } });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        create_component(overlay.$$.fragment);\n        attr(div, \"class\", \"container svelte-1mwxhrr\");\n        attr(div, \"style\", ctx[3]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        mount_component(overlay, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 23) {\n          each_value = ctx2[2].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$4(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$4(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(overlay.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(overlay.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        destroy_component(overlay);\n      }\n    };\n  }\n  function instance$9($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $selfieUri;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(1, $configuration = $$value));\n    component_subscribe($$self, selfieUri, ($$value) => $$invalidate(8, $selfieUri = $$value));\n    let video;\n    let cameraPhoto = void 0;\n    const step = $configuration.steps[Steps.Selfie];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const facingMode = isMobile() ? build.exports.FACING_MODES.USER : build.exports.FACING_MODES.ENVIRONMENT;\n    onMount(() => {\n      if (!video)\n        return;\n      cameraPhoto = new CameraPhoto(video);\n      cameraPhoto.startCamera(facingMode, { width: 1920, height: 1080 }).then((stream) => {\n        console.log(\"stream\", stream);\n      }).catch((error) => {\n        console.log(\"error\", error);\n      });\n    });\n    onDestroy(() => {\n      cameraPhoto === null || cameraPhoto === void 0 ? void 0 : cameraPhoto.stopCamera();\n    });\n    const handleTakePhoto = () => {\n      if (!cameraPhoto)\n        return;\n      const dataUri = cameraPhoto.getDataUri($configuration.settings.selfieCameraSettings);\n      set_store_value(selfieUri, $selfieUri = dataUri, $selfieUri);\n      goToNextStep(step, currentStepRoute, $configuration);\n    };\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    function video_1_binding($$value) {\n      binding_callbacks[$$value ? \"unshift\" : \"push\"](() => {\n        video = $$value;\n        $$invalidate(0, video);\n      });\n    }\n    return [\n      video,\n      $configuration,\n      step,\n      style,\n      handleTakePhoto,\n      click_handler,\n      video_1_binding\n    ];\n  }\n  class Selfie extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$9, create_fragment$9, safe_not_equal, {}, add_css$9);\n    }\n  }\n  function add_css$8(target) {\n    append_styles(target, \"svelte-1c0mazk\", \".container.svelte-1c0mazk{padding:var(--padding);position:var(--position);background:var(--background);text-align:center;height:100%;display:flex;flex-direction:column}\");\n  }\n  function get_each_context$3(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[5] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_3$3(ctx) {\n    let photo;\n    let current;\n    photo = new Photo({\n      props: {\n        src: ctx[1],\n        configuration: ctx[5].props\n      }\n    });\n    return {\n      c() {\n        create_component(photo.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(photo, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const photo_changes = {};\n        if (dirty & 2)\n          photo_changes.src = ctx2[1];\n        photo.$set(photo_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(photo.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(photo.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(photo, detaching);\n      }\n    };\n  }\n  function create_if_block_2$4(ctx) {\n    let iconbutton;\n    let current;\n    iconbutton = new IconButton({\n      props: { configuration: ctx[5].props }\n    });\n    iconbutton.$on(\"click\", ctx[4]);\n    return {\n      c() {\n        create_component(iconbutton.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(iconbutton, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(iconbutton.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(iconbutton.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(iconbutton, detaching);\n      }\n    };\n  }\n  function create_if_block_1$5(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot_1$3] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 256) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$3(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"title\", module: \"check-selfie\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$7(ctx) {\n    let paragraph;\n    let current;\n    paragraph = new Paragraph({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot$3] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(paragraph.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(paragraph, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const paragraph_changes = {};\n        if (dirty & 256) {\n          paragraph_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        paragraph.$set(paragraph_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(paragraph.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(paragraph.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(paragraph, detaching);\n      }\n    };\n  }\n  function create_default_slot$3(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: \"description\",\n        module: \"check-selfie\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_each_block$3(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[5].type === Elements.Photo && create_if_block_3$3(ctx);\n    let if_block1 = ctx[5].type === Elements.IconButton && create_if_block_2$4(ctx);\n    let if_block2 = ctx[5].type === Elements.Title && create_if_block_1$5(ctx);\n    let if_block3 = ctx[5].type === Elements.Paragraph && create_if_block$7(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[5].type === Elements.Photo)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.IconButton)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Title)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Paragraph)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$8(ctx) {\n    let div;\n    let t2;\n    let navigationbuttons;\n    let current;\n    let each_value = ctx[2].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    navigationbuttons = new NavigationButtons({ props: { step: ctx[2] } });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        t2 = space();\n        create_component(navigationbuttons.$$.fragment);\n        attr(div, \"class\", \"container svelte-1c0mazk\");\n        attr(div, \"style\", ctx[3]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        append(div, t2);\n        mount_component(navigationbuttons, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 7) {\n          each_value = ctx2[2].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$3(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$3(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, t2);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        transition_in(navigationbuttons.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        transition_out(navigationbuttons.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n        destroy_component(navigationbuttons);\n      }\n    };\n  }\n  function instance$8($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $selfieUri;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    component_subscribe($$self, selfieUri, ($$value) => $$invalidate(1, $selfieUri = $$value));\n    const step = $configuration.steps[Steps.CheckSelfie];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const click_handler = () => goToPrevStep(step, currentStepRoute, $configuration);\n    return [$configuration, $selfieUri, step, style, click_handler];\n  }\n  class CheckSelfie extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$8, create_fragment$8, safe_not_equal, {}, add_css$8);\n    }\n  }\n  function add_css$7(target) {\n    append_styles(target, \"svelte-iex540\", \".container.svelte-iex540{padding:var(--padding);position:relative;background:var(--background);text-align:center;height:100%}.text-container.svelte-iex540{position:absolute;top:50%;left:50%;transform:translate(-50%, calc(-50% + -86px));z-index:100}\");\n  }\n  function create_if_block$6(ctx) {\n    let current_block_type_index;\n    let if_block;\n    let if_block_anchor;\n    let current;\n    const if_block_creators = [create_if_block_1$4, create_else_block$1];\n    const if_blocks = [];\n    function select_block_type(ctx2, dirty) {\n      return 0;\n    }\n    current_block_type_index = select_block_type();\n    if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n    return {\n      c() {\n        if_block.c();\n        if_block_anchor = empty();\n      },\n      m(target, anchor) {\n        if_blocks[current_block_type_index].m(target, anchor);\n        insert(target, if_block_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if_block.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if_blocks[current_block_type_index].d(detaching);\n        if (detaching)\n          detach(if_block_anchor);\n      }\n    };\n  }\n  function create_else_block$1(ctx) {\n    let div;\n    let flyingtext;\n    let current;\n    flyingtext = new FlyingText({\n      props: {\n        texts: [\n          {\n            text: t(\"loader\", \"text-three\"),\n            startTime: 1e3,\n            endTime: \"infinity\"\n          }\n        ]\n      }\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        create_component(flyingtext.$$.fragment);\n        attr(div, \"class\", \"text-container svelte-iex540\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        mount_component(flyingtext, div, null);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(flyingtext.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(flyingtext.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_component(flyingtext);\n      }\n    };\n  }\n  function create_if_block_1$4(ctx) {\n    let div;\n    let flyingtext;\n    let current;\n    flyingtext = new FlyingText({\n      props: {\n        texts: [\n          {\n            text: t(\"loader\", \"text-one\"),\n            startTime: 3e3,\n            endTime: 5e3\n          },\n          {\n            text: t(\"loader\", \"text-two\"),\n            startTime: 6e3,\n            endTime: \"infinity\"\n          }\n        ]\n      }\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        create_component(flyingtext.$$.fragment);\n        attr(div, \"class\", \"text-container svelte-iex540\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        mount_component(flyingtext, div, null);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(flyingtext.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(flyingtext.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_component(flyingtext);\n      }\n    };\n  }\n  function create_fragment$7(ctx) {\n    let div;\n    let t_1;\n    let loader;\n    let current;\n    let if_block = ctx[0] && create_if_block$6(ctx);\n    loader = new Loader({});\n    return {\n      c() {\n        div = element(\"div\");\n        if (if_block)\n          if_block.c();\n        t_1 = space();\n        create_component(loader.$$.fragment);\n        attr(div, \"class\", \"container svelte-iex540\");\n        attr(div, \"style\", ctx[1]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (if_block)\n          if_block.m(div, null);\n        append(div, t_1);\n        mount_component(loader, div, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (ctx2[0]) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n            if (dirty & 1) {\n              transition_in(if_block, 1);\n            }\n          } else {\n            if_block = create_if_block$6(ctx2);\n            if_block.c();\n            transition_in(if_block, 1);\n            if_block.m(div, t_1);\n          }\n        } else if (if_block) {\n          group_outros();\n          transition_out(if_block, 1, 1, () => {\n            if_block = null;\n          });\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        transition_in(loader.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        transition_out(loader.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (if_block)\n          if_block.d();\n        destroy_component(loader);\n      }\n    };\n  }\n  function instance$7($$self, $$props, $$invalidate) {\n    let $currentStepRoute;\n    let $selfieUri;\n    let $selectedDocumentInfo;\n    let $documents;\n    let $configuration;\n    let $currentParams;\n    component_subscribe($$self, currentStepRoute, ($$value) => $$invalidate(5, $currentStepRoute = $$value));\n    component_subscribe($$self, selfieUri, ($$value) => $$invalidate(6, $selfieUri = $$value));\n    component_subscribe($$self, selectedDocumentInfo, ($$value) => $$invalidate(7, $selectedDocumentInfo = $$value));\n    component_subscribe($$self, documents, ($$value) => $$invalidate(8, $documents = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(9, $configuration = $$value));\n    component_subscribe($$self, currentParams, ($$value) => $$invalidate(10, $currentParams = $$value));\n    flowUploadLoader();\n    const WAITING_TIME = 1e3 * 60 * 3;\n    const step = $configuration.steps[Steps.Loading];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    let timeout;\n    let veryficationTimeout;\n    let showText = true;\n    const broofa = () => {\n      return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {\n        var r = Math.random() * 16 | 0, v = c == \"x\" ? r : r & 3 | 8;\n        return v.toString(16);\n      });\n    };\n    const endUserId = $configuration.endUserInfo.id || broofa();\n    const checkStatus = async (data) => {\n      try {\n        const response = await getVerificationStatus($configuration, endUserId);\n        if (response.status === \"pending\") {\n          veryficationTimeout = setTimeout(() => checkStatus(data), 2e3);\n          return;\n        }\n        const params = generateParams(response);\n        sendVerificationUpdateEvent(response, response.idvResult === DecisionStatus.APPROVED);\n        $$invalidate(0, showText = false);\n        if (response.idvResult === DecisionStatus.DECLINED || response.idvResult === DecisionStatus.REVIEW) {\n          set_store_value(currentParams, $currentParams = params, $currentParams);\n          set_store_value(currentStepRoute, $currentStepRoute = \"/decline\", $currentStepRoute);\n        }\n        if (response.idvResult === DecisionStatus.RESUBMISSION_REQUESTED) {\n          set_store_value(currentParams, $currentParams = params, $currentParams);\n          set_store_value(currentStepRoute, $currentStepRoute = \"/resubmission\", $currentStepRoute);\n        }\n        if (response.idvResult === DecisionStatus.APPROVED) {\n          set_store_value(currentParams, $currentParams = params, $currentParams);\n          set_store_value(currentStepRoute, $currentStepRoute = \"/final\", $currentStepRoute);\n        }\n      } catch (error) {\n        toast.push(t(\"general\", \"errorDocumentVerification\"));\n        veryficationTimeout = setTimeout(() => checkStatus(data), 2e3);\n      }\n    };\n    const makeRequest = async (data) => {\n      let res;\n      try {\n        res = await verifyDocuments(data, endUserId, $configuration);\n      } catch (error) {\n        toast.push(t(\"general\", \"errorDocuments\"));\n        console.error(\"Error sending documents\", error);\n        set_store_value(currentParams, $currentParams = { message: error }, $currentParams);\n        set_store_value(currentStepRoute, $currentStepRoute = \"/error\", $currentStepRoute);\n        return;\n      }\n      const flowConfig = getFlowConfig($configuration);\n      if (flowConfig.syncFlow) {\n        checkStatus(res);\n        return;\n      }\n      $$invalidate(0, showText = false);\n      set_store_value(currentStepRoute, $currentStepRoute = \"/final\", $currentStepRoute);\n    };\n    onMount(() => {\n      const data = {\n        docs: $documents,\n        selectedDocumentInfo: $selectedDocumentInfo,\n        selfie: $selfieUri\n      };\n      makeRequest(data);\n      timeout = setTimeout(() => {\n        $$invalidate(0, showText = false);\n        set_store_value(currentStepRoute, $currentStepRoute = \"/decline\", $currentStepRoute);\n      }, WAITING_TIME);\n    });\n    onDestroy(() => {\n      if (timeout) {\n        clearTimeout(timeout);\n      }\n      if (veryficationTimeout) {\n        clearTimeout(veryficationTimeout);\n      }\n    });\n    return [showText, style];\n  }\n  class Loading extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$7, create_fragment$7, safe_not_equal, {}, add_css$7);\n    }\n  }\n  function add_css$6(target) {\n    append_styles(target, \"svelte-15w5f6s\", \"div.svelte-15w5f6s{background:var(--background);border:var(--border);color:var(--color);border-radius:var(--border-radius);padding:var(--padding);margin:var(--margin);font-size:var(--font-size);text-align:var(--text-align)}\");\n  }\n  function create_fragment$6(ctx) {\n    let div;\n    let current;\n    const default_slot_template = ctx[3].default;\n    const default_slot = create_slot(default_slot_template, ctx, ctx[2], null);\n    return {\n      c() {\n        div = element(\"div\");\n        if (default_slot)\n          default_slot.c();\n        attr(div, \"style\", ctx[0]);\n        attr(div, \"class\", \"svelte-15w5f6s\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (default_slot) {\n          default_slot.m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (default_slot) {\n          if (default_slot.p && (!current || dirty & 4)) {\n            update_slot_base(default_slot, default_slot_template, ctx2, ctx2[2], !current ? get_all_dirty_from_scope(ctx2[2]) : get_slot_changes(default_slot_template, ctx2[2], dirty, null), null);\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(default_slot, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(default_slot, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (default_slot)\n          default_slot.d(detaching);\n      }\n    };\n  }\n  function instance$6($$self, $$props, $$invalidate) {\n    let $globalConfiguration;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(4, $globalConfiguration = $$value));\n    let { $$slots: slots = {}, $$scope } = $$props;\n    let { configuration: configuration$12 } = $$props;\n    const styleProps = configuration$12.style;\n    const style = makeStylesFromConfiguration($globalConfiguration.errorText, styleProps);\n    $$self.$$set = ($$props2) => {\n      if (\"configuration\" in $$props2)\n        $$invalidate(1, configuration$12 = $$props2.configuration);\n      if (\"$$scope\" in $$props2)\n        $$invalidate(2, $$scope = $$props2.$$scope);\n    };\n    return [style, configuration$12, $$scope, slots];\n  }\n  class ErrorText extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$6, create_fragment$6, safe_not_equal, { configuration: 1 }, add_css$6);\n    }\n  }\n  function add_css$5(target) {\n    append_styles(target, \"svelte-1a87a67\", \".container.svelte-1a87a67{padding:var(--padding);position:relative;background:var(--background);text-align:center;height:100%;display:flex;flex-direction:column}\");\n  }\n  function get_each_context$2(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[8] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_3$2(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[8].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_2$3(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[8].props,\n        $$slots: { default: [create_default_slot_2$2] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 2048) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$2(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${ctx[2]}-title`,\n        module: \"resubmission\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$3(ctx) {\n    let errortext;\n    let current;\n    errortext = new ErrorText({\n      props: {\n        configuration: ctx[8].props,\n        $$slots: { default: [create_default_slot_1$2] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(errortext.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(errortext, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const errortext_changes = {};\n        if (dirty & 2048) {\n          errortext_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        errortext.$set(errortext_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(errortext.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(errortext.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(errortext, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$2(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: {\n        key: `${ctx[2]}-description`,\n        module: \"resubmission\"\n      }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$5(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[8].props,\n        $$slots: { default: [create_default_slot$2] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[3]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 2048) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot$2(ctx) {\n    let t0;\n    let t1;\n    let current;\n    t0 = new T({\n      props: {\n        key: `${ctx[2]}-button`,\n        module: \"resubmission\"\n      }\n    });\n    return {\n      c() {\n        create_component(t0.$$.fragment);\n        t1 = space();\n      },\n      m(target, anchor) {\n        mount_component(t0, target, anchor);\n        insert(target, t1, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t0.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t0.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t0, detaching);\n        if (detaching)\n          detach(t1);\n      }\n    };\n  }\n  function create_each_block$2(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[8].type === Elements.Image && create_if_block_3$2(ctx);\n    let if_block1 = ctx[8].type === Elements.Title && create_if_block_2$3(ctx);\n    let if_block2 = ctx[8].type === Elements.ErrorText && create_if_block_1$3(ctx);\n    let if_block3 = ctx[8].type === Elements.Button && create_if_block$5(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[8].type === Elements.Image)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[8].type === Elements.Title)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[8].type === Elements.ErrorText)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[8].type === Elements.Button)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$5(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[0].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-1a87a67\");\n        attr(div, \"style\", ctx[1]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 13) {\n          each_value = ctx2[0].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$2(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$2(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$5($$self, $$props, $$invalidate) {\n    let $currentParams;\n    let $currentStepRoute;\n    let $configuration;\n    component_subscribe($$self, currentParams, ($$value) => $$invalidate(4, $currentParams = $$value));\n    component_subscribe($$self, currentStepRoute, ($$value) => $$invalidate(5, $currentStepRoute = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(6, $configuration = $$value));\n    const step = $configuration.steps[Steps.Resubmission];\n    const hasDocumentSelection = !!$configuration.steps[Steps.DocumentSelection];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const reasonCode = $currentParams ? $currentParams.reasonCode : null;\n    const handleNavigate = () => {\n      if (hasDocumentSelection) {\n        set_store_value(currentStepRoute, $currentStepRoute = \"/select-document\", $currentStepRoute);\n        return;\n      }\n      set_store_value(currentStepRoute, $currentStepRoute = \"/document-start\", $currentStepRoute);\n    };\n    onDestroy(() => {\n      set_store_value(currentParams, $currentParams = null, $currentParams);\n    });\n    flowResubmission();\n    return [step, style, reasonCode, handleNavigate];\n  }\n  class Resubmission extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$5, create_fragment$5, safe_not_equal, {}, add_css$5);\n    }\n  }\n  function add_css$4(target) {\n    append_styles(target, \"svelte-1a87a67\", \".container.svelte-1a87a67{padding:var(--padding);position:relative;background:var(--background);text-align:center;height:100%;display:flex;flex-direction:column}\");\n  }\n  function get_each_context$1(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[5] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_3$1(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[5].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_2$2(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot_2$1] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 256) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2$1(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"title\", module: \"decline\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$2(ctx) {\n    let errortext;\n    let current;\n    errortext = new ErrorText({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot_1$1] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(errortext.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(errortext, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const errortext_changes = {};\n        if (dirty & 256) {\n          errortext_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        errortext.$set(errortext_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(errortext.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(errortext.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(errortext, detaching);\n      }\n    };\n  }\n  function create_default_slot_1$1(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"description\", module: \"decline\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block$4(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[5].props,\n        $$slots: { default: [create_default_slot$1] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[2]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 256) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot$1(ctx) {\n    let t0;\n    let t1;\n    let current;\n    t0 = new T({\n      props: { key: \"button\", module: \"decline\" }\n    });\n    return {\n      c() {\n        create_component(t0.$$.fragment);\n        t1 = space();\n      },\n      m(target, anchor) {\n        mount_component(t0, target, anchor);\n        insert(target, t1, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t0.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t0.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t0, detaching);\n        if (detaching)\n          detach(t1);\n      }\n    };\n  }\n  function create_each_block$1(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[5].type === Elements.Image && create_if_block_3$1(ctx);\n    let if_block1 = ctx[5].type === Elements.Title && create_if_block_2$2(ctx);\n    let if_block2 = ctx[5].type === Elements.ErrorText && create_if_block_1$2(ctx);\n    let if_block3 = ctx[5].type === Elements.Button && create_if_block$4(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[5].type === Elements.Image)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Title)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.ErrorText)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[5].type === Elements.Button)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$4(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[0].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-1a87a67\");\n        attr(div, \"style\", ctx[1]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 5) {\n          each_value = ctx2[0].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context$1(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block$1(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$4($$self, $$props, $$invalidate) {\n    let $currentParams;\n    let $configuration;\n    component_subscribe($$self, currentParams, ($$value) => $$invalidate(3, $currentParams = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(4, $configuration = $$value));\n    const step = $configuration.steps[Steps.Decline];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const handleClose = () => {\n      sendFlowCompleteEvent({\n        status: \"completed\",\n        idvResult: DecisionStatus.DECLINED\n      });\n      addCloseToURLParams();\n    };\n    onDestroy(() => {\n      set_store_value(currentParams, $currentParams = null, $currentParams);\n    });\n    flowDeclined();\n    return [step, style, handleClose];\n  }\n  class Decline extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$4, create_fragment$4, safe_not_equal, {}, add_css$4);\n    }\n  }\n  function add_css$3(target) {\n    append_styles(target, \"svelte-1a87a67\", \".container.svelte-1a87a67{padding:var(--padding);position:relative;background:var(--background);text-align:center;height:100%;display:flex;flex-direction:column}\");\n  }\n  function get_each_context(ctx, list, i) {\n    const child_ctx = ctx.slice();\n    child_ctx[6] = list[i];\n    return child_ctx;\n  }\n  function create_if_block_4(ctx) {\n    let image;\n    let current;\n    image = new Image$1({\n      props: { configuration: ctx[6].props }\n    });\n    return {\n      c() {\n        create_component(image.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(image, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(image.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(image.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(image, detaching);\n      }\n    };\n  }\n  function create_if_block_3(ctx) {\n    let title;\n    let current;\n    title = new Title({\n      props: {\n        configuration: ctx[6].props,\n        $$slots: { default: [create_default_slot_2] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(title.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(title, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const title_changes = {};\n        if (dirty & 512) {\n          title_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        title.$set(title_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(title.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(title.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(title, detaching);\n      }\n    };\n  }\n  function create_default_slot_2(ctx) {\n    let t2;\n    let current;\n    t2 = new T({ props: { key: \"title\", module: \"error\" } });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_1$1(ctx) {\n    let errortext;\n    let current;\n    errortext = new ErrorText({\n      props: {\n        configuration: ctx[6].props,\n        $$slots: { default: [create_default_slot_1] },\n        $$scope: { ctx }\n      }\n    });\n    return {\n      c() {\n        create_component(errortext.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(errortext, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const errortext_changes = {};\n        if (dirty & 512) {\n          errortext_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        errortext.$set(errortext_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(errortext.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(errortext.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(errortext, detaching);\n      }\n    };\n  }\n  function create_else_block(ctx) {\n    let t2;\n    let current;\n    t2 = new T({\n      props: { key: \"description\", module: \"error\" }\n    });\n    return {\n      c() {\n        create_component(t2.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(t2, target, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t2.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t2.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t2, detaching);\n      }\n    };\n  }\n  function create_if_block_2$1(ctx) {\n    let t2;\n    return {\n      c() {\n        t2 = text(ctx[2]);\n      },\n      m(target, anchor) {\n        insert(target, t2, anchor);\n      },\n      p: noop,\n      i: noop,\n      o: noop,\n      d(detaching) {\n        if (detaching)\n          detach(t2);\n      }\n    };\n  }\n  function create_default_slot_1(ctx) {\n    let current_block_type_index;\n    let if_block;\n    let if_block_anchor;\n    let current;\n    const if_block_creators = [create_if_block_2$1, create_else_block];\n    const if_blocks = [];\n    function select_block_type(ctx2, dirty) {\n      if (ctx2[2])\n        return 0;\n      return 1;\n    }\n    current_block_type_index = select_block_type(ctx);\n    if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n    return {\n      c() {\n        if_block.c();\n        if_block_anchor = empty();\n      },\n      m(target, anchor) {\n        if_blocks[current_block_type_index].m(target, anchor);\n        insert(target, if_block_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if_block.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if_blocks[current_block_type_index].d(detaching);\n        if (detaching)\n          detach(if_block_anchor);\n      }\n    };\n  }\n  function create_if_block$3(ctx) {\n    let button;\n    let current;\n    button = new Button({\n      props: {\n        configuration: ctx[6].props,\n        $$slots: { default: [create_default_slot] },\n        $$scope: { ctx }\n      }\n    });\n    button.$on(\"click\", ctx[3]);\n    return {\n      c() {\n        create_component(button.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(button, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const button_changes = {};\n        if (dirty & 512) {\n          button_changes.$$scope = { dirty, ctx: ctx2 };\n        }\n        button.$set(button_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(button.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(button.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(button, detaching);\n      }\n    };\n  }\n  function create_default_slot(ctx) {\n    let t0;\n    let t1;\n    let current;\n    t0 = new T({\n      props: { key: \"button\", module: \"error\" }\n    });\n    return {\n      c() {\n        create_component(t0.$$.fragment);\n        t1 = space();\n      },\n      m(target, anchor) {\n        mount_component(t0, target, anchor);\n        insert(target, t1, anchor);\n        current = true;\n      },\n      p: noop,\n      i(local2) {\n        if (current)\n          return;\n        transition_in(t0.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(t0.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(t0, detaching);\n        if (detaching)\n          detach(t1);\n      }\n    };\n  }\n  function create_each_block(ctx) {\n    let t0;\n    let t1;\n    let t2;\n    let if_block3_anchor;\n    let current;\n    let if_block0 = ctx[6].type === Elements.Image && create_if_block_4(ctx);\n    let if_block1 = ctx[6].type === Elements.Title && create_if_block_3(ctx);\n    let if_block2 = ctx[6].type === Elements.ErrorText && create_if_block_1$1(ctx);\n    let if_block3 = ctx[6].type === Elements.Button && create_if_block$3(ctx);\n    return {\n      c() {\n        if (if_block0)\n          if_block0.c();\n        t0 = space();\n        if (if_block1)\n          if_block1.c();\n        t1 = space();\n        if (if_block2)\n          if_block2.c();\n        t2 = space();\n        if (if_block3)\n          if_block3.c();\n        if_block3_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block0)\n          if_block0.m(target, anchor);\n        insert(target, t0, anchor);\n        if (if_block1)\n          if_block1.m(target, anchor);\n        insert(target, t1, anchor);\n        if (if_block2)\n          if_block2.m(target, anchor);\n        insert(target, t2, anchor);\n        if (if_block3)\n          if_block3.m(target, anchor);\n        insert(target, if_block3_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (ctx2[6].type === Elements.Image)\n          if_block0.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.Title)\n          if_block1.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.ErrorText)\n          if_block2.p(ctx2, dirty);\n        if (ctx2[6].type === Elements.Button)\n          if_block3.p(ctx2, dirty);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block0);\n        transition_in(if_block1);\n        transition_in(if_block2);\n        transition_in(if_block3);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block0);\n        transition_out(if_block1);\n        transition_out(if_block2);\n        transition_out(if_block3);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block0)\n          if_block0.d(detaching);\n        if (detaching)\n          detach(t0);\n        if (if_block1)\n          if_block1.d(detaching);\n        if (detaching)\n          detach(t1);\n        if (if_block2)\n          if_block2.d(detaching);\n        if (detaching)\n          detach(t2);\n        if (if_block3)\n          if_block3.d(detaching);\n        if (detaching)\n          detach(if_block3_anchor);\n      }\n    };\n  }\n  function create_fragment$3(ctx) {\n    let div;\n    let current;\n    let each_value = ctx[0].elements;\n    let each_blocks = [];\n    for (let i = 0; i < each_value.length; i += 1) {\n      each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));\n    }\n    const out = (i) => transition_out(each_blocks[i], 1, 1, () => {\n      each_blocks[i] = null;\n    });\n    return {\n      c() {\n        div = element(\"div\");\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].c();\n        }\n        attr(div, \"class\", \"container svelte-1a87a67\");\n        attr(div, \"style\", ctx[1]);\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          each_blocks[i].m(div, null);\n        }\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (dirty & 13) {\n          each_value = ctx2[0].elements;\n          let i;\n          for (i = 0; i < each_value.length; i += 1) {\n            const child_ctx = get_each_context(ctx2, each_value, i);\n            if (each_blocks[i]) {\n              each_blocks[i].p(child_ctx, dirty);\n              transition_in(each_blocks[i], 1);\n            } else {\n              each_blocks[i] = create_each_block(child_ctx);\n              each_blocks[i].c();\n              transition_in(each_blocks[i], 1);\n              each_blocks[i].m(div, null);\n            }\n          }\n          group_outros();\n          for (i = each_value.length; i < each_blocks.length; i += 1) {\n            out(i);\n          }\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        for (let i = 0; i < each_value.length; i += 1) {\n          transition_in(each_blocks[i]);\n        }\n        current = true;\n      },\n      o(local2) {\n        each_blocks = each_blocks.filter(Boolean);\n        for (let i = 0; i < each_blocks.length; i += 1) {\n          transition_out(each_blocks[i]);\n        }\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        destroy_each(each_blocks, detaching);\n      }\n    };\n  }\n  function instance$3($$self, $$props, $$invalidate) {\n    let $currentParams;\n    let $configuration;\n    component_subscribe($$self, currentParams, ($$value) => $$invalidate(4, $currentParams = $$value));\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(5, $configuration = $$value));\n    const step = $configuration.steps[Steps.Error];\n    const style = makeStylesFromConfiguration($configuration.layout, step.style);\n    const message = $currentParams ? $currentParams.message : null;\n    const handleClose = () => {\n      sendFlowCompleteEvent({\n        status: \"error\",\n        idvResult: DecisionStatus.DECLINED\n      });\n      addCloseToURLParams();\n    };\n    flowError();\n    onDestroy(() => {\n      set_store_value(currentParams, $currentParams = null, $currentParams);\n    });\n    return [step, style, message, handleClose];\n  }\n  class ErrorPage extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$3, create_fragment$3, safe_not_equal, {}, add_css$3);\n    }\n  }\n  const steps = [\n    { name: Steps.Welcome, route: \"/\", component: Welcome },\n    { name: Steps.DocumentSelection, route: \"/select-document\", component: DocumentSelection },\n    { name: Steps.DocumentStart, route: \"/document-start\", component: DocumentStart },\n    { name: Steps.DocumentPhoto, route: \"/document-photo\", component: DocumentPhoto },\n    { name: Steps.CheckDocument, route: \"/check-document\", component: CheckDocument },\n    {\n      name: Steps.DocumentPhotoBackStart,\n      route: \"/document-photo-back-start\",\n      component: DocumentPhotoBackStart,\n      type: \"back-side\"\n    },\n    { name: Steps.DocumentPhotoBack, route: \"/document-photo-back\", component: DocumentPhotoBack, type: \"back-side\" },\n    {\n      name: Steps.CheckDocumentPhotoBack,\n      route: \"/check-document-photo-back\",\n      component: CheckDocumentPhotoBack,\n      type: \"back-side\"\n    },\n    { name: Steps.SelfieStart, route: \"/selfie-start\", component: SelfieStart },\n    { name: Steps.Selfie, route: \"/selfie\", component: Selfie },\n    { name: Steps.CheckSelfie, route: \"/check-selfie\", component: CheckSelfie },\n    { name: Steps.Loading, route: \"/loading\", component: Loading },\n    { name: Steps.Resubmission, route: \"/resubmission\", component: Resubmission, type: \"no-flow-part\" },\n    { name: Steps.Decline, route: \"/decline\", component: Decline, type: \"no-flow-part\" },\n    { name: Steps.Error, route: \"/error\", component: ErrorPage, type: \"no-flow-part\" },\n    { name: Steps.Final, route: \"/final\", component: Final, type: \"no-flow-part\" }\n  ];\n  const filterOutByType = (flowIds, configuration2, type) => {\n    if (!type)\n      return flowIds;\n    return flowIds.filter((id) => {\n      const stepConfiguration = configuration2.steps[id];\n      const step = steps.find((s) => s.name === stepConfiguration.name);\n      return (step == null ? void 0 : step.type) !== type;\n    });\n  };\n  const addCloseToURLParams = () => {\n    const url = new URL(window.location.href);\n    url.searchParams.set(\"close\", \"true\");\n    history.pushState(\"\", \"\", url.search);\n  };\n  const goToNextStep = (stepConfiguration, currentStepRoute2, globalConfiguration, skipType) => {\n    const flows2 = getFlowOrders(globalConfiguration);\n    const filteredFlows = filterOutByType(flows2, globalConfiguration, skipType);\n    const currentFlowIndex = filteredFlows.findIndex((f) => f === stepConfiguration.id);\n    const nextFlowId = filteredFlows[currentFlowIndex + 1];\n    const nextStep = globalConfiguration.steps[nextFlowId];\n    if (nextStep.route) {\n      currentStepRoute2.set(nextStep.route);\n    }\n    const step = steps.find((s) => s.name === nextStep.name);\n    if (step)\n      currentStepRoute2.set(step.route);\n  };\n  const goToPrevStep = (stepConfiguration, currentStepRoute2, globalConfiguration, skipType) => {\n    const flows2 = getFlowOrders(globalConfiguration);\n    const filteredFlows = filterOutByType(flows2, globalConfiguration, skipType);\n    const currentFlowIndex = filteredFlows.findIndex((f) => f === stepConfiguration.id);\n    const nextFlowId = filteredFlows[currentFlowIndex - 1];\n    const nextStep = globalConfiguration.steps[nextFlowId];\n    if (nextStep.route) {\n      return currentStepRoute2.set(nextStep.route);\n    }\n    const step = steps.find((s) => s.name === nextStep.name);\n    if (step)\n      return currentStepRoute2.set(step.route);\n  };\n  const selfieUri = writable(\"\");\n  const documents = writable([]);\n  const selectedDocumentInfo = writable();\n  const currentStepIdx = writable(0);\n  const currentParams = writable(null);\n  const currentRoute = writable();\n  let previousPage = \"none\";\n  const appState = derived(currentRoute, ($currentRoute) => {\n    const index = steps.findIndex((s) => s.route === $currentRoute);\n    const appState2 = {\n      currentStepIdx: index,\n      currentPage: $currentRoute,\n      previousPage\n    };\n    previousPage = $currentRoute;\n    return appState2;\n  });\n  const currentStepRoute = writable(\"/\");\n  const getDocImage = (type, docs, pageSide) => {\n    const doc = docs.find((d) => d.type === type);\n    if (!doc)\n      return \"\";\n    const page = doc.pages.find((p) => p.side === pageSide) || doc.pages[0];\n    if (!page)\n      return \"\";\n    return page.base64;\n  };\n  const general = {\n    progress: false,\n    borderRadius: \"16px\",\n    padding: \"24px\",\n    themeColor: \"#080444\",\n    colors: {\n      primary: \"#080444\",\n      secondary: \"#080444\",\n      text: \"#788597\",\n      danger: \"rgba(173, 0, 0, 0.8);\"\n    },\n    fonts: {\n      name: \"Inter\",\n      weight: [500, 700]\n    }\n  };\n  const primaryButton = {\n    \"font-size\": \"16px\",\n    padding: \"20px 20px\",\n    background: \"linear-gradient(180deg, rgba(0,122,255,1) 0%, rgba(0,112,235,1) 100%)\",\n    width: \"100%\",\n    color: \"#fff\",\n    \"font-weight\": 700,\n    \"border-radius\": \"12px\",\n    \"box-shadow\": \"0px 6px 9px 5px #007AFF1a;-webkit-box-shadow: 0px 6px 9px 5px #007AFF1a;\"\n  };\n  ({\n    type: Elements.IconButton,\n    props: {\n      attributes: {\n        src: \"https://cdn.ballerine.io/ui-packs/default/images/close.svg\",\n        alt: \"close\",\n        width: \"15px\",\n        height: \"15px\"\n      },\n      style: {\n        background: \"transparent\"\n      }\n    }\n  });\n  const backIconButton = {\n    type: Elements.IconButton,\n    props: {\n      attributes: {\n        src: \"https://cdn.ballerine.io/ui-packs/default/images/back.svg\",\n        alt: \"back\",\n        width: \"28px\",\n        height: \"28px\"\n      },\n      style: {\n        left: \"26px\",\n        background: \"transparent\"\n      }\n    }\n  };\n  const backWhiteIconButton = {\n    type: Elements.IconButton,\n    props: {\n      attributes: {\n        ...backIconButton.props.attributes,\n        src: \"https://cdn.ballerine.io/ui-packs/default/images/back-white.svg\"\n      },\n      style: backIconButton.props.style\n    }\n  };\n  const defaultFlowOrder = [\n    Steps.Welcome,\n    Steps.DocumentSelection,\n    Steps.DocumentPhoto,\n    Steps.CheckDocument,\n    Steps.DocumentPhotoBackStart,\n    Steps.DocumentPhotoBack,\n    Steps.CheckDocumentPhotoBack,\n    Steps.SelfieStart,\n    Steps.Selfie,\n    Steps.CheckSelfie,\n    Steps.Loading\n  ];\n  const configuration$1 = {\n    defaultLanguage: \"en\",\n    endUserInfo: {\n      id: \"test-id123\"\n    },\n    general,\n    flows: {\n      default: {\n        name: \"default\",\n        stepsOrder: defaultFlowOrder,\n        syncFlow: true,\n        useFinalQueryParams: true\n      }\n    },\n    steps: {\n      [Steps.Welcome]: {\n        name: Steps.Welcome,\n        id: Steps.Welcome,\n        style: {},\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                \"text-align\": \"center\",\n                padding: \"8px 0px 20px\",\n                \"font-size\": \"18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                \"text-align\": \"center\",\n                margin: \"0px\",\n                \"font-size\": \"16px\"\n              },\n              context: \"description\"\n            }\n          },\n          {\n            type: Elements.Image,\n            props: {\n              style: {\n                margin: \"8px auto\",\n                \"flex-grow\": 1\n              },\n              attributes: {\n                src: \"https://cdn.ballerine.io/ui-packs/default/images/welcome.svg\",\n                alt: \"welcome\",\n                width: \"248px\",\n                height: \"212px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"32px 0px 100px\",\n                \"text-align\": \"center\",\n                \"font-size\": \"16px\"\n              },\n              context: \"tip\"\n            }\n          },\n          {\n            type: Elements.Button,\n            props: {}\n          }\n        ]\n      },\n      [Steps.DocumentSelection]: {\n        name: Steps.DocumentSelection,\n        id: Steps.DocumentSelection,\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 24px 18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0\"\n              },\n              context: \"description\"\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"60px 0px 22px\",\n                \"font-weight\": 500,\n                color: \"#001B39\"\n              },\n              context: \"tip\"\n            }\n          }\n        ]\n      },\n      [Steps.DocumentPhoto]: {\n        name: Steps.DocumentPhoto,\n        id: Steps.DocumentPhoto,\n        elements: [\n          backWhiteIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                color: \"#fff\",\n                \"font-weight\": 700,\n                \"align-self\": \"center\",\n                padding: \"48px 0px 18px 0px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 20px 18px 40px\",\n                color: \"#fff\",\n                \"text-align\": \"center\"\n              }\n            }\n          },\n          {\n            type: Elements.VideoContainer,\n            props: {\n              style: {\n                margin: \"0px\"\n              }\n            }\n          },\n          {\n            type: Elements.CameraButton,\n            props: {\n              style: {\n                margin: \"24px 0px 30px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.CheckDocument]: {\n        name: Steps.CheckDocument,\n        id: Steps.CheckDocument,\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 30px 18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 0px 48px\"\n              }\n            }\n          },\n          {\n            type: Elements.Photo,\n            props: {\n              style: {\n                margin: \"0px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.DocumentPhotoBackStart]: {\n        name: Steps.DocumentPhotoBackStart,\n        id: Steps.DocumentPhotoBackStart,\n        style: {},\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            id: \"welcome-title1\",\n            props: {\n              style: {\n                padding: \"8px 24px 18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0\"\n              }\n            }\n          },\n          {\n            type: Elements.Image,\n            props: {\n              style: {\n                margin: \"8px auto\",\n                \"flex-grow\": 1\n              },\n              attributes: {\n                src: \"https://cdn.ballerine.io/ui-packs/default/images/document-photo-back-start.svg\",\n                alt: \"document-photo-back-start\",\n                width: \"260px\",\n                height: \"212px\"\n              }\n            }\n          },\n          {\n            type: Elements.Button,\n            props: {\n              style: {\n                margin: \"0px 0px 100px 0px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.DocumentPhotoBack]: {\n        name: Steps.DocumentPhotoBack,\n        id: Steps.DocumentPhotoBack,\n        elements: [\n          backWhiteIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                color: \"#fff\",\n                \"font-weight\": 700,\n                \"align-self\": \"center\",\n                padding: \"48px 0px 18px 0px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 20px 18px 40px\",\n                color: \"#fff\"\n              }\n            }\n          },\n          {\n            type: Elements.VideoContainer,\n            props: {\n              style: {\n                margin: \"0px\"\n              }\n            }\n          },\n          {\n            type: Elements.CameraButton,\n            props: {\n              style: {\n                margin: \"24px 0px 30px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.CheckDocumentPhotoBack]: {\n        name: Steps.CheckDocumentPhotoBack,\n        id: Steps.CheckDocumentPhotoBack,\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 24px 18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 0px 48px\"\n              }\n            }\n          },\n          {\n            type: Elements.Photo,\n            props: {\n              style: {\n                margin: \"0px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.SelfieStart]: {\n        name: Steps.SelfieStart,\n        id: Steps.SelfieStart,\n        style: {},\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 24px 18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0\"\n              }\n            }\n          },\n          {\n            type: Elements.Image,\n            props: {\n              style: {\n                margin: \"8px auto\",\n                \"flex-grow\": 1\n              },\n              attributes: {\n                src: \"https://cdn.ballerine.io/ui-packs/default/images/selfie-start.svg\",\n                alt: \"selfie-start\",\n                width: \"300x\",\n                height: \"300px\"\n              }\n            }\n          },\n          {\n            type: Elements.Button,\n            props: {}\n          }\n        ]\n      },\n      [Steps.Selfie]: {\n        name: Steps.Selfie,\n        id: Steps.Selfie,\n        elements: [\n          backWhiteIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                color: \"#fff\",\n                \"font-weight\": 700,\n                \"align-self\": \"center\",\n                padding: \"48px 0px 18px 0px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 20px 18px 40px\",\n                color: \"#fff\"\n              }\n            }\n          },\n          {\n            type: Elements.VideoContainer,\n            props: {\n              style: {\n                margin: \"0px\"\n              }\n            }\n          },\n          {\n            type: Elements.CameraButton,\n            props: {\n              style: {\n                margin: \"24px 0px 30px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.CheckSelfie]: {\n        name: Steps.CheckSelfie,\n        id: Steps.CheckSelfie,\n        elements: [\n          backIconButton,\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 24px 18px\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 0px 48px\"\n              }\n            }\n          },\n          {\n            type: Elements.Photo,\n            props: {\n              style: {\n                margin: \"0px\"\n              }\n            }\n          }\n        ]\n      },\n      [Steps.Loading]: {\n        name: Steps.Loading,\n        id: Steps.Loading,\n        elements: []\n      },\n      [Steps.Resubmission]: {\n        name: Steps.Resubmission,\n        id: Steps.Resubmission,\n        elements: [\n          {\n            type: Elements.Image,\n            props: {\n              style: {\n                margin: \"120px 0px 16px\",\n                \"align-self\": \"center\"\n              },\n              attributes: {\n                src: \"https://cdn.ballerine.io/ui-packs/default/images/resubmit.svg\",\n                alt: \"decline\",\n                width: \"80px\",\n                height: \"80px\"\n              }\n            }\n          },\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 0px 6px\",\n                \"text-align\": \"center\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                background: \"transparent\",\n                margin: \"0px 0px 48px\",\n                border: \"none\",\n                color: \"#788597\"\n              }\n            }\n          },\n          {\n            type: Elements.ErrorText,\n            props: {\n              style: {\n                background: \"transparent\",\n                margin: \"0px 0px 48px\",\n                border: \"none\",\n                color: \"#788597\"\n              }\n            }\n          },\n          {\n            type: Elements.Button,\n            props: {}\n          }\n        ]\n      },\n      [Steps.Decline]: {\n        name: Steps.Decline,\n        id: Steps.Decline,\n        elements: [\n          {\n            type: Elements.Image,\n            props: {\n              style: {\n                margin: \"120px 0px 16px\"\n              },\n              attributes: {\n                src: \"https://cdn.ballerine.io/ui-packs/default/images/decline.svg\",\n                alt: \"decline\",\n                width: \"80px\",\n                height: \"80px\"\n              }\n            }\n          },\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 0px 6px\",\n                \"text-align\": \"center\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                background: \"transparent\",\n                margin: \"0px 0px 48px\",\n                border: \"none\",\n                color: \"#788597\"\n              }\n            }\n          },\n          {\n            type: Elements.ErrorText,\n            props: {}\n          },\n          {\n            type: Elements.Button,\n            props: {}\n          }\n        ]\n      },\n      [Steps.Final]: {\n        name: Steps.Final,\n        id: Steps.Final,\n        style: {},\n        elements: [\n          {\n            type: Elements.Image,\n            props: {\n              style: {\n                margin: \"170px auto 16px\",\n                \"align-self\": \"center\"\n              },\n              attributes: {\n                src: \"https://cdn.ballerine.io/ui-packs/default/images/final.svg\",\n                alt: \"final\",\n                width: \"80px\",\n                height: \"80px\"\n              }\n            }\n          },\n          {\n            type: Elements.Title,\n            props: {\n              style: {\n                padding: \"8px 0px 6px\",\n                \"text-align\": \"none\"\n              }\n            }\n          },\n          {\n            type: Elements.Paragraph,\n            props: {\n              style: {\n                margin: \"0px 0px 60px\",\n                \"text-align\": \"center\"\n              }\n            }\n          },\n          {\n            type: Elements.Input,\n            props: {\n              attributes: {\n                name: \"first-name\",\n                type: \"text\",\n                placeholder: \"placeholder1\",\n                validate: () => true,\n                defaultValue: \"John\"\n              },\n              style: {}\n            }\n          },\n          {\n            type: Elements.Input,\n            props: {\n              attributes: {\n                name: \"last-name\",\n                type: \"text\",\n                placeholder: \"placeholder2\",\n                validate: () => true\n              },\n              style: {}\n            }\n          },\n          {\n            type: Elements.Button,\n            props: {}\n          }\n        ]\n      }\n    },\n    container: {\n      width: \"100%\",\n      display: \"flex\",\n      \"justify-content\": \"center\",\n      \"align-items\": \"center\"\n    },\n    button: primaryButton,\n    buttonWithIcon: primaryButton,\n    iconButton: {\n      background: \"#F2F3F4\",\n      width: \"40px\",\n      height: \"40px\",\n      position: \"absolute\",\n      top: \"45px\",\n      right: \"32px\"\n    },\n    photo: {\n      \"border-radius\": general.borderRadius\n    },\n    title: {\n      \"font-weight\": 700,\n      \"font-size\": \"20px\",\n      \"text-align\": \"center\",\n      color: \"#001B39\"\n    },\n    paragraph: {\n      \"font-weight\": 400,\n      \"font-size\": \"16px\",\n      color: general.colors.text,\n      \"text-align\": \"center\",\n      margin: \"0px\"\n    },\n    layout: {\n      padding: \"40px\",\n      position: \"relative\",\n      background: \"linear-gradient(180deg, #fff 0%, #fff 75%, #007AFF 250%)\"\n    },\n    documentOptions: {\n      options: {\n        [DocumentType.ID_CARD]: {\n          document: {\n            type: DocumentType.ID_CARD,\n            backSide: true,\n            variant: DocumentVariant.REGULAR\n          },\n          attributes: {\n            icon: \"Card\",\n            width: 40,\n            height: 40\n          }\n        },\n        [DocumentType.DRIVERS_LICENSE]: {\n          document: {\n            type: DocumentType.DRIVERS_LICENSE,\n            backSide: true,\n            variant: DocumentVariant.REGULAR\n          },\n          attributes: {\n            icon: \"License\",\n            width: 40,\n            height: 40\n          }\n        },\n        [DocumentType.PASSPORT]: {\n          document: {\n            type: DocumentType.PASSPORT,\n            backSide: false,\n            variant: DocumentVariant.REGULAR\n          },\n          attributes: {\n            icon: \"PassportTwo\",\n            width: 40,\n            height: 40\n          }\n        },\n        [DocumentType.VOTER_ID]: {\n          document: {\n            type: DocumentType.VOTER_ID,\n            backSide: true,\n            variant: DocumentVariant.REGULAR\n          },\n          attributes: {\n            icon: \"Card\",\n            width: 40,\n            height: 40\n          }\n        }\n      },\n      props: {},\n      descriptionProps: {\n        style: {\n          \"font-size\": \"12px\",\n          color: \"#788597\",\n          margin: \"3px 0px 0px 0px\",\n          hover: {\n            color: \"#788597\"\n          },\n          active: {\n            color: \"#788597\"\n          }\n        }\n      },\n      optionProps: {\n        style: {\n          background: \"#fff\",\n          margin: \"0 0 22px 0px\",\n          border: \"1px solid #ffffff\",\n          \"border-radius\": \"13px\",\n          width: \"100%\",\n          padding: \"20px 18px\",\n          \"box-shadow\": \"0px 6px 30px 0px #007AFF1a , 0px 3px 10px 0px #0000000a ;-webkit-box-shadow: 0px 6px 30px 0px #007AFF1a , 0px 3px 10px 0px #0000000a ;\",\n          display: \"flex\",\n          \"text-align\": \"left\",\n          hover: {\n            border: \"1px solid #007AFF21\",\n            background: \"#fff\"\n          },\n          active: {\n            border: \"1px solid #007AFF21\",\n            background: \"#F1F1F1\"\n          }\n        }\n      },\n      iconContainerProps: {\n        style: {\n          width: \"45px\",\n          height: \"45px\",\n          margin: \"0px 15px 0px 0px\",\n          padding: \"0px\",\n          background: \"tranaparent\",\n          active: {\n            background: \"#fff\"\n          }\n        }\n      },\n      iconProps: {\n        style: {\n          fill: \"#000\",\n          active: {\n            fill: \"#0079FA\"\n          }\n        }\n      },\n      titleProps: {\n        style: {\n          color: \"#434345\",\n          \"text-align\": \"left\",\n          margin: \"4px 0px 0px\",\n          active: {\n            color: \"#434345\"\n          }\n        }\n      }\n    },\n    navigationButtons: {\n      props: {\n        style: {\n          display: \"flex\",\n          \"flex-direction\": \"row\",\n          margin: \"70px 0px 0px\",\n          padding: \"0px\"\n        }\n      },\n      backButton: {\n        type: \"button\",\n        props: {\n          style: {\n            width: \"100%\",\n            margin: \"67px 20px 0px 0px\",\n            padding: \"0px\",\n            \"font-weight\": 400,\n            background: \"#fff\",\n            color: \"#6A6A6A\",\n            border: \"1px solid #BFBFBF\",\n            \"box-shadow\": \"0px 6px 9px 5px rgba(0,122,255,0);-webkit-box-shadow: 0px 6px 9px 5px rgba(0,122,255,0);\"\n          }\n        }\n      },\n      nextButton: {\n        type: \"button\",\n        props: {\n          style: {\n            width: \"100%\"\n          }\n        }\n      }\n    },\n    image: {\n      margin: \"0px\"\n    },\n    videoContainer: {},\n    cameraButton: {},\n    list: {},\n    loader: {\n      background: general.colors.primary\n    },\n    errorText: {\n      border: \"1px solid #DF2222\",\n      background: \"rgba(223, 34, 34, 0.2)\",\n      \"border-radius\": \"6px\",\n      padding: \"8px\"\n    },\n    input: {\n      width: \"100%\",\n      margin: \"10px 0px\",\n      padding: \"12px 24px\",\n      \"border-radius\": general.borderRadius,\n      border: `2px solid ${general.colors.primary}`\n    },\n    overlay: {\n      \"background-position-y\": \"30%\"\n    },\n    settings: {\n      cameraSettings: {\n        sizeFactor: 1,\n        imageType: build.exports.IMAGE_TYPES.JPG,\n        imageCompression: 0,\n        isImageMirror: false\n      },\n      selfieCameraSettings: {\n        sizeFactor: 1,\n        imageType: build.exports.IMAGE_TYPES.JPG,\n        imageCompression: 0,\n        isImageMirror: true\n      }\n    }\n  };\n  const configuration = writable(configuration$1);\n  Object.defineProperty(window, \"configStore\", {\n    get: () => {\n      return configuration.subscribe((e) => console.log(e));\n    }\n  });\n  function add_css$2(target) {\n    append_styles(target, \"svelte-1ylbpjc\", \".container.svelte-1ylbpjc{height:100%}\");\n  }\n  function create_if_block$2(ctx) {\n    let div;\n    let switch_instance;\n    let div_intro;\n    let div_outro;\n    let current;\n    var switch_value = ctx[0].component;\n    function switch_props(ctx2) {\n      return {};\n    }\n    if (switch_value) {\n      switch_instance = construct_svelte_component(switch_value, switch_props());\n    }\n    return {\n      c() {\n        div = element(\"div\");\n        if (switch_instance)\n          create_component(switch_instance.$$.fragment);\n        attr(div, \"class\", \"container svelte-1ylbpjc\");\n      },\n      m(target, anchor) {\n        insert(target, div, anchor);\n        if (switch_instance)\n          mount_component(switch_instance, div, null);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (switch_value !== (switch_value = ctx2[0].component)) {\n          if (switch_instance) {\n            group_outros();\n            const old_component = switch_instance;\n            transition_out(old_component.$$.fragment, 1, 0, () => {\n              destroy_component(old_component, 1);\n            });\n            check_outros();\n          }\n          if (switch_value) {\n            switch_instance = construct_svelte_component(switch_value, switch_props());\n            create_component(switch_instance.$$.fragment);\n            transition_in(switch_instance.$$.fragment, 1);\n            mount_component(switch_instance, div, null);\n          } else {\n            switch_instance = null;\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        if (switch_instance)\n          transition_in(switch_instance.$$.fragment, local2);\n        add_render_callback(() => {\n          if (div_outro)\n            div_outro.end(1);\n          div_intro = create_in_transition(div, fly, { x: -50, duration: 250, delay: 300 });\n          div_intro.start();\n        });\n        current = true;\n      },\n      o(local2) {\n        if (switch_instance)\n          transition_out(switch_instance.$$.fragment, local2);\n        if (div_intro)\n          div_intro.invalidate();\n        div_outro = create_out_transition(div, fly, { x: -50, duration: 250 });\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div);\n        if (switch_instance)\n          destroy_component(switch_instance);\n        if (detaching && div_outro)\n          div_outro.end();\n      }\n    };\n  }\n  function create_fragment$2(ctx) {\n    let if_block_anchor;\n    let current;\n    let if_block = ctx[0] && create_if_block$2(ctx);\n    return {\n      c() {\n        if (if_block)\n          if_block.c();\n        if_block_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block)\n          if_block.m(target, anchor);\n        insert(target, if_block_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (ctx2[0]) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n            if (dirty & 1) {\n              transition_in(if_block, 1);\n            }\n          } else {\n            if_block = create_if_block$2(ctx2);\n            if_block.c();\n            transition_in(if_block, 1);\n            if_block.m(if_block_anchor.parentNode, if_block_anchor);\n          }\n        } else if (if_block) {\n          group_outros();\n          transition_out(if_block, 1, 1, () => {\n            if_block = null;\n          });\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block)\n          if_block.d(detaching);\n        if (detaching)\n          detach(if_block_anchor);\n      }\n    };\n  }\n  function instance$2($$self, $$props, $$invalidate) {\n    let $currentParams;\n    let $currentStepRoute;\n    let $currentStepIdx;\n    component_subscribe($$self, currentParams, ($$value) => $$invalidate(1, $currentParams = $$value));\n    component_subscribe($$self, currentStepRoute, ($$value) => $$invalidate(2, $currentStepRoute = $$value));\n    component_subscribe($$self, currentStepIdx, ($$value) => $$invalidate(3, $currentStepIdx = $$value));\n    let stepIndex;\n    let currentStep = steps[0];\n    $$self.$$.update = () => {\n      if ($$self.$$.dirty & 7) {\n        {\n          const step = steps.find((s) => s.route === $currentStepRoute);\n          $$invalidate(0, currentStep = step || steps[0]);\n          if (step) {\n            const newStepIndex = steps.indexOf(currentStep);\n            if (newStepIndex !== stepIndex) {\n              set_store_value(currentStepIdx, $currentStepIdx = newStepIndex, $currentStepIdx);\n              sendNavigationUpdateEvent();\n              visitedPage($currentStepRoute, $currentParams ? $currentParams.toString() : \"\");\n            }\n          }\n        }\n      }\n    };\n    return [currentStep, $currentParams, $currentStepRoute];\n  }\n  class Routes extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$2, create_fragment$2, safe_not_equal, {}, add_css$2);\n    }\n  }\n  function add_css$1(target) {\n    append_styles(target, \"svelte-q51cz\", \"main.svelte-q51cz{max-width:500px;width:100%;margin:0 auto;height:100%}html, body, #app{height:100%}html, body, p, div, input{box-sizing:border-box}body{margin:0px}p, div, body, button{font-family:var(--font-family)}\");\n  }\n  function create_if_block$1(ctx) {\n    let link;\n    let link_href_value;\n    return {\n      c() {\n        link = element(\"link\");\n        attr(link, \"href\", link_href_value = ctx[0].general.fonts.link);\n        attr(link, \"rel\", \"stylesheet\");\n      },\n      m(target, anchor) {\n        insert(target, link, anchor);\n      },\n      p(ctx2, dirty) {\n        if (dirty & 1 && link_href_value !== (link_href_value = ctx2[0].general.fonts.link)) {\n          attr(link, \"href\", link_href_value);\n        }\n      },\n      d(detaching) {\n        if (detaching)\n          detach(link);\n      }\n    };\n  }\n  function create_fragment$1(ctx) {\n    let if_block_anchor;\n    let t0;\n    let main;\n    let routes;\n    let t1;\n    let sveltetoast;\n    let current;\n    let if_block = ctx[0].general.fonts.link && create_if_block$1(ctx);\n    routes = new Routes({});\n    sveltetoast = new SvelteToast({\n      props: {\n        options: {\n          theme: {\n            \"--toastBackground\": ctx[0].general.colors.primary,\n            \"--toastBarBackground\": ctx[0].general.colors.primary\n          }\n        }\n      }\n    });\n    return {\n      c() {\n        if (if_block)\n          if_block.c();\n        if_block_anchor = empty();\n        t0 = space();\n        main = element(\"main\");\n        create_component(routes.$$.fragment);\n        t1 = space();\n        create_component(sveltetoast.$$.fragment);\n        attr(main, \"style\", ctx[1]);\n        attr(main, \"class\", \"svelte-q51cz\");\n      },\n      m(target, anchor) {\n        if (if_block)\n          if_block.m(document.head, null);\n        append(document.head, if_block_anchor);\n        insert(target, t0, anchor);\n        insert(target, main, anchor);\n        mount_component(routes, main, null);\n        append(main, t1);\n        mount_component(sveltetoast, main, null);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        if (ctx2[0].general.fonts.link) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n          } else {\n            if_block = create_if_block$1(ctx2);\n            if_block.c();\n            if_block.m(if_block_anchor.parentNode, if_block_anchor);\n          }\n        } else if (if_block) {\n          if_block.d(1);\n          if_block = null;\n        }\n        const sveltetoast_changes = {};\n        if (dirty & 1)\n          sveltetoast_changes.options = {\n            theme: {\n              \"--toastBackground\": ctx2[0].general.colors.primary,\n              \"--toastBarBackground\": ctx2[0].general.colors.primary\n            }\n          };\n        sveltetoast.$set(sveltetoast_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(routes.$$.fragment, local2);\n        transition_in(sveltetoast.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(routes.$$.fragment, local2);\n        transition_out(sveltetoast.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block)\n          if_block.d(detaching);\n        detach(if_block_anchor);\n        if (detaching)\n          detach(t0);\n        if (detaching)\n          detach(main);\n        destroy_component(routes);\n        destroy_component(sveltetoast);\n      }\n    };\n  }\n  function instance$1($$self, $$props, $$invalidate) {\n    let $configuration;\n    let $currentLanguage;\n    component_subscribe($$self, configuration, ($$value) => $$invalidate(0, $configuration = $$value));\n    component_subscribe($$self, currentLanguage, ($$value) => $$invalidate(3, $currentLanguage = $$value));\n    subscribe();\n    initConnectionCheck(t);\n    new URLSearchParams(window.location.search);\n    let { flowName } = $$props;\n    setFlowName($configuration.flows, flowName);\n    set_store_value(currentLanguage, $currentLanguage = $configuration.endUserInfo.language || $configuration.defaultLanguage, $currentLanguage);\n    const style = `\n    --font-family: ${$configuration.general.fonts.name};\n    --primary-color: ${$configuration.general.colors.primary};\n  `;\n    $$self.$$set = ($$props2) => {\n      if (\"flowName\" in $$props2)\n        $$invalidate(2, flowName = $$props2.flowName);\n    };\n    return [$configuration, style, flowName];\n  }\n  class App extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance$1, create_fragment$1, safe_not_equal, { flowName: 2 }, add_css$1);\n    }\n  }\n  function add_css(target) {\n    append_styles(target, \"svelte-blow3t\", \".background.svelte-blow3t{z-index:9999;position:fixed;top:0px;left:0px;overflow:hidden;width:100%;height:100%;background:rgba(0, 0, 0, 0.6);display:flex;align-items:center;justify-content:center}.content.svelte-blow3t{width:415px;height:660px;box-shadow:0px 20px 40px rgba(0, 0, 0, 0.05);border-radius:35px;overflow:hidden}\");\n  }\n  function create_if_block_2(ctx) {\n    let app;\n    let current;\n    app = new App({ props: { flowName: ctx[0] } });\n    return {\n      c() {\n        create_component(app.$$.fragment);\n      },\n      m(target, anchor) {\n        mount_component(app, target, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const app_changes = {};\n        if (dirty & 1)\n          app_changes.flowName = ctx2[0];\n        app.$set(app_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(app.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(app.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        destroy_component(app, detaching);\n      }\n    };\n  }\n  function create_if_block(ctx) {\n    let if_block_anchor;\n    let current;\n    let if_block = !ctx[2] && ctx[3] && create_if_block_1(ctx);\n    return {\n      c() {\n        if (if_block)\n          if_block.c();\n        if_block_anchor = empty();\n      },\n      m(target, anchor) {\n        if (if_block)\n          if_block.m(target, anchor);\n        insert(target, if_block_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        if (!ctx2[2] && ctx2[3]) {\n          if (if_block) {\n            if_block.p(ctx2, dirty);\n            if (dirty & 12) {\n              transition_in(if_block, 1);\n            }\n          } else {\n            if_block = create_if_block_1(ctx2);\n            if_block.c();\n            transition_in(if_block, 1);\n            if_block.m(if_block_anchor.parentNode, if_block_anchor);\n          }\n        } else if (if_block) {\n          group_outros();\n          transition_out(if_block, 1, 1, () => {\n            if_block = null;\n          });\n          check_outros();\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if (if_block)\n          if_block.d(detaching);\n        if (detaching)\n          detach(if_block_anchor);\n      }\n    };\n  }\n  function create_if_block_1(ctx) {\n    let div1;\n    let div0;\n    let app;\n    let current;\n    app = new App({ props: { flowName: ctx[0] } });\n    return {\n      c() {\n        div1 = element(\"div\");\n        div0 = element(\"div\");\n        create_component(app.$$.fragment);\n        attr(div0, \"class\", \"content svelte-blow3t\");\n        attr(div1, \"class\", \"background svelte-blow3t\");\n      },\n      m(target, anchor) {\n        insert(target, div1, anchor);\n        append(div1, div0);\n        mount_component(app, div0, null);\n        current = true;\n      },\n      p(ctx2, dirty) {\n        const app_changes = {};\n        if (dirty & 1)\n          app_changes.flowName = ctx2[0];\n        app.$set(app_changes);\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(app.$$.fragment, local2);\n        current = true;\n      },\n      o(local2) {\n        transition_out(app.$$.fragment, local2);\n        current = false;\n      },\n      d(detaching) {\n        if (detaching)\n          detach(div1);\n        destroy_component(app);\n      }\n    };\n  }\n  function create_fragment(ctx) {\n    let current_block_type_index;\n    let if_block;\n    let if_block_anchor;\n    let current;\n    const if_block_creators = [create_if_block, create_if_block_2];\n    const if_blocks = [];\n    function select_block_type(ctx2, dirty) {\n      if (ctx2[1])\n        return 0;\n      if (!ctx2[2])\n        return 1;\n      return -1;\n    }\n    if (~(current_block_type_index = select_block_type(ctx))) {\n      if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);\n    }\n    return {\n      c() {\n        if (if_block)\n          if_block.c();\n        if_block_anchor = empty();\n      },\n      m(target, anchor) {\n        if (~current_block_type_index) {\n          if_blocks[current_block_type_index].m(target, anchor);\n        }\n        insert(target, if_block_anchor, anchor);\n        current = true;\n      },\n      p(ctx2, [dirty]) {\n        let previous_block_index = current_block_type_index;\n        current_block_type_index = select_block_type(ctx2);\n        if (current_block_type_index === previous_block_index) {\n          if (~current_block_type_index) {\n            if_blocks[current_block_type_index].p(ctx2, dirty);\n          }\n        } else {\n          if (if_block) {\n            group_outros();\n            transition_out(if_blocks[previous_block_index], 1, 1, () => {\n              if_blocks[previous_block_index] = null;\n            });\n            check_outros();\n          }\n          if (~current_block_type_index) {\n            if_block = if_blocks[current_block_type_index];\n            if (!if_block) {\n              if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);\n              if_block.c();\n            } else {\n              if_block.p(ctx2, dirty);\n            }\n            transition_in(if_block, 1);\n            if_block.m(if_block_anchor.parentNode, if_block_anchor);\n          } else {\n            if_block = null;\n          }\n        }\n      },\n      i(local2) {\n        if (current)\n          return;\n        transition_in(if_block);\n        current = true;\n      },\n      o(local2) {\n        transition_out(if_block);\n        current = false;\n      },\n      d(detaching) {\n        if (~current_block_type_index) {\n          if_blocks[current_block_type_index].d(detaching);\n        }\n        if (detaching)\n          detach(if_block_anchor);\n      }\n    };\n  }\n  function instance($$self, $$props, $$invalidate) {\n    let loading = true;\n    onMount(async () => {\n      $$invalidate(2, loading = false);\n      const loader = document.getElementById(\"blrn-loader\");\n      loader.style.display = \"none\";\n    });\n    let { flowName } = $$props;\n    let { useModal = false } = $$props;\n    let modalOpened = true;\n    window.addEventListener(\"message\", (e) => {\n      const event = e.data;\n      if (event.eventName !== \"blrn_event\")\n        return;\n      if (event.shouldExit) {\n        $$invalidate(3, modalOpened = false);\n      }\n    }, false);\n    $$self.$$set = ($$props2) => {\n      if (\"flowName\" in $$props2)\n        $$invalidate(0, flowName = $$props2.flowName);\n      if (\"useModal\" in $$props2)\n        $$invalidate(1, useModal = $$props2.useModal);\n    };\n    return [flowName, useModal, loading, modalOpened];\n  }\n  class ConfigurationProvider extends SvelteComponent {\n    constructor(options) {\n      super();\n      init(this, options, instance, create_fragment, safe_not_equal, { flowName: 0, useModal: 1 }, add_css);\n    }\n  }\n  const getConfigFromQueryParams = () => {\n    const {\n      b_uid,\n      b_cid,\n      b_t,\n      b_fn,\n      b_ln,\n      b_fid,\n      b_ph,\n      b_em,\n      b_lang,\n      b_eut\n    } = Object.fromEntries(new URLSearchParams(window.location.search));\n    const queryParamsConfig = {\n      flowName: b_fid,\n      clientId: b_cid,\n      id: b_uid,\n      token: b_t,\n      firstName: b_fn,\n      lastName: b_ln,\n      phone: b_ph,\n      email: b_em,\n      language: b_lang,\n      type: b_eut\n    };\n    return Object.entries(queryParamsConfig).reduce((acc, [key, value]) => {\n      if (!value)\n        return acc;\n      acc[key] = value;\n      return acc;\n    }, {});\n  };\n  const flows = {\n    mount(elementId, flowName = getConfigFromQueryParams().flowName, config) {\n      const hostElement = document.getElementById(elementId);\n      if (hostElement) {\n        hostElement.innerHTML = `<div class='loader-container' id='blrn-loader'>\n      <div class='loader'></div>\n    </div>\n    `;\n      } else {\n        console.error(\"BallerineSDK: Could not find element with id\", elementId);\n      }\n      new ConfigurationProvider({\n        target: document.getElementById(elementId),\n        props: {\n          flowName\n        }\n      });\n    },\n    openModal(flowName, config) {\n      const hostElement = document.querySelector(\"body\");\n      if (hostElement) {\n        hostElement.innerHTML = `<div class=\"loader-container\" id=\"blrn-loader\">\n      <div class=\"loader\"></div>\n    </div>\n    `;\n      } else {\n        console.error(\"BallerineSDK: Could not find element body\");\n      }\n      new ConfigurationProvider({\n        target: hostElement,\n        props: {\n          flowName,\n          useModal: true\n        }\n      });\n    },\n    init: (config) => {\n      return new Promise((resolve, reject) => {\n        console.log(\"BallerineSDK: Initializing BallerineSDK with version: \", \"1.1.5\", config);\n        const { translations, ...restConfig } = config;\n        const { clientId: _clientId, flowName: _flowName, ...endUserInfo } = getConfigFromQueryParams();\n        ({\n          ...restConfig,\n          endUserInfo: {\n            ...restConfig.endUserInfo,\n            ...endUserInfo\n          }\n        });\n        const configPromise = updateConfiguration(restConfig);\n        const translationsPromise = config.translations ? updateTranslations(config.translations) : void 0;\n        Promise.all([configPromise, translationsPromise]).then(() => resolve()).catch(reject);\n      });\n    },\n    set: function(key, value) {\n      throw new Error(\"Function not implemented.\");\n    }\n  };\n  exports2.flows = flows;\n  Object.defineProperties(exports2, { __esModule: { value: true }, [Symbol.toStringTag]: { value: \"Module\" } });\n});\n"]}