diff --git a/web/public/camera-4.0/js/main.js b/web/public/camera-4.0/js/main.js index 69059b7..974ab7a 100644 --- a/web/public/camera-4.0/js/main.js +++ b/web/public/camera-4.0/js/main.js @@ -246,7 +246,6 @@ async function submit_image(qrcode, angle, image_data_url) { var nick_name = get_query("nick_name"); var realip = get_query("realip"); var phonemodel = get_query("phonemodel"); - var skip_angle_check = get_query("skip_angle_check"); var data = { emblem_id, nick_name, @@ -255,7 +254,6 @@ async function submit_image(qrcode, angle, image_data_url) { angle, phonemodel, image_data_url, - skip_angle_check, log: debug_logs.join("\n"), }; var r = await fetch("https://themblem.com/api/v1/qr-verify/", { diff --git a/web/public/camera-4.0/js/qrtool.web.js b/web/public/camera-4.0/js/qrtool.web.js index 62da699..5b2df9d 100644 --- a/web/public/camera-4.0/js/qrtool.web.js +++ b/web/public/camera-4.0/js/qrtool.web.js @@ -479,10 +479,10 @@ function createWasm() { function receiveInstance(instance, module) { var exports = instance.exports; Module["asm"] = exports; - wasmMemory = Module["asm"]["Kb"]; + wasmMemory = Module["asm"]["Tb"]; updateGlobalBufferAndViews(wasmMemory.buffer); - wasmTable = Module["asm"]["Nb"]; - addOnInit(Module["asm"]["Lb"]); + wasmTable = Module["asm"]["Wb"]; + addOnInit(Module["asm"]["Ub"]); removeRunDependency("wasm-instantiate"); } addRunDependency("wasm-instantiate"); @@ -3869,215 +3869,224 @@ function intArrayFromString(stringy, dontAddNull, length) { var asmLibraryArg = { "K": ___cxa_allocate_exception, - "y": ___cxa_begin_catch, - "wb": ___cxa_current_primary_exception, - "Ja": ___cxa_decrement_exception_refcount, + "z": ___cxa_begin_catch, + "Bb": ___cxa_current_primary_exception, + "La": ___cxa_decrement_exception_refcount, "F": ___cxa_end_catch, "b": ___cxa_find_matching_catch_2, "n": ___cxa_find_matching_catch_3, - "C": ___cxa_find_matching_catch_4, - "L": ___cxa_free_exception, - "Ia": ___cxa_increment_exception_refcount, - "Ea": ___cxa_rethrow, - "vb": ___cxa_rethrow_primary_exception, + "x": ___cxa_find_matching_catch_4, + "M": ___cxa_free_exception, + "Ka": ___cxa_increment_exception_refcount, + "Fa": ___cxa_rethrow, + "Ab": ___cxa_rethrow_primary_exception, "J": ___cxa_throw, - "xb": ___cxa_uncaught_exceptions, + "Cb": ___cxa_uncaught_exceptions, "e": ___resumeException, - "Ka": ___syscall_fcntl64, - "Cb": ___syscall_ioctl, - "La": ___syscall_open, - "Ga": _abort, - "Ha": _clock_gettime, - "Bb": _emscripten_get_heap_max, - "tb": _emscripten_memcpy_big, - "ub": _emscripten_resize_heap, - "zb": _environ_get, - "Ab": _environ_sizes_get, - "na": _fd_close, - "Ma": _fd_read, - "pb": _fd_seek, - "oa": _fd_write, + "Ma": ___syscall_fcntl64, + "Hb": ___syscall_ioctl, + "Na": ___syscall_open, + "Ia": _abort, + "Ja": _clock_gettime, + "Gb": _emscripten_get_heap_max, + "yb": _emscripten_memcpy_big, + "zb": _emscripten_resize_heap, + "Eb": _environ_get, + "Fb": _environ_sizes_get, + "ra": _fd_close, + "Oa": _fd_read, + "tb": _fd_seek, + "sa": _fd_write, "a": _getTempRet0, - "Z": invoke_di, - "v": invoke_dii, - "V": invoke_diii, - "o": invoke_fi, + "_": invoke_di, + "w": invoke_dii, + "X": invoke_diii, + "p": invoke_fi, "I": invoke_fii, - "Da": invoke_fiii, - "Ib": invoke_fiiii, - "Oa": invoke_fiiiii, - "X": invoke_fiiiiii, + "Ea": invoke_fiii, + "Nb": invoke_fiiii, + "Qa": invoke_fiiiii, + "Y": invoke_fiiiiii, "r": invoke_i, "c": invoke_ii, - "R": invoke_iid, - "ma": invoke_iif, - "T": invoke_iifff, - "mb": invoke_iifii, + "S": invoke_iid, + "qa": invoke_iif, + "U": invoke_iifff, + "pb": invoke_iifii, "d": invoke_iii, "j": invoke_iiii, - "la": invoke_iiiidd, - "va": invoke_iiiidi, - "D": invoke_iiiidii, - "Hb": invoke_iiiiff, + "pa": invoke_iiiidd, + "xa": invoke_iiiidi, + "A": invoke_iiiidii, + "Mb": invoke_iiiiff, "m": invoke_iiiii, - "xa": invoke_iiiiid, - "da": invoke_iiiiidii, - "p": invoke_iiiiii, + "ya": invoke_iiiiid, + "fa": invoke_iiiiidii, + "o": invoke_iiiiii, "s": invoke_iiiiiii, - "Eb": invoke_iiiiiiif, - "ka": invoke_iiiiiiii, + "Jb": invoke_iiiiiiif, + "na": invoke_iiiiiiii, "H": invoke_iiiiiiiii, - "Qa": invoke_iiiiiiiiii, - "ha": invoke_iiiiiiiiiii, - "ca": invoke_iiiiiiiiiiii, - "nb": invoke_iiiiij, - "sb": invoke_j, - "qb": invoke_jii, - "rb": invoke_jiii, - "ob": invoke_jiiii, - "t": invoke_v, - "ib": invoke_vdiii, - "ab": invoke_vffi, - "Xa": invoke_vfi, + "Sa": invoke_iiiiiiiiii, + "V": invoke_iiiiiiiiiii, + "ea": invoke_iiiiiiiiiiii, + "rb": invoke_iiiiij, + "xb": invoke_j, + "vb": invoke_jii, + "wb": invoke_jiii, + "sb": invoke_jiiii, + "u": invoke_v, + "lb": invoke_vdiii, + "bb": invoke_vffi, + "Ya": invoke_vfi, "i": invoke_vi, - "N": invoke_vidi, - "U": invoke_vididdii, - "Aa": invoke_vidii, - "Gb": invoke_viffffffff, - "S": invoke_vifi, - "sa": invoke_vifii, + "R": invoke_vid, + "O": invoke_vidi, + "W": invoke_vididdii, + "Ba": invoke_vidii, + "Lb": invoke_viffffffff, + "T": invoke_vifi, + "Va": invoke_vifii, "g": invoke_vii, "l": invoke_viid, - "lb": invoke_viidf, + "qb": invoke_viidd, + "nb": invoke_viidf, "G": invoke_viididii, - "bb": invoke_viidiiid, - "W": invoke_viidiiiii, - "Pa": invoke_viifff, - "ra": invoke_viifffiiii, - "qa": invoke_viiffifi, - "Ya": invoke_viifii, - "Fb": invoke_viifiifi, - "fa": invoke_viifiifii, - "Y": invoke_viifiiiiiii, + "Ga": invoke_viidiiid, + "ga": invoke_viidiiiii, + "Ra": invoke_viifff, + "Ua": invoke_viifffiiii, + "Ta": invoke_viiffifi, + "Za": invoke_viifii, + "Kb": invoke_viifiifi, + "ha": invoke_viifiifii, + "Z": invoke_viifiiiiiii, "h": invoke_viii, - "Q": invoke_viiid, - "w": invoke_viiidd, - "A": invoke_viiiddi, - "z": invoke_viiidi, - "Ua": invoke_viiiff, - "Va": invoke_viiifi, - "pa": invoke_viiifii, + "L": invoke_viiid, + "v": invoke_viiidd, + "C": invoke_viiiddi, + "B": invoke_viiidi, + "kb": invoke_viiidii, + "Sb": invoke_viiiff, + "Wa": invoke_viiifi, + "ta": invoke_viiifii, "k": invoke_viiii, - "M": invoke_viiiid, + "N": invoke_viiiid, "db": invoke_viiiidd, - "kb": invoke_viiiidi, - "ya": invoke_viiiidid, - "Ba": invoke_viiiidiidiiiiiii, - "ta": invoke_viiiif, - "Jb": invoke_viiiiffi, - "Wa": invoke_viiiifi, - "Ca": invoke_viiiifiifiiiiiii, - "_a": invoke_viiiifiiifiii, + "ub": invoke_viiiiddi, + "ob": invoke_viiiidf, + "oa": invoke_viiiidi, + "za": invoke_viiiidid, + "Ca": invoke_viiiidiidiiiiiii, + "va": invoke_viiiif, + "Ob": invoke_viiiiffi, + "Xa": invoke_viiiifi, + "Da": invoke_viiiifiifiiiiiii, + "$a": invoke_viiiifiiifiii, "f": invoke_viiiii, - "ja": invoke_viiiiid, - "ea": invoke_viiiiifi, + "ma": invoke_viiiiid, + "ba": invoke_viiiiidi, + "jb": invoke_viiiiidiii, + "ua": invoke_viiiiifi, "q": invoke_viiiiii, - "Fa": invoke_viiiiiiddi, - "ia": invoke_viiiiiidi, - "hb": invoke_viiiiiidiii, - "Ra": invoke_viiiiiif, - "$a": invoke_viiiiiifiiiiiifiii, - "u": invoke_viiiiiii, - "jb": invoke_viiiiiiiddi, - "Za": invoke_viiiiiiifiiiifiii, - "ua": invoke_viiiiiiifiiiiiifiii, - "x": invoke_viiiiiiii, - "_": invoke_viiiiiiiidd, - "$": invoke_viiiiiiiidf, - "Db": invoke_viiiiiiiif, - "B": invoke_viiiiiiiii, + "Ha": invoke_viiiiiiddi, + "ka": invoke_viiiiiidi, + "la": invoke_viiiiiidiii, + "Pb": invoke_viiiiiif, + "ab": invoke_viiiiiifiiiiiifiii, + "t": invoke_viiiiiii, + "mb": invoke_viiiiiiiddi, + "_a": invoke_viiiiiiifiiiifiii, + "wa": invoke_viiiiiiifiiiiiifiii, + "y": invoke_viiiiiiii, + "$": invoke_viiiiiiiidd, + "aa": invoke_viiiiiiiidf, + "Ib": invoke_viiiiiiiif, + "D": invoke_viiiiiiiii, "fb": invoke_viiiiiiiiidd, "eb": invoke_viiiiiiiiiddi, - "Sa": invoke_viiiiiiiiiffiii, + "Qb": invoke_viiiiiiiiiffiii, "E": invoke_viiiiiiiiii, - "za": invoke_viiiiiiiiiiddi, - "ga": invoke_viiiiiiiiiifii, - "O": invoke_viiiiiiiiiii, - "wa": invoke_viiiiiiiiiiiii, + "Aa": invoke_viiiiiiiiiiddi, + "ia": invoke_viiiiiiiiiifii, + "P": invoke_viiiiiiiiiii, + "ja": invoke_viiiiiiiiiiiii, "cb": invoke_viiiiiiiiiiiiii, - "ba": invoke_viiiiiiiiiiiiiii, - "Ta": invoke_viiiiiiiiiiiiiiii, - "gb": invoke_viiiiiiiiiiiiiiiiiiidi, - "P": _llvm_eh_typeid_for, - "aa": _setTempRet0, - "yb": _strftime_l, - "Na": _time + "da": invoke_viiiiiiiiiiiiiii, + "Rb": invoke_viiiiiiiiiiiiiiii, + "hb": invoke_viiiiiiiiiiiiiiiiiiidi, + "ib": invoke_viiiiiiiiiiiiiiiiiiidii, + "gb": invoke_viiiiiiiiiiiiiiiiiiiiiiiiiiii, + "Q": _llvm_eh_typeid_for, + "ca": _setTempRet0, + "Db": _strftime_l, + "Pa": _time }; var asm = createWasm(); var ___wasm_call_ctors = Module["___wasm_call_ctors"] = function() { - return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["Lb"]).apply(null, arguments); + return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["Ub"]).apply(null, arguments); }; var _qrtool_angle = Module["_qrtool_angle"] = function() { - return (_qrtool_angle = Module["_qrtool_angle"] = Module["asm"]["Mb"]).apply(null, arguments); + return (_qrtool_angle = Module["_qrtool_angle"] = Module["asm"]["Vb"]).apply(null, arguments); }; var _malloc = Module["_malloc"] = function() { - return (_malloc = Module["_malloc"] = Module["asm"]["Ob"]).apply(null, arguments); + return (_malloc = Module["_malloc"] = Module["asm"]["Xb"]).apply(null, arguments); }; var _free = Module["_free"] = function() { - return (_free = Module["_free"] = Module["asm"]["Pb"]).apply(null, arguments); + return (_free = Module["_free"] = Module["asm"]["Yb"]).apply(null, arguments); }; var ___errno_location = Module["___errno_location"] = function() { - return (___errno_location = Module["___errno_location"] = Module["asm"]["Qb"]).apply(null, arguments); + return (___errno_location = Module["___errno_location"] = Module["asm"]["Zb"]).apply(null, arguments); }; var stackSave = Module["stackSave"] = function() { - return (stackSave = Module["stackSave"] = Module["asm"]["Rb"]).apply(null, arguments); + return (stackSave = Module["stackSave"] = Module["asm"]["_b"]).apply(null, arguments); }; var stackRestore = Module["stackRestore"] = function() { - return (stackRestore = Module["stackRestore"] = Module["asm"]["Sb"]).apply(null, arguments); + return (stackRestore = Module["stackRestore"] = Module["asm"]["$b"]).apply(null, arguments); }; var stackAlloc = Module["stackAlloc"] = function() { - return (stackAlloc = Module["stackAlloc"] = Module["asm"]["Tb"]).apply(null, arguments); + return (stackAlloc = Module["stackAlloc"] = Module["asm"]["ac"]).apply(null, arguments); }; var _setThrew = Module["_setThrew"] = function() { - return (_setThrew = Module["_setThrew"] = Module["asm"]["Ub"]).apply(null, arguments); + return (_setThrew = Module["_setThrew"] = Module["asm"]["bc"]).apply(null, arguments); }; var ___cxa_can_catch = Module["___cxa_can_catch"] = function() { - return (___cxa_can_catch = Module["___cxa_can_catch"] = Module["asm"]["Vb"]).apply(null, arguments); + return (___cxa_can_catch = Module["___cxa_can_catch"] = Module["asm"]["cc"]).apply(null, arguments); }; var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() { - return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["Wb"]).apply(null, arguments); + return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["dc"]).apply(null, arguments); }; var dynCall_j = Module["dynCall_j"] = function() { - return (dynCall_j = Module["dynCall_j"] = Module["asm"]["Xb"]).apply(null, arguments); + return (dynCall_j = Module["dynCall_j"] = Module["asm"]["ec"]).apply(null, arguments); }; var dynCall_jiii = Module["dynCall_jiii"] = function() { - return (dynCall_jiii = Module["dynCall_jiii"] = Module["asm"]["Yb"]).apply(null, arguments); + return (dynCall_jiii = Module["dynCall_jiii"] = Module["asm"]["fc"]).apply(null, arguments); }; var dynCall_jii = Module["dynCall_jii"] = function() { - return (dynCall_jii = Module["dynCall_jii"] = Module["asm"]["Zb"]).apply(null, arguments); + return (dynCall_jii = Module["dynCall_jii"] = Module["asm"]["gc"]).apply(null, arguments); }; var dynCall_jiiii = Module["dynCall_jiiii"] = function() { - return (dynCall_jiiii = Module["dynCall_jiiii"] = Module["asm"]["_b"]).apply(null, arguments); + return (dynCall_jiiii = Module["dynCall_jiiii"] = Module["asm"]["hc"]).apply(null, arguments); }; var dynCall_iiiiij = Module["dynCall_iiiiij"] = function() { - return (dynCall_iiiiij = Module["dynCall_iiiiij"] = Module["asm"]["$b"]).apply(null, arguments); + return (dynCall_iiiiij = Module["dynCall_iiiiij"] = Module["asm"]["ic"]).apply(null, arguments); }; function invoke_iiiiii(index, a1, a2, a3, a4, a5) { @@ -4212,6 +4221,28 @@ function invoke_vii(index, a1, a2) { } } +function invoke_viiiiddi(index, a1, a2, a3, a4, a5, a6, a7) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + +function invoke_viidd(index, a1, a2, a3, a4) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_i(index) { var sp = stackSave(); try { @@ -4234,6 +4265,50 @@ function invoke_iifii(index, a1, a2, a3, a4) { } } +function invoke_dii(index, a1, a2) { + var sp = stackSave(); + try { + return getWasmTableEntry(index)(a1, a2); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + +function invoke_viiiidf(index, a1, a2, a3, a4, a5, a6) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + +function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) { + var sp = stackSave(); + try { + return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + +function invoke_vid(index, a1, a2) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_viiiiiiddi(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) { var sp = stackSave(); try { @@ -4267,6 +4342,17 @@ function invoke_viidf(index, a1, a2, a3, a4) { } } +function invoke_viidiiid(index, a1, a2, a3, a4, a5, a6, a7) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_v(index) { var sp = stackSave(); try { @@ -4289,10 +4375,10 @@ function invoke_viiiii(index, a1, a2, a3, a4, a5) { } } -function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) { +function invoke_viiiiidi(index, a1, a2, a3, a4, a5, a6, a7) { var sp = stackSave(); try { - return getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6); + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7); } catch (e) { stackRestore(sp); if (e !== e + 0 && e !== "longjmp") throw e; @@ -4300,10 +4386,21 @@ function invoke_iiiiiii(index, a1, a2, a3, a4, a5, a6) { } } -function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) { +function invoke_viiidi(index, a1, a2, a3, a4, a5) { var sp = stackSave(); try { - getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6); + getWasmTableEntry(index)(a1, a2, a3, a4, a5); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + +function invoke_viiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9); } catch (e) { stackRestore(sp); if (e !== e + 0 && e !== "longjmp") throw e; @@ -4322,6 +4419,17 @@ function invoke_viiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8) { } } +function invoke_viiiiii(index, a1, a2, a3, a4, a5, a6) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_iif(index, a1, a2) { var sp = stackSave(); try { @@ -4344,17 +4452,6 @@ function invoke_iid(index, a1, a2) { } } -function invoke_viiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) { - var sp = stackSave(); - try { - getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9); - } catch (e) { - stackRestore(sp); - if (e !== e + 0 && e !== "longjmp") throw e; - _setThrew(1, 0); - } -} - function invoke_iiiidd(index, a1, a2, a3, a4, a5) { var sp = stackSave(); try { @@ -4465,17 +4562,6 @@ function invoke_viiiidi(index, a1, a2, a3, a4, a5, a6) { } } -function invoke_dii(index, a1, a2) { - var sp = stackSave(); - try { - return getWasmTableEntry(index)(a1, a2); - } catch (e) { - stackRestore(sp); - if (e !== e + 0 && e !== "longjmp") throw e; - _setThrew(1, 0); - } -} - function invoke_vidii(index, a1, a2, a3, a4) { var sp = stackSave(); try { @@ -4509,17 +4595,6 @@ function invoke_viiiiiiiddi(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { } } -function invoke_viiidi(index, a1, a2, a3, a4, a5) { - var sp = stackSave(); - try { - getWasmTableEntry(index)(a1, a2, a3, a4, a5); - } catch (e) { - stackRestore(sp); - if (e !== e + 0 && e !== "longjmp") throw e; - _setThrew(1, 0); - } -} - function invoke_viiiid(index, a1, a2, a3, a4, a5) { var sp = stackSave(); try { @@ -4685,6 +4760,17 @@ function invoke_iiiidii(index, a1, a2, a3, a4, a5, a6) { } } +function invoke_viiidii(index, a1, a2, a3, a4, a5, a6) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { var sp = stackSave(); try { @@ -4696,6 +4782,28 @@ function invoke_iiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { } } +function invoke_viiiiidiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + +function invoke_viiiiiiiiiiiiiiiiiiidii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_viiiiiiiiiiiiiiiiiiidi(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21) { var sp = stackSave(); try { @@ -4718,6 +4826,17 @@ function invoke_viiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a } } +function invoke_viiiiiiiiiiiiiiiiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28) { + var sp = stackSave(); + try { + getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28); + } catch (e) { + stackRestore(sp); + if (e !== e + 0 && e !== "longjmp") throw e; + _setThrew(1, 0); + } +} + function invoke_viiiiiiiiidd(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) { var sp = stackSave(); try { @@ -4773,17 +4892,6 @@ function invoke_viiiiiiiiiiiiii(index, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, } } -function invoke_viidiiid(index, a1, a2, a3, a4, a5, a6, a7) { - var sp = stackSave(); - try { - getWasmTableEntry(index)(a1, a2, a3, a4, a5, a6, a7); - } catch (e) { - stackRestore(sp); - if (e !== e + 0 && e !== "longjmp") throw e; - _setThrew(1, 0); - } -} - function invoke_fii(index, a1, a2) { var sp = stackSave(); try { diff --git a/web/public/camera-4.0/js/qrtool.web.wasm b/web/public/camera-4.0/js/qrtool.web.wasm index c1c10e2..2e1c38a 100755 Binary files a/web/public/camera-4.0/js/qrtool.web.wasm and b/web/public/camera-4.0/js/qrtool.web.wasm differ diff --git a/web/public/camera-5.0/Makefile b/web/public/camera-5.0/Makefile new file mode 100644 index 0000000..e3d14cc --- /dev/null +++ b/web/public/camera-5.0/Makefile @@ -0,0 +1,2 @@ +deploy: + rsync -zrP * oci:/data/emblem-camera/ diff --git a/web/public/camera-5.0/camera-4.0/Makefile b/web/public/camera-5.0/camera-4.0/Makefile new file mode 100644 index 0000000..e3d14cc --- /dev/null +++ b/web/public/camera-5.0/camera-4.0/Makefile @@ -0,0 +1,2 @@ +deploy: + rsync -zrP * oci:/data/emblem-camera/ diff --git a/web/public/camera-5.0/camera-4.0/css/loading.css b/web/public/camera-5.0/camera-4.0/css/loading.css new file mode 100644 index 0000000..6e4c6d6 --- /dev/null +++ b/web/public/camera-5.0/camera-4.0/css/loading.css @@ -0,0 +1,85 @@ +.lds-roller { + display: inline-block; + position: relative; + width: 80px; + height: 80px; +} +.lds-roller div { + animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; + transform-origin: 40px 40px; +} +.lds-roller div:after { + content: " "; + display: block; + position: absolute; + width: 7px; + height: 7px; + border-radius: 50%; + background: #666; + margin: -4px 0 0 -4px; +} +.lds-roller div:nth-child(1) { + animation-delay: -0.036s; +} +.lds-roller div:nth-child(1):after { + top: 63px; + left: 63px; +} +.lds-roller div:nth-child(2) { + animation-delay: -0.072s; +} +.lds-roller div:nth-child(2):after { + top: 68px; + left: 56px; +} +.lds-roller div:nth-child(3) { + animation-delay: -0.108s; +} +.lds-roller div:nth-child(3):after { + top: 71px; + left: 48px; +} +.lds-roller div:nth-child(4) { + animation-delay: -0.144s; +} +.lds-roller div:nth-child(4):after { + top: 72px; + left: 40px; +} +.lds-roller div:nth-child(5) { + animation-delay: -0.18s; +} +.lds-roller div:nth-child(5):after { + top: 71px; + left: 32px; +} +.lds-roller div:nth-child(6) { + animation-delay: -0.216s; +} +.lds-roller div:nth-child(6):after { + top: 68px; + left: 24px; +} +.lds-roller div:nth-child(7) { + animation-delay: -0.252s; +} +.lds-roller div:nth-child(7):after { + top: 63px; + left: 17px; +} +.lds-roller div:nth-child(8) { + animation-delay: -0.288s; +} +.lds-roller div:nth-child(8):after { + top: 56px; + left: 12px; +} +@keyframes lds-roller { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} + diff --git a/web/public/camera-5.0/camera-4.0/css/main.css b/web/public/camera-5.0/camera-4.0/css/main.css new file mode 100644 index 0000000..4dbaef7 --- /dev/null +++ b/web/public/camera-5.0/camera-4.0/css/main.css @@ -0,0 +1,464 @@ +body { + margin: 0; + padding: 0; + font-family:Tahoma,Verdana,STHeiTi,simsun,sans-serif; +} +div.debug { + position: absolute; + left: 5px; + bottom: 5px; + width: 80%; + height: 50%; + border-radius: 10px; + border: 2px dashed rgba(50, 255, 50, 0.5); + background-color: rgba(0, 50, 0, 0.7); + padding: 1rem; + color: #fff; + font-size: 12px; + word-break: break-all; +} +.hidden { + display: none !important; +} +video.preview { + object-fit: cover; + position: fixed; + top: -1%; + left: -1%; + width: 102%; + height: 102%; + z-index: -1000; + border: 1px solid yellow; + box-sizing: border-box; +} +div.debug canvas { + display: inline-block; + width: 100px; + height: 100px; +} +div.bottomfixed { + position: absolute; + width: 100%; + bottom: 0; + height: 90px; + background-color: #171616; + text-align: center; + border-top: 1px solid #ef4823; +} + +.play.button { + display: inline-block; + padding: 0.1rem 1.2rem 0.1rem 1.4rem; + margin-right: 0.2rem; + border-radius: 6px; + background-color: #707070; + color: #444; +} + +div.bottomfixed .action.highlight .play.button { + background-color: #ccc; +} + +div.bottomfixed .action img { + height: 14px; + width: 36px; +} + +div.bottomfixed .action { + margin-top: 20px; + font-size: 1rem; + color: #707070; + width: 49%; + display: inline-block; +} + +div.bottomfixed .action.highlight { + color: #ccc; +} + +div.camoverlay { + position: fixed; + top: 0; + clear: both; + font-size: 0; + width: 100%; + aspect-ratio: 1; + top: 18vw; +} +div.camoverlay img.qrmarkers { + position: absolute; + left: 0; + margin: 0; + width: 100%; + height: 100%; +} + +div.lower.text { + top: 4%; + text-align: center; +} + +div.progress { + width: 70%; + margin: 0.2rem 0 0 0; + height: 20px; + border-radius: 10px; + background-color: #eee; + font-size: 18px; + color: black; + display: inline-block; + position: relative; + overflow: hidden; +} +div.progress-text { + color: #333; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} +div.progress-bar { + border-radius: 10px; + background-color: #ef4823; + width: 0%; + height: 100%; + top: 0; +} +div.upper.overlay { + position: relative; + height: 100vmin; + text-align: center; +} + +div.lower.overlay { + position: relative; + width: 100%; + text-align: center; +} +div.debug .buttons { + margin: 0 0 0.3rem 0; +} +div.debug .buttons button { + height: 2rem; + margin: 0 5px 5px 0; +} + +div#loading { + width: 100%; + height: 100%; + position: absolute; + background-color: white; + z-index: 10000; + text-align: center; + padding-top: 30%; +} + +canvas#output_img { + position: absolute; + right: 5px; + top: 5px; +} + +div.bordered { + padding: 0.2rem; + border: 1px dashed yellow; + border-radius: 4px; + margin: 0.2rem 0; +} + +div.output { + position: relative; +} + +.tooltip { + position: absolute; + width: 100vmin; + display: block; + margin: 0 auto; + animation: bounce 1s ease-in-out infinite; /* Adjust the duration as needed */ + top: -60px; +} + +.tooltip .tooltiptext { + display: block; + margin: 0 auto; + width: 110px; + background-color: #ef4823; + color: #fff; + padding: 12px 0; + border-radius: 10px; + z-index: 1; + opacity: 0.75; +} + +.tooltip:hover .tooltiptext { +} +.tooltip .tooltiptext::after { + content: " "; + position: absolute; + top: 100%; /* At the bottom of the tooltip */ + left: 50%; + margin-left: -5px; + border-width: 5px; + border-style: solid; + border-color: #ef4823 transparent transparent transparent; +} + +@keyframes bounce { + 0%, 100% { + transform: translateY(0); + } + 50% { + transform: translateY(10px); /* Adjust the bounce height as needed */ + } +} + +.modal { + display: block; + width: 100%; + height: 100%; + position: fixed; + background-color: rgba(0, 0, 0, 0.9); + z-index: 100; +} + +.modal .panel { + position: relative; + width: 80vmin; + height: 80%; + margin: 10vmin auto; + background-image: linear-gradient(0deg, #8b8986 0%, #414141 36%, #414141 92%, #515151 100%); + border-radius: 20px; +} + +.modal .actions { + position: absolute; + display: block; + width: 100%; + height: 100px; + bottom: 0; + text-align: center; +} + +.actions button { + display: inline-block; + width: 35%; + border-radius: 10px; + box-sizing: border-box; + font-size: 0.8rem; + border-radius: 20rpx; + padding: 0.4rem 1.5rem; +} + +button.service { + margin-right: 0.5rem; + border: 1px solid #676767; + background-color: #858585; + color: #a7a7a7; +} + +button.back { + border: 1px solid rgba(239, 72, 35, 0.7); + color: rgba(239, 72, 35, 0.7); + margin-left: 0.5rem; +} + +button.back img.return { + width: 10px; + height: 10px; +} + +.serviceqr { + position: relative; + width: 100%; + padding-top: 80px; +} + +.serviceqr .imgbox { + display: block; + margin: auto; + width: 60vmin; + height: 60vmin; + padding: 3vmin; + background-color: #eee; + border-radius: 10px; +} + +.serviceqr .title { + position: absolute; + display: inline-block; + width: 100%; + color: #eee; + margin: 30px auto; + text-align: center; + padding: 0; +} + +.serviceqr img { + width: 100%; + height: 100%; +} + +.verifyfailed { + text-align: center; + color: #eee; +} + +.verifyfailed .title { + font-size: 1.1rem; +} + +.verifyfailed .hints { + margin-top: 80px; + color: #ccc; +} + +.verifyfailed .hints div { + margin-bottom: 0.3rem; +} + +.verifyfailed .circle { + height: 20vmin; + width: 20vmin; + color: #666; + font-size: 15vmin; + margin: 10vmin auto 1rem;; + background-color: #ddd; + border-radius: 50%; + display: inline-block; +} + +.verifyspin { + position: absolute; + overflow: hidden; + z-index: 101; + width: 100vmin; + height: 100vmax; + background-color: rgba(0, 0, 0, 0.9); +} + +.verifyspin .spinner { + position: absolute; /* Position the image absolutely */ + width: 100vmin; + height: 100vmin; + margin: 0 auto; + text-align: center; + display: block; +} + +.verifyspin img { + display: block; + width: 100%; + height: 100%; +} + +.spin-and-shrink { + animation: spin-and-shrink 3s linear forwards; +} + +@keyframes spin-and-shrink { + 0% { + transform: rotate(-90deg) scale(5.5) + } + 10% { + transform: rotate(0deg) scale(2.0) + } + 33% { + transform: rotate(90deg) scale(1.0); + } + 66% { + transform: rotate(2000deg) scale(0.5); + } + 99% { + transform: rotate(3600deg) scale(0.2); + } + 100% { + transform: rotate(3600deg) scale(0.2); + } +} + +.spin-only { + animation: spin-only 0.3s linear infinite; +} + +@keyframes spin-only { + 0% { + transform: rotate(0deg) scale(0.2); + } + 100% { + transform: rotate(360deg) scale(0.2); + } +} + +.verifyspin .loading { + color: #ccc; + font-size: 1.4rem; + display: block; + width: 100%; + margin: 110vmin auto; + text-align: center; +} + +div.scanguide { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +#hint { + display: inline-block; + margin: 10px auto; + padding: 12px 40px; + border-radius: 10px; + background-color: rgba(0, 0, 0, 0.7); + color: #eee; + font-size: 20px; +} + +div.qrarc { + position: absolute; + box-sizing: border-box; + width: 76vw; + height: 76vw; + margin: 20vw 12vw; + animation: qrarc-anime 1.2s ease-in-out infinite; +} + +div.qrarc img.arc { + position: absolute; + width: 15%; + height: 15%; + opacity: 0.9; + display: block; +} + +div.qrarc img.arc.topright { + right: 0; + transform: rotate(90deg); +} + +div.qrarc img.arc.bottomleft { + bottom: 0; + transform: rotate(-90deg); +} + +div.qrarc img.arc.bottomright { + bottom: 0; + right: 0; + transform: rotate(180deg); +} + + +@keyframes qrarc-anime { + 0% { + transform: scale(1); + } + 50% { + transform: scale(1.05); + } + 100% { + transform: scale(1); + } +} diff --git a/web/public/camera-5.0/camera-4.0/images/arc.png b/web/public/camera-5.0/camera-4.0/images/arc.png new file mode 100644 index 0000000..bc3a238 Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/arc.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/black.png b/web/public/camera-5.0/camera-4.0/images/black.png new file mode 100644 index 0000000..4eb7ece Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/black.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/camoverlay.png b/web/public/camera-5.0/camera-4.0/images/camoverlay.png new file mode 100644 index 0000000..1d9ba68 Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/camoverlay.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/flash-button.png b/web/public/camera-5.0/camera-4.0/images/flash-button.png new file mode 100644 index 0000000..b18cdc3 Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/flash-button.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/play-button.png b/web/public/camera-5.0/camera-4.0/images/play-button.png new file mode 100644 index 0000000..aff31b1 Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/play-button.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/qrmarkers.png b/web/public/camera-5.0/camera-4.0/images/qrmarkers.png new file mode 100644 index 0000000..2f47bce Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/qrmarkers.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/return.png b/web/public/camera-5.0/camera-4.0/images/return.png new file mode 100644 index 0000000..b71e5ec Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/return.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/right-arrow.png b/web/public/camera-5.0/camera-4.0/images/right-arrow.png new file mode 100644 index 0000000..6aa6af0 Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/right-arrow.png differ diff --git a/web/public/camera-5.0/camera-4.0/images/spinner.png b/web/public/camera-5.0/camera-4.0/images/spinner.png new file mode 100644 index 0000000..1a62b8f Binary files /dev/null and b/web/public/camera-5.0/camera-4.0/images/spinner.png differ diff --git a/web/public/camera-5.0/camera-4.0/index.html b/web/public/camera-5.0/camera-4.0/index.html new file mode 100644 index 0000000..fe833b4 --- /dev/null +++ b/web/public/camera-5.0/camera-4.0/index.html @@ -0,0 +1,139 @@ + + +
+ + + + +
+ 验证演示
+
+ 开启补光
+ n?-1:1,l=!0;l;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),l=!1):a+=h,a<0||a>=s-1){if(a===s-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var h=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),s=t.c,a=t.v,n=t.o,o=t.i,h=t._length,l=r.lengths,p=0;for(e=0;e n?-1:1,l=!0;l;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),l=!1):a+=h,a<0||a>=s-1){if(a===s-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var h=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),s=t.c,a=t.v,n=t.o,o=t.i,h=t._length,l=r.lengths,p=0;for(e=0;e0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(m):Math.ceil(m),u=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(m>0){for(;x=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(t,a),l.push(offsetSegmentSplit(o,e));l=pruneIntersections(l);var p=null,f=null;for(a=0;a0&&(p=!1),p){var f=createTag("style");f.setAttribute("f-forigin",r[i].fOrigin),f.setAttribute("f-origin",r[i].origin),f.setAttribute("f-family",r[i].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(f)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;ie);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,a=t.length,n=!1,o=!1,h="";s=55296&&e<=56319?FontManager.isRegionalFlag(t,s)?h=t.substr(s,14):(i=t.charCodeAt(s+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(h=t.substr(s,2),n=!0):h=FontManager.isFlagEmoji(t.substr(s,4))?t.substr(s,4):t.substr(s,2)):e>56319?(i=t.charCodeAt(s+1),FontManager.isVariationSelector(e)&&(n=!0)):FontManager.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(r[r.length-1]+=h,n=!1):r.push(h),s+=h.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s,a,n,o,h=this.elem.globalData.fontManager,l=this.data,p=[],f=0,m=l.m.g,c=0,d=0,u=0,y=[],g=0,v=0,b=h.getFontByName(t.f),x=0,P=getFontProperties(b);t.fWeight=P.weight,t.fStyle=P.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var E,S=t.tr/1e3*t.finalSize;if(t.sz)for(var C,_,A=!0,T=t.sz[0],M=t.sz[1];A;){C=0,g=0,i=(_=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var k=-1;for(e=0;eT&&" "!==_[e]?(-1===k?i+=1:e=k,C+=t.finalLineHeight||1.2*t.finalSize,_.splice(e,k===e?1:0,"\r"),k=-1,g=0):(g+=x,g+=S);C+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Ms&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(as&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===p&&(a>s&&"meet"===o||as&&"meet"===o||a=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var o,h=s.length,l=createTypedArray("float32",h);for(o=0;o
+ 验证演示
+
+ 开启补光
+ 1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,i=1,r=[],s={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){s.onmessage({data:t})}};function n(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,s}((function(t){if(a.dataManager||(a.dataManager=function(){function t(s,a){var n,o,h,l,p,m,c=s.length;for(o=0;o=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(s=t[i].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function a(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function n(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return n.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var r=t.length;for(i=0;i0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e0?Math.floor(m):Math.ceil(m),u=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(m>0){for(;x=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(t,a),l.push(offsetSegmentSplit(o,e));l=pruneIntersections(l);var p=null,f=null;for(a=0;a0&&(p=!1),p){var f=createTag("style");f.setAttribute("f-forigin",r[i].fOrigin),f.setAttribute("f-origin",r[i].origin),f.setAttribute("f-family",r[i].fFamily),f.type="text/css",f.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(f)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;ie);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,a=t.length,n=!1,o=!1,h="";s=55296&&e<=56319?FontManager.isRegionalFlag(t,s)?h=t.substr(s,14):(i=t.charCodeAt(s+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(h=t.substr(s,2),n=!0):h=FontManager.isFlagEmoji(t.substr(s,4))?t.substr(s,4):t.substr(s,2)):e>56319?(i=t.charCodeAt(s+1),FontManager.isVariationSelector(e)&&(n=!0)):FontManager.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(r[r.length-1]+=h,n=!1):r.push(h),s+=h.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s,a,n,o,h=this.elem.globalData.fontManager,l=this.data,p=[],f=0,m=l.m.g,c=0,d=0,u=0,y=[],g=0,v=0,b=h.getFontByName(t.f),x=0,P=getFontProperties(b);t.fWeight=P.weight,t.fStyle=P.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var E,S=t.tr/1e3*t.finalSize;if(t.sz)for(var C,_,A=!0,T=t.sz[0],M=t.sz[1];A;){C=0,g=0,i=(_=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var k=-1;for(e=0;eT&&" "!==_[e]?(-1===k?i+=1:e=k,C+=t.finalLineHeight||1.2*t.finalSize,_.splice(e,k===e?1:0,"\r"),k=-1,g=0):(g+=x,g+=S);C+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Ms&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(as&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===p&&(a>s&&"meet"===o||as&&"meet"===o||a=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var i;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var o,h=s.length,l=createTypedArray("float32",h);for(o=0;o