PageSourceSearch

https://kkxx2233.com/assets/js/vocq0qcg.kKHM_cmu.js

js kkxx2233.com collected 2026-10-10 02:44:26 UTC 342,260 bytes, 202 lines download raw bytes

1// @injected-header-start
2// constructor callback initialize - 8e52c3b10fd11732 [85424]
3// return observer props - 81849ac156a4e474 [60556]
4// configure controller await - eba1fd36367b0f31 [72952]
5// return implements return - a96371d143a3d2b4 [54843]
6// value update abstract - b5af1205a5d35ac8 [13096]
7// controller result optimize - 84d2ad2cb264b5a5 [4011]
8// interface callback promise - 14a83203a986a15f [96503]
9// update controller constructor - 7021b6c00912980b [28265]
10// boolean value object - 4f3a9cbc0afb1b31 [29347]
11// setup variable setup - 8a3954dd2be0d00b [77958]
12// load abstract validate - 49a2de34d4054152 [3513]
13// setup interface reject - 565b60e2c506fb9a [79363]
14// helper list state - 4a92d830e2c4d9e1 [53574]
15// update configure list - acf76b004e796369 [61544]
16
17
18
19// optimize constant list - ce269655d1b4a3a5 [74661]
20// interface helper execute - 910f928d340803d4 [25999]
21// prototype async load - a3c3e9de54d5e076 [46911]
22// manager return process - d61d406a1c57b816 [90922]
23// state item process - 025295c07cbf65aa [44423]
24// method constructor execute - 69049d0677ce7466 [82082]
25// value index async - 5a16331aced286e6 [94518]
26// state result list - 64128c9bb81a2e04 [73840]
27// constructor key property - f28f951264bce808 [33790]
28// interface listener async - 3b1ef8773e9b0fb7 [5602]
29// module list calculate - 1fdf9f1303add93e [73933]
30// optimize process object - b024bc20c20f13e7 [5236]
31// extends abstract boolean - 720e952e22b5b470 [64394]
32// await configure setup - 8e1bba7007f8bf6c [54494]
33// error key optimize - c4e97dee5eb8a01f [46016]
34// process error setup - c82e1e8e880c2406 [35588]
35// request utility initialize - d0761761256a79a4 [95031]
36// setup controller state - b970b037ab125b1e [75147]
37// update return subscriber - a9c6d97545083f38 [94431]
38// variable property manager - 63f7235512285c13 [65362]
39
40
41
42// parse configure key - 3b3dc368cefad353 [71643]
43// key boolean callback - df5018e0a8897a86 [73780]
44// function index utility - 0283bad318f27445 [19574]
45// execute fetch result - eb3ff2c3ac7f5d32 [42807]
46// extends subscriber controller - fe19ee3656055351 [42754]
47
48
49
50// @injected-header-end
51function __vite__mapDeps(indexes) {
52  if (!__vite__mapDeps.viteFileDeps) {
53    __vite__mapDeps.viteFileDeps = ["assets/44f7sum1.COI1jMDG.js","assets/encrypted-image.BaEtBgDJ.js","assets/hehf0gjv.C4aZ2x6t.js","assets/uni-app.es.wFqU32Bw.js","assets/image-decrypt.CyC3lDIH.js","assets/css/4d27dayb.C2AHaXF7.css","assets/welfare-action.BspFZSyP.js","assets/20mtl3gl.Cz4d2Cv3.js","assets/guest-id.CN0Q5Fpj.js","assets/uni-icons.Dk7AUhhq.js","assets/css/8saalmvw.CRIcGo0k.css","assets/9yapt1pg.BwGnLRC6.js","assets/ad-jump.GQkS2gCA.js","assets/css/objd72op.BZaH1T5Y.css","assets/7ka4xcij.BeVWG1D-.js","assets/encrypted-image-ad.Bxj-IYhP.js","assets/css/ys8a62i2.B_SY1GJM.css","assets/home.Cd98hRaZ.js","assets/css/f6bj9vk0.F13eeN14.css","assets/pt824skf.BHTDlzxN.js","assets/system-config.CadRFLBi.js","assets/8qnnfm3u.d0f0Qg1r.js","assets/api-referral.Dt5vDGYQ.js","assets/u5te9pcx.BqUDQu5A.js","assets/cps-channel.DBZjQLvA.js","assets/css/lw5hj5ni.DxYrQSvZ.css","assets/wjze9phc.BfrQyOPl.js","assets/xu41mwqj.CyA8VMyI.js","assets/ktnmct04.xL4A-_Ly.js","assets/css/03kdum0e.SteY3gcQ.css","assets/x8flm604.DHVtivKz.js","assets/css/tvzazwl6.C3gLAuuT.css","assets/1tx5sadp.DD-ddmV1.js","assets/css/b3s9ombh.aCx9vBdr.css","assets/e92rdubm.BzeqAScq.js","assets/css/w554a4sn.p2pdcF0M.css","assets/friendship-recommendation.wyApQWhX.js","assets/css/4m8lnzoa.CAhdyIRw.css","assets/9aji7v1m.B0yH6DPr.js","assets/39p0zvgg.DAwqw8pM.js","assets/common.DbOnkVfq.js","assets/customer-service-entry.Dy_jB2K7.js","assets/raz2yv86.D7w-fyVc.js","assets/css/m37or6g5.CwgRkAKX.css","assets/css/zxwcqx2y.CTyHEQAb.css","assets/css/cq456gye.CGmuGtSL.css","assets/v6g2gdd5.BDkSLmxc.js","assets/css/1ujf7e3t.DNqV6P0m.css","assets/6zazsr0r.TIKCw-9s.js","assets/8ss5q769.Du8uY6r2.js","assets/guest-action-cache.C3zkrGOv.js","assets/video-cta.BTum3OYb.js","assets/css/inrqkprv.B0cyS88w.css","assets/http-error.B3leGrki.js","assets/css/ub0e8frz.DnTtpagv.css","assets/remember-credentials.BTIcGbtu.js","assets/css/wxwuh3w3.D0SS7N0I.css","assets/rdso450m.BHSPX0Pn.js","assets/css/t5jb0x56.DTq33fuP.css","assets/floating-download-btn.1_hjHOym.js","assets/css/3iy5nwzu.C7UrSDq0.css","assets/css/wj0dh637.BGsCaaV_.css","assets/67ymnr4r.4Mh1uQfq.js","assets/css/ozimdwl3.CyVSHE43.css","assets/p8qpqtgu.DN7XH3Dl.js","assets/kmhzqbvn.CTZtUkZE.js","assets/css/8knmtiuw.C1N4gjft.css","assets/dems5uzt.DCi0f-Jr.js","assets/css/8lwol7oo.8FUH_GjG.css","assets/ab61q0a3.BAYQKkqC.js","assets/engine.DQX7FERq.js","assets/cdnSwitch.CwMLXfoR.js","assets/k5m2ez4g.Cw0P3nmd.js","assets/css/uxr2zdk6.jNPSkytB.css","assets/dzejd4bd.DE-ADq1x.js","assets/css/6zfjd
53dvt.F-vHZqyj.css","assets/hhf9tbzn.D3eyjmBz.js","assets/ivppywds.C-Dc_EwM.js","assets/css/bl848d2k.BAhJiXtj.css","assets/vg7ucu9q.DUfijCLa.js","assets/css/eyt098ew.CbqVou5X.css","assets/9uwjvhxp.LxPJhiBB.js","assets/css/99yx0l76.CTDxa9WU.css","assets/5ixw4pjl.DbvG7eVl.js","assets/f4my4qly.CXgFjZsp.js","assets/k71y78c5.4P-IBWz0.js","assets/css/z5m06ave.DrvC-FtA.css","assets/css/nqp9mglk.BxFUpGNq.css","assets/ql26m203.CfQrBMHi.js","assets/css/o1wjf5hf.WZqeTLLJ.css","assets/osxtajph.CkZSxHOL.js","assets/css/kauhace2.0t7zHduJ.css","assets/ctokkb7l.DWhLdmPg.js","assets/css/txuleru6.Duffl6Yg.css","assets/yydvrdlj.DHgOfWBx.js","assets/css/35av6s8p.m-_8NfnH.css","assets/jayf8tid.C2c_sOzV.js","assets/3kbzcx7y.Deo4jcdy.js","assets/dlr3wqs0.CpBliwSW.js","assets/css/a6f6gjay.DXmnnpj5.css","assets/991xbuy6.5-7OTtMr.js","assets/css/m9vaxz4n.DyRnkfsd.css","assets/3v5dkt7x.DZrTm4z2.js","assets/css/pk3extyj.C55T-ksi.css","assets/api-user-action.5Uss33ZN.js","assets/css/gegw6d78.L7Gn_YPl.css","assets/luwl3afa.B11OAonn.js","assets/z9m5njrk.HrUJpTJb.js","assets/css/jghzh8ot.CZixOwHi.css","assets/ynrmteg7.UJnGsmQ-.js","assets/css/v184m97a.BPkVNgXx.css","assets/kyrykfz1.Dwg_uwtX.js","assets/css/wzi5kbod.Cdhiw0Q5.css","assets/x4cajb4j.DKZ4u1qR.js","assets/css/zoohhb1d.B3cVWoUP.css","assets/dflsx8zy.C79_4Mvx.js","assets/css/vkib2zyo.CWrRO2RI.css","assets/iqwfcfbo.gnDviNuE.js","assets/css/86j00sx7.Di-dq2bx.css","assets/152hs2f1.DUVkFtWV.js","assets/uni-nav-bar.BWC-Ld86.js","assets/css/qrv8qnci.CcyhBIcU.css","assets/szki1l5o.Dp7A_mS0.js","assets/css/n6idspg1.CZs1KUGJ.css","assets/tkqpkfae.CSnoU_F-.js","assets/css/fl1lki6j.4zbXC2FY.css","assets/mjrqmkqb.mT4NXupd.js","assets/css/3jiuqsq6.B4sE-W99.css","assets/o25a18xx.DMt11aMu.js","assets/css/hl3etgpk.CUzo6VSC.css","assets/zksxc37v.D8kxY7a0.js","assets/api-signin.CwAL27sZ.js","assets/css/exmuiejh.wRejBn5N.css","assets/27yzlfpj.B7hC2a0A.js","assets/css/vxfhboay.DRXJr6eU.css","assets/jxu3zf5g.BYYngXsV.js","assets/css/r5huatqy.D6sXXPYS.css","assets/cz0oiwwx.CuIjXtp_.js","assets/css/kaw9ovpp.DpgqpW2s.css","assets/jhayvabw.7MESDpHk.js","assets/css/u9dashty.CbsyqAsb.css","assets/xdtx0ye7.ChRSl0HS.js","assets/css/y158w937.Bap6e3eU.css","assets/aideifqr.s9QuwTLC.js","assets/api-response.CGSvCIx_.js","assets/css/woja736o.uSC16lyy.css","assets/c3v97wua.DOKQ31z0.js","assets/referral-config.DRtxUg-2.js","assets/css/ujwssxs1.IpxA-uPl.css","assets/v2amu3c4.C_EDK8xe.js","assets/css/unm2ymrt.B5gFLJC3.css","assets/ql3m9wrm.BDprQ-Vg.js","assets/css/fvppykht.BJKC11kG.css","assets/87hn6hll.B6ubdGvq.js","assets/css/rywegqa3.DeaTDb1f.css","assets/pi2exv6f.C0MpOHZF.js","assets/css/qx991zr8.DkKPeHqA.css","assets/0bo3lq42.BgQC27i6.js","assets/css/lce7fwxh.C12hlOtI.css","assets/ih1sn4wh.YLrWngVh.js","assets/css/l1xo7fsa.D_rRsDQ3.css","assets/922wp7j0.DkCp2SPI.js","assets/css/731plosw.BnBVv7oi.css","assets/yzs7dilt.Ddah6IUf.js","assets/css/if5myxmo.Onm5N2Ji.css"]
54  }
55  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
56}
57var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,s=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&a(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&a(e,n,t[n]);return e},l=(e,r)=>t(e,n(r)),u=(e,t)=>{var n={};for(var a in e)o.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&r)for(var a of r(e))t.indexOf(a)<0&&i.call(e,a)&&(n[a]=e[a]);return n},c=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));import{i as d,a as h,c as f,b as p,e as m,d as g,r as v,O as y,l as b,U as _,f as w,g as x,w as T,o as S,h as C,j as k,k as E,m as A,n as M,u as I,p as P,q as L,s as D,W as R,t as O,v as B,x as N,y as $,z as V,A as j,B as H,C as F,D as W,E as q,F as U,G as z,H as Y,I as X,J as G,K,L as J,M as Z,N as Q,P as ee,Q as te,R as ne,S as re,T as oe,V as ie,X as ae,Y as se,Z as le,_ as ue,$ as ce,a0 as de,a1 as he,a2 as fe,a3 as pe,a4 as me,a5 as ge,a6 as ve,a7 as ye,a8 as be,a9 as _e,aa as we,ab as xe,ac as Te,ad as Se,ae as Ce,af as ke,ag as Ee,ah as Ae,ai as Me,aj as Ie,ak as Pe,al as Le,am as De,an as Re,ao as Oe,a
57p as Be,aq as Ne,ar as $e,as as Ve,at as je,au as He,av as Fe,aw as We,ax as qe,ay as Ue,az as ze,aA as Ye,aB as Xe,aC as Ge,aD as Ke,aE as Je,aF as Ze,aG as Qe,aH as et,aI as tt,aJ as nt,aK as rt,aL as ot,aM as it,aN as at,aO as st,aP as lt,aQ as ut,aR as ct,aS as dt,aT as ht,aU as ft,aV as pt,aW as mt,aX as gt,aY as vt,aZ as yt,a_ as bt,a$ as _t,b0 as wt,b1 as xt,b2 as Tt,b3 as St}from"../hehf0gjv.C4aZ2x6t.js";import{C as Ct}from"../u5te9pcx.BqUDQu5A.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const kt={},Et=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),i=(null==o?void 0:o.nonce)||(null==o?void 0:o.getAttribute("nonce"));r=Promise.all(t.map((t=>{if((t=function(e){return"/"+e}(t))in kt)return;kt[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(!!n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const a=document.createElement("link");return a.rel=r?"stylesheet":"modulepreload",r||(a.as="script",a.crossOrigin=""),a.href=t,i&&a.setAttribute("nonce",i),document.head.appendChild(a),r?new Promise(((e,n)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return r.then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))},At=["{","}"];const Mt=/^(?:\d)+/,It=/^(?:\w)+/;const Pt=Object.prototype.hasOwnProperty,Lt=(e,t)=>Pt.call(e,t),Dt=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=At){if(!t)return[e];let r=this._caches[e];return r||(r=function(e,[t,n]){const r=[];let o=0,i="";for(;o<e.length;){let a=e[o++];if(a===t){i&&r.push({type:"text",value:i}),i="";let t="";for(a=e[o++];void 0!==a&&a!==n;)t+=a,a=e[o++];const s=a===n,l=Mt.test(t)?"list":s&&It.test(t)?"named":"unknown";r.push({value:t,type:l})}else i+=a}return i&&r.push({type:"text",value:i}),r}(e,n),this._caches[e]=r),function(e,t){const n=[];let r=0;const o=Array.isArray(t)?"list":(i=t,null!==i&&"object"==typeof i?"named":"unknown");var i;if("unknown"===o)return n;for(;r<e.length;){const i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===o&&n.push(t[i.value])}r++}return n}(r,t)}};function Rt(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let r=["en","fr","es"];t&&Object.keys(t).length>0&&(r=Object.keys(t));const o=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,r);return o||void 0}class Ot{constructor({locale:e,fallbackLocale:t,messages:n,watcher:r,formater:o}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||Dt,this.messages=n||{},this.setLocale(e||"en"),r&&this.watchLocale(r)}setLocale(e){const t=this.locale;this.locale=Rt(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEac
57h((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((e=>{Lt(r,e)||(r[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let r=this.message;return"string"==typeof t?(t=Rt(t,this.messages))&&(r=this.messages[t]):n=t,Lt(r,e)?this.formater.interpolate(r[e],n).join(""):e}}function Bt(e,t={},n,r){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&hi?hi():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const o=new Ot({locale:e,fallbackLocale:n,messages:t,watcher:r});let i=(e,t)=>{{let e=!1;i=function(t,n){const r=fu().$vm;return r&&(r.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(r,o))),o.t(t,n)}}return i(e,t)};return{i18n:o,f:(e,t,n)=>o.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>o.add(e,t,n),watch:e=>o.watchLocale(e),getLocale:()=>o.getLocale(),setLocale:e=>o.setLocale(e)}}function Nt(e,t){return e.indexOf(t[0])>-1}var $t=Object.defineProperty,Vt=(e,t,n)=>(((e,t,n)=>{t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const jt=Ne((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Ht;function Ft(e){return Nt(e,yt)?Ut().f(e,function(){const e=hi(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),yt):e}function Wt(e,t){if(1===t.length){if(e){const n=e=>W(e)&&Nt(e,yt),r=t[0];let o=[];if(te(e)&&(o=e.filter((e=>n(e[r])))).length)return o;const i=e[t[0]];if(n(i))return e}return}const n=t.shift();return Wt(e&&e[n],t)}function qt(e,t){const n=Wt(e,t);if(!n)return!1;const r=t[t.length-1];if(te(n))n.forEach((e=>qt(e,[r])));else{let e=n[r];Object.defineProperty(n,r,{get:()=>Ft(e),set(t){e=t}})}return!0}function Ut(){if(!Ht){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage[Be]||__uniConfig.locale||navigator.language,Ht=Bt(e),jt()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Ht.add(e,__uniConfig.locales[e]))),Ht.setLocale(e)}}return Ht}function zt(e,t,n){return t.reduce(((t,r,o)=>(t[e+r]=n[o],t)),{})}const Yt=Ne((()=>{const e="uni.async.",t=["error"];Ut().add("en",zt(e,t,["The connection timed out, click the screen to try again."]),!1),Ut().add("es",zt(e,t,["Se agot\xf3 el tiempo de conexi\xf3n, haga clic en la pantalla para volver a intentarlo."]),!1),Ut().add("fr",zt(e,t,["La connexion a expir\xe9, cliquez sur l'\xe9cran pour r\xe9essayer."]),!1),Ut().add("zh-Hans",zt(e,t,["\u8fde\u63a5\u670d\u52a1\u5668\u8d85\u65f6\uff0c\u70b9\u51fb\u5c4f\u5e55\u91cd\u8bd5"]),!1),Ut().add("zh-Hant",zt(e,t,["\u9023\u63a5\u670d\u52d9\u5668\u8d85\u6642\uff0c\u9ede\u64ca\u5c4f\u5e55\u91cd\u8a66"]),!1)})),Xt=Ne((()=>{const e="uni.showActionSheet.",t=["cancel"];Ut().add("en",zt(e,t,["Cancel"]),!1),Ut().add("es",zt(e,t,["Cancelar"]),!1),Ut().add("fr",zt(e,t,["Annuler"]),!1),Ut().add("zh-Hans",zt(e,t,["\u53d6\u6d88"]),!1),Ut().add("zh-Hant",zt(e,t,["\u53d6\u6d88"]),!1)})),Gt=Ne((()=>{const e="uni.showToast.",t=["unpaired"];Ut().add("en",zt(e,t,["Please note showToast must be paired with hideToast"]),!1),Ut().add("es",zt(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Ut().add("fr",zt(e,t,["Veuillez noter que showToast doit \xeatre associ\xe9 \xe0 hideToast"]),!1),Ut().add("zh-Hans",zt(e,t,["\u8bf7\u6ce8\u610f showToast \u4e0e hideToast \u5fc5\u987b\u914d\u5bf9\u4f7f\u7528"]),!1),Ut().add("zh-Hant",zt(e,t,["\u8acb\u6ce8\u610f showToast \u8207 hideToast \u5fc5\u9808\u914d\u5c0d\u4f7f\u7528"]),!1)})),Kt=Ne((()=>{const e="uni.showLoading.",t=["unpaired"];Ut().add("en",zt(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Ut().add("es",zt(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Ut().add("fr",zt(e,t,["Veuillez noter que showLoading doit \xeatre associ\xe9 \xe0 hideLoading"]),!1),Ut().add("zh-Hans",zt(e,t,["\u8bf7\u6ce8\u610f showLoading \u4e0e hideLoading \u5fc5\u987b\u914d\u5bf9\u4f7f\u7528"]),!1),Ut().add("zh-Hant",zt(e,t,["\u8acb\u6ce8\u610f showLoading \u8207 hideLoading \u5fc5\u9808\u914d\u5c0d\u4f7f\u7528"]),!1)})),Jt=Ne((()=>{const e="uni.showModal.",t=["cancel","confirm"];Ut().add("en",zt(e,t,["Cancel","OK"]),!1),Ut().add("es",zt(e,t,["Cancelar","OK"]),!1),Ut().add("fr",zt(e,t,["Annuler","OK"]),!1),Ut().add("zh-Hans",zt(e,t,["\u53d6\u6d88","\u786e\u5b9a"]),!1),Ut().add("zh-Hant",zt(e,t,["\u53d6\u6d88","\u78ba\u5b9a"]),!1)})),Zt=Ne((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Ut().add("en",zt(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Ut().add("es",zt(e,t,["El 
57cuadro de di\xe1logo del selector de archivos solo se puede mostrar con la activaci\xf3n del usuario"]),!1),Ut().add("fr",zt(e,t,["La bo\xeete de dialogue du s\xe9lecteur de fichier ne peut \xeatre affich\xe9e qu'avec une activation par l'utilisateur"]),!1),Ut().add("zh-Hans",zt(e,t,["\u6587\u4ef6\u9009\u62e9\u5668\u5bf9\u8bdd\u6846\u53ea\u80fd\u5728\u7531\u7528\u6237\u6fc0\u6d3b\u65f6\u663e\u793a"]),!1),Ut().add("zh-Hant",zt(e,t,["\u6587\u4ef6\u9078\u64c7\u5668\u5c0d\u8a71\u6846\u53ea\u80fd\u5728\u7531\u7528\u6236\u6fc0\u6d3b\u6642\u986f\u793a"]),!1)})),Qt=Ne((()=>{const e="uni.setClipboardData.",t=["success","fail"];Ut().add("en",zt(e,t,["Content copied","Copy failed, please copy manually"]),!1),Ut().add("es",zt(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),Ut().add("fr",zt(e,t,["Contenu copi\xe9","\xc9chec de la copie, copiez manuellement"]),!1),Ut().add("zh-Hans",zt(e,t,["\u5185\u5bb9\u5df2\u590d\u5236","\u590d\u5236\u5931\u8d25\uff0c\u8bf7\u624b\u52a8\u590d\u5236"]),!1),Ut().add("zh-Hant",zt(e,t,["\u5167\u5bb9\u5df2\u5fa9\u5236","\u5fa9\u5236\u5931\u6557\uff0c\u8acb\u624b\u52d5\u5fa9\u88fd"]),!1)})),en=Ne((()=>{const e="uni.getClipboardData.",t=["fail"];Ut().add("en",zt(e,t,["Reading failed, please paste manually"]),!1),Ut().add("es",zt(e,t,["Error de lectura, pegue manualmente"]),!1),Ut().add("fr",zt(e,t,["\xc9chec de la lecture, veuillez coller manuellement"]),!1),Ut().add("zh-Hans",zt(e,t,["\u8bfb\u53d6\u5931\u8d25\uff0c\u8bf7\u624b\u52a8\u7c98\u8d34"]),!1),Ut().add("zh-Hant",zt(e,t,["\u8b80\u53d6\u5931\u6557\uff0c\u8acb\u624b\u52d5\u7c98\u8cbc"]),!1)})),tn=Ne((()=>{const e="uni.picker.",t=["done","cancel"];Ut().add("en",zt(e,t,["Done","Cancel"]),!1),Ut().add("es",zt(e,t,["OK","Cancelar"]),!1),Ut().add("fr",zt(e,t,["OK","Annuler"]),!1),Ut().add("zh-Hans",zt(e,t,["\u5b8c\u6210","\u53d6\u6d88"]),!1),Ut().add("zh-Hant",zt(e,t,["\u5b8c\u6210","\u53d6\u6d88"]),!1)})),nn=Ne((()=>{const e="uni.video.",t=["danmu","volume"];Ut().add("en",zt(e,t,["Danmu","Volume"]),!1),Ut().add("es",zt(e,t,["Danmu","Volumen"]),!1),Ut().add("fr",zt(e,t,["Danmu","Le Volume"]),!1),Ut().add("zh-Hans",zt(e,t,["\u5f39\u5e55","\u97f3\u91cf"]),!1),Ut().add("zh-Hant",zt(e,t,["\u5f48\u5e55","\u97f3\u91cf"]),!1)}));function rn(e){const t=new Ae;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,r,o=!1){t[o?"once":"on"](`${e}.${n}`,r)},unsubscribe(n,r){t.off(`${e}.${n}`,r)},subscribeHandler(n,r,o){t.emit(`${e}.${n}`,r,o)}}}let on=1;const an=Object.create(null);function sn(e,t){return e+"."+t}
57function ln(e,t,n){t=sn(e,t),an[t]||(an[t]=n)}function un({id:e,name:t,args:n},r){t=sn(r,t);const o=t=>{e&&Rd.publishHandler("invokeViewApi."+e,t)},i=an[t];i?i(n,o):o({})}const cn=m(rn("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:r,publishHandler:o}=Rd,i=n?on++:0;n&&r("invokeServiceApi."+i,n,!0),o("invokeServiceApi",{id:i,name:e,args:t})}}),dn=pe(!0);let hn;function fn(){hn&&(clearTimeout(hn),hn=null)}let pn=0,mn=0;function gn(e){if(fn(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];pn=t,mn=n,hn=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function vn(e){if(!hn)return;if(1!==e.touches.length)return fn();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-pn)>10||Math.abs(n-mn)>10?fn():void 0}function yn(e,t){const n=Number(e);return isNaN(n)?t:n}function bn(){const e=__uniConfig.globalStyle||{},t=yn(e.rpxCalcMaxDeviceWidth,960),n=yn(e.rpxCalcBaseDeviceWidth,375);function r(){let e=function(){const e=/^Apple/.test(navigator.vendor);var t=e&&window.matchMedia("(orientation:landscape)").matches?Math.max(screen.width,screen.height):screen.width;return e?Math.min(window.innerWidth,document.documentElement.clientWidth,t)||t:Math.min(window.innerWidth,document.documentElement.clientWidth)}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}r(),document.addEventListener("DOMContentLoaded",r),window.addEventListener("load",r),window.addEventListener("resize",r),/^Apple/.test(navigator.vendor)&&window.addEventListener("orientationchange",(()=>{r(),setTimeout(r,50)}))}function _n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wn,xn,Tn=["top","left","right","bottom"],Sn={};function Cn(){return xn="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function kn(){if(xn="string"==typeof xn?xn:Cn()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var r=document.createElement("div");o(r,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Tn.forEach((function(e){a(r,e)})),document.body.appendChild(r),i(),wn=!0}else Tn.forEach((function(e){Sn[e]=0}));function o(e,t){var n=e.style;Object.keys(t).forEach((function(e){var r=t[e];n[e]=r}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var r=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),u={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:xn+"(safe-area-inset-"+n+")"};o(r,u),o(a,u),o(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),o(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),r.appendChild(s),a.appendChild(l),e.appendChild(r),e.appendChild(a),i((function(){r.scrollTop=a.scrollTop=1e4;var e=r.scrollTop,o=a.scrollTop;function i(){this.scrollTop!==(this===r?e:o)&&(r.scrollTop=a.scrollTop=1e4,e=r.scrollTop,o=a.scrollTop,function(e){An.length||setTimeout((function(){var e={};An.forEach((function(t){e[t]=Sn[t]})),An.length=0,Mn.forEach((function(t){t(e)}))}),0);An.push(e)}(n))}r.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var c=getComputedStyle(r);Object.defineProperty(Sn,n,{configurable:!0,get:function(){return parseFloat(c.paddingBottom)}})}}function En(e){return wn||kn(),Sn[e]}var An=[];var Mn=[];const In=_n({get support(){return 0!=("string"==typeof xn?xn:Cn()).length},get top(){return En("top")},get left(){return En("left")},get right(){return En("right")},get bottom(){return En("bottom")},onChange:function(e){Cn()&&(wn||kn(),"function"==typeof e&&Mn.push(e))},offChange:function(e){var t=Mn.indexOf(e);t>=0&&Mn.splice(t,1)}}),Pn=le((()=>{}),["prevent"]),Ln=le((e=>{}),["stop"]);function Dn(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Rn(){const e=Dn(document.documentElement.style,"--window-top");return e?e+In.top:0}function On(){const e=document.documentElement.style,t=Rn(),n=Dn(e,"--window-bottom"),r=Dn(e,"--window-left"),o=Dn(e,"--window-right"),i=Dn(e,"--top-window-height");return{top:t,bottom:n?n+In.bottom:0,left:r?r+In.left:0,right:o?o+In.right:0,topWindowHeight:i||0}}function Bn(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function Nn(e){return Bn(e)}function $n(e){return Symbol(e)}function Vn(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function jn(e,t=!1){if(t)return function(e){if(!Vn(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>
57jo(parseFloat(t))+"px"))}(e);if(W(e)){const t=parseInt(e)||0;return Vn(e)?jo(t):t}return e}function Hn(e){return e.$page}function Fn(e){return 0===e.tagName.indexOf("UNI-")}const Wn="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",qn="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function Un(e,t="#000",n=27){return $("svg",{width:n,height:n,viewBox:"0 0 32 32"},[$("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function zn(){{const{$pageInstance:e}=Se();return e&&er(e.proxy)}}function Yn(e){const t=v(e);if(t.$page)return er(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return er(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?er(n):void 0}function Xn(){const e=ha(),t=e.length;if(t)return e[t-1]}function Gn(){var e;const t=null==(e=Xn())?void 0:e.$page;if(t)return t.meta}function Kn(){const e=Gn();return e?e.id:-1}function Jn(){const e=Xn();if(e)return e.$vm}const Zn=["navigationBar","pullToRefresh"];function Qn(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),r=m({id:t},n,e);Zn.forEach((t=>{r[t]=m({},n[t],e[t])}));const{navigationBar:o}=r;return o.titleText&&o.titleImage&&(o.titleText=""),r}function er(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function tr(e,t,n){if(W(e))n=t,t=e,e=Jn();else if("number"==typeof e){const t=ha().find((t=>Hn(t).id===e));e=t?t.$vm:Jn()}if(!e)return;const r=e.$[t];return t===q?r&&U(r,n).some((e=>!0===e)):r&&z(r,n)}function nr(e){e.preventDefault()}let rr,or=0;function ir({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let r=!1,o=!1,i=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,r=window.scrollY,i=r>0&&e>t&&r+t+n>=e,a=Math.abs(e-or)>n;return!i||o&&!a?(!i&&o&&(o=!1),!1):(or=e,o=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(rr=setTimeout(a,300))),r=!1};return function(){clearTimeout(rr),r||requestAnimationFrame(a),r=!0}}function ar(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return ar(e,t.slice(2));const n=t.split("/"),r=n.length;let o=0;for(;o<r&&".."===n[o];o++);n.splice(0,o),t=n.join("/");const i=e.length>0?e.split("/"):[];return i.splice(i.length-o-1,o+1),$e(i.concat(n).join("/"))}function sr(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function lr(){bn(),Ve(Fn),window.addEventListener("touchstart",gn,dn),window.addEventListener("touchmove",vn,dn),window.addEventListener("touchend",fn,dn),window.addEventListener("touchcancel",fn,dn)}class ur{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=Ze(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=fr(this.$el.querySelector(e));return t?cr(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let r=0;r<n.length;r++){const e=fr(n[r]);e&&t.push(cr(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",Qe(e))}setStyle(e){return this.$el&&e?(W(e)&&(e=et(e)),D(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];L(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Rd.publishHandler(tt,{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function cr(e,t=!0){if(t&&e&&(e=je(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new ur(e)),e.$el.__wxsComponentDescriptor}function dr(e,t){return cr(e,t)}function hr(e,t,n,r=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>dr(n.proxy,!1)}));const o=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const r=je(t);if(!r)return!1;const o=r.$.type;return!(!o.$wxs&&!o.$renderjs)&&r}(t,n,r);if(o)return[e,dr(o,!1)]}}function fr(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function pr(e,t=!1){const{type:n,timeStamp:r,target:o,currentTarget:i}=e;let a,s;a=He(t?o:function(e){for(;!Fn(e);)e=e.parentElement;return e}(o)),s=He(i);const l={type:n,timeStamp:r,target:a,detail:{},currentTarget:s};return e instanceof CustomEvent&&D(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){m(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function mr(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function gr(e,t){const n=[];for(let r=0;r<e.length;r++){const{identifier:o,pageX:i,pageY:a,clientX:s,clientY:l,force:u}=e[r];n.push({identifier:o,pageX:i,pageY:a-t,clientX:s,clientY:l-t,force:u||0})}return n}const vr=Object.defineProperty({__proto__:null,$nne:function(e,t,n){const{currentTarget:r}=e;if(!(e instanceof Event&&r instanceof HTMLElement))return[e];const o=!Fn(r);if(o)return hr(e,t,n,!1)||[e];const i=pr(e,o);if("click"===e.type)!function(e,t){const{x:n,y:r}=t,o=Rn();e.detail={x:n,y:r-o},e.touches=e.changedTouches=[mr(t,o)]}(i,e);else if((e=>
570===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Rn();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[mr(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=Rn();i.touches=gr(e.touches,t),i.changedTouches=gr(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return hr(i,t,n)||[i]},createNativeEvent:pr},Symbol.toStringTag,{value:"Module"});function yr(e){!function(e){const t=e.globalProperties;m(t,vr),t.$gcd=dr}(e._context.config)}let br=1;function _r(e){return(e||Kn())+".invokeViewApi"}const wr=m(rn("view"),{invokeOnCallback:(e,t)=>Od.emit("api."+e,t),invokeViewMethod:(e,t,n,r)=>{const{subscribe:o,publishHandler:i}=Od,a=r?br++:0;r&&o("invokeViewApi."+a,r,!0),i(_r(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,r)=>{const{subscribe:o,unsubscribe:i,publishHandler:a}=Od,s=br++,l="invokeViewApi."+s;return o(l,n),a(_r(r),{id:s,name:e,args:t},r),()=>{i(l)}}});function xr(e){tr(Xn(),Ce,e),Od.invokeOnCallback("onWindowResize",e)}function Tr(e){const t=Xn();tr(fu(),xe,e),tr(t,xe)}function Sr(){tr(fu(),nt),tr(Xn(),nt)}const Cr=[Xe,Ye];function kr(){Cr.forEach((e=>Od.subscribe(e,function(e){return(t,n)=>{tr(parseInt(n),e,t)}}(e))))}function Er(){!function(){const{on:e}=Od;e(Ce,xr),e(B,Tr),e(N,Sr)}(),kr()}function Ar(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Y(this.$page.id)),e.eventChannel}}function Mr(e){e._context.config.globalProperties.getOpenerEventChannel=Ar}function Ir(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Pr(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${jo(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Lr(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const r=t.actions,o=t.actions.length;function i(){const t=r[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],r=["opacity","background-color"],o=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,l={},u=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(Pr)),n.indexOf(i)>=0&&(a.length=1),u.push(`${i}(${a.join(",")})`);else if(r.concat(o).includes(a[0])){i=a[0];const e=a[1];l[i]=o.includes(i)?Pr(e):e}})),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n<o&&setTimeout(i,a.duration+a.delay)}setTimeout((()=>{i()}),0)}const Dr={props:["animation"],watch:{animation:{deep:!0,handler(){Lr(this)}}},mounted(){Lr(this)}},Rr=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(Dr),Or(e)},Or=e=>(e.__reserved=!0,e.compatConfig={MODE:3},g(e));function Br(e){return e.__wwe=!0,e}function Nr(e,t){return(n,r,o)=>{e.value&&t(n,function(e,t,n,r){let o;return o=He(n),{type:t.__evName||r.type||e,timeStamp:t.timeStamp||0,target:o,currentTarget:o,detail:r}}(n,r,e.value,o||{}))}}const $r={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Vr(e){const t=X(!1);let n,r,o=!1;function i(){requestAnimationFrame((()=>{clearTimeout(r),r=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(r){r._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(r._hoverPropagationStopped=!0),o=!0,n=setTimeout((()=>{t.value=!0,o||i()}),parseInt(e.hoverStartTime)))}function s(){o=!1,t.value&&i()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:Br((function(e){e.touches.length>1||a(e)})),onMousedown:Br((function(e){o||(a(e),window.addEventListener("mouseup",l))})),onTouchend:Br((function(){s()})),onMouseup:Br((function(){o&&l()})),onTouchcancel:Br((function(){o=!1,t.value=!1,clearTimeout(n)}))}}}function jr(e,t){return W(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const Hr=$n("uf"),Fr={for:{type:String,default:""}},Wr=$n("ul");const qr=Rr({name:"Label",props:Fr,setup(e,{slots:t}){const n=X(null),r=zn(),o=function(){const e=[];return Z(Wr,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),i=G((()=>e.for||t.default&&t.default.length)),a=Br((t=>{const n=t.target;let i=/^uni-(checkbox|radio|switch)-/.test(n.className);i||(i=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),i||(e.for?Rd.emit("uni-label-click-"+r+"-"+e.for,t,!0):o.length&&o[0](t,!0))}));return()=>$("uni-label",{ref:n,class:{"uni-label-pointer":i},onClick:a},[t.default&&t.default()],10,["onClick"])}});function Ur(e,t){zr(e.id,t),T((()=>e.id),((e,n)=>{Yr(n,t,!0),zr(e,t,!0)})),ve((()=>{Yr(e.id,t)}
57))}function zr(e,t,n){const r=zn();n&&!e||D(t)&&Object.keys(t).forEach((o=>{n?0!==o.indexOf("@")&&0!==o.indexOf("uni-")&&Rd.on(`uni-${o}-${r}-${e}`,t[o]):0===o.indexOf("uni-")?Rd.on(o,t[o]):e&&Rd.on(`uni-${o}-${r}-${e}`,t[o])}))}function Yr(e,t,n){const r=zn();n&&!e||D(t)&&Object.keys(t).forEach((o=>{n?0!==o.indexOf("@")&&0!==o.indexOf("uni-")&&Rd.off(`uni-${o}-${r}-${e}`,t[o]):0===o.indexOf("uni-")?Rd.off(o,t[o]):e&&Rd.off(`uni-${o}-${r}-${e}`,t[o])}))}const Xr=Rr({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=X(null),r=K(Hr,!1),{hovering:o,binding:i}=Vr(e),a=Br(((t,o)=>{if(e.disabled)return t.stopImmediatePropagation();o&&n.value.click();const i=e.formType;if(i){if(!r)return;"submit"===i?r.submit(t):"reset"===i&&r.reset(t)}else;})),s=K(Wr,!1);return s&&(s.addHandler(a),M((()=>{s.removeHandler(a)}))),Ur(e,{"label-click":a}),()=>{const r=e.hoverClass,s=jr(e,"disabled"),l=jr(e,"loading"),u=jr(e,"plain"),c=r&&"none"!==r;return $("uni-button",J({ref:n,onClick:a,id:e.id,class:c&&o.value?r:""},c&&i,s,l,u),[t.default&&t.default()],16,["onClick","id"])}}}),Gr=$n("upm");function Kr(){return K(Gr)}function Jr(e){const t=function(e){return x(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=jn(e.offset)),e.height&&(e.height=jn(e.height)),e.range&&(e.range=jn(e.range)),e}(m({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:r,style:o}=n;"custom"!==o&&"transparent"!==r&&(t.offset+=ee+In.top),e.pullToRefresh=t}}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==ha().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(Qn(Q().meta,e)))))}(e);return Z(Gr,t),t}function Zr(){return Q()}function Qr(){return history.state&&history.state.__id__||1}const eo=["original","compressed"],to=["album","camera"],no=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function ro(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function oo(e,t){return!te(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function io(e){return function(){try{return e.apply(e,arguments)}catch(t){}}}let ao=1;const so={};function lo(e,t,n){if("number"==typeof e){const r=so[e];if(r)return r.keepAlive||delete so[e],r.callback(t,n)}return t}const uo="success",co="fail",ho="complete";function fo(e,t={},{beforeAll:n,beforeSuccess:r}={}){D(t)||(t={});const{success:o,fail:i,complete:a}=function(e){const t={};for(const n in e){const r=e[n];L(r)&&(t[n]=io(r),delete e[n])}return t}(t),s=L(o),l=L(i),u=L(a),c=ao++;return function(e,t,n,r=!1){so[e]={name:t,keepAlive:r,callback:n}}(c,e,(c=>{(c=c||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(c.errMsg,e),L(n)&&n(c),c.errMsg===e+":ok"?(L(r)&&r(c,t),s&&o(c)):l&&i(c),u&&a(c)})),c}const po="success",mo="fail",go="complete",vo={},yo={};function bo(e,t){return function(n){return e(n,t)||n}}function _o(e,t,n){let r=!1;for(let o=0;o<e.length;o++){const i=e[o];if(r)r=Promise.resolve(bo(i,n));else{const e=i(t,n);if(Fe(e)&&(r=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return r||{then:e=>e(t),catch(){}}}function wo(e,t={}){return[po,mo,go].forEach((n=>{const r=e[n];if(!te(r))return;const o=t[n];t[n]=function(e){_o(r,e,t).then((e=>L(o)&&o(e)||e))}})),t}function xo(e,t){const n=[];te(vo.returnValue)&&n.push(...vo.returnValue);const r=yo[e];return r&&te(r.returnValue)&&n.push(...r.returnValue),n.forEach((e=>{t=e(t)||t})),t}function To(e){const t=Object.create(null);Object.keys(vo).forEach((e=>{"returnValue"!==e&&(t[e]=vo[e].slice())}));const n=yo[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function So(e,t,n,r){const o=To(e);if(o&&Object.keys(o).length){if(te(o.invoke)){return _o(o.invoke,n).then((n=>t(wo(To(e),n),...r)))}return t(wo(o,n),...r)}return t(n,...r)}function Co(e,t){return(n={},...r)=>function(e){return!(!D(e)||![uo,co,ho].find((t=>L(e[t]))))}
57(n)?xo(e,So(e,t,m({},n),r)):xo(e,new Promise(((o,i)=>{So(e,t,m({},n,{success:o,fail:i}),r)})))}function ko(e,t,n,r={}){const o=t+":fail";let i="";return i=n?0===n.indexOf(o)?n:o+" "+n:o,delete r.errCode,lo(e,m({errMsg:i},r))}function Eo(e,t,n,r){if(r&&r.beforeInvoke){const e=r.beforeInvoke(t);if(W(e))return e}const o=function(e,t){const n=e[0];if(!t||!t.formatArgs||!D(t.formatArgs)&&D(n))return;const r=t.formatArgs,o=Object.keys(r);for(let i=0;i<o.length;i++){const t=o[i],a=r[t];if(L(a)){const r=a(e[0][t],n);if(W(r))return r}else Ee(n,t)||(n[t]=a)}}(t,r);if(o)return o}function Ao(e,t,n,r){return n=>{const o=fo(e,n,r),i=Eo(0,[n],0,r);return i?ko(o,e,i):t(n,{resolve:t=>function(e,t,n){return lo(e,m(n||{},{errMsg:t+":ok"}))}(o,e,t),reject:(t,n)=>ko(o,e,function(e){return!e||W(e)?e:e.stack?("undefined"==typeof globalThis||globalThis.harmonyChannel,e.message):e}(t),n)})}}function Mo(e,t,n,r){return Co(e,Ao(e,t,0,r))}function Io(e,t,n,r){return function(e,t,n,r){return(...e)=>{const n=Eo(0,e,0,r);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,r)}function Po(e,t,n,r){return Co(e,function(e,t,n,r){return Ao(e,t,0,r)}(e,t,0,r))}let Lo=!1,Do=0,Ro=0,Oo=960,Bo=375,No=750;function $o(){let e,t,n;{const{windowWidth:r,pixelRatio:o,platform:i}=function(){const e=Wa();return{platform:La?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:e}}();e=r,t=o,n=i}Do=e,Ro=t,Lo="ios"===n}function Vo(e,t){const n=Number(e);return isNaN(n)?t:n}const jo=Io(0,((e,t)=>{if(0===Do&&($o(),function(){const e=__uniConfig.globalStyle||{};Oo=Vo(e.rpxCalcMaxDeviceWidth,960),Bo=Vo(e.rpxCalcBaseDeviceWidth,375),No=Vo(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Do;n=e===No||n<=Oo?n:Bo;let r=e/750*n;return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==Ro&&Lo?.5:1),e<0?-r:r}));const Ho=new class{constructor(){this.$emitter=new Ae}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},Fo=Io(0,((e,t)=>(Ho.on(e,t),()=>Ho.off(e,t)))),Wo=Io(0,((e,t)=>{te(e)||(e=e?[e]:[]),e.forEach((e=>{Ho.off(e,t)}))})),qo=Io(0,((e,...t)=>{Ho.emit(e,...t)})),Uo=[.5,.8,1,1.25,1.5,2];class zo{constructor(e,t){this.id=e,this.pageId=t}play(){qa(this.id,this.pageId,"play")}pause(){qa(this.id,this.pageId,"pause")}stop(){qa(this.id,this.pageId,"stop")}seek(e){qa(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){qa(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~Uo.indexOf(e)||(e=1),qa(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){qa(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){qa(this.id,this.pageId,"exitFullScreen")}showStatusBar(){qa(this.id,this.pageId,"showStatusBar")}hideStatusBar(){qa(this.id,this.pageId,"hideStatusBar")}}const Yo=Io(0,((e,t)=>new zo(e,Yn(t||Jn())))),Xo=(e,t,n,r)=>{!function(e,t,n,r,o){Od.invokeViewMethod("map."+e,{type:n,data:r},t,o)}(e,t,n,r,(e=>{r&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(r,e)}))};const Go={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
57almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function Ko(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),r=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),r=parseInt(r+r,16),[e,n,r,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(Ee(Go,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Go[n]);const e=parseInt(t[1].slice(0,2),16),r=parseInt(t[1].slice(2,4),16),o=parseInt(t[1].slice(4,6),16);let i=parseInt(t[1].slice(6,8),16);return i=i>=0?i:255,[e,r,o,i]}return[0,0,0,255]}class Jo{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,Ko(t)])}}class Zo{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class Qo{constructor(e){this.width=e}}let ei=0,ti={};const ni={canvas:class{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){}setStrokeStyle(e){}setShadow(e,t,n,r){}addColorStop(e,t){}setLineWidth(e){}setLineCap(e){}setLineJoin(e){}setLineDash(e,t){}setMiterLimit(e){}fillRect(e,t,n,r){}strokeRect(e,t,n,r){}clearRect(e,t,n,r){}fill(){}stroke(){}scale(e,t){}rotate(e){}translate(e,t){}setFontSize(e){}fillText(e,t,n,r){}setTextAlign(e){}setTextBaseline(e){}drawImage(e,t,n,r,o,i,a,s,l){}setGlobalAlpha(e){}strokeText(e,t,n,r){}setTransform(e,t,n,r,o,i){}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],function(e,t,n,r,o){Od.invokeViewMethod(`canvas.${e}`,{type:n,data:r},t,(e=>{o&&o(e)}))}(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,r){return new Jo("linear",[e,t,n,r])}createCircularGradient(e,t,n){return new Jo("radial",[e,t,n])}createPattern(e,t){if(void 0===t);else if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new Zo(e,t)}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new Qo(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,r){this.path.push({method:"quadraticCurveTo",data:[e,t,n,r]}),this.subpath.push([n,r])}bezierCurveTo(e,t,n,r,o,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,r,o,i]}),this.subpath.push([o,i])}arc(e,t,n,r,o,i=!1){this.path.push({method:"arc",data:[e,t,n,r,o,i]}),this.subpath.push([e,t])}rect(e,t,n,r){this.path.push({method:"rect",data:[e,t,n,r]}),this.subpath=[[e,t]]}
57arcTo(e,t,n,r,o){this.path.push({method:"arcTo",data:[e,t,n,r,o]}),this.subpath.push([n,r])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var r=n[1].trim().split(/\s/),o=parseFloat(n[3]),i=n[7],a=[];r.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&s()})),1===r.length&&s(),r=a.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=o,this.state.fontFamily=i,this.actions.push({method:"setFont",data:[`${r} ${o}px ${i}`]})}function s(){a.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}},map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Xo(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Xo(this.id,this.pageId,"moveToLocation",e)}getScale(e){Xo(this.id,this.pageId,"getScale",e)}getRegion(e){Xo(this.id,this.pageId,"getRegion",e)}includePoints(e){Xo(this.id,this.pageId,"includePoints",e)}translateMarker(e){Xo(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Xo(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Xo(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Xo(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Xo(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Xo(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Xo(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Xo(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Xo(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Xo(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Xo(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Xo(this.id,this.pageId,"openMapApp",e)}on(e,t){Xo(this.id,this.pageId,"on",{name:e,callback:t})}},video:zo,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertMention(e){this._exec("insertMention",e)}insertLink(e){this._exec("insertLink",e)}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,r){const o={options:r},i=r&&("success"in r||"fail"in r||"complete"in r);
57if(i){const e=String(ei++);o.callbackId=e,ti[e]=r}Od.invokeViewMethod(`editor.${e}`,{type:n,data:o},t,(({callbackId:e,data:t})=>{i&&(bt(ti[e],t),delete ti[e])}))}(this.id,this.pageId,e,t)}}};function ri(e){if(e&&e.contextInfo){const{id:t,type:n,page:r}=e.contextInfo,o=ni[n];e.context=new o(t,r),delete e.contextInfo}}class oi{constructor(e,t,n,r){this._selectorQuery=e,this._component=t,this._selector=n,this._single=r}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class ii{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const r=[];t.forEach((({component:t,selector:n,single:o,fields:i})=>{null===t?r.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(i)):r.push(function(e,t,n,r,o){const i=function(e,t){if(!e)return t.$el;return e.$el}(t,e),a=i.parentElement;if(!a)return r?null:[];const{nodeType:s}=i,l=3===s||8===s;if(r){const e=l?a.querySelector(n):za(i,n)?i:i.querySelector(n);return e?Ua(e,o):null}{let e=[];const t=(l?a:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(Ua(t,o))})),!l&&za(i,n)&&e.unshift(Ua(i,o)),e}}(e,t,n,o,i))})),n(r)}(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{te(e)?e.forEach(ri):ri(e);const r=n[t];L(r)&&r.call(this,e)})),L(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=v(e),this}select(e){return this._nodesRef=new oi(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new oi(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new oi(this,null,"",!0)}_push(e,t,n,r,o){this._queue.push({component:t,selector:e,single:n,fields:r}),this._queueCb.push(o)}}const ai=Io(0,(e=>((e=v(e))&&!Yn(e)&&(e=null),new ii(e||Jn())))),si={formatArgs:{}},li={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class ui{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=m({},li,e)}_getOption(e){const t={transition:m({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}
57step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const ci=Ne((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{ui.prototype[n]=function(...r){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(r[0]):r[0]]):this._pushAnimates(n,r),this}}))})),di=Io(0,(e=>(ci(),new ui(e))),0,si),hi=Io(0,(()=>{const e=fu();return e&&e.$vm?e.$vm.$locale:Ut().getLocale()})),fi={[rt]:[],[ot]:[],[y]:[],[xe]:[],[nt]:[]};const pi=Io(0,(()=>m({},Ja))),mi={formatArgs:{showToast:!0},beforeInvoke(){Qt()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=Ut(),r=n("uni.setClipboardData.success");r&&Uc({title:r,icon:"success",mask:!1})}},gi=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=oo(e,eo)},sourceType(e,t){t.sourceType=oo(e,to)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),vi={formatArgs:{urls(e,t){t.urls=e.map((e=>W(e)&&e?Ma(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:W(e)&&e&&(t.current=Ma(e))}}},yi="json",bi=["text","arraybuffer"],_i=encodeURIComponent;ArrayBuffer,Boolean;const wi={formatArgs:{method(e,t){t.method=ro((e||"").toUpperCase(),no)},data(e,t){t.data=e||""},url(e,t){t.method===no[0]&&D(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const r=n[1]||"";n=n[0].split("?");let o=n[1]||"";e=n[0];const i=o.split("&").filter((e=>e)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(Ee(t,s)){let e=t[s];null==e?e="":D(e)&&(e=JSON.stringify(e)),a[_i(s)]=_i(e)}return o=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(o?"?"+o:"")+(r?"#"+r:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==no[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||yi).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===bi.indexOf(t.responseType)&&(t.responseType="text")}}},xi={formatArgs:{filePath(e,t){e&&(t.filePath=Ma(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Ti={url:{type:String,required:!0}},Si=(Ai(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Ai(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),Pi("navigateTo")),Ci=Pi("redirectTo"),ki=Pi("reLaunch"),Ei={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(ha().length-1,e)}}};function Ai(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let Mi;function Ii(){Mi=""}function Pi(e){return{formatArgs:{url:Li(e)},beforeAll:Ii}}function Li(e){return function(t,n){if(!t)return'Missing required args: "url"';const r=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=ha();return n.length&&(t=Hn(n[n.length-1]).route),ar(t,e)}(t)).split("?")[0],o=sr(r,!0);if(!o)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(o.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!o.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!o.meta.isTabBar||"appLaunch"===n.openType||(t=r),o.meta.isEntry&&(t=t.replace(o.alias,"/")),n.url=function(e){if(!W(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const r=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),o=t.length>0?t.join("="):"";r.push(n+"="+encodeURIComponent(o))})),r.length?e+"?"+r.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(Mi===t&&"appLaunch"!==n.openType)return`${Mi} locked`;__uniConfig.ready&&(Mi=t)}else if(o.meta.isTabBar){const e=ha(),t=o.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const Di={formatArgs:{duration:300}},Ri={formatArgs:{itemColor:"#000"}},Oi=(Boolean,{formatArgs:{title:"",mask:!1}}),Bi=(Boolean,{beforeInvoke(){Jt()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,
57cancelText(e,t){if(!Ee(t,"cancelText")){const{t:e}=Ut();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!Ee(t,"confirmText")){const{t:e}=Ut();t.confirmText=e("uni.showModal.confirm")}},confirmColor:qe}}),Ni=["success","loading","none","error"],$i=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=ro(e,Ni)},image(e,t){t.image=e?Ma(e):""},duration:1500,mask:!1}});function Vi(){const e=Jn();if(!e)return;const t=da(),n=t.keys();for(const r of n){const e=t.get(r);e.$.__isTabBar?e.$.__isActive=!1:pa(r)}e.$.__isTabBar&&(e.$.__isVisible=!1,tr(e,nt))}function ji(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function Hi(e){const t=da().values();for(const n of t){const t=ia(n);if(ji(e,t))return n.$.__isActive=!0,t.id}}const Fi=Po("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:r,reject:o})=>{if(aa.handledBeforeEntryPageRoutes)return Vi(),Yi({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},Hi(e)).then(r).catch(o);la.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:r,reject:o})}),0,Pi("switchTab"));function Wi(){const e=Xn();if(!e)return;const t=ia(e);pa(ya(t.path,t.id))}const qi=Po("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:r})=>{if(aa.handledBeforeEntryPageRoutes)return Wi(),Yi({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(r);ua.push({args:{type:"redirectTo",url:e,isAutomatedTesting:t},resolve:n,reject:r})}),0,Ci);function Ui(){const e=da().keys();for(const t of e)pa(t)}const zi=Po("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:r})=>{if(aa.handledBeforeEntryPageRoutes)return Ui(),Yi({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(r);ca.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:r})}),0,ki);function Yi({type:e,url:t,tabBarText:n,events:r,isAutomatedTesting:o},i){const a=fu().$router,{path:s,query:l}=Ue(t);return new Promise(((t,u)=>{const c=function(e,t){return{__id__:t||++ma,__type__:e}}(e,i);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:c,force:!0}).then((i=>{if(ze(i))return u(i.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?r&&(Object.keys(r).forEach((t=>{e.eventChannel._addListener(t,"on",r[t])})),e.eventChannel._clearCache()):e.eventChannel=new Y(c.__id__,r),t(o?{__id__:c.__id__}:{eventChannel:e.eventChannel})}return o?t({__id__:c.__id__}):t()}))}))}function Xi(){if(aa.handledBeforeEntryPageRoutes)return;aa.handledBeforeEntryPageRoutes=!0;const e=[...sa];sa.length=0,e.forEach((({args:e,resolve:t,reject:n})=>Yi(e).then(t).catch(n)));const t=[...la];la.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(Vi(),Yi(e,Hi(e.url)).then(t).catch(n))));const n=[...ua];ua.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(Wi(),Yi(e).then(t).catch(n))));const r=[...ca];ca.length=0,r.forEach((({args:e,resolve:t,reject:n})=>(Ui(),Yi(e).then(t).catch(n))))}let Gi;function Ki(){var e;return Gi||(Gi=__uniConfig.tabBar&&x((e=__uniConfig.tabBar,jt()&&e.list&&e.list.forEach((e=>{qt(e,["text"])})),jt()&&e.midButton&&qt(e.midButton,["text"]),e))),Gi}function Ji(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const Zi=Ji("top:env(a)"),Qi=Ji("top:constant(a)"),ea=Ji("backdrop-filter:blur(10px)"),ta=(()=>Zi?"env":Qi?"constant":"")();function na(e){let t=0;if(e.isTabBar){const e=Ki();e.shown&&(t=parseInt(e.height))}var n;Nn({"--window-top":(n=0,ta?`calc(${n}px + ${ta}(safe-area-inset-top))`:`${n}px`),"--window-bottom":ra(t)})}function ra(e){return ta?`calc(${e}px + ${ta}(safe-area-inset-bottom))`:`${e}px`}const oa=new Map;function ia(e){return e.$page}const aa={handledBeforeEntryPageRoutes:!1},sa=[],la=[],ua=[],ca=[];function da(){return oa}function ha(){return fa()}function fa(){const e=[],t=oa.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function pa(e,t=!0){const n=oa.get(e);n.$.__isUnload=!0,tr(n,oe),oa.delete(e),t&&function(e){const t=ba.get(e);t&&(ba.delete(e),_a.pruneCacheEntry(t))}(e)}let ma=Qr();function ga(e){const t=Kr();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,r,o,i){const{id:a,route:s}=r,l=Je(r.navigationBar,__uniConfig.themeConfig,i).titleColor;
57return{id:a,path:$e(s),route:s,fullPath:t,options:n,meta:r,openType:e,eventChannel:o,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function va(e){const t=ga(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),oa.set(ya(t.path,t.id),e),1===oa.size&&setTimeout((()=>{Xi()}),0)}function ya(e,t){return e+"$$"+t}const ba=new Map,_a={get:e=>ba.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;_a.forEach(((e,n)=>{const r=parseInt(n.split("$$")[1]);if(r&&r>t){if(function(e){return"tabBar"===e.props.type}(e))return;_a.delete(n),_a.pruneCacheEntry(e),fe((()=>{oa.forEach(((e,t)=>{e.$.isUnmounted&&oa.delete(t)}))}))}}))}(e),ba.set(e,t)},delete(e){ba.get(e)&&ba.delete(e)},forEach(e){ba.forEach(e)}};function wa(e,t){!function(e){const t=Ta(e),{body:n}=document;Sa&&n.removeAttribute(Sa),t&&n.setAttribute(t,""),Sa=t}(e),na(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),Ea(e,t)}function xa(e){const t=Ta(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Ta(e){return e.type.__scopeId}let Sa;const Ca=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let ka;function Ea(e,t){if(document.removeEventListener("touchmove",nr),ka&&document.removeEventListener("scroll",ka),t.disableScroll)return document.addEventListener("touchmove",nr,Ca);const{onPageScroll:n,onReachBottom:r}=e,o="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==r?void 0:r.length)&&!o)return;const i={},a=ia(e.proxy).id;(n||o)&&(i.onPageScroll=function(e,t,n){return r=>{t&&Rd.publishHandler(Xe,{scrollTop:r},e),n&&Rd.emit(e+"."+Xe,{scrollTop:r})}}(a,n,o)),(null==r?void 0:r.length)&&(i.onReachBottomDistance=t.onReachBottomDistance||ie,i.onReachBottom=()=>
57Rd.publishHandler(Ye,{},a)),ka=ir(i),requestAnimationFrame((()=>document.addEventListener("scroll",ka)))}function Aa(e){const{base:t}=__uniConfig.router;return 0===$e(e).indexOf(t)?$e(e):t+e}function Ma(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Aa(e.slice(1));e="https:"+e}if(ae.test(e)||se.test(e)||0===e.indexOf("blob:"))return e;const r=fa();return r.length?Aa(ar(ia(r[r.length-1]).route,e).slice(1)):e}const Ia=navigator.userAgent,Pa=/android/i.test(Ia),La=/iphone|ipad|ipod/i.test(Ia),Da=Ia.match(/Windows NT ([\d|\d.\d]*)/i),Ra=/Macintosh|Mac/i.test(Ia),Oa=/Linux|X11/i.test(Ia),Ba=Ra&&navigator.maxTouchPoints>0,Na=/OpenHarmony/i.test(Ia),$a=Na&&/PC/i.test(Ia),Va=Na&&/Tablet/i.test(Ia);function ja(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Ha(e){return e&&90===Math.abs(window.orientation)}function Fa(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Wa(){const e=ja();if(e){const t=Fa(e,Ha(e));return Math.min(window.innerWidth,document.documentElement.clientWidth,t)||t}return Math.min(window.innerWidth,document.documentElement.clientWidth)}function qa(e,t,n,r){Od.invokeViewMethod("video."+e,{videoId:e,type:n,data:r},t)}function Ua(e,t){const n={},{top:r,topWindowHeight:o}=On();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=it(e)),t.rect||t.size){const i=e.getBoundingClientRect();t.rect&&(n.left=i.left,n.right=i.right,n.top=i.top-r-o,n.bottom=i.bottom-r-o),t.size&&(n.width=i.width,n.height=i.height)}if(te(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(te(t.computedStyle)){const r=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=r[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function za(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const Ya={};function Xa(e,t){const n=Ya[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),r=n?n[1]:"",o=atob(t[1]);let i=o.length;const a=new Uint8Array(i);for(;i--;)a[i]=o.charCodeAt(i);return Ga(a,r)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="blob",r.onload=function(){t(this.response)},r.onerror=n,r.send()}))}function Ga(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const o=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],o,{type:t})}catch(r){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||o}}return n}function Ka(e){for(const n in Ya)if(Ee(Ya,n)){if(Ya[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Ya[t]=e,t}const Ja=Ir(),Za=Ir();const Qa=Rr({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=X(null),r=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),o=function(e,t,n){const r=x({width:-1,height:-1});return T((()=>m({},r)),(e=>t("resize",e))),()=>{const t=e.value;if(!t)return;const o=t.getBoundingClientRect();r.width=o.width,r.height=o.height,n()}}(n,t,r);return function(e,t,n,r){me(r),C((()=>{t.initial&&fe(n);const o=e.value;o.offsetParent!==o.parentElement&&(o.parentElement.style.position="relative"),"AnimationEvent"in window||r()}))}(n,e,o,r),()=>
57$("uni-resize-sensor",{ref:n,onAnimationstartOnce:o},[$("div",{onScroll:o},[$("div",null,null)],40,["onScroll"]),$("div",{onScroll:o},[$("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const es=$n("ucg"),ts=Rr({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const r=X(null);return function(e,t){const n=[],r=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);Z(es,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:r()})}});const o=K(Hr,!1);o&&o.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=r()),t}})}(e,Nr(r,t)),()=>$("uni-checkbox-group",{ref:r},[n.default&&n.default()],512)}});const ns=Rr({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=X(null),r=X(e.checked),o=G((()=>"true"===r.value||!0===r.value)),i=X(e.value);const a=G((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(o.value)));T([()=>e.checked,()=>e.value],(([e,t])=>{r.value=e,i.value=t}));const{uniCheckGroup:s,uniLabel:l}=function(e,t,n){const r=G((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),o={reset:n},i=K(es,!1);i&&i.addField(r);const a=K(Hr,!1);a&&a.addField(o);const s=K(Wr,!1);return M((()=>{i&&i.removeField(r),a&&a.removeField(o)})),{uniCheckGroup:i,uniForm:a,uniLabel:s}}(r,i,(()=>{r.value=!1})),u=t=>{e.disabled||(r.value=!r.value,s&&s.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(u),M((()=>{l.removeHandler(u)}))),Ur(e,{"label-click":u}),()=>{const o=jr(e,"disabled");let i;return i=r.value,$("uni-checkbox",J(o,{id:e.id,onClick:u,ref:n}),[$("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[$("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:a.value},[i?Un(Wn,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function rs(){}const os={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function is(e,t,n){function r(e){const t=G((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",rs,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",rs,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}T((()=>t.value),(e=>e&&r(e)))}var as=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,ss=/^<\/([-A-Za-z0-9_]+)[^>]*>/,ls=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,us=ms("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),cs=ms("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),ds=ms("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),hs=ms("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),fs=ms("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),ps=ms("script,style");function ms(e){for(var t={},n=e.split(","),r=0;r<n.length;r++)t[n[r]]=!0;return t}const gs={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},vs={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},ys={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left"
57:["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},bs=Rr({name:"Image",props:gs,setup(e,{emit:t}){const n=X(null),r=function(e,t){const n=X(""),r=G((()=>{let e="auto",r="";const o=ys[t.mode];return o?(o[0]&&(r=o[0]),o[1]&&(e=o[1])):(r="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${r};background-size:${e};`})),o=x({rootEl:e,src:G((()=>t.src?Ma(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:r,imgSrc:n});return C((()=>{const t=e.value;o.origWidth=t.clientWidth||0,o.origHeight=t.clientHeight||0})),o}(n,e),o=Nr(n,t),{fixSize:i}=function(e,t,n){const r=()=>{const{mode:r}=t,o=vs[r];if(!o)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const l=e.value,u=l[o[0]];u&&(l.style[o[1]]=function(e){_s&&e>10&&(e=2*Math.round(e/2));return e}(o[2](u,s))+"px")},o=()=>{const{style:t}=e.value,{origStyle:{width:r,height:o}}=n;t.width=r,t.height=o};return T((()=>t.mode),((e,t)=>{vs[t]&&o(),vs[e]&&r()})),{fixSize:r,resetSize:o}}(n,e,r);return function(e,t,n,r,o){let i,a;const s=(t=0,n=0,r="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=r},l=l=>{if(!l)return u(),void s();i=i||new Image,i.onload=e=>{const{width:c,height:d}=i;s(c,d,l),fe((()=>{r()})),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),u(),o("load",e,{width:c,height:d})},i.onerror=t=>{s(),u(),o("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},u=()=>{i&&(i.onload=null,i.onerror=null,i=null)};T((()=>e.src),(e=>l(e))),T((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),C((()=>l(e.src))),M((()=>u()))}(r,e,n,i,o),()=>$("uni-image",{ref:n},[$("div",{style:r.modeStyle},null,4),vs[e.mode]?$(Qa,{onResize:i},null,8,["onResize"]):$("span",null,null)],512)}});const _s="Google Inc."===navigator.vendor;const ws=pe(!0),xs=[];let Ts=0,Ss=!1;const Cs=e=>xs.forEach((t=>t.userAction=e));function ks(e={userAction:!1}){if(!Ss){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!Ts&&Cs(!0),Ts++,setTimeout((()=>{!--Ts&&Cs(!1)}),0)}),ws)})),Ss=!0}xs.push(e)}function Es(){const e=x({userAction:!1});return C((()=>{ks(e)})),M((()=>{!function(e){const t=xs.indexOf(e);t>=0&&xs.splice(t,1)}(e)})),{state:e}}function As(){const e=x({attrs:{}});return C((()=>{let t=Se();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Ms(e,t){const n=document.activeElement;if(!n)return t({});const r={};["input","textarea"].includes(n.tagName.toLowerCase())&&(r.start=n.selectionStart,r.end=n.selectionEnd),t(r)}function Is(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const Ps=["none","text","decimal","numeric","tel","search","email","url"],Ls=m({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~Ps.indexOf(e)},cursorColor:{type:String,default:""}},os),Ds=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Rs(e,t,n,r,o){let i=null,a=null;a=P((n=>{const r=o.value,a=Is(n,e.type);r&&document.activeElement===r&&a===i||(t.value=a)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),T((()=>e.modelValue),a),T((()=>e.value),a);const s=function(e,t){let n,r,o=0;const i=function(...i){const a=Date.now();clearTimeout(n),r=()=>{r=null,o=a,e.apply(this,i)},a-o<t?n=setTimeout(r,t-(a-o)):r()};return i.cancel=function(){clearTimeout(n),r=null},i.flush=function(){clearTimeout(n),r&&r()},i}(((e,t)=>{a.cancel(),n("update:modelValue",t.value),n("update:value",t.value),r("input",e,t)}),100);return S((()=>{a.cancel(),s.cancel()})),{trigger:r,triggerInput:(e,t,n)=>{a.cancel(),i=t.value,s(e,t),n&&s.flush()}}}function Os(e,t){Es();const n=G((()=>e.autoFocus||e.focus));function r(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(r,100)}T((()=>e.focus),(e=>{e?r():function(){const e=t.value;e&&e.blur()}()})),C((()=>{n.value&&fe(r)}))}function Bs(e,t,n,r){ln(Kn(),"getSelectedTextRange",Ms);const{fieldRef:o,state:i,trigger:a}=function(e,t,n){const r=X(null),o=Nr(t,n),i=G((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=G((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=G((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t}
57)),l=G((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let u="";u=Is(e.modelValue,e.type)||Is(e.value,e.type);const c=x({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return T((()=>c.focus),(e=>n("update:focus",e))),T((()=>c.maxlength),(e=>c.value=c.value.slice(0,e)),{immediate:!1}),{fieldRef:r,state:c,trigger:o}}(e,t,n),{triggerInput:s}=Rs(e,i,n,a,o);Os(e,o),is(0,o);const{state:l}=As();!function(e,t){const n=K(Hr,!1);if(!n)return;const r=Se(),o={submit(){const n=r.proxy;return[n[e],W(t)?n[t]:t.value]},reset(){W(t)?r.proxy[t]="":t.value=""}};n.addField(o),M((()=>{n.removeField(o)}))}("name",i),function(e,t,n,r,o,i){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}T([()=>t.selectionStart,()=>t.selectionEnd],a),T((()=>t.cursor),s),T((()=>e.value),(function(){const u=e.value;if(!u)return;const c=function(e,r){e.stopPropagation(),L(i)&&!1===i(e,t)||(t.value=u.value,t.composing&&n.ignoreCompositionEvent||o(e,{value:u.value,cursor:l(u)},r))};function d(e){n.ignoreCompositionEvent||r(e.type,e,{value:e.data})}u.addEventListener("change",(e=>e.stopPropagation())),u.addEventListener("focus",(function(e){t.focus=!0,r("focus",e,{value:t.value}),a(),s()})),u.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,c(e,!0)),t.focus=!1,r("blur",e,{value:t.value,cursor:l(e.target)})})),u.addEventListener("input",c),u.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),u.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,c(e)),d(e)})),u.addEventListener("compositionupdate",d)}))}(o,i,e,a,s,r);return{fieldRef:o,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const Ns=Ne((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function $s(e,t,n,r,o){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=r.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes(".")&&t.value===r.value)return t.value+=".",o&&(o.fn=()=>{n.value=r.value=t.value=t.value.slice(0,-1),r.removeEventListener("blur",o.fn)},r.addEventListener("blur",o.fn)),!1}else if("deleteContentBackward"===e.inputType&&Ns()&&"."===t.value.slice(-2,-1))return t.value=n.value=r.value=t.value.slice(0,-2),!0}function Vs(e){return"insertFromPaste"===e.inputType}const js=Rr({name:"Input",props:m({},Ls,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...Ds],setup(e,{emit:t,expose:n}){const r=["text","number","idcard","digit","password","tel"],o=["off","one-time-code"],i=G((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":case"none":t="text";break;case"digit":t="number";break;default:t=r.includes(e.type)?e.type:"text"}return e.password?"password":t})),a=G((()=>{const t=o.indexOf(e.textContentType),n=o.indexOf(at(e.textContentType));return o[-1!==t?t:-1!==n?n:0]})),s=G((()=>{if(void 0!==e.inputmode)return e.inputmode;if(Ps.includes(e.type))return e.type;let t={};return t={idcard:"text"},t[e.type]}));let l=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=X(null!=t?t.toLocaleString():"");return T((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),T((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return X("")}(e,i),u={fn:null};const c=X(null),{fieldRef:d,state:h,scopedAttrsState:f,fixDisabledColor:p,trigger:m}=Bs(e,c,t,((e,t)=>
57{const n=e.target;if("number"===i.value){if(u.fn&&(n.removeEventListener("blur",u.fn),u.fn=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",u.fn=()=>{l.value=n.value=""},n.addEventListener("blur",u.fn),!1;const r=$s(e,l,t,n,u);return"boolean"==typeof r?r:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const r=$s(e,l,t,n,u);if("boolean"==typeof r)return r;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!Vs(e))return n.value=l.value=t.value,!1}}));T((()=>h.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t.toString())})),T((()=>e.maxlength),(e=>{e=parseInt(e,10);const t=h.value.slice(0,e);t!==h.value&&(h.value=t)}));const g=["number","digit"],v=G((()=>g.includes(e.type)?e.step:""));function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),m("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),h.value=e.value}}),()=>{let t=e.disabled&&p?$("input",{key:"disabled-input",ref:d,value:h.value,tabindex:"-1",readonly:!!e.disabled,type:i.value,maxlength:h.maxlength,step:v.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},inputmode:s.value,onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","inputmode","onFocus"]):$("input",{key:"input",ref:d,value:h.value,onInput:le((e=>{const t=e.target.value.toString();"number"===i.value&&h.maxlength>0&&t.length>h.maxlength?Vs(e)&&(h.value=t.slice(0,h.maxlength)):0===t.length&&"insertText"===e.inputType&&"."===e.data||(h.value=t)}),["stop"]),disabled:!!e.disabled,type:i.value,maxlength:h.maxlength,step:v.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:y,inputmode:s.value},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return $("uni-input",{ref:c},[$("div",{class:"uni-input-wrapper"},[ue($("div",J(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ce,!(h.value.length||"-"===l.value||l.value.includes("."))]]),"search"===e.confirmType?$("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Hs=["class","style"],Fs=/^on[A-Z]+/,Ws=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,r=Se(),o=de({}),i=de({}),a=de({}),s=n.concat(Hs);return r.attrs=x(r.attrs),ge((()=>{const e=(n=r.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,r])=>(s.includes(n)?e.exclude[n]=r:Fs.test(n)?(t||(e.attrs[n]=r),e.listeners[n]=r):e.attrs[n]=r,e)),{exclude:{},attrs:{},listeners:{}});var n;o.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:o,$listeners:i,$excludeAttrs:a}};function qs(e){const t=[];return te(e)&&e.forEach((e=>{Ge(e)?e.type===Oe?t.push(...qs(e.children)):t.push(e):te(e)&&t.push(...qs(e))})),t}const Us=Rr({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=X(null),r=X(!1);let{setContexts:o,events:i}=function(e,t){const n=X(0),r=X(0),o=x({x:null,y:null}),i=X(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function u(e,n=s){let r=t.value;function o(e){for(let t=0;t<n.length;t++){const r=n[t];if(e===r.rootRef.value)return r}return e===r||e===document.body||e===document?null:o(e.parentNode)}return o(e)}const c=Br((t=>{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=zs(t),o.x=t.x,o.y=t.y,!e.scaleArea){let e=u(n[0].target),t=u(n[1].target);a=e&&e===t?e:null}}})),d=Br((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==o.x&&i.value&&i.value>0){l(zs(n)/i.value)}o.x=n.x,o.y=n.y}})),h=Br((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(o.x=0,o.y=0,i.value=null,e.scaleArea?s.forEac
57h((function(e){e._endScale()})):a&&a._endScale())}));function f(){p(),s.forEach((function(e,t){e.setParent()}))}function p(){let e=window.getComputedStyle(t.value),o=t.value.getBoundingClientRect();n.value=o.width-["Left","Right"].reduce((function(t,n){const r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0),r.value=o.height-["Top","Bottom"].reduce((function(t,n){const r="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[r])}),0)}return Z("movableAreaWidth",n),Z("movableAreaHeight",r),{setContexts(e){s=e},events:{_onTouchstart:c,_onTouchmove:d,_onTouchend:h,_resize:f}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Ws(),u=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=u[e],n=i[`_${e}`];u[e]=t?[].concat(t,n):n})),C((()=>{i._resize(),r.value=!0}));let c=[];const d=[];function h(){const e=[];for(let t=0;t<c.length;t++){let n=c[t];n=n.el;const r=d.find((e=>n===e.rootRef.value));r&&e.push(ht(r))}o(e)}return Z("_isMounted",r),Z("movableAreaRootRef",n),Z("addMovableViewContext",(e=>{d.push(e),h()})),Z("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>{const e=t.default&&t.default();return c=qs(e),$("uni-movable-area",J({ref:n},s.value,l.value,u),[$(Qa,{onResize:i._resize},null,8,["onResize"]),c],16)}}});function zs(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Ys=function(e,t,n,r){e.addEventListener(t,(e=>{L(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Xs,Gs;function Ks(e,t,n){M((()=>{document.removeEventListener("mousemove",Xs),document.removeEventListener("mouseup",Gs)}));let r=0,o=0,i=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-r,dy:l-o,ddx:s-i,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,u,c=null;Ys(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!c)return c=e,r=i=e.touches[0].pageX,o=a=e.touches[0].pageY,s(e,"start",r,o)})),Ys(e,"mousedown",(function(e){if(u=!0,!l&&!c)return c=e,r=i=e.pageX,o=a=e.pageY,s(e,"start",r,o)})),Ys(e,"touchmove",(function(e){if(1===e.touches.length&&c){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=Xs=function(e){if(!l&&u&&c){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Ys(e,"touchend",(function(e){if(0===e.touches.length&&c)return l=!1,c=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const h=Gs=function(e){if(u=!1,!l&&c)return c=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Ys(e,"touchcancel",(function(e){if(c){l=!1;const t=c;return c=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Js(e,t,n){return e>t-n&&e<t+n}function Zs(e,t){return Js(e,0,t)}function Qs(){}function el(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function tl(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function nl(e,t,n){this._springX=new tl(e,t,n),this._springY=new tl(e,t,n),this._springScale=new tl(e,t,n),this._startTime=0}Qs.prototype.x=function(e){return Math.sqrt(e)},el.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},el.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},el.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},el.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},el.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||
570,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},el.prototype.dt=function(){return-this._x_v/this._x_a},el.prototype.done=function(){const e=Js(this.s().x,this._endPositionX)||Js(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},el.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},el.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},tl.prototype._solve=function(e,t){const n=this._c,r=this._m,o=this._k,i=n*n-4*r*o;if(0===i){const o=-n/(2*r),i=e,a=t/(o*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,o*e)},dx:function(e){const t=Math.pow(Math.E,o*e);return o*(i+a*e)*t+a*t}}}if(i>0){const o=(-n-Math.sqrt(i))/(2*r),a=(-n+Math.sqrt(i))/(2*r),s=(t-o*e)/(a-o),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*o*t+s*a*n}}}const a=Math.sqrt(4*r*o-n*n)/(2*r),s=-n/2*r,l=e,u=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+u*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),r=Math.sin(a*e);return t*(u*a*n-l*a*r)+s*t*(u*r+l*n)}}},tl.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},tl.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},tl.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Zs(t,.1)){t=t||0;let r=this._endPosition;this._solution&&(Zs(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),Zs(t,.1)&&(t=0),Zs(r,.1)&&(r=0),r+=this._endPosition),this._solution&&Zs(r-e,.1)&&Zs(t,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},tl.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},tl.prototype.done=function(e){return e||(e=(new Date).getTime()),Js(this.x(),this._endPosition,.1)&&Zs(this.dx(),.1)},tl.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},tl.prototype.springConstant=function(){return this._k},tl.prototype.damping=function(){return this._c},tl.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},nl.prototype.setEnd=function(e,t,n,r){const o=(new Date).getTime();this._springX.setEnd(e,r,o),this._springY.setEnd(t,r,o),this._springScale.setEnd(n,r,o),this._startTime=o},nl.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},nl.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},nl.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function rl(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const ol=Rr({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}
57){const r=X(null),o=Nr(r,n),{setParent:i}=function(e,t,n){const r=K("_isMounted",X(!1)),o=K("addMovableViewContext",(()=>{})),i=K("removeMovableViewContext",(()=>{}));let a,s,l=X(1),u=X(1),c=X(!1),d=X(0),h=X(0),f=null,p=null,m=!1,g=null,v=null;const y=new Qs,b=new Qs,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=G((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new el(1,w.value);T((()=>e.disabled),(()=>{Y()}));const{_updateOldScale:S,_endScale:k,_setScale:E,scaleValueSync:A,_updateBoundary:M,_updateOffset:I,_updateWH:P,_scaleOffset:L,minX:D,minY:R,maxX:O,maxY:B,FAandSFACancel:N,_getLimitXY:$,_setTransform:V,_revise:j,dampingNumber:H,xMove:F,yMove:W,xSync:q,ySync:U,_STD:z}=function(e,t,n,r,o,i,a,s,l,u){const c=G((()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t})),d=G((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),h=X(Number(e.scaleValue)||1);T(h,(e=>{$(e)})),T(c,(()=>{N()})),T(d,(()=>{N()})),T((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));const{_updateBoundary:f,_updateOffset:p,_updateWH:m,_scaleOffset:g,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const r=K("movableAreaWidth",X(0)),o=K("movableAreaHeight",X(0)),i=K("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=X(0),u=X(0),c=X(0),d=X(0),h=X(0),f=X(0);function p(){let e=0-a.x+s.x,t=r.value-l.value-a.x-s.x;c.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-a.y+s.y,i=o.value-u.value-a.y-s.y;d.value=Math.min(n,i),f.value=Math.max(n,i)}function m(){a.x=sl(e.value,i.value),a.y=ll(e.value,i.value)}function g(r){r=r||t.value,r=n(r);let o=e.value.getBoundingClientRect();u.value=o.height/t.value,l.value=o.width/t.value;let i=u.value*r,a=l.value*r;s.x=(a-l.value)/2,s.y=(i-u.value)/2}return{_updateBoundary:p,_updateOffset:m,_updateWH:g,_scaleOffset:s,minX:c,minY:d,maxX:h,maxY:f}}(t,r,B),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:k,dampingNumber:E,xMove:A,yMove:M,xSync:I,ySync:P,_STD:L}=function(e,t,n,r,o,i,a,s,l,u,c,d,h,f){const p=G((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=G((()=>"all"===t.direction||"horizontal"===t.direction)),g=G((()=>"all"===t.direction||"vertical"===t.direction)),v=X(cl(t.x)),y=X(cl(t.y));T((()=>t.x),(e=>{v.value=cl(e)})),T((()=>t.y),(e=>{y.value=cl(e)})),T(v,(e=>{k(e)})),T(y,(e=>{E(e)}));const b=new nl(1,9*Math.pow(p.value,2)/40,p.value);function _(e,t){let n=!1;return e>o.value?(e=o.value,n=!0):e<a.value&&(e=a.value,n=!0),t>i.value?(t=i.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),c&&c.cancel()}function x(e,n,o,i,a,s){w(),m.value||(e=l.value),g.value||(n=u.value),t.scale||(o=r.value);let d=_(e,n);e=d.x,n=d.y,t.animation?(b._springX._solution=null,b._springY._solution=null,b._springScale._solution=null,b._springX._endPosition=l.value,b._springY._endPosition=u.value,b._springScale._endPosition=r.value,b.setEnd(e,n,o,1),c=ul(b,(function(){let e=b.x();S(e.x,e.y,e.scale,i,a,s)}),(function(){c.cancel()}))):S(e,n,o,i,a,s)}function S(o,i,a,s="",c,d){null!==o&&"NaN"!==o.toString()&&"number"==typeof o||(o=l.value||0),null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=u.value||0),o=Number(o.toFixed(1)),i=Number(i.toFixed(1)),a=Number(a.toFixed(1)),l.value===o&&u.value===i||c||f("change",{},{x:rl(o,n.x),y:rl(i,n.y),source:s}),t.scale||(a=r.value),a=+(a=h(a)).toFixed(3),d&&a!==r.value&&f("scale",{},{x:o,y:i,scale:a});let p="translateX("+o+"px) translateY("+i+"px) translateZ(0px) scale("+a+")";e.value&&(e.value.style.transform=p,e.value.style.webkitTransform=p,l.value=o,u.value=i,r.value=a)}function C(e){let t=_(l.value,u.value),n=t.x,o=t.y,i=t.outOfBounds;return i&&x(n,o,r.value,e),i}function k(e){if(m.value){if(e+n.x===l.value)return l;c&&c.cancel(),x(e+n.x,y.value+n.y,r.value)}return e}function E(e){if(g.value){if(e+n.y===u.value)return u;c&&c.cancel(),x(v.value+n.x,e+n.y,r.value)}return e}return{FAandSFACancel:w,_getLimitXY:_,_animationTo:x,_setTransform:S,_revise:C,dampingNumber:p,xMove:m,yMove:g,xSync:v,ySync:y,_STD:b}}(t,e,g,r,b,_,v,y,a,s,l,u,B,n);function D(t,n){if(e.scale){t=B(t),m(t),f();const e=x(a.value,s.value),r=e.x,o=e.y;n?S(r,o,t,"",!0,!0):al((function(){C(r,o,t,"",!0,!0)}))}}function R(){i.value=!0}function O(e){o.value=e}function B(e){return e=Math.max(.1,c.value,e),e=Math.min(10,d.value,e)}function N(){if(!e.scale)return!1;D(r.value,!0),O(r.value)}function $(t){return!!e.scale&&(D(t=B(t),!0),O(t),t)}function V(){i.value=!1,O(r.value)}function j(e){e&&(e=o.value*e,R(),D(e))}return{_updateOldScale:O,_endScale:V,_setScale:j,scaleValueSync:h,_updateBoundary:f,_updateOffset:p,_updateWH:m,_scaleOffset:g,minX:v,minY:y,maxX:b,maxY:_,FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:k,dampingNumber:E,xMove:A,yMove:M,xSync:I,ySync:P,_STD:L}}(e,n,t,l,u,c,d,h,f,p);function Y(){c.value||e.disabled||(N(),_.historyX=[0,0],_.historyY=[0,0],_.historyT=[0,0],F.value&&(
57a=d.value),W.value&&(s=h.value),n.value.style.willChange="transform",g=null,v=null,m=!0)}function J(t){if(!c.value&&!e.disabled&&m){let n=d.value,r=h.value;if(null===v&&(v=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),F.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),W.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),W.value&&(r=t.detail.dy+s,_.historyY.shift(),_.historyY.push(r),F.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let o="touch";n<D.value?e.outOfBounds?(o="touch-out-of-bounds",n=D.value-y.x(D.value-n)):n=D.value:n>O.value&&(e.outOfBounds?(o="touch-out-of-bounds",n=O.value+y.x(n-O.value)):n=O.value),r<R.value?e.outOfBounds?(o="touch-out-of-bounds",r=R.value-b.x(R.value-r)):r=R.value:r>B.value&&(e.outOfBounds?(o="touch-out-of-bounds",r=B.value+b.x(r-B.value)):r=B.value),al((function(){V(n,r,l.value,o)}))}}}function Z(){if(!c.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!j("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,r=h.value;x.setV(e,t),x.setS(n,r);const o=x.delta().x,i=x.delta().y;let a=o+n,s=i+r;a<D.value?(a=D.value,s=r+(D.value-n)*i/o):a>O.value&&(a=O.value,s=r+(O.value-n)*i/o),s<R.value?(s=R.value,a=n+(R.value-r)*o/i):s>B.value&&(s=B.value,a=n+(B.value-r)*o/i),x.setEnd(a,s),p=ul(x,(function(){let e=x.s(),t=e.x,n=e.y;V(t,n,l.value,"friction")}),(function(){p.cancel()}))}e.outOfBounds||e.inertia||N()}function Q(){if(!r.value)return;N();let t=e.scale?A.value:1;I(),P(t),M();let n=$(q.value+L.x,U.value+L.y),o=n.x,i=n.y;V(o,i,t,"",!0),S(t)}return C((()=>{Ks(n.value,(e=>{switch(e.detail.state){case"start":Y();break;case"move":J(e);break;case"end":Z()}})),Q(),x.reconfigure(1,w.value),z.reconfigure(1,9*Math.pow(H.value,2)/40,H.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Q,_endScale:k,_setScale:E};o(e),ve((()=>{i(e)}))})),ve((()=>{N()})),{setParent:Q}}(e,o,r);return()=>$("uni-movable-view",{ref:r},[$(Qa,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let il=!1;function al(e){il||(il=!0,requestAnimationFrame((function(){e(),il=!1})))}function sl(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=sl(e.offsetParent,t):0}function ll(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=ll(e.offsetParent,t):0}function ul(e,t,n){let r={id:0,cancelled:!1};return function e(t,n,r,o){if(!t||!t.cancelled){r(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,o))),i&&o&&o(n)}}(r,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,r),model:e}}function cl(e){return/\d+[ur]px$/i.test(e)?jo(parseFloat(e)):Number(e)||0}const dl=Rr({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return te(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const r=X(null),o=X(null),i=Nr(r,n),a=function(e){const t=x([...e.value]),n=x({value:t,height:34});return T((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),s=X(null);C((()=>{const e=s.value;e&&(a.height=e.$el.offsetHeight)}));let l=X([]),u=X([]);function c(e){let t=u.value;t=t.filter((e=>e.type!==ye));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return Z("getPickerViewColumn",(function(e){return G({get(){const t=c(e.vnode);return a.value[t]||0},set(t){const r=c(e.vnode);if(r<0)return;if(a.value[r]!==t){a.value[r]=t;const e=a.value.map((e=>e));n("update:value",e),i("change",{},{value:e})}}})})),Z("pickerViewProps",e),Z("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=qs(e);l.value=t,fe((()=>{u.value=t}))}return $("uni-picker-view",{ref:r}
57,[$(Qa,{ref:s,onResize:({height:e})=>a.height=e},null,8,["onResize"]),$("div",{ref:o,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class hl{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function fl(e,t,n){return e>t-n&&e<t+n}function pl(e,t){return fl(e,0,t)}class ml{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){const n=this._c,r=this._m,o=this._k,i=n*n-4*r*o;if(0===i){const o=-n/(2*r),i=e,a=t/(o*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,o*e)},dx:function(e){const t=Math.pow(Math.E,o*e);return o*(i+a*e)*t+a*t}}}if(i>0){const o=(-n-Math.sqrt(i))/(2*r),a=(-n+Math.sqrt(i))/(2*r),s=(t-o*e)/(a-o),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*o*t+s*a*n}}}const a=Math.sqrt(4*r*o-n*n)/(2*r),s=-n/2*r,l=e,u=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+u*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),r=Math.sin(a*e);return t*(u*a*n-l*a*r)+s*t*(u*r+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!pl(t,.4)){t=t||0;let r=this._endPosition;this._solution&&(pl(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),pl(t,.4)&&(t=0),pl(r,.4)&&(r=0),r+=this._endPosition),this._solution&&pl(r-e,.4)&&pl(t,.4)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),fl(this.x(),this._endPosition,.4)&&pl(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class gl{constructor(e,t,n){this._extent=e,this._friction=t||new hl(.01),this._spring=n||new ml(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}function vl(e,t){return Math.round(Math.abs(e)/t)}class yl{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=ne
57w gl(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}let r;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){const e=this._scroll._friction.x(100),t=e%this._itemSize;
57r=Math.abs(t)>this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,r<=0&&r>=-this._extent&&this._scroll.setVelocityByEnd(r)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=vl(this._position,this._itemSize),this._animation=function(e,t,n){const r={id:0,cancelled:!1};return function e(t,n,r,o){if(!t||!t.cancelled){r(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,o))),i&&o&&o(n)}}(r,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,r),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const r=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/r),this._lastTime=e)}),(()=>{this._enableSnap&&(r<=0&&r>=-this._extent&&(this._position=r,this.updatePosition()),L(this._options.onSnap)&&this._options.onSnap(vl(this._position,this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1}))}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),L(this._options.onSnap)&&this._options.onSnap(Math.round(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(L(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let r=0;const o=this._position;this._enableX?(r=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(r=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-r?this._position=-r:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),o!==this._position&&(this.dispatchScroll(),L(this._options.onSnap)&&this._options.onSnap(Math.round(Math.abs(this._position)/this._itemSize))),this._extent=r,this._scroll._extent=r}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function bl(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},r=new yl(e,t);function o(e){const t=e,r=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:r.screenX-n.x,y:r.screenY-n.y}}return{scroller:r,handleTouchStart:function(e){const t=e,o=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=o.screenX,n.y=o.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||o.timeStamp],n.listener=r,r.onTouchStart&&r.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,r=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const i=o(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.y),n.historyTime.push(t.detail.timeStamp||r.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=o(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const r={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,o=n.historyTime[t],i=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=o-n.historyTime[t];if(e>30&&e<50){r.x=(i-n.historyX[t])/(e/1e3),r.y=(a-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,r)}}}}}const _l=Rr({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const r=X(null),o=X(null),i=K("getPickerViewColumn"),a=Se(),s=i?i(a):X(0),l=K("pickerViewProps"),u=K("pickerViewState"),c=X(34),d=X(null);C((()=>{const e=d.value;c.value=e.$el.getBoundingClientRect().height}));const h=G((()=>(u.height-c.value)/2)),{state:f}=As();let p;const m=x({current:s.value,length:0});let g;function v(){p&&!g&&(g=!0,fe((()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),p.update(e*c.value,void 0,c.value)})))}T((()=>s.value),(e=>{e!==m.current&&(m.current=e,v())})),T((()=>m.current),(e=>s.value=e)),T([()=>c.value,()=>m.length,()=>u.height],v);let y=0;function b(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),p.scrollTo(e*c.value)}else y=t;e.preventDefault()}function _({clientY:e}){const t=r.value;if(!p.isScrolling()){const n=e-t.getBoundingClientRect().top-u.height/2,r=c.value/2;if(!(Math.abs(n)<=r)){const e=Math.ceil((Math.abs(n)-r)/c.value),t=n<0?-e:e;let o=Math.min(m.current+t,m.length-1);m.current=o=Math.max(o,0),p.scrollTo(o*c.value)}}}return C((()=>{const e=r.value,t=o.value,{scroller:n,handleTouchStart:i,handleTouchMove:a,handleTouchEnd:s}=bl(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:c.value,friction:new hl(1e-4),spring:new ml(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});p=n,Ks(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":s(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const r=e.changedTouches[0];t=r.clientX,n=r.clientY})),e.addEventListener("touchend",(e=>{const r=e.changedTouches[0];if(Math.abs(r.clientX-t)<20&&Math.abs(r.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=r[e]})),e.target.dispatchEvent(n)}}))}(e),v()})),()=>{const e=t.default&&t.default();m.length=qs(e).length;const n=`${h.value}px 0`;return $("uni-picker-view-column",{ref:r},[$("div",{onWheel:b,onClick:_,class:"uni-picker-view-group"},[$("div",J(f.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),$("div",J(f.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}
57),[$(Qa,{ref:d,onResize:({height:e})=>c.value=e},null,8,["onResize"])],16),$("div",{ref:o,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${c.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),wl={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},xl={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"\u201c",rdquo:"\u201d",yen:"\uffe5",radic:"\u221a",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",hellip:"\u2026"};function Tl(e,t){if(!D(t))return;const n=wl[e]||[],r={};return Object.keys(t).forEach((o=>{("class"===o||"style"===o||n.includes(o))&&(r[o]=function(e,t,n){return"img"===e&&"src"===t&&W(n)?Ma(n):n}(e,o,t[o]))})),r}const Sl=(e,t,n)=>!n||Array.isArray(n)&&!n.length?[]:n.map((n=>{if(D(n)){if(!Ee(n,"type")||"node"===n.type){if(!W(n.name)||!n.name)return;const r=n.name.toLowerCase();if(!Ee(wl,r))return;const o=m({[e]:""},function(e,t){if(e.name&&["a","img"].includes(e.name)&&t)return{onClickCapture:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),Tl(r,n.attrs));return he(n.name,o,Sl(e,t,n.children))}return"text"===n.type&&W(n.text)&&""!==n.text?be((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return Ee(xl,t)&&xl[t]?xl[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(Number("0"+t.slice(1))):e}))):void 0}}));function Cl(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,r,o,i=[],a=e;for(i.last=function(){return this[this.length-1]};e;){if(r=!0,i.last()&&ps[i.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+i.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),u("",i.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),r=!1):0==e.indexOf("</")?(o=e.match(ss))&&(e=e.substring(o[0].length),o[0].replace(ss,u),r=!1):0==e.indexOf("<")&&(o=e.match(as))&&(e=e.substring(o[0].length),o[0].replace(as,l),r=!1),r){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==a)throw"Parse Error: "+e;a=e}function l(e,n,r,o){if(n=n.toLowerCase(),cs[n])for(;i.last()&&ds[i.last()];)u("",i.last());if(hs[n]&&i.last()==n&&u("",n),(o=us[n]||!!o)||i.push(n),t.start){var a=[];r.replace(ls,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:fs[t]?t:"";a.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,a,o)}}function u(e,n){if(n)for(r=i.length-1;r>=0&&i[r]!=n;r--);else var r=0;if(r>=0){for(var o=i.length-1;o>=r;o--)t.end&&t.end(i[o]);i.length=r}}u()}(e,{start:function(e,r,o){const i={name:e};if(0!==r.length&&(i.attrs=function(e){return e.reduce((function(e,t){let n=t.value;const r=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(r)&&(n=n.split(" ")),e[r]?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n,e}),{})}(r)),o){const e=t[0]||n;e.children||(e.children=[]),e.children.push(i)}else t.unshift(i)},end:function(e){const r=t.shift();if(r.name,0===t.length)n.children.push(r);else{const e=t[0];e.children||(e.children=[]),e.children.push(r)}},chars:function(e){const r={type:"text",text:e};if(0===t.length)n.children.push(r);else{const e=t[0];e.children||(e.children=[]),e.children.push(r)}},comment:function(e){const n={node:"comment",text:e},r=t[0];r&&(r.children||(r.children=[]),r.children.push(n))}}),n.children}const kl=Rr({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Se(),r=n&&n.vnode.scopeId||"",o=X(null),i=de([]),a=Nr(o,t);function s(e,t={}){a("itemclick",e,t)}return T((()=>e.nodes),(function(){let t=e.nodes;W(t)&&(t=Cl(e.nodes)),i.value=Sl(r,s,t)}),{immediate:!0,deep:!0}),()=>he("uni-rich-text",{ref:o},he("div",{},i.value))}}),El=Rr({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"}
57,refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=X(null),r=G((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),o=G((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:i,refresherDefaultStyle:a,refresherThreshold:s}=e;return $("div",{ref:n,style:r.value,class:"uni-scroll-view-refresher"},["none"!==a?$("div",{class:"uni-scroll-view-refresh"},[$("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==i?$("svg",{key:"refresh__icon",style:{transform:"rotate("+o.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[$("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),$("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==i?$("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[$("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===a?$("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),Al=pe(!0),Ml=Rr({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:r}){const o=X(null),i=X(null),a=X(null),s=X(null),l=Nr(o,t),{state:u,scrollTopNumber:c,scrollLeftNumber:d}=function(e){const t=G((()=>Number(e.scrollTop)||0)),n=G((()=>Number(e.scrollLeft)||0));return{state:x({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:f,_scrollLeftChanged:p,_scrollTopChanged:m}=function(e,t,n,r,o,i,a,s,l){let u=!1,c=0,d=!1,h=()=>{};const f=G((()=>e.scrollX)),p=G((()=>e.scrollY)),m=G((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=G((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function v(e,t){const n=a.value;let r=0,o="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?r=n.scrollLeft-e:"y"===t&&(r=n.scrollTop-e),0===r)return;let i=s.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?o="translateX("+r+"px) translateZ(0)":"y"===t&&(o="translateY("+r+"px) translateZ(0)"),i.removeEventListener("transitionend",h),i.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),i.addEventListener("transitionend",h),i.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=o,i.style.webkitTransform=o}function y(e){const n=e.target;o("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),p.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(o("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(o("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),f.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(o("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(o("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function b(t){p.value&&(e.scrollWithAnimation?v(t,"y"):a.value.scrollTop=t)}function _(t){f.value&&(e.scrollWithAnimation?v(t,"x"):a.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return;let n=i.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),r=n.getBoundingClientRect();if(f.value){let n=r.left-t.left,o=a.value.scrollLeft+n;e.scrollWithAnimation?v(o,"x"):a.value.scrollLeft=o}if(p.value){let n=r.top-t.top,o=a.value.scrollTop+n;e.scrollWithAnimation?v(o,"y"):a.value.scrollTop=o}}}}function x(e,t){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let n=a.value;"x"===t?(n.style.overflowX=f.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=p.value?"auto":"hidden",n.scrollTop=e),s.value.removeEventListener("transitionend",h),s.value.removeEventListener("webkitTransitionEnd",h)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,o("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),o("refresherrefresh",{},{dy:E.y-k.y}
57),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=c=0,"restore"===n&&(d=!1,o("refresherrestore",{},{dy:E.y-k.y})),"refresherabort"===n&&d&&(d=!1,o("refresherabort",{},{dy:E.y-k.y}))}t.refreshState=n}}let k={x:0,y:0},E={x:0,y:e.refresherThreshold};return C((()=>{fe((()=>{b(n.value),_(r.value)})),w(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),y(e)},s=null,l=function(n){if(null===k)return;let r=n.touches[0].pageX,i=n.touches[0].pageY,l=a.value;if(Math.abs(r-k.x)>Math.abs(i-k.y))if(f.value){if(0===l.scrollLeft&&r>k.x)return void(s=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&r<k.x)return void(s=!1);s=!0}else s=!1;else if(p.value)if(0===l.scrollTop&&i>k.y)s=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&i<k.y)return void(s=!1);s=!0}else s=!1;if(s&&n.stopPropagation(),0===l.scrollTop&&1===n.touches.length&&S("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const r=i-k.y;0===c&&(c=i),u?(t.refresherHeight=r+e.refresherThreshold,d=!1):(t.refresherHeight=i-c,t.refresherHeight>0&&(d=!0,o("refresherpulling",n,{deltaY:r,dy:r})))}},h=function(e){1===e.touches.length&&(k={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){E={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),k={x:0,y:0},E={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",h,Al),a.value.addEventListener("touchmove",l,pe(!1)),a.value.addEventListener("scroll",i,pe(!1)),a.value.addEventListener("touchend",m,Al),M((()=>{a.value.removeEventListener("touchstart",h),a.value.removeEventListener("touchmove",l),a.value.removeEventListener("scroll",i),a.value.removeEventListener("touchend",m)}))})),me((()=>{p.value&&(a.value.scrollTop=t.lastScrollTop),f.value&&(a.value.scrollLeft=t.lastScrollLeft)})),T(n,(e=>{b(e)})),T(r,(e=>{_(e)})),T((()=>e.scrollIntoView),(e=>{w(e)})),T((()=>
57e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:f,realScrollY:p,_scrollTopChanged:b,_scrollLeftChanged:_}}(e,u,c,d,l,o,i,s,t),g=G((()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",f.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),v=G((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return r({$getMain:()=>i.value}),()=>{const{refresherEnabled:t,refresherBackground:r,refresherDefaultStyle:l,refresherThreshold:c}=e,{refresherHeight:d,refreshState:h}=u;return $("uni-scroll-view",{ref:o},[$("div",{ref:a,class:"uni-scroll-view"},[$("div",{ref:i,style:g.value,class:v.value},[t?$(El,{refreshState:h,refresherHeight:d,refresherThreshold:c,refresherDefaultStyle:l,refresherBackground:r},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,$("div",{ref:s,class:"uni-scroll-view-content"}
57,[n.default&&n.default()],512)],6)],512)],512)}}});function Il(e,t,n,r,o,i){function a(){u&&(clearTimeout(u),u=null)}let s,l,u=null,c=!0,d=0,h=1,f=null,p=!1,m=0,g="";const v=G((()=>n.value.length>t.displayMultipleItems)),y=G((()=>e.circular&&v.value));function b(o){Math.floor(2*d)===Math.floor(2*o)&&Math.ceil(2*d)===Math.ceil(2*o)||y.value&&function(r){if(!c)for(let o=n.value,i=o.length,a=r+t.displayMultipleItems,s=0;s<i;s++){const t=o[s],n=Math.floor(r/i)*i+s,l=n+i,u=n-i,c=Math.max(r-(n+1),n-a,0),d=Math.max(r-(l+1),l-a,0),h=Math.max(r-(u+1),u-a,0),f=Math.min(c,d,h),p=[n,l,u][[c,d,h].indexOf(f)];t.updatePosition(p,e.vertical)}}(o);const a="translate("+(e.vertical?"0":100*-o*h+"%")+", "+(e.vertical?100*-o*h+"%":"0")+") translateZ(0)",l=r.value;if(l&&(l.style.webkitTransform=a,l.style.transform=a),d=o,!s){if(o%1==0)return;s=o}o-=Math.floor(s);const u=n.value;o<=-(u.length-1)?o+=u.length:o>=u.length&&(o-=u.length),o=s%1>.5||s<0?o-1:o,i("transition",{},{dx:e.vertical?0:o*l.offsetWidth,dy:e.vertical?o*l.offsetHeight:0}
57)}function _(e){const r=n.value.length;if(!r)return-1;const o=(Math.round(e)%r+r)%r;if(y.value){if(r<=t.displayMultipleItems)return 0}else if(o>r-t.displayMultipleItems)return r-t.displayMultipleItems;return o}function w(){f=null}function x(){if(!f)return void(p=!1);const e=f,r=e.toPos,o=e.acc,a=e.endTime,u=e.source,c=a-Date.now();if(c<=0){b(r),f=null,p=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:u})}return}b(r+o*c*c/2),l=requestAnimationFrame(x)}function S(e,r,o){w();const i=t.duration,a=n.value.length;let s=d;if(y.value)if(o<0){for(;s<e;)s+=a;for(;s-a>e;)s-=a}else if(o>0){for(;s>e;)s-=a;for(;s+a<e;)s+=a;s+a-e<e-s&&(s+=a)}else{for(;s+a<e;)s+=a;for(;s-a>e;)s-=a;s+a-e<e-s&&(s+=a)}else"click"===r&&(e=e+t.displayMultipleItems-1<a?e:0);f={toPos:e,acc:2*(s-e)/(i*i),endTime:Date.now()+i,source:r},p||(p=!0,l=requestAnimationFrame(x))}function k(){a();const e=n.value,r=function(){u=null,g="autoplay",y.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,S(t.current,"autoplay",y.value?1:0),u=setTimeout(r,t.interval)};c||e.length<=t.displayMultipleItems||(u=setTimeout(r,t.interval))}function E(e){e?k():a()}return T([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let r=-1;if(e.currentItemId)for(let t=0,o=n.value;t<o.length;t++){if(o[t].getItemId()===e.currentItemId){r=t;break}}r<0&&(r=Math.round(e.current)||0),r=r<0?0:r,t.current!==r&&(g="",t.current=r)})),T([()=>e.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),f&&(b(f.toPos),f=null);const o=n.value;for(let t=0;t<o.length;t++)o[t].updatePosition(t,e.vertical);h=1;const i=r.value;if(1===t.displayMultipleItems&&o.length){const e=o[0].getBoundingClientRect(),t=i.getBoundingClientRect();h=e.width/t.width,h>0&&h<1||(h=1)}const s=d;d=-2;const l=t.current;l>=0?(c=!1,t.userTracking?(b(s+l-m),m=l):(b(l),e.autoplay&&k())):(c=!0,b(-t.displayMultipleItems-1))})),T((()=>t.interval),(()=>{u&&(a(),k())})),T((()=>t.current),((e,r)=>{!function(e,r){const o=g;g="";const a=n.value;if(!o){const t=a.length;S(e,"",y.value&&r+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:o})}}(e,r),o("update:current",e)})),T((()=>t.currentItemId),(e=>{o("update:currentItemId",e)})),T((()=>e.autoplay&&!t.userTracking),E),E(e.autoplay&&!t.userTracking),C((()=>{let o=!1,i=0,s=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let r=0;!e&&Math.abs(i)>.2&&(r=.5*n);const o=_(d+r);e?S(t.current,"",0):(g="touch",t.current=o,S(o,"touch",0!==r?r:0===o&&y.value&&d>=1?1:0))}Ks(r.value,(u=>{if(!e.disableTouch&&!c){if("start"===u.detail.state)return t.userTracking=!0,o=!1,a(),m=d,i=0,s=Date.now(),void w();if("end"===u.detail.state)return l(!1);if("cancel"===u.detail.state)return l(!0);if(t.userTracking){if(!o){o=!0;const n=Math.abs(u.detail.dx),r=Math.abs(u.detail.dy);if((n>=r&&e.vertical||n<=r&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(o){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function u(e){return.5-.25/(e+.5)}function c(e,t){let n=m+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-u(-n):n>l&&(n=l+u(n-l)),i=0),b(n)}const d=s-a||1,h=r.value;e.vertical?c(-o.dy/h.offsetHeight,-o.ddy/d):c(-o.dx/h.offsetWidth,-o.ddx/d)}(u.detail),!1}}}),!0)})),ve((()=>{a(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const Pl=Rr({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}
57){const r=X(null),o=Nr(r,n),i=X(null),a=X(null),s=function(e){const t=G((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),n=G((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),r=G((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t}));return x({interval:t,duration:n,displayMultipleItems:r,current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=G((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:jn(e.previousMargin,!0),bottom:jn(e.nextMargin,!0)}:{top:0,bottom:0,left:jn(e.previousMargin,!0),right:jn(e.nextMargin,!0)}),t})),u=G((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let c=[];const d=[],h=X([]);function f(){const e=[];for(let t=0;t<c.length;t++){let n=c[t];n instanceof Element||(n=n.el);const r=d.find((e=>n===e.rootRef.value));r&&e.push(ht(r))}h.value=e}Z("addSwiperContext",(function(e){d.push(e),f()}));Z("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())}));const{onSwiperDotClick:p,circularEnabled:m,swiperEnabled:g}=Il(e,s,h,a,n,o);let v=()=>null;return v=Ll(r,e,s,p,h,m,g),()=>{const n=t.default&&t.default();return c=qs(n),$("uni-swiper",{ref:r},[$("div",{ref:i,class:"uni-swiper-wrapper"},[$("div",{class:"uni-swiper-slides",style:l.value},[$("div",{ref:a,class:"uni-swiper-slide-frame",style:u.value},[n],4)],4),e.indicatorDots&&$("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,r)=>$("div",{onClick:()=>p(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<s.current+s.displayMultipleItems&&n>=s.current||n<s.current+s.displayMultipleItems-r.length},style:{background:n===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2),v()],512)],512)}}}),Ll=(e,t,n,r,o,i,a)=>{let s=!1,l=!1,u=!1,c=X(!1);function d(e,n){const r=e.currentTarget;r&&(r.style.backgroundColor="over"===n?t.navigationActiveColor:"")}ge((()=>{s="auto"===t.navigation,c.value=!0!==t.navigation||s,b()})),ge((()=>{const e=o.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(c.value=!0))}));const h={onMouseover:e=>d(e,"over"),onMouseout:e=>d(e,"out")};function f(e,t,a){if(e.stopPropagation(),a)return;const s=o.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=s-1);break;case"next":l++,l>=s&&i.value&&(l=0)}r(l)}const p=()=>Un("M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z",t.navigationColor,26);let g;const v=n=>{clearTimeout(g);const{clientX:r,clientY:o}=n,{left:i,right:a,top:s,bottom:l,width:u,height:d}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(o-s<d/3||l-o<d/3):!(r-i<u/3||a-r<u/3),h)return g=setTimeout((()=>{c.value=h}),300);c.value=h},y=()=>{c.value=!0};function b(){e.value&&(e.value.removeEventListener("mousemove",v),e.value.removeEventListener("mouseleave",y),s&&(e.value.addEventListener("mousemove",v),e.value.addEventListener("mouseleave",y)))}return C(b),function(){const e={"uni-swiper-navigation-hide":c.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?$(Oe,null,[$("div",J({class:["uni-swiper-navigation uni-swiper-navigation-prev",m({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"prev",l)},h),[p()],16,["onClick"]),$("div",J({class:["uni-swiper-navigation uni-swiper-navigation-next",m({"uni-swiper-navigation-disabled":u},e)],onClick:e=>f(e,"next",u)},h),[p()],16,["onClick"])]):null}},Dl=Rr({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=X(null),r={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const r=t?"0":100*e+"%",o=t?100*e+"%":"0",i=n.value,a=`translate(${r},${o}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return C((()=>{const e=K("addSwiperContext");e&&e(r)})),ve((()=>{const e=K("removeSwiperContext");e&&e(r)})),()=>$("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Rl=Rr({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=X(null),r=X(e.checked),o=function(e,t){const n=K(Hr,!1),r=K(Wr,!1),o={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(o),ve((()=>{n.removeField(o)})));return r}(e,r),i=Nr(n,t);T((()=>e.checked),(e=>{r.value=e}));const a=t=>{e.disabled||(r.value=!r.value,i("change",t,{value:r.value}))};return o&&(o.addHandler(a),M((()=>{o.removeHandler(a)}))),Ur(e,{"label-click":a}),()=>{const{color:t,type:o}=e,i=jr(e,"disabled"),s={};let l;return t&&r.value&&(s.backgroundColor=t,s.borderColor=t),l=r.value,$("uni-switch",J({id:e.id,ref:n},i,{onClick:a}),[$("div",{class:"uni-switch-wrapper"},[ue($("div",{class:["uni-switch-input",[r.value?"uni-switch-input-c
57hecked":""]],style:s},null,6),[[ce,"switch"===o]]),ue($("div",{class:"uni-checkbox-input"},[l?Un(Wn,e.color,22):""],512),[[ce,"checkbox"===o]])])],16,["id","onClick"])}}});const Ol={ensp:"\u2002",emsp:"\u2003",nbsp:"\xa0"};function Bl(e,t){return function(e,{space:t,decode:n}){let r="",o=!1;for(let i of e)t&&Ol[t]&&" "===i&&(i=Ol[t]),o?(r+="n"===i?Te:"\\"===i?"\\":"\\"+i,o=!1):"\\"===i?o=!0:r+=i;return n?r.replace(/&nbsp;/g,Ol.nbsp).replace(/&ensp;/g,Ol.ensp).replace(/&emsp;/g,Ol.emsp).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&apos;/g,"'"):r}(e,t).split(Te)}const Nl=Rr({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=X(null);return()=>{const r=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==ye){let n=[];n=Bl(t.children,{space:e.space,decode:e.decode});const o=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&r.push(be(e)),t!==o&&r.push($("br"))}))}else r.push(t)})),$("uni-text",{ref:n,selectable:!!e.selectable||null},[$("span",null,r)],8,["selectable"])}}}),$l=m({},Ls,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>jl.concat("return").includes(e)}});let Vl=!1;const jl=["done","go","next","search","send"];const Hl=Rr({name:"Textarea",props:$l,emits:["confirm","change","linechange",...Ds],setup(e,{emit:t,expose:n}){const r=X(null),o=X(null),{fieldRef:i,state:a,scopedAttrsState:l,fixDisabledColor:u,trigger:c}=Bs(e,r,t),d=G((()=>a.value.split(Te))),h=G((()=>jl.includes(e.confirmType))),f=X(0),p=X(null);function m({height:e}){f.value=e}function g(e){}function v(e){"Enter"===e.key&&h.value&&e.preventDefault()}function y(t){if("Enter"===t.key&&h.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return T((()=>f.value),(t=>{const n=r.value,i=p.value,a=o.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=i.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Vl=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&u?$("textarea",{key:"disabled-textarea",ref:i,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Vl},style:s({overflowY:e.autoHeight?"hidden":"auto"},e.cursorColor&&{caretColor:e.cursorColor}),onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):$("textarea",{key:"textarea",ref:i,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Vl},style:s({overflowY:e.autoHeight?"hidden":"auto"},e.cursorColor&&{caretColor:e.cursorColor}),onKeydown:v,onKeyup:y,onChange:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup","onChange"]);return $("uni-textarea",{ref:r,"auto-height":e.autoHeight},[$("div",{ref:o,class:"uni-textarea-wrapper"},[ue($("div",J(l.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[ce,!a.value.length]]),$("div",{ref:p,class:"uni-textarea-line"},[" "],512),$("div",{class:{"uni-textarea-compute":!0,"uni-textarea-compute-auto-height":e.autoHeight}},[d.value.map((e=>$("div",null,[e.trim()?e:"."]))),$(Qa,{initial:!0,onResize:m},null,8,["initial","onResize"])],2),"search"===e.confirmType?$("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Fl=Rr({name:"View",props:m({},$r),setup(e,{slots:t}){const n=X(null),{hovering:r,binding:o}=Vr(e);return()=>{const i=e.hoverClass;return i&&"none"!==i?$("uni-view",J({class:r.value?i:"",ref:n},o),[F(t,"default")],16):$("uni-view",{ref:n},[F(t,"default")],512)}}});function Wl(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function ql(e,t,n){e&&ln(n||Kn(),e,(({type:e,data:n},r)=>{t(e,n,r)}))}function Ul(e,t){e&&function(e,t){t=sn(e,t),delete an[t]}(t||Kn(),e)}function zl(e,t,n,r){const o=Se().proxy;r=null==r?zn():r,C((()=>{ql(t||Wl(o),e,r),!n&&t||T((()=>o.id),((t,n)=>{ql(Wl(o,t),e,r),Ul(n&&Wl(o,n))}))})),M((()=>{Ul(t||Wl(o),r)}))}let Yl=0;function Xl(e,t,n,r){L(t)&&We(e,t.bind(n),r)}function Gl(e,t,n){!function(e,t,n){const r=e.mpType||n.$mpType;if(r&&"component"!==r&&("page"!==r||"component"!==t.renderer)&&(Object.keys(e).forEach((r=>{if(_e(r,e[r],!1)){const o=e[r];te(o)?o.forEach((e=>Xl(r,e,n,t))):Xl(r,o,n,t)}})),"page"===r)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;tr(n,we,e),t.vapor||delete t.attrs.__pageQuery;const r=n.$page;
57"preloadPage"!==(null==r?void 0:r.openType)&&tr(n,xe)}catch(o){}}}(e,t,n)}function Kl(e,t,n){return e[t]=n}function Jl(e,...t){const n=this[e];return n?n(...t):null}function Zl(e){const t=e.config.errorHandler;return function(n,r,o){t&&t(n,r,o);const i=e._instance;if(!i||!i.proxy)throw n;i[y]?tr(i.proxy,y,n):b(n,o,r?r.$.vnode:null,!1)}}function Ql(e,t){return e?[...new Set([].concat(e,t))]:t}function eu(e){const t=e.config;var n;t.errorHandler=d(e,Zl),n=t.optionMergeStrategies,_.forEach((e=>{n[e]=Ql}));const r=t.globalProperties;r.$set=Kl,r.$applyOptions=Gl,r.$callMethod=Jl,h(e)}function tu(e){const t=f({history:ou(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:ru});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(nu[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let nu=Object.create(null);const ru=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(r=e.meta.tabBarIndex,nu[r]);if(t)return t}return{left:0,top:0};var r};function ou(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=p(e);return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=fa(),n=t.length-1,r=n-e;for(let o=n;o>r;o--){const e=ia(t[o]);pa(ya(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const iu={install(e){eu(e),yr(e),Mr(e),e.config.warnHandler||(e.config.warnHandler=au),tu(e)}};function au(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const r=[`[Vue warn]: ${e}`];n.length&&r.push("\n",n)}const su={class:"uni-async-loading"},lu=$("i",{class:"uni-loading"},null,-1),uu=Or({name:"AsyncLoading",render:()=>(V(),j("div",su,[lu]))});function cu(){window.location.reload()}const du=Or({name:"AsyncError",props:["error"],setup(){Yt();const{t:e}=Ut();return()=>$("div",{class:"uni-async-error",onClick:cu},[e("uni.async.error")],8,["onClick"])}});let hu;function fu(){return hu}function pu(e){hu=e,Object.defineProperty(hu.$.ctx,"$children",{get:()=>fa().map((e=>e.$vm))});const t=hu.$.appContext.app;t.component(uu.name)||t.component(uu.name,uu),t.component(du.name)||t.component(du.name,du),function(e){e.$vm=e,e.$mpType="app";const t=X(Ut().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(hu),function(e,t){const n=e.$options||{};n.globalData=m(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(hu),Er(),lr()}function mu(e,{type:t,clone:n,init:r,setup:o,before:i,options:a}){n&&(e=m({},e)),i&&i(e);const s=e.setup;return e.setup=(e,t)=>{const n=Se();if(r(n.proxy),o(n),s)return s(e,t)},e}function gu(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?mu(e.default,t):mu(e,t)}function vu(e,t){return gu(e,{type:"page",clone:!0,init:va,setup(e){e.$pageInstance=e;const t=Zr(),n=w(t.query);e.attrs.__pageQuery=n,ia(e.proxy).options=n,e.proxy.options=n;const r=Kr();na(r),e.onReachBottom=x([]),e.onPageScroll=x([]),T([e.onReachBottom,e.onPageScroll],(()=>{const t=Xn();e.proxy===t&&Ea(e,r)}),{once:!0}),S((()=>{wa(e,r)})),C((()=>{xa(e);const{onReady:n}=e;n&&k(n),wu(t)})),E((()=>{if(!e.__isVisible){wa(e,r),e.__isVisible=!0;{const{onShow:t}=e;t&&k(t)}fe((()=>{wu(t)}))}})),A((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&k(t)}}}));const o=er(e.proxy);return function(e,t){Rd.subscribe(sn(e,"invokeViewApi"),un)}(o),M((()=>{!function(e){Rd.unsubscribe(sn(e,"invokeViewApi")),Object.keys(an).forEach((t=>{0===t.indexOf(e+".")&&delete an[t]}))}(o)})),n}})}function yu(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:r}=Nu(),o=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Od.emit(Ce,{deviceOrientation:o,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:r}})}function bu(e){D(e.data)&&e.data.type===R&&Od.emit(O,e.data.data,e.data.pageId)}function _u(){const{emit:e}=Od;"visible"===document.visibilityState?e(B,m({},Za)):e(N)}function wu(e){const{tabBarText:t,tabBarIndex:n,route:r}=e.meta;t&&tr("onTabItemTap",{index:n,text:t,pagePath:r})}function xu(e){e=e>0&&e<1/0?e:0;
57const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60),o=(t<10?"0":"")+t;let i=(n<10?"0":"")+n+":"+((r<10?"0":"")+r);return"00"!==o&&(i=o+":"+i),i}function Tu(e,t,n,r){const o=x({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let a=null;let s;return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0,r.fullscreen&&e.stopPropagation()},onTouchmove:function(l){function u(){r.fullscreen&&l.stopPropagation(),l.preventDefault()}r.fullscreen&&u();const c=o.gestureType;if("stop"===c)return;const d=l.targetTouches[0],h=d.pageX,f=d.pageY,p=i,m=n.value;if("progress"===c?(!function(e){const n=t.currentDuration;let r=e/600*n+o.currentTimeOld;r<0?r=0:r>n&&(r=n);o.currentTimeNew=r}(h-p.x),o.seeking=!0):"volume"===c&&function(e){const t=n.value,r=o.volumeOld;let i;"number"==typeof r&&(i=r-e/200,i<0?i=0:i>1&&(i=1),clearTimeout(s),s=void 0,null==s&&(s=setTimeout((()=>{o.toastThin=!1,s=void 0}),1e3)),t.volume=i,o.volumeNew=i)}(f-p.y),"none"===c)if(Math.abs(h-p.x)>Math.abs(f-p.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=m.currentTime,r.fullscreen||u()}else{if(!e.pageGesture&&!e.vslideGesture)return void(o.gestureType="stop");"none"!==o.gestureType&&null!=a||(a=setTimeout((()=>{o.toastThin=!0}),500)),o.gestureType="volume",o.volumeOld=m.volume,r.fullscreen||u()}else u()},onTouchend:function(e){const t=n.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(r.fullscreen&&e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(t.currentTime=o.currentTimeNew),o.gestureType="none"}}}function Su(e,t,n,r,o,i,a,s){const l={play:e,stop:n,pause:t,seek:r,sendDanmu:o,playbackRate:i,requestFullScreen:a,exitFullScreen:s};zl(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)}),function(e){const t=zn(),n=Se().proxy,r=n.$options.name.toLowerCase(),o=e||n.id||"context"+Yl++;return C((()=>{n.$el.__uniContextInfo={id:o,type:r,page:t}})),`${r}.${o}`}(),!0)}const Cu=Rr({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:r}){const o=X(null),i=X(null),a=Nr(o,t),{state:s}=Es(),{$attrs:l}=Ws({excludeListeners:!0});nn();const{videoRef:u,state:c,play:d,pause:h,stop:f,seek:p,playbackRate:m,toggle:g,onDurationChange:v,onLoadedMetadata:y,onProgress:b,onWaiting:_,onVideoError:w,onPlay:S,onPause:k,onEnded:E,onTimeUpdate:A}=function(e,t,n){const r=X(null),o=G((()=>Ma(e.src))),i=G((()=>"true"===e.muted||!0===e.muted)),a=x({start:!1,src:o,playing:!1,currentTime:0,duration:0,currentDuration:0,progress:0,buffered:0,muted:i,pauseUpdatingCurrentTime:!1});function s(e){const t=e.target,n=t.buffered;n.length&&(a.buffered=n.end(n.length-1)/t.duration*100)}function l(){r.value.pause()}function u(e){const t=r.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return T((()=>o.value),(()=>{a.playing=!1,a.currentTime=0})),T((()=>a.buffered),(e=>{n("progress",{},{buffered:e})})),T((()=>i.value),(e=>{r.value.muted=e})),T([()=>a.duration,()=>e.duration],(()=>{let t=Number(e.duration);isNaN(t)&&(t=0),a.currentDuration=t>0?t:a.duration})),{videoRef:r,state:a,play:function(){const e=r.value;a.start=!0,e.play()},pause:l,stop:function(){u(0),l()},seek:u,playbackRate:function(e){r.value.playbackRate=e},toggle:function(){const e=r.value;a.playing?e.pause():e.play()},onDurationChange:function({target:e}){a.duration=e.duration},onLoadedMetadata:function(t){const r=Number(e.initialTime)||0,o=t.target;r>0&&(o.currentTime=r),n("loadedmetadata",t,{width:o.videoWidth,height:o.videoHeight,duration:o.duration}),s(t)},onProgress:s,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){a.playing=!1,n("error",e,{})},onPlay:function(e){a.start=!0,a.playing=!0,n("play",e,{})},onPause:function(e){a.playing=!1,n("pause",e,{})},onEnded:function(e){a.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;a.pauseUpdatingCurrentTime||(a.currentTime=t.currentTime);const r=t.currentTime;n("timeupdate",e,{currentTime:r,duration:t.duration})}}}(e,0,a),{state:I,danmuRef:P,updateDanmu:L,toggleDanmu:D,sendDanmu:R}=function(e,t){const n=X(null),r=x({enable:Boolean(e.enableDanmu)});let o={time:0,index:-1};const i=te(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function a(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let r=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",r),n.value.appendChild(t),setTimeout((function(){r+="left
57: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",r),setTimeout((function(){t.remove()}),4e3)}),17)}return i.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:r,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,s=o,l={time:n,index:s.index};if(n>s.time)for(let o=s.index+1;o<i.length;o++){const e=i[o];if(!(n>=(e.time||0)))break;l.index=o,t.playing&&r.enable&&a(e)}else if(n<s.time)for(let t=s.index-1;t>-1&&n<=(i[t].time||0);t--)l.index=t-1;o=l},toggleDanmu:function(){r.enable=!r.enable},sendDanmu:function(e){i.splice(o.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,c),{state:O,onFullscreenChange:B,emitFullscreenChange:N,toggleFullscreen:V,requestFullScreen:j,exitFullScreen:H}=function(e,t,n,r,o){const i=x({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(t){i.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const i=o.value,l=t.value,u=n.value;let c;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||a&&!r.userAction?u.webkitEnterFullScreen?u.webkitEnterFullScreen():(c=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():u.webkitExitFullScreen?u.webkitExitFullScreen():(c=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),i.appendChild(l)),c&&s(e)}function u(){l(!1)}return M(u),{state:i,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||s(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:s,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:u}}(a,i,u,s,o),{state:F,onTouchstart:W,onTouchend:q,onTouchmove:U}=Tu(e,c,u,O),{state:z,progressRef:Y,ballRef:K,clickProgress:Z,toggleControls:Q,autoHideEnd:ee,autoHideStart:ne}=function(e,t,n,r){const o=X(null),i=X(null),a=G((()=>e.showCenterPlayBtn&&!t.start)),s=X(!0),l=G((()=>!a.value&&e.controls&&s.value)),u=x({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:a,controlsShow:l,controlsVisible:s});let c;function d(){c=setTimeout((()=>{u.controlsVisible=!1}),3e3)}function h(){c&&(clearTimeout(c),c=null)}return M((()=>{c&&clearTimeout(c)})),T((()=>u.controlsShow&&t.playing&&!u.controlsTouching),(e=>{e?d():h()})),C((()=>{const e=pe(!1);let a,s,l,c=!0;const d=i.value;function h(e){const n=e.targetTouches[0],i=n.pageX,d=n.pageY;if(c&&Math.abs(i-a)<Math.abs(d-s))return void f(e);c=!1;const h=o.value.offsetWidth;let p=l+(i-a)/h*100;p<0?p=0:p>100&&(p=100),t.progress=p,null==r||r(t.currentDuration*p/100),u.seeking=!0,e.preventDefault(),e.stopPropagation()}function f(r){u.controlsTouching=!1,u.touching&&(d.removeEventListener("touchmove",h,e),c||(r.preventDefault(),r.stopPropagation(),n(t.currentDuration*t.progress/100)),u.touching=!1)}d.addEventListener("touchstart",(n=>{u.controlsTouching=!0;const r=n.targetTouches[0];a=r.pageX,s=r.pageY,l=t.progress,c=!0,u.touching=!0,d.addEventListener("touchmove",h,e)})),d.addEventListener("touchend",f),d.addEventListener("touchcancel",f)})),{state:u,progressRef:o,ballRef:i,clickProgress:function(e){const r=o.value;let i=e.target,a=e.offsetX;for(;i&&i!==r;)a+=i.offsetLeft,i=i.parentNode;const s=r.offsetWidth;let l=0;a>=0&&a<=s&&(l=a/s,n(t.currentDuration*l))},toggleControls:function(){u.controlsVisible=!u.controlsVisible},autoHideStart:d,autoHideEnd:h}}(e,c,p,(e=>{F.currentTimeNew=e}));Su(d,h,f,p,R,m,j,H);const re=function(e,t,n,r,o){const i=G((()=>"progress"===t.gestureType||n.touching));return T(i,(r=>{e.pauseUpdatingCurrentTime=r,n.controlsTouching=r,"progress"===t.gestureType&&r&&(n.controlsVisible=r)})),T([()=>e.currentTime,()=>e.currentDuration],(()=>{e.currentDuration>0?e.progress=e.currentTime/e.currentDuration*100:e.progress=0,e.progress>100&&(e.progress=100)}),{immediate:!0}),T((()=>t.currentTimeNew),(t=>{e.currentTime=t})),i}(c,F,z);return()=>$("uni-video",{ref:o,id:e.id,onClick:Q},[$("div",{ref:i,class:"uni-video-container",onTouchstart:W,onTouchend:q,onTouchmove:U,onFullscreenchange:le(B,["stop"]),onWebkitfullscreenchange:le((e=>B(e,!0)),["stop"])},[$("video",J({ref:u,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:c.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:{"uni-video-video":!0,"uni-video-video-fullscreen":O.fullscreen},"webkit-playsinline":!0,playsinline:!0,onDurationchange:v,onLoadedmetadata:y,onProgress:b,onWaiting:_,onError:w,onPlay:S,onPause:k,onEnded:E,onTimeupdate:e=>{A(e),L(e)},onWebkitbeginfullscreen:()=>N(!0),onX5videoenterfullscreen:()=>N(!0),onWebkitendfullscreen:()=>N(!1),onX5videoexitfullscreen:()=>N(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),ue($("div",{class:"uni-video-bar uni-video-bar-full",onClick:le((()=>{}),["stop"])},[$("div",{class:"uni-video-controls"},[ue($("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!c.playing,"uni-video-control-button-pause":c.playing},onClick:le(g,["stop"])},null,10,["onClick"]),[[ce,e.showPlayBtn]]),ue($("div",{class:"uni-video-current-time"},[xu(c.currentTime)],512),[[ce,e.showProgress]]),ue($("div",{ref:Y,class:"uni-video-progress-container",onClick:le(Z,["stop"])},[$("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":re.value}},[$("div",{style:{width:c.buffered-c.progress+"%",left:c.progress+"%"},class:"uni-video-progress-buffered"},null,4),$("div",{style:{width:c.progress+"%"},class:"uni-video-progress-played"},null,4),$("div",{ref:K,style:{left:c.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":re.value}},[$("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[ce,e.showProgress]]),ue($("div",{class:"uni-video-duration"},[xu(c.currentDuration)],512),[[ce,e.showProgress]])]),ue($("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":I.enable},onClick:le(D,["stop"])},null,10,["onClick"]),[[ce,e.danmuBtn]]),ue($("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":O.fullscreen},onClick:le((()=>V(!O.fullscreen)),["stop"])},null,10,["onClick"]),[[ce,e.showFullscreenBtn]])],8,["onClick"]),[[ce,z.controlsShow]]),ue($("div",{ref:P,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[ce,c.start&&I.enable]]),z.centerPlayBtnShow&&$("div",{class:"uni-video-cover",onClick:le((()=>{}),["stop"])},[$("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:le(d,["stop"])},null,8,["onClick"])],8,["onClick"]),$("div",{class:"uni-video-loading"},["volume"===F.gestureType?$("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":F.toastThin},style:{marginTop:"5px"}},[!F.toastThin&&F.volumeNew>0&&"volume"===F.gestureType?$("text",{class:"uni-video-icon uni-video-toast-icon"},["\uea30"]):!F.toastThin&&$("text",{class:"uni-video-icon uni-video-toast-icon"},["\uea31"]),$("div",{class:"uni-video-toast-draw",style:{width:100*F.volumeNew+"%"}},null)],2):null]),$("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":re.value}},[$("div",{class:"uni-video-toast-title"},[$("span",{class:"uni-video-toast-title-current-time"},[xu(F.currentTimeNew)])," / ",xu(c.currentDuration)])],2),$("div",{class:"uni-video-slots"},[r.default&&r.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),ku=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Eu;function Au(){if(Eu=Eu||ku.__DC_STAT_UUID,!Eu){Eu=Date.now()+""+Math.floor(1e7*Math.random());try{ku.__DC_STAT_UUID=Eu}catch(e){}}return Eu}function Mu(){if(!0!==__uniConfig.darkmode)return W(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Iu(){let e,t,n,r="0",o="phone",i="";const a=navigator.language;if(La){n="iPhone",e="iOS";const o=Ia.match(/OS\s([\w_]+)\slike/);
57o&&(r=o[1].replace(/_/g,"."));const i=r.split(".")[0];if(Number(i)>=18){const e=Ia.match(/Version\/([\d\.]+)/);e&&(r=e[1])}const a=Ia.match(/\(([a-zA-Z]+);/);a&&(t=a[1])}else if(Pa){e="Android";const n=Ia.match(/Android[\s/]([\w\.]+)[;\s]/);n&&(r=n[1]);const o=Ia.match(/\((.+?)\)/),i=o?o[1].split(";"):Ia.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<i.length;e++){const n=i[e];if(n.indexOf("Build")>0){t=n.split("Build")[0].trim();break}let r;for(let e=0;e<a.length;e++)if(a[e].test(n)){r=!0;break}if(!r){t=n.trim();break}}}else if(Ba){if(n="iPad",t="iPad",e="iOS",o="pad",r=L(window.BigInt)?"14.0":"13.0",14===parseInt(r)){const e=Ia.match(/Version\/(\S*)\b/);e&&(r=e[1])}}else if(Da||Ra||Oa){t="PC",e="PC",o="pc",r="0";let n=Ia.match(/\((.+?)\)/)[1];if(Da){switch(e="Windows",Da[1]){case"5.1":r="XP";break;case"6.0":r="Vista";break;case"6.1":r="7";break;case"6.2":r="8";break;case"6.3":r="8.1";break;case"10.0":r="10"}const t=n&&n.match(/[Win|WOW]([\d]+)/);t&&(r+=` x${t[1]}`)}else if(Ra){e="macos",i="mac";const t=n&&n.match(/Mac OS X (.+)/)||"";r&&(r=t[1].replace(/_/g,"."),-1!==r.indexOf(";")&&(r=r.split(";")[0]))}else if(Oa){e="Linux";const t=n&&n.match(/Linux (.*)/)||"";t&&(r=t[1],-1!==r.indexOf(";")&&(r=r.split(";")[0]))}}else if(Na){n="HUAWEI",e="harmonyos",o=$a?"pc":Va?"pad":"phone";const i=Ia.match(/OpenHarmony\s([\d\.]+)/);i&&(r=i[1]),t=void 0}else e="Other",r="0",o="unknown";const s=`${e} ${r}`;i||(i=e.toLowerCase());let l="",u=String(function(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,r=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:r?11:-1}());if("-1"!==u)l="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const r=e[n],o=new RegExp(`(${r})/(\\S*)\\b`);o.test(Ia)&&(l=t[n],u=Ia.match(o)[2])}}let c="portrait";if(window.matchMedia)try{window.matchMedia("(orientation:landscape)").matches&&(c="landscape")}catch(d){}return"portrait"===c&&void 0!==window.screen.orientation&&(c=[90,270].includes(window.screen.orientation.angle)?"landscape":"portrait"),"portrait"===c&&null!=window.orientation&&(c=90===Math.abs(window.orientation)?"landscape":"portrait"),{deviceBrand:n,brand:n,deviceModel:t,deviceOrientation:c,model:t,system:s,platform:i,browserName:l.toLocaleLowerCase(),browserVersion:u,language:a,deviceType:o,ua:Ia,osname:e,osversion:r,theme:Mu()}}const Pu=Io(0,(()=>{const e=window.devicePixelRatio,t=ja(),n=Ha(t),r=Fa(t,n),o=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=Wa();let a=window.innerHeight;const s=In.top,l={left:In.left,right:i-In.right,top:In.top,bottom:a-In.bottom,width:i-In.left-In.right,height:a-In.top-In.bottom},{top:u,bottom:c}=On();return a-=u,a-=c,{windowTop:u,windowBottom:c,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:r,screenHeight:o,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:In.top,right:In.right,bottom:In.bottom,left:In.left},screenTop:o-a}}));let Lu,Du=!0;function Ru(){Du&&(Lu=Iu())}const Ou=Io(0,(()=>{Ru();const{deviceBrand:e,deviceModel:t,brand:n,model:r,platform:o,system:i,deviceOrientation:a,deviceType:s,osname:l,osversion:u}=Lu;return m({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Au(),deviceOrientation:a,deviceType:s,model:r,osName:l?l.toLowerCase():void 0,osVersion:u,platform:o,system:i})})),Bu=Io(0,(()=>{Ru();const{theme:e,language:t,browserName:n,browserVersion:r}=Lu;return m({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:hi?hi():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:r,hostTheme:e,hostLanguage:t,isUniAppX:!1,language:t,SDKVersion:"",theme:e,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,version:""},{})})),Nu=Io(0,(()=>{Du=!0,Ru(),Du=!1;const e=Pu(),t=Ou(),n=Bu();Du=!0;const{ua:r,browserName:o,browserVersion:i,osname:a,osversion:s}=Lu,l=m(e,t,n,{browserName:o,browserVersion:i,fontSizeSetting:void 0,osName:a.toLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0,ua:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,l})),$u="none";const Vu=Po("getNetworkType",((e,{resolve:t})=>{const n=navigator.connection||navigator.webkitConnection||navigator.mozConnection;let r="unknown";if(n){const e=n.effectiveType;r=n.type,"cellular"===r&&e?r=e.replace("slow-",""):r&&r!==$u||!e?[$u,"wifi"].includes(r)||(r="unknown"):r=e}else!1===navigator.onLine&&(r=$u);return t({networkType:r})}));var ju=(e,t,n)=>new Promise(((r,o)=>{var i=e=>
57{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const Hu=Po("getClipboardData",((e,t)=>ju(void 0,[e,t],(function*(e,{resolve:t,reject:n}){en();const{t:r}=Ut();try{t({data:yield navigator.clipboard.readText()})}catch(o){!function(e,t){const n=document.getElementById("#clipboard"),r=n?n.value:void 0;r?e({data:r}):t()}(t,(()=>{n(`${o} ${r("uni.getClipboardData.fail")}`)}))}})))),Fu=Po("setClipboardData",((e,t)=>ju(void 0,[e,t],(function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(r){!function(e,t,n){const r=document.getElementById("#clipboard");r&&r.remove();const o=document.createElement("textarea");o.setAttribute("inputmode","none"),o.id="#clipboard",o.style.position="fixed",o.style.top="-9999px",o.style.zIndex="-9999",document.body.appendChild(o),o.value=e,o.select(),o.setSelectionRange(0,o.value.length);const i=document.execCommand("Copy",!1);o.blur(),i?t():n()}(e,t,n)}}))),0,mi);const Wu=Io(0,((e,t)=>{const n=typeof t,r="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,r)}));function qu(e){const t=localStorage&&localStorage.getItem(e);if(!W(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=W(e)?JSON.parse(e):e,r=n.type;if(t.indexOf(r)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===r)return n.data;if("object"===r&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(r){}return n}const Uu=Io(0,(e=>{try{return qu(e)}catch(t){return""}})),zu=Io(0,(e=>{localStorage&&localStorage.removeItem(e)})),Yu=Io(0,(()=>{localStorage&&localStorage.clear()})),Xu=Io(0,(()=>{const e=localStorage&&localStorage.length||0,t=[];let n=0;for(let r=0;r<e;r++){const e=localStorage.key(r),o=localStorage.getItem(e)||"";n+=e.length+o.length,"uni-storage-keys"!==e&&t.push(e)}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE}})),Gu={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Ku({count:e,sourceType:t,type:n,extension:r}){ks();const o=document.createElement("input");return o.type="file",Ke(o,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),o.accept=r.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${Gu[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(o.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&o.setAttribute("capture","camera"),o}let Ju=null;const Zu=Po("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:r,reject:o})=>{Zt();const{t:i}=Ut();Ju&&(document.body.removeChild(Ju),Ju=null),Ju=Ku({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Ju),Ju.addEventListener("cancel",(()=>{o("chooseImage:fail cancel")})),Ju.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r<t;r++){const t=n.files[r];let i;Object.defineProperty(t,"path",{get:()=>(i=i||Ka(t),i)}),r<e&&o.push(t)}}r({get tempFilePaths(){return o.map((({path:e})=>e))},tempFiles:o})})),Ju.click()}),0,gi),Qu={esc:["Esc","Escape"],enter:["Enter"]},ec=Object.keys(Qu);function tc(){const e=X(""),t=X(!1),n=n=>{if(t.value)return;const r=ec.find((e=>-1!==Qu[e].indexOf(n.key)));r&&(e.value=r),fe((()=>e.value=""))};return C((()=>{document.addEventListener("keyup",n)})),M((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const nc=$("div",{class:"uni-mask"},null,-1);
57function rc(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),st(g({setup:()=>()=>(V(),j(e,t,null,16))}))}function oc(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function ic(e,{onEsc:t,onEnter:n}){const r=X(e.visible),{key:o,disable:i}=tc();return T((()=>e.visible),(e=>r.value=e)),T((()=>r.value),(e=>i.value=!e)),ge((()=>{const{value:e}=o;"esc"===e?t&&t():"enter"===e&&n&&n()})),r}let ac=0,sc="";function lc(e){let t=ac;ac+=e?1:-1,ac=Math.max(0,ac),ac>0?0===t&&(sc=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=sc,sc="")}const uc=Or({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=x({direction:"none"});let n=1,r=0,o=0,i=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();r=t.width,o=t.height}function u(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,d(e)}function c(e){const s=n*r>i,l=n*o>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return $(Us,{style:n,onTouchstart:Br(u),onTouchmove:Br(d),onTouchend:Br(c)},{default:()=>[$(ol,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[$("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function cc(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const dc=Or({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){C((()=>lc(!0))),ve((()=>lc(!1)));const{key:n}=tc(),r=X(null),o=X(cc(e));let i;function a(){i||fe((()=>{t("close")}))}function s(e){o.value=e.detail.current}T((()=>e.current),(()=>o.value=cc(e))),T((()=>n.value),(e=>{"esc"===e&&a()})),C((()=>{const e=r.value;let t=0,n=0;e.addEventListener("mousedown",(e=>{i=!1,t=e.clientX,n=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(i=!0)}))}));const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return $("div",{ref:r,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:a},[$(Pl,{navigation:"auto",current:o.value,onChange:s,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map((e=>$(Dl,null,{default:()=>[$(uc,{src:e},null,8,["src"])]}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!Ge(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),$("div",{style:l},[Un("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let hc,fc=null;const pc=()=>{fc=null,fe((()=>{null==hc||hc.unmount(),hc=null}))},mc=Po("previewImage",((e,{resolve:t})=>{fc?m(fc,e):(fc=x(e),fe((()=>{hc=rc(dc,fc,pc),hc.mount(oc("u-a-p"))}))),t()}),0,vi),gc=Mo("request",(({url:e,data:t,header:n={},method:r,dataType:o,responseType:i,enableChunked:a,withCredentials:s,timeout:l=__uniConfig.networkTimeout.request},{resolve:u,reject:c})=>{let d=null;const h=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(!n)return"string";if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==r)if(W(t)||t instanceof ArrayBuffer)d=t;else if("json"===h)try{d=JSON.stringify(t)}catch(p){d=t.toString()}else if("urlencoded"===h){const e=[];for(const n in t)Ee(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let f;if(a){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,a=t.signal;f=new yc(t);const h={method:r,headers:n,body:d,signal:a,credentials:s?"include":"same-origin"},p=setTimeout((function(){f.abort(),c("timeout",{errCode:5})}),l);h.signal.addEventListener("abort",(function(){clearTimeout(p),c("abort",{errCode:600003})})),window.fetch(e,h).then((e=>
57{const t=e.status,n=e.headers,r=e.body,a={};n.forEach(((e,t)=>{a[t]=e}));const s=vc(a);if(f._emitter.emit("headersReceived",{header:a,statusCode:t,cookies:s}),!r)return void u({data:"",statusCode:t,header:a,cookies:s});const l=r.getReader(),c=[],d=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(new Uint8Array(o),r),r+=o.byteLength;return n.buffer}(c);let n="text"===i?(new TextDecoder).decode(e):e;return"text"===i&&(n=_c(n,i,o)),void u({data:n,statusCode:t,header:a,cookies:s})}const r=n;c.push(r),f._emitter.emit("chunkReceived",{data:r}),d()}))};d()}),(e=>{c(e,{errCode:5})}))}else{const t=new XMLHttpRequest;f=new yc(t),t.open(r,e);for(const e in n)Ee(n,e)&&t.setRequestHeader(e,n[e]);const a=setTimeout((function(){t.onload=t.onabort=t.onerror=null,f.abort(),c("timeout",{errCode:5})}),l);t.responseType=i,t.onload=function(){clearTimeout(a);const e=t.status;let n="text"===i?t.responseText:t.response;"text"===i&&(n=_c(n,i,o)),u({data:n,statusCode:e,header:bc(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(a),c("abort",{errCode:600003})},t.onerror=function(){clearTimeout(a),c(void 0,{errCode:5})},t.withCredentials=s,t.send(d)}return f}),0,wi),vc=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const r=t.split(";");for(let o=0;o<r.length;o++)-1!==r[o].indexOf("Expires=")||-1!==r[o].indexOf("expires=")?n.push(r[o].replace(",","")):n.push(r[o]);return n=n.join(";").split(","),n};class yc{constructor(e){this._requestOnChunkReceiveCallbackId=0,this._requestOnChunkReceiveCallbacks=new Map,this._requestOnHeadersReceiveCallbackId=0,this._requestOnHeadersReceiveCallbacks=new Map,this._emitter=new Ae,this._controller=e}abort(){this._controller&&(this._controller.abort(),delete this._controller)}onHeadersReceived(e){return this._emitter.on("headersReceived",e),this._requestOnHeadersReceiveCallbackId++,this._requestOnHeadersReceiveCallbacks.set(this._requestOnHeadersReceiveCallbackId,e),this._requestOnHeadersReceiveCallbackId}offHeadersReceived(e){if(null==e)return void this._emitter.off("headersReceived");if("function"==typeof e)return void this._requestOnHeadersReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function bc(e){const t={};return e.split(Te).forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function _c(e,t,n){let r=e;if("text"===t&&"json"===n)try{r=JSON.parse(r)}catch(o){}return r}class wc{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){L(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const xc=Mo("uploadFile",(({url:e,file:t,filePath:n,name:r,files:o,header:i={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:u})=>{var c=new wc;return te(o)&&o.length||(n||u("file error"),o=[{name:r,file:t,uri:n}]),Promise.all(o.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Ga(e)):Xa(t)))).then((function(t){var n,r=new XMLHttpRequest,d=new FormData;
57Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(o).forEach((({name:e},n)=>{const r=t[n];d.append(e||"file",r,r.name||`file-${Date.now()}`)})),r.open("POST",e),Object.keys(i).forEach((e=>{r.setRequestHeader(e,i[e])})),r.upload.onprogress=function(e){c._callbacks.forEach((t=>{var n=e.loaded,r=e.total;t({progress:Math.round(n/r*100),totalBytesSent:n,totalBytesExpectedToSend:r})}))},r.onerror=function(){clearTimeout(n),u("",{errCode:602001})},r.onabort=function(){clearTimeout(n),u("abort",{errCode:600003})},r.onload=function(){clearTimeout(n);const e=r.status,t=r.getAllResponseHeaders(),o=t?t.trim().split(/[\r\n]+/).reduce(((e,t)=>{const n=t.split(": "),r=n.shift(),o=n.join(": ");return e[r]=o,e}),{}):{};l({statusCode:e,data:r.responseText||r.response,header:o})},c._isAbort?u("abort",{errCode:600003}):(n=setTimeout((function(){r.upload.onprogress=r.onload=r.onabort=r.onerror=null,c.abort(),u("timeout",{errCode:5})}),s),r.send(d),c._xhr=r)})).catch((()=>{setTimeout((()=>{u("file error")}),0)})),c}),0,xi),Tc=Po("navigateBack",((e,{resolve:t,reject:n})=>{let r=!0;return!0===tr(q,{from:e.from||"navigateBack"})&&(r=!1),r?(fu().$router.go(-e.delta),t()):n(q)}),0,Ei),Sc=Po("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:r,reject:o})=>{if(aa.handledBeforeEntryPageRoutes)return Yi({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(r).catch(o);sa.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:r,reject:o})}),0,Si);function Cc(e){__uniConfig.darkmode&&Od.on(ke,e)}function kc(e){Od.off(ke,e)}function Ec(e){let t={};return __uniConfig.darkmode&&(t=Je(e,__uniConfig.themeConfig,Mu())),__uniConfig.darkmode?t:e}const Ac={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Mc={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},Ic=g({props:Mc,setup(e,{emit:t}){const n=X(""),r=()=>a.value=!1,o=()=>(r(),t("close","cancel")),i=()=>(r(),t("close","confirm",n.value)),a=ic(e,{onEsc:o,onEnter:()=>{!e.editable&&i()}}),s=function(e){const t=X(e.cancelColor),n=({theme:e})=>{((e,t)=>
57{t.value=Ac[e].cancelColor})(e,t)};return ge((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Mu()&&n({theme:"dark"}),Cc(n))):kc(n)})),t}(e);return()=>{const{title:t,content:r,showCancel:l,confirmText:u,confirmColor:c,editable:d,placeholderText:h}=e;return n.value=r,$(De,{name:"uni-fade"},{default:()=>[ue($("uni-modal",{onTouchmove:Pn},[nc,$("div",{class:"uni-modal"},[t?$("div",{class:"uni-modal__hd"},[$("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?$("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:r,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):$("div",{class:"uni-modal__bd",onTouchmovePassive:Ln,textContent:r},null,40,["onTouchmovePassive","textContent"]),$("div",{class:"uni-modal__ft"},[l&&$("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:o},[e.cancelText],12,["onClick"]),$("div",{style:{color:c},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[u],12,["onClick"])])])],40,["onTouchmove"]),[[ce,a.value]])]})}}});let Pc;const Lc=Ne((()=>{Od.on("onHidePopup",(()=>Pc.visible=!1))}));let Dc;function Rc(e,t){const n="confirm"===e,r={confirm:n,cancel:"cancel"===e};n&&Pc.editable&&(r.content=t),Dc&&Dc(r)}const Oc=Po("showModal",((e,{resolve:t})=>{Lc(),Dc=t,Pc?(m(Pc,e),Pc.visible=!0):(Pc=x(e),fe((()=>(rc(Ic,Pc,Rc).mount(oc("u-a-m")),fe((()=>Pc.visible=!0))))))}),0,Bi),Bc={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==Ni.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Nc={light:"#fff",dark:"rgba(255,255,255,0.9)"},$c=e=>Nc[e],Vc=g({name:"Toast",props:Bc,setup(e){Gt(),Kt();const{Icon:t}=function(e){const t=X($c(Mu())),n=({theme:e})=>t.value=$c(e);ge((()=>{e.visible?Cc(n):kc(n)}));return{Icon:G((()=>{switch(e.icon){case"success":return $(Un(Wn,t.value,38),{class:"uni-toast__icon"});case"error":return $(Un(qn,t.value,38),{class:"uni-toast__icon"});case"loading":return $("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=ic(e,{});return()=>{const{mask:r,duration:o,title:i,image:a}=e;return $(De,{name:"uni-fade"},{default:()=>[ue($("uni-toast",{"data-duration":o},[r?$("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Pn},null,40,["onTouchmove"]):"",a||t.value?$("div",{class:"uni-toast"},[a?$("img",{src:a,class:"uni-toast__icon"},null,10,["src"]):t.value,$("p",{class:"uni-toast__content"},[i])]):$("div",{class:"uni-sample-toast"},[$("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[ce,n.value]])]})}}});let jc,Hc,Fc="";const Wc=ft();function qc(e){jc?m(jc,e):(jc=x(m(e,{visible:!1})),fe((()=>{Wc.run((()=>{T([()=>jc.visible,()=>jc.duration],(([e,t])=>{if(e){if(Hc&&clearTimeout(Hc),"onShowLoading"===Fc)return;Hc=setTimeout((()=>{Kc("onHideToast")}),t)}else Hc&&clearTimeout(Hc)}))})),Od.on("onHidePopup",(()=>Kc("onHidePopup"))),rc(Vc,jc,(()=>{})).mount(oc("u-a-t"))}))),setTimeout((()=>{jc.visible=!0}),10)}const Uc=Po("showToast",((e,{resolve:t,reject:n})=>{qc(e),Fc="onShowToast",t()}),0,$i),zc={icon:"loading",duration:1e8,image:""},Yc=Po("showLoading",((e,{resolve:t,reject:n})=>{m(e,zc),qc(e),Fc="onShowLoading",t()}),0,Oi),Xc=Po("hideToast",((e,{resolve:t,reject:n})=>{Kc("onHideToast"),t()})),Gc=Po("hideLoading",((e,{resolve:t,reject:n})=>{Kc("onHideLoading"),t()}));function Kc(e){const{t:t}=Ut();if(!Fc)return;let n="";"onHideToast"===e&&"onShowToast"!==Fc?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==Fc&&(n=t("uni.showLoading.unpaired")),n||(Fc="",setTimeout((()=>{jc.visible=!1}),10))}function Jc(e){const t=X(0),n=X(0),r=G((()=>t.value>=500&&n.value>=500)),o=G((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},o=t.content,i=t.triangle,a=e.popover;function s(e){return Number(e)||0}if(r.value&&a){m(i,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=s(a.left),t=s(a.width?a.width:300),r=s(a.top),l=s(a.height),u=e+t/2;o.transform="none !important";const c=Math.max(0,u-t/2);o.left=`${c}px`,a.width&&(o.width=`${t}px`);let d=Math.max(12,u-c);d=Math.min(t-12,d),i.left=`${d}px`;const h=n.value/2;r+l-h>h-r?(o.top="auto",o.bottom=n.value-r+6+"px",i.bottom="-6px",i["border-width"]="6px 6px 0 6px",i["border-color"]="#fcfcfd transparent transparent transparent"):(o.top=`${r+l+6}px`,i.top="-6px",i["border-width"]="0 6px 6px 6px",i["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return C((()=>{const e=()=>{const{windowWidth:e,windowHeight:r,windowTop:o}=Nu();t.value=e,n.value=r+(o||0)};window.addEventListener("resize",e),e(),ve((()=>{window.removeEventListener("resize",e)}))}
57)),{isDesktop:r,popupStyle:o}}const Zc={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const Qc={title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},ed=g({name:"ActionSheet",props:Qc,emits:["close"],setup(e,{emit:t}){Xt();const n=X(260),r=X(0),o=X(0),i=X(0),a=X(0),s=X(null),l=X(null),{t:u}=Ut(),{_close:c}=function(e,t){function n(e){t("close",e)}const{key:r,disable:o}=tc();return T((()=>e.visible),(e=>o.value=!e)),ge((()=>{const{value:e}=r;"esc"===e&&n&&n(-1)})),{_close:n}}(e,t),{popupStyle:d}=Jc(e);let h;function f(e){const t=i.value+e.deltaY;Math.abs(t)>10?(a.value+=t/3,a.value=a.value>=r.value?r.value:a.value<=0?0:a.value,h.scrollTo(a.value)):i.value=t,e.preventDefault()}C((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:r}=bl(s.value,{enableY:!0,friction:new hl(1e-4),spring:new ml(2,90,20),onScroll:e=>{a.value=e.target.scrollTop}});h=e,Ks(s.value,(o=>{if(e)switch(o.detail.state){case"start":t(o);break;case"move":n(o);break;case"end":case"cancel":r(o)}}),!0)})),T((()=>e.visible),(()=>{fe((()=>{e.title&&(o.value=document.querySelector(".uni-actionsheet__title").offsetHeight),h.update(),s.value&&(r.value=s.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{!function(e){const t=20;let n=0,r=0;e.addEventListener("touchstart",(e=>{const t=e.changedTouches[0];n=t.clientX,r=t.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-n)<t&&Math.abs(o.clientY-r)<t){const t=e.target,n=e.currentTarget,r=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t,currentTarget:n});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{r[e]=o[e]})),e.target.dispatchEvent(r)}}))}(e)}))}))}));const p=function(e){const t=x({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=Zc[e][n]}))}(e,t)};return ge((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Mu()}),Cc(n))):kc(n)})),t}(e);return()=>$("uni-actionsheet",{onTouchmove:Pn},[$(De,{name:"uni-fade"},{default:()=>[ue($("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>c(-1)},null,8,["onClick"]),[[ce,e.visible]])]}),$("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[$("div",{ref:l,class:"uni-actionsheet__menu",onWheel:f},[e.title?$(Oe,null,[$("div",{class:"uni-actionsheet__cell",style:{height:`${o.value}px`}},null),$("div",{class:"uni-actionsheet__title"},[e.title])]):"",$("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[$("div",{ref:s},[e.itemList.map(((e,t)=>$("div",{key:t,style:{color:p.listItemColor},class:"uni-actionsheet__cell",onClick:()=>c(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),$("div",{class:"uni-actionsheet__action"},[$("div",{style:{color:p.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>c(-1)},[u("uni.showActionSheet.cancel")],12,["onClick"])]),$("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let td,nd,rd;const od=Ne((()=>{Od.on("onHidePopup",(()=>rd.visible=!1))}));function id(e){-1===e?nd&&nd("cancel"):td&&td({tapIndex:e})}const ad=Po("showActionSheet",((e,{resolve:t,reject:n})=>{od(),td=t,nd=n,rd?(m(rd,e),rd.visible=!0):(rd=x(e),fe((()=>(rc(ed,rd,id).mount(oc("u-s-a-s")),fe((()=>rd.visible=!0))))))}),0,Ri),sd=Po("loadFontFace",(({family:e,source:t,desc:n},{resolve:r,reject:o})=>{t=t.startsWith('url("')||t.startsWith("url('")?`url('${Ma(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${Ma(t.substring(4,t.length-1))}')`:Ma(t),ut(e,t,n).then((()=>{r()})).catch((e=>{o(`loadFontFace:fail ${e}`)}))}));function ld(e){function t(){var t;(t=e.navigationBar.titleText)&&t!==document.title&&(document.title=t),Od.emit(pt,{titleText:t})}ge(t),me(t)}const ud=Po("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,r,o){if(!e)return o("page not found");const{navigationBar:i}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:r}=n,{duration:o,timingFunc:a}=r;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=o+"ms",i.timingFunc=a;break;case"showNavigationBarLoading":i.loading=!0;break;case"hideNavigationBarLoading":i.loading=!1;break;case"setNavigationBarTitle":const{title:s}=n;i.titleText=s}r()}(Gn(),"setNavigationBarTitle",e,t,n)})),cd=Po("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:r})=>{Me(t||e||0,n),r()}),0,Di),dd=Po("stopPullDownRefresh",((e,{resolve:t})=>{Od.invokeViewMethod("stopPullDownRefresh",{},Kn()),t()})),hd=Or({name:"TabBar",setup(){const e=X([]),t=Ki(),n=function(e,t){const n=lt(e),r=n?x(Ec(e)):Ec(e);return __uniConfig.darkmode&&n&&T(e,(e=>{const t=Ec(e);for(const n in t)r[n]=t[n]})),t&&Cc(t),r}(t,(()=>{const e=Ec(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}X(m({type:"midButton"},e.midButton)),ge(n)}(n,e),function(e){T((()=>e.shown),(t=>{Nn({"--window-bottom":ra(t?parseInt(e.height):0)})}))}(n);const r=function(e,t,n){return ge((()=>{const r=e.meta;if(r.isTabBar){const e=r.route,o=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=o}})),(t,n)=>()=>{const{pagePath:r,text:o}=t;let i=$e(r);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?Fi({from:"tabBar",url:i,tabBarText:o}):tr("onTabItemTap",{index:n,text:o,pagePath:r})}}(Q(),n,e),{style:o,borderStyle:i,placeholderStyle:a}=function(e){const t=G((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||ea&&n&&"none"!==n&&(t=fd[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=G((()=>{const{borderStyle:t,borderColor:n}=e;return n&&W(n)?{backgroundColor:n}:{backgroundColor:pd[t]||pd.black}})),r=G((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:r}}(n);return C((()=>{n.iconfontSrc&&sd({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:r,selectedColor:o,color:i}=e;return n.value.map(((n,a)=>{const s=r===a;return function(e,t,n,r,o,i,a,s){return $("div",{key:a,class:"uni-tabbar__item",onClick:s(o,a)},[md(e,t||"",n,r,o,i)],8,["onClick"])}(s?o:i,s&&n.selectedIconPath||n.iconPath||"",n.iconfont?s&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?s&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,a,t)}))}(n,r,e);return $("uni-tabbar",{class:"uni-tabbar-"+n.position},[$("div",{class:"uni-tabbar",style:o.value},[$("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),$("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});const fd={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},pd={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function md(e,t,n,r,o,i){const{height:a}=i;return $("div",{class:"uni-tabbar__bd",style:{height:a}},[n?vd(n,r||"rgb(0, 0, 0, 0.8)",o,i):t&&gd(t,o,i),o.text&&yd(e,o,i),o.redDot&&bd(o.badge)],4)}function gd(e,t,n){const{type:r,text:o}=t,{iconWidth:i}=n;return $("div",{class:"uni-tabbar__icon"+(o?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==r&&$("img",{src:Ma(e)},null,8,["src"])],6)}function vd(e,t,n,r){var o;const{type:i,text:a}=n,{iconWidth:s}=r,l="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),u={width:s,height:s},c={fontSize:(null==(o=n.iconfont)?void 0:o.fontSize)||s,color:t};return $("div",{class:l,style:u},["midButton"!==i&&$("div",{class:"uni-tabbar__iconfont",style:c},[e],4)],6)}function yd(e,t,n){const{iconPath:r,text:o}=t,{fontSize:i,spacing:a}=n;return $("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:r?"normal":1.8,marginTop:r?a:"inherit"}},[o],4)}function bd(e){return $("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const _d=Or({name:"Layout",setup(e,{emit:t}){const n=X(null);Bn({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const r=function(){const e=Q();return{routeKey:G((()=>ya("/"+e.meta.route,Qr()))),isTabBar:G((()=>e.meta.isTabBar)),routeCache:_a}}(),{layoutState:o,windowState:i}=function(){Zr();{const e=x({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return T((()=>e.marginWidth),(e=>Bn({"--window-margin":e+"px"}))),T((()=>e.leftWindowWidth+e.marginWidth),(e=>{Bn({"--window-left":e+"px"})})),T((()=>e.rightWindowWidth+e.marginWidth),(e=>{Bn({"--window-right":e+"px"})})),{layoutState:e,windowState:G((()=>({})))}}}();!function(e,t){const n=Zr();function r(){const r=document.body.clientWidth,o=fa();let i={};if(o.length>0){i=ia(o[o.length-1]).meta}else{const e=sr(n.path,!0);e&&(i=e.meta)}const a=parseInt(String((Ee(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=r>a,s&&a?(e.marginWidth=(r-a)/2,fe((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,fe((()=>{const e=t.value;e&&e.removeAttribute("style")})))}T([()=>n.path],r),C((()=>{r(),window.addEventListener("resize",r)}))}(o,n);const a=function(e){const t=Zr(),n=Ki(),r=G((()=>t.meta.isTabBar&&n.shown));return Bn({"--tab-bar-height":n.height}),r}(),s=function(e){const t=X(!1);return G((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(a);return()=>{const e=function(e,t,n,r,o,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return $(Le,null,{default:H((({Component:r})=>[(V(),j(Ie,{matchBy:"key",cache:n},[(V(),j(Pe(r),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(r),t=function(e){return ue($(hd,null,null,512),[[ce,e.value]])}(a);return $("uni-app",{ref:n,class:s.value},[e,t],2)}}});const wd=Po("getScreenBrightness",(xd="getScreenBrightness",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(xd))));var xd;function Td(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ge(e)}function Sd(e){if(e.mode===Ed.TIME)return"00:00";if(e.mode===Ed.DATE){const t=(new Date).getFullYear()-150;
57switch(e.fields){case Ad.YEAR:return t.toString();case Ad.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Cd(e){if(e.mode===Ed.TIME)return"23:59";if(e.mode===Ed.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case Ad.YEAR:return t.toString();case Ad.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function kd(e,t,n,r){const o=e.mode===Ed.DATE?"-":":",i=e.mode===Ed.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Ed.TIME)a=2;else switch(e.fields){case Ad.YEAR:a=1;break;case Ad.MONTH:a=2;break;default:a=3}const s=String(n).split(o);let l=[];for(let u=0;u<a;u++){const e=s[u];l.push(i[u].indexOf(e))}return l.indexOf(-1)>=0&&(l=r?kd(e,t,r):l.map((()=>0))),l}const Ed={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},Ad={YEAR:"year",MONTH:"month",DAY:"day"},Md={PICKER:"picker",SELECT:"select"},Id=Rr({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Ed.SELECTOR,validator:e=>Object.values(Ed).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>Sd(e)},end:{type:String,default:e=>Cd(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){tn();const{t:r}=Ut(),o=X(null),i=X(null),a=X(null),s=X(null),l=X(!1),{state:u,rangeArray:c}=function(e){const t=x({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=G((()=>{let n=e.range;switch(e.mode){case Ed.SELECTOR:return[n];case Ed.MULTISELECTOR:return n;case Ed.TIME:return t.timeArray;case Ed.DATE:{const n=t.dateArray;switch(e.fields){case Ad.YEAR:return[n[0]];case Ad.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),d=Nr(o,t),{system:h,selectorTypeComputed:f,_show:p,_l10nColumn:m,_l10nItem:g,_input:v,_fixInputPosition:y,_pickerViewChange:b,_cancel:_,_change:w,_resetFormData:S,_getFormData:k,_createTime:E,_createDate:A,_setValueSync:I}=function(e,t,n,r,o,i,a){const s=function(){const e=X(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=X("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),u=G((()=>{const t=e.selectorType;return Object.values(Md).includes(t)?t:s.value?Md.PICKER:Md.SELECT})),c=G((()=>e.mode===Ed.DATE&&!Object.values(Ad).includes(e.fields)&&t.isDesktop?l.value:"")),d=G((()=>kd(e,t,e.start,Sd(e)))),h=G((()=>kd(e,t,e.end,Cd(e))));function f(n){if(e.disabled)return;t.valueChangeSource="";let r=o.value,i=n.currentTarget;r.remove(),(document.querySelector("uni-app")||document.body).appendChild(r),r.style.display="block";const a=i.getBoundingClientRect();t.popover={top:a.top,left:a.left,width:a.width,height:a.height},setTimeout((()=>{t.visible=!0}),20)}function p(){return{value:t.valueSync,key:e.name}}function m(){switch(e.mode){case Ed.SELECTOR:t.valueSync=0;break;case Ed.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case Ed.DATE:case Ed.TIME:t.valueSync=""}}function g(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function v(){let t=(new Date).getFullYear(),n=t-150,r=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&t<n&&(n=t)}if(e.end){const t=new Date(e.end).getFullYear();!isNaN(t)&&t>r&&(r=t)}return{start:n,end:r}}function y(){let e=[];const n=v();for(let t=n.start,i=n.end;t<=i;t++)e.push(String(t));let r=[];for(let t=1;t<=12;t++)r.push((t<10?"0":"")+t);let o=[];for(let t=1;t<=31;t++)o.push((t<10?"0":"")+t);t.dateArray.push(e,r,o)}function b(e){return 60*e[0]+e[1]}function _(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function w(e,t){for(let n=0;n<e.length&&n<t.length;n++)e[n]=t[n]}function x(){let n=e.value;switch(e.mode){case Ed.MULTISELECTOR:{te(n)||(n=t.valueArray),te(t.valueSync)||(t.valueSync=[]);const r=t.valueSync.length=Math.max(n.length,e.range.length);for(let o=0;o<r;o++){const r=Number(n[o]),i=Number(t.valueSync[o]),a=isNaN(r)?isNaN(i)?0:i:r,s=e.range[o]?e.range[o].length-1:0;t.valueSync.splice(o,1,a<0||a>s?0:a)}}break;case Ed.TIME:case Ed.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function S(){let n,r=t.valueSync;switch(e.mode){case Ed.MULTISELECTOR:n=[...r];break;case Ed.TIME:n=kd(e,t,r,ct({mode:Ed.TIME}));break;case Ed.DATE:n=kd(e,t,r,ct({mode:Ed.DATE}));break;default:n=[r]}t.oldValueArray=[...n],t.valueArray=[...n]}function C(){let n=t.valueArray;switch(e.mode){case Ed.SELECTOR:return n[0];case Ed.MULTISELECTOR:return n.map((e=>e));case Ed.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case Ed.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function k(){A(),t.valueChangeSource="click";const e=C();t.valueSync=te(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===c.value&&e){const{top:n,left:r,width:o,height:i}=t.popover,{pageX:a,pageY:s}=e;if(a>
57r&&a<r+o&&s>n&&s<n+i)return}A(),n("cancel",{},{})}function A(){t.visible=!1,setTimeout((()=>{let e=o.value;e.remove(),r.value.prepend(e),e.style.display="none"}),260)}function M(){e.mode===Ed.SELECTOR&&u.value===Md.SELECT&&(i.value.scrollTop=34*t.valueArray[0])}function I(e){const n=e.target;t.valueSync=n.value,fe((()=>{k()}))}function P(e){if("chrome"===c.value){const t=r.value.getBoundingClientRect(),n=32;a.value.style.left=e.clientX-t.left-1.5*n+"px",a.value.style.top=e.clientY-t.top-.5*n+"px"}}function L(e){t.valueArray=D(e.detail.value,!0)}function D(t,n){const{getLocale:r}=Ut();if(e.mode===Ed.DATE){const o=r();if(!o.startsWith("zh"))switch(e.fields){case Ad.YEAR:return t;case Ad.MONTH:return[t[1],t[0]];default:switch(o){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function R(t,n){const{getLocale:r}=Ut();if(e.mode===Ed.DATE){const o=r();if(o.startsWith("zh")){return t+["\u5e74","\u6708","\u65e5"][n]}if(e.fields!==Ad.YEAR&&n===(e.fields===Ad.MONTH||"es"!==o&&"fr"!==o?0:1)){let e;switch(o){case"es":e=["enero","febrero","marzo","abril","mayo","junio","\u200b\u200bjulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return T((()=>t.visible),(e=>{e?(clearTimeout(Pd),t.contentVisible=e,M()):Pd=setTimeout((()=>{t.contentVisible=e}),300)})),T([()=>e.mode,()=>e.value,()=>e.range],x,{deep:!0}),T((()=>t.valueSync),S,{deep:!0}),T((()=>t.valueArray),(r=>{if(e.mode===Ed.TIME||e.mode===Ed.DATE){const n=e.mode===Ed.TIME?b:_,r=t.valueArray,o=d.value,i=h.value;if(e.mode===Ed.DATE){const e=t.dateArray,n=e[2].length,o=Number(e[2][r[2]])||1,i=new Date(`${e[0][r[0]]}/${e[1][r[1]]}/${o}`).getDate();i<o&&(r[2]-=i+n-o)}n(r)<n(o)?w(r,o):n(r)>n(i)&&w(r,i)}r.forEach(((r,o)=>{r!==t.oldValueArray[o]&&(t.oldValueArray[o]=r,e.mode===Ed.MULTISELECTOR&&n("columnchange",{},{column:o,value:r}))}))})),{selectorTypeComputed:u,system:c,_show:f,_cancel:E,_change:k,_l10nColumn:D,_l10nItem:R,_input:I,_resetFormData:m,_getFormData:p,_createTime:g,_createDate:y,_setValueSync:x,_fixInputPosition:P,_pickerViewChange:L}}(e,u,d,o,i,a,s);!function(e,t,n){const{key:r,disable:o}=tc();ge((()=>{o.value=!e.visible})),T(r,(e=>{"esc"===e?t():"enter"===e&&n()}))}(u,_,w),function(e,t){const n=K(Hr,!1);if(n){const r={reset:e,submit:()=>{const e=["",null],{key:n,value:r}=t();return""!==n&&(e[0]=n,e[1]=r),e}};n.addField(r),M((()=>{n.removeField(r)}))}}(S,k),E(),A(),I();const P=Jc(u);return ge((()=>{u.isDesktop=P.isDesktop.value,u.popupStyle=P.popupStyle.value})),M((()=>{i.value&&i.value.remove()})),C((()=>{l.value=!0})),()=>{let t;const{visible:d,contentVisible:x,valueArray:T,popupStyle:S,valueSync:C}=u,{rangeKey:k,mode:E,start:A,end:M}=e,I=jr(e,"disabled");return $("uni-picker",J({ref:o},I,{onClick:Br(p)}),[l.value?$("div",{ref:i,class:["uni-picker-container",`uni-${E}-${f.value}`],onWheel:Pn,onTouchmove:Pn},[$(De,{name:"uni-fade"},{default:()=>[ue($("div",{class:"uni-mask uni-picker-mask",onClick:Br(_),onMousemove:y},null,40,["onClick","onMousemove"]),[[ce,d]])]}),h.value?null:$("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:S.content},[$("div",{class:"uni-picker-header",onClick:Ln},[$("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:Br(_)},[r("uni.picker.cancel")],8,["onClick"]),$("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:w},[r("uni.picker.done")],8,["onClick"])],8,["onClick"]),x?$(dl,{value:m(T),class:"uni-picker-content",onChange:b},Td(t=Re(m(c.value),((e,t)=>{let n;return $(_l,{key:t},Td(n=Re(e,((e,n)=>$("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[k]||"":g(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,$("div",{ref:a,class:"uni-picker-select",onWheel:Ln,onTouchmove:Ln},[Re(c.value[0],((e,t)=>$("div",{key:t,class:["uni-picker-item",{selected:T[0]===t}],onClick:()=>{T[0]=t,w()}},["object"==typeof e?e[k]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),$("div",{style:S.tri
57angle},null,4)],6)],40,["onWheel","onTouchmove"]):null,$("div",null,[n.default&&n.default()]),h.value?$("div",{class:"uni-picker-system",onMousemove:Br(y)},[$("input",{class:["uni-picker-system_input",h.value],ref:s,value:C,type:E,tabindex:"-1",min:A,max:M,onChange:e=>{v(e),Ln(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let Pd;const Ld=class e{constructor(){Vt(this,"_adConfig",null),Vt(this,"_isLoading",!1),Vt(this,"_callbacks",[]),Vt(this,"_configLast",0)}static get instance(){return e._instance||(e._instance=new e,e._instance._init()),e._instance}get adConfig(){return this._adConfig}get isExpired(){return null==this._adConfig||(!this._configLast||Math.abs(Date.now()-this._configLast)>e.CACHE_TIME)}_init(){var t=this._getConfig();null!==t&&t.last&&Math.abs(Date.now()-t.last)<=e.CACHE_TIME&&(this._adConfig=t.data,this._configLast=t.last)}get(t,n,r){if(e.IC++,null!=this._adConfig)return this._doCallback(t,n,r),void(this.isExpired&&this._loadAdConfig(t));this._callbacks.push({adpid:t,success:n,fail:r}),this._loadAdConfig(t)}_doCallback(t,n,r){e.IS++;var{a:o,b:i}=this._adConfig;const a=o[t];a?n(i,Array.isArray(a)?a:[a]):r(e.ERROR_INVALID_ADPID)}_loadAdConfig(t){var n;if(!0===this._isLoading)return;this._isLoading=!0;const r="undefined"!=typeof __uniConfig&&null!=(n=__uniConfig.appId)?n:"";gc({url:e.URL,method:"GET",timeout:8e3,data:{d:location.hostname,a:t,appid:r},dataType:"json",success:e=>{const t=e.data;if(0===t.ret){const e=t.data;this._adConfig=e,this._configLast=Date.now(),this._setConfig(e),this._callbacks.forEach((({adpid:e,success:t,fail:n})=>{this._doCallback(e,t,n)}))}else this._callbacks.forEach((e=>{e.fail({errCode:t.ret,errMsg:t.msg})}));this._callbacks=[]},fail:e=>{this._callbacks.forEach((t=>{t.fail(e)})),this._callbacks=[]},complete:e=>{this._isLoading=!1}})}_getConfig(){if(!navigator.cookieEnabled||!window.localStorage)return null;var t=localStorage.getItem(e.KEY);return t?JSON.parse(t):null}_setConfig(t){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(e.KEY,JSON.stringify({last:Date.now(),data:t}))}};Vt(Ld,"IC",0),Vt(Ld,"IS",0),Vt(Ld,"URL","https://hac1.dcloud.net.cn/ah5v2"),Vt(Ld,"KEY","uni_app_ad_config"),Vt(Ld,"CACHE_TIME",6e5),Vt(Ld,"ERROR_INVALID_ADPID",{"-5002":"invalid adpid"});const Dd=class e{static get instance(){return e._instance||(e._instance=new e),e._instance}constructor(){var e=this._getConfig();e&&e.guid?this._guid=e.guid:(this._guid=this._newGUID(),this._setConfig(this._guid))}get(e){this._process(Object.assign(e,{d:location.hostname,i:this._guid}))}_process(t){gc({url:e.URL,method:"GET",data:t,dataType:"json",success:()=>{}})}_newGUID(){let e="";const t="xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx";for(let n=0;n<t.length;n++)e+="x"===t[n]?(16*Math.random()|0).toString(16):t[n];return e.toUpperCase()}_getConfig(){if(!navigator.cookieEnabled||!window.localStorage)return null;var t=localStorage.getItem(e.KEY);return t?JSON.parse(t):null}_setConfig(t){if(!navigator.cookieEnabled||!window.localStorage)return null;localStorage.setItem(e.KEY,JSON.stringify({last:Date.now(),guid:t}))}};Vt(Dd,"URL","https://has1.dcloud.net.cn/ahl"),Vt(Dd,"KEY","uni_app_ad_guid");const Rd=m(cn,{publishHandler(e,t,n){Od.subscribeHandler(e,t,n)}}),Od=m(wr,{publishHandler(e,t,n){Rd.subscribeHandler(e,t,n)}}),Bd={name:"PageRefresh",setup(){const{pullToRefresh:e}=Kr();return{offset:e.offset,color:e.color}}},Nd=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},$d={class:"uni-page-refresh-inner"},Vd=["fill"],jd=[gt("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),gt("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Hd={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Fd=["stroke"];const Wd=Nd(Bd,[["render",function(e,t,n,r,o,i){return V(),mt("uni-page-refresh",null,[gt("div",{style:vt({"margin-top":r.offset+"px"}),class:"uni-page-refresh"},[gt("div",$d,[(V(),mt("svg",{fill:r.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},jd,8,Vd)),(V(),mt("svg",Hd,[gt("circle",{stroke:r.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Fd)]))])],4)])}]]);function qd(e,t,n){const r=Array.prototype.slice.call(e.changedTouches).filter((e=>e.identifier===t))[0];return!!r&&(e.deltaY=r.pageY-n,!0)}const Ud="aborting",zd="refreshing",Yd="restoring";function Xd(e){const t=Kr(),{id:n,pullToRefresh:r}=t,{range:o,height:i}=r;let a,s,l,u,c,d,h,f;zl((()=>{t.enablePullDownRefresh&&(f||(f=zd,v(),setTimeout((()=>{x()}),50)))}),"startPullDownRefresh",!1,n),zl((()=>{t.enablePullDownRefresh&&f===zd&&(y(),f=Yd,v(),function(e){if(!s)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{y(),f=p=m=null})))}),"stopPullDownRefresh",!1,n),C((()=>{a=e.value.$el,s=a.querySelector(".uni-page-refresh"),l=s.style,u=s.querySelector(".uni-page-refresh-inner").style}));let p=null,m=null;function g(e){f&&a&&a.classList[e]("uni-page-refresh--"+f)}function v(){g("add")}function y(){g("remove")}const b=Br((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];c=n.identifier,d=n.pageY,h=!([Ud,zd,Yd].indexOf(f)>=0)})),_=Br((e=>{if(!t.enablePullDownRefresh)return;if(!h)return;if(!qd(e,c,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(c=null);if(n<0&&!f)return;e.cancelable&&e.preventDefault(),null===p&&(m=n,f="pulling",v()),n-=m,n<0&&(n=0),p=n;(n>=o&&"reached"!==f||n<o&&"pulling"!==f)&&(y(),f="reached"===f?"pulling":"reached",v()),function(e){if(!s)return;let t=e/o;t>1?t=1:t*=t*t;const n=Math.round(e/(o/i))||0;u.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)})),w=Br((e=>{t.enablePullDownRefresh&&qd(e,c,d)&&null!==f&&("pulling"===f?(y(),f=Ud,v(),function(e){if(!s)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{y(),f=p=m=null}))):"reached"===f&&(y(),f=zd,v(),x()))}));function x(){s&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+i+"px, 0)",tr(n,dt))}return{onTouchstartPassive:b,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const Gd=Or({name:"PageBody",setup(e,t){const n=Kr(),r=X(null),o=X(null),i=n.enablePullDownRefresh?Xd(r):null,a=X(null);return T((()=>n.enablePullDownRefresh),(()=>{a.value=n.enablePullDownRefresh?i:null}),{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return $(Wd,{ref:e},null,512)}(r,n);return $(Oe,null,[e,$("uni-page-wrapper",J({ref:o},a.value),[$("uni-page-body",null,[F(t.slots,"default")]),null],16)])}}});const Kd=Or({name:"Page",setup(e,t){let n=Jr(Qr());n.navigationBar;const r={};return ld(n),()=>$("uni-page",{"data-page":n.route,style:r},[Jd(t),null])}});function Jd(e){return V(),j(Gd,{key:0},{default:H((()=>[F(e.slots,"page")])),_:3})}const Zd={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=jo;const Qd=Object.assign({}),eh=Object.assign;window.__uniConfig=eh({globalStyle:{backgroundColor:"#F8F8F8",navigationBar:{backgroundColor:"#F8F8F8",titleText:"uni-app",type:"default",titleColor:"#000000"},isNVue:!1},uniIdRouter:{},tabBar:{position:"bottom",color:"#7A7E83",selectedColor:"#ff6ba5",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/tabBar/home",iconPath:"/static/tabbar/home02.png",selectedIconPath:"/static/tabbar/home01.png",text:"\u9996\u9875"},{pagePath:"pages/tabBar/search",iconPath:"/static/tabbar/search02.png",selectedIconPath:"/static/tabbar/search01.png",text:"\u641c\u7d22"},{pagePath:"pages/tabBar/user",iconPath:"/static/tabbar/my02.png",selectedIconPath:"/static/tabbar/my01.png",text:"\u4e2a\u4eba\u4e2d\u5fc3"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},compilerVersion:"5.15"}
57,{appId:"__UNI__181170F",appName:"\u732b\u864e",appVersion:"2.0.9",appVersionCode:209,async:Zd,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(Qd).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return eh(e[n]||(e[n]={}),Qd[t].default),e}),{}),router:{mode:"hash",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const th={delay:Zd.delay,timeout:Zd.timeout,suspensible:Zd.suspensible};Zd.loading&&(th.loadingComponent={name:"SystemAsyncLoading",render:()=>$(wt(Zd.loading))}),Zd.error&&(th.errorComponent={name:"SystemAsyncError",props:["error"],render(){return $(wt(Zd.error),{error:this.error})}});const nh=()=>Et((()=>import("../44f7sum1.COI1jMDG.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then((e=>vu(e.default||e))),rh=_t(eh({loader:nh},th)),oh=()=>Et((()=>import("../wjze9phc.BfrQyOPl.js")),__vite__mapDeps([26,27,9,2,10,3,1,4,5,17,19,28,29,30,6,7,8,15,16,31,11,12,13,14,18,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,24,52,53,54,55,56,57,58,59,60,20,22,23,61])).then((e=>vu(e.default||e))),ih=_t(eh({loader:oh},th)),ah=()=>Et((()=>import("../67ymnr4r.4Mh1uQfq.js")),__vite__mapDeps([62,27,9,2,10,3,1,4,5,17,19,28,29,30,6,7,8,15,16,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,24,52,53,54,55,56,57,58,14,12,18,23,63])).then((e=>vu(e.default||e))),sh=_t(eh({loader:ah},th)),lh=()=>Et((()=>import("../p8qpqtgu.DN7XH3Dl.js")),__vite__mapDeps([64,27,9,2,10,3,1,4,5,17,19,28,29,65,66,38,39,40,41,42,43,6,7,8,44,45,48,49,50,51,24,52,53,54,55,56,59,12,60,14,15,16,18,67,23,68])).then((e=>vu(e.default||e))),uh=_t(eh({loader:lh},th)),ch=()=>Et((()=>import("../ab61q0a3.BAYQKkqC.js")),__vite__mapDeps([69,27,9,2,10,3,1,4,5,17,19,28,29,39,40,41,42,43,6,7,8,44,46,47,38,45,48,49,50,51,24,52,53,54,55,56,57,58,59,12,60,70,23,71,34,35,72,73])).then((e=>vu(e.default||e))),dh=_t(eh({loader:ch},th)),hh=()=>Et((()=>import("../dzejd4bd.DE-ADq1x.js")),__vite__mapDeps([74,9,2,10,3,7,8,23,75])).then((e=>vu(e.default||e))),fh=_t(eh({loader:hh},th)),ph=()=>Et((()=>import("../hhf9tbzn.D3eyjmBz.js")),__vite__mapDeps([76,1,2,3,4,5,9,10,39,40,41,42,43,6,7,8,17,44,48,49,50,51,24,52,53,54,55,56,15,16,77,20,23,78])).then((e=>vu(e.default||e))),mh=_t(eh({loader:ph},th)),gh=()=>Et((()=>import("../vg7ucu9q.DUfijCLa.js")),__vite__mapDeps([79,49,9,2,10,3,50,8,51,24,52,1,4,5,27,17,19,28,29,53,54,40,23,80])).then((e=>vu(e.default||e))),vh=_t(eh({loader:gh},th)),yh=()=>Et((()=>import("../9uwjvhxp.LxPJhiBB.js")),__vite__mapDeps([81,49,9,2,10,3,50,8,51,24,52,1,4,5,27,17,19,28,29,40,55,23,82])).then((e=>vu(e.default||e))),bh=_t(eh({loader:yh},th)),_h=()=>Et((()=>import("../5ixw4pjl.DbvG7eVl.js")),__vite__mapDeps([83,84,9,2,10,3,85,40,86,55,23,87])).then((e=>vu(e.default||e))),wh=_t(eh({loader:_h},th)),xh=()=>Et((()=>import("../ql26m203.CfQrBMHi.js")),__vite__mapDeps([88,84,9,2,10,3,85,40,86,51,23,89])).then((e=>vu(e.default||e))),Th=_t(eh({loader:xh},th)),Sh=()=>Et((()=>import("../osxtajph.CkZSxHOL.js")),__vite__mapDeps([90,84,9,2,10,3,85,40,86,23,91])).then((e=>vu(e.default||e))),Ch=_t(eh({loader:Sh},th)),kh=()=>Et((()=>import("../ctokkb7l.DWhLdmPg.js")),__vite__mapDeps([92,9,2,10,3,85,40,23,93])).then((e=>vu(e.default||e))),Eh=_t(eh({loader:kh},th)),Ah=()=>Et((()=>import("../yydvrdlj.DHgOfWBx.js")),__vite__mapDeps([94,27,9,2,10,3,1,4,5,17,19,28,29,30,6,7,8,15,16,31,11,12,13,14,18,65,66,38,39,40,41,42,43,44,45,48,49,50,51,24,52,53,54,55,56,57,58,59,60,23,95])).then((e=>vu(e.default||e))),Mh=_t(eh({loader:Ah},th)),Ih=()=>Et((()=>import("../jayf8tid.C2c_sOzV.js")),__vite__mapDeps([96,27,9,2,10,3,1,4,5,17,19,28,29,30,6,7,8,15,16,31,12,97,98,99,100,101,11,13,14,18,102,103,34,35,57,38,39,40,41,42,43,44,45,58,59,60,53,54,48,49,50,51,24,52,55,56,36,37,67,70,23,104,71,105])).then((e=>vu(e.default||e))),Ph=_t(eh({loader:Ih},th)),Lh=()=>Et((()=>import("../luwl3afa.B11OAonn.js")),__vite__mapDeps([106,27,9,2,10,3,1,4,5,17,19,28,29,30,6,7,8,15,16,31,102,103,34,35,38,39,40,41,42,43,44,45,48,49,50,51,24,52,53,54,55,56,57,58,36,37,14,12,18,97,98,99,100,101,85,107,104,23,108])).then((e=>vu(e.default||e))),Dh=_t(eh({loader:Lh},th)),Rh=()=>Et((()=>import("../ynrmteg7.UJnGsmQ-.js")),__vite__mapDeps([109,27,9,2,10,3,1,4,5,17,19,28,29,30,6,7,8,15,16,31,11,12,13,14,18,102,103,38,39,40,41,42,43,44,45,48,49,50,51,24,52,53,54,55,56,57,58,85,107,104,23,110])).then((e=>vu(e.default||e))),Oh=_t(eh({loader:Rh},th)),Bh=()=>Et((()=>import("../kyrykfz1.Dwg_uwtX.js")),__vite__mapDeps([111,9,2,10,3,84,85,40,86,1,4,5,38,39,41,42,43,6,7,8,17,44,19,45,46,47,23,112])).then((e=>vu(e.default||e))),Nh=_t(eh({loader:Bh},th)),$h=()=>Et((()=>import("../x4cajb4j.DKZ4u1qR.js")),__vite__mapDeps([113,27,9,2,10,3,1,4,5,17,19,28,29,39,40,41,42,43,6,7,8,44,46,47,38,45,71,34,35,23,114])).then((e=>vu(e.default||e))),Vh=_t(eh({loader:$h},th)),jh=()=>Et((()=>import("../dflsx8zy.C79_4Mvx.js")),__vite__mapDeps([115,9,2,10,3,85,40,23,116])).then((e=>vu(e.default||e))),Hh=_t(eh({loader:jh},th)),Fh=()=>Et((()=>import("../iqwfcfbo.gnDviNuE.js")),__vite__mapDeps([117,9,2,10,3,85,40,23,118])).then((e=>vu(e.default||e))),Wh=_t(eh({loader:Fh},th)),qh=()=>Et((()=>import("../152hs2f1.DUVkFtWV.js")),__vite__mapDeps([119,120,9,2,10,3,121,1,4,5,42,15,16,85,40,122,23,123])).then((e=>vu(e.default||e))),Uh=_t(eh({loader:qh},th)),zh=()=>Et((()=>import("../tkqpkfae.CSnoU_F-.js")),__vite__mapDeps([124,120,9,2,10,3,121,1,4,5,48,49,50,8,51,24,52,53,54,55,40,56,15,16,85,77,122,23,125])).then((e=>vu(e.default||e))),Yh=_t(eh({loader:zh},th)),Xh=()=>Et((()=>import("../mjrqmkqb.mT4NXupd.js")),__vite__mapDeps([126,84,9,2,10,3,85,40,86,23,127])).then((e=>vu(e.default||e))),Gh=_t(eh({loader:Xh},th)),Kh=()=>Et((()=>import("../o25a18xx.DMt11aMu.js")),__vite__mapDeps([128,84,9,2,10,3,85,40,86,1,4,5,41,42,43,17,28,19,72,23,129])).then((e=>vu(e.default||e))),Jh=_t(eh({loader:Kh},th)),Zh=()=>Et((()=>
57import("../zksxc37v.D8kxY7a0.js")),__vite__mapDeps([130,84,9,2,10,3,85,40,86,131,23,132])).then((e=>vu(e.default||e))),Qh=_t(eh({loader:Zh},th)),ef=()=>Et((()=>import("../27yzlfpj.B7hC2a0A.js")),__vite__mapDeps([133,84,9,2,10,3,85,40,86,1,4,5,70,23,134])).then((e=>vu(e.default||e))),tf=_t(eh({loader:ef},th)),nf=()=>Et((()=>import("../jxu3zf5g.BYYngXsV.js")),__vite__mapDeps([135,84,9,2,10,3,85,40,86,97,98,99,100,4,101,70,23,136])).then((e=>vu(e.default||e))),rf=_t(eh({loader:nf},th)),of=()=>Et((()=>import("../cz0oiwwx.CuIjXtp_.js")),__vite__mapDeps([137,84,9,2,10,3,85,40,86,1,4,5,104,23,138])).then((e=>vu(e.default||e))),af=_t(eh({loader:of},th)),sf=()=>Et((()=>import("../jhayvabw.7MESDpHk.js")),__vite__mapDeps([139,84,9,2,10,3,85,40,86,1,4,5,104,23,50,140])).then((e=>vu(e.default||e))),lf=_t(eh({loader:sf},th)),uf=()=>Et((()=>import("../xdtx0ye7.ChRSl0HS.js")),__vite__mapDeps([141,84,9,2,10,3,85,40,86,1,4,5,104,23,50,142])).then((e=>vu(e.default||e))),cf=_t(eh({loader:uf},th)),df=()=>Et((()=>import("../aideifqr.s9QuwTLC.js")),__vite__mapDeps([143,84,9,2,10,3,85,40,86,22,23,144,145])).then((e=>vu(e.default||e))),hf=_t(eh({loader:df},th)),ff=()=>Et((()=>import("../c3v97wua.DOKQ31z0.js")),__vite__mapDeps([146,84,9,2,10,3,85,40,86,48,49,50,8,51,24,52,53,54,55,56,22,23,147,144,148])).then((e=>vu(e.default||e))),pf=_t(eh({loader:ff},th)),mf=()=>Et((()=>import("../v2amu3c4.C_EDK8xe.js")),__vite__mapDeps([149,11,12,6,7,8,2,13,3,14,15,4,16,17,18,22,23,150])).then((e=>vu(e.default||e))),gf=_t(eh({loader:mf},th)),vf=()=>Et((()=>import("../ql3m9wrm.BDprQ-Vg.js")),__vite__mapDeps([151,24,2,23,152])).then((e=>vu(e.default||e))),yf=_t(eh({loader:vf},th)),bf=()=>Et((()=>import("../87hn6hll.B6ubdGvq.js")),__vite__mapDeps([153,2,23,154])).then((e=>vu(e.default||e))),_f=_t(eh({loader:bf},th)),wf=()=>Et((()=>import("../pi2exv6f.C0MpOHZF.js")),__vite__mapDeps([155,9,2,10,3,85,40,23,156])).then((e=>vu(e.default||e))),xf=_t(eh({loader:wf},th)),Tf=()=>Et((()=>import("../0bo3lq42.BgQC27i6.js")),__vite__mapDeps([157,84,9,2,10,3,85,40,86,1,4,5,22,23,144,147,19,158])).then((e=>vu(e.default||e))),Sf=_t(eh({loader:Tf},th)),Cf=()=>Et((()=>import("../ih1sn4wh.YLrWngVh.js")),__vite__mapDeps([159,84,9,2,10,3,85,40,86,22,23,147,144,160])).then((e=>vu(e.default||e))),kf=_t(eh({loader:Cf},th)),Ef=()=>Et((()=>import("../922wp7j0.DkCp2SPI.js")),__vite__mapDeps([161,84,9,2,10,3,85,40,86,1,4,5,22,23,144,15,16,162])).then((e=>vu(e.default||e))),Af=_t(eh({loader:Ef},th)),Mf=()=>Et((()=>import("../yzs7dilt.Ddah6IUf.js")),__vite__mapDeps([163,9,2,10,3,23,164])).then((e=>vu(e.default||e))),If=_t(eh({loader:Mf},th));function Pf(e,t){return V(),j(Kd,null,{page:H((()=>[$(e,eh({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/welcome/welcome",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(rh,t)}},loader:nh,meta:{isQuit:!0,isEntry:!0,backgroundColor:"#fff5f8",navigationBar:{titleText:"\u6b22\u8fce\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tabBar/home",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(ih,t)}},loader:oh,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"\u9996\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/index",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(sh,t)}},loader:ah,meta:{navigationBar:{titleText:"\u9996\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tabBar/search",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(uh,t)}},loader:lh,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"\u641c\u7d22\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tabBar/user",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(dh,t)}},loader:ch,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u4e2a\u4eba\u4e2d\u5fc3",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tabBar/game",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(fh,t)}},loader:hh,meta:{backgroundColor:"#000000",navigationBar:{titleText:"\u6e38\u620f\u5e73\u53f0",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/tabBar/welfare",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(mh,t)}},loader:ph,meta:{backgroundColor:"#0f1015",navigationBar:{titleText:"\u798f\u5229\u4e2d\u5fc3",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/auth/register",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(vh,t)}},loader:gh,meta:{navigationBar:{titleText:"\u6ce8\u518c\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/auth/login",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(bh,t)}},loader:yh,meta:{navigationBar:{titleText:"\u767b\u5f55\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/auth/forgot-password",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(wh,t)}},loader:_h,meta:{navigationBar:{titleText:"\u627e\u56de\u5bc6\u7801",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/phone-binding",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Th,t)}},loader:xh,meta:{backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u7ed1\u5b9a\u624b\u673a\u53f7",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/change-password",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Ch,t)}},loader:Sh,meta:{backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u4fee\u6539\u5bc6\u7801",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/stock-bind-nudge",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Eh,t)}},loader:kh,meta:{backgroundColor:"transparent",disableScroll:!0,animationType:"fade-in",animationDuration:200,background:"transparent",popGesture:"none",bounce:"none",navigationBar:{titleText:"",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/video-manga-list",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Mh,t)}},loader:Ah,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",navigationBar:{titleText:"\u89c6\u9891/\u6f2b\u753b\u4e13\u533a",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/video-detail",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Ph,t)}},loader:Ih,meta:{navigationBar:{titleText:"\u89c6\u9891\u9875",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/manga-detail",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Dh,t)}},loader:Lh,meta:{navigationBar:{titleText:"\u6f2b\u753b\u9875",style:"custom",type:"default"},isNVue:!1}}
57,{path:"/pages/index/art-detail",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Oh,t)}},loader:Rh,meta:{navigationBar:{titleText:"\u6587\u7ae0\u8be6\u60c5",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/lottery-records",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Nh,t)}},loader:Bh,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",navigationBar:{titleText:"\u62bd\u5956\u8bb0\u5f55",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/index",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Vh,t)}},loader:$h,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u4e2a\u4eba\u4e2d\u5fc3",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/profile",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Hh,t)}},loader:jh,meta:{backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u4e2a\u4eba\u8d44\u6599",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/settings",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Wh,t)}},loader:Fh,meta:{backgroundColor:"#f5f5f5",navigationBar:{titleText:"\u8bbe\u7f6e",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/chat",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Uh,t)}},loader:qh,meta:{backgroundColor:"#f5f5f5",navigationBar:{titleText:"\u5728\u7ebf\u5ba2\u670d",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/welfare/chat",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Yh,t)}},loader:zh,meta:{backgroundColor:"#101116",navigationBar:{titleText:"\u6d3b\u52a8\u5ba2\u670d",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/orders",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Gh,t)}},loader:Xh,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u6211\u7684\u8ba2\u5355",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/about",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Jh,t)}},loader:Kh,meta:{backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u5173\u4e8e\u6211\u4eec",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/signin",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Qh,t)}},loader:Zh,meta:{backgroundColor:"#fff5f8",navigationBar:{titleText:"\u6bcf\u65e5\u7b7e\u5230",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/video-cache",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(tf,t)}},loader:ef,meta:{backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u79bb\u7ebf\u7f13\u5b58",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/video-cache-play",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(rf,t)}},loader:nf,meta:{backgroundColor:"#000000",navigationBar:{titleText:"\u79bb\u7ebf\u64ad\u653e",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/view-history",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(af,t)}},loader:of,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u6d4f\u89c8\u8bb0\u5f55",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/favorites",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(lf,t)}},loader:sf,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u6211\u7684\u6536\u85cf",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/like-records",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(cf,t)}},loader:uf,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u70b9\u8d5e\u8bb0\u5f55",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/user/points-records",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(hf,t)}},loader:df,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f8f8",navigationBar:{titleText:"\u91d1\u5e01\u8bb0\u5f55",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/index",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(pf,t)}},loader:ff,meta:{backgroundColor:"#fff5f8",navigationBar:{titleText:"\u63a8\u5e7f\u8d5a\u91
57d1\u5e01",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/visit",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(gf,t)}},loader:mf,meta:{backgroundColor:"#ffffff",navigationBar:{titleText:"\u63a8\u5e7f\u94fe\u63a5",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/cps/visit",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(yf,t)}},loader:vf,meta:{backgroundColor:"#ffffff",navigationBar:{titleText:"\u6e20\u9053\u63a8\u5e7f",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/app-download",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(_f,t)}},loader:bf,meta:{backgroundColor:"#fff5f8",navigationBar:{titleText:"\u4e0b\u8f7dAPP",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/ios-install-guide",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(xf,t)}},loader:wf,meta:{backgroundColor:"#1a1a2e",navigationBar:{titleText:"iOS\u5b89\u88c5\u6307\u5357",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/list",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Sf,t)}},loader:Tf,meta:{enablePullDownRefresh:!1,backgroundTextStyle:"light",backgroundColor:"#ff6b9d",navigationBar:{titleText:"\u6211\u7684\u63a8\u5e7f",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/withdraw",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(kf,t)}},loader:Cf,meta:{backgroundColor:"#f8f9fa",navigationBar:{titleText:"\u91d1\u5e01\u63d0\u73b0",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/referral/withdraw-records",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(Af,t)}},loader:Ef,meta:{enablePullDownRefresh:!0,backgroundTextStyle:"dark",backgroundColor:"#f8f9fa",navigationBar:{titleText:"\u63d0\u73b0\u8bb0\u5f55",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/webview/webview",component:{setup(){const e=fu(),t=e&&e.$route&&e.$route.query||{};return()=>Pf(If,t)}},loader:Mf,meta:{backgroundColor:"#ffffff",navigationBar:{titleText:"\u7f51\u9875",style:"custom",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const Lf="http://api-serverce.maohu-community.org";const Df={get BASE_URL(){return function(){let e="unknown",t="unknown";try{const n=Nu();e=n.platform||"unknown",t=n.uniPlatform||"unknown"}catch(n){}return"web"===t||"h5"===t||"web"===e||"h5"===e?"":"app"===t||"app-plus"===t||"app"===e||"mp-weixin"===t||"mp-weixin"===e?Lf:""}()},get SOCKET_BASE_URL(){return"undefined"!=typeof window&&(null==(e=window.location)?void 0:e.origin)?window.location.origin:"";var e},get SOCKET_IO_PATH(){return"/api/socket.io"},CHAT_UPLOAD_URL:function(){return"/api/chat/upload"}(),WITHDRAW_QR_UPLOAD_URL:function(){return"/api/referral/withdraw/upload-qr"}(),WELFARE_CHAT_UPLOAD_URL:function(){return"/api/welfare-chat/upload"}(),TIMEOUT:3e4,AES_KEY:"f6322fa1c064370ea40c8cdc20649f8e",ENABLE_DECRYPT:!0,DEBUG:!1,RETRY_DEFAULT:3,RETRY_BASE_DELAY_MS:200,RETRY_MAX_DELAY_MS:2e3,RETRY_JITTER:.2,RETRY_MAX_ELAPSED_MS:5e3,RETRY_MAX_CONCURRENCY:4},Rf="accessToken",Of={"Content-Type":"application/json","Cache-Control":"no-cache"},Bf={IMAGE_CDN:"https://tpimg.aheadst.com",STATIC_CDN:"https://jsjtcss.aheadst.com",getImageCdn(e){return e||this.IMAGE_CDN},getStaticCdn(e){return e||this.STATIC_CDN},processFallbackConfig(e,t){if(!e||"object"!=typeof e)return e;const n=t||this.IMAGE_CDN||e.image_cdn,r=this.STATIC_CDN||e.static_cdn,o=n.replace(/\/$/,""),i=r.replace(/\/$/,""),a=["tpucipb.nphxewz.com","jhtlcz.nphxewz.com"],s=o.replace(/^https?:\/\//,""),l=["imageUrl","image","url","src","backgroundImage"];let u;try{u=JSON.parse(JSON.stringify(e))}catch(d){return e}function c(e){if(!e||"string"!=typeof e)return e;if(e.startsWith("/"))return`${o}${e}`;if(e.startsWith("http"))try{const t=new URL(e),n=t.hostname,r=t.pathname+t.search+t.hash,i=a.some((e=>n===e||n.endsWith(`.${e}`))),l=n!==s;return i||l?`${o}${r}`:e}catch(d){for(const n of a)if(e.includes(n)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`https?://${t}`,"g");return e.replace(r,o)}return e}return e}try{!function e(t){if(null!==t&&"object"==typeof t)if(Array.isArray(t))t.forEach((t=>e(t)));else for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];l.includes(n)&&"string"==typeof r?t[n]=c(r):"object"==typeof r&&e(r)}}
57(u),u.image_cdn=o,u.static_cdn=i}catch(d){return e}return u}};function Nf(e){const t=[];for(let n=0;n<e.length;n+=4)t.push((e[n]||0)<<24|(e[n+1]||0)<<16|(e[n+2]||0)<<8|(e[n+3]||0));return Ct.lib.WordArray.create(t,e.length)}function $f(e){const t=e.trim();if(!/^[0-9a-fA-F]*$/.test(t)||t.length%2!=0)throw new Error("Invalid hex input");const n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=parseInt(t.slice(r,r+2),16);return n}function Vf(e){const t=e.trim(),n=atob(t),r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}function jf(e,t,n="base64"){try{const o=function(e,t=16){if(!e)throw new Error("AES\u5bc6\u94a5\u4e0d\u80fd\u4e3a\u7a7a");const n=e.trim();if(/^[0-9a-fA-F]+$/.test(n)&&[32,48,64].includes(n.length))return $f(n).slice(0,t);try{if(/^[A-Za-z0-9+/=]+$/.test(n)){const e=Vf(n);if([16,24,32].includes(e.length))return e.slice(0,t)}}catch(o){}const r=(new TextEncoder).encode(n);if(r.length===t)return r;if(r.length>t)return r.slice(0,t);{const e=new Uint8Array(t);return e.set(r),e}}(t,16),i=function(e,t="base64"){return"hex"===t?$f(e):"base64"===t?Vf(e):(new TextEncoder).encode(e)}(e,n);if(i.length<16)throw new Error("Encrypted payload too short (need at least 16 bytes for IV)");const a=i.slice(0,16),s=i.slice(16),l=Nf(o),u=Nf(a),c=Nf(s),d=Ct.AES.decrypt({ciphertext:c},l,{iv:u,mode:Ct.mode.CBC,padding:Ct.pad.Pkcs7}),h=Ct.enc.Utf8.stringify(d);if(!h)throw new Error("Decryption produced empty result");try{return JSON.parse(h)}catch(r){return h}}catch(o){throw new Error("\u6570\u636e\u89e3\u5bc6\u5931\u8d25\uff1a"+o.message)}}function Hf(e="login",t={}){const{onSuccess:n,onClose:r,navigationOptions:o={},useReLaunch:i=!1}=t;"login"!==e&&"register"!==e&&(e="login"),qo("show-auth-popup",{tab:e,onSuccess:n,onClose:r})}function Ff(e={}){return Hf("login",e)}function Wf(e={}){return Hf("register",e)}let qf=null,Uf=[],zf=0,Yf=0,Xf=!1,Gf=!1,Kf=null,Jf=null;const Zf=new Map;function Qf(e){return"string"!=typeof e?"":e.trim().replace(/\/+$/,"")}function ep(e){try{const t=Uu(e);return null==t||""===t?null:"string"==typeof t?JSON.parse(t):t}catch(t){return null}}function tp(e,t){try{Wu(e,JSON.stringify(t))}catch(n){}}function np(e){try{zu(e)}catch(t){}}function rp(){try{const e=Nu(),t=e.platform||"",n=e.uniPlatform||"";return"web"===n||"h5"===n||"web"===t||"h5"===t}catch(e){return!1}}function op(){try{const e=Nu();return"android"===e.platform||"android"===e.osName}catch(e){return!1}}function ip(){try{const e=Nu();return"ios"===e.platform||"ios"===e.osName}catch(e){return!1}}function ap(){try{return 0===(Nu().uniPlatform||"").indexOf("mp-")}catch(e){return!1}}function sp(){return rp()?!function(){try{if("undefined"==typeof window||!window.location)return!1;const e=String(window.location.hostname||"").toLowerCase();return!!e&&("localhost"===e||"127.0.0.1"===e||"0.0.0.0"===e||"[::1]"===e||!!/^192\.168\.\d{1,3}\.\d{1,3}$/.test(e)||!!/^10\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(e)||/^172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}$/.test(e))}catch(e){return!1}}():op()||ip()}function lp(){return rp()?"":Qf(Lf)}function up(e){const t=Qf(e);return!("string"!=typeof(n=t)||!/^https?:\/\//i.test(n))&&(!(rp()&&!t.toLowerCase().startsWith("https://"))&&!function(e){const t=Qf(e);return""===t||t===Qf(Lf)}(t));var n}function cp(e){const t=new Set,n=[];
57return(Array.isArray(e)?e:[]).forEach((e=>{const r=Qf(e);up(r)&&!t.has(r)&&(t.add(r),n.push(r))})),n}function dp(){if(Xf)return;Xf=!0;const e=ep("mh_api_domain_state_v2");if(!e||2!==e.v)return;if(Uf=cp(e.domains),zf="number"==typeof e.expireAt?e.expireAt:0,Yf="number"==typeof e.savedAt?e.savedAt:0,zf<=Date.now())return;const t=readBadDomains(),n=Qf(e.currentBaseURL);qf=n&&up(n)&&!t.has(n)?n:lp(),Gf=!0}function hp(){const e=Date.now(),t=ep("mh_api_bad_domains_v1"),n=t&&Array.isArray(t.items)?t.items:[],r=new Map;return n.forEach((t=>{const n=Qf(t&&t.base),o=t&&"number"==typeof t.expireAt?t.expireAt:0;up(n)&&o>e&&r.set(n,o)})),tp("mh_api_bad_domains_v1",{v:1,items:Array.from(r.entries()).map((([e,t])=>({base:e,expireAt:t}))),savedAt:e,ttlMs:3e5}),r}function fp(){return new Set(hp().keys())}function pp(e,t=3e5){if(!sp())return;const n=Qf(e);if(!up(n))return;const r=hp();r.set(n,Date.now()+Math.max(1e3,t)),tp("mh_api_bad_domains_v1",{v:1,items:Array.from(r.entries()).map((([e,t])=>({base:e,expireAt:t}))),savedAt:Date.now(),ttlMs:t}),Zf.set(n,{available:!1,timestamp:Date.now()})}function mp(){np("mh_api_bad_domains_v1"),Zf.clear()}function gp(e){tp("mh_api_rr_cursor_v2",{v:1,cursor:Math.max(0,Math.floor(e||0)),savedAt:Date.now()})}function vp(e,t=""){const n=[...e];if(n.length<=1)return n;const r=t?n.indexOf(Qf(t)):-1,o=r>=0?(r+1)%n.length:function(){const e=ep("mh_api_rr_cursor_v2"),t=e&&"number"==typeof e.cursor?e.cursor:0;return Number.isFinite(t)?Math.max(0,Math.floor(t)):0}()%n.length;return n.slice(o).concat(n.slice(0,o))}function yp(e){return e&&200===e.code&&void 0!==e.data?e.data:e}function bp(e){return c(this,arguments,(function*(e,t=3e3,n={}){if(!sp())return!1;const r=Qf(e);if(!up(r))return!1;const o=Zf.get(r);if(!n.force&&o&&Date.now()-o.timestamp<3e5)return o.available;try{const e=new em({baseURL:r,timeout:t}),n=yp(yield e.get("/api/health",{},{retry:1,dedupe:!1,domainFailover:!1,_domainControlRequest:!0,timeout:t})),o=!(!n||"object"!=typeof n||"ok"!==String(n.status||"").toLowerCase());return Zf.set(r,{available:o,timestamp:Date.now()}),o}catch(i){return Zf.set(r,{available:!1,timestamp:Date.now()}),!1}}))}function _p(){return c(this,null,(function*(){const e=new em({baseURL:lp(),timeout:8e3}),t=function(e){let t=yp(e);return t&&Array.isArray(t.data)&&(t=t.data),t&&Array.isArray(t.list)&&(t=t.list),Array.isArray(t)?cp(t):null}(yield e.get("/api/app/api-domains",{},{retry:2,retryBaseDelayMs:300,retryMaxElapsedMs:16e3,dedupe:!1,domainFailover:!1,_domainControlRequest:!0,_skipAuthHeader:!0,_skipAuthRefresh:!0,timeout:8e3}));if(null==t)throw new Error("Invalid api-domains response");return t}))}function wp(e,t={}){return qf=Qf(e),Gf=!0,Yf=Date.now(),function(e={}){const t=Date.now();(e.refreshTtl||zf<=0)&&(zf=t+3e5),tp("mh_api_domain_state_v2",{v:2,domains:Uf,currentBaseURL:null==qf?lp():qf,savedAt:t,expireAt:zf})}({refreshTtl:!!t.refreshTtl}),qf}function xp(e){return c(this,arguments,(function*(e,t={}){const n=fp(),r=new Set((t.attemptedBases||[]).map(Qf)),o=vp(e,t.startAfterBase).filter((e=>!n.has(e)&&!r.has(e)));for(let i=0;i<o.length;i++){const e=o[i];if(yield bp(e,3e3,{force:!!t.forceHealth})){const n=Uf.indexOf(e);return n>=0&&gp(n+1),wp(e,{refreshTtl:!!t.refreshTtl})}}return null}))}function Tp(){return c(this,arguments,(function*(e=lp(),t={}){if(!sp())return e;dp();const n=Date.now(),r=null!=t.minIntervalMs?t.minIntervalMs:3e5,o=Gf&&zf>n;if(!t.forceRefresh&&o&&n-Yf<r)return null==qf?lp():qf;if(!t.forceRefresh&&o)return null==qf?lp():qf;if(Kf)return Kf;Kf=(()=>c(this,null,(function*(){const e=[...Uf];let t=[],n=!1;try{t=yield _p(),n=!0}catch(o){t=[]}Uf=n?t:e;const r=yield xp(Uf,{forceHealth:!0,refreshTtl:!0});return null!=r?r:wp(lp(),{refreshTtl:!0})})))();try{return yield Kf}finally{Kf=null}}))}function Sp(){return c(this,arguments,(function*(e={}){if(!sp())return lp();if(dp(),Gf&&zf>Date.now())return null==qf?lp():qf;const t=null!=e.maxWaitMs?e.maxWaitMs:7e3,n=Tp(lp(),{minIntervalMs:3e5});return t<=0?n:Promise.race([n,new Promise((e=>setTimeout((()=>e(lp())),t)))])}))}
57function Cp(){return c(this,arguments,(function*(e="",t={}){if(!sp())return{baseURL:lp(),isDefault:!0,exhausted:!0};dp();const n=Qf(e);up(n)&&pp(n);const r=new Set((t.attemptedBases||[]).map(Qf));if(Jf){const e=yield Jf,t=Qf(e&&e.baseURL);if(e&&!r.has(t))return e}Jf=(()=>c(this,null,(function*(){const e=yield xp(Uf,{attemptedBases:t.attemptedBases,startAfterBase:n,forceHealth:!1,refreshTtl:!1});if(null!=e)return{baseURL:e,isDefault:!1,exhausted:!1};return{baseURL:wp(lp(),{refreshTtl:!1}),isDefault:!0,exhausted:!1}})))();try{return yield Jf}finally{Jf=null}}))}function kp(){return sp()?(dp(),qf):null}function Ep(){const e=kp();return null==e?lp():e}function Ap(){return dp(),[...Uf]}function Mp(){return dp(),Math.min(10,Math.max(1,Uf.length+1))}function Ip(e){sp()&&(dp(),wp(e,{refreshTtl:!1}))}function Pp(){sp()&&(qf=null,Uf=[],zf=0,Gf=!1,Yf=0,Xf=!0,Zf.clear(),np("mh_api_domain_state_v2"),np("mh_h5_api_base_sel_v1"))}function Lp(){qf=null,Uf=[],zf=0,Yf=0,Gf=!1,Xf=!0,Zf.clear(),np("mh_api_domain_state_v2"),np("mh_api_bad_domains_v1"),np("mh_api_rr_cursor_v2"),np("mh_h5_api_base_sel_v1")}const Dp={DOMAIN_CACHE_TTL_MS:3e5,initAndSelectDomain:Tp,ensureDomainReady:Sp,switchToNextDomain:Cp,getDefaultBaseURL:lp,getCurrentBaseURL:kp,getCurrentBaseURLOrFallback:Ep,getCachedDomains:Ap,getMaxFailoverAttempts:Mp,setCurrentBaseURL:Ip,clearDomainCache:Pp,resetDomainManager:Lp,getBadDomains:fp,markBadDomain:pp,clearBadDomains:mp,validateDomain:bp,isH5Platform:rp,isAndroidPlatform:op,isIOSPlatform:ip,isMiniProgramPlatform:ap,shouldUseDynamicDomain:sp},Rp=Object.freeze(Object.defineProperty({__proto__:null,DOMAIN_CACHE_TTL_MS:3e5,clearBadDomains:mp,clearDomainCache:Pp,default:Dp,ensureDomainReady:Sp,getBadDomains:fp,getCachedDomains:Ap,getCurrentBaseURL:kp,getCurrentBaseURLOrFallback:Ep,getDefaultBaseURL:lp,getMaxFailoverAttempts:Mp,initAndSelectDomain:Tp,isAndroidPlatform:op,isH5Platform:rp,isIOSPlatform:ip,isMiniProgramPlatform:ap,markBadDomain:pp,resetDomainManager:Lp,setCurrentBaseURL:Ip,shouldUseDynamicDomain:sp,switchToNextDomain:Cp,validateDomain:bp},Symbol.toStringTag,{value:"Module"})),Op=["/api/configs","/api/categories/tree","/api/home/carousel","/api/vod/by-level","/api/vod/by-category","/api/manga/by-category","/api/art/by-category","/api/text-ad/list"],Bp=new Map;let Np=0;const $p=[];function Vp(e){return new Promise((t=>setTimeout(t,e)))}function jp(e,t){return"number"==typeof e&&Number.isFinite(e)?e:t}function Hp(e){if(!e||"string"!=typeof e)return"";if(e.startsWith("http://")||e.startsWith("https://"))try{return new URL(e).pathname||""}catch(t){return""}return(e.split("#")[0].split("?")[0]||"").trim()}function Fp(e){const t=Hp(e);return Op.some((e=>t===e||t.startsWith(e+"/")))}function Wp(e,t,n,r){return`${e||""}|${t||"GET"}|${function(e){if(!e||"string"!=typeof e)return"";if(e.startsWith("http://")||e.startsWith("https://"))try{const t=new URL(e);return`${t.pathname||""}${t.search||""}`}catch(t){return""}return e.split("#")[0].trim()}(n)}|${function(e){const t=new WeakSet,n=e=>{if(null==e)return"null";const r=typeof e;return"string"===r?JSON.stringify(e):"number"===r||"boolean"===r?String(e):"object"!==r?JSON.stringify(String(e)):t.has(e)?'"[Circular]"':(t.add(e),Array.isArray(e)?"["+e.map(n).join(",")+"]":"{"+Object.keys(e).sort().map((t=>JSON.stringify(t)+":"+n(e[t]))).join(",")+"}")};return n(e)}(r||{})}`}function qp(e){if(!e)return!1;const t=jp(e.statusCode,jp(e.code,null));if(null!=t)return 502===t||503===t||504===t||t>=520&&t<=524;const n=e.error&&(e.error.errMsg||e.error.message),r=String(e.errMsg||e.message||n||"").toLowerCase();return!!r.includes("timeout")||(!!r.includes("fail")||(!!r.includes("network")||!!(r.includes("dns")||r.includes("connection")||r.includes("abort"))))}function Up(e,t={}){if(!e)return!1;const n=jp(e.statusCode,jp(e.code,null));if(429===n)return!!t.legacyReadRetry&&!t.rateLimitRetried;return!!(null!=n?n>=500:qp(e))&&(!!t.explicitRetry||!!t.legacyReadRetry&&(!t.domainFailoverEnabled||!qp(e)))}function zp(e){return"__H5_REL__"===e?"":e}function Yp(e){return c(this,null,(function*(){const t=Math.max(1,jp(e,4));Np<t||(yield new Promise((e=>$p.push(e)))),Np+=1}))}function Xp(){Np=Math.max(0,Np-1);const e=$p.shift();"function"==typeof e&&e()}function Gp(){try{const e=Nu(),t="android"===e.platform||"android"===e.osName,n="ios"===e.platform||"ios"===e.osName,r="web"===e.uniPlatform||"h5"===e.uniPlatform||"web"===e.platform||"h5"===e.platform;return t||n||r?Rp:null}catch(e){return null}}let Kp=!1,Jp=[];const Zp={"/categories/tree":7200,"/configs":600,"/vod/by-category":600,"/vod/by-level":600};function Qp(e,t){const n="string"==typeof e?e:"",r=n.indexOf("?"),o=((r>=0?n.slice(0,r):n).trim()||"/").replace(/^\/api/,"")||"/",i=function(e){const t={};if(!e||"string"!=typeof e)return t;const n=e.replace(/^\?/,"");return n?(n.split("&").forEach((e=>{if(!e)return;const n=e.indexOf("=");
57if(-1===n)try{t[decodeURIComponent(e)]=""}catch(r){t[e]=""}else try{const r=decodeURIComponent(e.slice(0,n)),o=decodeURIComponent(e.slice(n+1)||"");t[r]=o}catch(r){t[e.slice(0,n)]=e.slice(n+1)}})),t):t}(r>=0?n.slice(r+1):""),a=t&&"object"==typeof t?t:{},l=s(s({},i),a),u=(c=l,Object.keys(c).sort().map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(null==c[e]?"":String(c[e]))}`)).join("&"));var c;return{pathNorm:o,queryNorm:u,fullKey:`${o}|${u}`}}class em{constructor(e={}){const t=Object.prototype.hasOwnProperty.call(e,"baseURL"),n=t?e.baseURL:Df.BASE_URL;this.baseURL=n,this._hasExplicitBaseURL=t,this.timeout=e.timeout||Df.TIMEOUT,this.aesKey=e.aesKey||Df.AES_KEY,this.enableDecrypt=void 0!==e.enableDecrypt?e.enableDecrypt:Df.ENABLE_DECRYPT,this.debug=void 0!==e.debug?e.debug:Df.DEBUG,this.requestInterceptors=[],this.responseInterceptors=[]}useRequestInterceptor(e,t){this.requestInterceptors.push({fulfilled:e,rejected:t})}useResponseInterceptor(e,t){this.responseInterceptors.push({fulfilled:e,rejected:t})}getToken(){try{return Uu("accessToken")||""}catch(e){return""}}setToken(e){try{Wu("accessToken",e)}catch(t){}}clearToken(){try{zu("accessToken"),zu("refreshToken")}catch(e){}}buildURL(e){if(e.startsWith("http://")||e.startsWith("https://"))return e;let t=this.baseURL;if(t&&""!==t||(t=Df.BASE_URL),!this._hasExplicitBaseURL)try{const e=Gp();if(e&&"function"==typeof e.shouldUseDynamicDomain&&e.shouldUseDynamicDomain()&&"function"==typeof e.getCurrentBaseURL){const n=e.getCurrentBaseURL();null!=n&&""!==n&&n!==Df.BASE_URL&&(t=n)}}catch(o){}if(!t||""===t)return e;const n=function(e,t){return t}(0,e),r=`${(t||"").replace(/\/+$/,"")||t}${n.startsWith("/")?"":"/"}${n}`;return this.debug,r}getBaseURLFingerprint(){let e=this.baseURL;if(e&&""!==e||(e=Df.BASE_URL),!this._hasExplicitBaseURL)try{const t=Gp();if(t&&"function"==typeof t.shouldUseDynamicDomain&&t.shouldUseDynamicDomain()&&"function"==typeof t.getCurrentBaseURL){const n=t.getCurrentBaseURL();null!=n&&""!==n&&n!==Df.BASE_URL&&(e=n)}}catch(t){}try{const t=Nu();if(("web"===t.uniPlatform||"h5"===t.uniPlatform||"web"===t.platform||"h5"===t.platform)&&(!e||""===e))return"__H5_REL__"}catch(t){}return e&&""!==e||(e=Lf),(e||"").replace(/\/+$/,"")||""}buildHeaders(e={},t=!1){const n=s({},Of);if(e&&"object"==typeof e&&Object.keys(e).forEach((t=>{const r=e[t];null==r?delete n[t]:(n[t]=r,this.debug)})),!t){const e=this.getToken();e&&(n.Authorization=`Bearer ${e}`)}try{const e=Nu();("web"===e.uniPlatform||"h5"===e.uniPlatform||"web"===e.platform||"h5"===e.platform)&&(delete n["Cache-Control"],delete n.Pragma,delete n.Expires)}catch(r){}return n}runRequestInterceptors(e){return c(this,null,(function*(){let t=e;for(const e of this.requestInterceptors)try{e.fulfilled&&(t=yield e.fulfilled(t))}catch(n){if(e.rejected)return e.rejected(n);throw n}return t}))}runResponseInterceptors(e){return c(this,null,(function*(){let t=e;for(const e of this.responseInterceptors)try{e.fulfilled&&(t=yield e.fulfilled(t))}catch(n){if(e.rejected)return e.rejected(n);throw n}return t}))}request(){return c(this,arguments,(function*(e={}){const t=e.url||"",n=function(e){const t=String(e||"GET").toUpperCase();return"GET"===t||"HEAD"===t}(String(e.method||"GET").toUpperCase()),r=function(e){if("string"!=typeof e||/^https?:\/\//i.test(e))return!1;const t=Hp(e);return"/api"===t||t.startsWith("/api/")}(t),o=!!e._domainControlRequest,i=Gp(),a=!(!i||"function"!=typeof i.shouldUseDynamicDomain||!i.shouldUseDynamicDomain()),d=n&&r&&!this._hasExplicitBaseURL&&!o&&a&&!1!==e.domainFailover;if(d)try{"function"==typeof i.ensureDomainReady&&(yield i.ensureDomainReady({maxWaitMs:7e3}))}catch(H){}const h=void 0!==e.dedupe?!!e.dedupe:n&&r&&!o&&Fp(t),f=n&&Fp(t),p=jp(Df.RETRY_DEFAULT,3),m=void 0!==e.retry,g=m?Math.max(1,jp(e.retry,1)):f?p:1,v=jp(e.retryBaseDelayMs,jp(Df.RETRY_BASE_DELAY_MS,200)),y=jp(e.retryMaxDelayMs,jp(Df.RETRY_MAX_DELAY_MS,2e3)),b=(_=jp(e.retryJitter,jp(Df.RETRY_JITTER,.2)),w=0,x=1,Math.max(w,Math.min(x,_)));var _,w,x;const T=jp(e.retryMaxElapsedMs,jp(Df.RETRY_MAX_ELAPSED_MS,5e3)),S=jp(e.retryMaxConcurrency,jp(Df.RETRY_MAX_CONCURRENCY,4)),C=jp(e.retryDelayMsOn502,1e3),k=jp(e.delayBeforeSendMs,0),E=this.getBaseURLFingerprint(),A=e.dedupeKey||Wp(E,e.method||"GET",t,e.data);if(h){const e=Bp.get(A);if(e)return e}const M=e.header||{},I=this.buildHeaders(M,e._skipAuthHeader),P=e,{header:L,url:D}=P,R=u(P,["header","url"]),O=this.buildURL(e.url),B={};
57Object.keys(I).forEach((e=>{const t=I[e];null!=t&&(B[e]=t)}));let N=l(s({method:e.method||"GET",data:e.data,timeout:e.timeout||this.timeout},R),{header:B,url:O});try{N=yield this.runRequestInterceptors(N)}catch(F){return Promise.reject(F)}const $=N.url;if(!$){const e=new Error(`URL\u683c\u5f0f\u9519\u8bef: ${$}\u3002URL \u4e0d\u80fd\u4e3a\u7a7a`);return Promise.reject({errMsg:e.message,error:e})}this.debug,$.startsWith("http://")||$.startsWith("https://");const V=()=>new Promise(((e,t)=>{gc(l(s({},N),{url:$,success:n=>c(this,null,(function*(){this.debug;try{let o=yield this.runResponseInterceptors(n);const i=o.statusCode;if(i<200||i>=300){let e=`HTTP\u9519\u8bef: ${i}`;o.data&&"object"==typeof o.data&&(o.data.message?e=o.data.message:o.data.msg&&(e=o.data.msg)),e===`HTTP\u9519\u8bef: ${i}`&&(400===i?e="\u8bf7\u6c42\u53c2\u6570\u9519\u8bef":401===i?e="\u672a\u6388\u6743\uff0c\u8bf7\u767b\u5f55":403===i?e="\u6ca1\u6709\u6743\u9650\u8bbf\u95ee":404===i?e="\u8bf7\u6c42\u7684\u8d44\u6e90\u4e0d\u5b58\u5728":429===i?e="\u8bf7\u6c42\u8fc7\u4e8e\u9891\u7e41\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5":500===i?e="\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef":502===i?e="\u7f51\u5173\u9519\u8bef":503===i&&(e="\u670d\u52a1\u6682\u65f6\u4e0d\u53ef\u7528"));const n={errMsg:e,statusCode:i,code:i,error:o.data||o,data:o.data,config:N,originalRequest:N};return 429===i&&o.data&&o.data.retryAfter&&(n.retryAfter=o.data.retryAfter),void t(n)}let a=o.data;if(204===i)return void e({code:200,msg:"\u64cd\u4f5c\u6210\u529f",data:null});const s=function(e){var t;const n=e.header||e.headers||{},r=n["X-Encrypted"]||n["x-encrypted"]||"";if(r){const e=r.split(":").map((e=>e.trim())),t=(e[0]||"").toUpperCase(),n=(e[1]||"base64").toLowerCase();if("AES-128-CBC"===t)return{method:t,format:n}}return(null==(t=e.data)?void 0:t.data)&&"string"==typeof e.data.data&&e.data.data.length>100?{method:"AES-128-CBC",format:"base64"}:null}(o);if(s){this.debug;try{a="string"==typeof a?jf(a,this.aesKey,s.format):function(e,t,n="base64"){try{if("string"==typeof e.data){const r=jf(e.data,t,n);return{code:e.code,msg:e.msg,data:r}}return e}catch(F){throw F}}(a,this.aesKey,s.format),this.debug}catch(r){return void t({errMsg:"\u6570\u636e\u89e3\u5bc6\u5931\u8d25",error:r,originalData:a})}}if(void 0!==a.code&&200!==a.code)return void t({errMsg:a.msg||"\u8bf7\u6c42\u5931\u8d25",code:a.code,data:a.data});e(a)}catch(F){t({errMsg:F.message||"\u8bf7\u6c42\u5904\u7406\u5931\u8d25",error:F})}})),fail:e=>{let n="\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25";e.errMsg&&(e.errMsg.includes("timeout")?n="\u8bf7\u6c42\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5":e.errMsg.includes("fail")&&(n="\u7f51\u7edc\u8fde\u63a5\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8bbe\u7f6e")),t({errMsg:n,error:e})}}))})),j=(()=>c(this,null,(function*(){const t=Date.now();let n=null,r=!1;for(let e=1;e<=g;e++)try{k>0&&1===e&&(yield Vp(k)),e>=2&&(yield Yp(S));try{return yield V()}finally{e>=2&&Xp()}}catch(o){n=o;const i=jp(o&&o.statusCode,jp(o&&o.code,null)),a=Date.now()-t;if(!(e<g&&a<T&&Up(o,{legacyReadRetry:f,rateLimitRetried:r,explicitRetry:m,domainFailoverEnabled:d})))break;if(429===i){r=!0;const e=Math.min(3e3,1e3*jp(o&&o.retryAfter,1));yield Vp(Math.max(0,e))}else if(502===i)yield Vp(Math.max(0,C));else{const t=Math.pow(2,e-1),n=v*t,r=Math.min(y,n),o=1+(2*Math.random()-1)*b,i=Math.max(0,Math.floor(r*o));yield Vp(i)}}if(d&&function(e,t){if(qp(e))return!0;const n=jp(e&&e.statusCode,jp(e&&e.code,null));return!!t&&null!=n&&n>=500}(n,f))try{const t=Gp();if(t&&"function"==typeof t.switchToNextDomain){const r=E,o=zp(r),i=Array.isArray(e._domainAttemptedFingerprints)?[...e._domainAttemptedFingerprints]:[];i.includes(r)||i.push(r);const a=jp(e._domainFailoverDepth,0);if(a>=("function"==typeof t.getMaxFailoverAttempts?t.getMaxFailoverAttempts():6)-1)throw n;const u=yield t.switchToNextDomain(o,{attemptedBases:i.map(zp)});if(!u||u.exhausted)throw n;const c=this.getBaseURLFingerprint();if(i.includes(c))throw n;return yield this.request(l(s({},e),{retry:1,dedupe:!1,delayBeforeSendMs:0,_domainFailoverDepth:a+1,_domainAttemptedFingerprints:i}))}}catch(H){}throw n})))();return h&&(Bp.set(A,j),j.finally((()=>{Bp.get(A)===j&&Bp.delete(A)}))),j}))}get(e,t={},n={}){return this.request(s({url:e,method:"GET",data:t},n))}_getApiCacheTtlSeconds(e){const t=e.startsWith("/api")?e:`/api${e.startsWith("/")?e:`/${e}`}`,n=this.getApiCacheRules(),r=Array.isArray(n)?n.find((n=>{if(!n||!n.path)return!1;return(n.path.replace(/^\/api/,"")||"/")===e||n.path===t||t===(n.path||"")})):null;if(r&&null!=r.ttl&&r.ttl>0)return r.ttl;const o=Zp[e];return null!=o&&o>0?o:0}_storageKeyForApiCache(e){return"mh_ac_v1_"+function(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n),t|=0;return(t>>>0).toString(16)}(`1|${this.getBaseURLFingerprint()}|${e}`)}_readPersistentApiCache(e){try{const t=Uu(e);if(null==t||""===t)return null;const n="string"==typeof t?JSON.parse(t):t;return n&&1===n.v&&n.data?"number"!=typeof n.expireAt||n.expireAt<=Date.now()?null:{data:n.data,expireAt:n.expireAt}:null}catch(t){return null}}_writePersistentApiCache(e,t,n){try{const r=JSON.stringify({v:1,expireAt:n,savedAt:Date.now(),data:t});Wu(e,r)}catch(r){}}getWithMemoryCache(e,t={},n={}){const{pathNorm:r,queryNorm:o,fullKey:i}=Qp(e,t),a=this._getApiCacheTtlSeconds(r);if(!a||a<=0)return this.get(e,t,n);const s=!1!==n.persist,l=n,{persist:c}=l,d=u(l,["persist"]),h=Date.now(),f=1e3*a,p=s?this._storageKeyForApiCache(i):null,m=this._memoryCacheStore||(this._memoryCacheStore=new Map),g=m.get(i);if(g&&g.expireAt>h)return Promise.resolve(g.data);if(s&&p){const e=this._readPersistentApiCache(p);if(null!=e)return m.set(i,{data:e.data,expireAt:e.expireAt}),Promise.resolve(e.data)}if(this._memoryCachePending&&this._memoryCachePending[i])return this._memoryCachePending[i];const v=this.get(e,t,d).then((e=>(this._memoryCachePending&&delete this._memoryCachePending[i],m.set(i,{data:e,expireAt:h+f}),s&&p&&this._writePersistentApiCache(p,e,h+f),e))).catch((e=>{throw this._memoryCachePending&&delete this._memoryCachePending[i],e}));return this._memoryCachePending||(this._memoryCachePending={}),this._memoryCachePending[i]=v,v}setApiCacheRules(e){this._apiCacheRules=Array.isArray(e)?e:[]}getApiCacheRules(){return this._apiCacheRules||[]}post(e,t={},n={}){return this.request(s({url:e,method:"POST",data:t},n))}put(e,t={},n={}){return this.request(s({url:e,method:"PUT",data:t},n))}delete(e,t={},n={}){return this.request(s({url:e,method:"DELETE",data:t},n))}upload(e,t,n={},r={}){const o=this.buildURL(e),i=this.buildHeaders(r.header);return this.debug,new Promise(((e,a)=>{xc({url:o,filePath:t,name:r.name||"file",formData:n,header:i,success:t=>{if(200===t.statusCode)try{const n=JSON.parse(t.data);e(n)}catch(n){e(t.data)}else a({errMsg:`\u4e0a\u4f20\u5931\u8d25: ${t.statusCode}`,error:t})},fail:e=>{a({errMsg:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25",error:e})}})}))}}const tm=new em;tm.useRequestInterceptor((e=>e),(e=>Promise.reject(e))),tm.useResponseInterceptor((e=>e),(e=>c(void 0,null,(function*(){if(401===e.code||401===e.statusCode){const o=e.config||e.originalRequest;if(o&&o._skipAuthRefresh)return tm.clearToken(),Uc({title:"\u767b\u5f55\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",icon:"none"}),setTimeout((()=>{Ff()}),1500),Promise.reject(e);const i=Uu("refreshToken");if(!i)return tm.clearToken(),Uc({title:"\u767b\u5f55\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",icon:"none"}),setTimeout((()=>{Ff()}),1500),Promise.reject(e);
57if(Kp)return new Promise((t=>{var n;n=n=>{o?(o.header=o.header||{},o.header.Authorization=`Bearer ${n}`,t(tm.request(o))):t(e)},Jp.push(n)}));Kp=!0;try{const r=yield Et((()=>Promise.resolve().then((()=>xv))),void 0),a=yield r.refreshToken(i);if(a&&a.data){const{accessToken:i,refreshToken:s,expiresIn:l}=a.data;let u=r.getCurrentUser();try{(yield r.refreshUserProfile(!1))&&(u=r.getCurrentUser())}catch(n){u=r.getCurrentUser()}return u||(u=r.getCurrentUser()),r.saveAuthData({accessToken:i,refreshToken:s,expiresIn:l,user:u||{}}),qo("auth-status-changed",{isLoggedIn:!0,user:u}),t=i,Jp.forEach((e=>e(t))),Jp=[],o?(o.header=o.header||{},o.header.Authorization=`Bearer ${i}`,tm.request(o)):Promise.reject(e)}throw new Error("\u5237\u65b0Token\u8fd4\u56de\u6570\u636e\u5f02\u5e38")}catch(r){return Jp=[],qo("auth-status-changed",{isLoggedIn:!1,reason:"refresh-failed",error:r}),tm.clearToken(),Uc({title:"\u767b\u5f55\u5df2\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55",icon:"none"}),setTimeout((()=>{const{navigateToLogin:e}=require("@/utils/auth-popup.js");e()}),1500),Promise.reject(r)}finally{Kp=!1}}var t;return Promise.reject(e)}))));const nm=Object.freeze(Object.defineProperty({__proto__:null,HttpRequest:em,default:tm},Symbol.toStringTag,{value:"Module"}));function rm(){return{versionName:"1.0.0",versionCode:0}}function om(){try{return!(!window.navigator||!window.navigator.standalone)||!!window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches}catch(e){return!1}}function im(){try{if(!om())return!1;const e="undefined"!=typeof uni&&Nu?Nu():null;return!(!e||"ios"!==e.platform)}catch(e){return!1}}function am(){return!om()}function sm(){return om()}function lm(){try{if("undefined"==typeof uni||"function"!=typeof Nu)return"";const t=Nu();if(!t)return"";const n=String(t.uniPlatform||"").trim().toLowerCase(),r=String(t.osName||"").toLowerCase(),o=String(t.platform||"").toLowerCase();if("web"===n||"h5"===n){try{if("undefined"!=typeof window&&im())return"h5_ios_webclip"}catch(e){}return"h5_browser"}if("app"===n||"app-android"===n||"app-ios"===n)return"android"===o||"android"===r?"app_android":"ios"===o||"ios"===r?"app_ios":"";if(!n){if("undefined"!=typeof plus&&plus.runtime)return"android"===o||"android"===r?"app_android":"ios"===o||"ios"===r?"app_ios":"";if("undefined"!=typeof window){try{if(im())return"h5_ios_webclip"}catch(e){}return"h5_browser"}return""}return""}catch(e){return""}}function um(){return lm()}function cm(){try{if("undefined"!=typeof uni&&"function"==typeof Nu){const e=Nu(),t=String(e&&e.osName||"").toLowerCase(),n=String(e&&e.platform||"").toLowerCase();if("android"===t||"android"===n)return!0}}catch(e){}try{if("undefined"!=typeof navigator&&/Android/i.test(String(navigator.userAgent||"")))return!0}catch(e){}return!1}function dm(){const e=um();return{clientScene:e,androidAppVersion:gm(e)}}function hm(){const e=um();try{if("undefined"==typeof uni||"function"!=typeof Nu)return{clientScene:e,platform:"",appVersion:"",deviceBrand:"",deviceModel:"",osName:"",osVersion:""};const t=Nu()||{},n=String(t.platform||"").trim().toLowerCase(),r=String(t.osName||"").trim().toLowerCase();return{clientScene:e,platform:n||r||fm(e),appVersion:String(t.appVersion||t.version||"").trim().slice(0,64),deviceBrand:String(t.brand||"").trim().slice(0,64),deviceModel:String(t.model||"").trim().slice(0,128),osName:r||pm(String(t.system||"")),osVersion:mm(String(t.system||""))}}catch(t){return{clientScene:e,platform:fm(e),appVersion:"",deviceBrand:"",deviceModel:"",osName:"",osVersion:""}}}function fm(e){return"app_android"===e?"android":"app_ios"===e||"h5_ios_webclip"===e?"ios":"h5_browser"===e?"h5":""}function pm(e){const t=String(e||"").trim().toLowerCase();return t?t.includes("android")?"android":t.includes("ios")?"ios":t.includes("windows")?"windows":t.includes("mac")?"mac":t.includes("linux")?"linux":t.slice(0,64):""}function mm(e){const t=String(e||"").trim();if(!t)return"";const n=t.split(/\s+/);return n.length<=1?t.slice(0,64):n.slice(1).join(" ").slice(0,64)}function gm(e){if("app_android"!==e)return"";
57try{const e={versionName:"1.0.0",versionCode:0},t=String((null==e?void 0:e.versionName)||"").trim();if(t)return t.slice(0,32)}catch(t){}try{if("undefined"!=typeof uni&&"function"==typeof Nu){const e=Nu()||{};return String(e.appVersion||e.version||"").trim().slice(0,32)}}catch(n){}return""}function vm(){return c(this,arguments,(function*(e={}){if(!(!0===e.forceFingerprint)&&!sm())return"";try{if(Sm())return km();const e=_m();let t=Uu("deviceId");if(t&&t.startsWith("h5_fp_")){if(t.replace("h5_fp_","")===e)return t}return t=`h5_fp_${e}`,Wu("deviceId",t),t}catch(t){return Em()}}))}function ym(){return c(this,null,(function*(){const e=yield function(){return c(this,null,(function*(){return vm({forceFingerprint:!0})}))}(),t={deviceId:e,installId:"",fingerprintId:""};return Sm()&&(t.installId=e,t.fingerprintId=Cm()),t}))}function bm(){const e=function(){try{if("undefined"!=typeof uni&&Nu)return Nu()||{}}catch(e){}return{}}();return{platform:e.platform||"",systemInfo:{brand:e.brand||"",model:e.model||"",system:e.system||"",platform:e.platform||"",appVersion:e.appVersion||e.version||"",uniPlatform:e.uniPlatform||""}}}function _m(e={}){const t=!0===e.extended;try{const e=[];if(navigator.userAgent&&e.push("ua:"+navigator.userAgent),screen.width&&screen.height&&e.push("screen:"+screen.width+"x"+screen.height),t&&screen.availWidth&&screen.availHeight&&e.push("avail:"+screen.availWidth+"x"+screen.availHeight),screen.colorDepth&&e.push("color:"+screen.colorDepth),t&&"undefined"!=typeof window&&Number.isFinite(window.devicePixelRatio)&&e.push("dpr:"+window.devicePixelRatio),Intl&&Intl.DateTimeFormat){const t=Intl.DateTimeFormat().resolvedOptions().timeZone;t?e.push("tz:"+t):e.push("tz_offset:"+(new Date).getTimezoneOffset())}else e.push("tz_offset:"+(new Date).getTimezoneOffset());navigator.language&&e.push("lang:"+navigator.language),navigator.languages&&navigator.languages.length>0&&e.push("langs:"+navigator.languages.slice(0,3).join(",")),t&&(navigator.platform&&e.push("platform:"+navigator.platform),navigator.vendor&&e.push("vendor:"+navigator.vendor),"number"==typeof navigator.maxTouchPoints&&e.push("touch:"+navigator.maxTouchPoints),"number"==typeof navigator.hardwareConcurrency&&e.push("cpu:"+navigator.hardwareConcurrency));try{const t=document.createElement("canvas"),n=t.getContext("2d");if(n){n.textBaseline="top",n.font="14px Arial",n.fillText("Device fingerprint",2,2);const r=t.toDataURL();e.push("canvas:"+wm(r))}}catch(n){}if(t)try{const t=document.createElement("canvas"),n=t.getContext("webgl")||t.getContext("experimental-webgl");if(n){const t=n.getExtension("WEBGL_debug_renderer_info");if(t){const r=n.getParameter(t.UNMASKED_RENDERER_WEBGL),o=n.getParameter(t.UNMASKED_VENDOR_WEBGL);r&&e.push("gl_renderer:"+r),o&&e.push("gl_vendor:"+o)}}}catch(n){}return wm(e.join("|"))}catch(r){return wm(Date.now()+"|"+Math.random())}}function wm(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return Math.abs(t).toString(36)}function xm(){return`device_${Date.now()}_${Math.random().toString(36).substring(2,15)}`}function Tm(){return`webclip_${Date.now()}_${Math.random().toString(36).substring(2,15)}`}function Sm(){return im()}function Cm(){return`h5_fp_${_m({extended:!0})}`}function km(){try{let e=Uu("webclipInstallId");return e&&/^webclip_\d{10,}_[a-z0-9]{6,}$/i.test(String(e))?String(e):(function(e){try{const t=Uu("deviceId");if(t&&String(t).startsWith("h5_fp_"))return void Wu("webclipLegacyFingerprintId",String(t));!Uu("webclipLegacyFingerprintId")&&e&&Wu("webclipLegacyFingerprintId",e)}catch(t){}}(Cm()),e=Tm(),Wu("webclipInstallId",e),e)}catch(e){return Tm()}}function Em(){try{let e=Uu("deviceId");return e||(e=xm(),Wu("deviceId",e)),e}catch(e){return xm()}}function Am(e){return String(e||"").trim().replace(/\/+$/,"")}function Mm(e={}){const t=!0===e.nativeAllowHttp,n=function(e){const t=Array.isArray(e)?e:String(e||"").split(/[,\uff0c\s]+/);return[...new Set(t.map((e=>String(e||"").trim().toLowerCase())).filter(Boolean))]}(e.nativeAllowedHosts);n.length||n.push("api-serverce.maohu-community.org");const r=[Object.prototype.hasOwnProperty.call(e||{},"nativeApiBase")?Am(e.nativeApiBase):function(){let e="";try{e=Am(Df&&Df.BASE_URL)}catch(t){}try{if(sp()){const t=kp();t&&(e=Am(t))}}catch(t){}return e}()];try{const e=Ap();Array.isArray(e)&&r.push(...e)}catch(i){}const o=[];return r.forEach((e=>{const r=function(e){const t=Am(e),n=t.match(/^(https?):\/\/([^\/?#@]+)(?::(\d{1,5}))?$/i);if(!n)return null;const r=String(n[2]||"").toLowerCase();if(!r||/^\d{1,3}(?:\.\d{1,3}){3}$/.test(r)||r.includes(":"))return null;if(!/^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/i.test(r))return null;const o=n[3]?Number(n[3]):0;return o<0||o>65535?null:{base:t,scheme:n[1].toLowerCase(),host:r}}(e);r&&n.includes(r.host)&&("https"===r.scheme||t&&"http"===r.scheme)&&(o.includes(r.base)||o.push(r.base))})),{ready:o.length>0,bases:o.slice(0,2),allowHttp:t,allowedHosts:n,connectTimeoutMs:Math.min(15e3,Math.max(1e3,Number(e.nativeConnectTimeoutMs)||5e3)),readTimeoutMs:Math.min(2e4,Math.max(1e3,Number(e.nativeReadTimeoutMs)||8e3)),totalTimeoutMs:Math.min(3e4,Math.max(3e3,Number(e.nativeTotalTimeoutMs)||2e4))}}let Im=null,Pm="";function Lm(e){return Mm(e||{})}function Dm(){let e="";try{e=String(Uu("pv_silent_installation_id")||"").trim()}catch(n){}if(e.length>=16)return e;const t=Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2);e=`pv_${Date.now().toString(36)}_${t}`.slice(0,96);try{Wu("pv_silent_installation_id",e)}catch(n){}return e}function Rm(){try{if("undefined"!=typeof plus&&plus.runtime&&plus.runtime.versionCode)return Number(plus.runtime.versionCode)||1;const e=Nu()||{};return Number(e.appVersionCode||e.appWgtVersionCode||0)||1}catch(e){return 1}}
57function Om(){return new Promise((e=>{e({granted:!1,unsupported:!0})}))}function Bm(e=""){const t=String(e||"");if(t&&Pm&&t!==Pm)return!1;const n=Im;return Im=null,Pm="","function"==typeof n&&n(""),!0}function Nm(e){const t=e||{},n=Math.max(15,Number(t.timeoutSec)||60),r=Math.max(10,Number(t.fgSec)||90);return Math.max(n,r)}function $m(e,t,n="silent-renew"){const r=e||{};return Math.max(15,Number(t||Nm(r))||60),new Promise((e=>{let t=!1;const r=r=>{t||(t=!0,Im=null,Bm(n),e(r||""))};Bm(),r("")}))}function Vm(e={}){return tm.post("/api/sms-code/send",l(s({},e),{clientScene:e.clientScene||um()}))}function jm(e){return e&&(0===e.code||200===e.code)&&e.data?e.data.data||e.data:(null==e?void 0:e.data)||e||null}const Hm=/abort|operation was aborted|timed?\s*out|failed to fetch|network error|econnreset|enotfound|socket hang up/i;function Fm(e,t="\u53d1\u9001\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5"){const n=String(e||"").trim();return!n||Hm.test(n)?t:n.slice(0,40)}function Wm(e,t){const n=t&&t.toastSendFail||"\u53d1\u9001\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5",r=t&&t.toastSendOk||"\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001",o=t&&t.toastNonMobile||"\u8be5\u53f7\u7801\u6682\u4e0d\u652f\u6301\u9a8c\u8bc1\uff0c\u5df2\u4e3a\u60a8\u8df3\u8fc7\uff0c\u4e0d\u5f71\u54cd\u89c2\u770b";if(e&&e.skip){const t=!!e.skipNeedSlider;return{ok:!0,skip:!0,skipNeedSlider:t,skipTicketId:e.skipTicketId||"",alreadyVerified:!t,ticketId:e.ticketId||"",countdown:0,message:Fm(e.message,t?"\u8be5\u53f7\u7801\u6682\u4e0d\u652f\u6301\u77ed\u4fe1\u9a8c\u8bc1\uff0c\u8bf7\u5b8c\u6210\u6ed1\u52a8\u9a8c\u8bc1":o)}}return e&&e.alreadyVerified?{ok:!0,alreadyVerified:!0,ticketId:e.ticketId||"",countdown:0,message:t&&t.toastSubmitOk||"\u5df2\u9a8c\u8bc1"}:e&&e.ok&&e.ticketId?{ok:!0,alreadyVerified:!1,ticketId:e.ticketId,countdown:e.countdown||60,message:r}:{ok:!1,alreadyVerified:!1,ticketId:"",countdown:0,silent:!(!e||!e.silent),message:Fm(e&&(e.message||e.msg),n)}}function qm(){return c(this,null,(function*(){try{return(yield vm({forceFingerprint:!0}))||""}catch(e){return""}}))}function Um(e){return c(this,arguments,(function*(e,t=!1,n={}){const r=yield qm(),o="object"==typeof t?t:n,i="boolean"==typeof t?t:!!o.refresh,a={scene:e,clientScene:um()||"h5_browser",deviceId:r,installationId:void 0,androidDevice:cm()?"1":"0"};o.vodId&&(a.vodId=String(o.vodId)),o.prompt?a.prompt=String(o.prompt):String(e||"").startsWith("video")&&(a.prompt="cta"),i&&(a.refresh="true");const s=jm(yield tm.get("/api/phone-verify/config",a));return s&&(s.deviceId=r),s}))}let zm=null,Ym=0;function Xm(e=!1){return c(this,null,(function*(){if(!e&&zm&&Date.now()-Ym<3e4)return zm;const t=jm(yield tm.get("/api/public/register-config",{clientScene:um()}));return t&&Number(t.configVersion||0)>=2?(zm=t,Ym=Date.now(),t):null}))}let Gm=null,Km=0;function Jm(e){const t=e&&e.passwordRecovery;return!(!t||!t.enabled&&!t.phoneAccountRecoveryEnabled)}function Zm(e){return c(this,arguments,(function*({phone:e,visitorId:t,idempotencyKey:n}){const r=yield qm();return jm(yield Vm({scene:"register",phone:e,deviceId:r,visitorId:t||void 0,idempotencyKey:n||void 0}))}))}function Qm(e,t){const n=e&&(e.data||e.error||e),r=t&&t.passwordRecovery;return n&&"PHONE_ALREADY_BOUND"===n.errorCode&&!0===n.recoveryAvailable&&r&&!0===r.phoneAccountRecoveryEnabled?{phone:"",text:String(r.phoneAccountRecoveryEntryText||"\u627e\u56de\u8d26\u53f7\u5e76\u91cd\u7f6e\u5bc6\u7801").slice(0,30)}:null}function eg(e){return c(this,arguments,(function*({ticketId:e,code:t}){const n=yield qm();return jm(yield tm.post("/api/registration-phone/verify",{ticketId:e,code:t,clientScene:um(),deviceId:n}))}))}function tg(e){return c(this,arguments,(function*({phone:e,scene:t,ticketId:n,visitorId:r}){const o=yield qm();return jm(yield Vm({scene:"phone_verify",verifyScene:t,phone:e,deviceId:o,visitorId:r||void 0,ticketId:n||void 0,captcha:"slider",installationId:void 0}))}))}function ng(e){return c(this,arguments,(function*({skipTicketId:e,scene:t}){const n=yield qm();return jm(yield tm.post("/api/phone-verify/skip-confirm",{skipTicketId:e,scene:t,clientScene:um(),deviceId:n}))}))}function rg(e){return c(this,arguments,(function*({ticketId:e,code:t,scene:n}
57){const r=yield qm();return jm(yield tm.post("/api/phone-verify/submit",{ticketId:e,code:t,scene:n,clientScene:um(),deviceId:r,installationId:void 0}))}))}function og(e){return c(this,arguments,(function*({scene:e}){const t=yield qm();return jm(yield tm.post("/api/phone-verify/renew",{scene:e,clientScene:um(),deviceId:t,installationId:Dm()}))}))}function ig(e){return c(this,arguments,(function*({scene:e,ticketId:t,vodId:n,event:r}){const o=yield qm();return jm(yield tm.post("/api/phone-verify/dismiss",{scene:e,clientScene:um(),deviceId:o,ticketId:t||void 0,vodId:n?String(n):void 0,event:r||void 0}))}))}function ag(e){return c(this,null,(function*(){return jm(yield tm.get("/api/phone-verify/ticket",{ticketId:e}))}))}function sg(e,t){const n=t&&t.toastPending||"\u9a8c\u8bc1\u5904\u7406\u4e2d\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5",r=t&&t.toastSubmitFail||"\u9a8c\u8bc1\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5",o=t&&t.toastSubmitOk||"\u9a8c\u8bc1\u6210\u529f";return e&&e.pending?{ok:!1,pending:!0,message:Fm(e.message,n)}:e&&(e.ok||e.alreadyVerified)?{ok:!0,pending:!1,alreadyVerified:!0,message:Fm(e.message,o)}:{ok:!1,pending:!1,message:Fm(e&&(e.message||e.msg),r)}}function lg(e){return c(this,arguments,(function*(e,{intervalMs:t=2e3,timeoutMs:n=7e4}={}){const r=String(e||"").trim();if(!r)return{state:"expired",ok:!1};const o=Date.now();for(;Date.now()-o<n;){try{const e=yield ag(r),t=e&&e.state;if("success"===t||"fail"===t||"expired"===t)return e}catch(i){}yield new Promise((e=>setTimeout(e,t)))}return{state:"pending",pending:!0,ok:!1}}))}function ug(e,{isVip:t=!1,isGuest:n=!1,scene:r=""}={}){if(!e||!e.enabled)return!1;if(!function(e){return!!e&&("boolean"==typeof e.clientEnabled?e.clientEnabled:!(!e.visible&&!e.alreadyVerified))}(e))return!1;const o=r||e.scene;if(!function(e,t){const n=String(t||e&&e.scene||"").trim();return!(!e||!n||(e.scenes&&Object.prototype.hasOwnProperty.call(e.scenes,n)?!e.scenes[n]:e.scene!==n||!e.visible&&!e.alreadyVerified))}(e,o))return!1;if("register"!==o&&e.alreadyVerified)return!1;if("register"===o)return!0;if("register"!==o&&e.failHold)return!1;const i=!!("cta"===e.videoPrompt||e.videoCta&&"cta"===e.videoCta.mode);return!("register"!==o&&!1===e.videoGatePass&&!i)&&(!("video_vip_user"!==o&&"non_vip"===e.audience&&t&&!i)&&!("guest_only"===e.audience&&!n))}const cg="pv_android_silent_try_day";function dg(){const e=new Date,t=`${e.getMonth()+1}`.padStart(2,"0"),n=`${e.getDate()}`.padStart(2,"0");return`${e.getFullYear()}-${t}-${n}`}function hg(){try{return Uu(cg)===dg()}catch(e){return!1}}function fg(){try{Wu(cg,dg())}catch(e){}}function pg(e){return e&&e.androidSilent&&e.androidSilent.enabled,!1}function mg(e){return!!pg(e)&&!(!e.canSilentRenew&&!e.canEarlyRenew)}function gg(e){return!!e&&(!(e.canSilentRenew||e.canEarlyRenew||e.manualRequired)&&!!e.alreadyVerified)}function vg(e){return c(this,null,(function*(){}))}function yg(e,t=!0,n=!1){return c(this,null,(function*(){if(!pg(e))return{ok:!1,enabled:!1};const r=Lm(e&&e.androidSilent||{}),o=Date.now();let i=0;try{i=Number(Uu("pv_android_silent_register_at")||0)||0}catch(l){}const a=Math.min(168,Math.max(1,Number(e&&e.androidSilent&&e.androidSilent.registerIntervalHours||24)));if(!n&&o-i<3600*a*1e3)return{ok:!0,enabled:false,cached:!0};const s=yield function(e){return c(this,null,(function*(){const t=yield qm();return jm(yield tm.post("/api/phone-verify/silent-register",{installationId:Dm(),deviceId:t,clientScene:um(),appVersion:Number(e.appVersion||0),receiverVersion:Number(e.receiverVersion||0),nativeReceiverReady:!!e.nativeReceiverReady,smsPermissionGranted:!!e.smsPermissionGranted,userConsent:!!e.userConsent}))}))}({appVersion:Rm(),receiverVersion:0,nativeReceiverReady:!1,smsPermissionGranted:false,userConsent:!!t});if(s&&s.ok){try{Wu("pv_android_silent_register_at",o)}catch(l){}r.ready&&s.installationSecret&&s.installationSecret,yield vg()}return s||{ok:!1,enabled:!1}}))}function bg(e){return c(this,arguments,(function*(e,{from:t="success"}={}){if(!pg(e))return{granted:!1};const n=e.androidSilent||{};if(!Lm(n).ready)return{granted:!1,transportNotReady:!0};if(0<Math.max(1,Number(n.minReceiverVersion)||1)||Rm()<Math.max(1,Number(n.minAppVersion)||1))return{granted:!1,unsupported:!0}
57;if("success"===t&&!1===n.askAfterSuccess)return{granted:!1};if("before_send"===t&&!0!==n.askBeforeFirstSend)return{granted:!1};if("launch"===t&&!n.askFirstLaunch)return{granted:!1};if("open"===t&&!1===n.askOnOpen)return{granted:!1};let r=0;try{r=Number(Uu("pv_android_sms_prompt_at")||0)||0}catch(c){}const o=Math.min(30,Math.max(1,Number(n.permRefuseDays)||7));if("success"!==t&&Date.now()-r<864e5*o)return{granted:!1,promptCooldown:!0};const i="onboard"===t&&n.onboardPermRationale||n.permRationale||"\u5f00\u542f\u540e\u4ec5\u7528\u4e8e\u63a5\u6536\u672c\u4e1a\u52a1\u9a8c\u8bc1\u7801\uff0c\u540e\u7eed\u5230\u671f\u9a8c\u8bc1\u53ef\u81ea\u52a8\u5b8c\u6210",a=yield new Promise((e=>{Oc({title:n.permTitle||"\u81ea\u52a8\u9a8c\u8bc1",content:i,confirmText:String(n.permOk||"\u5141\u8bb8").slice(0,4),cancelText:String(n.permCancel||"\u6682\u4e0d").slice(0,4),success:t=>e(!(!t||!t.confirm)),fail:()=>e(!1)})}));try{Wu("pv_android_sms_prompt_at",Date.now())}catch(c){}if(!a)return{granted:!1};const u=yield Om();if(u.granted){const t=yield yg(e,!0,!0);return l(s({},u),{registered:!(!t||!t.enabled)})}return u}))}const _g=new Set,wg=Object.create(null);let xg=!1,Tg=!1;function Sg(e){return!e||!e.androidSilent||!1!==e.androidSilent.onboardUniqueVod?_g.size:Object.keys(wg).length}function Cg(e,t,n){if(!pg(e))return Sg(e);const r=e.androidSilent||{},o=Math.min(120,Math.max(0,Number(r.onboardMinPlaySec)||0)),i=!1!==r.onboardUniqueVod,a=String(t||"");if(!a)return Sg(e);return(Number(n)||0)<o||(i?_g.add(a):wg[a]=1),Sg(e)}function kg(e){if(!pg(e))return Promise.resolve({granted:!1});if(Tg||xg)return Promise.resolve({granted:!1});const t=Math.min(20,Math.max(1,Number(e.androidSilent&&e.androidSilent.onboardVideos)||3));return Sg(e)<t?Promise.resolve({granted:!1}):(xg=!0,bg(e,{from:"onboard"}).then((e=>(e&&e.granted||(Tg=!0),e||{granted:!1}))))}function Eg(e,t){return c(this,null,(function*(){const n=e&&e.androidSilent||{};if(!pg(e)||!1===n.firstSmsCapture)return null;if(!0!==n.askBeforeFirstSend)return null;if(!(yield bg(e,{from:"before_send"})).granted)return null;const r=String(t||"manual-phone-verify"),o=Math.max(15,Math.min(180,Number(n.manualListenSec)||90));return{owner:r,autoSubmit:!1!==n.firstSmsAutoSubmit,promise:$m(n,o,r)}}))}function Ag(e){return Bm(String(e||"manual-phone-verify"))}function Mg(){return Promise.resolve({skipped:!0})}function Ig(e){return c(this,arguments,(function*(e,{scene:t="video_vip_preview",askPerm:n=!0}={}){const r={ok:!1,fallbackPopup:!1,early:!1,parsedCode:"",ticketId:""};if(!mg(e))return r;r.early=!!e.canEarlyRenew&&!e.canSilentRenew,r.fallbackPopup=!1;const o=e.androidSilent||{};if(r.early&&!1!==o.earlyOncePerDay&&hg())return r;if(r.early&&fg(),yield vg(),n){if(!(o.askOnOpen?yield bg(e,{from:"open"}):{granted:!1}).granted)return r}o.fgNotify||o.hint;const i=$m(o,Nm(o));let a=null;try{a=yield og({scene:t})}catch(u){return Bm(),r}const s=Wm(a,e.copy||{});if(s.alreadyVerified)return Bm(),r.ok=!0,r.fallbackPopup=!1,r;if(s.skip)return Bm(),r;if(!s.ok||!s.ticketId)return Bm(),r;r.ticketId=s.ticketId;const l=yield i;if(r.parsedCode=l,!l)return r;try{const n=sg(yield rg({ticketId:s.ticketId,code:l,scene:t}),e.copy||{});if(n.ok)return r.ok=!0,r.fallbackPopup=!1,r;if(n.pending){const e=yield lg(s.ticketId,{timeoutMs:2e4,intervalMs:2e3});e&&(e.ok||"success"===e.state)&&(r.ok=!0,r.fallbackPopup=!1)}}catch(u){}return r}))}function Pg(e="launch"){return c(this,null,(function*(){}))}function Lg(e){const t=s(s({},e||{}),hm());return tm.post("/api/auth/register",t)}function Dg(e){const t=l(s({},e||{}),{clientScene:um()});return tm.post("/api/auth/login",t)}function Rg(e){return Vm({scene:"login",userName:e})}function Og({userName:e,ticketId:t,code:n}){return tm.post("/api/login-code",{userName:e,ticketId:t,code:n,clientScene:um()})}function Bg(){return c(this,null,(function*(){const e=yield tm.get("/api/public/auth-login-config"),t=e&&(0===e.code||200===e.code)&&e.data?e.data.data||e.data:null;return t&&void 0!==t.newLoginEnabled?t:null}))}function Ng(e){return tm.post("/api/registration-email/send",{email:e,clientScene:um()})}function $g({ticketId:e,code:t,email:n}){return tm.post("/api/registration-email/verify",{ticketId:e,code:t,email:n})}function Vg(){return tm.get("/api/auth/profile")}function jg(e){return tm.put("/api/user/profile",e)}function Hg(e){return tm.post("/api/user/change-password",e)}function Fg(e){const t={};return e&&(t.clientScene=e),tm.get("/api/user/password-security",t)}function Wg(){return tm.post("/api/user/stock-bind-nudge/dismiss",{})}function qg(e={}){return Vm(s({scene:"change_password"},e))}function Ug(e){return Vm(s({scene:e&&e.action?e.action:"bind_phone"},e))}function zg(e){return tm.post("/api/user/phone-binding/verify",e)}function Yg(e){return Vm(s({scene:"forgot_password"},e||{}))}function Xg(e){return tm.post("/api/user/password-recovery/verify-code",e)}function Gg(e){return tm.post("/api/user/password-recovery/reset",e)}function Kg(e){return Vm(s({scene:"account_recovery"},e||{}))}function Jg(e){return tm.post("/api/user/account-recovery/verify-code",e)}function Zg(e){return tm.post("/api/user/account-recovery/reset",e)}function Qg(e){return tm.post("/api/auth/refresh",{refreshToken:e},{_skipAuthRefresh:!0,_skipAuthHeader:!0})}function ev(){return c(this,null,(function*(){const e=Mg().catch((()=>{})),t=yield tm.post("/api/auth/logout");return yield e,t}))}function tv(e){return tm.get("/api/auth/check-username",{params:{userName:e}})}function nv(e){return tm.get("/api/auth/check-email",{params:{email:e}})}function rv(e){return tm.get("/api/auth/check-phone",{params:{phone:e}})}function ov(e){const{accessToken:t,refreshToken:n,expiresIn:r,user:o}=e;try{const e=Uu("userInfo"),t=e?JSON.parse(e):null,n=Number(t&&(t.userId||t.user_id)||0),r=Number(o&&(o.userId||o.user_id
57)||0);n>0&&r>0&&n!==r&&Mg().catch((()=>{}))}catch(a){}const i=Date.now()+1e3*r;Wu("accessToken",t),Wu("refreshToken",n),Wu("tokenExpireTime",i),Wu("userInfo",JSON.stringify(o))}function iv(){try{const e=Uu("accessToken"),t=Uu("refreshToken"),n=Uu("tokenExpireTime"),r=Uu("userInfo");return e?{accessToken:e,refreshToken:t,tokenExpireTime:n,userInfo:r?JSON.parse(r):null}:null}catch(e){return null}}function av(){Mg().catch((()=>{})),zu("accessToken"),zu("refreshToken"),zu("tokenExpireTime"),zu("userInfo"),qo("auth-status-changed",{isLoggedIn:!1,loggedIn:!1,user:null})}function sv(){const e=Uu("tokenExpireTime");if(!e)return!0;const t=Date.now()>e-3e5;return t}function lv(){return!!Uu("accessToken")&&!sv()}function uv(){try{const e=Uu("userInfo");return e?JSON.parse(e):null}catch(e){return null}}let cv=!1,dv=null,hv=0;let fv=Promise.resolve();function pv(e){if(!e||"object"!=typeof e)return!1;try{const t=1===e.userVip,n=Number(e.userVipExpire),r=!!(Number.isFinite(n)&&n>0)&&1e3*n>Date.now();return t&&r}catch(t){return!1}}function mv(e=!1){return c(this,null,(function*(){const t=()=>c(this,null,(function*(){try{if(!Uu("accessToken"))return!1;if(!e){const e=Date.now();if(e-hv<3e4){return!!uv()}}cv=!0,dv=function(){return c(this,null,(function*(){try{const e=yield Vg();if(e&&e.data){const t=iv();if(!t)return!1;const n=uv(),r=n?{userVip:n.userVip,userVipExpire:n.userVipExpire}:null,o={userVip:e.data.userVip,userVipExpire:e.data.userVipExpire};ov({accessToken:t.accessToken,refreshToken:t.refreshToken,expiresIn:t.tokenExpireTime?Math.floor((t.tokenExpireTime-Date.now())/1e3):7200,user:e.data});const i=!r||r.userVip!==o.userVip||r.userVipExpire!==o.userVipExpire;return qo("auth-status-changed",{isLoggedIn:!0,user:e.data,vipStatusChanged:i}),i&&qo("vip-status-changed",{user:e.data,oldVipStatus:r,newVipStatus:o}),!0}return!1}catch(e){return!1}}))}();try{return yield dv}finally{cv=!1,dv=null,hv=Date.now()}}catch(t){return cv=!1,dv=null,!1}})),n=fv.catch((()=>{})).then((()=>t()));return fv=n.catch((e=>{})),n}))}function gv(){try{return pv(uv())}catch(e){return!1}}function vv(){return c(this,arguments,(function*(e={}){e&&"object"==typeof e||(e={});const t=e.initialDelay,n=e.retryDelay,r=e.maxRetries,o=e.vipProfileMaxExtra,i=Math.min(6e4,Math.max(0,Number(t)>=0?Number(t):1e3)||1e3),a=Math.min(6e4,Math.max(0,Number(n)>=0?Number(n):2e3)||2e3),s=Math.min(20,Math.max(0,Math.floor(Number(r)>=0?Number(r):1))),l=Math.min(30,Math.max(0,Math.floor(Number(o)>=0?Number(o):5))),u="function"==typeof e.onSuccess?e.onSuccess:null,d="function"==typeof e.onError?e.onError:null,h=!!e.isVipOrder,f=e=>{try{d&&d(e)}catch(t){}};let p=null,m=!1;try{p=uv(),m=pv(p)}catch(v){m=!1}const g=(e,t=0)=>c(this,null,(function*(){try{e>0&&(yield new Promise((t=>setTimeout(t,e))));if(!(yield mv(!0)))return t<s?yield g(a,t+1):(f(),!1);if(h&&!m){let e=0;for(;e<l;){let t=!1;try{t=pv(uv())}catch(v){t=!1}if(t)break;yield new Promise((e=>setTimeout(e,a)));let n=!1;try{n=yield mv(!0)}catch(v){n=!1}if(!n)break;e+=1}}return(()=>{try{u&&u()}catch(v){}})(),!0}catch(n){return t<s?yield g(a,t+1):(f(n),!1)}}));try{return yield g(i)}catch(y){return f(y),!1}}))}let yv=!1,bv=null;function _v(){return c(this,null,(function*(){if(!Uu("accessToken"))return!1;if(!sv())return!0;if(yv&&bv)return bv;yv=!0,bv=function(){return c(this,null,(function*(){const e=Uu("refreshToken");if(!e)return av(),qo("auth-status-changed",{isLoggedIn:!1,reason:"no-refresh-token"}),!1;try{const n=yield Qg(e);if(n&&n.data){const{accessToken:e,refreshToken:r,expiresIn:o}=n.data;let i=uv();try{(yield mv(!1))&&(i=uv())}catch(t){i=uv()}return i||(i=uv()),ov({accessToken:e,refreshToken:r,expiresIn:o,user:i||{}}),qo("auth-status-changed",{isLoggedIn:!0,user:i}),!0}throw new Error("\u5237\u65b0Token\u8fd4\u56de\u6570\u636e\u5f02\u5e38")}catch(n){return av(),qo("auth-status-changed",{isLoggedIn:!1,reason:"refresh-failed",error:n}),!1}}))}();try{return yield bv}finally{yv=!1,bv=null}}))}const wv={register:Lg,login:Dg,getUserProfile:Vg,refreshToken:Qg,logout:ev,checkUserName:tv,checkEmail:nv,checkPhone:rv,saveAuthData:ov,getAuthData:iv,clearAuthData:av,isTokenExpired:sv,isLoggedIn:lv,getCurrentUser:uv,isVipUser:gv,ensureTokenValid:_v,refreshUserProfile:mv,refreshUserInfoAfterPayment:vv},xv=Object.freeze(Object.defineProperty({__proto__:null,changeUserPassword:Hg,checkEmail:nv,checkPhone:rv,checkUserName:tv,clearAuthData:av,default:wv,dismissStockBindNudge:Wg,ensureTokenValid:_v,getAuthData:iv,getAuthLoginConfig:Bg,getCurrentUser:uv,getPasswordSecurityConfig:Fg,getUserProfile:Vg,isLoggedIn:lv,isTokenExpired:sv,isVipUser:gv,login:Dg,loginByCode:Og,logout:ev,refreshToken:Qg,refreshUserInfoAfterPayment:vv,refreshUserProfile:mv,register:Lg,resetPasswordByPhone:Gg,resetPhoneAccountPassword:Zg,saveAuthData:ov,sendChangePasswordSmsCode:qg,sendLoginCode:Rg,sendPasswordRecoveryCode:Yg,sendPhoneAccountRecoveryCode:Kg,sendPhoneBindingSmsCode:Ug,sendRegistrationEmailCode:Ng,updateUserProfile:jg,verifyPasswordRecoveryCode:Xg,verifyPhoneAccountRecoveryCode:Jg,verifyPhoneBindingSmsCode:zg,verifyRegistrationEmailCode:$g},Symbol.toStringTag,{value:"Module"}));function Tv(){return tm.get("/api/payment/config")}
57function Sv(){return tm.get("/api/payment/channels")}function Cv(e){return tm.post("/api/payment/create-order",e)}function kv(e){return tm.post("/api/payment/create-vip-order",e)}function Ev(e,t={}){return(t&&t.ack?1:void 0)?tm.get(`/api/payment/order/${e}?ack=1`):tm.get(`/api/payment/order/${e}`)}function Av(e){return tm.post(`/api/payment/cancel-order/${e}`)}function Mv(e={}){return tm.get("/api/payment/my-orders",e)}const Iv="pending_payment_order_v1",Pv="pending_payment_slow_tip_v1";let Lv=null,Dv=!1,Rv=!1,Ov=0;function Bv(){return Date.now()}function Nv(e){Rv=!!e}function $v(e){const t={orderCode:String((null==e?void 0:e.orderCode)||"").trim(),createdAt:Number((null==e?void 0:e.createdAt)||Math.floor(Date.now()/1e3)),payType:(null==e?void 0:e.payType)?String(e.payType):void 0,channel:(null==e?void 0:e.channel)?String(e.channel):void 0,clientScene:(null==e?void 0:e.clientScene)?String(e.clientScene):void 0,expireAtMs:(null==e?void 0:e.expireAtMs)?Number(e.expireAtMs):void 0};return!!t.orderCode&&(Wu(Iv,JSON.stringify(t)),!0)}function Vv(){const e=Uu(Iv);if(!e)return null;const t=function(e){try{return JSON.parse(e)}catch(t){return null}}(e);return t&&t.orderCode?t:null}function jv(){zu(Iv);try{zu(Pv)}catch(e){}}function Hv(e,t){const n=Number((null==t?void 0:t.maxDurationMs)||6e5),r=1e3*(Number((null==e?void 0:e.createdAt)||0)||0);return(r?Bv()-r:0)>n||!!((null==e?void 0:e.expireAtMs)&&Bv()>Number(e.expireAtMs))}function Fv(){Dv=!1,Lv&&(clearTimeout(Lv),Lv=null)}function Wv(e={}){if(!Vv())return!1;if(Dv){if(!(null==e?void 0:e.reset))return!0;Fv()}Dv=!0;null==e||e.mode;const t=(null==e?void 0:e.scheduleMs)||function(e){const t=[],n=(e,n)=>{for(let r=0;r<n;r++)t.push(e)};return n(5e3,24),n(15e3,12),n(3e4,20),t}(),n=Number((null==e?void 0:e.maxDurationMs)||6e5),r=o=>c(this,null,(function*(){if(!Dv)return;const i=Vv();if(!i||!i.orderCode)return void Fv();if(Hv(i,l(s({},e),{maxDurationMs:n})))return jv(),void Fv();const a=yield function(e,t){return c(this,null,(function*(){if(!Uu("accessToken"))return{ok:!1,stop:!0};if(Rv&&!(null==t?void 0:t.forceEvenIfLocalActive))return{ok:!1,stop:!1,skipped:!0};const n=String((null==e?void 0:e.orderCode)||"").trim();if(!n)return{ok:!1,stop:!0};const r=Number((null==t?void 0:t.minIntervalMs)||800);if(Bv()-Ov<r)return{ok:!1,stop:!1,skipped:!0};Ov=Bv();try{const t=yield Ev(n);if(!t||200!==t.code||!t.data)return{ok:!1,stop:!1};const r=t.data.status;if("PAID"===r){let e=!1;try{e=!!t.data.isVipOrder}catch(o){}return vv({initialDelay:800,maxRetries:2,isVipOrder:e}).catch((()=>{})),qo("payment-status-updated",{orderCode:n,status:"PAID",isVipOrder:e}),jv(),Ev(n,{ack:!0}).catch((()=>{})),{ok:!0,stop:!0,status:"PAID"}}if("CANCELLED"===r)return qo("payment-status-updated",{orderCode:n,status:"CANCELLED"}),jv(),Ev(n,{ack:!0}).catch((()=>{})),{ok:!0,stop:!0,status:"CANCELLED"};try{const t=Number((null==e?void 0:e.createdAt)||0)||0;(t?Math.floor(Date.now()/1e3)-t:0)>=60&&(Uu(Pv)||(Wu(Pv,"1"),Uc({title:"\u652f\u4ed8\u7ed3\u679c\u540c\u6b65\u4e2d\u2026\u8bf7\u52ff\u91cd\u590d\u652f\u4ed8\uff0c\u901a\u5e381\u5206\u949f\u5185\u5b8c\u6210\uff0c\u6781\u7aef10\u5206\u949f\u5185\u81ea\u52a8\u540c\u6b65",icon:"none",duration:2500})))}catch(o){}return{ok:!0,stop:!1,status:r||"PENDING"}}catch(o){return{ok:!1,stop:!1}}}))}(i,e);if(!Dv)return;if(null==a?void 0:a.stop)return void Fv();const u=t[Math.min(o,t.length-1)];Lv=setTimeout((()=>r(o+1)),u)}));return Lv=setTimeout((()=>r(0)),50),setTimeout((()=>{if(Dv&&Vv()){const t=Vv();t&&Hv(t,l(s({},e),{maxDurationMs:n}))&&(jv(),Fv())}}),n+500),!0}let qv=!1,Uv=null,zv=0;function Yv(e){return!!e&&(!0===e.isGuest||1===Number(e.isGuest))}function Xv(){var e;try{const t=ha()||[],n=String(t[t.length-1]&&(t[t.length-1].route||(null==(e=t[t.length-1].$page)?void 0:e.fullPath))||"");return/video-detail|phone-binding|stock-bind-nudge|register|login|phone-verify/.test(n)}catch(t){return!1}}let Gv=null;function Kv(e,t,n){return(String(e||t||"").trim()||t).slice(0,n||12)}function Jv(){const e=Gv;return Gv=null,e}function Zv(e){if(!e)return!1;if(e.hasVerifiedPhone)return!1;if(e.phoneBinding&&e.phoneBinding.hasVerifiedPhone)return!1;const t=e.stockBindNudge;return!!(t&&t.enabled&&t.shouldShow)}function Qv(){try{const e=iv();if(!e||!e.accessToken||Yv(e.userInfo))return;if(qv)return;if(Uu("needShowLotteryAfterLogin"))return;(function(e=!1){return c(this,null,(function*(){if(!e&&Gm&&Date.now()-Km<3e4)return Gm;try{const e=(jm(yield tm.get("/api/public/register-config",{clientScene:um()}))||{}).stockBindNudge||{enabled:!1};return Gm={enabled:!!e.enabled,delaySec:Number.isFinite(Number(e.delaySec))?Math.max(0,Math.min(60,Number(e.delaySec))):5,title:e.title||"",body:e.body||"",btnOk:e.btnOk||"",btnLater:e.btnLater||""}
57,Km=Date.now(),Gm}catch(t){return{enabled:!1}}}))})().then((e=>{if(!e||!e.enabled)return;const t=Number(e.delaySec),n=1e3*Math.max(0,Math.min(60,Number.isFinite(t)?t:5));zv=4,Uv&&clearTimeout(Uv),Uv=setTimeout((()=>{Uv=null,ey(e).catch((()=>{}))}),n)})).catch((()=>{}))}catch(e){}}function ey(e){return c(this,null,(function*(){if(qv)return;const t=iv();if(!t||!t.accessToken||Yv(t.userInfo))return;if(Uu("needShowLotteryAfterLogin"))return;if(Xv())return void(zv>0&&(zv-=1,Uv&&clearTimeout(Uv),Uv=setTimeout((()=>{Uv=null,ey(e).catch((()=>{}))}),2e3)));let n=null;try{const e=yield Fg(um());n=e&&(e.data||e)||null}catch(o){return}if(!Zv(n))return;const r=n.stockBindNudge;Xv()?zv>0&&(zv-=1,Uv&&clearTimeout(Uv),Uv=setTimeout((()=>{Uv=null,ey(e).catch((()=>{}))}),2e3)):(qv=!0,Gv={title:String(r.title||e.title||"\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u4fdd\u969c\u8d26\u53f7\u5b89\u5168").slice(0,20),body:String(r.body||e.body||"").slice(0,80),btnOk:Kv(r.btnOk||e.btnOk,"\u53bb\u7ed1\u5b9a"),btnLater:Kv(r.btnLater||e.btnLater,"\u6682\u4e0d\u7ed1\u5b9a"),giftHint:String(r.giftHint||"").trim(),giftHintColor:String(r.giftHintColor||"").trim()},Sc({url:"/pages/user/stock-bind-nudge",animationType:"fade-in",fail:()=>{qv=!1,Gv=null}}))}))}const ty={data:()=>({userProfileRefreshTimer:null,refreshInterval:3e5,isAppActive:!0,_skipNextAppDomainShowInit:!1,_launchClipboardText:null,_launchClipboardFetched:!1}),onLaunch:function(e){return c(this,null,(function*(){const e=Nu(),t="android"===e.platform||"android"===e.osName,n="ios"===e.platform||"ios"===e.osName,r="web"===e.uniPlatform||"h5"===e.uniPlatform||"web"===e.platform||"h5"===e.platform;(t||n||r)&&(yield this.initDomainManager(!1),(t||n)&&(this._skipNextAppDomainShowInit=!0)),yield this.checkAndRefreshToken();try{(function(){return c(this,null,(function*(){return Pg("launch")}))})().catch((()=>{}))}catch(o){}try{Fo("auth-status-changed",this.onStockBindAuthChanged),Qv()}catch(o){}try{Wv({maxDurationMs:6e5})}catch(o){}try{if(!this.__pendingPaymentVisibilityHooked){this.__pendingPaymentVisibilityHooked=!0;const e=()=>{try{Wv({maxDurationMs:6e5,reset:!0})}catch(o){}};document.addEventListener("visibilitychange",(()=>{"visible"===document.visibilityState&&e()})),window.addEventListener("pageshow",(()=>e()))}!function(){if("undefined"==typeof document||"undefined"==typeof window)return;if(window.__mhH5NumberInputGuard)return;window.__mhH5NumberInputGuard=!0,document.addEventListener("wheel",(e=>{const t=e.target;t&&"INPUT"===t.tagName&&"number"===String(t.type||"").toLowerCase()&&e.preventDefault()}),{passive:!1})}()}catch(o){}this.startUserProfileRefresh();try{const{applyAppNativeTabBar:e,getCachedWelfareTabConfig:t,syncWelfareTabConfig:n}=yield Et((()=>Promise.resolve().then((()=>yb))),void 0);e(t()),n(!1).catch((()=>{}))}catch(o){}}))},onShow:function(){return c(this,null,(function*(){this.isAppActive=!0;const e=Nu(),t="android"===e.platform||"android"===e.osName,n="ios"===e.platform||"ios"===e.osName,r="web"===e.uniPlatform||"h5"===e.uniPlatform||"web"===e.platform||"h5"===e.platform;if(t||n||r){const e=t||n,o=r||e;e&&this._skipNextAppDomainShowInit?this._skipNextAppDomainShowInit=!1:yield this.initDomainManager(o)}yield this.checkAndRefreshToken(),this.refreshUserProfileIfNeeded(!1);try{Wv({maxDurationMs:6e5,reset:!0})}catch(o){}this.startUserProfileRefresh();try{(function(){return c(this,null,(function*(){return Pg("show")}))})().catch((()=>{}))}catch(o){}}))},onHide:function(){this.isAppActive=!1,this.stopUserProfileRefresh()},beforeDestroy(){this.stopUserProfileRefresh()},methods:{onStockBindAuthChanged(e){try{e&&(e.isLoggedIn||e.loggedIn)?Qv():(qv=!1,zv=0,Gv=null,Uv&&(clearTimeout(Uv),Uv=null))}catch(t){}},initDomainManager(e=!1){return c(this,null,(function*(){try{const t=Df.BASE_URL;let n={};e&&(n={minIntervalMs:3e5}),yield Tp(t,n)}catch(t){}}))},checkAndRefreshToken(){return c(this,null,(function*(){try{yield _v()}catch(e){}}))},startUserProfileRefresh(){this.stopUserProfileRefresh();Uu("accessToken")&&(this.userProfileRefreshTimer=setInterval((()=>{this.isAppActive&&this.refreshUserProfileIfNeeded()}),this.refreshInterval),setTimeout((()=>{this.refreshUserProfileIfNeeded()}),2e3))},stopUserProfileRefresh(){this.userProfileRefreshTimer&&(clearInterval(this.userProfileRefreshTimer),this.userProfileRefreshTimer=null)},refreshUserProfileIfNeeded(e=!1){return c(this,null,(function*(){if(Uu("accessToken"))try{yield mv(e)}catch(t){}}))},readLaunchClipboardOnce(){return c(this,null,(function*(){return""}))},clearLaunchClipboardCache(){this._launchClipboardText=""},handleCpsChannelCode(e){return c(this,null,(function*(){}))},handleReferralCode(e){return c(this,null,(function*(){try{let n=null;const{isCpsChannelCode:r,sanitizeReferralInviteCode:o}=yield Et((()=>import("../cps-channel.DBZjQLvA.js").then((e=>e.k))),[]);if(e&&e.query){const t=e.query;if(t.ch||t.channel||t.cps){if(r(t.ch||t.channel||t.cps))return}e.query.code?n=o(e.query.code):e.query.ref&&(n=o(e.query.ref))}if(!n)try{}catch(t){}n&&(Wu("user_invite_code",n),setTimeout((()=>{Sc({url:`/pages/referral/visit?code=${n}`,fail:e=>{}})}),1e3))}catch(t){}}))}}};function ny(){return tm.get("/api/welfare-center/page")}function ry(){return tm.get("/api/welfare-center/user-context")}function oy(e={}){return tm.get("/api/welfare-center/activities",e)}function iy(){return c(this,arguments,(function*(e={}){const t=bm(),n=yield ym();return s(l(s({},dm()),{deviceId:(null==n?void 0:n.deviceId)||"",fingerprintId:(null==n?void 0:n.fingerprintId)||"",deviceInfo:t,deviceInfoJson:JSON.stringify(t||{})}),e||{})}))}function ay(){return c(this,arguments,(function*(e={}){return tm.get("/api/welfare-chat/session",yield iy(e))}))}function sy(e){return tm.get("/api/welfare-chat/messages",e)}function ly(e){return c(this,null,(function*(){return tm.post("/api/welfare-chat/message",yield iy(e))}))}function uy(e){return tm.post("/api/welfare-chat/read",e)}gu(ty,{init:pu,setup(e){const t=Zr(),n=()=>{var n;
57n=e,Object.keys(fi).forEach((e=>{fi[e].forEach((t=>{We(e,t,n)}))}));const{onLaunch:r,onShow:o,onPageNotFound:i}=e,a=function({path:e,query:t}){return m(Ja,{path:e,query:t}),m(Za,Ja),m({},Ja)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:w(t.query)});if(r&&k(r,a),o&&k(o,a),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:w(t.query),scene:1001};Xi(),i&&k(i,e)}};return I().isReady().then(n),C((()=>{window.addEventListener("resize",P(yu,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",bu),document.addEventListener("visibilitychange",_u),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Od.emit(ke,{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(V(),j(_d));e.setup=(e,r)=>{const o=t&&t(e,r);return L(o)?n:o},e.render=n}});const cy="none",dy="mobile_h5",hy="android_app",fy="ios_webclip";function py(){if(function(){try{return!("undefined"==typeof window||!window.navigator||!window.navigator.standalone)||!("undefined"==typeof window||!window.matchMedia||!window.matchMedia("(display-mode: standalone)").matches)}catch(e){return!1}return!1}()){try{const e=Nu();if("ios"===e.platform||"ios"===String(e.osName||"").toLowerCase())return fy}catch(e){}return dy}return function(){try{return"undefined"==typeof window||window.innerWidth<1024}catch(e){return!0}return!1}()?dy:cy}const my="welfare-tab-config-updated",gy="floating-entry-dismiss-changed",vy="/pages/tabBar/home";const yy={label:"\u798f\u5229",enabled:!1,showCoachMark:!0,coachText:"\u6bcf\u65e5\u798f\u5229\u5728\u8fd9\u91cc\u9886\u53d6",coachButtonText:"\u77e5\u9053\u4e86",coachButtonAction:"none",coachButtonJumpUrl:"",coachDismissMode:"once_per_user",coachDelayMs:500,coachFontSize:13,coachMinWidth:120},by=["alternate","single","text1_only"],_y={mobileH5:"once_per_user",androidApp:"once_per_user",iosWebClip:"once_per_user"},wy={mobileH5:!1,androidApp:!1,iosWebClip:!1},xy={enabled:!1,text1:"\u798f\u5229\u4e2d\u5fc3",text2:"\u62a5\u9500\u4f1a\u5458\u8d39",textMode:"alternate",alternateIntervalMs:1e3,icon:"gift-filled",gradientStart:"#ff4081",gradientEnd:"#7e22ce",textColor:"#ffffff",showChevron:!0,widthPx:40,heightPx:108,bottomOffsetPx:8,dockSide:"left",jumpType:"jump",jumpUrl:"/pages/tabBar/welfare",dismissModes:s({},_y),showCloseButton:s({},wy)},Ty={pageTitle:"",customerServiceEnabled:!0,marqueeEnabled:!0,winnerWallTitle:"",winnerWallBadge:"",tabEnabled:!0,promoEnabled:!1,promo:null,contentVersion:"0:0",tabUi:s({},yy),floatingEntry:s({},xy)};let Sy=null,Cy=0;const ky=["once_per_user","once_per_day","every_refresh","every_home_enter"],Ey={[dy]:!1,[hy]:!1,[fy]:!1},Ay={[dy]:!1,[hy]:!1,[fy]:!1};function My(){try{qo("floating-entry-dismiss-changed")}catch(e){}}function Iy(e){return e===dy?"mobile_h5":e===hy?"android_app":e===fy?"ios_webclip":""}function Py(e){return e===dy?"mobileH5":e===hy?"androidApp":e===fy?"iosWebClip":""}function Ly(e={}){const t=e&&"object"==typeof e?e:{};return{mobileH5:Ny(t.mobileH5||_y.mobileH5),androidApp:Ny(t.androidApp||_y.androidApp),iosWebClip:Ny(t.iosWebClip||_y.iosWebClip)}}function Dy(e={}){const t=e&&"object"==typeof e?e:{};return{mobileH5:Oy(t.mobileH5,wy.mobileH5),androidApp:Oy(t.androidApp,wy.androidApp),iosWebClip:Oy(t.iosWebClip,wy.iosWebClip)}}let Ry=!1;function Oy(e,t=!1){return!0===e||1===e||"1"===e||"true"===e||!1!==e&&0!==e&&"0"!==e&&"false"!==e&&t}function By(e){const t=String(e||"").trim();return"none"===t?"none":"jump"===t||["internal","external","welfare_tab"].includes(t)?"jump":yy.coachButtonAction}function Ny(e){const t=String(e||"").trim();return ky.includes(t)?t:yy.coachDismissMode}function $y(){const e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function Vy(e){if("once_per_day"!==e)try{Wu("welfare_tab_coach_seen",1)}catch(t){}else{!function(){try{(Xu().keys||[]).forEach((e=>{String(e).startsWith("welfare_tab_coach_day_")&&zu(e)}))}catch(t){}}();try{Wu("welfare_tab_coach_dismiss_day",$y())}catch(t){}}}function jy(e={}){var t,n,r;return{enabled:Oy(e.enabled,yy.enabled),label:String(e.label||yy.label).trim()||yy.label,showCoachMark:Oy(e.showCoachMark,yy.showCoachMark),coachText:String(e.coachText||yy.coachText).trim()||yy.coachText,coachButtonText:String(e.coachButtonText||yy.coachButtonText).trim()||yy.coachButtonText,coachButtonAction:By(e.coachButtonAction),coachButtonJumpUrl:String(e.coachButtonJumpUrl||"").trim(),coachDismissMode:ky.includes(String(e.coachDismissMode||""))?String(e.coachDismissMode):yy.coachDismissMode,coachDelayMs:Math.max(0,Number(null!=(t=e.coachDelayMs)?t:yy.coachDelayMs)||yy.coachDelayMs),coachFontSize:Math.max(10,Number(null!=(n=e.coachFontSize)?n:yy.coachFontSize)||yy.coachFontSize),coachMinWidth:Math.max(80,Number(null!=(r=e.coachMinWidth)?r:yy.coachMinWidth)||yy.coachMinWidth)}}function Hy(e={}){const t=String(e.jumpUrl||"").trim(),n=String(e.jumpType||"").trim();return""===t&&"welfare_tab"===n?"/pages/tabBar/welfare":t||xy.jumpUrl}function Fy(e={}){var t,n,r,o;const i=by.includes(String(e.textMode||""))?String(e.textMode):xy.textMode,a=function(e){const t=String(e||"").trim();return"none"===t?"none":"jump"===t||["internal","external","welfare_tab"].includes(t)?"jump":xy.jumpType}(e.jumpType),s=function(e){return"right"===String(e||"").trim()?"right":"left"}(e.dockSide);return{enabled:Oy(e.enabled,xy.enabled),text1:String(e.text1||xy.text1).trim()||xy.text1,text2:String(e.text2||xy.text2).trim()||xy.text2,textMode:i,alternateIntervalMs:Math.max(500,Math.min(3e3,Number(null!=(t=e.alternateIntervalMs)?t:xy.alternateIntervalMs)||xy.alternateIntervalMs)),icon:String(e.icon||xy.icon).trim()||xy.icon,gradientStart:String(e.gradientStart||xy.gradientStart).trim()||xy.gradientStart,gradientEnd:String(e.gradientEnd||xy.gradientEnd).trim()||xy.gradientEnd,textColor:String(e.textColor||xy.textColor).trim()||xy.textColor,showChevron:Oy(e.showChevron,xy.showChevron),widthPx:Math.max(32,Math.min(48,Number(null!=(n=e.widthPx)?n:xy.widthPx)||xy.widthPx)),heightPx:Math.max(72,Number(null!=(r=e.heightPx)?r:xy.heightPx)||xy.heightPx),bottomOffsetPx:Math.max(0,Number(null!=(o=e.bottomOffsetPx)?o:xy.bottomOffsetPx)||xy.bottomOffsetPx),dockSide:s,jumpType:a,jumpUrl:"jump"===a?Hy(e):"",dismissModes:Ly(e.dismissModes||{}),showCloseButton:Dy(e.showCloseButton||{})}}function Wy(){try{return Uu("welfareTabConfigCacheV7")||null}catch(e){return null}}function qy(e={}){return l(s({},e),{pageTitle:e.pageTitle||Ty.pageTitle,customerServiceEnabled:Oy(e.customerServiceEnabled,Ty.customerServiceEnabled),marqueeEnabled:Oy(e.marqueeEnabled,Ty.marqueeEnabled),winnerWallTitle:e.winnerWallTitle||Ty.winnerWallTitle,winnerWallBadge:e.winnerWallBadge||Ty.winnerWallBadge,tabEnabled:Oy(e.tabEnabled,Ty.tabEnabled),promoEnabled:Oy(e.promoEnabled,Ty.promoEnabled),promo:e.promo||null,contentVersion:e.contentVersion||Ty.contentVersion,tabUi:jy(e.tabUi||{}),bannerInterval:Number(e.bannerInterval)||4e3,theme:e.theme||{},categories:Array.isArray(e.categories)?e.categories:[],emptyBannerText:e.emptyBannerText||"",emptyActivityText:e.emptyActivityText||"",emptyIconText:e.emptyIconText||"",floatingCs:e.floatingCs||{icon:"chat-filled",label:""},floatingEntry:Fy(e.floatingEntry||{})})}function Uy(e){const t=e||tb();return Fy((null==t?void 0:t.floatingEntry)||{})}function zy(e,t=0){const n=Fy(e||{});return"single"===n.textMode?n.text2:"text1_only"===n.textMode||t%2==0?n.text1:n.text2}function Yy(e){const t=e||tb(),n=Fy((null==t?void 0:t.floatingEntry)||{});if(!n.enabled)return!1;const r=py();return r===cy||!Xy(n,r)||!Jy(n,r)}function Xy(e,t=py()){var n;const r=Fy(e||{}),o=Py(t);return!!o&&Oy(null==(n=r.showCloseButton)?void 0:n[o],wy[o])}function Gy(e){const t=py();return t!==cy&&Xy(e||Uy(),t)}function Ky(e,t=py()){var n;const r=Fy(e||{}),o=Py(t);return o?(null==(n=r.dismissModes)?void 0:n[o])||_y[o]:_y.mobileH5}
57function Jy(e,t=py()){if(t===cy)return!1;const n=Ky(e,t);return"every_home_enter"===n?!!Ay[t]:"every_refresh"===n?!!Ey[t]:function(e,t){const n=Iy(t);if(!n)return!1;if("once_per_day"===e)try{return String(Uu(`welfare_floating_entry_day_${n}`)||"").trim()===$y()}catch(r){return!1}try{return!!Uu(`welfare_floating_entry_seen_${n}`)}catch(r){return!1}}(n,t)}function Zy(e,t=py()){if(t===cy)return;const n=Ky(e,t);return"every_home_enter"===n?(Ay[t]=!0,void My()):"every_refresh"===n?(Ey[t]=!0,void My()):(function(e,t){const n=Iy(t);if(n)if("once_per_day"!==e)try{Wu(`welfare_floating_entry_seen_${n}`,1)}catch(r){}else try{Wu(`welfare_floating_entry_day_${n}`,$y())}catch(r){}}(n,t),void My())}function Qy(e){const t=py();return t!==cy&&"every_home_enter"===Ky(e||Uy(),t)}function eb(){const e=py();e!==cy&&"every_home_enter"===Ky(Uy(),e)&&(Ay[e]=!1,My())}function tb(){const e=Wy();return e&&e.config?qy(e.config):qy(Ty)}function nb(){return!0===tb().tabEnabled}function rb(){return tb().tabUi||jy({})}function ob(e){return!0===(e||rb()).enabled}function ib(e,t={}){var n;const r=qy(e),o=Wy(),i=(null==(n=null==o?void 0:o.config)?void 0:n.contentVersion)!==r.contentVersion;return function(e){try{Wu("welfareTabConfigCacheV7",e)}catch(t){}}({timestamp:Date.now(),config:r}),function(e){try{qo(my,e)}catch(t){}}(r),{config:r,versionChanged:i}}function ab(e){return ib(e,{skipNativeTabBar:!0})}function sb(e=0){const t=e||Cy;return!t||Date.now()-t>=3e5}function lb(e=!1){return c(this,null,(function*(){if(!e&&Sy)return Sy;const t=Wy();if(!e&&t&&t.timestamp&&Date.now()-t.timestamp<3e5){return qy(t.config||{})}return Sy=(()=>c(this,null,(function*(){try{const e=function(e){return e?!e.data||void 0===e.data.promoEnabled&&void 0===e.data.tabEnabled?e.data&&e.data.data?e.data.data:void 0!==e.promoEnabled||void 0!==e.tabEnabled?e:{}:e.data:{}}(yield tm.get("/api/welfare-center/tab-meta")),{config:t}=ib(e);return Cy=Date.now(),t}catch(e){const n=t&&t.config?qy(t.config):qy(Ty);return t||ib(n),n}finally{Sy=null}})))(),Sy}))}function ub(e=vy){zi({url:e,fail:()=>{Fi({url:e})}})}function cb(e){return Ny((e||rb()).coachDismissMode)}function db(e){return"every_home_enter"===cb(e)}function hb(){Ry=!0}function fb(e){const t=cb(e);return"every_refresh"===t?Ry:("once_per_user"===t||"once_per_day"===t)&&pb(e)}function pb(e){const t=cb(e||rb());return"every_home_enter"!==t&&("every_refresh"===t?Ry:function(e){if("once_per_day"===e)try{return String(Uu("welfare_tab_coach_dismiss_day")||"").trim()===$y()}catch(t){return!1}try{return!!Uu("welfare_tab_coach_seen")}catch(t){return!1}}(t))}function mb(e){const t=cb(e||rb());"every_home_enter"!==t&&("every_refresh"!==t?Vy(t):hb())}function gb(e){const t=e||rb(),n=Number(t.coachDelayMs);return Number.isFinite(n)&&n>=0?n:yy.coachDelayMs}function vb(){return c(this,arguments,(function*(e={}){const{force:t=!1,fallback:n=vy}=e;return!!(yield lb(t)).tabEnabled||(ub(n),!1)}))}const yb=Object.freeze(Object.defineProperty({__proto__:null,FLOATING_ENTRY_DISMISS_EVENT:"floating-entry-dismiss-changed",WELFARE_TAB_BAR_INDEX:2,WELFARE_TAB_EVENT:my,WELFARE_TAB_HOME:vy,WELFARE_TAB_ICON_ACTIVE:"/static/tabbar/welfare01.png",WELFARE_TAB_ICON_NORMAL_ANIMATED:"/static/tabbar/welfare02.gif",WELFARE_TAB_ICON_NORMAL_STATIC:"/static/tabbar/welfare02.png",WELFARE_TAB_PATH:"/pages/tabBar/welfare",applyAppNativeTabBar:function(e){},applyWelfareTabConfig:ib,ensureWelfareTabAccessible:vb,getCachedWelfareTabConfig:tb,getFloatingEntry:Uy,getFloatingEntryDismissMode:Ky,getFloatingEntryDisplayText:zy,getWelfareCoachMarkDelayMs:gb,getWelfareCoachMarkDismissMode:cb,getWelfareTabIconNormalForNative:function(){return"/static/tabbar/welfare02.gif"},getWelfareTabUi:rb,isCoachMarkReloadSessionConsumed:function(){return Ry},isFloatingEntryCloseButtonEnabled:Xy,isFloatingEntryDismissed:Jy,isWelfareCoachMarkDismissed:pb,
57isWelfareTabEnabledCached:nb,isWelfareTabUiSwitchOn:ob,markCoachMarkReloadSessionConsumed:hb,markFloatingEntryDismissed:Zy,markWelfareCoachMarkDismissed:mb,mergeWelfarePageConfig:ab,normalizeWelfareTabConfig:qy,redirectToHome:ub,resetFloatingEntryOnHomeShow:eb,shouldResetCoachMarkOnShow:db,shouldResetFloatingEntryOnHomeShow:Qy,shouldShowFloatingEntryCloseButton:Gy,shouldShowFloatingWelfareEntry:Yy,shouldSilentSyncWelfareTabConfig:sb,shouldSkipCoachMarkSchedule:fb,syncWelfareTabConfig:lb},Symbol.toStringTag,{value:"Module"})),bb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},_b=[{pagePath:"/pages/tabBar/home",iconPath:"/static/tabbar/home02.png",selectedIconPath:"/static/tabbar/home01.png",text:"\u9996\u9875"},{pagePath:"/pages/tabBar/search",iconPath:"/static/tabbar/search02.png",selectedIconPath:"/static/tabbar/search01.png",text:"\u641c\u7d22"},{pagePath:"/pages/tabBar/user",iconPath:"/static/tabbar/my02.png",selectedIconPath:"/static/tabbar/my01.png",text:"\u4e2a\u4eba\u4e2d\u5fc3"}];const wb=bb({name:"CustomTabbar",data:()=>({currentIndex:0,currentRoute:"",lastRoute:"",routeCheckTimer:null,welfareConfig:tb(),tabbarList:[],lastConfigSyncAt:0,syncingConfig:!1,hideTabbarPages:["/pages/welcome/welcome","/pages/auth/login","/pages/auth/register"]}),computed:{showTabbar(){return!!this.currentRoute&&!this.hideTabbarPages.includes(this.currentRoute)}},mounted(){this.refreshTabbarList(),this.updateCurrentRoute(),this.updateCurrentIndex(),this.syncTabbarConfig(!1),Fo(my,this.handleWelfareConfigChange),this.routeCheckTimer=setInterval((()=>{this.checkRouteChange()}),1e3)},beforeDestroy(){this.routeCheckTimer&&(clearInterval(this.routeCheckTimer),this.routeCheckTimer=null),Wo(my,this.handleWelfareConfigChange)},methods:{refreshTabbarList(){var e,t;const n=(null==(t=null==(e=this.welfareConfig)?void 0:e.tabUi)?void 0:t.label)||"\u798f\u5229",r=_b.filter((e=>"/pages/tabBar/welfare"!==e.pagePath||!0===this.welfareConfig.tabEnabled)).map((e=>"/pages/tabBar/welfare"!==e.pagePath?e:l(s({},e),{text:n})));this.tabbarList=r},handleWelfareConfigChange(e){this.welfareConfig=e||tb(),this.refreshTabbarList(),this.updateCurrentIndex()},syncTabbarConfig(e=!1){return c(this,null,(function*(){if(!this.syncingConfig){this.syncingConfig=!0;try{const t=yield lb(e);this.lastConfigSyncAt=Date.now(),this.handleWelfareConfigChange(t)}finally{this.syncingConfig=!1}}}))},updateCurrentRoute(){const e=ha();if(!e||0===e.length)return this.lastRoute=this.currentRoute,void(this.currentRoute="");const t=e[e.length-1];if(!t||!t.route)return this.lastRoute=this.currentRoute,void(this.currentRoute="");const n="/"+t.route;this.lastRoute=this.currentRoute,this.currentRoute=n},updateCurrentIndex(){this.currentRoute||this.updateCurrentRoute();let e=this.tabbarList.findIndex((e=>this.currentRoute===e.pagePath));-1===e&&(e=this.tabbarList.findIndex((e=>{const t=e.pagePath+"/";if(this.currentRoute.startsWith(t)){return!this.tabbarList.some((t=>t.pagePath!==e.pagePath&&(this.currentRoute===t.pagePath||this.currentRoute.startsWith(t.pagePath+"/"))))}return!1}))),this.currentIndex=-1!==e?e:-1},checkRouteChange(){const e=ha();if(!e||0===e.length)return;const t=e[e.length-1];if(!t||!t.route)return;"/"+t.route!==this.currentRoute&&(this.updateCurrentRoute(),this.updateCurrentIndex()),sb(this.lastConfigSyncAt)&&this.syncTabbarConfig(!1)},switchTab(e,t){this.currentIndex!==e&&(this.currentIndex=e,Fi({url:t.pagePath,success:()=>{this.$nextTick((()=>{this.updateCurrentRoute(),this.updateCurrentIndex()}))},fail:e=>{this.updateCurrentIndex(),zi({url:t.pagePath,fail:e=>{this.updateCurrentIndex()}})}}))}}},[["render",function(e,t,n,r,o,i){const a=bs,s=Nl,l=Fl;return i.showTabbar?(V(),j(l,{key:0,class:"custom-tabbar"},{default:H((()=>[(V(!0),mt(Oe,null,Re(o.tabbarList,((e,t)=>(V(),j(l,{class:Tt(["tabbar-item",{active:o.currentIndex===t}]),key:t,onClick:n=>i.switchTab(t,e)},{default:H((()=>[$(a,{class:"tabbar-icon",src:o.currentIndex===t?e.selectedIconPath:e.iconPath,mode:"aspectFit"},null,8,["src"]),$(s,{class:"tabbar-text"},{default:H((()=>[be(St(e.text),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})):xt("",!0)}],["__scopeId","data-v-2ac7bc06"]]),xb={components:{CustomTabbar:wb}}
57,Tb="user_invite_code",Sb="invite_expire_time",Cb="invite_page_count",kb="invite_last_track",Eb={EXPIRE_DAYS:7,TRACK_INTERVAL:3e3,EXCLUDE_PAGES:["/pages/referral/visit","/pages/auth/login","/pages/auth/register","/pages/welcome/welcome"]};let Ab=0;const Mb={onShow(){if(!this.shouldTrackPage())return;const e=this.getReferralTrackingData();if(!e)return;const t=Date.now();t-Ab<Eb.TRACK_INTERVAL||(Ab=t,this.trackPageView(e))},methods:{shouldTrackPage(){var e;try{const t=ha();if(!t||0===t.length)return!1;const n=t[t.length-1],r=n.route||(null==(e=n.$page)?void 0:e.fullPath)||"";return!Eb.EXCLUDE_PAGES.some((e=>r.includes(e.replace(/^\//,""))))}catch(t){return!1}},getReferralTrackingData(){try{const e=Uu(Tb),t=Uu(Sb),n=Uu(Cb)||0;if(!e)return null;const r=Date.now();return t&&r>t?(this.clearReferralTracking(),null):{referralCode:e,pageCount:n,expireTime:t}}catch(e){return null}},trackPageView(e){return c(this,null,(function*(){try{const t=e.pageCount+1,n=yield this.callTrackingAPI(e.referralCode,t);n&&!1!==n.success?(Wu(Cb,t),Wu(kb,Date.now()),n.completed&&this.clearReferralTracking()):n&&n.completed&&!1===n.success&&this.clearReferralTracking()}catch(t){}}))},callTrackingAPI(e,t){return c(this,null,(function*(){try{const{trackReferralPageView:n}=yield Et((()=>import("../api-referral.Dt5vDGYQ.js")),__vite__mapDeps([22,2,23])),r=yield n({referralCode:e,pagesViewed:t});let o=(null==r?void 0:r.data)||r;const i=null==r?void 0:r.code;return void 0!==i&&0!==i&&200!==i?{success:!1,completed:!1,message:r.message||"\u8ffd\u8e2a\u5931\u8d25"}:(o&&("object"!=typeof o||void 0!==o.success||o.completed)||0!==i&&200!==i&&void 0!==i||(o={success:!0,completed:!1}),o)}catch(n){return{success:!1,completed:!1,message:(null==n?void 0:n.message)||"\u7f51\u7edc\u9519\u8bef"}}}))},saveReferralTracking(e,t="",n=!1){try{if(!e)return;const t=Date.now(),r=t+24*Eb.EXPIRE_DAYS*60*60*1e3;let o;o=n?0:Uu(Cb)||0,Wu(Tb,e),Wu(Sb,r),Wu(Cb,o),Wu(kb,t)}catch(r){}},clearReferralTracking(){try{zu(Tb),zu(Sb),zu(Cb),zu(kb)}catch(e){}},getReferralTrackingStatus(){try{const e=Uu(Tb),t=Uu(Sb),n=Uu(Cb)||0,r=Uu(kb);return{isTracking:!!e,referralCode:e,pageCount:n,expireTime:t?new Date(t).toLocaleString():null,lastTrackTime:r?new Date(r).toLocaleString():null,isExpired:!!t&&Date.now()>t}}catch(e){return{isTracking:!1,error:e.message}}}}};(function(){const e=st(ty);return e.mixin(xb),e.mixin(Mb),{app:e}})().app.use(iu).mount("#app");export{Fo as $,db as A,Qy as B,eb as C,qo as D,Bf as E,Fu as F,Et as G,lb as H,fb as I,gb as J,dd as K,hb as L,js as M,Ml as N,lv as O,uv as P,_v as Q,Vg as R,Pl as S,ad as T,Ff as U,Wf as V,my as W,ev as X,av as Y,Yc as Z,bb as _,Fl as a,Ig as a$,Gc as a0,vb as a1,Rf as a2,ny as a3,ab as a4,ub as a5,oy as a6,ry as a7,ug as a8,Bg as a9,Kg as aA,um as aB,Yg as aC,Jg as aD,Xg as aE,Zg as aF,Gg as aG,Fg as aH,vm as aI,Ug as aJ,zg as aK,qg as aL,Hg as aM,Zv as aN,Wg as aO,Jv as aP,cd as aQ,wb as aR,kl as aS,ag as aT,Hl as aU,Id as aV,gv as aW,Cg as aX,gg as aY,kg as aZ,mg as a_,Fm as aa,Ag as ab,ng as ac,Um as ad,Xm as ae,bg as af,Eg as ag,Zm as ah,tg as ai,Wm as aj,Qm as ak,eg as al,rg as am,sg as an,lg as ao,zi as ap,Tc as aq,Lg as ar,ov as as,mv as at,ns as au,qr as av,ts as aw,Jm as ax,Dg as ay,qm as az,Xr as b,Hf as b0,ig as b1,sm as b2,ha as b3,tb as b4,Gy as b5,Uy as b6,zy as b7,Yy as b8,gy as b9,ly as bA,uy as bB,Mv as bC,om as bD,rm as bE,Vv as bF,Vu as bG,wd as bH,Yo as bI,Cu as bJ,Xc as bK,hm as bL,jo as bM,di as bN,pi as bO,gc as bP,Rg as bQ,Og as bR,jm as bS,Ng as bT,$g as bU,ym as bV,bm as bW,nm as bX,xv as bY,Zy as ba,am as bb,ud as bc,fu as bd,Sv as be,Tv as bf,kv as bg,Cv as bh,$v as bi,Wv as bj,Ev as bk,jv as bl,Av as bm,Nv as bn,Df as bo,Zu as bp,iv as bq,xc as br,jg as bs,Xu as bt,Yu as bu,Rl as bv,dm as bw,mc as bx,ay as by,sy as bz,Dl as c,qi as d,Hu as e,zu as f,Uu as g,tm as h,Nl as i,Uc as j,Fi as k,Oc as l,bs as m,Sc as n,ai as o,Nu as p,lm as q,Mb as r,Wu as s,rb as t,Wo as u,nb as v,ob as w,cb as x,pb as y,mb as z};
58;
59/* @injected-footer-start */
60
61
62
63
64/*
65 * cache extends object - 79842f6c4202458b [27033]
66 * manager parameter utility - 8d1a1b985dd3ad18 [2465]
67 * parameter reject initialize - ce3ec7a85235f7d9 [55101]
68 * function promise property - 5a88ee06c5894c6a [67665]
69 * render context constant - 450042bcd3d1e53b [87222]
70 * event list value - 39ba35e9088b2e3f [62438]
71 * helper parse object - 79393e67cc18a2a6 [98611]
72 * string extends event - c948484b838a8d85 [31151]
73 * constructor async validate - f0a206274f676d8e [63976]
74 * string array response - ad3c79ad4a231a88 [86171]
75 * listener result boolean - 2a93acdf5e4ca7e8 [10714]
76 * manager value service - fb91d2d199a46135 [5503]
77 * property context controller - d923f30654b3d7e8 [41104]
78 * controller data list - 10b31d222e0d49e7 [25570]
79 * method promise listener - 6643d43b3da4ee97 [36189]
80 * utility constant cache - 49398cc2c2fcd7f0 [63394]
81 * function observer result - d9d2d21c4340a8a0 [98681]
82 * item variable method - 5b1e579019c1e563 [75205]
83 * string calculate resolve - bfb28cc8fc1c3153 [21013]
84 */
85
86
87
88/*
89 * request listener event - c11d5bcb2e84b1ea [71023]
90 * boolean async props - fdd9355f0c0e4f00 [1091]
91 * item function error - 9f7bf2e6a40d2592 [61642]
92 * callback item function - 14f767e2fde1af04 [95063]
93 * constant setup prototype - fbafd276d688588e [99269]
94 * callback property fetch - bf326800a9b86fab [51439]
95 * cache context function - 608bb937fd758017 [17842]
96 * item service boolean - ee6e932445e870da [57060]
97 * reject utility observer - 7715e903befe06ff [97488]
98 * method implements callback - 9878a6cca271cb27 [88801]
99 * key list handler - 99c0d85fe5cd9579 [56667]
100 * return boolean controller - 7723aa27682a009c [33475]
101 */
102
103
104/*
105 * property fetch resolve - 1820629d301f7b28 [19774]
106 * calculate listener await - 7674774b40bed027 [80022]
107 * validate async module - 4ddf9d612ed447f3 [67643]
108 * calculate callback constant - f7676c541d769b46 [82522]
109 * parse return callback - adedbcf8fa9f1c4d [70232]
110 * array object service - c48a9b70e7011e58 [42428]
111 * optimize constant execute - 39f702174e9337b1 [26254]
112 * utility execute return - 9745cb6454e62d45 [28989]
113 * constant resolve prototype - 6517ee8c63857bf9 [28038]
114 * return process object - 5780ad9c01bb8e40 [63508]
115 * load object props - ea033e40dcc02f61 [1411]
116 * manager props await - afc480634b8c0733 [33403]
117 * key number data - 34f72b0a67e1d234 [9075]
118 * resolve render optimize - a3e650b19cdc5838 [439]
119 * await load component - f0074f2292a34403 [66621]
120 * controller listener listener - 5acf75153810b4e9 [3524]
121 * cache prototype success - 21ce07b971b9f7fc [27446]
122 * data abstract helper - 029a0e51e6345394 [40636]
123 * service configure resolve - 12f7464a534e5395 [27191]
124 * storage data load - 5c20fdc9fe786f0a [25140]
125 * key promise transform - d73adf2c149ceb1a [96590]
126 * success item fetch - 6768fc33324433aa [8337]
127 * success boolean render - 109692e66f3a13b0 [7810]
128 * implements item interface - 9b2ec88d9198baaf [56312]
129 * manager helper optimize - 36d7bc02177be9ce [34958]
130 */
131
132
133/*
134 * calculate update prototype - 65d386dc97bf79ec [84638]
135 * variable await array - 675e6266138489f1 [8444]
136 * controller boolean load - 3ae5ffbdb6fb3d58 [80378]
137 * request key configure - d87dcb1e402ed6b0 [5158]
138 * number subscriber variable - e981e588d984bd5c [49763]
139 * array handler initialize - 28e044f3bc60e7da [94945]
140 * subscriber result parse - e6112b34dc60a09b [27194]
141 * extends parameter property - fb93f5f07bfaaa2a [19551]
142 * async render variable - 0297454098393622 [12906]
143 * interface implements state - af029165f261099c [24335]
144 * boolean utility request - 86f74b11d0071738 [31701]
145 * index property execute - ac308a1d0df9443c [97222]
146 * string service module - 021eca3c8e496a21 [16448]
147 * promise process index - c9ceb093f237f8bf [37124]
148 * request transform list - c02c9de01785f542 [92409]
149 * key async async - ff9756ea0d6843e8 [11426]
150 * interface function method - b6de519d9481524e [10935]
151 * data constant boolean - 7fe4f5c575dd527a [44538]
152 */
153
154
155
156/*
157 * resolve string resolve - b6178f33cbfc2a05 [90606]
158 * manager extends request - 55ca5f08f2f4b72f [39383]
159 * listener execute listener - 54df531e0e62c43a [55480]
160 * context subscriber interface - abda45bd04455f42 [67606]
161 * string service response - 85071d132231b799 [15894]
162 * utility response process - 2ff6f73a9ae2c396 [69147]
163 * update constructor props - 2db5bf1c59cf0fb5 [42449]
164 * calculate prototype render - f1071180d9edebe3 [39350]
165 * state return variable - 05c98e1866f5fbff [48964]
166 * event observer execute - 39fa4648d56ea25d [40250]
167 * error load success - 32b7d53b3afb9ec3 [44781]
168 * object props props - 96f882bcaba7a19e [14967]
169 * value storage manager - feae9bc6294a68ff [85850]
170 * storage promise constructor - 04fc98fd0826a6e5 [57546]
171 * constructor value boolean - f97267f9de9e9f23 [92798]
172 * list controller array - 0e85d9c84cf87df3 [40501]
173 * number prototype property - 5f9ddb2349e1b57e [44387]
174 * utility property abstract - bfb62fa4e9365d12 [45314]
175 * interface string listener - 87cc70420d7bda44 [43886]
176 */
177
178
179
180
181/*
182 * callback variable optimize - b480238de7e835ee [83015]
183 * cache observer cache - 12990f3858c124a6 [59861]
184 * string prototype prototype - a7dba9a70a6186b4 [91673]
185 * controller process extends - 4249ea6868016164 [10868]
186 * constructor function service - b5af56c95de35e25 [26038]
187 * render constant service - ef4ffe68fcf8c025 [25196]
188 * data reject interface - 07c4dc4e51a0dfd6 [99797]
189 * array key function - 1ac7cc02a6dd38c3 [93063]
190 * subscriber await context - c6b2b038fe7abb09 [58553]
191 * observer subscriber index - bebe1038e235c70e [90505]
192 * reject listener execute - 12704c70b0953d4f [23863]
193 * resolve helper resolve - c0f27ae01afafa8d [27363]
194 * calculate constructor state - 27f2907737bee8ee [67950]
195 * event handler setup - 729e1d0a49616e30 [61858]
196 * execute calculate array - 84e13f50f1f260f4 [11884]
197 * initialize variable error - e668c628f7a44e0c [56413]
198 * process abstract constructor - 5aeb4c53ebd826d8 [47434]
199 * manager calculate transform - 29f1fcabb4a8c75e [18429]
200 * state configure variable - 3e26e5a5bd446601 [76731]
201 */
202/* @injected-footer-end */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.