@lottiefiles/dotlottie-web 0.66.2 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=typeof window<`u`&&window.document!==void 0,t=new Uint8Array([80,75,3,4]),n=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],r=`0.66.2`,i=`@lottiefiles/dotlottie-web`;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ee(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function s(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},ne=class{constructor(){s(this,`_lastHandleId`,0),s(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},re=class{constructor(){s(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new te:new ne}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let c;function l(e){let t=c.__externref_table_alloc_command_export();return c.__wbindgen_export_2.set(t,e),t}function ie(e,t){try{return e.apply(this,t)}catch(e){let t=l(e);c.__wbindgen_exn_store_command_export(t)}}let u=0,d=null;function f(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(c.memory.buffer)),d}const p=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},ae=typeof p.encodeInto==`function`?function(e,t){return p.encodeInto(e,t)}:function(e,t){let n=p.encode(e);return t.set(n),{read:e.length,written:n.length}};function m(e,t,n){if(n===void 0){let n=p.encode(e),r=t(n.length,1)>>>0;return f().subarray(r,r+n.length).set(n),u=n.length,r}let r=e.length,i=t(r,1)>>>0,a=f(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=f().subarray(i+o,i+r),a=ae(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return u=o,i}function h(e){return e==null}let g=null;function _(){return(g===null||g.buffer.detached===!0||g.buffer.detached===void 0&&g.buffer!==c.memory.buffer)&&(g=new DataView(c.memory.buffer)),g}const v=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&v.decode();function y(e,t){return e>>>=0,v.decode(f().subarray(e,e+t))}function b(e,t){let n=t(e.length*1,1)>>>0;return f().set(e,n/1),u=e.length,n}let x=null;function oe(){return(x===null||x.byteLength===0)&&(x=new Float32Array(c.memory.buffer)),x}function se(e,t){let n=t(e.length*4,4)>>>0;return oe().set(e,n/4),u=e.length,n}function ce(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=l(e[t]);_().setUint32(n+4*t,r,!0)}return u=e.length,n}function le(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.register_font(n,r,i,a)!==0}const S=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),ue=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>c.__wbg_dotlottieplayerwasm_free(e>>>0,1));var de=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ue.unregister(this),e}free(){let e=this.__destroy_into_raw();c.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=c.dotlottieplayerwasm_new()>>>0,ue.register(this,this.__wbg_ptr,this),this}load_animation(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=b(e,c.__wbindgen_malloc_command_export),i=u;return c.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return c.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return c.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){c.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return c.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return c.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}play(){return c.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return c.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return c.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return c.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return c.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return c.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return c.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return c.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return c.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return c.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return c.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return c.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return c.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return c.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return c.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return c.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return c.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){c.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return c.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return c.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return c.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return c.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){c.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return c.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){c.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return c.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){c.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return c.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){c.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return c.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){c.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return c.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){c.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return c.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return c.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return c.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return c.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return c.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return c.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return c.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return c.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return c.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=c.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return c.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return c.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return c.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return c.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=c.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return c.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return c.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=m(n,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return c.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=se(e,c.__wbindgen_malloc_command_export),n=u;return c.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return c.dotlottieplayerwasm_tween(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return c.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return c.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return c.dotlottieplayerwasm_tween_update(this.__wbg_ptr,h(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,h(t)?4294967297:Math.fround(t))!==0}markers(){return c.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return c.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=c.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){c.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return c.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){c.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return c.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=c.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=c.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=c.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=c.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){c.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return c.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=ce(t,c.__wbindgen_malloc_command_export),r=u;return c.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return c.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=c.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=c.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return c.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return c.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){c.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){c.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){c.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){c.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){c.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){c.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return c.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return c.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function fe(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function pe(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return ie(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbindgen_init_externref_table=function(){let e=c.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return c.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=h(r)?0:m(r,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;_().setInt32(e+4,a,!0),_().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return y(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(y(e,t))},e}function me(e,t){return c=e.exports,C.__wbindgen_wasm_module=t,g=null,x=null,d=null,c.__wbindgen_start(),c}async function C(e){if(c!==void 0)return c;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=pe();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await fe(await e,t);return me(n,r)}var he=class{constructor(){s(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},w=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};s(w,`_observer`,null),s(w,`_observedCanvases`,new Map);var T=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};s(T,`_observer`,null),s(T,`_observedCanvases`,new Map);function ge(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function _e(e){if(!ge(e))return 0;let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function ve(e){if(e.byteLength<4)return!1;let n=new Uint8Array(e.slice(0,t.byteLength));for(let e=0;e<t.length;e+=1)if(t[e]!==n[e])return!1;return!0}function ye(e){return n.every(t=>Object.hasOwn(e,t))}function be(e){if(typeof e==`string`)try{return ye(JSON.parse(e))}catch{return!1}else return ye(e)}function E(){return 1+((e?window.devicePixelRatio:1)-1)*.75}function D(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function O(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function xe(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function k(e,t,n){let r=null,i=t;return{load(){return r||(r=e(i).then(()=>void 0).catch(async t=>{console.warn(`Primary WASM load failed from ${i}: ${t.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{await e(n)}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})),r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}const A=k(C,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/dotlottie-player.wasm`),j=e=>{switch(e){case`reverse`:return S.Reverse;case`bounce`:return S.Bounce;case`reverse-bounce`:return S.ReverseBounce;default:return S.Forward}},Se=e=>{switch(e){case S.Reverse:return`reverse`;case S.Bounce:return`bounce`;case S.ReverseBounce:return`reverse-bounce`;default:return`forward`}},Ce=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}};var we=class{constructor(e){s(this,`_canvas`,null),s(this,`_pendingLoad`,null),s(this,`_context`,null),s(this,`_eventManager`,void 0),s(this,`_animationFrameId`,null),s(this,`_frameManager`,void 0),s(this,`_dotLottieCore`,null),s(this,`_stateMachineId`,``),s(this,`_stateMachineConfig`,null),s(this,`_isStateMachineRunning`,!1),s(this,`_renderConfig`,{}),s(this,`_isFrozen`,!1),s(this,`_backgroundColor`,null),s(this,`_boundOnClick`,null),s(this,`_boundOnPointerUp`,null),s(this,`_boundOnPointerDown`,null),s(this,`_boundOnPointerMove`,null),s(this,`_boundOnPointerEnter`,null),s(this,`_boundOnPointerLeave`,null),s(this,`_bufferMismatchCount`,0),s(this,`_lastExpectedBufferSize`,0),s(this,`_marker`,``),this._canvas=e.canvas??null,this._eventManager=new he,this._frameManager=new re,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||E(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(j(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return A.load()}_createCore(){return new de}_onCoreCreated(){}_drainPlayerEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!=null;){let t=e;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:setTimeout(()=>this._eventManager.dispatch({type:`play`}),0);break;case`Pause`:setTimeout(()=>this._eventManager.dispatch({type:`pause`}),0);break;case`Stop`:setTimeout(()=>this._eventManager.dispatch({type:`stop`}),0);break;case`Frame`:setTimeout(()=>this._eventManager.dispatch({type:`frame`,currentFrame:t.frameNo??0}),0);break;case`Render`:setTimeout(()=>this._eventManager.dispatch({type:`render`,currentFrame:t.frameNo??0}),0);break;case`Loop`:setTimeout(()=>this._eventManager.dispatch({type:`loop`,loopCount:t.loopCount??0}),0);break;case`Complete`:setTimeout(()=>this._eventManager.dispatch({type:`complete`}),0);break;default:break}}}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!=null;){let e=t;switch(e.type){case`Start`:setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()},0);break;case`Stop`:setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:e.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:e.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:e.previousState??``,toState:e.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}let n;for(;(n=this._dotLottieCore.sm_poll_internal_event())!=null;){let t=n;if(t.type===`Message`){let n=t.message??``;e&&n.startsWith(`OpenUrl: `)?xe(n):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:n})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return ve(n)?n:new TextDecoder().decode(n)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t==`string`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(t,n,r)}else if(t instanceof ArrayBuffer){if(!ve(t)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}i=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t),n,r)}else if(typeof t==`object`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(JSON.stringify(t),n,r)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=typeof window<`u`&&window.document!==void 0,t=new Uint8Array([80,75,3,4]),n=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],r=`0.67.0`,i=`@lottiefiles/dotlottie-web`;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ee(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function s(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},ne=class{constructor(){s(this,`_lastHandleId`,0),s(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},re=class{constructor(){s(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new te:new ne}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let c;function l(e){let t=c.__externref_table_alloc_command_export();return c.__wbindgen_export_2.set(t,e),t}function ie(e,t){try{return e.apply(this,t)}catch(e){let t=l(e);c.__wbindgen_exn_store_command_export(t)}}let u=0,d=null;function f(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(c.memory.buffer)),d}const p=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},ae=typeof p.encodeInto==`function`?function(e,t){return p.encodeInto(e,t)}:function(e,t){let n=p.encode(e);return t.set(n),{read:e.length,written:n.length}};function m(e,t,n){if(n===void 0){let n=p.encode(e),r=t(n.length,1)>>>0;return f().subarray(r,r+n.length).set(n),u=n.length,r}let r=e.length,i=t(r,1)>>>0,a=f(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=f().subarray(i+o,i+r),a=ae(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return u=o,i}function h(e){return e==null}let g=null;function _(){return(g===null||g.buffer.detached===!0||g.buffer.detached===void 0&&g.buffer!==c.memory.buffer)&&(g=new DataView(c.memory.buffer)),g}const v=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&v.decode();function y(e,t){return e>>>=0,v.decode(f().subarray(e,e+t))}function b(e,t){let n=t(e.length*1,1)>>>0;return f().set(e,n/1),u=e.length,n}let x=null;function oe(){return(x===null||x.byteLength===0)&&(x=new Float32Array(c.memory.buffer)),x}function se(e,t){let n=t(e.length*4,4)>>>0;return oe().set(e,n/4),u=e.length,n}function ce(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=l(e[t]);_().setUint32(n+4*t,r,!0)}return u=e.length,n}function le(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.register_font(n,r,i,a)!==0}const S=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),ue=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>c.__wbg_dotlottieplayerwasm_free(e>>>0,1));var de=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ue.unregister(this),e}free(){let e=this.__destroy_into_raw();c.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=c.dotlottieplayerwasm_new()>>>0,ue.register(this,this.__wbg_ptr,this),this}load_animation(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=b(e,c.__wbindgen_malloc_command_export),i=u;return c.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return c.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return c.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){c.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return c.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return c.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}play(){return c.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return c.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return c.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return c.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return c.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return c.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return c.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return c.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return c.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return c.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return c.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return c.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return c.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return c.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return c.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return c.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return c.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){c.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return c.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return c.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return c.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return c.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){c.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return c.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){c.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return c.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){c.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return c.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){c.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return c.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){c.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return c.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){c.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return c.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return c.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return c.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return c.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return c.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return c.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return c.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return c.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return c.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=c.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return c.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return c.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return c.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return c.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=c.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return c.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return c.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=m(n,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return c.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=se(e,c.__wbindgen_malloc_command_export),n=u;return c.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return c.dotlottieplayerwasm_tween(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return c.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return c.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return c.dotlottieplayerwasm_tween_update(this.__wbg_ptr,h(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,h(t)?4294967297:Math.fround(t))!==0}markers(){return c.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return c.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=c.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){c.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return c.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){c.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return c.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=c.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=c.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=c.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=c.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){c.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return c.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=ce(t,c.__wbindgen_malloc_command_export),r=u;return c.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return c.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=c.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=c.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return c.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return c.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){c.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){c.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){c.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){c.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){c.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){c.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return c.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return c.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function fe(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function pe(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return ie(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbindgen_init_externref_table=function(){let e=c.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return c.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=h(r)?0:m(r,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;_().setInt32(e+4,a,!0),_().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return y(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(y(e,t))},e}function me(e,t){return c=e.exports,C.__wbindgen_wasm_module=t,g=null,x=null,d=null,c.__wbindgen_start(),c}async function C(e){if(c!==void 0)return c;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=pe();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await fe(await e,t);return me(n,r)}var he=class{constructor(){s(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},w=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};s(w,`_observer`,null),s(w,`_observedCanvases`,new Map);var T=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};s(T,`_observer`,null),s(T,`_observedCanvases`,new Map);function ge(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function _e(e){if(!ge(e))return 0;let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function ve(e){if(e.byteLength<4)return!1;let n=new Uint8Array(e.slice(0,t.byteLength));for(let e=0;e<t.length;e+=1)if(t[e]!==n[e])return!1;return!0}function ye(e){return n.every(t=>Object.hasOwn(e,t))}function be(e){if(typeof e==`string`)try{return ye(JSON.parse(e))}catch{return!1}else return ye(e)}function E(){return 1+((e?window.devicePixelRatio:1)-1)*.75}function D(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function O(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function xe(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function k(e,t,n){let r=null,i=t;return{load(){return r||(r=e(i).then(()=>void 0).catch(async t=>{console.warn(`Primary WASM load failed from ${i}: ${t.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{await e(n)}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})),r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}const A=k(C,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/dotlottie-player.wasm`),j=e=>{switch(e){case`reverse`:return S.Reverse;case`bounce`:return S.Bounce;case`reverse-bounce`:return S.ReverseBounce;default:return S.Forward}},Se=e=>{switch(e){case S.Reverse:return`reverse`;case S.Bounce:return`bounce`;case S.ReverseBounce:return`reverse-bounce`;default:return`forward`}},Ce=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}};var we=class{constructor(e){s(this,`_canvas`,null),s(this,`_pendingLoad`,null),s(this,`_context`,null),s(this,`_eventManager`,void 0),s(this,`_animationFrameId`,null),s(this,`_frameManager`,void 0),s(this,`_dotLottieCore`,null),s(this,`_stateMachineId`,``),s(this,`_stateMachineConfig`,null),s(this,`_isStateMachineRunning`,!1),s(this,`_renderConfig`,{}),s(this,`_isFrozen`,!1),s(this,`_backgroundColor`,null),s(this,`_boundOnClick`,null),s(this,`_boundOnPointerUp`,null),s(this,`_boundOnPointerDown`,null),s(this,`_boundOnPointerMove`,null),s(this,`_boundOnPointerEnter`,null),s(this,`_boundOnPointerLeave`,null),s(this,`_bufferMismatchCount`,0),s(this,`_lastExpectedBufferSize`,0),s(this,`_marker`,``),this._canvas=e.canvas??null,this._eventManager=new he,this._frameManager=new re,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||E(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(j(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return A.load()}_createCore(){return new de}_onCoreCreated(){}_drainPlayerEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!=null;){let t=e;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:setTimeout(()=>this._eventManager.dispatch({type:`play`}),0);break;case`Pause`:setTimeout(()=>this._eventManager.dispatch({type:`pause`}),0);break;case`Stop`:setTimeout(()=>this._eventManager.dispatch({type:`stop`}),0);break;case`Frame`:setTimeout(()=>this._eventManager.dispatch({type:`frame`,currentFrame:t.frameNo??0}),0);break;case`Render`:setTimeout(()=>this._eventManager.dispatch({type:`render`,currentFrame:t.frameNo??0}),0);break;case`Loop`:setTimeout(()=>this._eventManager.dispatch({type:`loop`,loopCount:t.loopCount??0}),0);break;case`Complete`:setTimeout(()=>this._eventManager.dispatch({type:`complete`}),0);break;default:break}}}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!=null;){let e=t;switch(e.type){case`Start`:setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()},0);break;case`Stop`:setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:e.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:e.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:e.previousState??``,toState:e.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}let n;for(;(n=this._dotLottieCore.sm_poll_internal_event())!=null;){let t=n;if(t.type===`Message`){let n=t.message??``;e&&n.startsWith(`OpenUrl: `)?xe(n):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:n})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return ve(n)?n:new TextDecoder().decode(n)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t==`string`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(t,n,r)}else if(t instanceof ArrayBuffer){if(!ve(t)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}i=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t),n,r)}else if(typeof t==`object`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(JSON.stringify(t),n,r)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
2
2
  - string (Lottie JSON),
3
3
  - ArrayBuffer (dotLottie),
4
4
  - object (Lottie JSON).
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":["register_font","Uint8Array","name","data","Mode","Forward","Reverse","Bounce","ReverseBounce","DotLottiePlayerWasm","Float32Array","free","constructor","load_animation","width","height","load_dotlottie_data","load_animation_from_id","id","tick","render","clear","resize","get_pixel_buffer","play","pause","stop","is_playing","is_paused","is_stopped","is_loaded","is_complete","is_tweening","current_frame","total_frames","request_frame","set_frame","no","seek","duration","segment_duration","current_loop_count","reset_current_loop_count","animation_size","mode","set_mode","speed","set_speed","loop_animation","set_loop","v","loop_count","set_loop_count","n","autoplay","set_autoplay","use_frame_interpolation","set_use_frame_interpolation","background_color","set_background_color","color","clear_background_color","set_quality","quality","has_segment","segment_start","segment_end","set_segment","start","end","clear_segment","set_layout","fit","align_x","align_y","layout_fit","layout_align_x","layout_align_y","set_viewport","x","y","w","h","set_color_slot","r","g","b","set_scalar_slot","value","set_text_slot","text","set_vector_slot","set_position_slot","clear_slots","clear_slot","set_slots_str","json","set_slot_str","get_slot_str","get_slots_str","get_slot_ids","get_slot_type","reset_slot","reset_slots","intersect","layer_name","get_layer_bounds","get_transform","set_transform","tween","to","tween_with_easing","e0","e1","e2","e3","tween_stop","tween_update","progress","tween_to_marker","marker","markers","marker_names","current_marker","set_marker","clear_marker","poll_event","emit_on_loop","load_font","unload_font","set_theme","reset_theme","set_theme_data","theme_id","animation_id","manifest_string","get_state_machine","state_machine_id","state_machine_load","definition","state_machine_load_from_id","state_machine_unload","sm_fire","event","sm_set_numeric_input","key","sm_get_numeric_input","sm_set_string_input","sm_get_string_input","sm_set_boolean_input","sm_get_boolean_input","sm_reset_input","sm_poll_event","sm_start","require_user_interaction","whitelist","sm_stop","sm_status","sm_current_state","sm_override_current_state","state","immediate","sm_framework_setup","sm_get_inputs","sm_post_click","sm_post_pointer_down","sm_post_pointer_up","sm_post_pointer_move","sm_post_pointer_enter","sm_post_pointer_exit","sm_poll_internal_event","sm_tick","InitInput","RequestInfo","URL","Response","BufferSource","WebAssembly","Module","InitOutput","Memory","Table","memory","modff","a","realloc","calloc","_Znam","_ZdaPvm","_ZdaPv","atoi","__cxa_pure_virtual","__cxa_atexit","c","abort","__assert_fail","d","strchr","strdup","strcmp","strcpy","strcat","strstr","bsearch","e","strncmp","isspace","rand","strtol","_ZNSt3__212__next_primeEm","__wbg_dotlottieplayerwasm_free","dotlottieplayerwasm_new","dotlottieplayerwasm_load_animation","dotlottieplayerwasm_load_dotlottie_data","dotlottieplayerwasm_load_animation_from_id","dotlottieplayerwasm_tick","dotlottieplayerwasm_render","dotlottieplayerwasm_clear","dotlottieplayerwasm_resize","dotlottieplayerwasm_get_pixel_buffer","dotlottieplayerwasm_play","dotlottieplayerwasm_pause","dotlottieplayerwasm_stop","dotlottieplayerwasm_is_playing","dotlottieplayerwasm_is_paused","dotlottieplayerwasm_is_stopped","dotlottieplayerwasm_is_loaded","dotlottieplayerwasm_is_complete","dotlottieplayerwasm_is_tweening","dotlottieplayerwasm_current_frame","dotlottieplayerwasm_total_frames","dotlottieplayerwasm_request_frame","dotlottieplayerwasm_set_frame","dotlottieplayerwasm_seek","dotlottieplayerwasm_duration","dotlottieplayerwasm_segment_duration","dotlottieplayerwasm_current_loop_count","dotlottieplayerwasm_reset_current_loop_count","dotlottieplayerwasm_width","dotlottieplayerwasm_height","dotlottieplayerwasm_animation_size","dotlottieplayerwasm_mode","dotlottieplayerwasm_set_mode","dotlottieplayerwasm_speed","dotlottieplayerwasm_set_speed","dotlottieplayerwasm_loop_animation","dotlottieplayerwasm_set_loop","dotlottieplayerwasm_loop_count","dotlottieplayerwasm_set_loop_count","dotlottieplayerwasm_autoplay","dotlottieplayerwasm_set_autoplay","dotlottieplayerwasm_use_frame_interpolation","dotlottieplayerwasm_set_use_frame_interpolation","dotlottieplayerwasm_background_color","dotlottieplayerwasm_set_background_color","dotlottieplayerwasm_clear_background_color","dotlottieplayerwasm_set_quality","dotlottieplayerwasm_has_segment","dotlottieplayerwasm_segment_start","dotlottieplayerwasm_segment_end","dotlottieplayerwasm_set_segment","dotlottieplayerwasm_clear_segment","dotlottieplayerwasm_set_layout","dotlottieplayerwasm_layout_fit","dotlottieplayerwasm_layout_align_x","dotlottieplayerwasm_layout_align_y","dotlottieplayerwasm_set_viewport","dotlottieplayerwasm_set_color_slot","f","dotlottieplayerwasm_set_scalar_slot","dotlottieplayerwasm_set_text_slot","dotlottieplayerwasm_set_vector_slot","dotlottieplayerwasm_set_position_slot","dotlottieplayerwasm_clear_slots","dotlottieplayerwasm_clear_slot","dotlottieplayerwasm_set_slots_str","dotlottieplayerwasm_set_slot_str","dotlottieplayerwasm_get_slot_str","dotlottieplayerwasm_get_slots_str","dotlottieplayerwasm_get_slot_ids","dotlottieplayerwasm_get_slot_type","dotlottieplayerwasm_reset_slot","dotlottieplayerwasm_reset_slots","dotlottieplayerwasm_intersect","dotlottieplayerwasm_get_layer_bounds","dotlottieplayerwasm_get_transform","dotlottieplayerwasm_set_transform","dotlottieplayerwasm_tween","dotlottieplayerwasm_tween_with_easing","dotlottieplayerwasm_tween_stop","dotlottieplayerwasm_tween_update","dotlottieplayerwasm_tween_to_marker","dotlottieplayerwasm_markers","dotlottieplayerwasm_marker_names","dotlottieplayerwasm_current_marker","dotlottieplayerwasm_set_marker","dotlottieplayerwasm_clear_marker","dotlottieplayerwasm_poll_event","dotlottieplayerwasm_emit_on_loop","dotlottieplayerwasm_load_font","dotlottieplayerwasm_unload_font","dotlottieplayerwasm_set_theme","dotlottieplayerwasm_reset_theme","dotlottieplayerwasm_set_theme_data","dotlottieplayerwasm_theme_id","dotlottieplayerwasm_animation_id","dotlottieplayerwasm_manifest_string","dotlottieplayerwasm_get_state_machine","dotlottieplayerwasm_state_machine_id","dotlottieplayerwasm_state_machine_load","dotlottieplayerwasm_state_machine_load_from_id","dotlottieplayerwasm_state_machine_unload","dotlottieplayerwasm_sm_fire","dotlottieplayerwasm_sm_set_numeric_input","dotlottieplayerwasm_sm_get_numeric_input","dotlottieplayerwasm_sm_set_string_input","dotlottieplayerwasm_sm_get_string_input","dotlottieplayerwasm_sm_set_boolean_input","dotlottieplayerwasm_sm_get_boolean_input","dotlottieplayerwasm_sm_reset_input","dotlottieplayerwasm_sm_poll_event","dotlottieplayerwasm_sm_start","dotlottieplayerwasm_sm_stop","dotlottieplayerwasm_sm_status","dotlottieplayerwasm_sm_current_state","dotlottieplayerwasm_sm_override_current_state","dotlottieplayerwasm_sm_framework_setup","dotlottieplayerwasm_sm_get_inputs","dotlottieplayerwasm_sm_post_click","dotlottieplayerwasm_sm_post_pointer_down","dotlottieplayerwasm_sm_post_pointer_up","dotlottieplayerwasm_sm_post_pointer_move","dotlottieplayerwasm_sm_post_pointer_enter","dotlottieplayerwasm_sm_post_pointer_exit","dotlottieplayerwasm_sm_poll_internal_event","dotlottieplayerwasm_sm_tick","malloc","_ZdlPvm","__wbindgen_exn_store_command_export","__externref_table_alloc_command_export","__wbindgen_export_2","__wbindgen_malloc_command_export","__wbindgen_realloc_command_export","__wbindgen_free_command_export","__wbindgen_start","SyncInitInput","initSync","module","__wbg_init","Promise","module_or_path","default"],"sources":["../../src/event-manager.ts","../../src/types.ts","../../src/core/dotlottie-player.d.ts","../../src/dotlottie.ts","../../src/webgpu/dotlottie-webgpu.ts"],"mappings":";;AAGA;;KAAY,SAAA;;;AA0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,CAA4B,IAAA;EF9tDG;AAKxC;;;;;EEmuDS,2BAAA,CAA4B,IAAA;EF1tDH;;;;;;EEouDzB,0BAAA,CAA2B,IAAA;EF5tDlC;;;;AAMF;EE+tDS,qBAAA,CAAA;;;;;;EAiBA,qBAAA,CAAsB,IAAA;EF9uDjB;AAMd;;;;;EEkvDS,0BAAA,CAA2B,CAAA,UAAW,CAAA;EF1uDR;;;;;;EEovD9B,8BAAA,CAA+B,CAAA,UAAW,CAAA;EF9uDjD;;;AAMF;;;EEkvDS,gCAAA,CAAiC,CAAA,UAAW,CAAA;EFlvDR;;;;;AAQ7C;EEovDS,gCAAA,CAAiC,CAAA,UAAW,CAAA;;;;;;;EAU5C,iCAAA,CAAkC,CAAA,UAAW,CAAA;EFpvDrC;;;;;;EE8vDR,gCAAA,CAAiC,CAAA,UAAW,CAAA;EAAA,QAI3C,QAAA;EAAA,QAQA,YAAA;EAAA,QAQA,cAAA;EAAA,QAQA,cAAA;EAAA,QAQA,eAAA;EAAA,QAQA,eAAA;EAAA,QAQA,2BAAA;EAAA,QAkCA,6BAAA;AAAA;;;cCjwEG,eAAA,SAAwB,SAAA;EAAA,QAC3B,UAAA;EAAA,QAEA,WAAA;EAAA,QAEA,YAAA;EAAA,iBAES,WAAA;cAEE,MAAA,EAAQ,YAAA;EAAA,UAKF,SAAA,CAAA,GAAa,OAAA;EAAA,UA8BnB,WAAA,CAAA,GAAe,mBAAA;EAAA,UAIf,cAAA,CAAA;EAAA,QAMX,gBAAA;EAsCQ,MAAA,CAAA;EAAA,UAgCG,KAAA,CAAA;EAAA,UAIA,sBAAA,CAAA;EAcH,OAAA,CAAA;EAAA,IAiBL,MAAA,CAAA,GAAU,SAAA;EAAA,OAIE,UAAA,CAAW,GAAA;AAAA"}
1
+ {"version":3,"file":"index.d.cts","names":["register_font","Uint8Array","name","data","Mode","Forward","Reverse","Bounce","ReverseBounce","DotLottiePlayerWasm","Float32Array","free","constructor","load_animation","width","height","load_dotlottie_data","load_animation_from_id","id","tick","render","clear","resize","get_pixel_buffer","play","pause","stop","is_playing","is_paused","is_stopped","is_loaded","is_complete","is_tweening","current_frame","total_frames","request_frame","set_frame","no","seek","duration","segment_duration","current_loop_count","reset_current_loop_count","animation_size","mode","set_mode","speed","set_speed","loop_animation","set_loop","v","loop_count","set_loop_count","n","autoplay","set_autoplay","use_frame_interpolation","set_use_frame_interpolation","background_color","set_background_color","color","clear_background_color","set_quality","quality","has_segment","segment_start","segment_end","set_segment","start","end","clear_segment","set_layout","fit","align_x","align_y","layout_fit","layout_align_x","layout_align_y","set_viewport","x","y","w","h","set_color_slot","r","g","b","set_scalar_slot","value","set_text_slot","text","set_vector_slot","set_position_slot","clear_slots","clear_slot","set_slots_str","json","set_slot_str","get_slot_str","get_slots_str","get_slot_ids","get_slot_type","reset_slot","reset_slots","intersect","layer_name","get_layer_bounds","get_transform","set_transform","tween","to","tween_with_easing","e0","e1","e2","e3","tween_stop","tween_update","progress","tween_to_marker","marker","markers","marker_names","current_marker","set_marker","clear_marker","poll_event","emit_on_loop","load_font","unload_font","set_theme","reset_theme","set_theme_data","theme_id","animation_id","manifest_string","get_state_machine","state_machine_id","state_machine_load","definition","state_machine_load_from_id","state_machine_unload","sm_fire","event","sm_set_numeric_input","key","sm_get_numeric_input","sm_set_string_input","sm_get_string_input","sm_set_boolean_input","sm_get_boolean_input","sm_reset_input","sm_poll_event","sm_start","require_user_interaction","whitelist","sm_stop","sm_status","sm_current_state","sm_override_current_state","state","immediate","sm_framework_setup","sm_get_inputs","sm_post_click","sm_post_pointer_down","sm_post_pointer_up","sm_post_pointer_move","sm_post_pointer_enter","sm_post_pointer_exit","sm_poll_internal_event","sm_tick","InitInput","RequestInfo","URL","Response","BufferSource","WebAssembly","Module","InitOutput","Memory","Table","memory","modff","a","malloc","realloc","calloc","_ZdaPvm","atoi","__cxa_pure_virtual","__cxa_atexit","c","abort","__assert_fail","d","strchr","strdup","strcmp","strcpy","strcat","strstr","bsearch","e","strncmp","isspace","rand","strtol","_ZNSt3__212__next_primeEm","__wbg_dotlottieplayerwasm_free","dotlottieplayerwasm_new","dotlottieplayerwasm_load_animation","dotlottieplayerwasm_load_dotlottie_data","dotlottieplayerwasm_load_animation_from_id","dotlottieplayerwasm_tick","dotlottieplayerwasm_render","dotlottieplayerwasm_clear","dotlottieplayerwasm_resize","dotlottieplayerwasm_get_pixel_buffer","dotlottieplayerwasm_play","dotlottieplayerwasm_pause","dotlottieplayerwasm_stop","dotlottieplayerwasm_is_playing","dotlottieplayerwasm_is_paused","dotlottieplayerwasm_is_stopped","dotlottieplayerwasm_is_loaded","dotlottieplayerwasm_is_complete","dotlottieplayerwasm_is_tweening","dotlottieplayerwasm_current_frame","dotlottieplayerwasm_total_frames","dotlottieplayerwasm_request_frame","dotlottieplayerwasm_set_frame","dotlottieplayerwasm_seek","dotlottieplayerwasm_duration","dotlottieplayerwasm_segment_duration","dotlottieplayerwasm_current_loop_count","dotlottieplayerwasm_reset_current_loop_count","dotlottieplayerwasm_width","dotlottieplayerwasm_height","dotlottieplayerwasm_animation_size","dotlottieplayerwasm_mode","dotlottieplayerwasm_set_mode","dotlottieplayerwasm_speed","dotlottieplayerwasm_set_speed","dotlottieplayerwasm_loop_animation","dotlottieplayerwasm_set_loop","dotlottieplayerwasm_loop_count","dotlottieplayerwasm_set_loop_count","dotlottieplayerwasm_autoplay","dotlottieplayerwasm_set_autoplay","dotlottieplayerwasm_use_frame_interpolation","dotlottieplayerwasm_set_use_frame_interpolation","dotlottieplayerwasm_background_color","dotlottieplayerwasm_set_background_color","dotlottieplayerwasm_clear_background_color","dotlottieplayerwasm_set_quality","dotlottieplayerwasm_has_segment","dotlottieplayerwasm_segment_start","dotlottieplayerwasm_segment_end","dotlottieplayerwasm_set_segment","dotlottieplayerwasm_clear_segment","dotlottieplayerwasm_set_layout","dotlottieplayerwasm_layout_fit","dotlottieplayerwasm_layout_align_x","dotlottieplayerwasm_layout_align_y","dotlottieplayerwasm_set_viewport","dotlottieplayerwasm_set_color_slot","f","dotlottieplayerwasm_set_scalar_slot","dotlottieplayerwasm_set_text_slot","dotlottieplayerwasm_set_vector_slot","dotlottieplayerwasm_set_position_slot","dotlottieplayerwasm_clear_slots","dotlottieplayerwasm_clear_slot","dotlottieplayerwasm_set_slots_str","dotlottieplayerwasm_set_slot_str","dotlottieplayerwasm_get_slot_str","dotlottieplayerwasm_get_slots_str","dotlottieplayerwasm_get_slot_ids","dotlottieplayerwasm_get_slot_type","dotlottieplayerwasm_reset_slot","dotlottieplayerwasm_reset_slots","dotlottieplayerwasm_intersect","dotlottieplayerwasm_get_layer_bounds","dotlottieplayerwasm_get_transform","dotlottieplayerwasm_set_transform","dotlottieplayerwasm_tween","dotlottieplayerwasm_tween_with_easing","dotlottieplayerwasm_tween_stop","dotlottieplayerwasm_tween_update","dotlottieplayerwasm_tween_to_marker","dotlottieplayerwasm_markers","dotlottieplayerwasm_marker_names","dotlottieplayerwasm_current_marker","dotlottieplayerwasm_set_marker","dotlottieplayerwasm_clear_marker","dotlottieplayerwasm_poll_event","dotlottieplayerwasm_emit_on_loop","dotlottieplayerwasm_load_font","dotlottieplayerwasm_unload_font","dotlottieplayerwasm_set_theme","dotlottieplayerwasm_reset_theme","dotlottieplayerwasm_set_theme_data","dotlottieplayerwasm_theme_id","dotlottieplayerwasm_animation_id","dotlottieplayerwasm_manifest_string","dotlottieplayerwasm_get_state_machine","dotlottieplayerwasm_state_machine_id","dotlottieplayerwasm_state_machine_load","dotlottieplayerwasm_state_machine_load_from_id","dotlottieplayerwasm_state_machine_unload","dotlottieplayerwasm_sm_fire","dotlottieplayerwasm_sm_set_numeric_input","dotlottieplayerwasm_sm_get_numeric_input","dotlottieplayerwasm_sm_set_string_input","dotlottieplayerwasm_sm_get_string_input","dotlottieplayerwasm_sm_set_boolean_input","dotlottieplayerwasm_sm_get_boolean_input","dotlottieplayerwasm_sm_reset_input","dotlottieplayerwasm_sm_poll_event","dotlottieplayerwasm_sm_start","dotlottieplayerwasm_sm_stop","dotlottieplayerwasm_sm_status","dotlottieplayerwasm_sm_current_state","dotlottieplayerwasm_sm_override_current_state","dotlottieplayerwasm_sm_framework_setup","dotlottieplayerwasm_sm_get_inputs","dotlottieplayerwasm_sm_post_click","dotlottieplayerwasm_sm_post_pointer_down","dotlottieplayerwasm_sm_post_pointer_up","dotlottieplayerwasm_sm_post_pointer_move","dotlottieplayerwasm_sm_post_pointer_enter","dotlottieplayerwasm_sm_post_pointer_exit","dotlottieplayerwasm_sm_poll_internal_event","dotlottieplayerwasm_sm_tick","_ZdlPvm","__wbindgen_exn_store_command_export","__externref_table_alloc_command_export","__wbindgen_export_2","__wbindgen_malloc_command_export","__wbindgen_realloc_command_export","__wbindgen_free_command_export","__wbindgen_start","SyncInitInput","initSync","module","__wbg_init","Promise","module_or_path","default"],"sources":["../../src/event-manager.ts","../../src/types.ts","../../src/core/dotlottie-player.d.ts","../../src/dotlottie.ts","../../src/webgpu/dotlottie-webgpu.ts"],"mappings":";;AAGA;;KAAY,SAAA;;;AA0BsB;KAK7B,WAAA,WAAsB,SAAA,IAAa,OAAA,CAAQ,KAAA;EAAS,IAAA,EAAM,CAAA;AAAA;;;;UAK9C,SAAA;EACf,IAAA,EAAM,SAAA;AAAA;AAAA,UAGS,WAAA,SAAoB,SAAA;EACnC,YAAA;EACA,IAAA;AAAA;AAAA,UAGe,WAAA,SAAoB,SAAA;EACnC,IAAA;AAAA;AAAA,UAGe,aAAA,SAAsB,SAAA;EACrC,IAAA;AAAA;AAAA,UAMe,YAAA,SAAqB,SAAA;EACpC,IAAA;AAAA;;;;UAMe,SAAA,SAAkB,SAAA;EACjC,SAAA;EACA,IAAA;AAAA;;AApBF;;UA0BiB,UAAA,SAAmB,SAAA;EAClC,YAAA;EACA,IAAA;AAAA;;;;UAMe,SAAA,SAAkB,SAAA;EACjC,IAAA;AAAA;;;;UAMe,cAAA,SAAuB,SAAA;EACtC,KAAA,EAAO,KAAA;EACP,IAAA;AAAA;;;;UAMe,gBAAA,SAAyB,SAAA;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eAAA;EAAA,QAQA,eAAA;EAAA,QAQA,2BAAA;EAAA,QAkCA,6BAAA;AAAA;;;cCjwEG,eAAA,SAAwB,SAAA;EAAA,QAC3B,UAAA;EAAA,QAEA,WAAA;EAAA,QAEA,YAAA;EAAA,iBAES,WAAA;cAEE,MAAA,EAAQ,YAAA;EAAA,UAKF,SAAA,CAAA,GAAa,OAAA;EAAA,UA8BnB,WAAA,CAAA,GAAe,mBAAA;EAAA,UAIf,cAAA,CAAA;EAAA,QAMX,gBAAA;EAsCQ,MAAA,CAAA;EAAA,UAgCG,KAAA,CAAA;EAAA,UAIA,sBAAA,CAAA;EAcH,OAAA,CAAA;EAAA,IAiBL,MAAA,CAAA,GAAU,SAAA;EAAA,OAIE,UAAA,CAAW,GAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- const e=typeof window<`u`&&window.document!==void 0,t=new Uint8Array([80,75,3,4]),n=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],r=`0.66.2`,i=`@lottiefiles/dotlottie-web`;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ee(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function s(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},ne=class{constructor(){s(this,`_lastHandleId`,0),s(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},re=class{constructor(){s(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new te:new ne}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let c;function l(e){let t=c.__externref_table_alloc_command_export();return c.__wbindgen_export_2.set(t,e),t}function ie(e,t){try{return e.apply(this,t)}catch(e){let t=l(e);c.__wbindgen_exn_store_command_export(t)}}let u=0,d=null;function f(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(c.memory.buffer)),d}const p=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},ae=typeof p.encodeInto==`function`?function(e,t){return p.encodeInto(e,t)}:function(e,t){let n=p.encode(e);return t.set(n),{read:e.length,written:n.length}};function m(e,t,n){if(n===void 0){let n=p.encode(e),r=t(n.length,1)>>>0;return f().subarray(r,r+n.length).set(n),u=n.length,r}let r=e.length,i=t(r,1)>>>0,a=f(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=f().subarray(i+o,i+r),a=ae(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return u=o,i}function h(e){return e==null}let g=null;function _(){return(g===null||g.buffer.detached===!0||g.buffer.detached===void 0&&g.buffer!==c.memory.buffer)&&(g=new DataView(c.memory.buffer)),g}const v=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&v.decode();function y(e,t){return e>>>=0,v.decode(f().subarray(e,e+t))}function b(e,t){let n=t(e.length*1,1)>>>0;return f().set(e,n/1),u=e.length,n}let x=null;function oe(){return(x===null||x.byteLength===0)&&(x=new Float32Array(c.memory.buffer)),x}function se(e,t){let n=t(e.length*4,4)>>>0;return oe().set(e,n/4),u=e.length,n}function ce(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=l(e[t]);_().setUint32(n+4*t,r,!0)}return u=e.length,n}function le(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.register_font(n,r,i,a)!==0}const S=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),ue=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>c.__wbg_dotlottieplayerwasm_free(e>>>0,1));var de=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ue.unregister(this),e}free(){let e=this.__destroy_into_raw();c.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=c.dotlottieplayerwasm_new()>>>0,ue.register(this,this.__wbg_ptr,this),this}load_animation(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=b(e,c.__wbindgen_malloc_command_export),i=u;return c.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return c.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return c.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){c.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return c.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return c.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}play(){return c.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return c.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return c.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return c.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return c.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return c.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return c.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return c.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return c.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return c.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return c.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return c.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return c.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return c.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return c.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return c.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return c.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){c.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return c.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return c.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return c.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return c.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){c.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return c.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){c.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return c.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){c.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return c.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){c.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return c.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){c.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return c.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){c.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return c.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return c.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return c.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return c.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return c.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return c.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return c.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return c.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return c.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=c.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return c.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return c.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return c.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return c.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=c.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return c.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return c.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=m(n,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return c.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=se(e,c.__wbindgen_malloc_command_export),n=u;return c.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return c.dotlottieplayerwasm_tween(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return c.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return c.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return c.dotlottieplayerwasm_tween_update(this.__wbg_ptr,h(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,h(t)?4294967297:Math.fround(t))!==0}markers(){return c.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return c.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=c.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){c.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return c.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){c.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return c.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=c.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=c.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=c.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=c.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){c.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return c.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=ce(t,c.__wbindgen_malloc_command_export),r=u;return c.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return c.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=c.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=c.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return c.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return c.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){c.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){c.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){c.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){c.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){c.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){c.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return c.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return c.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function fe(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function pe(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return ie(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbindgen_init_externref_table=function(){let e=c.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return c.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=h(r)?0:m(r,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;_().setInt32(e+4,a,!0),_().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return y(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(y(e,t))},e}function me(e,t){return c=e.exports,C.__wbindgen_wasm_module=t,g=null,x=null,d=null,c.__wbindgen_start(),c}async function C(e){if(c!==void 0)return c;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=pe();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await fe(await e,t);return me(n,r)}var he=class{constructor(){s(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},w=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};s(w,`_observer`,null),s(w,`_observedCanvases`,new Map);var T=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};s(T,`_observer`,null),s(T,`_observedCanvases`,new Map);function ge(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function _e(e){if(!ge(e))return 0;let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function ve(e){if(e.byteLength<4)return!1;let n=new Uint8Array(e.slice(0,t.byteLength));for(let e=0;e<t.length;e+=1)if(t[e]!==n[e])return!1;return!0}function ye(e){return n.every(t=>Object.hasOwn(e,t))}function be(e){if(typeof e==`string`)try{return ye(JSON.parse(e))}catch{return!1}else return ye(e)}function E(){return 1+((e?window.devicePixelRatio:1)-1)*.75}function D(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function O(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function xe(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function k(e,t,n){let r=null,i=t;return{load(){return r||(r=e(i).then(()=>void 0).catch(async t=>{console.warn(`Primary WASM load failed from ${i}: ${t.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{await e(n)}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})),r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}const A=k(C,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/dotlottie-player.wasm`),j=e=>{switch(e){case`reverse`:return S.Reverse;case`bounce`:return S.Bounce;case`reverse-bounce`:return S.ReverseBounce;default:return S.Forward}},Se=e=>{switch(e){case S.Reverse:return`reverse`;case S.Bounce:return`bounce`;case S.ReverseBounce:return`reverse-bounce`;default:return`forward`}},Ce=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}};var we=class{constructor(e){s(this,`_canvas`,null),s(this,`_pendingLoad`,null),s(this,`_context`,null),s(this,`_eventManager`,void 0),s(this,`_animationFrameId`,null),s(this,`_frameManager`,void 0),s(this,`_dotLottieCore`,null),s(this,`_stateMachineId`,``),s(this,`_stateMachineConfig`,null),s(this,`_isStateMachineRunning`,!1),s(this,`_renderConfig`,{}),s(this,`_isFrozen`,!1),s(this,`_backgroundColor`,null),s(this,`_boundOnClick`,null),s(this,`_boundOnPointerUp`,null),s(this,`_boundOnPointerDown`,null),s(this,`_boundOnPointerMove`,null),s(this,`_boundOnPointerEnter`,null),s(this,`_boundOnPointerLeave`,null),s(this,`_bufferMismatchCount`,0),s(this,`_lastExpectedBufferSize`,0),s(this,`_marker`,``),this._canvas=e.canvas??null,this._eventManager=new he,this._frameManager=new re,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||E(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(j(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return A.load()}_createCore(){return new de}_onCoreCreated(){}_drainPlayerEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!=null;){let t=e;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:setTimeout(()=>this._eventManager.dispatch({type:`play`}),0);break;case`Pause`:setTimeout(()=>this._eventManager.dispatch({type:`pause`}),0);break;case`Stop`:setTimeout(()=>this._eventManager.dispatch({type:`stop`}),0);break;case`Frame`:setTimeout(()=>this._eventManager.dispatch({type:`frame`,currentFrame:t.frameNo??0}),0);break;case`Render`:setTimeout(()=>this._eventManager.dispatch({type:`render`,currentFrame:t.frameNo??0}),0);break;case`Loop`:setTimeout(()=>this._eventManager.dispatch({type:`loop`,loopCount:t.loopCount??0}),0);break;case`Complete`:setTimeout(()=>this._eventManager.dispatch({type:`complete`}),0);break;default:break}}}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!=null;){let e=t;switch(e.type){case`Start`:setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()},0);break;case`Stop`:setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:e.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:e.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:e.previousState??``,toState:e.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}let n;for(;(n=this._dotLottieCore.sm_poll_internal_event())!=null;){let t=n;if(t.type===`Message`){let n=t.message??``;e&&n.startsWith(`OpenUrl: `)?xe(n):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:n})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return ve(n)?n:new TextDecoder().decode(n)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t==`string`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(t,n,r)}else if(t instanceof ArrayBuffer){if(!ve(t)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}i=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t),n,r)}else if(typeof t==`object`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(JSON.stringify(t),n,r)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
1
+ const e=typeof window<`u`&&window.document!==void 0,t=new Uint8Array([80,75,3,4]),n=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],r=`0.67.0`,i=`@lottiefiles/dotlottie-web`;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ee(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function s(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},ne=class{constructor(){s(this,`_lastHandleId`,0),s(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},re=class{constructor(){s(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new te:new ne}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let c;function l(e){let t=c.__externref_table_alloc_command_export();return c.__wbindgen_export_2.set(t,e),t}function ie(e,t){try{return e.apply(this,t)}catch(e){let t=l(e);c.__wbindgen_exn_store_command_export(t)}}let u=0,d=null;function f(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(c.memory.buffer)),d}const p=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},ae=typeof p.encodeInto==`function`?function(e,t){return p.encodeInto(e,t)}:function(e,t){let n=p.encode(e);return t.set(n),{read:e.length,written:n.length}};function m(e,t,n){if(n===void 0){let n=p.encode(e),r=t(n.length,1)>>>0;return f().subarray(r,r+n.length).set(n),u=n.length,r}let r=e.length,i=t(r,1)>>>0,a=f(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=f().subarray(i+o,i+r),a=ae(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return u=o,i}function h(e){return e==null}let g=null;function _(){return(g===null||g.buffer.detached===!0||g.buffer.detached===void 0&&g.buffer!==c.memory.buffer)&&(g=new DataView(c.memory.buffer)),g}const v=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&v.decode();function y(e,t){return e>>>=0,v.decode(f().subarray(e,e+t))}function b(e,t){let n=t(e.length*1,1)>>>0;return f().set(e,n/1),u=e.length,n}let x=null;function oe(){return(x===null||x.byteLength===0)&&(x=new Float32Array(c.memory.buffer)),x}function se(e,t){let n=t(e.length*4,4)>>>0;return oe().set(e,n/4),u=e.length,n}function ce(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=l(e[t]);_().setUint32(n+4*t,r,!0)}return u=e.length,n}function le(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.register_font(n,r,i,a)!==0}const S=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),ue=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>c.__wbg_dotlottieplayerwasm_free(e>>>0,1));var de=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ue.unregister(this),e}free(){let e=this.__destroy_into_raw();c.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=c.dotlottieplayerwasm_new()>>>0,ue.register(this,this.__wbg_ptr,this),this}load_animation(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=b(e,c.__wbindgen_malloc_command_export),i=u;return c.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return c.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return c.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){c.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return c.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return c.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}play(){return c.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return c.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return c.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return c.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return c.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return c.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return c.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return c.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return c.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return c.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return c.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return c.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return c.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return c.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return c.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return c.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return c.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){c.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return c.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return c.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return c.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return c.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){c.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return c.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){c.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return c.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){c.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return c.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){c.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return c.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){c.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return c.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){c.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return c.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return c.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return c.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return c.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return c.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return c.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return c.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return c.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return c.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=c.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return c.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return c.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return c.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return c.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=c.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return c.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return c.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=m(n,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),i=u;return c.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return c.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=se(e,c.__wbindgen_malloc_command_export),n=u;return c.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return c.dotlottieplayerwasm_tween(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return c.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,h(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return c.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return c.dotlottieplayerwasm_tween_update(this.__wbg_ptr,h(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,h(t)?4294967297:Math.fround(t))!==0}markers(){return c.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return c.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=c.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){c.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return c.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){c.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=b(t,c.__wbindgen_malloc_command_export),a=u;return c.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return c.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=c.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=c.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=c.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=c.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=y(e[0],e[1]).slice(),c.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){c.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;return c.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u,i=m(t,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;return c.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=y(r[0],r[1]).slice(),c.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u,r=c.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),n=u;c.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return c.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=ce(t,c.__wbindgen_malloc_command_export),r=u;return c.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return c.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=c.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=c.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],y(n[0],n[1])}finally{c.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=m(e,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),r=u;return c.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return c.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return c.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){c.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){c.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){c.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){c.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){c.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){c.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return c.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return c.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function fe(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.headers.get(`Content-Type`)!=`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function pe(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return ie(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbindgen_init_externref_table=function(){let e=c.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return c.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=h(r)?0:m(r,c.__wbindgen_malloc_command_export,c.__wbindgen_realloc_command_export),a=u;_().setInt32(e+4,a,!0),_().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return y(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(y(e,t))},e}function me(e,t){return c=e.exports,C.__wbindgen_wasm_module=t,g=null,x=null,d=null,c.__wbindgen_start(),c}async function C(e){if(c!==void 0)return c;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=pe();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await fe(await e,t);return me(n,r)}var he=class{constructor(){s(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},w=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};s(w,`_observer`,null),s(w,`_observedCanvases`,new Map);var T=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};s(T,`_observer`,null),s(T,`_observedCanvases`,new Map);function ge(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function _e(e){if(!ge(e))return 0;let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function ve(e){if(e.byteLength<4)return!1;let n=new Uint8Array(e.slice(0,t.byteLength));for(let e=0;e<t.length;e+=1)if(t[e]!==n[e])return!1;return!0}function ye(e){return n.every(t=>Object.hasOwn(e,t))}function be(e){if(typeof e==`string`)try{return ye(JSON.parse(e))}catch{return!1}else return ye(e)}function E(){return 1+((e?window.devicePixelRatio:1)-1)*.75}function D(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function O(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function xe(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function k(e,t,n){let r=null,i=t;return{load(){return r||(r=e(i).then(()=>void 0).catch(async t=>{console.warn(`Primary WASM load failed from ${i}: ${t.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{await e(n)}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})),r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}const A=k(C,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/dotlottie-player.wasm`),j=e=>{switch(e){case`reverse`:return S.Reverse;case`bounce`:return S.Bounce;case`reverse-bounce`:return S.ReverseBounce;default:return S.Forward}},Se=e=>{switch(e){case S.Reverse:return`reverse`;case S.Bounce:return`bounce`;case S.ReverseBounce:return`reverse-bounce`;default:return`forward`}},Ce=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}};var we=class{constructor(e){s(this,`_canvas`,null),s(this,`_pendingLoad`,null),s(this,`_context`,null),s(this,`_eventManager`,void 0),s(this,`_animationFrameId`,null),s(this,`_frameManager`,void 0),s(this,`_dotLottieCore`,null),s(this,`_stateMachineId`,``),s(this,`_stateMachineConfig`,null),s(this,`_isStateMachineRunning`,!1),s(this,`_renderConfig`,{}),s(this,`_isFrozen`,!1),s(this,`_backgroundColor`,null),s(this,`_boundOnClick`,null),s(this,`_boundOnPointerUp`,null),s(this,`_boundOnPointerDown`,null),s(this,`_boundOnPointerMove`,null),s(this,`_boundOnPointerEnter`,null),s(this,`_boundOnPointerLeave`,null),s(this,`_bufferMismatchCount`,0),s(this,`_lastExpectedBufferSize`,0),s(this,`_marker`,``),this._canvas=e.canvas??null,this._eventManager=new he,this._frameManager=new re,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||E(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(j(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return A.load()}_createCore(){return new de}_onCoreCreated(){}_drainPlayerEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!=null;){let t=e;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:setTimeout(()=>this._eventManager.dispatch({type:`play`}),0);break;case`Pause`:setTimeout(()=>this._eventManager.dispatch({type:`pause`}),0);break;case`Stop`:setTimeout(()=>this._eventManager.dispatch({type:`stop`}),0);break;case`Frame`:setTimeout(()=>this._eventManager.dispatch({type:`frame`,currentFrame:t.frameNo??0}),0);break;case`Render`:setTimeout(()=>this._eventManager.dispatch({type:`render`,currentFrame:t.frameNo??0}),0);break;case`Loop`:setTimeout(()=>this._eventManager.dispatch({type:`loop`,loopCount:t.loopCount??0}),0);break;case`Complete`:setTimeout(()=>this._eventManager.dispatch({type:`complete`}),0);break;default:break}}}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!=null;){let e=t;switch(e.type){case`Start`:setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()},0);break;case`Stop`:setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:e.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:e.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:e.previousState??``,toState:e.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}let n;for(;(n=this._dotLottieCore.sm_poll_internal_event())!=null;){let t=n;if(t.type===`Message`){let n=t.message??``;e&&n.startsWith(`OpenUrl: `)?xe(n):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:n})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return ve(n)?n:new TextDecoder().decode(n)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t==`string`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(t,n,r)}else if(t instanceof ArrayBuffer){if(!ve(t)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}i=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t),n,r)}else if(typeof t==`object`){if(!be(t)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(JSON.stringify(t),n,r)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
2
2
  - string (Lottie JSON),
3
3
  - ArrayBuffer (dotLottie),
4
4
  - object (Lottie JSON).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lottiefiles/dotlottie-web",
3
- "version": "0.66.2",
3
+ "version": "0.67.0",
4
4
  "type": "module",
5
5
  "description": "Lottie and DotLottie player for the web",
6
6
  "repository": {