PageSourceSearch

https://up99.game/assets/SystemMessages-BAccDG6F.js

js up99.game collected 2026-10-10 01:31:36 UTC 53,516 bytes, 26 lines download raw bytes

1import{j as $t,a2 as Vt,ak as jt,a8 as Gt,u as qt,a4 as Zt,a5 as Qt,r as C,o as Jt,a6 as vt,k as te,bM as ee,bN as oe,bO as re,aK as dt,bP as ie,_ as se,q as I,s as J,O as d,Y as _,Q as yt,U as ne,a0 as ae,E as mt,F as gt,l as le,P as he,aN as ce,X as ue,T as pe,V as fe,W as ve}from"./index-DdEi2Y18.js";import{_ as de}from"./Empty-zNkX-DWZ.js";import"./index-DAC8lDg6.js";import"./use-id-C4lwc6vU.js";/*!
2 * better-scroll / core
3 * (c) 2016-2023 ustbhuangyi
4 * Released under the MIT License.
5 *//*! *****************************************************************************
6Copyright (c) Microsoft Corporation.
7
8Permission to use, copy, modify, and/or distribute this software for any
9purpose with or without fee is hereby granted.
10
11THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17PERFORMANCE OF THIS SOFTWARE.
18***************************************************************************** */var nt=function(o,t){return nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},nt(o,t)};function G(o,t){nt(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var X=function(){return X=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},X.apply(this,arguments)};function Lt(){for(var o=0,t=0,e=arguments.length;t<e;t++)o+=arguments[t].length;for(var r=Array(o),i=0,t=0;t<e;t++)for(var s=arguments[t],n=0,a=s.length;n<a;n++,i++)r[i]=s[n];return r}var ye=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];var m=typeof window!="undefined",O=m&&navigator.userAgent.toLowerCase(),me=!!(O&&/wechatdevtools/.test(O)),ge=O&&O.indexOf("android")>0,ke=function(){if(typeof O=="string"){var o=/os (\d\d?_\d(_\d)?)/,t=o.exec(O);if(!t)return!1;var e=t[1].split("_").map(function(r){return parseInt(r,10)});return e[0]===13&&e[1]>=4}return!1}(),At=!1;if(m){var Te="test-passive";try{var kt={};Object.defineProperty(kt,"passive",{get:function(){At=!0}}),window.addEventListener(Te,function(){},kt)}catch{}}function B(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var at=function(o,t){for(var e in t)o[e]=t[e];return o};function lt(o){return o==null}function Tt(o,t,e){return o<t?t:o>e?e:o}var ct=m&&document.createElement("div").style,M=function(){if(!m)return!1;for(var o=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=o;t<e.length;t++){var r=e[t];if(ct[r.value]!==void 0)return r.key}return!1}();function g(o){return M===!1?o:M==="standard"?o==="transitionEnd"?"transitionend":o:M+o.charAt(0).toUpperCase()+o.substr(1)}
18function Xt(o){return typeof o=="string"?document.querySelector(o):o}function Se(o,t,e,r){var i=At?{passive:!1,capture:!!r}:!!r;o.addEventListener(t,e,i)}function Pe(o,t,e,r){o.removeEventListener(t,e,{capture:!!r})}function Ht(o){o.cancelable&&o.preventDefault()}function St(o){for(var t=0,e=0;o;)t-=o.offsetLeft,e-=o.offsetTop,o=o.offsetParent;return{left:t,top:e}}M&&M!=="standard"&&""+M.toLowerCase();var we=g("transform"),Ft=g("transition"),be=m&&g("perspective")in ct,Pt=m&&("ontouchstart"in window||me),Ee=m&&Ft in ct,E={transform:we,transition:Ft,transitionTimingFunction:g("transitionTimingFunction"),transitionDuration:g("transitionDuration"),transitionDelay:g("transitionDelay"),transformOrigin:g("transformOrigin"),transitionEnd:g("transitionEnd"),transitionProperty:g("transitionProperty")},tt={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function wt(o){if(o instanceof window.SVGElement){var t=o.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}else return{top:o.offsetTop,left:o.offsetLeft,width:o.offsetWidth,height:o.offsetHeight}}function H(o,t){for(var e in t)if(t[e].test(o[e]))return!0;return!1}var Be=H;function De(o,t){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.pageX=o.pageX,e.pageY=o.pageY,o.target.dispatchEvent(e)}function Rt(o,t){t===void 0&&(t="click");var e;o.type==="mouseup"?e=o:(o.type==="touchend"||o.type==="touchcancel")&&(e=o.changedTouches[0]);var r={};e&&(r.screenX=e.screenX||0,r.screenY=e.screenY||0,r.clientX=e.clientX||0,r.clientY=e.clientY||0);var i,s=!0,n=!0,a=o.ctrlKey,l=o.shiftKey,h=o.altKey,c=o.metaKey,u={ctrlKey:a,shiftKey:l,altKey:h,metaKey:c};if(typeof MouseEvent!="undefined")try{i=new MouseEvent(t,at(X({bubbles:s,cancelable:n},u),r))}catch{p()}else p();function p(){i=document.createEvent("Event"),i.initEvent(t,s,n),at(i,r)}i.forwardedTouchEvent=!0,i._constructed=!0,o.target.dispatchEvent(i)}function Ce(o){Rt(o,"dblclick")}var b={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(o){return 1+--o*o*o*o*o}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(o){return o*(2-o)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(o){return 1- --o*o*o*o}}},_e=1e3/60,P=m&&window;function zt(){}var It=function(){return m?P.requestAnimationFrame||P.webkitRequestAnimationFrame||P.mozRequestAnimationFrame||P.oRequestAnimationFrame||function(o){return window.setTimeout(o,o.interval||_e)}:zt}(),D=function(){return m?P.cancelAnimationFrame||P.webkitCancelAnimationFrame||P.mozCancelAnimationFrame||P.oCancelAnimationFrame||function(o){window.clearTimeout(o)}:zt}(),bt=function(o){},et={enumerable:!0,configurable:!0,get:bt,set:bt},Me=function(o,t){for(var e=t.split("."),r=0;r<e.length-1;r++)if(o=o[e[r]],typeof o!="object"||!o)return;var i=e.pop();return typeof o[i]=="function"?function(){return o[i].apply(o,arguments)}:o[i]},xe=function(o,t,e){for(var r=t.split("."),i,s=0;s<r.length-1;s++)i=r[s],o[i]||(o[i]={}),o=o[i];o[r.pop()]=e};function Ye(o,t,e){et.get=function(){return Me(this,t)},et.set=function(i){xe(this,t,i)},Object.defineProperty(o,e,et)}var w=function(){function o(t){this.events={},this.eventTypes={},this.registerType(t)}return o.prototype.on=function(t,e,r){return r===void 0&&(r=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,r]),this},o.prototype.once=function(t,e,r){var i=this;r===void 0&&(r=this),this.hasType(t);var s=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];i.off(t,s);var l=e.apply(r,n);if(l===!0)return l};return s.fn=e,this.on(t,s),this},o.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var r=this.events[t];if(!r)return this;for(var i=r.length;i--;)(r[i][0]===e||r[i][0]&&r[i][0].fn===e)&&r.splice(i,1);return this}},o.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];this.hasType(t);var i=this.events[t];if(i)for(var s=i.length,n=Lt(i),a,l=0;l<s;l++){var h=n[l],c=h[0],u=h[1];if(c&&(a=c.apply(u,e),a===!0))return a}},o.prototype.registerType=function(t){var e=this;t.forEach(function(r){e.eventTypes[r]=r})},o.prototype.destroy=function(){this.events={},this.eventTypes={}},o.prototype.hasType=function(t){var e=this.eventTypes,r=e[t]===t;r||(""+t+(""+Object.keys(e).map(function(i){return JSON.stringify(i)})),void 0)},o}(),$=function(){function o(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return o.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},o.prototype.addDOMEvents=function(){this.handleDOMEvents(Se)},o.prototype.removeDOMEvents=function(){this.handleDOMEvents(Pe)},o.prototype.handleDOMEvents=function(t){var e=this,r=this.wrapper;
18this.events.forEach(function(i){t(r,i.name,e,!!i.capture)})},o.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(r){return r.name===e?(r.handler(t),!0):!1})},o}(),Oe=function(){function o(){}return o}(),Le=function(o){G(t,o);function t(){var e=o.call(this)||this;return e.startX=0,e.startY=0,e.scrollX=!1,e.scrollY=!0,e.freeScroll=!1,e.directionLockThreshold=0,e.eventPassthrough="",e.click=!1,e.dblclick=!1,e.tap="",e.bounce={top:!0,bottom:!0,left:!0,right:!0},e.bounceTime=800,e.momentum=!0,e.momentumLimitTime=300,e.momentumLimitDistance=15,e.swipeTime=2500,e.swipeBounceTime=500,e.deceleration=.0015,e.flickLimitTime=200,e.flickLimitDistance=100,e.resizePolling=60,e.probeType=0,e.stopPropagation=!1,e.preventDefault=!0,e.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},e.tagException={tagName:/^TEXTAREA$/},e.HWCompositing=!0,e.useTransition=!0,e.bindToWrapper=!1,e.bindToTarget=!1,e.disableMouse=Pt,e.disableTouch=!Pt,e.autoBlur=!0,e.autoEndDistance=5,e.outOfBoundaryDampingFactor=1/3,e.specifiedIndexAsContent=0,e.quadrant=1,e}return t.prototype.merge=function(e){if(!e)return this;for(var r in e){if(r==="bounce"){this.bounce=this.resolveBounce(e[r]);continue}this[r]=e[r]}return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&be?" translateZ(1px)":"",this.useTransition=this.useTransition&&Ee,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX=this.eventPassthrough==="horizontal"?!1:this.scrollX,this.scrollY=this.eventPassthrough==="vertical"?!1:this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=this.freeScroll?!0:this.scrollX,this.scrollY=this.freeScroll?!0:this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var r={top:!0,right:!0,bottom:!0,left:!0},i={top:!1,right:!1,bottom:!1,left:!1},s;return typeof e=="object"?s=at(r,e):s=e?r:i,s},t}(Oe),Ae=function(){function o(t,e){this.wrapper=t,this.options=e,this.hooks=new w(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return o.prototype.handleDOMEvents=function(){var t=this.options,e=t.bindToWrapper,r=t.disableMouse,i=t.disableTouch,s=t.click,n=this.wrapper,a=e?n:window,l=[],h=[],c=!i,u=!r;s&&l.push({name:"click",handler:this.click.bind(this),capture:!0}),c&&(l.push({name:"touchstart",handler:this.start.bind(this)}),h.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),u&&(l.push({name:"mousedown",handler:this.start.bind(this)}),h.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new $(n,l),this.targetEventRegister=new $(a,h)},o.prototype.beforeHandler=function(t,e){var r=this.options,i=r.preventDefault,s=r.stopPropagation,n=r.preventDefaultException,a={start:function(){return i&&!H(t.target,n)},end:function(){return i&&!H(t.target,n)},move:function(){return i}};a[e]()&&t.preventDefault(),s&&t.stopPropagation()},o.prototype.setInitiated=function(t){t===void 0&&(t=0),this.initiated=t},o.prototype.start=function(t){var e=tt[t.type];if(!(this.initiated&&this.initiated!==e)){if(this.setInitiated(e),Be(t.target,this.options.tagException)){this.setInitiated();return}if(!(e===2&&t.button!==0)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var r=t.touches?t.touches[0]:t;this.pointX=r.pageX,this.pointY=r.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}}},o.prototype.move=function(t){if(tt[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,r=e.pageX-this.pointX,i=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:r,deltaY:i,e:t})){var s=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,n=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,a=this.pointX-s,l=this.pointY-n,h=this.options.autoEndDistance;(a>document.documentElement.clientWidth-h||l>document.documentElement.clientHeight-h||a<h||l<h)&&this.end(t)}}},o.prototype.end=function(t){tt[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},o.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},o.prototype.setContent=function(t){t!==this.wrapper&&(this.wrapper=t,this.rebindDOMEvents())},o.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},o.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},o}(),ot={x:["translateX","px"],y:["translateY","px"]},Xe=function(){function o(t){this.setContent(t),this.hooks=new w(["beforeTranslate","translate"])}return o.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null),e=t[E.transform].split(")")[0].split(", "),r=+(e[12]||e[4])||0,i=+(e[13]||e[5])||0;return{x:r,y:i}},o.prototype.translate=function(t){var e=[];Object.keys(t).forEach(function(r){if(ot[r]){var i=ot[r][0];if(i){var s=ot[r][1],n=t[r];e.push(i+"("+n+s+")")}}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[E.transform]=e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},o.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style)},o.prototype.destroy=function(){this.hooks.destroy()},o}(),Ut=function(){function o(t,e,r){this.translater=e,this.options=r,this.timer=0,this.hooks=new w(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(t)}return o.prototype.translate=function(t){this.translater.translate(t)}
18,o.prototype.setPending=function(t){this.pending=t},o.prototype.setForceStopped=function(t){this.forceStopped=t},o.prototype.setCallStop=function(t){this.callStopWhenPending=t},o.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style,this.stop())},o.prototype.clearTimer=function(){this.timer&&(D(this.timer),this.timer=0)},o.prototype.destroy=function(){this.hooks.destroy(),D(this.timer)},o}(),He=function(o,t,e,r){var i=function(h,c){var u=h-c,p=u>0?-1:u<0?1:0;return p},s=i(t.x,o.x),n=i(t.y,o.y),a=e.x-r.x,l=e.y-r.y;return s*a<=0&&n*l<=0},Fe=function(o){G(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.startProbe=function(e,r){var i=this,s=e,n=function(){var a=i.translater.getComputedPosition();He(e,r,a,s)&&i.hooks.trigger(i.hooks.eventTypes.move,a),i.pending||(i.callStopWhenPending?i.callStopWhenPending=!1:i.hooks.trigger(i.hooks.eventTypes.end,a)),s=a,i.pending&&(i.timer=It(n))};this.callStopWhenPending&&this.setCallStop(!1),D(this.timer),n()},t.prototype.transitionTime=function(e){e===void 0&&(e=0),this.style[E.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[E.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[E.transitionProperty]=E.transform},t.prototype.move=function(e,r,i,s){this.setPending(i>0),this.transitionTimingFunction(s),this.transitionProperty(),this.transitionTime(i),this.translate(r);var n=this.options.probeType===3;i&&n&&this.startProbe(e,r),i||(this._reflow=this.content.offsetHeight,n&&this.hooks.trigger(this.hooks.eventTypes.move,r),this.hooks.trigger(this.hooks.eventTypes.end,r))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),D(this.timer);var r=this.translater.getComputedPosition(),i=r.x,s=r.y;this.transitionTime(),this.translate({x:i,y:s}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:i,y:s})}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Ut),Re=function(o){G(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.move=function(e,r,i,s){if(!i){this.translate(r),this.options.probeType===3&&this.hooks.trigger(this.hooks.eventTypes.move,r),this.hooks.trigger(this.hooks.eventTypes.end,r);return}this.animate(e,r,i,s)},t.prototype.animate=function(e,r,i,s){var n=this,a=B(),l=a+i,h=this.options.probeType===3,c=function(){var u=B();if(u>=l){n.translate(r),h&&n.hooks.trigger(n.hooks.eventTypes.move,r),n.hooks.trigger(n.hooks.eventTypes.end,r);return}u=(u-a)/i;var p=s(u),v={};Object.keys(r).forEach(function(f){var z=e[f],Q=r[f];v[f]=(Q-z)*p+z}),n.translate(v),h&&n.hooks.trigger(n.hooks.eventTypes.move,v),n.pending&&(n.timer=It(c)),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,r))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),D(this.timer),c()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),D(this.timer);var r=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,r)}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Ut);function ze(o,t,e){var r=e.useTransition,i={};return Object.defineProperty(i,"probeType",{enumerable:!0,configurable:!1,get:function(){return e.probeType}}),r?new Fe(o,t,i):new Re(o,t,i)}var Et=function(){function o(t,e,r){this.wrapper=t,this.options=r,this.hooks=new w(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(e)}return o.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},o.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},o.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},o.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},o.prototype.performDampingAlgorithm=function(t,e){var r=this.currentPos+t;return(r>this.minScrollPos||r<this.maxScrollPos)&&(r>this.minScrollPos&&this.options.bounces[0]||r<this.maxScrollPos&&this.options.bounces[1]?r=this.currentPos+t*e:r=r>this.minScrollPos?this.minScrollPos:this.maxScrollPos),r},o.prototype.end=function(t){var e={duration:0},r=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&r>this.options.momentumLimitDistance){var i=this.direction===-1&&this.options.bounces[0]||this.direction===1&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},o.prototype.momentum=function(t,e,r,i,s,n,a){a===void 0&&(a=this.options);var l=t-e,h=Math.abs(l)/r,c=a.deceleration,u=a.swipeBounceTime,p=a.swipeTime,v=Math.min(p,h*2/c),f={de
18stination:t+h*h/c*(l<0?-1:1),duration:v,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,f,l),f.destination<i?(f.destination=n?Math.max(i-n/4,i-n/f.rate*h):i,f.duration=u):f.destination>s&&(f.destination=n?Math.min(s+n/4,s+n/f.rate*h):s,f.duration=u),f.destination=Math.round(f.destination),f},o.prototype.updateDirection=function(){var t=this.currentPos-this.absStartPos;this.setDirection(t)},o.prototype.refresh=function(t){var e=this.options.rect,r=e.size,i=e.position,s=window.getComputedStyle(this.wrapper,null).position==="static",n=wt(this.wrapper);this.wrapperSize=this.wrapper[r==="width"?"clientWidth":"clientHeight"],this.setContent(t);var a=wt(this.content);this.contentSize=a[r],this.relativeOffset=a[i],s&&(this.relativeOffset-=n[i]),this.computeBoundary(),this.setDirection(0)},o.prototype.setContent=function(t){t!==this.content&&(this.content=t,this.resetState())},o.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},o.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,this.options.specifiedIndexAsContent===0&&(t.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},o.prototype.updatePosition=function(t){this.currentPos=t},o.prototype.getCurrentPos=function(){return this.currentPos},o.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos),e=t===this.getCurrentPos();return{position:t,inBoundary:e}},o.prototype.adjustPosition=function(t){return!this.hasScroll&&!this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?t=this.minScrollPos:t>this.minScrollPos?t=this.minScrollPos:t<this.maxScrollPos&&(t=this.maxScrollPos),t},o.prototype.updateStartPos=function(){this.startPos=this.currentPos},o.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},o.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},o.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},o.prototype.destroy=function(){this.hooks.destroy()},o}(),U,K,N,W,Bt=(U={},U.yes=function(o){return!0},U.no=function(o){return Ht(o),!1},U),Ie=(K={},K.horizontal=(N={},N.yes="horizontal",N.no="vertical",N),K.vertical=(W={},W.yes="vertical",W.no="horizontal",W),K),Ue=function(){function o(t,e,r){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=r,this.reset()}return o.prototype.reset=function(){this.directionLocked=""},o.prototype.checkMovingDirection=function(t,e,r){return this.computeDirectionLock(t,e),this.handleEventPassthrough(r)},o.prototype.adjustDelta=function(t,e){return this.directionLocked==="horizontal"?e=0:this.directionLocked==="vertical"&&(t=0),{deltaX:t,deltaY:e}},o.prototype.computeDirectionLock=function(t,e){this.directionLocked===""&&!this.freeScroll&&(t>e+this.directionLockThreshold?this.directionLocked="horizontal":e>=t+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},o.prototype.handleEventPassthrough=function(t){var e=Ie[this.directionLocked];if(e){if(this.eventPassthrough===e.yes)return Bt.yes(t);if(this.eventPassthrough===e.no)return Bt.no(t)}return!1},o}(),Ke=function(o,t,e){return e===2?[t,-o]:e===3?[-o,-t]:e===4?[-t,o]:[o,t]},Ne=function(){function o(t,e,r,i,s){this.hooks=new w(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=r,this.animater=i,this.options=s,this.directionLockAction=new Ue(s.directionLockThreshold,s.freeScroll,s.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return o.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(e){return t.enabled?t.handleStart(e):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(e){var r=e.deltaX,i=e.deltaY,s=e.e;if(!t.enabled)return!0;var n=Ke(r,i,t.options.quadrant),a=n[0],l=n[1],h={deltaX:a,deltaY:l};return t.hooks.trigger(t.hooks.eventTypes.coordinateTransformation,h),t.handleMove(h.deltaX,h.deltaY,s)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(e){return t.enabled?t.handleEnd(e):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(e){t.enabled&&!e._constructed&&t.handleClick(e)})},o.prototype.handleStart=function(t){var e=B();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},o.prototype.handleMove=function(t,e,r){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,r)){var i=this.scrollBehaviorX.getAbsDist(t),s=this.scrollBehaviorY.getAbsDist(e),n=B();if(this.checkMomentum(i,s,n))return!0;
18if(this.directionLockAction.checkMovingDirection(i,s,r))return this.actionsHandler.setInitiated(),!0;var a=this.directionLockAction.adjustDelta(t,e),l=this.scrollBehaviorX.getCurrentPos(),h=this.scrollBehaviorX.move(a.deltaX),c=this.scrollBehaviorY.getCurrentPos(),u=this.scrollBehaviorY.move(a.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var p=h!==l||u!==c;!this.contentMoved&&!p&&this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&p&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&p&&(this.animater.translate({x:h,y:u}),this.dispatchScroll(n))}}},o.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),this.options.probeType===1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},o.prototype.checkMomentum=function(t,e,r){return r-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},o.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;e=this.ensureIntegerPos(e),this.animater.translate(e),this.endTime=B();var r=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,r)}},o.prototype.ensureIntegerPos=function(t){this.ensuringInteger=!0;var e=t.x,r=t.y,i=this.scrollBehaviorX,s=i.minScrollPos,n=i.maxScrollPos,a=this.scrollBehaviorY,l=a.minScrollPos,h=a.maxScrollPos;return e=e>0?Math.ceil(e):Math.floor(e),r=r>0?Math.ceil(r):Math.floor(r),e=Tt(e,n,s),r=Tt(r,h,l),{x:e,y:r}},o.prototype.handleClick=function(t){H(t.target,this.options.preventDefaultException)||(Ht(t),t.stopPropagation())},o.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},o.prototype.refresh=function(){this.endTime=0},o.prototype.destroy=function(){this.hooks.destroy()},o}();function We(o){var t=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce(function(e,r){return e[r]=o[r],e},{});return t}function Dt(o,t,e,r){var i=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce(function(s,n){return s[n]=o[n],s},{});return i.scrollable=!!o[t],i.bounces=e,i.rect=r,i}function ht(o,t,e){e.forEach(function(r){var i,s;typeof r=="string"?i=s=r:(i=r.source,s=r.target),o.on(i,function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.trigger.apply(t,Lt([s],n))})})}
18function $e(o,t){for(var e=Object.keys(o),r=0,i=e;r<i.length;r++){var s=i[r];if(o[s]!==t[s])return!1}return!0}var Ct=1,Ve=function(){function o(t,e,r){this.wrapper=t,this.content=e,this.resizeTimeout=0,this.hooks=new w(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=r;var i=this.options.bounce,s=i.left,n=i.right,a=i.top,l=i.bottom;this.scrollBehaviorX=new Et(t,e,Dt(r,"scrollX",[s,n],{size:"width",position:"left"})),this.scrollBehaviorY=new Et(t,e,Dt(r,"scrollY",[a,l],{size:"height",position:"top"})),this.translater=new Xe(this.content),this.animater=ze(this.content,this.translater,this.options),this.actionsHandler=new Ae(this.options.bindToTarget?this.content:t,We(this.options)),this.actions=new Ne(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var h=this.resize.bind(this);this.resizeRegister=new $(window,[{name:"orientationchange",handler:h},{name:"resize",handler:h}]),this.registerTransitionEnd(),this.init()}return o.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){t.togglePointerEvents(!0)})},o.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new $(this.content,[{name:E.transitionEnd,handler:this.transitionEnd.bind(this)}])},o.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,function(r){t.options.translateZ&&r.push(t.options.translateZ)}),e.on(e.eventTypes.translate,function(r){var i=t.getCurrentPos();if(t.updatePositions(r),t.actions.ensuringInteger===!0){t.actions.ensuringInteger=!1;return}(r.x!==i.x||r.y!==i.y)&&t.togglePointerEvents(!1)})},o.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))}),ht(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},o.prototype.bindActions=function(){var t=this,e=this.actions;ht(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,function(r,i){if(t.hooks.trigger(t.hooks.eventTypes.touchEnd,i),t.hooks.trigger(t.hooks.eventTypes.end,i)||!e.fingerMoved&&(t.hooks.trigger(t.hooks.eventTypes.scrollCancel),t.checkClick(r)))return!0;if(t.resetPosition(t.options.bounceTime,b.bounce))return t.animater.setForceStopped(!1),!0}),e.hooks.on(e.hooks.eventTypes.scrollEnd,function(r,i){var s=Math.abs(r.x-t.scrollBehaviorX.startPos),n=Math.abs(r.y-t.scrollBehaviorY.startPos);if(t.checkFlick(i,s,n)){t.animater.setForceStopped(!1),t.hooks.trigger(t.hooks.eventTypes.flick);return}if(t.momentum(r,i)){t.animater.setForceStopped(!1);return}e.contentMoved&&t.hooks.trigger(t.hooks.eventTypes.scrollEnd,r),t.animater.forceStopped&&t.animater.setForceStopped(!1)})},o.prototype.checkFlick=function(t,e,r){var i=1;if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&r<this.options.flickLimitDistance&&(r>i||e>i))return!0},o.prototype.momentum=function(t,e){var r={time:0,easing:b.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),s=this.scrollBehaviorY.end(e);if(r.newX=lt(i.destination)?r.newX:i.destination,r.newY=lt(s.destination)?r.newY:s.destination,r.time=Math.max(i.duration,s.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,r,this),r.newX!==t.x||r.newY!==t.y)return(r.newX>this.scrollBehaviorX.minScrollPos||r.newX<this.scrollBehaviorX.maxScrollPos||r.newY>this.scrollBehaviorY.minScrollPos||r.newY<this.scrollBehaviorY.maxScrollPos)&&(r.easing=b.swipeBounce),this.scrollTo(r.newX,r.newY,r.time,r.easing),!0},o.prototype.checkClick=function(t){var e={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!e.preventClick){var r=this.options.dblclick,i=!1;if(r&&this.lastClickTime){var s=r.delay,n=s===void 0?300:s;B()-this.lastClickTime<n&&(i=!0,Ce(t))}return this.options.tap&&De(t,this.options.tap),this.options.click&&!H(t.target,this.options.preventDefaultException)&&Rt(t),this.lastClickTime=i?null:B(),!0}return!1},o.prototype.resize=function(){var t=this;this.actions.enabled&&(ge&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){t.hooks.trigger(t.hooks.eventTypes.resize)},this.options.resizePolling))},o.prototype.transitionEnd=function(t){if(!(t.target!==this.content||!this.animater.pending)){var e=this.animater;e.transitionTime(),this.resetPosition(this.options.bounceTime,b.bounce)||(this.animater.setPending(!1),this.options.probeType!==3&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},o.prototype.togglePointerEvents=function(t){t===void 0&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],r=t?"auto":"none",i=0;i<e.length;i++){var s=e[i];s.isBScrollContainer||(s.style.pointerEvents=r)}},o.prototype.refresh=function(t){var e=this.setContent(t);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(t),this.scrollBehaviorY.refresh(t),e&&(this.translater.setContent(t),this.animater.setContent(t),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(t)),this.actions.refresh(),this.wrapperOffset=St(this.wrapper)},o.prototype.setContent=function(t){var e=t!==this.content;return e&&(this.content=t),e},o.prototype.scrollBy=function(t,e,r,i){r===void 0&&(r=0);var s=this.getCurrentPos(),n=s.x,a=s.y;i=i||b.bounce,t+=n,e+=a,this.scrollTo(t,e,r,i)},o.prototype.scrollTo=function(t,e,r,i,s){r===void 0&&(r=0),i===void 0&&(i=b.bounce),s===void 0&&(s={start:{},end:{}});var n=this.options.useTransition?i.style:i.fn,a=this.getCurrentPos(),l=X({x:a.x,y:a.y},s.start),h=X({x:t,y:e},s.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,h),!$e(l,h)){var c=Math.abs(h.x-l.x),u=Math.abs(h.y-l.y);c<Ct&&u<Ct&&(r=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(l,h,r,n)}},o.prototype.scrollToElement=function(t,e,r,i,s){var n=Xt(t),a=St(n),l=function(c,u,p){return typeof c=="number"?c:c?Math.round(u/2-p/2):0};r=l(r,n.offsetWidth,this.wrapper.offsetWidth),i=l(i,n.offsetHeight,this.wrapper.offsetHeight);var h=function(c,u,p,v){return c-=u,c=v.adjustPosition(c-p),c};a.left=h(a.left,this.wrapperOffset.left,r,this.scrollBehaviorX),a.top=h(a.top,this.wrapperOffset.top,i,this.scrollBehaviorY),!this.hooks.trigger(this.hooks.eventTypes.scrollToElement,n,a)&&this.scrollTo(a.left,a.top,e,s)},o.prototype.resetPosition=function(t,e){t===void 0&&(t=0),e===void 0&&(e=b.bounce);var r=this.scrollBehaviorX.checkInBoundary(),i=r.position,s=r.inBoundary,n=this.scrollBehaviorY.checkInBoundary(),a=n.position,l=n.inBoundary;return s&&l?!1:(ke&&this.reflow(),this.scrollTo(i,a,t,e),!0)},o.prototype.reflow=function(){this._reflow=this.content.offsetHeight},o.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},o.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},o.prototype.enable=function(){this.actions.enabled=!0},o.prototype.disable=function(){D(this.animater.timer),this.actions.enabled=!1},o.prototype.destroy=function(){var t=this,e=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];e.forEach(function(r){return t[r].destroy()})},o}(),q=function(o){G(t,o);function t(e,r){var i=o.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,s=Xt(e);return s?(i.plugins={},i.options=new Le().merge(r).process(),i.setContent(s).valid&&(i.hooks=new w(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),i.init(s)),i):i}return t.use=function(e){var r=e.pluginName,i=t.plugins.some(function(s){return e===s.ctor});return i?t:lt(r)?t:(t.pluginsMap[r]=!0,t.plugins.push({name:r,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var r=!1,i=!0,s=e.children[this.options.specifiedIndexAsContent];return s?(r=this.content!==s,r&&(this.content=s)):i=!1,{valid:i,contentChanged:r}},t.prototype.init=function(e){var r=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new Ve(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){r.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(ye),this.applyPlugins(),this.refreshWithoutReset(this.content);var i=this.options,s=i.startX,n=i.startY,a={x:s,y:n};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,a)||this.scroller.scrollTo(a.x,a.y)},t.prototype.applyPlugins=function(){var e=this,r=this.options;t.plugins.sort(function(i,s){var n,a=(n={},n.pre=-1,n.post=1,n),l=i.applyOrder?a[i.applyOrder]:0,h=s.applyOrder?a[s.applyOrder]:0;return l-h}
18).forEach(function(i){var s=i.ctor;r[i.name]&&typeof s=="function"&&(e.plugins[i.name]=new s(e))})},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var e=document.activeElement;e&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA")&&e.blur()})},t.prototype.eventBubbling=function(){ht(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var r=this;e.forEach(function(i){var s=i.key,n=i.sourceKey;Ye(r,n,s)})},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),r=e.contentChanged,i=e.valid;if(i){var s=this.content;this.refreshWithoutReset(s),r&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,s),this.trigger(this.eventTypes.contentChanged,s)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(w);function Z(o,t){var e=new q(o,t);return e}Z.use=q.use;Z.plugins=q.plugins;Z.pluginsMap=q.pluginsMap;var rt=Z;/*!
19 * better-scroll / pull-up
20 * (c) 2016-2023 ustbhuangyi
21 * Released under the MIT License.
22 */var F=typeof window!="undefined",V=F&&navigator.userAgent.toLowerCase();V&&V.indexOf("android")>0;(function(){if(typeof V=="string"){var o=/os (\d\d?_\d(_\d)?)/,t=o.exec(V);if(!t)return!1;var e=t[1].split("_").map(function(r){return parseInt(r,10)});return e[0]===13&&e[1]>=4}return!1})();var je=!1;if(F){var Ge="test-passive";try{var _t={};Object.defineProperty(_t,"passive",{get:function(){je=!0}}),window.addEventListener(Ge,function(){},_t)}catch{}}var qe=function(o,t){for(var e in t)o[e]=t[e];return o},Kt=F&&document.createElement("div").style,x=function(){if(!F)return!1;for(var o=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=o;t<e.length;t++){var r=e[t];if(Kt[r.value]!==void 0)return r.key}return!1}();function k(o){return x===!1?o:x==="standard"?o==="transitionEnd"?"transitionend":o:x+o.charAt(0).toUpperCase()+o.substr(1)}x&&x!=="standard"&&""+x.toLowerCase();var Ze=k("transform"),Qe=k("transition");F&&k("perspective")in Kt;k("transitionTimingFunction"),k("transitionDuration"),k("transitionDelay"),k("transformOrigin"),k("transitionEnd"),k("transitionProperty");var Je="plugins.pullUpLoad",to=[{key:"finishPullUp",name:"finishPullUp"},{key:"openPullUp",name:"openPullUp"},{key:"closePullUp",name:"closePullUp"},{key:"autoPullUpLoad",name:"autoPullUpLoad"}],eo=to.map(function(o){return{key:o.key,sourceKey:Je+"."+o.name}}),Mt="pullingUp",oo=function(){function o(t){this.scroll=t,this.pulling=!1,this.watching=!1,this.init()}return o.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullUpLoad),this.handleHooks(),this.watch()},o.prototype.handleBScroll=function(){this.scroll.registerType([Mt]),this.scroll.proxy(eo)},o.prototype.handleOptions=function(t){t===void 0&&(t={}),t=t===!0?{}:t;var e={threshold:0};this.options=qe(e,t),this.scroll.options.probeType=3},o.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller.scrollBehaviorY;this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,function(){t.finishPullUp()}),this.registerHooks(e.hooks,e.hooks.eventTypes.computeBoundary,function(r){r.maxScrollPos>0&&(r.maxScrollPos=-1)})},o.prototype.registerHooks=function(t,e,r){t.on(e,r,this),this.hooksFn.push([t,e,r])},o.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},o.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},o.prototype.checkPullUp=function(t){var e=this,r=this.options.threshold;this.scroll.movingDirectionY===1&&t.y<=this.scroll.maxScrollY+r&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,function(){e.pulling=!1}),this.unwatch(),this.scroll.trigger(Mt))},o.prototype.finishPullUp=function(){var t=this;
22this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,function(){t.watch()}):this.watch()},o.prototype.openPullUp=function(t){t===void 0&&(t={}),this.handleOptions(t),this.watch()},o.prototype.closePullUp=function(){this.unwatch()},o.prototype.autoPullUpLoad=function(){var t=this.options.threshold,e=this.scroll.scroller.scrollBehaviorY;if(!(this.pulling||!this.watching)){var r=-1,i=e.maxScrollPos+t+r;this.scroll.scroller.scrollBehaviorY.setMovingDirection(r),this.scroll.scrollTo(this.scroll.x,i,this.scroll.options.bounceTime)}},o.pluginName="pullUpLoad",o}();/*!
23 * better-scroll / pull-down
24 * (c) 2016-2023 ustbhuangyi
25 * Released under the MIT License.
26 */var R=typeof window!="undefined",j=R&&navigator.userAgent.toLowerCase();j&&j.indexOf("android")>0;(function(){if(typeof j=="string"){var o=/os (\d\d?_\d(_\d)?)/,t=o.exec(j);if(!t)return!1;var e=t[1].split("_").map(function(r){return parseInt(r,10)});return e[0]===13&&e[1]>=4}return!1})();var ro=!1;if(R){var io="test-passive";try{var xt={};Object.defineProperty(xt,"passive",{get:function(){ro=!0}}),window.addEventListener(io,function(){},xt)}catch{}}var so=function(o,t){for(var e in t)o[e]=t[e];return o},Nt=R&&document.createElement("div").style,Y=function(){if(!R)return!1;for(var o=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],t=0,e=o;t<e.length;t++){var r=e[t];if(Nt[r.value]!==void 0)return r.key}return!1}();function T(o){return Y===!1?o:Y==="standard"?o==="transitionEnd"?"transitionend":o:Y+o.charAt(0).toUpperCase()+o.substr(1)}Y&&Y!=="standard"&&""+Y.toLowerCase();var no=T("transform"),ao=T("transition");R&&T("perspective")in Nt;T("transitionTimingFunction"),T("transitionDuration"),T("transitionDelay"),T("transformOrigin"),T("transitionEnd"),T("transitionProperty");var it={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(o){return 1+--o*o*o*o*o}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(o){return o*(2-o)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(o){return 1- --o*o*o*o}}},lo="plugins.pullDownRefresh",ho=[{key:"finishPullDown",name:"finishPullDown"},{key:"openPullDown",name:"openPullDown"},{key:"closePullDown",name:"closePullDown"},{key:"autoPullDownRefresh",name:"autoPullDownRefresh"}],co=ho.map(function(o){return{key:o.key,sourceKey:lo+"."+o.name}}),st="pullingDown",Yt="enterThreshold",Ot="leaveThreshold",uo=function(){function o(t){this.scroll=t,this.pulling=0,this.thresholdBoundary=0,this.init()}return o.prototype.setPulling=function(t){this.pulling=t},o.prototype.setThresholdBoundary=function(t){this.thresholdBoundary=t},o.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullDownRefresh),this.handleHooks(),this.watch()},o.prototype.handleBScroll=function(){this.scroll.registerType([st,Yt,Ot]),this.scroll.proxy(co)},o.prototype.handleOptions=function(t){t===void 0&&(t={}),t=t===!0?{}:t;var e={threshold:90,stop:40};this.options=so(e,t),this.scroll.options.probeType=3},o.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller,r=e.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY=r.minScrollPos,this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,function(){t.finishPullDown()}),this.registerHooks(r.hooks,r.hooks.eventTypes.computeBoundary,function(i){i.maxScrollPos>0&&(i.maxScrollPos=-1),i.minScrollPos=t.currentMinScrollY}),this.hasMouseWheelPlugin()&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,function(i){var s=300,n=350;i.discreteTime=s,i.easeTime=n}),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,function(){e.hooks.trigger(e.hooks.eventTypes.end)}))},o.prototype.registerHooks=function(t,e,r){t.on(e,r,this),this.hooksFn.push([t,e,r])},o.prototype.hasMouseWheelPlugin=function(){return!!this.scroll.eventTypes.alterOptions}
26,o.prototype.watch=function(){var t=this.scroll.scroller;this.watching=!0,this.registerHooks(t.hooks,t.hooks.eventTypes.end,this.checkPullDown),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollStart,this.resetStateBeforeScrollStart),this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},o.prototype.resetStateBeforeScrollStart=function(){this.isFetchingStatus()||(this.setPulling(1),this.setThresholdBoundary(0))},o.prototype.checkLocationOfThresholdBoundary=function(){if(this.pulling===1){var t=this.scroll,e=this.thresholdBoundary!==1&&this.locateInsideThresholdBoundary(),r=this.thresholdBoundary!==2&&!this.locateInsideThresholdBoundary();e&&(this.setThresholdBoundary(1),t.trigger(Yt)),r&&(this.setThresholdBoundary(2),t.trigger(Ot))}},o.prototype.locateInsideThresholdBoundary=function(){return this.scroll.y<=this.options.threshold},o.prototype.unwatch=function(){var t=this.scroll,e=t.scroller;this.watching=!1,e.hooks.off(e.hooks.eventTypes.end,this.checkPullDown),t.off(t.eventTypes.scrollStart,this.resetStateBeforeScrollStart),t.off(t.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&t.off(t.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},o.prototype.checkPullDown=function(){var t=this.options,e=t.threshold,r=t.stop;return this.scroll.y<e?!1:(this.pulling===1&&(this.modifyBehaviorYBoundary(r),this.setPulling(2),this.scroll.trigger(st)),this.scroll.scrollTo(this.scroll.x,r,this.scroll.options.bounceTime,it.bounce),this.isFetchingStatus())},o.prototype.isFetchingStatus=function(){return this.pulling===2},o.prototype.modifyBehaviorYBoundary=function(t){var e=this.scroll.scroller.scrollBehaviorY;this.cachedOriginanMinScrollY=e.minScrollPos,this.currentMinScrollY=t,e.computeBoundary()},o.prototype.finishPullDown=function(){if(this.isFetchingStatus()){var t=this.scroll.scroller.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY,t.computeBoundary(),this.setPulling(0),this.scroll.resetPosition(this.scroll.options.bounceTime,it.bounce)}},o.prototype.openPullDown=function(t){t===void 0&&(t={}),this.handleOptions(t),this.watching||this.watch()},o.prototype.closePullDown=function(){this.unwatch()},o.prototype.autoPullDownRefresh=function(){var t=this.options,e=t.threshold,r=t.stop;this.isFetchingStatus()||!this.watching||(this.modifyBehaviorYBoundary(r),this.scroll.trigger(this.scroll.eventTypes.scrollStart),this.scroll.scrollTo(this.scroll.x,e),this.setPulling(2),this.scroll.trigger(st),this.scroll.scrollTo(this.scroll.x,r,this.scroll.options.bounceTime,it.bounce))},o.pluginName="pullDownRefresh",o}();const po=$t({__name:"SystemMessages",setup(o,{expose:t}){t(),Vt(S=>({ebc7d2da:pt.value})),rt.use(oo),rt.use(uo);const e=jt(),{t:r}=Gt(),i=qt(),s=Zt(),{show:n,hide:a}=Qt(),l=C(r("MeScroll.Refresh")),h=C(!1),c=C(!0),u={page:1,page_size:20,skin_type:2},p=C([]),v=async(S=!1)=>{var L;try{n(),S&&(u.page=1);const{data:A}=await ee(u);S?p.value=A:p.value=p.value.concat(A),c.value=!!A.length}catch{}finally{a(),await vt(),(L=y.value)==null||L.refresh()}},f=async(S,L)=>{try{p.value[L].is_red||(await oe({id:S.id}),p.value[L].is_red=1),i.setMsgDetail(S),await e.push({path:"/MailDetails"})}catch{}},z=async()=>{try{n(),await re({msg_id:0}),dt({message:"Deleted successfully",duration:3e3}),await v(!0)}catch{}finally{a()}},Q=async()=>{try{n(),await ie({msg_id:0}),dt({message:"Received successfully",duration:3e3}),await v(!0)}catch{}finally{a()}},ut=C(null),y=C();Jt(async()=>{await v(!0),await vt(),y.value=new rt(ut.value,{mouseWheel:!1,click:!0,probeType:3,pullUpLoad:{threshold:-40,stop:40},pullDownRefresh:{threshold:40,stop:40}}),y.value.on("pullingDown",async()=>{l.value=r("MeScroll.loading"),u.page=1,await v(!0),y.value.finishPullDown()}),y.value.on("enterThreshold",()=>{l.value=r("MeScroll.Refresh")}),y.value.on("leaveThreshold",()=>{l.value=r("MeScroll.downRefresh")}),y.value.on("pullingUp",async()=>
26{if(!c.value)return y.value.finishPullUp();h.value=!0,u.page+=1,await v(),h.value=!1,y.value.finishPullUp()})});const pt=te(()=>`${s.navBarHeight}px`),ft={router:e,t:r,userStore:i,homeStore:s,show:n,hide:a,tipsText:l,showLoading:h,haveMoreMsg:c,params:u,msgList:p,getMsgData:v,showMsgDetail:f,delReadMsgClick:z,receiveAllAwardsClick:Q,msgListBsRef:ut,msgListBs:y,navBarHeight:pt};return Object.defineProperty(ft,"__isScriptSetup",{enumerable:!1,value:!0}),ft}}),Wt=o=>(fe("data-v-476dfec9"),o=o(),ve(),o),fo={class:"messages-box",ref:"msgListBsRef"},vo={class:"message-inner-box"},yo={class:"refresh-box"},mo=["onClick"],go={class:"msg-info-box"},ko={class:"title"},To={class:"time-box"},So=Wt(()=>d("div",{class:"clock-img"},null,-1)),Po={class:"bottom-box"},wo=Wt(()=>d("div",{class:"tips"},null,-1)),bo={class:"button-box"};function Eo(o,t,e,r,i,s){const n=de,a=ce;return I(),J(yt,null,[d("div",fo,[d("div",vo,[d("div",yo,_(r.tipsText),1),r.msgList.length?(I(!0),J(yt,{key:0},ne(r.msgList,(l,h)=>(I(),J("div",{class:ue(l.is_red?"msg-read":"msg-not-read"),key:l.id,onClick:c=>r.showMsgDetail(l,h)},[d("div",go,[d("div",ko,_(l.title),1),d("div",To,[So,d("span",null,_(l.createtime),1)])])],10,mo))),128)):(I(),ae(n,{key:1})),mt(d("div",{class:"loading"},_(o.$t("MeScroll.loading")),513),[[gt,r.showLoading]]),mt(d("div",{class:"loading"},_(o.$t("MeScroll.isEmpty")),513),[[gt,!r.haveMoreMsg]])])],512),d("div",Po,[wo,d("div",bo,[le(a,{class:"btn",type:"submit",onClick:r.receiveAllAwardsClick},{default:he(()=>[pe(_(o.$t("message.receiveAll")),1)]),_:1})])])],64)}const Mo=se(po,[["render",Eo],["__scopeId","data-v-476dfec9"],["__file","SystemMessages.vue"]]);export{Mo as default};

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.