@lynx-js/web-rsbuild-server-middleware-canary 0.19.1-canary-20251210-b192e974 → 0.19.1-canary-20251210-37d32392

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-rsbuild-server-middleware
2
2
 
3
- ## 0.19.1-canary-20251210093426-b192e97464c8454dbf750a5e93955e42f65276d6
3
+ ## 0.19.1-canary-20251210102141-37d32392fef3644ef156866321a2879710671ef2
4
4
 
5
5
  ## 0.19.0
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-rsbuild-server-middleware-canary",
3
- "version": "0.19.1-canary-20251210-b192e974",
3
+ "version": "0.19.1-canary-20251210-37d32392",
4
4
  "private": false,
5
5
  "description": "a dev server middleware for rsbuild to serve Lynx Web Platform shell project",
6
6
  "keywords": [],
@@ -23,10 +23,10 @@
23
23
  "README.md"
24
24
  ],
25
25
  "devDependencies": {
26
- "@rsbuild/core": "1.6.9",
26
+ "@rsbuild/core": "1.6.13",
27
27
  "rsbuild-plugin-arethetypeswrong": "0.1.1",
28
28
  "rsbuild-plugin-publint": "0.3.3",
29
- "@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.19.1-canary-20251210-b192e974",
29
+ "@lynx-js/web-core": "npm:@lynx-js/web-core-canary@0.19.1-canary-20251210-37d32392",
30
30
  "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.9.0"
31
31
  },
32
32
  "scripts": {
@@ -1,4 +1,4 @@
1
- (()=>{"use strict";var e,t,n,a,l,i,s,r,o,d,c,h,u={7680(){},9946(){},5051(){},4234(e,t,n){n.d(t,{Yx:()=>ev.Y,Ke:()=>E,g:()=>D,mB:()=>K,SP:()=>"l-uid",er:()=>i,Gq:()=>r,pT:()=>U,im:()=>g,js:()=>a,HO:()=>et,gj:()=>M,jK:()=>B,tl:()=>o,Pb:()=>s,O4:()=>eu,c1:()=>m,Uc:()=>ep,F6:()=>z,PC:()=>R,gI:()=>ea,C6:()=>"l-dset",pP:()=>l,Gm:()=>h,pd:()=>y,Wx:()=>eh,hO:()=>O,eZ:()=>x,JW:()=>S,E_:()=>A,M$:()=>ei,gx:()=>V,tf:()=>el,iH:()=>P,Fw:()=>H,JA:()=>d,qz:()=>es,Sy:()=>$,oZ:()=>"l-part",Hf:()=>C,o2:()=>k,$4:()=>v,hh:()=>I,ZU:()=>N,vr:()=>W,Ve:()=>T,Is:()=>X,zk:()=>_,I7:()=>u,vQ:()=>b,yn:()=>Y,k3:()=>G,vn:()=>q,WS:()=>Q,BE:()=>J,y:()=>c,a$:()=>L,PM:()=>j,VK:()=>F,nk:()=>Z,hv:()=>en,OE:()=>p,Zu:()=>w,o3:()=>ee});let a="l-css-id",l="l-comp-id",i="l-p-comp-uid",s="l-e-name",r="lynx-tag",o="l-comp-cfg",d="l-disposed",c="l-template",h="lynx-default-display-linear",u="__lynx_timing_flag",m={platform:"web",lynxSdkVersion:"3.0"},p=[` [lynx-default-display-linear="false"] * {
1
+ (()=>{"use strict";var e,t,n,a,l,i,s,r,o,d,c,h,u={6269(){},3463(){},1498(){},4234(e,t,n){n.d(t,{Yx:()=>ev.Y,Ke:()=>E,g:()=>D,mB:()=>K,SP:()=>"l-uid",er:()=>i,Gq:()=>r,pT:()=>U,im:()=>g,js:()=>a,HO:()=>et,gj:()=>M,jK:()=>B,tl:()=>o,Pb:()=>s,O4:()=>eu,c1:()=>m,Uc:()=>ep,F6:()=>z,PC:()=>R,gI:()=>ea,C6:()=>"l-dset",pP:()=>l,Gm:()=>h,pd:()=>y,Wx:()=>eh,hO:()=>O,eZ:()=>x,JW:()=>S,E_:()=>A,M$:()=>ei,gx:()=>V,tf:()=>el,iH:()=>P,Fw:()=>H,JA:()=>d,qz:()=>es,Sy:()=>$,oZ:()=>"l-part",Hf:()=>C,o2:()=>k,$4:()=>v,hh:()=>I,ZU:()=>N,vr:()=>W,Ve:()=>T,Is:()=>X,zk:()=>_,I7:()=>u,vQ:()=>b,yn:()=>Y,k3:()=>G,vn:()=>q,WS:()=>Q,BE:()=>J,y:()=>c,a$:()=>L,PM:()=>j,VK:()=>F,nk:()=>Z,hv:()=>en,OE:()=>p,Zu:()=>w,o3:()=>ee});let a="l-css-id",l="l-comp-id",i="l-p-comp-uid",s="l-e-name",r="lynx-tag",o="l-comp-cfg",d="l-disposed",c="l-template",h="lynx-default-display-linear",u="__lynx_timing_flag",m={platform:"web",lynxSdkVersion:"3.0"},p=[` [lynx-default-display-linear="false"] * {
2
2
  --lynx-display: flex;
3
3
  --lynx-display-toggle: var(--lynx-display-flex);
4
4
  }`,`[lynx-default-overflow-visible="true"] x-view{
@@ -304,7 +304,7 @@
304
304
  class="mask placeholder-dom"
305
305
  id="bot-fade-mask"
306
306
  part="bot-fade-mask"
307
- ></div>`)],V=[],$=HTMLElement,e=class extends ${static{U=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create($[Symbol.metadata]??null):void 0;i8(null,z={value:U},W,{kind:"class",name:U.name,metadata:t},null,V),e=U=z.value,t&&Object.defineProperty(U,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#ei;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#ei),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#ei=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[sb](){return this}static{i6(U,V)}},e=U;let sk=Symbol("__src"),sA=Symbol("__src"),sP={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sM={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=a||(a={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let s_=(J=[],K=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;B=[sr("src",!0)],q=[sr("loop",!0)],Y=[sr("pause-on-hide",!0)],i8(this,X={value:i9(function(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})),this.#I[sk]=t,this.#I[sA]=void 0,this.#I.stop()},"#handleSrc")},B,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,J),i8(this,G={value:i9(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},Y,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,J),i8(null,null,q,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#ed in e,get:e=>e.#ed,set:(e,t)=>{e.#ed=t}},metadata:e},K,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i6(this,J);#ec=sd(()=>this.#I.shadowRoot,"#audio");#eh=sL(this.#ec,"src");get #es(){return X.value}#ed=i6(this,K,sL(this.#ec,"loop"));#er=(i6(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sR{static observedAttributes=[];#I;#eu;#ec=sd(()=>this.#I.shadowRoot,"#audio");#em=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#eu=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...sn,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sk]?.id}}))},n);let a=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:a?.code,type:a?.type,currentSrcID:this.#I[sk]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#ev=e=>{let t=sP[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#eb=e=>{this.#ev(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?a.PlayerLoadingError:a.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=a.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sk]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...sn,detail:{loop:e,currentSrcID:this.#I[sk]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#ec();e.addEventListener("play",this.#em,{passive:!0}),e.addEventListener("pause",this.#ep,{passive:!0}),e.addEventListener("ended",this.#eg,{passive:!0}),e.addEventListener("loadstart",this.#ev,{passive:!0}),e.addEventListener("canplay",this.#ev,{passive:!0}),e.addEventListener("stalled",this.#ev,{passive:!0}),e.addEventListener("error",this.#eb,{passive:!0})}}et=[st("x-audio-tt",[ss,s_,sR],'<audio id="audio"></audio>')],en=[],ea=HTMLElement,(class extends ea{static{ee=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ea[Symbol.metadata]??null):void 0;i8(null,Q={value:ee},et,{kind:"class",name:ee.name,metadata:e},null,en),ee=Q.value,e&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ee,en)}#ef=sd(()=>this.shadowRoot,"#audio");#ec=sd(()=>this.shadowRoot,"#audio");#eh=sL(this.#ec,"src");[sk];[sA];#ey=()=>{let e,t=this[sk];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[sA]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sA]||this.#ey(),this[sA]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sk]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sM.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this[sk]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sk]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sk]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sk]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...sn,detail:{seekresult:1,currentSrcID:this[sk]?.id}})),{currentSrcID:this[sk]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sk]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,a=n.end(n.length-1);return{currentSrcID:this[sk]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:a}}prepare(){this[sA]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[st("x-canvas",[ss,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;el=[sr("name",!0)],ei=[sr("height",!0)],es=[sr("width",!0)],i8(null,null,el,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},er,eo),i8(null,null,ei,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ed,ec),i8(null,null,es,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},eh,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#eE=sd(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i6(this,er,sL(this.#eE,"name"));handleHeight=(i6(this,eo),i6(this,ed,sL(this.#eE,"height")));handleWidth=(i6(this,ec),i6(this,eh,sL(this.#eE,"width")));#eS=(i6(this,eu),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:a}=t;e*=window.devicePixelRatio,a*=window.devicePixelRatio;let l=new CustomEvent("resize",{...sn,detail:{height:e,width:a}});l.height=e,l.width=a,n.dispatchEvent(l)}});#ew(){this.#k||(this.#k=new ResizeObserver(this.#eS),this.#k.observe(this.#I))}#ex(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ew()}dispose(){this.#ex()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],eb=[],eg=HTMLElement,class extends eg{static{ep=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0;i8(null,em={value:ep},ev,{kind:"class",name:ep.name,metadata:e},null,eb),ep=em.value,e&&Object.defineProperty(ep,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ep,eb)}};let sN=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sr("granularity",!0)],eE=[sl("offset")],i8(this,ey={value:i9(function(e){e&&""!==e?this.#eC=parseFloat(e):this.#eC=.01},"#handleGranularity")},ef,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eT in e,get:e=>e.#eT},metadata:e},null,ew),i8(this,eS={value:i9(function(e){e?this.#I.addEventListener("scroll",this.#Q,{passive:!0}):this.#I.removeEventListener("scroll",this.#Q)},"#enableOffsetEvent")},eE,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eO in e,get:e=>e.#eO},metadata:e},null,ew),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,ew);#eC=.01;#eI=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];get #eT(){return ey.value}get #eO(){return eS.value}#Q=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eI-e)>this.#eC||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eI=e,this.#I.dispatchEvent(new CustomEvent("offset",{...sn,detail:{offset:e,height:this.#I[sD]}})))}}),sD=Symbol("scrollableLength"),sF=Symbol("isHeaderShowing"),sH=Symbol("resizeObserver"),sj=Symbol("slotKid");eT=[st("x-foldview-ng",[ss,sN])],eO=[],eI=HTMLElement,class extends eI{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;i8(null,ex={value:eC},eT,{kind:"class",name:eC.name,metadata:e},null,eO),eC=ex.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sj];[sH]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eL=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ek=t.contentRect.height);this[sj]&&(this[sj].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sD](){return this.#eL-this.#ek}get[sF](){return this[sD]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sD]?e=this[sD]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,a=parseFloat(t);this.scrollTo({top:a,behavior:n?"smooth":"instant"})}get[sb](){return this}disconnectedCallback(){this[sH]?.disconnect(),this[sH]=void 0}static{i6(eC,eO)}};let sz=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[st("x-foldview-header-ng",[ss])],eP=[],eM=HTMLElement,(class extends eM{static{ek=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eM[Symbol.metadata]??null):void 0;i8(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eP),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ek,eP)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sH],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eN=[st("x-foldview-slot-drag-ng",[ss])],eD=[],eF=HTMLElement,class extends eF{static{eR=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eF[Symbol.metadata]??null):void 0;i8(null,e_={value:eR},eN,{kind:"class",name:eR.name,metadata:e},null,eD),eR=e_.value,e&&Object.defineProperty(eR,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(eR,eD)}};class sU{#eP=0;#eM=new WeakMap;#e_;#eR=0;#eN=0;#eD=null;#eF;#eH=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#ej,{passive:!1}),this.#I.addEventListener("touchstart",this.#ez,{passive:!0}),this.#I.addEventListener("touchend",this.#eU,{passive:!0})}#eW(e){return this.#e_?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,a=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||a}return!1})}#eV(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#ej=e=>{let t=this.#e$(),{pageY:n,pageX:a}=e.touches.item(0),l=this.#eR-n;if(null===this.#eD){let e=this.#eN-a;this.#eD=Math.abs(l)>Math.abs(e)}if(!1===this.#eD)return;let i=this.#eW(l);t&&(e.cancelable&&e.preventDefault(),t[sF]&&l>0||l<0&&!i||!t[sF]&&!i?(t.scrollBy({top:l,behavior:"smooth"}),this.#eP+=l,t.scrollTop=this.#eP,this.#eF=t):i&&(this.#eF=i,this.#eV(i,l))),this.#eR=n,this.#eH=l};#e$(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#ez=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#e_=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#eR=n,this.#eN=t,this.#eP=this.#e$()?.scrollTop??0,this.#e_))this.#eM.set(e,e.scrollTop);this.#eD=null,this.#eF=void 0};#eU=()=>{if(this.#eD=null,this.#eF){let e=this.#e$();(this.#eF!==e||e[sF])&&this.#eF.scrollBy({top:4*this.#eH,behavior:"smooth"})}}}ez=[st("x-foldview-slot-ng",[ss,sU])],eU=[],eW=HTMLElement,(class extends eW{static{ej=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eW[Symbol.metadata]??null):void 0;i8(null,eH={value:ej},ez,{kind:"class",name:ej.name,metadata:e},null,eU),ej=eH.value,e&&Object.defineProperty(ej,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ej,eU)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sj]=this)}}),eB=[st("x-foldview-toolbar-ng",[ss])],eX=[],eq=HTMLElement,class extends eq{static{e$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i8(null,eV={value:e$},eB,{kind:"class",name:e$.name,metadata:e},null,eX),e$=eV.value,e&&Object.defineProperty(e$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(e$,eX)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sH],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sW=(e2=[],e4=[],e3=[],e8=[],e6=[],e9=[],e5=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eJ=[sr("src",!0)],eK=[sr("placeholder",!0)],eQ=[sr("blur-radius",!0)],e0=[sr("crossorigin",!0)],e1=[sr("referrerpolicy",!0)],i8(this,eZ={value:i9(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eK,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eB in e,get:e=>e.#eB},metadata:e},null,e2),i8(null,null,eJ,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es,set:(e,t)=>{e.#es=t}},metadata:e},e4,e3),i8(null,null,eQ,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},e8,e6),i8(null,null,e0,{kind:"field",name:"#handleCrossorigin",static:!1,private:!0,access:{has:e=>#eq in e,get:e=>e.#eq,set:(e,t)=>{e.#eq=t}},metadata:e},e9,e5),i8(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eY in e,get:e=>e.#eY,set:(e,t)=>{e.#eY=t}},metadata:e},e7,te),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=i6(this,e2);#eG=sd(()=>this.#I.shadowRoot,"#img");#es=i6(this,e4,sL(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #eB(){return eZ.value}#eX=(i6(this,e3),i6(this,e8,sc(this.#eG,"--blur-radius",void 0,!0)));#eq=(i6(this,e6),i6(this,e9,sL(this.#eG,"crossorigin")));#eY=(i6(this,e5),i6(this,e7,sL(this.#eG,"referrerpolicy")));#eJ=(i6(this,te),()=>{let e=this.#eG().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#eG().src=t)});constructor(e){this.#I=e,this.#eG().addEventListener("error",this.#eJ)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),sV=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[sl("load")],ta=[sl("error")],i8(this,tn={value:i9(function(e){e?this.#eG().addEventListener("load",this.#eK,{passive:!0}):this.#eG().removeEventListener("load",this.#eK)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i8(this,tl={value:i9(function(e){e?this.#eG().addEventListener("error",this.#eQ,{passive:!0}):this.#eG().removeEventListener("error",this.#eQ)},"#enableErrorEvent")},ta,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e0 in e,get:e=>e.#e0},metadata:e},null,ti),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,ti);#eG=sd(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return tl.value}#eK=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{}}))};constructor(e){this.#I=e}});to=[st("filter-image",[ss,sW,(eY=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sr("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},eY,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=sd(()=>this.#I.shadowRoot,"#img");#eX=i6(this,eY,sc(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i6(this,eG),this.#I=e}}),sV],sE({}))],td=[],tc=HTMLElement,(class extends tc{static{tr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tc[Symbol.metadata]??null):void 0;i8(null,ts={value:tr},to,{kind:"class",name:tr.name,metadata:e},null,td),tr=ts.value,e&&Object.defineProperty(tr,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(tr,td)}}),tm=[st("x-image",[ss,sW,sV],sE({}))],tp=[],tv=HTMLElement,class extends tv{static{tu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tv[Symbol.metadata]??null):void 0;i8(null,th={value:tu},tm,{kind:"class",name:tu.name,metadata:e},null,tp),tu=th.value,e&&Object.defineProperty(tu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(tu,tp)}};let s$={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[st("x-input",[ss,(tD=[],tF=[],tH=[],tj=[],tz=[],tU=[],tW=[],tV=[],t$=[],tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sr("placeholder",!0)],tM=[sr("placeholder-color",!0)],t_=[sr("placeholder-font-family",!0)],tR=[sr("placeholder-font-size",!0)],tN=[sr("placeholder-font-weight",!0)],i8(null,null,tP,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e1 in e,get:e=>e.#e1,set:(e,t)=>{e.#e1=t}},metadata:e},tD,tF),i8(null,null,tM,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2,set:(e,t)=>{e.#e2=t}},metadata:e},tH,tj),i8(null,null,t_,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},tz,tU),i8(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tW,tV),i8(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},t$,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#I;#e6=sd(()=>this.#I.shadowRoot,"#input");#e1=i6(this,tD,sL(this.#e6,"placeholder"));#e2=(i6(this,tF),i6(this,tH,sc(this.#e6,"--placeholder-color",void 0,!0)));#e4=(i6(this,tj),i6(this,tz,sc(this.#e6,"--placeholder-font-family",void 0,!0)));#e3=(i6(this,tU),i6(this,tW,sc(this.#e6,"--placeholder-font-size",void 0,!0)));#e8=(i6(this,tV),i6(this,t$,sc(this.#e6,"--placeholder-font-weight",void 0,!0)));constructor(e){i6(this,tB),this.#I=e}}),(tJ=[],tK=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sr("value",!1)],tY=[sr("disabled",!0)],tG=[sr("autocomplete",!0)],i8(this,tq={value:i9(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e6();t.value!==e&&(t.value=e)},"#handleValue")},tX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,tJ),i8(null,null,tY,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},tK,tZ),i8(null,null,tG,{kind:"field",name:"#handleAutocomplete",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},tQ,t0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=i6(this,tJ);#e6=sd(()=>this.#I.shadowRoot,"#input");get #e9(){return tq.value}#e5=i6(this,tK,sL(this.#e6,"disabled",e=>null!==e?"":null));#e7=(i6(this,tZ),i6(this,tQ,sL(this.#e6,"autocomplete")));constructor(e){i6(this,t0),this.#I=e}}),(tw=[],tx=[],tC=[],tT=[],tO=[],tI=[],tL=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tb=[sr("confirm-type",!0)],tg=[sr("maxlength",!0)],tf=[sr("readonly",!0)],ty=[sr("type",!0)],tS=[sr("ios-spell-check",!0),sr("spell-check",!0)],i8(this,tE={value:i9(function(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#te(t),this.#tt(n)},"#handleType")},ty,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn},metadata:e},null,tw),i8(null,null,tb,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},tx,tC),i8(null,null,tg,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},tT,tO),i8(null,null,tf,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},tI,tL),i8(null,null,tS,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tk,tA),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#I=i6(this,tw);#tr="text";#e6=sd(()=>this.#I.shadowRoot,"#input");#ta=i6(this,tx,sL(this.#e6,"enterkeyhint",e=>null===e?"send":e));#tl=(i6(this,tC),i6(this,tT,sL(this.#e6,"maxlength",e=>null===e?"140":e)));#ti=(i6(this,tO),i6(this,tI,sL(this.#e6,"readonly",e=>null!==e?"":null)));#tt=(i6(this,tL),sL(this.#e6,"type"));#te=sL(this.#e6,"inputmode");get #tn(){return tE.value}#ts=i6(this,tk,sL(this.#e6,"spellcheck",e=>null===e?"false":"true"));constructor(e){i6(this,tA),this.#I=e}}),(t9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sr("input-filter",!0),sl("lynxinput")],t4=[sr("send-composing-input",!0)],t8=[sl("selection")],i8(this,t2={value:i9(function(e){let t=this.#e6();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableInputEvent")},t1,{kind:"method",name:"#handleEnableInputEvent",static:!1,private:!0,access:{has:e=>#tc in e,get:e=>e.#tc},metadata:e},null,t9),i8(this,t3={value:i9(function(e){this.#th=null!==e},"#handleSendComposingInput")},t4,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t9),i8(this,t6={value:i9(function(e){e?this.#e6().addEventListener("select",this.#tm,{passive:!0}):this.#e6().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t8,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,t9),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i6(this,t9);#th=!1;#e6=sd(()=>this.#I.shadowRoot,"#input");#tv=sd(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t3.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#e6().value}}))};#to=e=>{let t=this.#e6(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e6(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t6.value}#tm=()=>{let e=this.#e6();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e6()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e6(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sS)],nt=[],nn=HTMLElement,(class extends nn{static{t7=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nn[Symbol.metadata]??null):void 0;i8(null,t5={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t5.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(t7,nt)}#tf=sd(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#tf(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#tf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#tf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#tf();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#tf().setAttribute("pattern",e.pattern)}select(){let e=this.#tf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#tf().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#tf().focus(e)}blur(){this.#tf().blur()}connectedCallback(){let e=this.#tf();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nc=[st("x-overlay-ng",[ss,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[sr("events-pass-through",!0)],ni=[sr("visible",!1)],i8(this,nl={value:i9(function(e){null!==e?(this.#ty().addEventListener("click",this.#tE,{passive:!1}),this.#I.addEventListener("click",this.#tE,{passive:!1})):(this.#ty().removeEventListener("click",this.#tE),this.#I.removeEventListener("click",this.#tE))},"#handleEventsPassThrough")},na,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tS in e,get:e=>e.#tS},metadata:e},null,nr),i8(this,ns={value:i9(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",sn))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",sn))))},"#handleVisible")},ni,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tC in e,get:e=>e.#tC},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=i6(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=sd(()=>this.#I.shadowRoot,"#dialog");get #tS(){return nl.value}get #tC(){return ns.value}#tE=e=>{e.stopPropagation();let t=this.#ty();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:a}=e,l=document.elementFromPoint(n,a);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,a)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tw&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tx||(this.#ty().style.display="none")}})],sx)],nh=[],nu=HTMLElement,class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;i8(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nd,nh)}get[si](){return this.shadowRoot.firstElementChild}};class sB extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sB.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sX{#I;static observedAttributes=[];#tT;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#tT){let e=this.#I.parentElement;e&&(this.#tT=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new sB(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tT.observe(this.#I))}}dispose(){this.#tT&&(this.#tT.disconnect(),this.#tT=void 0)}}function sq(e,t,n,a){let l=!1;return function(i){if(i!==l){let s=e.call(this);i?(se(()=>s.addEventListener(t,n,a)),l=!0):(se(()=>s.removeEventListener(t,n)),l=!1)}}}nv=[st("x-refresh-footer",[ss,sX])],nb=[],ng=HTMLElement,(class extends ng{static{np=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ng[Symbol.metadata]??null):void 0;i8(null,nm={value:np},nv,{kind:"class",name:np.name,metadata:e},null,nb),np=nm.value,e&&Object.defineProperty(np,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[st("x-refresh-header",[ss,sX])],nS=[],nw=HTMLElement,(class extends nw{static{ny=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nw[Symbol.metadata]??null):void 0;i8(null,nf={value:ny},nE,{kind:"class",name:ny.name,metadata:e},null,nS),ny=nf.value,e&&Object.defineProperty(ny,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[st("x-refresh-view",[ss,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[sl("headeroffset"),sl("headershow"),sl("footeroffset")],nT=[sl("startrefresh"),sl("headerreleased"),sl("startloadmore"),sl("footerreleased")],i8(this,nC={value:i9(function(e,t){this.#tO[t]=e;let{headeroffset:n,headershow:a,footeroffset:l}=this.#tO;n||a||l?this.#tI():this.#tL()},"#handleComplexEventEnableAttributes")},nx,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tk in e,get:e=>e.#tk},metadata:e},null,nI),i8(this,nO={value:i9(function(e,t){this.#tO[t]=e;let{startrefresh:n,headerreleased:a,startloadmore:l,footerreleased:i}=this.#tO;a||i||l||n?this.#tA():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nT,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,nI);static observedAttributes=[];#t_=sd(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tR=sd(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sB.EventName,this.#tN)}#tO={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tk(){return nC.value}get #tM(){return nO.value}#tD=!1;#tF=!1;#tH=!1;#tj=!1;#tN=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tD=e.startShowing,this.#tF=e.fullyShowing):(this.#tH=e.startShowing,this.#tj=e.fullyShowing)};#tz=!1;#tA(){this.#tz||(this.#I.addEventListener("touchend",this.#tU),this.#tz=!0)}#tU=()=>{this.#tF?(this.#I.dispatchEvent(new CustomEvent("headerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...sn,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#tH||this.#tj)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startloadmore",sn)))};#tP(){this.#tz&&this.#I.removeEventListener("touchend",this.#tU)}#tW=!1;#tV=!1;#tI(){this.#tV||(this.#I.addEventListener("touchstart",this.#t$),this.#I.addEventListener("touchend",this.#tB),this.#I.addEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#tB=()=>{this.#tW=!1};#t$=()=>{this.#tW=!0};#Q=()=>{if(this.#tD&&(this.#tO.headershow||this.#tO.headeroffset)){let e=this.#t_();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}}))}}else if(this.#tH&&this.#tO.footeroffset){let e=this.#tR();if(e){let t=this.#I.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let a=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/a}}))}}};#tL(){this.#tV&&(this.#I.removeEventListener("touchstart",this.#t$),this.#I.removeEventListener("touchend",this.#tB),this.#I.removeEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sC)],nP=[],nM=HTMLElement,(class extends nM{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nM[Symbol.metadata]??null):void 0;i8(null,nL={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nP),nk=nL.value,e&&Object.defineProperty(nk,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#tX=sd(()=>this.shadowRoot,"#container");#tq=sd(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tX(),t=this.#tq();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tX(),n=this.#tq();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tq().scrollHeight}get[sb](){return this}static{i6(nk,nP)}}),nW=[st("x-svg",[ss,(nj=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n_=[sr("src",!0)],nN=[sr("content",!0)],nF=[sl("load")],i8(this,nR={value:i9(function(e){e?this.#eG().src=e:this.#eG().src=""},"#handleSrc")},n_,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,nj),i8(this,nD={value:i9(function(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eG().src=n},"#handleContent")},nN,{kind:"method",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY},metadata:e},null,nj),i8(this,nH={value:i9(function(e){e?this.#eG().addEventListener("load",this.#eK,{passive:!0}):this.#eG().removeEventListener("load",this.#eK)},"#enableLoadEvent")},nF,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,nj),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=i6(this,nj);#n=null;#eG=sd(()=>this.#I.shadowRoot,"#img");get #es(){return nR.value}get #tY(){return nD.value}get #eZ(){return nH.value}#eK=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nV=[],n$=HTMLElement,(class extends n${static{nU=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n$[Symbol.metadata]??null):void 0;i8(null,nz={value:nU},nW,{kind:"class",name:nU.name,metadata:e},null,nV),nU=nz.value,e&&Object.defineProperty(nU,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nU,nV)}}),nq=[st("x-swiper-item",[ss])],nY=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i8(null,nB={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nY),nX=nB.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nX,nY)}}),ay=[st("x-swiper",[ss,(ar=[],ao=[],ad=[],ac=[],ah=[],au=[],am=[],ap=[],av=[],ab=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;an=[sr("indicator-color",!0)],aa=[sr("indicator-active-color",!0)],al=[sr("page-margin",!0)],ai=[sr("previous-margin",!0)],as=[sr("next-margin",!0)],i8(null,null,an,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},ar,ao),i8(null,null,aa,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},ad,ac),i8(null,null,al,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tK in e,get:e=>e.#tK,set:(e,t)=>{e.#tK=t}},metadata:e},ah,au),i8(null,null,ai,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},am,ap),i8(null,null,as,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},av,ab),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#I;#t0=0;#t1=sd(()=>this.#I.shadowRoot,"#indicator-container");#t2=sd(()=>this.#I.shadowRoot,"#indicator-style");#t4;constructor(e){i6(this,ab),this.#I=e}#tG=i6(this,ar,sc(this.#t1,"--indicator-color",void 0,!0));#tJ=(i6(this,ao),i6(this,ad,sc(this.#t1,"--indicator-active-color",void 0,!0)));#tK=(i6(this,ac),i6(this,ah,sc(this.#t1,"--page-margin",void 0,!0)));#tZ=(i6(this,au),i6(this,am,sc(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i6(this,ap),i6(this,av,sc(this.#t1,"--next-margin",void 0,!0)));#t3(){let e=this.#I.childElementCount;if(e!==this.#t0){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t1().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#t2().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t0=e}connectedCallback(){this.#t3(),this.#t4=new MutationObserver(this.#t3.bind(this)),this.#t4.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,a=this.#t1();for(let e=0;e<n;e++){let n=a.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),se(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t4?.disconnect(),this.#t4=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nJ=[sl("transition")],nK=[sl("scrollstart"),sl("lynxscrollend"),sl("change"),sl("change-event-for-indicator")],i8(this,nZ={value:i9(function(e,t){this.#tO[t]=e;let{lynxscrollend:n,scrollstart:a,change:l}=this.#tO,i=l||n||a||this.#tO["change-event-for-indicator"];this.#t8.forEach(e=>e(i))},"#enableScrollEventProcessor")},nK,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t6 in e,get:e=>e.#t6},metadata:e},null,nQ),i8(null,null,nJ,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#t9 in e,get:e=>e.#t9,set:(e,t)=>{e.#t9=t}},metadata:e},n0,n1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,nQ);#t5=0;#t7=0;#tW=!1;#V;#ne=!1;constructor(e){this.#I=e}#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);#t9=i6(this,n0,sq(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sp||(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...sn,detail:{current:this.#t5,isDragged:this.#tW}})),this.#ne=!0);let e=this.#tq(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,a=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#t7-n)>a/4||n<10||Math.abs(n-l)<=a){let e=this.#I.currentIndex;e!==this.#t5&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{current:e,isDragged:this.#tW}})),this.#t5=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn,detail:{current:this.#t5}})),this.#ne=!1}#nn(){this.#tW=!0}#na(){this.#tW=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...sn,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t8=(i6(this,n1),[sq(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sq(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sq(this.#tq,"touchend",this.#na.bind(this),{passive:!0}),sq(this.#tq,"touchcancel",this.#na.bind(this),{passive:!0}),sq(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t6(){return nZ.value}connectedCallback(){this.#t5=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#t7=e?this.#tq().scrollTop:this.#tq().scrollLeft}}),(at=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n9=[sr("circular",!1)],n7=[sr("vertical",!0)],i8(this,n5={value:i9(function(e){this.#t8.forEach(t=>t(null!=e)),null!==e&&this.#nl({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},n9,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#ni in e,get:e=>e.#ni},metadata:e},null,at),i8(this,ae={value:i9(function(e){this.#ns=null!==e},"#handleVerticalChange")},n7,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nr in e,get:e=>e.#nr},metadata:e},null,at),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=i6(this,at);#ns=!1;#no;#nd=0;#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=sd(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=sd(()=>this.#I.shadowRoot,"#circular-end").bind(this);#nl(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:a,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tq(),s=this.#nc().assignedElements(),r=this.#nh().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#I.children[n]),this.#ns){let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nd=e.offsetTop+e.offsetHeight/2-c-t,i.scrollTop=this.#nd}else{let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nd=e.offsetLeft+e.offsetWidth/2-c-t,i.scrollLeft=this.#nd}if(!a){let e=this.#I.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nu(l?"instant":"smooth")}}}}#nu(e){let t=this.#tq(),n=this.#I.snapDistance;t.scrollBy({top:this.#ns?n:0,left:this.#ns?0:n,behavior:e??"smooth"})}#t8=[sq(()=>this.#I,"change",this.#nl.bind(this),{passive:!0}),sq(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sq(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sq(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n5.value}#nm(e){let t=e.touches.item(0);if(t){let e=this.#ns?t.pageY:t.pageX;if(void 0!==this.#no){this.#nv();let t=this.#no-e;this.#nd+=t}this.#no=e}}#np(e){this.#nb(),this.#nu(),this.#no=void 0}get #nr(){return ae.value}#ng;#nv(){if(!this.#ng){let e=this.#tq();this.#nd=this.#ns?e.scrollTop:e.scrollLeft,this.#ng=setInterval(()=>{this.#ns?e.scrollTop=this.#nd:e.scrollLeft=this.#nd},10)}}#nb(){this.#ng&&(clearInterval(this.#ng),this.#ng=void 0)}dispose(){this.#nb()}}),(n6=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sr("current",!1)],n3=[sr("interval",!1),sr("autoplay",!1)],i8(this,n4={value:i9(function(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)},"#handleCurrentChange")},n2,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nf in e,get:e=>e.#nf},metadata:e},null,n6),i8(this,n8={value:i9(function(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#ny(t)}},"#handleAutoplay")},n3,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n6),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i6(this,n6);constructor(e){this.#I=e}#nS(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}get #nf(){return n4.value}#nw;#nx=(()=>{this.#nS()}).bind(this);#ny(e){this.#nC(),this.#nw=setInterval(this.#nx,e)}#nC(){this.#nw&&clearInterval(this.#nw)}get #nE(){return n8.value}dispose(){this.#nC()}})],sT)],aE=[],aS=HTMLElement,(class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;i8(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tq=sd(()=>this.shadowRoot,"#content").bind(this);#nT(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let a=this.#tq(),l=this.isVertical,i=this.childElementCount,s=l?a.scrollTop:a.scrollLeft,r=l?a.clientHeight:a.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let a=0;a<i;a++){let i=this.children[a];if(i){let s=(l?i.offsetTop:i.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=a,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nT().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nO(e,t?"smooth":"instant")}#nO(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,a=0;a="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tq().scrollTo({left:e?0:a,top:e?a:0,behavior:t})}}get snapDistance(){return this.#nT().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#nO(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nO(Number(e),"instant")}get[sb](){return this}static{i6(af,aE)}}),aI=[st("inline-image",[(aC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw=[sr("src",!0)],i8(this,ax={value:i9(function(e){e?this.#nI().setAttribute("src",e):this.#nI().removeAttribute("src")},"#handleSrc")},aw,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,aC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=i6(this,aC);constructor(e){this.#I=e}#nI=sd(()=>this.#I.shadowRoot,"#img");get #es(){return ax.value}})],sE({}))],aL=[],ak=HTMLElement,(class extends ak{static{aO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ak[Symbol.metadata]??null):void 0;i8(null,aT={value:aO},aI,{kind:"class",name:aO.name,metadata:e},null,aL),aO=aT.value,e&&Object.defineProperty(aO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(aO,aL)}}),aM=[st("inline-text",[])],a_=[],aR=HTMLElement,(class extends aR{static{aP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aR[Symbol.metadata]??null):void 0;i8(null,aA={value:aP},aM,{kind:"class",name:aP.name,metadata:e},null,a_),aP=aA.value,e&&Object.defineProperty(aP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(aP,a_)}}),aF=[st("inline-truncation",[])],aH=[],aj=HTMLElement,n=class extends aj{static{aD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aj[Symbol.metadata]??null):void 0;i8(null,aN={value:aD},aF,{kind:"class",name:aD.name,metadata:e},null,aH),n=aD=aN.value,e&&Object.defineProperty(aD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{i6(aD,aH)}},n=aD;let sY=(aW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;az=[sr("text",!0)],i8(this,aU={value:i9(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},az,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,aW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i6(this,aW);#nL;constructor(e){this.#I=e}get #nk(){return aU.value}});aB=[st("raw-text",[sY])],aX=[],aq=HTMLElement,class extends aq{static{a$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aq[Symbol.metadata]??null):void 0;i8(null,aV={value:a$},aB,{kind:"class",name:a$.name,metadata:e},null,aX),a$=aV.value,e&&Object.defineProperty(a$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(a$,aX)}};let sG=(aZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aY=[sr("text-maxlength",!0),sr("text-maxline",!0),sr("tail-color-convert",!0)],aJ=[sl("layout")],i8(this,aG={value:i9(function(){this.#nA=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#nP=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#nM="false"!==this.#I.getAttribute("tail-color-convert"),this.#nA<0&&(this.#nA=NaN),this.#nP<1&&(this.#nP=NaN),isNaN(this.#nP)?this.#n_().style.removeProperty("-webkit-line-clamp"):this.#n_().style.webkitLineClamp=this.#nP.toString(),this.#nR()},"#handleAttributeChange")},aY,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nN in e,get:e=>e.#nN},metadata:e},null,aZ),i8(this,aK={value:i9(function(e){this.#nD=e},"#handleEnableLayoutEvent")},aJ,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nF in e,get:e=>e.#nF},metadata:e},null,aZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#nH=(i6(this,aZ),!1);#nj=!1;#nz=new Map;#nU;#k;#nW;#nV;#n$=!1;#nA=NaN;#nP=NaN;#nM=!0;#nD=!1;get #nB(){return!this.#nX&&!this.#nM}get #nX(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #nq(){return!isNaN(this.#nP)&&(this.#nX||!this.#nM)}#I;constructor(e){this.#I=e}#n_=sd(()=>this.#I.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nz.delete(e)}),"characterData"===e.type&&void 0!==this.#nz.get(e.target)&&this.#nz.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nz)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#nJ(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nR(){!this.#nj||this.#I.matches("x-text>x-text")||this.#nH||(this.#nH=!0,se(async()=>{await this.#nK(),this.#nZ(),this.#nH=!1}))}async #nK(){if(this.#nW?.parentElement?.removeChild(this.#nW),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#n_().getBoundingClientRect();this.#nV=new sJ(this.#I,t);let n=this.#nV,a=(isNaN(this.#nA)?void 0:n.getNodeInfoByCharIndex(this.#nA))?this.#nA:1/0,l=this.#nq&&n.getLineInfo(this.#nP)?n.getLineInfo(this.#nP-1):void 0,i=1/0,s=3;if(l){let{start:a,end:r}=l,o=r-a;if(this.#nX){this.#I.setAttribute(e.showInlineTruncation,"");let l=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){i=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),a=r-t.start;for(e.setEnd(t.node,a),e.setStart(t.node,a);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=a,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,i=a):i=r-3}let r=Math.min(a,i);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let a=r-t.start,l=t.node,i=[];l.nodeType===Node.TEXT_NODE?(this.#nz.set(l,l.data),l.data=l.data.substring(0,a)):i.push(l),i=i.concat(this.#nJ(l));let o=l.parentElement;for(;o!==this.#I;)i=i.concat(this.#nJ(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nz.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nz.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nB){let e=(0===a?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#nW=new Text(Array(s).fill(".").join("")),e.append(this.#nW)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nY(e),this.#nR()};#n1=()=>{if(this.#n$){this.#n$=!1;return}this.#nR()};#nZ(){this.#nj&&((this.#nA||this.#nP)&&!this.#nU&&(this.#nU=new MutationObserver(this.#n0),this.#nU.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#n$=!0,this.#k.observe(this.#n_(),{box:"content-box"})))}#n2(){this.#nU?.disconnect(),this.#nU=void 0,this.#k?.disconnect(),this.#k=void 0}get #nN(){return aG.value}get #nF(){return aK.value}#nQ(e){if(!this.#nD)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nV||(t.#nV=new sJ(t.#I,t.#I.getBoundingClientRect())),t.#nV.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let a=parseFloat(n.toString());if(!isNaN(a)){t.#nV||(t.#nV=new sJ(t.#I,t.#I.getBoundingClientRect()));let n=t.#nV.getLineInfo(a);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#I.dispatchEvent(new CustomEvent("layout",{...sn,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#nj=!0,this.#nF(this.#nD),this.#nN(),se(()=>{this.#nQ()})}});class sJ{#n4=[{start:0}];#n3=[];#n8=[];#I;#n6;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sK(this.#I),this.#n6=t}#n9(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,a=e.node,l=document.createRange();l.selectNode(a);for(let e=0;e<a.data.length;e++){l.setEnd(a,e);let i=l.getClientRects().item(n);if(i&&i.right===t.right)return e}return a.data.length}}#n5(e){if(this.#n3[e])return;let{left:t}=this.#n6,n=this.#n3[this.#n3.length-1],a=n?.[n.length-1],l=a?.nodeIndex?a?.nodeIndex+1:0;for(let n=l,a;(a=this.#n7(n))&&e>=this.#n3.length;n++){let e,{node:n}=a;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#n3[this.#n3.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#n3.push([{...a,rect:l,rectIndex:0}]):n.push({...a,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==l.left||i.bottom!==l.bottom)&&(.2>Math.abs(i.left-t)?this.#n3.push([{...a,rect:i,rectIndex:n}]):this.#n3[this.#n3.length-1].push({...a,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n5(1/0),this.#n3.length}getLineInfo(e){if(this.#n5(e+1),e<this.#n3.length){let t=e>0?this.#n4[e-1]??{}:void 0,n=this.#n4[e]??{},a=e<this.#n3.length-1?this.#n4[e+1]??{}:void 0;if(void 0===n.start){let a=this.#n3[e-1],l=a[a.length-1],i=this.#n9(l),s=l.start+i;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#n3[e],l=t[t.length-1];if(e===this.#n3.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#n9(l);n.end=l.start+e,a.start=n.end+1}}return n}}#n7(e){let t=this.#n8.length-1,n=this.#n8[t],a=n?n.start+n.length:0;for(let t=this.#n8.length,n;(n=this.nodelist.at(t))&&e>=this.#n8.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:a,nodeIndex:t};this.#n8.push(l)}return this.#n8[e]}getNodeInfoByCharIndex(e){let t,n=0,a=this.#n8.length-1;for(;n<=a;){let l=Math.floor((n+a)/2),i=this.#n8[l],s=i.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=i.start;if(e>=o&&e<o+r){t=i;break}e<o?a=l-1:n=l+1}if(t)return t;for(let t=this.#n8.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sK{#ae=[];#at;constructor(e){this.#at=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#ae[e]||this.#an(e),this.#ae[e]}#an(e){let t=null;for(;e>=this.#ae.length&&(t=this.#at.nextNode());){this.#ae.push(t);break}}}a1=[st("x-text",[ss,sG,sY],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],a2=[],a4=HTMLElement,(class extends a4{static{a0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a4[Symbol.metadata]??null):void 0;i8(null,aQ={value:a0},a1,{kind:"class",name:a0.name,metadata:e},null,a2),a0=aQ.value,e&&Object.defineProperty(a0,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this;static{i6(a0,a2)}}),lq=[st("x-textarea",[ss,(a7=[],le=[],lt=[],ln=[],la=[],ll=[],li=[],ls=[],lr=[],lo=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a3=[sr("placeholder-color",!0)],a8=[sr("placeholder-font-size",!0)],a6=[sr("placeholder-font-weight",!0)],a9=[sr("placeholder-font-family",!0)],a5=[sr("placeholder",!0)],i8(null,null,a3,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#aa in e,get:e=>e.#aa,set:(e,t)=>{e.#aa=t}},metadata:e},a7,le),i8(null,null,a8,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#al in e,get:e=>e.#al,set:(e,t)=>{e.#al=t}},metadata:e},lt,ln),i8(null,null,a6,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#ai in e,get:e=>e.#ai,set:(e,t)=>{e.#ai=t}},metadata:e},la,ll),i8(null,null,a9,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#as in e,get:e=>e.#as,set:(e,t)=>{e.#as=t}},metadata:e},li,ls),i8(null,null,a5,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#ar in e,get:e=>e.#ar,set:(e,t)=>{e.#ar=t}},metadata:e},lr,lo),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#ao=sd(()=>this.#I.shadowRoot,"#textarea");#aa=i6(this,a7,sc(this.#ao,"--placeholder-color",void 0,!0));#al=(i6(this,le),i6(this,lt,sc(this.#ao,"--placeholder-font-size",void 0,!0)));#ai=(i6(this,ln),i6(this,la,sc(this.#ao,"--placeholder-font-weight",void 0,!0)));#as=(i6(this,ll),i6(this,li,sc(this.#ao,"--placeholder-font-family",void 0,!0)));#ar=(i6(this,ls),i6(this,lr,sL(this.#ao,"placeholder")));#I=i6(this,lo);constructor(e){this.#I=e}}),(lp=[],lv=[],lb=[],lg=[],lf=[],ly=[],lE=[],lS=[],lw=[],lx=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ld=[sr("confirm-type",!0)],lc=[sr("maxlength",!0)],lh=[sr("readonly",!0)],lu=[sr("ios-spell-check",!0)],lm=[sr("show-soft-input-onfocus",!0)],i8(null,null,ld,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},lp,lv),i8(null,null,lc,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},lb,lg),i8(null,null,lh,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},lf,ly),i8(null,null,lu,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},lE,lS),i8(null,null,lm,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#ad in e,get:e=>e.#ad,set:(e,t)=>{e.#ad=t}},metadata:e},lw,lx),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#I;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#ta=i6(this,lp,sL(this.#ac,"enterkeyhint",e=>null===e?"send":e));#tl=(i6(this,lv),i6(this,lb,sL(this.#ac,"maxlength",e=>null===e?"140":e)));#ti=(i6(this,lg),i6(this,lf,sL(this.#ac,"readonly",e=>null!==e?"":null)));#ts=(i6(this,ly),i6(this,lE,sL(this.#ac,"spellcheck",e=>null===e?"false":"true")));#ad=(i6(this,lS),i6(this,lw,sL(this.#ac,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i6(this,lx),this.#I=e}}),(lP=[],lM=[],l_=[],lR=[],lN=[],lD=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lC=[sr("confirm-enter",!0)],lO=[sr("disabled",!0)],lI=[sr("max-height",!0)],lL=[sr("min-height",!0)],lk=[sr("value",!1)],i8(this,lT={value:i9(function(e){this.#ah=null!==e},"#handleConfirmEnter")},lC,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#au in e,get:e=>e.#au},metadata:e},null,lP),i8(this,lA={value:i9(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ac();t.value!==e&&(t.value=e)},"#handleValue")},lk,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,lP),i8(null,null,lO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},lM,l_),i8(null,null,lI,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#am in e,get:e=>e.#am,set:(e,t)=>{e.#am=t}},metadata:e},lR,lN),i8(null,null,lL,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#ap in e,get:e=>e.#ap,set:(e,t)=>{e.#ap=t}},metadata:e},lD,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=i6(this,lP);#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");#ah=!1;get #au(){return lT.value}#e5=i6(this,lM,sL(this.#ac,"disabled",e=>null!==e?"":null));#am=(i6(this,l_),i6(this,lR,sc(this.#ac,"max-height")));#ap=(i6(this,lN),i6(this,lD,sc(this.#ac,"min-height")));get #e9(){return lA.value}#av=(i6(this,lF),e=>{this.#ah&&"Enter"===e.key&&this.#tv().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#ac().addEventListener("keyup",this.#av)}}),(l$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lH=[sr("input-filter",!0),sl("lynxinput")],lz=[sr("send-composing-input",!0)],lW=[sl("selection")],i8(this,lj={value:i9(function(e){let t=this.#ac();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableConfirmEvent")},lH,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#ab in e,get:e=>e.#ab},metadata:e},null,l$),i8(this,lU={value:i9(function(e){this.#th=null!==e},"#handleSendComposingInput")},lz,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,l$),i8(this,lV={value:i9(function(e){e?this.#ac().addEventListener("select",this.#tm,{passive:!0}):this.#ac().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},lW,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,l$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i6(this,l$);#th=!1;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");get #ab(){return lj.value}get #tu(){return lU.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#ac().value}}))};#to=e=>{let t=this.#ac(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#ac(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return lV.value}#tm=()=>{let e=this.#ac();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#ac()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#ac(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sO)],lY=[],lG=HTMLElement,(class extends lG{static{lX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lG[Symbol.metadata]??null):void 0;i8(null,lB={value:lX},lq,{kind:"class",name:lX.name,metadata:e},null,lY),lX=lB.value,e&&Object.defineProperty(lX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(lX,lY)}#ao=sd(()=>this.shadowRoot,"#textarea");get value(){return this.#ao().value}set value(e){this.#ao().value=e}addText(e){let{text:t}=e,n=this.#ao(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}setValue(e){let t,n=this.#ao();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#ao();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#ao();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#ao();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#ao().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lZ=[st("x-view",[ss])],lQ=[],l0=HTMLElement,(class extends l0{static{lK=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l0[Symbol.metadata]??null):void 0;i8(null,lJ={value:lK},lZ,{kind:"class",name:lK.name,metadata:e},null,lQ),lK=lJ.value,e&&Object.defineProperty(lK,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(lK,lQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this}),l6=[st("x-blur-view",[ss,(l4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l1=[sr("blur-radius",!0)],i8(this,l2={value:i9(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#ag().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#ag().innerHTML=""},"#handleBlurRadius")},l1,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX},metadata:e},null,l4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i6(this,l4);#ag=sd(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return l2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],l9=[],l5=HTMLElement,(class extends l5{static{l8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l5[Symbol.metadata]??null):void 0;i8(null,l3={value:l8},l6,{kind:"class",name:l8.name,metadata:e},null,l9),l8=l3.value,e&&Object.defineProperty(l8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(l8,l9)}}),ir=[st("x-viewpager-ng",[ss,(il=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l7=[sl("change")],it=[sl("offsetchange")],i8(this,ie={value:i9(function(e){this.#af=e,this.#ay()},"#enableChangeEvent")},l7,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#aE in e,get:e=>e.#aE},metadata:e},null,il),i8(this,ia={value:i9(function(e){this.#af=e,this.#ay()},"#enableOffsetChangeEvent")},it,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#aS in e,get:e=>e.#aS},metadata:e},null,il),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,il);#aw=!1;#t=!1;#ax=0;#V;constructor(e){this.#I=e}#X=sd(()=>this.#I.shadowRoot,"#content");#aC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#af&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#aT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...sn,detail:{offset:n/t}}))};#aT=()=>{if(this.#t){let e=this.#X(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#ax&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{index:n,isDragged:this.#aw}})),this.#ax=n)}};#aO=()=>{this.#aw=!0};#aI=()=>{this.#aw=!1};#af=!1;get #aE(){return ie.value}#aL=!1;get #aS(){return ia.value}#ay(){let e=this.#X();this.#aL||this.#af?e.addEventListener("scroll",this.#aC,{passive:!0}):e.removeEventListener("scroll",this.#aC),sp&&this.#af?e.addEventListener("scrollend",this.#aT,{passive:!0}):e.removeEventListener("scrollend",this.#aT)}connectedCallback(){this.#t=!0;let e=this.#X();this.#I.addEventListener("touchstart",this.#aO,{passive:!0}),e.addEventListener("touchend",this.#aI,{passive:!0}),e.addEventListener("touchcancel",this.#aI,{passive:!0})}dispose(){let e=this.#X();e.removeEventListener("scroll",this.#aC),e.removeEventListener("scrollend",this.#aT)}})],sI)],io=[],id=HTMLElement,(class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;i8(null,ii={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),is=ii.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let a=this.shadowRoot.children.item(2),l=a.clientWidth*t;a.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),a=()=>{0===n.clientWidth?requestAnimationFrame(a):this.selectTab({index:t,smooth:!1})};se(a)}}get[sb](){return this}static{i6(is,io)}}),iu=[st("x-viewpager-item-ng",[ss])],im=[],ip=HTMLElement,(class extends ip{static{ih=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;i8(null,ic={value:ih},iu,{kind:"class",name:ih.name,metadata:e},null,im),ih=ic.value,e&&Object.defineProperty(ih,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ih,im)}}),iE=[st("list-item",[ss,(iv=[],ib=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sr("estimated-main-axis-size-px",!0)],{kind:"field",name:"#handlerEstimatedMainAxisSizePx",static:!1,private:!0,access:{has:e=>#ak in e,get:e=>e.#ak,set:(e,t)=>{e.#ak=t}},metadata:e},iv,ib),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#I;#ak=i6(this,iv,sc(()=>this.#I,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){i6(this,ib),this.#I=e}})])],iS=[],iw=HTMLElement,class extends iw{static{iy=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iw[Symbol.metadata]??null):void 0;i8(null,ig={value:iy},iE,{kind:"class",name:iy.name,metadata:e},null,iS),iy=ig.value,e&&Object.defineProperty(iy,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(iy,iS)}};let sZ=function(e,t,n){let a,l,i,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),a=null,s=e.apply(l,i),a||(l=i=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),r=d,s=e.apply(l,i),a||(l=i=null)):a||n?.trailing===!1||(a=setTimeout(o,c)),s}},sQ="waterfall-slot",s0="waterfall-style";i2=[st("x-list",[ss,(iT=[],iO=[],iI=[],iL=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ix=[sr("sticky-offset",!0)],iC=[sr("span-count",!0),sr("column-count",!0)],i8(null,null,ix,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#aA in e,get:e=>e.#aA,set:(e,t)=>{e.#aA=t}},metadata:e},iT,iO),i8(null,null,iC,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#aP in e,get:e=>e.#aP,set:(e,t)=>{e.#aP=t}},metadata:e},iI,iL),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#I;#aA=i6(this,iT,sc(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#aP=(i6(this,iO),i6(this,iI,sc(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i6(this,iL),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};se(n)}}}),(iH=[],ij=[],iz=[],iU=[],iW=[],iV=[],i$=[],iB=[],iX=[],iq=[],iY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ik=[sl("scrolltoupper")],iA=[sr("upper-threshold-item-count",!0)],iM=[sl("scrolltolower")],i_=[sr("lower-threshold-item-count",!0)],iN=[sl("lynxscroll"),sl("lynxscrollend"),sl("snap")],iD=[sl("scrolltoupperedge")],iF=[sl("scrolltoloweredge")],i8(this,iP={value:i9(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#q():this.#I.children[n-1];a&&this.#aM?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#q():this.#I.children[l-1];i&&this.#aM?.observe(i)},"#handleUpperThresholdItemCountChange")},iA,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#a_ in e,get:e=>e.#a_},metadata:e},null,iH),i8(this,iR={value:i9(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#Y():this.#I.children[this.#I.children.length-n];a&&this.#aR?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#Y():this.#I.children[this.#I.children.length-l];i&&this.#aR?.observe(i)},"#handleLowerThresholdItemCountChange")},i_,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aN in e,get:e=>e.#aN},metadata:e},null,iH),i8(null,null,ik,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#aD in e,get:e=>e.#aD,set:(e,t)=>{e.#aD=t}},metadata:e},ij,iz),i8(null,null,iM,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#aF in e,get:e=>e.#aF,set:(e,t)=>{e.#aF=t}},metadata:e},iU,iW),i8(null,null,iN,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#ea in e,get:e=>e.#ea,set:(e,t)=>{e.#ea=t}},metadata:e},iV,i$),i8(null,null,iD,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aH in e,get:e=>e.#aH,set:(e,t)=>{e.#aH=t}},metadata:e},iB,iX),i8(null,null,iF,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aj in e,get:e=>e.#aj,set:(e,t)=>{e.#aj=t}},metadata:e},iq,iY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=i6(this,iH);#az=sd(()=>this.#I.shadowRoot,"#content");#aM;#aR;#aU;#$=0;#B=0;#aW=!1;#V;#q=sd(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=sd(()=>this.#I.shadowRoot,"#lower-threshold-observer");#J(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l}=this.#az(),i={scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l,deltaX:n-this.#$,deltaY:t-this.#B,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#$=n,this.#B=t,i}#aV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...sn,detail:this.#J()}))};#aD=i6(this,ij,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#aM||(this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #a_(){return iP.value}#aB=(i6(this,iz),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...sn,detail:this.#J()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#aF=i6(this,iU,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#aR||(this.#aR=new IntersectionObserver(this.#aB,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aR.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aR&&(this.#aR.disconnect(),this.#aR=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aN(){return iR.value}#a$=(i6(this,iW),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#aR&&(this.#aR.disconnect(),this.#aR=void 0),this.#aR=new IntersectionObserver(this.#aB,{root:this.#az()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aR.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n)}}});#aX=null;#Q=()=>{this.#aW&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...sn,detail:this.#J()}))};#ea=i6(this,iV,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:a,snap:l}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#aW=null!==a||null!==l;let s=this.#az();if(this.#aX&&s.removeEventListener("scroll",this.#aX),null!==scroll||this.#aW){let e=null!==i?parseFloat(i):0,t=sZ(this.#Q,e,{leading:!0,trailing:!1});this.#aX=t,s.addEventListener("scroll",this.#aX),this.#$=0,this.#B=0}sp&&this.#aW?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i6(this,i$),e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...sn,detail:this.#J()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...sn,detail:this.#J()})))});#aH=i6(this,iB,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#aq(e)});#aq=(i6(this,iX),sm(this.#az,this.#q,this.#G));#aj=i6(this,iq,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#aY(e)});#aY=(i6(this,iY),sm(this.#az,this.#Y,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#az().scrollTop,n=this.#az().scrollLeft,a=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...sn,detail:{position:a&&e.indexOf(a),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iQ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iG=[sl("scrolltolower")],iK=[sr("list-type",!0)],i8(this,iJ={value:i9(function(e){if(e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#aG(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#az();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}},"#handleXEnableHeaderOffsetEvent")},iG,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,iQ),i8(this,iZ={value:i9(function(e){if("waterfall"===e)this.#aJ(),this.#k||this.#aK(),this.#aU||(this.#aU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#aK()}),this.#aU.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#aU?.disconnect(),this.#aU=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sQ}]`)?.remove()}},"#handlerListType")},iK,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#aZ in e,get:e=>e.#aZ},metadata:e},null,iQ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i6(this,iQ);#az=sd(()=>this.#I.shadowRoot,"#content");#aG=sd(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#aU;get #tM(){return iJ.value}#aJ=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sQ}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#aQ=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let a=0;a<this.#I.children.length;a++){let l=this.#I.children[a],i=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(i):l.getBoundingClientRect().width+parseFloat(i);if(null!==l.getAttribute("full-span")){let a=n[0];for(let t=1;t<e;t++)n[t]>a&&(a=n[t]);for(let t=0;t<e;t++)n[t]=a+r;t?(l.setAttribute(`${s0}-left`,"0"),l.setAttribute(`${s0}-top`,`${a}px`)):(l.setAttribute(`${s0}-left`,`${a}px`),l.setAttribute(`${s0}-top`,"0"))}else{let a=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(a=t,i=n[t]);let o=`calc(${a} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,a)} * ${s})`;t?(l.setAttribute(`${s0}-left`,o),l.setAttribute(`${s0}-top`,`${i}px`)):(l.setAttribute(`${s0}-left`,`${i}px`),l.setAttribute(`${s0}-top`,o)),n[a]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${s0}-left`)),t.style.setProperty("top",t.getAttribute(`${s0}-top`)),t.setAttribute("slot",sQ)}};constructor(e){this.#I=e}#aK=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#aQ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #aZ(){return iZ.value}})],sw)],i4=[],i3=HTMLElement,class extends i3{static{i1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i3[Symbol.metadata]??null):void 0;i8(null,i0={value:i1},i2,{kind:"class",name:i1.name,metadata:e},null,i4),i1=i0.value,e&&Object.defineProperty(i1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#az=sd(()=>this.shadowRoot,"#content");#a0={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#a1={};get scrollTop(){return this.#az().scrollTop}set scrollTop(e){this.#az().scrollTop=e}get scrollLeft(){return this.#az().scrollTop}set scrollLeft(e){this.#az().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#az().scrollTop=0,this.#az().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#az().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#a2=e=>{if(!this.#a0.isScrolling)return;if(!this.#a0.lastTimestamp){this.#a0.lastTimestamp=e,requestAnimationFrame(this.#a2);return}let t=this.#az(),n=(e-this.#a0.lastTimestamp)/1e3*this.#a0.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#a0.lastTimestamp=e;let a="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(a?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#a0.autoStop?(a?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#a0.isScrolling=!1):requestAnimationFrame(this.#a2)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#a0={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#az(),a="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#a0.lastTimestamp=0,a?setTimeout(()=>requestAnimationFrame(this.#a2),0):requestAnimationFrame(this.#a2)}else this.#a0.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#a1),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#a4=()=>Object.values(this.#a1).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#a3=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",a="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#a4();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...sn,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#a4()}}))},100);return}if(a){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#a1[n]&&delete this.#a1[n]:this.#a1[n]=e.target;return}};connectedCallback(){this.#az().addEventListener("contentvisibilityautostatechange",this.#a3,{passive:!0})}static{i6(i1,i4)}}},7075(e,t,n){n.a(e,async function(e,t){try{var a=n(3493);n(6675),n(7680),n(9946),n(5051);var l=e([a]);a=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function i(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),i()}function r(e){localStorage.setItem(c,JSON.stringify(e)),i()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
307
+ ></div>`)],V=[],$=HTMLElement,e=class extends ${static{U=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create($[Symbol.metadata]??null):void 0;i8(null,z={value:U},W,{kind:"class",name:U.name,metadata:t},null,V),e=U=z.value,t&&Object.defineProperty(U,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#ei;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#ei),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#ei=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[sb](){return this}static{i6(U,V)}},e=U;let sk=Symbol("__src"),sA=Symbol("__src"),sP={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sM={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=a||(a={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let s_=(J=[],K=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;B=[sr("src",!0)],q=[sr("loop",!0)],Y=[sr("pause-on-hide",!0)],i8(this,X={value:i9(function(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sk]?.id}})),this.#I[sk]=t,this.#I[sA]=void 0,this.#I.stop()},"#handleSrc")},B,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,J),i8(this,G={value:i9(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},Y,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,J),i8(null,null,q,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#ed in e,get:e=>e.#ed,set:(e,t)=>{e.#ed=t}},metadata:e},K,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i6(this,J);#ec=sd(()=>this.#I.shadowRoot,"#audio");#eh=sL(this.#ec,"src");get #es(){return X.value}#ed=i6(this,K,sL(this.#ec,"loop"));#er=(i6(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sR{static observedAttributes=[];#I;#eu;#ec=sd(()=>this.#I.shadowRoot,"#audio");#em=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#eu=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...sn,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sk]?.id}}))},n);let a=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:a?.code,type:a?.type,currentSrcID:this.#I[sk]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sM[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#ev=e=>{let t=sP[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sk]?.id}}))};#eb=e=>{this.#ev(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?a.PlayerLoadingError:a.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=a.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sk]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...sn,detail:{loop:e,currentSrcID:this.#I[sk]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#ec();e.addEventListener("play",this.#em,{passive:!0}),e.addEventListener("pause",this.#ep,{passive:!0}),e.addEventListener("ended",this.#eg,{passive:!0}),e.addEventListener("loadstart",this.#ev,{passive:!0}),e.addEventListener("canplay",this.#ev,{passive:!0}),e.addEventListener("stalled",this.#ev,{passive:!0}),e.addEventListener("error",this.#eb,{passive:!0})}}et=[st("x-audio-tt",[ss,s_,sR],'<audio id="audio"></audio>')],en=[],ea=HTMLElement,(class extends ea{static{ee=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ea[Symbol.metadata]??null):void 0;i8(null,Q={value:ee},et,{kind:"class",name:ee.name,metadata:e},null,en),ee=Q.value,e&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ee,en)}#ef=sd(()=>this.shadowRoot,"#audio");#ec=sd(()=>this.shadowRoot,"#audio");#eh=sL(this.#ec,"src");[sk];[sA];#ey=()=>{let e,t=this[sk];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[sA]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...sn,detail:{code:a.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...sn,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sA]||this.#ey(),this[sA]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sk]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sM.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...sn,detail:{code:t?.code,type:t?.type,currentSrcID:this[sk]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sk]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sk]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sk]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...sn,detail:{seekresult:1,currentSrcID:this[sk]?.id}})),{currentSrcID:this[sk]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sk]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,a=n.end(n.length-1);return{currentSrcID:this[sk]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:a}}prepare(){this[sA]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[st("x-canvas",[ss,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;el=[sr("name",!0)],ei=[sr("height",!0)],es=[sr("width",!0)],i8(null,null,el,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},er,eo),i8(null,null,ei,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ed,ec),i8(null,null,es,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},eh,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#eE=sd(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i6(this,er,sL(this.#eE,"name"));handleHeight=(i6(this,eo),i6(this,ed,sL(this.#eE,"height")));handleWidth=(i6(this,ec),i6(this,eh,sL(this.#eE,"width")));#eS=(i6(this,eu),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:a}=t;e*=window.devicePixelRatio,a*=window.devicePixelRatio;let l=new CustomEvent("resize",{...sn,detail:{height:e,width:a}});l.height=e,l.width=a,n.dispatchEvent(l)}});#ew(){this.#k||(this.#k=new ResizeObserver(this.#eS),this.#k.observe(this.#I))}#ex(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ew()}dispose(){this.#ex()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],eb=[],eg=HTMLElement,class extends eg{static{ep=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0;i8(null,em={value:ep},ev,{kind:"class",name:ep.name,metadata:e},null,eb),ep=em.value,e&&Object.defineProperty(ep,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ep,eb)}};let sN=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sr("granularity",!0)],eE=[sl("offset")],i8(this,ey={value:i9(function(e){e&&""!==e?this.#eC=parseFloat(e):this.#eC=.01},"#handleGranularity")},ef,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eT in e,get:e=>e.#eT},metadata:e},null,ew),i8(this,eS={value:i9(function(e){e?this.#I.addEventListener("scroll",this.#Q,{passive:!0}):this.#I.removeEventListener("scroll",this.#Q)},"#enableOffsetEvent")},eE,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eO in e,get:e=>e.#eO},metadata:e},null,ew),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,ew);#eC=.01;#eI=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];get #eT(){return ey.value}get #eO(){return eS.value}#Q=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eI-e)>this.#eC||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eI=e,this.#I.dispatchEvent(new CustomEvent("offset",{...sn,detail:{offset:e,height:this.#I[sD]}})))}}),sD=Symbol("scrollableLength"),sF=Symbol("isHeaderShowing"),sH=Symbol("resizeObserver"),sj=Symbol("slotKid");eT=[st("x-foldview-ng",[ss,sN])],eO=[],eI=HTMLElement,class extends eI{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;i8(null,ex={value:eC},eT,{kind:"class",name:eC.name,metadata:e},null,eO),eC=ex.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sj];[sH]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eL=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ek=t.contentRect.height);this[sj]&&(this[sj].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sD](){return this.#eL-this.#ek}get[sF](){return this[sD]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sD]?e=this[sD]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,a=parseFloat(t);this.scrollTo({top:a,behavior:n?"smooth":"instant"})}get[sb](){return this}disconnectedCallback(){this[sH]?.disconnect(),this[sH]=void 0}static{i6(eC,eO)}};let sz=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[st("x-foldview-header-ng",[ss])],eP=[],eM=HTMLElement,(class extends eM{static{ek=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eM[Symbol.metadata]??null):void 0;i8(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eP),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ek,eP)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sH],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eN=[st("x-foldview-slot-drag-ng",[ss])],eD=[],eF=HTMLElement,class extends eF{static{eR=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eF[Symbol.metadata]??null):void 0;i8(null,e_={value:eR},eN,{kind:"class",name:eR.name,metadata:e},null,eD),eR=e_.value,e&&Object.defineProperty(eR,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(eR,eD)}};class sU{#eP=0;#eM=new WeakMap;#e_;#eR=0;#eN=0;#eD=null;#eF;#eH=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#ej,{passive:!1}),this.#I.addEventListener("touchstart",this.#ez,{passive:!0}),this.#I.addEventListener("touchend",this.#eU,{passive:!0})}#eW(e){return this.#e_?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,a=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||a}return!1})}#eV(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#ej=e=>{let t=this.#e$(),{pageY:n,pageX:a}=e.touches.item(0),l=this.#eR-n;if(null===this.#eD){let e=this.#eN-a;this.#eD=Math.abs(l)>Math.abs(e)}if(!1===this.#eD)return;let i=this.#eW(l);t&&(e.cancelable&&e.preventDefault(),t[sF]&&l>0||l<0&&!i||!t[sF]&&!i?(t.scrollBy({top:l,behavior:"smooth"}),this.#eP+=l,t.scrollTop=this.#eP,this.#eF=t):i&&(this.#eF=i,this.#eV(i,l))),this.#eR=n,this.#eH=l};#e$(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#ez=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#e_=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#eR=n,this.#eN=t,this.#eP=this.#e$()?.scrollTop??0,this.#e_))this.#eM.set(e,e.scrollTop);this.#eD=null,this.#eF=void 0};#eU=()=>{if(this.#eD=null,this.#eF){let e=this.#e$();(this.#eF!==e||e[sF])&&this.#eF.scrollBy({top:4*this.#eH,behavior:"smooth"})}}}ez=[st("x-foldview-slot-ng",[ss,sU])],eU=[],eW=HTMLElement,(class extends eW{static{ej=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eW[Symbol.metadata]??null):void 0;i8(null,eH={value:ej},ez,{kind:"class",name:ej.name,metadata:e},null,eU),ej=eH.value,e&&Object.defineProperty(ej,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ej,eU)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sj]=this)}}),eB=[st("x-foldview-toolbar-ng",[ss])],eX=[],eq=HTMLElement,class extends eq{static{e$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i8(null,eV={value:e$},eB,{kind:"class",name:e$.name,metadata:e},null,eX),e$=eV.value,e&&Object.defineProperty(e$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(e$,eX)}#eA=void 0;connectedCallback(){let e=sz(this,"X-FOLDVIEW-NG");this.#eA=e?.[sH],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sW=(e2=[],e4=[],e3=[],e8=[],e6=[],e9=[],e5=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eJ=[sr("src",!0)],eK=[sr("placeholder",!0)],eQ=[sr("blur-radius",!0)],e0=[sr("crossorigin",!0)],e1=[sr("referrerpolicy",!0)],i8(this,eZ={value:i9(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eK,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eB in e,get:e=>e.#eB},metadata:e},null,e2),i8(null,null,eJ,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es,set:(e,t)=>{e.#es=t}},metadata:e},e4,e3),i8(null,null,eQ,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},e8,e6),i8(null,null,e0,{kind:"field",name:"#handleCrossorigin",static:!1,private:!0,access:{has:e=>#eq in e,get:e=>e.#eq,set:(e,t)=>{e.#eq=t}},metadata:e},e9,e5),i8(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eY in e,get:e=>e.#eY,set:(e,t)=>{e.#eY=t}},metadata:e},e7,te),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=i6(this,e2);#eG=sd(()=>this.#I.shadowRoot,"#img");#es=i6(this,e4,sL(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #eB(){return eZ.value}#eX=(i6(this,e3),i6(this,e8,sc(this.#eG,"--blur-radius",void 0,!0)));#eq=(i6(this,e6),i6(this,e9,sL(this.#eG,"crossorigin")));#eY=(i6(this,e5),i6(this,e7,sL(this.#eG,"referrerpolicy")));#eJ=(i6(this,te),()=>{let e=this.#eG().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#eG().src=t)});constructor(e){this.#I=e,this.#eG().addEventListener("error",this.#eJ)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),sV=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[sl("load")],ta=[sl("error")],i8(this,tn={value:i9(function(e){e?this.#eG().addEventListener("load",this.#eK,{passive:!0}):this.#eG().removeEventListener("load",this.#eK)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i8(this,tl={value:i9(function(e){e?this.#eG().addEventListener("error",this.#eQ,{passive:!0}):this.#eG().removeEventListener("error",this.#eQ)},"#enableErrorEvent")},ta,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e0 in e,get:e=>e.#e0},metadata:e},null,ti),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,ti);#eG=sd(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return tl.value}#eK=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...sn,detail:{}}))};constructor(e){this.#I=e}});to=[st("filter-image",[ss,sW,(eY=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sr("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},eY,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=sd(()=>this.#I.shadowRoot,"#img");#eX=i6(this,eY,sc(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i6(this,eG),this.#I=e}}),sV],sE({}))],td=[],tc=HTMLElement,(class extends tc{static{tr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tc[Symbol.metadata]??null):void 0;i8(null,ts={value:tr},to,{kind:"class",name:tr.name,metadata:e},null,td),tr=ts.value,e&&Object.defineProperty(tr,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(tr,td)}}),tm=[st("x-image",[ss,sW,sV],sE({}))],tp=[],tv=HTMLElement,class extends tv{static{tu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tv[Symbol.metadata]??null):void 0;i8(null,th={value:tu},tm,{kind:"class",name:tu.name,metadata:e},null,tp),tu=th.value,e&&Object.defineProperty(tu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(tu,tp)}};let s$={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[st("x-input",[ss,(tD=[],tF=[],tH=[],tj=[],tz=[],tU=[],tW=[],tV=[],t$=[],tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sr("placeholder",!0)],tM=[sr("placeholder-color",!0)],t_=[sr("placeholder-font-family",!0)],tR=[sr("placeholder-font-size",!0)],tN=[sr("placeholder-font-weight",!0)],i8(null,null,tP,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e1 in e,get:e=>e.#e1,set:(e,t)=>{e.#e1=t}},metadata:e},tD,tF),i8(null,null,tM,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2,set:(e,t)=>{e.#e2=t}},metadata:e},tH,tj),i8(null,null,t_,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},tz,tU),i8(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tW,tV),i8(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},t$,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#I;#e6=sd(()=>this.#I.shadowRoot,"#input");#e1=i6(this,tD,sL(this.#e6,"placeholder"));#e2=(i6(this,tF),i6(this,tH,sc(this.#e6,"--placeholder-color",void 0,!0)));#e4=(i6(this,tj),i6(this,tz,sc(this.#e6,"--placeholder-font-family",void 0,!0)));#e3=(i6(this,tU),i6(this,tW,sc(this.#e6,"--placeholder-font-size",void 0,!0)));#e8=(i6(this,tV),i6(this,t$,sc(this.#e6,"--placeholder-font-weight",void 0,!0)));constructor(e){i6(this,tB),this.#I=e}}),(tJ=[],tK=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sr("value",!1)],tY=[sr("disabled",!0)],tG=[sr("autocomplete",!0)],i8(this,tq={value:i9(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e6();t.value!==e&&(t.value=e)},"#handleValue")},tX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,tJ),i8(null,null,tY,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},tK,tZ),i8(null,null,tG,{kind:"field",name:"#handleAutocomplete",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},tQ,t0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=i6(this,tJ);#e6=sd(()=>this.#I.shadowRoot,"#input");get #e9(){return tq.value}#e5=i6(this,tK,sL(this.#e6,"disabled",e=>null!==e?"":null));#e7=(i6(this,tZ),i6(this,tQ,sL(this.#e6,"autocomplete")));constructor(e){i6(this,t0),this.#I=e}}),(tw=[],tx=[],tC=[],tT=[],tO=[],tI=[],tL=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tb=[sr("confirm-type",!0)],tg=[sr("maxlength",!0)],tf=[sr("readonly",!0)],ty=[sr("type",!0)],tS=[sr("ios-spell-check",!0),sr("spell-check",!0)],i8(this,tE={value:i9(function(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#te(t),this.#tt(n)},"#handleType")},ty,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn},metadata:e},null,tw),i8(null,null,tb,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},tx,tC),i8(null,null,tg,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},tT,tO),i8(null,null,tf,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},tI,tL),i8(null,null,tS,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tk,tA),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#I=i6(this,tw);#tr="text";#e6=sd(()=>this.#I.shadowRoot,"#input");#ta=i6(this,tx,sL(this.#e6,"enterkeyhint",e=>null===e?"send":e));#tl=(i6(this,tC),i6(this,tT,sL(this.#e6,"maxlength",e=>null===e?"140":e)));#ti=(i6(this,tO),i6(this,tI,sL(this.#e6,"readonly",e=>null!==e?"":null)));#tt=(i6(this,tL),sL(this.#e6,"type"));#te=sL(this.#e6,"inputmode");get #tn(){return tE.value}#ts=i6(this,tk,sL(this.#e6,"spellcheck",e=>null===e?"false":"true"));constructor(e){i6(this,tA),this.#I=e}}),(t9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sr("input-filter",!0),sl("lynxinput")],t4=[sr("send-composing-input",!0)],t8=[sl("selection")],i8(this,t2={value:i9(function(e){let t=this.#e6();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableInputEvent")},t1,{kind:"method",name:"#handleEnableInputEvent",static:!1,private:!0,access:{has:e=>#tc in e,get:e=>e.#tc},metadata:e},null,t9),i8(this,t3={value:i9(function(e){this.#th=null!==e},"#handleSendComposingInput")},t4,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t9),i8(this,t6={value:i9(function(e){e?this.#e6().addEventListener("select",this.#tm,{passive:!0}):this.#e6().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t8,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,t9),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i6(this,t9);#th=!1;#e6=sd(()=>this.#I.shadowRoot,"#input");#tv=sd(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t3.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#e6().value}}))};#to=e=>{let t=this.#e6(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e6(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t6.value}#tm=()=>{let e=this.#e6();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e6()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e6(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sS)],nt=[],nn=HTMLElement,(class extends nn{static{t7=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nn[Symbol.metadata]??null):void 0;i8(null,t5={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t5.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(t7,nt)}#tf=sd(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#tf(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#tf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#tf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#tf();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#tf().setAttribute("pattern",e.pattern)}select(){let e=this.#tf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#tf().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#tf().focus(e)}blur(){this.#tf().blur()}connectedCallback(){let e=this.#tf();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nc=[st("x-overlay-ng",[ss,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[sr("events-pass-through",!0)],ni=[sr("visible",!1)],i8(this,nl={value:i9(function(e){null!==e?(this.#ty().addEventListener("click",this.#tE,{passive:!1}),this.#I.addEventListener("click",this.#tE,{passive:!1})):(this.#ty().removeEventListener("click",this.#tE),this.#I.removeEventListener("click",this.#tE))},"#handleEventsPassThrough")},na,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tS in e,get:e=>e.#tS},metadata:e},null,nr),i8(this,ns={value:i9(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",sn))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",sn))))},"#handleVisible")},ni,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tC in e,get:e=>e.#tC},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=i6(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=sd(()=>this.#I.shadowRoot,"#dialog");get #tS(){return nl.value}get #tC(){return ns.value}#tE=e=>{e.stopPropagation();let t=this.#ty();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:a}=e,l=document.elementFromPoint(n,a);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,a)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tw&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tx||(this.#ty().style.display="none")}})],sx)],nh=[],nu=HTMLElement,class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;i8(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nd,nh)}get[si](){return this.shadowRoot.firstElementChild}};class sB extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sB.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sX{#I;static observedAttributes=[];#tT;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#tT){let e=this.#I.parentElement;e&&(this.#tT=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new sB(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tT.observe(this.#I))}}dispose(){this.#tT&&(this.#tT.disconnect(),this.#tT=void 0)}}function sq(e,t,n,a){let l=!1;return function(i){if(i!==l){let s=e.call(this);i?(se(()=>s.addEventListener(t,n,a)),l=!0):(se(()=>s.removeEventListener(t,n)),l=!1)}}}nv=[st("x-refresh-footer",[ss,sX])],nb=[],ng=HTMLElement,(class extends ng{static{np=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ng[Symbol.metadata]??null):void 0;i8(null,nm={value:np},nv,{kind:"class",name:np.name,metadata:e},null,nb),np=nm.value,e&&Object.defineProperty(np,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[st("x-refresh-header",[ss,sX])],nS=[],nw=HTMLElement,(class extends nw{static{ny=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nw[Symbol.metadata]??null):void 0;i8(null,nf={value:ny},nE,{kind:"class",name:ny.name,metadata:e},null,nS),ny=nf.value,e&&Object.defineProperty(ny,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[st("x-refresh-view",[ss,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[sl("headeroffset"),sl("headershow"),sl("footeroffset")],nT=[sl("startrefresh"),sl("headerreleased"),sl("startloadmore"),sl("footerreleased")],i8(this,nC={value:i9(function(e,t){this.#tO[t]=e;let{headeroffset:n,headershow:a,footeroffset:l}=this.#tO;n||a||l?this.#tI():this.#tL()},"#handleComplexEventEnableAttributes")},nx,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tk in e,get:e=>e.#tk},metadata:e},null,nI),i8(this,nO={value:i9(function(e,t){this.#tO[t]=e;let{startrefresh:n,headerreleased:a,startloadmore:l,footerreleased:i}=this.#tO;a||i||l||n?this.#tA():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nT,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i6(this,nI);static observedAttributes=[];#t_=sd(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tR=sd(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sB.EventName,this.#tN)}#tO={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tk(){return nC.value}get #tM(){return nO.value}#tD=!1;#tF=!1;#tH=!1;#tj=!1;#tN=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tD=e.startShowing,this.#tF=e.fullyShowing):(this.#tH=e.startShowing,this.#tj=e.fullyShowing)};#tz=!1;#tA(){this.#tz||(this.#I.addEventListener("touchend",this.#tU),this.#tz=!0)}#tU=()=>{this.#tF?(this.#I.dispatchEvent(new CustomEvent("headerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...sn,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#tH||this.#tj)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",sn)),this.#I.dispatchEvent(new CustomEvent("startloadmore",sn)))};#tP(){this.#tz&&this.#I.removeEventListener("touchend",this.#tU)}#tW=!1;#tV=!1;#tI(){this.#tV||(this.#I.addEventListener("touchstart",this.#t$),this.#I.addEventListener("touchend",this.#tB),this.#I.addEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#tB=()=>{this.#tW=!1};#t$=()=>{this.#tW=!0};#Q=()=>{if(this.#tD&&(this.#tO.headershow||this.#tO.headeroffset)){let e=this.#t_();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/t}}))}}else if(this.#tH&&this.#tO.footeroffset){let e=this.#tR();if(e){let t=this.#I.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let a=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...sn,detail:{isDragging:this.#tW,offsetPercent:1-n/a}}))}}};#tL(){this.#tV&&(this.#I.removeEventListener("touchstart",this.#t$),this.#I.removeEventListener("touchend",this.#tB),this.#I.removeEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sC)],nP=[],nM=HTMLElement,(class extends nM{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nM[Symbol.metadata]??null):void 0;i8(null,nL={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nP),nk=nL.value,e&&Object.defineProperty(nk,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#tX=sd(()=>this.shadowRoot,"#container");#tq=sd(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tX(),t=this.#tq();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tX(),n=this.#tq();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tq().scrollHeight}get[sb](){return this}static{i6(nk,nP)}}),nW=[st("x-svg",[ss,(nj=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n_=[sr("src",!0)],nN=[sr("content",!0)],nF=[sl("load")],i8(this,nR={value:i9(function(e){e?this.#eG().src=e:this.#eG().src=""},"#handleSrc")},n_,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,nj),i8(this,nD={value:i9(function(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eG().src=n},"#handleContent")},nN,{kind:"method",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY},metadata:e},null,nj),i8(this,nH={value:i9(function(e){e?this.#eG().addEventListener("load",this.#eK,{passive:!0}):this.#eG().removeEventListener("load",this.#eK)},"#enableLoadEvent")},nF,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,nj),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=i6(this,nj);#n=null;#eG=sd(()=>this.#I.shadowRoot,"#img");get #es(){return nR.value}get #tY(){return nD.value}get #eZ(){return nH.value}#eK=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...sn,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nV=[],n$=HTMLElement,(class extends n${static{nU=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n$[Symbol.metadata]??null):void 0;i8(null,nz={value:nU},nW,{kind:"class",name:nU.name,metadata:e},null,nV),nU=nz.value,e&&Object.defineProperty(nU,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nU,nV)}}),nq=[st("x-swiper-item",[ss])],nY=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i8(null,nB={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nY),nX=nB.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(nX,nY)}}),ay=[st("x-swiper",[ss,(ar=[],ao=[],ad=[],ac=[],ah=[],au=[],am=[],ap=[],av=[],ab=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;an=[sr("indicator-color",!0)],aa=[sr("indicator-active-color",!0)],al=[sr("page-margin",!0)],ai=[sr("previous-margin",!0)],as=[sr("next-margin",!0)],i8(null,null,an,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},ar,ao),i8(null,null,aa,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},ad,ac),i8(null,null,al,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tK in e,get:e=>e.#tK,set:(e,t)=>{e.#tK=t}},metadata:e},ah,au),i8(null,null,ai,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},am,ap),i8(null,null,as,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},av,ab),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#I;#t0=0;#t1=sd(()=>this.#I.shadowRoot,"#indicator-container");#t2=sd(()=>this.#I.shadowRoot,"#indicator-style");#t4;constructor(e){i6(this,ab),this.#I=e}#tG=i6(this,ar,sc(this.#t1,"--indicator-color",void 0,!0));#tJ=(i6(this,ao),i6(this,ad,sc(this.#t1,"--indicator-active-color",void 0,!0)));#tK=(i6(this,ac),i6(this,ah,sc(this.#t1,"--page-margin",void 0,!0)));#tZ=(i6(this,au),i6(this,am,sc(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i6(this,ap),i6(this,av,sc(this.#t1,"--next-margin",void 0,!0)));#t3(){let e=this.#I.childElementCount;if(e!==this.#t0){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t1().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#t2().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t0=e}connectedCallback(){this.#t3(),this.#t4=new MutationObserver(this.#t3.bind(this)),this.#t4.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,a=this.#t1();for(let e=0;e<n;e++){let n=a.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),se(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t4?.disconnect(),this.#t4=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nJ=[sl("transition")],nK=[sl("scrollstart"),sl("lynxscrollend"),sl("change"),sl("change-event-for-indicator")],i8(this,nZ={value:i9(function(e,t){this.#tO[t]=e;let{lynxscrollend:n,scrollstart:a,change:l}=this.#tO,i=l||n||a||this.#tO["change-event-for-indicator"];this.#t8.forEach(e=>e(i))},"#enableScrollEventProcessor")},nK,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t6 in e,get:e=>e.#t6},metadata:e},null,nQ),i8(null,null,nJ,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#t9 in e,get:e=>e.#t9,set:(e,t)=>{e.#t9=t}},metadata:e},n0,n1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,nQ);#t5=0;#t7=0;#tW=!1;#V;#ne=!1;constructor(e){this.#I=e}#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);#t9=i6(this,n0,sq(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sp||(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...sn,detail:{current:this.#t5,isDragged:this.#tW}})),this.#ne=!0);let e=this.#tq(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,a=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#t7-n)>a/4||n<10||Math.abs(n-l)<=a){let e=this.#I.currentIndex;e!==this.#t5&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{current:e,isDragged:this.#tW}})),this.#t5=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn,detail:{current:this.#t5}})),this.#ne=!1}#nn(){this.#tW=!0}#na(){this.#tW=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...sn,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t8=(i6(this,n1),[sq(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sq(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sq(this.#tq,"touchend",this.#na.bind(this),{passive:!0}),sq(this.#tq,"touchcancel",this.#na.bind(this),{passive:!0}),sq(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t6(){return nZ.value}connectedCallback(){this.#t5=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#t7=e?this.#tq().scrollTop:this.#tq().scrollLeft}}),(at=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n9=[sr("circular",!1)],n7=[sr("vertical",!0)],i8(this,n5={value:i9(function(e){this.#t8.forEach(t=>t(null!=e)),null!==e&&this.#nl({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},n9,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#ni in e,get:e=>e.#ni},metadata:e},null,at),i8(this,ae={value:i9(function(e){this.#ns=null!==e},"#handleVerticalChange")},n7,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nr in e,get:e=>e.#nr},metadata:e},null,at),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=i6(this,at);#ns=!1;#no;#nd=0;#tq=sd(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=sd(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=sd(()=>this.#I.shadowRoot,"#circular-end").bind(this);#nl(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:a,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tq(),s=this.#nc().assignedElements(),r=this.#nh().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#I.children[n]),this.#ns){let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nd=e.offsetTop+e.offsetHeight/2-c-t,i.scrollTop=this.#nd}else{let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nd=e.offsetLeft+e.offsetWidth/2-c-t,i.scrollLeft=this.#nd}if(!a){let e=this.#I.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nu(l?"instant":"smooth")}}}}#nu(e){let t=this.#tq(),n=this.#I.snapDistance;t.scrollBy({top:this.#ns?n:0,left:this.#ns?0:n,behavior:e??"smooth"})}#t8=[sq(()=>this.#I,"change",this.#nl.bind(this),{passive:!0}),sq(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sq(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sq(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n5.value}#nm(e){let t=e.touches.item(0);if(t){let e=this.#ns?t.pageY:t.pageX;if(void 0!==this.#no){this.#nv();let t=this.#no-e;this.#nd+=t}this.#no=e}}#np(e){this.#nb(),this.#nu(),this.#no=void 0}get #nr(){return ae.value}#ng;#nv(){if(!this.#ng){let e=this.#tq();this.#nd=this.#ns?e.scrollTop:e.scrollLeft,this.#ng=setInterval(()=>{this.#ns?e.scrollTop=this.#nd:e.scrollLeft=this.#nd},10)}}#nb(){this.#ng&&(clearInterval(this.#ng),this.#ng=void 0)}dispose(){this.#nb()}}),(n6=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sr("current",!1)],n3=[sr("interval",!1),sr("autoplay",!1)],i8(this,n4={value:i9(function(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)},"#handleCurrentChange")},n2,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nf in e,get:e=>e.#nf},metadata:e},null,n6),i8(this,n8={value:i9(function(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#ny(t)}},"#handleAutoplay")},n3,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n6),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i6(this,n6);constructor(e){this.#I=e}#nS(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}get #nf(){return n4.value}#nw;#nx=(()=>{this.#nS()}).bind(this);#ny(e){this.#nC(),this.#nw=setInterval(this.#nx,e)}#nC(){this.#nw&&clearInterval(this.#nw)}get #nE(){return n8.value}dispose(){this.#nC()}})],sT)],aE=[],aS=HTMLElement,(class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;i8(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tq=sd(()=>this.shadowRoot,"#content").bind(this);#nT(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let a=this.#tq(),l=this.isVertical,i=this.childElementCount,s=l?a.scrollTop:a.scrollLeft,r=l?a.clientHeight:a.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let a=0;a<i;a++){let i=this.children[a];if(i){let s=(l?i.offsetTop:i.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=a,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nT().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nO(e,t?"smooth":"instant")}#nO(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,a=0;a="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tq().scrollTo({left:e?0:a,top:e?a:0,behavior:t})}}get snapDistance(){return this.#nT().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#nO(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nO(Number(e),"instant")}get[sb](){return this}static{i6(af,aE)}}),aI=[st("inline-image",[(aC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw=[sr("src",!0)],i8(this,ax={value:i9(function(e){e?this.#nI().setAttribute("src",e):this.#nI().removeAttribute("src")},"#handleSrc")},aw,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,aC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=i6(this,aC);constructor(e){this.#I=e}#nI=sd(()=>this.#I.shadowRoot,"#img");get #es(){return ax.value}})],sE({}))],aL=[],ak=HTMLElement,(class extends ak{static{aO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ak[Symbol.metadata]??null):void 0;i8(null,aT={value:aO},aI,{kind:"class",name:aO.name,metadata:e},null,aL),aO=aT.value,e&&Object.defineProperty(aO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(aO,aL)}}),aM=[st("inline-text",[])],a_=[],aR=HTMLElement,(class extends aR{static{aP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aR[Symbol.metadata]??null):void 0;i8(null,aA={value:aP},aM,{kind:"class",name:aP.name,metadata:e},null,a_),aP=aA.value,e&&Object.defineProperty(aP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(aP,a_)}}),aF=[st("inline-truncation",[])],aH=[],aj=HTMLElement,n=class extends aj{static{aD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aj[Symbol.metadata]??null):void 0;i8(null,aN={value:aD},aF,{kind:"class",name:aD.name,metadata:e},null,aH),n=aD=aN.value,e&&Object.defineProperty(aD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{i6(aD,aH)}},n=aD;let sY=(aW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;az=[sr("text",!0)],i8(this,aU={value:i9(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},az,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,aW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i6(this,aW);#nL;constructor(e){this.#I=e}get #nk(){return aU.value}});aB=[st("raw-text",[sY])],aX=[],aq=HTMLElement,class extends aq{static{a$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aq[Symbol.metadata]??null):void 0;i8(null,aV={value:a$},aB,{kind:"class",name:a$.name,metadata:e},null,aX),a$=aV.value,e&&Object.defineProperty(a$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(a$,aX)}};let sG=(aZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aY=[sr("text-maxlength",!0),sr("text-maxline",!0),sr("tail-color-convert",!0)],aJ=[sl("layout")],i8(this,aG={value:i9(function(){this.#nA=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#nP=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#nM="false"!==this.#I.getAttribute("tail-color-convert"),this.#nA<0&&(this.#nA=NaN),this.#nP<1&&(this.#nP=NaN),isNaN(this.#nP)?this.#n_().style.removeProperty("-webkit-line-clamp"):this.#n_().style.webkitLineClamp=this.#nP.toString(),this.#nR()},"#handleAttributeChange")},aY,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nN in e,get:e=>e.#nN},metadata:e},null,aZ),i8(this,aK={value:i9(function(e){this.#nD=e},"#handleEnableLayoutEvent")},aJ,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nF in e,get:e=>e.#nF},metadata:e},null,aZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#nH=(i6(this,aZ),!1);#nj=!1;#nz=new Map;#nU;#k;#nW;#nV;#n$=!1;#nA=NaN;#nP=NaN;#nM=!0;#nD=!1;get #nB(){return!this.#nX&&!this.#nM}get #nX(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #nq(){return!isNaN(this.#nP)&&(this.#nX||!this.#nM)}#I;constructor(e){this.#I=e}#n_=sd(()=>this.#I.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nz.delete(e)}),"characterData"===e.type&&void 0!==this.#nz.get(e.target)&&this.#nz.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nz)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#nJ(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nR(){!this.#nj||this.#I.matches("x-text>x-text")||this.#nH||(this.#nH=!0,se(async()=>{await this.#nK(),this.#nZ(),this.#nH=!1}))}async #nK(){if(this.#nW?.parentElement?.removeChild(this.#nW),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#n_().getBoundingClientRect();this.#nV=new sJ(this.#I,t);let n=this.#nV,a=(isNaN(this.#nA)?void 0:n.getNodeInfoByCharIndex(this.#nA))?this.#nA:1/0,l=this.#nq&&n.getLineInfo(this.#nP)?n.getLineInfo(this.#nP-1):void 0,i=1/0,s=3;if(l){let{start:a,end:r}=l,o=r-a;if(this.#nX){this.#I.setAttribute(e.showInlineTruncation,"");let l=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){i=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),a=r-t.start;for(e.setEnd(t.node,a),e.setStart(t.node,a);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=a,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,i=a):i=r-3}let r=Math.min(a,i);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let a=r-t.start,l=t.node,i=[];l.nodeType===Node.TEXT_NODE?(this.#nz.set(l,l.data),l.data=l.data.substring(0,a)):i.push(l),i=i.concat(this.#nJ(l));let o=l.parentElement;for(;o!==this.#I;)i=i.concat(this.#nJ(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nz.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nz.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nB){let e=(0===a?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#nW=new Text(Array(s).fill(".").join("")),e.append(this.#nW)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nY(e),this.#nR()};#n1=()=>{if(this.#n$){this.#n$=!1;return}this.#nR()};#nZ(){this.#nj&&((this.#nA||this.#nP)&&!this.#nU&&(this.#nU=new MutationObserver(this.#n0),this.#nU.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#n$=!0,this.#k.observe(this.#n_(),{box:"content-box"})))}#n2(){this.#nU?.disconnect(),this.#nU=void 0,this.#k?.disconnect(),this.#k=void 0}get #nN(){return aG.value}get #nF(){return aK.value}#nQ(e){if(!this.#nD)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nV||(t.#nV=new sJ(t.#I,t.#I.getBoundingClientRect())),t.#nV.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let a=parseFloat(n.toString());if(!isNaN(a)){t.#nV||(t.#nV=new sJ(t.#I,t.#I.getBoundingClientRect()));let n=t.#nV.getLineInfo(a);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#I.dispatchEvent(new CustomEvent("layout",{...sn,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#nj=!0,this.#nF(this.#nD),this.#nN(),se(()=>{this.#nQ()})}});class sJ{#n4=[{start:0}];#n3=[];#n8=[];#I;#n6;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sK(this.#I),this.#n6=t}#n9(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,a=e.node,l=document.createRange();l.selectNode(a);for(let e=0;e<a.data.length;e++){l.setEnd(a,e);let i=l.getClientRects().item(n);if(i&&i.right===t.right)return e}return a.data.length}}#n5(e){if(this.#n3[e])return;let{left:t}=this.#n6,n=this.#n3[this.#n3.length-1],a=n?.[n.length-1],l=a?.nodeIndex?a?.nodeIndex+1:0;for(let n=l,a;(a=this.#n7(n))&&e>=this.#n3.length;n++){let e,{node:n}=a;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#n3[this.#n3.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#n3.push([{...a,rect:l,rectIndex:0}]):n.push({...a,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==l.left||i.bottom!==l.bottom)&&(.2>Math.abs(i.left-t)?this.#n3.push([{...a,rect:i,rectIndex:n}]):this.#n3[this.#n3.length-1].push({...a,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n5(1/0),this.#n3.length}getLineInfo(e){if(this.#n5(e+1),e<this.#n3.length){let t=e>0?this.#n4[e-1]??{}:void 0,n=this.#n4[e]??{},a=e<this.#n3.length-1?this.#n4[e+1]??{}:void 0;if(void 0===n.start){let a=this.#n3[e-1],l=a[a.length-1],i=this.#n9(l),s=l.start+i;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#n3[e],l=t[t.length-1];if(e===this.#n3.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#n9(l);n.end=l.start+e,a.start=n.end+1}}return n}}#n7(e){let t=this.#n8.length-1,n=this.#n8[t],a=n?n.start+n.length:0;for(let t=this.#n8.length,n;(n=this.nodelist.at(t))&&e>=this.#n8.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:a,nodeIndex:t};this.#n8.push(l)}return this.#n8[e]}getNodeInfoByCharIndex(e){let t,n=0,a=this.#n8.length-1;for(;n<=a;){let l=Math.floor((n+a)/2),i=this.#n8[l],s=i.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=i.start;if(e>=o&&e<o+r){t=i;break}e<o?a=l-1:n=l+1}if(t)return t;for(let t=this.#n8.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sK{#ae=[];#at;constructor(e){this.#at=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#ae[e]||this.#an(e),this.#ae[e]}#an(e){let t=null;for(;e>=this.#ae.length&&(t=this.#at.nextNode());){this.#ae.push(t);break}}}a1=[st("x-text",[ss,sG,sY],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],a2=[],a4=HTMLElement,(class extends a4{static{a0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a4[Symbol.metadata]??null):void 0;i8(null,aQ={value:a0},a1,{kind:"class",name:a0.name,metadata:e},null,a2),a0=aQ.value,e&&Object.defineProperty(a0,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this;static{i6(a0,a2)}}),lq=[st("x-textarea",[ss,(a7=[],le=[],lt=[],ln=[],la=[],ll=[],li=[],ls=[],lr=[],lo=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a3=[sr("placeholder-color",!0)],a8=[sr("placeholder-font-size",!0)],a6=[sr("placeholder-font-weight",!0)],a9=[sr("placeholder-font-family",!0)],a5=[sr("placeholder",!0)],i8(null,null,a3,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#aa in e,get:e=>e.#aa,set:(e,t)=>{e.#aa=t}},metadata:e},a7,le),i8(null,null,a8,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#al in e,get:e=>e.#al,set:(e,t)=>{e.#al=t}},metadata:e},lt,ln),i8(null,null,a6,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#ai in e,get:e=>e.#ai,set:(e,t)=>{e.#ai=t}},metadata:e},la,ll),i8(null,null,a9,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#as in e,get:e=>e.#as,set:(e,t)=>{e.#as=t}},metadata:e},li,ls),i8(null,null,a5,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#ar in e,get:e=>e.#ar,set:(e,t)=>{e.#ar=t}},metadata:e},lr,lo),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#ao=sd(()=>this.#I.shadowRoot,"#textarea");#aa=i6(this,a7,sc(this.#ao,"--placeholder-color",void 0,!0));#al=(i6(this,le),i6(this,lt,sc(this.#ao,"--placeholder-font-size",void 0,!0)));#ai=(i6(this,ln),i6(this,la,sc(this.#ao,"--placeholder-font-weight",void 0,!0)));#as=(i6(this,ll),i6(this,li,sc(this.#ao,"--placeholder-font-family",void 0,!0)));#ar=(i6(this,ls),i6(this,lr,sL(this.#ao,"placeholder")));#I=i6(this,lo);constructor(e){this.#I=e}}),(lp=[],lv=[],lb=[],lg=[],lf=[],ly=[],lE=[],lS=[],lw=[],lx=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ld=[sr("confirm-type",!0)],lc=[sr("maxlength",!0)],lh=[sr("readonly",!0)],lu=[sr("ios-spell-check",!0)],lm=[sr("show-soft-input-onfocus",!0)],i8(null,null,ld,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},lp,lv),i8(null,null,lc,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},lb,lg),i8(null,null,lh,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},lf,ly),i8(null,null,lu,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},lE,lS),i8(null,null,lm,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#ad in e,get:e=>e.#ad,set:(e,t)=>{e.#ad=t}},metadata:e},lw,lx),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#I;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#ta=i6(this,lp,sL(this.#ac,"enterkeyhint",e=>null===e?"send":e));#tl=(i6(this,lv),i6(this,lb,sL(this.#ac,"maxlength",e=>null===e?"140":e)));#ti=(i6(this,lg),i6(this,lf,sL(this.#ac,"readonly",e=>null!==e?"":null)));#ts=(i6(this,ly),i6(this,lE,sL(this.#ac,"spellcheck",e=>null===e?"false":"true")));#ad=(i6(this,lS),i6(this,lw,sL(this.#ac,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i6(this,lx),this.#I=e}}),(lP=[],lM=[],l_=[],lR=[],lN=[],lD=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lC=[sr("confirm-enter",!0)],lO=[sr("disabled",!0)],lI=[sr("max-height",!0)],lL=[sr("min-height",!0)],lk=[sr("value",!1)],i8(this,lT={value:i9(function(e){this.#ah=null!==e},"#handleConfirmEnter")},lC,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#au in e,get:e=>e.#au},metadata:e},null,lP),i8(this,lA={value:i9(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ac();t.value!==e&&(t.value=e)},"#handleValue")},lk,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,lP),i8(null,null,lO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},lM,l_),i8(null,null,lI,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#am in e,get:e=>e.#am,set:(e,t)=>{e.#am=t}},metadata:e},lR,lN),i8(null,null,lL,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#ap in e,get:e=>e.#ap,set:(e,t)=>{e.#ap=t}},metadata:e},lD,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=i6(this,lP);#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");#ah=!1;get #au(){return lT.value}#e5=i6(this,lM,sL(this.#ac,"disabled",e=>null!==e?"":null));#am=(i6(this,l_),i6(this,lR,sc(this.#ac,"max-height")));#ap=(i6(this,lN),i6(this,lD,sc(this.#ac,"min-height")));get #e9(){return lA.value}#av=(i6(this,lF),e=>{this.#ah&&"Enter"===e.key&&this.#tv().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#ac().addEventListener("keyup",this.#av)}}),(l$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lH=[sr("input-filter",!0),sl("lynxinput")],lz=[sr("send-composing-input",!0)],lW=[sl("selection")],i8(this,lj={value:i9(function(e){let t=this.#ac();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableConfirmEvent")},lH,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#ab in e,get:e=>e.#ab},metadata:e},null,l$),i8(this,lU={value:i9(function(e){this.#th=null!==e},"#handleSendComposingInput")},lz,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,l$),i8(this,lV={value:i9(function(e){e?this.#ac().addEventListener("select",this.#tm,{passive:!0}):this.#ac().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},lW,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,l$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i6(this,l$);#th=!1;#ac=sd(()=>this.#I.shadowRoot,"#textarea");#tv=sd(()=>this.#I.shadowRoot,"#form");get #ab(){return lj.value}get #tu(){return lU.value}#tb=e=>{let t=s$[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...sn,detail:{value:this.#ac().value}}))};#to=e=>{let t=this.#ac(),n=this.#I.getAttribute("input-filter"),a=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=a,(!l||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:a,textLength:a.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#ac(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...sn,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return lV.value}#tm=()=>{let e=this.#ac();this.#I.dispatchEvent(new CustomEvent("selection",{...sn,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#ac()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#ac(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sO)],lY=[],lG=HTMLElement,(class extends lG{static{lX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lG[Symbol.metadata]??null):void 0;i8(null,lB={value:lX},lq,{kind:"class",name:lX.name,metadata:e},null,lY),lX=lB.value,e&&Object.defineProperty(lX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(lX,lY)}#ao=sd(()=>this.shadowRoot,"#textarea");get value(){return this.#ao().value}set value(e){this.#ao().value=e}addText(e){let{text:t}=e,n=this.#ao(),a=n.selectionStart;if(null===a)n.value=t;else{let e=n.value;n.value=e.slice(0,a)+t+e.slice(a)}}setValue(e){let t,n=this.#ao();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#ao();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,a=this.#ao();1===t&&(n=1);let l=a.selectionStart;if(null===l){let e=a.value;a.value=a.value.substring(0,e.length-n)}else{let e=a.value;a.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#ao();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#ao().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lZ=[st("x-view",[ss])],lQ=[],l0=HTMLElement,(class extends l0{static{lK=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l0[Symbol.metadata]??null):void 0;i8(null,lJ={value:lK},lZ,{kind:"class",name:lK.name,metadata:e},null,lQ),lK=lJ.value,e&&Object.defineProperty(lK,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(lK,lQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sf.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[si]=this}),l6=[st("x-blur-view",[ss,(l4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l1=[sr("blur-radius",!0)],i8(this,l2={value:i9(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#ag().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#ag().innerHTML=""},"#handleBlurRadius")},l1,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX},metadata:e},null,l4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i6(this,l4);#ag=sd(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return l2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],l9=[],l5=HTMLElement,(class extends l5{static{l8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l5[Symbol.metadata]??null):void 0;i8(null,l3={value:l8},l6,{kind:"class",name:l8.name,metadata:e},null,l9),l8=l3.value,e&&Object.defineProperty(l8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(l8,l9)}}),ir=[st("x-viewpager-ng",[ss,(il=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l7=[sl("change")],it=[sl("offsetchange")],i8(this,ie={value:i9(function(e){this.#af=e,this.#ay()},"#enableChangeEvent")},l7,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#aE in e,get:e=>e.#aE},metadata:e},null,il),i8(this,ia={value:i9(function(e){this.#af=e,this.#ay()},"#enableOffsetChangeEvent")},it,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#aS in e,get:e=>e.#aS},metadata:e},null,il),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i6(this,il);#aw=!1;#t=!1;#ax=0;#V;constructor(e){this.#I=e}#X=sd(()=>this.#I.shadowRoot,"#content");#aC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#af&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#aT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...sn,detail:{offset:n/t}}))};#aT=()=>{if(this.#t){let e=this.#X(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#ax&&(this.#I.dispatchEvent(new CustomEvent("change",{...sn,detail:{index:n,isDragged:this.#aw}})),this.#ax=n)}};#aO=()=>{this.#aw=!0};#aI=()=>{this.#aw=!1};#af=!1;get #aE(){return ie.value}#aL=!1;get #aS(){return ia.value}#ay(){let e=this.#X();this.#aL||this.#af?e.addEventListener("scroll",this.#aC,{passive:!0}):e.removeEventListener("scroll",this.#aC),sp&&this.#af?e.addEventListener("scrollend",this.#aT,{passive:!0}):e.removeEventListener("scrollend",this.#aT)}connectedCallback(){this.#t=!0;let e=this.#X();this.#I.addEventListener("touchstart",this.#aO,{passive:!0}),e.addEventListener("touchend",this.#aI,{passive:!0}),e.addEventListener("touchcancel",this.#aI,{passive:!0})}dispose(){let e=this.#X();e.removeEventListener("scroll",this.#aC),e.removeEventListener("scrollend",this.#aT)}})],sI)],io=[],id=HTMLElement,(class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;i8(null,ii={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),is=ii.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let a=this.shadowRoot.children.item(2),l=a.clientWidth*t;a.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),a=()=>{0===n.clientWidth?requestAnimationFrame(a):this.selectTab({index:t,smooth:!1})};se(a)}}get[sb](){return this}static{i6(is,io)}}),iu=[st("x-viewpager-item-ng",[ss])],im=[],ip=HTMLElement,(class extends ip{static{ih=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;i8(null,ic={value:ih},iu,{kind:"class",name:ih.name,metadata:e},null,im),ih=ic.value,e&&Object.defineProperty(ih,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(ih,im)}}),iE=[st("list-item",[ss,(iv=[],ib=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8(null,null,[sr("estimated-main-axis-size-px",!0)],{kind:"field",name:"#handlerEstimatedMainAxisSizePx",static:!1,private:!0,access:{has:e=>#ak in e,get:e=>e.#ak,set:(e,t)=>{e.#ak=t}},metadata:e},iv,ib),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#I;#ak=i6(this,iv,sc(()=>this.#I,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){i6(this,ib),this.#I=e}})])],iS=[],iw=HTMLElement,class extends iw{static{iy=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iw[Symbol.metadata]??null):void 0;i8(null,ig={value:iy},iE,{kind:"class",name:iy.name,metadata:e},null,iS),iy=ig.value,e&&Object.defineProperty(iy,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i6(iy,iS)}};let sZ=function(e,t,n){let a,l,i,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),a=null,s=e.apply(l,i),a||(l=i=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),r=d,s=e.apply(l,i),a||(l=i=null)):a||n?.trailing===!1||(a=setTimeout(o,c)),s}},sQ="waterfall-slot",s0="waterfall-style";i2=[st("x-list",[ss,(iT=[],iO=[],iI=[],iL=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ix=[sr("sticky-offset",!0)],iC=[sr("span-count",!0),sr("column-count",!0)],i8(null,null,ix,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#aA in e,get:e=>e.#aA,set:(e,t)=>{e.#aA=t}},metadata:e},iT,iO),i8(null,null,iC,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#aP in e,get:e=>e.#aP,set:(e,t)=>{e.#aP=t}},metadata:e},iI,iL),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#I;#aA=i6(this,iT,sc(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#aP=(i6(this,iO),i6(this,iI,sc(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i6(this,iL),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};se(n)}}}),(iH=[],ij=[],iz=[],iU=[],iW=[],iV=[],i$=[],iB=[],iX=[],iq=[],iY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ik=[sl("scrolltoupper")],iA=[sr("upper-threshold-item-count",!0)],iM=[sl("scrolltolower")],i_=[sr("lower-threshold-item-count",!0)],iN=[sl("lynxscroll"),sl("lynxscrollend"),sl("snap")],iD=[sl("scrolltoupperedge")],iF=[sl("scrolltoloweredge")],i8(this,iP={value:i9(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#q():this.#I.children[n-1];a&&this.#aM?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#q():this.#I.children[l-1];i&&this.#aM?.observe(i)},"#handleUpperThresholdItemCountChange")},iA,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#a_ in e,get:e=>e.#a_},metadata:e},null,iH),i8(this,iR={value:i9(function(e,t){let n=null!==t?parseFloat(t):0,a=0===n?this.#Y():this.#I.children[this.#I.children.length-n];a&&this.#aR?.unobserve(a);let l=null!==e?parseFloat(e):0,i=0===l?this.#Y():this.#I.children[this.#I.children.length-l];i&&this.#aR?.observe(i)},"#handleLowerThresholdItemCountChange")},i_,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#aN in e,get:e=>e.#aN},metadata:e},null,iH),i8(null,null,ik,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#aD in e,get:e=>e.#aD,set:(e,t)=>{e.#aD=t}},metadata:e},ij,iz),i8(null,null,iM,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#aF in e,get:e=>e.#aF,set:(e,t)=>{e.#aF=t}},metadata:e},iU,iW),i8(null,null,iN,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#ea in e,get:e=>e.#ea,set:(e,t)=>{e.#ea=t}},metadata:e},iV,i$),i8(null,null,iD,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aH in e,get:e=>e.#aH,set:(e,t)=>{e.#aH=t}},metadata:e},iB,iX),i8(null,null,iF,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#aj in e,get:e=>e.#aj,set:(e,t)=>{e.#aj=t}},metadata:e},iq,iY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=i6(this,iH);#az=sd(()=>this.#I.shadowRoot,"#content");#aM;#aR;#aU;#$=0;#B=0;#aW=!1;#V;#q=sd(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=sd(()=>this.#I.shadowRoot,"#lower-threshold-observer");#J(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l}=this.#az(),i={scrollTop:t,scrollLeft:n,scrollHeight:a,scrollWidth:l,deltaX:n-this.#$,deltaY:t-this.#B,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#$=n,this.#B=t,i}#aV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...sn,detail:this.#J()}))};#aD=i6(this,ij,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#aM||(this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #a_(){return iP.value}#aB=(i6(this,iz),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...sn,detail:this.#J()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#aF=i6(this,iU,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#aR||(this.#aR=new IntersectionObserver(this.#aB,{root:this.#az()})),this.#aU||(this.#aU=new MutationObserver(this.#a$));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aR.observe(n),this.#aU.observe(this.#I,{childList:!0})}else this.#aR&&(this.#aR.disconnect(),this.#aR=void 0),this.#aU&&(this.#aU.disconnect(),this.#aU=void 0)});get #aN(){return iR.value}#a$=(i6(this,iW),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#aR&&(this.#aR.disconnect(),this.#aR=void 0),this.#aR=new IntersectionObserver(this.#aB,{root:this.#az()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#aR.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#aM&&(this.#aM.disconnect(),this.#aM=void 0),this.#aM=new IntersectionObserver(this.#aV,{root:this.#az()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#aM.observe(n)}}});#aX=null;#Q=()=>{this.#aW&&!sp&&(clearTimeout(this.#V),this.#V=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...sn,detail:this.#J()}))};#ea=i6(this,iV,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:a,snap:l}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#aW=null!==a||null!==l;let s=this.#az();if(this.#aX&&s.removeEventListener("scroll",this.#aX),null!==scroll||this.#aW){let e=null!==i?parseFloat(i):0,t=sZ(this.#Q,e,{leading:!0,trailing:!1});this.#aX=t,s.addEventListener("scroll",this.#aX),this.#$=0,this.#B=0}sp&&this.#aW?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i6(this,i$),e=>{let{isIntersecting:t,target:n}=e[0],a=n.id;t&&("upper-threshold-observer"===a?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...sn,detail:this.#J()})):"lower-threshold-observer"===a&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...sn,detail:this.#J()})))});#aH=i6(this,iB,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#aq(e)});#aq=(i6(this,iX),sm(this.#az,this.#q,this.#G));#aj=i6(this,iq,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#aY(e)});#aY=(i6(this,iY),sm(this.#az,this.#Y,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...sn})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#az().scrollTop,n=this.#az().scrollLeft,a=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...sn,detail:{position:a&&e.indexOf(a),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iQ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iG=[sl("scrolltolower")],iK=[sr("list-type",!0)],i8(this,iJ={value:i9(function(e){if(e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#aG(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#az();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}},"#handleXEnableHeaderOffsetEvent")},iG,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,iQ),i8(this,iZ={value:i9(function(e){if("waterfall"===e)this.#aJ(),this.#k||this.#aK(),this.#aU||(this.#aU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#aK()}),this.#aU.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#aU?.disconnect(),this.#aU=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sQ}]`)?.remove()}},"#handlerListType")},iK,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#aZ in e,get:e=>e.#aZ},metadata:e},null,iQ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i6(this,iQ);#az=sd(()=>this.#I.shadowRoot,"#content");#aG=sd(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#aU;get #tM(){return iJ.value}#aJ=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sQ}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#aQ=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let a=0;a<this.#I.children.length;a++){let l=this.#I.children[a],i=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(i):l.getBoundingClientRect().width+parseFloat(i);if(null!==l.getAttribute("full-span")){let a=n[0];for(let t=1;t<e;t++)n[t]>a&&(a=n[t]);for(let t=0;t<e;t++)n[t]=a+r;t?(l.setAttribute(`${s0}-left`,"0"),l.setAttribute(`${s0}-top`,`${a}px`)):(l.setAttribute(`${s0}-left`,`${a}px`),l.setAttribute(`${s0}-top`,"0"))}else{let a=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(a=t,i=n[t]);let o=`calc(${a} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,a)} * ${s})`;t?(l.setAttribute(`${s0}-left`,o),l.setAttribute(`${s0}-top`,`${i}px`)):(l.setAttribute(`${s0}-left`,`${i}px`),l.setAttribute(`${s0}-top`,o)),n[a]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${s0}-left`)),t.style.setProperty("top",t.getAttribute(`${s0}-top`)),t.setAttribute("slot",sQ)}};constructor(e){this.#I=e}#aK=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#aQ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #aZ(){return iZ.value}})],sw)],i4=[],i3=HTMLElement,class extends i3{static{i1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i3[Symbol.metadata]??null):void 0;i8(null,i0={value:i1},i2,{kind:"class",name:i1.name,metadata:e},null,i4),i1=i0.value,e&&Object.defineProperty(i1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#az=sd(()=>this.shadowRoot,"#content");#a0={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#a1={};get scrollTop(){return this.#az().scrollTop}set scrollTop(e){this.#az().scrollTop=e}get scrollLeft(){return this.#az().scrollTop}set scrollLeft(e){this.#az().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#az().scrollTop=0,this.#az().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#az().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#a2=e=>{if(!this.#a0.isScrolling)return;if(!this.#a0.lastTimestamp){this.#a0.lastTimestamp=e,requestAnimationFrame(this.#a2);return}let t=this.#az(),n=(e-this.#a0.lastTimestamp)/1e3*this.#a0.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#a0.lastTimestamp=e;let a="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(a?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#a0.autoStop?(a?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#a0.isScrolling=!1):requestAnimationFrame(this.#a2)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#a0={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#az(),a="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#a0.lastTimestamp=0,a?setTimeout(()=>requestAnimationFrame(this.#a2),0):requestAnimationFrame(this.#a2)}else this.#a0.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#a1),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#a4=()=>Object.values(this.#a1).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#a3=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",a="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#a4();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...sn,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#a4()}}))},100);return}if(a){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#a1[n]&&delete this.#a1[n]:this.#a1[n]=e.target;return}};connectedCallback(){this.#az().addEventListener("contentvisibilityautostatechange",this.#a3,{passive:!0})}static{i6(i1,i4)}}},7075(e,t,n){n.a(e,async function(e,t){try{var a=n(3493);n(6675),n(6269),n(3463),n(1498);var l=e([a]);a=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function i(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),i()}function r(e){localStorage.setItem(c,JSON.stringify(e)),i()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
308
308
  | | \\ \\ / / \\ | \\ \\ / / \\ \\ / / ____| _ \\ | __ \\| | /\\|__ __| ____/ __ \\| __ \\| \\/ |
309
309
  | | \\ \\_/ /| \\| |\\ V / \\ \\ /\\ / /| |__ | |_) | | |__) | | / \\ | | | |__ | | | | |__) | \\ / |
310
310
  | | \\ / | . \\ | > < \\ \\/ \\/ / | __| | _ < | ___/| | / /\\ \\ | | | __|| | | | _ /| |\\/| |