@lynx-js/web-explorer-canary 0.0.9 → 0.0.10-canary-20251010-2da147d2

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 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_explorer=globalThis.webpackChunk_lynx_js_web_explorer||[]).push([["238"],{697:function(e,t,n){n.d(t,{prepareMainThreadAPIs:()=>el});var r,i={};n.r(i),n.d(i,{__AppendElement:()=>l,__ElementIsEqual:()=>s,__FirstElement:()=>c,__GetChildren:()=>u,__GetParent:()=>f,__InsertElementBefore:()=>d,__LastElement:()=>g,__NextElement:()=>p,__RemoveElement:()=>m,__ReplaceElement:()=>h,__ReplaceElements:()=>y});var o=n(353);function a(e,t,n){null!=n&&("object"==typeof n?e.setAttribute("data-"+t,JSON.stringify(n)):e.setAttribute("data-"+t,n.toString()))}function l(e,t){e.appendChild(t)}function s(e,t){return e===t}function c(e){return e.firstElementChild||void 0}function u(e){return e.children}function f(e){return e.parentElement||void 0}function d(e,t,n){return e.insertBefore(t,n)}function g(e){return e.lastElementChild||void 0}function p(e){return e.nextElementSibling||void 0}function m(e,t){return e.removeChild(t),t}function h(e,t){t.replaceWith(e)}function y(e,t,n){if(t=Array.isArray(t)?t:[t],!n||Array.isArray(n)&&n?.length===0)e.append(...t);else{n=Array.isArray(n)?n:[n];for(let t=1;t<n.length;t++)m(e,n[t]);n[0].replaceWith(...t)}}function b(e){let t={};for(let n in e){let r=e[n];("boolean"==typeof r||"number"==typeof r||"string"==typeof r||null===r)&&(t[n]=r)}return t}function _(e,t,n){let r=t.target,i=t.currentTarget,o=t.type,a={},l=t.isTrusted,s={};if(o.match(/^transition/))Object.assign(a,{animation_type:"keyframe-animation",animation_name:t.propertyName,new_animator:!0});else if(o.match(/animation/))Object.assign(a,{animation_type:"keyframe-animation",animation_name:t.animationName,new_animator:!0});else if(o.startsWith("touch")){let e=[...t.touches],n=[...t.targetTouches],r=[...t.changedTouches];Object.assign(s,{touches:l?e.map(b):e,targetTouches:l?n.map(b):n,changedTouches:l?r.map(b):r})}let c=e[ee].get(r),u=e[ee].get(i);return{type:n,timestamp:t.timeStamp,target:{id:r.id,dataset:c.lynxDataset,uniqueId:c.uniqueId},currentTarget:u?{id:i.id,dataset:u.lynxDataset,uniqueId:u.uniqueId}:null,detail:t.detail??{},params:a,...s}}var x=/[A-Z]/g,v=/^ms-/,w={};function C(e){return"-"+e.toLowerCase()}let k=function(e){if(w.hasOwnProperty(e))return w[e];var t=e.replace(x,C);return w[e]=v.test(t)?"-"+t:t},E={},j=1,A={},S={},I=e=>{let t=j++,n=e.startsWith("-x-");A[t]={name:function(e){if(E[e])return E[e];let t=(e+"").replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()});return E[e]=t,t}(e),dashName:e,isX:n},S[e]=t};function T(e,t,n){let r=e.split(" ").filter(e=>e),i=[],o=t[n??"0"];if(o)for(let e of r){let t=o[e];t&&i.push(...t)}else throw Error(`[lynx-web] cannot find styleinfo for cssid ${n}`);return i.map(([e,t])=>`${e}:${t};`).join("")}function D(e){return e>=48&&e<=57}function P(e){return D(e)||e>=65&&e<=70||e>=97&&e<=102}function O(e){return e>=65&&e<=90}function H(e){return O(e)||e>=97&&e<=122||e>=128||95===e}function q(e){return H(e)||D(e)||45===e}function z(e){return 10===e||13===e||12===e}function L(e){return z(e)||32===e||9===e}function M(e,t){return!(92!==e||z(t)||0===t)}function R(e,t,n){return 45===e?H(t)||45===t||M(t,n):!!H(e)||92===e&&M(e,t)}function G(e,t,n){return 43===e||45===e?D(t)?2:46===t&&D(n)?3:0:46===e?2*!!D(t):+!!D(e)}I("top"),I("left"),I("right"),I("bottom"),I("position"),I("box-sizing"),I("background-color"),I("border-left-color"),I("border-right-color"),I("border-top-color"),I("border-bottom-color"),I("border-radius"),I("border-top-left-radius"),I("border-bottom-left-radius"),I("border-top-right-radius"),I("border-bottom-right-radius"),I("border-width"),I("border-left-width"),I("border-right-width"),I("border-top-width"),I("border-bottom-width"),I("color"),I("opacity"),I("display"),I("overflow"),I("height"),I("width"),I("max-width"),I("min-width"),I("max-height"),I("min-height"),I("padding"),I("padding-left"),I("padding-right"),I("padding-top"),I("padding-bottom"),I("margin"),I("margin-left"),I("margin-right"),I("margin-top"),I("margin-bottom"),I("white-space"),I("letter-spacing"),I("text-align"),I("line-height"),I("text-overflow"),I("font-size"),I("font-weight"),I("flex"),I("flex-grow"),I("flex-shrink"),I("flex-basis"),I("flex-direction"),I("flex-wrap"),I("align-items"),I("align-self"),I("align-content"),I("justify-content"),I("background"),I("border-color"),I("font-family"),I("font-style"),I("transform"),I("animation"),I("animation-name"),I("animation-duration"),I("animation-timing-function"),I("animation-delay"),I("animation-iteration-count"),I("animation-direction"),I("animation-fill-mode"),I("animation-play-state"),I("line-spacing"),I("border-style"),I("order"),I("box-shadow"),I("transform-origin"),I("linear-orientation"),I("linear-weight-sum"),I("linear-weight"),I("linear-gravity"),I("linear-layout-gravity"),I("layout-animation-create-duration"),I("layout-animation-create-timing-function"),I("layout-animation-create-delay"),I("layout-animation-create-property"),I("layout-animation-delete-duration"),I("layout-animation-delete-timing-function"),I("layout-animation-delete-delay"),I("layout-animation-delete-property"),I("layout-animation-update-duration"),I("layout-animation-update-timing-function"),I("layout-animation-update-delay"),I("adapt-font-size"),I("aspect-ratio"),I("text-decoration"),I("text-shadow"),I("background-image"),I("background-position"),I("background-origin"),I("background-repeat"),I("background-size"),I("border"),I("visibility"),I("border-right"),I("border-left"),I("border-top"),I("border-bottom"),I("transition"),I("transition-property"),I("transition-duration"),I("transition-delay"),I("transition-timing-function"),I("content"),I("border-left-style"),I("border-right-style"),I("border-top-style"),I("border-bottom-style"),I("implicit-animation"),I("overflow-x"),I("overflow-y"),I("word-break"),I("background-clip"),I("outline"),I("outline-color"),I("outline-style"),I("outline-width"),I("vertical-align"),I("caret-color"),I("direction"),I("relative-id"),I("relative-align-top"),I("relative-align-right"),I("relative-align-bottom"),I("relative-align-left"),I("relative-top-of"),I("relative-right-of"),I("relative-bottom-of"),I("relative-left-of"),I("relative-layout-once"),I("relative-center"),I("enter-transition-name"),I("exit-transition-name"),I("pause-transition-name"),I("resume-transition-name"),I("flex-flow"),I("z-index"),I("text-decoration-color"),I("linear-cross-gravity"),I("margin-inline-start"),I("margin-inline-end"),I("padding-inline-start"),I("padding-inline-end"),I("border-inline-start-color"),I("border-inline-end-color"),I("border-inline-start-width"),I("border-inline-end-width"),I("border-inline-start-style"),I("border-inline-end-style"),I("border-start-start-radius"),I("border-end-start-radius"),I("border-start-end-radius"),I("border-end-end-radius"),I("relative-align-inline-start"),I("relative-align-inline-end"),I("relative-inline-start-of"),I("relative-inline-end-of"),I("inset-inline-start"),I("inset-inline-end"),I("mask-image"),I("grid-template-columns"),I("grid-template-rows"),I("grid-auto-columns"),I("grid-auto-rows"),I("grid-column-span"),I("grid-row-span"),I("grid-column-start"),I("grid-column-end"),I("grid-row-start"),I("grid-row-end"),I("grid-column-gap"),I("grid-row-gap"),I("justify-items"),I("justify-self"),I("grid-auto-flow"),I("filter"),I("list-main-axis-gap"),I("list-cross-axis-gap"),I("linear-direction"),I("perspective"),I("cursor"),I("text-indent"),I("clip-path"),I("text-stroke"),I("text-stroke-width"),I("text-stroke-color"),I("-x-auto-font-size"),I("-x-auto-font-size-preset-sizes"),I("mask"),I("mask-repeat"),I("mask-position"),I("mask-clip"),I("mask-origin"),I("mask-size"),I("gap"),I("column-gap"),I("row-gap"),I("image-rendering"),I("hyphens"),I("-x-app-region"),I("-x-animation-color-interpolation"),I("-x-handle-color"),I("-x-handle-size"),I("offset-path"),I("offset-distance");let $=Array(128);for(let e=0;e<$.length;e++)$[e]=L(e)&&130||D(e)&&131||H(e)&&132||((r=e)>=0&&r<=8||11===r||r>=14&&r<=31||127===r)&&133||e||128;function U(e){return e<128?$[e]:132}function F(e,t){return t<e.length?e.charCodeAt(t):0}function N(e,t,n){return 13===n&&10===F(e,t+1)?2:1}function W(e,t){for(;t<e.length&&L(e.charCodeAt(t));t++);return t}function B(e,t){for(;t<e.length&&D(e.charCodeAt(t));t++);return t}function V(e,t){if(P(F(e,(t+=2)-1))){for(let n=Math.min(e.length,t+5);t<n&&P(F(e,t));t++);let n=F(e,t);L(n)&&(t+=N(e,t,n))}return t}function K(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!q(n)){if(M(n,F(e,t+1))){t=V(e,t)-1;continue}break}}return t}function X(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(41===n){t++;break}M(n,F(e,t+1))&&(t=V(e,t))}return t}let J=new Uint8Array(32);J[2]=22,J[21]=22,J[19]=20,J[23]=24;let Y={display:{linear:[["--lynx-display-toggle","var(--lynx-display-linear)"],["--lynx-display","linear"],["display","flex"]],flex:[["--lynx-display-toggle","var(--lynx-display-flex)"],["--lynx-display","flex"],["display","flex"]]},direction:{"lynx-rtl":[["direction","rtl"]]},"linear-orientation":{none:[],horizontal:[["--lynx-linear-orientation","horizontal"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-horizontal)"]],"horizontal-reverse":[["--lynx-linear-orientation","horizontal-reverse"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-horizontal-reverse)"]],vertical:[["--lynx-linear-orientation","vertical"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-vertical)"]],"vertical-reverse":[["--lynx-linear-orientation","vertical-reverse"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-vertical-reverse)"]]},"linear-direction":{none:[],row:[["--lynx-linear-orientation","horizontal"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-horizontal)"]],"row-reverse":[["--lynx-linear-orientation","horizontal-reverse"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-horizontal-reverse)"]],column:[["--lynx-linear-orientation","vertical"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-vertical)"]],"column-reverse":[["--lynx-linear-orientation","vertical-reverse"],["--lynx-linear-orientation-toggle","var(--lynx-linear-orientation-vertical-reverse)"]]},"linear-gravity":{none:[],top:[["--justify-content-column","flex-start"],["--justify-content-column-reverse","flex-end"],["--justify-content-row","flex-start"],["--justify-content-row-reverse","flex-start"]],bottom:[["--justify-content-column","flex-end"],["--justify-content-column-reverse","flex-start"],["--justify-content-row","flex-start"],["--justify-content-row-reverse","flex-start"]],left:[["--justify-content-column","flex-start"],["--justify-content-column-reverse","flex-start"],["--justify-content-row","flex-start"],["--justify-content-row-reverse","flex-end"]],right:[["--justify-content-column","flex-start"],["--justify-content-column-reverse","flex-start"],["--justify-content-row","flex-end"],["--justify-content-row-reverse","flex-start"]],"center-vertical":[["--justify-content-column","center"],["--justify-content-column-reverse","center"],["--justify-content-row","flex-start"],["--justify-content-row-reverse","flex-start"]],"center-horizontal":[["--justify-content-column","flex-start"],["--justify-content-column-reverse","flex-start"],["--justify-content-row","center"],["--justify-content-row-reverse","center"]],start:[["--justify-content-column","flex-start"],["--justify-content-column-reverse","flex-start"],["--justify-content-row","flex-start"],["--justify-content-row-reverse","flex-start"]],end:[["--justify-content-column","flex-end"],["--justify-content-column-reverse","flex-end"],["--justify-content-row","flex-end"],["--justify-content-row-reverse","flex-end"]],center:[["--justify-content-column","center"],["--justify-content-column-reverse","center"],["--justify-content-row","center"],["--justify-content-row-reverse","center"]],"space-between":[["--justify-content-column","space-between"],["--justify-content-column-reverse","space-between"],["--justify-content-row","space-between"],["--justify-content-row-reverse","space-between"]]},"linear-cross-gravity":{none:[],start:[["align-items","start"]],end:[["align-items","end"]],center:[["align-items","center"]],stretch:[["align-items","stretch"]]},"linear-layout-gravity":{none:[["--align-self-row","auto"],["--align-self-column","auto"]],stretch:[["--align-self-row","stretch"],["--align-self-column","stretch"]],top:[["--align-self-row","start"],["--align-self-column","auto"]],bottom:[["--align-self-row","end"],["--align-self-column","auto"]],left:[["--align-self-row","auto"],["--align-self-column","start"]],right:[["--align-self-row","auto"],["--align-self-column","end"]],start:[["--align-self-row","start"],["--align-self-column","start"]],end:[["--align-self-row","end"],["--align-self-column","end"]],center:[["--align-self-row","center"],["--align-self-column","center"]],"center-vertical":[["--align-self-row","center"],["--align-self-column","start"]],"center-horizontal":[["--align-self-row","start"],["--align-self-column","center"]],"fill-vertical":[["--align-self-row","stretch"],["--align-self-column","auto"]],"fill-horizontal":[["--align-self-row","auto"],["--align-self-column","stretch"]]},"justify-content":{left:[],right:[],start:[["justify-content","flex-start"]],end:[["justify-content","flex-end"]]}},Z={"linear-weight":["--lynx-linear-weight",{name:"--lynx-linear-weight-basis",valueProcessor:e=>"0"===e?"auto":"0"}],color:["color",{name:"--lynx-color",valueProcessor:e=>e.includes("gradient")?"transparent":e},{name:"--lynx-text-bg-color",valueProcessor:e=>e.includes("gradient")?e:"initial"},{name:"background-clip",valueProcessor:e=>e.includes("gradient")?"text":"initial"},{name:"-webkit-background-clip",valueProcessor:e=>e.includes("gradient")?"text":"initial"}],"flex-direction":["--flex-direction"],"flex-wrap":["--flex-wrap"],"flex-grow":["--flex-grow"],"flex-shrink":["--flex-shrink"],"flex-basis":["--flex-basis"],"list-main-axis-gap":["--list-main-axis-gap"],"list-cross-axis-gap":["--list-cross-axis-gap"]};function Q(e){let t=[],n=[];for(let r of e){let[e,i]=r,o=Y[e];if(o?.[i])for(let[e,n]of o[i])t.push([e,n]);else if(Z[e]){let n=i.includes("!important");for(let r of Z[e])"string"==typeof r?t.push([r,i]):t.push([r.name,r.valueProcessor(i.replace("!important","").trim())+(n?" !important":"")])}else if("flex"===e){let{flexGrow:e,flexShrink:n,flexBasis:r}=function(e){let t="0",n="1",r="auto",i=e.split(" ").filter(e=>e.trim());return 1===i.length?parseFloat(i[0]).toString()===i[0]?(t=i[0],r="0%"):"auto"===i[0]?r="auto":"none"===i[0]||(r=i[0]):2===i.length?(t=i[0],parseFloat(i[1]).toString()===i[1]?(n=i[1],r="0%"):(n="1",r=i[1])):3===i.length&&(t=i[0],n=i[1],r=i[2]),{flexGrow:t,flexShrink:n,flexBasis:r}}(i);t.push(["--flex-grow",e],["--flex-shrink",n],["--flex-basis",r])}else t.push(r);if("linear-weight-sum"===e){let e=i;("0"===e||"0 !important"===e)&&(e="1"),n.push(["--lynx-linear-weight-sum",e])}}return{transformedStyle:t,childStyle:n}}let ee=Symbol("elementToRuntimeInfoMap"),et=Symbol("getElementByUniqueId"),en=Symbol("updateCSSInJsStyle"),er=Symbol("lynxUniqueIdToElement"),ei=Symbol("switchExposureService");class eo{config;[er]=[];[ei];_lynxUniqueIdToStyleSheet=[];_page;_rootDom;_createElement;_timingFlags=[];[ee]=new WeakMap;constructor(e){var t,n;for(let r of(this.config=e,this.__globalProps=e.globalProps,this.lynx={getJSContext:()=>t.jsContext,requestAnimationFrame:e=>requestAnimationFrame(e),cancelAnimationFrame:e=>cancelAnimationFrame(e),__globalProps:(t=e).globalProps,getCustomSectionSync:e=>t.customSections[e]?.content,markPipelineTiming:t.callbacks.markTiming},this._rootDom=e.rootDom,this._createElement=e.createElement,Object.keys(n=this.config.styleInfo).map(e=>{!function e(t){let r=n[t],i=r?.imports;if(r&&i?.length){for(let t of i){let n=e(t);n&&(r.content.push(...n.content),r.rules.push(...n.rules))}r.imports=void 0}return r}(e)}),Object.values(this.config.styleInfo)))for(let e of r.rules){let{sel:t,decl:n}=e,{transformedStyle:i,childStyle:o}=Q(n);e.decl=i,o.length>0&&r.rules.push({sel:t.map(e=>e.toSpliced(-2,1,[">"],["*"],[],[],[])),decl:o})}let r=this.config.pageConfig.enableCSSSelector?{}:Object.fromEntries(Object.entries(this.config.styleInfo).map(([e,t])=>{let n={};return t.rules=t.rules.filter(e=>(e.sel=e.sel.filter(t=>{let[r,i,o,a]=t;if(1===r.length&&"."===r[0][0]&&0===i.length&&0===o.length&&0===a.length){let t=r[0].substring(1),i=n[t];return i?i.push(...e.decl):n[t]=e.decl,!1}return!0}),e.sel.length>0)),[e,n]})),l=this._createElement("style");for(let t of(l.innerHTML=function(e,t){let n=[];for(let[r,i]of Object.entries(e)){let e=function(e){let n="";return t.enableRemoveCSSScope?n+=`[${o.L9}]`:void 0!==e?n+=`[${o.SH}="${e}"]`:n+=`[${o.L9}]`,n}(r),a=i.rules.map(t=>{let{sel:n,decl:r}=t,i=n.map(t=>t.toSpliced(-4,0,[e]).join("")).join(","),o=r.map(([e,t])=>`${e}:${t};`).join("");return`${i}{${o}}`}).join("");n.push(...i.content,a)}return n.join("\n")}(this.config.styleInfo,this.config.pageConfig),this._rootDom.append(l),Object.assign(this,function(e){function t(e){return e.getAttribute(o.L9)}return{__AddConfig:function(t,n,r){e[ee].get(t).componentConfig[n]=r},__AddDataset:function(t,n,r){e[ee].get(t).lynxDataset[n]=r,a(t,n,r)},__GetAttributes:function(e){return Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]))},__GetComponentID:function(e){return e.getAttribute(o.uE)},__GetDataByKey:function(t,n){return e[ee].get(t).lynxDataset[n]},__GetDataset:function(t){return e[ee].get(t).lynxDataset},__GetElementConfig:function(t){return e[ee].get(t).componentConfig},__GetElementUniqueID:function(t){return e[ee].get(t)?.uniqueId??-1},__GetID:function(e){return e.id},__GetTag:t,__SetConfig:function(t,n){e[ee].get(t).componentConfig=n},__SetDataset:function(t,n){for(let[r,i]of(e[ee].get(t).lynxDataset=n,Object.entries(n)))a(t,r,i)},__SetID:function(e,t){"string"==typeof t?e.id=t:e.removeAttribute("id")},__UpdateComponentID:function(e,t){e.setAttribute(o.uE,t)},__UpdateListCallbacks:function(t,n,r){e[ee].get(t).componentAtIndex=n,e[ee].get(t).enqueueComponent=r},__GetConfig:function(t){return e[ee].get(t).componentConfig},__SetAttribute:function(n,r,i){if(null==i)n.removeAttribute(r);else if("list"===t(n)&&"update-list-info"===r){let{insertAction:t,removeAction:r}=i;queueMicrotask(()=>{let i=e[ee].get(n),o=i.componentAtIndex,a=i.enqueueComponent;for(let e of t)o?.(n,i.uniqueId,e.position,0,!1);for(let e of r)a?.(n,i.uniqueId,e.position)})}else n.setAttribute(r,i.toString());r===o.Bq&&i&&e._timingFlags.push(i)}}}(this),i,function(e){let t=t=>{if(!t.currentTarget)return;let n=t.currentTarget,r=t.eventPhase===Event.CAPTURING_PHASE,i=o.mH[t.type]??t.type,a=e[ee].get(n),l=r?a.eventHandlerMap[i]?.capture?.handler:a.eventHandlerMap[i]?.bind?.handler,s=_(e,t,i);if("string"==typeof l){let t=a.parentComponentUniqueId,n=e[et](Number(t)),r=n?.getAttribute(o.L9)!=="page"?n?.getAttribute(o.uE)??void 0:void 0;return r?e.config.callbacks.publicComponentEvent(r,l,s):e.config.callbacks.publishEvent(l,s),!0}return l&&(s.target.elementRefptr=t.target,s.currentTarget&&(s.currentTarget.elementRefptr=t.currentTarget),e.runWorklet?.(l.value,[s])),!1},n=e=>{t(e)&&e.stopPropagation()};function r(r,i,a,l){a=a.toLowerCase();let s="catchEvent"===i||"capture-catch"===i,c=i.startsWith("capture"),u=e[ee].get(r),f=c?u.eventHandlerMap[a]?.capture:u.eventHandlerMap[a]?.bind,d=s?n:t;if(f)l||r.removeEventListener(a,d,{capture:c});else if(l){let e=o.rd[r.tagName]?.[a]??o.eA[a]??a;r.addEventListener(e,d,{capture:c})}if(l){let e={type:i,handler:l};u.eventHandlerMap[a]||(u.eventHandlerMap[a]={capture:void 0,bind:void 0}),c?u.eventHandlerMap[a].capture=e:u.eventHandlerMap[a].bind=e}}return{__AddEvent:r,__GetEvent:function(t,n,r){let i=e[ee].get(t);n=n.toLowerCase();let o=r.startsWith("capture")?i.eventHandlerMap[n]?.capture:i.eventHandlerMap[n]?.bind;return o?.handler},__GetEvents:function(t){let n=e[ee].get(t).eventHandlerMap,r=[];for(let[e,t]of Object.entries(n))for(let n of[t.bind,t.capture])if(n){let{type:t,handler:i}=n;i&&r.push({type:t,name:e,function:i})}return r},__SetEvents:function(e,t){for(let{type:n,name:i,function:o}of t)r(e,n,i,o)}}}(this),function(e,t){function n(n,r){if(r?n.setAttribute("class",r):n.removeAttribute("class"),!e.config.pageConfig.enableCSSSelector){let i=T(r??"",t,n.getAttribute(o.SH));e[en](e[ee].get(n).uniqueId,i??"")}}return{__AddClass:function(n,r){let i=((n.className??"")+" "+r).trim();if(n.setAttribute("class",i),!e.config.pageConfig.enableCSSSelector){let r=T(i,t,n.getAttribute(o.SH));e[en](e[ee].get(n).uniqueId,r)}},__SetClasses:n,__GetClasses:function(e){return(e.className??"").split(" ").filter(e=>e)},__AddInlineStyle:function(e,t,n){let r;if("number"==typeof t){let e=A[t];r=e.dashName,e.isX&&console.error(`[lynx-web] css property: ${r} is not supported.`)}else r=t;let i="number"==typeof n?n.toString():n;if(i){let{transformedStyle:t}=Q([[r,i]]);for(let[n,r]of t)e.style.setProperty(n,r)}else e.style.removeProperty(r)},__SetInlineStyles:function(e,t){if(!t)return;let{transformedStyle:n}="string"==typeof t?Q(function(e){let t=[],n=!0,r=0,i=0,o=0,a=0;return!function(e,t){var n;let r;function i(t){return t<l?e.charCodeAt(t):0}function o(){if(R(i(c=function(e,t){var n;let r,i=e.charCodeAt(t);if((43===i||45===i)&&(i=e.charCodeAt(t+=1)),D(i)&&(t=B(e,t+1),i=e.charCodeAt(t)),46===i&&D(e.charCodeAt(t+1))&&(t+=2,t=B(e,t)),n=t,O(r=e.charCodeAt(n))&&(r|=32),101===r){let n=0;(45===(i=e.charCodeAt(t+1))||43===i)&&(n=1,i=e.charCodeAt(t+2)),D(i)&&(t=B(e,t+1+n+1))}return t}(e,c)),i(c+1),i(c+2))){r=12,c=K(e,c);return}if(37===i(c)){r=11,c++;return}r=10}function a(){let t=c;if(c=K(e,c),function(e,t,n,r){if(n-t!=3||t<0||n>e.length)return!1;for(let r=t;r<n;r++){let n="url".charCodeAt(r-t),i=e.charCodeAt(r);if(O(i)&&(i|=32),i!==n)return!1}return!0}(e,t,c,"url")&&40===i(c)){if(34===i(c=W(e,c+1))||39===i(c)){r=2,c=t+4;return}!function(){for(r=7,c=W(e,c);c<e.length;c++){let t=e.charCodeAt(c);switch(U(t)){case 41:c++;return;case 130:if(41===i(c=W(e,c))||c>=e.length){c<e.length&&c++;return}c=X(e,c),r=8;return;case 34:case 39:case 40:case 133:c=X(e,c),r=8;return;case 92:if(M(t,i(c+1))){c=V(e,c)-1;break}c=X(e,c),r=8;return}}}();return}if(40===i(c)){r=2,c++;return}r=1}let l=(e=String(e||"")).length,s=+(65279===(n=i(0))||65534===n),c=s;for(;c<l;){let n=e.charCodeAt(c);switch(U(n)){case 130:r=13,c=W(e,c+1);break;case 34:case 39:!function(t){for(t||(t=i(c++)),r=5;c<e.length;c++){let n=e.charCodeAt(c);switch(U(n)){case t:c++;return;case 130:if(z(n)){c+=N(e,c,n),r=6;return}break;case 92:if(c===e.length-1)break;let o=i(c+1);z(o)?c+=N(e,c+1,o):M(n,o)&&(c=V(e,c)-1)}}}();break;case 35:q(i(c+1))||M(i(c+1),i(c+2))?(r=4,c=K(e,c+1)):(r=9,c++);break;case 40:r=21,c++;break;case 41:r=22,c++;break;case 43:case 46:G(n,i(c+1),i(c+2))?o():(r=9,c++);break;case 44:r=18,c++;break;case 45:G(n,i(c+1),i(c+2))?o():45===i(c+1)&&62===i(c+2)?(r=15,c+=3):R(n,i(c+1),i(c+2))?a():(r=9,c++);break;case 47:42===i(c+1)?(r=25,c=-1===(c=e.indexOf("*/",c+2))?e.length:c+2):(r=9,c++);break;case 58:r=16,c++;break;case 59:r=17,c++;break;case 60:33===i(c+1)&&45===i(c+2)&&45===i(c+3)?(r=14,c+=4):(r=9,c++);break;case 64:R(i(c+1),i(c+2),i(c+3))?(r=3,c=K(e,c+1)):(r=9,c++);break;case 91:r=19,c++;break;case 92:M(n,i(c+1))?a():(r=9,c++);break;case 93:r=20,c++;break;case 123:r=23,c++;break;case 125:r=24,c++;break;case 131:o();break;case 132:a();break;default:r=9,c++}t(r,s,s=c)}}(e+";",(l,s,c)=>{if(17===l){a=s;let l=e.substring(r,i).trim(),u=e.substring(o,a).trim();!n&&u&&l&&t.push([l,u]),n=!0,r=c}else 16===l&&n&&(n=!1,o=c,i=s)}),t}(t)):Q(Object.entries(t).map(([e,t])=>[k(e),t])),r=n.map(([e,t])=>`${e}:${t};`).join("");e.setAttribute("style",r)},__SetCSSId:function(t,r){for(let i of(r=r.toString(),t))if(i.setAttribute(o.SH,r),!e.config.pageConfig.enableCSSSelector){let e=i.getAttribute("class");e&&n(i,e)}}}}(this,r),function(e){let t=1;function n(n,r,i,a,l){let s=e.__SetCSSId,c=e.config.tagMap[n]??n,u=e._createElement(c);u.setAttribute(o.L9,n);let f=t++;if(e[ee].set(u,{uniqueId:f,componentConfig:{},lynxDataset:{},eventHandlerMap:{},parentComponentUniqueId:r}),e[er][f]=new WeakRef(u),u.setAttribute(o.Xz,f.toString()),void 0!==i)s([u],i);else if(r>=0){let t=e[et](r),n=t?.getAttribute(o.SH);n&&"0"!==n&&s([u],n)}return void 0!==a&&e.__UpdateComponentID(u,a),u}return{__CreateView:function(e){return n("view",e)},__CreateText:function(e){return n("text",e)},__CreateComponent:function(e,t,r,i,o,a,l,s){let c=n("view",e,r,t,l);return c.setAttribute("name",o),c},__CreatePage:function(t,r,i){let a=n("page",0,r,t,i);a.setAttribute("part","page");let l=e[ee].get(a);return l.parentComponentUniqueId=l.uniqueId,!1===e.config.pageConfig.defaultDisplayLinear&&a.setAttribute(o.RN,"false"),!0===e.config.pageConfig.defaultOverflowVisible&&a.setAttribute("lynx-default-overflow-visible","true"),e._page=a,a},__CreateRawText:function(e){let t=n("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:function(e){return n("image",e)},__CreateScrollView:function(e){return n("scroll-view",e)},__CreateElement:function(e,t,r){return n(e,t,void 0,void 0,r)},__CreateWrapperElement:function(e){return n("lynx-wrapper",e)},__CreateList:function(t,r,i,o){let a=n("list",t,void 0,void 0,o),l=e[ee].get(a);return l.componentAtIndex=r,l.enqueueComponent=i,a},__SwapElement:function(t,n){let r=e._createElement("div");t.replaceWith(r),n.replaceWith(t),r.replaceWith(n)}}}(this)),this._ReportError=this.config.callbacks._ReportError,this.__OnLifecycleEvent=this.config.callbacks.__OnLifecycleEvent,this.SystemInfo={...o.wg,...e.browserConfig},this[ei]=function(e){let t=e.config.callbacks.postExposure,n=!0,r=[],i=[],a=new Map;function l(t){let n=_(e,t,t.type);n.detail["unique-id"]=parseFloat(t.target.getAttribute(o.Xz));let l=n.detail.exposureID;"exposure"===t.type?(r.push(n),a.set(l,n)):(i.push(n),a.delete(l))}return setInterval(()=>{if(r.length>0||i.length>0){let e=r,n=i;r=[],i=[],t({exposures:e,disExposures:n})}},50),e._rootDom.addEventListener("exposure",l,{passive:!0}),e._rootDom.addEventListener("disexposure",l,{passive:!0}),{switchExposureService:function(e,r){e&&!n?t({exposures:[...a.values()],disExposures:[]}):!e&&n&&r&&t({exposures:[],disExposures:[...a.values()]}),n=e}}}(this).switchExposureService,Object.defineProperty(this,"renderPage",{get:()=>this.#e,set:e=>{this.#e=e,queueMicrotask(this.config.callbacks.mainChunkReady)}}),o.$m))Object.defineProperty(this,t,{get:()=>this.__lynxGlobalBindingValues[t],set:e=>{for(let n of(this.__lynxGlobalBindingValues[t]=e,this.__varsUpdateHandlers))n()}})}[et](e){return this[er][e]?.deref()}[en](e,t){let n=this._lynxUniqueIdToStyleSheet[e]?.deref();n||(n=this._createElement("style"),this._lynxUniqueIdToStyleSheet[e]=new WeakRef(n),this._rootDom.append(n)),n.innerHTML=`[${o.Xz}="${e}"]{${t}}`}__lynxGlobalBindingValues={};globalThis=new Proxy(this,{get:(e,t)=>e[t]??globalThis[t],set:(e,t,n)=>(e[t]=n,!0),ownKeys:e=>Reflect.ownKeys(e).filter(e=>"globalThis"!==e)});SystemInfo;lynx;__globalProps;processData;ssrEncode;ssrHydrate;#e;__GetTemplateParts;__GetPageElement=()=>this._page;_ReportError;__OnLifecycleEvent;__LoadLepusChunk=e=>{let t=this.config.lepusCode[`${e}`];if(!t)return!1;{let e=t.exports;return e?.(this),!0}};__FlushElementTree=(e,t)=>{let n=this._timingFlags;this._timingFlags=[],this._page&&!this._page.parentNode&&this._rootDom.append(this._page),this.config.callbacks.flushElementTree(t,n)};updatePage;runWorklet;__varsUpdateHandlers=[];set _updateVars(e){this.__varsUpdateHandlers.push(e)}}let ea={};function el(e,t,n,r,i,a){let l=e.createCall(o.EN),s=e.createCall(o.Rz),c=e.createCall(o.E3),u=e.createCall(o.Hs),f=e.createCall(o.UK);return i("lepus_execute_start"),{startMainThread:async function(d){let g=!0,{globalProps:p,template:m,browserConfig:h,nativeModulesMap:y,napiModulesMap:b,tagMap:_}=d,{styleInfo:x,pageConfig:v,customSections:w,cardType:C,lepusCode:k}=m;i("decode_start");let E=Object.fromEntries(await Promise.all(Object.entries(k).map(async([e,t])=>{let n=ea[t];if(n)return[e,n];{Object.assign(globalThis,{module:{}}),await import(t);let n=globalThis.module;return Object.assign(globalThis,{module:{}}),ea[t]=n,[e,n]}}))),j=E.root.exports,A=new o.E9({rpc:e,receiveEventEndpoint:o.EO,sendEventEndpoint:o.jF}),S=new eo({jsContext:A,tagMap:_,browserConfig:h,customSections:w,globalProps:p,pageConfig:v,styleInfo:x,lepusCode:E,createElement:n,rootDom:t,callbacks:{mainChunkReady:()=>{i("data_processor_start");let t=S.processData?S.processData(d.initData):d.initData;i("data_processor_end"),e.registerHandler(o.Tt,(e,t)=>{S[e](t)}),e.registerHandler(o.YH,e=>w[e]?.content),e.registerHandler(o.sr,S[ei]),s({initData:t,globalProps:p,template:m,cardType:C??"react",customSections:Object.fromEntries(Object.entries(w).filter(([,e])=>"lazy"!==e.type).map(([e,t])=>[e,t.content])),nativeModulesMap:y,napiModulesMap:b,browserConfig:h}),S.renderPage(t),S.__FlushElementTree(void 0,{})},flushElementTree:async(e,t)=>{let n=e?.pipelineOptions?.pipelineID;i("dispatch_start",n),g&&(g=!1,A.dispatchEvent({type:"__OnNativeAppReady",data:void 0})),i("layout_start",n),i("ui_operation_flush_start",n),await r(),i("ui_operation_flush_end",n),i("layout_end",n),i("dispatch_end",n),requestAnimationFrame(()=>{l(t,n)})},_ReportError:a,__OnLifecycleEvent:e=>{A.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>i(t,e),publishEvent:c,publicComponentEvent:u,postExposure:f}});return i("decode_end"),j(S),A.__start(),S}}}}}]);
@@ -1,3 +0,0 @@
1
- (()=>{"use strict";var __webpack_modules__={413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{callDestroyLifetimeFun:()=>Oe,destroyCard:()=>be,loadCard:()=>Ae});var Ee=function(){return this||(0,eval)("this")}(),d=Ee;function ce(e){let t=typeof e;return"object"!==t?t:Array.isArray(e)?"array":null==e?"null":e instanceof Date?"date":e instanceof RegExp?"regExp":"object"}function x(e){return"string"==typeof e}function M(e){return"object"===ce(e)}function X(e){return"function"===ce(e)}function D(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return ge(e,Error)}}function ge(e,t){try{return e instanceof t}catch{return!1}}function U(e){return nativeConsole}var ye=function(){return this||(0,eval)("this")}(),De=U(`groupId:${ye.groupId||"-1"}`),Z=nativeConsole,_=Z,w=class extends Error{constructor(e,t){super(e),t&&(this.stack=t)}},k=class extends w{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ee=class extends w{constructor(){super(...arguments),this.kind="USER_ERROR"}},E=class extends ee{constructor(){super(...arguments),this.name="USER_RUNTIME_ERROR"}},g=class extends k{constructor(){super(...arguments),this.name="INTERNAL_RUNTIME_ERROR"}},F=class extends k{constructor(){super(...arguments),this.name="INVOKE_ERROR"}},m="__Card__",B="app-service.js",pe="LynxGetSourceMapReleaseError",te={filename:"lynx_core",slot:"cacb96a8f906f8e29917cae2ed3799f4c6cab324",release:"unknown_version"},q=class{constructor(){this.observersFunc=[]}registerObserver(e){if(this.observersFunc.includes(e))return _.log("Subject: Observer has been attached already.");this.observersFunc.push(e)}removeObserver(e){let t=this.observersFunc.indexOf(e);if(-1===t)return _.log("Subject: Nonexistent observer.");this.observersFunc.splice(t,1)}notifyDataChange(e){this.observersFunc.forEach(t=>{if("function"==typeof t)try{t(e)}catch(e){_.log("SharedData change and notifyDataChange error info:"+e)}})}};d.multiApps={},d.currentAppId="",d.globComponentRegistPath="",d.sharedData={},d.globDynamicComponentEntry=m,d.shareDataSubject=new q,d.TaroLynx={},d.bundleSupportLoadScript=!0;var{loadScript:Xe}=d,l=d,ve=/\d+/,y=class r{constructor(e){this.major=0,this.minor=0,this.revision=0,this.build=0,e=String(e),[this.major=0,this.minor=0,this.revision=0,this.build=0]=e.split(".").map(e=>{let t=ve.exec(e);return t&&t.length>0?+t[0]:0})}gt(e){return"string"==typeof e&&(e=new r(e)),this.major>e.major||!(this.major<e.major)&&(this.minor>e.minor||!(this.minor<e.minor)&&(this.revision>e.revision||!(this.revision<e.revision)&&(this.build>e.build||(this.build<e.build,!1))))}eq(e){return"string"==typeof e&&(e=new r(e)),this.major===e.major&&this.minor===e.minor&&this.revision===e.revision&&this.build===e.build}lt(e){return!this.eq(e)&&!this.gt(e)}gte(e){return this.eq(e)||this.gt(e)}lte(e){return this.eq(e)||this.lt(e)}},ot=new y("2.4"),it=new y("2.7"),st=new y("2.9"),at=new y("2.12"),lt=new y("2.14");function h(e,t,r){let{originError:i,errorCode:s,errorLevel:n,runType:o=te}=r??{};_.error("The following error occurred in the JSRuntime:"),_.error(`${e?.message}
2
- ${e?.stack}`),e.cause=M(e.cause)?JSON.stringify(e.cause):e.cause;try{t.reportException(e,{...o,buildVersion:"unknown_version",versionCode:"unknown_version",errorCode:s,errorLevel:n})}catch(e){_.error(`reportError err:
3
- `,e)}}var b=class{constructor(e,t){this.getApp=e,this.getNativeApp=t,this.setSourceMapRelease=e=>{if(D(e)&&e.name===u.kGetSourceMapReleaseErrorName&&x(e.message)&&x(e.stack))return void this.getNativeApp().__SetSourceMapRelease({name:e.name,message:e.message,stack:e.stack});JSON.stringify(e)},this.getSourceMapRelease=e=>{let t=this.getNativeApp().__GetSourceMapRelease(e);return t||(t=this.getNativeApp().__GetSourceMapRelease(u.kDefaultSourceMapURL)),t},this.getApp=e,this.getNativeApp=t}rebind(e){this.getApp=e}},j=class r{static{this.count=0}constructor(e){this.effect=e,this.id="__lynx-inner-js-animation-"+r.count++}cancel(){this.effect.target.cancelAnimate(this)}pause(){this.effect.target.pauseAnimate(this)}play(){this.effect.target.playAnimate(this)}},G=class{constructor(e,t,r){this.target=e,this.keyframes=t,this.options=r}},O=class{constructor(e,t,r){this._root=e,this._idSelector="#"+t,this._lynx=r,this._element=void 0}ensureElement(){this._element||(this._element=this._lynx.createElement(this._root,this._idSelector))}animate(e,t){this.ensureElement();let r=new j(new G(this,e,t));return this._element.animate(0,r.id,e,t),r}playAnimate(e){this._element.animate(1,e.id,void 0,void 0)}pauseAnimate(e){this._element.animate(2,e.id,void 0,void 0)}cancelAnimate(e){this._element.animate(3,e.id,void 0,void 0)}finishAnimate(e){this._element.animate(4,e.id,void 0,void 0)}setProperty(e,t){if(this.ensureElement(),"string"==typeof e&&"string"==typeof t)this._element.setProperty({[e]:t});else if("object"==typeof e)this._element.setProperty(e);else throw Error(`setProperty's param must be string or object. While current type is ${typeof e} and ${typeof t}.`)}},ue=O,S=class r{constructor(e,t,r){this._component=e,this._taskQueue=t,this._native_proxy=r,this._fire_immediately=!1,this._root_unique_id=void 0}static fromQuery(e,t){return new r(t??e._component,e._taskQueue.slice(),e._native_proxy)}static newEmptyQuery(e,t){return new r(t??"",[],e)}commitTask(e){let t=r.fromQuery(this,this._component);return(t._taskQueue.push(e),this._fire_immediately)?void t.exec():t}in(e){return e.createSelectorQuery(this)}select(e){return new R(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectAll(e){return new R(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!1})}selectReactRef(e){if(this._taskQueue.length){let e="selectReactRef() should be called before any other selector query methods";nativeConsole.warn(e);let t=Error(e);h(new F(e,t.stack),this._native_proxy.nativeApp);return}return this._fire_immediately=!0,new R(this,{type:1,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectRoot(){return this.select("")}selectUniqueID(e){return new R(this,{type:2,identifier:e.toString(),component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}exec(){for(let e=0;e<this._taskQueue.length;++e)this._taskQueue[e](this._native_proxy)}setRoot(e){return this._root_unique_id=Number(e),this}},R=class{static{this.nodePool={}}constructor(e,t){this._nodeSelectToken=t,this._selectorQuery=e}invoke(e){let t=t=>{let r=t=>{0===t.code?e.success&&e.success(t.data):e.fail&&e.fail(t)};if(!this._nodeSelectToken.first_only)return void r({code:5,data:"selectAll not supported for invoke method"});t.nativeApp.invokeUIMethod(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e.method,e.params??{},r,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}path(e){let t=t=>{let r=t=>{e&&e(t.data,t.status)};t.nativeApp.getPathInfo(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,r,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}fields(e,t){let r=r=>{let i=i=>{if(e.query){let t=t=>{t.query=S.newEmptyQuery(r),t.query.setRoot(t.unique_id.toString()),e.unique_id||delete t.unique_id};if(this._nodeSelectToken.first_only){let e=i.data;e&&t(e)}else for(let e of i.data)t(e)}t&&t(i.data,i.status)},s=[];for(let t in e){if("query"==t&&!0==e[t]&&!e.unique_id){s.push("unique_id");continue}e[t]&&s.push(t)}r.nativeApp.getFields(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,s,i,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(r)}setNativeProps(e){let t=t=>{t.nativeApp.setNativeProps(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,e,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}},T=class r{constructor(e,t,i,s){this.getNativeApp=e,this.getApp=t,this.Promise=i,this.getNativeLynx=s,this.setTimeout=this.getApp().wrapReport(this.getNativeApp().setTimeout,"setTimeout Error"),this.setInterval=this.getApp().wrapReport(this.getNativeApp().setInterval,"setInterval Error"),this.clearInterval=this.getNativeApp().clearInterval,this.clearTimeout=this.getNativeApp().clearTimeout,this.resumeExposure=this.getApp()._apiList.resumeExposure,this.requireModule=(e,t,i)=>{if(this.requireModule.cache[e])return this.requireModule.cache[e];let s=this.getApp().requireModule(e,t,i);return this.requireModule.cache[e]=s,s},this.requireModuleAsync=(e,t)=>{if(t??=e=>{e&&this.getApp().handleUserError(e)},this.requireModuleAsync.cache[e])return void t(null,this.requireModuleAsync.cache[e]);this.getApp().requireModuleAsync(e,(i,s)=>{i||(this.requireModuleAsync.cache[e]=s),t(i,s)})},this.createElement=(e,t)=>this.getNativeLynx().createElement(e,t),this.getElementById=e=>new ue("",e,this),this.reportError=(e,t)=>{let i;if(D(e))i=e;else{let t;i=Error(t="string"!=typeof e?JSON.stringify(e):e)}let{level:s="error"}=t||{},n;switch(s){case"error":default:n=1;break;case"warning":n=2;break;case"fatal":n=0}this.getApp().handleUserError(i,void 0,n)},this.registerModule=(e,t)=>this.getApp().registerModule(e,t),this.getJSModule=e=>this.getApp().getJSModule(e),this.getTextInfo=this.getApp()._apiList.getTextInfo,this.addFont=(e,t)=>{if(!M(e))throw Error("The first argument must be object type");if(!x(e["font-family"])||!x(e.src))throw Error("The font value must have font-family and src");if(!X(t))throw Error("The second argument must be function type");this.getNativeLynx().addFont(e,t)},this.stopExposure=this.getApp()._apiList.stopExposure,this.setObserverFrameRate=this.getApp()._apiList.setObserverFrameRate,this.performance=this.getApp().performance,this.beforePublishEvent=this.getApp()._aopManager._beforePublishEvent,this.setSessionStorageItem=(e,t)=>{this.dispatchSessionStorageEvent({type:"__SetSessionStorageItem",data:{key:e,value:t}})},this.getSessionStorageItem=(e,t)=>{this.getNativeApp().getSessionStorageItem(e,t)},this.subscribeSessionStorage=(e,t)=>{let i=r.__registerSharedDataCounter++;return this.getNativeApp().subscribeSessionStorage(e,i,t),i},this.unsubscribeSessionStorage=(e,t)=>{this.dispatchSessionStorageEvent({type:"__UnSubscribeSessionStorage",data:{key:e,listenerId:t}})},this.getDevtool=this.getNativeLynx().getDevtool,this.getCoreContext=this.getNativeLynx().getCoreContext,this.getJSContext=this.getNativeLynx().getJSContext,this.getUIContext=this.getNativeLynx().getUIContext,this.getCustomSectionSync=this.getNativeLynx().getCustomSectionSync,this.accessibilityAnnounce=this.getNativeApp().nativeModuleProxy.LynxAccessibilityModule?.accessibilityAnnounce,this.requestResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.requestResourcePrefetch,this.cancelResourcePrefetch=this.getNativeApp().nativeModuleProxy.LynxResourceModule?.cancelResourcePrefetch,this.setSharedData=(e,t)=>{l.sharedData[e]=t;let i={};i[e]=t,l.shareDataSubject.notifyDataChange(i)},this.getSharedData=e=>l.sharedData[e],this.registerSharedDataObserver=e=>l.shareDataSubject.registerObserver(e),this.removeSharedDataObserver=e=>l.shareDataSubject.removeObserver(e),this.triggerLepusGlobalEvent=(e,t)=>this.getNativeApp().triggerLepusGlobalEvent(e,t),this.reload=(e,t)=>{this.getNativeLynx().reload(e,t)},this.fetchDynamicComponent=(e,t,i,s)=>this.getNativeLynx().fetchDynamicComponent(e,t,i,s),this.QueryComponent=(e,t)=>{let i=()=>{t({code:0,data:{url:e,sync:!0,error_message:"",mode:"cache"},detail:{schema:e,cache:!1,errMsg:""}})};if(this.getApp().loadedDynamicComponentsSet.has(e))return void i();let s=s=>{!0===s.__hasReady?(l.loadDynamicComponent(this.getApp(),e),i()):t(s)};this.getNativeLynx().QueryComponent(e,s)},this.loadDynamicComponent=(e,t,i={})=>new this.Promise((s,n)=>{let o=[],a;if(Array.isArray(e)?(o=e,a=t):"string"==typeof t?(o=[e],a=t):(a=e,i=t),this.getApp().loadedDynamicComponentsSet.has(a))return void s({code:0,data:{url:a,sync:!1,error_message:"",mode:"normal"},detail:{schema:a,cache:!1,errMsg:""}});this.getNativeLynx().fetchDynamicComponent(a,i,e=>{e&&0==e.code?s(e):n(e)},o)}),this.fetch=(e,t)=>new this.Promise((i,s)=>{let n=new(this.getApp())._RequestClass(e,t),o=n.signal;if(o.aborted)return s(o.reason);o.addEventListener("abort",e=>{s(o.reason)});let a={method:n.method,url:n.url,origin:this.getNativeApp().__pageUrl,headers:Object.fromEntries(n.headers.entries()),body:n._arrayBuffer,lynx:n.lynxExtension};this.getApp().NativeModules.LynxFetchModule.fetch(a,e=>{if(!o.aborted)try{let t=new(this.getApp())._ResponseClass(e.body,e);i(t)}catch{s(TypeError(e.statusText))}},e=>{o.aborted||s(TypeError(e.message))})}),this.createSelectorQuery=()=>S.newEmptyQuery({nativeApp:this.getNativeApp(),lynx:this}),this.requestAnimationFrame=e=>this.getNativeApp().requestAnimationFrame(e),this.cancelAnimationFrame=e=>this.getNativeApp().cancelAnimationFrame(e),this.__addReporterCustomInfo=e=>{this.getNativeApp().__addReporterCustomInfo(e)},this.init(void 0)}static{this.__registerSharedDataCounter=0}rebind(e){this.init(e)}init(e){if(e)this.getApp=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{};else{let e={};this.requireModule.cache=e,this.requireModuleAsync.cache=e,this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{},this._switches={}}}dispatchSessionStorageEvent(e){0!=this.getCoreContext().dispatchEvent(e)&&this.getJSContext().dispatchEvent(e)}queueMicrotask(e){this.getNativeLynx().queueMicrotask(e)}},v=class{constructor(e){this._internal_callLynxSetModule=e,this._events=new Map}getEventsSize(e){return this._events.get(e)?.length}setCallLynxSetModule(e){this._internal_callLynxSetModule=e}addListener(e,t,r){let i=this._events.get(e);"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!0]),i?i.push({listener:t,context:r}):this._events.set(e,[{listener:t,context:r}])}removeListener(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");let r=this._events.get(e),i=0;Array.isArray(r)&&r.some(e=>{if(t===e.listener)return!0;i++})&&r.splice(i,1),"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!1])}emit(e,t){let r=this._events.get(e);Array.isArray(r)&&r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.apply(i||this,t)})}removeAllListeners(e){if("string"==typeof e)return void this._events.delete(e);this._events=new Map}trigger(e,t){let r=this._events.get(e);Array.isArray(r)&&("string"==typeof t&&(t=JSON.parse(t)),r.forEach(e=>{let{listener:r,context:i}=e;"function"==typeof r&&r.call(i||this,t)}))}toggle(e,...t){this.emit(e,t)}},V=class{constructor(){this._beforePublishEvent=new re}},re=class extends v{add(e,t,r){return super.addListener(e,t,r),this}remove(e,t){return super.removeListener(e,t),this}},$=v,Q=class{constructor(e){this._textInfoModule=void 0,this.getTextInfo=(e,t)=>(void 0===this._textInfoModule&&(this._textInfoModule=this._nativeModules.LynxTextInfoModule),this._textInfoModule&&this._textInfoModule.getTextInfo?this._textInfoModule.getTextInfo(e,t):{width:e.length}),this._nativeModules=e}},Y=class{constructor(e){this.resumeExposure=()=>{this._exposureModule.resumeExposure()},this.stopExposure=e=>{this._exposureModule.stopExposure(e)},this.setObserverFrameRate=e=>{this._exposureModule.setObserverFrameRate(e)},this._nativeModules=e,this._exposureModule=this._nativeModules.LynxExposureModule}},ne=class{constructor(e,t){this._selector=e,this._callback=t}invokeCallback(e){this._callback(e)}},oe=class{constructor(e,t,r){this._id=e,this._intersectionObserverModule=t,this._manager=r,this._observationTargets=[],this._defaultMargins={left:0,right:0,top:0,bottom:0}}relativeTo(e,t){return this._intersectionObserverModule.relativeTo(this._id,e,t||this._defaultMargins),this}relativeToViewport(e){return this._intersectionObserverModule.relativeToViewport(this._id,e||this._defaultMargins),this}relativeToScreen(e){return this._intersectionObserverModule.relativeToScreen(this._id,e||this._defaultMargins),this}observe(e,t){this._observationTargets.push(new ne(e,t)),this._intersectionObserverModule.observe(this._id,e,this._observationTargets.length-1)}disconnect(){this._intersectionObserverModule.disconnect(this._id),this._manager.removeObserver(this._id)}invokeCallback(e,t){e<this._observationTargets.length&&this._observationTargets[e].invokeCallback(t)}},J=class{constructor(e){this._nativeModules=e,this._observerId=0,this._observers={},this._defaultOptions={thresholds:[0],initialRatio:0,observeAll:!1}}createIntersectionObserver(e,t){let r=this._nativeModules.IntersectionObserverModule,i=new oe(this._observerId,r,this);return this._observers[this._observerId]=i,r.createIntersectionObserver(this._observerId,e,t||this._defaultOptions),this._observerId++,i}getObserver(e){return this._observers[e]}removeObserver(e){this._observers[e]=null}},de={onPerformance:"lynx.performance.onPerformanceEvent"},H=class{constructor(e,t){this._emitter=e,this._onPerformance=t,this._observedNames=[]}observe(e){this._observedNames.length>0||(this._observedNames=e,this._emitter.addListener(de.onPerformance,this.onPerformanceEvent.bind(this)))}disconnect(){this._observedNames=[],this._emitter.removeListener(de.onPerformance,this.onPerformanceEvent.bind(this))}onPerformanceEvent(e){if(0===this._observedNames.length)return;let t=e.entryType+"."+e.name;(this._observedNames.includes(t)||this._observedNames.includes(e.entryType))&&this._onPerformance(e)}},N={onSetup:"lynx.performance.timing.onSetup",onUpdate:"lynx.performance.timing.onUpdate"},C=class{constructor(e,t){this._emitter=e,this._generatePipelineOptions=t.generatePipelineOptions,this._onPipelineStart=t.onPipelineStart,this._markTiming=t.markPipelineTiming,this._profileStart=t.profileStart,this._profileEnd=t.profileEnd,this._profileMark=t.profileMark,this._profileFlowId=t.profileFlowId,this._isProfileRecording=t.isProfileRecording,this._bindPipelineIdWithTimingFlag=t.bindPipelineIdWithTimingFlag}profileStart(e,t){this._profileStart(e,t)}profileEnd(){this._profileEnd()}profileMark(e,t){this._profileMark(e,t)}profileFlowId(){return this._profileFlowId()}createObserver(e){return new H(this._emitter,e)}isProfileRecording(){return this._isProfileRecording()}addTimingListener(e){this._emitter.addListener(N.onSetup,e.onSetup,e),this._emitter.addListener(N.onUpdate,e.onUpdate,e)}removeTimingListener(e){this._emitter.removeListener(N.onSetup,e.onSetup),this._emitter.removeListener(N.onUpdate,e.onUpdate)}removeAllTimingListener(){this._emitter.removeAllListeners(N.onSetup),this._emitter.removeAllListeners(N.onUpdate)}_initializeAndStartPipeline(){let e=this._generatePipelineOptions();return e&&this._onPipelineStart(e.pipelineID),e}_checkAndBindTimingFlag(e,t){if(!e)return;let r="__lynx_timing_flag";t[r]&&(this._bindPipelineIdWithTimingFlag(e.pipelineID,t[r]),this._markTiming(e.pipelineID,"update_set_state_trigger"),e.needTimestamps=!0)}},_e=C,me=l.LynxJSBI,f=class r{constructor(e){for(let t in this._cachedFunctions={},e)Object.defineProperty(this,t,{get(){if(this._cachedFunctions[t])return this._cachedFunctions[t];let r=e[t];return"function"==typeof r&&(this._cachedFunctions[t]=r),r}})}static create(e){return new r(e)}};function he(e,t,r,i,s=!1){let{getPromise:n}=l;return"function"==typeof n?n({nextTick:s?i:t=>e(t,0),setTimeout:e,onUnhandled:t,clearTimeout:r}):l.Promise}var I=class{constructor(){}decode(e){return 0===e.byteLength?"":(e instanceof DataView?e=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):ArrayBuffer.isView(e)&&(e=e.buffer),globalThis.TextCodecHelper.decode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}get fatal(){return!1}get ignoreBOM(){return!0}},W=class{constructor(){}encode(e){return new Uint8Array(globalThis.TextCodecHelper.encode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}},A=class r{constructor(){this._arrayBuffer=new ArrayBuffer(0),this._bodyUsed=!1}safeUseBody(e){if(this._bodyUsed)return;let t=e(this._arrayBuffer);return this._bodyUsed=!0,this._arrayBuffer=null,t}cloneArrayBuffer(e){return e.slice(0)}setBody(e){e instanceof r?e._bodyUsed||(this._arrayBuffer=this.cloneArrayBuffer(e._arrayBuffer)):e instanceof ArrayBuffer?this._arrayBuffer=this.cloneArrayBuffer(e):e instanceof DataView?this._arrayBuffer=this.cloneArrayBuffer(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):ArrayBuffer.isView(e)?this._arrayBuffer=this.cloneArrayBuffer(e.buffer):e&&(this._arrayBuffer=new W().encode(e.toString()).buffer)}arrayBuffer(){return Promise.resolve(this.safeUseBody(e=>e))}text(){return Promise.resolve(this.safeUseBody(e=>new I().decode(e)))}json(){return Promise.resolve(this.safeUseBody(e=>JSON.parse(new I().decode(e))))}get bodyUsed(){return this._bodyUsed}};Se=Symbol.toStringTag,_computedKey=Symbol.iterator;var _computedKey,_computedKey1,Se,P=class r{constructor(e){if(this._headers_map=new Map,this[Se]="Headers",null===e||"number"==typeof e)throw TypeError("Headers init with null/number");if(e instanceof r)for(let[t,i]of e)this.append(t,i);else Array.isArray(e)?e.forEach(([e,t])=>{this.append(e,Array.isArray(t)?t.join(" "):t)}):e&&Object.getOwnPropertyNames(e).forEach(t=>{let i=e[t];this.append(t,Array.isArray(i)?i.join(" "):i)})}[_computedKey](){return this.entries()}*keys(){for(let[e,t]of this._headers_map)yield e}*values(){for(let[e,t]of this._headers_map)yield t}*entries(){for(let e of this._headers_map)yield e}has(e){return this._headers_map.has(e)}get(e){return this._headers_map.get(e)??null}set(e,t){this._headers_map.set(e,String(t))}append(e,t){let r=this.has(e)?`${this.get(e)}, ${t}`:t;this.set(e,r)}delete(e){this.has(e)&&this._headers_map.delete(e)}forEach(e,t){for(let[r,i]of this.entries())e.call(t,i,r,this)}};_computedKey1=Symbol.toStringTag;var K=class r extends ${get aborted(){return this._aborted}get reason(){return this._reason}constructor(){super(),this._aborted=!1}get[_computedKey1](){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this._aborted=!0,this._reason=e.reason,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.emit(e.type,e)}addEventListener(e,t){super.addListener(e,t)}static __create(){return new r}};function se(e){return class e extends A{get url(){return this._url}get headers(){return this._headers}get method(){return this._method}get signal(){return this._signal}get lynxExtension(){return this._lynxExtension}constructor(t,r){if(super(),r=r||{},t instanceof e){if(t.bodyUsed)throw TypeError("Already read");this._url=t.url,r.headers||(this._headers=new P(t.headers)),this._method=t.method,this._signal=t.signal,this.setBody(t._arrayBuffer)}else this._url=String(t);if((r.headers||!this.headers)&&(this._headers=new P(r.headers)),this._method=r.method||this.method||"GET",this._method=this._method.toUpperCase(),("GET"===this.method||"HEAD"===this.method)&&r.body)throw TypeError("Body not allowed for GET or HEAD requests");"u">typeof r.signal&&(this._signal=r.signal),this._signal=this._signal||K.__create(),this._lynxExtension=r.lynxExtension||{},this._headers.get("Content-Type")||("string"==typeof r.body?this._headers.set("Content-Type","text/plain;charset=UTF-8"):globalThis.URLSearchParams&&r.body instanceof URLSearchParams?this._headers.set("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"):r.body instanceof ArrayBuffer||this._headers.set("Content-Type","text/plain;charset=UTF-8")),this.setBody(r.body)}clone(){let t=new e(this,{method:this.method});return t.setBody(this),t}}}function ae(e){return class e extends A{get url(){return this._url}get status(){return this._status}get statusText(){return this._statusText}get ok(){return this._ok}get headers(){return this._headers}get lynxExtension(){return this._lynxExtension}constructor(e,t){if(super(),t=t||{},this._status=void 0===t.status?200:t.status,this._status<200||this._status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this._ok=this._status>=200&&this._status<300,this._statusText=void 0===t.statusText?"":""+t.statusText,this._headers=new Headers(t.headers),this._url=t.url||"",this._lynxExtension=t.lynxExtension||{},this.setBody(e)}clone(){let t=new e(null,{status:this._status,statusText:this._statusText,headers:new Headers(this._headers),url:this._url});return t.setBody(this),t}}}var u=class _BaseApp{constructor(e,t){this.dataTypeSet=new Set(["string","number","array","object","boolean","null","function"]),this.removeInternalEventListenersCallbacks=[],this.setSourceMapRelease=e=>{this.Reporter.setSourceMapRelease(e)},this.getSourceMapRelease=e=>this.Reporter.getSourceMapRelease(e),this.setupGetTextInfoApi=()=>{this._apiList.getTextInfo=(e,t)=>this._textInfoManager.getTextInfo(e,t)},this.setupExposureApi=()=>{this._apiList.resumeExposure=()=>{this._exposureManager.resumeExposure()},this._apiList.stopExposure=e=>{this._exposureManager.stopExposure(e||{sendEvent:!0})},this._apiList.setObserverFrameRate=e=>{this._exposureManager.setObserverFrameRate(e||{forPageRect:20,forExposureCheck:20})}},this.requestAnimationFrame=e=>this._nativeApp.requestAnimationFrame(e),this.cancelAnimationFrame=e=>this._nativeApp.cancelAnimationFrame(e),this.__removeInternalEventListeners=()=>{this.removeInternalEventListenersCallbacks.forEach(e=>{e()})},this.initBase(e),t?t.transferSingletonData(this,this.__internal__callLynxSetModule.bind(this)):this.initExtra(e),this.setTimeout=this.nativeApp.setTimeout,this.setInterval=this.nativeApp.setInterval,this.clearInterval=this.nativeApp.clearInterval,this.clearTimeout=this.nativeApp.clearTimeout,this.addInternalEventListeners()}initExtra(e){let{lynx:t}=e;this.modules={},this._lazyCallableModules=new Map,this._nativeApp=f.create(this._nativeApp),this.sharedConsole=U(`runtimeId:${this.nativeAppId}`),this.dynamicComponentExports={},this.loadedDynamicComponentsSet=new Set,this._lazyCallableModules=new Map,this.Reporter=new b(()=>this,()=>this.nativeApp),this.GlobalEventEmitter=new $(this.__internal__callLynxSetModule.bind(this)),this._intersectionObserverManager=new J(this.NativeModules),this._exposureManager=new Y(this.NativeModules),this.setupExposureApi(),this._aopManager=new V,this.beforePublishEvent=this._aopManager._beforePublishEvent,this.performance=new _e(this.GlobalEventEmitter,this.nativeApp);let r=this.setupPromise(this.nativeApp.setTimeout,this.nativeApp.clearTimeout,t);this.lynx=this.createLynx(t,r),this.setupJSModule(),this.setupIntersectionApi(),this.setupFetchAPI(r)}initBase(e){let{nativeApp:t,params:r}=e;this.nativeAppId=t.id,this._params=r,this._nativeApp=t,this.NativeModules=t.nativeModuleProxy,this.LynxUIMethodModule=t.nativeModuleProxy.LynxUIMethodModule,this.LynxTestModule=t.nativeModuleProxy.LynxTestModule,this.LynxResourceModule=t.nativeModuleProxy.LynxResourceModule,this.LynxAccessibilityModule=t.nativeModuleProxy.LynxAccessibilityModule,this.LynxSetModule=t.nativeModuleProxy.LynxSetModule,this._apiList={},this._textInfoManager=new Q(this.NativeModules),this.setupGetTextInfoApi()}static{this.kDefaultSourceMapURL="default"}static{this.kGetSourceMapReleaseErrorName=pe}set __sourcemap__release__(e){let t=Error();t.name="LynxGetSourceMapReleaseError",t.message=e,t.stack=`at <anonymous> (${_BaseApp.kDefaultSourceMapURL}:1:1)`,this.setSourceMapRelease(t)}destroy(){this.__removeInternalEventListeners(),this._nativeApp=null,this._params=null,this._lazyCallableModules=null,this.GlobalEventEmitter=null}registerModule(e,t){this._lazyCallableModules[e]=t}getJSModule(e){return this._lazyCallableModules[e]}setupJSModule(){this.registerModule("GlobalEventEmitter",this.GlobalEventEmitter),this.registerModule("Reporter",this.Reporter)}setupFetchAPI(e){this._createResponseClass=ae,this._createRequestClass=se,this._RequestClass=l.Request??se(e),this._ResponseClass=l.Response??ae(e),l.Request||(l.Request=this._RequestClass),l.Response||(l.Response=this._ResponseClass)}__internal__callLynxSetModule(e,t){let r=this.LynxSetModule[e];r&&Function.prototype.apply.call(r,void 0,t)}get nativeApp(){return this._nativeApp}set nativeApp(e){this._nativeApp=e}get params(){return this._params}set apiList(e){this._apiList={...this._apiList,...e}}setupIntersectionApi(){let e=this;this._apiList.createIntersectionObserver=function(t,r){let{componentId:i=""}=t;return e._intersectionObserverManager.createIntersectionObserver(i,r)},this.lynx.createIntersectionObserver=this._apiList.createIntersectionObserver}onIntersectionObserverEvent(e,t,r){let i=this._intersectionObserverManager.getObserver(e);i&&i.invokeCallback(t,r)}reportError(e){return this.lynx.reportError(e)}handleError(e,t,r){h(e,this.nativeApp,{originError:t,getSourceMapRelease:this.getSourceMapRelease,errorLevel:r})}handleUserError(e,t,r,i){let{message:s,name:n,stack:o}=e||{};s||({message:s,name:n,stack:o}=Error(JSON.stringify(e)));let a=new E(i?`${i} ${n}: ${s}`:`${n}: ${s}`,o);a.cause=t,this.handleError(a,e,r)}handleInternalError(e,t){let{message:r,name:i,stack:s}=e||{};r||({message:r,name:i,stack:s}=Error(JSON.stringify(e)));let n=new g(`${i}: ${r}`,s);n.cause=t,this.handleError(n,e)}getBoolEnv(e){return this.nativeApp.getEnv(e)?.toLowerCase()==="true"}static{this._$factoryCache={}}_$executeInit(e,{path:t,entryName:r}){let i;if(e&&e.init)i=e.init.bind(e);else if(l.initBundle)i=l.initBundle.bind(l.initBundle),delete l.initBundle;else throw new E(`load failed. path:${t},entryName:${r}`);try{this.lynx.performance.profileStart("executeLoadedScript",{args:{path:t}});let e=i({tt:this});return _BaseApp._$factoryCache[t]=i,e}finally{this.lynx.performance.profileEnd()}}_$executeJSON(e,{path:t}){let r=JSON.parse(e),i=()=>r;return _BaseApp._$factoryCache[t]=i,r}requireModule(e,t,r){let i=_BaseApp._$factoryCache[e];if(i)return this._$executeInit({init:i},{path:e,entryName:t});if(e.split("?")[0].endsWith(".json")){let i=this.nativeApp.readScript(e,{dynamicComponentEntry:t??m,...r});return this._$executeJSON(i,{path:e,entryName:t})}let s=this.nativeApp.loadScript(e,t,r);return this._$executeInit(s,{path:e,entryName:t})}requireModuleAsync(e,t){let r=_BaseApp._$factoryCache[e];if(r)return void t(null,this._$executeInit({init:r},{path:e}));if(e.split("?")[0].endsWith(".json")){try{let r=this.nativeApp.readScript(e),i=this._$executeJSON(r,{path:e});t(null,i)}catch(e){t(e)}return}let i=Error();this.nativeApp.loadScriptAsync(e,(r,s)=>{if(r)return i.message=r,t(i);try{return t(null,this._$executeInit(s,{path:e}))}catch(e){return t(e)}})}require(path,params){let that=this;if("string"!=typeof path)throw Error("require args must be a string");let entryName=params&&params.dynamicComponentEntry?params.dynamicComponentEntry:m;that.modules[entryName]||(that.modules[entryName]={});let module=that.modules[entryName][path];if(!module){try{let tt=that,jsContent=that._nativeApp.readScript(path,{dynamicComponentEntry:entryName});eval(jsContent),module=that.modules[entryName][path]}catch(r){this.handleError(new E(`eval user: ${that._nativeApp.id} error: ${r.message}`,r.stack),r)}if(!that.modules[entryName][path])throw Error(`module ${path} in ${entryName} is not defined in card: ${that._nativeApp.id}`)}if(!module.hasRun){let{factory:r}=module,e={exports:{}},t;if(module.hasRun=!0,module.exports=e.exports,"function"==typeof r){let n=Ne.call(that,path),o=that;t=r(n,e,e.exports,that.Card.bind(o),that.setTimeout,that.setInterval,that.clearInterval,that.clearTimeout,that.NativeModules,that._apiList,that.sharedConsole,that.Component.bind(o),params?.ReactLynx,that.nativeAppId,that.Behavior.bind(o),me,that.lynx,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,that.lynx.fetch,void 0,void 0,void 0,void 0,void 0,void 0,that.requestAnimationFrame,that.cancelAnimationFrame),module.exports=e.exports||t}}return module.exports}define(e,t,r){r=r||m,this.modules[r]||(this.modules[r]={}),this.modules[r][e]={hasRun:!1,factory:t.bind(this)}}callFunction(e,t,r){try{let i=this.getJSModule(e);"function"==typeof i[t]&&i[t].apply(i,r)}catch(r){this.handleUserError(r,{by:`${e}.${t}`})}}onAppError(e,t){this.handleInternalError(t)}saveDynamicComponentExports(e,t){this.dynamicComponentExports[e]=t}getDynamicComponentExports(e){return this.dynamicComponentExports[e]}Component(...e){}Card(...e){}Behavior(...e){}wrapReport(e,t){let r=this;function i(e){return function(...i){try{return e.apply(this,i)}catch(e){r.handleUserError(e,{by:t})}}}return function(t,...r){return Function.prototype.apply.call(e,void 0,[i(t),...r])}}setupPromise(e,t,r){let i=he(e,(e,t)=>{try{t&&(t.stack||(t=Error(JSON.stringify(t))),t.name="unhandled rejection",this.handleUserError(t))}catch{}},t,r.queueMicrotask,this._params?.pageConfigSubset?.enableMicrotaskPromisePolyfill??!1);return this.resolvedPromise=i.resolve(),i}addInternalEventListener(e,t,r){this.contextProxyTypeToMethod[e]().addEventListener(t,r),this.removeInternalEventListenersCallbacks.push(()=>{this.contextProxyTypeToMethod[e]().removeEventListener(t,r)})}addInternalEventListeners(){this.contextProxyTypeToMethod||(this.contextProxyTypeToMethod={0:()=>this.lynx.getCoreContext(),1:()=>this.lynx.getDevtool(),2:()=>this.lynx.getJSContext(),3:()=>this.lynx.getUIContext()}),this.addInternalEventListener(0,"__OnNativeAppReady",()=>{this.onNativeAppReady()}),this.addInternalEventListener(0,"__NotifyGlobalPropsUpdated",e=>{this.updateGlobalProps(e.data)}),this.addInternalEventListener(0,"__OnLifecycleEvent",e=>{this.OnLifecycleEvent(e.data)}),this.addInternalEventListener(0,"__OnAppFirstScreen",()=>{this.onAppFirstScreen()}),this.addInternalEventListener(0,"__OnDynamicJSSourcePrepared",e=>{l.loadDynamicComponent(this,e.data)}),this.addInternalEventListener(0,"__OnAppEnterForeground",()=>{this.onAppEnterForeground()}),this.addInternalEventListener(0,"__OnAppEnterBackground",()=>{this.onAppEnterBackground()})}updateGlobalProps(e){}OnLifecycleEvent(e){}onNativeAppReady(){}onAppFirstScreen(){}onAppEnterBackground(){}onAppEnterForeground(){}};function Te(e){let t=e.match(/(.*)\/([^/]+)?$/);return t?.[1]?t[1]:"./"}function Ne(e){let t=this,r=Te(e);return function(e){let i=[],s=`${r}/${e}`.split("/"),n=s.length;if("string"!=typeof e)throw Error("require args must be a string");for(let r=0;r<n;++r){let o=s[r];if(""!==o&&"."!==o)if(".."===o){if(0===i.length)throw Error(`can't find module ${e} in app: ${t._nativeApp.id}`);i.pop()}else r+1<n&&".."===s[r+1]?r++:i.push(o)}let o=i.join("/");return o.endsWith(".js")||(o+=".js"),t.require(o)}}var z=class extends u{createLynx(e,t){let r=f.create(e);return new T(()=>this.nativeApp,()=>this,t,()=>r)}callBeforePublishEvent(e){if(0!==this._aopManager._beforePublishEvent.getEventsSize(e.type)){let t={...e};try{this._aopManager._beforePublishEvent.emit(t.type,[t])}catch(e){this.handleUserError(e,{by:"callBeforePublishEvent",type:t.type})}}}},le=class{transferSingletonData(e,t){e.nativeApp=this.nativeApp,e.sharedConsole=this.sharedConsole,e.dynamicComponentExports=this.dynamicComponentExports,e.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,e._intersectionObserverManager=this.intersectionObserverManager,e._exposureManager=this.exposureManager,e._textInfoManager=this.textInfoManager,this.globalEventEmitter.setCallLynxSetModule(t),e.GlobalEventEmitter=this.globalEventEmitter,e._aopManager=this.aopManager,e.performance=this.performance,e.modules=this.modules,e._lazyCallableModules=this.lazyCallableModules,e.lynx=this.lynx,this.lynx.rebind(()=>e),e._apiList=this.apiList,this.Reporter.rebind(()=>e),e.Reporter=this.Reporter,e.resolvedPromise=this.resolvedPromise}},L=class extends u{constructor(e,t){super(e,void 0),this.fillSingletonData();try{t.srcName&&(delete this.lynx.requireModule.cache[t.srcName],delete u._$factoryCache[t.srcName],this.lynx.requireModule(t.srcName,m),this.dataTypeSet.add("undefined"))}catch(e){this.handleUserError(e)}}createLynx(e,t){let r=f.create(e);return new T(()=>this.nativeApp,()=>this,t,()=>r)}fillSingletonData(){this.singletonData=new le,this.singletonData.nativeApp=this._nativeApp,this.singletonData.sharedConsole=this.sharedConsole,this.singletonData.dynamicComponentExports=this.dynamicComponentExports,this.singletonData.loadedDynamicComponentsSet=this.loadedDynamicComponentsSet,this.singletonData.intersectionObserverManager=this._intersectionObserverManager,this.singletonData.exposureManager=this._exposureManager,this.singletonData.textInfoManager=this._textInfoManager,this.singletonData.globalEventEmitter=this.GlobalEventEmitter,this.singletonData.aopManager=this._aopManager,this.singletonData.performance=this.performance,this.singletonData.modules=this.modules,this.singletonData.lazyCallableModules=this._lazyCallableModules,this.singletonData.lynx=this.lynx,this.singletonData.apiList=this._apiList,this.singletonData.Reporter=this.Reporter,this.singletonData.resolvedPromise=this.resolvedPromise}};function Ae(e,t,r){let{id:i}=e,{cardType:s}=t,n=!0,o;try{if(o="standalone"==s?new L({nativeApp:e,params:t,lynx:r},t):new z({nativeApp:e,params:t,lynx:r}),l.currentAppId=i,l.multiApps[i]=o,"standalone"===s)return e.setCard(o),!0;t.bundleSupportLoadScript,n=!0;try{delete o.lynx.requireModule.cache[B],delete u._$factoryCache[B],o.lynx.requireModule(B,m),o.lynx._switches.allowUndefinedInNativeDataTypeSet&&o.dataTypeSet.add("undefined")}catch(e){n=!1,o.handleUserError(e,void 0,void 0,"loadCard failed")}e.setCard(o)}catch(t){Ce(e,t),n=!1}return n}function be(e){l.multiApps[e].destroy(),delete l.multiApps[e]}function Oe(e){l.multiApps[e].callDestroyLifetimeFun()}function Ce(e,t,r){let{message:i,name:s,stack:n}=t||{};i||({message:i,name:s,stack:n}=Error(JSON.stringify(t)));let o=new g(`loadCard failed ${s}: ${i}`,n);o.cause=r,h(o,e,{originError:t,getSourceMapRelease:t=>{if(!e.__GetSourceMapRelease(t))return e.__GetSourceMapRelease(u.kDefaultSourceMapURL)}})}},695:function(e,t,r){r.d(t,{JD:()=>k,BF:()=>I});let i=1,s=2,n=3,o=4,a=5,l=6,h=7,c=8,u=9,p=10,d=11,m=12;class _{_parent;constructor(e){this._parent=e}setProperty(e,t,r){this._parent[y][T].push({type:p,uid:this._parent[b],property:e,value:t,priority:r});let i=this._parent.getAttribute("style")??"";this._parent[f].set("style",i+`${e}:${t}${r?` !${r}`:""};`)}removeProperty(e){this._parent[y][T].push({type:d,uid:this._parent[b],property:e});let t=this._parent.getAttribute("style")??"";this._parent[f].set("style",t+`${e}:inital;`)}}let y=Symbol("ancestorDocument"),f=Symbol("_attributes"),g=Symbol("_children"),v=Symbol("innerHTML"),b=Symbol("uniqueId"),E=Symbol("_style");class x extends EventTarget{[v]="";[E];[f]=new Map;_parentElement=null;[g]=[];[b];[y];localName;constructor(e,t){super(),this.localName=e,this[b]=t}get tagName(){return this.localName.toUpperCase()}get style(){return this[E]||(this[E]=new _(this)),this[E]}get id(){return this[f].get("id")??""}set id(e){this[f].set("id",e),this.setAttribute("id",e)}get className(){return this[f].get("class")??""}get children(){return this[g].slice()}get parentElement(){return this._parentElement}get parentNode(){return this._parentElement}get firstElementChild(){return this[g][0]??null}get lastElementChild(){return this[g][this[g].length-1]??null}get nextElementSibling(){let e=this._parentElement;if(e){let t=e[g].indexOf(this);if(t>=0)return e[g][t+1]||null}return null}_remove(){if(this._parentElement){let e=this._parentElement[g].indexOf(this);this._parentElement[g].splice(e,1),this._parentElement=null}}setAttribute(e,t){this[f].set(e,t),this[y][T].push({type:s,uid:this[b],key:e,value:t})}getAttribute(e){return this[f].get(e)??null}removeAttribute(e){this[f].delete(e),this[y][T].push({type:n,uid:this[b],key:e})}append(...e){for(let t of(this[y][T].push({type:o,uid:this[b],cid:e.map(e=>e[b])}),e))t._remove(),t._parentElement=this;this[g].push(...e)}appendChild(e){return this[y][T].push({type:o,uid:this[b],cid:[e[b]]}),e._remove(),e._parentElement=this,this[g].push(e),e}replaceWith(...e){if(this[y][T].push({type:l,uid:this[b],nid:e.map(e=>e[b])}),this._parentElement){let t=this._parentElement;this._parentElement=null;let r=t[g].indexOf(this);for(let i of(t[g].splice(r,1,...e),e))i._parentElement=t}}getAttributeNames(){return[...this[f].keys()]}remove(){this[y][T].push({type:a,uid:this[b]}),this._remove()}insertBefore(e,t){if(e._remove(),t){let r=this[g].indexOf(t);r>=0&&(e._parentElement=this,this[g].splice(r,0,e))}else e._parentElement=this,this[g].push(e);return this[y][T].push({type:h,uid:this[b],cid:e[b],ref:t?.[b]}),e}removeChild(e){if(!e||e._parentElement!==this)throw new DOMException("The node to be removed is not a child of this node.","NotFoundError");return this[y][T].push({type:u,uid:this[b],cid:e[b]}),e._remove(),e}addEventListener(e,t,r){this[y][w](e,this[b]),super.addEventListener(e,t,r)}set innerHTML(e){for(let t of(this[y][T].push({type:m,text:e,uid:this[b]}),this.children))t.remove();this[v]=e}toJSON(){return""}}let S=Symbol("propagationStopped"),A=Symbol("eventPhase");class M extends Event{_target;[A]=Event.CAPTURING_PHASE;constructor(e,t){super(e),this._target=t}get target(){return this._target}[S]=!1;stopImmediatePropagation(){this[S]=!0,super.stopImmediatePropagation()}stopPropagation(){this[S]=!0,super.stopPropagation()}get eventPhase(){return this[A]}}let T=Symbol("operations"),w=Symbol("enableEvent"),C=Symbol("getElementByUniqueId"),I=Symbol("_onEvent"),R=Symbol("uniqueIdInc"),L=Symbol("_uniqueIdToElement");class k extends x{_callbacks;[R]=1;[L]=[];[T]=[];[C](e){return this[L][e]?.deref()}[w];constructor(e){let t=(e,t)=>{this[T].push({type:c,eventType:e,uid:t})};super("",0),this._callbacks=e,this[y]=this,this[w]=t}commit(){let e=this[T];this[T]=[],this._callbacks.onCommit(e)}createElement(e){let t=this[R]++,r=new x(e,t);return r[y]=this,this[L][t]=new WeakRef(r),this[T].push({type:i,uid:t,tag:e}),r}[I]=(e,t,r,i)=>{let s=this[C](t);if(s){let t=[],n=s;for(;n.parentElement;)t.push(n.parentElement),n=n.parentElement;let o=new M(e,s);Object.assign(o,i),o[A]=Event.CAPTURING_PHASE;for(let e=t.length-1;e>=0;e--)if(t[e].dispatchEvent(o),o[S])return;if(o[A]=Event.AT_TARGET,s.dispatchEvent(o),r){for(let e of(o[A]=Event.BUBBLING_PHASE,t))if(e.dispatchEvent(o),o[S])return}}}}},353:function(e,t,r){var i,s,n,o;r.d(t,{EN:()=>F,UK:()=>v,uE:()=>h,oc:()=>$,wg:()=>m,sr:()=>S,ZW:()=>B,eA:()=>f,eW:()=>w,wU:()=>x,G4:()=>j,YH:()=>D,bh:()=>k,jK:()=>s,i$:()=>P,Hs:()=>b,E3:()=>E,gc:()=>q,cZ:()=>A,Au:()=>M,RN:()=>u,Rz:()=>C,Oh:()=>I,E9:()=>W,EO:()=>G,jF:()=>H,bM:()=>N,nt:()=>T,Tt:()=>L,R1:()=>R,L9:()=>c,V_:()=>U,cx:()=>O,rd:()=>y,Xz:()=>a,$m:()=>d,mH:()=>_,Bq:()=>p,SH:()=>l});let a="lynx-unique-id",l="lynx-css-id",h="lynx-component-id",c="lynx-tag",u="lynx-default-display-linear",p="__lynx_timing_flag",d=["registerDataProcessor","registerWorkletInternal","lynxWorkletImpl","runWorklet"],m={platform:"web",lynxSdkVersion:"3.0"},_={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur"},y={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus"}},f={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function g(e,t,r=!0,i=!1,s){return{name:e,isSync:t,hasReturn:r,hasReturnTransfer:i,bufferSize:s}}let v=g("__postExposure",!1,!1),b=g("publicComponentEvent",!1,!1),E=g("publishEvent",!1,!1),x=g("postOffscreenEventEndpoint",!1,!1),S=g("switchExposureServiceEndpoint",!1,!1),A=g("mainThreadStart",!1,!1),M=g("updateData",!1,!0),T=g("sendGlobalEventEndpoint",!1,!1),w=g("dispose",!1,!0),C=g("start",!1,!0),I=g("reportError",!1,!1),R=g("flushElementTree",!1,!0),L=g("callLepusMethod",!1,!0),k=g("__invokeUIMethod",!1,!0),O=g("__setNativeProps",!1,!0),N=g("nativeModulesCall",!1,!0),P=g("napiModulesCall",!1,!0,!0),D=g("getCustomSections",!1,!0),U=g("markTiming",!1,!1),F=g("postTimingFlags",!1,!1),q=g("__triggerComponentEvent",!1,!1),B=g("__selectComponent",!1,!0),j=g("dispatchLynxViewEvent",!1,!1),$=g("dispatchNapiModule",!1,!1),H=g("dispatchCoreContextOnBackground",!1,!1),G=g("dispatchJSContextOnMainThread",!1,!1);!function(e){e[e.ID_SELECTOR=0]="ID_SELECTOR",e[e.REF_ID=1]="REF_ID",e[e.UNIQUE_ID=2]="UNIQUE_ID"}(i||(i={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.UNKNOWN=1]="UNKNOWN",e[e.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",e[e.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",e[e.PARAM_INVALID=4]="PARAM_INVALID",e[e.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",e[e.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE"}(s||(s={})),function(e){e[e.UPDATE=0]="UPDATE",e[e.RESET=1]="RESET"}(n||(n={})),function(e){e[e.Unknown=0]="Unknown",e[e.UpdateExplictByUser=1]="UpdateExplictByUser",e[e.UpdateByKernelFromCtor=2]="UpdateByKernelFromCtor",e[e.UpdateByKernelFromRender=4]="UpdateByKernelFromRender",e[e.UpdateByKernelFromHydrate=8]="UpdateByKernelFromHydrate",e[e.UpdateByKernelFromGetDerived=16]="UpdateByKernelFromGetDerived",e[e.UpdateByKernelFromConflict=32]="UpdateByKernelFromConflict",e[e.UpdateByKernelFromHMR=64]="UpdateByKernelFromHMR"}(o||(o={}));let J=3;class W extends EventTarget{_config;constructor(e){super(),this._config=e}postMessage(...e){console.error("[lynx-web] postMessage not implemented, args:",...e)}dispatchEvent(e){let{rpc:t,sendEventEndpoint:r}=this._config;return t.invoke(r,[e]),J}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}},665:function(e,t,r){r.d(t,{W:()=>i});class i{port;name;incId=0;#e={};#t=new TextEncoder;#r=new TextDecoder;#i=new Map;constructor(e,t){this.port=e,this.name=t,e.onmessage=e=>this.#s(e.data)}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#s=async e=>{let t=this.#i.get(e.name);if(t){let r=e.sync?new Int32Array(e.lock):void 0,s=!e.sync&&e.retId?i.createRetEndpoint(e.retId):void 0;try{let i=await t(...e.data),n,o=[];if(e.sync?n=i:e.hasTransfer?{data:n,transfer:o}=i||{}:n=i,e.sync){if(e.buf){let t=JSON.stringify(n),r=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),s=new Uint8Array(e.buf.byteLength-4),{written:o}=this.#t.encodeInto(t,s);r[0]=o,i.set(s,0)}Atomics.store(r,0,1),Atomics.notify(r,0)}else e.retId&&this.invoke(s,[n,!1],o||[])}catch(t){console.error(t),e.sync?(Atomics.store(r,0,2),Atomics.notify(r,0),r[1]=2):this.invoke(s,[void 0,!0])}}else{let t=this.#e[e.name];t?t.push(e):this.#e[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#i.set(e.name,t);let r=this.#e[e.name];if(r?.length)for(let t of(this.#e[e.name]=void 0,r))this.#s(t)}registerHandlerRef(e,t,r){this.registerHandler(e,(...e)=>t[r]?.call(t,...e))}registerHandlerLazy(e,t,r){if(t[r])this.registerHandlerRef(e,t,r);else{let i,s=this;Object.defineProperty(t,r,{get:()=>i,set(n){i=n,n&&s.registerHandlerRef(e,t,r)}})}}removeHandler(e){this.#i.delete(e.name)}invoke(e,t,r=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,s=new SharedArrayBuffer(4),n=new Int32Array(s);n[0]=0;let o={name:e.name,data:t,sync:!0,lock:s,buf:i};if(this.port.postMessage(o,{transfer:r}),Atomics.wait(n,0,0),2===n[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),r=new Uint8Array(e);return r.set(t,0),r?JSON.parse(this.#r.decode(r)):void 0}}if(e.hasReturn){let{promise:s,resolve:n,reject:o}=Promise.withResolvers(),a=i.createRetEndpoint(this.nextRetId);this.registerHandler(a,(e,t)=>{t&&o(),n(e)});let l={name:e.name,data:t,sync:!1,retId:a?.name,hasTransfer:e.hasReturnTransfer};return this.port.postMessage(l,{transfer:r}),s}{let i={name:e.name,data:t,sync:!1};this.port.postMessage(i,{transfer:r})}}createCallbackify(e,t){let r=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),r(...e).then(i)}}}},901:function(e,t,r){r.d(t,{O:()=>M});var i=r(665),s=r(353);function n(e,t){let r=e.createCall(s.YH);return(e,i)=>{t[e]&&i(t[e]),r(e).then(i)}}function o(e,t,r){let i=new s.E9({rpc:r,receiveEventEndpoint:s.jF,sendEventEndpoint:s.EO});return{__globalProps:e.globalProps,getJSModule(e){},getNativeApp:()=>t,getCoreContext:()=>i,getCustomSectionSync:t=>e.customSections[t],getCustomSection:n(r,e.customSections),queueMicrotask:e=>{queueMicrotask(e)}}}function a(e){return(t,r,i,n,o,a,l)=>{e.invoke(s.bh,[t,r,i,n,o,l]).then(a).catch(e=>{console.error("[lynx-web] invokeUIMethod failed",e),a({code:s.jK.UNKNOWN,data:""})})}}function l(e,t){e.registerHandlerLazy(s.Hs,t,"publicComponentEvent")}function h(e,t){e.registerHandler(s.UK,({exposures:e,disExposures:r})=>{e.length>0&&t.GlobalEventEmitter.emit("exposure",[e.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))]),r.length>0&&t.GlobalEventEmitter.emit("disexposure",[r.map(e=>Object.assign(e,e.detail,{dataset:e.target.dataset}))])})}let c={ExplorerModule:function(e,t){return{openSchema(e){t("openSchema",e)},openScan(){t("openScan")}}}};async function u(e,t,r){let i=t.createCall(s.sr),n=e.createCall(s.bM),o={resumeExposure(){i(!0,!0)},stopExposure(e){i(!1,e.sendEvent??!0)}},a={call(e,t,r){n(e,t,"bridge").then(r)}},l={},h={};return await Promise.all(Object.entries(r).map(([e,t])=>import(t).then(t=>h[e]=t?.default?.(l,(t,r)=>n(t,r,e))))),Object.entries(c).map(([e,t])=>{h[e]=t(l,(t,r)=>n(t,r,e))}),Object.assign(l,{bridge:a,LynxExposureModule:o,...h})}function p(e,t){e.registerHandlerLazy(s.Au,t,"updateCardData")}function d(e,t){e.registerHandlerLazy(s.E3,t,"publishEvent")}function m(e){let t=0;return{generatePipelineOptions:()=>({pipelineID:"_pipeline_"+t++,needTimestamps:!1}),onPipelineStart:function(){},markPipelineTiming:function(t,r){e.markTimingInternal(r,t)},bindPipelineIdWithTimingFlag:function(t,r){e.pipelineIdToTimingFlags.has(t)||e.pipelineIdToTimingFlags.set(t,[]),e.pipelineIdToTimingFlags.get(t).push(r)},profileStart:()=>{console.error("NYI: profileStart. This is an issue of lynx-core.")},profileEnd:()=>{console.error("NYI: profileEnd. This is an issue of lynx-core.")}}}function _(e,t){e.registerHandler(s.nt,(...e)=>{t.GlobalEventEmitter.emit(...e)})}function y(){let e=new FinalizationRegistry(e=>e());return t=>{let r={};return e.register(r,t),r}}let f=0,g={};async function v(e){let{mainThreadRpc:t,uiThreadRpc:r,template:i,nativeModulesMap:n,timingSystem:o,browserConfig:c}=e,v=m(o),b=t.createCallbackify(s.Tt,2),E=r.createCall(s.cx),x=r.createCall(s.gc),S=r.createCallbackify(s.ZW,3),A=()=>{let e=globalThis.module.exports;return{init:t=>(t.tt.lynxCoreInject=t,t.tt.globalThis??=new Proxy(t,{get:(e,t)=>e[t]??globalThis[t],set:(e,t,r)=>(e[t]=r,!0),ownKeys:e=>Reflect.ownKeys(e).filter(e=>"globalThis"!==e)}),Object.assign(t.tt,{SystemInfo:{...s.wg,...c}}),e?.(t.tt))}};return{id:(f++).toString(),...v,setTimeout:setTimeout,setInterval:setInterval,clearTimeout:clearTimeout,clearInterval:clearInterval,nativeModuleProxy:await u(r,t,n),loadScriptAsync:function(e,t){let r=i.manifest[`/${e}`];r&&(e=r),import(e).catch(t).then(async()=>{t(null,A())})},loadScript:e=>{let t=i.manifest[`/${e}`];return t&&(e=t),importScripts(e),A()},requestAnimationFrame:e=>requestAnimationFrame(e),cancelAnimationFrame:e=>cancelAnimationFrame(e),callLepusMethod:b,setNativeProps:E,invokeUIMethod:a(r),setCard(e){l(t,e),d(t,e),h(t,e),p(r,e),_(r,e),o.registerGlobalEmitter(e.GlobalEventEmitter),e.lynx.getCoreContext().__start()},triggerComponentEvent:x,selectComponent:S,createJSObjectDestructionObserver:y(),setSharedData(e,t){g[e]=t},getSharedData:e=>g[e]}}function b(e,t,r,i){e.registerHandler(s.eW,()=>{let e=t.id;i(e),r(e)})}let E=async(e,t)=>{let r=e.createCall(s.i$),i={};return await Promise.all(Object.entries(t).map(([t,n])=>import(n).then(n=>i[t]=n?.default?.(i,(e,i)=>r(e,i,t),t=>{e.registerHandler(s.oc,e=>t(e))})))),{load:e=>i[e]}},x={onSetup:"lynx.performance.timing.onSetup",onUpdate:"lynx.performance.timing.onUpdate"};function S(e,t){let r=!0,i={},n=new Map,o=new Map,a=t.createCall(s.G4),l=[];function h(e,t,r){if(r||(r=performance.now()+performance.timeOrigin),!t){i[e]=r;return}n.has(t)||n.set(t,{}),n.get(t)[e]=r}let c=t=>{e.registerHandler(s.EN,(e,s)=>{if(s?e=e.concat(l):l=l.concat(e),r){let e={extra_timing:{},setup_timing:i,update_timings:{},metrics:{},has_reload:!1,thread_strategy:0,url:""};t.emit(x.onSetup,[e]),a("timing",i)}else{let r=(s?n.get(s):void 0)??{},i={extra_timing:{},setup_timing:{},update_timings:Object.fromEntries([...e,...o.get(s)??[]].map(e=>[e,r])),metrics:{},has_reload:!1,thread_strategy:0,url:""};t.emit(x.onUpdate,[i]),a("timing",r)}s&&(o.delete(s),n.delete(s)),r&&(r=!1)})};return e.registerHandler(s.V_,h),t.registerHandler(s.V_,h),{markTimingInternal:h,registerGlobalEmitter:c,pipelineIdToTimingFlags:o}}let A=Promise.resolve().then(r.bind(r,413));function M(e,t){let r=new i.W(e,"bg-to-ui"),n=new i.W(t,"bg-to-main"),a=S(n,r);a.markTimingInternal("load_core_start"),n.registerHandler(s.Rz,async e=>{a.markTimingInternal("load_core_end");let t=await v({...e,uiThreadRpc:r,mainThreadRpc:n,timingSystem:a});globalThis["napiLoaderOnRT"+t.id]=await E(r,e.napiModulesMap);let i=o(e,t,n);A.then(({loadCard:s,destroyCard:n,callDestroyLifetimeFun:o})=>{s(t,e,i),b(r,t,n,o)})})}globalThis.nativeConsole=console},212:function(e,t,r){r.a(e,async function(e,t){try{var i=r(901),s=r(506),n=e([s]);s=(n.then?(await n)():n)[0],globalThis.onmessage=e=>{let{mode:t,toPeerThread:r,toUIThread:n}=e.data;"main"===t?(0,s.n)(n,r):(0,i.O)(n,r)},Object.assign(globalThis,{module:{exports:null}}),t()}catch(e){t(e)}})},994:function(e,t,r){r.d(t,{s:()=>s});var i=r(353);function s(e){return(t,r)=>{e.invoke(i.V_,[t,r,performance.now()+performance.timeOrigin])}}},139:function(e,t,r){r.d(t,{R:()=>s});var i=r(353);function s(e,t){e.registerHandler(i.Au,(...e)=>{t.updatePage?.(...e)})}},506:function(e,t,r){r.a(e,async function(e,i){try{r.d(t,{n:()=>h});var s=r(353),n=r(665),o=r(994),a=r(695),l=r(139);let{prepareMainThreadAPIs:e}=await r.e("238").then(r.bind(r,697));function h(t,r){let i=new n.W(t,"main-to-ui"),h=new n.W(r,"main-to-bg"),c=(0,o.s)(h),u=i.createCall(s.R1),p=i.createCall(s.Oh),d=new a.JD({onCommit:u});i.registerHandler(s.wU,d[a.BF]);let{startMainThread:m}=e(h,d,d.createElement.bind(d),d.commit.bind(d),c,p);i.registerHandler(s.cZ,e=>{m(e).then(e=>{(0,l.R)(i,e)})})}i()}catch(e){i(e)}},1)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},s=s=>s.map(s=>{if(null!==s&&"object"==typeof s){if(s[e])return s;if(s.then){var n=[];n.d=0,s.then(e=>{o[t]=e,i(n)},e=>{o[r]=e,i(n)});var o={};return o[e]=e=>e(n),o}}var a={};return a[e]=function(){},a[t]=s,a});__webpack_require__.a=(n,o,a)=>{a&&((l=[]).d=-1);var l,h,c,u,p=new Set,d=n.exports,m=new Promise((e,t)=>{u=t,c=e});m[t]=d,m[e]=e=>{l&&e(l),p.forEach(e),m.catch(function(){})},n.exports=m,o(i=>{h=s(i);var n,o=()=>h.map(e=>{if(e[r])throw e[r];return e[t]}),a=new Promise(t=>{(n=()=>t(o)).r=0;var r=e=>e!==l&&!p.has(e)&&(p.add(e),e&&!e.d&&(n.r++,e.push(n)));h.map(t=>t[e](r))});return n.r?a:o()},e=>(e?u(m[r]=e):c(d),i(l))),l&&l.d<0&&(l.d=0)}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>"static/js/async/"+e+".js"})(),(()=>{__webpack_require__.miniCssF=e=>""+e+".css"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.rv=()=>"1.3.11"})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=r[i--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=(e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../../"})(),(()=>{var e={45:1},t=t=>{var[r,s,n]=t;for(var o in s)__webpack_require__.o(s,o)&&(__webpack_require__.m[o]=s[o]);for(n&&n(__webpack_require__);r.length;)e[r.pop()]=1;i(t)};__webpack_require__.f.i=(t,r)=>{e[t]||importScripts(__webpack_require__.p+__webpack_require__.u(t))};var r=globalThis.webpackChunk_lynx_js_web_explorer=globalThis.webpackChunk_lynx_js_web_explorer||[],i=r.push.bind(r);r.push=t})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.3.11"})();var __webpack_exports__=__webpack_require__(212)})();