@quicktvui/quicktvui3 0.0.95 → 0.0.96

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.css CHANGED
@@ -299,27 +299,27 @@
299
299
  }
300
300
 
301
301
 
302
- .qt-ui-section-tab-list-root[data-v-88e60816] {
302
+ .qt-ui-section-tab-list-root[data-v-6aa2cfd4] {
303
303
  background-color: transparent;
304
304
  margin-left: 0px;
305
305
  }
306
- .qt-ui-section-tab-list-item-text[data-v-88e60816] {
306
+ .qt-ui-section-tab-list-item-text[data-v-6aa2cfd4] {
307
307
  focusColor: #000000;
308
308
  selectColor: #ff0000;
309
309
  color: #ffffff80;
310
310
  }
311
- .qt-ui-section-tab-list-item[data-v-88e60816] {
311
+ .qt-ui-section-tab-list-item[data-v-6aa2cfd4] {
312
312
  border-radius: 99px;
313
313
  padding-top: 5px;
314
314
  padding-bottom: 8px;
315
315
  background-color: transparent;
316
316
  focus-background-color: #F5F5F5;
317
317
  }
318
- .tab-list-section-root-css[data-v-88e60816] {
318
+ .tab-list-section-root-css[data-v-6aa2cfd4] {
319
319
  }
320
- .tab-list-section-list-css[data-v-88e60816] {
320
+ .tab-list-section-list-css[data-v-6aa2cfd4] {
321
321
  }
322
- .tab-list-section-title-text-css[data-v-88e60816] {
322
+ .tab-list-section-title-text-css[data-v-6aa2cfd4] {
323
323
  width: 1920px;
324
324
  height: 60px;
325
325
  color: #ffffff;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{ref as e,openBlock as t,createElementBlock as n,renderSlot as o,defineComponent as a,resolveComponent as l,normalizeStyle as s,normalizeClass as i,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,watchEffect as p,onBeforeUnmount as g,withCtx as m,Fragment as h,createVNode as v,createElementVNode as _,pushScopeId as b,popScopeId as y,reactive as T,watch as S,h as I}from"vue";import{Native as x}from"@extscreen/es3-vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";function L(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]}const k="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const D=()=>{},N=/^on[^a-z]/,w=e=>N.test(e),O=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},B=Object.prototype.hasOwnProperty,R=(e,t)=>B.call(e,t),$=Array.isArray,U=e=>"[object Map]"===Y(e),V=e=>"[object Set]"===Y(e),z=e=>"function"==typeof e,q=e=>"string"==typeof e,W=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,G=e=>(M(e)||z(e))&&z(e.then)&&z(e.catch),Q=Object.prototype.toString,Y=e=>Q.call(e),j=e=>Y(e).slice(8,-1),H=e=>"[object Object]"===Y(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=(e,t)=>!Object.is(e,t),Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ne(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=q(o)?se(o):ne(o);if(a)for(const e in a)t[e]=a[e]}return t}if(q(e)||M(e))return e}const oe=/;(?![^(]*\))/g,ae=/:([^]+)/,le=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(le,"").split(oe).forEach((e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ie(e){let t="";if(q(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const o=ie(e[n]);o&&(t+=o+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ce(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let re;const ue=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,pe=new WeakMap;let ge=0,me=1;const he=30;let ve;const _e=Symbol("production"!==process.env.NODE_ENV?"iterate":""),be=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class ye{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=re){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=Se;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,Se=!0,me=1<<++ge,ge<=he?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):Te(this),this.fn()}finally{ge<=he&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];de(a)&&!fe(a)?a.delete(e):t[n++]=a,a.w&=~me,a.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,Se=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===this?this.deferStop=!0:this.active&&(Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Se=!0;const Ie=[];function xe(){Ie.push(Se),Se=!1}function Ee(){const e=Ie.pop();Se=void 0===e||e}function Fe(e,t,n){if(Se&&ve){let o=pe.get(e);o||pe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=ue());!function(e,t){let n=!1;ge<=he?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve);n&&(e.add(ve),ve.deps.push(e),"production"!==process.env.NODE_ENV&&ve.onTrack&&ve.onTrack(O({effect:ve},t)))}(a,"production"!==process.env.NODE_ENV?{effect:ve,target:e,type:t,key:n}:void 0)}}function Pe(e,t,n,o,a,l){const s=pe.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&$(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!W(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":$(e)?X(n)&&i.push(s.get("length")):(i.push(s.get(_e)),U(e)&&i.push(s.get(be)));break;case"delete":$(e)||(i.push(s.get(_e)),U(e)&&i.push(s.get(be)));break;case"set":U(e)&&i.push(s.get(_e))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:l}:void 0;if(1===i.length)i[0]&&("production"!==process.env.NODE_ENV?Ce(i[0],c):Ce(i[0]));else{const e=[];for(const t of i)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ce(ue(e),c):Ce(ue(e))}}function Ce(e,t){const n=$(e)?e:[...e];for(const e of n)e.computed&&Le(e,t);for(const e of n)e.computed||Le(e,t)}function Le(e,t){(e!==ve||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(O({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ke=L("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(W)),Ne=we();function we(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Tt(this);for(let e=0,t=this.length;e<t;e++)Fe(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Tt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){xe();const n=Tt(this)[t].apply(this,e);return Ee(),n}})),e}function Oe(e){const t=Tt(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class Ae{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,a=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t&&n===(o?a?ft:dt:a?ut:rt).get(e))return e;const l=$(e);if(!o){if(l&&R(Ne,t))return Reflect.get(Ne,t,n);if("hasOwnProperty"===t)return Oe}const s=Reflect.get(e,t,n);return(W(t)?De.has(t):ke(t))?s:(o||Fe(e,"get",t),a?s:xt(s)?l&&X(t)?s:s.value:M(s)?o?gt(s):pt(s):s)}}class Be extends Ae{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];if(_t(a)&&xt(a)&&!xt(n))return!1;if(!this._shallow&&(bt(n)||_t(n)||(a=Tt(a),n=Tt(n)),!$(e)&&xt(a)&&!xt(n)))return a.value=n,!0;const l=$(e)&&X(t)?Number(t)<e.length:R(e,t),s=Reflect.set(e,t,n,o);return e===Tt(o)&&(l?J(n,a)&&Pe(e,"set",t,n,a):Pe(e,"add",t,n)),s}deleteProperty(e,t){const n=R(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Pe(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return W(t)&&De.has(t)||Fe(e,"has",t),n}ownKeys(e){return Fe(e,"iterate",$(e)?"length":_e),Reflect.ownKeys(e)}}class Re extends Ae{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&ce(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&ce(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const $e=new Be,Ue=new Re,Ve=new Re(!0),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,o=!1){const a=Tt(e=e.__v_raw),l=Tt(t);n||(J(t,l)&&Fe(a,"get",t),Fe(a,"get",l));const{has:s}=qe(a),i=o?ze:n?It:St;return s.call(a,t)?i(e.get(t)):s.call(a,l)?i(e.get(l)):void(e!==a&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=Tt(n),a=Tt(e);return t||(J(e,a)&&Fe(o,"has",e),Fe(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ge(e,t=!1){return e=e.__v_raw,!t&&Fe(Tt(e),"iterate",_e),Reflect.get(e,"size",e)}function Qe(e){e=Tt(e);const t=Tt(this);return qe(t).has.call(t,e)||(t.add(e),Pe(t,"add",e,e)),this}function Ye(e,t){t=Tt(t);const n=Tt(this),{has:o,get:a}=qe(n);let l=o.call(n,e);l?"production"!==process.env.NODE_ENV&&ct(n,o,e):(e=Tt(e),l=o.call(n,e));const s=a.call(n,e);return n.set(e,t),l?J(t,s)&&Pe(n,"set",e,t,s):Pe(n,"add",e,t),this}function je(e){const t=Tt(this),{has:n,get:o}=qe(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&ct(t,n,e):(e=Tt(e),a=n.call(t,e));const l=o?o.call(t,e):void 0,s=t.delete(e);return a&&Pe(t,"delete",e,void 0,l),s}function He(){const e=Tt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?U(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Pe(e,"clear",void 0,void 0,n),o}function Xe(e,t){return function(n,o){const a=this,l=a.__v_raw,s=Tt(l),i=t?ze:e?It:St;return!e&&Fe(s,"iterate",_e),l.forEach(((e,t)=>n.call(o,i(e),i(t),a)))}}function Ke(e,t,n){return function(...o){const a=this.__v_raw,l=Tt(a),s=U(l),i="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?ze:t?It:St;return!t&&Fe(l,"iterate",c?be:_e),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${K(e)} operation ${n}failed: target is readonly.`,Tt(this))}return"delete"!==e&&this}}function Ze(){const e={get(e){return We(this,e)},get size(){return Ge(this)},has:Me,add:Qe,set:Ye,delete:je,clear:He,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return Ge(this)},has:Me,add:Qe,set:Ye,delete:je,clear:He,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!1)},o={get(e){return We(this,e,!0,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=Ke(a,!1,!1),n[a]=Ke(a,!0,!1),t[a]=Ke(a,!1,!0),o[a]=Ke(a,!0,!0)})),[e,n,t,o]}const[et,tt,nt,ot]=Ze();function at(e,t){const n=t?e?ot:nt:e?tt:et;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(R(n,o)&&o in t?n:t,o,a)}const lt={get:at(!1,!1)},st={get:at(!0,!1)},it={get:at(!0,!0)};function ct(e,t,n){const o=Tt(n);if(o!==n&&t.call(e,o)){const t=j(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 rt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap;function pt(e){return _t(e)?e:ht(e,!1,$e,lt,rt)}function gt(e){return ht(e,!0,Ue,st,dt)}function mt(e){return ht(e,!0,Ve,it,ft)}function ht(e,t,n,o,a){if(!M(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 l=a.get(e);if(l)return l;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(i));var i;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function vt(e){return _t(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function bt(e){return!(!e||!e.__v_isShallow)}function yt(e){return vt(e)||_t(e)}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}const St=e=>M(e)?pt(e):e,It=e=>M(e)?gt(e):e;function xt(e){return!(!e||!0!==e.__v_isRef)}const Et={get:(e,t,n)=>{return xt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return xt(a)&&!xt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Ft=[];function Pt(e,...t){if("production"===process.env.NODE_ENV)return;xe();const n=Ft.length?Ft[Ft.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Ft[Ft.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)Dt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${jn(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 <${jn(e.component,e.type,o)}`,l=">"+n;return e.props?[a,...Ct(e.props),l]:[a+l]}(e))})),t}(a)),console.warn(...n)}Ee()}function Ct(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Lt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Lt(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xt(t)?(t=Lt(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}const kt={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 Dt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){wt(e,t,n)}return a}function Nt(e,t,n,o){if(z(e)){const a=Dt(e,t,n,o);return a&&G(a)&&a.catch((e=>{wt(e,t,n)})),a}const a=[];for(let l=0;l<e.length;l++)a.push(Nt(e[l],t,n,o));return a}function wt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l="production"!==process.env.NODE_ENV?kt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,l))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Dt(s,null,10,[e,a,l])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const l=kt[t];if(n&&(a=n,Ft.push(a)),Pt("Unhandled error"+(l?` during execution of ${l}`:"")),n&&Ft.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Ot=!1,At=!1;const Bt=[];let Rt=0;const $t=[];let Ut=null,Vt=0;const zt=Promise.resolve();let qt=null;const Wt=100;function Mt(e){const t=qt||zt;return e?t.then(this?e.bind(this):e):t}function Gt(e){Bt.length&&Bt.includes(e,Ot&&e.allowRecurse?Rt+1:Rt)||(null==e.id?Bt.push(e):Bt.splice(function(e){let t=Rt+1,n=Bt.length;for(;t<n;){const o=t+n>>>1,a=Bt[o],l=jt(a);l<e||l===e&&a.pre?t=o+1:n=o}return t}(e.id),0,e),Qt())}function Qt(){Ot||At||(At=!0,qt=zt.then(Xt))}function Yt(e){$(e)?$t.push(...e):Ut&&Ut.includes(e,e.allowRecurse?Vt+1:Vt)||$t.push(e),Qt()}const jt=e=>null==e.id?1/0:e.id,Ht=(e,t)=>{const n=jt(e)-jt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Xt(e){At=!1,Ot=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Bt.sort(Ht);const t="production"!==process.env.NODE_ENV?t=>Kt(e,t):D;try{for(Rt=0;Rt<Bt.length;Rt++){const e=Bt[Rt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Dt(e,null,14)}}}finally{Rt=0,Bt.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Ut)return void Ut.push(...t);for(Ut=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ut.sort(((e,t)=>jt(e)-jt(t))),Vt=0;Vt<Ut.length;Vt++)"production"!==process.env.NODE_ENV&&Kt(e,Ut[Vt])||Ut[Vt]();Ut=null,Vt=0}}(e),Ot=!1,qt=null,(Bt.length||$t.length)&&Xt(e)}}function Kt(e,t){if(e.has(t)){const n=e.get(t);if(n>Wt){const e=t.ownerInstance,n=e&&Yn(e.type);return Pt(`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 Jt=new Set;"production"!==process.env.NODE_ENV&&(te().__VUE_HMR_RUNTIME__={createRecord:nn((function(e,t){if(Zt.has(e))return!1;return Zt.set(e,{initialDef:en(t),instances:new Set}),!0})),rerender:nn((function(e,t){const n=Zt.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,en(e.type).render=t),e.renderCache=[],e.update()}))})),reload:nn((function(e,t){const n=Zt.get(e);if(!n)return;t=en(t),tn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=en(e.type);Jt.has(o)||(o!==n.initialDef&&tn(o,t),Jt.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(Jt.add(o),e.ceReload(t.styles),Jt.delete(o)):e.parent?Gt(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.")}Yt((()=>{for(const e of o)Jt.delete(en(e.type))}))}))});const Zt=new Map;function en(e){return Hn(e)?e.__vccOpts:e}function tn(e,t){O(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function nn(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 on=null,an=null;const ln=Symbol.for("v-ndc");const sn={};function cn(e,t,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:s}=k){var i;"production"===process.env.NODE_ENV||t||(void 0!==n&&Pt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Pt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Pt("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=re===(null==(i=zn)?void 0:i.scope)?zn:null;let u,d,f=!1,p=!1;if(xt(e)?(u=()=>e.value,f=bt(e)):vt(e)?(u=()=>e,o=!0):$(e)?(p=!0,f=e.some((e=>vt(e)||bt(e))),u=()=>e.map((e=>xt(e)?e.value:vt(e)?un(e):z(e)?Dt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):z(e)?u=t?()=>Dt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Nt(e,r,3,[g])}:(u=D,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>un(e())}let g=e=>{d=_.onStop=()=>{Dt(e,r,4)}},m=p?new Array(e.length).fill(sn):sn;const h=()=>{if(_.active)if(t){const e=_.run();(o||f||(p?e.some(((e,t)=>J(e,m[t]))):J(e,m)))&&(d&&d(),Nt(t,r,3,[e,m===sn?void 0:p&&m[0]===sn?[]:m,g]),m=e)}else _.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>En(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>Gt(h));const _=new ye(u,v);"production"!==process.env.NODE_ENV&&(_.onTrack=l,_.onTrigger=s),t?n?h():m=_.run():"post"===a?En(_.run.bind(_),r&&r.suspense):_.run();return()=>{_.stop(),r&&r.scope&&A(r.scope.effects,_)}}function rn(e,t,n){const o=this.proxy,a=q(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 l;z(t)?l=t:(l=t.handler,n=t);const s=zn;Wn(this);const i=cn(a,l.bind(o),n);return s?Wn(s):Mn(),i}function un(e,t){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),xt(e))un(e.value,t);else if($(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(V(e)||U(e))e.forEach((e=>{un(e,t)}));else if(H(e))for(const n in e)un(e[n],t);return e}
2
- /*! #__NO_SIDE_EFFECTS__ */function dn(e,t){return z(e)?(()=>O({name:e.name},t,{setup:e}))():e}const fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,Z(n,"__v_skip",!0),vt(t=n)?t:new Proxy(t,Et)),{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=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?mt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?mt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?mt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?mt(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:l,config:{optionMergeStrategies:s}}=e.appContext,i=l.get(t);let c;i?c=i:a.length||n||o?(c={},a.length&&a.forEach((e=>_n(c,e,s,!0))),_n(c,t,s)):c=t;M(t)&&l.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Gt(e.update)),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):D}),gn=(e,t)=>e!==k&&!e.__isScriptSetup&&R(e,t),mn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:l,accessCache:s,type:i,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const i=s[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(gn(o,t))return s[t]=1,o[t];if(a!==k&&R(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&R(r,t))return s[t]=3,l[t];if(n!==k&&R(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!vn||(s[t]=0)}}const u=pn[t];let d,f;return u?("$attrs"===t?(Fe(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Fe(e,"get",t),u(e)):(d=i.__cssModules)&&(d=d[t])?d:n!==k&&R(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,R(f,t)?f[t]:void("production"===process.env.NODE_ENV||!on||q(t)&&0===t.indexOf("__v")||(a!==k&&(e=>"_"===e||"$"===e)(t[0])&&R(a,t)?Pt(`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===on&&Pt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:l}=e;return gn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&R(a,t)?(Pt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==k&&R(o,t)?(o[t]=n,!0):R(e.props,t)?("production"!==process.env.NODE_ENV&&Pt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Pt(`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(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:l}},s){let i;return!!n[s]||e!==k&&R(e,s)||gn(t,s)||(i=l[0])&&R(i,s)||R(o,s)||R(pn,s)||R(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:R(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(e){return $(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(mn.ownKeys=e=>(Pt("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 vn=!0;function _n(e,t,n,o=!1){const{mixins:a,extends:l}=t;l&&_n(e,l,n,!0),a&&a.forEach((t=>_n(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Pt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=bn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const bn={data:yn,props:xn,emits:xn,methods:In,computed:In,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:In,directives:In,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const o in t)n[o]=Sn(e[o],t[o]);return n},provide:yn,inject:function(e,t){return In(Tn(e),Tn(t))}};function yn(e,t){return t?e?function(){return O(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Tn(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Sn(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?O(Object.create(null),e,t):t}function xn(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:O(Object.create(null),hn(e),hn(null!=t?t:{})):t}const En=function(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):Yt(e)},Fn=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt");let Ln=null;const kn="__vInternal",Dn=({key:e})=>null!=e?e:null,Nn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?q(e)||xt(e)||z(e)?{i:on,r:e,k:t,f:!!n}:e:null);const wn="production"!==process.env.NODE_ENV?(...e)=>On(...e):On;function On(e,t=null,n=null,o=0,a=null,l=!1){if(e&&e!==ln||("production"===process.env.NODE_ENV||e||Pt(`Invalid vnode type when creating vnode: ${e}.`),e=Cn),(s=e)&&!0===s.__v_isVNode){const o=An(e,t,!0);return n&&$n(o,n),!l&&Ln&&(6&o.shapeFlag?Ln[Ln.indexOf(e)]=o:Ln.push(o)),o.patchFlag|=-2,o}var s;if(Hn(e)&&(e=e.__vccOpts),t){t=function(e){return e?yt(e)||kn in e?O({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=ie(e)),M(n)&&(yt(n)&&!$(n)&&(n=O({},n)),t.style=ne(n))}const i=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&yt(e)&&Pt("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=Tt(e)),function(e,t=null,n=null,o=0,a=null,l=(e===Fn?0:1),s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dn(t),ref:t&&Nn(t),scopeId:an,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:l,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:on};return i?($n(c,n),128&l&&e.normalize(c)):n&&(c.shapeFlag|=q(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Pt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Ln&&(c.patchFlag>0||6&l)&&32!==c.patchFlag&&Ln.push(c),c}(e,t,n,o,a,i,l,!0)}function An(e,t,n=!1){const{props:o,ref:a,patchFlag:l,children:s}=e,i=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=ie([t.class,o.class]));else if("style"===e)t.style=ne([t.style,o.style]);else if(w(e)){const n=t[e],a=o[e];!a||n===a||$(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:i,key:i&&Dn(i),ref:t&&t.ref?n&&a?$(a)?a.concat(Nn(t)):[a,Nn(t)]:Nn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===l&&$(s)?s.map(Bn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Bn(e){const t=An(e);return $(e.children)&&(t.children=e.children.map(Bn)),t}function Rn(e=" ",t=0){return wn(Pn,null,e,t)}function $n(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),$n(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kn in t?3===o&&on&&(1===on.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=on}}else z(t)?(t={default:t,_ctx:on},n=32):(t=String(t),64&o?(n=16,t=[Rn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Un,Vn,zn=null,qn="__VUE_INSTANCE_SETTERS__";(Vn=te()[qn])||(Vn=te()[qn]=[]),Vn.push((e=>zn=e)),Un=e=>{Vn.length>1?Vn.forEach((t=>t(e))):Vn[0](e)};const Wn=e=>{Un(e),e.scope.on()},Mn=()=>{zn&&zn.scope.off(),Un(null)};const Gn=/(?:^|[-_])(\w)/g,Qn=e=>e.replace(Gn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Yn(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function jn(e,t,n=!1){let o=Yn(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?Qn(o):n?"App":"Anonymous"}function Hn(e){return z(e)&&"__vccOpts"in e}var Xn=dn({name:"qt-view",emits:["clearFocus"],setup(t,n){const o=e();return{clearFocus:()=>{x.callUIFunction(o.value,"clearFocus")},requestFocus:()=>{x.callUIFunction(o.value,"requestFocus")},requestFocusDirectly:()=>{x.callUIFunction(o.value,"requestFocusDirectly")},viewRef:o}}});const Kn={clipChildren:!1,ref:"viewRef"};Xn.render=function(e,a,l,s,i,c){return t(),n("div",Kn,[o(e.$slots,"default")],512)},Xn.__file="src/view/index.vue";var Jn=dn({name:"qt-text"});const Zn={clipChildren:!1};Jn.render=function(e,a,l,s,i,c){return t(),n("span",Zn,[o(e.$slots,"default")])},Jn.__file="src/text/index.vue";var eo=dn({name:"qt-image"});const to={src:"",alt:"",clipChildren:!1};eo.render=function(e,o,a,l,s,i){return t(),n("img",to)},eo.__file="src/image/index.vue";var no=dn({name:"qt-column"});const oo={class:"qt-ui-row-css",clipChildren:!1};no.render=function(e,a,l,s,i,c){return t(),n("div",oo,[o(e.$slots,"default")])},no.__scopeId="data-v-734c04b2",no.__file="src/column/index.vue";var ao=dn({name:"qt-row"});const lo={class:"qt-ui-row-css",clipChildren:!1};ao.render=function(e,a,l,s,i,c){return t(),n("div",lo,[o(e.$slots,"default")])},ao.__scopeId="data-v-9c454b58",ao.__file="src/row/index.vue";var so=a({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},emits:["focus","click"],setup(t,n){const o=e(),a=e(!1);return{focused:a,requestFocus:function(){x.callUIFunction(o.value,"requestFocus",[])},requestFocusDirectly:function(){x.callUIFunction(o.value,"requestFocusDirectly",[])},onFocus:function(e){console.log("--------XXXXXXXXXXXXXXXXX--------------\x3e>>",a.value),a.value=e.isFocused,n.emit("focus",e.isFocused)},onClick:function(e){n.emit("click")}}}});const io=["focusable","enableFocusBorder","focusScale"],co=["gradientBackground"],ro=["gradientBackground"],uo=["gradientBackground"],fo=["src"],po=["src"];function go(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})}))}so.render=function(e,a,p,g,m,h){const v=l("text-view");return t(),n("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:a[0]||(a[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:a[1]||(a[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:s(e.buttonStyle),class:i(["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?(t(),n("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,co)):c("v-if",!0),e.gradientSelectedBackground?(t(),n("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,ro)):c("v-if",!0),e.gradientBackground?(t(),n("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,uo)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(t(),n("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:i(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((t(),n("img",{key:0,style:s(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:i(["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,fo)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((t(),n("img",{key:1,style:s(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:i(["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,po)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(t(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:i([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?(t(),n("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:i([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),o(e.$slots,"default")],46,io)},so.__scopeId="data-v-46a594e4",so.__file="src/button/index.vue";const mo=e=>e.map(vo),ho=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=vo(e[t])})),n};function vo(e){return e?"object"!=typeof e?e:Array.isArray(e)?mo(e):ho(e):e}var _o=a({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:()=>[]}},emits:["item-click","scroll","item-unbind","scroll-state-changed","item-bind","item-focused"],setup(t,n){E(),F();const o=e();let a=e(2.5),l=[],s=[],i=[],c=[],r="",u=-1,d=!1,f=-1,m=-1,h=-1,v=-1;p((()=>{t.openPage&&(u=1,d=!1,t.loadMore(u))}));const _=e=>{0==l.length&&(l=vo(e),s=e,a.value<2.2?(b(),t.openPage&&t.pageSize&&c.length>=t.pageSize/t.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):t.openPage&&t.pageSize&&l.length>=t.pageSize?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),t.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(t.defaultFocus),S(t.defaultFocus)}),800)));let n={get(e,s,f){if("__ob__"!=s&&"symbol"!=typeof s&&"map"!=s&&"length"!=s&&"constructor"!=s&&"_isVue"!=s&&"valueOf"!=s&&"toString"!=s&&"observeArray"!=s&&"dep"!=s&&"notify"!=s&&"subs"!=s&&"slice"!=s)if(i.push(s),-1!=i.indexOf("push"))r="push";else{if(-1!=i.indexOf("splice"))return r="splice",function(...t){if(e.splice(...t),a.value<2.2)if(b(),1==t.length||2==t.length)o.value.setListData(c);else if(0==t[1])o.value.setListData(c);else{let e=-1,n=0,a=0;for(let o=0;o<c.length;o++){const l=c[o];if("1003"==l.type)e++,t[0]==e&&(n=o),t[0]+t[1]-1==e&&(a=o);else for(let s=0;s<l.list.length;s++)l.list[s],e++,t[0]==e&&(n=o),t[0]+t[1]-1==e&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==t.length?o.value.deleteItem(Number(t[0]),l.length-t[0]):2==t.length?o.value.deleteItem(Number(t[0]),t[1]):t.length>2&&(0==t[1]?a.value>2.29&&x(t[0],t.slice(2)):o.value.updateItemList(t[0],t[1],t.slice(2)));return l.splice(t[0],...t.slice(1)),r="",i=[],Reflect.get(e,s,f)};if(-1!=i.indexOf("pop"))return r="pop",function(){return e.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(l.length-1),1),l.pop(),r="",i=[],Reflect.get(e,s,f)};if(-1!=i.indexOf("forEach"))return r="forEach",function(n){return e.forEach((e=>{n(e)})),l=[],l=vo(e),a.value<2.2?(b(),t.openPage&&t.pageSize&&c.length>=t.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):t.openPage&&t.pageSize&&l.length>=t.pageSize&&!d?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),r="",i=[],Reflect.get(e,s,f)};if(-1!=i.indexOf("concat"))return r="concat",function(p){if("[object Array]"===Object.prototype.toString.call(p))if(e=e.concat(p),l=l.concat(p),a.value<2.2){v&&clearTimeout(v);let e=c.length,n=c.slice(c.length-1)[0];b();let a=c.slice(e);t.openPage&&!d?t.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<t.spanCount?(a=c.slice(e-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=t.openPage&&!d?t.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(p.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(p.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(p)}),300);else console.log("concat:参数类型必须为数组");return r="",i=[],Reflect.get(e,s,f),new Proxy(e,n)};r=""}const p=Reflect.get(e,s,f);return y(p)&&"__ob__"!=s&&"dep"!=s&&"subs"!=s?_(p):(-1==i.indexOf("push")&&(i=[]),p)},set(e,n,f,p){const g=e[n],m=Reflect.set(e,n,f,p);if((!y(g)&&g!==f||y(g))&&"push"!=r)if(i.push(n),l[i[0]]=s[i[0]],a.value<2.2){let e=i[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=l[i[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]=l[i[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(i[0]),s[i[0]]);if(n&&"push"==r&&g!==f)i.push(n),l.push(f);else{if("push"==r&&i.length>1)if(a.value<2.2){v&&clearTimeout(v);let e=c.length,n=c.slice(c.length-1)[0];b();let a=c.slice(e);t.openPage&&!d?t.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<t.spanCount?(a=c.slice(e-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 e=l.slice(i[1]);v&&clearTimeout(v),v=t.openPage&&!d?t.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(e.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(e.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(e)}),300)}r="",i=[]}return m}};return new Proxy(e,n)},b=()=>{let e=vo(l);c=[];let n=0,o=[];for(let t=0;t<e.length;t++){let n=e[t];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 e=0;e<o.length;e++){const a=o[e];if("1003"==a.type)c.push(a);else for(let e=0;e<a.list.length;e+=t.spanCount){const o=a.list[e];let l={top:-1,bottom:-1};o.decoration&&(l.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,l.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:l,name:"name"+n,list:a.list.slice(e,e+t.spanCount)};n++,c.push(s)}}},y=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 l=0;l<a.list.length;l++)a.list[l],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 l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.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 l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},x=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return g((()=>{l=[],c=[],s.length=0,d=!1,i=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),m&&clearTimeout(m),h&&clearTimeout(h)})),{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 l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}n.emit("item-click",e)},onItemBind:e=>{a.value<2.2?d||e.position!=c.length-1-t.preloadNo/t.spanCount||(u++,t.loadMore(u)):d||e.position!=l.length-1-t.preloadNo||(u++,t.loadMore(u)),n.emit("item-bind",e)},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 l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}n.emit("item-focused",e)},onItemUnbind:e=>{n.emit("item-unbind",e)},onScroll:e=>{n.emit("scroll",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},stopPage:e=>{m&&clearTimeout(m),m=setTimeout((()=>{a.value<2.2?t.pageSize?t.pageSize/t.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):t.pageSize?t.pageSize<=l.length&&o.value.deleteItem(l.length,1):u>2&&o.value.deleteItem(l.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 l=0;l<c.length;l++){const s=c[l];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,l,t,n);else for(let i=0;i<s.list.length;i++)s.list[i],a++,a==e&&o.value.scrollToIndex(0,l,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:x,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});_o.render=function(e,a,i,c,r,u){const f=l("tv-list");return t(),d(f,{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?(t(),n(h,{key:0},[o(e.$slots,"header"),v(f,{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((()=>[o(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),o(e.$slots,"footer"),o(e.$slots,"loading")],64)):(t(),n(h,{key:1},[o(e.$slots,"header"),o(e.$slots,"default"),o(e.$slots,"footer"),o(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},_o.__file="src/grid-view/index.vue";var bo=dn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const yo={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},To={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};bo.render=function(e,o,a,s,i,r){const u=l("text-view");return t(),n("div",yo,[c(" 浮动标题"),v(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"}),_("div",To,[c(" 主标题 "),v(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(" 副标题 "),v(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}"})])])},bo.__scopeId="data-v-703673b8",bo.__file="src/poster/qt-poster-focus-title.vue";var So=dn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const Io={class:"cornerRoot",focusable:!1};So.render=function(e,o,a,s,i,c){const r=l("text-view");return t(),n("div",Io,[v(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",margin:"4px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},So.__scopeId="data-v-4b767ea2",So.__file="src/poster/qt-poster-corner-title.vue";var xo=dn({name:"qt-poster",components:{"qt-poster-corner-title":So,"qt-poster-focus-title":bo},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 Eo=["enableFocusBorder"],Fo=["showOnState"],Po={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}"},Co={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},Lo=(e=>(b("data-v-3c4765e9"),e=e(),y(),e))((()=>_("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));xo.render=function(e,n,a,s,i,r){const u=l("qt-poster-focus-title"),f=l("text-view"),p=l("ripple-view"),g=l("qt-poster-corner-title"),h=l("item-frame");return t(),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("封面"),_("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,Eo),c(" 焦点选中时的标题 "),v(u,{focusable:!1,showOnState:"focused"}),_("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),_("div",Po,[v(f,{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(" 主标题"),v(f,{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,Fo),_("div",Co,[v(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),Lo]),v(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),o(e.$slots,"default")])),_:3},8,["type","focusable"])},xo.__scopeId="data-v-3c4765e9",xo.__file="src/poster/index.vue";var ko=a({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},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(t,n){const o=e();let a=e("#f5f5f5"),l=T({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,i=-1;S((()=>t.navs),(e=>{e.length>0&&c(e)}));const c=e=>{e||(e=[]),e.forEach(((e,n)=>{0!==t.itemGap&&(t.horizontal?e.decoration={right:t.itemGap}:e.decoration={bottom:t.itemGap}),e.type||(e.type=2e4)})),o.value?.setListData(e),clearTimeout(i);let n=t.initSelect;n>-1&&(o.value?.scrollToPosition(n),i=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{n.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:l,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(n.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Do=["stateTextColor","sateBackgroundPadding"],No=["stateTextColor","sateBackgroundPadding"];var wo,Oo;ko.render=function(e,n,a,i,c,r){const u=l("text-view"),f=l("qt-list-view");return e.horizontal?(t(),d(f,{key:0,ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",class:"qt-ui-nav-bar-root-horizontal",onItemFocused:e.onTabChange},{default:m((()=>[_("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},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Do),o(e.$slots,"default")])),_:3},8,["onItemFocused"])):(t(),d(f,{key:1,ref:"navList",clipChildren:!1,clipPadding:!1,class:"qt-ui-nav-bar-root-vertical",onItemFocused:e.onTabChange},{default:m((()=>[_("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},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,No),o(e.$slots,"default")])),_:3},8,["onItemFocused"]))},ko.__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"}(wo||(wo={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_POSTER=10001]="QT_WATERFALL_ITEM_TYPE_POSTER",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",e[e.QT_WATERFALL_ITEM_TYPE_BLANK=-1e4]="QT_WATERFALL_ITEM_TYPE_BLANK"}(Oo||(Oo={}));var Ao=dn({name:"card-item",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});Ao.render=function(e,n,o,a,s,i){const c=l("es-card-container");return t(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,disablePlaceholder:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",type:10003,onFocus:e.onFocus,class:"qt-ui-waterfall-card-item"},null,8,["onFocus"])},Ao.__scopeId="data-v-599898aa",Ao.__file="src/waterfall/item/card-item.vue";var Bo=dn({name:"standard-section",components:{"card-item":Ao},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:wo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Oo.QT_WATERFALL_ITEM_TYPE_POSTER},currentPageIndex:{type:Number,default:-1}},setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Ro=["type"];Bo.render=function(e,a,s,i,r,u){const d=l("text-view"),f=l("qt-poster"),p=l("card-item"),g=l("tv-flex");return t(),n("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(d,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),v(f,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),v(p,{onFocus:e.onFocus},null,8,["onFocus"]),o(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Ro)},Bo.__scopeId="data-v-227e921e",Bo.__file="src/waterfall/section/flex-section.vue";const $o="tab-list-section";var Uo=dn({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:wo.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(C.DEBUG)&&n.d($o,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemFocused--------------\x3e>>",e)}}}});const Vo={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},zo=["type"];Uo.render=function(e,n,a,s,i,c){const r=l("text-view"),u=l("qt-poster"),f=l("tv-list"),p=l("tv-item");return t(),d(p,{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((()=>[_("div",Vo,[v(r,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(f,{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((()=>[v(u,{type:e.standItemType},null,8,["type"]),_("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:""},[v(r,{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,zo),o(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Uo.__scopeId="data-v-88e60816",Uo.__file="src/waterfall/section/tabs-list-section.vue";var qo=dn({name:"loading-section"});const Wo={focusable:!1,type:-1,class:"loading-section-css"};qo.render=function(e,o,a,s,i,c){const r=l("qt-loading-view");return t(),n("div",Wo,[v(r,{class:"loading-section-loading-css"})])},qo.__scopeId="data-v-48609f24",qo.__file="src/waterfall/section/loading-section.vue";var Mo=dn({name:"end-section",setup:()=>({})});const Go={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Mo.render=function(e,o,a,s,i,c){const r=l("text-view");return t(),n("div",Go,[v(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Mo.__scopeId="data-v-70b82c43",Mo.__file="src/waterfall/section/end-section.vue";var Qo=dn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:wo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Yo=["type"];Qo.render=function(e,o,a,i,c,r){const u=l("text-view");return t(),n("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(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,Yo)},Qo.__scopeId="data-v-20428d40",Qo.__file="src/waterfall/section/section-title.vue";var jo=dn({name:"blank-section",setup:()=>({})});const Ho={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};jo.render=function(e,o,a,l,s,i){return t(),n("div",Ho)},jo.__scopeId="data-v-eeab4d88",jo.__file="src/waterfall/section/blank-section.vue";var Xo=dn({name:"card-section",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-section","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Ko={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,focusScrollTarget:"${isFocusScrollTarget}",keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Xo.render=function(e,o,a,s,i,c){const r=l("text-view"),u=l("es-card-container");return t(),n("div",Ko,[v(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(u,{cardId:"${cardId}",onFocus:e.onFocus,clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"},null,8,["onFocus"])])},Xo.__scopeId="data-v-43a44788",Xo.__file="src/waterfall/section/card-section.vue";var Jo=dn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Zo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=ea(e,t[o]);n.push(a)}return n}function ea(e,t){let n=0;return t.itemList.length>0&&t.type==wo.QT_WATERFALL_SECTION_TYPE_FLEX&&(n=function(e){const t=e.itemList,n=e.style?.spacing??0,o=e.titleStyle,a=o?.height??0;const l=o?.marginTop??0,s=o?.marginBottom??0;const i=o?.paddingTop??0,c=o?.paddingBottom??0;let r=e.style.height??0,u=e.style.width??0;e.decoration;let d=0,f=0,p=0;for(let e=0;e<t.length;e++){const o=t[e];let a=o?.style.width??0,l=o?.style.height??0;const s=o.style.x,i=o.style.y;if(null!=s&&null!=i)o.layout=[s,i,a,l];else{const e=o.decoration,t=e?.left??0,s=e?.top??0,i=e?.right??0,c=e?.bottom??0;d+a+i>=u&&(f+=p+n,p=0,d=0),o.layout||(o.layout=[0,0,a,l]),o.layout[0]=d+t,o.layout[1]=f+s,o.layout[1]+l+c>r&&(r=o.layout[1]+l+c),l+s+c>p&&(p=l+s+c),d+=a+n+t+i}}return r+a+l+s+i+c}(t),t.style.height=n),t}function ta(){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 l=n+o;n+o>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<l;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 l=e.length,s=n(0,l),i=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:l,sectionCount:a.length,itemIndex:s,itemCount:i}},deleteSection:function(t,a){const l=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:l,itemCount:s}},updateSection:function(a,l){const s=n(0,a-1),i=t(l);return e.splice(a,1,l),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:i}},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 l=e[t],s=l.itemList.length;return l.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,l){return e[t].itemList.splice(n,a,...l),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=[]}}}Jo.render=function(e,n,a,s,i,c){const r=l("tv-item");return t(),d(r,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[o(e.$slots,"default")])),_:3},8,["onItemBind"])},Jo.__scopeId="data-v-f8447724",Jo.__file="src/waterfall/section/vue-section.vue";const na="qt-waterfall";var oa,aa=dn({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},blockFocusDirections:{type:Array,default:()=>["down"]}},setup(t,n){const o=P(),a={name:"tvList"+Date.now(),size:{20008:10}},l=e();let s;const i=ta();return{waterfallRef:l,init:function(e){s=e},setAutoFocus:function(e,t){l.value?.setAutoFocus(e,t)},getSectionList:function(){return i.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(C.DEBUG)&&o.d(na,"-------1---setSectionList--------------\x3e>>"),i.destroy();const t=i.addSectionList(e);o.isLoggable(C.DEBUG)&&o.d(na,"-------2---setSectionList--------------\x3e>>",t);const n=Zo(s,e);o.isLoggable(C.DEBUG)&&o.d(na,"----------setSectionList-----最终数据---------\x3e>>",n),l.value?.setListData(n)},addSectionList:function(e){if(!s)return;i.addSectionList(e);const t=Zo(s,e);o.isLoggable(C.DEBUG)&&o.d(na,"----------addSectionList-----最终数据---------\x3e>>",t),l.value?.addListData(t)},deleteSection:function(e,t){const n=i.deleteSection(e,t);o.isLoggable(C.DEBUG)&&o.d(na,"----------deleteSection-----最终数据---------\x3e>>",n),l.value?.deleteItem(e,t)},updateSection:function(e,t){i.updateSection(e,t);const n=ea(0,t);o.isLoggable(C.DEBUG)&&o.d(na,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),l.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];i.updateSection(e+t,a);const l=ea(0,a);l&&o.push(l)}l.value?.updateItemList(e,t,o)},getSection:function(e){return i.getSection(e)},addItemList:function(e,t){i.addItemList(e,t);const n=i.getSection(e);if(n){const t=ea(0,n);l.value?.updateItem(e,t)}},deleteItem:function(e,t,n){i.deleteItem(e,t,n);const o=i.getSection(e);if(o){const t=ea(0,o);l.value?.updateItem(e,t)}},updateItem:function(e,t,n){i.updateItem(e,t,n);const o=i.getSection(e);if(o){const t=ea(0,o);l.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){i.updateItemList(e,t,n,o);const a=i.getSection(e);if(a){const t=ea(0,a);l.value?.updateItem(e,t)}},getItem:function(e,t){return i.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let t=e.offsetX,o=e.offsetY;n.emit("onScroll",t,o)},onItemClick:function(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),n.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),n.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onSectionBind--------------\x3e>>",e);let t=e.pageIndex??0;n.emit("onSectionBind",t,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onSectionAttached--------------\x3e>>",e);let t=e.pageIndex??0;n.emit("onSectionAttached",t,e.position)}},onScrollStateChanged:function(e){let t=e.offsetY,o=e.offsetX,a=e.newState;n.emit("onScrollStateChanged",o,t,a)},resumePostTask:function(){l.value?.pausePostTask()},pausePostTask:function(){l.value?.pausePostTask()},clearPostTask:function(){l.value?.clearPostTask()},destroy:function(){l.value?.destroy()},scrollToTop:function(){l.value?.scrollToTop()}}},components:{"flex-section":Bo,"tabs-list-section":Uo,"section-title":Qo,"loading-section":qo,"end-section":Mo,"blank-section":jo,"card-section":Xo,"vue-section":Jo}});function la(){const e=new Map,t=new Map;function n(n){const o={index:n,state:oa.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 l=t+n;t+n>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<l;n++){s+=o(e[n])}return s}function l(){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)},setPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,s){const i=t.get(n)??[],c=i.length,r=a(i,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);i.push(...s);const d=e.get(n);return d&&(d.state=oa.QT_TAB_PAGE_STATE_IDLE),l(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],i=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),l(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:i,itemCount:c}},updateSection:function(e,n,s){const i=t.get(e)??[],c=a(i,0,n-1),r=o(s);return i.splice(n,1,s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),l(),{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 i=a[n],c=i.itemList.length;return i.itemList.push(...o),l(),{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),l(),{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),l(),{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),l(),{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()}}}aa.render=function(e,n,a,s,i,r){const u=l("flex-section"),f=l("tabs-list-section"),p=l("loading-section"),g=l("end-section"),h=l("blank-section"),_=l("card-section"),b=l("vue-section"),y=l("tv-list");return t(),d(y,{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:e.blockFocusDirections,onScrollStateChanged:e.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),v(u,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder,onFocus:e.onItemFocused},{default:m((()=>[o(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder","onFocus"]),c("一行滚动 多级tab"),v(f,{enablePlaceholder:e.enablePlaceholder},{default:m((()=>[o(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),v(p),c(" end "),v(g),c(" blank "),v(h),c(" card "),v(_,{onFocus:e.onItemFocused},null,8,["onFocus"]),c(" vue "),v(b,null,{default:m((()=>[o(e.$slots,"vue-section")])),_:3}),o(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","blockFocusDirections","onScrollStateChanged"])},aa.__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"}(oa||(oa={}));const sa="qt-tab";var ia=dn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged","onTabMoveToTopStart","onTabMoveToTopEnd","onTabMoveToBottomStart","onTabMoveToBottomEnd","onTabChanged","onTabPageScrollToEnd","onTabPageScrollToStart"],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:()=>[]},tabContentBlockFocusDirections:{type:Array,default:()=>["down"]},tabContentResumeDelay:{type:Number,default:500},tabContentSwitchDelay:{type:Number,default:300}},setup(t,n){const o=e(),a=e(!0),l=e(1),s=e(!0),i=P(),c=e(),r=la();let u,d=-1;function f(e,t){const n=r.getTabPageData(e);n&&(n.state=t,r.setPageData(e,n))}function p(e,o,a){let l=r.getTabPageData(e);if(l&&l.state===oa.QT_TAB_PAGE_STATE_IDLE){a>=r.getSectionList(e).length-t.preloadNumber-1&&(i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+e+" sectionIndex:"+a),n.emit("onTabPageLoadData",e,o),f(e,oa.QT_TAB_PAGE_STATE_BUSY))}else i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData--状态不对--\x3e>>>",e)}function g(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+t),n.emit("onTabPageScroll",e,t)}function m(e,t,o){i.isLoggable(C.DEBUG)&&i.d(sa,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+t+" newState:"+o),n.emit("onTabPageScrollStateChanged",e,t,o)}return{tabs:o,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};r.initTab(e),o.value?.setTabsData(t)},setAutoFocus:function(e,t){o.value?.setAutoFocus(e,t)},initPage:function(e){u=e},setPageSate:f,setPageData:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----setPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const n={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(sa,"------设置数据----setPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const a={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(sa,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){r.updateSectionList(e,t.data);const n={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){r.updateSection(e,t,n);const a=ea(0,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return r.getSection(e,t)},getPageSectionList:function(e){return r.getSectionList(e)},deletePageSection:function(e,t,n){r.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){r.addItemList(e,t,n);const a=r.getSection(e,t);if(a){const n=ea(0,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return r.getItem(e,t,n)},updatePageItem:function(e,t,n,a){r.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){r.deleteItem(e,t,n,a);const l=r.getSection(e,t);if(l){const n=ea(0,l);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,l){o.value?.getChildNodeViewState(e,t,n,a,l)},dispatchUIFunctionOnChildNode:function(e,t,n,a,l){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,l)},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()},rootOpacity:l,isTabHorizontal:s,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----android--\x3e>>>pageIndex:"+t),p(t,n,0)},onTabPageChanged:function(e){const t=e.pageIndex;d=t;const o=e.data;i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageChanged------\x3e>>> pageIndex:"+t+" data:",o),n.emit("onTabPageChanged",t,o)},onTabEvent:function(e){const t=e.params,o=e.eventName,a=e.params.itemPosition,l=e.params.x,s=e.params.y,c=e.params.contentOffset,r=e.params.state;switch(i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabEvent------\x3e>>> eventName:"+o+" tabIndex:"+a+" params:",t),n.emit("onTabEvent",a,o,t),o){case"onMoveToTopStart":n.emit("onTabMoveToTopStart",a,o,t);break;case"onMoveToTopEnd":n.emit("onTabMoveToTopEnd",a,o,t);break;case"onMoveToBottomStart":n.emit("onTabMoveToBottomStart",a,o,t);break;case"onMoveToBottomEnd":n.emit("onTabMoveToBottomEnd",a,o,t);break;case"onTabChanged":n.emit("onTabChanged",a,o,t);break;case"onScroll":g(l,s);break;case"onScrollStateChanged":m(c.x,c.y,r.newState)}},onWaterfallItemClick:function(e,t,o){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" item:",o),n.emit("onTabPageItemClick",d,e,t,o)},onWaterfallItemFocused:function(e,t,o,a){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" isFocused:"+o+" item:",a),n.emit("onTabPageItemFocused",d,e,t,o,a)},onWaterfallSectionBind:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===d&&(i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),p(e,!1,t))},onWaterfallSectionAttached:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),n.emit("onTabPageSectionAttached",e,t)},onWaterfallScroll:g,onWaterfallScrollStateChanged:m,onTabPageScrollToStart:function(e){const t=e.pageIndex;n.emit("onTabPageScrollToStart",t),i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageScrollToStart------\x3e>>> pageIndex:"+t)},onTabPageScrollToEnd:function(e){const t=e.pageIndex;n.emit("onTabPageScrollToEnd",t),i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageScrollToEnd------\x3e>>> pageIndex:"+t)}}}});ia.render=function(e,n,a,s,r,u){const f=l("qt-nav-bar"),p=l("qt-waterfall"),g=l("recycler-view-pager"),h=l("tabs");return e.ifTabs?(t(),d(h,{key:0,ref:"tabs",class:i(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.tabContentSwitchDelay,resumeTaskDelay:e.tabContentResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:e.tabContentBlockFocusDirections,onScrollToStart:e.onTabPageScrollToStart,onScrollToEnd:e.onTabPageScrollToEnd,onLoadPage:e.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:m((()=>[v(f,{ref:"navBarRef",name:"tabList",focusable:!1,class:i(e.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:m((()=>[o(e.$slots,"tab-item")])),_:3},8,["class","horizontal"]),v(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:i(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((()=>[v(p,{onOnScrollStateChanged:e.onWaterfallScrollStateChanged,onOnScroll:e.onWaterfallScroll,onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:m((()=>[o(e.$slots,"waterfall-item")])),"list-item":m((()=>[o(e.$slots,"waterfall-list-item")])),section:m((()=>[o(e.$slots,"waterfall-section")])),"vue-section":m((()=>[o(e.$slots,"waterfall-vue-section")])),_:3},8,["onOnScrollStateChanged","onOnScroll","onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","blockFocusDirections","onScrollToStart","onScrollToEnd","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},ia.__file="src/tab/index.vue";var ca=dn({name:"qt-vue-section",setup:(e,t)=>({onSectionBind:function(){}})});ca.render=function(e,n,a,s,i,c){const r=l("tv-item");return t(),d(r,{class:"qt-ui-waterfall-vue-section",clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[o(e.$slots,"default")])),_:3},8,["onItemBind"])},ca.__scopeId="data-v-d02af3c2",ca.__file="src/section/index.vue";var ra=dn({name:"qt-classified-list-view",props:{className:{type:String,default:"content_list_view"},classNavName:{type:String,default:"nav_list_view"},currentFocusIndex:{type:Number,default:0},focusScale:{type:Number,default:1.15},navType:{type:Number,default:10001},yOffest:{type:Number,default:802}},emits:["item-click","item-focused"],setup(t,n){let o=e(1);const a=e(),l=e();let s=[],i=-1,c=-1,r=[];let u=-1;let d=-1,f=-1;return{descendantFocusability:o,content_list_view:a,nav_list_view:l,init:e=>{e.forEach(((n,o)=>{n.mask||(n.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),n.icon||(n.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png"),n.isPlaying=!1,t.currentFocusIndex==o&&(n.isPlaying=!0);let a=!1;for(let e=0;e<s.length;e++){const t=s[e];n.categoryname==t.categoryname&&(n.navIndex=e,a=!0)}a||(n.navIndex||(n.navIndex=s.length),s.push({type:n.type,decoration:{left:50},categoryname:n.categoryname,startIndex:o,isNeedFocus:!0})),r=e})),Mt((()=>{a.value?.setListData(e),l.value?.setListData(s),setTimeout((()=>{i=t.currentFocusIndex,c=e[t.currentFocusIndex].navIndex,a.value?.scrollToFocused(i),l.value?.scrollToSelected(c,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{n.emit("item-click",e)},onFItemClick:e=>{n.emit("item-click",e)},scrollToIndex:(e,t=!0,n=802)=>{a.value?.scrollToIndex(e,t,n)},scrollToFocused:e=>{o.value=1,setTimeout((()=>{a.value?.scrollToFocused(e)}),300)},setItemFocused:e=>{setTimeout((()=>{o.value=1}),300),a.value?.setItemFocused(e)},scrollToSelected:(e,t=!0)=>{a.value?.scrollToSelected(e,t)},setItemSelected:(e,t=!0)=>{a.value?.setItemSelected(e,!0)},onSItemFocused:e=>{clearTimeout(u),u=setTimeout((()=>{if(e.hasFocus){if(i!=e.position){if(i>-1){let e=r[i];e.isPlaying=!1,a.value?.updateItem(i,e)}let t=r[e.position];t.isPlaying=!0,a.value?.updateItem(e.position,t)}i=e.position,c!=e.item.navIndex&&(c=e.item.navIndex,l.value?.scrollToSelected(e.item.navIndex,!0)),n.emit("item-focused",e)}else c=e.item.navIndex}),300)},onFItemFocused:e=>{clearTimeout(d),clearTimeout(f),e.hasFocus&&c!=e.position&&(o.value=2,c=e.position,r[e.item.startIndex].isNeedFocus?(a.value?.scrollToIndex(e.item.startIndex,!0,t.yOffest),f=setTimeout((()=>{a.value?.setItemSelected(e.item.startIndex,!0),d=setTimeout((()=>{o.value=1}),200)}),400)):(a.value?.scrollToIndex(e.item.startIndex+1,!0,t.yOffest),f=setTimeout((()=>{a.value?.setItemSelected(e.item.startIndex+1,!0),d=setTimeout((()=>{o.value=1}),200)}),400)))},updateItem:(e,t)=>{r[e]=t,r.forEach(((e,t)=>{e.mask||(e.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),e.icon||(e.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png");for(let t=0;t<s.length;t++){const n=s[t];e.categoryname==n.categoryname&&(e.navIndex=t)}})),a.value?.updateItem(e,r[e])}}}});const ua={focusable:!1,clipChildren:!1},da=["focusScale"],fa=_("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1),pa=_("img",{src:"${mask}",class:"titMask",focusable:!1,postDelay:"300",showIf:"${isPlaying}"},null,-1),ga={focusable:!1,class:"clv_item_text_box",showIf:"${isPlaying}"},ma={class:"playMark",focusable:!1},ha=["type"],va=_("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1),_a=_("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1),ba={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var ya,Ta,Sa,Ia;ra.render=function(e,a,r,u,d,f){const p=l("play-mark"),g=l("text-view"),h=l("qt-list-view");return t(),n("div",ua,[c(" listview second nav "),v(h,{class:i(e.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],descendantFocusability:e.descendantFocusability,onItemFocused:e.onSItemFocused},{default:m((()=>[_("div",{type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:e.focusScale},[fa,pa,_("div",ga,[_("div",ma,[v(p,{style:s([{width:"28px",height:"20px"},{"margin-left":"16px"}]),markColor:"#ffffff",gap:-1,focusable:!1})]),v(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[6,0,0,0]})])],8,da),o(e.$slots,"item")])),_:3},8,["class","onItemClick","descendantFocusability","onItemFocused"]),c(" listview first nav "),v(h,{class:i(e.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onFItemFocused},{default:m((()=>[_("div",{type:e.navType,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},[va,_a,_("div",ba,[v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])],8,ha),o(e.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},ra.__file="src/classified-list-view/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(ya||(ya={})),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"}(Sa||(Sa={})),function(e){e[e.QT_TAB_ITEM_TYPE_DEFAULT=2e4]="QT_TAB_ITEM_TYPE_DEFAULT"}(Ia||(Ia={}));const xa=[Xn,Jn,eo,no,ao,so,_o,xo,ko,aa,ia,ra,ca],Ea=t=>{t.component("qt-loading-view",{setup(t,n){const o=e();return()=>I("LoadingViewComponent",{ref:o})}}),function(t){const n=a({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,n){const o=e();F();let a=[],l=[],s=[],i="",c=-1,r=!1,u=-1,d=-1,f=-1,m=-1;p((()=>{t.openPage&&(c=1,r=!1,t.loadMore(c))}));const h=e=>{0==a.length&&(a=vo(e),v(a,-1),l=e,t.openPage?y(a.concat([{_id:"",type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):y(a),t.defaultFocus>-1&&(f&&clearTimeout(f),f=setTimeout((()=>{N(t.defaultFocus)}),500)));let n={get(e,o,l){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(s.push(o),-1!=s.indexOf("push"))i="push";else{if(-1!=s.indexOf("splice"))return i="splice",function(...t){return e.splice(...t),-1!=s.indexOf("list")?(a[s[0]].list.splice(...t),P(Number(s[0]),a[s[0]])):1==t.length?E(Number(t[0]),a.length-t[0]+1):2==t.length?E(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))),a.splice(t[0],...t.slice(1)),i="",s=[],Reflect.get(e,o,l)};if(-1!=s.indexOf("pop"))return i="pop",function(){return e.pop(),-1!=s.lastIndexOf("list")?(a[s[0]].list.pop(),P(Number(s[0]),a[s[0]])):(E(Number(a.length-1),1),a.pop()),i="",s=[],Reflect.get(e,o,l)};if(-1!=s.indexOf("forEach"))return i="forEach",function(n){return e.forEach((e=>{n(e)})),a=[],a=vo(e),t.openPage?y(a.concat([{_id:"",type:1002,decoration:{top:15,left:30}}])):y(a),i="",s=[],Reflect.get(e,o,l)};if(-1!=s.indexOf("concat"))return i="concat",function(c){return e=e.concat(c),-1!=s.lastIndexOf("list")?(a[s[0]].list=a[s[0]].list.concat(c),P(Number(s[0]),a[s[0]])):(a=a.concat(c),t.openPage&&!r?setTimeout((()=>{S(c.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):T(c)),i="",s=[],Reflect.get(e,o,l),new Proxy(e,n)};i=""}const c=Reflect.get(e,o,l);return _(c)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?h(c):(-1==s.indexOf("push")&&(s=[]),c)},set(e,n,o,c){const u=e[n];b(e,n);const d=Reflect.set(e,n,o,c);if((!_(u)&&u!==o||_(u))&&"push"!=i)if(s.push(n),-1!=s.lastIndexOf("list")){let e=s.lastIndexOf("list"),t=s.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=s[e];n=n?n[t]:l[t]}n.name="name"+s[e-1]+s[e+1],P(Number(s[0]),l[s[0]]),a[s[0]].list[s[e+1]]=l[s[0]].list[s[e+1]],a[s[0]].list[s[e+1]].name="name"+s[e-1]+s[e+1]}else a[s[0]]=l[s[0]],a[s[0]].name="name"+s[0],P(Number(s[0]),l[s[0]]);if(n&&"push"==i&&u!==o)-1!=s.lastIndexOf("list")?(s.push(n),a[s[0]].list.push(o)):(s.push(n),a.push(o));else{if("push"==i)if(-1!=s.lastIndexOf("list"))P(Number(s[0]),a[s[0]]);else{let e=a.slice(s[1]);m&&clearTimeout(m),m=t.openPage&&!r?setTimeout((()=>{S(e.concat([{_id:"",type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{T(e)}),300)}i="",s=[]}return d}};return new Proxy(e,n)},v=(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&&v(o.list,n)}},_=e=>null!==e&&"object"==typeof e,b=(e,t)=>{Object.hasOwnProperty.call(e,t)},y=e=>{u&&clearTimeout(u),u=setTimeout((()=>{x.callUIFunction(o.value,"setListData",e)}),100)},T=e=>{x.callUIFunction(o.value,"addListData",e)},S=(e,t)=>{x.callUIFunction(o.value,"addListDataWithParams",[e,t])},E=(e,t)=>{x.callUIFunction(o.value,"deleteItemRange",[e,t])},P=(e,t)=>{x.callUIFunction(o.value,"updateItem",[e,t])},C=(e,t,n)=>{x.callUIFunction(o.value,"updateItemRange",[e,t,n])},L=(e,t)=>{x.callUIFunction(o.value,"insertItemRange",[e,t])},k=(e,t)=>{x.callUIFunction(o.value,"setSelectChildPosition",[e,t])},D=e=>{x.callUIFunction(o.value,"scrollToPosition",[e])},N=e=>{x.callUIFunction(o.value,"requestChildFocus",[e])};return g((()=>{a=[],l.length=0,s=[],r=!1,c=1,i="",u&&clearTimeout(u),f&&clearTimeout(f),m&&clearTimeout(m),d&&clearTimeout(d)})),n.expose({viewRef:o,init:h,undataItemName:v,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(e,t,n)=>{x.callUIFunction(o.value,"scrollToPositionWithOffset",[e,n,t])},updateItem:P,updateItemList:C,hasFocus:e=>{x.callUIFunction(o.value,"hasFocus",(t=>{e(t)}))},updateItemProps:(e,t,n)=>{x.callUIFunction(o.value,"updateItemProps",[t,e,n,!0])},setListData:y,insertItem:L,addListData:T,addListDataWithParams:S,dispatchItemFunction:(e,t,n,a)=>{x.callUIFunction(o.value,"dispatchItemFunction",[e,t,n,a])},deleteItem:E,setBlockFocusDirectionsOnFail:e=>{x.callUIFunction(o.value,"setBlockFocusDirectionsOnFail",[e])},setListDataWithParams:(e,t)=>{x.callUIFunction(o.value,"setListDataWithParams",[e,t])},prepareForRecycle:()=>{x.callUIFunction(o.value,"prepareForRecycle",[])},setDisplay:e=>{x.callUIFunction(o.value,"setDisplay",[e])},scrollToTop:()=>{x.callUIFunction(o.value,"scrollToTop",[])},changeDisplayState:(e,t)=>{x.callUIFunction(o.value,"changeDisplayState",[e,t])},notifySaveInstance:()=>{x.callUIFunction(o.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{x.callUIFunction(o.value,"notifyRestoreInstance",[])},pausePostTask:()=>{x.callUIFunction(o.value,"pausePostTask",[])},resumePostTask:()=>{x.callUIFunction(o.value,"resumePostTask",[])},getScrollOffset:e=>{x.callUIFunction(o.value,"getScrollOffset",[],e)},scrollToPosition:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(e,t,n,a,l)=>{x.callUIFunction(o.value,"scrollToPositionWithOffset",[t,a,n])},destroy:()=>{x.callUIFunction(o.value,"destroy",[])},startScroll:(e,t,n)=>{x.callUIFunction(o.value,"startScroll",[{focusPosition:e,scrollToPosition:t,scrollOffset:n}])},setItemFocused:N,clearPostTask:()=>{x.callUIFunction(o.value,"clearAllPostTask",[])},clearFocus:()=>{x.callUIFunction(o.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{x.callUIFunction(o.value,"blockRootFocus",[])},unBlockRootFocus:()=>{x.callUIFunction(o.value,"unBlockRootFocus",[])},setBackgroundColor:e=>{x.callUIFunction(o.value,"setBackgroundColor",[e])},stopPage:()=>{d&&clearTimeout(d),d=setTimeout((()=>{E(a.length,1)}),400),r=!0},setAutoFocus:function(e,t){x.callUIFunction(o.value,"setAutoFocus",[e,t])}}),()=>{const e=n.slots.default&&n.slots.default();return I("FastListView",{ref:o,onItemClick:e=>{n.emit("item-click",e)},onScroll:e=>{n.emit("scroll",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onBindItem:e=>{e.position==a.length-1-t.preloadNo&&(c++,t.loadMore(c)),n.emit("item-bind",e)},onUnbindItem:e=>{n.emit("item-unbind",e)},onLoadMore:e=>{n.emit("load-more",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{n.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{n.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{n.emit("scrollYLesserReference",e)}},e)}}});t.component("qt-list-view",n)}(t),function(t){const n=a({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,n){const o=e();return n.expose({viewRef:o,updateItem:(e,t)=>{x.callUIFunction(o.value,"updateItem",[e,t])},dispatchItemFunction:(e,t,n,a)=>{x.callUIFunction(o.value,"dispatchItemFunction",[e,t,n,a])},updateItemProps:(e,t,n)=>{x.callUIFunction(o.value,"updateItemProps",[t,e,n,!0])},batch:e=>{x.callUIFunction(o.value,"batch",[e])}}),()=>{const e=n.slots.default&&n.slots.default();return I("FastListView",{ref:o,onBindItem:e=>{n.emit("item-bind",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onItemRecycled:e=>{n.emit("item-unbind",e)}},e)}}});t.component("qt-list-item",n)}(t);for(let e in xa)t.component(xa[e].name,xa[e])};export{ya as QTDirections,Sa as QTNavBarItemType,Ta as QTScrollState,Ia as QTTabItemType,oa as QTTabPageState,Oo as QTWaterfallItemType,wo as QTWaterfallSectionType,Ea as QuickTVUI,go as arrangeChildren4ListView};
1
+ import{ref as e,openBlock as t,createElementBlock as n,renderSlot as o,defineComponent as a,resolveComponent as l,normalizeStyle as s,normalizeClass as i,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,watchEffect as p,onBeforeUnmount as g,withCtx as m,Fragment as h,createVNode as v,createElementVNode as _,pushScopeId as y,popScopeId as b,reactive as T,watch as S,h as I}from"vue";import{Native as x}from"@extscreen/es3-vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";function L(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]}const k="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const D=()=>{},N=/^on[^a-z]/,w=e=>N.test(e),O=Object.assign,B=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,R=(e,t)=>A.call(e,t),$=Array.isArray,U=e=>"[object Map]"===Y(e),V=e=>"[object Set]"===Y(e),z=e=>"function"==typeof e,q=e=>"string"==typeof e,W=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,G=e=>(M(e)||z(e))&&z(e.then)&&z(e.catch),Q=Object.prototype.toString,Y=e=>Q.call(e),j=e=>Y(e).slice(8,-1),H=e=>"[object Object]"===Y(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=(e,t)=>!Object.is(e,t),Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ne(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=q(o)?se(o):ne(o);if(a)for(const e in a)t[e]=a[e]}return t}if(q(e)||M(e))return e}const oe=/;(?![^(]*\))/g,ae=/:([^]+)/,le=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(le,"").split(oe).forEach((e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ie(e){let t="";if(q(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const o=ie(e[n]);o&&(t+=o+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ce(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let re;const ue=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,pe=new WeakMap;let ge=0,me=1;const he=30;let ve;const _e=Symbol("production"!==process.env.NODE_ENV?"iterate":""),ye=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class be{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=re){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=Se;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,Se=!0,me=1<<++ge,ge<=he?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):Te(this),this.fn()}finally{ge<=he&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];de(a)&&!fe(a)?a.delete(e):t[n++]=a,a.w&=~me,a.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,Se=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===this?this.deferStop=!0:this.active&&(Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Se=!0;const Ie=[];function xe(){Ie.push(Se),Se=!1}function Ee(){const e=Ie.pop();Se=void 0===e||e}function Fe(e,t,n){if(Se&&ve){let o=pe.get(e);o||pe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=ue());!function(e,t){let n=!1;ge<=he?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve);n&&(e.add(ve),ve.deps.push(e),"production"!==process.env.NODE_ENV&&ve.onTrack&&ve.onTrack(O({effect:ve},t)))}(a,"production"!==process.env.NODE_ENV?{effect:ve,target:e,type:t,key:n}:void 0)}}function Pe(e,t,n,o,a,l){const s=pe.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&$(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!W(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":$(e)?X(n)&&i.push(s.get("length")):(i.push(s.get(_e)),U(e)&&i.push(s.get(ye)));break;case"delete":$(e)||(i.push(s.get(_e)),U(e)&&i.push(s.get(ye)));break;case"set":U(e)&&i.push(s.get(_e))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:l}:void 0;if(1===i.length)i[0]&&("production"!==process.env.NODE_ENV?Ce(i[0],c):Ce(i[0]));else{const e=[];for(const t of i)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ce(ue(e),c):Ce(ue(e))}}function Ce(e,t){const n=$(e)?e:[...e];for(const e of n)e.computed&&Le(e,t);for(const e of n)e.computed||Le(e,t)}function Le(e,t){(e!==ve||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(O({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ke=L("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(W)),Ne=we();function we(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Tt(this);for(let e=0,t=this.length;e<t;e++)Fe(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Tt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){xe();const n=Tt(this)[t].apply(this,e);return Ee(),n}})),e}function Oe(e){const t=Tt(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,a=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t&&n===(o?a?ft:dt:a?ut:rt).get(e))return e;const l=$(e);if(!o){if(l&&R(Ne,t))return Reflect.get(Ne,t,n);if("hasOwnProperty"===t)return Oe}const s=Reflect.get(e,t,n);return(W(t)?De.has(t):ke(t))?s:(o||Fe(e,"get",t),a?s:xt(s)?l&&X(t)?s:s.value:M(s)?o?gt(s):pt(s):s)}}class Ae extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];if(_t(a)&&xt(a)&&!xt(n))return!1;if(!this._shallow&&(yt(n)||_t(n)||(a=Tt(a),n=Tt(n)),!$(e)&&xt(a)&&!xt(n)))return a.value=n,!0;const l=$(e)&&X(t)?Number(t)<e.length:R(e,t),s=Reflect.set(e,t,n,o);return e===Tt(o)&&(l?J(n,a)&&Pe(e,"set",t,n,a):Pe(e,"add",t,n)),s}deleteProperty(e,t){const n=R(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Pe(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return W(t)&&De.has(t)||Fe(e,"has",t),n}ownKeys(e){return Fe(e,"iterate",$(e)?"length":_e),Reflect.ownKeys(e)}}class Re extends Be{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&ce(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&ce(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const $e=new Ae,Ue=new Re,Ve=new Re(!0),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,o=!1){const a=Tt(e=e.__v_raw),l=Tt(t);n||(J(t,l)&&Fe(a,"get",t),Fe(a,"get",l));const{has:s}=qe(a),i=o?ze:n?It:St;return s.call(a,t)?i(e.get(t)):s.call(a,l)?i(e.get(l)):void(e!==a&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=Tt(n),a=Tt(e);return t||(J(e,a)&&Fe(o,"has",e),Fe(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ge(e,t=!1){return e=e.__v_raw,!t&&Fe(Tt(e),"iterate",_e),Reflect.get(e,"size",e)}function Qe(e){e=Tt(e);const t=Tt(this);return qe(t).has.call(t,e)||(t.add(e),Pe(t,"add",e,e)),this}function Ye(e,t){t=Tt(t);const n=Tt(this),{has:o,get:a}=qe(n);let l=o.call(n,e);l?"production"!==process.env.NODE_ENV&&ct(n,o,e):(e=Tt(e),l=o.call(n,e));const s=a.call(n,e);return n.set(e,t),l?J(t,s)&&Pe(n,"set",e,t,s):Pe(n,"add",e,t),this}function je(e){const t=Tt(this),{has:n,get:o}=qe(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&ct(t,n,e):(e=Tt(e),a=n.call(t,e));const l=o?o.call(t,e):void 0,s=t.delete(e);return a&&Pe(t,"delete",e,void 0,l),s}function He(){const e=Tt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?U(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Pe(e,"clear",void 0,void 0,n),o}function Xe(e,t){return function(n,o){const a=this,l=a.__v_raw,s=Tt(l),i=t?ze:e?It:St;return!e&&Fe(s,"iterate",_e),l.forEach(((e,t)=>n.call(o,i(e),i(t),a)))}}function Ke(e,t,n){return function(...o){const a=this.__v_raw,l=Tt(a),s=U(l),i="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?ze:t?It:St;return!t&&Fe(l,"iterate",c?ye:_e),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${K(e)} operation ${n}failed: target is readonly.`,Tt(this))}return"delete"!==e&&this}}function Ze(){const e={get(e){return We(this,e)},get size(){return Ge(this)},has:Me,add:Qe,set:Ye,delete:je,clear:He,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return Ge(this)},has:Me,add:Qe,set:Ye,delete:je,clear:He,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!1)},o={get(e){return We(this,e,!0,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=Ke(a,!1,!1),n[a]=Ke(a,!0,!1),t[a]=Ke(a,!1,!0),o[a]=Ke(a,!0,!0)})),[e,n,t,o]}const[et,tt,nt,ot]=Ze();function at(e,t){const n=t?e?ot:nt:e?tt:et;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(R(n,o)&&o in t?n:t,o,a)}const lt={get:at(!1,!1)},st={get:at(!0,!1)},it={get:at(!0,!0)};function ct(e,t,n){const o=Tt(n);if(o!==n&&t.call(e,o)){const t=j(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 rt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap;function pt(e){return _t(e)?e:ht(e,!1,$e,lt,rt)}function gt(e){return ht(e,!0,Ue,st,dt)}function mt(e){return ht(e,!0,Ve,it,ft)}function ht(e,t,n,o,a){if(!M(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 l=a.get(e);if(l)return l;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(j(i));var i;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function vt(e){return _t(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function _t(e){return!(!e||!e.__v_isReadonly)}function yt(e){return!(!e||!e.__v_isShallow)}function bt(e){return vt(e)||_t(e)}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}const St=e=>M(e)?pt(e):e,It=e=>M(e)?gt(e):e;function xt(e){return!(!e||!0!==e.__v_isRef)}const Et={get:(e,t,n)=>{return xt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return xt(a)&&!xt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Ft=[];function Pt(e,...t){if("production"===process.env.NODE_ENV)return;xe();const n=Ft.length?Ft[Ft.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Ft[Ft.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)Dt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${jn(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 <${jn(e.component,e.type,o)}`,l=">"+n;return e.props?[a,...Ct(e.props),l]:[a+l]}(e))})),t}(a)),console.warn(...n)}Ee()}function Ct(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Lt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Lt(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xt(t)?(t=Lt(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}const kt={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 Dt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){wt(e,t,n)}return a}function Nt(e,t,n,o){if(z(e)){const a=Dt(e,t,n,o);return a&&G(a)&&a.catch((e=>{wt(e,t,n)})),a}const a=[];for(let l=0;l<e.length;l++)a.push(Nt(e[l],t,n,o));return a}function wt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l="production"!==process.env.NODE_ENV?kt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,l))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Dt(s,null,10,[e,a,l])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const l=kt[t];if(n&&(a=n,Ft.push(a)),Pt("Unhandled error"+(l?` during execution of ${l}`:"")),n&&Ft.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Ot=!1,Bt=!1;const At=[];let Rt=0;const $t=[];let Ut=null,Vt=0;const zt=Promise.resolve();let qt=null;const Wt=100;function Mt(e){const t=qt||zt;return e?t.then(this?e.bind(this):e):t}function Gt(e){At.length&&At.includes(e,Ot&&e.allowRecurse?Rt+1:Rt)||(null==e.id?At.push(e):At.splice(function(e){let t=Rt+1,n=At.length;for(;t<n;){const o=t+n>>>1,a=At[o],l=jt(a);l<e||l===e&&a.pre?t=o+1:n=o}return t}(e.id),0,e),Qt())}function Qt(){Ot||Bt||(Bt=!0,qt=zt.then(Xt))}function Yt(e){$(e)?$t.push(...e):Ut&&Ut.includes(e,e.allowRecurse?Vt+1:Vt)||$t.push(e),Qt()}const jt=e=>null==e.id?1/0:e.id,Ht=(e,t)=>{const n=jt(e)-jt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Xt(e){Bt=!1,Ot=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),At.sort(Ht);const t="production"!==process.env.NODE_ENV?t=>Kt(e,t):D;try{for(Rt=0;Rt<At.length;Rt++){const e=At[Rt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Dt(e,null,14)}}}finally{Rt=0,At.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Ut)return void Ut.push(...t);for(Ut=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ut.sort(((e,t)=>jt(e)-jt(t))),Vt=0;Vt<Ut.length;Vt++)"production"!==process.env.NODE_ENV&&Kt(e,Ut[Vt])||Ut[Vt]();Ut=null,Vt=0}}(e),Ot=!1,qt=null,(At.length||$t.length)&&Xt(e)}}function Kt(e,t){if(e.has(t)){const n=e.get(t);if(n>Wt){const e=t.ownerInstance,n=e&&Yn(e.type);return Pt(`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 Jt=new Set;"production"!==process.env.NODE_ENV&&(te().__VUE_HMR_RUNTIME__={createRecord:nn((function(e,t){if(Zt.has(e))return!1;return Zt.set(e,{initialDef:en(t),instances:new Set}),!0})),rerender:nn((function(e,t){const n=Zt.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,en(e.type).render=t),e.renderCache=[],e.update()}))})),reload:nn((function(e,t){const n=Zt.get(e);if(!n)return;t=en(t),tn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=en(e.type);Jt.has(o)||(o!==n.initialDef&&tn(o,t),Jt.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(Jt.add(o),e.ceReload(t.styles),Jt.delete(o)):e.parent?Gt(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.")}Yt((()=>{for(const e of o)Jt.delete(en(e.type))}))}))});const Zt=new Map;function en(e){return Hn(e)?e.__vccOpts:e}function tn(e,t){O(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function nn(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 on=null,an=null;const ln=Symbol.for("v-ndc");const sn={};function cn(e,t,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:s}=k){var i;"production"===process.env.NODE_ENV||t||(void 0!==n&&Pt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Pt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Pt("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=re===(null==(i=zn)?void 0:i.scope)?zn:null;let u,d,f=!1,p=!1;if(xt(e)?(u=()=>e.value,f=yt(e)):vt(e)?(u=()=>e,o=!0):$(e)?(p=!0,f=e.some((e=>vt(e)||yt(e))),u=()=>e.map((e=>xt(e)?e.value:vt(e)?un(e):z(e)?Dt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):z(e)?u=t?()=>Dt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Nt(e,r,3,[g])}:(u=D,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>un(e())}let g=e=>{d=_.onStop=()=>{Dt(e,r,4)}},m=p?new Array(e.length).fill(sn):sn;const h=()=>{if(_.active)if(t){const e=_.run();(o||f||(p?e.some(((e,t)=>J(e,m[t]))):J(e,m)))&&(d&&d(),Nt(t,r,3,[e,m===sn?void 0:p&&m[0]===sn?[]:m,g]),m=e)}else _.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>En(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>Gt(h));const _=new be(u,v);"production"!==process.env.NODE_ENV&&(_.onTrack=l,_.onTrigger=s),t?n?h():m=_.run():"post"===a?En(_.run.bind(_),r&&r.suspense):_.run();return()=>{_.stop(),r&&r.scope&&B(r.scope.effects,_)}}function rn(e,t,n){const o=this.proxy,a=q(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 l;z(t)?l=t:(l=t.handler,n=t);const s=zn;Wn(this);const i=cn(a,l.bind(o),n);return s?Wn(s):Mn(),i}function un(e,t){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),xt(e))un(e.value,t);else if($(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(V(e)||U(e))e.forEach((e=>{un(e,t)}));else if(H(e))for(const n in e)un(e[n],t);return e}
2
+ /*! #__NO_SIDE_EFFECTS__ */function dn(e,t){return z(e)?(()=>O({name:e.name},t,{setup:e}))():e}const fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,Z(n,"__v_skip",!0),vt(t=n)?t:new Proxy(t,Et)),{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=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?mt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?mt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?mt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?mt(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:l,config:{optionMergeStrategies:s}}=e.appContext,i=l.get(t);let c;i?c=i:a.length||n||o?(c={},a.length&&a.forEach((e=>_n(c,e,s,!0))),_n(c,t,s)):c=t;M(t)&&l.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Gt(e.update)),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):D}),gn=(e,t)=>e!==k&&!e.__isScriptSetup&&R(e,t),mn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:l,accessCache:s,type:i,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const i=s[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(gn(o,t))return s[t]=1,o[t];if(a!==k&&R(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&R(r,t))return s[t]=3,l[t];if(n!==k&&R(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!vn||(s[t]=0)}}const u=pn[t];let d,f;return u?("$attrs"===t?(Fe(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Fe(e,"get",t),u(e)):(d=i.__cssModules)&&(d=d[t])?d:n!==k&&R(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,R(f,t)?f[t]:void("production"===process.env.NODE_ENV||!on||q(t)&&0===t.indexOf("__v")||(a!==k&&(e=>"_"===e||"$"===e)(t[0])&&R(a,t)?Pt(`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===on&&Pt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:l}=e;return gn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&R(a,t)?(Pt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==k&&R(o,t)?(o[t]=n,!0):R(e.props,t)?("production"!==process.env.NODE_ENV&&Pt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Pt(`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(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:l}},s){let i;return!!n[s]||e!==k&&R(e,s)||gn(t,s)||(i=l[0])&&R(i,s)||R(o,s)||R(pn,s)||R(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:R(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(e){return $(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(mn.ownKeys=e=>(Pt("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 vn=!0;function _n(e,t,n,o=!1){const{mixins:a,extends:l}=t;l&&_n(e,l,n,!0),a&&a.forEach((t=>_n(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Pt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=yn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const yn={data:bn,props:xn,emits:xn,methods:In,computed:In,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:In,directives:In,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const o in t)n[o]=Sn(e[o],t[o]);return n},provide:bn,inject:function(e,t){return In(Tn(e),Tn(t))}};function bn(e,t){return t?e?function(){return O(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Tn(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Sn(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?O(Object.create(null),e,t):t}function xn(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:O(Object.create(null),hn(e),hn(null!=t?t:{})):t}const En=function(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):Yt(e)},Fn=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt");let Ln=null;const kn="__vInternal",Dn=({key:e})=>null!=e?e:null,Nn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?q(e)||xt(e)||z(e)?{i:on,r:e,k:t,f:!!n}:e:null);const wn="production"!==process.env.NODE_ENV?(...e)=>On(...e):On;function On(e,t=null,n=null,o=0,a=null,l=!1){if(e&&e!==ln||("production"===process.env.NODE_ENV||e||Pt(`Invalid vnode type when creating vnode: ${e}.`),e=Cn),(s=e)&&!0===s.__v_isVNode){const o=Bn(e,t,!0);return n&&$n(o,n),!l&&Ln&&(6&o.shapeFlag?Ln[Ln.indexOf(e)]=o:Ln.push(o)),o.patchFlag|=-2,o}var s;if(Hn(e)&&(e=e.__vccOpts),t){t=function(e){return e?bt(e)||kn in e?O({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=ie(e)),M(n)&&(bt(n)&&!$(n)&&(n=O({},n)),t.style=ne(n))}const i=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&bt(e)&&Pt("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=Tt(e)),function(e,t=null,n=null,o=0,a=null,l=(e===Fn?0:1),s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dn(t),ref:t&&Nn(t),scopeId:an,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:l,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:on};return i?($n(c,n),128&l&&e.normalize(c)):n&&(c.shapeFlag|=q(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Pt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Ln&&(c.patchFlag>0||6&l)&&32!==c.patchFlag&&Ln.push(c),c}(e,t,n,o,a,i,l,!0)}function Bn(e,t,n=!1){const{props:o,ref:a,patchFlag:l,children:s}=e,i=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=ie([t.class,o.class]));else if("style"===e)t.style=ne([t.style,o.style]);else if(w(e)){const n=t[e],a=o[e];!a||n===a||$(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:i,key:i&&Dn(i),ref:t&&t.ref?n&&a?$(a)?a.concat(Nn(t)):[a,Nn(t)]:Nn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===l&&$(s)?s.map(An):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Bn(e.ssContent),ssFallback:e.ssFallback&&Bn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function An(e){const t=Bn(e);return $(e.children)&&(t.children=e.children.map(An)),t}function Rn(e=" ",t=0){return wn(Pn,null,e,t)}function $n(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),$n(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kn in t?3===o&&on&&(1===on.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=on}}else z(t)?(t={default:t,_ctx:on},n=32):(t=String(t),64&o?(n=16,t=[Rn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Un,Vn,zn=null,qn="__VUE_INSTANCE_SETTERS__";(Vn=te()[qn])||(Vn=te()[qn]=[]),Vn.push((e=>zn=e)),Un=e=>{Vn.length>1?Vn.forEach((t=>t(e))):Vn[0](e)};const Wn=e=>{Un(e),e.scope.on()},Mn=()=>{zn&&zn.scope.off(),Un(null)};const Gn=/(?:^|[-_])(\w)/g,Qn=e=>e.replace(Gn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Yn(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function jn(e,t,n=!1){let o=Yn(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?Qn(o):n?"App":"Anonymous"}function Hn(e){return z(e)&&"__vccOpts"in e}var Xn=dn({name:"qt-view",emits:["clearFocus"],setup(t,n){const o=e();return{clearFocus:()=>{x.callUIFunction(o.value,"clearFocus")},requestFocus:()=>{x.callUIFunction(o.value,"requestFocus")},requestFocusDirectly:()=>{x.callUIFunction(o.value,"requestFocusDirectly")},viewRef:o}}});const Kn={clipChildren:!1,ref:"viewRef"};Xn.render=function(e,a,l,s,i,c){return t(),n("div",Kn,[o(e.$slots,"default")],512)},Xn.__file="src/view/index.vue";var Jn=dn({name:"qt-text"});const Zn={clipChildren:!1};Jn.render=function(e,a,l,s,i,c){return t(),n("span",Zn,[o(e.$slots,"default")])},Jn.__file="src/text/index.vue";var eo=dn({name:"qt-image"});const to={src:"",alt:"",clipChildren:!1};eo.render=function(e,o,a,l,s,i){return t(),n("img",to)},eo.__file="src/image/index.vue";var no=dn({name:"qt-column"});const oo={class:"qt-ui-row-css",clipChildren:!1};no.render=function(e,a,l,s,i,c){return t(),n("div",oo,[o(e.$slots,"default")])},no.__scopeId="data-v-734c04b2",no.__file="src/column/index.vue";var ao=dn({name:"qt-row"});const lo={class:"qt-ui-row-css",clipChildren:!1};ao.render=function(e,a,l,s,i,c){return t(),n("div",lo,[o(e.$slots,"default")])},ao.__scopeId="data-v-9c454b58",ao.__file="src/row/index.vue";var so=a({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},emits:["focus","click"],setup(t,n){const o=e(),a=e(!1);return{focused:a,requestFocus:function(){x.callUIFunction(o.value,"requestFocus",[])},requestFocusDirectly:function(){x.callUIFunction(o.value,"requestFocusDirectly",[])},onFocus:function(e){console.log("--------XXXXXXXXXXXXXXXXX--------------\x3e>>",a.value),a.value=e.isFocused,n.emit("focus",e.isFocused)},onClick:function(e){n.emit("click")}}}});const io=["focusable","enableFocusBorder","focusScale"],co=["gradientBackground"],ro=["gradientBackground"],uo=["gradientBackground"],fo=["src"],po=["src"];function go(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})}))}so.render=function(e,a,p,g,m,h){const v=l("text-view");return t(),n("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:a[0]||(a[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:a[1]||(a[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:s(e.buttonStyle),class:i(["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?(t(),n("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,co)):c("v-if",!0),e.gradientSelectedBackground?(t(),n("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,ro)):c("v-if",!0),e.gradientBackground?(t(),n("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,uo)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(t(),n("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:i(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((t(),n("img",{key:0,style:s(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:i(["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,fo)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((t(),n("img",{key:1,style:s(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:i(["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,po)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(t(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:i([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?(t(),n("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:i([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),o(e.$slots,"default")],46,io)},so.__scopeId="data-v-46a594e4",so.__file="src/button/index.vue";const mo=e=>e.map(vo),ho=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=vo(e[t])})),n};function vo(e){return e?"object"!=typeof e?e:Array.isArray(e)?mo(e):ho(e):e}var _o=a({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:()=>[]}},emits:["item-click","scroll","item-unbind","scroll-state-changed","item-bind","item-focused"],setup(t,n){E(),F();const o=e();let a=e(2.5),l=[],s=[],i=[],c=[],r="",u=-1,d=!1,f=-1,m=-1,h=-1,v=-1;p((()=>{t.openPage&&(u=1,d=!1,t.loadMore(u))}));const _=e=>{0==l.length&&(l=vo(e),s=e,a.value<2.2?(y(),t.openPage&&t.pageSize&&c.length>=t.pageSize/t.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):t.openPage&&t.pageSize&&l.length>=t.pageSize?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),t.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(t.defaultFocus),S(t.defaultFocus)}),800)));let n={get(e,s,f){if("__ob__"!=s&&"symbol"!=typeof s&&"map"!=s&&"length"!=s&&"constructor"!=s&&"_isVue"!=s&&"valueOf"!=s&&"toString"!=s&&"observeArray"!=s&&"dep"!=s&&"notify"!=s&&"subs"!=s&&"slice"!=s)if(i.push(s),-1!=i.indexOf("push"))r="push";else{if(-1!=i.indexOf("splice"))return r="splice",function(...t){if(e.splice(...t),a.value<2.2)if(y(),1==t.length||2==t.length)o.value.setListData(c);else if(0==t[1])o.value.setListData(c);else{let e=-1,n=0,a=0;for(let o=0;o<c.length;o++){const l=c[o];if("1003"==l.type)e++,t[0]==e&&(n=o),t[0]+t[1]-1==e&&(a=o);else for(let s=0;s<l.list.length;s++)l.list[s],e++,t[0]==e&&(n=o),t[0]+t[1]-1==e&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==t.length?o.value.deleteItem(Number(t[0]),l.length-t[0]):2==t.length?o.value.deleteItem(Number(t[0]),t[1]):t.length>2&&(0==t[1]?a.value>2.29&&x(t[0],t.slice(2)):o.value.updateItemList(t[0],t[1],t.slice(2)));return l.splice(t[0],...t.slice(1)),r="",i=[],Reflect.get(e,s,f)};if(-1!=i.indexOf("pop"))return r="pop",function(){return e.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(l.length-1),1),l.pop(),r="",i=[],Reflect.get(e,s,f)};if(-1!=i.indexOf("forEach"))return r="forEach",function(n){return e.forEach((e=>{n(e)})),l=[],l=vo(e),a.value<2.2?(y(),t.openPage&&t.pageSize&&c.length>=t.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):t.openPage&&t.pageSize&&l.length>=t.pageSize&&!d?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),r="",i=[],Reflect.get(e,s,f)};if(-1!=i.indexOf("concat"))return r="concat",function(p){if("[object Array]"===Object.prototype.toString.call(p))if(e=e.concat(p),l=l.concat(p),a.value<2.2){v&&clearTimeout(v);let e=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(e);t.openPage&&!d?t.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<t.spanCount?(a=c.slice(e-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=t.openPage&&!d?t.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(p.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(p.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(p)}),300);else console.log("concat:参数类型必须为数组");return r="",i=[],Reflect.get(e,s,f),new Proxy(e,n)};r=""}const p=Reflect.get(e,s,f);return b(p)&&"__ob__"!=s&&"dep"!=s&&"subs"!=s?_(p):(-1==i.indexOf("push")&&(i=[]),p)},set(e,n,f,p){const g=e[n],m=Reflect.set(e,n,f,p);if((!b(g)&&g!==f||b(g))&&"push"!=r)if(i.push(n),l[i[0]]=s[i[0]],a.value<2.2){let e=i[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=l[i[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]=l[i[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(i[0]),s[i[0]]);if(n&&"push"==r&&g!==f)i.push(n),l.push(f);else{if("push"==r&&i.length>1)if(a.value<2.2){v&&clearTimeout(v);let e=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(e);t.openPage&&!d?t.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<t.spanCount?(a=c.slice(e-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 e=l.slice(i[1]);v&&clearTimeout(v),v=t.openPage&&!d?t.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(e.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(e.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(e)}),300)}r="",i=[]}return m}};return new Proxy(e,n)},y=()=>{let e=vo(l);c=[];let n=0,o=[];for(let t=0;t<e.length;t++){let n=e[t];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 e=0;e<o.length;e++){const a=o[e];if("1003"==a.type)c.push(a);else for(let e=0;e<a.list.length;e+=t.spanCount){const o=a.list[e];let l={top:-1,bottom:-1};o.decoration&&(l.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,l.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:l,name:"name"+n,list:a.list.slice(e,e+t.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 l=0;l<a.list.length;l++)a.list[l],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 l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.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 l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},x=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return g((()=>{l=[],c=[],s.length=0,d=!1,i=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),m&&clearTimeout(m),h&&clearTimeout(h)})),{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 l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}n.emit("item-click",e)},onItemBind:e=>{a.value<2.2?d||e.position!=c.length-1-t.preloadNo/t.spanCount||(u++,t.loadMore(u)):d||e.position!=l.length-1-t.preloadNo||(u++,t.loadMore(u)),n.emit("item-bind",e)},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 l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}n.emit("item-focused",e)},onItemUnbind:e=>{n.emit("item-unbind",e)},onScroll:e=>{n.emit("scroll",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},stopPage:e=>{m&&clearTimeout(m),m=setTimeout((()=>{a.value<2.2?t.pageSize?t.pageSize/t.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):t.pageSize?t.pageSize<=l.length&&o.value.deleteItem(l.length,1):u>2&&o.value.deleteItem(l.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 l=0;l<c.length;l++){const s=c[l];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,l,t,n);else for(let i=0;i<s.list.length;i++)s.list[i],a++,a==e&&o.value.scrollToIndex(0,l,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:x,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});_o.render=function(e,a,i,c,r,u){const f=l("tv-list");return t(),d(f,{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?(t(),n(h,{key:0},[o(e.$slots,"header"),v(f,{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((()=>[o(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),o(e.$slots,"footer"),o(e.$slots,"loading")],64)):(t(),n(h,{key:1},[o(e.$slots,"header"),o(e.$slots,"default"),o(e.$slots,"footer"),o(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},_o.__file="src/grid-view/index.vue";var yo=dn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const bo={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},To={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};yo.render=function(e,o,a,s,i,r){const u=l("text-view");return t(),n("div",bo,[c(" 浮动标题"),v(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"}),_("div",To,[c(" 主标题 "),v(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(" 副标题 "),v(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}"})])])},yo.__scopeId="data-v-703673b8",yo.__file="src/poster/qt-poster-focus-title.vue";var So=dn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const Io={class:"cornerRoot",focusable:!1};So.render=function(e,o,a,s,i,c){const r=l("text-view");return t(),n("div",Io,[v(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",margin:"4px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},So.__scopeId="data-v-4b767ea2",So.__file="src/poster/qt-poster-corner-title.vue";var xo=dn({name:"qt-poster",components:{"qt-poster-corner-title":So,"qt-poster-focus-title":yo},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 Eo=["enableFocusBorder"],Fo=["showOnState"],Po={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}"},Co={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},Lo=(e=>(y("data-v-3c4765e9"),e=e(),b(),e))((()=>_("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));xo.render=function(e,n,a,s,i,r){const u=l("qt-poster-focus-title"),f=l("text-view"),p=l("ripple-view"),g=l("qt-poster-corner-title"),h=l("item-frame");return t(),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("封面"),_("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,Eo),c(" 焦点选中时的标题 "),v(u,{focusable:!1,showOnState:"focused"}),_("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),_("div",Po,[v(f,{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(" 主标题"),v(f,{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,Fo),_("div",Co,[v(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),Lo]),v(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),o(e.$slots,"default")])),_:3},8,["type","focusable"])},xo.__scopeId="data-v-3c4765e9",xo.__file="src/poster/index.vue";var ko=a({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},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(t,n){const o=e();let a=e("#f5f5f5"),l=T({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,i=-1;S((()=>t.navs),(e=>{e.length>0&&c(e)}));const c=e=>{e||(e=[]),e.forEach(((e,n)=>{0!==t.itemGap&&(t.horizontal?e.decoration={right:t.itemGap}:e.decoration={bottom:t.itemGap}),e.type||(e.type=2e4)})),o.value?.setListData(e),clearTimeout(i);let n=t.initSelect;n>-1&&(o.value?.scrollToPosition(n),i=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{n.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:l,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(n.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Do=["stateTextColor","sateBackgroundPadding"],No=["stateTextColor","sateBackgroundPadding"];var wo,Oo;ko.render=function(e,n,a,i,c,r){const u=l("text-view"),f=l("qt-list-view");return e.horizontal?(t(),d(f,{key:0,ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",class:"qt-ui-nav-bar-root-horizontal",onItemFocused:e.onTabChange},{default:m((()=>[_("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},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Do),o(e.$slots,"default")])),_:3},8,["onItemFocused"])):(t(),d(f,{key:1,ref:"navList",clipChildren:!1,clipPadding:!1,class:"qt-ui-nav-bar-root-vertical",onItemFocused:e.onTabChange},{default:m((()=>[_("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},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,No),o(e.$slots,"default")])),_:3},8,["onItemFocused"]))},ko.__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"}(wo||(wo={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_POSTER=10001]="QT_WATERFALL_ITEM_TYPE_POSTER",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",e[e.QT_WATERFALL_ITEM_TYPE_BLANK=-1e4]="QT_WATERFALL_ITEM_TYPE_BLANK"}(Oo||(Oo={}));var Bo=dn({name:"card-item",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});Bo.render=function(e,n,o,a,s,i){const c=l("es-card-container");return t(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,disablePlaceholder:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",type:10003,onFocus:e.onFocus,class:"qt-ui-waterfall-card-item"},null,8,["onFocus"])},Bo.__scopeId="data-v-599898aa",Bo.__file="src/waterfall/item/card-item.vue";var Ao=dn({name:"standard-section",components:{"card-item":Bo},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:wo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Oo.QT_WATERFALL_ITEM_TYPE_POSTER},currentPageIndex:{type:Number,default:-1}},setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Ro=["type"];Ao.render=function(e,a,s,i,r,u){const d=l("text-view"),f=l("qt-poster"),p=l("card-item"),g=l("tv-flex");return t(),n("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",gradientBackground:"${style.gradientBackground}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(d,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),v(f,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),v(p,{onFocus:e.onFocus},null,8,["onFocus"]),o(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Ro)},Ao.__scopeId="data-v-227e921e",Ao.__file="src/waterfall/section/flex-section.vue";const $o="list-section";var Uo=dn({name:"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:wo.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(C.DEBUG)&&n.d($o,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemFocused--------------\x3e>>",e)}}}});const Vo={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",gradientBackground:"${style.gradientBackground}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},zo=["type"];Uo.render=function(e,n,a,s,i,c){const r=l("text-view"),u=l("qt-poster"),f=l("tv-list"),p=l("tv-item");return t(),d(p,{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((()=>[_("div",Vo,[v(r,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(f,{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((()=>[v(u,{type:e.standItemType},null,8,["type"]),_("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:""},[v(r,{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,zo),o(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Uo.__scopeId="data-v-6aa2cfd4",Uo.__file="src/waterfall/section/list-section.vue";var qo=dn({name:"loading-section"});const Wo={focusable:!1,type:-1,class:"loading-section-css",gradientBackground:"${style.gradientBackground}"};qo.render=function(e,o,a,s,i,c){const r=l("qt-loading-view");return t(),n("div",Wo,[v(r,{class:"loading-section-loading-css"})])},qo.__scopeId="data-v-48609f24",qo.__file="src/waterfall/section/loading-section.vue";var Mo=dn({name:"end-section",setup:()=>({})});const Go={type:-1001,focusable:!1,flexStyle:"${style}",gradientBackground:"${style.gradientBackground}",class:"qt-waterfall-end-section-css"};Mo.render=function(e,o,a,s,i,c){const r=l("text-view");return t(),n("div",Go,[v(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Mo.__scopeId="data-v-70b82c43",Mo.__file="src/waterfall/section/end-section.vue";var Qo=dn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:wo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Yo=["type"];Qo.render=function(e,o,a,i,c,r){const u=l("text-view");return t(),n("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(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,Yo)},Qo.__scopeId="data-v-20428d40",Qo.__file="src/waterfall/section/section-title.vue";var jo=dn({name:"blank-section",setup:()=>({})});const Ho={focusable:!1,type:-1e3,flexStyle:"${style}",gradientBackground:"${style.gradientBackground}",class:"qt-ui-waterfall-blank-section"};jo.render=function(e,o,a,l,s,i){return t(),n("div",Ho)},jo.__scopeId="data-v-eeab4d88",jo.__file="src/waterfall/section/blank-section.vue";var Xo=dn({name:"card-section",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-section","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Ko={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,focusScrollTarget:"${isFocusScrollTarget}",keyName:"_id",flexStyle:"${style}",gradientBackground:"${style.gradientBackground}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Xo.render=function(e,o,a,s,i,c){const r=l("text-view"),u=l("es-card-container");return t(),n("div",Ko,[v(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(u,{cardId:"${cardId}",onFocus:e.onFocus,clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"},null,8,["onFocus"])])},Xo.__scopeId="data-v-43a44788",Xo.__file="src/waterfall/section/card-section.vue";var Jo=dn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Zo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=ea(e,t[o]);n.push(a)}return n}function ea(e,t){let n=0;return t.itemList.length>0&&t.type==wo.QT_WATERFALL_SECTION_TYPE_FLEX&&(n=function(e){const t=e.itemList,n=e.style?.spacing??0,o=e.titleStyle,a=o?.height??0;const l=o?.marginTop??0,s=o?.marginBottom??0;const i=o?.paddingTop??0,c=o?.paddingBottom??0;let r=e.style.height??0,u=e.style.width??0;e.decoration;let d=0,f=0,p=0;for(let e=0;e<t.length;e++){const o=t[e];let a=o?.style.width??0,l=o?.style.height??0;const s=o.style.x,i=o.style.y;if(null!=s&&null!=i)o.layout=[s,i,a,l];else{const e=o.decoration,t=e?.left??0,s=e?.top??0,i=e?.right??0,c=e?.bottom??0;d+a+i>=u&&(f+=p+n,p=0,d=0),o.layout||(o.layout=[0,0,a,l]),o.layout[0]=d+t,o.layout[1]=f+s,o.layout[1]+l+c>r&&(r=o.layout[1]+l+c),l+s+c>p&&(p=l+s+c),d+=a+n+t+i}}return r+a+l+s+i+c}(t),t.style.height=n),t}function ta(){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 l=n+o;n+o>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<l;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 l=e.length,s=n(0,l),i=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:l,sectionCount:a.length,itemIndex:s,itemCount:i}},deleteSection:function(t,a){const l=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:l,itemCount:s}},updateSection:function(a,l){const s=n(0,a-1),i=t(l);return e.splice(a,1,l),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:i}},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 l=e[t],s=l.itemList.length;return l.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,l){return e[t].itemList.splice(n,a,...l),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=[]}}}Jo.render=function(e,n,a,s,i,c){const r=l("tv-item");return t(),d(r,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[o(e.$slots,"default")])),_:3},8,["onItemBind"])},Jo.__scopeId="data-v-f8447724",Jo.__file="src/waterfall/section/vue-section.vue";const na="qt-waterfall";var oa,aa=dn({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},blockFocusDirections:{type:Array,default:()=>["down"]}},setup(t,n){const o=P(),a={name:"tvList"+Date.now(),size:{20008:10}},l=e();let s;const i=ta();return{waterfallRef:l,init:function(e){s=e},setAutoFocus:function(e,t){l.value?.setAutoFocus(e,t)},getSectionList:function(){return i.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(C.DEBUG)&&o.d(na,"-------1---setSectionList--------------\x3e>>"),i.destroy();const t=i.addSectionList(e);o.isLoggable(C.DEBUG)&&o.d(na,"-------2---setSectionList--------------\x3e>>",t);const n=Zo(s,e);o.isLoggable(C.DEBUG)&&o.d(na,"----------setSectionList-----最终数据---------\x3e>>",n),l.value?.setListData(n)},addSectionList:function(e){if(!s)return;i.addSectionList(e);const t=Zo(s,e);o.isLoggable(C.DEBUG)&&o.d(na,"----------addSectionList-----最终数据---------\x3e>>",t),l.value?.addListData(t)},deleteSection:function(e,t){const n=i.deleteSection(e,t);o.isLoggable(C.DEBUG)&&o.d(na,"----------deleteSection-----最终数据---------\x3e>>",n),l.value?.deleteItem(e,t)},updateSection:function(e,t){i.updateSection(e,t);const n=ea(0,t);o.isLoggable(C.DEBUG)&&o.d(na,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),l.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];i.updateSection(e+t,a);const l=ea(0,a);l&&o.push(l)}l.value?.updateItemList(e,t,o)},getSection:function(e){return i.getSection(e)},addItemList:function(e,t){i.addItemList(e,t);const n=i.getSection(e);if(n){const t=ea(0,n);l.value?.updateItem(e,t)}},deleteItem:function(e,t,n){i.deleteItem(e,t,n);const o=i.getSection(e);if(o){const t=ea(0,o);l.value?.updateItem(e,t)}},updateItem:function(e,t,n){i.updateItem(e,t,n);const o=i.getSection(e);if(o){const t=ea(0,o);l.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){i.updateItemList(e,t,n,o);const a=i.getSection(e);if(a){const t=ea(0,a);l.value?.updateItem(e,t)}},getItem:function(e,t){return i.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let t=e.offsetX,o=e.offsetY;n.emit("onScroll",t,o)},onItemClick:function(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),n.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),n.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onSectionBind--------------\x3e>>",e);let t=e.pageIndex??0;n.emit("onSectionBind",t,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onSectionAttached--------------\x3e>>",e);let t=e.pageIndex??0;n.emit("onSectionAttached",t,e.position)}},onScrollStateChanged:function(e){let t=e.offsetY,o=e.offsetX,a=e.newState;n.emit("onScrollStateChanged",o,t,a)},resumePostTask:function(){l.value?.pausePostTask()},pausePostTask:function(){l.value?.pausePostTask()},clearPostTask:function(){l.value?.clearPostTask()},destroy:function(){l.value?.destroy()},scrollToTop:function(){l.value?.scrollToTop()}}},components:{"flex-section":Ao,"list-section":Uo,"section-title":Qo,"loading-section":qo,"end-section":Mo,"blank-section":jo,"card-section":Xo,"vue-section":Jo}});function la(){const e=new Map,t=new Map;function n(n){const o={index:n,state:oa.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 l=t+n;t+n>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<l;n++){s+=o(e[n])}return s}function l(){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)},setPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,s){const i=t.get(n)??[],c=i.length,r=a(i,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);i.push(...s);const d=e.get(n);return d&&(d.state=oa.QT_TAB_PAGE_STATE_IDLE),l(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],i=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),l(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:i,itemCount:c}},updateSection:function(e,n,s){const i=t.get(e)??[],c=a(i,0,n-1),r=o(s);return i.splice(n,1,s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),l(),{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 i=a[n],c=i.itemList.length;return i.itemList.push(...o),l(),{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),l(),{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),l(),{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),l(),{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()}}}aa.render=function(e,n,a,s,i,r){const u=l("flex-section"),f=l("list-section"),p=l("loading-section"),g=l("end-section"),h=l("blank-section"),_=l("card-section"),y=l("vue-section"),b=l("tv-list");return t(),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:e.blockFocusDirections,onScrollStateChanged:e.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),v(u,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder,onFocus:e.onItemFocused},{default:m((()=>[o(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder","onFocus"]),c("一行滚动 多级tab"),v(f,{enablePlaceholder:e.enablePlaceholder},{default:m((()=>[o(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),v(p),c(" end "),v(g),c(" blank "),v(h),c(" card "),v(_,{onFocus:e.onItemFocused},null,8,["onFocus"]),c(" vue "),v(y,null,{default:m((()=>[o(e.$slots,"vue-section")])),_:3}),o(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","blockFocusDirections","onScrollStateChanged"])},aa.__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"}(oa||(oa={}));const sa="qt-tab";var ia=dn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged","onTabMoveToTopStart","onTabMoveToTopEnd","onTabMoveToBottomStart","onTabMoveToBottomEnd","onTabChanged","onTabPageScrollToEnd","onTabPageScrollToStart"],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:()=>[]},tabContentBlockFocusDirections:{type:Array,default:()=>["down"]},tabContentResumeDelay:{type:Number,default:500},tabContentSwitchDelay:{type:Number,default:300}},setup(t,n){const o=e(),a=e(!0),l=e(1),s=e(!0),i=P(),c=e(),r=la();let u,d=-1;function f(e,t){const n=r.getTabPageData(e);n&&(n.state=t,r.setPageData(e,n))}function p(e,o,a){let l=r.getTabPageData(e);if(l&&l.state===oa.QT_TAB_PAGE_STATE_IDLE){a>=r.getSectionList(e).length-t.preloadNumber-1&&(i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+e+" sectionIndex:"+a),n.emit("onTabPageLoadData",e,o),f(e,oa.QT_TAB_PAGE_STATE_BUSY))}else i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData--状态不对--\x3e>>>",e)}function g(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+t),n.emit("onTabPageScroll",e,t)}function m(e,t,o){i.isLoggable(C.DEBUG)&&i.d(sa,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+t+" newState:"+o),n.emit("onTabPageScrollStateChanged",e,t,o)}return{tabs:o,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};r.initTab(e),o.value?.setTabsData(t)},setAutoFocus:function(e,t){o.value?.setAutoFocus(e,t)},initPage:function(e){u=e},setPageSate:f,setPageData:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----setPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const n={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(sa,"------设置数据----setPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const a={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(sa,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){r.updateSectionList(e,t.data);const n={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){r.updateSection(e,t,n);const a=ea(0,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return r.getSection(e,t)},getPageSectionList:function(e){return r.getSectionList(e)},deletePageSection:function(e,t,n){r.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){r.addItemList(e,t,n);const a=r.getSection(e,t);if(a){const n=ea(0,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return r.getItem(e,t,n)},updatePageItem:function(e,t,n,a){r.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){r.deleteItem(e,t,n,a);const l=r.getSection(e,t);if(l){const n=ea(0,l);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,l){o.value?.getChildNodeViewState(e,t,n,a,l)},dispatchUIFunctionOnChildNode:function(e,t,n,a,l){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,l)},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()},rootOpacity:l,isTabHorizontal:s,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----android--\x3e>>>pageIndex:"+t),p(t,n,0)},onTabPageChanged:function(e){const t=e.pageIndex;d=t;const o=e.data;i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageChanged------\x3e>>> pageIndex:"+t+" data:",o),n.emit("onTabPageChanged",t,o)},onTabEvent:function(e){const t=e.params,o=e.eventName,a=e.params.itemPosition,l=e.params.x,s=e.params.y,c=e.params.contentOffset,r=e.params.state;switch(i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabEvent------\x3e>>> eventName:"+o+" tabIndex:"+a+" params:",t),n.emit("onTabEvent",a,o,t),o){case"onMoveToTopStart":n.emit("onTabMoveToTopStart",a,o,t);break;case"onMoveToTopEnd":n.emit("onTabMoveToTopEnd",a,o,t);break;case"onMoveToBottomStart":n.emit("onTabMoveToBottomStart",a,o,t);break;case"onMoveToBottomEnd":n.emit("onTabMoveToBottomEnd",a,o,t);break;case"onTabChanged":n.emit("onTabChanged",a,o,t);break;case"onScroll":g(l,s);break;case"onScrollStateChanged":m(c.x,c.y,r.newState)}},onWaterfallItemClick:function(e,t,o){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" item:",o),n.emit("onTabPageItemClick",d,e,t,o)},onWaterfallItemFocused:function(e,t,o,a){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" isFocused:"+o+" item:",a),n.emit("onTabPageItemFocused",d,e,t,o,a)},onWaterfallSectionBind:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===d&&(i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),p(e,!1,t))},onWaterfallSectionAttached:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),n.emit("onTabPageSectionAttached",e,t)},onWaterfallScroll:g,onWaterfallScrollStateChanged:m,onTabPageScrollToStart:function(e){const t=e.pageIndex;n.emit("onTabPageScrollToStart",t),i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageScrollToStart------\x3e>>> pageIndex:"+t)},onTabPageScrollToEnd:function(e){const t=e.pageIndex;n.emit("onTabPageScrollToEnd",t),i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageScrollToEnd------\x3e>>> pageIndex:"+t)}}}});ia.render=function(e,n,a,s,r,u){const f=l("qt-nav-bar"),p=l("qt-waterfall"),g=l("recycler-view-pager"),h=l("tabs");return e.ifTabs?(t(),d(h,{key:0,ref:"tabs",class:i(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.tabContentSwitchDelay,resumeTaskDelay:e.tabContentResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:e.tabContentBlockFocusDirections,onScrollToStart:e.onTabPageScrollToStart,onScrollToEnd:e.onTabPageScrollToEnd,onLoadPage:e.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:m((()=>[v(f,{ref:"navBarRef",name:"tabList",focusable:!1,class:i(e.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:m((()=>[o(e.$slots,"tab-item")])),_:3},8,["class","horizontal"]),v(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:i(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((()=>[v(p,{onOnScrollStateChanged:e.onWaterfallScrollStateChanged,onOnScroll:e.onWaterfallScroll,onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:m((()=>[o(e.$slots,"waterfall-item")])),"list-item":m((()=>[o(e.$slots,"waterfall-list-item")])),section:m((()=>[o(e.$slots,"waterfall-section")])),"vue-section":m((()=>[o(e.$slots,"waterfall-vue-section")])),_:3},8,["onOnScrollStateChanged","onOnScroll","onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","blockFocusDirections","onScrollToStart","onScrollToEnd","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},ia.__file="src/tab/index.vue";var ca=dn({name:"qt-vue-section",setup:(e,t)=>({onSectionBind:function(){}})});ca.render=function(e,n,a,s,i,c){const r=l("tv-item");return t(),d(r,{class:"qt-ui-waterfall-vue-section",clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[o(e.$slots,"default")])),_:3},8,["onItemBind"])},ca.__scopeId="data-v-d02af3c2",ca.__file="src/section/index.vue";var ra=dn({name:"qt-classified-list-view",props:{className:{type:String,default:"content_list_view"},classNavName:{type:String,default:"nav_list_view"},currentFocusIndex:{type:Number,default:0},focusScale:{type:Number,default:1.15},navType:{type:Number,default:10001},yOffest:{type:Number,default:802}},emits:["item-click","item-focused"],setup(t,n){let o=e(1);const a=e(),l=e();let s=[],i=-1,c=-1,r=[];let u=-1;let d=-1,f=-1;return{descendantFocusability:o,content_list_view:a,nav_list_view:l,init:e=>{e.forEach(((n,o)=>{n.mask||(n.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),n.icon||(n.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png"),n.isPlaying=!1,t.currentFocusIndex==o&&(n.isPlaying=!0);let a=!1;for(let e=0;e<s.length;e++){const t=s[e];n.categoryname==t.categoryname&&(n.navIndex=e,a=!0)}a||(n.navIndex||(n.navIndex=s.length),s.push({type:n.type,decoration:{left:50},categoryname:n.categoryname,startIndex:o,isNeedFocus:!0})),r=e})),Mt((()=>{a.value?.setListData(e),l.value?.setListData(s),setTimeout((()=>{i=t.currentFocusIndex,c=e[t.currentFocusIndex].navIndex,a.value?.scrollToFocused(i),l.value?.scrollToSelected(c,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{n.emit("item-click",e)},onFItemClick:e=>{n.emit("item-click",e)},scrollToIndex:(e,t=!0,n=802)=>{a.value?.scrollToIndex(e,t,n)},scrollToFocused:e=>{o.value=1,setTimeout((()=>{a.value?.scrollToFocused(e)}),300)},setItemFocused:e=>{setTimeout((()=>{o.value=1}),300),a.value?.setItemFocused(e)},scrollToSelected:(e,t=!0)=>{a.value?.scrollToSelected(e,t)},setItemSelected:(e,t=!0)=>{a.value?.setItemSelected(e,!0)},onSItemFocused:e=>{clearTimeout(u),u=setTimeout((()=>{if(e.hasFocus){if(i!=e.position){if(i>-1){let e=r[i];e.isPlaying=!1,a.value?.updateItem(i,e)}let t=r[e.position];t.isPlaying=!0,a.value?.updateItem(e.position,t)}i=e.position,c!=e.item.navIndex&&(c=e.item.navIndex,l.value?.scrollToSelected(e.item.navIndex,!0)),n.emit("item-focused",e)}else c=e.item.navIndex}),300)},onFItemFocused:e=>{clearTimeout(d),clearTimeout(f),e.hasFocus&&c!=e.position&&(o.value=2,c=e.position,r[e.item.startIndex].isNeedFocus?(a.value?.scrollToIndex(e.item.startIndex,!0,t.yOffest),f=setTimeout((()=>{a.value?.setItemSelected(e.item.startIndex,!0),d=setTimeout((()=>{o.value=1}),200)}),400)):(a.value?.scrollToIndex(e.item.startIndex+1,!0,t.yOffest),f=setTimeout((()=>{a.value?.setItemSelected(e.item.startIndex+1,!0),d=setTimeout((()=>{o.value=1}),200)}),400)))},updateItem:(e,t)=>{r[e]=t,r.forEach(((e,t)=>{e.mask||(e.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),e.icon||(e.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png");for(let t=0;t<s.length;t++){const n=s[t];e.categoryname==n.categoryname&&(e.navIndex=t)}})),a.value?.updateItem(e,r[e])}}}});const ua={focusable:!1,clipChildren:!1},da=["focusScale"],fa=_("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1),pa=_("img",{src:"${mask}",class:"titMask",focusable:!1,postDelay:"300",showIf:"${isPlaying}"},null,-1),ga={focusable:!1,class:"clv_item_text_box",showIf:"${isPlaying}"},ma={class:"playMark",focusable:!1},ha=["type"],va=_("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1),_a=_("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1),ya={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var ba,Ta,Sa,Ia;ra.render=function(e,a,r,u,d,f){const p=l("play-mark"),g=l("text-view"),h=l("qt-list-view");return t(),n("div",ua,[c(" listview second nav "),v(h,{class:i(e.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],descendantFocusability:e.descendantFocusability,onItemFocused:e.onSItemFocused},{default:m((()=>[_("div",{type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:e.focusScale},[fa,pa,_("div",ga,[_("div",ma,[v(p,{style:s([{width:"28px",height:"20px"},{"margin-left":"16px"}]),markColor:"#ffffff",gap:-1,focusable:!1})]),v(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[6,0,0,0]})])],8,da),o(e.$slots,"item")])),_:3},8,["class","onItemClick","descendantFocusability","onItemFocused"]),c(" listview first nav "),v(h,{class:i(e.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onFItemFocused},{default:m((()=>[_("div",{type:e.navType,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},[va,_a,_("div",ya,[v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])],8,ha),o(e.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},ra.__file="src/classified-list-view/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(ba||(ba={})),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"}(Sa||(Sa={})),function(e){e[e.QT_TAB_ITEM_TYPE_DEFAULT=2e4]="QT_TAB_ITEM_TYPE_DEFAULT"}(Ia||(Ia={}));const xa=[Xn,Jn,eo,no,ao,so,_o,xo,ko,aa,ia,ra,ca],Ea=t=>{t.component("qt-loading-view",{setup(t,n){const o=e();return()=>I("LoadingViewComponent",{ref:o})}}),function(t){const n=a({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,n){const o=e();F();let a=[],l=[],s=[],i="",c=-1,r=!1,u=-1,d=-1,f=-1,m=-1;p((()=>{t.openPage&&(c=1,r=!1,t.loadMore(c))}));const h=e=>{0==a.length&&(a=vo(e),v(a,-1),l=e,t.openPage?b(a.concat([{_id:"",type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):b(a),t.defaultFocus>-1&&(f&&clearTimeout(f),f=setTimeout((()=>{N(t.defaultFocus)}),500)));let n={get(e,o,l){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(s.push(o),-1!=s.indexOf("push"))i="push";else{if(-1!=s.indexOf("splice"))return i="splice",function(...t){return e.splice(...t),-1!=s.indexOf("list")?(a[s[0]].list.splice(...t),P(Number(s[0]),a[s[0]])):1==t.length?E(Number(t[0]),a.length-t[0]+1):2==t.length?E(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))),a.splice(t[0],...t.slice(1)),i="",s=[],Reflect.get(e,o,l)};if(-1!=s.indexOf("pop"))return i="pop",function(){return e.pop(),-1!=s.lastIndexOf("list")?(a[s[0]].list.pop(),P(Number(s[0]),a[s[0]])):(E(Number(a.length-1),1),a.pop()),i="",s=[],Reflect.get(e,o,l)};if(-1!=s.indexOf("forEach"))return i="forEach",function(n){return e.forEach((e=>{n(e)})),a=[],a=vo(e),t.openPage?b(a.concat([{_id:"",type:1002,decoration:{top:15,left:30}}])):b(a),i="",s=[],Reflect.get(e,o,l)};if(-1!=s.indexOf("concat"))return i="concat",function(c){return e=e.concat(c),-1!=s.lastIndexOf("list")?(a[s[0]].list=a[s[0]].list.concat(c),P(Number(s[0]),a[s[0]])):(a=a.concat(c),t.openPage&&!r?setTimeout((()=>{S(c.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):T(c)),i="",s=[],Reflect.get(e,o,l),new Proxy(e,n)};i=""}const c=Reflect.get(e,o,l);return _(c)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?h(c):(-1==s.indexOf("push")&&(s=[]),c)},set(e,n,o,c){const u=e[n];y(e,n);const d=Reflect.set(e,n,o,c);if((!_(u)&&u!==o||_(u))&&"push"!=i)if(s.push(n),-1!=s.lastIndexOf("list")){let e=s.lastIndexOf("list"),t=s.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=s[e];n=n?n[t]:l[t]}n.name="name"+s[e-1]+s[e+1],P(Number(s[0]),l[s[0]]),a[s[0]].list[s[e+1]]=l[s[0]].list[s[e+1]],a[s[0]].list[s[e+1]].name="name"+s[e-1]+s[e+1]}else a[s[0]]=l[s[0]],a[s[0]].name="name"+s[0],P(Number(s[0]),l[s[0]]);if(n&&"push"==i&&u!==o)-1!=s.lastIndexOf("list")?(s.push(n),a[s[0]].list.push(o)):(s.push(n),a.push(o));else{if("push"==i)if(-1!=s.lastIndexOf("list"))P(Number(s[0]),a[s[0]]);else{let e=a.slice(s[1]);m&&clearTimeout(m),m=t.openPage&&!r?setTimeout((()=>{S(e.concat([{_id:"",type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{T(e)}),300)}i="",s=[]}return d}};return new Proxy(e,n)},v=(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&&v(o.list,n)}},_=e=>null!==e&&"object"==typeof e,y=(e,t)=>{Object.hasOwnProperty.call(e,t)},b=e=>{u&&clearTimeout(u),u=setTimeout((()=>{x.callUIFunction(o.value,"setListData",e)}),100)},T=e=>{x.callUIFunction(o.value,"addListData",e)},S=(e,t)=>{x.callUIFunction(o.value,"addListDataWithParams",[e,t])},E=(e,t)=>{x.callUIFunction(o.value,"deleteItemRange",[e,t])},P=(e,t)=>{x.callUIFunction(o.value,"updateItem",[e,t])},C=(e,t,n)=>{x.callUIFunction(o.value,"updateItemRange",[e,t,n])},L=(e,t)=>{x.callUIFunction(o.value,"insertItemRange",[e,t])},k=(e,t)=>{x.callUIFunction(o.value,"setSelectChildPosition",[e,t])},D=e=>{x.callUIFunction(o.value,"scrollToPosition",[e])},N=e=>{x.callUIFunction(o.value,"requestChildFocus",[e])};return g((()=>{a=[],l.length=0,s=[],r=!1,c=1,i="",u&&clearTimeout(u),f&&clearTimeout(f),m&&clearTimeout(m),d&&clearTimeout(d)})),n.expose({viewRef:o,init:h,undataItemName:v,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(e,t,n)=>{x.callUIFunction(o.value,"scrollToPositionWithOffset",[e,n,t])},updateItem:P,updateItemList:C,hasFocus:e=>{x.callUIFunction(o.value,"hasFocus",(t=>{e(t)}))},updateItemProps:(e,t,n)=>{x.callUIFunction(o.value,"updateItemProps",[t,e,n,!0])},setListData:b,insertItem:L,addListData:T,addListDataWithParams:S,dispatchItemFunction:(e,t,n,a)=>{x.callUIFunction(o.value,"dispatchItemFunction",[e,t,n,a])},deleteItem:E,setBlockFocusDirectionsOnFail:e=>{x.callUIFunction(o.value,"setBlockFocusDirectionsOnFail",[e])},setListDataWithParams:(e,t)=>{x.callUIFunction(o.value,"setListDataWithParams",[e,t])},prepareForRecycle:()=>{x.callUIFunction(o.value,"prepareForRecycle",[])},setDisplay:e=>{x.callUIFunction(o.value,"setDisplay",[e])},scrollToTop:()=>{x.callUIFunction(o.value,"scrollToTop",[])},changeDisplayState:(e,t)=>{x.callUIFunction(o.value,"changeDisplayState",[e,t])},notifySaveInstance:()=>{x.callUIFunction(o.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{x.callUIFunction(o.value,"notifyRestoreInstance",[])},pausePostTask:()=>{x.callUIFunction(o.value,"pausePostTask",[])},resumePostTask:()=>{x.callUIFunction(o.value,"resumePostTask",[])},getScrollOffset:e=>{x.callUIFunction(o.value,"getScrollOffset",[],e)},scrollToPosition:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(e,t,n,a,l)=>{x.callUIFunction(o.value,"scrollToPositionWithOffset",[t,a,n])},destroy:()=>{x.callUIFunction(o.value,"destroy",[])},startScroll:(e,t,n)=>{x.callUIFunction(o.value,"startScroll",[{focusPosition:e,scrollToPosition:t,scrollOffset:n}])},setItemFocused:N,clearPostTask:()=>{x.callUIFunction(o.value,"clearAllPostTask",[])},clearFocus:()=>{x.callUIFunction(o.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{x.callUIFunction(o.value,"blockRootFocus",[])},unBlockRootFocus:()=>{x.callUIFunction(o.value,"unBlockRootFocus",[])},setBackgroundColor:e=>{x.callUIFunction(o.value,"setBackgroundColor",[e])},stopPage:()=>{d&&clearTimeout(d),d=setTimeout((()=>{E(a.length,1)}),400),r=!0},setAutoFocus:function(e,t){x.callUIFunction(o.value,"setAutoFocus",[e,t])}}),()=>{const e=n.slots.default&&n.slots.default();return I("FastListView",{ref:o,onItemClick:e=>{n.emit("item-click",e)},onScroll:e=>{n.emit("scroll",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onBindItem:e=>{e.position==a.length-1-t.preloadNo&&(c++,t.loadMore(c)),n.emit("item-bind",e)},onUnbindItem:e=>{n.emit("item-unbind",e)},onLoadMore:e=>{n.emit("load-more",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{n.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{n.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{n.emit("scrollYLesserReference",e)}},e)}}});t.component("qt-list-view",n)}(t),function(t){const n=a({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,n){const o=e();return n.expose({viewRef:o,updateItem:(e,t)=>{x.callUIFunction(o.value,"updateItem",[e,t])},dispatchItemFunction:(e,t,n,a)=>{x.callUIFunction(o.value,"dispatchItemFunction",[e,t,n,a])},updateItemProps:(e,t,n)=>{x.callUIFunction(o.value,"updateItemProps",[t,e,n,!0])},batch:e=>{x.callUIFunction(o.value,"batch",[e])}}),()=>{const e=n.slots.default&&n.slots.default();return I("FastListView",{ref:o,onBindItem:e=>{n.emit("item-bind",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onItemRecycled:e=>{n.emit("item-unbind",e)}},e)}}});t.component("qt-list-item",n)}(t);for(let e in xa)t.component(xa[e].name,xa[e])};export{ba as QTDirections,Sa as QTNavBarItemType,Ta as QTScrollState,Ia as QTTabItemType,oa as QTTabPageState,Oo as QTWaterfallItemType,wo as QTWaterfallSectionType,Ea as QuickTVUI,go as arrangeChildren4ListView};
@@ -0,0 +1,3 @@
1
+ export interface QTFlexStyleBackground {
2
+ backgroundColor?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { ESGradient } from "@extscreen/es3-component";
2
+ export interface QTFlexStyleGradientBackground {
3
+ gradientBackground?: ESGradient;
4
+ }
@@ -10,7 +10,8 @@ export type { QTFlexStylePosition } from './core/QTFlexStylePosition';
10
10
  export type { QTFlexStyleSpacing } from './core/QTFlexStyleSpacing';
11
11
  export type { QTFlexStyleSize } from './core/QTFlexStyleSize';
12
12
  export type { QTFlexStyleDecoration } from './core/QTFlexStyleDecoration';
13
- export type { QTGradientDrawable } from './core/QTGradientDrawable';
13
+ export type { QTFlexStyleBackground } from './core/QTFlexStyleBackground';
14
+ export type { QTFlexStyleGradientBackground } from './core/QTFlexStyleGradientBackground';
14
15
  export type { QTVisibility } from './core/QTVisibility';
15
16
  export { QTDirections } from './core/QTDirections';
16
17
  export type { QTPoster } from './poster/core/QTPoster';
@@ -1,6 +1,6 @@
1
- import { QTGradientDrawable } from "../../core/QTGradientDrawable";
2
1
  import { QTPosterElement } from "./QTPosterElement";
2
+ import { ESGradient } from "@extscreen/es3-component";
3
3
  export interface QTPosterCorner extends QTPosterElement {
4
4
  text: string;
5
- background?: QTGradientDrawable;
5
+ background?: ESGradient;
6
6
  }
@@ -1,11 +1,11 @@
1
- import { QTGradientDrawable } from "../../core/QTGradientDrawable";
2
1
  import { QTFlexStyleMargin } from "../../core/QTFlexStyleMargin";
3
2
  import { QTFlexStylePadding } from "../../core/QTFlexStylePadding";
4
3
  import { QTFlexStyleSize } from "../../core/QTFlexStyleSize";
4
+ import { ESGradient } from "@extscreen/es3-component";
5
5
  export interface QTPosterTitle {
6
6
  text: string;
7
7
  focusTitle?: string;
8
- background?: QTGradientDrawable;
8
+ background?: ESGradient;
9
9
  style?: QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize;
10
10
  enable: boolean;
11
11
  }
@@ -4,4 +4,6 @@ import { QTFlexStyleSize } from "../../core/QTFlexStyleSize";
4
4
  import { QTFlexStyleSpacing } from "../../core/QTFlexStyleSpacing";
5
5
  import { QTFlexStyleDecoration } from "../../core/QTFlexStyleDecoration";
6
6
  import { QTFlexStyleCoordinate } from "../../core/QTFlexStyleCoordinate";
7
- export type QTWaterfallFlexStyle = QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize & QTFlexStyleSpacing & QTFlexStyleDecoration & QTFlexStyleCoordinate;
7
+ import { QTFlexStyleBackground } from "../../core/QTFlexStyleBackground";
8
+ import { QTFlexStyleGradientBackground } from "../../core/QTFlexStyleGradientBackground";
9
+ export type QTWaterfallFlexStyle = QTFlexStyleMargin & QTFlexStylePadding & QTFlexStyleSize & QTFlexStyleSpacing & QTFlexStyleDecoration & QTFlexStyleCoordinate & QTFlexStyleBackground & QTFlexStyleGradientBackground;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/quicktvui3",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "description": "ExtScreen framework",
5
5
  "author": "ExtScreen Team",
6
6
  "homepage": "http://extscreen.com",
@@ -1,9 +0,0 @@
1
- export interface QTGradientDrawable {
2
- type?: number;
3
- shape?: number;
4
- orientation?: number;
5
- colors?: Array<string>;
6
- gradientRadius?: number;
7
- cornerRadii4?: Array<number>;
8
- cornerRadii8?: Array<number>;
9
- }