@component-hook/picker 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(N,ge){typeof exports=="object"&&typeof module<"u"?module.exports=ge(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ge):(N=typeof globalThis<"u"?globalThis:N||self,N.picker=ge(N.React,N.ReactDOM))})(this,function(N,ge){"use strict";var jt=document.createElement("style");jt.textContent=`.component-hook-picker-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#0003}.component-hook-picker{position:fixed;left:0;right:0;bottom:0;height:270px;z-index:10000;background:#fff;-webkit-user-select:none;user-select:none}.component-hook-picker_title{position:relative;height:44px;color:#333}.component-hook-picker_title:after{content:"";display:block;border-bottom:1px solid #ebebeb;left:0;right:0;transform:scaleY(.5)}.component-hook-picker_title button{position:absolute;height:44px;line-height:44px;padding:0 12px;font-size:14px;border:none;background-color:transparent}.component-hook-picker_title button:hover{background-color:transparent}.component-hook-picker_title h4{margin:0;font-size:16px;font-weight:400;height:44px;line-height:44px;text-align:center}.component-hook-picker_cancel{left:0;cursor:pointer;transition:all .3s}.component-hook-picker_cancel:hover{filter:brightness(110%)}.component-hook-picker_confirm{right:0;cursor:pointer;transition:all .3s}.component-hook-picker_confirm:hover{filter:brightness(110%)}.component-hook-picker_panel{position:relative;height:226px;padding:24px 12px;box-sizing:border-box}.component-hook-picker_mask_top,.component-hook-picker_mask_bottom{position:absolute;left:0;right:0;height:72px;background:#fff;transform:translateZ(0);z-index:1;pointer-events:none}.component-hook-picker_mask_top{top:24px;background:linear-gradient(to bottom,#ffffffe6,#ffffff80)}.component-hook-picker_mask_top:after{content:"";display:block;position:absolute;left:0;right:0;bottom:0;border-bottom:1px solid #ebebeb;transform:scaleY(.5)}.component-hook-picker_mask_bottom{bottom:24px;background:linear-gradient(to top,#ffffffe6,#ffffff80)}.component-hook-picker_mask_bottom:before{content:"";display:block;position:absolute;left:0;right:0;top:0;border-bottom:1px solid #ebebeb;transform:scaleY(.5)}.component-hook-picker_wheel{flex:1;overflow:hidden}.component-hook-picker_wheel_wrapper{display:flex;align-items:stretch;height:100%}.component-hook-picker_wheel_scroll{margin-top:72px;padding:0}.component-hook-picker_wheel_item{height:34px;line-height:34px;font-size:17px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333}.component-hook-picker-fade-enter{opacity:0}.component-hook-picker-fade-enter-active{opacity:1;transition:all .3s ease}.component-hook-picker-fade-exit-active{opacity:0;transition:all .3s ease}.component-hook-picker-slide-enter{opacity:.5;transform:translate3d(0,270px,0)}.component-hook-picker-slide-enter-active{transition:all .3s ease;opacity:1;transform:translateZ(0)}.component-hook-picker-slide-exit-active{transition:all .3s ease;opacity:.5;transform:translate3d(0,270px,0)}
2
- /*$vite$:1*/`,document.head.appendChild(jt);function Lr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ct={exports:{}},Ne={};/**
1
+ (function(N,ge){typeof exports=="object"&&typeof module<"u"?module.exports=ge(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ge):(N=typeof globalThis<"u"?globalThis:N||self,N.picker=ge(N.React,N.ReactDOM))})(this,function(N,ge){"use strict";var Yt=document.createElement("style");Yt.textContent=`.component-hook-picker-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#0003}.component-hook-picker{position:fixed;left:0;right:0;bottom:0;height:270px;z-index:10000;background:#fff;-webkit-user-select:none;user-select:none}.component-hook-picker_title{position:relative;height:44px;color:#333}.component-hook-picker_title:after{content:"";display:block;border-bottom:1px solid #ebebeb;left:0;right:0;transform:scaleY(.5)}.component-hook-picker_title button{position:absolute;height:44px;line-height:44px;padding:0 12px;font-size:14px;border:none;background-color:transparent}.component-hook-picker_title button:hover{background-color:transparent}.component-hook-picker_title h4{margin:0;font-size:16px;font-weight:400;height:44px;line-height:44px;text-align:center}.component-hook-picker_cancel{left:0;cursor:pointer;transition:all .3s}.component-hook-picker_cancel:hover{filter:brightness(110%)}.component-hook-picker_confirm{right:0;cursor:pointer;transition:all .3s}.component-hook-picker_confirm:hover{filter:brightness(110%)}.component-hook-picker_panel{position:relative;height:226px;padding:24px 12px;box-sizing:border-box}.component-hook-picker_mask_top,.component-hook-picker_mask_bottom{position:absolute;left:0;right:0;height:72px;background:#fff;transform:translateZ(0);z-index:1;pointer-events:none}.component-hook-picker_mask_top{top:24px;background:linear-gradient(to bottom,#ffffffe6,#ffffff80)}.component-hook-picker_mask_top:after{content:"";display:block;position:absolute;left:0;right:0;bottom:0;border-bottom:1px solid #ebebeb;transform:scaleY(.5)}.component-hook-picker_mask_bottom{bottom:24px;background:linear-gradient(to top,#ffffffe6,#ffffff80)}.component-hook-picker_mask_bottom:before{content:"";display:block;position:absolute;left:0;right:0;top:0;border-bottom:1px solid #ebebeb;transform:scaleY(.5)}.component-hook-picker_wheel{flex:1;overflow:hidden}.component-hook-picker_wheel_wrapper{display:flex;align-items:stretch;height:100%}.component-hook-picker_wheel_scroll{margin-top:72px;padding:0}.component-hook-picker_wheel_item{height:34px;line-height:34px;font-size:17px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333}.component-hook-picker-fade-enter{opacity:0}.component-hook-picker-fade-enter-active{opacity:1;transition:all .3s ease}.component-hook-picker-fade-exit-active{opacity:0;transition:all .3s ease}.component-hook-picker-slide-enter{opacity:.5;transform:translate3d(0,270px,0)}.component-hook-picker-slide-enter-active{transition:all .3s ease;opacity:1;transform:translateZ(0)}.component-hook-picker-slide-exit-active{transition:all .3s ease;opacity:.5;transform:translate3d(0,270px,0)}
2
+ /*$vite$:1*/`,document.head.appendChild(Yt);function Nr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var at={exports:{}},Ne={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Nt;function $r(){if(Nt)return Ne;Nt=1;var r=N,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,u,l){var f,p={},b=null,_=null;l!==void 0&&(b=""+l),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(_=u.ref);for(f in u)n.call(u,f)&&!i.hasOwnProperty(f)&&(p[f]=u[f]);if(c&&c.defaultProps)for(f in u=c.defaultProps,u)p[f]===void 0&&(p[f]=u[f]);return{$$typeof:e,type:c,key:b,ref:_,props:p,_owner:o.current}}return Ne.Fragment=t,Ne.jsx=a,Ne.jsxs=a,Ne}var Le={};/**
10
+ */var Bt;function Lr(){if(Bt)return Ne;Bt=1;var r=N,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,u,l){var f,p={},b=null,_=null;l!==void 0&&(b=""+l),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(_=u.ref);for(f in u)n.call(u,f)&&!i.hasOwnProperty(f)&&(p[f]=u[f]);if(c&&c.defaultProps)for(f in u=c.defaultProps,u)p[f]===void 0&&(p[f]=u[f]);return{$$typeof:e,type:c,key:b,ref:_,props:p,_owner:o.current}}return Ne.Fragment=t,Ne.jsx=a,Ne.jsxs=a,Ne}var Le={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,39 +15,39 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Lt;function Fr(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=N,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),R=Symbol.iterator,I="@@iterator";function B(s){if(s===null||typeof s!="object")return null;var h=R&&s[R]||s[I];return typeof h=="function"?h:null}var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(s){{for(var h=arguments.length,y=new Array(h>1?h-1:0),P=1;P<h;P++)y[P-1]=arguments[P];H("error",s,y)}}function H(s,h,y){{var P=X.ReactDebugCurrentFrame,F=P.getStackAddendum();F!==""&&(h+="%s",y=y.concat([F]));var z=y.map(function(Y){return String(Y)});z.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,z)}}var W=!1,v=!1,re=!1,Q=!1,K=!1,ne;ne=Symbol.for("react.module.reference");function ie(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===i||K||s===o||s===l||s===f||Q||s===_||W||v||re||typeof s=="object"&&s!==null&&(s.$$typeof===b||s.$$typeof===p||s.$$typeof===a||s.$$typeof===c||s.$$typeof===u||s.$$typeof===ne||s.getModuleId!==void 0))}function pe(s,h,y){var P=s.displayName;if(P)return P;var F=h.displayName||h.name||"";return F!==""?y+"("+F+")":y}function se(s){return s.displayName||"Context"}function G(s){if(s==null)return null;if(typeof s.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case c:var h=s;return se(h)+".Consumer";case a:var y=s;return se(y._context)+".Provider";case u:return pe(s,s.render,"ForwardRef");case p:var P=s.displayName||null;return P!==null?P:G(s.type)||"Memo";case b:{var F=s,z=F._payload,Y=F._init;try{return G(Y(z))}catch{return null}}}return null}var J=Object.assign,ae=0,ee,ce,ye,de,d,g,T;function k(){}k.__reactDisabledLog=!0;function E(){{if(ae===0){ee=console.log,ce=console.info,ye=console.warn,de=console.error,d=console.group,g=console.groupCollapsed,T=console.groupEnd;var s={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}ae++}}function x(){{if(ae--,ae===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},s,{value:ee}),info:J({},s,{value:ce}),warn:J({},s,{value:ye}),error:J({},s,{value:de}),group:J({},s,{value:d}),groupCollapsed:J({},s,{value:g}),groupEnd:J({},s,{value:T})})}ae<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var S=X.ReactCurrentDispatcher,w;function O(s,h,y){{if(w===void 0)try{throw Error()}catch(F){var P=F.stack.trim().match(/\n( *(at )?)/);w=P&&P[1]||""}return`
19
- `+w+s}}var j=!1,A;{var Z=typeof WeakMap=="function"?WeakMap:Map;A=new Z}function m(s,h){if(!s||j)return"";{var y=A.get(s);if(y!==void 0)return y}var P;j=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var z;z=S.current,S.current=null,E();try{if(h){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(oe){P=oe}Reflect.construct(s,[],Y)}else{try{Y.call()}catch(oe){P=oe}s.call(Y.prototype)}}else{try{throw Error()}catch(oe){P=oe}s()}}catch(oe){if(oe&&P&&typeof oe.stack=="string"){for(var M=oe.stack.split(`
20
- `),te=P.stack.split(`
21
- `),U=M.length-1,q=te.length-1;U>=1&&q>=0&&M[U]!==te[q];)q--;for(;U>=1&&q>=0;U--,q--)if(M[U]!==te[q]){if(U!==1||q!==1)do if(U--,q--,q<0||M[U]!==te[q]){var ue=`
22
- `+M[U].replace(" at new "," at ");return s.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",s.displayName)),typeof s=="function"&&A.set(s,ue),ue}while(U>=1&&q>=0);break}}}finally{j=!1,S.current=z,x(),Error.prepareStackTrace=F}var je=s?s.displayName||s.name:"",_e=je?O(je):"";return typeof s=="function"&&A.set(s,_e),_e}function le(s,h,y){return m(s,!1)}function Ye(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ce(s,h,y){if(s==null)return"";if(typeof s=="function")return m(s,Ye(s));if(typeof s=="string")return O(s);switch(s){case l:return O("Suspense");case f:return O("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case u:return le(s.render);case p:return Ce(s.type,h,y);case b:{var P=s,F=P._payload,z=P._init;try{return Ce(z(F),h,y)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,wr={},Cr=X.ReactDebugCurrentFrame;function at(s){if(s){var h=s._owner,y=Ce(s.type,s._source,h?h.type:null);Cr.setExtraStackFrame(y)}else Cr.setExtraStackFrame(null)}function ao(s,h,y,P,F){{var z=Function.call.bind(He);for(var Y in s)if(z(s,Y)){var M=void 0;try{if(typeof s[Y]!="function"){var te=Error((P||"React class")+": "+y+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}M=s[Y](h,Y,P,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){M=U}M&&!(M instanceof Error)&&(at(F),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",P||"React class",y,Y,typeof M),at(null)),M instanceof Error&&!(M.message in wr)&&(wr[M.message]=!0,at(F),D("Failed %s type: %s",y,M.message),at(null))}}}var co=Array.isArray;function Dt(s){return co(s)}function lo(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,y=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return y}}function uo(s){try{return _r(s),!1}catch{return!0}}function _r(s){return""+s}function Or(s){if(uo(s))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lo(s)),_r(s)}var Ue=X.ReactCurrentOwner,fo={key:!0,ref:!0,__self:!0,__source:!0},Rr,Dr,At;At={};function ho(s){if(He.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function po(s){if(He.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function vo(s,h){if(typeof s.ref=="string"&&Ue.current&&h&&Ue.current.stateNode!==h){var y=G(Ue.current.type);At[y]||(D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(Ue.current.type),s.ref),At[y]=!0)}}function mo(s,h){{var y=function(){Rr||(Rr=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};y.isReactWarning=!0,Object.defineProperty(s,"key",{get:y,configurable:!0})}}function yo(s,h){{var y=function(){Dr||(Dr=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};y.isReactWarning=!0,Object.defineProperty(s,"ref",{get:y,configurable:!0})}}var go=function(s,h,y,P,F,z,Y){var M={$$typeof:e,type:s,key:h,ref:y,props:Y,_owner:z};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function To(s,h,y,P,F){{var z,Y={},M=null,te=null;y!==void 0&&(Or(y),M=""+y),po(h)&&(Or(h.key),M=""+h.key),ho(h)&&(te=h.ref,vo(h,F));for(z in h)He.call(h,z)&&!fo.hasOwnProperty(z)&&(Y[z]=h[z]);if(s&&s.defaultProps){var U=s.defaultProps;for(z in U)Y[z]===void 0&&(Y[z]=U[z])}if(M||te){var q=typeof s=="function"?s.displayName||s.name||"Unknown":s;M&&mo(Y,q),te&&yo(Y,q)}return go(s,M,te,F,P,Ue.current,Y)}}var Mt=X.ReactCurrentOwner,Ar=X.ReactDebugCurrentFrame;function Be(s){if(s){var h=s._owner,y=Ce(s.type,s._source,h?h.type:null);Ar.setExtraStackFrame(y)}else Ar.setExtraStackFrame(null)}var It;It=!1;function Yt(s){return typeof s=="object"&&s!==null&&s.$$typeof===e}function Mr(){{if(Mt.current){var s=G(Mt.current.type);if(s)return`
18
+ */var jt;function $r(){return jt||(jt=1,process.env.NODE_ENV!=="production"&&function(){var r=N,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),R=Symbol.iterator,I="@@iterator";function B(s){if(s===null||typeof s!="object")return null;var h=R&&s[R]||s[I];return typeof h=="function"?h:null}var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(s){{for(var h=arguments.length,y=new Array(h>1?h-1:0),P=1;P<h;P++)y[P-1]=arguments[P];H("error",s,y)}}function H(s,h,y){{var P=X.ReactDebugCurrentFrame,F=P.getStackAddendum();F!==""&&(h+="%s",y=y.concat([F]));var z=y.map(function(Y){return String(Y)});z.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,z)}}var W=!1,v=!1,te=!1,Z=!1,K=!1,re;re=Symbol.for("react.module.reference");function ie(s){return!!(typeof s=="string"||typeof s=="function"||s===n||s===i||K||s===o||s===l||s===f||Z||s===_||W||v||te||typeof s=="object"&&s!==null&&(s.$$typeof===b||s.$$typeof===p||s.$$typeof===a||s.$$typeof===c||s.$$typeof===u||s.$$typeof===re||s.getModuleId!==void 0))}function pe(s,h,y){var P=s.displayName;if(P)return P;var F=h.displayName||h.name||"";return F!==""?y+"("+F+")":y}function se(s){return s.displayName||"Context"}function ne(s){if(s==null)return null;if(typeof s.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case c:var h=s;return se(h)+".Consumer";case a:var y=s;return se(y._context)+".Provider";case u:return pe(s,s.render,"ForwardRef");case p:var P=s.displayName||null;return P!==null?P:ne(s.type)||"Memo";case b:{var F=s,z=F._payload,Y=F._init;try{return ne(Y(z))}catch{return null}}}return null}var G=Object.assign,ae=0,Q,ce,ye,de,d,g,T;function k(){}k.__reactDisabledLog=!0;function E(){{if(ae===0){Q=console.log,ce=console.info,ye=console.warn,de=console.error,d=console.group,g=console.groupCollapsed,T=console.groupEnd;var s={configurable:!0,enumerable:!0,value:k,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}ae++}}function x(){{if(ae--,ae===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},s,{value:Q}),info:G({},s,{value:ce}),warn:G({},s,{value:ye}),error:G({},s,{value:de}),group:G({},s,{value:d}),groupCollapsed:G({},s,{value:g}),groupEnd:G({},s,{value:T})})}ae<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var S=X.ReactCurrentDispatcher,w;function O(s,h,y){{if(w===void 0)try{throw Error()}catch(F){var P=F.stack.trim().match(/\n( *(at )?)/);w=P&&P[1]||""}return`
19
+ `+w+s}}var j=!1,A;{var J=typeof WeakMap=="function"?WeakMap:Map;A=new J}function m(s,h){if(!s||j)return"";{var y=A.get(s);if(y!==void 0)return y}var P;j=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var z;z=S.current,S.current=null,E();try{if(h){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(oe){P=oe}Reflect.construct(s,[],Y)}else{try{Y.call()}catch(oe){P=oe}s.call(Y.prototype)}}else{try{throw Error()}catch(oe){P=oe}s()}}catch(oe){if(oe&&P&&typeof oe.stack=="string"){for(var M=oe.stack.split(`
20
+ `),ee=P.stack.split(`
21
+ `),U=M.length-1,q=ee.length-1;U>=1&&q>=0&&M[U]!==ee[q];)q--;for(;U>=1&&q>=0;U--,q--)if(M[U]!==ee[q]){if(U!==1||q!==1)do if(U--,q--,q<0||M[U]!==ee[q]){var ue=`
22
+ `+M[U].replace(" at new "," at ");return s.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",s.displayName)),typeof s=="function"&&A.set(s,ue),ue}while(U>=1&&q>=0);break}}}finally{j=!1,S.current=z,x(),Error.prepareStackTrace=F}var je=s?s.displayName||s.name:"",_e=je?O(je):"";return typeof s=="function"&&A.set(s,_e),_e}function le(s,h,y){return m(s,!1)}function Ye(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ce(s,h,y){if(s==null)return"";if(typeof s=="function")return m(s,Ye(s));if(typeof s=="string")return O(s);switch(s){case l:return O("Suspense");case f:return O("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case u:return le(s.render);case p:return Ce(s.type,h,y);case b:{var P=s,F=P._payload,z=P._init;try{return Ce(z(F),h,y)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,xr={},Pr=X.ReactDebugCurrentFrame;function st(s){if(s){var h=s._owner,y=Ce(s.type,s._source,h?h.type:null);Pr.setExtraStackFrame(y)}else Pr.setExtraStackFrame(null)}function so(s,h,y,P,F){{var z=Function.call.bind(He);for(var Y in s)if(z(s,Y)){var M=void 0;try{if(typeof s[Y]!="function"){var ee=Error((P||"React class")+": "+y+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}M=s[Y](h,Y,P,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){M=U}M&&!(M instanceof Error)&&(st(F),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",P||"React class",y,Y,typeof M),st(null)),M instanceof Error&&!(M.message in xr)&&(xr[M.message]=!0,st(F),D("Failed %s type: %s",y,M.message),st(null))}}}var ao=Array.isArray;function Rt(s){return ao(s)}function co(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,y=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return y}}function lo(s){try{return wr(s),!1}catch{return!0}}function wr(s){return""+s}function Cr(s){if(lo(s))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",co(s)),wr(s)}var _r=X.ReactCurrentOwner,uo={key:!0,ref:!0,__self:!0,__source:!0},Or,Rr;function fo(s){if(He.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function ho(s){if(He.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function po(s,h){typeof s.ref=="string"&&_r.current}function vo(s,h){{var y=function(){Or||(Or=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};y.isReactWarning=!0,Object.defineProperty(s,"key",{get:y,configurable:!0})}}function mo(s,h){{var y=function(){Rr||(Rr=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",h))};y.isReactWarning=!0,Object.defineProperty(s,"ref",{get:y,configurable:!0})}}var yo=function(s,h,y,P,F,z,Y){var M={$$typeof:e,type:s,key:h,ref:y,props:Y,_owner:z};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function go(s,h,y,P,F){{var z,Y={},M=null,ee=null;y!==void 0&&(Cr(y),M=""+y),ho(h)&&(Cr(h.key),M=""+h.key),fo(h)&&(ee=h.ref,po(h,F));for(z in h)He.call(h,z)&&!uo.hasOwnProperty(z)&&(Y[z]=h[z]);if(s&&s.defaultProps){var U=s.defaultProps;for(z in U)Y[z]===void 0&&(Y[z]=U[z])}if(M||ee){var q=typeof s=="function"?s.displayName||s.name||"Unknown":s;M&&vo(Y,q),ee&&mo(Y,q)}return yo(s,M,ee,F,P,_r.current,Y)}}var Dt=X.ReactCurrentOwner,Dr=X.ReactDebugCurrentFrame;function Be(s){if(s){var h=s._owner,y=Ce(s.type,s._source,h?h.type:null);Dr.setExtraStackFrame(y)}else Dr.setExtraStackFrame(null)}var At;At=!1;function Mt(s){return typeof s=="object"&&s!==null&&s.$$typeof===e}function Ar(){{if(Dt.current){var s=ne(Dt.current.type);if(s)return`
23
23
 
24
- Check the render method of \``+s+"`."}return""}}function bo(s){return""}var Ir={};function Eo(s){{var h=Mr();if(!h){var y=typeof s=="string"?s:s.displayName||s.name;y&&(h=`
24
+ Check the render method of \``+s+"`."}return""}}function To(s){return""}var Mr={};function bo(s){{var h=Ar();if(!h){var y=typeof s=="string"?s:s.displayName||s.name;y&&(h=`
25
25
 
26
- Check the top-level render call using <`+y+">.")}return h}}function Yr(s,h){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var y=Eo(h);if(Ir[y])return;Ir[y]=!0;var P="";s&&s._owner&&s._owner!==Mt.current&&(P=" It was passed a child from "+G(s._owner.type)+"."),Be(s),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,P),Be(null)}}function Br(s,h){{if(typeof s!="object")return;if(Dt(s))for(var y=0;y<s.length;y++){var P=s[y];Yt(P)&&Yr(P,h)}else if(Yt(s))s._store&&(s._store.validated=!0);else if(s){var F=B(s);if(typeof F=="function"&&F!==s.entries)for(var z=F.call(s),Y;!(Y=z.next()).done;)Yt(Y.value)&&Yr(Y.value,h)}}}function ko(s){{var h=s.type;if(h==null||typeof h=="string")return;var y;if(typeof h=="function")y=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===u||h.$$typeof===p))y=h.propTypes;else return;if(y){var P=G(h);ao(y,s.props,"prop",P,s)}else if(h.PropTypes!==void 0&&!It){It=!0;var F=G(h);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(s){{for(var h=Object.keys(s.props),y=0;y<h.length;y++){var P=h[y];if(P!=="children"&&P!=="key"){Be(s),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",P),Be(null);break}}s.ref!==null&&(Be(s),D("Invalid attribute `ref` supplied to `React.Fragment`."),Be(null))}}var jr={};function Nr(s,h,y,P,F,z){{var Y=ie(s);if(!Y){var M="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var te=bo();te?M+=te:M+=Mr();var U;s===null?U="null":Dt(s)?U="array":s!==void 0&&s.$$typeof===e?(U="<"+(G(s.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):U=typeof s,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,M)}var q=To(s,h,y,F,z);if(q==null)return q;if(Y){var ue=h.children;if(ue!==void 0)if(P)if(Dt(ue)){for(var je=0;je<ue.length;je++)Br(ue[je],s);Object.freeze&&Object.freeze(ue)}else D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Br(ue,s)}if(He.call(h,"key")){var _e=G(s),oe=Object.keys(h).filter(function(Oo){return Oo!=="key"}),Bt=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!jr[_e+Bt]){var _o=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+y+">.")}return h}}function Ir(s,h){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var y=bo(h);if(Mr[y])return;Mr[y]=!0;var P="";s&&s._owner&&s._owner!==Dt.current&&(P=" It was passed a child from "+ne(s._owner.type)+"."),Be(s),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,P),Be(null)}}function Yr(s,h){{if(typeof s!="object")return;if(Rt(s))for(var y=0;y<s.length;y++){var P=s[y];Mt(P)&&Ir(P,h)}else if(Mt(s))s._store&&(s._store.validated=!0);else if(s){var F=B(s);if(typeof F=="function"&&F!==s.entries)for(var z=F.call(s),Y;!(Y=z.next()).done;)Mt(Y.value)&&Ir(Y.value,h)}}}function Eo(s){{var h=s.type;if(h==null||typeof h=="string")return;var y;if(typeof h=="function")y=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===u||h.$$typeof===p))y=h.propTypes;else return;if(y){var P=ne(h);so(y,s.props,"prop",P,s)}else if(h.PropTypes!==void 0&&!At){At=!0;var F=ne(h);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ko(s){{for(var h=Object.keys(s.props),y=0;y<h.length;y++){var P=h[y];if(P!=="children"&&P!=="key"){Be(s),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",P),Be(null);break}}s.ref!==null&&(Be(s),D("Invalid attribute `ref` supplied to `React.Fragment`."),Be(null))}}var Br={};function jr(s,h,y,P,F,z){{var Y=ie(s);if(!Y){var M="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ee=To();ee?M+=ee:M+=Ar();var U;s===null?U="null":Rt(s)?U="array":s!==void 0&&s.$$typeof===e?(U="<"+(ne(s.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):U=typeof s,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,M)}var q=go(s,h,y,F,z);if(q==null)return q;if(Y){var ue=h.children;if(ue!==void 0)if(P)if(Rt(ue)){for(var je=0;je<ue.length;je++)Yr(ue[je],s);Object.freeze&&Object.freeze(ue)}else D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yr(ue,s)}if(He.call(h,"key")){var _e=ne(s),oe=Object.keys(h).filter(function(_o){return _o!=="key"}),It=oe.length>0?"{key: someKey, "+oe.join(": ..., ")+": ...}":"{key: someKey}";if(!Br[_e+It]){var Co=oe.length>0?"{"+oe.join(": ..., ")+": ...}":"{}";D(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,Bt,_e,_o,_e),jr[_e+Bt]=!0}}return s===n?So(q):ko(q),q}}function xo(s,h,y){return Nr(s,h,y,!0)}function Po(s,h,y){return Nr(s,h,y,!1)}var wo=Po,Co=xo;Le.Fragment=n,Le.jsx=wo,Le.jsxs=Co}()),Le}process.env.NODE_ENV==="production"?ct.exports=$r():ct.exports=Fr();var V=ct.exports;function qe(){return qe=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},qe.apply(null,arguments)}function $t(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}function lt(r,e){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},lt(r,e)}function Ft(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,lt(r,e)}var ut={exports:{}},Ve={exports:{}},L={};/** @license React v16.13.1
31
+ <%s key={someKey} {...props} />`,It,_e,Co,_e),Br[_e+It]=!0}}return s===n?ko(q):Eo(q),q}}function So(s,h,y){return jr(s,h,y,!0)}function xo(s,h,y){return jr(s,h,y,!1)}var Po=xo,wo=So;Le.Fragment=n,Le.jsx=Po,Le.jsxs=wo}()),Le}process.env.NODE_ENV==="production"?at.exports=Lr():at.exports=$r();var V=at.exports;function Ue(){return Ue=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Ue.apply(null,arguments)}function Nt(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}function ct(r,e){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ct(r,e)}function Lt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,ct(r,e)}var lt={exports:{}},qe={exports:{}},L={};/** @license React v16.13.1
32
32
  * react-is.production.min.js
33
33
  *
34
34
  * Copyright (c) Facebook, Inc. and its affiliates.
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var Xt;function Xr(){if(Xt)return L;Xt=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,R=r?Symbol.for("react.lazy"):60116,I=r?Symbol.for("react.block"):60121,B=r?Symbol.for("react.fundamental"):60117,X=r?Symbol.for("react.responder"):60118,D=r?Symbol.for("react.scope"):60119;function H(v){if(typeof v=="object"&&v!==null){var re=v.$$typeof;switch(re){case e:switch(v=v.type,v){case u:case l:case n:case i:case o:case p:return v;default:switch(v=v&&v.$$typeof,v){case c:case f:case R:case _:case a:return v;default:return re}}case t:return re}}}function W(v){return H(v)===l}return L.AsyncMode=u,L.ConcurrentMode=l,L.ContextConsumer=c,L.ContextProvider=a,L.Element=e,L.ForwardRef=f,L.Fragment=n,L.Lazy=R,L.Memo=_,L.Portal=t,L.Profiler=i,L.StrictMode=o,L.Suspense=p,L.isAsyncMode=function(v){return W(v)||H(v)===u},L.isConcurrentMode=W,L.isContextConsumer=function(v){return H(v)===c},L.isContextProvider=function(v){return H(v)===a},L.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},L.isForwardRef=function(v){return H(v)===f},L.isFragment=function(v){return H(v)===n},L.isLazy=function(v){return H(v)===R},L.isMemo=function(v){return H(v)===_},L.isPortal=function(v){return H(v)===t},L.isProfiler=function(v){return H(v)===i},L.isStrictMode=function(v){return H(v)===o},L.isSuspense=function(v){return H(v)===p},L.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===l||v===i||v===o||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===R||v.$$typeof===_||v.$$typeof===a||v.$$typeof===c||v.$$typeof===f||v.$$typeof===B||v.$$typeof===X||v.$$typeof===D||v.$$typeof===I)},L.typeOf=H,L}var $={};/** @license React v16.13.1
38
+ */var $t;function Fr(){if($t)return L;$t=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,R=r?Symbol.for("react.lazy"):60116,I=r?Symbol.for("react.block"):60121,B=r?Symbol.for("react.fundamental"):60117,X=r?Symbol.for("react.responder"):60118,D=r?Symbol.for("react.scope"):60119;function H(v){if(typeof v=="object"&&v!==null){var te=v.$$typeof;switch(te){case e:switch(v=v.type,v){case u:case l:case n:case i:case o:case p:return v;default:switch(v=v&&v.$$typeof,v){case c:case f:case R:case _:case a:return v;default:return te}}case t:return te}}}function W(v){return H(v)===l}return L.AsyncMode=u,L.ConcurrentMode=l,L.ContextConsumer=c,L.ContextProvider=a,L.Element=e,L.ForwardRef=f,L.Fragment=n,L.Lazy=R,L.Memo=_,L.Portal=t,L.Profiler=i,L.StrictMode=o,L.Suspense=p,L.isAsyncMode=function(v){return W(v)||H(v)===u},L.isConcurrentMode=W,L.isContextConsumer=function(v){return H(v)===c},L.isContextProvider=function(v){return H(v)===a},L.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},L.isForwardRef=function(v){return H(v)===f},L.isFragment=function(v){return H(v)===n},L.isLazy=function(v){return H(v)===R},L.isMemo=function(v){return H(v)===_},L.isPortal=function(v){return H(v)===t},L.isProfiler=function(v){return H(v)===i},L.isStrictMode=function(v){return H(v)===o},L.isSuspense=function(v){return H(v)===p},L.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===l||v===i||v===o||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===R||v.$$typeof===_||v.$$typeof===a||v.$$typeof===c||v.$$typeof===f||v.$$typeof===B||v.$$typeof===X||v.$$typeof===D||v.$$typeof===I)},L.typeOf=H,L}var $={};/** @license React v16.13.1
39
39
  * react-is.development.js
40
40
  *
41
41
  * Copyright (c) Facebook, Inc. and its affiliates.
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var Wt;function Wr(){return Wt||(Wt=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,R=r?Symbol.for("react.lazy"):60116,I=r?Symbol.for("react.block"):60121,B=r?Symbol.for("react.fundamental"):60117,X=r?Symbol.for("react.responder"):60118,D=r?Symbol.for("react.scope"):60119;function H(m){return typeof m=="string"||typeof m=="function"||m===n||m===l||m===i||m===o||m===p||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===R||m.$$typeof===_||m.$$typeof===a||m.$$typeof===c||m.$$typeof===f||m.$$typeof===B||m.$$typeof===X||m.$$typeof===D||m.$$typeof===I)}function W(m){if(typeof m=="object"&&m!==null){var le=m.$$typeof;switch(le){case e:var Ye=m.type;switch(Ye){case u:case l:case n:case i:case o:case p:return Ye;default:var Ce=Ye&&Ye.$$typeof;switch(Ce){case c:case f:case R:case _:case a:return Ce;default:return le}}case t:return le}}}var v=u,re=l,Q=c,K=a,ne=e,ie=f,pe=n,se=R,G=_,J=t,ae=i,ee=o,ce=p,ye=!1;function de(m){return ye||(ye=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),d(m)||W(m)===u}function d(m){return W(m)===l}function g(m){return W(m)===c}function T(m){return W(m)===a}function k(m){return typeof m=="object"&&m!==null&&m.$$typeof===e}function E(m){return W(m)===f}function x(m){return W(m)===n}function S(m){return W(m)===R}function w(m){return W(m)===_}function O(m){return W(m)===t}function j(m){return W(m)===i}function A(m){return W(m)===o}function Z(m){return W(m)===p}$.AsyncMode=v,$.ConcurrentMode=re,$.ContextConsumer=Q,$.ContextProvider=K,$.Element=ne,$.ForwardRef=ie,$.Fragment=pe,$.Lazy=se,$.Memo=G,$.Portal=J,$.Profiler=ae,$.StrictMode=ee,$.Suspense=ce,$.isAsyncMode=de,$.isConcurrentMode=d,$.isContextConsumer=g,$.isContextProvider=T,$.isElement=k,$.isForwardRef=E,$.isFragment=x,$.isLazy=S,$.isMemo=w,$.isPortal=O,$.isProfiler=j,$.isStrictMode=A,$.isSuspense=Z,$.isValidElementType=H,$.typeOf=W}()),$}var zt;function Ht(){return zt||(zt=1,process.env.NODE_ENV==="production"?Ve.exports=Xr():Ve.exports=Wr()),Ve.exports}/*
45
+ */var Ft;function Xr(){return Ft||(Ft=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,b=r?Symbol.for("react.suspense_list"):60120,_=r?Symbol.for("react.memo"):60115,R=r?Symbol.for("react.lazy"):60116,I=r?Symbol.for("react.block"):60121,B=r?Symbol.for("react.fundamental"):60117,X=r?Symbol.for("react.responder"):60118,D=r?Symbol.for("react.scope"):60119;function H(m){return typeof m=="string"||typeof m=="function"||m===n||m===l||m===i||m===o||m===p||m===b||typeof m=="object"&&m!==null&&(m.$$typeof===R||m.$$typeof===_||m.$$typeof===a||m.$$typeof===c||m.$$typeof===f||m.$$typeof===B||m.$$typeof===X||m.$$typeof===D||m.$$typeof===I)}function W(m){if(typeof m=="object"&&m!==null){var le=m.$$typeof;switch(le){case e:var Ye=m.type;switch(Ye){case u:case l:case n:case i:case o:case p:return Ye;default:var Ce=Ye&&Ye.$$typeof;switch(Ce){case c:case f:case R:case _:case a:return Ce;default:return le}}case t:return le}}}var v=u,te=l,Z=c,K=a,re=e,ie=f,pe=n,se=R,ne=_,G=t,ae=i,Q=o,ce=p,ye=!1;function de(m){return ye||(ye=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),d(m)||W(m)===u}function d(m){return W(m)===l}function g(m){return W(m)===c}function T(m){return W(m)===a}function k(m){return typeof m=="object"&&m!==null&&m.$$typeof===e}function E(m){return W(m)===f}function x(m){return W(m)===n}function S(m){return W(m)===R}function w(m){return W(m)===_}function O(m){return W(m)===t}function j(m){return W(m)===i}function A(m){return W(m)===o}function J(m){return W(m)===p}$.AsyncMode=v,$.ConcurrentMode=te,$.ContextConsumer=Z,$.ContextProvider=K,$.Element=re,$.ForwardRef=ie,$.Fragment=pe,$.Lazy=se,$.Memo=ne,$.Portal=G,$.Profiler=ae,$.StrictMode=Q,$.Suspense=ce,$.isAsyncMode=de,$.isConcurrentMode=d,$.isContextConsumer=g,$.isContextProvider=T,$.isElement=k,$.isForwardRef=E,$.isFragment=x,$.isLazy=S,$.isMemo=w,$.isPortal=O,$.isProfiler=j,$.isStrictMode=A,$.isSuspense=J,$.isValidElementType=H,$.typeOf=W}()),$}var Xt;function Wt(){return Xt||(Xt=1,process.env.NODE_ENV==="production"?qe.exports=Fr():qe.exports=Xr()),qe.exports}/*
46
46
  object-assign
47
47
  (c) Sindre Sorhus
48
48
  @license MIT
49
- */var ft,Ut;function zr(){if(Ut)return ft;Ut=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ft=o()?Object.assign:function(i,a){for(var c,u=n(i),l,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var p in c)e.call(c,p)&&(u[p]=c[p]);if(r){l=r(c);for(var b=0;b<l.length;b++)t.call(c,l[b])&&(u[l[b]]=c[l[b]])}}return u},ft}var ht,qt;function pt(){if(qt)return ht;qt=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ht=r,ht}var dt,Vt;function Kt(){return Vt||(Vt=1,dt=Function.call.bind(Object.prototype.hasOwnProperty)),dt}var vt,Gt;function Hr(){if(Gt)return vt;Gt=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=pt(),t={},n=Kt();r=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var b=Error((u||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=i[f](a,f,u,c,null,e)}catch(R){p=R}if(p&&!(p instanceof Error)&&r((u||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in t)){t[p.message]=!0;var _=l?l():"";r("Failed "+c+" type: "+p.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},vt=o,vt}var mt,Jt;function Ur(){if(Jt)return mt;Jt=1;var r=Ht(),e=zr(),t=pt(),n=Kt(),o=Hr(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return mt=function(c,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(d){var g=d&&(l&&d[l]||d[f]);if(typeof g=="function")return g}var b="<<anonymous>>",_={array:X("array"),bigint:X("bigint"),bool:X("boolean"),func:X("function"),number:X("number"),object:X("object"),string:X("string"),symbol:X("symbol"),any:D(),arrayOf:H,element:W(),elementType:v(),instanceOf:re,node:ie(),objectOf:K,oneOf:Q,oneOfType:ne,shape:se,exact:G};function R(d,g){return d===g?d!==0||1/d===1/g:d!==d&&g!==g}function I(d,g){this.message=d,this.data=g&&typeof g=="object"?g:{},this.stack=""}I.prototype=Error.prototype;function B(d){if(process.env.NODE_ENV!=="production")var g={},T=0;function k(x,S,w,O,j,A,Z){if(O=O||b,A=A||w,Z!==t){if(u){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=O+":"+w;!g[le]&&T<3&&(i("You are manually calling a React.PropTypes validation function for the `"+A+"` prop on `"+O+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),g[le]=!0,T++)}}return S[w]==null?x?S[w]===null?new I("The "+j+" `"+A+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new I("The "+j+" `"+A+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:d(S,w,O,j,A)}var E=k.bind(null,!1);return E.isRequired=k.bind(null,!0),E}function X(d){function g(T,k,E,x,S,w){var O=T[k],j=ee(O);if(j!==d){var A=ce(O);return new I("Invalid "+x+" `"+S+"` of type "+("`"+A+"` supplied to `"+E+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return B(g)}function D(){return B(a)}function H(d){function g(T,k,E,x,S){if(typeof d!="function")return new I("Property `"+S+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var w=T[k];if(!Array.isArray(w)){var O=ee(w);return new I("Invalid "+x+" `"+S+"` of type "+("`"+O+"` supplied to `"+E+"`, expected an array."))}for(var j=0;j<w.length;j++){var A=d(w,j,E,x,S+"["+j+"]",t);if(A instanceof Error)return A}return null}return B(g)}function W(){function d(g,T,k,E,x){var S=g[T];if(!c(S)){var w=ee(S);return new I("Invalid "+E+" `"+x+"` of type "+("`"+w+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return B(d)}function v(){function d(g,T,k,E,x){var S=g[T];if(!r.isValidElementType(S)){var w=ee(S);return new I("Invalid "+E+" `"+x+"` of type "+("`"+w+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return B(d)}function re(d){function g(T,k,E,x,S){if(!(T[k]instanceof d)){var w=d.name||b,O=de(T[k]);return new I("Invalid "+x+" `"+S+"` of type "+("`"+O+"` supplied to `"+E+"`, expected ")+("instance of `"+w+"`."))}return null}return B(g)}function Q(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function g(T,k,E,x,S){for(var w=T[k],O=0;O<d.length;O++)if(R(w,d[O]))return null;var j=JSON.stringify(d,function(Z,m){var le=ce(m);return le==="symbol"?String(m):m});return new I("Invalid "+x+" `"+S+"` of value `"+String(w)+"` "+("supplied to `"+E+"`, expected one of "+j+"."))}return B(g)}function K(d){function g(T,k,E,x,S){if(typeof d!="function")return new I("Property `"+S+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var w=T[k],O=ee(w);if(O!=="object")return new I("Invalid "+x+" `"+S+"` of type "+("`"+O+"` supplied to `"+E+"`, expected an object."));for(var j in w)if(n(w,j)){var A=d(w,j,E,x,S+"."+j,t);if(A instanceof Error)return A}return null}return B(g)}function ne(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var g=0;g<d.length;g++){var T=d[g];if(typeof T!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ye(T)+" at index "+g+"."),a}function k(E,x,S,w,O){for(var j=[],A=0;A<d.length;A++){var Z=d[A],m=Z(E,x,S,w,O,t);if(m==null)return null;m.data&&n(m.data,"expectedType")&&j.push(m.data.expectedType)}var le=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new I("Invalid "+w+" `"+O+"` supplied to "+("`"+S+"`"+le+"."))}return B(k)}function ie(){function d(g,T,k,E,x){return J(g[T])?null:new I("Invalid "+E+" `"+x+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return B(d)}function pe(d,g,T,k,E){return new I((d||"React class")+": "+g+" type `"+T+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function se(d){function g(T,k,E,x,S){var w=T[k],O=ee(w);if(O!=="object")return new I("Invalid "+x+" `"+S+"` of type `"+O+"` "+("supplied to `"+E+"`, expected `object`."));for(var j in d){var A=d[j];if(typeof A!="function")return pe(E,x,S,j,ce(A));var Z=A(w,j,E,x,S+"."+j,t);if(Z)return Z}return null}return B(g)}function G(d){function g(T,k,E,x,S){var w=T[k],O=ee(w);if(O!=="object")return new I("Invalid "+x+" `"+S+"` of type `"+O+"` "+("supplied to `"+E+"`, expected `object`."));var j=e({},T[k],d);for(var A in j){var Z=d[A];if(n(d,A)&&typeof Z!="function")return pe(E,x,S,A,ce(Z));if(!Z)return new I("Invalid "+x+" `"+S+"` key `"+A+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(T[k],null," ")+`
50
- Valid keys: `+JSON.stringify(Object.keys(d),null," "));var m=Z(w,A,E,x,S+"."+A,t);if(m)return m}return null}return B(g)}function J(d){switch(typeof d){case"number":case"string":case"undefined":return!0;case"boolean":return!d;case"object":if(Array.isArray(d))return d.every(J);if(d===null||c(d))return!0;var g=p(d);if(g){var T=g.call(d),k;if(g!==d.entries){for(;!(k=T.next()).done;)if(!J(k.value))return!1}else for(;!(k=T.next()).done;){var E=k.value;if(E&&!J(E[1]))return!1}}else return!1;return!0;default:return!1}}function ae(d,g){return d==="symbol"?!0:g?g["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&g instanceof Symbol:!1}function ee(d){var g=typeof d;return Array.isArray(d)?"array":d instanceof RegExp?"object":ae(g,d)?"symbol":g}function ce(d){if(typeof d>"u"||d===null)return""+d;var g=ee(d);if(g==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return g}function ye(d){var g=ce(d);switch(g){case"array":case"object":return"an "+g;case"boolean":case"date":case"regexp":return"a "+g;default:return g}}function de(d){return!d.constructor||!d.constructor.name?b:d.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},mt}var yt,Zt;function qr(){if(Zt)return yt;Zt=1;var r=pt();function e(){}function t(){}return t.resetWarningCache=e,yt=function(){function n(a,c,u,l,f,p){if(p!==r){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},yt}if(process.env.NODE_ENV!=="production"){var Vr=Ht(),Kr=!0;ut.exports=Ur()(Vr.isElement,Kr)}else ut.exports=qr()();var Gr=ut.exports;const C=Lr(Gr);function Jr(r,e){return r.classList?!!e&&r.classList.contains(e):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+e+" ")!==-1}function Zr(r,e){r.classList?r.classList.add(e):Jr(r,e)||(typeof r.className=="string"?r.className=r.className+" "+e:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+e))}function Qt(r,e){return r.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Qr(r,e){r.classList?r.classList.remove(e):typeof r.className=="string"?r.className=Qt(r.className,e):r.setAttribute("class",Qt(r.className&&r.className.baseVal||"",e))}const er={disabled:!1};var en=process.env.NODE_ENV!=="production"?C.oneOfType([C.number,C.shape({enter:C.number,exit:C.number,appear:C.number}).isRequired]):null,tn=process.env.NODE_ENV!=="production"?C.oneOfType([C.string,C.shape({enter:C.string,exit:C.string,active:C.string}),C.shape({enter:C.string,enterDone:C.string,enterActive:C.string,exit:C.string,exitDone:C.string,exitActive:C.string})]):null;const tr=N.createContext(null);var rr=function(e){return e.scrollTop},$e="unmounted",Ee="exited",ke="entering",Oe="entered",gt="exiting",fe=function(r){Ft(e,r);function e(n,o){var i;i=r.call(this,n,o)||this;var a=o,c=a&&!a.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?c?(u=Ee,i.appearStatus=ke):u=Oe:n.unmountOnExit||n.mountOnEnter?u=$e:u=Ee,i.state={status:u},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$e?{status:Ee}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ke&&a!==Oe&&(i=ke):(a===ke||a===Oe)&&(i=gt)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},t.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ke){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ge.findDOMNode(this);a&&rr(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:$e})},t.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[ge.findDOMNode(this),c],l=u[0],f=u[1],p=this.getTimeouts(),b=c?p.appear:p.enter;if(!o&&!a||er.disabled){this.safeSetState({status:Oe},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:ke},function(){i.props.onEntering(l,f),i.onTransitionEnd(b,function(){i.safeSetState({status:Oe},function(){i.props.onEntered(l,f)})})})},t.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:ge.findDOMNode(this);if(!i||er.disabled){this.safeSetState({status:Ee},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:gt},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Ee},function(){o.props.onExited(c)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},t.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ge.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===$e)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=$t(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(tr.Provider,{value:null},typeof a=="function"?a(o,c):N.cloneElement(N.Children.only(a),c))},e}(N.Component);fe.contextType=tr,fe.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:C.shape({current:typeof Element>"u"?C.any:function(r,e,t,n,o,i){var a=r[e];return C.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(r,e,t,n,o,i)}}),children:C.oneOfType([C.func.isRequired,C.element.isRequired]).isRequired,in:C.bool,mountOnEnter:C.bool,unmountOnExit:C.bool,appear:C.bool,enter:C.bool,exit:C.bool,timeout:function(e){var t=en;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[e].concat(o))},addEndListener:C.func,onEnter:C.func,onEntering:C.func,onEntered:C.func,onExit:C.func,onExiting:C.func,onExited:C.func}:{};function Re(){}fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Re,onEntering:Re,onEntered:Re,onExit:Re,onExiting:Re,onExited:Re},fe.UNMOUNTED=$e,fe.EXITED=Ee,fe.ENTERING=ke,fe.ENTERED=Oe,fe.EXITING=gt;var rn=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Zr(e,n)})},Tt=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Qr(e,n)})},Ke=function(r){Ft(e,r);function e(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r.call.apply(r,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(c,u){var l=n.resolveArguments(c,u),f=l[0],p=l[1];n.removeClasses(f,"exit"),n.addClass(f,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(c,u)},n.onEntering=function(c,u){var l=n.resolveArguments(c,u),f=l[0],p=l[1],b=p?"appear":"enter";n.addClass(f,b,"active"),n.props.onEntering&&n.props.onEntering(c,u)},n.onEntered=function(c,u){var l=n.resolveArguments(c,u),f=l[0],p=l[1],b=p?"appear":"enter";n.removeClasses(f,b),n.addClass(f,b,"done"),n.props.onEntered&&n.props.onEntered(c,u)},n.onExit=function(c){var u=n.resolveArguments(c),l=u[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(c)},n.onExiting=function(c){var u=n.resolveArguments(c),l=u[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(c)},n.onExited=function(c){var u=n.resolveArguments(c),l=u[0];n.removeClasses(l,"exit"),n.addClass(l,"exit","done"),n.props.onExited&&n.props.onExited(c)},n.resolveArguments=function(c,u){return n.props.nodeRef?[n.props.nodeRef.current,c]:[c,u]},n.getClassNames=function(c){var u=n.props.classNames,l=typeof u=="string",f=l&&u?u+"-":"",p=l?""+f+c:u[c],b=l?p+"-active":u[c+"Active"],_=l?p+"-done":u[c+"Done"];return{baseClassName:p,activeClassName:b,doneClassName:_}},n}var t=e.prototype;return t.addClass=function(o,i,a){var c=this.getClassNames(i)[a+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;i==="appear"&&a==="done"&&l&&(c+=" "+l),a==="active"&&o&&rr(o),c&&(this.appliedClasses[i][a]=c,rn(o,c))},t.removeClasses=function(o,i){var a=this.appliedClasses[i],c=a.base,u=a.active,l=a.done;this.appliedClasses[i]={},c&&Tt(o,c),u&&Tt(o,u),l&&Tt(o,l)},t.render=function(){var o=this.props;o.classNames;var i=$t(o,["classNames"]);return N.createElement(fe,qe({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(N.Component);Ke.defaultProps={classNames:""},Ke.propTypes=process.env.NODE_ENV!=="production"?qe({},fe.propTypes,{classNames:tn,onEnter:C.func,onEntering:C.func,onEntered:C.func,onExit:C.func,onExiting:C.func,onExited:C.func}):{};/*!
49
+ */var ut,zt;function Wr(){if(zt)return ut;zt=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ut=o()?Object.assign:function(i,a){for(var c,u=n(i),l,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var p in c)e.call(c,p)&&(u[p]=c[p]);if(r){l=r(c);for(var b=0;b<l.length;b++)t.call(c,l[b])&&(u[l[b]]=c[l[b]])}}return u},ut}var ft,Ht;function ht(){if(Ht)return ft;Ht=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ft=r,ft}var pt,Ut;function qt(){return Ut||(Ut=1,pt=Function.call.bind(Object.prototype.hasOwnProperty)),pt}var dt,Vt;function zr(){if(Vt)return dt;Vt=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=ht(),t={},n=qt();r=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var b=Error((u||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=i[f](a,f,u,c,null,e)}catch(R){p=R}if(p&&!(p instanceof Error)&&r((u||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in t)){t[p.message]=!0;var _=l?l():"";r("Failed "+c+" type: "+p.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},dt=o,dt}var vt,Kt;function Hr(){if(Kt)return vt;Kt=1;var r=Wt(),e=Wr(),t=ht(),n=qt(),o=zr(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return vt=function(c,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(d){var g=d&&(l&&d[l]||d[f]);if(typeof g=="function")return g}var b="<<anonymous>>",_={array:X("array"),bigint:X("bigint"),bool:X("boolean"),func:X("function"),number:X("number"),object:X("object"),string:X("string"),symbol:X("symbol"),any:D(),arrayOf:H,element:W(),elementType:v(),instanceOf:te,node:ie(),objectOf:K,oneOf:Z,oneOfType:re,shape:se,exact:ne};function R(d,g){return d===g?d!==0||1/d===1/g:d!==d&&g!==g}function I(d,g){this.message=d,this.data=g&&typeof g=="object"?g:{},this.stack=""}I.prototype=Error.prototype;function B(d){if(process.env.NODE_ENV!=="production")var g={},T=0;function k(x,S,w,O,j,A,J){if(O=O||b,A=A||w,J!==t){if(u){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=O+":"+w;!g[le]&&T<3&&(i("You are manually calling a React.PropTypes validation function for the `"+A+"` prop on `"+O+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),g[le]=!0,T++)}}return S[w]==null?x?S[w]===null?new I("The "+j+" `"+A+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new I("The "+j+" `"+A+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:d(S,w,O,j,A)}var E=k.bind(null,!1);return E.isRequired=k.bind(null,!0),E}function X(d){function g(T,k,E,x,S,w){var O=T[k],j=Q(O);if(j!==d){var A=ce(O);return new I("Invalid "+x+" `"+S+"` of type "+("`"+A+"` supplied to `"+E+"`, expected ")+("`"+d+"`."),{expectedType:d})}return null}return B(g)}function D(){return B(a)}function H(d){function g(T,k,E,x,S){if(typeof d!="function")return new I("Property `"+S+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var w=T[k];if(!Array.isArray(w)){var O=Q(w);return new I("Invalid "+x+" `"+S+"` of type "+("`"+O+"` supplied to `"+E+"`, expected an array."))}for(var j=0;j<w.length;j++){var A=d(w,j,E,x,S+"["+j+"]",t);if(A instanceof Error)return A}return null}return B(g)}function W(){function d(g,T,k,E,x){var S=g[T];if(!c(S)){var w=Q(S);return new I("Invalid "+E+" `"+x+"` of type "+("`"+w+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return B(d)}function v(){function d(g,T,k,E,x){var S=g[T];if(!r.isValidElementType(S)){var w=Q(S);return new I("Invalid "+E+" `"+x+"` of type "+("`"+w+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return B(d)}function te(d){function g(T,k,E,x,S){if(!(T[k]instanceof d)){var w=d.name||b,O=de(T[k]);return new I("Invalid "+x+" `"+S+"` of type "+("`"+O+"` supplied to `"+E+"`, expected ")+("instance of `"+w+"`."))}return null}return B(g)}function Z(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function g(T,k,E,x,S){for(var w=T[k],O=0;O<d.length;O++)if(R(w,d[O]))return null;var j=JSON.stringify(d,function(J,m){var le=ce(m);return le==="symbol"?String(m):m});return new I("Invalid "+x+" `"+S+"` of value `"+String(w)+"` "+("supplied to `"+E+"`, expected one of "+j+"."))}return B(g)}function K(d){function g(T,k,E,x,S){if(typeof d!="function")return new I("Property `"+S+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var w=T[k],O=Q(w);if(O!=="object")return new I("Invalid "+x+" `"+S+"` of type "+("`"+O+"` supplied to `"+E+"`, expected an object."));for(var j in w)if(n(w,j)){var A=d(w,j,E,x,S+"."+j,t);if(A instanceof Error)return A}return null}return B(g)}function re(d){if(!Array.isArray(d))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var g=0;g<d.length;g++){var T=d[g];if(typeof T!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ye(T)+" at index "+g+"."),a}function k(E,x,S,w,O){for(var j=[],A=0;A<d.length;A++){var J=d[A],m=J(E,x,S,w,O,t);if(m==null)return null;m.data&&n(m.data,"expectedType")&&j.push(m.data.expectedType)}var le=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new I("Invalid "+w+" `"+O+"` supplied to "+("`"+S+"`"+le+"."))}return B(k)}function ie(){function d(g,T,k,E,x){return G(g[T])?null:new I("Invalid "+E+" `"+x+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return B(d)}function pe(d,g,T,k,E){return new I((d||"React class")+": "+g+" type `"+T+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function se(d){function g(T,k,E,x,S){var w=T[k],O=Q(w);if(O!=="object")return new I("Invalid "+x+" `"+S+"` of type `"+O+"` "+("supplied to `"+E+"`, expected `object`."));for(var j in d){var A=d[j];if(typeof A!="function")return pe(E,x,S,j,ce(A));var J=A(w,j,E,x,S+"."+j,t);if(J)return J}return null}return B(g)}function ne(d){function g(T,k,E,x,S){var w=T[k],O=Q(w);if(O!=="object")return new I("Invalid "+x+" `"+S+"` of type `"+O+"` "+("supplied to `"+E+"`, expected `object`."));var j=e({},T[k],d);for(var A in j){var J=d[A];if(n(d,A)&&typeof J!="function")return pe(E,x,S,A,ce(J));if(!J)return new I("Invalid "+x+" `"+S+"` key `"+A+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(T[k],null," ")+`
50
+ Valid keys: `+JSON.stringify(Object.keys(d),null," "));var m=J(w,A,E,x,S+"."+A,t);if(m)return m}return null}return B(g)}function G(d){switch(typeof d){case"number":case"string":case"undefined":return!0;case"boolean":return!d;case"object":if(Array.isArray(d))return d.every(G);if(d===null||c(d))return!0;var g=p(d);if(g){var T=g.call(d),k;if(g!==d.entries){for(;!(k=T.next()).done;)if(!G(k.value))return!1}else for(;!(k=T.next()).done;){var E=k.value;if(E&&!G(E[1]))return!1}}else return!1;return!0;default:return!1}}function ae(d,g){return d==="symbol"?!0:g?g["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&g instanceof Symbol:!1}function Q(d){var g=typeof d;return Array.isArray(d)?"array":d instanceof RegExp?"object":ae(g,d)?"symbol":g}function ce(d){if(typeof d>"u"||d===null)return""+d;var g=Q(d);if(g==="object"){if(d instanceof Date)return"date";if(d instanceof RegExp)return"regexp"}return g}function ye(d){var g=ce(d);switch(g){case"array":case"object":return"an "+g;case"boolean":case"date":case"regexp":return"a "+g;default:return g}}function de(d){return!d.constructor||!d.constructor.name?b:d.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},vt}var mt,Gt;function Ur(){if(Gt)return mt;Gt=1;var r=ht();function e(){}function t(){}return t.resetWarningCache=e,mt=function(){function n(a,c,u,l,f,p){if(p!==r){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},mt}if(process.env.NODE_ENV!=="production"){var qr=Wt(),Vr=!0;lt.exports=Hr()(qr.isElement,Vr)}else lt.exports=Ur()();var Kr=lt.exports;const C=Nr(Kr);function Gr(r,e){return r.classList?!!e&&r.classList.contains(e):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+e+" ")!==-1}function Jr(r,e){r.classList?r.classList.add(e):Gr(r,e)||(typeof r.className=="string"?r.className=r.className+" "+e:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+e))}function Jt(r,e){return r.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Zr(r,e){r.classList?r.classList.remove(e):typeof r.className=="string"?r.className=Jt(r.className,e):r.setAttribute("class",Jt(r.className&&r.className.baseVal||"",e))}const Zt={disabled:!1};var Qr=process.env.NODE_ENV!=="production"?C.oneOfType([C.number,C.shape({enter:C.number,exit:C.number,appear:C.number}).isRequired]):null,en=process.env.NODE_ENV!=="production"?C.oneOfType([C.string,C.shape({enter:C.string,exit:C.string,active:C.string}),C.shape({enter:C.string,enterDone:C.string,enterActive:C.string,exit:C.string,exitDone:C.string,exitActive:C.string})]):null;const Qt=N.createContext(null);var er=function(e){return e.scrollTop},$e="unmounted",Ee="exited",ke="entering",Oe="entered",yt="exiting",fe=function(r){Lt(e,r);function e(n,o){var i;i=r.call(this,n,o)||this;var a=o,c=a&&!a.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?c?(u=Ee,i.appearStatus=ke):u=Oe:n.unmountOnExit||n.mountOnEnter?u=$e:u=Ee,i.state={status:u},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$e?{status:Ee}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ke&&a!==Oe&&(i=ke):(a===ke||a===Oe)&&(i=yt)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},t.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ke){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ge.findDOMNode(this);a&&er(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:$e})},t.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[ge.findDOMNode(this),c],l=u[0],f=u[1],p=this.getTimeouts(),b=c?p.appear:p.enter;if(!o&&!a||Zt.disabled){this.safeSetState({status:Oe},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:ke},function(){i.props.onEntering(l,f),i.onTransitionEnd(b,function(){i.safeSetState({status:Oe},function(){i.props.onEntered(l,f)})})})},t.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:ge.findDOMNode(this);if(!i||Zt.disabled){this.safeSetState({status:Ee},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:yt},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Ee},function(){o.props.onExited(c)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},t.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ge.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===$e)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=Nt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(Qt.Provider,{value:null},typeof a=="function"?a(o,c):N.cloneElement(N.Children.only(a),c))},e}(N.Component);fe.contextType=Qt,fe.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:C.shape({current:typeof Element>"u"?C.any:function(r,e,t,n,o,i){var a=r[e];return C.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(r,e,t,n,o,i)}}),children:C.oneOfType([C.func.isRequired,C.element.isRequired]).isRequired,in:C.bool,mountOnEnter:C.bool,unmountOnExit:C.bool,appear:C.bool,enter:C.bool,exit:C.bool,timeout:function(e){var t=Qr;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[e].concat(o))},addEndListener:C.func,onEnter:C.func,onEntering:C.func,onEntered:C.func,onExit:C.func,onExiting:C.func,onExited:C.func}:{};function Re(){}fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Re,onEntering:Re,onEntered:Re,onExit:Re,onExiting:Re,onExited:Re},fe.UNMOUNTED=$e,fe.EXITED=Ee,fe.ENTERING=ke,fe.ENTERED=Oe,fe.EXITING=yt;var tn=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Jr(e,n)})},gt=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return Zr(e,n)})},Ve=function(r){Lt(e,r);function e(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r.call.apply(r,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(c,u){var l=n.resolveArguments(c,u),f=l[0],p=l[1];n.removeClasses(f,"exit"),n.addClass(f,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(c,u)},n.onEntering=function(c,u){var l=n.resolveArguments(c,u),f=l[0],p=l[1],b=p?"appear":"enter";n.addClass(f,b,"active"),n.props.onEntering&&n.props.onEntering(c,u)},n.onEntered=function(c,u){var l=n.resolveArguments(c,u),f=l[0],p=l[1],b=p?"appear":"enter";n.removeClasses(f,b),n.addClass(f,b,"done"),n.props.onEntered&&n.props.onEntered(c,u)},n.onExit=function(c){var u=n.resolveArguments(c),l=u[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(c)},n.onExiting=function(c){var u=n.resolveArguments(c),l=u[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(c)},n.onExited=function(c){var u=n.resolveArguments(c),l=u[0];n.removeClasses(l,"exit"),n.addClass(l,"exit","done"),n.props.onExited&&n.props.onExited(c)},n.resolveArguments=function(c,u){return n.props.nodeRef?[n.props.nodeRef.current,c]:[c,u]},n.getClassNames=function(c){var u=n.props.classNames,l=typeof u=="string",f=l&&u?u+"-":"",p=l?""+f+c:u[c],b=l?p+"-active":u[c+"Active"],_=l?p+"-done":u[c+"Done"];return{baseClassName:p,activeClassName:b,doneClassName:_}},n}var t=e.prototype;return t.addClass=function(o,i,a){var c=this.getClassNames(i)[a+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;i==="appear"&&a==="done"&&l&&(c+=" "+l),a==="active"&&o&&er(o),c&&(this.appliedClasses[i][a]=c,tn(o,c))},t.removeClasses=function(o,i){var a=this.appliedClasses[i],c=a.base,u=a.active,l=a.done;this.appliedClasses[i]={},c&&gt(o,c),u&&gt(o,u),l&&gt(o,l)},t.render=function(){var o=this.props;o.classNames;var i=Nt(o,["classNames"]);return N.createElement(fe,Ue({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(N.Component);Ve.defaultProps={classNames:""},Ve.propTypes=process.env.NODE_ENV!=="production"?Ue({},fe.propTypes,{classNames:en,onEnter:C.func,onEntering:C.func,onEntered:C.func,onExit:C.func,onExiting:C.func,onExited:C.func}):{};/*!
51
51
  * better-scroll / core
52
52
  * (c) 2016-2023 ustbhuangyi
53
53
  * Released under the MIT License.
@@ -64,8 +64,8 @@ Valid keys: `+JSON.stringify(Object.keys(d),null," "));var m=Z(w,A,E,x,S+"."+A,
64
64
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65
65
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66
66
  PERFORMANCE OF THIS SOFTWARE.
67
- ***************************************************************************** */var bt=function(r,e){return bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},bt(r,e)};function Ge(r,e){bt(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fe.apply(this,arguments)};function nr(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),o=0,e=0;e<t;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}var nn=[{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"}];function Je(r){console.error("[BScroll warn]: "+r)}var he=typeof window<"u",De=he&&navigator.userAgent.toLowerCase(),on=!!(De&&/wechatdevtools/.test(De)),sn=De&&De.indexOf("android")>0,an=function(){if(typeof De=="string"){var r=/os (\d\d?_\d(_\d)?)/,e=r.exec(De);if(!e)return!1;var t=e[1].split("_").map(function(n){return parseInt(n,10)});return t[0]===13&&t[1]>=4}return!1}(),or=!1;if(he){var cn="test-passive";try{var ir={};Object.defineProperty(ir,"passive",{get:function(){or=!0}}),window.addEventListener(cn,function(){},ir)}catch{}}function Se(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var Et=function(r,e){for(var t in e)r[t]=e[t];return r};function kt(r){return r==null}function sr(r,e,t){return r<e?e:r>t?t:r}var St=he&&document.createElement("div").style,Ae=function(){if(!he)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,t=r;e<t.length;e++){var n=t[e];if(St[n.value]!==void 0)return n.key}return!1}();function ve(r){return Ae===!1?r:Ae==="standard"?r==="transitionEnd"?"transitionend":r:Ae+r.charAt(0).toUpperCase()+r.substr(1)}function ar(r){return typeof r=="string"?document.querySelector(r):r}function ln(r,e,t,n){var o=or?{passive:!1,capture:!!n}:!!n;r.addEventListener(e,t,o)}function un(r,e,t,n){r.removeEventListener(e,t,{capture:!!n})}function cr(r){r.cancelable&&r.preventDefault()}function lr(r){for(var e=0,t=0;r;)e-=r.offsetLeft,t-=r.offsetTop,r=r.offsetParent;return{left:e,top:t}}Ae&&Ae!=="standard"&&""+Ae.toLowerCase();var fn=ve("transform"),ur=ve("transition"),hn=he&&ve("perspective")in St,fr=he&&("ontouchstart"in window||on),pn=he&&ur in St,xe={transform:fn,transition:ur,transitionTimingFunction:ve("transitionTimingFunction"),transitionDuration:ve("transitionDuration"),transitionDelay:ve("transitionDelay"),transformOrigin:ve("transformOrigin"),transitionEnd:ve("transitionEnd"),transitionProperty:ve("transitionProperty")},xt={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function hr(r){if(r instanceof window.SVGElement){var e=r.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}else return{top:r.offsetTop,left:r.offsetLeft,width:r.offsetWidth,height:r.offsetHeight}}function Xe(r,e){for(var t in e)if(e[t].test(r[t]))return!0;return!1}var dn=Xe;function vn(r,e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.pageX=r.pageX,t.pageY=r.pageY,r.target.dispatchEvent(t)}function pr(r,e){e===void 0&&(e="click");var t;r.type==="mouseup"?t=r:(r.type==="touchend"||r.type==="touchcancel")&&(t=r.changedTouches[0]);var n={};t&&(n.screenX=t.screenX||0,n.screenY=t.screenY||0,n.clientX=t.clientX||0,n.clientY=t.clientY||0);var o,i=!0,a=!0,c=r.ctrlKey,u=r.shiftKey,l=r.altKey,f=r.metaKey,p={ctrlKey:c,shiftKey:u,altKey:l,metaKey:f};if(typeof MouseEvent<"u")try{o=new MouseEvent(e,Et(Fe({bubbles:i,cancelable:a},p),n))}catch{b()}else b();function b(){o=document.createEvent("Event"),o.initEvent(e,i,a),Et(o,n)}o.forwardedTouchEvent=!0,o._constructed=!0,r.target.dispatchEvent(o)}function mn(r){pr(r,"dblclick")}var Pe={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(r){return 1+--r*r*r*r*r}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(r){return r*(2-r)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(r){return 1- --r*r*r*r}}},yn=1e3/60,Te=he&&window;function dr(){}var vr=function(){return he?Te.requestAnimationFrame||Te.webkitRequestAnimationFrame||Te.mozRequestAnimationFrame||Te.oRequestAnimationFrame||function(r){return window.setTimeout(r,r.interval||yn)}:dr}(),we=function(){return he?Te.cancelAnimationFrame||Te.webkitCancelAnimationFrame||Te.mozCancelAnimationFrame||Te.oCancelAnimationFrame||function(r){window.clearTimeout(r)}:dr}(),mr=function(r){},Pt={enumerable:!0,configurable:!0,get:mr,set:mr},gn=function(r,e){for(var t=e.split("."),n=0;n<t.length-1;n++)if(r=r[t[n]],typeof r!="object"||!r)return;var o=t.pop();return typeof r[o]=="function"?function(){return r[o].apply(r,arguments)}:r[o]},Tn=function(r,e,t){for(var n=e.split("."),o,i=0;i<n.length-1;i++)o=n[i],r[o]||(r[o]={}),r=r[o];r[n.pop()]=t};function bn(r,e,t){Pt.get=function(){return gn(this,e)},Pt.set=function(o){Tn(this,e,o)},Object.defineProperty(r,t,Pt)}var be=function(){function r(e){this.events={},this.eventTypes={},this.registerType(e)}return r.prototype.on=function(e,t,n){return n===void 0&&(n=this),this.hasType(e),this.events[e]||(this.events[e]=[]),this.events[e].push([t,n]),this},r.prototype.once=function(e,t,n){var o=this;n===void 0&&(n=this),this.hasType(e);var i=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];o.off(e,i);var u=t.apply(n,a);if(u===!0)return u};return i.fn=t,this.on(e,i),this},r.prototype.off=function(e,t){if(!e&&!t)return this.events={},this;if(e){if(this.hasType(e),!t)return this.events[e]=[],this;var n=this.events[e];if(!n)return this;for(var o=n.length;o--;)(n[o][0]===t||n[o][0]&&n[o][0].fn===t)&&n.splice(o,1);return this}},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.hasType(e);var o=this.events[e];if(o)for(var i=o.length,a=nr(o),c,u=0;u<i;u++){var l=a[u],f=l[0],p=l[1];if(f&&(c=f.apply(p,t),c===!0))return c}},r.prototype.registerType=function(e){var t=this;e.forEach(function(n){t.eventTypes[n]=n})},r.prototype.destroy=function(){this.events={},this.eventTypes={}},r.prototype.hasType=function(e){var t=this.eventTypes,n=t[e]===e;n||Je('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+(""+Object.keys(t).map(function(o){return JSON.stringify(o)}))+"]")},r}(),Ze=function(){function r(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return r.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},r.prototype.addDOMEvents=function(){this.handleDOMEvents(ln)},r.prototype.removeDOMEvents=function(){this.handleDOMEvents(un)},r.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach(function(o){e(n,o.name,t,!!o.capture)})},r.prototype.handleEvent=function(e){var t=e.type;this.events.some(function(n){return n.name===t?(n.handler(e),!0):!1})},r}(),En=function(){function r(){}return r}(),kn=function(r){Ge(e,r);function e(){var t=r.call(this)||this;return t.startX=0,t.startY=0,t.scrollX=!1,t.scrollY=!0,t.freeScroll=!1,t.directionLockThreshold=0,t.eventPassthrough="",t.click=!1,t.dblclick=!1,t.tap="",t.bounce={top:!0,bottom:!0,left:!0,right:!0},t.bounceTime=800,t.momentum=!0,t.momentumLimitTime=300,t.momentumLimitDistance=15,t.swipeTime=2500,t.swipeBounceTime=500,t.deceleration=.0015,t.flickLimitTime=200,t.flickLimitDistance=100,t.resizePolling=60,t.probeType=0,t.stopPropagation=!1,t.preventDefault=!0,t.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},t.tagException={tagName:/^TEXTAREA$/},t.HWCompositing=!0,t.useTransition=!0,t.bindToWrapper=!1,t.bindToTarget=!1,t.disableMouse=fr,t.disableTouch=!fr,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return e.prototype.merge=function(t){if(!t)return this;for(var n in t){if(n==="bounce"){this.bounce=this.resolveBounce(t[n]);continue}this[n]=t[n]}return this},e.prototype.process=function(){return this.translateZ=this.HWCompositing&&hn?" translateZ(1px)":"",this.useTransition=this.useTransition&&pn,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},e.prototype.resolveBounce=function(t){var n={top:!0,right:!0,bottom:!0,left:!0},o={top:!1,right:!1,bottom:!1,left:!1},i;return typeof t=="object"?i=Et(n,t):i=t?n:o,i},e}(En),Sn=function(){function r(e,t){this.wrapper=e,this.options=t,this.hooks=new be(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return r.prototype.handleDOMEvents=function(){var e=this.options,t=e.bindToWrapper,n=e.disableMouse,o=e.disableTouch,i=e.click,a=this.wrapper,c=t?a:window,u=[],l=[],f=!o,p=!n;i&&u.push({name:"click",handler:this.click.bind(this),capture:!0}),f&&(u.push({name:"touchstart",handler:this.start.bind(this)}),l.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),p&&(u.push({name:"mousedown",handler:this.start.bind(this)}),l.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new Ze(a,u),this.targetEventRegister=new Ze(c,l)},r.prototype.beforeHandler=function(e,t){var n=this.options,o=n.preventDefault,i=n.stopPropagation,a=n.preventDefaultException,c={start:function(){return o&&!Xe(e.target,a)},end:function(){return o&&!Xe(e.target,a)},move:function(){return o}};c[t]()&&e.preventDefault(),i&&e.stopPropagation()},r.prototype.setInitiated=function(e){e===void 0&&(e=0),this.initiated=e},r.prototype.start=function(e){var t=xt[e.type];if(!(this.initiated&&this.initiated!==t)){if(this.setInitiated(t),dn(e.target,this.options.tagException)){this.setInitiated();return}if(!(t===2&&e.button!==0)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}}},r.prototype.move=function(e){if(xt[e.type]===this.initiated){this.beforeHandler(e,"move");var t=e.touches?e.touches[0]:e,n=t.pageX-this.pointX,o=t.pageY-this.pointY;if(this.pointX=t.pageX,this.pointY=t.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:n,deltaY:o,e})){var i=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,a=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,c=this.pointX-i,u=this.pointY-a,l=this.options.autoEndDistance;(c>document.documentElement.clientWidth-l||u>document.documentElement.clientHeight-l||c<l||u<l)&&this.end(e)}}},r.prototype.end=function(e){xt[e.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(e,"end"),this.hooks.trigger(this.hooks.eventTypes.end,e))},r.prototype.click=function(e){this.hooks.trigger(this.hooks.eventTypes.click,e)},r.prototype.setContent=function(e){e!==this.wrapper&&(this.wrapper=e,this.rebindDOMEvents())},r.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},r.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},r}(),wt={x:["translateX","px"],y:["translateY","px"]},xn=function(){function r(e){this.setContent(e),this.hooks=new be(["beforeTranslate","translate"])}return r.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null),t=e[xe.transform].split(")")[0].split(", "),n=+(t[12]||t[4])||0,o=+(t[13]||t[5])||0;return{x:n,y:o}},r.prototype.translate=function(e){var t=[];Object.keys(e).forEach(function(n){if(wt[n]){var o=wt[n][0];if(o){var i=wt[n][1],a=e[n];t.push(o+"("+a+i+")")}}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[xe.transform]=t.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,e)},r.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style)},r.prototype.destroy=function(){this.hooks.destroy()},r}(),yr=function(){function r(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new be(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(e)}return r.prototype.translate=function(e){this.translater.translate(e)},r.prototype.setPending=function(e){this.pending=e},r.prototype.setForceStopped=function(e){this.forceStopped=e},r.prototype.setCallStop=function(e){this.callStopWhenPending=e},r.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style,this.stop())},r.prototype.clearTimer=function(){this.timer&&(we(this.timer),this.timer=0)},r.prototype.destroy=function(){this.hooks.destroy(),we(this.timer)},r}(),Pn=function(r,e,t,n){var o=function(l,f){var p=l-f,b=p>0?-1:p<0?1:0;return b},i=o(e.x,r.x),a=o(e.y,r.y),c=t.x-n.x,u=t.y-n.y;return i*c<=0&&a*u<=0},wn=function(r){Ge(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.startProbe=function(t,n){var o=this,i=t,a=function(){var c=o.translater.getComputedPosition();Pn(t,n,c,i)&&o.hooks.trigger(o.hooks.eventTypes.move,c),o.pending||(o.callStopWhenPending?o.callStopWhenPending=!1:o.hooks.trigger(o.hooks.eventTypes.end,c)),i=c,o.pending&&(o.timer=vr(a))};this.callStopWhenPending&&this.setCallStop(!1),we(this.timer),a()},e.prototype.transitionTime=function(t){t===void 0&&(t=0),this.style[xe.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[xe.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.transitionProperty=function(){this.style[xe.transitionProperty]=xe.transform},e.prototype.move=function(t,n,o,i){this.setPending(o>0),this.transitionTimingFunction(i),this.transitionProperty(),this.transitionTime(o),this.translate(n);var a=this.options.probeType===3;o&&a&&this.startProbe(t,n),o||(this._reflow=this.content.offsetHeight,a&&this.hooks.trigger(this.hooks.eventTypes.move,n),this.hooks.trigger(this.hooks.eventTypes.end,n))},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),we(this.timer);var n=this.translater.getComputedPosition(),o=n.x,i=n.y;this.transitionTime(),this.translate({x:o,y:i}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:o,y:i})}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(yr),Cn=function(r){Ge(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.move=function(t,n,o,i){if(!o){this.translate(n),this.options.probeType===3&&this.hooks.trigger(this.hooks.eventTypes.move,n),this.hooks.trigger(this.hooks.eventTypes.end,n);return}this.animate(t,n,o,i)},e.prototype.animate=function(t,n,o,i){var a=this,c=Se(),u=c+o,l=this.options.probeType===3,f=function(){var p=Se();if(p>=u){a.translate(n),l&&a.hooks.trigger(a.hooks.eventTypes.move,n),a.hooks.trigger(a.hooks.eventTypes.end,n);return}p=(p-c)/o;var b=i(p),_={};Object.keys(n).forEach(function(R){var I=t[R],B=n[R];_[R]=(B-I)*b+I}),a.translate(_),l&&a.hooks.trigger(a.hooks.eventTypes.move,_),a.pending&&(a.timer=vr(f)),a.pending||(a.callStopWhenPending?a.callStopWhenPending=!1:a.hooks.trigger(a.hooks.eventTypes.end,n))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),we(this.timer),f()},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),we(this.timer);var n=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,n)}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(yr);function _n(r,e,t){var n=t.useTransition,o={};return Object.defineProperty(o,"probeType",{enumerable:!0,configurable:!1,get:function(){return t.probeType}}),n?new wn(r,e,o):new Cn(r,e,o)}var gr=function(){function r(e,t,n){this.wrapper=e,this.options=n,this.hooks=new be(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(t)}return r.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},r.prototype.move=function(e){return e=this.hasScroll?e:0,this.setMovingDirection(e),this.performDampingAlgorithm(e,this.options.outOfBoundaryDampingFactor)},r.prototype.setMovingDirection=function(e){this.movingDirection=e>0?-1:e<0?1:0},r.prototype.setDirection=function(e){this.direction=e>0?-1:e<0?1:0},r.prototype.performDampingAlgorithm=function(e,t){var n=this.currentPos+e;return(n>this.minScrollPos||n<this.maxScrollPos)&&(n>this.minScrollPos&&this.options.bounces[0]||n<this.maxScrollPos&&this.options.bounces[1]?n=this.currentPos+e*t:n=n>this.minScrollPos?this.minScrollPos:this.maxScrollPos),n},r.prototype.end=function(e){var t={duration:0},n=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&e<this.options.momentumLimitTime&&n>this.options.momentumLimitDistance){var o=this.direction===-1&&this.options.bounces[0]||this.direction===1&&this.options.bounces[1]?this.wrapperSize:0;t=this.hasScroll?this.momentum(this.currentPos,this.startPos,e,this.maxScrollPos,this.minScrollPos,o,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,t);return t},r.prototype.momentum=function(e,t,n,o,i,a,c){c===void 0&&(c=this.options);var u=e-t,l=Math.abs(u)/n,f=c.deceleration,p=c.swipeBounceTime,b=c.swipeTime,_=Math.min(b,l*2/f),R={destination:e+l*l/f*(u<0?-1:1),duration:_,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,R,u),R.destination<o?(R.destination=a?Math.max(o-a/4,o-a/R.rate*l):o,R.duration=p):R.destination>i&&(R.destination=a?Math.min(i+a/4,i+a/R.rate*l):i,R.duration=p),R.destination=Math.round(R.destination),R},r.prototype.updateDirection=function(){var e=this.currentPos-this.absStartPos;this.setDirection(e)},r.prototype.refresh=function(e){var t=this.options.rect,n=t.size,o=t.position,i=window.getComputedStyle(this.wrapper,null).position==="static",a=hr(this.wrapper);this.wrapperSize=this.wrapper[n==="width"?"clientWidth":"clientHeight"],this.setContent(e);var c=hr(this.content);this.contentSize=c[n],this.relativeOffset=c[o],i&&(this.relativeOffset-=a[o]),this.computeBoundary(),this.setDirection(0)},r.prototype.setContent=function(e){e!==this.content&&(this.content=e,this.resetState())},r.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},r.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var e={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};e.maxScrollPos<0&&(e.maxScrollPos-=this.relativeOffset,this.options.specifiedIndexAsContent===0&&(e.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,e),this.minScrollPos=e.minScrollPos,this.maxScrollPos=e.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},r.prototype.updatePosition=function(e){this.currentPos=e},r.prototype.getCurrentPos=function(){return this.currentPos},r.prototype.checkInBoundary=function(){var e=this.adjustPosition(this.currentPos),t=e===this.getCurrentPos();return{position:e,inBoundary:t}},r.prototype.adjustPosition=function(e){return!this.hasScroll&&!this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?e=this.minScrollPos:e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos),e},r.prototype.updateStartPos=function(){this.startPos=this.currentPos},r.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},r.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},r.prototype.getAbsDist=function(e){return this.dist+=e,Math.abs(this.dist)},r.prototype.destroy=function(){this.hooks.destroy()},r}(),Qe,et,tt,rt,Tr=(Qe={},Qe.yes=function(r){return!0},Qe.no=function(r){return cr(r),!1},Qe),On=(et={},et.horizontal=(tt={},tt.yes="horizontal",tt.no="vertical",tt),et.vertical=(rt={},rt.yes="vertical",rt.no="horizontal",rt),et),Rn=function(){function r(e,t,n){this.directionLockThreshold=e,this.freeScroll=t,this.eventPassthrough=n,this.reset()}return r.prototype.reset=function(){this.directionLocked=""},r.prototype.checkMovingDirection=function(e,t,n){return this.computeDirectionLock(e,t),this.handleEventPassthrough(n)},r.prototype.adjustDelta=function(e,t){return this.directionLocked==="horizontal"?t=0:this.directionLocked==="vertical"&&(e=0),{deltaX:e,deltaY:t}},r.prototype.computeDirectionLock=function(e,t){this.directionLocked===""&&!this.freeScroll&&(e>t+this.directionLockThreshold?this.directionLocked="horizontal":t>=e+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},r.prototype.handleEventPassthrough=function(e){var t=On[this.directionLocked];if(t){if(this.eventPassthrough===t.yes)return Tr.yes(e);if(this.eventPassthrough===t.no)return Tr.no(e)}return!1},r}(),Dn=function(r,e,t){return t===2?[e,-r]:t===3?[-r,-e]:t===4?[-e,r]:[r,e]},An=function(){function r(e,t,n,o,i){this.hooks=new be(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=e,this.scrollBehaviorY=t,this.actionsHandler=n,this.animater=o,this.options=i,this.directionLockAction=new Rn(i.directionLockThreshold,i.freeScroll,i.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return r.prototype.bindActionsHandler=function(){var e=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(t){return e.enabled?e.handleStart(t):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(t){var n=t.deltaX,o=t.deltaY,i=t.e;if(!e.enabled)return!0;var a=Dn(n,o,e.options.quadrant),c=a[0],u=a[1],l={deltaX:c,deltaY:u};return e.hooks.trigger(e.hooks.eventTypes.coordinateTransformation,l),e.handleMove(l.deltaX,l.deltaY,i)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(t){return e.enabled?e.handleEnd(t):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(t){e.enabled&&!t._constructed&&e.handleClick(t)})},r.prototype.handleStart=function(e){var t=Se();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=t,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,e)},r.prototype.handleMove=function(e,t,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var o=this.scrollBehaviorX.getAbsDist(e),i=this.scrollBehaviorY.getAbsDist(t),a=Se();if(this.checkMomentum(o,i,a))return!0;if(this.directionLockAction.checkMovingDirection(o,i,n))return this.actionsHandler.setInitiated(),!0;var c=this.directionLockAction.adjustDelta(e,t),u=this.scrollBehaviorX.getCurrentPos(),l=this.scrollBehaviorX.move(c.deltaX),f=this.scrollBehaviorY.getCurrentPos(),p=this.scrollBehaviorY.move(c.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var b=l!==u||p!==f;!this.contentMoved&&!b&&this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&b&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&b&&(this.animater.translate({x:l,y:p}),this.dispatchScroll(a))}}},r.prototype.dispatchScroll=function(e){e-this.startTime>this.options.momentumLimitTime&&(this.startTime=e,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())},r.prototype.checkMomentum=function(e,t,n){return n-this.endTime>this.options.momentumLimitTime&&t<this.options.momentumLimitDistance&&e<this.options.momentumLimitDistance},r.prototype.handleEnd=function(e){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,e)){var t=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,e,t))return!0;t=this.ensureIntegerPos(t),this.animater.translate(t),this.endTime=Se();var n=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,t,n)}},r.prototype.ensureIntegerPos=function(e){this.ensuringInteger=!0;var t=e.x,n=e.y,o=this.scrollBehaviorX,i=o.minScrollPos,a=o.maxScrollPos,c=this.scrollBehaviorY,u=c.minScrollPos,l=c.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),t=sr(t,a,i),n=sr(n,l,u),{x:t,y:n}},r.prototype.handleClick=function(e){Xe(e.target,this.options.preventDefaultException)||(cr(e),e.stopPropagation())},r.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},r.prototype.refresh=function(){this.endTime=0},r.prototype.destroy=function(){this.hooks.destroy()},r}();function Mn(r){var e=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce(function(t,n){return t[n]=r[n],t},{});return e}function br(r,e,t,n){var o=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce(function(i,a){return i[a]=r[a],i},{});return o.scrollable=!!r[e],o.bounces=t,o.rect=n,o}function Ct(r,e,t){t.forEach(function(n){var o,i;typeof n=="string"?o=i=n:(o=n.source,i=n.target),r.on(o,function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return e.trigger.apply(e,nr([i],a))})})}function In(r,e){for(var t=Object.keys(r),n=0,o=t;n<o.length;n++){var i=o[n];if(r[i]!==e[i])return!1}return!0}var Er=1,Yn=function(){function r(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new be(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=n;var o=this.options.bounce,i=o.left,a=o.right,c=o.top,u=o.bottom;this.scrollBehaviorX=new gr(e,t,br(n,"scrollX",[i,a],{size:"width",position:"left"})),this.scrollBehaviorY=new gr(e,t,br(n,"scrollY",[c,u],{size:"height",position:"top"})),this.translater=new xn(this.content),this.animater=_n(this.content,this.translater,this.options),this.actionsHandler=new Sn(this.options.bindToTarget?this.content:e,Mn(this.options)),this.actions=new An(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var l=this.resize.bind(this);this.resizeRegister=new Ze(window,[{name:"orientationchange",handler:l},{name:"resize",handler:l}]),this.registerTransitionEnd(),this.init()}return r.prototype.init=function(){var e=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){e.togglePointerEvents(!0)})},r.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new Ze(this.content,[{name:xe.transitionEnd,handler:this.transitionEnd.bind(this)}])},r.prototype.bindTranslater=function(){var e=this,t=this.translater.hooks;t.on(t.eventTypes.beforeTranslate,function(n){e.options.translateZ&&n.push(e.options.translateZ)}),t.on(t.eventTypes.translate,function(n){var o=e.getCurrentPos();if(e.updatePositions(n),e.actions.ensuringInteger===!0){e.actions.ensuringInteger=!1;return}(n.x!==o.x||n.y!==o.y)&&e.togglePointerEvents(!1)})},r.prototype.bindAnimater=function(){var e=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(t){e.resetPosition(e.options.bounceTime)||(e.animater.setPending(!1),e.hooks.trigger(e.hooks.eventTypes.scrollEnd,t))}),Ct(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}])},r.prototype.bindActions=function(){var e=this,t=this.actions;Ct(t.hooks,this.hooks,[{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:t.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:t.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:t.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:t.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),t.hooks.on(t.hooks.eventTypes.end,function(n,o){if(e.hooks.trigger(e.hooks.eventTypes.touchEnd,o),e.hooks.trigger(e.hooks.eventTypes.end,o)||!t.fingerMoved&&(e.hooks.trigger(e.hooks.eventTypes.scrollCancel),e.checkClick(n)))return!0;if(e.resetPosition(e.options.bounceTime,Pe.bounce))return e.animater.setForceStopped(!1),!0}),t.hooks.on(t.hooks.eventTypes.scrollEnd,function(n,o){var i=Math.abs(n.x-e.scrollBehaviorX.startPos),a=Math.abs(n.y-e.scrollBehaviorY.startPos);if(e.checkFlick(o,i,a)){e.animater.setForceStopped(!1),e.hooks.trigger(e.hooks.eventTypes.flick);return}if(e.momentum(n,o)){e.animater.setForceStopped(!1);return}t.contentMoved&&e.hooks.trigger(e.hooks.eventTypes.scrollEnd,n),e.animater.forceStopped&&e.animater.setForceStopped(!1)})},r.prototype.checkFlick=function(e,t,n){var o=1;if(this.hooks.events.flick.length>1&&e<this.options.flickLimitTime&&t<this.options.flickLimitDistance&&n<this.options.flickLimitDistance&&(n>o||t>o))return!0},r.prototype.momentum=function(e,t){var n={time:0,easing:Pe.swiper,newX:e.x,newY:e.y},o=this.scrollBehaviorX.end(t),i=this.scrollBehaviorY.end(t);if(n.newX=kt(o.destination)?n.newX:o.destination,n.newY=kt(i.destination)?n.newY:i.destination,n.time=Math.max(o.duration,i.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==e.x||n.newY!==e.y)return(n.newX>this.scrollBehaviorX.minScrollPos||n.newX<this.scrollBehaviorX.maxScrollPos||n.newY>this.scrollBehaviorY.minScrollPos||n.newY<this.scrollBehaviorY.maxScrollPos)&&(n.easing=Pe.swipeBounce),this.scrollTo(n.newX,n.newY,n.time,n.easing),!0},r.prototype.checkClick=function(e){var t={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!t.preventClick){var n=this.options.dblclick,o=!1;if(n&&this.lastClickTime){var i=n.delay,a=i===void 0?300:i;Se()-this.lastClickTime<a&&(o=!0,mn(e))}return this.options.tap&&vn(e,this.options.tap),this.options.click&&!Xe(e.target,this.options.preventDefaultException)&&pr(e),this.lastClickTime=o?null:Se(),!0}return!1},r.prototype.resize=function(){var e=this;this.actions.enabled&&(sn&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){e.hooks.trigger(e.hooks.eventTypes.resize)},this.options.resizePolling))},r.prototype.transitionEnd=function(e){if(!(e.target!==this.content||!this.animater.pending)){var t=this.animater;t.transitionTime(),this.resetPosition(this.options.bounceTime,Pe.bounce)||(this.animater.setPending(!1),this.options.probeType!==3&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},r.prototype.togglePointerEvents=function(e){e===void 0&&(e=!0);for(var t=this.content.children.length?this.content.children:[this.content],n=e?"auto":"none",o=0;o<t.length;o++){var i=t[o];i.isBScrollContainer||(i.style.pointerEvents=n)}},r.prototype.refresh=function(e){var t=this.setContent(e);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(e),this.scrollBehaviorY.refresh(e),t&&(this.translater.setContent(e),this.animater.setContent(e),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(e)),this.actions.refresh(),this.wrapperOffset=lr(this.wrapper)},r.prototype.setContent=function(e){var t=e!==this.content;return t&&(this.content=e),t},r.prototype.scrollBy=function(e,t,n,o){n===void 0&&(n=0);var i=this.getCurrentPos(),a=i.x,c=i.y;o=o||Pe.bounce,e+=a,t+=c,this.scrollTo(e,t,n,o)},r.prototype.scrollTo=function(e,t,n,o,i){n===void 0&&(n=0),o===void 0&&(o=Pe.bounce),i===void 0&&(i={start:{},end:{}});var a=this.options.useTransition?o.style:o.fn,c=this.getCurrentPos(),u=Fe({x:c.x,y:c.y},i.start),l=Fe({x:e,y:t},i.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,l),!In(u,l)){var f=Math.abs(l.x-u.x),p=Math.abs(l.y-u.y);f<Er&&p<Er&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(u,l,n,a)}},r.prototype.scrollToElement=function(e,t,n,o,i){var a=ar(e),c=lr(a),u=function(f,p,b){return typeof f=="number"?f:f?Math.round(p/2-b/2):0};n=u(n,a.offsetWidth,this.wrapper.offsetWidth),o=u(o,a.offsetHeight,this.wrapper.offsetHeight);var l=function(f,p,b,_){return f-=p,f=_.adjustPosition(f-b),f};c.left=l(c.left,this.wrapperOffset.left,n,this.scrollBehaviorX),c.top=l(c.top,this.wrapperOffset.top,o,this.scrollBehaviorY),!this.hooks.trigger(this.hooks.eventTypes.scrollToElement,a,c)&&this.scrollTo(c.left,c.top,t,i)},r.prototype.resetPosition=function(e,t){e===void 0&&(e=0),t===void 0&&(t=Pe.bounce);var n=this.scrollBehaviorX.checkInBoundary(),o=n.position,i=n.inBoundary,a=this.scrollBehaviorY.checkInBoundary(),c=a.position,u=a.inBoundary;return i&&u?!1:(an&&this.reflow(),this.scrollTo(o,c,e,t),!0)},r.prototype.reflow=function(){this._reflow=this.content.offsetHeight},r.prototype.updatePositions=function(e){this.scrollBehaviorX.updatePosition(e.x),this.scrollBehaviorY.updatePosition(e.y)},r.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},r.prototype.enable=function(){this.actions.enabled=!0},r.prototype.disable=function(){we(this.animater.timer),this.actions.enabled=!1},r.prototype.destroy=function(){var e=this,t=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];t.forEach(function(n){return e[n].destroy()})},r}(),nt=function(r){Ge(e,r);function e(t,n){var o=r.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,i=ar(t);return i?(o.plugins={},o.options=new kn().merge(n).process(),o.setContent(i).valid&&(o.hooks=new be(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),o.init(i)),o):(Je("Can not resolve the wrapper DOM."),o)}return e.use=function(t){var n=t.pluginName,o=e.plugins.some(function(i){return t===i.ctor});return o?e:kt(n)?(Je("Plugin Class must specify plugin's name in static property by 'pluginName' field."),e):(e.pluginsMap[n]=!0,e.plugins.push({name:n,applyOrder:t.applyOrder,ctor:t}),e)},e.prototype.setContent=function(t){var n=!1,o=!0,i=t.children[this.options.specifiedIndexAsContent];return i?(n=this.content!==i,n&&(this.content=i)):(Je("The wrapper need at least one child element to be content element to scroll."),o=!1),{valid:o,contentChanged:n}},e.prototype.init=function(t){var n=this;this.wrapper=t,t.isBScrollContainer=!0,this.scroller=new Yn(t,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){n.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(nn),this.applyPlugins(),this.refreshWithoutReset(this.content);var o=this.options,i=o.startX,a=o.startY,c={x:i,y:a};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,c)||this.scroller.scrollTo(c.x,c.y)},e.prototype.applyPlugins=function(){var t=this,n=this.options;e.plugins.sort(function(o,i){var a,c=(a={},a.pre=-1,a.post=1,a),u=o.applyOrder?c[o.applyOrder]:0,l=i.applyOrder?c[i.applyOrder]:0;return u-l}).forEach(function(o){var i=o.ctor;n[o.name]&&typeof i=="function"&&(t.plugins[o.name]=new i(t))})},e.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var t=document.activeElement;t&&(t.tagName==="INPUT"||t.tagName==="TEXTAREA")&&t.blur()})},e.prototype.eventBubbling=function(){Ct(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])},e.prototype.refreshWithoutReset=function(t){this.scroller.refresh(t),this.hooks.trigger(this.hooks.eventTypes.refresh,t),this.trigger(this.eventTypes.refresh,t)},e.prototype.proxy=function(t){var n=this;t.forEach(function(o){var i=o.key,a=o.sourceKey;bn(n,a,i)})},e.prototype.refresh=function(){var t=this.setContent(this.wrapper),n=t.contentChanged,o=t.valid;if(o){var i=this.content;this.refreshWithoutReset(i),n&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,i),this.trigger(this.eventTypes.contentChanged,i)),this.scroller.resetPosition()}},e.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},e.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},e.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},e.prototype.eventRegister=function(t){this.registerType(t)},e.plugins=[],e.pluginsMap={},e}(be);function We(r,e){var t=new nt(r,e);return t}We.use=nt.use,We.plugins=nt.plugins,We.pluginsMap=nt.pluginsMap;var Bn=We;/*!
67
+ ***************************************************************************** */var Tt=function(r,e){return Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Tt(r,e)};function Ke(r,e){Tt(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Fe.apply(this,arguments)};function tr(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),o=0,e=0;e<t;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}var rn=[{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"}];function Ge(r){console.error("[BScroll warn]: "+r)}var he=typeof window<"u",De=he&&navigator.userAgent.toLowerCase(),nn=!!(De&&/wechatdevtools/.test(De)),on=De&&De.indexOf("android")>0,sn=function(){if(typeof De=="string"){var r=/os (\d\d?_\d(_\d)?)/,e=r.exec(De);if(!e)return!1;var t=e[1].split("_").map(function(n){return parseInt(n,10)});return t[0]===13&&t[1]>=4}return!1}(),rr=!1;if(he){var an="test-passive";try{var nr={};Object.defineProperty(nr,"passive",{get:function(){rr=!0}}),window.addEventListener(an,function(){},nr)}catch{}}function Se(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var bt=function(r,e){for(var t in e)r[t]=e[t];return r};function Et(r){return r==null}function or(r,e,t){return r<e?e:r>t?t:r}var kt=he&&document.createElement("div").style,Ae=function(){if(!he)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,t=r;e<t.length;e++){var n=t[e];if(kt[n.value]!==void 0)return n.key}return!1}();function ve(r){return Ae===!1?r:Ae==="standard"?r==="transitionEnd"?"transitionend":r:Ae+r.charAt(0).toUpperCase()+r.substr(1)}function ir(r){return typeof r=="string"?document.querySelector(r):r}function cn(r,e,t,n){var o=rr?{passive:!1,capture:!!n}:!!n;r.addEventListener(e,t,o)}function ln(r,e,t,n){r.removeEventListener(e,t,{capture:!!n})}function sr(r){r.cancelable&&r.preventDefault()}function ar(r){for(var e=0,t=0;r;)e-=r.offsetLeft,t-=r.offsetTop,r=r.offsetParent;return{left:e,top:t}}Ae&&Ae!=="standard"&&""+Ae.toLowerCase();var un=ve("transform"),cr=ve("transition"),fn=he&&ve("perspective")in kt,lr=he&&("ontouchstart"in window||nn),hn=he&&cr in kt,xe={transform:un,transition:cr,transitionTimingFunction:ve("transitionTimingFunction"),transitionDuration:ve("transitionDuration"),transitionDelay:ve("transitionDelay"),transformOrigin:ve("transformOrigin"),transitionEnd:ve("transitionEnd"),transitionProperty:ve("transitionProperty")},St={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function ur(r){if(r instanceof window.SVGElement){var e=r.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}else return{top:r.offsetTop,left:r.offsetLeft,width:r.offsetWidth,height:r.offsetHeight}}function Xe(r,e){for(var t in e)if(e[t].test(r[t]))return!0;return!1}var pn=Xe;function dn(r,e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),t.pageX=r.pageX,t.pageY=r.pageY,r.target.dispatchEvent(t)}function fr(r,e){e===void 0&&(e="click");var t;r.type==="mouseup"?t=r:(r.type==="touchend"||r.type==="touchcancel")&&(t=r.changedTouches[0]);var n={};t&&(n.screenX=t.screenX||0,n.screenY=t.screenY||0,n.clientX=t.clientX||0,n.clientY=t.clientY||0);var o,i=!0,a=!0,c=r.ctrlKey,u=r.shiftKey,l=r.altKey,f=r.metaKey,p={ctrlKey:c,shiftKey:u,altKey:l,metaKey:f};if(typeof MouseEvent<"u")try{o=new MouseEvent(e,bt(Fe({bubbles:i,cancelable:a},p),n))}catch{b()}else b();function b(){o=document.createEvent("Event"),o.initEvent(e,i,a),bt(o,n)}o.forwardedTouchEvent=!0,o._constructed=!0,r.target.dispatchEvent(o)}function vn(r){fr(r,"dblclick")}var Pe={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(r){return 1+--r*r*r*r*r}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(r){return r*(2-r)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(r){return 1- --r*r*r*r}}},mn=1e3/60,Te=he&&window;function hr(){}var pr=function(){return he?Te.requestAnimationFrame||Te.webkitRequestAnimationFrame||Te.mozRequestAnimationFrame||Te.oRequestAnimationFrame||function(r){return window.setTimeout(r,r.interval||mn)}:hr}(),we=function(){return he?Te.cancelAnimationFrame||Te.webkitCancelAnimationFrame||Te.mozCancelAnimationFrame||Te.oCancelAnimationFrame||function(r){window.clearTimeout(r)}:hr}(),dr=function(r){},xt={enumerable:!0,configurable:!0,get:dr,set:dr},yn=function(r,e){for(var t=e.split("."),n=0;n<t.length-1;n++)if(r=r[t[n]],typeof r!="object"||!r)return;var o=t.pop();return typeof r[o]=="function"?function(){return r[o].apply(r,arguments)}:r[o]},gn=function(r,e,t){for(var n=e.split("."),o,i=0;i<n.length-1;i++)o=n[i],r[o]||(r[o]={}),r=r[o];r[n.pop()]=t};function Tn(r,e,t){xt.get=function(){return yn(this,e)},xt.set=function(o){gn(this,e,o)},Object.defineProperty(r,t,xt)}var be=function(){function r(e){this.events={},this.eventTypes={},this.registerType(e)}return r.prototype.on=function(e,t,n){return n===void 0&&(n=this),this.hasType(e),this.events[e]||(this.events[e]=[]),this.events[e].push([t,n]),this},r.prototype.once=function(e,t,n){var o=this;n===void 0&&(n=this),this.hasType(e);var i=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];o.off(e,i);var u=t.apply(n,a);if(u===!0)return u};return i.fn=t,this.on(e,i),this},r.prototype.off=function(e,t){if(!e&&!t)return this.events={},this;if(e){if(this.hasType(e),!t)return this.events[e]=[],this;var n=this.events[e];if(!n)return this;for(var o=n.length;o--;)(n[o][0]===t||n[o][0]&&n[o][0].fn===t)&&n.splice(o,1);return this}},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.hasType(e);var o=this.events[e];if(o)for(var i=o.length,a=tr(o),c,u=0;u<i;u++){var l=a[u],f=l[0],p=l[1];if(f&&(c=f.apply(p,t),c===!0))return c}},r.prototype.registerType=function(e){var t=this;e.forEach(function(n){t.eventTypes[n]=n})},r.prototype.destroy=function(){this.events={},this.eventTypes={}},r.prototype.hasType=function(e){var t=this.eventTypes,n=t[e]===e;n||Ge('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+(""+Object.keys(t).map(function(o){return JSON.stringify(o)}))+"]")},r}(),Je=function(){function r(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return r.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},r.prototype.addDOMEvents=function(){this.handleDOMEvents(cn)},r.prototype.removeDOMEvents=function(){this.handleDOMEvents(ln)},r.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach(function(o){e(n,o.name,t,!!o.capture)})},r.prototype.handleEvent=function(e){var t=e.type;this.events.some(function(n){return n.name===t?(n.handler(e),!0):!1})},r}(),bn=function(){function r(){}return r}(),En=function(r){Ke(e,r);function e(){var t=r.call(this)||this;return t.startX=0,t.startY=0,t.scrollX=!1,t.scrollY=!0,t.freeScroll=!1,t.directionLockThreshold=0,t.eventPassthrough="",t.click=!1,t.dblclick=!1,t.tap="",t.bounce={top:!0,bottom:!0,left:!0,right:!0},t.bounceTime=800,t.momentum=!0,t.momentumLimitTime=300,t.momentumLimitDistance=15,t.swipeTime=2500,t.swipeBounceTime=500,t.deceleration=.0015,t.flickLimitTime=200,t.flickLimitDistance=100,t.resizePolling=60,t.probeType=0,t.stopPropagation=!1,t.preventDefault=!0,t.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},t.tagException={tagName:/^TEXTAREA$/},t.HWCompositing=!0,t.useTransition=!0,t.bindToWrapper=!1,t.bindToTarget=!1,t.disableMouse=lr,t.disableTouch=!lr,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return e.prototype.merge=function(t){if(!t)return this;for(var n in t){if(n==="bounce"){this.bounce=this.resolveBounce(t[n]);continue}this[n]=t[n]}return this},e.prototype.process=function(){return this.translateZ=this.HWCompositing&&fn?" translateZ(1px)":"",this.useTransition=this.useTransition&&hn,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},e.prototype.resolveBounce=function(t){var n={top:!0,right:!0,bottom:!0,left:!0},o={top:!1,right:!1,bottom:!1,left:!1},i;return typeof t=="object"?i=bt(n,t):i=t?n:o,i},e}(bn),kn=function(){function r(e,t){this.wrapper=e,this.options=t,this.hooks=new be(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return r.prototype.handleDOMEvents=function(){var e=this.options,t=e.bindToWrapper,n=e.disableMouse,o=e.disableTouch,i=e.click,a=this.wrapper,c=t?a:window,u=[],l=[],f=!o,p=!n;i&&u.push({name:"click",handler:this.click.bind(this),capture:!0}),f&&(u.push({name:"touchstart",handler:this.start.bind(this)}),l.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),p&&(u.push({name:"mousedown",handler:this.start.bind(this)}),l.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new Je(a,u),this.targetEventRegister=new Je(c,l)},r.prototype.beforeHandler=function(e,t){var n=this.options,o=n.preventDefault,i=n.stopPropagation,a=n.preventDefaultException,c={start:function(){return o&&!Xe(e.target,a)},end:function(){return o&&!Xe(e.target,a)},move:function(){return o}};c[t]()&&e.preventDefault(),i&&e.stopPropagation()},r.prototype.setInitiated=function(e){e===void 0&&(e=0),this.initiated=e},r.prototype.start=function(e){var t=St[e.type];if(!(this.initiated&&this.initiated!==t)){if(this.setInitiated(t),pn(e.target,this.options.tagException)){this.setInitiated();return}if(!(t===2&&e.button!==0)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}}},r.prototype.move=function(e){if(St[e.type]===this.initiated){this.beforeHandler(e,"move");var t=e.touches?e.touches[0]:e,n=t.pageX-this.pointX,o=t.pageY-this.pointY;if(this.pointX=t.pageX,this.pointY=t.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:n,deltaY:o,e})){var i=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,a=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,c=this.pointX-i,u=this.pointY-a,l=this.options.autoEndDistance;(c>document.documentElement.clientWidth-l||u>document.documentElement.clientHeight-l||c<l||u<l)&&this.end(e)}}},r.prototype.end=function(e){St[e.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(e,"end"),this.hooks.trigger(this.hooks.eventTypes.end,e))},r.prototype.click=function(e){this.hooks.trigger(this.hooks.eventTypes.click,e)},r.prototype.setContent=function(e){e!==this.wrapper&&(this.wrapper=e,this.rebindDOMEvents())},r.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},r.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},r}(),Pt={x:["translateX","px"],y:["translateY","px"]},Sn=function(){function r(e){this.setContent(e),this.hooks=new be(["beforeTranslate","translate"])}return r.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null),t=e[xe.transform].split(")")[0].split(", "),n=+(t[12]||t[4])||0,o=+(t[13]||t[5])||0;return{x:n,y:o}},r.prototype.translate=function(e){var t=[];Object.keys(e).forEach(function(n){if(Pt[n]){var o=Pt[n][0];if(o){var i=Pt[n][1],a=e[n];t.push(o+"("+a+i+")")}}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[xe.transform]=t.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,e)},r.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style)},r.prototype.destroy=function(){this.hooks.destroy()},r}(),vr=function(){function r(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new be(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(e)}return r.prototype.translate=function(e){this.translater.translate(e)},r.prototype.setPending=function(e){this.pending=e},r.prototype.setForceStopped=function(e){this.forceStopped=e},r.prototype.setCallStop=function(e){this.callStopWhenPending=e},r.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style,this.stop())},r.prototype.clearTimer=function(){this.timer&&(we(this.timer),this.timer=0)},r.prototype.destroy=function(){this.hooks.destroy(),we(this.timer)},r}(),xn=function(r,e,t,n){var o=function(l,f){var p=l-f,b=p>0?-1:p<0?1:0;return b},i=o(e.x,r.x),a=o(e.y,r.y),c=t.x-n.x,u=t.y-n.y;return i*c<=0&&a*u<=0},Pn=function(r){Ke(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.startProbe=function(t,n){var o=this,i=t,a=function(){var c=o.translater.getComputedPosition();xn(t,n,c,i)&&o.hooks.trigger(o.hooks.eventTypes.move,c),o.pending||(o.callStopWhenPending?o.callStopWhenPending=!1:o.hooks.trigger(o.hooks.eventTypes.end,c)),i=c,o.pending&&(o.timer=pr(a))};this.callStopWhenPending&&this.setCallStop(!1),we(this.timer),a()},e.prototype.transitionTime=function(t){t===void 0&&(t=0),this.style[xe.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[xe.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.transitionProperty=function(){this.style[xe.transitionProperty]=xe.transform},e.prototype.move=function(t,n,o,i){this.setPending(o>0),this.transitionTimingFunction(i),this.transitionProperty(),this.transitionTime(o),this.translate(n);var a=this.options.probeType===3;o&&a&&this.startProbe(t,n),o||(this._reflow=this.content.offsetHeight,a&&this.hooks.trigger(this.hooks.eventTypes.move,n),this.hooks.trigger(this.hooks.eventTypes.end,n))},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),we(this.timer);var n=this.translater.getComputedPosition(),o=n.x,i=n.y;this.transitionTime(),this.translate({x:o,y:i}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:o,y:i})}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(vr),wn=function(r){Ke(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.move=function(t,n,o,i){if(!o){this.translate(n),this.options.probeType===3&&this.hooks.trigger(this.hooks.eventTypes.move,n),this.hooks.trigger(this.hooks.eventTypes.end,n);return}this.animate(t,n,o,i)},e.prototype.animate=function(t,n,o,i){var a=this,c=Se(),u=c+o,l=this.options.probeType===3,f=function(){var p=Se();if(p>=u){a.translate(n),l&&a.hooks.trigger(a.hooks.eventTypes.move,n),a.hooks.trigger(a.hooks.eventTypes.end,n);return}p=(p-c)/o;var b=i(p),_={};Object.keys(n).forEach(function(R){var I=t[R],B=n[R];_[R]=(B-I)*b+I}),a.translate(_),l&&a.hooks.trigger(a.hooks.eventTypes.move,_),a.pending&&(a.timer=pr(f)),a.pending||(a.callStopWhenPending?a.callStopWhenPending=!1:a.hooks.trigger(a.hooks.eventTypes.end,n))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),we(this.timer),f()},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),we(this.timer);var n=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,n)}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(vr);function Cn(r,e,t){var n=t.useTransition,o={};return Object.defineProperty(o,"probeType",{enumerable:!0,configurable:!1,get:function(){return t.probeType}}),n?new Pn(r,e,o):new wn(r,e,o)}var mr=function(){function r(e,t,n){this.wrapper=e,this.options=n,this.hooks=new be(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(t)}return r.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},r.prototype.move=function(e){return e=this.hasScroll?e:0,this.setMovingDirection(e),this.performDampingAlgorithm(e,this.options.outOfBoundaryDampingFactor)},r.prototype.setMovingDirection=function(e){this.movingDirection=e>0?-1:e<0?1:0},r.prototype.setDirection=function(e){this.direction=e>0?-1:e<0?1:0},r.prototype.performDampingAlgorithm=function(e,t){var n=this.currentPos+e;return(n>this.minScrollPos||n<this.maxScrollPos)&&(n>this.minScrollPos&&this.options.bounces[0]||n<this.maxScrollPos&&this.options.bounces[1]?n=this.currentPos+e*t:n=n>this.minScrollPos?this.minScrollPos:this.maxScrollPos),n},r.prototype.end=function(e){var t={duration:0},n=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&e<this.options.momentumLimitTime&&n>this.options.momentumLimitDistance){var o=this.direction===-1&&this.options.bounces[0]||this.direction===1&&this.options.bounces[1]?this.wrapperSize:0;t=this.hasScroll?this.momentum(this.currentPos,this.startPos,e,this.maxScrollPos,this.minScrollPos,o,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,t);return t},r.prototype.momentum=function(e,t,n,o,i,a,c){c===void 0&&(c=this.options);var u=e-t,l=Math.abs(u)/n,f=c.deceleration,p=c.swipeBounceTime,b=c.swipeTime,_=Math.min(b,l*2/f),R={destination:e+l*l/f*(u<0?-1:1),duration:_,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,R,u),R.destination<o?(R.destination=a?Math.max(o-a/4,o-a/R.rate*l):o,R.duration=p):R.destination>i&&(R.destination=a?Math.min(i+a/4,i+a/R.rate*l):i,R.duration=p),R.destination=Math.round(R.destination),R},r.prototype.updateDirection=function(){var e=this.currentPos-this.absStartPos;this.setDirection(e)},r.prototype.refresh=function(e){var t=this.options.rect,n=t.size,o=t.position,i=window.getComputedStyle(this.wrapper,null).position==="static",a=ur(this.wrapper);this.wrapperSize=this.wrapper[n==="width"?"clientWidth":"clientHeight"],this.setContent(e);var c=ur(this.content);this.contentSize=c[n],this.relativeOffset=c[o],i&&(this.relativeOffset-=a[o]),this.computeBoundary(),this.setDirection(0)},r.prototype.setContent=function(e){e!==this.content&&(this.content=e,this.resetState())},r.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},r.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var e={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};e.maxScrollPos<0&&(e.maxScrollPos-=this.relativeOffset,this.options.specifiedIndexAsContent===0&&(e.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,e),this.minScrollPos=e.minScrollPos,this.maxScrollPos=e.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},r.prototype.updatePosition=function(e){this.currentPos=e},r.prototype.getCurrentPos=function(){return this.currentPos},r.prototype.checkInBoundary=function(){var e=this.adjustPosition(this.currentPos),t=e===this.getCurrentPos();return{position:e,inBoundary:t}},r.prototype.adjustPosition=function(e){return!this.hasScroll&&!this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?e=this.minScrollPos:e>this.minScrollPos?e=this.minScrollPos:e<this.maxScrollPos&&(e=this.maxScrollPos),e},r.prototype.updateStartPos=function(){this.startPos=this.currentPos},r.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},r.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},r.prototype.getAbsDist=function(e){return this.dist+=e,Math.abs(this.dist)},r.prototype.destroy=function(){this.hooks.destroy()},r}(),Ze,Qe,et,tt,yr=(Ze={},Ze.yes=function(r){return!0},Ze.no=function(r){return sr(r),!1},Ze),_n=(Qe={},Qe.horizontal=(et={},et.yes="horizontal",et.no="vertical",et),Qe.vertical=(tt={},tt.yes="vertical",tt.no="horizontal",tt),Qe),On=function(){function r(e,t,n){this.directionLockThreshold=e,this.freeScroll=t,this.eventPassthrough=n,this.reset()}return r.prototype.reset=function(){this.directionLocked=""},r.prototype.checkMovingDirection=function(e,t,n){return this.computeDirectionLock(e,t),this.handleEventPassthrough(n)},r.prototype.adjustDelta=function(e,t){return this.directionLocked==="horizontal"?t=0:this.directionLocked==="vertical"&&(e=0),{deltaX:e,deltaY:t}},r.prototype.computeDirectionLock=function(e,t){this.directionLocked===""&&!this.freeScroll&&(e>t+this.directionLockThreshold?this.directionLocked="horizontal":t>=e+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},r.prototype.handleEventPassthrough=function(e){var t=_n[this.directionLocked];if(t){if(this.eventPassthrough===t.yes)return yr.yes(e);if(this.eventPassthrough===t.no)return yr.no(e)}return!1},r}(),Rn=function(r,e,t){return t===2?[e,-r]:t===3?[-r,-e]:t===4?[-e,r]:[r,e]},Dn=function(){function r(e,t,n,o,i){this.hooks=new be(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=e,this.scrollBehaviorY=t,this.actionsHandler=n,this.animater=o,this.options=i,this.directionLockAction=new On(i.directionLockThreshold,i.freeScroll,i.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return r.prototype.bindActionsHandler=function(){var e=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(t){return e.enabled?e.handleStart(t):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(t){var n=t.deltaX,o=t.deltaY,i=t.e;if(!e.enabled)return!0;var a=Rn(n,o,e.options.quadrant),c=a[0],u=a[1],l={deltaX:c,deltaY:u};return e.hooks.trigger(e.hooks.eventTypes.coordinateTransformation,l),e.handleMove(l.deltaX,l.deltaY,i)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(t){return e.enabled?e.handleEnd(t):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(t){e.enabled&&!t._constructed&&e.handleClick(t)})},r.prototype.handleStart=function(e){var t=Se();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=t,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,e)},r.prototype.handleMove=function(e,t,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var o=this.scrollBehaviorX.getAbsDist(e),i=this.scrollBehaviorY.getAbsDist(t),a=Se();if(this.checkMomentum(o,i,a))return!0;if(this.directionLockAction.checkMovingDirection(o,i,n))return this.actionsHandler.setInitiated(),!0;var c=this.directionLockAction.adjustDelta(e,t),u=this.scrollBehaviorX.getCurrentPos(),l=this.scrollBehaviorX.move(c.deltaX),f=this.scrollBehaviorY.getCurrentPos(),p=this.scrollBehaviorY.move(c.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var b=l!==u||p!==f;!this.contentMoved&&!b&&this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&b&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&b&&(this.animater.translate({x:l,y:p}),this.dispatchScroll(a))}}},r.prototype.dispatchScroll=function(e){e-this.startTime>this.options.momentumLimitTime&&(this.startTime=e,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())},r.prototype.checkMomentum=function(e,t,n){return n-this.endTime>this.options.momentumLimitTime&&t<this.options.momentumLimitDistance&&e<this.options.momentumLimitDistance},r.prototype.handleEnd=function(e){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,e)){var t=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,e,t))return!0;t=this.ensureIntegerPos(t),this.animater.translate(t),this.endTime=Se();var n=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,t,n)}},r.prototype.ensureIntegerPos=function(e){this.ensuringInteger=!0;var t=e.x,n=e.y,o=this.scrollBehaviorX,i=o.minScrollPos,a=o.maxScrollPos,c=this.scrollBehaviorY,u=c.minScrollPos,l=c.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),t=or(t,a,i),n=or(n,l,u),{x:t,y:n}},r.prototype.handleClick=function(e){Xe(e.target,this.options.preventDefaultException)||(sr(e),e.stopPropagation())},r.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},r.prototype.refresh=function(){this.endTime=0},r.prototype.destroy=function(){this.hooks.destroy()},r}();function An(r){var e=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce(function(t,n){return t[n]=r[n],t},{});return e}function gr(r,e,t,n){var o=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce(function(i,a){return i[a]=r[a],i},{});return o.scrollable=!!r[e],o.bounces=t,o.rect=n,o}function wt(r,e,t){t.forEach(function(n){var o,i;typeof n=="string"?o=i=n:(o=n.source,i=n.target),r.on(o,function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return e.trigger.apply(e,tr([i],a))})})}function Mn(r,e){for(var t=Object.keys(r),n=0,o=t;n<o.length;n++){var i=o[n];if(r[i]!==e[i])return!1}return!0}var Tr=1,In=function(){function r(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new be(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=n;var o=this.options.bounce,i=o.left,a=o.right,c=o.top,u=o.bottom;this.scrollBehaviorX=new mr(e,t,gr(n,"scrollX",[i,a],{size:"width",position:"left"})),this.scrollBehaviorY=new mr(e,t,gr(n,"scrollY",[c,u],{size:"height",position:"top"})),this.translater=new Sn(this.content),this.animater=Cn(this.content,this.translater,this.options),this.actionsHandler=new kn(this.options.bindToTarget?this.content:e,An(this.options)),this.actions=new Dn(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var l=this.resize.bind(this);this.resizeRegister=new Je(window,[{name:"orientationchange",handler:l},{name:"resize",handler:l}]),this.registerTransitionEnd(),this.init()}return r.prototype.init=function(){var e=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){e.togglePointerEvents(!0)})},r.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new Je(this.content,[{name:xe.transitionEnd,handler:this.transitionEnd.bind(this)}])},r.prototype.bindTranslater=function(){var e=this,t=this.translater.hooks;t.on(t.eventTypes.beforeTranslate,function(n){e.options.translateZ&&n.push(e.options.translateZ)}),t.on(t.eventTypes.translate,function(n){var o=e.getCurrentPos();if(e.updatePositions(n),e.actions.ensuringInteger===!0){e.actions.ensuringInteger=!1;return}(n.x!==o.x||n.y!==o.y)&&e.togglePointerEvents(!1)})},r.prototype.bindAnimater=function(){var e=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(t){e.resetPosition(e.options.bounceTime)||(e.animater.setPending(!1),e.hooks.trigger(e.hooks.eventTypes.scrollEnd,t))}),wt(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}])},r.prototype.bindActions=function(){var e=this,t=this.actions;wt(t.hooks,this.hooks,[{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:t.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:t.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:t.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:t.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),t.hooks.on(t.hooks.eventTypes.end,function(n,o){if(e.hooks.trigger(e.hooks.eventTypes.touchEnd,o),e.hooks.trigger(e.hooks.eventTypes.end,o)||!t.fingerMoved&&(e.hooks.trigger(e.hooks.eventTypes.scrollCancel),e.checkClick(n)))return!0;if(e.resetPosition(e.options.bounceTime,Pe.bounce))return e.animater.setForceStopped(!1),!0}),t.hooks.on(t.hooks.eventTypes.scrollEnd,function(n,o){var i=Math.abs(n.x-e.scrollBehaviorX.startPos),a=Math.abs(n.y-e.scrollBehaviorY.startPos);if(e.checkFlick(o,i,a)){e.animater.setForceStopped(!1),e.hooks.trigger(e.hooks.eventTypes.flick);return}if(e.momentum(n,o)){e.animater.setForceStopped(!1);return}t.contentMoved&&e.hooks.trigger(e.hooks.eventTypes.scrollEnd,n),e.animater.forceStopped&&e.animater.setForceStopped(!1)})},r.prototype.checkFlick=function(e,t,n){var o=1;if(this.hooks.events.flick.length>1&&e<this.options.flickLimitTime&&t<this.options.flickLimitDistance&&n<this.options.flickLimitDistance&&(n>o||t>o))return!0},r.prototype.momentum=function(e,t){var n={time:0,easing:Pe.swiper,newX:e.x,newY:e.y},o=this.scrollBehaviorX.end(t),i=this.scrollBehaviorY.end(t);if(n.newX=Et(o.destination)?n.newX:o.destination,n.newY=Et(i.destination)?n.newY:i.destination,n.time=Math.max(o.duration,i.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==e.x||n.newY!==e.y)return(n.newX>this.scrollBehaviorX.minScrollPos||n.newX<this.scrollBehaviorX.maxScrollPos||n.newY>this.scrollBehaviorY.minScrollPos||n.newY<this.scrollBehaviorY.maxScrollPos)&&(n.easing=Pe.swipeBounce),this.scrollTo(n.newX,n.newY,n.time,n.easing),!0},r.prototype.checkClick=function(e){var t={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!t.preventClick){var n=this.options.dblclick,o=!1;if(n&&this.lastClickTime){var i=n.delay,a=i===void 0?300:i;Se()-this.lastClickTime<a&&(o=!0,vn(e))}return this.options.tap&&dn(e,this.options.tap),this.options.click&&!Xe(e.target,this.options.preventDefaultException)&&fr(e),this.lastClickTime=o?null:Se(),!0}return!1},r.prototype.resize=function(){var e=this;this.actions.enabled&&(on&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){e.hooks.trigger(e.hooks.eventTypes.resize)},this.options.resizePolling))},r.prototype.transitionEnd=function(e){if(!(e.target!==this.content||!this.animater.pending)){var t=this.animater;t.transitionTime(),this.resetPosition(this.options.bounceTime,Pe.bounce)||(this.animater.setPending(!1),this.options.probeType!==3&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},r.prototype.togglePointerEvents=function(e){e===void 0&&(e=!0);for(var t=this.content.children.length?this.content.children:[this.content],n=e?"auto":"none",o=0;o<t.length;o++){var i=t[o];i.isBScrollContainer||(i.style.pointerEvents=n)}},r.prototype.refresh=function(e){var t=this.setContent(e);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(e),this.scrollBehaviorY.refresh(e),t&&(this.translater.setContent(e),this.animater.setContent(e),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(e)),this.actions.refresh(),this.wrapperOffset=ar(this.wrapper)},r.prototype.setContent=function(e){var t=e!==this.content;return t&&(this.content=e),t},r.prototype.scrollBy=function(e,t,n,o){n===void 0&&(n=0);var i=this.getCurrentPos(),a=i.x,c=i.y;o=o||Pe.bounce,e+=a,t+=c,this.scrollTo(e,t,n,o)},r.prototype.scrollTo=function(e,t,n,o,i){n===void 0&&(n=0),o===void 0&&(o=Pe.bounce),i===void 0&&(i={start:{},end:{}});var a=this.options.useTransition?o.style:o.fn,c=this.getCurrentPos(),u=Fe({x:c.x,y:c.y},i.start),l=Fe({x:e,y:t},i.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,l),!Mn(u,l)){var f=Math.abs(l.x-u.x),p=Math.abs(l.y-u.y);f<Tr&&p<Tr&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(u,l,n,a)}},r.prototype.scrollToElement=function(e,t,n,o,i){var a=ir(e),c=ar(a),u=function(f,p,b){return typeof f=="number"?f:f?Math.round(p/2-b/2):0};n=u(n,a.offsetWidth,this.wrapper.offsetWidth),o=u(o,a.offsetHeight,this.wrapper.offsetHeight);var l=function(f,p,b,_){return f-=p,f=_.adjustPosition(f-b),f};c.left=l(c.left,this.wrapperOffset.left,n,this.scrollBehaviorX),c.top=l(c.top,this.wrapperOffset.top,o,this.scrollBehaviorY),!this.hooks.trigger(this.hooks.eventTypes.scrollToElement,a,c)&&this.scrollTo(c.left,c.top,t,i)},r.prototype.resetPosition=function(e,t){e===void 0&&(e=0),t===void 0&&(t=Pe.bounce);var n=this.scrollBehaviorX.checkInBoundary(),o=n.position,i=n.inBoundary,a=this.scrollBehaviorY.checkInBoundary(),c=a.position,u=a.inBoundary;return i&&u?!1:(sn&&this.reflow(),this.scrollTo(o,c,e,t),!0)},r.prototype.reflow=function(){this._reflow=this.content.offsetHeight},r.prototype.updatePositions=function(e){this.scrollBehaviorX.updatePosition(e.x),this.scrollBehaviorY.updatePosition(e.y)},r.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},r.prototype.enable=function(){this.actions.enabled=!0},r.prototype.disable=function(){we(this.animater.timer),this.actions.enabled=!1},r.prototype.destroy=function(){var e=this,t=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];t.forEach(function(n){return e[n].destroy()})},r}(),rt=function(r){Ke(e,r);function e(t,n){var o=r.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,i=ir(t);return i?(o.plugins={},o.options=new En().merge(n).process(),o.setContent(i).valid&&(o.hooks=new be(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),o.init(i)),o):(Ge("Can not resolve the wrapper DOM."),o)}return e.use=function(t){var n=t.pluginName,o=e.plugins.some(function(i){return t===i.ctor});return o?e:Et(n)?(Ge("Plugin Class must specify plugin's name in static property by 'pluginName' field."),e):(e.pluginsMap[n]=!0,e.plugins.push({name:n,applyOrder:t.applyOrder,ctor:t}),e)},e.prototype.setContent=function(t){var n=!1,o=!0,i=t.children[this.options.specifiedIndexAsContent];return i?(n=this.content!==i,n&&(this.content=i)):(Ge("The wrapper need at least one child element to be content element to scroll."),o=!1),{valid:o,contentChanged:n}},e.prototype.init=function(t){var n=this;this.wrapper=t,t.isBScrollContainer=!0,this.scroller=new In(t,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){n.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(rn),this.applyPlugins(),this.refreshWithoutReset(this.content);var o=this.options,i=o.startX,a=o.startY,c={x:i,y:a};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,c)||this.scroller.scrollTo(c.x,c.y)},e.prototype.applyPlugins=function(){var t=this,n=this.options;e.plugins.sort(function(o,i){var a,c=(a={},a.pre=-1,a.post=1,a),u=o.applyOrder?c[o.applyOrder]:0,l=i.applyOrder?c[i.applyOrder]:0;return u-l}).forEach(function(o){var i=o.ctor;n[o.name]&&typeof i=="function"&&(t.plugins[o.name]=new i(t))})},e.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var t=document.activeElement;t&&(t.tagName==="INPUT"||t.tagName==="TEXTAREA")&&t.blur()})},e.prototype.eventBubbling=function(){wt(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])},e.prototype.refreshWithoutReset=function(t){this.scroller.refresh(t),this.hooks.trigger(this.hooks.eventTypes.refresh,t),this.trigger(this.eventTypes.refresh,t)},e.prototype.proxy=function(t){var n=this;t.forEach(function(o){var i=o.key,a=o.sourceKey;Tn(n,a,i)})},e.prototype.refresh=function(){var t=this.setContent(this.wrapper),n=t.contentChanged,o=t.valid;if(o){var i=this.content;this.refreshWithoutReset(i),n&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,i),this.trigger(this.eventTypes.contentChanged,i)),this.scroller.resetPosition()}},e.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},e.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},e.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},e.prototype.eventRegister=function(t){this.registerType(t)},e.plugins=[],e.pluginsMap={},e}(be);function We(r,e){var t=new rt(r,e);return t}We.use=rt.use,We.plugins=rt.plugins,We.pluginsMap=rt.pluginsMap;var Yn=We;/*!
68
68
  * better-scroll / wheel
69
69
  * (c) 2016-2023 ustbhuangyi
70
70
  * Released under the MIT License.
71
- */var ze=typeof window<"u",ot=ze&&navigator.userAgent.toLowerCase();ot&&ot.indexOf("android")>0,function(){if(typeof ot=="string"){var r=/os (\d\d?_\d(_\d)?)/,e=r.exec(ot);if(!e)return!1;var t=e[1].split("_").map(function(n){return parseInt(n,10)});return t[0]===13&&t[1]>=4}return!1}();var jn=!1;if(ze){var Nn="test-passive";try{var kr={};Object.defineProperty(kr,"passive",{get:function(){jn=!0}}),window.addEventListener(Nn,function(){},kr)}catch{}}var Ln=function(r,e){for(var t in e)r[t]=e[t];return r},Sr=ze&&document.createElement("div").style,Me=function(){if(!ze)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,t=r;e<t.length;e++){var n=t[e];if(Sr[n.value]!==void 0)return n.key}return!1}();function me(r){return Me===!1?r:Me==="standard"?r==="transitionEnd"?"transitionend":r:Me+r.charAt(0).toUpperCase()+r.substr(1)}Me&&Me!=="standard"&&""+Me.toLowerCase();var $n=me("transform"),Fn=me("transition");ze&&me("perspective")in Sr;var _t={transform:$n,transition:Fn,transitionTimingFunction:me("transitionTimingFunction"),transitionDuration:me("transitionDuration"),transitionDelay:me("transitionDelay"),transformOrigin:me("transformOrigin"),transitionEnd:me("transitionEnd"),transitionProperty:me("transitionProperty")};function it(r,e){var t=new RegExp("(^|\\s)"+e+"(\\s|$)");return t.test(r.className)}function Xn(r){return Array.prototype.slice.call(r,0)}var Wn={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(r){return 1+--r*r*r*r*r}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(r){return r*(2-r)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(r){return 1- --r*r*r*r}}},zn="plugins.wheel",Hn=[{key:"wheelTo",name:"wheelTo"},{key:"getSelectedIndex",name:"getSelectedIndex"},{key:"restorePosition",name:"restorePosition"}],Un=Hn.map(function(r){return{key:r.key,sourceKey:zn+"."+r.name}}),xr="wheelIndexChanged",qn={rate:4},Vn=function(){function r(e){this.scroll=e,this.init()}return r.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.refreshBoundary(),this.setSelectedIndex(this.options.selectedIndex)},r.prototype.handleBScroll=function(){this.scroll.proxy(Un),this.scroll.registerType([xr])},r.prototype.handleOptions=function(){var e=this.scroll.options.wheel===!0?{}:this.scroll.options.wheel,t={wheelWrapperClass:"wheel-scroll",wheelItemClass:"wheel-item",rotate:25,adjustTime:400,selectedIndex:0,wheelDisabledItemClass:"wheel-disabled-item"};this.options=Ln(t,e)},r.prototype.handleHooks=function(){var e=this,t=this.scroll,n=this.scroll.scroller,o=n.actionsHandler,i=n.scrollBehaviorX,a=n.scrollBehaviorY,c=n.animater,u=n.content;t.on(t.eventTypes.scrollEnd,function(l){var f=e.findNearestValidWheel(l.y).index;if(n.animater.forceStopped&&!e.isAdjustingPosition)return e.target=e.items[f],!0;e.setSelectedIndex(f),e.isAdjustingPosition&&(e.isAdjustingPosition=!1)}),this.scroll.hooks.on(this.scroll.hooks.eventTypes.refresh,function(l){l!==u&&(u=l,e.setSelectedIndex(e.options.selectedIndex,!0)),e.rotateX(e.scroll.y),e.wheelTo(e.selectedIndex,0)}),this.scroll.hooks.on(this.scroll.hooks.eventTypes.beforeInitialScrollTo,function(l){l.x=0,l.y=-(e.selectedIndex*e.itemHeight)}),n.hooks.on(n.hooks.eventTypes.checkClick,function(){var l=Xn(e.items).indexOf(e.target);return l===-1||e.wheelTo(l,e.options.adjustTime,Wn.swipe),!0}),n.hooks.on(n.hooks.eventTypes.scrollTo,function(l){l.y=e.findNearestValidWheel(l.y).y}),n.hooks.on(n.hooks.eventTypes.minDistanceScroll,function(){var l=n.animater;l.forceStopped===!0&&(l.forceStopped=!1)}),n.hooks.on(n.hooks.eventTypes.scrollToElement,function(l,f){if(it(l,e.options.wheelItemClass))f.top=e.findNearestValidWheel(f.top).y;else return!0}),o.hooks.on(o.hooks.eventTypes.beforeStart,function(l){e.target=l.target}),i.hooks.on(i.hooks.eventTypes.computeBoundary,function(l){l.maxScrollPos=0,l.minScrollPos=0}),a.hooks.on(a.hooks.eventTypes.computeBoundary,function(l){e.items=e.scroll.scroller.content.children,e.checkWheelAllDisabled(),e.itemHeight=e.items.length>0?a.contentSize/e.items.length:0,l.maxScrollPos=-e.itemHeight*(e.items.length-1),l.minScrollPos=0}),a.hooks.on(a.hooks.eventTypes.momentum,function(l){l.rate=qn.rate,l.destination=e.findNearestValidWheel(l.destination).y}),a.hooks.on(a.hooks.eventTypes.end,function(l){var f=e.findNearestValidWheel(a.currentPos);l.destination=f.y,l.duration=e.options.adjustTime}),c.hooks.on(c.hooks.eventTypes.time,function(l){e.transitionDuration(l)}),c.hooks.on(c.hooks.eventTypes.timeFunction,function(l){e.timeFunction(l)}),c.hooks.on(c.hooks.eventTypes.callStop,function(){var l=e.findNearestValidWheel(e.scroll.y).index;e.isAdjustingPosition=!0,e.wheelTo(l,0)}),c.translater.hooks.on(c.translater.hooks.eventTypes.translate,function(l){e.rotateX(l.y)})},r.prototype.refreshBoundary=function(){var e=this.scroll.scroller,t=e.scrollBehaviorX,n=e.scrollBehaviorY,o=e.content;t.refresh(o),n.refresh(o)},r.prototype.setSelectedIndex=function(e,t){t===void 0&&(t=!1);var n=this.selectedIndex;this.selectedIndex=e,n!==e&&!t&&this.scroll.trigger(xr,e)},r.prototype.getSelectedIndex=function(){return this.selectedIndex},r.prototype.wheelTo=function(e,t,n){e===void 0&&(e=0),t===void 0&&(t=0);var o=-e*this.itemHeight;this.scroll.scrollTo(0,o,t,n)},r.prototype.restorePosition=function(){var e=this.scroll.pending;if(e){var t=this.getSelectedIndex();this.scroll.scroller.animater.clearTimer(),this.wheelTo(t,0)}},r.prototype.transitionDuration=function(e){for(var t=0;t<this.items.length;t++)this.items[t].style[_t.transitionDuration]=e+"ms"},r.prototype.timeFunction=function(e){for(var t=0;t<this.items.length;t++)this.items[t].style[_t.transitionTimingFunction]=e},r.prototype.rotateX=function(e){for(var t=this.options.rotate,n=t===void 0?25:t,o=0;o<this.items.length;o++){var i=n*(e/this.itemHeight+o),a=i.toFixed(3);this.items[o].style[_t.transform]="rotateX("+a+"deg)"}},r.prototype.findNearestValidWheel=function(e){e=e>0?0:e<this.scroll.maxScrollY?this.scroll.maxScrollY:e;for(var t=Math.abs(Math.round(-e/this.itemHeight)),n=t,o=this.items,i=this.options.wheelDisabledItemClass;t>=0&&it(o[t],i);)t--;if(t<0)for(t=n;t<=o.length-1&&it(o[t],i);)t++;return t===o.length&&(t=n),{index:this.wheelItemsAllDisabled?-1:t,y:-t*this.itemHeight}},r.prototype.checkWheelAllDisabled=function(){var e=this.options.wheelDisabledItemClass,t=this.items;this.wheelItemsAllDisabled=!0;for(var n=0;n<t.length;n++)if(!it(t[n],e)){this.wheelItemsAllDisabled=!1;break}},r.pluginName="wheel",r}();Bn.use(Vn);const st=Array.isArray,Kn=r=>typeof r=="string",Pr=r=>typeof r=="number",Gn=r=>typeof r=="object"&&r!==null;function Ot(r){return st(r)&&r.length===3}function Jn(r){return r%4===0&&(r%100!==0||r%400===0)}function Ie(r,e){const t=[];for(let n=r;n<=e;n++)t.push(n);return t}function Rt(r,e){const t=[];for(let n=r;n<=e;n++)t.push(`${n}`.padStart(2,"0"));return t}function Zn(){const r=Rt(0,23),e=Rt(0,59),t=Rt(0,59);return{timeList:[r,e,t],getTimeAnchors:Qn}}function Qn(r){return(Ot(r)?r:eo()).map(t=>Number(t))}function eo(){const r=new Date,e=r.getHours(),t=r.getMinutes(),n=r.getSeconds();return[e,t,n]}function to(){const t=new Date,n=t.getFullYear(),o=t.getMonth()+1,i=t.getDate(),[a,c]=N.useState(n),[u,l]=N.useState(o),f=Ie(1900,2100),p=Ie(1,12),b=N.useMemo(()=>{const B=[4,6,9,11],X=[1,3,5,7,8,10,12];return B.includes(u)?Ie(1,30):X.includes(u)?Ie(1,31):Jn(a)?Ie(1,29):Ie(1,28)},[u,a]),_=N.useMemo(()=>[f,p,b],[b]);function R(B){return(Ot(B)?B:[n,o,i]).map((D,H)=>{if(!Pr(D))return 0;const W=_[H].indexOf(D);return W!==-1?W:0})}function I(B){const[X,D]=B;c(_[0][X]),l(_[1][D])}return{dateList:_,setSelectYear:c,setSelectMonth:l,updateDateSelect:I,getDateAnchors:R}}function ro({data:r,isShowPicker:e,anchor:t,swipeTime:n,type:o,onChangeAnchor:i,onClose:a,onCancel:c,onConfirm:u}){const[l,f]=N.useState([]),[p,b]=N.useState([]),[_,R]=N.useState(!1),I=N.useRef(null),{dateList:B,setSelectYear:X,setSelectMonth:D,updateDateSelect:H,getDateAnchors:W}=to(),{timeList:v,getTimeAnchors:re}=Zn(),Q=o==="date",K=o==="time",ne=N.useMemo(()=>Q?W(t):K?re(t):st(t)?t:[t],[Q,K,t,_]);N.useEffect(()=>{pe()},[r,o,B]),N.useEffect(()=>{e&&(ie(),se(),ae())},[e]),N.useEffect(()=>{ie()},[l]),N.useEffect(()=>{ae()},[ne]);function ie(){l.forEach((T,k)=>G(k)),ee()}function pe(){const T={date:B,time:v},E=st(r[0])?[...r]:[r],x=o?T[o]:E;f(x)}function se(){!Q&&!K||(Q&&H(ne),!Ot(t)&&R(!_))}function G(T){var x;const k=(x=I.current)==null?void 0:x.children[T];if(!k)return;const E=p[T];if(E)E.refresh();else{const S=We(k,{wheel:{selectedIndex:0,rotate:25},swipeTime:n});b(w=>{const O=[...w];return O[T]=S,O}),S.on("scrollEnd",()=>J(T,S))}}function J(T,k){if(Q){if(T===2)return;const E=k.getSelectedIndex(),x=B[T][E];T===0&&X(x),T===1&&D(x)}}function ae(){setTimeout(()=>{p.forEach((T,k)=>{const E=ne[k];T.wheelTo(E??0)})})}function ee(){const T=l.length;if(p.length<=T)return;const k=p.splice(T);b(E=>E.slice(0,T)),k.forEach(E=>E.destroy())}function ce(){c==null||c(),de()}function ye(){p.some(x=>x.isInTransition)&&d();const{item:k,anchor:E}=g();u==null||u(k),i(E),de()}function de(){a()}function d(){p.forEach(T=>T.stop())}function g(){const{item:T,anchor:k}=p.reduce((E,x,S)=>{const w=x.getSelectedIndex(),O=l[S][w];return E.item.push(K?+O:O),E.anchor.push(Q?O:w),E},{item:[],anchor:[]});return T.length>1?{item:T,anchor:k}:{item:T[0],anchor:k[0]}}return{pickerData:l,wheelWrapper:I,cancel:ce,confirm:ye,closePicker:de}}const no={cancelClass:"",confirmClass:"",titleClass:"",cancelColor:"#999",confirmColor:"#42b983",titleColor:"",cancelText:"Cancel",confirmText:"Confirm",titleText:""},oo=[],io={};function so({data:r=oo,isShowPicker:e,options:t=io,anchor:n,showKey:o="",swipeTime:i=500,type:a="",onChangeAnchor:c,onClose:u,onCancel:l,onConfirm:f}){const p=N.useRef(null),b=N.useRef(null),{pickerData:_,wheelWrapper:R,cancel:I,confirm:B,closePicker:X}=ro({data:r,isShowPicker:e,options:t,anchor:n,showKey:o,swipeTime:i,type:a,onClose:u,onChangeAnchor:c,onCancel:l,onConfirm:f}),D=N.useMemo(()=>({...no,...t}),[t]),H=D.cancelColor,W=D.confirmColor,v=D.titleColor,re=N.useMemo(()=>st(o)?o:[o],[o]);function Q(K){p.current&&p.current.style.setProperty("display",K)}return V.jsxs("div",{children:[V.jsx(Ke,{in:e,classNames:"component-hook-picker-fade",timeout:300,nodeRef:b,unmountOnExit:!0,children:V.jsx("div",{ref:b,role:"presentation",className:"component-hook-picker-mask",onClick:X,onKeyDown:K=>{K.key==="Escape"&&X()}})}),V.jsx(Ke,{in:e,classNames:"component-hook-picker-slide",timeout:300,nodeRef:p,onEnter:()=>Q(""),onExited:()=>Q("none"),children:V.jsxs("div",{ref:p,className:"component-hook-picker",style:{display:"none"},children:[V.jsxs("div",{className:"component-hook-picker_title",children:[V.jsx("button",{className:`component-hook-picker_cancel ${D.cancelClass}`,style:{color:H},onClick:I,children:D.cancelText}),V.jsx("button",{className:`component-hook-picker_confirm ${D.confirmClass}`,style:{color:W},onClick:B,children:D.confirmText}),V.jsx("h4",{className:D.titleClass,style:{color:v},children:D.titleText})]}),V.jsxs("div",{className:"component-hook-picker_panel",children:[V.jsx("div",{className:"component-hook-picker_mask_top"}),V.jsx("div",{className:"component-hook-picker_mask_bottom"}),V.jsx("div",{ref:R,className:"component-hook-picker_wheel_wrapper",children:_.map((K,ne)=>V.jsx("div",{className:"component-hook-picker_wheel",children:V.jsx("ul",{className:"component-hook-picker_wheel_scroll",children:K.map((ie,pe)=>{const se=re[ne]&&Gn(ie)?ie[re[ne]]:ie;return!Kn(se)&&!Pr(se)?null:V.jsx("li",{className:"component-hook-picker_wheel_item",children:se},pe)})})},ne))})]})]})})]})}return so});
71
+ */var ze=typeof window<"u",nt=ze&&navigator.userAgent.toLowerCase();nt&&nt.indexOf("android")>0,function(){if(typeof nt=="string"){var r=/os (\d\d?_\d(_\d)?)/,e=r.exec(nt);if(!e)return!1;var t=e[1].split("_").map(function(n){return parseInt(n,10)});return t[0]===13&&t[1]>=4}return!1}();var Bn=!1;if(ze){var jn="test-passive";try{var br={};Object.defineProperty(br,"passive",{get:function(){Bn=!0}}),window.addEventListener(jn,function(){},br)}catch{}}var Nn=function(r,e){for(var t in e)r[t]=e[t];return r},Er=ze&&document.createElement("div").style,Me=function(){if(!ze)return!1;for(var r=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,t=r;e<t.length;e++){var n=t[e];if(Er[n.value]!==void 0)return n.key}return!1}();function me(r){return Me===!1?r:Me==="standard"?r==="transitionEnd"?"transitionend":r:Me+r.charAt(0).toUpperCase()+r.substr(1)}Me&&Me!=="standard"&&""+Me.toLowerCase();var Ln=me("transform"),$n=me("transition");ze&&me("perspective")in Er;var Ct={transform:Ln,transition:$n,transitionTimingFunction:me("transitionTimingFunction"),transitionDuration:me("transitionDuration"),transitionDelay:me("transitionDelay"),transformOrigin:me("transformOrigin"),transitionEnd:me("transitionEnd"),transitionProperty:me("transitionProperty")};function ot(r,e){var t=new RegExp("(^|\\s)"+e+"(\\s|$)");return t.test(r.className)}function Fn(r){return Array.prototype.slice.call(r,0)}var Xn={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(r){return 1+--r*r*r*r*r}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(r){return r*(2-r)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(r){return 1- --r*r*r*r}}},Wn="plugins.wheel",zn=[{key:"wheelTo",name:"wheelTo"},{key:"getSelectedIndex",name:"getSelectedIndex"},{key:"restorePosition",name:"restorePosition"}],Hn=zn.map(function(r){return{key:r.key,sourceKey:Wn+"."+r.name}}),kr="wheelIndexChanged",Un={rate:4},qn=function(){function r(e){this.scroll=e,this.init()}return r.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.refreshBoundary(),this.setSelectedIndex(this.options.selectedIndex)},r.prototype.handleBScroll=function(){this.scroll.proxy(Hn),this.scroll.registerType([kr])},r.prototype.handleOptions=function(){var e=this.scroll.options.wheel===!0?{}:this.scroll.options.wheel,t={wheelWrapperClass:"wheel-scroll",wheelItemClass:"wheel-item",rotate:25,adjustTime:400,selectedIndex:0,wheelDisabledItemClass:"wheel-disabled-item"};this.options=Nn(t,e)},r.prototype.handleHooks=function(){var e=this,t=this.scroll,n=this.scroll.scroller,o=n.actionsHandler,i=n.scrollBehaviorX,a=n.scrollBehaviorY,c=n.animater,u=n.content;t.on(t.eventTypes.scrollEnd,function(l){var f=e.findNearestValidWheel(l.y).index;if(n.animater.forceStopped&&!e.isAdjustingPosition)return e.target=e.items[f],!0;e.setSelectedIndex(f),e.isAdjustingPosition&&(e.isAdjustingPosition=!1)}),this.scroll.hooks.on(this.scroll.hooks.eventTypes.refresh,function(l){l!==u&&(u=l,e.setSelectedIndex(e.options.selectedIndex,!0)),e.rotateX(e.scroll.y),e.wheelTo(e.selectedIndex,0)}),this.scroll.hooks.on(this.scroll.hooks.eventTypes.beforeInitialScrollTo,function(l){l.x=0,l.y=-(e.selectedIndex*e.itemHeight)}),n.hooks.on(n.hooks.eventTypes.checkClick,function(){var l=Fn(e.items).indexOf(e.target);return l===-1||e.wheelTo(l,e.options.adjustTime,Xn.swipe),!0}),n.hooks.on(n.hooks.eventTypes.scrollTo,function(l){l.y=e.findNearestValidWheel(l.y).y}),n.hooks.on(n.hooks.eventTypes.minDistanceScroll,function(){var l=n.animater;l.forceStopped===!0&&(l.forceStopped=!1)}),n.hooks.on(n.hooks.eventTypes.scrollToElement,function(l,f){if(ot(l,e.options.wheelItemClass))f.top=e.findNearestValidWheel(f.top).y;else return!0}),o.hooks.on(o.hooks.eventTypes.beforeStart,function(l){e.target=l.target}),i.hooks.on(i.hooks.eventTypes.computeBoundary,function(l){l.maxScrollPos=0,l.minScrollPos=0}),a.hooks.on(a.hooks.eventTypes.computeBoundary,function(l){e.items=e.scroll.scroller.content.children,e.checkWheelAllDisabled(),e.itemHeight=e.items.length>0?a.contentSize/e.items.length:0,l.maxScrollPos=-e.itemHeight*(e.items.length-1),l.minScrollPos=0}),a.hooks.on(a.hooks.eventTypes.momentum,function(l){l.rate=Un.rate,l.destination=e.findNearestValidWheel(l.destination).y}),a.hooks.on(a.hooks.eventTypes.end,function(l){var f=e.findNearestValidWheel(a.currentPos);l.destination=f.y,l.duration=e.options.adjustTime}),c.hooks.on(c.hooks.eventTypes.time,function(l){e.transitionDuration(l)}),c.hooks.on(c.hooks.eventTypes.timeFunction,function(l){e.timeFunction(l)}),c.hooks.on(c.hooks.eventTypes.callStop,function(){var l=e.findNearestValidWheel(e.scroll.y).index;e.isAdjustingPosition=!0,e.wheelTo(l,0)}),c.translater.hooks.on(c.translater.hooks.eventTypes.translate,function(l){e.rotateX(l.y)})},r.prototype.refreshBoundary=function(){var e=this.scroll.scroller,t=e.scrollBehaviorX,n=e.scrollBehaviorY,o=e.content;t.refresh(o),n.refresh(o)},r.prototype.setSelectedIndex=function(e,t){t===void 0&&(t=!1);var n=this.selectedIndex;this.selectedIndex=e,n!==e&&!t&&this.scroll.trigger(kr,e)},r.prototype.getSelectedIndex=function(){return this.selectedIndex},r.prototype.wheelTo=function(e,t,n){e===void 0&&(e=0),t===void 0&&(t=0);var o=-e*this.itemHeight;this.scroll.scrollTo(0,o,t,n)},r.prototype.restorePosition=function(){var e=this.scroll.pending;if(e){var t=this.getSelectedIndex();this.scroll.scroller.animater.clearTimer(),this.wheelTo(t,0)}},r.prototype.transitionDuration=function(e){for(var t=0;t<this.items.length;t++)this.items[t].style[Ct.transitionDuration]=e+"ms"},r.prototype.timeFunction=function(e){for(var t=0;t<this.items.length;t++)this.items[t].style[Ct.transitionTimingFunction]=e},r.prototype.rotateX=function(e){for(var t=this.options.rotate,n=t===void 0?25:t,o=0;o<this.items.length;o++){var i=n*(e/this.itemHeight+o),a=i.toFixed(3);this.items[o].style[Ct.transform]="rotateX("+a+"deg)"}},r.prototype.findNearestValidWheel=function(e){e=e>0?0:e<this.scroll.maxScrollY?this.scroll.maxScrollY:e;for(var t=Math.abs(Math.round(-e/this.itemHeight)),n=t,o=this.items,i=this.options.wheelDisabledItemClass;t>=0&&ot(o[t],i);)t--;if(t<0)for(t=n;t<=o.length-1&&ot(o[t],i);)t++;return t===o.length&&(t=n),{index:this.wheelItemsAllDisabled?-1:t,y:-t*this.itemHeight}},r.prototype.checkWheelAllDisabled=function(){var e=this.options.wheelDisabledItemClass,t=this.items;this.wheelItemsAllDisabled=!0;for(var n=0;n<t.length;n++)if(!ot(t[n],e)){this.wheelItemsAllDisabled=!1;break}},r.pluginName="wheel",r}();Yn.use(qn);const it=Array.isArray,Vn=r=>typeof r=="string",Sr=r=>typeof r=="number",Kn=r=>typeof r=="object"&&r!==null;function _t(r){return it(r)&&r.length===3}function Gn(r){return r%4===0&&(r%100!==0||r%400===0)}function Ie(r,e){const t=[];for(let n=r;n<=e;n++)t.push(n);return t}function Ot(r,e){const t=[];for(let n=r;n<=e;n++)t.push(`${n}`.padStart(2,"0"));return t}function Jn(){const r=Ot(0,23),e=Ot(0,59),t=Ot(0,59);return{timeList:[r,e,t],getTimeAnchors:Zn}}function Zn(r){return(_t(r)?r:Qn()).map(t=>Number(t))}function Qn(){const r=new Date,e=r.getHours(),t=r.getMinutes(),n=r.getSeconds();return[e,t,n]}function eo(){const t=new Date,n=t.getFullYear(),o=t.getMonth()+1,i=t.getDate(),[a,c]=N.useState(n),[u,l]=N.useState(o),f=Ie(1900,2100),p=Ie(1,12),b=N.useMemo(()=>{const B=[4,6,9,11],X=[1,3,5,7,8,10,12];return B.includes(u)?Ie(1,30):X.includes(u)?Ie(1,31):Gn(a)?Ie(1,29):Ie(1,28)},[u,a]),_=N.useMemo(()=>[f,p,b],[b]);function R(B){return(_t(B)?B:[n,o,i]).map((D,H)=>{if(!Sr(D))return 0;const W=_[H].indexOf(D);return W!==-1?W:0})}function I(B){const[X,D]=B;c(_[0][X]),l(_[1][D])}return{dateList:_,setSelectYear:c,setSelectMonth:l,updateDateSelect:I,getDateAnchors:R}}function to({data:r,isShowPicker:e,anchor:t,swipeTime:n,type:o,onChangeAnchor:i,onClose:a,onCancel:c,onConfirm:u}){const[l,f]=N.useState([]),[p,b]=N.useState([]),[_,R]=N.useState(!1),I=N.useRef(null),{dateList:B,setSelectYear:X,setSelectMonth:D,updateDateSelect:H,getDateAnchors:W}=eo(),{timeList:v,getTimeAnchors:te}=Jn(),Z=o==="date",K=o==="time",re=N.useMemo(()=>Z?W(t):K?te(t):it(t)?t:[t],[Z,K,t,_]);N.useEffect(()=>{pe()},[r,o,B]),N.useEffect(()=>{e&&(ie(),se(),ae())},[e]),N.useEffect(()=>{ie()},[l]),N.useEffect(()=>{ae()},[re]);function ie(){l.forEach((T,k)=>ne(k)),Q()}function pe(){const T={date:B,time:v},E=it(r[0])?[...r]:[r],x=o?T[o]:E;f(x)}function se(){!Z&&!K||(Z&&H(re),!_t(t)&&R(!_))}function ne(T){var x;const k=(x=I.current)==null?void 0:x.children[T];if(!k)return;const E=p[T];if(E)E.refresh();else{const S=We(k,{wheel:{selectedIndex:0,rotate:25},swipeTime:n});b(w=>{const O=[...w];return O[T]=S,O}),S.on("scrollEnd",()=>G(T,S))}}function G(T,k){if(Z){if(T===2)return;const E=k.getSelectedIndex(),x=B[T][E];T===0&&X(x),T===1&&D(x)}}function ae(){setTimeout(()=>{p.forEach((T,k)=>{const E=re[k];T.wheelTo(E??0)})})}function Q(){const T=l.length;if(p.length<=T)return;const k=p.splice(T);b(E=>E.slice(0,T)),k.forEach(E=>E.destroy())}function ce(){c==null||c(),de()}function ye(){p.some(x=>x.isInTransition)&&d();const{item:k,anchor:E}=g();u==null||u(k),i(E),de()}function de(){a()}function d(){p.forEach(T=>T.stop())}function g(){const{item:T,anchor:k}=p.reduce((E,x,S)=>{const w=x.getSelectedIndex(),O=l[S][w];return E.item.push(K?+O:O),E.anchor.push(Z?O:w),E},{item:[],anchor:[]});return T.length>1?{item:T,anchor:k}:{item:T[0],anchor:k[0]}}return{pickerData:l,wheelWrapper:I,cancel:ce,confirm:ye,closePicker:de}}const ro={cancelClass:"",confirmClass:"",titleClass:"",cancelColor:"#999",confirmColor:"#42b983",titleColor:"",cancelText:"Cancel",confirmText:"Confirm",titleText:""},no=[],oo={};function io({data:r=no,isShowPicker:e,options:t=oo,anchor:n,showKey:o="",swipeTime:i=500,type:a="",onChangeAnchor:c,onClose:u,onCancel:l,onConfirm:f}){const p=N.useRef(null),b=N.useRef(null),{pickerData:_,wheelWrapper:R,cancel:I,confirm:B,closePicker:X}=to({data:r,isShowPicker:e,options:t,anchor:n,showKey:o,swipeTime:i,type:a,onClose:u,onChangeAnchor:c,onCancel:l,onConfirm:f}),D=N.useMemo(()=>({...ro,...t}),[t]),H=D.cancelColor,W=D.confirmColor,v=D.titleColor,te=N.useMemo(()=>it(o)?o:[o],[o]);function Z(K){p.current&&p.current.style.setProperty("display",K)}return V.jsxs("div",{children:[V.jsx(Ve,{in:e,classNames:"component-hook-picker-fade",timeout:300,nodeRef:b,unmountOnExit:!0,children:V.jsx("div",{ref:b,role:"presentation",className:"component-hook-picker-mask",onClick:X,onKeyDown:K=>{K.key==="Escape"&&X()}})}),V.jsx(Ve,{in:e,classNames:"component-hook-picker-slide",timeout:300,nodeRef:p,onEnter:()=>Z(""),onExited:()=>Z("none"),children:V.jsxs("div",{ref:p,className:"component-hook-picker",style:{display:"none"},children:[V.jsxs("div",{className:"component-hook-picker_title",children:[V.jsx("button",{className:`component-hook-picker_cancel ${D.cancelClass}`,style:{color:H},onClick:I,children:D.cancelText}),V.jsx("button",{className:`component-hook-picker_confirm ${D.confirmClass}`,style:{color:W},onClick:B,children:D.confirmText}),V.jsx("h4",{className:D.titleClass,style:{color:v},children:D.titleText})]}),V.jsxs("div",{className:"component-hook-picker_panel",children:[V.jsx("div",{className:"component-hook-picker_mask_top"}),V.jsx("div",{className:"component-hook-picker_mask_bottom"}),V.jsx("div",{ref:R,className:"component-hook-picker_wheel_wrapper",children:_.map((K,re)=>V.jsx("div",{className:"component-hook-picker_wheel",children:V.jsx("ul",{className:"component-hook-picker_wheel_scroll",children:K.map((ie,pe)=>{const se=te[re]&&Kn(ie)?ie[te[re]]:ie;return!Vn(se)&&!Sr(se)?null:V.jsx("li",{className:"component-hook-picker_wheel_item",children:se},pe)})})},re))})]})]})})]})}return io});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@component-hook/picker",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Picker component with vue3 and react",
5
5
  "license": "MIT",
6
6
  "type": "module",