copilot-for-dressing / assets /about.14743d22.js
ryesun's picture
资源
6b32816
raw
history blame contribute delete
No virus
137 kB
import{r as O,b as Ia,R as le,j,c as Ra,a as Bt,s as za,o as Na}from"./index.bd3517ca.js";import{e as Es,f as Ca,t as La,v as Ma,x as Oa,y as Gl,z as kr,m as Xi,q as Aa,j as Zi,w as ws,l as gr,S as Da,n as Ua,A as Ss,o as Ze,p as xs,C as _e,I as Ba,s as Ha,B as ql}from"./index.c5d86e93.js";function ja(l){var r=O.exports.useRef(0),i=Es(O.exports.useState(l),2),a=i[0],f=i[1],v=O.exports.useCallback(function(_){cancelAnimationFrame(r.current),r.current=requestAnimationFrame(function(){f(_)})},[]);return Ca(function(){cancelAnimationFrame(r.current)}),[a,v]}var Wa=function(){var l=O.exports.useRef(!1);return O.exports.useEffect(function(){return l.current=!1,function(){l.current=!0}},[]),l},Fa=Wa,ks=function(){if(typeof Map!="undefined")return Map;function l(r,i){var a=-1;return r.some(function(f,v){return f[0]===i?(a=v,!0):!1}),a}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(i){var a=l(this.__entries__,i),f=this.__entries__[a];return f&&f[1]},r.prototype.set=function(i,a){var f=l(this.__entries__,i);~f?this.__entries__[f][1]=a:this.__entries__.push([i,a])},r.prototype.delete=function(i){var a=this.__entries__,f=l(a,i);~f&&a.splice(f,1)},r.prototype.has=function(i){return!!~l(this.__entries__,i)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(i,a){a===void 0&&(a=null);for(var f=0,v=this.__entries__;f<v.length;f++){var _=v[f];i.call(a,_[1],_[0])}},r}()}(),Gi=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,yr=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Va=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(yr):function(l){return setTimeout(function(){return l(Date.now())},1e3/60)}}(),Qa=2;function Ya(l,r){var i=!1,a=!1,f=0;function v(){i&&(i=!1,l()),a&&h()}function _(){Va(v)}function h(){var k=Date.now();if(i){if(k-f<Qa)return;a=!0}else i=!0,a=!1,setTimeout(_,r);f=k}return h}var Ga=20,qa=["top","right","bottom","left","width","height","size","weight"],Ka=typeof MutationObserver!="undefined",Xa=function(){function l(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ya(this.refresh.bind(this),Ga)}return l.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},l.prototype.removeObserver=function(r){var i=this.observers_,a=i.indexOf(r);~a&&i.splice(a,1),!i.length&&this.connected_&&this.disconnect_()},l.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},l.prototype.updateObservers_=function(){var r=this.observers_.filter(function(i){return i.gatherActive(),i.hasActive()});return r.forEach(function(i){return i.broadcastActive()}),r.length>0},l.prototype.connect_=function(){!Gi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ka?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},l.prototype.disconnect_=function(){!Gi||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},l.prototype.onTransitionEnd_=function(r){var i=r.propertyName,a=i===void 0?"":i,f=qa.some(function(v){return!!~a.indexOf(v)});f&&this.refresh()},l.getInstance=function(){return this.instance_||(this.instance_=new l),this.instance_},l.instance_=null,l}(),Ps=function(l,r){for(var i=0,a=Object.keys(r);i<a.length;i++){var f=a[i];Object.defineProperty(l,f,{value:r[f],enumerable:!1,writable:!1,configurable:!0})}return l},Ht=function(l){var r=l&&l.ownerDocument&&l.ownerDocument.defaultView;return r||yr},Ts=Pr(0,0,0,0);function _r(l){return parseFloat(l)||0}function Kl(l){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return r.reduce(function(a,f){var v=l["border-"+f+"-width"];return a+_r(v)},0)}function Za(l){for(var r=["top","right","bottom","left"],i={},a=0,f=r;a<f.length;a++){var v=f[a],_=l["padding-"+v];i[v]=_r(_)}return i}function Ja(l){var r=l.getBBox();return Pr(0,0,r.width,r.height)}function $a(l){var r=l.clientWidth,i=l.clientHeight;if(!r&&!i)return Ts;var a=Ht(l).getComputedStyle(l),f=Za(a),v=f.left+f.right,_=f.top+f.bottom,h=_r(a.width),k=_r(a.height);if(a.boxSizing==="border-box"&&(Math.round(h+v)!==r&&(h-=Kl(a,"left","right")+v),Math.round(k+_)!==i&&(k-=Kl(a,"top","bottom")+_)),!ec(l)){var w=Math.round(h+v)-r,E=Math.round(k+_)-i;Math.abs(w)!==1&&(h-=w),Math.abs(E)!==1&&(k-=E)}return Pr(f.left,f.top,h,k)}var ba=function(){return typeof SVGGraphicsElement!="undefined"?function(l){return l instanceof Ht(l).SVGGraphicsElement}:function(l){return l instanceof Ht(l).SVGElement&&typeof l.getBBox=="function"}}();function ec(l){return l===Ht(l).document.documentElement}function tc(l){return Gi?ba(l)?Ja(l):$a(l):Ts}function nc(l){var r=l.x,i=l.y,a=l.width,f=l.height,v=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,_=Object.create(v.prototype);return Ps(_,{x:r,y:i,width:a,height:f,top:i,right:r+a,bottom:f+i,left:r}),_}function Pr(l,r,i,a){return{x:l,y:r,width:i,height:a}}var rc=function(){function l(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Pr(0,0,0,0),this.target=r}return l.prototype.isActive=function(){var r=tc(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},l.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},l}(),ic=function(){function l(r,i){var a=nc(i);Ps(this,{target:r,contentRect:a})}return l}(),oc=function(){function l(r,i,a){if(this.activeObservations_=[],this.observations_=new ks,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=i,this.callbackCtx_=a}return l.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(r instanceof Ht(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(r)||(i.set(r,new rc(r)),this.controller_.addObserver(this),this.controller_.refresh())}},l.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(r instanceof Ht(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;!i.has(r)||(i.delete(r),i.size||this.controller_.removeObserver(this))}},l.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},l.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(i){i.isActive()&&r.activeObservations_.push(i)})},l.prototype.broadcastActive=function(){if(!!this.hasActive()){var r=this.callbackCtx_,i=this.activeObservations_.map(function(a){return new ic(a.target,a.broadcastRect())});this.callback_.call(r,i,r),this.clearActive()}},l.prototype.clearActive=function(){this.activeObservations_.splice(0)},l.prototype.hasActive=function(){return this.activeObservations_.length>0},l}(),Is=typeof WeakMap!="undefined"?new WeakMap:new ks,Rs=function(){function l(r){if(!(this instanceof l))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Xa.getInstance(),a=new oc(r,i,this);Is.set(this,a)}return l}();["observe","unobserve","disconnect"].forEach(function(l){Rs.prototype[l]=function(){var r;return(r=Is.get(this))[l].apply(r,arguments)}});var lc=function(){return typeof yr.ResizeObserver!="undefined"?yr.ResizeObserver:Rs}(),sc=La(O.exports.useLayoutEffect),uc=sc,ac=Ma?uc:Oa,cc=ac;function Xl(l){var r=Es(ja(function(){var f=Gl(l);return f?{width:f.clientWidth,height:f.clientHeight}:void 0}),2),i=r[0],a=r[1];return cc(function(){var f=Gl(l);if(!!f){var v=new lc(function(_){_.forEach(function(h){var k=h.target,w=k.clientWidth,E=k.clientHeight;a({width:w,height:E})})});return v.observe(f),function(){v.disconnect()}}},[],l),i}const Zl=10;function fc(l,r){return l>r&&l>Zl?"horizontal":r>l&&r>Zl?"vertical":""}function dc(){const l=O.exports.useRef(0),r=O.exports.useRef(0),i=O.exports.useRef(0),a=O.exports.useRef(0),f=O.exports.useRef(0),v=O.exports.useRef(0),_=O.exports.useRef(""),h=()=>_.current==="vertical",k=()=>_.current==="horizontal",w=()=>{i.current=0,a.current=0,f.current=0,v.current=0,_.current=""};return{move:R=>{const A=R.touches[0];i.current=A.clientX<0?0:A.clientX-l.current,a.current=A.clientY-r.current,f.current=Math.abs(i.current),v.current=Math.abs(a.current),_.current||(_.current=fc(f.current,v.current))},start:R=>{w(),l.current=R.touches[0].clientX,r.current=R.touches[0].clientY},reset:w,startX:l,startY:r,deltaX:i,deltaY:a,offsetX:f,offsetY:v,direction:_,isVertical:h,isHorizontal:k}}const pc=kr?window:void 0,hc=["scroll","auto","overlay"];function mc(l){return l.nodeType===1}function vc(l,r=pc){let i=l;for(;i&&i!==r&&mc(i);){if(i===document.body)return r;const{overflowY:a}=window.getComputedStyle(i);if(hc.includes(a)&&i.scrollHeight>i.clientHeight)return i;i=i.parentNode}return r}let zs=!1;if(kr)try{const l={};Object.defineProperty(l,"passive",{get(){zs=!0}}),window.addEventListener("test-passive",null,l)}catch{}let vn=0;const Jl="adm-overflow-hidden";function gc(l){let r=l==null?void 0:l.parentElement;for(;r;){if(r.clientHeight<r.scrollHeight)return r;r=r.parentElement}return null}function yc(l,r){const i=dc(),a=_=>{i.move(_);const h=i.deltaY.current>0?"10":"01",k=vc(_.target,l.current);if(!k)return;if(r==="strict"){const A=gc(_.target);if(A===document.body||A===document.documentElement){_.preventDefault();return}}const{scrollHeight:w,offsetHeight:E,scrollTop:S}=k;let R="11";S===0?R=E>=w?"00":"01":S+E>=w&&(R="10"),R!=="11"&&i.isVertical()&&!(parseInt(R,2)&parseInt(h,2))&&_.cancelable&&_.preventDefault()},f=()=>{document.addEventListener("touchstart",i.start),document.addEventListener("touchmove",a,zs?{passive:!1}:!1),vn||document.body.classList.add(Jl),vn++},v=()=>{vn&&(document.removeEventListener("touchstart",i.start),document.removeEventListener("touchmove",a),vn--,vn||document.body.classList.remove(Jl))};O.exports.useEffect(()=>{if(r)return f(),()=>{v()}},[r])}function _c(l){return(typeof l=="function"?l():l)||document.body}function Ji(l,r){if(kr&&l){const i=_c(l);return Ia.exports.createPortal(r,i)}return r}const Ec={click:"onClick"};function wc(l,r){const i=Object.assign({},r.props);for(const a of l){const f=Ec[a];i[f]=function(v){var _,h;v.stopPropagation(),(h=(_=r.props)[f])===null||h===void 0||h.call(_,v)}}return le.cloneElement(r,i)}const ji="adm-mask",Sc={default:.55,thin:.35,thick:.75},xc={black:"0, 0, 0",white:"255, 255, 255"},kc={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Pc=l=>{const r=Xi(kc,l),{locale:i}=Aa(),a=O.exports.useRef(null);yc(a,r.visible&&r.disableBodyScroll);const f=O.exports.useMemo(()=>{var E;const S=(E=Sc[r.opacity])!==null&&E!==void 0?E:r.opacity,R=xc[r.color];return R?`rgba(${R}, ${S})`:r.color},[r.color,r.opacity]),[v,_]=O.exports.useState(r.visible),h=Fa(),{opacity:k}=Zi({opacity:r.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{_(!0)},onRest:()=>{var E,S;h.current||(_(r.visible),r.visible?(E=r.afterShow)===null||E===void 0||E.call(r):(S=r.afterClose)===null||S===void 0||S.call(r))}}),w=wc(r.stopPropagation,ws(r,le.createElement(gr.div,{className:ji,ref:a,style:Object.assign(Object.assign({},r.style),{background:f,opacity:k,display:v?void 0:"none"}),onClick:E=>{var S;E.target===E.currentTarget&&((S=r.onMaskClick)===null||S===void 0||S.call(r,E))}},r.onMaskClick&&j("div",{className:`${ji}-aria-button`,role:"button","aria-label":i.Mask.name,onClick:r.onMaskClick}),j("div",{className:`${ji}-content`,children:r.children}))));return j(Da,{active:v,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose,children:Ji(r.getContainer,w)})};var Ns=Pc;const $l="adm-safe-area",Tc=l=>ws(l,le.createElement("div",{className:Ua($l,`${$l}-position-${l.position}`)}));var Cs=Tc;const Er=Object.assign({},Ra),{version:Ic,render:Rc,unmountComponentAtNode:zc}=Er;let Tr;try{Number((Ic||"").split(".")[0])>=18&&Er.createRoot&&(Tr=Er.createRoot)}catch{}function bl(l){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:r}=Er;r&&typeof r=="object"&&(r.usingClientEntryPoint=l)}const wr="__antd_mobile_root__";function Nc(l,r){Rc(l,r)}function Cc(l,r){bl(!0);const i=r[wr]||Tr(r);bl(!1),i.render(l),r[wr]=i}function Lc(l,r){if(Tr){Cc(l,r);return}Nc(l,r)}function Mc(l){return zc(l)}function Oc(l){return Ss(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var r;(r=l[wr])===null||r===void 0||r.unmount(),delete l[wr]})})}function Ac(l){return Tr?Oc(l):Mc(l)}function Dc(l){const r=document.createElement("div");document.body.appendChild(r);function i(){Ac(r)&&r.parentNode&&r.parentNode.removeChild(r)}return Lc(l,r),i}function Ls(l){const r=le.forwardRef((f,v)=>{const[_,h]=O.exports.useState(!1),k=O.exports.useRef(!1),[w,E]=O.exports.useState(l),S=O.exports.useRef(0);O.exports.useEffect(()=>{k.current?A():h(!0)},[]);function R(){var D,B;k.current=!0,h(!1),(B=(D=w.props).onClose)===null||B===void 0||B.call(D)}function A(){var D,B;a(),(B=(D=w.props).afterClose)===null||B===void 0||B.call(D)}return O.exports.useImperativeHandle(v,()=>({close:R,replace:D=>{var B,ee;S.current++,(ee=(B=w.props).afterClose)===null||ee===void 0||ee.call(B),E(D)}})),le.cloneElement(w,Object.assign(Object.assign({},w.props),{key:S.current,visible:_,onClose:R,afterClose:A}))}),i=le.createRef(),a=Dc(j(r,{ref:i}));return{close:()=>Ss(this,void 0,void 0,function*(){var f;i.current?(f=i.current)===null||f===void 0||f.close():a()}),replace:f=>{var v;(v=i.current)===null||v===void 0||v.replace(f)}}}function Uc(l,r,i){return Math.max(r,Math.min(l,i))}const b={toVector(l,r){return l===void 0&&(l=r),Array.isArray(l)?l:[l,l]},add(l,r){return[l[0]+r[0],l[1]+r[1]]},sub(l,r){return[l[0]-r[0],l[1]-r[1]]},addTo(l,r){l[0]+=r[0],l[1]+=r[1]},subTo(l,r){l[0]-=r[0],l[1]-=r[1]}};function es(l,r,i){return r===0||Math.abs(r)===1/0?Math.pow(l,i*5):l*r*i/(r+i*l)}function ts(l,r,i,a=.15){return a===0?Uc(l,r,i):l<r?-es(r-l,i-r,a)+r:l>i?+es(l-i,i-r,a)+i:l}function Bc(l,[r,i],[a,f]){const[[v,_],[h,k]]=l;return[ts(r,v,_,a),ts(i,h,k,f)]}function fe(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function ns(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(l);r&&(a=a.filter(function(f){return Object.getOwnPropertyDescriptor(l,f).enumerable})),i.push.apply(i,a)}return i}function q(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?ns(Object(i),!0).forEach(function(a){fe(l,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):ns(Object(i)).forEach(function(a){Object.defineProperty(l,a,Object.getOwnPropertyDescriptor(i,a))})}return l}const Ms={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function rs(l){return l?l[0].toUpperCase()+l.slice(1):""}const Hc=["enter","leave"];function jc(l=!1,r){return l&&!Hc.includes(r)}function Wc(l,r="",i=!1){const a=Ms[l],f=a&&a[r]||r;return"on"+rs(l)+rs(f)+(jc(i,f)?"Capture":"")}const Fc=["gotpointercapture","lostpointercapture"];function Vc(l){let r=l.substring(2).toLowerCase();const i=!!~r.indexOf("passive");i&&(r=r.replace("passive",""));const a=Fc.includes(r)?"capturecapture":"capture",f=!!~r.indexOf(a);return f&&(r=r.replace("capture","")),{device:r,capture:f,passive:i}}function Qc(l,r=""){const i=Ms[l],a=i&&i[r]||r;return l+a}function Ir(l){return"touches"in l}function Os(l){return Ir(l)?"touch":"pointerType"in l?l.pointerType:"mouse"}function Yc(l){return Array.from(l.touches).filter(r=>{var i,a;return r.target===l.currentTarget||((i=l.currentTarget)===null||i===void 0||(a=i.contains)===null||a===void 0?void 0:a.call(i,r.target))})}function Gc(l){return l.type==="touchend"||l.type==="touchcancel"?l.changedTouches:l.targetTouches}function As(l){return Ir(l)?Gc(l)[0]:l}function qi(l,r){const i=r.clientX-l.clientX,a=r.clientY-l.clientY,f=(r.clientX+l.clientX)/2,v=(r.clientY+l.clientY)/2,_=Math.hypot(i,a);return{angle:-(Math.atan2(i,a)*180)/Math.PI,distance:_,origin:[f,v]}}function qc(l){return Yc(l).map(r=>r.identifier)}function is(l,r){const[i,a]=Array.from(l.touches).filter(f=>r.includes(f.identifier));return qi(i,a)}function Wi(l){const r=As(l);return Ir(l)?r.identifier:r.pointerId}function os(l){const r=As(l);return[r.clientX,r.clientY]}const ls=40,ss=800;function Kc(l){let{deltaX:r,deltaY:i,deltaMode:a}=l;return a===1?(r*=ls,i*=ls):a===2&&(r*=ss,i*=ss),[r,i]}function Xc(l){const r={};if("buttons"in l&&(r.buttons=l.buttons),"shiftKey"in l){const{shiftKey:i,altKey:a,metaKey:f,ctrlKey:v}=l;Object.assign(r,{shiftKey:i,altKey:a,metaKey:f,ctrlKey:v})}return r}function Sr(l,...r){return typeof l=="function"?l(...r):l}function Zc(){}function Jc(...l){return l.length===0?Zc:l.length===1?l[0]:function(){let r;for(const i of l)r=i.apply(this,arguments)||r;return r}}function us(l,r){return Object.assign({},r,l||{})}const $c=32;class Ds{constructor(r,i,a){this.ctrl=r,this.args=i,this.key=a,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:i,ingKey:a,args:f}=this;i[a]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=f,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const i=this.state,a=this.config;i._active||(this.reset(),this.computeInitial(),i._active=!0,i.target=r.target,i.currentTarget=r.currentTarget,i.lastOffset=a.from?Sr(a.from,i):i.offset,i.offset=i.lastOffset),i.startTime=i.timeStamp=r.timeStamp}computeValues(r){const i=this.state;i._values=r,i.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:i,config:a,shared:f}=this;i.args=this.args;let v=0;if(r&&(i.event=r,a.preventDefault&&r.cancelable&&i.event.preventDefault(),i.type=r.type,f.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,f.locked=!!document.pointerLockElement,Object.assign(f,Xc(r)),f.down=f.pressed=f.buttons%2===1||f.touches>0,v=r.timeStamp-i.timeStamp,i.timeStamp=r.timeStamp,i.elapsedTime=i.timeStamp-i.startTime),i._active){const ne=i._delta.map(Math.abs);b.addTo(i._distance,ne)}this.axisIntent&&this.axisIntent(r);const[_,h]=i._movement,[k,w]=a.threshold,{_step:E,values:S}=i;if(a.hasCustomTransform?(E[0]===!1&&(E[0]=Math.abs(_)>=k&&S[0]),E[1]===!1&&(E[1]=Math.abs(h)>=w&&S[1])):(E[0]===!1&&(E[0]=Math.abs(_)>=k&&Math.sign(_)*k),E[1]===!1&&(E[1]=Math.abs(h)>=w&&Math.sign(h)*w)),i.intentional=E[0]!==!1||E[1]!==!1,!i.intentional)return;const R=[0,0];if(a.hasCustomTransform){const[ne,Ce]=S;R[0]=E[0]!==!1?ne-E[0]:0,R[1]=E[1]!==!1?Ce-E[1]:0}else R[0]=E[0]!==!1?_-E[0]:0,R[1]=E[1]!==!1?h-E[1]:0;this.restrictToAxis&&!i._blocked&&this.restrictToAxis(R);const A=i.offset,D=i._active&&!i._blocked||i.active;D&&(i.first=i._active&&!i.active,i.last=!i._active&&i.active,i.active=f[this.ingKey]=i._active,r&&(i.first&&("bounds"in a&&(i._bounds=Sr(a.bounds,i)),this.setup&&this.setup()),i.movement=R,this.computeOffset()));const[B,ee]=i.offset,[[Ee,pe],[se,te]]=i._bounds;i.overflow=[B<Ee?-1:B>pe?1:0,ee<se?-1:ee>te?1:0],i._movementBound[0]=i.overflow[0]?i._movementBound[0]===!1?i._movement[0]:i._movementBound[0]:!1,i._movementBound[1]=i.overflow[1]?i._movementBound[1]===!1?i._movement[1]:i._movementBound[1]:!1;const Se=i._active?a.rubberband||[0,0]:[0,0];if(i.offset=Bc(i._bounds,i.offset,Se),i.delta=b.sub(i.offset,A),this.computeMovement(),D&&(!i.last||v>$c)){i.delta=b.sub(i.offset,A);const ne=i.delta.map(Math.abs);b.addTo(i.distance,ne),i.direction=i.delta.map(Math.sign),i._direction=i._delta.map(Math.sign),!i.first&&v>0&&(i.velocity=[ne[0]/v,ne[1]/v])}}emit(){const r=this.state,i=this.shared,a=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!a.triggerAllEvents)return;const f=this.handler(q(q(q({},i),r),{},{[this.aliasKey]:r.values}));f!==void 0&&(r.memo=f)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function bc([l,r],i){const a=Math.abs(l),f=Math.abs(r);if(a>f&&a>i)return"x";if(f>a&&f>i)return"y"}class ef extends Ds{constructor(...r){super(...r),fe(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=b.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=b.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const i=this.state,a=this.config;if(!i.axis&&r){const f=typeof a.axisThreshold=="object"?a.axisThreshold[Os(r)]:a.axisThreshold;i.axis=bc(i._movement,f)}i._blocked=(a.lockDirection||!!a.axis)&&!i.axis||!!a.axis&&a.axis!==i.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const tf=l=>l,as=.15,Us={enabled(l=!0){return l},eventOptions(l,r,i){return q(q({},i.shared.eventOptions),l)},preventDefault(l=!1){return l},triggerAllEvents(l=!1){return l},rubberband(l=0){switch(l){case!0:return[as,as];case!1:return[0,0];default:return b.toVector(l)}},from(l){if(typeof l=="function")return l;if(l!=null)return b.toVector(l)},transform(l,r,i){const a=l||i.shared.transform;return this.hasCustomTransform=!!a,a||tf},threshold(l){return b.toVector(l,0)}},nf=0,wn=q(q({},Us),{},{axis(l,r,{axis:i}){if(this.lockDirection=i==="lock",!this.lockDirection)return i},axisThreshold(l=nf){return l},bounds(l={}){if(typeof l=="function")return v=>wn.bounds(l(v));if("current"in l)return()=>l.current;if(typeof HTMLElement=="function"&&l instanceof HTMLElement)return l;const{left:r=-1/0,right:i=1/0,top:a=-1/0,bottom:f=1/0}=l;return[[r,i],[a,f]]}}),mr=10,cs={ArrowRight:(l=1)=>[mr*l,0],ArrowLeft:(l=1)=>[-mr*l,0],ArrowUp:(l=1)=>[0,-mr*l],ArrowDown:(l=1)=>[0,mr*l]};class rf extends ef{constructor(...r){super(...r),fe(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const i=r._bounds.getBoundingClientRect(),a=r.currentTarget.getBoundingClientRect(),f={left:i.left-a.left+r.offset[0],right:i.right-a.right+r.offset[0],top:i.top-a.top+r.offset[1],bottom:i.bottom-a.bottom+r.offset[1]};r._bounds=wn.bounds(f)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const i=this.config,a=this.state;if(r.buttons!=null&&(Array.isArray(i.pointerButtons)?!i.pointerButtons.includes(r.buttons):i.pointerButtons!==-1&&i.pointerButtons!==r.buttons))return;const f=this.ctrl.setEventIds(r);i.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(f&&f.size>1&&a._pointerActive)&&(this.start(r),this.setupPointer(r),a._pointerId=Wi(r),a._pointerActive=!0,this.computeValues(os(r)),this.computeInitial(),i.preventScrollAxis&&Os(r)!=="mouse"?(a._active=!1,this.setupScrollPrevention(r)):i.delay>0?(this.setupDelayTrigger(r),i.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const i=this.state;i._active=!0,i._preventScroll=!0,i._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const i=this.state,a=this.config;if(!i._pointerActive||i.type===r.type&&r.timeStamp===i.timeStamp)return;const f=Wi(r);if(i._pointerId!==void 0&&f!==i._pointerId)return;const v=os(r);if(document.pointerLockElement===r.target?i._delta=[r.movementX,r.movementY]:(i._delta=b.sub(v,i._values),this.computeValues(v)),b.addTo(i._movement,i._delta),this.compute(r),i._delayed&&i.intentional){this.timeoutStore.remove("dragDelay"),i.active=!1,this.startPointerDrag(r);return}if(a.preventScrollAxis&&!i._preventScroll)if(i.axis)if(i.axis===a.preventScrollAxis||a.preventScrollAxis==="xy"){i._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{}const i=this.state,a=this.config;if(!i._active||!i._pointerActive)return;const f=Wi(r);if(i._pointerId!==void 0&&f!==i._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[v,_]=i._distance;if(i.tap=v<=a.tapsThreshold&&_<=a.tapsThreshold,i.tap&&a.filterTaps)i._force=!0;else{const[h,k]=i.direction,[w,E]=i.velocity,[S,R]=i.movement,[A,D]=a.swipe.velocity,[B,ee]=a.swipe.distance,Ee=a.swipe.duration;i.elapsedTime<Ee&&(Math.abs(w)>A&&Math.abs(S)>B&&(i.swipe[0]=h),Math.abs(E)>D&&Math.abs(R)>ee&&(i.swipe[1]=k))}this.emit()}pointerClick(r){!this.state.tap&&r.detail>0&&(r.preventDefault(),r.stopPropagation())}setupPointer(r){const i=this.config,a=i.device;i.pointerLock&&r.currentTarget.requestPointerLock(),i.pointerCapture||(this.eventStore.add(this.sharedConfig.window,a,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,a,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,a,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,of(r);const i=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",i),this.eventStore.add(this.sharedConfig.window,"touch","cancel",i),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const i=cs[r.key];if(i){const a=this.state,f=r.shiftKey?10:r.altKey?.1:1;this.start(r),a._delta=i(f),a._keyboardActive=!0,b.addTo(a._movement,a._delta),this.compute(r),this.emit()}}keyUp(r){r.key in cs&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const i=this.config.device;r(i,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(i,"change",this.pointerMove.bind(this)),r(i,"end",this.pointerUp.bind(this)),r(i,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function of(l){"persist"in l&&typeof l.persist=="function"&&l.persist()}const Sn=typeof window!="undefined"&&window.document&&window.document.createElement;function lf(){return Sn&&"ontouchstart"in window}function fs(){return lf()||Sn&&window.navigator.maxTouchPoints>1}function sf(){return Sn&&"onpointerdown"in window}function uf(){return Sn&&"exitPointerLock"in window.document}function af(){try{return"constructor"in GestureEvent}catch{return!1}}const Ne={isBrowser:Sn,gesture:af(),touch:fs(),touchscreen:fs(),pointer:sf(),pointerLock:uf()},cf=250,ff=180,df=.5,pf=50,hf=250,ds={mouse:0,touch:0,pen:8},mf=q(q({},wn),{},{device(l,r,{pointer:{touch:i=!1,lock:a=!1,mouse:f=!1}={}}){return this.pointerLock=a&&Ne.pointerLock,Ne.touch&&i?"touch":this.pointerLock?"mouse":Ne.pointer&&!f?"pointer":Ne.touch?"touch":"mouse"},preventScrollAxis(l,r,{preventScroll:i}){if(this.preventScrollDelay=typeof i=="number"?i:i||i===void 0&&l?cf:void 0,!(!Ne.touchscreen||i===!1))return l||(i!==void 0?"y":void 0)},pointerCapture(l,r,{pointer:{capture:i=!0,buttons:a=1}={}}){return this.pointerButtons=a,!this.pointerLock&&this.device==="pointer"&&i},keys(l=!0){return l},threshold(l,r,{filterTaps:i=!1,tapsThreshold:a=3,axis:f=void 0}){const v=b.toVector(l,i?a:f?1:0);return this.filterTaps=i,this.tapsThreshold=a,v},swipe({velocity:l=df,distance:r=pf,duration:i=hf}={}){return{velocity:this.transform(b.toVector(l)),distance:this.transform(b.toVector(r)),duration:i}},delay(l=0){switch(l){case!0:return ff;case!1:return 0;default:return l}},axisThreshold(l){return l?q(q({},ds),l):ds}}),vf=30,gf=100;class yf extends Ds{constructor(...r){super(...r),fe(this,"ingKey","pinching"),fe(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const r=this.state;r._touchIds=[],r.canceled=!1,r.cancel=this.cancel.bind(this),r.turns=0}computeOffset(){const{type:r,movement:i,lastOffset:a}=this.state;r==="wheel"?this.state.offset=b.add(i,a):this.state.offset=[(1+i[0])*a[0],i[1]+a[1]]}computeMovement(){const{offset:r,lastOffset:i}=this.state;this.state.movement=[r[0]/i[0],r[1]-i[1]]}axisIntent(){const r=this.state,[i,a]=r._movement;if(!r.axis){const f=Math.abs(i)*vf-Math.abs(a);f<0?r.axis="angle":f>0&&(r.axis="scale")}}restrictToAxis(r){this.config.lockDirection&&(this.state.axis==="scale"?r[1]=0:this.state.axis==="angle"&&(r[0]=0))}cancel(){const r=this.state;r.canceled||setTimeout(()=>{r.canceled=!0,r._active=!1,this.compute(),this.emit()},0)}touchStart(r){this.ctrl.setEventIds(r);const i=this.state,a=this.ctrl.touchIds;if(i._active&&i._touchIds.every(v=>a.has(v))||a.size<2)return;this.start(r),i._touchIds=Array.from(a).slice(0,2);const f=is(r,i._touchIds);this.pinchStart(r,f)}pointerStart(r){if(r.buttons!=null&&r.buttons%2!==1)return;this.ctrl.setEventIds(r),r.target.setPointerCapture(r.pointerId);const i=this.state,a=i._pointerEvents,f=this.ctrl.pointerIds;if(i._active&&Array.from(a.keys()).every(_=>f.has(_))||(a.size<2&&a.set(r.pointerId,r),i._pointerEvents.size<2))return;this.start(r);const v=qi(...Array.from(a.values()));this.pinchStart(r,v)}pinchStart(r,i){const a=this.state;a.origin=i.origin,this.computeValues([i.distance,i.angle]),this.computeInitial(),this.compute(r),this.emit()}touchMove(r){if(!this.state._active)return;const i=is(r,this.state._touchIds);this.pinchMove(r,i)}pointerMove(r){const i=this.state._pointerEvents;if(i.has(r.pointerId)&&i.set(r.pointerId,r),!this.state._active)return;const a=qi(...Array.from(i.values()));this.pinchMove(r,a)}pinchMove(r,i){const a=this.state,f=a._values[1],v=i.angle-f;let _=0;Math.abs(v)>270&&(_+=Math.sign(v)),this.computeValues([i.distance,i.angle-360*_]),a.origin=i.origin,a.turns=_,a._movement=[a._values[0]/a._initial[0]-1,a._values[1]-a._initial[1]],this.compute(r),this.emit()}touchEnd(r){this.ctrl.setEventIds(r),!!this.state._active&&this.state._touchIds.some(i=>!this.ctrl.touchIds.has(i))&&(this.state._active=!1,this.compute(r),this.emit())}pointerEnd(r){const i=this.state;this.ctrl.setEventIds(r);try{r.target.releasePointerCapture(r.pointerId)}catch{}i._pointerEvents.has(r.pointerId)&&i._pointerEvents.delete(r.pointerId),!!i._active&&i._pointerEvents.size<2&&(i._active=!1,this.compute(r),this.emit())}gestureStart(r){r.cancelable&&r.preventDefault();const i=this.state;i._active||(this.start(r),this.computeValues([r.scale,r.rotation]),i.origin=[r.clientX,r.clientY],this.compute(r),this.emit())}gestureMove(r){if(r.cancelable&&r.preventDefault(),!this.state._active)return;const i=this.state;this.computeValues([r.scale,r.rotation]),i.origin=[r.clientX,r.clientY];const a=i._movement;i._movement=[r.scale-1,r.rotation],i._delta=b.sub(i._movement,a),this.compute(r),this.emit()}gestureEnd(r){!this.state._active||(this.state._active=!1,this.compute(r),this.emit())}wheel(r){const i=this.config.modifierKey;i&&!r[i]||(this.state._active?this.wheelChange(r):this.wheelStart(r),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(r){this.start(r),this.wheelChange(r)}wheelChange(r){"uv"in r||r.cancelable&&r.preventDefault();const a=this.state;a._delta=[-Kc(r)[1]/gf*a.offset[0],0],b.addTo(a._movement,a._delta),this.state.origin=[r.clientX,r.clientY],this.compute(r),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(r){const i=this.config.device;i&&(r(i,"start",this[i+"Start"].bind(this)),r(i,"change",this[i+"Move"].bind(this)),r(i,"end",this[i+"End"].bind(this)),r(i,"cancel",this[i+"End"].bind(this))),r("wheel","",this.wheel.bind(this),{passive:!1})}}const _f=q(q({},Us),{},{device(l,r,{shared:i,pointer:{touch:a=!1}={}}){if(i.target&&!Ne.touch&&Ne.gesture)return"gesture";if(Ne.touch&&a)return"touch";if(Ne.touchscreen){if(Ne.pointer)return"pointer";if(Ne.touch)return"touch"}},bounds(l,r,{scaleBounds:i={},angleBounds:a={}}){const f=_=>{const h=us(Sr(i,_),{min:-1/0,max:1/0});return[h.min,h.max]},v=_=>{const h=us(Sr(a,_),{min:-1/0,max:1/0});return[h.min,h.max]};return typeof i!="function"&&typeof a!="function"?[f(),v()]:_=>[f(_),v(_)]},threshold(l,r,i){return this.lockDirection=i.axis==="lock",b.toVector(l,this.lockDirection?[.1,3]:0)},modifierKey(l){return l===void 0?"ctrlKey":l}});q(q({},wn),{},{mouseOnly:(l=!0)=>l});q(q({},wn),{},{mouseOnly:(l=!0)=>l});const $i=new Map,Ki=new Map;function Bs(l){$i.set(l.key,l.engine),Ki.set(l.key,l.resolver)}const Hs={key:"drag",engine:rf,resolver:mf},Ef={key:"pinch",engine:yf,resolver:_f};function wf(l,r){if(l==null)return{};var i={},a=Object.keys(l),f,v;for(v=0;v<a.length;v++)f=a[v],!(r.indexOf(f)>=0)&&(i[f]=l[f]);return i}function Sf(l,r){if(l==null)return{};var i=wf(l,r),a,f;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(f=0;f<v.length;f++)a=v[f],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(l,a)||(i[a]=l[a]))}return i}const xf={target(l){if(l)return()=>"current"in l?l.current:l},enabled(l=!0){return l},window(l=Ne.isBrowser?window:void 0){return l},eventOptions({passive:l=!0,capture:r=!1}={}){return{passive:l,capture:r}},transform(l){return l}},kf=["target","eventOptions","window","enabled","transform"];function vr(l={},r){const i={};for(const[a,f]of Object.entries(r))switch(typeof f){case"function":i[a]=f.call(i,l[a],a,l);break;case"object":i[a]=vr(l[a],f);break;case"boolean":f&&(i[a]=l[a]);break}return i}function Pf(l,r,i={}){const a=l,{target:f,eventOptions:v,window:_,enabled:h,transform:k}=a,w=Sf(a,kf);if(i.shared=vr({target:f,eventOptions:v,window:_,enabled:h,transform:k},xf),r){const E=Ki.get(r);i[r]=vr(q({shared:i.shared},w),E)}else for(const E in w){const S=Ki.get(E);S&&(i[E]=vr(q({shared:i.shared},w[E]),S))}return i}class js{constructor(r,i){fe(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=i}add(r,i,a,f,v){const _=this._listeners,h=Qc(i,a),k=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},w=q(q({},k),v);r.addEventListener(h,f,w);const E=()=>{r.removeEventListener(h,f,w),_.delete(E)};return _.add(E),E}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class Tf{constructor(){fe(this,"_timeouts",new Map)}add(r,i,a=140,...f){this.remove(r),this._timeouts.set(r,window.setTimeout(i,a,...f))}remove(r){const i=this._timeouts.get(r);i&&window.clearTimeout(i)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}class If{constructor(r){fe(this,"gestures",new Set),fe(this,"_targetEventStore",new js(this)),fe(this,"gestureEventStores",{}),fe(this,"gestureTimeoutStores",{}),fe(this,"handlers",{}),fe(this,"config",{}),fe(this,"pointerIds",new Set),fe(this,"touchIds",new Set),fe(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Rf(this,r)}setEventIds(r){if(Ir(r))return this.touchIds=new Set(qc(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,i){this.handlers=r,this.nativeHandlers=i}applyConfig(r,i){this.config=Pf(r,i,this.config)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const i=this.config.shared,a={};let f;if(!(i.target&&(f=i.target(),!f))){if(i.enabled){for(const _ of this.gestures){const h=this.config[_],k=ps(a,h.eventOptions,!!f);if(h.enabled){const w=$i.get(_);new w(this,r,_).bind(k)}}const v=ps(a,i.eventOptions,!!f);for(const _ in this.nativeHandlers)v(_,"",h=>this.nativeHandlers[_](q(q({},this.state.shared),{},{event:h,args:r})),void 0,!0)}for(const v in a)a[v]=Jc(...a[v]);if(!f)return a;for(const v in a){const{device:_,capture:h,passive:k}=Vc(v);this._targetEventStore.add(f,_,"",a[v],{capture:h,passive:k})}}}}function At(l,r){l.gestures.add(r),l.gestureEventStores[r]=new js(l,r),l.gestureTimeoutStores[r]=new Tf}function Rf(l,r){r.drag&&At(l,"drag"),r.wheel&&At(l,"wheel"),r.scroll&&At(l,"scroll"),r.move&&At(l,"move"),r.pinch&&At(l,"pinch"),r.hover&&At(l,"hover")}const ps=(l,r,i)=>(a,f,v,_={},h=!1)=>{var k,w;const E=(k=_.capture)!==null&&k!==void 0?k:r.capture,S=(w=_.passive)!==null&&w!==void 0?w:r.passive;let R=h?a:Wc(a,f,E);i&&S&&(R+="Passive"),l[R]=l[R]||[],l[R].push(v)},zf=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function Nf(l){const r={},i={},a=new Set;for(let f in l)zf.test(f)?(a.add(RegExp.lastMatch),i[f]=l[f]):r[f]=l[f];return[i,r,a]}function Dt(l,r,i,a,f,v){if(!l.has(i)||!$i.has(a))return;const _=i+"Start",h=i+"End",k=w=>{let E;return w.first&&_ in r&&r[_](w),i in r&&(E=r[i](w)),w.last&&h in r&&r[h](w),E};f[a]=k,v[a]=v[a]||{}}function Cf(l,r){const[i,a,f]=Nf(l),v={};return Dt(f,i,"onDrag","drag",v,r),Dt(f,i,"onWheel","wheel",v,r),Dt(f,i,"onScroll","scroll",v,r),Dt(f,i,"onPinch","pinch",v,r),Dt(f,i,"onMove","move",v,r),Dt(f,i,"onHover","hover",v,r),{handlers:v,config:r,nativeHandlers:a}}function Ws(l,r={},i,a){const f=le.useMemo(()=>new If(l),[]);if(f.applyHandlers(l,a),f.applyConfig(r,i),le.useEffect(f.effect.bind(f)),le.useEffect(()=>f.clean.bind(f),[]),r.target===void 0)return f.bind.bind(f)}function Lf(l,r){return Bs(Hs),Ws({drag:l},r||{},"drag")}function Mf(l){return l.forEach(Bs),function(i,a){const{handlers:f,nativeHandlers:v,config:_}=Cf(i,a||{});return Ws(f,_,void 0,v)}}function hs(l,r,i){return l*r*i/(r+i*l)}function ms(l,r,i,a,f=.15){return f===0?Ze(l,r,i):l<r?-hs(r-l,a,f)+r:l>i?+hs(l-i,a,f)+i:l}const Fs=!1;function Of(l,r){Fs&&console.error(`[antd-mobile: ${l}] ${r}`)}let Ut=null,Et=null;kr&&(Ut=document.createElement("div"),Ut.className="adm-px-tester",Ut.style.setProperty("--size","10"),document.body.appendChild(Ut),Et=document.createElement("div"),Et.className="adm-px-tester",document.body.appendChild(Et),Fs&&window.getComputedStyle(Et).position!=="fixed"&&Of("Global","The px tester is not rendering properly. Please make sure you have imported `antd-mobile/es/global`."));function Af(l){return Ut===null||Et===null||Ut.getBoundingClientRect().height===10?l:(Et.style.setProperty("--size",l.toString()),Et.getBoundingClientRect().height)}const Df=Mf([Hs,Ef]),Fi=()=>[1,0,0,1,0,0],vs=l=>l[4],gs=l=>l[5],gn=l=>l[0],yn=(l,r,i)=>Vs([1,0,0,1,r,i],l),Uf=(l,r,i=r)=>Vs([r,0,0,i,0,0],l),Bf=(l,[r,i])=>[l[0]*r+l[2]*i+l[4],l[1]*r+l[3]*i+l[5]],Vs=(l,r)=>[l[0]*r[0]+l[2]*r[1],l[1]*r[0]+l[3]*r[1],l[0]*r[2]+l[2]*r[3],l[1]*r[2]+l[3]*r[3],l[0]*r[4]+l[2]*r[5]+l[4],l[1]*r[4]+l[3]*r[5]+l[5]],Vi="adm-image-viewer",Qs=l=>{const{dragLockRef:r,maxZoom:i}=l,a=O.exports.useRef(null),f=O.exports.useRef(null),[{matrix:v},_]=Zi(()=>({matrix:Fi(),config:{tension:200}})),h=Xl(a),k=Xl(f),w=O.exports.useRef(!1),E=(S,R,A=!1)=>{if(!h||!k)return S;const D=-h.width/2,B=-h.height/2,ee=-k.width/2,Ee=-k.height/2,pe=gn(S),se=pe*k.width,te=pe*k.height,[Se,ne]=Bf(S,[ee,Ee]);if(R==="translate"){let Ce=Se,We=ne;if(se>h.width){const G=D-(se-h.width),Je=D;Ce=A?Ze(Se,G,Je):ms(Se,G,Je,pe*50)}else Ce=-se/2;if(te>h.height){const G=B-(te-h.height),Je=B;We=A?Ze(ne,G,Je):ms(ne,G,Je,pe*50)}else We=-te/2;return yn(S,Ce-Se,We-ne)}if(R==="scale"&&A){const[Ce,We]=[se>h.width?Ze(Se,D-(se-h.width),D):-se/2,te>h.height?Ze(ne,B-(te-h.height),B):-te/2];return yn(S,Ce-Se,We-ne)}return S};return Df({onDrag:S=>{if(S.first)return;if(S.pinching)return S.cancel();if(S.tap&&S.elapsedTime>0&&S.elapsedTime<1e3){l.onTap();return}const R=gn(v.get());if(r&&(r.current=R!==1),!w.current&&R<=1)_.start({matrix:Fi()});else{const A=v.get(),D=[S.offset[0]-vs(A),S.offset[1]-gs(A)],B=yn(A,...S.last?[D[0]+S.velocity[0]*S.direction[0]*200,D[1]+S.velocity[1]*S.direction[1]*200]:D);_.start({matrix:E(B,"translate",S.last),immediate:!S.last})}},onPinch:S=>{var R;w.current=!S.last;const[A]=S.offset;if(A<0)return;let D;i==="auto"?D=h&&k?Math.max(h.height/k.height,h.width/k.width):1:D=i;const B=S.last?Ze(A,1,D):A;if((R=l.onZoomChange)===null||R===void 0||R.call(l,B),S.last&&B<=1)_.start({matrix:Fi()}),r&&(r.current=!1);else{if(!h)return;const ee=v.get(),Ee=gn(ee),pe=S.origin[0]-h.width/2,se=S.origin[1]-h.height/2;let te=yn(ee,-pe,-se);te=Uf(te,B/Ee),te=yn(te,pe,se),_.start({matrix:E(te,"scale",S.last),immediate:!S.last}),r&&(r.current=!0)}}},{target:a,drag:{from:()=>[vs(v.get()),gs(v.get())],pointer:{touch:!0}},pinch:{from:()=>[gn(v.get()),0],pointer:{touch:!0}}}),le.createElement("div",{className:`${Vi}-slide`,onPointerMove:S=>{gn(v.get())!==1&&S.stopPropagation()}},le.createElement("div",{className:`${Vi}-control`,ref:a},le.createElement(gr.div,{className:`${Vi}-image-wrapper`,style:{matrix:v}},j("img",{ref:f,src:l.image,draggable:!1,alt:l.image}))))},Qi="adm-image-viewer",Hf=O.exports.forwardRef((l,r)=>{const i=window.innerWidth+Af(16),[{x:a},f]=Zi(()=>({x:l.defaultIndex*i,config:{tension:250,clamp:!0}})),v=l.images.length;function _(w,E=!1){var S;const R=Ze(w,0,v-1);(S=l.onIndexChange)===null||S===void 0||S.call(l,R),f.start({x:R*i,immediate:E})}O.exports.useImperativeHandle(r,()=>({swipeTo:_}));const h=O.exports.useRef(!1),k=Lf(w=>{if(h.current)return;const[E]=w.offset;if(w.last){const S=Math.floor(E/i),R=S+1,A=Math.min(w.velocity[0]*2e3,i)*w.direction[0];_(Ze(Math.round((E+A)/i),S,R))}else f.start({x:E,immediate:!0})},{transform:([w,E])=>[-w,E],from:()=>[a.get(),0],bounds:()=>({left:0,right:(v-1)*i}),rubberband:!0,axis:"x",pointer:{touch:!0}});return le.createElement("div",Object.assign({className:`${Qi}-slides`},k()),le.createElement(gr.div,{className:`${Qi}-indicator`},a.to(w=>`${Ze(Math.round(w/i),0,v-1)+1} / ${v}`)),le.createElement(gr.div,{className:`${Qi}-slides-inner`,style:{x:a.to(w=>-w)}},l.images.map((w,E)=>j(Qs,{image:w,onTap:l.onTap,maxZoom:l.maxZoom,onZoomChange:S=>{if(S!==1){const R=Math.round(a.get()/i);f.start({x:R*i})}},dragLockRef:h},E))))}),xr="adm-image-viewer",Ys={maxZoom:3,getContainer:null,visible:!1},Gs=l=>{var r;const i=Xi(Ys,l),a=Bt(Ns,{visible:i.visible,disableBodyScroll:!1,opacity:"thick",afterClose:i.afterClose,destroyOnClose:!0,children:[j("div",{className:`${xr}-content`,children:i.image&&j(Qs,{image:i.image,onTap:()=>{var f;(f=i.onClose)===null||f===void 0||f.call(i)},maxZoom:i.maxZoom})}),i.image&&Bt("div",{className:`${xr}-footer`,children:[(r=i.renderFooter)===null||r===void 0?void 0:r.call(i,i.image),j(Cs,{position:"bottom"})]})]});return Ji(i.getContainer,a)},jf=Object.assign(Object.assign({},Ys),{defaultIndex:0}),qs=O.exports.forwardRef((l,r)=>{var i;const a=Xi(jf,l),[f,v]=O.exports.useState(a.defaultIndex),_=O.exports.useRef(null);O.exports.useImperativeHandle(r,()=>({swipeTo:(w,E)=>{var S;v(w),(S=_.current)===null||S===void 0||S.swipeTo(w,E)}}));const h=O.exports.useCallback(w=>{var E;v(w),(E=a.onIndexChange)===null||E===void 0||E.call(a,w)},[a.onIndexChange]),k=Bt(Ns,{visible:a.visible,disableBodyScroll:!1,opacity:"thick",afterClose:a.afterClose,destroyOnClose:!0,children:[j("div",{className:`${xr}-content`,children:a.images&&j(Hf,{ref:_,defaultIndex:f,onIndexChange:h,images:a.images,onTap:()=>{var w;(w=a.onClose)===null||w===void 0||w.call(a)},maxZoom:a.maxZoom})}),a.images&&Bt("div",{className:`${xr}-footer`,children:[(i=a.renderFooter)===null||i===void 0?void 0:i.call(a,a.images[f],f),j(Cs,{position:"bottom"})]})]});return Ji(a.getContainer,k)}),jt=new Set;function Wf(l){bi();const r=Ls(le.createElement(Gs,Object.assign({},l,{afterClose:()=>{var i;jt.delete(r),(i=l.afterClose)===null||i===void 0||i.call(l)}})));return jt.add(r),r}function Ff(l){bi();const r=Ls(le.createElement(qs,Object.assign({},l,{afterClose:()=>{var i;jt.delete(r),(i=l.afterClose)===null||i===void 0||i.call(l)}})));return jt.add(r),r}function bi(){jt.forEach(l=>{l.close()}),jt.clear()}const Vf=xs(qs,{show:Ff});var Qf=xs(Gs,{Multi:Vf,show:Wf,clear:bi});const Yf="_about_1iioc_8",Gf="_text_1iioc_11",qf="_button_1iioc_15";var Yi={about:Yf,text:Gf,button:qf},Rr={},zr={},eo={},Kf=_e&&_e.__values||function(l){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&l[r],a=0;if(i)return i.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&a>=l.length&&(l=void 0),{value:l&&l[a++],done:!l}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(eo,"__esModule",{value:!0});var Xf=function(){function l(r){this.hook=r,this.subscribers=new Set}return l.prototype.notify=function(){var r,i;try{for(var a=Kf(this.subscribers),f=a.next();!f.done;f=a.next()){var v=f.value;v(this.data)}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},l}();eo.Container=Xf;var to={};Object.defineProperty(to,"__esModule",{value:!0});var ys=O.exports;function Zf(l){var r=l.hook(),i=ys.useRef(!1);return i.current||l.onMount(r),ys.useLayoutEffect(function(){if(!i.current){i.current=!0;return}l.onUpdate(r)}),null}to.Executor=Zf;var no={},Ks={exports:{}},Xs={exports:{}};/** @license React v0.26.2
* react-reconciler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(l){l.exports=function(i){var a={},f=Na,v=O.exports,_=za.exports;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var k=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,E=60106,S=60107,R=60108,A=60114,D=60109,B=60110,ee=60112,Ee=60113,pe=60120,se=60115,te=60116,Se=60121,ne=60129,Ce=60130,We=60131;if(typeof Symbol=="function"&&Symbol.for){var G=Symbol.for;w=G("react.element"),E=G("react.portal"),S=G("react.fragment"),R=G("react.strict_mode"),A=G("react.profiler"),D=G("react.provider"),B=G("react.context"),ee=G("react.forward_ref"),Ee=G("react.suspense"),pe=G("react.suspense_list"),se=G("react.memo"),te=G("react.lazy"),Se=G("react.block"),G("react.scope"),ne=G("react.debug_trace_mode"),Ce=G("react.offscreen"),We=G("react.legacy_hidden")}var Je=typeof Symbol=="function"&&Symbol.iterator;function Wt(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}function ct(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case E:return"Portal";case A:return"Profiler";case R:return"StrictMode";case Ee:return"Suspense";case pe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case B:return(e.displayName||"Context")+".Consumer";case D:return(e._context.displayName||"Context")+".Provider";case ee:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case se:return ct(e.type);case Se:return ct(e._render);case te:t=e._payload,e=e._init;try{return ct(e(t))}catch{}}return null}function xn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function io(e){if(xn(e)!==e)throw Error(h(188))}function oo(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(h(188));return t!==e?null:e}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return io(s),e;if(u===o)return io(s),t;u=u.sibling}throw Error(h(188))}if(n.return!==o.return)n=s,o=u;else{for(var c=!1,d=s.child;d;){if(d===n){c=!0,n=s,o=u;break}if(d===o){c=!0,o=s,n=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===n){c=!0,n=u,o=s;break}if(d===o){c=!0,o=u,n=s;break}d=d.sibling}if(!c)throw Error(h(189))}}if(n.alternate!==o)throw Error(h(190))}if(n.tag!==3)throw Error(h(188));return n.stateNode.current===n?e:t}function lo(e){if(e=oo(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function $s(e){if(e=oo(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child&&t.tag!==4)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function so(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Nr=i.getPublicInstance,bs=i.getRootHostContext,eu=i.getChildHostContext,tu=i.prepareForCommit,nu=i.resetAfterCommit,ru=i.createInstance,Cr=i.appendInitialChild,uo=i.finalizeInitialChildren,ao=i.prepareUpdate,Lr=i.shouldSetTextContent,co=i.createTextInstance,fo=i.scheduleTimeout,iu=i.cancelTimeout,Mr=i.noTimeout,ft=i.isPrimaryRenderer,Le=i.supportsMutation,Ft=i.supportsPersistence,Me=i.supportsHydration,ou=i.getInstanceFromNode,lu=i.makeOpaqueHydratingObject,Or=i.makeClientId,po=i.beforeActiveInstanceBlur,su=i.afterActiveInstanceBlur,uu=i.preparePortalMount,Vt=i.supportsTestSelectors,au=i.findFiberRoot,cu=i.getBoundingRect,fu=i.getTextContent,Qt=i.isHiddenSubtree,du=i.matchAccessibilityRole,pu=i.setFocusIfFocusable,hu=i.setupIntersectionObserver,mu=i.appendChild,vu=i.appendChildToContainer,gu=i.commitTextUpdate,yu=i.commitMount,_u=i.commitUpdate,Eu=i.insertBefore,wu=i.insertInContainerBefore,Su=i.removeChild,xu=i.removeChildFromContainer,ho=i.resetTextContent,ku=i.hideInstance,Pu=i.hideTextInstance,Tu=i.unhideInstance,Iu=i.unhideTextInstance,Ar=i.clearContainer,Ru=i.cloneInstance,mo=i.createContainerChildSet,vo=i.appendChildToContainerChildSet,zu=i.finalizeContainerChildren,go=i.replaceContainerChildren,yo=i.cloneHiddenInstance,_o=i.cloneHiddenTextInstance,Nu=i.canHydrateInstance,Cu=i.canHydrateTextInstance,Lu=i.isSuspenseInstancePending,Mu=i.isSuspenseInstanceFallback,Dr=i.getNextHydratableSibling,Eo=i.getFirstHydratableChild,Ou=i.hydrateInstance,Au=i.hydrateTextInstance,Du=i.getNextHydratableInstanceAfterSuspenseInstance,wo=i.commitHydratedContainer,Uu=i.commitHydratedSuspenseInstance,Ur;function Yt(e){if(Ur===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ur=t&&t[1]||""}return`
`+Ur+e}var Br=!1;function kn(e,t){if(!e||Br)return"";Br=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(g){var o=g}Reflect.construct(e,[],t)}else{try{t.call()}catch(g){o=g}e.call(t.prototype)}else{try{throw Error()}catch(g){o=g}e()}}catch(g){if(g&&o&&typeof g.stack=="string"){for(var s=g.stack.split(`
`),u=o.stack.split(`
`),c=s.length-1,d=u.length-1;1<=c&&0<=d&&s[c]!==u[d];)d--;for(;1<=c&&0<=d;c--,d--)if(s[c]!==u[d]){if(c!==1||d!==1)do if(c--,d--,0>d||s[c]!==u[d])return`
`+s[c].replace(" at new "," at ");while(1<=c&&0<=d);break}}}finally{Br=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yt(e):""}var Hr=[],wt=-1;function $e(e){return{current:e}}function Q(e){0>wt||(e.current=Hr[wt],Hr[wt]=null,wt--)}function K(e,t){wt++,Hr[wt]=e.current,e.current=t}var be={},ue=$e(be),he=$e(!1),dt=be;function St(e,t){var n=e.type.contextTypes;if(!n)return be;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s={},u;for(u in n)s[u]=t[u];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function me(e){return e=e.childContextTypes,e!=null}function Pn(){Q(he),Q(ue)}function So(e,t,n){if(ue.current!==be)throw Error(h(168));K(ue,t),K(he,n)}function xo(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var s in o)if(!(s in e))throw Error(h(108,ct(t)||"Unknown",s));return f({},n,o)}function Tn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||be,dt=ue.current,K(ue,e),K(he,he.current),!0}function ko(e,t,n){var o=e.stateNode;if(!o)throw Error(h(169));n?(e=xo(e,t,dt),o.__reactInternalMemoizedMergedChildContext=e,Q(he),Q(ue),K(ue,e)):Q(he),K(he,n)}var jr=null,pt=null,Bu=_.unstable_now;Bu();var In=0,F=8;function ht(e){if((1&e)!==0)return F=15,1;if((2&e)!==0)return F=14,2;if((4&e)!==0)return F=13,4;var t=24&e;return t!==0?(F=12,t):(e&32)!==0?(F=11,32):(t=192&e,t!==0?(F=10,t):(e&256)!==0?(F=9,256):(t=3584&e,t!==0?(F=8,t):(e&4096)!==0?(F=7,4096):(t=4186112&e,t!==0?(F=6,t):(t=62914560&e,t!==0?(F=5,t):e&67108864?(F=4,67108864):(e&134217728)!==0?(F=3,134217728):(t=805306368&e,t!==0?(F=2,t):(1073741824&e)!==0?(F=1,1073741824):(F=8,e))))))}function Hu(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function ju(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(h(358,e))}}function Gt(e,t){var n=e.pendingLanes;if(n===0)return F=0;var o=0,s=0,u=e.expiredLanes,c=e.suspendedLanes,d=e.pingedLanes;if(u!==0)o=u,s=F=15;else if(u=n&134217727,u!==0){var g=u&~c;g!==0?(o=ht(g),s=F):(d&=u,d!==0&&(o=ht(d),s=F))}else u=n&~c,u!==0?(o=ht(u),s=F):d!==0&&(o=ht(d),s=F);if(o===0)return 0;if(o=31-et(o),o=n&((0>o?0:1<<o)<<1)-1,t!==0&&t!==o&&(t&c)===0){if(ht(t),s<=F)return t;F=s}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-et(t),s=1<<n,o|=e[n],t&=~s;return o}function Po(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rn(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=xt(24&~t),e===0?Rn(10,t):e;case 10:return e=xt(192&~t),e===0?Rn(8,t):e;case 8:return e=xt(3584&~t),e===0&&(e=xt(4186112&~t),e===0&&(e=512)),e;case 2:return t=xt(805306368&~t),t===0&&(t=268435456),t}throw Error(h(358,e))}function xt(e){return e&-e}function Wr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zn(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,e=e.eventTimes,t=31-et(t),e[t]=n}var et=Math.clz32?Math.clz32:Vu,Wu=Math.log,Fu=Math.LN2;function Vu(e){return e===0?32:31-(Wu(e)/Fu|0)|0}var Qu=_.unstable_runWithPriority,Fr=_.unstable_scheduleCallback,Vr=_.unstable_cancelCallback,Yu=_.unstable_shouldYield,To=_.unstable_requestPaint,Qr=_.unstable_now,Gu=_.unstable_getCurrentPriorityLevel,Nn=_.unstable_ImmediatePriority,Io=_.unstable_UserBlockingPriority,Ro=_.unstable_NormalPriority,zo=_.unstable_LowPriority,No=_.unstable_IdlePriority,Yr={},qu=To!==void 0?To:function(){},Fe=null,Cn=null,Gr=!1,Co=Qr(),re=1e4>Co?Qr:function(){return Qr()-Co};function kt(){switch(Gu()){case Nn:return 99;case Io:return 98;case Ro:return 97;case zo:return 96;case No:return 95;default:throw Error(h(332))}}function Lo(e){switch(e){case 99:return Nn;case 98:return Io;case 97:return Ro;case 96:return zo;case 95:return No;default:throw Error(h(332))}}function Ve(e,t){return e=Lo(e),Qu(e,t)}function qt(e,t,n){return e=Lo(e),Fr(e,t,n)}function xe(){if(Cn!==null){var e=Cn;Cn=null,Vr(e)}Mo()}function Mo(){if(!Gr&&Fe!==null){Gr=!0;var e=0;try{var t=Fe;Ve(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Fe=null}catch(n){throw Fe!==null&&(Fe=Fe.slice(e+1)),Fr(Nn,xe),n}finally{Gr=!1}}}var Ku=k.ReactCurrentBatchConfig;function Xu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ke=typeof Object.is=="function"?Object.is:Xu,Zu=Object.prototype.hasOwnProperty;function Ln(e,t){if(ke(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Zu.call(t,n[o])||!ke(e[n[o]],t[n[o]]))return!1;return!0}function Ju(e){switch(e.tag){case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 2:case 15:return e=kn(e.type,!1),e;case 11:return e=kn(e.type.render,!1),e;case 22:return e=kn(e.type._render,!1),e;case 1:return e=kn(e.type,!0),e;default:return""}}function Oe(e,t){if(e&&e.defaultProps){t=f({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Mn=$e(null),On=null,Pt=null,An=null;function qr(){An=Pt=On=null}function Oo(e,t){e=e.type._context,ft?(K(Mn,e._currentValue),e._currentValue=t):(K(Mn,e._currentValue2),e._currentValue2=t)}function Kr(e){var t=Mn.current;Q(Mn),e=e.type._context,ft?e._currentValue=t:e._currentValue2=t}function Ao(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Tt(e,t){On=e,An=Pt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ae=!0),e.firstContext=null)}function Pe(e,t){if(An!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(An=e,t=1073741823),t={context:e,observedBits:t,next:null},Pt===null){if(On===null)throw Error(h(308));Pt=t,On.dependencies={lanes:0,firstContext:t,responders:null}}else Pt=Pt.next=t;return ft?e._currentValue:e._currentValue2}var tt=!1;function Xr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Do(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Uo(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?s=u=c:u=u.next=c,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kt(e,t,n,o){var s=e.updateQueue;tt=!1;var u=s.firstBaseUpdate,c=s.lastBaseUpdate,d=s.shared.pending;if(d!==null){s.shared.pending=null;var g=d,x=g.next;g.next=null,c===null?u=x:c.next=x,c=g;var z=e.alternate;if(z!==null){z=z.updateQueue;var L=z.lastBaseUpdate;L!==c&&(L===null?z.firstBaseUpdate=x:L.next=x,z.lastBaseUpdate=g)}}if(u!==null){L=s.baseState,c=0,z=x=g=null;do{d=u.lane;var T=u.eventTime;if((o&d)===d){z!==null&&(z=z.next={eventTime:T,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var W=e,Y=u;switch(d=t,T=n,Y.tag){case 1:if(W=Y.payload,typeof W=="function"){L=W.call(T,L,d);break e}L=W;break e;case 3:W.flags=W.flags&-4097|64;case 0:if(W=Y.payload,d=typeof W=="function"?W.call(T,L,d):W,d==null)break e;L=f({},L,d);break e;case 2:tt=!0}}u.callback!==null&&(e.flags|=32,d=s.effects,d===null?s.effects=[u]:d.push(u))}else T={eventTime:T,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},z===null?(x=z=T,g=L):z=z.next=T,c|=d;if(u=u.next,u===null){if(d=s.shared.pending,d===null)break;u=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(1);z===null&&(g=L),s.baseState=g,s.firstBaseUpdate=x,s.lastBaseUpdate=z,an|=c,e.lanes=c,e.memoizedState=L}}function Bo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(s!==null){if(o.callback=null,o=n,typeof s!="function")throw Error(h(191,s));s.call(o)}}}var Ho=new v.Component().refs;function Dn(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Un={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ye(),s=lt(e),u=nt(o,s);u.payload=t,n!=null&&(u.callback=n),rt(e,u),Ke(e,s,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ye(),s=lt(e),u=nt(o,s);u.tag=1,u.payload=t,n!=null&&(u.callback=n),rt(e,u),Ke(e,s,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ye(),o=lt(e),s=nt(n,o);s.tag=2,t!=null&&(s.callback=t),rt(e,s),Ke(e,o,n)}};function jo(e,t,n,o,s,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,c):t.prototype&&t.prototype.isPureReactComponent?!Ln(n,o)||!Ln(s,u):!0}function Wo(e,t,n){var o=!1,s=be,u=t.contextType;return typeof u=="object"&&u!==null?u=Pe(u):(s=me(t)?dt:ue.current,o=t.contextTypes,u=(o=o!=null)?St(e,s):be),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Un,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=u),t}function Fo(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Un.enqueueReplaceState(t,t.state,null)}function Zr(e,t,n,o){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Ho,Xr(e);var u=t.contextType;typeof u=="object"&&u!==null?s.context=Pe(u):(u=me(t)?dt:ue.current,s.context=St(e,u)),Kt(e,n,s,o),s.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Dn(e,t,u,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Un.enqueueReplaceState(s,s.state,null),Kt(e,n,s,o),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4)}var Bn=Array.isArray;function Xt(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(h(309));var o=n.stateNode}if(!o)throw Error(h(147,e));var s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(u){var c=o.refs;c===Ho&&(c=o.refs={}),u===null?delete c[s]:c[s]=u},t._stringRef=s,t)}if(typeof e!="string")throw Error(h(284));if(!n._owner)throw Error(h(290,e))}return e}function Hn(e,t){if(e.type!=="textarea")throw Error(h(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Vo(e){function t(m,p){if(e){var y=m.lastEffect;y!==null?(y.nextEffect=p,m.lastEffect=p):m.firstEffect=m.lastEffect=p,p.nextEffect=null,p.flags=8}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function o(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function s(m,p){return m=ut(m,p),m.index=0,m.sibling=null,m}function u(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags=2,p):y):(m.flags=2,p)):p}function c(m){return e&&m.alternate===null&&(m.flags=2),m}function d(m,p,y,P){return p===null||p.tag!==6?(p=Bi(y,m.mode,P),p.return=m,p):(p=s(p,y),p.return=m,p)}function g(m,p,y,P){return p!==null&&p.elementType===y.type?(P=s(p,y.props),P.ref=Xt(m,p,y),P.return=m,P):(P=pr(y.type,y.key,y.props,null,m.mode,P),P.ref=Xt(m,p,y),P.return=m,P)}function x(m,p,y,P){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Hi(y,m.mode,P),p.return=m,p):(p=s(p,y.children||[]),p.return=m,p)}function z(m,p,y,P,N){return p===null||p.tag!==7?(p=Ot(y,m.mode,P,N),p.return=m,p):(p=s(p,y),p.return=m,p)}function L(m,p,y){if(typeof p=="string"||typeof p=="number")return p=Bi(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case w:return y=pr(p.type,p.key,p.props,null,m.mode,y),y.ref=Xt(m,null,p),y.return=m,y;case E:return p=Hi(p,m.mode,y),p.return=m,p}if(Bn(p)||Wt(p))return p=Ot(p,m.mode,y,null),p.return=m,p;Hn(m,p)}return null}function T(m,p,y,P){var N=p!==null?p.key:null;if(typeof y=="string"||typeof y=="number")return N!==null?null:d(m,p,""+y,P);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case w:return y.key===N?y.type===S?z(m,p,y.props.children,P,N):g(m,p,y,P):null;case E:return y.key===N?x(m,p,y,P):null}if(Bn(y)||Wt(y))return N!==null?null:z(m,p,y,P,null);Hn(m,y)}return null}function W(m,p,y,P,N){if(typeof P=="string"||typeof P=="number")return m=m.get(y)||null,d(p,m,""+P,N);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case w:return m=m.get(P.key===null?y:P.key)||null,P.type===S?z(p,m,P.props.children,N,P.key):g(p,m,P,N);case E:return m=m.get(P.key===null?y:P.key)||null,x(p,m,P,N)}if(Bn(P)||Wt(P))return m=m.get(y)||null,z(p,m,P,N,null);Hn(p,P)}return null}function Y(m,p,y,P){for(var N=null,V=null,M=p,H=p=0,J=null;M!==null&&H<y.length;H++){M.index>H?(J=M,M=null):J=M.sibling;var U=T(m,M,y[H],P);if(U===null){M===null&&(M=J);break}e&&M&&U.alternate===null&&t(m,M),p=u(U,p,H),V===null?N=U:V.sibling=U,V=U,M=J}if(H===y.length)return n(m,M),N;if(M===null){for(;H<y.length;H++)M=L(m,y[H],P),M!==null&&(p=u(M,p,H),V===null?N=M:V.sibling=M,V=M);return N}for(M=o(m,M);H<y.length;H++)J=W(M,m,H,y[H],P),J!==null&&(e&&J.alternate!==null&&M.delete(J.key===null?H:J.key),p=u(J,p,H),V===null?N=J:V.sibling=J,V=J);return e&&M.forEach(function(at){return t(m,at)}),N}function ze(m,p,y,P){var N=Wt(y);if(typeof N!="function")throw Error(h(150));if(y=N.call(y),y==null)throw Error(h(151));for(var V=N=null,M=p,H=p=0,J=null,U=y.next();M!==null&&!U.done;H++,U=y.next()){M.index>H?(J=M,M=null):J=M.sibling;var at=T(m,M,U.value,P);if(at===null){M===null&&(M=J);break}e&&M&&at.alternate===null&&t(m,M),p=u(at,p,H),V===null?N=at:V.sibling=at,V=at,M=J}if(U.done)return n(m,M),N;if(M===null){for(;!U.done;H++,U=y.next())U=L(m,U.value,P),U!==null&&(p=u(U,p,H),V===null?N=U:V.sibling=U,V=U);return N}for(M=o(m,M);!U.done;H++,U=y.next())U=W(M,m,H,U.value,P),U!==null&&(e&&U.alternate!==null&&M.delete(U.key===null?H:U.key),p=u(U,p,H),V===null?N=U:V.sibling=U,V=U);return e&&M.forEach(function(Ta){return t(m,Ta)}),N}return function(m,p,y,P){var N=typeof y=="object"&&y!==null&&y.type===S&&y.key===null;N&&(y=y.props.children);var V=typeof y=="object"&&y!==null;if(V)switch(y.$$typeof){case w:e:{for(V=y.key,N=p;N!==null;){if(N.key===V){switch(N.tag){case 7:if(y.type===S){n(m,N.sibling),p=s(N,y.props.children),p.return=m,m=p;break e}break;default:if(N.elementType===y.type){n(m,N.sibling),p=s(N,y.props),p.ref=Xt(m,N,y),p.return=m,m=p;break e}}n(m,N);break}else t(m,N);N=N.sibling}y.type===S?(p=Ot(y.props.children,m.mode,P,y.key),p.return=m,m=p):(P=pr(y.type,y.key,y.props,null,m.mode,P),P.ref=Xt(m,p,y),P.return=m,m=P)}return c(m);case E:e:{for(N=y.key;p!==null;){if(p.key===N)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=s(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Hi(y,m.mode,P),p.return=m,m=p}return c(m)}if(typeof y=="string"||typeof y=="number")return y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=s(p,y),p.return=m,m=p):(n(m,p),p=Bi(y,m.mode,P),p.return=m,m=p),c(m);if(Bn(y))return Y(m,p,y,P);if(Wt(y))return ze(m,p,y,P);if(V&&Hn(m,y),typeof y=="undefined"&&!N)switch(m.tag){case 1:case 22:case 0:case 11:case 15:throw Error(h(152,ct(m.type)||"Component"))}return n(m,p)}}var jn=Vo(!0),Qo=Vo(!1),Zt={},Te=$e(Zt),Jt=$e(Zt),It=$e(Zt);function De(e){if(e===Zt)throw Error(h(174));return e}function Jr(e,t){K(It,t),K(Jt,e),K(Te,Zt),e=bs(t),Q(Te),K(Te,e)}function Rt(){Q(Te),Q(Jt),Q(It)}function Yo(e){var t=De(It.current),n=De(Te.current);t=eu(n,e.type,t),n!==t&&(K(Jt,e),K(Te,t))}function $r(e){Jt.current===e&&(Q(Te),Q(Jt))}var X=$e(0);function Wn(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Lu(n)||Mu(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qe=null,mt=null,Ue=!1;function Go(e,t){var n=Re(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function qo(e,t){switch(e.tag){case 5:return t=Nu(t,e.type,e.pendingProps),t!==null?(e.stateNode=t,!0):!1;case 6:return t=Cu(t,e.pendingProps),t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function br(e){if(Ue){var t=mt;if(t){var n=t;if(!qo(e,t)){if(t=Dr(n),!t||!qo(e,t)){e.flags=e.flags&-1025|2,Ue=!1,Qe=e;return}Go(Qe,n)}Qe=e,mt=Eo(t)}else e.flags=e.flags&-1025|2,Ue=!1,Qe=e}}function Ko(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Fn(e){if(!Me||e!==Qe)return!1;if(!Ue)return Ko(e),Ue=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Lr(t,e.memoizedProps))for(t=mt;t;)Go(e,t),t=Dr(t);if(Ko(e),e.tag===13){if(!Me)throw Error(h(316));if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(h(317));mt=Du(e)}else mt=Qe?Dr(e.stateNode):null;return!0}function ei(){Me&&(mt=Qe=null,Ue=!1)}var zt=[];function ti(){for(var e=0;e<zt.length;e++){var t=zt[e];ft?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}zt.length=0}var $t=k.ReactCurrentDispatcher,Ie=k.ReactCurrentBatchConfig,bt=0,Z=null,ae=null,ie=null,Vn=!1,en=!1;function ve(){throw Error(h(321))}function ni(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ke(e[n],t[n]))return!1;return!0}function ri(e,t,n,o,s,u){if(bt=u,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$t.current=e===null||e.memoizedState===null?bu:ea,e=n(o,s),en){u=0;do{if(en=!1,!(25>u))throw Error(h(301));u+=1,ie=ae=null,t.updateQueue=null,$t.current=ta,e=n(o,s)}while(en)}if($t.current=qn,t=ae!==null&&ae.next!==null,bt=0,ie=ae=Z=null,Vn=!1,t)throw Error(h(300));return e}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?Z.memoizedState=ie=e:ie=ie.next=e,ie}function gt(){if(ae===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ie===null?Z.memoizedState:ie.next;if(t!==null)ie=t,ae=e;else{if(e===null)throw Error(h(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ie===null?Z.memoizedState=ie=e:ie=ie.next=e}return ie}function Be(e,t){return typeof t=="function"?t(e):t}function tn(e){var t=gt(),n=t.queue;if(n===null)throw Error(h(311));n.lastRenderedReducer=e;var o=ae,s=o.baseQueue,u=n.pending;if(u!==null){if(s!==null){var c=s.next;s.next=u.next,u.next=c}o.baseQueue=s=u,n.pending=null}if(s!==null){s=s.next,o=o.baseState;var d=c=u=null,g=s;do{var x=g.lane;if((bt&x)===x)d!==null&&(d=d.next={lane:0,action:g.action,eagerReducer:g.eagerReducer,eagerState:g.eagerState,next:null}),o=g.eagerReducer===e?g.eagerState:e(o,g.action);else{var z={lane:x,action:g.action,eagerReducer:g.eagerReducer,eagerState:g.eagerState,next:null};d===null?(c=d=z,u=o):d=d.next=z,Z.lanes|=x,an|=x}g=g.next}while(g!==null&&g!==s);d===null?u=o:d.next=c,ke(o,t.memoizedState)||(Ae=!0),t.memoizedState=o,t.baseState=u,t.baseQueue=d,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function nn(e){var t=gt(),n=t.queue;if(n===null)throw Error(h(311));n.lastRenderedReducer=e;var o=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var c=s=s.next;do u=e(u,c.action),c=c.next;while(c!==s);ke(u,t.memoizedState)||(Ae=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,o]}function Xo(e,t,n){var o=t._getVersion;o=o(t._source);var s=ft?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(s!==null?e=s===o:(e=e.mutableReadLanes,(e=(bt&e)===e)&&(ft?t._workInProgressVersionPrimary=o:t._workInProgressVersionSecondary=o,zt.push(t))),e)return n(t._source);throw zt.push(t),Error(h(350))}function Zo(e,t,n,o){var s=de;if(s===null)throw Error(h(349));var u=t._getVersion,c=u(t._source),d=$t.current,g=d.useState(function(){return Xo(s,t,n)}),x=g[1],z=g[0];g=ie;var L=e.memoizedState,T=L.refs,W=T.getSnapshot,Y=L.source;L=L.subscribe;var ze=Z;return e.memoizedState={refs:T,source:t,subscribe:o},d.useEffect(function(){T.getSnapshot=n,T.setSnapshot=x;var m=u(t._source);if(!ke(c,m)){m=n(t._source),ke(z,m)||(x(m),m=lt(ze),s.mutableReadLanes|=m&s.pendingLanes),m=s.mutableReadLanes,s.entangledLanes|=m;for(var p=s.entanglements,y=m;0<y;){var P=31-et(y),N=1<<P;p[P]|=m,y&=~N}}},[n,t,o]),d.useEffect(function(){return o(t._source,function(){var m=T.getSnapshot,p=T.setSnapshot;try{p(m(t._source));var y=lt(ze);s.mutableReadLanes|=y&s.pendingLanes}catch(P){p(function(){throw P})}})},[t,o]),ke(W,n)&&ke(Y,t)&&ke(L,o)||(e={pending:null,dispatch:null,lastRenderedReducer:Be,lastRenderedState:z},e.dispatch=x=si.bind(null,Z,e),g.queue=e,g.baseQueue=null,z=Xo(s,t,n),g.memoizedState=g.baseState=z),z}function Jo(e,t,n){var o=gt();return Zo(o,e,t,n)}function rn(e){var t=vt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Be,lastRenderedState:e},e=e.dispatch=si.bind(null,Z,e),[t.memoizedState,e]}function Qn(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Z.updateQueue,t===null?(t={lastEffect:null},Z.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function $o(e){var t=vt();return e={current:e},t.memoizedState=e}function Yn(){return gt().memoizedState}function ii(e,t,n,o){var s=vt();Z.flags|=e,s.memoizedState=Qn(1|t,n,void 0,o===void 0?null:o)}function oi(e,t,n,o){var s=gt();o=o===void 0?null:o;var u=void 0;if(ae!==null){var c=ae.memoizedState;if(u=c.destroy,o!==null&&ni(o,c.deps)){Qn(t,n,u,o);return}}Z.flags|=e,s.memoizedState=Qn(1|t,n,u,o)}function bo(e,t){return ii(516,4,e,t)}function Gn(e,t){return oi(516,4,e,t)}function el(e,t){return oi(4,2,e,t)}function tl(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nl(e,t,n){return n=n!=null?n.concat([e]):null,oi(4,2,tl.bind(null,t,e),n)}function li(){}function rl(e,t){var n=gt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&ni(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function il(e,t){var n=gt();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&ni(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function $u(e,t){var n=kt();Ve(98>n?98:n,function(){e(!0)}),Ve(97<n?97:n,function(){var o=Ie.transition;Ie.transition=1;try{e(!1),t()}finally{Ie.transition=o}})}function si(e,t,n){var o=ye(),s=lt(e),u={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},c=t.pending;if(c===null?u.next=u:(u.next=c.next,c.next=u),t.pending=u,c=e.alternate,e===Z||c!==null&&c===Z)en=Vn=!0;else{if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,g=c(d,n);if(u.eagerReducer=c,u.eagerState=g,ke(g,d))return}catch{}finally{}Ke(e,s,o)}}var qn={readContext:Pe,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useOpaqueIdentifier:ve,unstable_isNewReconciler:!1},bu={readContext:Pe,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:bo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ii(4,2,tl.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ii(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=vt();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=si.bind(null,Z,e),[o.memoizedState,e]},useRef:$o,useState:rn,useDebugValue:li,useDeferredValue:function(e){var t=rn(e),n=t[0],o=t[1];return bo(function(){var s=Ie.transition;Ie.transition=1;try{o(e)}finally{Ie.transition=s}},[e]),n},useTransition:function(){var e=rn(!1),t=e[0];return e=$u.bind(null,e[1]),$o(e),[e,t]},useMutableSource:function(e,t,n){var o=vt();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Zo(o,e,t,n)},useOpaqueIdentifier:function(){if(Ue){var e=!1,t=lu(function(){throw e||(e=!0,n(Or())),Error(h(355))}),n=rn(t)[1];return(Z.mode&2)===0&&(Z.flags|=516,Qn(5,function(){n(Or())},void 0,null)),t}return t=Or(),rn(t),t},unstable_isNewReconciler:!1},ea={readContext:Pe,useCallback:rl,useContext:Pe,useEffect:Gn,useImperativeHandle:nl,useLayoutEffect:el,useMemo:il,useReducer:tn,useRef:Yn,useState:function(){return tn(Be)},useDebugValue:li,useDeferredValue:function(e){var t=tn(Be),n=t[0],o=t[1];return Gn(function(){var s=Ie.transition;Ie.transition=1;try{o(e)}finally{Ie.transition=s}},[e]),n},useTransition:function(){var e=tn(Be)[0];return[Yn().current,e]},useMutableSource:Jo,useOpaqueIdentifier:function(){return tn(Be)[0]},unstable_isNewReconciler:!1},ta={readContext:Pe,useCallback:rl,useContext:Pe,useEffect:Gn,useImperativeHandle:nl,useLayoutEffect:el,useMemo:il,useReducer:nn,useRef:Yn,useState:function(){return nn(Be)},useDebugValue:li,useDeferredValue:function(e){var t=nn(Be),n=t[0],o=t[1];return Gn(function(){var s=Ie.transition;Ie.transition=1;try{o(e)}finally{Ie.transition=s}},[e]),n},useTransition:function(){var e=nn(Be)[0];return[Yn().current,e]},useMutableSource:Jo,useOpaqueIdentifier:function(){return nn(Be)[0]},unstable_isNewReconciler:!1},na=k.ReactCurrentOwner,Ae=!1;function ge(e,t,n,o){t.child=e===null?Qo(t,null,n,o):jn(t,e.child,n,o)}function ol(e,t,n,o,s){n=n.render;var u=t.ref;return Tt(t,s),o=ri(e,t,n,o,u,s),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ye(e,t,s)):(t.flags|=1,ge(e,t,o,s),t.child)}function ll(e,t,n,o,s,u){if(e===null){var c=n.type;return typeof c=="function"&&!Di(c)&&c.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=c,sl(e,t,c,o,s,u)):(e=pr(n.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}return c=e.child,(s&u)===0&&(s=c.memoizedProps,n=n.compare,n=n!==null?n:Ln,n(s,o)&&e.ref===t.ref)?Ye(e,t,u):(t.flags|=1,e=ut(c,o),e.ref=t.ref,e.return=t,t.child=e)}function sl(e,t,n,o,s,u){if(e!==null&&Ln(e.memoizedProps,o)&&e.ref===t.ref)if(Ae=!1,(u&s)!==0)(e.flags&16384)!==0&&(Ae=!0);else return t.lanes=e.lanes,Ye(e,t,u);return ai(e,t,n,o,u)}function ui(e,t,n){var o=t.pendingProps,s=o.children,u=e!==null?e.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},cr(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},cr(t,u!==null?u.baseLanes:n);else return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},cr(t,e),null;else u!==null?(o=u.baseLanes|n,t.memoizedState=null):o=n,cr(t,o);return ge(e,t,s,n),t.child}function ul(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function ai(e,t,n,o,s){var u=me(n)?dt:ue.current;return u=St(t,u),Tt(t,s),n=ri(e,t,n,o,u,s),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,Ye(e,t,s)):(t.flags|=1,ge(e,t,n,s),t.child)}function al(e,t,n,o,s){if(me(n)){var u=!0;Tn(t)}else u=!1;if(Tt(t,s),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Wo(t,n,o),Zr(t,n,o,s),o=!0;else if(e===null){var c=t.stateNode,d=t.memoizedProps;c.props=d;var g=c.context,x=n.contextType;typeof x=="object"&&x!==null?x=Pe(x):(x=me(n)?dt:ue.current,x=St(t,x));var z=n.getDerivedStateFromProps,L=typeof z=="function"||typeof c.getSnapshotBeforeUpdate=="function";L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==o||g!==x)&&Fo(t,c,o,x),tt=!1;var T=t.memoizedState;c.state=T,Kt(t,o,c,s),g=t.memoizedState,d!==o||T!==g||he.current||tt?(typeof z=="function"&&(Dn(t,n,z,o),g=t.memoizedState),(d=tt||jo(t,n,d,o,T,g,x))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4)):(typeof c.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=g),c.props=o,c.state=g,c.context=x,o=d):(typeof c.componentDidMount=="function"&&(t.flags|=4),o=!1)}else{c=t.stateNode,Do(e,t),d=t.memoizedProps,x=t.type===t.elementType?d:Oe(t.type,d),c.props=x,L=t.pendingProps,T=c.context,g=n.contextType,typeof g=="object"&&g!==null?g=Pe(g):(g=me(n)?dt:ue.current,g=St(t,g));var W=n.getDerivedStateFromProps;(z=typeof W=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==L||T!==g)&&Fo(t,c,o,g),tt=!1,T=t.memoizedState,c.state=T,Kt(t,o,c,s);var Y=t.memoizedState;d!==L||T!==Y||he.current||tt?(typeof W=="function"&&(Dn(t,n,W,o),Y=t.memoizedState),(x=tt||jo(t,n,x,o,T,Y,g))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(o,Y,g),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(o,Y,g)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=Y),c.props=o,c.state=Y,c.context=g,o=x):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&T===e.memoizedState||(t.flags|=256),o=!1)}return ci(e,t,n,o,u,s)}function ci(e,t,n,o,s,u){ul(e,t);var c=(t.flags&64)!==0;if(!o&&!c)return s&&ko(t,n,!1),Ye(e,t,u);o=t.stateNode,na.current=t;var d=c&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&c?(t.child=jn(t,e.child,null,u),t.child=jn(t,null,d,u)):ge(e,t,d,u),t.memoizedState=o.state,s&&ko(t,n,!0),t.child}function cl(e){var t=e.stateNode;t.pendingContext?So(e,t.pendingContext,t.pendingContext!==t.context):t.context&&So(e,t.context,!1),Jr(e,t.containerInfo)}var Kn={dehydrated:null,retryLane:0};function fl(e,t,n){var o=t.pendingProps,s=X.current,u=!1,c;return(c=(t.flags&64)!==0)||(c=e!==null&&e.memoizedState===null?!1:(s&2)!==0),c?(u=!0,t.flags&=-65):e!==null&&e.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(s|=1),K(X,s&1),e===null?(o.fallback!==void 0&&br(t),e=o.children,s=o.fallback,u?(e=dl(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Kn,e):typeof o.unstable_expectedLoadTime=="number"?(e=dl(t,e,s,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Kn,t.lanes=33554432,e):(n=Ui({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?u?(o=hl(e,t,o.children,o.fallback,n),u=t.child,s=e.child.memoizedState,u.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},u.childLanes=e.childLanes&~n,t.memoizedState=Kn,o):(n=pl(e,t,o.children,n),t.memoizedState=null,n):u?(o=hl(e,t,o.children,o.fallback,n),u=t.child,s=e.child.memoizedState,u.memoizedState=s===null?{baseLanes:n}:{baseLanes:s.baseLanes|n},u.childLanes=e.childLanes&~n,t.memoizedState=Kn,o):(n=pl(e,t,o.children,n),t.memoizedState=null,n)}function dl(e,t,n,o){var s=e.mode,u=e.child;return t={mode:"hidden",children:t},(s&2)===0&&u!==null?(u.childLanes=0,u.pendingProps=t):u=Ui(t,s,0,null),n=Ot(n,s,o,null),u.return=e,n.return=e,u.sibling=n,e.child=u,n}function pl(e,t,n,o){var s=e.child;return e=s.sibling,n=ut(s,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=o),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function hl(e,t,n,o,s){var u=t.mode,c=e.child;e=c.sibling;var d={mode:"hidden",children:n};return(u&2)===0&&t.child!==c?(n=t.child,n.childLanes=0,n.pendingProps=d,c=n.lastEffect,c!==null?(t.firstEffect=n.firstEffect,t.lastEffect=c,c.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ut(c,d),e!==null?o=ut(e,o):(o=Ot(o,u,s,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,o}function ml(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ao(e.return,t)}function fi(e,t,n,o,s,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:s,lastEffect:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=n,c.tailMode=s,c.lastEffect=u)}function vl(e,t,n){var o=t.pendingProps,s=o.revealOrder,u=o.tail;if(ge(e,t,o.children,n),o=X.current,(o&2)!==0)o=o&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ml(e,n);else if(e.tag===19)ml(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(K(X,o),(t.mode&2)===0)t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Wn(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),fi(t,!1,s,n,u,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Wn(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}fi(t,!0,n,null,u,t.lastEffect);break;case"together":fi(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ye(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),an|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(h(153));if(t.child!==null){for(e=t.child,n=ut(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ut(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}function He(e){e.flags|=4}var on,ln,Xn,Zn;if(Le)on=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)Cr(e,n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ln=function(){},Xn=function(e,t,n,o,s){if(e=e.memoizedProps,e!==o){var u=t.stateNode,c=De(Te.current);n=ao(u,n,e,o,s,c),(t.updateQueue=n)&&He(t)}},Zn=function(e,t,n,o){n!==o&&He(t)};else if(Ft){on=function(e,t,n,o){for(var s=t.child;s!==null;){if(s.tag===5){var u=s.stateNode;n&&o&&(u=yo(u,s.type,s.memoizedProps,s)),Cr(e,u)}else if(s.tag===6)u=s.stateNode,n&&o&&(u=_o(u,s.memoizedProps,s)),Cr(e,u);else if(s.tag!==4){if(s.tag===13&&(s.flags&4)!==0&&(u=s.memoizedState!==null)){var c=s.child;if(c!==null&&(c.child!==null&&(c.child.return=c,on(e,c,!0,u)),u=c.sibling,u!==null)){u.return=s,s=u;continue}}if(s.child!==null){s.child.return=s,s=s.child;continue}}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return;s=s.return}s.sibling.return=s.return,s=s.sibling}};var gl=function(e,t,n,o){for(var s=t.child;s!==null;){if(s.tag===5){var u=s.stateNode;n&&o&&(u=yo(u,s.type,s.memoizedProps,s)),vo(e,u)}else if(s.tag===6)u=s.stateNode,n&&o&&(u=_o(u,s.memoizedProps,s)),vo(e,u);else if(s.tag!==4){if(s.tag===13&&(s.flags&4)!==0&&(u=s.memoizedState!==null)){var c=s.child;if(c!==null&&(c.child!==null&&(c.child.return=c,gl(e,c,!0,u)),u=c.sibling,u!==null)){u.return=s,s=u;continue}}if(s.child!==null){s.child.return=s,s=s.child;continue}}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return;s=s.return}s.sibling.return=s.return,s=s.sibling}};ln=function(e){var t=e.stateNode;if(e.firstEffect!==null){var n=t.containerInfo,o=mo(n);gl(o,e,!1,!1),t.pendingChildren=o,He(e),zu(n,o)}},Xn=function(e,t,n,o,s){var u=e.stateNode,c=e.memoizedProps;if((e=t.firstEffect===null)&&c===o)t.stateNode=u;else{var d=t.stateNode,g=De(Te.current),x=null;c!==o&&(x=ao(d,n,c,o,s,g)),e&&x===null?t.stateNode=u:(u=Ru(u,x,n,c,o,t,e,d),uo(u,n,o,s,g)&&He(t),t.stateNode=u,e?He(t):on(u,t,!1,!1))}},Zn=function(e,t,n,o){n!==o?(e=De(It.current),n=De(Te.current),t.stateNode=co(o,e,n,t),He(t)):t.stateNode=e.stateNode}}else ln=function(){},Xn=function(){},Zn=function(){};function sn(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ra(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return me(t.type)&&Pn(),null;case 3:return Rt(),Q(he),Q(ue),ti(),o=t.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Fn(t)?He(t):o.hydrate||(t.flags|=256)),ln(t),null;case 5:$r(t);var s=De(It.current);if(n=t.type,e!==null&&t.stateNode!=null)Xn(e,t,n,o,s),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(t.stateNode===null)throw Error(h(166));return null}if(e=De(Te.current),Fn(t)){if(!Me)throw Error(h(175));e=Ou(t.stateNode,t.type,t.memoizedProps,s,e,t),t.updateQueue=e,e!==null&&He(t)}else{var u=ru(n,o,s,e,t);on(u,t,!1,!1),t.stateNode=u,uo(u,n,o,s,e)&&He(t)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Zn(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(h(166));if(e=De(It.current),s=De(Te.current),Fn(t)){if(!Me)throw Error(h(176));Au(t.stateNode,t.memoizedProps,t)&&He(t)}else t.stateNode=co(o,e,s,t)}return null;case 13:return Q(X),o=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(o=o!==null,s=!1,e===null?t.memoizedProps.fallback!==void 0&&Fn(t):s=e.memoizedState!==null,o&&!s&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(X.current&1)!==0?oe===0&&(oe=3):((oe===0||oe===3)&&(oe=4),de===null||(an&134217727)===0&&(Ct&134217727)===0||Lt(de,ce))),Ft&&o&&(t.flags|=4),Le&&(o||s)&&(t.flags|=4),null);case 4:return Rt(),ln(t),e===null&&uu(t.stateNode.containerInfo),null;case 10:return Kr(t),null;case 17:return me(t.type)&&Pn(),null;case 19:if(Q(X),o=t.memoizedState,o===null)return null;if(s=(t.flags&64)!==0,u=o.rendering,u===null)if(s)sn(o,!1);else{if(oe!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(u=Wn(e),u!==null){for(t.flags|=64,sn(o,!1),e=u.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),o.lastEffect===null&&(t.firstEffect=null),t.lastEffect=o.lastEffect,e=n,o=t.child;o!==null;)s=o,n=e,s.flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,u=s.alternate,u===null?(s.childLanes=0,s.lanes=n,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,n=u.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),o=o.sibling;return K(X,X.current&1|2),t.child}e=e.sibling}o.tail!==null&&re()>Ii&&(t.flags|=64,s=!0,sn(o,!1),t.lanes=33554432)}else{if(!s)if(e=Wn(u),e!==null){if(t.flags|=64,s=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),sn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!Ue)return t=t.lastEffect=o.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*re()-o.renderingStartTime>Ii&&n!==1073741824&&(t.flags|=64,s=!0,sn(o,!1),t.lanes=33554432);o.isBackwards?(u.sibling=t.child,t.child=u):(e=o.last,e!==null?e.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=re(),e.sibling=null,t=X.current,K(X,s?t&1|2:t&1),e):null;case 23:case 24:return Mi(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(h(156,t.tag))}function ia(e){switch(e.tag){case 1:me(e.type)&&Pn();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Rt(),Q(he),Q(ue),ti(),t=e.flags,(t&64)!==0)throw Error(h(285));return e.flags=t&-4097|64,e;case 5:return $r(e),null;case 13:return Q(X),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Q(X),null;case 4:return Rt(),null;case 10:return Kr(e),null;case 23:case 24:return Mi(),null;default:return null}}function di(e,t){try{var n="",o=t;do n+=Ju(o),o=o.return;while(o);var s=n}catch(u){s=`
Error generating stack: `+u.message+`
`+u.stack}return{value:e,source:t,stack:s}}function pi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var oa=typeof WeakMap=="function"?WeakMap:Map;function yl(e,t,n){n=nt(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){lr||(lr=!0,Ri=o),pi(e,t)},n}function _l(e,t,n){n=nt(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var s=t.value;n.payload=function(){return pi(e,t),o(s)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(je===null?je=new Set([this]):je.add(this),pi(e,t));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),n}var la=typeof WeakSet=="function"?WeakSet:Set;function El(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){st(e,n)}else t.current=null}function sa(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,o=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Oe(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:Le&&t.flags&256&&Ar(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(h(163))}function wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&o()}n=n.next}while(n!==t)}}function ua(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var s=e;o=s.next,s=s.tag,(s&4)!==0&&(s&1)!==0&&(Bl(n,e),ga(n,e)),e=o}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Oe(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Bo(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=Nr(n.child.stateNode);break;case 1:e=n.child.stateNode}Bo(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&yu(e,n.type,n.memoizedProps,n);return;case 6:return;case 4:return;case 12:return;case 13:Me&&n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Uu(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(h(163))}function Sl(e,t){if(Le)for(var n=e;;){if(n.tag===5){var o=n.stateNode;t?ku(o):Tu(n.stateNode,n.memoizedProps)}else if(n.tag===6)o=n.stateNode,t?Pu(o):Iu(o,n.memoizedProps);else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function xl(e,t){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(jr,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var o=n,s=o.destroy;if(o=o.tag,s!==void 0)if((o&4)!==0)Bl(t,n);else{o=t;try{s()}catch(u){st(o,u)}}n=n.next}while(n!==e)}break;case 1:if(El(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(u){st(t,u)}break;case 5:El(t);break;case 4:Le?Rl(e,t):Ft&&Ft&&(t=t.stateNode.containerInfo,e=mo(t),go(t,e))}}function kl(e,t){for(var n=t;;)if(xl(e,n),n.child===null||Le&&n.tag===4){if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Pl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Tl(e){return e.tag===5||e.tag===3||e.tag===4}function Il(e){if(Le){e:{for(var t=e.return;t!==null;){if(Tl(t))break e;t=t.return}throw Error(h(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:t=t.containerInfo,o=!0;break;case 4:t=t.containerInfo,o=!0;break;default:throw Error(h(161))}n.flags&16&&(ho(t),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Tl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?hi(e,n,t):mi(e,n,t)}}function hi(e,t,n){var o=e.tag,s=o===5||o===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?wu(n,e,t):vu(n,e);else if(o!==4&&(e=e.child,e!==null))for(hi(e,t,n),e=e.sibling;e!==null;)hi(e,t,n),e=e.sibling}function mi(e,t,n){var o=e.tag,s=o===5||o===6;if(s)e=s?e.stateNode:e.stateNode.instance,t?Eu(n,e,t):mu(n,e);else if(o!==4&&(e=e.child,e!==null))for(mi(e,t,n),e=e.sibling;e!==null;)mi(e,t,n),e=e.sibling}function Rl(e,t){for(var n=t,o=!1,s,u;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(h(160));switch(s=o.stateNode,o.tag){case 5:u=!1;break e;case 3:s=s.containerInfo,u=!0;break e;case 4:s=s.containerInfo,u=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6)kl(e,n),u?xu(s,n.stateNode):Su(s,n.stateNode);else if(n.tag===4){if(n.child!==null){s=n.stateNode.containerInfo,u=!0,n.child.return=n,n=n.child;continue}}else if(xl(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function vi(e,t){if(Le){switch(t.tag){case 0:case 11:case 14:case 15:case 22:wl(3,t);return;case 1:return;case 5:var n=t.stateNode;if(n!=null){var o=t.memoizedProps;e=e!==null?e.memoizedProps:o;var s=t.type,u=t.updateQueue;t.updateQueue=null,u!==null&&_u(n,u,s,e,o,t)}return;case 6:if(t.stateNode===null)throw Error(h(162));n=t.memoizedProps,gu(t.stateNode,e!==null?e.memoizedProps:n,n);return;case 3:Me&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,wo(t.containerInfo)));return;case 12:return;case 13:zl(t),Jn(t);return;case 19:Jn(t);return;case 17:return;case 23:case 24:Sl(t,t.memoizedState!==null);return}throw Error(h(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:wl(3,t);return;case 12:return;case 13:zl(t),Jn(t);return;case 19:Jn(t);return;case 3:Me&&(n=t.stateNode,n.hydrate&&(n.hydrate=!1,wo(n.containerInfo)));break;case 23:case 24:return}e:if(Ft){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,go(t.containerInfo,t.pendingChildren);break e}throw Error(h(163))}}function zl(e){e.memoizedState!==null&&(Ti=re(),Le&&Sl(e.child,!0))}function Jn(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new la),t.forEach(function(o){var s=Ea.bind(null,e,o);n.has(o)||(n.add(o),o.then(s,s))})}}function aa(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var $n=0,bn=1,er=2,tr=3,nr=4;if(typeof Symbol=="function"&&Symbol.for){var un=Symbol.for;$n=un("selector.component"),bn=un("selector.has_pseudo_class"),er=un("selector.role"),tr=un("selector.test_id"),nr=un("selector.text")}function gi(e){var t=ou(e);if(t!=null){if(typeof t.memoizedProps["data-testname"]!="string")throw Error(h(364));return t}if(e=au(e),e===null)throw Error(h(362));return e.stateNode.current}function yi(e,t){switch(t.$$typeof){case $n:if(e.type===t.value)return!0;break;case bn:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var o=e[n++],s=e[n++],u=t[s];if(o.tag!==5||!Qt(o)){for(;u!=null&&yi(o,u);)s++,u=t[s];if(s===t.length){t=!0;break e}else for(o=o.child;o!==null;)e.push(o,s),o=o.sibling}}t=!1}return t;case er:if(e.tag===5&&du(e.stateNode,t.value))return!0;break;case nr:if((e.tag===5||e.tag===6)&&(e=fu(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case tr:if(e.tag===5&&(e=e.memoizedProps["data-testname"],typeof e=="string"&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(h(365,t))}return!1}function _i(e){switch(e.$$typeof){case $n:return"<"+(ct(e.value)||"Unknown")+">";case bn:return":has("+(_i(e)||"")+")";case er:return'[role="'+e.value+'"]';case nr:return'"'+e.value+'"';case tr:return'[data-testname="'+e.value+'"]';default:throw Error(h(365,e))}}function Nl(e,t){var n=[];e=[e,0];for(var o=0;o<e.length;){var s=e[o++],u=e[o++],c=t[u];if(s.tag!==5||!Qt(s)){for(;c!=null&&yi(s,c);)u++,c=t[u];if(u===t.length)n.push(s);else for(s=s.child;s!==null;)e.push(s,u),s=s.sibling}}return n}function Ei(e,t){if(!Vt)throw Error(h(363));e=gi(e),e=Nl(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var o=e[n++];if(o.tag===5)Qt(o)||t.push(o.stateNode);else for(o=o.child;o!==null;)e.push(o),o=o.sibling}return t}var rr=null;function ca(e){if(rr===null)try{var t=("require"+Math.random()).slice(0,7);rr=(l&&l[t]).call(l,"timers").setImmediate}catch{rr=function(o){var s=new MessageChannel;s.port1.onmessage=o,s.port2.postMessage(void 0)}}return rr(e)}var fa=Math.ceil,ir=k.ReactCurrentDispatcher,wi=k.ReactCurrentOwner,Si=k.IsSomeRendererActing,C=0,de=null,$=null,ce=0,yt=0,xi=$e(0),oe=0,or=null,Nt=0,an=0,Ct=0,ki=0,Pi=null,Ti=0,Ii=1/0;function it(){Ii=re()+500}var I=null,lr=!1,Ri=null,je=null,ot=!1,cn=null,fn=90,zi=[],Ni=[],Ge=null,dn=0,Ci=null,sr=-1,qe=0,ur=0,pn=null,hn=!1;function ye(){return(C&48)!==0?re():sr!==-1?sr:sr=re()}function lt(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return kt()===99?1:2;if(qe===0&&(qe=Nt),Ku.transition!==0){ur!==0&&(ur=Pi!==null?Pi.pendingLanes:0),e=qe;var t=4186112&~ur;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=kt(),(C&4)!==0&&e===98?e=Rn(12,qe):(e=Hu(e),e=Rn(e,qe)),e}function Ke(e,t,n){if(50<dn)throw dn=0,Ci=null,Error(h(185));if(e=ar(e,t),e===null)return null;zn(e,t,n),e===de&&(Ct|=t,oe===4&&Lt(e,ce));var o=kt();t===1?(C&8)!==0&&(C&48)===0?Li(e):(we(e,n),C===0&&(it(),xe())):((C&4)===0||o!==98&&o!==99||(Ge===null?Ge=new Set([e]):Ge.add(e)),we(e,n)),Pi=e}function ar(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function we(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes;0<c;){var d=31-et(c),g=1<<d,x=u[d];if(x===-1){if((g&o)===0||(g&s)!==0){x=t,ht(g);var z=F;u[d]=10<=z?x+250:6<=z?x+5e3:-1}}else x<=t&&(e.expiredLanes|=g);c&=~g}if(o=Gt(e,e===de?ce:0),t=F,o===0)n!==null&&(n!==Yr&&Vr(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Yr&&Vr(n)}t===15?(n=Li.bind(null,e),Fe===null?(Fe=[n],Cn=Fr(Nn,Mo)):Fe.push(n),n=Yr):t===14?n=qt(99,Li.bind(null,e)):(n=ju(t),n=qt(n,Cl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Cl(e){if(sr=-1,ur=qe=0,(C&48)!==0)throw Error(h(327));var t=e.callbackNode;if(Xe()&&e.callbackNode!==t)return null;var n=Gt(e,e===de?ce:0);if(n===0)return null;var o=n,s=C;C|=16;var u=Al();(de!==e||ce!==o)&&(it(),Mt(e,o));do try{ha();break}catch(d){Ol(e,d)}while(1);if(qr(),ir.current=u,C=s,$!==null?o=0:(de=null,ce=0,o=oe),(Nt&Ct)!==0)Mt(e,0);else if(o!==0){if(o===2&&(C|=64,e.hydrate&&(e.hydrate=!1,Ar(e.containerInfo)),n=Po(e),n!==0&&(o=mn(e,n))),o===1)throw t=or,Mt(e,0),Lt(e,n),we(e,re()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(h(345));case 2:_t(e);break;case 3:if(Lt(e,n),(n&62914560)===n&&(o=Ti+500-re(),10<o)){if(Gt(e,0)!==0)break;if(s=e.suspendedLanes,(s&n)!==n){ye(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=fo(_t.bind(null,e),o);break}_t(e);break;case 4:if(Lt(e,n),(n&4186112)===n)break;for(o=e.eventTimes,s=-1;0<n;){var c=31-et(n);u=1<<c,c=o[c],c>s&&(s=c),n&=~u}if(n=s,n=re()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*fa(n/1960))-n,10<n){e.timeoutHandle=fo(_t.bind(null,e),n);break}_t(e);break;case 5:_t(e);break;default:throw Error(h(329))}}return we(e,re()),e.callbackNode===t?Cl.bind(null,e):null}function Lt(e,t){for(t&=~ki,t&=~Ct,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),o=1<<n;e[n]=-1,t&=~o}}function Li(e){if((C&48)!==0)throw Error(h(327));if(Xe(),e===de&&(e.expiredLanes&ce)!==0){var t=ce,n=mn(e,t);(Nt&Ct)!==0&&(t=Gt(e,t),n=mn(e,t))}else t=Gt(e,0),n=mn(e,t);if(e.tag!==0&&n===2&&(C|=64,e.hydrate&&(e.hydrate=!1,Ar(e.containerInfo)),t=Po(e),t!==0&&(n=mn(e,t))),n===1)throw n=or,Mt(e,0),Lt(e,t),we(e,re()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,_t(e),we(e,re()),null}function da(){if(Ge!==null){var e=Ge;Ge=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,we(t,re())})}xe()}function Ll(e,t){var n=C;C|=1;try{return e(t)}finally{C=n,C===0&&(it(),xe())}}function Ml(e,t){var n=C;if((n&48)!==0)return e(t);C|=1;try{if(e)return Ve(99,e.bind(null,t))}finally{C=n,xe()}}function cr(e,t){K(xi,yt),yt|=t,Nt|=t}function Mi(){yt=xi.current,Q(xi)}function Mt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==Mr&&(e.timeoutHandle=Mr,iu(n)),$!==null)for(n=$.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&Pn();break;case 3:Rt(),Q(he),Q(ue),ti();break;case 5:$r(o);break;case 4:Rt();break;case 13:Q(X);break;case 19:Q(X);break;case 10:Kr(o);break;case 23:case 24:Mi()}n=n.return}de=e,$=ut(e.current,null),ce=yt=Nt=t,oe=0,or=null,ki=Ct=an=0}function Ol(e,t){do{var n=$;try{if(qr(),$t.current=qn,Vn){for(var o=Z.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Vn=!1}if(bt=0,ie=ae=Z=null,en=!1,wi.current=null,n===null||n.return===null){oe=1,or=t,$=null;break}e:{var u=e,c=n.return,d=n,g=t;if(t=ce,d.flags|=2048,d.firstEffect=d.lastEffect=null,g!==null&&typeof g=="object"&&typeof g.then=="function"){var x=g;if((d.mode&2)===0){var z=d.alternate;z?(d.updateQueue=z.updateQueue,d.memoizedState=z.memoizedState,d.lanes=z.lanes):(d.updateQueue=null,d.memoizedState=null)}var L=(X.current&1)!==0,T=c;do{var W;if(W=T.tag===13){var Y=T.memoizedState;if(Y!==null)W=Y.dehydrated!==null;else{var ze=T.memoizedProps;W=ze.fallback===void 0?!1:ze.unstable_avoidThisFallback!==!0?!0:!L}}if(W){var m=T.updateQueue;if(m===null){var p=new Set;p.add(x),T.updateQueue=p}else m.add(x);if((T.mode&2)===0){if(T.flags|=64,d.flags|=16384,d.flags&=-2981,d.tag===1)if(d.alternate===null)d.tag=17;else{var y=nt(-1,1);y.tag=2,rt(d,y)}d.lanes|=1;break e}g=void 0,d=t;var P=u.pingCache;if(P===null?(P=u.pingCache=new oa,g=new Set,P.set(x,g)):(g=P.get(x),g===void 0&&(g=new Set,P.set(x,g))),!g.has(d)){g.add(d);var N=_a.bind(null,u,x,d);x.then(N,N)}T.flags|=4096,T.lanes=t;break e}T=T.return}while(T!==null);g=Error((ct(d.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}oe!==5&&(oe=2),g=di(g,d),T=c;do{switch(T.tag){case 3:u=g,T.flags|=4096,t&=-t,T.lanes|=t;var V=yl(T,u,t);Uo(T,V);break e;case 1:u=g;var M=T.type,H=T.stateNode;if((T.flags&64)===0&&(typeof M.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(je===null||!je.has(H)))){T.flags|=4096,t&=-t,T.lanes|=t;var J=_l(T,u,t);Uo(T,J);break e}}T=T.return}while(T!==null)}Ul(n)}catch(U){t=U,$===n&&n!==null&&($=n=n.return);continue}break}while(1)}function Al(){var e=ir.current;return ir.current=qn,e===null?qn:e}function mn(e,t){var n=C;C|=16;var o=Al();de===e&&ce===t||Mt(e,t);do try{pa();break}catch(s){Ol(e,s)}while(1);if(qr(),C=n,ir.current=o,$!==null)throw Error(h(261));return de=null,ce=0,oe}function pa(){for(;$!==null;)Dl($)}function ha(){for(;$!==null&&!Yu();)Dl($)}function Dl(e){var t=jl(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Ul(e):$=t,wi.current=null}function Ul(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=ra(n,t,yt),n!==null){$=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(yt&1073741824)!==0||(n.mode&4)===0){for(var o=0,s=n.child;s!==null;)o|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=o}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=ia(t),n!==null){n.flags&=2047,$=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){$=t;return}$=t=e}while(t!==null);oe===0&&(oe=5)}function _t(e){var t=kt();return Ve(99,ma.bind(null,e,t)),null}function ma(e,t){do Xe();while(cn!==null);if((C&48)!==0)throw Error(h(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(h(177));e.callbackNode=null;var o=n.lanes|n.childLanes,s=o,u=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var c=e.eventTimes,d=e.expirationTimes;0<u;){var g=31-et(u),x=1<<g;s[g]=0,c[g]=-1,d[g]=-1,u&=~x}if(Ge!==null&&(o&24)===0&&Ge.has(e)&&Ge.delete(e),e===de&&($=de=null,ce=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){s=C,C|=32,wi.current=null,pn=tu(e.containerInfo),hn=!1,I=o;do try{va()}catch(p){if(I===null)throw Error(h(330));st(I,p),I=I.nextEffect}while(I!==null);pn=null,I=o;do try{for(c=e;I!==null;){var z=I.flags;if(z&16&&Le&&ho(I.stateNode),z&128){var L=I.alternate;if(L!==null){var T=L.ref;T!==null&&(typeof T=="function"?T(null):T.current=null)}}switch(z&1038){case 2:Il(I),I.flags&=-3;break;case 6:Il(I),I.flags&=-3,vi(I.alternate,I);break;case 1024:I.flags&=-1025;break;case 1028:I.flags&=-1025,vi(I.alternate,I);break;case 4:vi(I.alternate,I);break;case 8:d=c,u=I,Le?Rl(d,u):kl(d,u);var W=u.alternate;Pl(u),W!==null&&Pl(W)}I=I.nextEffect}}catch(p){if(I===null)throw Error(h(330));st(I,p),I=I.nextEffect}while(I!==null);hn&&su(),nu(e.containerInfo),e.current=n,I=o;do try{for(z=e;I!==null;){var Y=I.flags;if(Y&36&&ua(z,I.alternate,I),Y&128){L=void 0;var ze=I.ref;if(ze!==null){var m=I.stateNode;switch(I.tag){case 5:L=Nr(m);break;default:L=m}typeof ze=="function"?ze(L):ze.current=L}}I=I.nextEffect}}catch(p){if(I===null)throw Error(h(330));st(I,p),I=I.nextEffect}while(I!==null);I=null,qu(),C=s}else e.current=n;if(ot)ot=!1,cn=e,fn=t;else for(I=o;I!==null;)t=I.nextEffect,I.nextEffect=null,I.flags&8&&(Y=I,Y.sibling=null,Y.stateNode=null),I=t;if(o=e.pendingLanes,o===0&&(je=null),o===1?e===Ci?dn++:(dn=0,Ci=e):dn=0,n=n.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(jr,n,void 0,(n.current.flags&64)===64)}catch{}if(we(e,re()),lr)throw lr=!1,e=Ri,Ri=null,e;return(C&8)!==0||xe(),null}function va(){for(;I!==null;){var e=I.alternate;hn||pn===null||((I.flags&8)!==0?so(I,pn)&&(hn=!0,po()):I.tag===13&&aa(e,I)&&so(I,pn)&&(hn=!0,po()));var t=I.flags;(t&256)!==0&&sa(e,I),(t&512)===0||ot||(ot=!0,qt(97,function(){return Xe(),null})),I=I.nextEffect}}function Xe(){if(fn!==90){var e=97<fn?97:fn;return fn=90,Ve(e,ya)}return!1}function ga(e,t){zi.push(t,e),ot||(ot=!0,qt(97,function(){return Xe(),null}))}function Bl(e,t){Ni.push(t,e),ot||(ot=!0,qt(97,function(){return Xe(),null}))}function ya(){if(cn===null)return!1;var e=cn;if(cn=null,(C&48)!==0)throw Error(h(331));var t=C;C|=32;var n=Ni;Ni=[];for(var o=0;o<n.length;o+=2){var s=n[o],u=n[o+1],c=s.destroy;if(s.destroy=void 0,typeof c=="function")try{c()}catch(g){if(u===null)throw Error(h(330));st(u,g)}}for(n=zi,zi=[],o=0;o<n.length;o+=2){s=n[o],u=n[o+1];try{var d=s.create;s.destroy=d()}catch(g){if(u===null)throw Error(h(330));st(u,g)}}for(d=e.current.firstEffect;d!==null;)e=d.nextEffect,d.nextEffect=null,d.flags&8&&(d.sibling=null,d.stateNode=null),d=e;return C=t,xe(),!0}function Hl(e,t,n){t=di(n,t),t=yl(e,t,1),rt(e,t),t=ye(),e=ar(e,1),e!==null&&(zn(e,1,t),we(e,t))}function st(e,t){if(e.tag===3)Hl(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Hl(n,e,t);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(je===null||!je.has(o))){e=di(t,e);var s=_l(n,e,1);if(rt(n,s),s=ye(),n=ar(n,1),n!==null)zn(n,1,s),we(n,s);else if(typeof o.componentDidCatch=="function"&&(je===null||!je.has(o)))try{o.componentDidCatch(t,e)}catch{}break}}n=n.return}}function _a(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=ye(),e.pingedLanes|=e.suspendedLanes&n,de===e&&(ce&n)===n&&(oe===4||oe===3&&(ce&62914560)===ce&&500>re()-Ti?Mt(e,0):ki|=n),we(e,t)}function Ea(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=kt()===99?1:2:(qe===0&&(qe=Nt),t=xt(62914560&~qe),t===0&&(t=4194304))),n=ye(),e=ar(e,t),e!==null&&(zn(e,t,n),we(e,n))}var jl;jl=function(e,t,n){var o=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)Ae=!0;else if((n&o)!==0)Ae=(e.flags&16384)!==0;else{switch(Ae=!1,t.tag){case 3:cl(t),ei();break;case 5:Yo(t);break;case 1:me(t.type)&&Tn(t);break;case 4:Jr(t,t.stateNode.containerInfo);break;case 10:Oo(t,t.memoizedProps.value);break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?fl(e,t,n):(K(X,X.current&1),t=Ye(e,t,n),t!==null?t.sibling:null);K(X,X.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&64)!==0){if(o)return vl(e,t,n);t.flags|=64}var s=t.memoizedState;if(s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(X,X.current),o)break;return null;case 23:case 24:return t.lanes=0,ui(e,t,n)}return Ye(e,t,n)}else Ae=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=St(t,ue.current),Tt(t,n),s=ri(null,t,o,e,s,n),t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(o)){var u=!0;Tn(t)}else u=!1;t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Xr(t);var c=o.getDerivedStateFromProps;typeof c=="function"&&Dn(t,o,c,e),s.updater=Un,t.stateNode=s,s._reactInternals=t,Zr(t,o,e,n),t=ci(null,t,o,!0,u,n)}else t.tag=0,ge(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=Sa(s),e=Oe(s,e),u){case 0:t=ai(null,t,s,e,n);break e;case 1:t=al(null,t,s,e,n);break e;case 11:t=ol(null,t,s,e,n);break e;case 14:t=ll(null,t,s,Oe(s.type,e),o,n);break e}throw Error(h(306,s,""))}return t;case 0:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oe(o,s),ai(e,t,o,s,n);case 1:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oe(o,s),al(e,t,o,s,n);case 3:if(cl(t),o=t.updateQueue,e===null||o===null)throw Error(h(282));if(o=t.pendingProps,s=t.memoizedState,s=s!==null?s.element:null,Do(e,t),Kt(t,o,null,n),o=t.memoizedState.element,o===s)ei(),t=Ye(e,t,n);else{if(s=t.stateNode,(u=s.hydrate)&&(Me?(mt=Eo(t.stateNode.containerInfo),Qe=t,u=Ue=!0):u=!1),u){if(Me&&(e=s.mutableSourceEagerHydrationData,e!=null))for(s=0;s<e.length;s+=2)u=e[s],c=e[s+1],ft?u._workInProgressVersionPrimary=c:u._workInProgressVersionSecondary=c,zt.push(u);for(n=Qo(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ge(e,t,o,n),ei();t=t.child}return t;case 5:return Yo(t),e===null&&br(t),o=t.type,s=t.pendingProps,u=e!==null?e.memoizedProps:null,c=s.children,Lr(o,s)?c=null:u!==null&&Lr(o,u)&&(t.flags|=16),ul(e,t),ge(e,t,c,n),t.child;case 6:return e===null&&br(t),null;case 13:return fl(e,t,n);case 4:return Jr(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=jn(t,null,o,n):ge(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oe(o,s),ol(e,t,o,s,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,s=t.pendingProps,c=t.memoizedProps,u=s.value,Oo(t,u),c!==null){var d=c.value;if(u=ke(d,u)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(d,u):1073741823)|0,u===0){if(c.children===s.children&&!he.current){t=Ye(e,t,n);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var g=d.dependencies;if(g!==null){c=d.child;for(var x=g.firstContext;x!==null;){if(x.context===o&&(x.observedBits&u)!==0){d.tag===1&&(x=nt(-1,n&-n),x.tag=2,rt(d,x)),d.lanes|=n,x=d.alternate,x!==null&&(x.lanes|=n),Ao(d.return,n),g.lanes|=n;break}x=x.next}}else c=d.tag===10&&d.type===t.type?null:d.child;if(c!==null)c.return=d;else for(c=d;c!==null;){if(c===t){c=null;break}if(d=c.sibling,d!==null){d.return=c.return,c=d;break}c=c.return}d=c}}ge(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,u=t.pendingProps,o=u.children,Tt(t,n),s=Pe(s,u.unstable_observedBits),o=o(s),t.flags|=1,ge(e,t,o,n),t.child;case 14:return s=t.type,u=Oe(s,t.pendingProps),u=Oe(s.type,u),ll(e,t,s,u,o,n);case 15:return sl(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:Oe(o,s),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,me(o)?(e=!0,Tn(t)):e=!1,Tt(t,n),Wo(t,o,s),Zr(t,o,s,n),ci(null,t,o,!0,e,n);case 19:return vl(e,t,n);case 23:return ui(e,t,n);case 24:return ui(e,t,n)}throw Error(h(156,t.tag))};var fr={current:!1},Oi=_.unstable_flushAllWithoutAsserting,Wl=typeof Oi=="function";function Ai(){if(Oi!==void 0)return Oi();for(var e=!1;Xe();)e=!0;return e}function Fl(e){try{Ai(),ca(function(){Ai()?Fl(e):e()})}catch(t){e(t)}}var dr=0,Vl=!1;function wa(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Re(e,t,n,o){return new wa(e,t,n,o)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sa(e){if(typeof e=="function")return Di(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ee)return 11;if(e===se)return 14}return 2}function ut(e,t){var n=e.alternate;return n===null?(n=Re(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pr(e,t,n,o,s,u){var c=2;if(o=e,typeof e=="function")Di(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case S:return Ot(n.children,s,u,t);case ne:c=8,s|=16;break;case R:c=8,s|=1;break;case A:return e=Re(12,n,t,s|8),e.elementType=A,e.type=A,e.lanes=u,e;case Ee:return e=Re(13,n,t,s),e.type=Ee,e.elementType=Ee,e.lanes=u,e;case pe:return e=Re(19,n,t,s),e.elementType=pe,e.lanes=u,e;case Ce:return Ui(n,s,u,t);case We:return e=Re(24,n,t,s),e.elementType=We,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:c=10;break e;case B:c=9;break e;case ee:c=11;break e;case se:c=14;break e;case te:c=16,o=null;break e;case Se:c=22;break e}throw Error(h(130,e==null?e:typeof e,""))}return t=Re(c,n,t,s),t.elementType=e,t.type=o,t.lanes=u,t}function Ot(e,t,n,o){return e=Re(7,e,o,t),e.lanes=n,e}function Ui(e,t,n,o){return e=Re(23,e,o,t),e.elementType=Ce,e.lanes=n,e}function Bi(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function Hi(e,t,n){return t=Re(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xa(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Mr,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Wr(0),this.expirationTimes=Wr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wr(0),Me&&(this.mutableSourceEagerHydrationData=null)}function Ql(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(h(188)):Error(h(268,Object.keys(e)));return e=lo(t),e===null?null:e.stateNode}function Yl(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hr(e,t){Yl(e,t),(e=e.alternate)&&Yl(e,t)}function ka(e){return e=lo(e),e===null?null:e.stateNode}function Pa(){return null}return a.IsThisRendererActing=fr,a.act=function(e){function t(){dr--,Si.current=n,fr.current=o}Vl===!1&&(Vl=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),dr++;var n=Si.current,o=fr.current;Si.current=!0,fr.current=!0;try{var s=Ll(e)}catch(u){throw t(),u}if(s!==null&&typeof s=="object"&&typeof s.then=="function")return{then:function(u,c){s.then(function(){1<dr||Wl===!0&&n===!0?(t(),u()):Fl(function(d){t(),d?c(d):u()})},function(d){t(),c(d)})}};try{dr!==1||Wl!==!1&&n!==!1||Ai(),t()}catch(u){throw t(),u}return{then:function(u){u()}}},a.attemptContinuousHydration=function(e){if(e.tag===13){var t=ye();Ke(e,67108864,t),hr(e,67108864)}},a.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13){var t=ye(),n=lt(e);Ke(e,n,t),hr(e,n)}},a.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.hydrate){var n=ht(t.pendingLanes);t.expiredLanes|=n&t.pendingLanes,we(t,re()),(C&48)===0&&(it(),xe())}break;case 13:var o=ye();Ml(function(){return Ke(e,1,o)}),hr(e,4)}},a.attemptUserBlockingHydration=function(e){if(e.tag===13){var t=ye();Ke(e,4,t),hr(e,4)}},a.batchedEventUpdates=function(e,t){var n=C;C|=2;try{return e(t)}finally{C=n,C===0&&(it(),xe())}},a.batchedUpdates=Ll,a.createComponentSelector=function(e){return{$$typeof:$n,value:e}},a.createContainer=function(e,t,n){return e=new xa(e,t,n),t=Re(3,null,null,t===2?7:t===1?3:0),e.current=t,t.stateNode=e,Xr(t),e},a.createHasPsuedoClassSelector=function(e){return{$$typeof:bn,value:e}},a.createPortal=function(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}},a.createRoleSelector=function(e){return{$$typeof:er,value:e}},a.createTestNameSelector=function(e){return{$$typeof:tr,value:e}},a.createTextSelector=function(e){return{$$typeof:nr,value:e}},a.deferredUpdates=function(e){return Ve(97,e)},a.discreteUpdates=function(e,t,n,o,s){var u=C;C|=4;try{return Ve(98,e.bind(null,t,n,o,s))}finally{C=u,C===0&&(it(),xe())}},a.findAllNodes=Ei,a.findBoundingRects=function(e,t){if(!Vt)throw Error(h(363));t=Ei(e,t),e=[];for(var n=0;n<t.length;n++)e.push(cu(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var o=n.x,s=o+n.width,u=n.y,c=u+n.height,d=t-1;0<=d;d--)if(t!==d){var g=e[d],x=g.x,z=x+g.width,L=g.y,T=L+g.height;if(o>=x&&u>=L&&s<=z&&c<=T){e.splice(t,1);break}else if(o!==x||n.width!==g.width||T<u||L>c){if(!(u!==L||n.height!==g.height||z<o||x>s)){x>o&&(g.width+=x-o,g.x=o),z<s&&(g.width=s-x),e.splice(t,1);break}}else{L>u&&(g.height+=L-u,g.y=u),T<c&&(g.height=c-L),e.splice(t,1);break}}}return e},a.findHostInstance=Ql,a.findHostInstanceWithNoPortals=function(e){return e=$s(e),e===null?null:e.tag===20?e.stateNode.instance:e.stateNode},a.findHostInstanceWithWarning=function(e){return Ql(e)},a.flushControlled=function(e){var t=C;C|=1;try{Ve(99,e)}finally{C=t,C===0&&(it(),xe())}},a.flushDiscreteUpdates=function(){(C&49)===0&&(da(),Xe())},a.flushPassiveEffects=Xe,a.flushSync=Ml,a.focusWithin=function(e,t){if(!Vt)throw Error(h(363));for(e=gi(e),t=Nl(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!Qt(n)){if(n.tag===5&&pu(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},a.getCurrentUpdateLanePriority=function(){return In},a.getFindAllNodesFailureDescription=function(e,t){if(!Vt)throw Error(h(363));var n=0,o=[];e=[gi(e),0];for(var s=0;s<e.length;){var u=e[s++],c=e[s++],d=t[c];if((u.tag!==5||!Qt(u))&&(yi(u,d)&&(o.push(_i(d)),c++,c>n&&(n=c)),c<t.length))for(u=u.child;u!==null;)e.push(u,c),u=u.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(_i(t[n]));return`findAllNodes was able to match part of the selector:
`+(o.join(" > ")+`
No matching component was found for:
`)+e.join(" > ")}return null},a.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return Nr(e.child.stateNode);default:return e.child.stateNode}},a.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:ka,findFiberByHostInstance:e.findFiberByHostInstance||Pa,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{jr=t.inject(e),pt=t}catch{}e=!0}return e},a.observeVisibleRects=function(e,t,n,o){if(!Vt)throw Error(h(363));e=Ei(e,t);var s=hu(e,n,o).disconnect;return{disconnect:function(){s()}}},a.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},a.runWithPriority=function(e,t){var n=In;try{return In=e,t()}finally{In=n}},a.shouldSuspend=function(){return!1},a.unbatchedUpdates=function(e,t){var n=C;C&=-2,C|=8;try{return e(t)}finally{C=n,C===0&&(it(),xe())}},a.updateContainer=function(e,t,n,o){var s=t.current,u=ye(),c=lt(s);e:if(n){n=n._reactInternals;t:{if(xn(n)!==n||n.tag!==1)throw Error(h(170));var d=n;do{switch(d.tag){case 3:d=d.stateNode.context;break t;case 1:if(me(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break t}}d=d.return}while(d!==null);throw Error(h(171))}if(n.tag===1){var g=n.type;if(me(g)){n=xo(n,g,d);break e}}n=d}else n=be;return t.context===null?t.context=n:t.pendingContext=n,t=nt(u,c),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),rt(s,t),Ke(s,c,u),c},a}})(Xs);Ks.exports=Xs.exports;var Jf=_e&&_e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(no,"__esModule",{value:!0});var $f=Jf(Ks.exports),_s=$f.default({now:Date.now,getRootHostContext:function(){return{}},prepareForCommit:function(){return{}},resetAfterCommit:function(){},getChildHostContext:function(){return{}},shouldSetTextContent:function(){return!0},createInstance:function(){},createTextInstance:function(){},appendInitialChild:function(){},appendChild:function(){},finalizeInitialChildren:function(){return!1},supportsMutation:!0,appendChildToContainer:function(){},prepareUpdate:function(){return!0},commitUpdate:function(){},commitTextUpdate:function(){},removeChild:function(){},clearContainer:function(){},supportsPersistence:!1,getPublicInstance:function(l){return l},preparePortalMount:function(){},isPrimaryRenderer:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:function(l){return clearTimeout(l)},noTimeout:-1});function bf(l){var r=_s.createContainer(null,0,!1,null);return _s.updateContainer(l,r)}no.render=bf;var ed=_e&&_e.__read||function(l,r){var i=typeof Symbol=="function"&&l[Symbol.iterator];if(!i)return l;var a=i.call(l),f,v=[],_;try{for(;(r===void 0||r-- >0)&&!(f=a.next()).done;)v.push(f.value)}catch(h){_={error:h}}finally{try{f&&!f.done&&(i=a.return)&&i.call(a)}finally{if(_)throw _.error}}return v},td=_e&&_e.__importStar||function(l){if(l&&l.__esModule)return l;var r={};if(l!=null)for(var i in l)Object.hasOwnProperty.call(l,i)&&(r[i]=l[i]);return r.default=l,r};Object.defineProperty(zr,"__esModule",{value:!0});var nd=eo,rd=to,_n=td(O.exports),id=no;function Zs(l,r){var i=new nd.Container(l);id.render(_n.default.createElement(rd.Executor,{onMount:function(f){i.data=f},onUpdate:function(f){i.data=f,i.notify()},hook:function(){return l(r)}}));var a=function(f){var v,_=ed(_n.useState(function(){return i?i.data:void 0}),2),h=_[0],k=_[1],w=_n.useRef(f);w.current=f;var E=_n.useRef(((v=w.current)===null||v===void 0?void 0:v.call(w,i.data))||[]);return _n.useEffect(function(){if(!i)return;function S(R){if(!w.current)k(R);else{var A=E.current,D=w.current(R);ld(A,D)&&k(R),E.current=D}}return i.subscribers.add(S),i.data!==h&&k(i.data),function(){i.subscribers.delete(S)}},[i]),h};return Object.defineProperty(a,"data",{get:function(){return i.data}}),a}zr.createModel=Zs;function od(l,r){var i,a=function(f){return i||(i=Zs(l,r)),i(f)};return Object.defineProperty(a,"data",{get:function(){return i==null?void 0:i.data}}),a}zr.createLazyModel=od;function ld(l,r){if(l.length!==r.length)return!0;for(var i in r)if(l[i]!==r[i])return!0;return!1}var ro={},En=_e&&_e.__assign||function(){return En=Object.assign||function(l){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(l[f]=r[f])}return l},En.apply(this,arguments)},sd=_e&&_e.__values||function(l){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&l[r],a=0;if(i)return i.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&a>=l.length&&(l=void 0),{value:l&&l[a++],done:!l}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},ud=_e&&_e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(ro,"__esModule",{value:!0});var ad=ud(O.exports);function cd(l,r){return function(i){var a=function(f){var v,_,h;if(Array.isArray(l)){var k=[];try{for(var w=sd(l),E=w.next();!E.done;E=w.next()){var S=E.value;k.push(S())}}catch(D){v={error:D}}finally{try{E&&!E.done&&(_=w.return)&&_.call(w)}finally{if(v)throw v.error}}h=r(k,f)}else{var R=l();h=r(R,f)}var A=En(En({},f),h);return ad.default.createElement(i,En({},A))};return a.displayName=i.displayName+"Wrapper",a}}ro.withModel=cd;Object.defineProperty(Rr,"__esModule",{value:!0});var Js=zr,fd=Rr.createModel=Js.createModel;Rr.createLazyModel=Js.createLazyModel;var dd=ro;Rr.withModel=dd.withModel;function pd(){const[l,r]=O.exports.useState(0);return{count:l,decrement:f=>r(typeof f!="number"?l-1:l-f),increment:f=>r(typeof f!="number"?l+1:l+f)}}var hd=fd(pd);const md=(l,r)=>{let i=JSON.parse(JSON.stringify(l));if(r.type==="add")return i.list.push(r.value),{...i};if(r.type==="change")return i.list[r.value.index].data=r.value.data,{...i};throw new Error};function yd(){const l=hd(),r=["https://images.unsplash.com/photo-1620476214170-1d8080f65cdb?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3150&q=80","https://images.unsplash.com/photo-1601128533718-374ffcca299b?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3128&q=80","https://images.unsplash.com/photo-1567945716310-4745a6b7844b?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=3113&q=80","https://images.unsplash.com/photo-1624993590528-4ee743c9896e?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=200&h=1000&q=80"],[i,a]=O.exports.useState(!1),[f,v]=O.exports.useReducer(md,{list:[]}),_=()=>{v({type:"add",value:{data:2}})},h=()=>{v({type:"change",value:{index:0,data:new Date().getSeconds()}})};return Bt("div",{className:Yi.about,children:[j("p",{className:Yi.text,children:"about"}),j("h3",{children:"hox\u5168\u5C40\u72B6\u6001\u7BA1\u7406\uFF1A"}),j("p",{className:Yi.text,children:l.count}),j("h3",{children:"\u56FE\u7247\u9884\u89C8\u6A21\u5F0F\uFF1A"}),j("br",{}),j(Ba,{src:r[0],width:100,height:100,fit:"fill",onClick:()=>{a(!0)}}),j(Qf.Multi,{images:r,visible:i,onClose:()=>{a(!1)}}),j("br",{}),j("br",{}),j("h3",{children:"useReducer\u4F7F\u7528\uFF1A"}),j("br",{}),j("p",{children:JSON.stringify(f)}),j("br",{}),j("br",{}),Bt(Ha,{children:[j(ql,{color:"primary",onClick:_,children:"\u6DFB\u52A0"}),j(ql,{color:"warning",onClick:h,children:"\u4FEE\u6539"})]})]})}export{yd as default};