var __renderjsModules={};
__renderjsModules["39c049d8"]=(()=>{var l=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var F=Object.prototype.hasOwnProperty;var I=(i,t)=>{for(var h in t)l(i,h,{get:t[h],enumerable:!0})},q=(i,t,h,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of D(t))!F.call(i,s)&&s!==h&&l(i,s,{get:()=>t[s],enumerable:!(a=A(t,s))||a.enumerable});return i};var E=i=>q(l({},"__esModule",{value:!0}),i);var V={};I(V,{default:()=>S});function v({x:i,y:t,vx:h,vy:a,canvasWidth:s,canvasHeight:n,ctx:c}){this.canvasWidth=s,this.canvasHeight=n,this.ctx=c,this.x=i,this.y=t,this.vx=h,this.vy=a,this.radius=5}v.prototype.draw=function(){this.ctx.beginPath(),this.ctx.fillStyle="#007AFF",this.ctx.arc(this.x,this.y,this.radius,0,2*Math.PI),this.ctx.closePath(),this.ctx.fill()};v.prototype.move=function(){if(this.x+=this.vx,this.y+=this.vy,this.x<this.radius){this.vx=Math.abs(this.vx);return}if(this.x>this.canvasWidth-this.radius&&(this.vx=-Math.abs(this.vx)),this.y<this.radius){this.vy=Math.abs(this.vy);return}this.y>this.canvasWidth-this.radius&&(this.vy=-Math.abs(this.vy))};function H(i,t){return Math.pow(Math.pow(i,2)+Math.pow(t,2),.5)}var S={methods:{start(i,t,h,a){let s=a.getDataset().width,n=a.getDataset().height,c=document.querySelectorAll(".canvas>canvas")[0],d=c.getContext("2d"),u=3,x=[],y=3,f=20;for(let e=0;e<y;e++){let r=H(s/2,n/2)/y*e;for(let o=0;o<f;o++){let g=o*2*Math.PI/f,p=Math.sin(g),w=Math.cos(g),b=r*w+s/2,m=r*p+n/2,P=u*w,W=u*p;x.push(new v({x:b,y:m,vx:P,vy:W,canvasWidth:s,canvasHeight:n,ctx:d,radius:5}))}}function M(e){d.clearRect(0,0,c.width,c.height),e.forEach(function(r){r.move(),r.draw()}),requestAnimationFrame(function(){M(e)})}M(x)}}};return E(V);})();

__renderjsModules["5a1e922e"]=(()=>{var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var o in e)u(t,o,{get:e[o],enumerable:!0})},g=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!p.call(t,i)&&i!==o&&u(t,i,{get:()=>e[i],enumerable:!(a=c(e,i))||a.enumerable});return t};var v=t=>g(u({},"__esModule",{value:!0}),t);var S={};m(S,{default:()=>D});var l={showWatch(t,e,o,a,i){var s=i.state,r=o.$el||o.$vm&&o.$vm.$el;if(r){if(this.getDom(a,o,i),t&&t!=="none"){this.openState(t,a,o,i);return}s.left&&this.openState("none",a,o,i),this.resetTouchStatus(a,i)}},touchstart(t,e,o){let a=t.instance,i=a.getDataset().disabled,s=o.state;this.getDom(a,e,o),i=this.getDisabledType(i),!i&&(a.requestAnimationFrame(function(){a.removeClass("ani"),e.callMethod("closeSwipe")}),s.x=s.left||0,this.stopTouchStart(t,e,o))},touchmove(t,e,o){let a=t.instance;if(!a)return;let i=a.getDataset().disabled,s=o.state;if(i=this.getDisabledType(i),i||(this.stopTouchMove(t,o),s.direction!=="horizontal"))return;t.preventDefault&&t.preventDefault();let r=s.x+s.deltaX;this.move(r,a,e,o)},touchend(t,e,o){let a=t.instance,i=a.getDataset().disabled,s=o.state;i=this.getDisabledType(i),!i&&this.moveDirection(s.left,a,e,o)},move(t,e,o,a){t=t||0;let i=a.state,s=i.leftWidth,r=i.rightWidth;i.left=this.range(t,-r,s),e.requestAnimationFrame(function(){e.setStyle({transform:"translateX("+i.left+"px)","-webkit-transform":"translateX("+i.left+"px)"})})},getDom(t,e,o){var a=o.state,i=e.$el||e.$vm&&e.$vm.$el,s=i.querySelector(".button-group--left"),r=i.querySelector(".button-group--right");a.leftWidth=s.offsetWidth||0,a.rightWidth=r.offsetWidth||0,a.threshold=t.getDataset().threshold},getDisabledType(t){return(typeof t=="string"?JSON.parse(t):t)||!1},range(t,e,o){return Math.min(Math.max(t,e),o)},moveDirection(t,e,o,a){var i=a.state,s=i.threshold,r=i.position,h=i.isopen||"none",n=i.leftWidth,d=i.rightWidth;if(i.deltaX===0){this.openState("none",e,o,a);return}h==="none"&&d>0&&-t>s||h!=="none"&&d>0&&d+t<s?this.openState("right",e,o,a):h==="none"&&n>0&&t>s||h!=="none"&&n>0&&n-t<s?this.openState("left",e,o,a):this.openState("none",e,o,a)},openState(t,e,o,a){let i=a.state,s=i.leftWidth,r=i.rightWidth,h="";switch(i.isopen=i.isopen?i.isopen:"none",t){case"left":h=s;break;case"right":h=-r;break;default:h=0}i.isopen!==t&&(i.throttle=!0,o.callMethod("change",{open:t})),i.isopen=t,e.requestAnimationFrame(()=>{e.addClass("ani"),this.move(h,e,o,a)})},getDirection(t,e){return t>e&&t>10?"horizontal":e>t&&e>10?"vertical":""},resetTouchStatus(t,e){let o=e.state;o.direction="",o.deltaX=0,o.deltaY=0,o.offsetX=0,o.offsetY=0},stopTouchStart(t,e,o){let a=t.instance,i=o.state;this.resetTouchStatus(a,o);var s=t.touches[0];i.startX=s.clientX,i.startY=s.clientY},stopTouchMove(t,e){let o=t.instance,a=e.state,i=t.touches[0];a.deltaX=i.clientX-a.startX,a.deltaY=i.clientY-a.startY,a.offsetY=Math.abs(a.deltaY),a.offsetX=Math.abs(a.deltaX),a.direction=a.direction||this.getDirection(a.offsetX,a.offsetY)}};var D={mounted(t,e,o){this.state={}},methods:{showWatch(t,e,o,a){l.showWatch(t,e,o,a,this)},touchstart(t,e){l.touchstart(t,e,this)},touchmove(t,e){l.touchmove(t,e,this)},touchend(t,e){l.touchend(t,e,this)}}};return v(S);})();
