@lynx-js/web-core-wasm 0.0.5 → 0.0.6

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.
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e,t,n,r={6462(e,t,n){e.exports=n.p+"static/wasm/af9fb056.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{EventInfo:()=>i,MainThreadWasmContext:()=>o,RawStyleInfo:()=>_,Rule:()=>s,RulePrelude:()=>a,Selector:()=>l,StyleSheetResource:()=>c,add_inline_style_raw_string_key:()=>d,decode_style_info:()=>u,default:()=>K,encode_legacy_json_generated_raw_style_info:()=>g,get_font_face_content:()=>b,get_inline_styles_in_key_value_vec:()=>h,get_style_content:()=>p,initSync:()=>Q,set_inline_styles_in_str:()=>w,set_inline_styles_number_key:()=>f});class i{static __wrap(e){e>>>=0;let t=Object.create(i.prototype);return t.__wbg_ptr=e,y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,y.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get event_handler(){return r.__wbg_get_eventinfo_event_handler(this.__wbg_ptr)}get event_name(){let e,t;try{let n=r.__wbg_get_eventinfo_event_name(this.__wbg_ptr);return e=n[0],t=n[1],j(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get event_type(){let e,t;try{let n=r.__wbg_get_eventinfo_event_type(this.__wbg_ptr);return e=n[0],t=n[1],j(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set event_handler(e){r.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,e)}set event_name(e){let t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G;r.__wbg_set_eventinfo_event_name(this.__wbg_ptr,t,n)}set event_type(e){let t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G;r.__wbg_set_eventinfo_event_type(this.__wbg_ptr,t,n)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}add_cross_thread_event(e,t,n,i){let o=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G,s=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;var l=U(i)?0:z(i,r.__wbindgen_malloc,r.__wbindgen_realloc),c=G;r.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,e,o,_,s,a,l,c)}add_dataset(e,t,n){let i=r.mainthreadwasmcontext_add_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw q(i[0])}add_run_worklet_event(e,t,n,i){let o=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G,s=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;r.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,e,o,_,s,a,U(i)?0:E(i))}common_event_handler(e,t,n){let i=W(t,r.__wbindgen_malloc),o=G,_=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;r.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,e,i,o,_,s)}create_element_common(e,t,n,i){var o=U(i)?0:z(i,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G;return r.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,e,t,U(n)?0x100000001:0|n,o,_)>>>0}dispatch_event_by_path(e,t,n,i){let o=W(e,r.__wbindgen_malloc),_=G,s=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,o,_,s,a,n,i)}get_component_id(e){let t,n=r.mainthreadwasmcontext_get_component_id(this.__wbg_ptr,e);if(n[3])throw q(n[2]);return 0!==n[0]&&(t=j(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}get_config(e){let t=r.mainthreadwasmcontext_get_config(this.__wbg_ptr,e);if(t[2])throw q(t[1]);return q(t[0])}get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}get_data_by_key(e,t){let n=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,o=r.mainthreadwasmcontext_get_data_by_key(this.__wbg_ptr,e,n,i);if(o[2])throw q(o[1]);return q(o[0])}get_dataset(e){let t=r.mainthreadwasmcontext_get_dataset(this.__wbg_ptr,e);if(t[2])throw q(t[1]);return q(t[0])}get_dom_by_unique_id(e){return r.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,e)}get_element_config(e){let t=r.mainthreadwasmcontext_get_element_config(this.__wbg_ptr,e);if(t[2])throw q(t[1]);return q(t[0])}get_event(e,t,n){let i=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,_=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;return r.mainthreadwasmcontext_get_event(this.__wbg_ptr,e,i,o,_,s)}get_events(e){let t=r.mainthreadwasmcontext_get_events(this.__wbg_ptr,e);var n=O(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}get_unique_id_by_component_id(e){let t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G,i=r.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===i?void 0:i}constructor(e,t,n){const i=r.mainthreadwasmcontext_new(e,t,n);return this.__wbg_ptr=i>>>0,v.register(this,this.__wbg_ptr,this),this}push_style_sheet(e,t){C(e,c);var n=U(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let o=r.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,e.__wbg_ptr,n,i);if(o[1])throw q(o[0])}set_config(e,t){let n=r.mainthreadwasmcontext_set_config(this.__wbg_ptr,e,t);if(n[1])throw q(n[0])}set_css_id(e,t,n){let i=W(e,r.__wbindgen_malloc),o=G;var _=U(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;let a=r.mainthreadwasmcontext_set_css_id(this.__wbg_ptr,i,o,t,_,s);if(a[1])throw q(a[0])}set_dataset(e,t,n){let i=r.mainthreadwasmcontext_set_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw q(i[0])}set_page_element_unique_id(e){r.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,e)}take_timing_flags(){let e=r.mainthreadwasmcontext_take_timing_flags(this.__wbg_ptr);var t=O(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}update_component_id(e,t){var n=U(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let o=r.mainthreadwasmcontext_update_component_id(this.__wbg_ptr,e,n,i);if(o[1])throw q(o[0])}update_css_og_style(e,t){var n=U(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let o=r.mainthreadwasmcontext_update_css_og_style(this.__wbg_ptr,e,n,i);if(o[1])throw q(o[0])}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class _{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,x.register(this,this.__wbg_ptr,this),this}push_rule(e,t){C(t,s);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G,i=r.rule_new(t,n);if(i[2])throw q(i[1]);return this.__wbg_ptr=i[0]>>>0,S.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let n=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,o=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G;r.rule_push_declaration(this.__wbg_ptr,n,i,o,_)}push_rule_children(e){C(e,s);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){C(e,a);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,k.register(this,this.__wbg_ptr,this),this}push_selector(e){C(e,l);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,R.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,o=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=G,s=r.selector_push_one_selector_section(this.__wbg_ptr,n,i,o,_);if(s[1])throw q(s[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_stylesheetresource_free(e,0)}constructor(e,t){const n=r.stylesheetresource_new(e,t);if(n[2])throw q(n[1]);return this.__wbg_ptr=n[0]>>>0,T.register(this,this.__wbg_ptr,this),this}}function d(e,t,n){let i=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;var _=U(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;r.add_inline_style_raw_string_key(e,i,o,_,s)}function u(e,t,n){var i=U(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;let _=r.decode_style_info(e,i,o,n);if(_[2])throw q(_[1]);return q(_[0])}function g(e,t,n){C(e,_);var i=e.__destroy_into_raw(),o=U(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;let a=r.encode_legacy_json_generated_raw_style_info(i,t,o,s);if(a[2])throw q(a[1]);return q(a[0])}function b(e){let t,n;try{let _=r.get_font_face_content(e);var i=_[0],o=_[1];if(_[3])throw i=0,o=0,q(_[2]);return t=i,n=o,j(i,o)}finally{r.__wbindgen_free(t,n,1)}}function h(e,t){let n=F(t,r.__wbindgen_malloc),i=G;r.get_inline_styles_in_key_value_vec(e,n,i)}function p(e){let t,n;try{let _=r.get_style_content(e);var i=_[0],o=_[1];if(_[3])throw i=0,o=0,q(_[2]);return t=i,n=o,j(i,o)}finally{r.__wbindgen_free(t,n,1)}}function w(e,t){let n=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;return 0!==r.set_inline_styles_in_str(e,n,i)}function f(e,t,n){var i=U(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;r.set_inline_styles_number_key(e,t,i,o)}function m(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(e,t){return Error(j(e,t))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(e,t){let n=z(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
- ${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;A().setInt32(e+4,i,!0),A().setInt32(e+0,n,!0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(e){return null===e},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_11888390b0186270:function(e,t){return e===t},__wbg___wbindgen_string_get_72fb696202c56729:function(e,t){let n="string"==typeof t?t:void 0;var i=U(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;A().setInt32(e+4,o,!0),A().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(j(e,t))},__wbg_addEventListener_509b0778ff0f5d80:function(e,t,n){e.addEventListener(j(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return D(function(e,t){return e.appendChild(t)},arguments)},__wbg_cloneNode_b85e9102a9a31b29:function(){return D(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return D(function(e,t,n){return e.createElement(j(t,n))},arguments)},__wbg_cssRules_554f47f3049cf066:function(){return D(function(e){return e.cssRules},arguments)},__wbg_disableElementEvent_18cf7db59ebb6f06:function(e,t,n,r){e.disableElementEvent(t,j(n,r))},__wbg_enableElementEvent_9810de74ded79369:function(e,t,n,r){e.enableElementEvent(t,j(n,r))},__wbg_eventinfo_new:function(e){return i.__wrap(e)},__wbg_getClassList_cad84f9875c7e5ee:function(e,t,n){let i=F(t.getClassList(n),r.__wbindgen_malloc),o=G;A().setInt32(e+4,o,!0),A().setInt32(e+0,i,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return D(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return D(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_insertRule_736c2f80782185c7:function(){return D(function(e,t,n,r){return e.insertRule(j(t,n),r>>>0)},arguments)},__wbg_item_ca823df8214b9e2b:function(e,t){let n=e.item(t>>>0);return U(n)?0:E(n)},__wbg_keys_b50a709a76add04e:function(e){return Object.keys(e)},__wbg_length_32ed9a279acd054c:function(e){return e.length},__wbg_length_35a7bace40f36eac:function(e){return e.length},__wbg_length_edae0cd13a8d3b71:function(e){return e.length},__wbg_new_361308b2356cecd0:function(){return{}},__wbg_new_from_slice_a3d2629dc1826784:function(e,t){return new Uint8Array(M(e,t))},__wbg_ownerDocument_9347874c5cad87d7:function(e){let t=e.ownerDocument;return U(t)?0:E(t)},__wbg_parentElement_75863410a8617953:function(e){let t=e.parentElement;return U(t)?0:E(t)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(e,t,n){Uint8Array.prototype.set.call(M(e,t),n)},__wbg_publishEvent_9003166a9524dc81:function(e,t,n,r,i,o,_,s,a,l){e.publishEvent(j(t,n),0===r?void 0:j(r,i),o,_>>>0,s,a>>>0,l)},__wbg_removeAttribute_87259aab06d9f286:function(){return D(function(e,t,n){e.removeAttribute(j(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return D(function(e,t,n,i){let o=z(t.removeProperty(j(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),_=G;A().setInt32(e+4,_,!0),A().setInt32(e+0,o,!0)},arguments)},__wbg_runWorklet_6d04359b8a8c370f:function(e,t,n,r,i,o,_){e.runWorklet(t,n,r>>>0,i,o>>>0,_)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return D(function(e,t,n,r,i){e.setAttribute(j(t,n),j(r,i))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return D(function(e,t,n,r,i){e.setProperty(j(t,n),j(r,i))},arguments)},__wbg_set_6cb8631f80447a67:function(){return D(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_cssText_18380c97092caefa:function(e,t,n){e.cssText=j(t,n)},__wbg_set_textContent_3e87dba095d9cdbc:function(e,t,n){e.textContent=0===t?void 0:j(t,n)},__wbg_sheet_47ea0f14607eb161:function(e){let t=e.sheet;return U(t)?0:E(t)},__wbg_style_0b7c9bd318f8b807:function(e){return e.style},__wbg_style_fa56cf251a93275a:function(e){return e.style},__wbindgen_cast_0000000000000001:function(e,t){return j(e,t)},__wbindgen_init_externref_table:function(){let e=r.__wbindgen_externrefs,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)},__wbindgen_object_is_undefined:function(e){return void 0===e}}}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);let y="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1)),v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1)),x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1)),T="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_stylesheetresource_free(e>>>0,1));function E(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function C(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function O(e,t){e>>>=0;let n=A(),i=[];for(let o=e;o<e+4*t;o+=4)i.push(r.__wbindgen_externrefs.get(n.getUint32(o,!0)));return r.__externref_drop_slice(e,t),i}function M(e,t){return e>>>=0,L().subarray(e/1,e/1+t)}let P=null;function A(){return(null===P||!0===P.buffer.detached||void 0===P.buffer.detached&&P.buffer!==r.memory.buffer)&&(P=new DataView(r.memory.buffer)),P}function j(e,t){var n,r;return n=e>>>=0,(H+=r=t)>=0x7ff00000&&(($=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),H=r),$.decode(L().subarray(n,n+r))}let I=null,N=null;function L(){return(null===N||0===N.byteLength)&&(N=new Uint8Array(r.memory.buffer)),N}function D(e,t){try{return e.apply(this,t)}catch(t){let e=E(t);r.__wbindgen_exn_store(e)}}function U(e){return null==e}function W(e,t){let n=t(4*e.length,4)>>>0;return((null===I||0===I.byteLength)&&(I=new Uint32Array(r.memory.buffer)),I).set(e,n/4),G=e.length,n}function F(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=E(e[t]);A().setUint32(n+4*t,r,!0)}return G=e.length,n}function z(e,t,n){if(void 0===n){let n=B.encode(e),r=t(n.length,1)>>>0;return L().subarray(r,r+n.length).set(n),G=n.length,r}let r=e.length,i=t(r,1)>>>0,o=L(),_=0;for(;_<r;_++){let t=e.charCodeAt(_);if(t>127)break;o[i+_]=t}if(_!==r){0!==_&&(e=e.slice(_)),i=n(i,r,r=_+3*e.length,1)>>>0;let t=L().subarray(i+_,i+r);_+=B.encodeInto(e,t).written,i=n(i,r,_,1)>>>0}return G=_,i}function q(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}let $=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});$.decode();let H=0,B=new TextEncoder;"encodeInto"in B||(B.encodeInto=function(e,t){let n=B.encode(e);return t.set(n),{read:e.length,written:n.length}});let G=0;function J(e,t){return r=e.exports,P=null,I=null,N=null,r.__wbindgen_start(),r}async function V(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))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)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function Q(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=m();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),J(new WebAssembly.Instance(e,t),e)}async function K(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(6462),n.b));let t=m();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:o}=await V(await e,t);return J(i,o)}},6658(e,t,n){n.d(t,{Q:()=>_});var r=n(1180);let i=Promise.resolve().then(n.bind(n,9521));class o{#e=new Map;#t=new Map;#n=new Map;#r=null;#i=null;#o=null;constructor(){this.#_()}fetchBundle(e,t,n){return this.#e.has(e)&&!n?(async()=>{let n=this.#e.get(e),r=n?.config||{},i=await t;i.backgroundThread.markTiming("decode_start"),i.onPageConfigReady(r),i.onStyleInfoReady(e),i.onMTSScriptsLoaded(e,"true"===r.isLazy),i.onBTSScriptsLoaded(e)})():(this.createTemplate(e),this.#s(e,t,n))}async #s(e,t,n){let r=performance.now()+performance.timeOrigin;t.then(e=>{e.backgroundThread.markTiming("fetch_start",void 0,r)}),this.#t.set(e,t),await this.#_();let i={type:"load",url:e,fetchUrl:new URL(e,location.href).toString(),overrideConfig:n};return this.#r.postMessage(i),new Promise((t,n)=>{this.#n.set(e,{resolve:t,reject:n})})}#a(e){let t=this.#n.get(e);t&&(t.resolve(),this.#n.delete(e))}#l(e,t){let n=this.#n.get(e);n&&(n.reject(t),this.#n.delete(e))}#_(){return this.#r?this.#i?this.#i:void 0:(this.#i=new Promise(e=>{this.#o=e}),this.#r=new Worker(new URL(n.p+n.u("350"),n.b),Object.assign({},{type:"module"},{type:void 0})),this.#r.onmessage=this.#c.bind(this),this.#i.then(()=>{i.then(({wasmModule:e})=>{this.#r.postMessage({type:"init",wasmModule:e})})}),this.#i)}#c(e){let t=e.data;if("ready"===t.type){this.#o&&(this.#o(),this.#o=null,this.#i=null);return}let{url:n}=t,r=this.#t.get(n);if(r)switch(t.type){case"section":this.#d(t,r);break;case"error":console.error(`Error decoding template ${n}:`,t.error),this.#u(n),this.#g(n),this.#l(n,Error(t.error));break;case"done":this.#u(n),r.then(e=>{e.backgroundThread.markTiming("decode_end"),e.backgroundThread.markTiming("load_template_start"),this.#a(n)})}}async #d(e,t){let[n,o]=await Promise.all([t,i.then(e=>e.wasmInstance.StyleSheetResource)]),{label:_,data:s,url:a,config:l}=e;switch(_){case r.eC.Configurations:n.backgroundThread.markTiming("decode_start"),this.#b(a,s),n.onPageConfigReady(s);break;case r.eC.StyleInfo:{let e=new o(new Uint8Array(s),document),t=this.#e.get(a);t&&(t.styleSheet=e),n.onStyleInfoReady(a);break}case r.eC.LepusCode:this.#h(a,s),n.onMTSScriptsLoaded(a,"true"===l.isLazy);break;case r.eC.CustomSections:this.#p(a,s);break;case r.eC.Manifest:this.#w(a,s),n.onBTSScriptsLoaded(a);break;default:throw Error(`Unknown section label: ${_}`)}}#u(e){this.#t.delete(e)}createTemplate(e){if(this.#e.has(e)){let t=this.#e.get(e);if(t){if(t.lepusCode)for(let e of Object.values(t.lepusCode))URL.revokeObjectURL(e);if(t.backgroundCode)for(let e of Object.values(t.backgroundCode))URL.revokeObjectURL(e);t.styleSheet&&t.styleSheet.free()}this.#e.delete(e)}this.#e.set(e,{})}#g(e){this.createTemplate(e),this.#e.delete(e)}#b(e,t){let n=this.#e.get(e);n&&(n.config=t)}#h(e,t){let n=this.#e.get(e);n&&(n.lepusCode=t)}#p(e,t){let n=this.#e.get(e);n&&(n.customSections=t)}#w(e,t){let n=this.#e.get(e);n&&(n.backgroundCode=t)}getTemplate(e){return this.#e.get(e)}getStyleSheet(e){return this.#e.get(e)?.styleSheet}}let _=new o},9521(e,t,n){n.a(e,async function(e,r){try{n.r(t),n.d(t,{wasmInstance:()=>_,wasmModule:()=>s});var i=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,o=Promise.all([(0,i.rO)(),(0,i.oR)()]).then(([t,r])=>{if(t&&r)return Promise.all([Promise.resolve().then(n.bind(n,5704)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(6462),n.b)))]);throw Error("WASM not supported")}),[_,s]=await o;e||_.initSync({module:s}),r()}catch(e){r(e)}},1)},1180(e,t,n){n.d(t,{$4:()=>g,Fd:()=>d,Gm:()=>s,H1:()=>m,JA:()=>i,O4:()=>f,Pb:()=>r,RM:()=>u,Wx:()=>S,eC:()=>h,f7:()=>a,hv:()=>c,im:()=>b,li:()=>v,oZ:()=>_,u9:()=>x,vh:()=>y,xW:()=>l,y:()=>o});let r="l-e-name",i="l-disposed",o="l-template",_="dirtyID",s="lynx-default-display-linear",a="lynx-default-overflow-visible",l="__lynx_timing_flag",c="i18nResourceMissed",d=Symbol("uniqueId"),u={platform:"web",lynxSdkVersion:"3.0"},g={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},b=Object.fromEntries(Object.entries(g).map(([e,t])=>[t,e])),h={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6};var p,w,f=((p={})[p.SUCCESS=0]="SUCCESS",p[p.UNKNOWN=1]="UNKNOWN",p[p.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",p[p.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",p[p.PARAM_INVALID=4]="PARAM_INVALID",p[p.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",p[p.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",p);let m=Object.freeze(Object.assign(Object.create(null),{view:"x-view",text:"x-text",image:"x-image","raw-text":"raw-text","scroll-view":"x-scroll-view",wrapper:"lynx-wrapper",list:"x-list",page:"div",input:"x-input","x-input-ng":"x-input",svg:"x-svg"})),y=Object.freeze(Object.assign(Object.create(null),Object.fromEntries(Object.entries(m).map(([e,t])=>[t,e]))));Object.assign(Object.create(null),{list:0,"x-swiper":1,"x-input":2,"x-input-ng":2,input:2,"x-textarea":3,"x-audio-tt":4,"x-foldview-ng":5,"x-foldview-header-ng":5,"x-foldview-slot-drag-ng":5,"x-foldview-slot-ng":5,"x-foldview-toolbar-ng":5,"x-refresh-view":6,"x-refresh-header":6,"x-refresh-footer":6,"x-overlay-ng":7,"x-viewpager-ng":8,"x-viewpager-item-ng":8});let v=Symbol.for("lynx-scroll-container-dom"),x="loadUnknownElement";var S=((w={})[w.ID_SELECTOR=0]="ID_SELECTOR",w[w.REF_ID=1]="REF_ID",w[w.UNIQUE_ID=2]="UNIQUE_ID",w)},480(e,t,n){n.d(t,{oR:()=>i,rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),i=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e](n,n.exports,o),n.exports}o.m=r,s=(_="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",a=o.aE=_?Symbol("rspack exports"):"__webpack_exports__",l=_?Symbol("rspack error"):"__rspack_error",c=_?Symbol("rspack done"):"__rspack_done",d=o.zS=_?Symbol("rspack defer"):"__rspack_defer",u=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o.a=(e,t,n)=>{n&&((r=[]).d=-1);var r,_,g,b,h=new Set,p=e.exports,w=new Promise((e,t)=>{b=t,g=e});w[a]=p,w[s]=e=>{r&&e(r),h.forEach(e),w.catch(()=>{})},e.exports=w,t(e=>{_=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[s]&&e[d]){var t=e[d];if(!t.some(e=>{var t=i[e];return!t||!1===t[c]}))return e;var n=e;e={then(e){Promise.all(t.map(o)).then(()=>e(n))}}}if(e[s])return e;if(e.then){var r=[];r.d=0,e.then(e=>{_[a]=e,u(r)},e=>{_[l]=e,u(r)});var _={};return _[d]=!1,_[s]=e=>e(r),_}}var g={};return g[s]=()=>{},g[a]=e,g});var t,n=()=>_.map(e=>{if(e[d])return e;if(e[l])throw e[l];return e[a]}),g=new Promise(e=>{(t=()=>e(n)).r=0;var i=e=>e!==r&&!h.has(e)&&(h.add(e),e&&!e.d&&(t.r++,e.push(t)));_.map(e=>e[d]||e[s](i))});return t.r?g:n()},e=>(e?b(w[l]=e):g(p),u(r),w[c]=!0)),r&&r.d<0&&(r.d=0)},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=(e,t)=>Promise.all(Object.keys(o.f).reduce((n,r)=>(o.f[r](e,n,t),n),[])),o.u=e=>"static/js/async/"+({350:"web-core-template-loader-thread",724:"web-elements",894:"web-core-main-chunk",97:"web-core-worker-chunk"})[e]+".js",o.miniCssF=e=>""+e+".css",o.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g={},o.l=function(e,t,n,r,i){if(g[e])return void g[e].push(t);if(void 0!==n)for(var _,s,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var c=a[l];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@lynx-js/web-core-wasm:"+n){_=c;break}}_||(s=!0,(_=document.createElement("script")).timeout=120,o.nc&&_.setAttribute("nonce",o.nc),_.setAttribute("data-rspack","@lynx-js/web-core-wasm:"+n),i&&_.setAttribute("fetchpriority",i),_.src=e),g[e]=[t];var d=function(t,n){_.onerror=_.onload=null,clearTimeout(u);var r=g[e];if(delete g[e],_.parentNode&&_.parentNode.removeChild(_),r&&r.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:_}),12e4);_.onerror=d.bind(null,_.onerror),_.onload=d.bind(null,_.onload),s&&document.head.appendChild(_)},o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.g.importScripts&&(b=o.g.location+"");var _,s,a,l,c,d,u,g,b,h=o.g.document;if(!b&&h&&(h.currentScript&&"SCRIPT"===h.currentScript.tagName.toUpperCase()&&(b=h.currentScript.src),!b)){var p=h.getElementsByTagName("script");if(p.length)for(var w=p.length-1;w>-1&&(!b||!/^http(s?):/.test(b));)b=p[w--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");o.p=(b=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../",o.b=document.baseURI||self.location.href,e={719:0},o.f.j=function(t,n,r){var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var _=new Promise((n,r)=>i=e[t]=[n,r]);n.push(i[2]=_);var s=o.p+o.u(t),a=Error();o.l(s,function(n){if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),_=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+_+")",a.name="ChunkLoadError",a.type=r,a.request=_,i[1](a)}},"chunk-"+t,t,r)}},t=(t,n)=>{var r,i,[_,s,a]=n,l=0;if(_.some(t=>0!==e[t])){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);a&&a(o)}for(t&&t(n);l<_.length;l++)i=_[l],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(n=globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),(()=>{var e=o(1180);let t=document.querySelector("script[nonce]"),n=t?.nonce||t?.getAttribute("nonce");async function r(e){let t=document.createElement("iframe"),r=new Promise(e=>{let n=r=>{"lynx:mtsready"===r.data&&r.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc='<!DOCTYPE html><html><head><script>parent.postMessage("lynx:mtsready","*")<\/script></head><body style="display:none"></body></html>',t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await r;let i=t.contentWindow,o=async e=>{let r=t.contentDocument.createElement("script");return r.fetchPriority="high",r.defer=!0,r.async=!1,r.nonce=n||"",t.contentDocument.head.appendChild(r),new Promise(async(t,n)=>{r.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},r.onerror=t=>n(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},r.src=e})};return{globalWindow:i,loadScript:o,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let r=i?.module?.exports;return i.module={exports:void 0},r}throw Error(`Failed to load script: ${e}`,{cause:n})}}}var i=o(6658);o.e("894","high").then(o.bind(o,3764));class _ extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=_.observedAttributeAsProperties.map(e=>e.toLowerCase());#f;#m=!1;#y;nativeModulesMap;napiModulesMap;onNapiModulesCall;constructor(){super(),this.onNativeModulesCall||(this.onNativeModulesCall=(e,t,n)=>new Promise(r=>{this.#v.push({args:[e,t,n],resolve:r})}))}get url(){return this.#y}set url(e){this.#y=e,this.#x()}#S={};get globalProps(){return this.#S}set globalProps(e){"string"==typeof e?this.#S=JSON.parse(e):this.#S=e}#k={};get initData(){return this.#k}set initData(e){"string"==typeof e?this.#k=JSON.parse(e):this.#k=e}#R=[];get initI18nResources(){return this.#R}set initI18nResources(e){"string"==typeof e?this.#R=JSON.parse(e):this.#R=e}updateI18nResources(e,t){this.#f?.i18nManager.updateData(e,t)}#T={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#T}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#T=JSON.parse(e):this.#T=e}#v=[];#E;get onNativeModulesCall(){return this.#E}set onNativeModulesCall(e){for(let t of(this.#E=e,this.#v))t.resolve(e.apply(void 0,t.args));this.#v=[]}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#f?.updateData(e,t).then(()=>{n?.()})}updateGlobalProps(e){this.#f?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#f?.backgroundThread.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#x()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#y=n;break;case"global-props":this.#S=JSON.parse(n);break;case"init-data":this.#k=JSON.parse(n)}}injectStyleRules;disconnectedCallback(){this.shadowRoot?.querySelector('[part="page"]')?.setAttribute(e.JA,""),this.#f?.[Symbol.asyncDispose](),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.#f=void 0}#C=!1;#x(){if(!this.#C&&this.#m){this.#C=!0,this.shadowRoot||this.attachShadow({mode:"open"}),this.#f&&this.disconnectedCallback();let e=r(this.shadowRoot);queueMicrotask(async()=>{if(this.injectStyleRules&&this.injectStyleRules.length>0){let e=new CSSStyleSheet;for(let t of this.injectStyleRules)e.insertRule(t);this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.concat(e)}let t=await e;if(this.#y){let e=o.e("894","high").then(o.bind(o,3764)).then(({LynxViewInstance:e})=>new e(this,this.initData,this.globalProps,this.#y,this.shadowRoot,t,n,this.nativeModulesMap,this.napiModulesMap,this.#R));i.Q.fetchBundle(this.#y,e);let n=this.lynxGroupId;this.#f=await e,this.#C=!1}})}}connectedCallback(){this.url&&(this.#y=this.url),this.#m=!0,this.#x()}}customElements.get(_.tag)?console.error(`[${_.tag}] has already been defined`):customElements.define(_.tag,_)})()})();
1
+ (()=>{"use strict";var e,t,n,r={6462(e,t,n){e.exports=n.p+"static/wasm/af9fb056.module.wasm"},5704(e,t,n){let r;n.r(t),n.d(t,{EventInfo:()=>i,MainThreadWasmContext:()=>s,RawStyleInfo:()=>o,Rule:()=>a,RulePrelude:()=>l,Selector:()=>_,StyleSheetResource:()=>c,add_inline_style_raw_string_key:()=>d,decode_style_info:()=>u,default:()=>Z,encode_legacy_json_generated_raw_style_info:()=>h,get_font_face_content:()=>g,get_inline_styles_in_key_value_vec:()=>b,get_style_content:()=>p,initSync:()=>Q,set_inline_styles_in_str:()=>f,set_inline_styles_number_key:()=>w});class i{static __wrap(e){e>>>=0;let t=Object.create(i.prototype);return t.__wbg_ptr=e,y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,y.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get event_handler(){return r.__wbg_get_eventinfo_event_handler(this.__wbg_ptr)}get event_name(){let e,t;try{let n=r.__wbg_get_eventinfo_event_name(this.__wbg_ptr);return e=n[0],t=n[1],L(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get event_type(){let e,t;try{let n=r.__wbg_get_eventinfo_event_type(this.__wbg_ptr);return e=n[0],t=n[1],L(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set event_handler(e){r.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,e)}set event_name(e){let t=F(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G;r.__wbg_set_eventinfo_event_name(this.__wbg_ptr,t,n)}set event_type(e){let t=F(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G;r.__wbg_set_eventinfo_event_type(this.__wbg_ptr,t,n)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}add_cross_thread_event(e,t,n,i){let s=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,a=F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=G;var _=U(i)?0:F(i,r.__wbindgen_malloc,r.__wbindgen_realloc),c=G;r.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,e,s,o,a,l,_,c)}add_dataset(e,t,n){let i=r.mainthreadwasmcontext_add_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw H(i[0])}add_run_worklet_event(e,t,n,i){let s=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,a=F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=G;r.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,e,s,o,a,l,U(i)?0:E(i))}common_event_handler(e,t,n){let i=W(t,r.__wbindgen_malloc),s=G,o=F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;r.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,e,i,s,o,a)}create_element_common(e,t,n,i){var s=U(i)?0:F(i,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;return r.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,e,t,U(n)?0x100000001:0|n,s,o)>>>0}dispatch_event_by_path(e,t,n,i){let s=W(e,r.__wbindgen_malloc),o=G,a=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),l=G;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,s,o,a,l,n,i)}get_component_id(e){let t,n=r.mainthreadwasmcontext_get_component_id(this.__wbg_ptr,e);if(n[3])throw H(n[2]);return 0!==n[0]&&(t=L(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}get_config(e){let t=r.mainthreadwasmcontext_get_config(this.__wbg_ptr,e);if(t[2])throw H(t[1]);return H(t[0])}get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}get_data_by_key(e,t){let n=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,s=r.mainthreadwasmcontext_get_data_by_key(this.__wbg_ptr,e,n,i);if(s[2])throw H(s[1]);return H(s[0])}get_dataset(e){let t=r.mainthreadwasmcontext_get_dataset(this.__wbg_ptr,e);if(t[2])throw H(t[1]);return H(t[0])}get_dom_by_unique_id(e){return r.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,e)}get_element_config(e){let t=r.mainthreadwasmcontext_get_element_config(this.__wbg_ptr,e);if(t[2])throw H(t[1]);return H(t[0])}get_event(e,t,n){let i=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G,o=F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;return r.mainthreadwasmcontext_get_event(this.__wbg_ptr,e,i,s,o,a)}get_events(e){let t=r.mainthreadwasmcontext_get_events(this.__wbg_ptr,e);var n=T(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}get_unique_id_by_component_id(e){let t=F(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G,i=r.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===i?void 0:i}constructor(e,t,n){const i=r.mainthreadwasmcontext_new(e,t,n);return this.__wbg_ptr=i>>>0,v.register(this,this.__wbg_ptr,this),this}push_style_sheet(e,t){O(e,c);var n=U(t)?0:F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let s=r.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[1])throw H(s[0])}set_config(e,t){let n=r.mainthreadwasmcontext_set_config(this.__wbg_ptr,e,t);if(n[1])throw H(n[0])}set_css_id(e,t,n){let i=W(e,r.__wbindgen_malloc),s=G;var o=U(n)?0:F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;let l=r.mainthreadwasmcontext_set_css_id(this.__wbg_ptr,i,s,t,o,a);if(l[1])throw H(l[0])}set_dataset(e,t,n){let i=r.mainthreadwasmcontext_set_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw H(i[0])}set_page_element_unique_id(e){r.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,e)}take_timing_flags(){let e=r.mainthreadwasmcontext_take_timing_flags(this.__wbg_ptr);var t=T(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}update_component_id(e,t){var n=U(t)?0:F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let s=r.mainthreadwasmcontext_update_component_id(this.__wbg_ptr,e,n,i);if(s[1])throw H(s[0])}update_css_og_style(e,t){var n=U(t)?0:F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;let s=r.mainthreadwasmcontext_update_css_og_style(this.__wbg_ptr,e,n,i);if(s[1])throw H(s[0])}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,S.register(this,this.__wbg_ptr,this),this}push_rule(e,t){O(t,a);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=F(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=G,i=r.rule_new(t,n);if(i[2])throw H(i[1]);return this.__wbg_ptr=i[0]>>>0,x.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let n=F(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,s=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;r.rule_push_declaration(this.__wbg_ptr,n,i,s,o)}push_rule_children(e){O(e,a);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){O(e,l);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,k.register(this,this.__wbg_ptr,this),this}push_selector(e){O(e,_);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class _{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,C.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=F(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G,s=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=G,a=r.selector_push_one_selector_section(this.__wbg_ptr,n,i,s,o);if(a[1])throw H(a[0])}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_stylesheetresource_free(e,0)}constructor(e,t){const n=r.stylesheetresource_new(e,t);if(n[2])throw H(n[1]);return this.__wbg_ptr=n[0]>>>0,R.register(this,this.__wbg_ptr,this),this}}function d(e,t,n){let i=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;var o=U(n)?0:F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;r.add_inline_style_raw_string_key(e,i,s,o,a)}function u(e,t,n){var i=U(t)?0:F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;let o=r.decode_style_info(e,i,s,n);if(o[2])throw H(o[1]);return H(o[0])}function h(e,t,n){O(e,o);var i=e.__destroy_into_raw(),s=U(n)?0:F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=G;let l=r.encode_legacy_json_generated_raw_style_info(i,t,s,a);if(l[2])throw H(l[1]);return H(l[0])}function g(e){let t,n;try{let o=r.get_font_face_content(e);var i=o[0],s=o[1];if(o[3])throw i=0,s=0,H(o[2]);return t=i,n=s,L(i,s)}finally{r.__wbindgen_free(t,n,1)}}function b(e,t){let n=z(t,r.__wbindgen_malloc),i=G;r.get_inline_styles_in_key_value_vec(e,n,i)}function p(e){let t,n;try{let o=r.get_style_content(e);var i=o[0],s=o[1];if(o[3])throw i=0,s=0,H(o[2]);return t=i,n=s,L(i,s)}finally{r.__wbindgen_free(t,n,1)}}function f(e,t){let n=F(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;return 0!==r.set_inline_styles_in_str(e,n,i)}function w(e,t,n){var i=U(n)?0:F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;r.set_inline_styles_number_key(e,t,i,s)}function m(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(e,t){return Error(L(e,t))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(e,t){let n=F(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),i=G;P().setInt32(e+4,i,!0),P().setInt32(e+0,n,!0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(e){return null===e},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_11888390b0186270:function(e,t){return e===t},__wbg___wbindgen_string_get_72fb696202c56729:function(e,t){let n="string"==typeof t?t:void 0;var i=U(n)?0:F(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=G;P().setInt32(e+4,s,!0),P().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(L(e,t))},__wbg_addEventListener_509b0778ff0f5d80:function(e,t,n){e.addEventListener(L(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return D(function(e,t){return e.appendChild(t)},arguments)},__wbg_cloneNode_b85e9102a9a31b29:function(){return D(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return D(function(e,t,n){return e.createElement(L(t,n))},arguments)},__wbg_cssRules_554f47f3049cf066:function(){return D(function(e){return e.cssRules},arguments)},__wbg_disableElementEvent_18cf7db59ebb6f06:function(e,t,n,r){e.disableElementEvent(t,L(n,r))},__wbg_enableElementEvent_9810de74ded79369:function(e,t,n,r){e.enableElementEvent(t,L(n,r))},__wbg_eventinfo_new:function(e){return i.__wrap(e)},__wbg_getClassList_cad84f9875c7e5ee:function(e,t,n){let i=z(t.getClassList(n),r.__wbindgen_malloc),s=G;P().setInt32(e+4,s,!0),P().setInt32(e+0,i,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return D(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return D(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_insertRule_736c2f80782185c7:function(){return D(function(e,t,n,r){return e.insertRule(L(t,n),r>>>0)},arguments)},__wbg_item_ca823df8214b9e2b:function(e,t){let n=e.item(t>>>0);return U(n)?0:E(n)},__wbg_keys_b50a709a76add04e:function(e){return Object.keys(e)},__wbg_length_32ed9a279acd054c:function(e){return e.length},__wbg_length_35a7bace40f36eac:function(e){return e.length},__wbg_length_edae0cd13a8d3b71:function(e){return e.length},__wbg_new_361308b2356cecd0:function(){return{}},__wbg_new_from_slice_a3d2629dc1826784:function(e,t){return new Uint8Array(A(e,t))},__wbg_ownerDocument_9347874c5cad87d7:function(e){let t=e.ownerDocument;return U(t)?0:E(t)},__wbg_parentElement_75863410a8617953:function(e){let t=e.parentElement;return U(t)?0:E(t)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(e,t,n){Uint8Array.prototype.set.call(A(e,t),n)},__wbg_publishEvent_9003166a9524dc81:function(e,t,n,r,i,s,o,a,l,_){e.publishEvent(L(t,n),0===r?void 0:L(r,i),s,o>>>0,a,l>>>0,_)},__wbg_removeAttribute_87259aab06d9f286:function(){return D(function(e,t,n){e.removeAttribute(L(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return D(function(e,t,n,i){let s=F(t.removeProperty(L(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),o=G;P().setInt32(e+4,o,!0),P().setInt32(e+0,s,!0)},arguments)},__wbg_runWorklet_6d04359b8a8c370f:function(e,t,n,r,i,s,o){e.runWorklet(t,n,r>>>0,i,s>>>0,o)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return D(function(e,t,n,r,i){e.setAttribute(L(t,n),L(r,i))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return D(function(e,t,n,r,i){e.setProperty(L(t,n),L(r,i))},arguments)},__wbg_set_6cb8631f80447a67:function(){return D(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_cssText_18380c97092caefa:function(e,t,n){e.cssText=L(t,n)},__wbg_set_textContent_3e87dba095d9cdbc:function(e,t,n){e.textContent=0===t?void 0:L(t,n)},__wbg_sheet_47ea0f14607eb161:function(e){let t=e.sheet;return U(t)?0:E(t)},__wbg_style_0b7c9bd318f8b807:function(e){return e.style},__wbg_style_fa56cf251a93275a:function(e){return e.style},__wbindgen_cast_0000000000000001:function(e,t){return L(e,t)},__wbindgen_init_externref_table:function(){let e=r.__wbindgen_externrefs,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)},__wbindgen_object_is_undefined:function(e){return void 0===e}}}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);let y="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1)),v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1)),x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1)),C="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_stylesheetresource_free(e>>>0,1));function E(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function O(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function T(e,t){e>>>=0;let n=P(),i=[];for(let s=e;s<e+4*t;s+=4)i.push(r.__wbindgen_externrefs.get(n.getUint32(s,!0)));return r.__externref_drop_slice(e,t),i}function A(e,t){return e>>>=0,I().subarray(e/1,e/1+t)}let M=null;function P(){return(null===M||!0===M.buffer.detached||void 0===M.buffer.detached&&M.buffer!==r.memory.buffer)&&(M=new DataView(r.memory.buffer)),M}function L(e,t){var n,r;return n=e>>>=0,($+=r=t)>=0x7ff00000&&((q=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),$=r),q.decode(I().subarray(n,n+r))}let j=null,N=null;function I(){return(null===N||0===N.byteLength)&&(N=new Uint8Array(r.memory.buffer)),N}function D(e,t){try{return e.apply(this,t)}catch(t){let e=E(t);r.__wbindgen_exn_store(e)}}function U(e){return null==e}function W(e,t){let n=t(4*e.length,4)>>>0;return((null===j||0===j.byteLength)&&(j=new Uint32Array(r.memory.buffer)),j).set(e,n/4),G=e.length,n}function z(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=E(e[t]);P().setUint32(n+4*t,r,!0)}return G=e.length,n}function F(e,t,n){if(void 0===n){let n=B.encode(e),r=t(n.length,1)>>>0;return I().subarray(r,r+n.length).set(n),G=n.length,r}let r=e.length,i=t(r,1)>>>0,s=I(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;s[i+o]=t}if(o!==r){0!==o&&(e=e.slice(o)),i=n(i,r,r=o+3*e.length,1)>>>0;let t=I().subarray(i+o,i+r);o+=B.encodeInto(e,t).written,i=n(i,r,o,1)>>>0}return G=o,i}function H(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}let q=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();let $=0,B=new TextEncoder;"encodeInto"in B||(B.encodeInto=function(e,t){let n=B.encode(e);return t.set(n),{read:e.length,written:n.length}});let G=0;function J(e,t){return r=e.exports,M=null,j=null,N=null,r.__wbindgen_start(),r}async function V(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))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)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function Q(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=m();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),J(new WebAssembly.Instance(e,t),e)}async function Z(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(6462),n.b));let t=m();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await V(await e,t);return J(i,s)}},6658(e,t,n){n.d(t,{Q:()=>o});var r=n(1180);let i=Promise.resolve().then(n.bind(n,9521));class s{#e=new Map;#t=new Map;#n=new Map;#r=null;#i=null;#s=null;constructor(){this.#o()}fetchBundle(e,t,n){return this.#e.has(e)&&!n?(async()=>{let n=this.#e.get(e),r=n?.config||{},i=await t;i.backgroundThread.markTiming("decode_start"),i.onPageConfigReady(r),i.onStyleInfoReady(e),i.onMTSScriptsLoaded(e,"true"===r.isLazy),i.onBTSScriptsLoaded(e)})():(this.createTemplate(e),this.#a(e,t,n))}async #a(e,t,n){let r=performance.now()+performance.timeOrigin;t.then(e=>{e.backgroundThread.markTiming("fetch_start",void 0,r)}),this.#t.set(e,t),await this.#o();let i={type:"load",url:e,fetchUrl:new URL(e,location.href).toString(),overrideConfig:n};return this.#r.postMessage(i),new Promise((t,n)=>{this.#n.set(e,{resolve:t,reject:n})})}#l(e){let t=this.#n.get(e);t&&(t.resolve(),this.#n.delete(e))}#_(e,t){let n=this.#n.get(e);n&&(n.reject(t),this.#n.delete(e))}#o(){return this.#r?this.#i?this.#i:void 0:(this.#i=new Promise(e=>{this.#s=e}),this.#r=new Worker(new URL(n.p+n.u("350"),n.b),Object.assign({},{type:"module"},{type:void 0})),this.#r.onmessage=this.#c.bind(this),this.#i.then(()=>{i.then(({wasmModule:e})=>{this.#r.postMessage({type:"init",wasmModule:e})})}),this.#i)}#c(e){let t=e.data;if("ready"===t.type){this.#s&&(this.#s(),this.#s=null,this.#i=null);return}let{url:n}=t,r=this.#t.get(n);if(r)switch(t.type){case"section":this.#d(t,r);break;case"error":console.error(`Error decoding template ${n}:`,t.error),this.#u(n),this.#h(n),this.#_(n,Error(t.error));break;case"done":this.#u(n),r.then(e=>{e.backgroundThread.markTiming("decode_end"),e.backgroundThread.markTiming("load_template_start"),this.#l(n)})}}async #d(e,t){let[n,s]=await Promise.all([t,i.then(e=>e.wasmInstance.StyleSheetResource)]),{label:o,data:a,url:l,config:_}=e;switch(o){case r.eC.Configurations:n.backgroundThread.markTiming("decode_start"),this.#g(l,a),n.onPageConfigReady(a);break;case r.eC.StyleInfo:{let e=new s(new Uint8Array(a),document),t=this.#e.get(l);t&&(t.styleSheet=e),n.onStyleInfoReady(l);break}case r.eC.LepusCode:this.#b(l,a),n.onMTSScriptsLoaded(l,"true"===_.isLazy);break;case r.eC.CustomSections:this.#p(l,a);break;case r.eC.Manifest:this.#f(l,a),n.onBTSScriptsLoaded(l);break;default:throw Error(`Unknown section label: ${o}`)}}#u(e){this.#t.delete(e)}createTemplate(e){if(this.#e.has(e)){let t=this.#e.get(e);if(t){if(t.lepusCode)for(let e of Object.values(t.lepusCode))URL.revokeObjectURL(e);if(t.backgroundCode)for(let e of Object.values(t.backgroundCode))URL.revokeObjectURL(e);t.styleSheet&&t.styleSheet.free()}this.#e.delete(e)}this.#e.set(e,{})}#h(e){this.createTemplate(e),this.#e.delete(e)}#g(e,t){let n=this.#e.get(e);n&&(n.config=t)}#b(e,t){let n=this.#e.get(e);n&&(n.lepusCode=t)}#p(e,t){let n=this.#e.get(e);n&&(n.customSections=t)}#f(e,t){let n=this.#e.get(e);n&&(n.backgroundCode=t)}getTemplate(e){return this.#e.get(e)}getStyleSheet(e){return this.#e.get(e)?.styleSheet}}let o=new s},9521(e,t,n){n.a(e,async function(e,r){try{n.r(t),n.d(t,{wasmInstance:()=>o,wasmModule:()=>a});var i=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,s=Promise.all([(0,i.rO)(),(0,i.oR)()]).then(([t,r])=>{if(t&&r)return Promise.all([Promise.resolve().then(n.bind(n,5704)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(6462),n.b)))]);throw Error("WASM not supported")}),[o,a]=await s;e||o.initSync({module:a}),r()}catch(e){r(e)}},1)},1180(e,t,n){n.d(t,{$4:()=>h,Fd:()=>d,Gm:()=>a,H1:()=>m,JA:()=>i,O4:()=>w,Pb:()=>r,RM:()=>u,Wx:()=>x,eC:()=>b,f7:()=>l,hv:()=>c,im:()=>g,li:()=>v,oZ:()=>o,u9:()=>S,vh:()=>y,xW:()=>_,y:()=>s});let r="l-e-name",i="l-disposed",s="l-template",o="dirtyID",a="lynx-default-display-linear",l="lynx-default-overflow-visible",_="__lynx_timing_flag",c="i18nResourceMissed",d=Symbol("uniqueId"),u={platform:"web",lynxSdkVersion:"3.0"},h={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},g=Object.fromEntries(Object.entries(h).map(([e,t])=>[t,e])),b={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6};var p,f,w=((p={})[p.SUCCESS=0]="SUCCESS",p[p.UNKNOWN=1]="UNKNOWN",p[p.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",p[p.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",p[p.PARAM_INVALID=4]="PARAM_INVALID",p[p.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",p[p.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",p);let m=Object.freeze(Object.assign(Object.create(null),{view:"x-view",text:"x-text",image:"x-image","raw-text":"raw-text","scroll-view":"x-scroll-view",wrapper:"lynx-wrapper",list:"x-list",page:"div",input:"x-input","x-input-ng":"x-input",svg:"x-svg"})),y=Object.freeze(Object.assign(Object.create(null),Object.fromEntries(Object.entries(m).map(([e,t])=>[t,e]))));Object.assign(Object.create(null),{list:0,"x-swiper":1,"x-input":2,"x-input-ng":2,input:2,"x-textarea":3,"x-audio-tt":4,"x-foldview-ng":5,"x-foldview-header-ng":5,"x-foldview-slot-drag-ng":5,"x-foldview-slot-ng":5,"x-foldview-toolbar-ng":5,"x-refresh-view":6,"x-refresh-header":6,"x-refresh-footer":6,"x-overlay-ng":7,"x-viewpager-ng":8,"x-viewpager-item-ng":8});let v=Symbol.for("lynx-scroll-container-dom"),S="loadUnknownElement";var x=((f={})[f.ID_SELECTOR=0]="ID_SELECTOR",f[f.REF_ID=1]="REF_ID",f[f.UNIQUE_ID=2]="UNIQUE_ID",f)},167(e,t,n){n.d(t,{_y:()=>h,ZR:()=>b,h3:()=>g,_8:()=>l,uA:()=>c,Ut:()=>_,H$:()=>a,LB:()=>o,JS:()=>s,qy:()=>d});let r=[];function i(){let e=r;for(let[t,n]of(r=[],e))n?t.call(n):t()}function s(e,t){0===r.length&&queueMicrotask(i),r.push([e,t])}function o(e,t,n,r){let i=!1;return function(o){if(o!==i){let a=e.call(this);o?(s(()=>a.addEventListener(t,n,r)),i=!0):(s(()=>a.removeEventListener(t,n)),i=!1)}}}function a(e,t,n){return function(r){n&&(r=n(r));let i=e.call(this);i.getAttribute(t)!==r&&(null!==r?s(()=>{i.setAttribute(t,r)}):s(()=>{i.removeAttribute(t)}))}}function l(e,t,n,r){return function(i){i?(n&&(i=n(i)),s(()=>e.call(this).style.setProperty(t,i,r?"important":void 0))):s(()=>e.call(this).style.removeProperty(t))}}function _(e,t){let n,r;return()=>(r||(r=e()),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=r.querySelector(t)),n)}function c(e,t,n){let r,i=t.filter(e=>!!e);return(t,{addInitializer:o})=>{let a=new Set([...i.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class l extends t{static registerPlugin(e){if(l.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)a.add(t);i.push(e)}static observedAttributes=[...t.observedAttributes??[],...i.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#w=[];constructor(){if(super(),n&&!r&&((r=document.createElement("template")).innerHTML=n,document.body.appendChild(r)),r&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=r.content.cloneNode(!0);e.append(t)}this.#w=i.map(e=>new e(this)),this.#m()}#y=!1;#v=new Map;#S(){!this.#y&&a.size&&(this.#y=!0,s(this.#x,this))}#x(){let e=getComputedStyle(this);for(let n of a){var t;let r=e.getPropertyValue(n),i=e.getPropertyPriority(n),s=(t=r.trim(),i?t+" !important":t);if(this.#v.get(n)!==s)for(let e of this.#w)e.cssPropertyChangedHandler?.[n]?.call(e,s,n)}this.#y=!1}setAttribute(e,n){"false"!==n.toString()||t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,n):this.removeAttribute(e)}#m(){let e=this.attributes;for(let n=0,r;r=e.item(n);n++)"false"!==r.value||t.notToFilterFalseAttributes?.has(r.name)||r.name.startsWith("data-")||this.removeAttributeNode(r)}#k=!1;attributeChangedCallback(e,n,r){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,n,r),t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===n&&(n=null),"false"===r&&(r=null,this.removeAttribute(e))),n!==r){for(let t of(this.#k&&("class"===e||"style"===e)&&this.#S(),this.#w))if(t.attributeChangedHandler?.[e]){let{handler:i,noDomMeasure:o}=t.attributeChangedHandler[e];o?i.call(t,r,n,e):this.#k&&s(()=>i.call(t,r,n,e))}}}#C(){this.getAttributeNames().forEach(e=>{for(let t of this.#w)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:r}=t.attributeChangedHandler[e];r||s(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#w.forEach(e=>{e.connectedCallback?.()}),this.#S(),s(this.#C,this),this.#k=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#w.forEach(e=>{e.dispose?.()})}#R={};enableEvent(e){this.#R[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let t=this.#R[e];if(0===t.count)for(let t of this.#w){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}t.count++}disableEvent(e){let t=this.#R[e];if(t&&t.count>0&&(t.count--,0===t.count))for(let t of this.#w){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}addEventListener(e,t,n){super.addEventListener(e,t,n),this.enableEvent(e);let r=this.#R[e],i=("object"==typeof n?n.capture:n)?r.captureListenerCount:r.listenerCount,s=i.get(t)??0;i.set(t,s+1)}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let r="object"==typeof n?n.capture:n,i=this.#R[e];if(i&&i.count>0){let n=r?i.captureListenerCount:i.listenerCount;1===n.get(t)&&(n.delete(t),this.disableEvent(e))}}}return o(()=>{customElements.define(e,l)}),l}}let d=(e,...t)=>String.raw({raw:e},...t);function u(e,t){return function(n,...r){return function(i,s){if("method"===s.kind)s.addInitializer(function(){this[e]??={},this[e][n]=t(i,r)});else if("field"===s.kind)return function(i){return this[e]??={},this[e][n]=t(i,r),i};else throw Error(`[lynx-web-components] decorator type ${s.kind} is not supported`)}}}let h=u("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),g=u("cssPropertyChangedHandler",e=>e),b=u("eventStatusChangedHandler",e=>e)},1916(e,t,n){n.d(t,{O:()=>c,v:()=>_});var r,i,s,o=n(9698),a=n(2032),l=n(167);let _=Symbol("layoutChangeTarget");r=(0,l.ZR)("layoutchange");class c{static #E={e:[i,s]}=(0,o._)(this,[[r,0,"__handleScrollUpperThresholdEventEnabled"]],[]);static observedAttributes=[];#O;constructor(e){this.#O=e}#T=(s(this),!1);#A;__handleScrollUpperThresholdEventEnabled=i(this,e=>{e&&this.#O[_]?!this.#A&&(this.#A=new ResizeObserver(([e])=>{if(e){let t=this.#O.id,{top:n,bottom:r,left:i,right:s,width:o,height:l}=e.target.getBoundingClientRect();this.#O.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:o,height:l,left:i,right:s,top:n,bottom:r,id:t},...a.$}))}}),this.#T||(this.#A.observe(this.#O[_]),this.#T=!0)):(this.#A?.disconnect(),this.#A=void 0,this.#T=!1)});dispose(){this.#A?.disconnect(),this.#A=void 0,this.#T=!1}}},2032(e,t,n){n.d(t,{$:()=>r});let r={bubbles:!1,composed:!1,cancelable:!0}},6372(e,t,n){n.d(t,{k:()=>r,l:()=>i});let r="onscrollend"in document,i=Symbol.for("lynx-scroll-container-dom")},9698(e,t,n){n.d(t,{_:()=>r});function r(e,t,n,i){function s(e,t){return function(n){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),a(n,"An initializer"),e.push(n)}}function o(e,t,n,r,i,o,a,l,_){switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,d,u,h={kind:c,name:a?"#"+t:t,static:o,private:a,metadata:l},g={v:!1};h.addInitializer=s(r,g),0===i?a?(d=n.get,u=n.set):(d=function(){return this[t]},u=function(e){this[t]=e}):2===i?d=function(){return n.value}:((1===i||3===i)&&(d=function(){return n.get.call(this)}),(1===i||4===i)&&(u=function(e){n.set.call(this,e)})),h.access=d&&u?{get:d,set:u}:d?{get:d}:{set:u};try{return e(_,h)}finally{g.v=!0}}function a(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function l(e,t){var n=typeof t;if(1===e){if("object"!==n||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&a(t.get,"accessor.get"),void 0!==t.set&&a(t.set,"accessor.set"),void 0!==t.init&&a(t.init,"accessor.init")}else if("function"!==n)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function _(e,t){t&&e.push(function(e){for(var n=0;n<t.length;n++)t[n].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(r=function(e,t,n,r){if(void 0!==r)var i=r[Symbol.metadata||Symbol.for("Symbol.metadata")];var a=Object.create(void 0===i?null:i),d=function(e,t,n){for(var r=[],i=new Map,s=new Map,a=0;a<t.length;a++){var c,d,u,h,g=t[a];if(Array.isArray(g)){var b=g[1],p=g[2],f=g.length>3,w=b>=5;if(w?(u=e,b-=5,h=d=d||[]):(u=e.prototype,h=c=c||[]),0!==b&&!f){var m=w?s:i,y=m.get(p)||0;if(!0===y||3===y&&4!==b||4===y&&3!==b)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!y&&b>2?m.set(p,b):m.set(p,!0)}!function(e,t,n,r,i,s,a,_,c){var d,u,h,g,b,p,f=n[0];if(a?d=0===i||1===i?{get:n[3],set:n[4]}:3===i?{get:n[3]}:4===i?{set:n[3]}:{value:n[3]}:0!==i&&(d=Object.getOwnPropertyDescriptor(t,r)),1===i?h={get:d.get,set:d.set}:2===i?h=d.value:3===i?h=d.get:4===i&&(h=d.set),"function"==typeof f)void 0!==(g=o(f,r,d,_,i,s,a,c,h))&&(l(i,g),0===i?u=g:1===i?(u=g.init,h={get:b=g.get||h.get,set:g.set||h.set}):h=g);else for(var w=f.length-1;w>=0;w--)void 0!==(g=o(f[w],r,d,_,i,s,a,c,h))&&(l(i,g),0===i?p=g:1===i?(p=g.init,h={get:b=g.get||h.get,set:g.set||h.set}):h=g,void 0!==p&&(void 0===u?u=p:"function"==typeof u?u=[u,p]:u.push(p)));if(0===i||1===i){if(void 0===u)u=function(e,t){return t};else if("function"!=typeof u){var m=u;u=function(e,t){for(var n=t,r=0;r<m.length;r++)n=m[r].call(e,n);return n}}else{var y=u;u=function(e,t){return y.call(e,t)}}e.push(u)}0!==i&&(1===i?(d.get=h.get,d.set=h.set):2===i?d.value=h:3===i?d.get=h:4===i&&(d.set=h),a?1===i?(e.push(function(e,t){return h.get.call(e,t)}),e.push(function(e,t){return h.set.call(e,t)})):2===i?e.push(h):e.push(function(e,t){return h.call(e,t)}):Object.defineProperty(t,r,d))}(r,u,g,p,b,w,f,h,n)}}return _(r,c),_(r,d),r}(e,t,a);return n.length||c(e,a),{e:d,get c(){return function(e,t,n){if(t.length>0){for(var r=[],i=e,o=e.name,a=t.length-1;a>=0;a--){var _={v:!1};try{var d=t[a](i,{kind:"class",name:o,addInitializer:s(r,_),metadata:n})}finally{_.v=!0}void 0!==d&&(l(10,d),i=d)}return[c(i,n),function(){for(var e=0;e<r.length;e++)r[e].call(i)}]}}(e,n,a)}}})(e,t,n,i)}},480(e,t,n){n.d(t,{oR:()=>i,rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),i=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e](n,n.exports,s),n.exports}s.m=r,a=(o="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",l=s.aE=o?Symbol("rspack exports"):"__webpack_exports__",_=o?Symbol("rspack error"):"__rspack_error",c=o?Symbol("rspack done"):"__rspack_done",d=s.zS=o?Symbol("rspack defer"):"__rspack_defer",u=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},s.a=(e,t,n)=>{n&&((r=[]).d=-1);var r,o,h,g,b=new Set,p=e.exports,f=new Promise((e,t)=>{g=t,h=e});f[l]=p,f[a]=e=>{r&&e(r),b.forEach(e),f.catch(()=>{})},e.exports=f,t(e=>{o=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[a]&&e[d]){var t=e[d];if(!t.some(e=>{var t=i[e];return!t||!1===t[c]}))return e;var n=e;e={then(e){Promise.all(t.map(s)).then(()=>e(n))}}}if(e[a])return e;if(e.then){var r=[];r.d=0,e.then(e=>{o[l]=e,u(r)},e=>{o[_]=e,u(r)});var o={};return o[d]=!1,o[a]=e=>e(r),o}}var h={};return h[a]=()=>{},h[l]=e,h});var t,n=()=>o.map(e=>{if(e[d])return e;if(e[_])throw e[_];return e[l]}),h=new Promise(e=>{(t=()=>e(n)).r=0;var i=e=>e!==r&&!b.has(e)&&(b.add(e),e&&!e.d&&(t.r++,e.push(t)));o.map(e=>e[d]||e[a](i))});return t.r?h:n()},e=>(e?g(f[_]=e):h(p),u(r),f[c]=!0)),r&&r.d<0&&(r.d=0)},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=(e,t)=>Promise.all(Object.keys(s.f).reduce((n,r)=>(s.f[r](e,n,t),n),[])),s.u=e=>"static/js/async/"+({350:"web-core-template-loader-thread",724:"web-elements",894:"web-core-main-chunk",97:"web-core-worker-chunk"})[e]+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},s.l=function(e,t,n,r,i){if(h[e])return void h[e].push(t);if(void 0!==n)for(var o,a,l=document.getElementsByTagName("script"),_=0;_<l.length;_++){var c=l[_];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@lynx-js/web-core-wasm:"+n){o=c;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@lynx-js/web-core-wasm:"+n),i&&o.setAttribute("fetchpriority",i),o.src=e),h[e]=[t];var d=function(t,n){o.onerror=o.onload=null,clearTimeout(u);var r=h[e];if(delete h[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),a&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.g.importScripts&&(g=s.g.location+"");var o,a,l,_,c,d,u,h,g,b=s.g.document;if(!g&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(g=b.currentScript.src),!g)){var p=b.getElementsByTagName("script");if(p.length)for(var f=p.length-1;f>-1&&(!g||!/^http(s?):/.test(g));)g=p[f--].src}if(!g)throw Error("Automatic publicPath is not supported in this browser");s.p=(g=g.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../",s.b=document.baseURI||self.location.href,e={719:0},s.f.j=function(t,n,r){var i=s.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise((n,r)=>i=e[t]=[n,r]);n.push(i[2]=o);var a=s.p+s.u(t),l=Error();s.l(a,function(n){if(s.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,i[1](l)}},"chunk-"+t,t,r)}},t=(t,n)=>{var r,i,[o,a,l]=n,_=0;if(o.some(t=>0!==e[t])){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);l&&l(s)}for(t&&t(n);_<o.length;_++)i=o[_],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(n=globalThis.webpackChunk_lynx_js_web_core_wasm=globalThis.webpackChunk_lynx_js_web_core_wasm||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),(()=>{var e=s(1180);let t=document.querySelector("script[nonce]"),n=t?.nonce||t?.getAttribute("nonce");async function r(e){let t=document.createElement("iframe"),r=new Promise(e=>{let n=r=>{"lynx:mtsready"===r.data&&r.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc='<!DOCTYPE html><html><head><script>parent.postMessage("lynx:mtsready","*")<\/script></head><body style="display:none"></body></html>',t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await r;let i=t.contentWindow,s=async e=>{let r=t.contentDocument.createElement("script");return r.fetchPriority="high",r.defer=!0,r.async=!1,r.nonce=n||"",t.contentDocument.head.appendChild(r),new Promise(async(t,n)=>{r.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},r.onerror=t=>n(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},r.src=e})};return{globalWindow:i,loadScript:s,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let r=i?.module?.exports;return i.module={exports:void 0},r}throw Error(`Failed to load script: ${e}`,{cause:n})}}}var i=s(6658);s.e("894","high").then(s.bind(s,3764));class o extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=o.observedAttributeAsProperties.map(e=>e.toLowerCase());#M;#k=!1;#P;nativeModulesMap;napiModulesMap;onNapiModulesCall;constructor(){super(),this.onNativeModulesCall||(this.onNativeModulesCall=(e,t,n)=>new Promise(r=>{this.#L.push({args:[e,t,n],resolve:r})}))}get url(){return this.#P}set url(e){this.#P=e,this.#j()}#N={};get globalProps(){return this.#N}set globalProps(e){"string"==typeof e?this.#N=JSON.parse(e):this.#N=e}#I={};get initData(){return this.#I}set initData(e){"string"==typeof e?this.#I=JSON.parse(e):this.#I=e}#D=[];get initI18nResources(){return this.#D}set initI18nResources(e){"string"==typeof e?this.#D=JSON.parse(e):this.#D=e}updateI18nResources(e,t){this.#M?.i18nManager.updateData(e,t)}#U={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#U}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#U=JSON.parse(e):this.#U=e}#L=[];#W;get onNativeModulesCall(){return this.#W}set onNativeModulesCall(e){for(let t of(this.#W=e,this.#L))t.resolve(e.apply(void 0,t.args));this.#L=[]}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#M?.updateData(e,t).then(()=>{n?.()})}updateGlobalProps(e){this.#M?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#M?.backgroundThread.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#j()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#P=n;break;case"global-props":this.#N=JSON.parse(n);break;case"init-data":this.#I=JSON.parse(n)}}injectStyleRules;disconnectedCallback(){this.shadowRoot?.querySelector('[part="page"]')?.setAttribute(e.JA,""),this.#M?.[Symbol.asyncDispose](),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.#M=void 0}#z=!1;#j(){if(!this.#z&&this.#k){this.#z=!0,this.shadowRoot||this.attachShadow({mode:"open"}),this.#M&&this.disconnectedCallback();let e=r(this.shadowRoot);queueMicrotask(async()=>{if(this.injectStyleRules&&this.injectStyleRules.length>0){let e=new CSSStyleSheet;for(let t of this.injectStyleRules)e.insertRule(t);this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.concat(e)}let t=await e;if(this.#P){let e=s.e("894","high").then(s.bind(s,3764)).then(({LynxViewInstance:e})=>new e(this,this.initData,this.globalProps,this.#P,this.shadowRoot,t,n,this.nativeModulesMap,this.napiModulesMap,this.#D));i.Q.fetchBundle(this.#P,e);let n=this.lynxGroupId;this.#M=await e,this.#z=!1}})}}connectedCallback(){this.url&&(this.#P=this.url),this.#k=!0,this.#j()}}customElements.get(o.tag)?console.error(`[${o.tag}] has already been defined`):customElements.define(o.tag,o),s(167),s(1916),s(2032),s(6372)})()})();
@@ -220,6 +220,7 @@ export function createElementAPI(mtsBinding, styleInfo, viewAttributes, config)
220
220
  return wasmContext.add_inline_style_raw_string_key(uniqueId, key.toString(), value);
221
221
  }
222
222
  }),
223
+ __ElementAnimate: () => { },
223
224
  __FlushElementTree: (() => {
224
225
  if (pageElementId !== undefined) {
225
226
  mtsBinding.ssrResult = wasmContext.generate_html(pageElementId);
@@ -84,6 +84,12 @@ export type SetClassesPAPI = (element: HTMLElement, classNames: string | null) =
84
84
  export type AddInlineStylePAPI = (element: HTMLElement, key: number | string, value: string | number | null | undefined) => void;
85
85
  export type SetInlineStylesPAPI = (element: HTMLElement, value: string | Record<string, string> | undefined) => void;
86
86
  export type SetCSSIdPAPI = (elements: HTMLElement[], cssId: number | null, entryName: string | undefined) => void;
87
+ export type ElementAnimatePAPI = (element: HTMLElement, args: [
88
+ operation: 0,
89
+ name: string,
90
+ keyframes: Record<string, string | number>[],
91
+ options?: Record<string, string | number>
92
+ ] | [operation: 1 | 2 | 3 | 4, name: string]) => void;
87
93
  export type GetPageElementPAPI = () => HTMLElement | undefined;
88
94
  export type MarkTemplateElementPAPI = (element: HTMLElement) => void;
89
95
  export type MarkPartElementPAPI = (element: HTMLElement, partId: string) => void;
@@ -155,6 +161,7 @@ export interface ElementPAPIs {
155
161
  __SetCSSId: SetCSSIdPAPI;
156
162
  __GetPageElement: GetPageElementPAPI;
157
163
  __GetAttributeByName: GetAttributeByNamePAPI;
164
+ __ElementAnimate: ElementAnimatePAPI;
158
165
  __FlushElementTree: (_subTree?: unknown, options?: FlushElementTreeOptions) => void;
159
166
  }
160
167
  export interface MainThreadGlobalAPIs {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-wasm",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "This is an internal experimental package, do not use",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@lynx-js/web-elements": "0.12.0",
60
- "@lynx-js/web-worker-rpc": "0.19.8"
60
+ "@lynx-js/web-worker-rpc": "0.19.9"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@lynx-js/lynx-core": "0.1.3",