@quicktvui/quicktvui3 0.0.30 → 0.0.32
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/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as n,resolveComponent as o,openBlock as a,createElementBlock as i,normalizeStyle as s,normalizeClass as l,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,renderSlot as p,watchEffect as g,onBeforeUnmount as h,withCtx as m,Fragment as v,createVNode as _,createElementVNode as y,pushScopeId as b,popScopeId as T,reactive as S,watch as I,h as E}from"vue";import{useESToast as x,useES as F,useESLog as P,ESLogLevel as L}from"@extscreen/es3-core";var C=t({name:"qt-button",props:{size:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,o){const a=n(),i=n(!1);return{focused:i,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){i.value=e.isFocused,o.emit("focus",e.isFocused)},onClick:function(e){o.emit("click")}}}});const D=["focusable","enableFocusBorder","focusScale"],N=["gradientBackground"],k=["gradientBackground"],w=["gradientBackground"],O=["src"],A=["src"];function R(e,t,n=!0){let o=e.length;n?e.map(((e,n)=>{n!==o-1&&(e.decoration={bottom:t})})):e.map(((e,n)=>{n!==o-1&&(e.decoration={right:t})}))}C.render=function(e,t,n,g,h,m){const v=o("text-view");return a(),i("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:s(e.buttonStyle),class:l(["quick-button--default",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[c(" gradient "),e.gradientFocusBackground?(a(),i("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,N)):c("v-if",!0),e.gradientSelectedBackground?(a(),i("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,k)):c("v-if",!0),e.gradientBackground?(a(),i("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,w)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(a(),i("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((a(),i("img",{key:0,style:s(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,O)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((a(),i("img",{key:1,style:s(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,A)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(a(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:l([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),i("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:l([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},f(e.text),7)):c("v-if",!0),p(e.$slots,"default")],46,D)},C.__scopeId="data-v-46a594e4",C.__file="src/button/index.vue";const B=e=>e.map(V),$=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=V(e[t])})),n};function V(e){return e?"object"!=typeof e?e:Array.isArray(e)?B(e):$(e):e}var U=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},setup(e,t){x(),F();const o=n();let a=n(2.5),i=[],s=[],l=[],c=[],r="",u=-1,d=!1,f=-1,p=-1,m=-1,v=-1;g((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const _=t=>{0==i.length&&(i=V(t),s=t,a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),e.defaultFocus>-1&&(m&&clearTimeout(m),m=setTimeout((()=>{T(e.defaultFocus),S(e.defaultFocus)}),800)));let n={get(t,n,s){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(l.push(n),-1!=l.indexOf("push"))r="push";else{if(-1!=l.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),a.value<2.2)if(y(),1==e.length||2==e.length)o.value.setListData(c);else if(0==e[1])o.value.setListData(c);else{let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o);else for(let s=0;s<i.list.length;s++)i.list[s],t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==e.length?o.value.deleteItem(Number(e[0]),i.length-e[0]):2==e.length?o.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?a.value>2.29&&E(e[0],e.slice(2)):o.value.updateItemList(e[0],e[1],e.slice(2)));return i.splice(e[0],...e.slice(1)),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("pop"))return r="pop",function(){return t.pop(),a.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),o.value.updateItem(Number(c.length-1),c[c.length-1])):o.value.deleteItem(Number(i.length-1),1),i.pop(),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),i=[],i=V(t),a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize&&!d?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(t=t.concat(f),i=i.concat(f),a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(f.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(f.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(f)}),300);else console.log("concat:参数类型必须为数组");return r="",l=[],Reflect.get(t,n,s)};r=""}const f=Reflect.get(t,n,s);return b(f)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?_(f):(-1==l.indexOf("push")&&(l=[]),f)},set(t,n,f,p){const g=t[n],h=Reflect.set(t,n,f,p);if((!b(g)&&g!==f||b(g))&&"push"!=r)if(l.push(n),i[l[0]]=s[l[0]],a.value<2.2){let e=l[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=i[l[0]],o.value.updateItem(Number(n),c[n]));else for(let s=0;s<a.list.length;s++)if(a.list[s],t++,t==e){c[n].list[s]=i[l[0]];let e=c[n].list[s];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),o.value.updateItem(Number(n),c[n])}}}else o.value.updateItem(Number(l[0]),s[l[0]]);if(n&&"push"==r&&g!==f)l.push(n),i.push(f);else{if("push"==r&&l.length>1)if(a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else{let t=i.slice(l[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(t)}),300)}r="",l=[]}return h}};return new Proxy(t,n)},y=()=>{let t=V(i);c=[];let n=0,o=[];for(let e=0;e<t.length;e++){let n=t[e];if("1003"==n.type)o.push(n);else if(n.decoration.top&&(n.toCompatibleSaveTopVal=n.decoration.top,n.decoration.top=0),n.decoration.bottom&&(n.toCompatibleSaveBottompVal=n.decoration.bottom,n.decoration.bottom=0),o[o.length-1]&&1==o[o.length-1].type)o[o.length-1].list.push(n);else{let e={type:1,list:[]};e.list.push(n),o.push(e)}}for(let t=0;t<o.length;t++){const a=o[t];if("1003"==a.type)c.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const o=a.list[t];let i={top:-1,bottom:-1};o.decoration&&(i.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,i.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:i,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,c.push(s)}}},b=e=>null!==e&&"object"==typeof e,T=e=>{if(a.value<2.2){let t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&o.value.scrollToPosition(n);else for(let i=0;i<a.list.length;i++)a.list[i],t++,t==e&&o.value.scrollToPosition(n)}}else o.value.scrollToPosition(e)},S=e=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","requestChildFocus",[a])}else o.value.requestFocus(e)},I=(e,t)=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},E=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return h((()=>{i=[],c=[],s.length=0,d=!1,l=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),p&&clearTimeout(p),m&&clearTimeout(m)})),{tv_list:o,apkVersion:a,init:_,onItemClick:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{a.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=i.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{p&&clearTimeout(p),p=setTimeout((()=>{a.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=i.length&&o.value.deleteItem(i.length,1):u>2&&o.value.deleteItem(i.length,1)}),400),d=!0},scrollToTop:()=>{o.value.scrollToTop()},clearFocus:()=>{o.value.clearFocus()},blockRootFocus:()=>{o.value.blockRootFocus()},unBlockRootFocus:()=>{o.value.unBlockRootFocus()},setDisplay:e=>{o.value.setDisplay(e)},scrollToPosition:T,scrollToIndex:(e,t,n)=>{if(a.value<2.2){let a=-1;for(let i=0;i<c.length;i++){const s=c[i];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,i,t,n);else for(let l=0;l<s.list.length;l++)s.list[l],a++,a==e&&o.value.scrollToIndex(0,i,t,n)}}else o.value.scrollToIndex(0,e,t,n)},setItemFocused:S,scrollToFocused:e=>{T(e),S(e)},setItemSelected:I,scrollToSelected:(e,t)=>{T(e),I(e,t)},updateItemProps:(e,t,n)=>{o.value.updateItemProps(e,t,n)},setInitPosition:e=>{o.value.setInitPosition(e)},setListData:e=>{f&&clearTimeout(f),f=setTimeout((()=>{o.value.setListData(e)}),100)},insertItem:E,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});function z(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}U.render=function(e,t,n,l,c,r){const u=o("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:e.apkVersion<2.2?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:m((()=>[e.apkVersion<2.2?(a(),i(v,{key:0},[p(e.$slots,"header"),_(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:s({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:m((()=>[p(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),p(e.$slots,"loading")],64)):(a(),i(v,{key:1},[p(e.$slots,"header"),p(e.$slots,"default"),p(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},U.__file="src/grid-view/index.vue";const q="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const W=()=>{},M=/^on[^a-z]/,G=e=>M.test(e),Q=Object.assign,j=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,H=(e,t)=>Y.call(e,t),K=Array.isArray,X=e=>"[object Map]"===ie(e),J=e=>"[object Set]"===ie(e),Z=e=>"function"==typeof e,ee=e=>"string"==typeof e,te=e=>"symbol"==typeof e,ne=e=>null!==e&&"object"==typeof e,oe=e=>ne(e)&&Z(e.then)&&Z(e.catch),ae=Object.prototype.toString,ie=e=>ae.call(e),se=e=>ie(e).slice(8,-1),le=e=>"[object Object]"===ie(e),ce=e=>ee(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,re=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=(e,t)=>!Object.is(e,t),de=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let fe;const pe=()=>fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ge(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=ee(o)?_e(o):ge(o);if(a)for(const e in a)t[e]=a[e]}return t}return ee(e)||ne(e)?e:void 0}const he=/;(?![^(]*\))/g,me=/:([^]+)/,ve=/\/\*[^]*?\*\//g;function _e(e){const t={};return e.replace(ve,"").split(he).forEach((e=>{if(e){const n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ye(e){let t="";if(ee(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function be(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Te;const Se=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ie=e=>(e.w&Pe)>0,Ee=e=>(e.n&Pe)>0,xe=new WeakMap;let Fe=0,Pe=1;const Le=30;let Ce;const De=Symbol("production"!==process.env.NODE_ENV?"iterate":""),Ne=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class ke{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Te){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Ce,t=Oe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ce,Ce=this,Oe=!0,Pe=1<<++Fe,Fe<=Le?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Pe})(this):we(this),this.fn()}finally{Fe<=Le&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];Ie(a)&&!Ee(a)?a.delete(e):t[n++]=a,a.w&=~Pe,a.n&=~Pe}t.length=n}})(this),Pe=1<<--Fe,Ce=this.parent,Oe=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ce===this?this.deferStop=!0:this.active&&(we(this),this.onStop&&this.onStop(),this.active=!1)}}function we(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Oe=!0;const Ae=[];function Re(){Ae.push(Oe),Oe=!1}function Be(){const e=Ae.pop();Oe=void 0===e||e}function $e(e,t,n){if(Oe&&Ce){let o=xe.get(e);o||xe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=Se());!function(e,t){let n=!1;Fe<=Le?Ee(e)||(e.n|=Pe,n=!Ie(e)):n=!e.has(Ce);n&&(e.add(Ce),Ce.deps.push(e),"production"!==process.env.NODE_ENV&&Ce.onTrack&&Ce.onTrack(Q({effect:Ce},t)))}(a,"production"!==process.env.NODE_ENV?{effect:Ce,target:e,type:t,key:n}:void 0)}}function Ve(e,t,n,o,a,i){const s=xe.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&K(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":K(e)?ce(n)&&l.push(s.get("length")):(l.push(s.get(De)),X(e)&&l.push(s.get(Ne)));break;case"delete":K(e)||(l.push(s.get(De)),X(e)&&l.push(s.get(Ne)));break;case"set":X(e)&&l.push(s.get(De))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:i}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?Ue(l[0],c):Ue(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ue(Se(e),c):Ue(Se(e))}}function Ue(e,t){const n=K(e)?e:[...e];for(const e of n)e.computed&&ze(e,t);for(const e of n)e.computed||ze(e,t)}function ze(e,t){(e!==Ce||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(Q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const qe=z("__proto__,__v_isRef,__isVue"),We=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(te)),Me=Ke(),Ge=Ke(!0),Qe=Ke(!0,!0),je=Ye();function Ye(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=At(this);for(let e=0,t=this.length;e<t;e++)$e(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(At)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Re();const n=At(this)[t].apply(this,e);return Be(),n}})),e}function He(e){const t=At(this);return $e(t,"has",e),t.hasOwnProperty(e)}function Ke(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?Ft:xt:t?Et:It).get(n))return n;const i=K(n);if(!e){if(i&&H(je,o))return Reflect.get(je,o,a);if("hasOwnProperty"===o)return He}const s=Reflect.get(n,o,a);return(te(o)?We.has(o):qe(o))?s:(e||$e(n,"get",o),t?s:$t(s)?i&&ce(o)?s:s.value:ne(s)?e?Lt(s):Pt(s):s)}}function Xe(e=!1){return function(t,n,o,a){let i=t[n];if(kt(i)&&$t(i)&&!$t(o))return!1;if(!e&&(wt(o)||kt(o)||(i=At(i),o=At(o)),!K(t)&&$t(i)&&!$t(o)))return i.value=o,!0;const s=K(t)&&ce(n)?Number(n)<t.length:H(t,n),l=Reflect.set(t,n,o,a);return t===At(a)&&(s?ue(o,i)&&Ve(t,"set",n,o,i):Ve(t,"add",n,o)),l}}const Je={get:Me,set:Xe(),deleteProperty:function(e,t){const n=H(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Ve(e,"delete",t,void 0,o),a},has:function(e,t){const n=Reflect.has(e,t);return te(t)&&We.has(t)||$e(e,"has",t),n},ownKeys:function(e){return $e(e,"iterate",K(e)?"length":De),Reflect.ownKeys(e)}},Ze={get:Ge,set:(e,t)=>("production"!==process.env.NODE_ENV&&be(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&be(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},et=Q({},Ze,{get:Qe}),tt=e=>e,nt=e=>Reflect.getPrototypeOf(e);function ot(e,t,n=!1,o=!1){const a=At(e=e.__v_raw),i=At(t);n||(t!==i&&$e(a,"get",t),$e(a,"get",i));const{has:s}=nt(a),l=o?tt:n?Bt:Rt;return s.call(a,t)?l(e.get(t)):s.call(a,i)?l(e.get(i)):void(e!==a&&e.get(t))}function at(e,t=!1){const n=this.__v_raw,o=At(n),a=At(e);return t||(e!==a&&$e(o,"has",e),$e(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function it(e,t=!1){return e=e.__v_raw,!t&&$e(At(e),"iterate",De),Reflect.get(e,"size",e)}function st(e){e=At(e);const t=At(this);return nt(t).has.call(t,e)||(t.add(e),Ve(t,"add",e,e)),this}function lt(e,t){t=At(t);const n=At(this),{has:o,get:a}=nt(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&St(n,o,e):(e=At(e),i=o.call(n,e));const s=a.call(n,e);return n.set(e,t),i?ue(t,s)&&Ve(n,"set",e,t,s):Ve(n,"add",e,t),this}function ct(e){const t=At(this),{has:n,get:o}=nt(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&St(t,n,e):(e=At(e),a=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return a&&Ve(t,"delete",e,void 0,i),s}function rt(){const e=At(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?X(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ve(e,"clear",void 0,void 0,n),o}function ut(e,t){return function(n,o){const a=this,i=a.__v_raw,s=At(i),l=t?tt:e?Bt:Rt;return!e&&$e(s,"iterate",De),i.forEach(((e,t)=>n.call(o,l(e),l(t),a)))}}function dt(e,t,n){return function(...o){const a=this.__v_raw,i=At(a),s=X(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?tt:t?Bt:Rt;return!t&&$e(i,"iterate",c?Ne:De),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${re(e)} operation ${n}failed: target is readonly.`,At(this))}return"delete"!==e&&this}}function pt(){const e={get(e){return ot(this,e)},get size(){return it(this)},has:at,add:st,set:lt,delete:ct,clear:rt,forEach:ut(!1,!1)},t={get(e){return ot(this,e,!1,!0)},get size(){return it(this)},has:at,add:st,set:lt,delete:ct,clear:rt,forEach:ut(!1,!0)},n={get(e){return ot(this,e,!0)},get size(){return it(this,!0)},has(e){return at.call(this,e,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:ut(!0,!1)},o={get(e){return ot(this,e,!0,!0)},get size(){return it(this,!0)},has(e){return at.call(this,e,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:ut(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=dt(a,!1,!1),n[a]=dt(a,!0,!1),t[a]=dt(a,!1,!0),o[a]=dt(a,!0,!0)})),[e,n,t,o]}const[gt,ht,mt,vt]=pt();function _t(e,t){const n=t?e?vt:mt:e?ht:gt;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(H(n,o)&&o in t?n:t,o,a)}const yt={get:_t(!1,!1)},bt={get:_t(!0,!1)},Tt={get:_t(!0,!0)};function St(e,t,n){const o=At(n);if(o!==n&&t.call(e,o)){const t=se(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const It=new WeakMap,Et=new WeakMap,xt=new WeakMap,Ft=new WeakMap;function Pt(e){return kt(e)?e:Dt(e,!1,Je,yt,It)}function Lt(e){return Dt(e,!0,Ze,bt,xt)}function Ct(e){return Dt(e,!0,et,Tt,Ft)}function Dt(e,t,n,o,a){if(!ne(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(se(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function Nt(e){return kt(e)?Nt(e.__v_raw):!(!e||!e.__v_isReactive)}function kt(e){return!(!e||!e.__v_isReadonly)}function wt(e){return!(!e||!e.__v_isShallow)}function Ot(e){return Nt(e)||kt(e)}function At(e){const t=e&&e.__v_raw;return t?At(t):e}const Rt=e=>ne(e)?Pt(e):e,Bt=e=>ne(e)?Lt(e):e;function $t(e){return!(!e||!0!==e.__v_isRef)}const Vt={get:(e,t,n)=>{return $t(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return $t(a)&&!$t(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Ut=[];function zt(e,...t){if("production"===process.env.NODE_ENV)return;Re();const n=Ut.length?Ut[Ut.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Ut[Ut.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Gt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${co(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,a=` at <${co(e.component,e.type,o)}`,i=">"+n;return e.props?[a,...qt(e.props),i]:[a+i]}(e))})),t}(a)),console.warn(...n)}Be()}function qt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Wt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Wt(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:$t(t)?(t=Wt(e,At(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=At(t),n?t:[`${e}=`,t])}const Mt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Gt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){jt(e,t,n)}return a}function Qt(e,t,n,o){if(Z(e)){const a=Gt(e,t,n,o);return a&&oe(a)&&a.catch((e=>{jt(e,t,n)})),a}const a=[];for(let i=0;i<e.length;i++)a.push(Qt(e[i],t,n,o));return a}function jt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,i="production"!==process.env.NODE_ENV?Mt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Gt(s,null,10,[e,a,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Mt[t];if(n&&(a=n,Ut.push(a)),zt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&Ut.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Yt=!1,Ht=!1;const Kt=[];let Xt=0;const Jt=[];let Zt=null,en=0;const tn=Promise.resolve();let nn=null;const on=100;function an(e){const t=nn||tn;return e?t.then(this?e.bind(this):e):t}function sn(e){Kt.length&&Kt.includes(e,Yt&&e.allowRecurse?Xt+1:Xt)||(null==e.id?Kt.push(e):Kt.splice(function(e){let t=Xt+1,n=Kt.length;for(;t<n;){const o=t+n>>>1;rn(Kt[o])<e?t=o+1:n=o}return t}(e.id),0,e),ln())}function ln(){Yt||Ht||(Ht=!0,nn=tn.then(dn))}function cn(e){K(e)?Jt.push(...e):Zt&&Zt.includes(e,e.allowRecurse?en+1:en)||Jt.push(e),ln()}const rn=e=>null==e.id?1/0:e.id,un=(e,t)=>{const n=rn(e)-rn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dn(e){Ht=!1,Yt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Kt.sort(un);const t="production"!==process.env.NODE_ENV?t=>fn(e,t):W;try{for(Xt=0;Xt<Kt.length;Xt++){const e=Kt[Xt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Gt(e,null,14)}}}finally{Xt=0,Kt.length=0,function(e){if(Jt.length){const t=[...new Set(Jt)];if(Jt.length=0,Zt)return void Zt.push(...t);for(Zt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Zt.sort(((e,t)=>rn(e)-rn(t))),en=0;en<Zt.length;en++)"production"!==process.env.NODE_ENV&&fn(e,Zt[en])||Zt[en]();Zt=null,en=0}}(e),Yt=!1,nn=null,(Kt.length||Jt.length)&&dn(e)}}function fn(e,t){if(e.has(t)){const n=e.get(t);if(n>on){const e=t.ownerInstance,n=e&&lo(e.type);return zt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const pn=new Set;"production"!==process.env.NODE_ENV&&(pe().__VUE_HMR_RUNTIME__={createRecord:vn((function(e,t){if(gn.has(e))return!1;return gn.set(e,{initialDef:hn(t),instances:new Set}),!0})),rerender:vn((function(e,t){const n=gn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,hn(e.type).render=t),e.renderCache=[],e.update()}))})),reload:vn((function(e,t){const n=gn.get(e);if(!n)return;t=hn(t),mn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=hn(e.type);pn.has(o)||(o!==n.initialDef&&mn(o,t),pn.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(pn.add(o),e.ceReload(t.styles),pn.delete(o)):e.parent?sn(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}cn((()=>{for(const e of o)pn.delete(hn(e.type))}))}))});const gn=new Map;function hn(e){return ro(e)?e.__vccOpts:e}function mn(e,t){Q(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function vn(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let _n=null,yn=null;const bn={};function Tn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:s}=q){var l;"production"===process.env.NODE_ENV||t||(void 0!==n&&zt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&zt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{zt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},r=Te===(null==(l=to)?void 0:l.scope)?to:null;let u,d,f=!1,p=!1;if($t(e)?(u=()=>e.value,f=wt(e)):Nt(e)?(u=()=>e,o=!0):K(e)?(p=!0,f=e.some((e=>Nt(e)||wt(e))),u=()=>e.map((e=>$t(e)?e.value:Nt(e)?In(e):Z(e)?Gt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):Z(e)?u=t?()=>Gt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Qt(e,r,3,[g])}:(u=W,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>In(e())}let g=e=>{d=_.onStop=()=>{Gt(e,r,4)}},h=p?new Array(e.length).fill(bn):bn;const m=()=>{if(_.active)if(t){const e=_.run();(o||f||(p?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(d&&d(),Qt(t,r,3,[e,h===bn?void 0:p&&h[0]===bn?[]:h,g]),h=e)}else _.run()};let v;m.allowRecurse=!!t,"sync"===a?v=m:"post"===a?v=()=>Vn(m,r&&r.suspense):(m.pre=!0,r&&(m.id=r.uid),v=()=>sn(m));const _=new ke(u,v);"production"!==process.env.NODE_ENV&&(_.onTrack=i,_.onTrigger=s),t?n?m():h=_.run():"post"===a?Vn(_.run.bind(_),r&&r.suspense):_.run();return()=>{_.stop(),r&&r.scope&&j(r.scope.effects,_)}}function Sn(e,t,n){const o=this.proxy,a=ee(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let i;Z(t)?i=t:(i=t.handler,n=t);const s=to;oo(this);const l=Tn(a,i.bind(o),n);return s?oo(s):ao(),l}function In(e,t){if(!ne(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),$t(e))In(e.value,t);else if(K(e))for(let n=0;n<e.length;n++)In(e[n],t);else if(J(e)||X(e))e.forEach((e=>{In(e,t)}));else if(le(e))for(const n in e)In(e[n],t);return e}function En(e,t){return Z(e)?(()=>Q({name:e.name},t,{setup:e}))():e}const xn=Symbol.for("v-ndc"),Fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,de(n,"__v_skip",!0),Nt(t=n)?t:new Proxy(t,Vt)),{get:(t,n)=>n in t?t[n]:n in Pn?Pn[n](e):void 0,has:(e,t)=>t in e||t in Pn}));var t;var n}(e)||e.proxy:Fn(e.parent):null,Pn=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?Ct(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?Ct(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?Ct(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?Ct(e.refs):e.refs,$parent:e=>Fn(e.parent),$root:e=>Fn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;l?c=l:a.length||n||o?(c={},a.length&&a.forEach((e=>kn(c,e,s,!0))),kn(c,t,s)):c=t;ne(t)&&i.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>sn(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Sn.bind(e):W}),Ln=(e,t)=>e!==q&&!e.__isScriptSetup&&H(e,t),Cn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:i,accessCache:s,type:l,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(Ln(o,t))return s[t]=1,o[t];if(a!==q&&H(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&H(r,t))return s[t]=3,i[t];if(n!==q&&H(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!Nn||(s[t]=0)}}const u=Pn[t];let d,f;return u?("$attrs"===t?($e(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&$e(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==q&&H(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,H(f,t)?f[t]:void("production"===process.env.NODE_ENV||!_n||ee(t)&&0===t.indexOf("__v")||(a!==q&&(e=>"_"===e||"$"===e)(t[0])&&H(a,t)?zt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===_n&&zt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return Ln(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&H(a,t)?(zt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==q&&H(o,t)?(o[t]=n,!0):H(e.props,t)?("production"!==process.env.NODE_ENV&&zt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&zt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:i}},s){let l;return!!n[s]||e!==q&&H(e,s)||Ln(t,s)||(l=i[0])&&H(l,s)||H(o,s)||H(Pn,s)||H(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Dn(e){return K(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(Cn.ownKeys=e=>(zt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Nn=!0;function kn(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&kn(e,i,n,!0),a&&a.forEach((t=>kn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&zt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=wn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const wn={data:On,props:$n,emits:$n,methods:Bn,computed:Bn,beforeCreate:Rn,created:Rn,beforeMount:Rn,mounted:Rn,beforeUpdate:Rn,updated:Rn,beforeDestroy:Rn,beforeUnmount:Rn,destroyed:Rn,unmounted:Rn,activated:Rn,deactivated:Rn,errorCaptured:Rn,serverPrefetch:Rn,components:Bn,directives:Bn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=Q(Object.create(null),e);for(const o in t)n[o]=Rn(e[o],t[o]);return n},provide:On,inject:function(e,t){return Bn(An(e),An(t))}};function On(e,t){return t?e?function(){return Q(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function An(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Rn(e,t){return e?[...new Set([].concat(e,t))]:t}function Bn(e,t){return e?Q(Object.create(null),e,t):t}function $n(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Q(Object.create(null),Dn(e),Dn(null!=t?t:{})):t}const Vn=function(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):cn(e)},Un=Symbol.for("v-fgt"),zn=Symbol.for("v-txt"),qn=Symbol.for("v-cmt");let Wn=null;const Mn="__vInternal",Gn=({key:e})=>null!=e?e:null,Qn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?ee(e)||$t(e)||Z(e)?{i:_n,r:e,k:t,f:!!n}:e:null);const jn="production"!==process.env.NODE_ENV?(...e)=>Yn(...e):Yn;function Yn(e,t=null,n=null,o=0,a=null,i=!1){if(e&&e!==xn||("production"===process.env.NODE_ENV||e||zt(`Invalid vnode type when creating vnode: ${e}.`),e=qn),(s=e)&&!0===s.__v_isVNode){const o=Hn(e,t,!0);return n&&Jn(o,n),!i&&Wn&&(6&o.shapeFlag?Wn[Wn.indexOf(e)]=o:Wn.push(o)),o.patchFlag|=-2,o}var s;if(ro(e)&&(e=e.__vccOpts),t){t=function(e){return e?Ot(e)||Mn in e?Q({},e):e:null}(t);let{class:e,style:n}=t;e&&!ee(e)&&(t.class=ye(e)),ne(n)&&(Ot(n)&&!K(n)&&(n=Q({},n)),t.style=ge(n))}const l=ee(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ne(e)?4:Z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&Ot(e)&&zt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=At(e)),function(e,t=null,n=null,o=0,a=null,i=(e===Un?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gn(t),ref:t&&Qn(t),scopeId:yn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:_n};return l?(Jn(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=ee(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&zt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Wn&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Wn.push(c),c}(e,t,n,o,a,l,i,!0)}function Hn(e,t,n=!1){const{props:o,ref:a,patchFlag:i,children:s}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=ye([t.class,o.class]));else if("style"===e)t.style=ge([t.style,o.style]);else if(G(e)){const n=t[e],a=o[e];!a||n===a||K(n)&&n.includes(a)||(t[e]=n?[].concat(n,a):a)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Gn(l),ref:t&&t.ref?n&&a?K(a)?a.concat(Qn(t)):[a,Qn(t)]:Qn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&K(s)?s.map(Kn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Un?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kn(e){const t=Hn(e);return K(e.children)&&(t.children=e.children.map(Kn)),t}function Xn(e=" ",t=0){return jn(zn,null,e,t)}function Jn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(K(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Jn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Mn in t?3===o&&_n&&(1===_n.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=_n}}else Z(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),64&o?(n=16,t=[Xn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Zn,eo,to=null,no="__VUE_INSTANCE_SETTERS__";(eo=pe()[no])||(eo=pe()[no]=[]),eo.push((e=>to=e)),Zn=e=>{eo.length>1?eo.forEach((t=>t(e))):eo[0](e)};const oo=e=>{Zn(e),e.scope.on()},ao=()=>{to&&to.scope.off(),Zn(null)};const io=/(?:^|[-_])(\w)/g,so=e=>e.replace(io,(e=>e.toUpperCase())).replace(/[-_]/g,"");function lo(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function co(e,t,n=!1){let o=lo(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?so(o):n?"App":"Anonymous"}function ro(e){return Z(e)&&"__vccOpts"in e}var uo=En({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const fo={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},po={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};uo.render=function(e,t,n,s,l,r){const u=o("text-view");return a(),i("div",fo,[c(" 浮动标题"),_(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),y("div",po,[c(" 主标题 "),_(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),c(" 副标题 "),_(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},uo.__scopeId="data-v-703673b8",uo.__file="src/poster/qt-poster-focus-title.vue";var go=En({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const ho={class:"cornerRoot",focusable:!1};go.render=function(e,t,n,s,l,c){const r=o("text-view");return a(),i("div",ho,[_(r,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},go.__scopeId="data-v-4b767ea2",go.__file="src/poster/qt-poster-corner-title.vue";var mo=En({name:"qt-poster",components:{"qt-poster-corner-title":go,"qt-poster-focus-title":uo},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const vo=["enableFocusBorder"],_o=["showOnState"],yo={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},bo={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},To=(e=>(b("data-v-3c4765e9"),e=e(),T(),e))((()=>y("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));mo.render=function(e,t,n,i,s,l){const r=o("qt-poster-focus-title"),u=o("text-view"),f=o("ripple-view"),g=o("qt-poster-corner-title"),h=o("item-frame");return a(),d(h,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:m((()=>[c("封面"),y("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,vo),c(" 焦点选中时的标题 "),_(r,{focusable:!1,showOnState:"focused"}),y("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),y("div",yo,[_(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),c(" 主标题"),_(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,_o),y("div",bo,[_(f,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),To]),_(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),p(e.$slots,"default")])),_:3},8,["type","focusable"])},mo.__scopeId="data-v-3c4765e9",mo.__file="src/poster/index.vue";var So=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},className:{type:String,default:"list_view"},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const o=n();let a=n("#f5f5f5"),i=S({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,l=-1;I((()=>e.navs),(e=>{e.length>0&&c(e)}));const c=t=>{t||(t=[]),t.forEach(((t,n)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),o.value?.setListData(t),clearTimeout(l);let n=e.initSelect;n>-1&&(o.value?.scrollToPosition(n),l=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:i,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Io=["stateTextColor","sateBackgroundPadding"],Eo=["stateTextColor","sateBackgroundPadding"];var xo,Fo;So.render=function(e,t,n,i,c,r){const u=o("text-view"),f=o("qt-list-view");return e.horizontal?(a(),d(f,{key:0,class:l([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:m((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:s({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Io),p(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(f,{key:1,class:l([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:m((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:s({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Eo),p(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},So.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_TAB=1003]="QT_WATERFALL_SECTION_TYPE_TAB",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST",e[e.QT_WATERFALL_SECTION_TYPE_CARD=1006]="QT_WATERFALL_SECTION_TYPE_CARD",e[e.QT_WATERFALL_SECTION_TYPE_VUE=1007]="QT_WATERFALL_SECTION_TYPE_VUE",e[e.QT_WATERFALL_SECTION_TYPE_END=-1001]="QT_WATERFALL_SECTION_TYPE_END",e[e.QT_WATERFALL_SECTION_TYPE_BLANK=-1e3]="QT_WATERFALL_SECTION_TYPE_BLANK"}(xo||(xo={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB",e[e.QT_WATERFALL_ITEM_TYPE_CARD=10003]="QT_WATERFALL_ITEM_TYPE_CARD"}(Fo||(Fo={}));var Po=En({name:"card-item",setup:()=>({})});Po.render=function(e,t,n,i,s,l){const c=o("es-card-vew");return a(),d(c,{layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",type:10003,class:"qt-ui-waterfall-card-item"})},Po.__scopeId="data-v-599898aa",Po.__file="src/waterfall/item/card-item.vue";var Lo=En({name:"standard-section",components:{"card-item":Po},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:xo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Fo.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const Co=["type"];Lo.render=function(e,t,n,s,l,r){const u=o("text-view"),d=o("qt-poster"),f=o("card-item"),g=o("tv-flex");return a(),i("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),_(d,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),_(f),p(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Co)},Lo.__scopeId="data-v-227e921e",Lo.__file="src/waterfall/section/flex-section.vue";const Do="tab-list-section";var No=En({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:xo.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const n=P();return{blockDirections:["left","right"],onItemBind:function(e){n.isLoggable(L.DEBUG)&&n.d(Do,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(L.DEBUG)&&n.d(Do,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(L.DEBUG)&&n.d(Do,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(L.DEBUG)&&n.d(Do,"----------onItemFocused--------------\x3e>>",e)}}}});const ko={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},wo=["type"];No.render=function(e,t,n,i,s,l){const c=o("text-view"),r=o("qt-poster"),u=o("tv-list"),f=o("tv-item");return a(),d(f,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:e.onItemClick,onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:m((()=>[y("div",ko,[_(c,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{list:"${itemList}",horizontal:"",clipChildren:!1,focusable:!1,class:"tab-list-section-list-css",name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:m((()=>[_(r,{type:e.standItemType},null,8,["type"]),y("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,flexStyle:"${style}",style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventClick:"",eventFocus:""},[_(c,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",flexStyle:"${textStyle}",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,wo),p(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},No.__scopeId="data-v-88e60816",No.__file="src/waterfall/section/tabs-list-section.vue";var Oo=En({name:"loading-section"});const Ao={focusable:!1,type:-1,class:"loading-section-css"};Oo.render=function(e,t,n,s,l,c){const r=o("qt-loading-view");return a(),i("div",Ao,[_(r,{class:"loading-section-loading-css"})])},Oo.__scopeId="data-v-48609f24",Oo.__file="src/waterfall/section/loading-section.vue";var Ro=En({name:"end-section",setup:()=>({})});const Bo={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Ro.render=function(e,t,n,s,l,c){const r=o("text-view");return a(),i("div",Bo,[_(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Ro.__scopeId="data-v-70b82c43",Ro.__file="src/waterfall/section/end-section.vue";var $o=En({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:xo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Vo=["type"];$o.render=function(e,t,n,l,c,r){const u=o("text-view");return a(),i("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:s({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Vo)},$o.__scopeId="data-v-20428d40",$o.__file="src/waterfall/section/section-title.vue";var Uo=En({name:"blank-section",setup:()=>({})});const zo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};Uo.render=function(e,t,n,o,s,l){return a(),i("div",zo)},Uo.__scopeId="data-v-eeab4d88",Uo.__file="src/waterfall/section/blank-section.vue";var qo=En({name:"card-section",setup:()=>({})});const Wo={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};qo.render=function(e,t,n,s,l,c){const r=o("text-view"),u=o("es-card-vew");return a(),i("div",Wo,[_(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{cardId:"${cardId}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"})])},qo.__scopeId="data-v-43a44788",qo.__file="src/waterfall/section/card-section.vue";var Mo=En({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Go(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=Qo(e,t[o]);n.push(a)}return n}function Qo(e,t){let n=0;return t.itemList.length>0&&(n=function(e,t){const n=t.itemList,o=t.style?.spacing??0,a=t.titleStyle,i=a?.height??0,s=a?.marginTop??0,l=a?.marginBottom??0,c=a?.paddingTop??0,r=a?.paddingBottom??0;let u=0,d=0,f=0,p=0;for(let t=0;t<n.length;t++){const a=n[t],i=a.decoration,s=i?.left??0,l=i?.top??0,c=i?.right??0,r=i?.bottom??0;let g=a?.style.width??0,h=a?.style.height??0;u+g+c>=e&&(d+=f+o,f=0,u=0),a.layout||(a.layout=[0,0,g,h]),a.layout[0]=u+s,a.layout[1]=d+l,a.layout[1]+h+r>p&&(p=a.layout[1]+h+r),h+l+r>f&&(f=h+l+r),u+=g+o+s+c}return p+i+s+l+c+r}(e.width,t),t.style.height=n),t}function jo(){let e=[];function t(e){return e.itemList.length}function n(n,o){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(n<0||n>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let i=n+o;n+o>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<i;o++){s+=t(e[o])}return s}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const i=e.length,s=n(0,i),l=function(e){if(e.length<=0)return 0;let n=0;for(let o=0;o<e.length;o++){n+=t(e[o])}return n}(a);return e.push(...a),o(),{sectionIndex:i,sectionCount:a.length,itemIndex:s,itemCount:l}},deleteSection:function(t,a){const i=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:i,itemCount:s}},updateSection:function(a,i){const s=n(0,a-1),l=t(i);return e.splice(a,1,i),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:l}},getSection:function(t){if(!(t<0||t>=e.length||0==e.length))return e[t]},addItemList:function(t,n){const a=e.length;if(t<0||t>=a||n.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const i=e[t],s=i.itemList.length;return i.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:n.length}},deleteItem:function(t,n,a){return e[t].itemList.splice(n,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},updateItem:function(t,n,a){return e[t].itemList.splice(n,1,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:1}},updateItemList:function(t,n,a,i){return e[t].itemList.splice(n,a,...i),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},getItem:function(t,n){const o=e[t];if(o&&o.itemList.length>0&&n>=0&&n<o.itemList.length){return o.itemList[n]}},destroy:function(){e=[]}}}Mo.render=function(e,t,n,i,s,l){const c=o("tv-item");return a(),d(c,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[p(e.$slots,"default")])),_:3},8,["onItemBind"])},Mo.__scopeId="data-v-f8447724",Mo.__file="src/waterfall/section/vue-section.vue";const Yo="qt-waterfall";var Ho,Ko=En({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onSectionBind","onSectionAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90}},setup(e,t){const o=P(),a={name:"tvList"+Date.now(),size:{20008:10}},i=n();let s;const l=jo();return{waterfallRef:i,init:function(e){s=e},getSectionList:function(){return l.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(L.DEBUG)&&o.d(Yo,"-------1---setSectionList--------------\x3e>>"),l.destroy();const t=l.addSectionList(e);o.isLoggable(L.DEBUG)&&o.d(Yo,"-------2---setSectionList--------------\x3e>>",t);const n=Go(s,e);o.isLoggable(L.DEBUG)&&o.d(Yo,"----------setSectionList-----最终数据---------\x3e>>",n),i.value?.setListData(n)},addSectionList:function(e){if(!s)return;l.addSectionList(e);const t=Go(s,e);o.isLoggable(L.DEBUG)&&o.d(Yo,"----------addSectionList-----最终数据---------\x3e>>",t),i.value?.addListData(t)},deleteSection:function(e,t){const n=l.deleteSection(e,t);o.isLoggable(L.DEBUG)&&o.d(Yo,"----------deleteSection-----最终数据---------\x3e>>",n),i.value?.deleteItem(e,t)},updateSection:function(e,t){l.updateSection(e,t);const n=Qo(s,t);o.isLoggable(L.DEBUG)&&o.d(Yo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),i.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];l.updateSection(e+t,a);const i=Qo(s,a);i&&o.push(i)}i.value?.updateItemList(e,t,o)},getSection:function(e){return l.getSection(e)},addItemList:function(e,t){l.addItemList(e,t);const n=l.getSection(e);if(n){const t=Qo(s,n);i.value?.updateItem(e,t)}},deleteItem:function(e,t,n){l.deleteItem(e,t,n);const o=l.getSection(e);if(o){const t=Qo(s,o);i.value?.updateItem(e,t)}},updateItem:function(e,t,n){l.updateItem(e,t,n);const o=l.getSection(e);if(o){const t=Qo(s,o);i.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){l.updateItemList(e,t,n,o);const a=l.getSection(e);if(a){const t=Qo(s,a);i.value?.updateItem(e,t)}},getItem:function(e,t){return l.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let n=e.offsetY,o=e.offsetX;t.emit("onScroll",o,n)},onItemClick:function(e){o.isLoggable(L.DEBUG)&&o.d(Yo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(L.DEBUG)&&o.d(Yo,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){o.isLoggable(L.DEBUG)&&o.d(Yo,"----------onSectionBind--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionBind",n,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(L.DEBUG)&&o.d(Yo,"----------onSectionAttached--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionAttached",n,e.position)}},onScrollStateChanged:function(e){let n=e.offsetY,o=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",o,n,a)},resumePostTask:function(){i.value?.pausePostTask()},pausePostTask:function(){i.value?.pausePostTask()},clearPostTask:function(){i.value?.clearPostTask()},destroy:function(){i.value?.destroy()}}},components:{"flex-section":Lo,"tabs-list-section":No,"section-title":$o,"loading-section":Oo,"end-section":Ro,"blank-section":Uo,"card-section":qo,"vue-section":Mo}});function Xo(){const e=new Map,t=new Map;function n(n){const o={index:n,state:Ho.QT_TAB_PAGE_STATE_IDLE};e.set(n,o),t.set(n,[])}function o(e){return e.itemList.length}function a(e,t,n){const a=e.length;if(t<0||t>=a)return 0;let i=t+n;t+n>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<i;n++){s+=o(e[n])}return s}function i(){console.log("--------dumpTabWaterfallData---------\x3e>>>",t)}return{initTab:function(e){const t=e.itemList;for(let e=0;e<t.length;e++)n(e)},getTabPageData:function(t){return e.get(t)},setTabPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,s){const l=t.get(n)??[],c=l.length,r=a(l,0,c),u=function(e){if(e.length<=0)return 0;let t=0;for(let n=0;n<e.length;n++){t+=o(e[n])}return t}(s);l.push(...s);const d=e.get(n);return d&&(d.state=Ho.QT_TAB_PAGE_STATE_IDLE),i(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],l=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),i(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:l,itemCount:c}},updateSection:function(e,n,s){const l=t.get(e)??[],c=a(l,0,n-1),r=o(s);return l.splice(n,1,s),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),i(),{pageIndex:e,sectionIndex:0,sectionCount:n.length,itemIndex:-1,itemCount:-1}},getSection:function(e,n){const o=t.get(e)??[];if(!(n<0||n>=o.length||0==o.length))return o[n]},addItemList:function(e,n,o){const a=t.get(e)??[],s=a.length;if(n<0||n>=s||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const l=a[n],c=l.itemList.length;return l.itemList.push(...o),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},updateItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,1,a),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,s){return(t.get(e)??[])[n].itemList.splice(o,a,...s),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},getItem:function(e,n,o){const a=(t.get(e)??[])[n];if(a&&a.itemList.length>0&&o>=0&&o<a.itemList.length){return a.itemList[o]}},destroy:function(){t.clear()}}}Ko.render=function(e,t,n,i,s,l){const r=o("flex-section"),u=o("tabs-list-section"),f=o("loading-section"),g=o("end-section"),h=o("blank-section"),v=o("card-section"),y=o("vue-section"),b=o("tv-list");return a(),d(b,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onSectionBind,onItemAttached:e.onSectionAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:["down"],onScrollStateChanged:e.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),_(r,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:m((()=>[p(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),c("一行滚动 多级tab"),_(u,{enablePlaceholder:e.enablePlaceholder},{default:m((()=>[p(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),_(f),c(" end "),_(g),c(" blank "),_(h),c(" card "),_(v),c(" vue "),_(y,null,{default:m((()=>[p(e.$slots,"vue-section")])),_:3}),p(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},Ko.__scopeId="data-v-2e65df68",Ko.__file="src/waterfall/index.vue",function(e){e[e.QT_TAB_PAGE_STATE_IDLE=0]="QT_TAB_PAGE_STATE_IDLE",e[e.QT_TAB_PAGE_STATE_BUSY=1]="QT_TAB_PAGE_STATE_BUSY",e[e.QT_TAB_PAGE_STATE_COMPLETE=2]="QT_TAB_PAGE_STATE_COMPLETE",e[e.QT_TAB_PAGE_STATE_ERROR=3]="QT_TAB_PAGE_STATE_ERROR"}(Ho||(Ho={}));const Jo="qt-tab";var Zo,ea,ta,na=En({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused"],props:{preloadNumber:{type:Number,default:3},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const o=n(),a=n(!0),i=n(300),s=n(500),l=n(1),c=n(!0),r=P(),u=n(),d=Xo();let f,p=-1;function g(e,t){const n=d.getTabPageData(e);n&&(n.state=t,d.setTabPageData(e,n))}function h(n,o,a){let i=d.getTabPageData(n);if(i&&i.state===Ho.QT_TAB_PAGE_STATE_IDLE){a>=d.getSectionList(n).length-e.preloadNumber-1&&(r.isLoggable(L.DEBUG)&&r.d(Jo,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),g(n,Ho.QT_TAB_PAGE_STATE_BUSY))}else r.isLoggable(L.DEBUG)&&r.d(Jo,"----------loadPageData--状态不对--\x3e>>>",n)}return{tabs:o,ifTabs:a,navBarRef:u,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};d.initTab(e),o.value?.setTabsData(t)},initWaterfall:function(e){f=e},setTagPageSate:g,setTabPageData:function(e,t){r.isLoggable(L.DEBUG)&&r.d(Jo,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const n={data:Go(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(L.DEBUG)&&r.d(Jo,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){r.isLoggable(L.DEBUG)&&r.d(Jo,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const a={data:Go(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(L.DEBUG)&&r.d(Jo,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){d.updateSectionList(e,t.data);const n={data:Go(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){d.updateSection(e,t,n);const a=Qo(f,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return d.getSection(e,t)},getPageSectionList:function(e){return d.getSectionList(e)},deletePageSection:function(e,t,n){d.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){d.addItemList(e,t,n);const a=d.getSection(e,t);if(a){const n=Qo(f,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return d.getItem(e,t,n)},updatePageItem:function(e,t,n,a){d.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){d.deleteItem(e,t,n,a);const i=d.getSection(e,t);if(i){const n=Qo(f,i);o.value?.updateRootNode(e,t,n)}},blockRootFocus:function(){o.value?.blockRootFocus()},unBlockRootFocus:function(){o.value?.unBlockRootFocus()},focusBackToTop:function(){o.value?.focusBackToTop()},requestNodeFocus:function(e){o.value?.requestNodeFocus(e)},reloadAll:function(e=!0){o.value?.reloadAll(e)},reloadPage:function(e){o.value?.reloadPage(e)},setCurrentPage:function(e){o.value?.setCurrentPage(e)},requestTabFocus:function(e){o.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,n){o.value?.invokeContentFunction(e,t,n)},invokeContentFunctionDirect:function(e,t){o.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){o.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,n){o.value?.getRootNodeViewState(e,t,n)},getChildNodeViewState:function(e,t,n,a,i){o.value?.getChildNodeViewState(e,t,n,a,i)},dispatchUIFunctionOnChildNode:function(e,t,n,a,i){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,i)},updateItemMatched:function(e="id",t,n){o.value?.updateItemMatched(e,t,n)},updateRootNode:function(e,t,n){o.value?.updateRootNode(e,t,n)},updateChildNode:function(e,t,n,a){o.value?.updateChildNode(e,t,n,a)},destroy:function(){o.value?.destroy()},pageSwitchDelay:i,pageResumeDelay:s,rootOpacity:l,isTabHorizontal:c,onLoadTabPageData:function(e){const t=e.pageIndex,n=e.useDiff;r.isLoggable(L.DEBUG)&&r.d(Jo,"----------loadPageData----android--\x3e>>>pageIndex:"+t),h(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;p=n;const o=e.data;r.isLoggable(L.DEBUG)&&r.d(Jo,"----------onTabPageChanged------\x3e>>> pageIndex:"+n+" data:",o),t.emit("onTabPageChanged",n,o)},onTabEvent:function(e){const n=e.params,o=e.eventName,a=e.params.itemPosition;t.emit("onTabEvent",a,o,n)},onWaterfallItemClick:function(e,n,o){r.isLoggable(L.DEBUG)&&r.d(Jo,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",p,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){r.isLoggable(L.DEBUG)&&r.d(Jo,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",p,e,n,o,a)},onWaterfallSectionBind:function(e,t){r.isLoggable(L.DEBUG)&&r.d(Jo,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===p&&(r.isLoggable(L.DEBUG)&&r.d(Jo,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),h(e,!1,t))},onWaterfallSectionAttached:function(e,t){r.isLoggable(L.DEBUG)&&r.d(Jo,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t)}}}});na.render=function(e,t,n,i,s,r){const u=o("qt-nav-bar"),f=o("qt-waterfall"),g=o("recycler-view-pager"),h=o("tabs");return e.ifTabs?(a(),d(h,{key:0,ref:"tabs",class:l(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.pageSwitchDelay,resumeTaskDelay:e.pageResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:["down"],onLoadPage:e.onLoadTabPageData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:m((()=>[_(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:"tab-nav-bar-root-css","class-name":e.tabNavBarClass,"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:m((()=>[p(e.$slots,"tab-item")])),_:3},8,["class-name","horizontal"]),_(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:l(e.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:m((()=>[_(f,{onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:m((()=>[p(e.$slots,"waterfall-item")])),section:m((()=>[p(e.$slots,"waterfall-section")])),_:3},8,["onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},na.__file="src/tab/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(Zo||(Zo={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(ea||(ea={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(ta||(ta={}));const oa=[C,U,mo,So,Ko,na],aa=o=>{o.component("qt-loading-view",{setup(e,t){const o=n();return()=>E("LoadingViewComponent",{ref:o})}}),function(o){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,o){const a=n();F(),console.log("222222222222222222222222222222"),console.log(2.5,"33333333333333333333333");let i=[],s=[],l=[],c="",r=-1,u=!1,d=-1,f=-1,p=-1,m=-1;g((()=>{t.openPage&&(r=1,u=!1,t.loadMore(r))}));const v=e=>{0==i.length&&(i=V(e),_(i,-1),s=e,t.openPage?T(i.concat([{type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):T(i),t.defaultFocus>-1&&(p&&clearTimeout(p),p=setTimeout((()=>{k(t.defaultFocus)}),500)));let n={get(e,n,o){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(l.push(n),-1!=l.indexOf("push"))c="push";else{if(-1!=l.indexOf("splice"))return c="splice",function(...t){return e.splice(...t),-1!=l.indexOf("list")?(i[l[0]].list.splice(...t),P(Number(l[0]),i[l[0]])):1==t.length?x(Number(t[0]),i.length-t[0]+1):2==t.length?x(Number(t[0]),t[1]):t.length>2&&(0==t[1]?C(t[0],t.slice(2)):L(t[0],t[1],t.slice(2))),i.splice(t[0],...t.slice(1)),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("pop"))return c="pop",function(){return e.pop(),-1!=l.lastIndexOf("list")?(i[l[0]].list.pop(),P(Number(l[0]),i[l[0]])):(x(Number(i.length-1),1),i.pop()),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("forEach"))return c="forEach",function(a){return e.forEach((e=>{a(e)})),i=[],i=V(e),t.openPage?T(i.concat([{type:1002,decoration:{top:15,left:30}}])):T(i),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("concat"))return c="concat",function(a){return e=e.concat(a),-1!=l.lastIndexOf("list")?(i[l[0]].list=i[l[0]].list.concat(a),P(Number(l[0]),i[l[0]])):(i=i.concat(a),t.openPage&&!u?setTimeout((()=>{I(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):S(a)),c="",l=[],Reflect.get(e,n,o)};c=""}const a=Reflect.get(e,n,o);return y(a)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?v(a):(-1==l.indexOf("push")&&(l=[]),a)},set(e,n,o,a){const r=e[n];b(e,n);const d=Reflect.set(e,n,o,a);if((!y(r)&&r!==o||y(r))&&"push"!=c)if(l.push(n),-1!=l.lastIndexOf("list")){let e=l.lastIndexOf("list"),t=l.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=l[e];n=n?n[t]:s[t]}n.name="name"+l[e-1]+l[e+1],P(Number(l[0]),s[l[0]]),i[l[0]].list[l[e+1]]=s[l[0]].list[l[e+1]],i[l[0]].list[l[e+1]].name="name"+l[e-1]+l[e+1]}else i[l[0]]=s[l[0]],i[l[0]].name="name"+l[0],P(Number(l[0]),s[l[0]]);if(n&&"push"==c&&r!==o)-1!=l.lastIndexOf("list")?(l.push(n),i[l[0]].list.push(o)):(l.push(n),i.push(o));else{if("push"==c)if(-1!=l.lastIndexOf("list"))P(Number(l[0]),i[l[0]]);else{let e=i.slice(l[1]);m&&clearTimeout(m),m=t.openPage&&!u?setTimeout((()=>{I(e.concat([{type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{S(e)}),300)}c="",l=[]}return d}};return new Proxy(e,n)},_=(e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];o.name=t>=0?"name"+t+n:"name"+n,o.list&&o.list.length>0&&_(o.list,n)}},y=e=>null!==e&&"object"==typeof e,b=(e,t)=>{Object.hasOwnProperty.call(e,t)},T=t=>{d&&clearTimeout(d),d=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},S=t=>{e.callUIFunction(a.value,"addListData",t)},I=(t,n)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,n])},x=(t,n)=>{e.callUIFunction(a.value,"deleteItemRange",[t,n])},P=(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},L=(t,n,o)=>{e.callUIFunction(a.value,"updateItemRange",[t,n,o])},C=(t,n)=>{e.callUIFunction(a.value,"insertItemRange",[t,n])},D=(t,n)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,n])},N=t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},k=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return h((()=>{i=[],s.length=0,l=[],u=!1,r=1,c="",d&&clearTimeout(d),p&&clearTimeout(p),m&&clearTimeout(m),f&&clearTimeout(f)})),o.expose({viewRef:a,init:v,undataItemName:_,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(t,n,o)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[t,o,n])},updateItem:P,updateItemList:L,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},setListData:T,insertItem:C,addListData:S,addListDataWithParams:I,dispatchItemFunction:(t,n,o,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},deleteItem:x,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,n)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,n])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,n)=>{e.callUIFunction(a.value,"changeDisplayState",[t,n])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:N,scrollToFocused:e=>{N(e),k(e)},scrollToSelected:(e,t)=>{N(e),D(e,t)},scrollToPositionOffset:(t,n,o,i,s)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[n,i,o])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},setItemFocused:k,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setItemSelected:D,blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{f&&clearTimeout(f),f=setTimeout((()=>{x(i.length,1)}),400),u=!0}}),()=>{const e=o.slots.default&&o.slots.default();return E("FastListView",{ref:a,onItemClick:e=>{o.emit("item-click",e)},onScroll:e=>{o.emit("scroll",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onBindItem:e=>{e.position==i.length-1-t.preloadNo&&(r++,t.loadMore(r)),o.emit("item-bind",e)},onUnbindItem:e=>{o.emit("item-unbind",e)},onLoadMore:e=>{o.emit("load-more",e)},onScrollStateChanged:e=>{o.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{o.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{o.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{o.emit("scrollYLesserReference",e)}},e)}}});o.component("qt-list-view",a)}(o),function(o){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,o){const a=n();return o.expose({viewRef:a,updateItem:(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},dispatchItemFunction:(t,n,o,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=o.slots.default&&o.slots.default();return E("FastListView",{ref:a,onBindItem:e=>{o.emit("item-bind",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onItemRecycled:e=>{o.emit("item-unbind",e)}},e)}}});o.component("qt-list-item",a)}(o);for(let e in oa)o.component(oa[e].name,oa[e])};export{Zo as QTDirections,ta as QTNavBarItemType,ea as QTScrollState,Ho as QTTabPageState,Fo as QTWaterfallItemType,xo as QTWaterfallSectionType,aa as QuickTVUI,R as arrangeChildren4ListView};
|
|
1
|
+
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as n,resolveComponent as o,openBlock as a,createElementBlock as i,normalizeStyle as s,normalizeClass as l,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,renderSlot as p,watchEffect as g,onBeforeUnmount as h,withCtx as m,Fragment as v,createVNode as _,createElementVNode as y,pushScopeId as b,popScopeId as T,reactive as S,watch as I,h as E}from"vue";import{useESToast as x,useES as F,ESVersion as P,useESLog as C,ESLogLevel as L}from"@extscreen/es3-core";var D=t({name:"qt-button",props:{size:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,o){const a=n(),i=n(!1);return{focused:i,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){i.value=e.isFocused,o.emit("focus",e.isFocused)},onClick:function(e){o.emit("click")}}}});const N=["focusable","enableFocusBorder","focusScale"],k=["gradientBackground"],w=["gradientBackground"],O=["gradientBackground"],A=["src"],R=["src"];function B(e,t,n=!0){let o=e.length;n?e.map(((e,n)=>{n!==o-1&&(e.decoration={bottom:t})})):e.map(((e,n)=>{n!==o-1&&(e.decoration={right:t})}))}D.render=function(e,t,n,g,h,m){const v=o("text-view");return a(),i("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:s(e.buttonStyle),class:l(["quick-button--default",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[c(" gradient "),e.gradientFocusBackground?(a(),i("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,k)):c("v-if",!0),e.gradientSelectedBackground?(a(),i("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,w)):c("v-if",!0),e.gradientBackground?(a(),i("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,O)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(a(),i("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((a(),i("img",{key:0,style:s(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,A)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((a(),i("img",{key:1,style:s(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,R)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(a(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:l([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),i("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:l([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},f(e.text),7)):c("v-if",!0),p(e.$slots,"default")],46,N)},D.__scopeId="data-v-46a594e4",D.__file="src/button/index.vue";const $=e=>e.map(U),V=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=U(e[t])})),n};function U(e){return e?"object"!=typeof e?e:Array.isArray(e)?$(e):V(e):e}var z=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},setup(e,t){x(),F();const o=n();let a=n(2.5),i=[],s=[],l=[],c=[],r="",u=-1,d=!1,f=-1,p=-1,m=-1,v=-1;g((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const _=t=>{0==i.length&&(i=U(t),s=t,a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),e.defaultFocus>-1&&(m&&clearTimeout(m),m=setTimeout((()=>{T(e.defaultFocus),S(e.defaultFocus)}),800)));let n={get(t,n,s){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(l.push(n),-1!=l.indexOf("push"))r="push";else{if(-1!=l.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),a.value<2.2)if(y(),1==e.length||2==e.length)o.value.setListData(c);else if(0==e[1])o.value.setListData(c);else{let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o);else for(let s=0;s<i.list.length;s++)i.list[s],t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==e.length?o.value.deleteItem(Number(e[0]),i.length-e[0]):2==e.length?o.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?a.value>2.29&&E(e[0],e.slice(2)):o.value.updateItemList(e[0],e[1],e.slice(2)));return i.splice(e[0],...e.slice(1)),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("pop"))return r="pop",function(){return t.pop(),a.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),o.value.updateItem(Number(c.length-1),c[c.length-1])):o.value.deleteItem(Number(i.length-1),1),i.pop(),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),i=[],i=U(t),a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize&&!d?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(t=t.concat(f),i=i.concat(f),a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(f.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(f.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(f)}),300);else console.log("concat:参数类型必须为数组");return r="",l=[],Reflect.get(t,n,s)};r=""}const f=Reflect.get(t,n,s);return b(f)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?_(f):(-1==l.indexOf("push")&&(l=[]),f)},set(t,n,f,p){const g=t[n],h=Reflect.set(t,n,f,p);if((!b(g)&&g!==f||b(g))&&"push"!=r)if(l.push(n),i[l[0]]=s[l[0]],a.value<2.2){let e=l[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=i[l[0]],o.value.updateItem(Number(n),c[n]));else for(let s=0;s<a.list.length;s++)if(a.list[s],t++,t==e){c[n].list[s]=i[l[0]];let e=c[n].list[s];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),o.value.updateItem(Number(n),c[n])}}}else o.value.updateItem(Number(l[0]),s[l[0]]);if(n&&"push"==r&&g!==f)l.push(n),i.push(f);else{if("push"==r&&l.length>1)if(a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else{let t=i.slice(l[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(t)}),300)}r="",l=[]}return h}};return new Proxy(t,n)},y=()=>{let t=U(i);c=[];let n=0,o=[];for(let e=0;e<t.length;e++){let n=t[e];if("1003"==n.type)o.push(n);else if(n.decoration.top&&(n.toCompatibleSaveTopVal=n.decoration.top,n.decoration.top=0),n.decoration.bottom&&(n.toCompatibleSaveBottompVal=n.decoration.bottom,n.decoration.bottom=0),o[o.length-1]&&1==o[o.length-1].type)o[o.length-1].list.push(n);else{let e={type:1,list:[]};e.list.push(n),o.push(e)}}for(let t=0;t<o.length;t++){const a=o[t];if("1003"==a.type)c.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const o=a.list[t];let i={top:-1,bottom:-1};o.decoration&&(i.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,i.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:i,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,c.push(s)}}},b=e=>null!==e&&"object"==typeof e,T=e=>{if(a.value<2.2){let t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&o.value.scrollToPosition(n);else for(let i=0;i<a.list.length;i++)a.list[i],t++,t==e&&o.value.scrollToPosition(n)}}else o.value.scrollToPosition(e)},S=e=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","requestChildFocus",[a])}else o.value.requestFocus(e)},I=(e,t)=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},E=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return h((()=>{i=[],c=[],s.length=0,d=!1,l=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),p&&clearTimeout(p),m&&clearTimeout(m)})),{tv_list:o,apkVersion:a,init:_,onItemClick:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{a.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=i.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{p&&clearTimeout(p),p=setTimeout((()=>{a.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=i.length&&o.value.deleteItem(i.length,1):u>2&&o.value.deleteItem(i.length,1)}),400),d=!0},scrollToTop:()=>{o.value.scrollToTop()},clearFocus:()=>{o.value.clearFocus()},blockRootFocus:()=>{o.value.blockRootFocus()},unBlockRootFocus:()=>{o.value.unBlockRootFocus()},setDisplay:e=>{o.value.setDisplay(e)},scrollToPosition:T,scrollToIndex:(e,t,n)=>{if(a.value<2.2){let a=-1;for(let i=0;i<c.length;i++){const s=c[i];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,i,t,n);else for(let l=0;l<s.list.length;l++)s.list[l],a++,a==e&&o.value.scrollToIndex(0,i,t,n)}}else o.value.scrollToIndex(0,e,t,n)},setItemFocused:S,scrollToFocused:e=>{T(e),S(e)},setItemSelected:I,scrollToSelected:(e,t)=>{T(e),I(e,t)},updateItemProps:(e,t,n)=>{o.value.updateItemProps(e,t,n)},setInitPosition:e=>{o.value.setInitPosition(e)},setListData:e=>{f&&clearTimeout(f),f=setTimeout((()=>{o.value.setListData(e)}),100)},insertItem:E,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});function q(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}z.render=function(e,t,n,l,c,r){const u=o("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:e.apkVersion<2.2?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:m((()=>[e.apkVersion<2.2?(a(),i(v,{key:0},[p(e.$slots,"header"),_(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:s({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:m((()=>[p(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),p(e.$slots,"loading")],64)):(a(),i(v,{key:1},[p(e.$slots,"header"),p(e.$slots,"default"),p(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},z.__file="src/grid-view/index.vue";const W="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const M=()=>{},G=/^on[^a-z]/,Q=e=>G.test(e),j=Object.assign,Y=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},H=Object.prototype.hasOwnProperty,K=(e,t)=>H.call(e,t),X=Array.isArray,J=e=>"[object Map]"===se(e),Z=e=>"[object Set]"===se(e),ee=e=>"function"==typeof e,te=e=>"string"==typeof e,ne=e=>"symbol"==typeof e,oe=e=>null!==e&&"object"==typeof e,ae=e=>oe(e)&&ee(e.then)&&ee(e.catch),ie=Object.prototype.toString,se=e=>ie.call(e),le=e=>se(e).slice(8,-1),ce=e=>"[object Object]"===se(e),re=e=>te(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ue=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),de=(e,t)=>!Object.is(e,t),fe=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let pe;const ge=()=>pe||(pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function he(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=te(o)?ye(o):he(o);if(a)for(const e in a)t[e]=a[e]}return t}return te(e)||oe(e)?e:void 0}const me=/;(?![^(]*\))/g,ve=/:([^]+)/,_e=/\/\*[^]*?\*\//g;function ye(e){const t={};return e.replace(_e,"").split(me).forEach((e=>{if(e){const n=e.split(ve);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function be(e){let t="";if(te(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const o=be(e[n]);o&&(t+=o+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Te(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Se;const Ie=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ee=e=>(e.w&Ce)>0,xe=e=>(e.n&Ce)>0,Fe=new WeakMap;let Pe=0,Ce=1;const Le=30;let De;const Ne=Symbol("production"!==process.env.NODE_ENV?"iterate":""),ke=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class we{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Se){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=De,t=Ae;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=De,De=this,Ae=!0,Ce=1<<++Pe,Pe<=Le?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ce})(this):Oe(this),this.fn()}finally{Pe<=Le&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];Ee(a)&&!xe(a)?a.delete(e):t[n++]=a,a.w&=~Ce,a.n&=~Ce}t.length=n}})(this),Ce=1<<--Pe,De=this.parent,Ae=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){De===this?this.deferStop=!0:this.active&&(Oe(this),this.onStop&&this.onStop(),this.active=!1)}}function Oe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ae=!0;const Re=[];function Be(){Re.push(Ae),Ae=!1}function $e(){const e=Re.pop();Ae=void 0===e||e}function Ve(e,t,n){if(Ae&&De){let o=Fe.get(e);o||Fe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=Ie());!function(e,t){let n=!1;Pe<=Le?xe(e)||(e.n|=Ce,n=!Ee(e)):n=!e.has(De);n&&(e.add(De),De.deps.push(e),"production"!==process.env.NODE_ENV&&De.onTrack&&De.onTrack(j({effect:De},t)))}(a,"production"!==process.env.NODE_ENV?{effect:De,target:e,type:t,key:n}:void 0)}}function Ue(e,t,n,o,a,i){const s=Fe.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&X(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":X(e)?re(n)&&l.push(s.get("length")):(l.push(s.get(Ne)),J(e)&&l.push(s.get(ke)));break;case"delete":X(e)||(l.push(s.get(Ne)),J(e)&&l.push(s.get(ke)));break;case"set":J(e)&&l.push(s.get(Ne))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:i}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?ze(l[0],c):ze(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?ze(Ie(e),c):ze(Ie(e))}}function ze(e,t){const n=X(e)?e:[...e];for(const e of n)e.computed&&qe(e,t);for(const e of n)e.computed||qe(e,t)}function qe(e,t){(e!==De||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(j({effect:e},t)),e.scheduler?e.scheduler():e.run())}const We=q("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(ne)),Ge=Xe(),Qe=Xe(!0),je=Xe(!0,!0),Ye=He();function He(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Rt(this);for(let e=0,t=this.length;e<t;e++)Ve(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Rt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Be();const n=Rt(this)[t].apply(this,e);return $e(),n}})),e}function Ke(e){const t=Rt(this);return Ve(t,"has",e),t.hasOwnProperty(e)}function Xe(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?Pt:Ft:t?xt:Et).get(n))return n;const i=X(n);if(!e){if(i&&K(Ye,o))return Reflect.get(Ye,o,a);if("hasOwnProperty"===o)return Ke}const s=Reflect.get(n,o,a);return(ne(o)?Me.has(o):We(o))?s:(e||Ve(n,"get",o),t?s:Vt(s)?i&&re(o)?s:s.value:oe(s)?e?Lt(s):Ct(s):s)}}function Je(e=!1){return function(t,n,o,a){let i=t[n];if(wt(i)&&Vt(i)&&!Vt(o))return!1;if(!e&&(Ot(o)||wt(o)||(i=Rt(i),o=Rt(o)),!X(t)&&Vt(i)&&!Vt(o)))return i.value=o,!0;const s=X(t)&&re(n)?Number(n)<t.length:K(t,n),l=Reflect.set(t,n,o,a);return t===Rt(a)&&(s?de(o,i)&&Ue(t,"set",n,o,i):Ue(t,"add",n,o)),l}}const Ze={get:Ge,set:Je(),deleteProperty:function(e,t){const n=K(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Ue(e,"delete",t,void 0,o),a},has:function(e,t){const n=Reflect.has(e,t);return ne(t)&&Me.has(t)||Ve(e,"has",t),n},ownKeys:function(e){return Ve(e,"iterate",X(e)?"length":Ne),Reflect.ownKeys(e)}},et={get:Qe,set:(e,t)=>("production"!==process.env.NODE_ENV&&Te(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&Te(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},tt=j({},et,{get:je}),nt=e=>e,ot=e=>Reflect.getPrototypeOf(e);function at(e,t,n=!1,o=!1){const a=Rt(e=e.__v_raw),i=Rt(t);n||(t!==i&&Ve(a,"get",t),Ve(a,"get",i));const{has:s}=ot(a),l=o?nt:n?$t:Bt;return s.call(a,t)?l(e.get(t)):s.call(a,i)?l(e.get(i)):void(e!==a&&e.get(t))}function it(e,t=!1){const n=this.__v_raw,o=Rt(n),a=Rt(e);return t||(e!==a&&Ve(o,"has",e),Ve(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function st(e,t=!1){return e=e.__v_raw,!t&&Ve(Rt(e),"iterate",Ne),Reflect.get(e,"size",e)}function lt(e){e=Rt(e);const t=Rt(this);return ot(t).has.call(t,e)||(t.add(e),Ue(t,"add",e,e)),this}function ct(e,t){t=Rt(t);const n=Rt(this),{has:o,get:a}=ot(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&It(n,o,e):(e=Rt(e),i=o.call(n,e));const s=a.call(n,e);return n.set(e,t),i?de(t,s)&&Ue(n,"set",e,t,s):Ue(n,"add",e,t),this}function rt(e){const t=Rt(this),{has:n,get:o}=ot(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&It(t,n,e):(e=Rt(e),a=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return a&&Ue(t,"delete",e,void 0,i),s}function ut(){const e=Rt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?J(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ue(e,"clear",void 0,void 0,n),o}function dt(e,t){return function(n,o){const a=this,i=a.__v_raw,s=Rt(i),l=t?nt:e?$t:Bt;return!e&&Ve(s,"iterate",Ne),i.forEach(((e,t)=>n.call(o,l(e),l(t),a)))}}function ft(e,t,n){return function(...o){const a=this.__v_raw,i=Rt(a),s=J(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?nt:t?$t:Bt;return!t&&Ve(i,"iterate",c?ke:Ne),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${ue(e)} operation ${n}failed: target is readonly.`,Rt(this))}return"delete"!==e&&this}}function gt(){const e={get(e){return at(this,e)},get size(){return st(this)},has:it,add:lt,set:ct,delete:rt,clear:ut,forEach:dt(!1,!1)},t={get(e){return at(this,e,!1,!0)},get size(){return st(this)},has:it,add:lt,set:ct,delete:rt,clear:ut,forEach:dt(!1,!0)},n={get(e){return at(this,e,!0)},get size(){return st(this,!0)},has(e){return it.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:dt(!0,!1)},o={get(e){return at(this,e,!0,!0)},get size(){return st(this,!0)},has(e){return it.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:dt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=ft(a,!1,!1),n[a]=ft(a,!0,!1),t[a]=ft(a,!1,!0),o[a]=ft(a,!0,!0)})),[e,n,t,o]}const[ht,mt,vt,_t]=gt();function yt(e,t){const n=t?e?_t:vt:e?mt:ht;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(K(n,o)&&o in t?n:t,o,a)}const bt={get:yt(!1,!1)},Tt={get:yt(!0,!1)},St={get:yt(!0,!0)};function It(e,t,n){const o=Rt(n);if(o!==n&&t.call(e,o)){const t=le(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Et=new WeakMap,xt=new WeakMap,Ft=new WeakMap,Pt=new WeakMap;function Ct(e){return wt(e)?e:Nt(e,!1,Ze,bt,Et)}function Lt(e){return Nt(e,!0,et,Tt,Ft)}function Dt(e){return Nt(e,!0,tt,St,Pt)}function Nt(e,t,n,o,a){if(!oe(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(le(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function kt(e){return wt(e)?kt(e.__v_raw):!(!e||!e.__v_isReactive)}function wt(e){return!(!e||!e.__v_isReadonly)}function Ot(e){return!(!e||!e.__v_isShallow)}function At(e){return kt(e)||wt(e)}function Rt(e){const t=e&&e.__v_raw;return t?Rt(t):e}const Bt=e=>oe(e)?Ct(e):e,$t=e=>oe(e)?Lt(e):e;function Vt(e){return!(!e||!0!==e.__v_isRef)}const Ut={get:(e,t,n)=>{return Vt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return Vt(a)&&!Vt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const zt=[];function qt(e,...t){if("production"===process.env.NODE_ENV)return;Be();const n=zt.length?zt[zt.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=zt[zt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Qt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${ro(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,a=` at <${ro(e.component,e.type,o)}`,i=">"+n;return e.props?[a,...Wt(e.props),i]:[a+i]}(e))})),t}(a)),console.warn(...n)}$e()}function Wt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Mt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Mt(e,t,n){return te(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Vt(t)?(t=Mt(e,Rt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ee(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Rt(t),n?t:[`${e}=`,t])}const Gt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Qt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){Yt(e,t,n)}return a}function jt(e,t,n,o){if(ee(e)){const a=Qt(e,t,n,o);return a&&ae(a)&&a.catch((e=>{Yt(e,t,n)})),a}const a=[];for(let i=0;i<e.length;i++)a.push(jt(e[i],t,n,o));return a}function Yt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,i="production"!==process.env.NODE_ENV?Gt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Qt(s,null,10,[e,a,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Gt[t];if(n&&(a=n,zt.push(a)),qt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&zt.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Ht=!1,Kt=!1;const Xt=[];let Jt=0;const Zt=[];let en=null,tn=0;const nn=Promise.resolve();let on=null;const an=100;function sn(e){const t=on||nn;return e?t.then(this?e.bind(this):e):t}function ln(e){Xt.length&&Xt.includes(e,Ht&&e.allowRecurse?Jt+1:Jt)||(null==e.id?Xt.push(e):Xt.splice(function(e){let t=Jt+1,n=Xt.length;for(;t<n;){const o=t+n>>>1;un(Xt[o])<e?t=o+1:n=o}return t}(e.id),0,e),cn())}function cn(){Ht||Kt||(Kt=!0,on=nn.then(fn))}function rn(e){X(e)?Zt.push(...e):en&&en.includes(e,e.allowRecurse?tn+1:tn)||Zt.push(e),cn()}const un=e=>null==e.id?1/0:e.id,dn=(e,t)=>{const n=un(e)-un(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function fn(e){Kt=!1,Ht=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Xt.sort(dn);const t="production"!==process.env.NODE_ENV?t=>pn(e,t):M;try{for(Jt=0;Jt<Xt.length;Jt++){const e=Xt[Jt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Qt(e,null,14)}}}finally{Jt=0,Xt.length=0,function(e){if(Zt.length){const t=[...new Set(Zt)];if(Zt.length=0,en)return void en.push(...t);for(en=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),en.sort(((e,t)=>un(e)-un(t))),tn=0;tn<en.length;tn++)"production"!==process.env.NODE_ENV&&pn(e,en[tn])||en[tn]();en=null,tn=0}}(e),Ht=!1,on=null,(Xt.length||Zt.length)&&fn(e)}}function pn(e,t){if(e.has(t)){const n=e.get(t);if(n>an){const e=t.ownerInstance,n=e&&co(e.type);return qt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const gn=new Set;"production"!==process.env.NODE_ENV&&(ge().__VUE_HMR_RUNTIME__={createRecord:_n((function(e,t){if(hn.has(e))return!1;return hn.set(e,{initialDef:mn(t),instances:new Set}),!0})),rerender:_n((function(e,t){const n=hn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,mn(e.type).render=t),e.renderCache=[],e.update()}))})),reload:_n((function(e,t){const n=hn.get(e);if(!n)return;t=mn(t),vn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=mn(e.type);gn.has(o)||(o!==n.initialDef&&vn(o,t),gn.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(gn.add(o),e.ceReload(t.styles),gn.delete(o)):e.parent?ln(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}rn((()=>{for(const e of o)gn.delete(mn(e.type))}))}))});const hn=new Map;function mn(e){return uo(e)?e.__vccOpts:e}function vn(e,t){j(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function _n(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let yn=null,bn=null;const Tn={};function Sn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:s}=W){var l;"production"===process.env.NODE_ENV||t||(void 0!==n&&qt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&qt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{qt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},r=Se===(null==(l=no)?void 0:l.scope)?no:null;let u,d,f=!1,p=!1;if(Vt(e)?(u=()=>e.value,f=Ot(e)):kt(e)?(u=()=>e,o=!0):X(e)?(p=!0,f=e.some((e=>kt(e)||Ot(e))),u=()=>e.map((e=>Vt(e)?e.value:kt(e)?En(e):ee(e)?Qt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):ee(e)?u=t?()=>Qt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),jt(e,r,3,[g])}:(u=M,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>En(e())}let g=e=>{d=_.onStop=()=>{Qt(e,r,4)}},h=p?new Array(e.length).fill(Tn):Tn;const m=()=>{if(_.active)if(t){const e=_.run();(o||f||(p?e.some(((e,t)=>de(e,h[t]))):de(e,h)))&&(d&&d(),jt(t,r,3,[e,h===Tn?void 0:p&&h[0]===Tn?[]:h,g]),h=e)}else _.run()};let v;m.allowRecurse=!!t,"sync"===a?v=m:"post"===a?v=()=>Un(m,r&&r.suspense):(m.pre=!0,r&&(m.id=r.uid),v=()=>ln(m));const _=new we(u,v);"production"!==process.env.NODE_ENV&&(_.onTrack=i,_.onTrigger=s),t?n?m():h=_.run():"post"===a?Un(_.run.bind(_),r&&r.suspense):_.run();return()=>{_.stop(),r&&r.scope&&Y(r.scope.effects,_)}}function In(e,t,n){const o=this.proxy,a=te(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let i;ee(t)?i=t:(i=t.handler,n=t);const s=no;ao(this);const l=Sn(a,i.bind(o),n);return s?ao(s):io(),l}function En(e,t){if(!oe(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Vt(e))En(e.value,t);else if(X(e))for(let n=0;n<e.length;n++)En(e[n],t);else if(Z(e)||J(e))e.forEach((e=>{En(e,t)}));else if(ce(e))for(const n in e)En(e[n],t);return e}function xn(e,t){return ee(e)?(()=>j({name:e.name},t,{setup:e}))():e}const Fn=Symbol.for("v-ndc"),Pn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,fe(n,"__v_skip",!0),kt(t=n)?t:new Proxy(t,Ut)),{get:(t,n)=>n in t?t[n]:n in Cn?Cn[n](e):void 0,has:(e,t)=>t in e||t in Cn}));var t;var n}(e)||e.proxy:Pn(e.parent):null,Cn=j(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?Dt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?Dt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?Dt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?Dt(e.refs):e.refs,$parent:e=>Pn(e.parent),$root:e=>Pn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;l?c=l:a.length||n||o?(c={},a.length&&a.forEach((e=>wn(c,e,s,!0))),wn(c,t,s)):c=t;oe(t)&&i.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>ln(e.update)),$nextTick:e=>e.n||(e.n=sn.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?In.bind(e):M}),Ln=(e,t)=>e!==W&&!e.__isScriptSetup&&K(e,t),Dn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:i,accessCache:s,type:l,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(Ln(o,t))return s[t]=1,o[t];if(a!==W&&K(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&K(r,t))return s[t]=3,i[t];if(n!==W&&K(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!kn||(s[t]=0)}}const u=Cn[t];let d,f;return u?("$attrs"===t?(Ve(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Ve(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==W&&K(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,K(f,t)?f[t]:void("production"===process.env.NODE_ENV||!yn||te(t)&&0===t.indexOf("__v")||(a!==W&&(e=>"_"===e||"$"===e)(t[0])&&K(a,t)?qt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===yn&&qt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return Ln(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&K(a,t)?(qt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==W&&K(o,t)?(o[t]=n,!0):K(e.props,t)?("production"!==process.env.NODE_ENV&&qt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&qt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:i}},s){let l;return!!n[s]||e!==W&&K(e,s)||Ln(t,s)||(l=i[0])&&K(l,s)||K(o,s)||K(Cn,s)||K(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Nn(e){return X(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(Dn.ownKeys=e=>(qt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let kn=!0;function wn(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&wn(e,i,n,!0),a&&a.forEach((t=>wn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&qt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=On[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const On={data:An,props:Vn,emits:Vn,methods:$n,computed:$n,beforeCreate:Bn,created:Bn,beforeMount:Bn,mounted:Bn,beforeUpdate:Bn,updated:Bn,beforeDestroy:Bn,beforeUnmount:Bn,destroyed:Bn,unmounted:Bn,activated:Bn,deactivated:Bn,errorCaptured:Bn,serverPrefetch:Bn,components:$n,directives:$n,watch:function(e,t){if(!e)return t;if(!t)return e;const n=j(Object.create(null),e);for(const o in t)n[o]=Bn(e[o],t[o]);return n},provide:An,inject:function(e,t){return $n(Rn(e),Rn(t))}};function An(e,t){return t?e?function(){return j(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Rn(e){if(X(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bn(e,t){return e?[...new Set([].concat(e,t))]:t}function $n(e,t){return e?j(Object.create(null),e,t):t}function Vn(e,t){return e?X(e)&&X(t)?[...new Set([...e,...t])]:j(Object.create(null),Nn(e),Nn(null!=t?t:{})):t}const Un=function(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):rn(e)},zn=Symbol.for("v-fgt"),qn=Symbol.for("v-txt"),Wn=Symbol.for("v-cmt");let Mn=null;const Gn="__vInternal",Qn=({key:e})=>null!=e?e:null,jn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?te(e)||Vt(e)||ee(e)?{i:yn,r:e,k:t,f:!!n}:e:null);const Yn="production"!==process.env.NODE_ENV?(...e)=>Hn(...e):Hn;function Hn(e,t=null,n=null,o=0,a=null,i=!1){if(e&&e!==Fn||("production"===process.env.NODE_ENV||e||qt(`Invalid vnode type when creating vnode: ${e}.`),e=Wn),(s=e)&&!0===s.__v_isVNode){const o=Kn(e,t,!0);return n&&Zn(o,n),!i&&Mn&&(6&o.shapeFlag?Mn[Mn.indexOf(e)]=o:Mn.push(o)),o.patchFlag|=-2,o}var s;if(uo(e)&&(e=e.__vccOpts),t){t=function(e){return e?At(e)||Gn in e?j({},e):e:null}(t);let{class:e,style:n}=t;e&&!te(e)&&(t.class=be(e)),oe(n)&&(At(n)&&!X(n)&&(n=j({},n)),t.style=he(n))}const l=te(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:oe(e)?4:ee(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&At(e)&&qt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Rt(e)),function(e,t=null,n=null,o=0,a=null,i=(e===zn?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qn(t),ref:t&&jn(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:yn};return l?(Zn(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=te(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&qt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Mn&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Mn.push(c),c}(e,t,n,o,a,l,i,!0)}function Kn(e,t,n=!1){const{props:o,ref:a,patchFlag:i,children:s}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=be([t.class,o.class]));else if("style"===e)t.style=he([t.style,o.style]);else if(Q(e)){const n=t[e],a=o[e];!a||n===a||X(n)&&n.includes(a)||(t[e]=n?[].concat(n,a):a)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Qn(l),ref:t&&t.ref?n&&a?X(a)?a.concat(jn(t)):[a,jn(t)]:jn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&X(s)?s.map(Xn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==zn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kn(e.ssContent),ssFallback:e.ssFallback&&Kn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xn(e){const t=Kn(e);return X(e.children)&&(t.children=e.children.map(Xn)),t}function Jn(e=" ",t=0){return Yn(qn,null,e,t)}function Zn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(X(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Zn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Gn in t?3===o&&yn&&(1===yn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=yn}}else ee(t)?(t={default:t,_ctx:yn},n=32):(t=String(t),64&o?(n=16,t=[Jn(t)]):n=8);e.children=t,e.shapeFlag|=n}let eo,to,no=null,oo="__VUE_INSTANCE_SETTERS__";(to=ge()[oo])||(to=ge()[oo]=[]),to.push((e=>no=e)),eo=e=>{to.length>1?to.forEach((t=>t(e))):to[0](e)};const ao=e=>{eo(e),e.scope.on()},io=()=>{no&&no.scope.off(),eo(null)};const so=/(?:^|[-_])(\w)/g,lo=e=>e.replace(so,(e=>e.toUpperCase())).replace(/[-_]/g,"");function co(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function ro(e,t,n=!1){let o=co(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?lo(o):n?"App":"Anonymous"}function uo(e){return ee(e)&&"__vccOpts"in e}var fo=xn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const po={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},go={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};fo.render=function(e,t,n,s,l,r){const u=o("text-view");return a(),i("div",po,[c(" 浮动标题"),_(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),y("div",go,[c(" 主标题 "),_(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),c(" 副标题 "),_(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},fo.__scopeId="data-v-703673b8",fo.__file="src/poster/qt-poster-focus-title.vue";var ho=xn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const mo={class:"cornerRoot",focusable:!1};ho.render=function(e,t,n,s,l,c){const r=o("text-view");return a(),i("div",mo,[_(r,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},ho.__scopeId="data-v-4b767ea2",ho.__file="src/poster/qt-poster-corner-title.vue";var vo=xn({name:"qt-poster",components:{"qt-poster-corner-title":ho,"qt-poster-focus-title":fo},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const _o=["enableFocusBorder"],yo=["showOnState"],bo={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},To={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},So=(e=>(b("data-v-3c4765e9"),e=e(),T(),e))((()=>y("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));vo.render=function(e,t,n,i,s,l){const r=o("qt-poster-focus-title"),u=o("text-view"),f=o("ripple-view"),g=o("qt-poster-corner-title"),h=o("item-frame");return a(),d(h,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:m((()=>[c("封面"),y("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,_o),c(" 焦点选中时的标题 "),_(r,{focusable:!1,showOnState:"focused"}),y("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),y("div",bo,[_(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),c(" 主标题"),_(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,yo),y("div",To,[_(f,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),So]),_(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),p(e.$slots,"default")])),_:3},8,["type","focusable"])},vo.__scopeId="data-v-3c4765e9",vo.__file="src/poster/index.vue";var Io=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},className:{type:String,default:"list_view"},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const o=n();let a=n("#f5f5f5"),i=S({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,l=-1;I((()=>e.navs),(e=>{e.length>0&&c(e)}));const c=t=>{t||(t=[]),t.forEach(((t,n)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),o.value?.setListData(t),clearTimeout(l);let n=e.initSelect;n>-1&&(o.value?.scrollToPosition(n),l=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:i,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Eo=["stateTextColor","sateBackgroundPadding"],xo=["stateTextColor","sateBackgroundPadding"];var Fo,Po;Io.render=function(e,t,n,i,c,r){const u=o("text-view"),f=o("qt-list-view");return e.horizontal?(a(),d(f,{key:0,class:l([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:m((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:s({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Eo),p(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(f,{key:1,class:l([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:m((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:s({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,xo),p(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},Io.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_TAB=1003]="QT_WATERFALL_SECTION_TYPE_TAB",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST",e[e.QT_WATERFALL_SECTION_TYPE_CARD=1006]="QT_WATERFALL_SECTION_TYPE_CARD",e[e.QT_WATERFALL_SECTION_TYPE_VUE=1007]="QT_WATERFALL_SECTION_TYPE_VUE",e[e.QT_WATERFALL_SECTION_TYPE_END=-1001]="QT_WATERFALL_SECTION_TYPE_END",e[e.QT_WATERFALL_SECTION_TYPE_BLANK=-1e3]="QT_WATERFALL_SECTION_TYPE_BLANK"}(Fo||(Fo={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB",e[e.QT_WATERFALL_ITEM_TYPE_CARD=10003]="QT_WATERFALL_ITEM_TYPE_CARD"}(Po||(Po={}));var Co=xn({name:"card-item",setup(){const e=F();return{focusable:n(e.getESSDKVersionCode()<P.ES_SDK_VERSION_26)}}});Co.render=function(e,t,n,i,s,l){const c=o("es-card-vew");return a(),d(c,{focusable:e.focusable,eventClick:"",eventFocus:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",type:10003,class:"qt-ui-waterfall-card-item"},null,8,["focusable"])},Co.__scopeId="data-v-599898aa",Co.__file="src/waterfall/item/card-item.vue";var Lo=xn({name:"standard-section",components:{"card-item":Co},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:Fo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Po.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const Do=["type"];Lo.render=function(e,t,n,s,l,r){const u=o("text-view"),d=o("qt-poster"),f=o("card-item"),g=o("tv-flex");return a(),i("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),_(d,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),_(f),p(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Do)},Lo.__scopeId="data-v-227e921e",Lo.__file="src/waterfall/section/flex-section.vue";const No="tab-list-section";var ko=xn({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:Fo.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const n=C();return{blockDirections:["left","right"],onItemBind:function(e){n.isLoggable(L.DEBUG)&&n.d(No,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(L.DEBUG)&&n.d(No,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(L.DEBUG)&&n.d(No,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(L.DEBUG)&&n.d(No,"----------onItemFocused--------------\x3e>>",e)}}}});const wo={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Oo=["type"];ko.render=function(e,t,n,i,s,l){const c=o("text-view"),r=o("qt-poster"),u=o("tv-list"),f=o("tv-item");return a(),d(f,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:e.onItemClick,onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:m((()=>[y("div",wo,[_(c,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{list:"${itemList}",horizontal:"",clipChildren:!1,focusable:!1,class:"tab-list-section-list-css",name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:m((()=>[_(r,{type:e.standItemType},null,8,["type"]),y("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,flexStyle:"${style}",style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventClick:"",eventFocus:""},[_(c,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",flexStyle:"${textStyle}",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Oo),p(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},ko.__scopeId="data-v-88e60816",ko.__file="src/waterfall/section/tabs-list-section.vue";var Ao=xn({name:"loading-section"});const Ro={focusable:!1,type:-1,class:"loading-section-css"};Ao.render=function(e,t,n,s,l,c){const r=o("qt-loading-view");return a(),i("div",Ro,[_(r,{class:"loading-section-loading-css"})])},Ao.__scopeId="data-v-48609f24",Ao.__file="src/waterfall/section/loading-section.vue";var Bo=xn({name:"end-section",setup:()=>({})});const $o={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Bo.render=function(e,t,n,s,l,c){const r=o("text-view");return a(),i("div",$o,[_(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Bo.__scopeId="data-v-70b82c43",Bo.__file="src/waterfall/section/end-section.vue";var Vo=xn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:Fo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Uo=["type"];Vo.render=function(e,t,n,l,c,r){const u=o("text-view");return a(),i("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:s({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Uo)},Vo.__scopeId="data-v-20428d40",Vo.__file="src/waterfall/section/section-title.vue";var zo=xn({name:"blank-section",setup:()=>({})});const qo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};zo.render=function(e,t,n,o,s,l){return a(),i("div",qo)},zo.__scopeId="data-v-eeab4d88",zo.__file="src/waterfall/section/blank-section.vue";var Wo=xn({name:"card-section",setup(){const e=F();return{focusable:n(e.getESSDKVersionCode()>=P.ES_SDK_VERSION_26)}}});const Mo=["focusable"];Wo.render=function(e,t,n,s,l,c){const r=o("text-view"),u=o("es-card-vew");return a(),i("div",{type:1006,class:"qt-ui-waterfall-card-section-css",focusable:e.focusable,eventClick:"",eventFocus:"",clipChildren:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{cardId:"${cardId}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"})],8,Mo)},Wo.__scopeId="data-v-43a44788",Wo.__file="src/waterfall/section/card-section.vue";var Go=xn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Qo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=jo(e,t[o]);n.push(a)}return n}function jo(e,t){let n=0;return t.itemList.length>0&&(n=function(e,t){const n=t.itemList,o=t.style?.spacing??0,a=t.titleStyle,i=a?.height??0,s=a?.marginTop??0,l=a?.marginBottom??0,c=a?.paddingTop??0,r=a?.paddingBottom??0;let u=0,d=0,f=0,p=0;for(let t=0;t<n.length;t++){const a=n[t],i=a.decoration,s=i?.left??0,l=i?.top??0,c=i?.right??0,r=i?.bottom??0;let g=a?.style.width??0,h=a?.style.height??0;u+g+c>=e&&(d+=f+o,f=0,u=0),a.layout||(a.layout=[0,0,g,h]),a.layout[0]=u+s,a.layout[1]=d+l,a.layout[1]+h+r>p&&(p=a.layout[1]+h+r),h+l+r>f&&(f=h+l+r),u+=g+o+s+c}return p+i+s+l+c+r}(e.width,t),t.style.height=n),t}function Yo(){let e=[];function t(e){return e.itemList.length}function n(n,o){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(n<0||n>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let i=n+o;n+o>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<i;o++){s+=t(e[o])}return s}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const i=e.length,s=n(0,i),l=function(e){if(e.length<=0)return 0;let n=0;for(let o=0;o<e.length;o++){n+=t(e[o])}return n}(a);return e.push(...a),o(),{sectionIndex:i,sectionCount:a.length,itemIndex:s,itemCount:l}},deleteSection:function(t,a){const i=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:i,itemCount:s}},updateSection:function(a,i){const s=n(0,a-1),l=t(i);return e.splice(a,1,i),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:l}},getSection:function(t){if(!(t<0||t>=e.length||0==e.length))return e[t]},addItemList:function(t,n){const a=e.length;if(t<0||t>=a||n.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const i=e[t],s=i.itemList.length;return i.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:n.length}},deleteItem:function(t,n,a){return e[t].itemList.splice(n,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},updateItem:function(t,n,a){return e[t].itemList.splice(n,1,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:1}},updateItemList:function(t,n,a,i){return e[t].itemList.splice(n,a,...i),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},getItem:function(t,n){const o=e[t];if(o&&o.itemList.length>0&&n>=0&&n<o.itemList.length){return o.itemList[n]}},destroy:function(){e=[]}}}Go.render=function(e,t,n,i,s,l){const c=o("tv-item");return a(),d(c,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[p(e.$slots,"default")])),_:3},8,["onItemBind"])},Go.__scopeId="data-v-f8447724",Go.__file="src/waterfall/section/vue-section.vue";const Ho="qt-waterfall";var Ko,Xo=xn({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onSectionBind","onSectionAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90}},setup(e,t){const o=C(),a={name:"tvList"+Date.now(),size:{20008:10}},i=n();let s;const l=Yo();return{waterfallRef:i,init:function(e){s=e},getSectionList:function(){return l.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(L.DEBUG)&&o.d(Ho,"-------1---setSectionList--------------\x3e>>"),l.destroy();const t=l.addSectionList(e);o.isLoggable(L.DEBUG)&&o.d(Ho,"-------2---setSectionList--------------\x3e>>",t);const n=Qo(s,e);o.isLoggable(L.DEBUG)&&o.d(Ho,"----------setSectionList-----最终数据---------\x3e>>",n),i.value?.setListData(n)},addSectionList:function(e){if(!s)return;l.addSectionList(e);const t=Qo(s,e);o.isLoggable(L.DEBUG)&&o.d(Ho,"----------addSectionList-----最终数据---------\x3e>>",t),i.value?.addListData(t)},deleteSection:function(e,t){const n=l.deleteSection(e,t);o.isLoggable(L.DEBUG)&&o.d(Ho,"----------deleteSection-----最终数据---------\x3e>>",n),i.value?.deleteItem(e,t)},updateSection:function(e,t){l.updateSection(e,t);const n=jo(s,t);o.isLoggable(L.DEBUG)&&o.d(Ho,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),i.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];l.updateSection(e+t,a);const i=jo(s,a);i&&o.push(i)}i.value?.updateItemList(e,t,o)},getSection:function(e){return l.getSection(e)},addItemList:function(e,t){l.addItemList(e,t);const n=l.getSection(e);if(n){const t=jo(s,n);i.value?.updateItem(e,t)}},deleteItem:function(e,t,n){l.deleteItem(e,t,n);const o=l.getSection(e);if(o){const t=jo(s,o);i.value?.updateItem(e,t)}},updateItem:function(e,t,n){l.updateItem(e,t,n);const o=l.getSection(e);if(o){const t=jo(s,o);i.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){l.updateItemList(e,t,n,o);const a=l.getSection(e);if(a){const t=jo(s,a);i.value?.updateItem(e,t)}},getItem:function(e,t){return l.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let n=e.offsetY,o=e.offsetX;t.emit("onScroll",o,n)},onItemClick:function(e){o.isLoggable(L.DEBUG)&&o.d(Ho,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(L.DEBUG)&&o.d(Ho,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){o.isLoggable(L.DEBUG)&&o.d(Ho,"----------onSectionBind--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionBind",n,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(L.DEBUG)&&o.d(Ho,"----------onSectionAttached--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionAttached",n,e.position)}},onScrollStateChanged:function(e){let n=e.offsetY,o=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",o,n,a)},resumePostTask:function(){i.value?.pausePostTask()},pausePostTask:function(){i.value?.pausePostTask()},clearPostTask:function(){i.value?.clearPostTask()},destroy:function(){i.value?.destroy()}}},components:{"flex-section":Lo,"tabs-list-section":ko,"section-title":Vo,"loading-section":Ao,"end-section":Bo,"blank-section":zo,"card-section":Wo,"vue-section":Go}});function Jo(){const e=new Map,t=new Map;function n(n){const o={index:n,state:Ko.QT_TAB_PAGE_STATE_IDLE};e.set(n,o),t.set(n,[])}function o(e){return e.itemList.length}function a(e,t,n){const a=e.length;if(t<0||t>=a)return 0;let i=t+n;t+n>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<i;n++){s+=o(e[n])}return s}function i(){console.log("--------dumpTabWaterfallData---------\x3e>>>",t)}return{initTab:function(e){const t=e.itemList;for(let e=0;e<t.length;e++)n(e)},getTabPageData:function(t){return e.get(t)},setTabPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,s){const l=t.get(n)??[],c=l.length,r=a(l,0,c),u=function(e){if(e.length<=0)return 0;let t=0;for(let n=0;n<e.length;n++){t+=o(e[n])}return t}(s);l.push(...s);const d=e.get(n);return d&&(d.state=Ko.QT_TAB_PAGE_STATE_IDLE),i(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],l=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),i(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:l,itemCount:c}},updateSection:function(e,n,s){const l=t.get(e)??[],c=a(l,0,n-1),r=o(s);return l.splice(n,1,s),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),i(),{pageIndex:e,sectionIndex:0,sectionCount:n.length,itemIndex:-1,itemCount:-1}},getSection:function(e,n){const o=t.get(e)??[];if(!(n<0||n>=o.length||0==o.length))return o[n]},addItemList:function(e,n,o){const a=t.get(e)??[],s=a.length;if(n<0||n>=s||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const l=a[n],c=l.itemList.length;return l.itemList.push(...o),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},updateItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,1,a),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,s){return(t.get(e)??[])[n].itemList.splice(o,a,...s),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},getItem:function(e,n,o){const a=(t.get(e)??[])[n];if(a&&a.itemList.length>0&&o>=0&&o<a.itemList.length){return a.itemList[o]}},destroy:function(){t.clear()}}}Xo.render=function(e,t,n,i,s,l){const r=o("flex-section"),u=o("tabs-list-section"),f=o("loading-section"),g=o("end-section"),h=o("blank-section"),v=o("card-section"),y=o("vue-section"),b=o("tv-list");return a(),d(b,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onSectionBind,onItemAttached:e.onSectionAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:["down"],onScrollStateChanged:e.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),_(r,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:m((()=>[p(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),c("一行滚动 多级tab"),_(u,{enablePlaceholder:e.enablePlaceholder},{default:m((()=>[p(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),_(f),c(" end "),_(g),c(" blank "),_(h),c(" card "),_(v),c(" vue "),_(y,null,{default:m((()=>[p(e.$slots,"vue-section")])),_:3}),p(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},Xo.__scopeId="data-v-2e65df68",Xo.__file="src/waterfall/index.vue",function(e){e[e.QT_TAB_PAGE_STATE_IDLE=0]="QT_TAB_PAGE_STATE_IDLE",e[e.QT_TAB_PAGE_STATE_BUSY=1]="QT_TAB_PAGE_STATE_BUSY",e[e.QT_TAB_PAGE_STATE_COMPLETE=2]="QT_TAB_PAGE_STATE_COMPLETE",e[e.QT_TAB_PAGE_STATE_ERROR=3]="QT_TAB_PAGE_STATE_ERROR"}(Ko||(Ko={}));const Zo="qt-tab";var ea,ta,na,oa=xn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused"],props:{preloadNumber:{type:Number,default:3},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const o=n(),a=n(!0),i=n(300),s=n(500),l=n(1),c=n(!0),r=C(),u=n(),d=Jo();let f,p=-1;function g(e,t){const n=d.getTabPageData(e);n&&(n.state=t,d.setTabPageData(e,n))}function h(n,o,a){let i=d.getTabPageData(n);if(i&&i.state===Ko.QT_TAB_PAGE_STATE_IDLE){a>=d.getSectionList(n).length-e.preloadNumber-1&&(r.isLoggable(L.DEBUG)&&r.d(Zo,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),g(n,Ko.QT_TAB_PAGE_STATE_BUSY))}else r.isLoggable(L.DEBUG)&&r.d(Zo,"----------loadPageData--状态不对--\x3e>>>",n)}return{tabs:o,ifTabs:a,navBarRef:u,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};d.initTab(e),o.value?.setTabsData(t)},initWaterfall:function(e){f=e},setTagPageSate:g,setTabPageData:function(e,t){r.isLoggable(L.DEBUG)&&r.d(Zo,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const n={data:Qo(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(L.DEBUG)&&r.d(Zo,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){r.isLoggable(L.DEBUG)&&r.d(Zo,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const a={data:Qo(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(L.DEBUG)&&r.d(Zo,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){d.updateSectionList(e,t.data);const n={data:Qo(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){d.updateSection(e,t,n);const a=jo(f,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return d.getSection(e,t)},getPageSectionList:function(e){return d.getSectionList(e)},deletePageSection:function(e,t,n){d.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){d.addItemList(e,t,n);const a=d.getSection(e,t);if(a){const n=jo(f,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return d.getItem(e,t,n)},updatePageItem:function(e,t,n,a){d.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){d.deleteItem(e,t,n,a);const i=d.getSection(e,t);if(i){const n=jo(f,i);o.value?.updateRootNode(e,t,n)}},blockRootFocus:function(){o.value?.blockRootFocus()},unBlockRootFocus:function(){o.value?.unBlockRootFocus()},focusBackToTop:function(){o.value?.focusBackToTop()},requestNodeFocus:function(e){o.value?.requestNodeFocus(e)},reloadAll:function(e=!0){o.value?.reloadAll(e)},reloadPage:function(e){o.value?.reloadPage(e)},setCurrentPage:function(e){o.value?.setCurrentPage(e)},requestTabFocus:function(e){o.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,n){o.value?.invokeContentFunction(e,t,n)},invokeContentFunctionDirect:function(e,t){o.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){o.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,n){o.value?.getRootNodeViewState(e,t,n)},getChildNodeViewState:function(e,t,n,a,i){o.value?.getChildNodeViewState(e,t,n,a,i)},dispatchUIFunctionOnChildNode:function(e,t,n,a,i){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,i)},updateItemMatched:function(e="id",t,n){o.value?.updateItemMatched(e,t,n)},updateRootNode:function(e,t,n){o.value?.updateRootNode(e,t,n)},updateChildNode:function(e,t,n,a){o.value?.updateChildNode(e,t,n,a)},destroy:function(){o.value?.destroy()},pageSwitchDelay:i,pageResumeDelay:s,rootOpacity:l,isTabHorizontal:c,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;r.isLoggable(L.DEBUG)&&r.d(Zo,"----------loadPageData----android--\x3e>>>pageIndex:"+t),h(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;p=n;const o=e.data;r.isLoggable(L.DEBUG)&&r.d(Zo,"----------onTabPageChanged------\x3e>>> pageIndex:"+n+" data:",o),t.emit("onTabPageChanged",n,o)},onTabEvent:function(e){const n=e.params,o=e.eventName,a=e.params.itemPosition;t.emit("onTabEvent",a,o,n)},onWaterfallItemClick:function(e,n,o){r.isLoggable(L.DEBUG)&&r.d(Zo,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",p,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){r.isLoggable(L.DEBUG)&&r.d(Zo,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",p,e,n,o,a)},onWaterfallSectionBind:function(e,t){r.isLoggable(L.DEBUG)&&r.d(Zo,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===p&&(r.isLoggable(L.DEBUG)&&r.d(Zo,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),h(e,!1,t))},onWaterfallSectionAttached:function(e,t){r.isLoggable(L.DEBUG)&&r.d(Zo,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t)}}}});oa.render=function(e,t,n,i,s,r){const u=o("qt-nav-bar"),f=o("qt-waterfall"),g=o("recycler-view-pager"),h=o("tabs");return e.ifTabs?(a(),d(h,{key:0,ref:"tabs",class:l(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.pageSwitchDelay,resumeTaskDelay:e.pageResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:["down"],onLoadPage:e.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:m((()=>[_(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:"tab-nav-bar-root-css","class-name":e.tabNavBarClass,"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:m((()=>[p(e.$slots,"tab-item")])),_:3},8,["class-name","horizontal"]),_(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:l(e.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:m((()=>[_(f,{onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:m((()=>[p(e.$slots,"waterfall-item")])),section:m((()=>[p(e.$slots,"waterfall-section")])),_:3},8,["onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},oa.__file="src/tab/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(ea||(ea={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(ta||(ta={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(na||(na={}));const aa=[D,z,vo,Io,Xo,oa],ia=o=>{o.component("qt-loading-view",{setup(e,t){const o=n();return()=>E("LoadingViewComponent",{ref:o})}}),function(o){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,o){const a=n();F(),console.log("222222222222222222222222222222"),console.log(2.5,"33333333333333333333333");let i=[],s=[],l=[],c="",r=-1,u=!1,d=-1,f=-1,p=-1,m=-1;g((()=>{t.openPage&&(r=1,u=!1,t.loadMore(r))}));const v=e=>{0==i.length&&(i=U(e),_(i,-1),s=e,t.openPage?T(i.concat([{type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):T(i),t.defaultFocus>-1&&(p&&clearTimeout(p),p=setTimeout((()=>{k(t.defaultFocus)}),500)));let n={get(e,n,o){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(l.push(n),-1!=l.indexOf("push"))c="push";else{if(-1!=l.indexOf("splice"))return c="splice",function(...t){return e.splice(...t),-1!=l.indexOf("list")?(i[l[0]].list.splice(...t),P(Number(l[0]),i[l[0]])):1==t.length?x(Number(t[0]),i.length-t[0]+1):2==t.length?x(Number(t[0]),t[1]):t.length>2&&(0==t[1]?L(t[0],t.slice(2)):C(t[0],t[1],t.slice(2))),i.splice(t[0],...t.slice(1)),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("pop"))return c="pop",function(){return e.pop(),-1!=l.lastIndexOf("list")?(i[l[0]].list.pop(),P(Number(l[0]),i[l[0]])):(x(Number(i.length-1),1),i.pop()),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("forEach"))return c="forEach",function(a){return e.forEach((e=>{a(e)})),i=[],i=U(e),t.openPage?T(i.concat([{type:1002,decoration:{top:15,left:30}}])):T(i),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("concat"))return c="concat",function(a){return e=e.concat(a),-1!=l.lastIndexOf("list")?(i[l[0]].list=i[l[0]].list.concat(a),P(Number(l[0]),i[l[0]])):(i=i.concat(a),t.openPage&&!u?setTimeout((()=>{I(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):S(a)),c="",l=[],Reflect.get(e,n,o)};c=""}const a=Reflect.get(e,n,o);return y(a)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?v(a):(-1==l.indexOf("push")&&(l=[]),a)},set(e,n,o,a){const r=e[n];b(e,n);const d=Reflect.set(e,n,o,a);if((!y(r)&&r!==o||y(r))&&"push"!=c)if(l.push(n),-1!=l.lastIndexOf("list")){let e=l.lastIndexOf("list"),t=l.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=l[e];n=n?n[t]:s[t]}n.name="name"+l[e-1]+l[e+1],P(Number(l[0]),s[l[0]]),i[l[0]].list[l[e+1]]=s[l[0]].list[l[e+1]],i[l[0]].list[l[e+1]].name="name"+l[e-1]+l[e+1]}else i[l[0]]=s[l[0]],i[l[0]].name="name"+l[0],P(Number(l[0]),s[l[0]]);if(n&&"push"==c&&r!==o)-1!=l.lastIndexOf("list")?(l.push(n),i[l[0]].list.push(o)):(l.push(n),i.push(o));else{if("push"==c)if(-1!=l.lastIndexOf("list"))P(Number(l[0]),i[l[0]]);else{let e=i.slice(l[1]);m&&clearTimeout(m),m=t.openPage&&!u?setTimeout((()=>{I(e.concat([{type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{S(e)}),300)}c="",l=[]}return d}};return new Proxy(e,n)},_=(e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];o.name=t>=0?"name"+t+n:"name"+n,o.list&&o.list.length>0&&_(o.list,n)}},y=e=>null!==e&&"object"==typeof e,b=(e,t)=>{Object.hasOwnProperty.call(e,t)},T=t=>{d&&clearTimeout(d),d=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},S=t=>{e.callUIFunction(a.value,"addListData",t)},I=(t,n)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,n])},x=(t,n)=>{e.callUIFunction(a.value,"deleteItemRange",[t,n])},P=(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},C=(t,n,o)=>{e.callUIFunction(a.value,"updateItemRange",[t,n,o])},L=(t,n)=>{e.callUIFunction(a.value,"insertItemRange",[t,n])},D=(t,n)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,n])},N=t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},k=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return h((()=>{i=[],s.length=0,l=[],u=!1,r=1,c="",d&&clearTimeout(d),p&&clearTimeout(p),m&&clearTimeout(m),f&&clearTimeout(f)})),o.expose({viewRef:a,init:v,undataItemName:_,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(t,n,o)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[t,o,n])},updateItem:P,updateItemList:C,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},setListData:T,insertItem:L,addListData:S,addListDataWithParams:I,dispatchItemFunction:(t,n,o,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},deleteItem:x,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,n)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,n])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,n)=>{e.callUIFunction(a.value,"changeDisplayState",[t,n])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:N,scrollToFocused:e=>{N(e),k(e)},scrollToSelected:(e,t)=>{N(e),D(e,t)},scrollToPositionOffset:(t,n,o,i,s)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[n,i,o])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},setItemFocused:k,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setItemSelected:D,blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{f&&clearTimeout(f),f=setTimeout((()=>{x(i.length,1)}),400),u=!0}}),()=>{const e=o.slots.default&&o.slots.default();return E("FastListView",{ref:a,onItemClick:e=>{o.emit("item-click",e)},onScroll:e=>{o.emit("scroll",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onBindItem:e=>{e.position==i.length-1-t.preloadNo&&(r++,t.loadMore(r)),o.emit("item-bind",e)},onUnbindItem:e=>{o.emit("item-unbind",e)},onLoadMore:e=>{o.emit("load-more",e)},onScrollStateChanged:e=>{o.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{o.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{o.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{o.emit("scrollYLesserReference",e)}},e)}}});o.component("qt-list-view",a)}(o),function(o){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,o){const a=n();return o.expose({viewRef:a,updateItem:(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},dispatchItemFunction:(t,n,o,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=o.slots.default&&o.slots.default();return E("FastListView",{ref:a,onBindItem:e=>{o.emit("item-bind",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onItemRecycled:e=>{o.emit("item-unbind",e)}},e)}}});o.component("qt-list-item",a)}(o);for(let e in aa)o.component(aa[e].name,aa[e])};export{ea as QTDirections,na as QTNavBarItemType,ta as QTScrollState,Ko as QTTabPageState,Po as QTWaterfallItemType,Fo as QTWaterfallSectionType,ia as QuickTVUI,B as arrangeChildren4ListView};
|
|
@@ -103,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
pageResumeDelay: import("vue").Ref<number>;
|
|
104
104
|
rootOpacity: import("vue").Ref<number>;
|
|
105
105
|
isTabHorizontal: import("vue").Ref<boolean>;
|
|
106
|
-
|
|
106
|
+
onTabPageLoadData: (e: QTTabEvent) => void;
|
|
107
107
|
onTabPageChanged: (e: QTTabEvent) => void;
|
|
108
108
|
onTabEvent: (e: QTTabEvent) => void;
|
|
109
109
|
onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
focusable: import("vue").Ref<boolean>;
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
4
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
focusable: import("vue").Ref<boolean>;
|
|
3
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
4
|
export default _default;
|