@cniot/android-pda-components 2.0.0-beta.21 → 2.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/es/index.cjs.js +1 -1
- package/es/index.es.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/es/index.cjs.js
CHANGED
|
@@ -10,7 +10,7 @@ m&&Q.push("max-age=".concat(m)),u&&Q.push("secure"),c&&Q.push("samesite=".concat
|
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
11
|
*/(function(e){(function(){var A={}.hasOwnProperty;function t(){for(var i="",a=0;a<arguments.length;a++){var g=arguments[a];g&&(i=r(i,n(g)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var g in i)A.call(i,g)&&i[g]&&(a=r(a,g));return a}function r(i,a){return a?i?i+" "+a:i+a:i}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Ka);var K=Ka.exports;function yl(e){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[e]||"op-overlay"}function wA(e){const{verticalPosition:A="center",visible:t=!0,closable:n=!1,onClosed:r=()=>{},onClick:i}=e,a=f.default.useRef(),[g,o]=D.useState(!t);return D.useEffect(()=>{o(!t)},[t]),g?null:f.default.createElement("div",{ref:a,className:yl(A),onClick:s=>{s.target===a.current&&n&&(o(!0),r()),s.target===a.current&&i&&i()}},e.children)}const bl=()=>{};class xl extends f.default.Component{constructor(t){super(t);we(this,"state",{showMenu:!1})}render(){const{className:t,goBack:n=!0,goBackHandle:r=bl,icon:i="scan",title:a=ne.get("\u4EFB\u52A1"),menuList:g=null}=this.props,{showMenu:o}=this.state;return f.default.createElement("div",{className:K({[t]:!0,"pda-header":!0})},n&&f.default.createElement("div",{onClick:r,className:K({"pda-header-icon":!0,["pda-header-icon-back"]:!0})}),i&&f.default.createElement("div",{className:K({"pda-header-icon":!0,["pda-header-icon-"+i]:!0})}),f.default.createElement("p",{className:K({"pda-title-text":!0})},a),g?f.default.createElement("div",{className:"pda-header-icon pda-header-more",onClick:s=>{this.setState({showMenu:!0})}}):null,f.default.createElement(wA,{visible:o,verticalPosition:"bottom",closable:!0,onClosed:s=>this.setState({showMenu:!1})},f.default.createElement("div",{className:"pda-menus"},g)))}}var Er={exports:{}};(function(e,A){function t(o){if(o&&typeof o=="object"){var s=o.which||o.keyCode||o.charCode;s&&(o=s)}if(typeof o=="number")return a[o];var l=String(o),d=n[l.toLowerCase()];if(d)return d;var d=r[l.toLowerCase()];if(d)return d;if(l.length===1)return l.charCodeAt(0)}t.isEventKey=function(s,l){if(s&&typeof s=="object"){var d=s.which||s.keyCode||s.charCode;if(d==null)return!1;if(typeof l=="string"){var v=n[l.toLowerCase()];if(v)return v===d;var v=r[l.toLowerCase()];if(v)return v===d}else if(typeof l=="number")return l===d;return!1}},A=e.exports=t;var n=A.code=A.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=A.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
|
|
12
12
|
* Programatically add the following
|
|
13
|
-
*/for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var a=A.names=A.title={};for(i in n)a[n[i]]=i;for(var g in r)n[g]=r[g]})(Er,Er.exports);var Rl=Er.exports;function Ce(e){const{type:A="default",onClick:t,className:n="",tabIndex:r=1,dataClick:i=""}=e;let a={};return i&&(a["data-click"]=i),f.default.createElement("button",{className:`pda-button pda-button-${A} ${n}`,onClick:t,tabIndex:r,...a},e.children)}function Ol(e){return f.default.createElement("div",{className:"button-group"},e.children)}Ce.Group=Ol;const Ya=["fn"],Fl=()=>{};function Ml(e){const{onBack:A,icon:t,title:n,menus:r=[],onClickMenuItem:i=Fl,onScanBarcode:a,onScan:g,onRfidRead:o,onRfidReadContinuous:s,onRfidReadAll:l,cancelMenuText:d,configIconClick:v=null,menuShortcutKey:w,backShortcutKey:C}=e,[h,E]=f.default.useState(!1);return f.default.useEffect(function(){if(w)return Af(ef(w),function(){E(!0)})},[w]),f.default.useEffect(function(){if(C&&A)return Af(ef(C),function(){A("back")})},[C,A]),f.default.useEffect(()=>Ll(function(){A&&A("back")}),[A]),f.default.useEffect(()=>Nl(function(P){a&&a(P),g&&g(P)}),[a,g]),f.default.useEffect(()=>{if(o||s||l)return kl(o,s,l)},[o,s,l]),f.default.createElement("div",{className:"pda-header"},A&&f.default.createElement("div",{onClick:()=>{A("back")},className:"pda-header-icon pda-header-icon-back"}),t&&f.default.createElement("div",{className:`pda-header-icon pda-header-icon-${t}`}),f.default.createElement("div",{className:"pda-title-text"},n),r&&r.length?f.default.createElement("div",{className:"pda-header-icon pda-header-more",onClick:()=>E(!0)}):null,v?f.default.createElement("div",{className:"pda-header-icon pda-header-config",onClick:v}):null,f.default.createElement(wA,{visible:h,verticalPosition:"bottom",closable:!1,onClosed:()=>E(!1)},f.default.createElement("div",{className:"pda-menus"},r.map((P,m)=>f.default.createElement(Ce,{onClick:()=>{E(!1),i(P),P.action&&P.action(P)},key:P.key||m},P.label)),d?f.default.createElement("div",{style:{marginTop:20}},f.default.createElement(Ce,{onClick:()=>E(!1)},d)):null)))}function ef(e){return(e.indexOf(",")>-1?e.split(","):[e]).map(t=>{if(Ya.indexOf(t.toLowerCase())>-1)return t.toLowerCase();const n=Rl(t);return n===void 0&&console.warn("OPButton.shortcutKey error key value by:",t),n}).filter(t=>t!==void 0)}function Af(e,A){function t(n){const r=n.key.toLowerCase(),i=Ya.indexOf(r)>-1?r:n.keyCode;e.indexOf(i)>-1&&A&&A(n)}return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}}function Ll(e){function A(t){t.param.originValue=="back"&&e&&e()}return document.addEventListener("keyPressed",A,!1),function(){document.removeEventListener("keyPressed",A)}}const tf=["F22","F23","F24","F9","F16",523];function kl(e,A,t){let n=null,r=[];function i(o){n!==null&&(n===!1&&e&&e(o.param.rfidData),A&&A(o.param.rfidData),r=o.param.rfidHistory,n=!0)}function a(o){const s=o.param||o.keyCode;tf.indexOf(s)>-1&&(n=!1,r=[],WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startRfidScan', 'params': null}",function(l){},function(l){}))}function g(o){const s=o.param||o.keyCode;tf.indexOf(s)>-1&&(t&&t(r),n=null,WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params': null}",function(l){},function(l){}))}return document.addEventListener("ContinuousRfidScan",i),document.addEventListener("onScanKeyDown",a),document.addEventListener("onScanKeyUp",g),function(){document.removeEventListener("ContinuousRfidScan",i),document.removeEventListener("onScanKeyDown",a),document.removeEventListener("onScanKeyUp",g)}}function Nl(e){function A(t){const n=String(t.param.scanData).trim();e&&e(n)}return document.addEventListener("BarcodeScan",A,!1),function(){document.removeEventListener("BarcodeScan",A)}}class Ja extends f.default.Component{constructor(A){super(A)}render(){const{className:A="",title:t,highlightInfo:n,subTitle:r,subHighlightInfo:i,subHighlightSubInfo:a,infoImage:g,tagText:o,highlightInfoCN:s,highlightSubInfo:l,percentage:d,highlightSubInfoCN:v,boldInfo:w,infoList:C=[],style:h={},theme:E="light"}=this.props;return f.default.createElement("div",{className:K({[A]:!0,"pda-info-card":!0,"pda-info-card-dark":E==="dark"}),style:h},f.default.createElement("div",{className:"pda-info-card-title-section"},f.default.createElement("div",{className:"pda-info-card-title"},t),o?f.default.createElement("div",{className:"pda-info-card-tag"},f.default.createElement("div",{className:"pda-info-card-tag-text"},o)):null),f.default.createElement("div",{className:"pda-info-card-highlight-section"},f.default.createElement("div",null,f.default.createElement("div",{className:"pda-info-card-highlight"},f.default.createElement("span",{className:"pda-info-card-highlight1"},n),f.default.createElement("span",{className:"pda-info-card-highlight1CN"},s),f.default.createElement("span",{className:"pda-info-card-highlight2"},l),f.default.createElement("span",{className:"pda-info-card-highlight2CN"},v)),r?f.default.createElement("div",{className:"pda-info-card-title"},r):null,i?f.default.createElement("div",{className:"pda-info-card-highlight"},f.default.createElement("span",{className:"pda-info-card-highlight1"},i),f.default.createElement("span",{className:"pda-info-card-highlight2"},a)):null),g?f.default.createElement("img",{src:g,width:150,height:150}):null),d!==void 0?f.default.createElement("div",{className:"pda-info-card-progress"},f.default.createElement("div",{className:"pda-info-card-progress-inside",style:{width:`${d*100}%`}})):null,f.default.createElement("div",{className:"pda-info-card-bold"},w),C.map((P,m)=>f.default.createElement("div",{key:m,className:"pda-info-card-list"},f.default.createElement("span",null,P.label||""),"\xA0\xA0",f.default.createElement("span",null,P.content||""))))}}Ja.IMAGE_1=`${window.PDA_IMAGE_PATH}O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png`;class Xa extends f.default.Component{constructor(A){super(A)}render(){const{className:A,header:t,onClick:n=()=>{},onHeightLightClick:r=()=>{},onIconClick:i=()=>{},highlightText:a,highlightSubText:g,stateTextList:o=[],stateList:s=[],subInfoList:l=[],style:d={},icon:v}=this.props;return f.default.createElement("div",{className:K({[A]:!0,"pda-list-item":!0}),style:d,onClick:n},t?f.default.createElement("div",{className:"pda-listitem-header"},t):null,f.default.createElement("div",{onClick:r,className:K({"pda-listitem-highlight":!0})},f.default.createElement("div",null,a),f.default.createElement("div",null,g)),f.default.createElement("div",{className:"pda-listitem-state-text"},o.map((w,C)=>f.default.createElement("span",{key:C},w.label||"","\uFF5C"))),f.default.createElement("div",{className:"pda-listitem-state-block"},s.map((w,C)=>{const h=w&&w.type?w.type:"default";return f.default.createElement("div",{key:C,className:h},w.label||"")})),v?f.default.createElement("div",{onClick:i,className:"pda-listitem-icon"},f.default.createElement("div",{className:K({"listitem-icon-container":!0,["listitem-icon-"+v]:!0})})):null,l.map((w,C)=>f.default.createElement("div",{key:C,className:"pda-listitem-subinfo"},f.default.createElement("span",null,w.label||""),"\xA0\xA0",f.default.createElement("span",null,w.content||""))))}}function Sl(){}function bn(e){const{title:A="title",message:t=null,subMessage:n=[],okText:r="okText",cancelText:i=null,okDataClick:a=null,cancelDataClick:g=null,onClick:o=Sl,type:s="primary",insertButtons:l=[],appendButtons:d=[]}=e;return f.default.createElement("div",{className:K({"confirm-wrap":!0,["confirm-"+s]:!0})},f.default.createElement("div",{className:"confirm-content"},f.default.createElement("div",{className:"confirm-title"},A),t?f.default.createElement("div",{className:"confirm-message"},t):null,n.length?f.default.createElement("div",{className:"confirm-sub-message"},n.map((v,w)=>{const{label:C,content:h}=v;return f.default.createElement("div",{className:"confirm-sub-block",key:C||w},f.default.createElement("p",{className:"confirm-sub-label"},C?C+" : ":""),f.default.createElement("p",{className:"confirm-sub-content"},h||""))})):null),f.default.createElement("div",{className:"confirm-btns"},l.length>0?f.default.createElement(Ce.Group,null,l.map((v,w)=>f.default.createElement(Ce,{key:w,onClick:()=>o(v.value),dataClick:v.dataClick},v.label))):null,f.default.createElement(Ce.Group,null,i?f.default.createElement(Ce,{className:"confirm-cancel-button",onClick:()=>o(!1),dataClick:g},i):null,f.default.createElement(Ce,{type:"primary",onClick:()=>o(!0),dataClick:a},r)),d.length>0?f.default.createElement(Ce.Group,null,d.map((v,w)=>f.default.createElement(Ce,{key:w,onClick:()=>o(v.value),dataClick:v.dataClick},v.label))):null))}function nf(e){const A={domain:"logger",method:"deviceLog",params:e};WindVane.call("WindvanePlugin","invoke",JSON.stringify(A),function(t){},function(t){})}function Tl(e){return(typeof e=="function"?e():e)||document.body}function Hl(e){return e===void 0}function Va(...e){function A(n,r){return Hl(r)?n:r}let t=Object.assign({},e[0]);for(let n=1;n<e.length;n++)t=Object.assign(t,e[n],A);return t}function vA(e){if(window.WindVane){var A={domain:"audio",method:"playSound",params:{sound:e}};WindVane.call("WindvanePlugin","invoke",JSON.stringify(A))}}function Gl(e){return{success:"toast-wrap success",warning:"toast-wrap warning",error:"toast-wrap error"}[e]||"toast-wrap"}function dA(e){const{title:A="title",message:t="message",type:n="success",duration:r=null,hasVoice:i=!0,onClick:a}=e,[g,o]=D.useState(!1);return D.useEffect(()=>{window.WindVane&&i&&(n==="warning"?(vA("error1"),window.WindVane.call("WVMotion","vibrate",{duration:400})):n==="error"&&(vA("error2"),window.WindVane.call("WVMotion","vibrate",{duration:200}),setTimeout(()=>{window.WindVane.call("WVMotion","vibrate",{duration:300})},250)))},[]),r&&setTimeout(()=>{o(!0)},r),g?null:f.default.createElement("div",{className:Gl(n),onClick:a},f.default.createElement("div",{className:"toast-title"},A),f.default.createElement("div",{className:"toast-message"},t))}const zl={maskClickable:!0,stopPropagation:["click"]},jl=e=>{const A=Va(zl,e),{maskClickable:t,content:n,icon:r,position:i="bottom",closable:a=!0,title:g,message:o,type:s,visible:l,renderContent:d,hasVoice:v}=A;return f.default.createElement(wA,{visible:l,verticalPosition:i,closable:a},d?d():f.default.createElement(dA,{title:g,message:o,type:s,hasVoice:v}))},Wa=[];function Za(e){Jr.default.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e)}const Ul={duration:2e3};function qr(e){const A=Va(Ul,e);let t=0;const{getContainer:n=()=>document.body}=A,r=document.createElement("div");Tl(n).appendChild(r),Wa.push(r);const a=D.forwardRef((o,s)=>{const[l,d]=D.useState(!0);return D.useEffect(()=>()=>{A.afterClose&&A.afterClose()},[]),D.useEffect(()=>{if(A.duration!==0)return t=window.setTimeout(()=>{d(!1)},A.duration),()=>{window.clearTimeout(t)}},[]),D.useImperativeHandle(s,()=>({close:()=>d(!1)})),f.default.createElement(jl,{...A,getContainer:()=>r,visible:l,afterClose:()=>{Za(r)}})}),g=D.createRef();return Jr.default.render(f.default.createElement(a,{ref:g}),r),{close:()=>{var o;(o=g.current)==null||o.close()}}}function Kl(){for(;;){const e=Wa.pop();if(!e)break;Za(e)}}function Yl(e={}){const{duration:A=1e4}=e;return qr({duration:A,position:"center",closable:!1,renderContent:function(){return f.default.createElement("div",{className:"loading-box"},f.default.createElement("svg",{t:"1647243772165",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2178"},f.default.createElement("path",{d:"M512 64c247.2 0 448 200.8 448 448h-64c0-212-172-384-384-384V64z m0 832c-212 0-384-172-384-384H64c0 247.2 200.8 448 448 448v-64z","p-id":"2179"})),f.default.createElement("div",null,"LOADING..."))}})}function Jl(e={}){const{duration:A=0,...t}=e;return qr({duration:A,position:"bottom",closable:!0,renderContent:function(){return f.default.createElement(bn,{...t})}})}dA.show=qr;dA.loading=Yl;dA.confirm=Jl;dA.clear=Kl;function Xl(e){const{data:A={},onNext:t}=e;return f.default.createElement(wA,{verticalPosition:"bottom"},f.default.createElement(bn,{...A,onClick:()=>t(!0)}))}function qa(e){const{action:A,appManager:t,service:n}=e,r=f.default.useCallback(function(){n.onStart(t.config.appId)});return f.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh"}},f.default.createElement(Ce,{type:"primary",onClick:r},ne.get("\u5F00\u59CB\u4F5C\u4E1A")),f.default.createElement("br",null),f.default.createElement("div",null,t.config.appId),f.default.createElement("div",null,t.config.groupId))}function Vl(e){const{service:A,data:t={},onNext:n}=e;return f.default.createElement(wA,{verticalPosition:"bottom"},f.default.createElement(bn,{...t,onClick:n}))}function Wl(e){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[e]||"op-overlay"}function Zl(e){const{verticalPosition:A="center",visible:t=!0,closable:n=!1,onClosed:r=()=>{},onClick:i}=e,a=f.default.useRef(),[g,o]=D.useState(!t);return D.useEffect(()=>{o(!t)},[t]),g?null:f.default.createElement("div",{ref:a,className:Wl(A),onClick:s=>{s.target===a.current&&n&&(o(!0),r()),s.target===a.current&&i&&i()}},e.children)}function ql(e){const A=f.default.useRef(),{data:t={},onNext:n}=e,{placeholder:r,defaultValue:i,title:a=ne.get("\u8BF7\u8F93\u5165"),type:g="text",okText:o=ne.get("\u786E\u8BA4"),cancelText:s=ne.get("\u53D6\u6D88")}=t;return f.default.createElement(Zl,{verticalPosition:"center",closable:!1},f.default.createElement("div",{className:"prompt-dialog"},f.default.createElement("div",null,f.default.createElement("h1",{className:"prompt-title"},a),f.default.createElement("input",{className:"prompt-input",autoFocus:!0,ref:A,placeholder:r,type:g,defaultValue:i,onKeyUp:l=>{l.keyCode===13&&n(rf(A.current))}}),f.default.createElement("div",{className:"prompt-btns"},s?f.default.createElement(Ce,{onClick:()=>n("back")},s):null,f.default.createElement(Ce,{type:"primary",onClick:()=>{n(rf(A.current))}},o)))))}function rf(e){const A=e.value||"";return String(A).trim()}function _a(e){const{data:A={},onNext:t,action:n={},content:r,className:i}=e,{title:a,level:g,message:o,duration:s=null}=A,[l,d]=D.useState(!1);return f.default.useEffect(()=>{A.hasNext===void 0&&t("");let v=null;return s&&(v=setTimeout(()=>{d(!0)},s)),()=>{clearTimeout(v)}},[A]),f.default.useEffect(()=>{d(!1)},[n.sequence]),f.default.createElement(wA,{verticalPosition:"bottom",visible:!l,onClick:()=>d(!0)},f.default.createElement("div",{style:{width:"90%"},className:i},r||f.default.createElement(dA,{type:g,title:a,message:_l(o)})))}function _l(e){var A=String(e).split("by Error:");return A[1]||A[0]}function $a(e){return f.default.createElement("div",{style:{padding:"20%"}},f.default.createElement("h1",null,"404 ",f.default.createElement("small",{style:{fontSize:"60%"}},"Not found")),f.default.createElement("div",null,e.action.getPage()))}function eg(e){const[A,t]=f.default.useState(e.visible),n=e.edgeService;return f.default.useEffect(function(){let r=!1;const i=function(a){r=a,a?setTimeout(function(){r===a&&t(!0)},350):setTimeout(function(){r===a&&t(!1)},100)};return n?(n.on("IO_STATUS",i),function(){n.off("IO_STATUS",i)}):()=>{}},[n]),A?f.default.createElement("div",{className:"loading-wrap"},f.default.createElement("div",{className:"loading-box"},f.default.createElement("svg",{t:"1647243772165",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2178"},f.default.createElement("path",{d:"M512 64c247.2 0 448 200.8 448 448h-64c0-212-172-384-384-384V64z m0 832c-212 0-384-172-384-384H64c0 247.2 200.8 448 448 448v-64z","p-id":"2179"})),f.default.createElement("div",null,"LOADING..."))):null}function $l({data:e,service:A,action:t}){const{sound:n}=e;if(window.WindVane){var r={domain:"audio",method:"playSound",params:{sound:n}};WindVane.call("WindvanePlugin","invoke",JSON.stringify(r))}return A.onNext({}),null}function eu(){return console.warn('Please stop using "Debug" Components'),null}var Au={Alert:Xl,Start:qa,Toast:_a,Confirm:Vl,NotFound:$a,Debug:eu,Prompt:ql,Loading:eg,PlaySound:$l};function UA(e){const{image:A=UA.IMAGE_1,text:t="",subText:n="",transparent:r}=e;return f.default.createElement("div",{className:r?"presentation-card transparent":"presentation-card"},f.default.createElement("img",{src:A}),t?f.default.createElement("div",{className:"text"},t):null,n?f.default.createElement("div",{className:"sub-text"},n):null)}UA.IMAGE_1=`${window.PDA_IMAGE_PATH}O1CN019Ivkor1ksy3pMGDsz_!!6000000004740-2-tps-280-322.png`;UA.IMAGE_2=`${window.PDA_IMAGE_PATH}O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png`;UA.IMAGE_3=`${window.PDA_IMAGE_PATH}O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png`;UA.IMAGE_4=`${window.PDA_IMAGE_PATH}O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif`;function tu(){}function _r(e){const{title:A="",dataSource:t=[],onClickItem:n,onItemClick:r=tu,style:i={}}=e;return f.default.createElement("div",{className:"android-pda-list",style:i},f.default.createElement("div",{className:"android-pda-list-title"},A),t.map((a,g)=>f.default.createElement(Ag,{key:a.key||g,dataSource:a,onClick:n||r})),e.children)}function Ag(e){const A=e.dataSource||{title:e.title,subTitle:e.subTitle,extra:e.extra,tags:e.tags},{title:t,subTitle:n,extra:r,tags:i=[],tabIndex:a}=A,{onClick:g}=e;return f.default.createElement("div",{className:"default-item",onClick:()=>{g(e.dataSource)},tabIndex:a},f.default.createElement("div",{className:"text"},f.default.createElement("div",null,t),n?f.default.createElement("div",{className:"sub-text"},n):null,i&&i.length?f.default.createElement("div",{className:"sub-tags"},i.map(o=>f.default.createElement("div",{className:"sub-tag-item",key:o},o))):null),f.default.createElement("div",{className:"extra"},r))}_r.Item=Ag;const Kt=()=>{};class xn extends f.default.Component{constructor(A){super(A),this.state={showLoading:!1},this._handleKeyUp=t=>{const{onScan:n=Kt,onEnter:r=Kt,onEsc:i=Kt,onDelete:a=Kt,scanMode:g=null}=this.props,{code:o,keyCode:s,key:l}=t;if(o==="Enter"){t.preventDefault(),r(t);return}if(o==="Delete"){t.preventDefault(),a(t);return}if(o==="Esc"){t.preventDefault(),i(t);return}},this._handleBeforeUnload=t=>(t.returnValue=ne.get("\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417\uFF1F"),!0),this._handleUnload=t=>{WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(r){},function(r){});const n={tag:"stopRfid",level:"d",message:"stop rfid scan!!!"};nf(n),nf(n)}}componentDidMount(){window.onunload=this._handleUnload,document.addEventListener("keyup",this._handleKeyUp)}componentWillUnmount(){window.onbeforeunload=null,window.onunload=null,document.removeEventListener("keyup",this._handleKeyUp)}shouldComponentUpdate(A,t){return A.loading&&!this.props.loading&&(this.setState({showLoading:!0}),A.loadingTimeout&&setTimeout(()=>{this.setState({showLoading:!1})},A.loadingTimeout)),!A.loading&&this.state.showLoading&&this.setState({showLoading:!1}),!0}render(){const A=this.props,{style:t={},header:n,footer:r,loading:i}=this.props;return f.default.createElement("div",{className:K({"baselayout-wrapper":!0}),style:t},n&&f.default.createElement("div",{className:K({"baselayout-header":!0})},n),f.default.createElement("div",{className:K({"baselayout-container":!0})},A.children),r&&f.default.createElement("div",{className:K({"baselayout-footer":!0})},r),this.state.showLoading?f.default.createElement("div",{className:"loading"}):null)}}const nu=()=>{};class ru extends f.default.Component{constructor(A){super(A),this._rfidBeginScan=!1,this._handleRfidScan=t=>{const{onRfidOnce:n,onRfidBoxOnce:r,onRfidPalletOnce:i}=this.props,a=t.param,g=a.rfidData.startsWith("0F006"),o=a.rfidData.startsWith("0F011");if(vA("single_recog"),o){let s=a.rfidData;a.originData=s,a.rfidData=s.substr(5,12)}r&&g?(this._stopWork(),r(a)):i&&o&&(this._stopWork(),i(a)),n&&(this._stopWork(),n(a))},this._startWork=t=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(n){},function(n){}),this._rfidBeginScan=!0},this._stopWork=t=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(n){},function(n){})},this._handleKeyDown=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(A){},function(A){})}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp),this._stopWork()}render(){const A=this.props,{onRfidOnce:t=nu,...n}=A;return f.default.createElement(xn,{...n})}}const iu=()=>{};class tg extends f.default.Component{constructor(A){super(A),this._rfidBeginScan=!1,this._handleRfidScan=t=>{const{onRfidScan:n,onRfidBoxScan:r,onRfidPalletScan:i}=this.props,a=t.param,g=a.rfidData.startsWith("0F006"),o=a.rfidData.startsWith("0F011");if(o){let s=a.rfidData;a.originData=s,a.rfidData=s.substr(5,12)}g&&r?r(a):o&&i&&i(a),n&&n(a)},this._startWork=t=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(n){},function(n){}),this._rfidBeginScan=!0},this._stopWork=t=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(n){},function(n){})},this._handleKeyDown=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){const{autoRfidScan:A=!1,rfidReaderSleep:t}=this.props;WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(n){},function(n){}),A?t||this._startWork():(document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp))}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp),this._stopWork()}shouldComponentUpdate(A,t){return this.props.autoRfidScan&&this.props.rfidReaderSleep!==A.rfidReaderSleep&&(A.rfidReaderSleep?this._stopWork():this._startWork()),!0}render(){const A=this.props,{onRfidScan:t=iu,autoRfidScan:n,...r}=A;return f.default.createElement(xn,{...r})}}we(tg,"defaultProps",{rfidReaderSleep:!1});const fu=()=>{};class au extends f.default.Component{constructor(A){super(A),this._barcodeBeginScan=!1,this._handleBarcodeScan=t=>{const{onBarcodeScan:n}=this.props;this._stopWork(),vA("scan");const r=String(t.param.scanData).trim();n&&n({scanData:r})},this._startWork=t=>{document.addEventListener("BarcodeScan",this._handleBarcodeScan),this._barcodeBeginScan=!0},this._stopWork=t=>{document.removeEventListener("BarcodeScan",this._handleBarcodeScan)},this._handleKeyDown=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._barcodeBeginScan||this._startWork())},this._handleKeyUp=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._stopWork(),this._barcodeBeginScan=!1)},this.onScanBarcode=this.onScanBarcode.bind(this)}onScanBarcode(A){this.props.onScanBarcode&&this.props.onScanBarcode(A.param)}componentDidMount(){const{onBarcodeScan:A}=this.props;A&&(document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp)),document.addEventListener("BarcodeScan",this.onScanBarcode),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'barcode'}}",function(t){},function(t){})}componentWillUnmount(){const{onBarcodeScan:A}=this.props;A&&(document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp)),document.removeEventListener("BarcodeScan",this.onScanBarcode)}render(){const A=this.props,{onBarcodeScan:t=fu,...n}=A;return f.default.createElement(xn,{...n})}}class ng extends f.default.Component{constructor(A){super(A)}render(){const A=this.props,{onBarcodeScan:t,onScanBarcode:n,onRfidOnce:r,onRfidBoxOnce:i,onRfidPalletOnce:a,onRfidScan:g,onRfidBoxScan:o,onRfidPalletScan:s}=A;return r||i||a?f.default.createElement(ru,{...A}):g||o||s?f.default.createElement(tg,{...A}):t||n?f.default.createElement(au,{...A}):f.default.createElement(xn,{...A})}}const fr=()=>{};function $r(e){const{label:A=ne.get("\u67E5\u8BE2"),onWakeKeyboard:t=fr,onClick:n=fr,onHidden:r=fr,type:i="tel",placeholder:a=ne.get("\u8BF7\u8F93\u5165"),autoClose:g=!0}=e,o=D.useRef(null),[s,l]=D.useState(!0);return D.useEffect(()=>{requestAnimationFrame(()=>{o.current.focus(),t()})},[]),s?f.default.createElement("div",{className:"wakekeyborard-overlay",onClick:d=>{d.target.className&&d.target.className.includes("wakekeyborard-overlay")&&(r(!1),g&&l(!1))}},f.default.createElement("div",{className:"wakekeyborard-inputbox"},f.default.createElement("input",{ref:o,type:i,placeholder:a,onKeyUp:d=>{const{code:v,keyCode:w}=d,C=String(d.target.value).trim();if((v==="Enter"||w===13)&&C.length>0){d.preventDefault(),n(C,d),r(!0),l(!1);return}}}),f.default.createElement(Ce,{type:"cutout",onClick:d=>{const v=String(o.current.value||"").trim();n(v,d),r(!0),g&&l(!1)}},A))):null}const ff=()=>{};function rg(e){const[A,t]=D.useState(e.autoWakeup||!1),{onClick:n=ff,onHidden:r=ff,...i}=e;return f.default.createElement("div",{className:"wakekeyborard"},A?f.default.createElement($r,{onClick:(a,g)=>{n(a),t(!A)},onHidden:a=>{t(!1),r(a)},...i}):null,A?null:f.default.createElement("div",{className:"wakekeyborard-icon",onClick:a=>{t(!A)}}))}rg.Keyborard=$r;const Yt="image-uploader";class gu extends D.Component{constructor(A){super(A),this.state={}}renderDelete(){return f.default.createElement("span",{className:`${Yt}-cell-delete`,onClick:this.props.onDelete},f.default.createElement("img",{className:"uploader-delete-icon",alt:"close",src:`${window.PDA_IMAGE_PATH}O1CN01MInPNX1FWIOjjrlea_!!6000000000494-2-tps-32-32.png`}))}render(){const{src:A,deletable:t,onView:n,box:r}=this.props;return f.default.createElement("div",{className:"image-space-item"},f.default.createElement("div",{className:`${Yt}-cell`,style:{width:r,height:r}},f.default.createElement("div",{className:`${Yt}-cell-image`,style:{width:r,height:r}},f.default.createElement("img",{className:`${Yt}-img`,src:A,fit:"cover",onClick:n})),t&&this.renderDelete()))}}const af="image-uploader";class su extends D.Component{constructor(A){super(A),this.state={}}render(){const{box:A}=this.props;return f.default.createElement("div",{className:"image-space-item"},f.default.createElement("div",{className:`${af}-upload-button-wrap`,onClick:this.props.onUpload},f.default.createElement("span",{className:`${af}-upload-button image-uploader-cell`,style:{width:A,height:A}},f.default.createElement("img",{className:"uploader-add-icon",alt:"add",src:`${window.PDA_IMAGE_PATH}O1CN01RipHZ11yVyprbUP5B_!!6000000006585-2-tps-32-32.png`}))))}}const Jt="image-viewer";class ei extends D.Component{constructor(t){super(t);we(this,"onShow",(t=0)=>{const{props:n}=this;let r=0;typeof t!="number"?r=0:r=t>n.images.length-1?0:t,this.setState({visible:!0,currentIndex:r,loading:!0})});we(this,"onHide",()=>{this.setState({visible:!1})});we(this,"handleImageLoaded",t=>{this.setState({loading:!1})});we(this,"onClickMask",t=>{if(t.target.getAttribute("class")!=="image-viewer-image-wrapper"&&t.target.getAttribute("class")!=="image-viewer-loading")return;const{afterClose:n}=this.props;this.setState({visible:!1},()=>{n&&n()})});we(this,"onClose",()=>{const{onClose:t,images:n}=this.props,{currentIndex:r}=this.state;n.length===0?this.setState({visible:!1},()=>{t&&t(n[r],r)}):this.setState({currentIndex:0,visible:!1},()=>{t&&t(n[r],r)})});we(this,"onPrev",t=>{t.stopPropagation();const{currentIndex:n}=this.state;this.setState({currentIndex:n-1,loading:!0})});we(this,"onNext",t=>{t.stopPropagation();const{currentIndex:n}=this.state;this.setState({currentIndex:n+1,loading:!0})});this.state={visible:t.defaultVisible||!1,currentIndex:0,loading:!1}}render(){const{currentIndex:t,visible:n,loading:r}=this.state,{images:i}=this.props;return f.default.createElement("div",null,n?f.default.createElement("div",{className:"v-mask",onClick:this.onClickMask},f.default.createElement("div",{className:"v-mask-content"},f.default.createElement("div",{className:`${Jt}-content`},f.default.createElement("div",{className:`${Jt}-slides`},f.default.createElement("div",{className:"image-viewer-indicator"},t+1," / ",i.length),f.default.createElement("div",{className:"viewer-image-close",onClick:this.onClose},f.default.createElement("svg",{width:"44",height:"44",viewBox:"0 0 768 768"},f.default.createElement("path",{fill:"#FFF",d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))),f.default.createElement("div",{className:"image-viewer-slides-inner"},f.default.createElement("div",{className:"image-viewer-image-wrapper"},f.default.createElement("img",{src:this.props.images[t].url,style:{width:r?1:"auto"},onLoad:this.handleImageLoaded}))),i.length>1?f.default.createElement(f.default.Fragment,null,t===0?null:f.default.createElement("div",{className:"viewer-image-arrow viewer-prev",onClick:this.onPrev},f.default.createElement("svg",{width:"44",height:"44",viewBox:"0 0 768 768"},f.default.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))),t===i.length-1?null:f.default.createElement("div",{className:"viewer-image-arrow viewer-next",onClick:this.onNext},f.default.createElement("svg",{width:"44",height:"44",viewBox:"0 0 768 768"},f.default.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"})))):null))),r?f.default.createElement("div",{className:`${Jt}-loading`,onClick:this.onClose},f.default.createElement("div",{className:`${Jt}-loading-reactor`},f.default.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},f.default.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),f.default.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))):null):null)}}const Xt="image-uploader";class ig extends D.Component{constructor(t){super(t);we(this,"onViewImage",t=>{this.imgRef.onShow(t)});we(this,"onClickAdd",()=>{const{capture:t}=this.props,n=this,i={type:"0",mode:t&&t==="camera"?"camera":"photo"};navigator.userAgent.toLowerCase().match(/android/)?n.handlerUpload(i):n.handlerUploadNavigator()});we(this,"handlerUploadNavigator",()=>{const{beforeUpload:t,onBeforeUpload:n}=this.props,r=document.querySelector("#inputFile");r.value=null,r.click(),r.onchange=i=>{let a=i.target.files[0];const g=new FileReader;g.readAsDataURL(a),g.onload=v=>{const w=v.target.result;t&&t({data:w,base64:w}),n&&n({data:w,base64:w})};const s=(window.URL||window.webkitURL).createObjectURL(a),{images:l}=this.state,d=(Math.random()*1e4).toFixed(0);this.setState({images:[...l||[],{id:d,url:s}]})}});we(this,"handlerUpload",t=>{const{capture:n,beforeUpload:r,onBeforeUpload:i,uploadMode:a="takePhoto",compressSize:g=200,onError:o}=this.props;(a==="takePhoto"?ou(n&&n==="camera"):lu(g)).then(d=>{i&&i(d),r&&r(d)}).catch(d=>{o&&o(d),console.log(d)})});we(this,"onDelete",(t,n)=>{const{onDelete:r}=this.props;r&&r(t,n)});we(this,"_showLoading",()=>{this.setState({loading:!0})});we(this,"_hideLoading",()=>{setTimeout(()=>{this.setState({loading:!1})},10*1e3)});this.state={images:[],loading:!1}}static getDerivedStateFromProps(t,n){return t.value!==n.images?{images:t.value}:null}componentDidMount(){this.setState({images:this.props.value})}render(){const{value:t,loading:n=!1}=this.props,{maxCount:r=1,deletable:i=!1,capture:a="camera",box:g=80}=this.props,{images:o}=this.state;return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:`${Xt}`},f.default.createElement("input",{type:"file",name:"file",accept:"image/*",id:"inputFile",style:{display:"none"}}),f.default.createElement("div",{className:`${Xt}-wrap`},o&&o.map((s,l)=>f.default.createElement(gu,{src:s.url,key:s.url,box:g,deletable:i,onDelete:()=>this.onDelete(s,l),onView:()=>this.onViewImage(l)})),!o||(o==null?void 0:o.length)<r?f.default.createElement(su,{box:g,onUpload:this.onClickAdd}):null)),n?f.default.createElement("div",{className:`${Xt}-loading`},f.default.createElement("div",{className:`${Xt}-loading-reactor`},f.default.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},f.default.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),f.default.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))):null,f.default.createElement(ei,{ref:s=>this.imgRef=s,images:t}))}}function ou(e){return new Promise(function(A,t){const n={type:"0",mode:e?"camera":"photo"};window.WindVane.call("WVCamera","takePhoto",n,function(r){const i={domain:"camera",method:"getBase64",params:{filePath:r.localPath}};window.WindVane.call("WindvanePlugin","invoke",JSON.stringify(i),function(a){A(a.data)},function(a){t(a),console.log("failure "+JSON.stringify(a))})},function(r){t(r),console.log("takePhoto failure: "+JSON.stringify(r))})})}function lu(e=200){return new Promise(function(A,t){var n={domain:"camera",method:"takePhotoMethod2",params:{compressSize:e}};window.WindVane.call("WindvanePlugin","invoke",JSON.stringify(n),function(r){const i=r.data.imageBase64;A({base64:i,data:i})},t)})}class uu extends f.default.Component{constructor(A){super(A)}render(){const{className:A,title:t,isActive:n,infoList:r=[],style:i={},index:a,isLast:g}=this.props;return f.default.createElement("div",{className:K({[A]:!0,"pda-step-card":!0}),style:i},f.default.createElement("div",{className:"pda-step-indictor"},f.default.createElement("div",{className:K({"pda-step-indictor-top":!0,"pda-step-indictor-top-hidden":a===0})}),f.default.createElement("div",{className:K({"pda-step-indictor-center":!0,"pda-step-indictor-center-active":n})}),f.default.createElement("div",{className:K({"pda-step-indictor-bottom":!0,"pda-step-indictor-bottom-hidden":g})})),f.default.createElement("div",{className:K({"pda-step":!0,"pda-step-dark":!n})},f.default.createElement("div",{className:"pda-step-title"},t),r.map((o,s)=>f.default.createElement("div",{key:s,className:"pda-step-list"},f.default.createElement("span",null,o.label||""),"\xA0\xA0",f.default.createElement("span",null,o.content||"")))))}}class fg extends f.default.Component{constructor(A){super(A)}render(){const{className:A,style:t={},theme:n="light",current:r=0,children:i}=this.props;return f.default.createElement("div",{className:K({[A]:!0}),style:t},(i||[]).map((a,g)=>{const o={index:g,isLast:g===(i||[]).length-1,...a.props};return g===r?o.isActive=!0:o.isActive=!1,D.cloneElement(a,o)}))}}we(fg,"Step",uu);class NA extends f.default.Component{constructor(A){super(A)}componentDidMount(){this.props.isError?vA("success3"):vA("success2")}render(){const{className:A,title:t,infoList:n=[],isError:r=!1,buttonMultiLines:i=!1,style:a={},onClick:g=()=>{},okText:o=ne.get("\u8FD4\u56DE\u9996\u9875"),cancelText:s=null}=this.props,l=f.default.createElement(Ce.Group,null,s?f.default.createElement(Ce,{style:i?{height:"auto",lineHeight:"50px"}:{},type:"dark",onClick:()=>g(!1)},s):null,f.default.createElement(Ce,{type:"primary",style:i?{height:"auto",lineHeight:"normal"}:{},onClick:()=>g(!0)},o));return f.default.createElement(ng,{footer:l,style:{paddingTop:0}},f.default.createElement("div",{className:"pda-finish-card-top"},f.default.createElement("img",{className:"pda-finish-card-img",src:r?NA.ERROR_SUCCESS:NA.SUCCESS}),f.default.createElement("p",{className:"pda-finish-card-title"},t),n.map((d,v)=>f.default.createElement("p",{key:v,className:"pda-finish-card-list"},f.default.createElement("span",null,d.label||""),f.default.createElement("span",null,d.content||"")))))}}NA.SUCCESS=`${window.PDA_IMAGE_PATH}O1CN01OL2UYg24792knbTtC_!!6000000007343-1-tps-506-415.gif`;NA.ERROR_SUCCESS=`${window.PDA_IMAGE_PATH}O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif`;class cu extends f.default.Component{constructor(A){super(A)}render(){const{className:A,title:t,infoText:n,percentage:r=0,style:i={}}=this.props,a=`${window.PDA_IMAGE_PATH}O1CN01EFksWL1DBZCu0H1JH_!!6000000000178-2-tps-21-30.png`,g=`${window.PDA_IMAGE_PATH}O1CN01YEhCSg1aObe8UZq7K_!!6000000003320-2-tps-379-17.png`;return f.default.createElement("div",{className:K({[A]:!0,"pda-distance-card":!0}),style:i},f.default.createElement("p",{className:"pda-distance-card-highlight"},f.default.createElement("span",{className:"pda-distance-card-highlight1"},t)),f.default.createElement("div",{className:"pda-distance-indictor"},f.default.createElement("img",{src:a,width:20,height:29}),f.default.createElement("p",null,n)),f.default.createElement("div",{className:"pda-distance-card-progress"},f.default.createElement("div",{className:"pda-distance-card-progress-inside",style:{width:`${r*100}%`}}),f.default.createElement("img",{className:"pda-distance-card-progress-indictor",src:g})),f.default.createElement("div",{className:"pda-distance-label"},f.default.createElement("p",null,ne.get("\u8FDC")),f.default.createElement("p",null,ne.get("\u8FD1"))))}}function vu(e){const{title:A,context:t,name:n,tag:r,attrs:i=[],style:a}=e;return f.default.createElement("div",{className:"android-sub-card",style:a},f.default.createElement("div",{className:"android-sub-card-title-section"},f.default.createElement("div",{className:"android-sub-card-title"},A),r?f.default.createElement("div",{className:"android-sub-card-tag"},f.default.createElement("div",{className:r.type},r.label||"")):null),f.default.createElement("div",{className:"android-sub-card-context"},t),n?f.default.createElement("div",{className:"android-sub-card-name"},n):null,f.default.createElement("div",{className:"android-sub-card-attrs"},i.map(g=>f.default.createElement("div",{key:g},g))))}function wu(e){const{title:A,label:t,select:n=!0,onClick:r=i=>{}}=e;return f.default.createElement("div",{className:"select-card"},A?f.default.createElement("p",null,A):null,f.default.createElement("div",{className:"select-card-content",onClick:r},t," ",n?f.default.createElement("span",{className:"select-icon"}):null," "))}function du(){}function Cu(e){const{dataSource:A=[],onClickItem:t=du}=e;let n=1;return f.default.createElement("div",{className:"pda-app-list"},A.map(r=>f.default.createElement("div",{className:"pda-app-group",key:r.groupName},f.default.createElement("h2",{className:"group-name"},r.groupName),f.default.createElement("div",{className:"group-apps"},r.list.map(i=>f.default.createElement("div",{className:"app-item",key:i.name,autoFocus:n===1,tabIndex:n++,onClick:()=>t(i)},f.default.createElement("span",{className:"app-name"},i.name),f.default.createElement("span",{className:"app-subname"},i.subname)))))))}function Pu(e){var A=D.useRef(e);A.current=e;var t=D.useRef();return t.current||(t.current=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return A.current.apply(this,n)}),t.current}var Qu=globalThis&&globalThis.__awaiter||function(e,A,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function g(l){try{s(n.next(l))}catch(d){a(d)}}function o(l){try{s(n.throw(l))}catch(d){a(d)}}function s(l){l.done?i(l.value):r(l.value).then(g,o)}s((n=n.apply(e,A||[])).next())})},Iu=globalThis&&globalThis.__generator||function(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function g(s){return function(l){return o([s,l])}}function o(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,r&&(i=s[0]&2?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,r=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=A.call(e,t)}catch(l){s=[6,l],r=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},hu=globalThis&&globalThis.__read||function(e,A){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),r,i=[],a;try{for(;(A===void 0||A-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(g){a={error:g}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Bu=globalThis&&globalThis.__spread||function(){for(var e=[],A=0;A<arguments.length;A++)e=e.concat(hu(arguments[A]));return e};function mu(e){var A=this,t=D.useRef(!1);return D.useCallback(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Qu(A,void 0,void 0,function(){var i,a;return Iu(this,function(g){switch(g.label){case 0:if(t.current)return[2];t.current=!0,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.apply(void 0,Bu(n))];case 2:return i=g.sent(),t.current=!1,[2,i];case 3:throw a=g.sent(),t.current=!1,a;case 4:return[2]}})})},[e])}const Eu=/scroll|auto/i;function pu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function gf(e,A){let t=e;for(;t&&t!==A&&pu(t);){const{overflowY:n}=window.getComputedStyle(t);if(Eu.test(n))return t;t=t.parentNode}return A}function Du(e){return f.default.createElement("div",{style:{color:e.color||"#999"}},f.default.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},f.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(-100.000000, -71.000000)"},f.default.createElement("g",{transform:"translate(95.000000, 71.000000)"},f.default.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(A=>f.default.createElement("rect",{key:A,fill:"currentColor",x:20+A*26,y:"16",width:"8",height:"8",rx:"2"},f.default.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${A*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1",id:"circ-anim"})))))))))}function yu(e){return e===window}function ag(e){const{className:A,hasMore:t,loadMore:n,threshold:r=0,style:i,loadingText:a=ne.get("\u52A0\u8F7D\u4E2D"),notMoreText:g=ne.get("\u6CA1\u6709\u66F4\u591A\u4E86~")}=e,o=mu(async()=>{await n()}),s=D.useRef(null),l=Pu(()=>{if(!t)return;const d=s.current;if(!d)return;const v=gf(d);if(!v)return;const w=d.getBoundingClientRect().top;(yu(v)?window.innerHeight:v.getBoundingClientRect().bottom)>=w-r&&o()});return D.useEffect(()=>{l()}),D.useEffect(()=>{const d=s.current;if(!d)return;const v=gf(d);if(!v)return;function w(){l()}return v.addEventListener("scroll",w),()=>{v.removeEventListener("scroll",w)}},[]),f.default.createElement("div",{className:K({[A]:!0,"pda-infinite-scroll":!0}),style:i,ref:s},t?f.default.createElement("div",{className:"pda-infinite-scroll-view"},f.default.createElement("span",null,a),f.default.createElement(Du,null)):f.default.createElement("div",{className:"pda-infinite-scroll-view"},f.default.createElement("span",null,g)))}function bu(e){const{className:A="",visible:t,onClickItem:n,actions:r=[],stickyToBottomActions:i=[],stickyToBottomDirection:a="column",infiniteScroll:g=null}=e;return f.default.createElement("div",{className:K({[A]:!0,"action-sheet":!0,show:t})},f.default.createElement("div",{className:"action-sheet-container"},f.default.createElement("div",{className:"action-sheet-body"},r.map((o,s)=>f.default.createElement("div",{onClick:()=>{n&&n(o),o.onClick&&o.onClick(o.key)},className:"action-sheet-item",key:s},o.title)),g?f.default.createElement(ag,{...g}):null),i.length>0?f.default.createElement("div",{className:K({"action-sheet-sticky-bottom":!0,["action-sheet-sticky-bottom-"+a]:!0})},i.map((o,s)=>f.default.createElement("div",{onClick:()=>{n&&n(o),o.onClick&&o.onClick(o.key)},className:"action-sheet-item",key:s},o.title))):null))}function gg(e){const{className:A=void 0,label:t="label",type:n="success"}=e;return f.default.createElement("div",{className:K({[A]:!0,"pda-tag":!0,["pda-tag-"+n]:!0})},t)}function sg(e){const{className:A="",title:t="",content:n="",type:r="default",onClick:i=()=>{}}=e;return t||n?f.default.createElement("div",{className:K({[A]:!0,"simple-card":!0,["simple-card-"+r]:!0}),onClick:i},f.default.createElement("p",{className:"simple-card-title"},t),f.default.createElement("p",{className:"simple-card-content"},n)):null}function xu(e){const{className:A=void 0,dataSource:t=[],title:n="",tag:r}=e;return f.default.createElement("div",{className:K({[A]:!0,"simple-card-block":!0})},f.default.createElement("div",{className:"simple-card-block-header"},f.default.createElement("p",{className:"simple-card-block-title"},n),r?f.default.createElement("div",{style:{marginLeft:12}},f.default.createElement(gg,{...r})):null),t.length>0?f.default.createElement("div",{className:"simple-card-block-content"},t.map((i,a)=>f.default.createElement(sg,{key:a,...i}))):null)}function og(e){const{row:A=3,col:t=3,dataSource:n=[],onClick:r}=e;return f.default.createElement("div",{className:"lattice-mouth"},Array.from(Array(A)).map(function(i,a){return f.default.createElement("div",{className:"lattice-mouth-row",key:a},Array.from(Array(t)).map((g,o)=>Ru(n,a,o,t,r)))}))}function Ru(e,A,t,n,r){const{color:i="",value:a,label:g,style:o={}}=Ou(e,A,t,n)||{};return f.default.createElement("div",{className:`lattice-mouth-item ${i}`,style:o,key:t,onClick:()=>{r&&r(A,t,a,g)}},f.default.createElement("div",{className:"lattice-mouth-value"},a),f.default.createElement("div",{className:"lattice-mouth-label"},g))}function Ou(e,A,t,n){return e[A*n+t]}const Fu={"--base-font-size":"20px","--background-color":"#282828","--color":"#FFFFFF","--main-color":"#FFFFFF","--border-radius":"6px","--progress-background-color":"rgba(255, 255, 255, 0.5)","--progress-foreground-color":"#FFFFFF","--tag-background-color":"#008FED","--tag-color":"#FFFFFF"};function Mu(e){const{title:A,content:t,subContent:n,hasProgress:r,progress:i,infoList:a=[],tags:g=[],tagPosition:o="top",style:s={},theme:l="light",actions:d=[],onClick:v}=e;return f.default.createElement("div",{onClick:v,className:"android-op-card",style:Object.assign({},l==="dark"?Fu:{},s)},f.default.createElement("div",{className:"card-h1"},A),f.default.createElement("div",{className:"card-content"},f.default.createElement(Lu,{label:t})),r?f.default.createElement("div",{className:"card-progress"},f.default.createElement("div",{className:"card-progress-bar",style:{width:i+"%"}})):null,f.default.createElement("div",{className:"card-main-title"},n),f.default.createElement("div",{className:"card-info-list"},a&&a.map((w,C)=>f.default.createElement("div",{className:"card-info-item",key:C},w))),f.default.createElement("div",{className:`card-tags ${o}`},g&&g.map(w=>f.default.createElement("div",{className:"card-tags-item",key:w},w))),d&&d.length?f.default.createElement("div",{className:"actions"},d.map(w=>f.default.createElement("div",{className:`btn ${w.type}`,onClick:w.onClick},w.text))):null)}function Lu(e){const{label:A}=e,t=String(A).split("/");return t.length>1?f.default.createElement("div",{className:"card-content"},f.default.createElement("span",null,t[0])," ",f.default.createElement("small",null,"/",t[1])):f.default.createElement("div",{className:"card-content"},t[0])}function ku(e){const{label:A=ne.get("\u8BF7\u9009\u62E9"),dataSource:t=[],value:n,defaultValue:r,placeholder:i=ne.get("\u8BF7\u9009\u62E9"),useDetail:a=!0,onChange:g,localSearch:o=!0}=e,[s,l]=f.default.useState(!1),[d,v]=f.default.useState(),[w,C]=f.default.useState("");return f.default.useEffect(()=>{v(sf(t,n!==void 0?n:r))},[t,n]),f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"android-pda-picker",onClick:()=>l(!0)},f.default.createElement("span",{className:"label"},A),f.default.createElement("span",{className:"text"},d?d.label:i),f.default.createElement("span",{className:"icon"})),s?f.default.createElement(wA,{verticalPosition:"bottom",closable:!0,onClosed:()=>l(!1)},f.default.createElement("div",{className:"android-pda-picker-overlay"},o?f.default.createElement("div",{className:"title"},f.default.createElement("input",{value:w,placeholder:ne.get("\u641C\u7D22"),className:"filter-input",onClick:h=>{h.stopPropagation(),h.preventDefault()},onBlur:()=>{setTimeout(()=>{C("")},300)},onChange:h=>C(h.target.value)}),f.default.createElement("span",{className:"cancel",onClick:h=>{h.stopPropagation(),h.preventDefault()}},ne.get("\u53D6\u6D88")),f.default.createElement(Su,null)):null,f.default.createElement("div",{className:"android-pda-picker-list"},f.default.createElement(_r,{onClickItem:h=>{const E=sf(t,h.value);C(""),v(E),g(a?E:E.value),l(!1)},dataSource:Nu(t,w).map(h=>({title:h.label,value:h.value}))})))):null)}function Nu(e,A){return e.filter(t=>new RegExp(A).test(t.label))}function sf(e,A){return e.find(t=>t.value===A||t.value==(A==null?void 0:A.value))}function Su(){return f.default.createElement("svg",{className:"search-icon",width:"1em",height:"1em",viewBox:"0 0 48 48"},f.default.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none","stroke-width":"1",fill:"none",fillRule:"evenodd"},f.default.createElement("g",{id:ne.get("SearchOutline-\u7F16\u7EC4")},f.default.createElement("rect",{id:ne.get("SearchOutline-\u77E9\u5F62"),fill:"#FFFFFF",opacity:"0",x:"0",y:"0",width:"48",height:"48"}),f.default.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",fill:"currentColor",fillRule:"nonzero"}))))}function Tu(e){const{visible:A,text:t="LOADING..."}=e;return A?f.default.createElement("div",{className:"loading-wrap"},f.default.createElement("div",{className:"loading-box"},f.default.createElement("svg",{t:"1647243772165",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2178"},f.default.createElement("path",{d:"M512 64c247.2 0 448 200.8 448 448h-64c0-212-172-384-384-384V64z m0 832c-212 0-384-172-384-384H64c0 247.2 200.8 448 448 448v-64z","p-id":"2179"})),f.default.createElement("div",null,t))):null}function ar(e,A,t){return e!==""?(typeof t=="number"&&(e=Number(e)>t?e:t),typeof A=="number"&&(e=Number(e)>A?A:e),Number(e)):e}function Hu(e){const{label:A="",autoFocus:t=!0,defaultValue:n,placeholder:r,type:i="number",onChange:a,onSubmit:g,min:o,max:s,maxLength:l,value:d}=e;return f.default.createElement("div",{className:"android-op-input-item"},f.default.createElement("label",null,f.default.createElement("span",{className:"label-text"},A),f.default.createElement("input",{autoFocus:t,type:i,placeholder:r,defaultValue:n,onKeyUp:v=>{const{keyCode:w}=v;let C=String(v.target.value).trim();if(w===13){v.preventDefault(),i==="number"&&(v.target.value=ar(C,s,o),C=v.target.value),g&&g(C);return}},min:o,max:s,maxLength:l,value:d,onChange:v=>{let w=String(v.target.value).trim();i!=="number"||w===""?a&&a(w):a&&a(ar(w,s,o))},onKeyPress:v=>{i==="number"&&["+","e","E"].indexOf(v.key)!==-1&&v.preventDefault()},onBlur:v=>{if(i==="number")if(v.target.value==="")v.target.value="",a&&a(v.target.value);else{let w=v.target.value;v.target.value=ar(w,s,o)}}})))}const of=Function.prototype.apply,gr=new WeakMap;function rA(e){return gr.has(e)||gr.set(e,{}),gr.get(e)}class Gu{constructor(A=null,t=console){const n=rA(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=A===null?null:parseInt(A,10),this}_addCallback(A,t,n,r){return this._getCallbacks(A).push({callback:t,context:n,weight:r}),this._getCallbacks(A).sort((i,a)=>i.weight>a.weight),this}_getCallbacks(A){return rA(this)._callbacks[A]}_getCallbackIndex(A,t){return this._has(A)?this._getCallbacks(A).findIndex(n=>n.callback===t):null}_achieveMaxListener(A){return rA(this)._maxListeners!==null&&rA(this)._maxListeners<=this.listenersNumber(A)}_callbackIsExists(A,t,n){const r=this._getCallbackIndex(A,t),i=r!==-1?this._getCallbacks(A)[r]:void 0;return r!==-1&&i&&i.context===n}_has(A){return rA(this)._events.has(A)}on(A,t,n=null,r=1){const i=rA(this);if(typeof t!="function")throw new TypeError(`${t} is not a function`);return this._has(A)?(this._achieveMaxListener(A)&&i._console.warn(`Max listeners (${i._maxListeners}) for event "${A}" is reached!`),this._callbackIsExists(...arguments)&&i._console.warn(`Event "${A}" already has the callback ${t}.`)):(i._events.add(A),i._callbacks[A]=[]),this._addCallback(...arguments),this}once(A,t,n=null,r=1){const i=(...a)=>(this.off(A,i),of.call(t,n,a));return this.on(A,i,n,r)}off(A,t=null){const n=rA(this);let r;return this._has(A)&&(t===null?(n._events.delete(A),n._callbacks[A]=null):(r=this._getCallbackIndex(A,t),r!==-1&&(n._callbacks[A].splice(r,1),this.off(...arguments)))),this}emit(A,...t){return this._has(A)&&this._getCallbacks(A).forEach(n=>of.call(n.callback,n.context,t)),this}clear(){const A=rA(this);return A._events.clear(),A._callbacks={},this}listenersNumber(A){return this._has(A)?this._getCallbacks(A).length:null}}class lg extends Gu{constructor(A){super(),this.data=A||{}}on(A,t){A.indexOf(",")>-1?A.split(",").forEach(n=>{super.on(n,t)}):super.on(A,t)}off(A,t){A.indexOf(",")>-1?A.split(",").forEach(n=>{super.off(n,t)}):super.off(A,t)}get(A){return this.getVariable(A)}getVariable(A){if(typeof A!="string")return console.warn("Not string:",A),"";if(A==="$ALL")return this.data;if(A.indexOf(".")>-1){A=A.split(".");let t=this.data;for(let n=0;n<A.length;n++)if(t=t[A[n]],t==null)return;return t}return this.data[A]}set(A,t){if(A.indexOf(".")>-1){const n=A.split(".");let r=this.data;for(let i=0;i<n.length-1;i++)r[n[i]]===void 0?r=r[n[i]]={}:r=r[n[i]];r[n[n.length-1]]=t}else this.data[A]=t;this.emit(A,t),t&&Object.keys(t).length&&Object.keys(t).forEach(n=>{this.emit(`${A}.${n}`,t[n])}),this.emit("$updated",[A,t])}}we(lg,"getVariableByJSON",pr);function pr(e,A){if(typeof e=="string")return/^\$.+/.test(e)?A.getVariable(e):e;if(Array.isArray(e))return e.map(t=>pr(t,A));if(Object.prototype.toString.call(e)==="[object Object]"){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=pr(e[n],A));return t}return e}class ug extends lg{constructor(A,t={}){super(A),this.validateStatusMap={},this.validatorMap={}}getProps(A,{validator:t,formatValue:n,handleValueInChange:r,onChange:i}={}){const a=typeof t!="function"&&t!=="required"?null:o=>{t==="required"&&(t=s=>s==null||s===""?ne.get("\u5FC5\u586B"):null),this.validateStatusMap[A]=t==null?void 0:t(o)};this.validatorMap[A]=a;const g=this.get(A);return{value:typeof n=="function"?n(g,A):g,onChange:o=>{o&&o.target&&o.preventDefault&&(o=o.target.value),typeof r=="function"&&(o=r(o,A)),a==null||a(o),this.set(A,o),i==null||i(o)}}}getValidateStatus(A){return this.validateStatusMap[A]}validate(){var t,n;(n=(t=Object.entries(this.validatorMap))==null?void 0:t.forEach)==null||n.call(t,([r,i])=>{i==null||i(this.get(r))});const A=Object.entries(this.validateStatusMap).filter(([r,i])=>i);return A.length>0&&this.emit("$updated"),A.length===0?Promise.resolve(this.getValues()):Promise.reject(Object.fromEntries(A),this.getValues())}getValue(A){return this.get(A)}getValues(){return this.data}setValue(A,t){this.set(A,t)}}function zu(e,A){const[,t]=f.default.useState({}),[n]=f.default.useState(()=>new ug(e,A));return f.default.useEffect(()=>{n.on("$updated",()=>t({}))}),n}function ju(e){const{label:A="",defaultValue:t,value:n,min:r,max:i,autoFocus:a=!0,onChange:g,onSubmit:o}=e;return f.default.createElement("div",{className:"android-op-datepicker-item"},f.default.createElement("label",null,f.default.createElement("span",{className:"label-text"},A),f.default.createElement("input",{step:"0.2",defaultValue:t,value:n,autoFocus:a,min:r,max:i,type:"date",onChange:s=>{g&&g(s.target.value)},onKeyUp:s=>{const{keyCode:l}=s;let d=String(s.target.value).trim();if(l===13){s.preventDefault(),o&&o(d);return}}})))}const Ot=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ot&&document.addEventListener("touchstart",()=>{},!0);var un=function(){return un=Object.assign||function(A){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},un.apply(this,arguments)};function Uu(e,A){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&A.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)A.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]]);return t}function SA(e,A,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function g(l){try{s(n.next(l))}catch(d){a(d)}}function o(l){try{s(n.throw(l))}catch(d){a(d)}}function s(l){l.done?i(l.value):r(l.value).then(g,o)}s((n=n.apply(e,A||[])).next())})}function Ku(e){var A=typeof Symbol=="function"&&Symbol.iterator,t=A&&e[A],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}function TA(e,A){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),r,i=[],a;try{for(;(A===void 0||A-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(g){a={error:g}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function cg(e,A,t){if(t||arguments.length===2)for(var n=0,r=A.length,i;n<r;n++)(i||!(n in A))&&(i||(i=Array.prototype.slice.call(A,0,n)),i[n]=A[n]);return e.concat(i||Array.prototype.slice.call(A))}const xe="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",Yu={locale:"zh-CH",common:{confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",loading:"\u52A0\u8F7D\u4E2D",close:"\u5173\u95ED"},Calendar:{title:"\u65E5\u671F\u9009\u62E9",confirm:"\u786E\u8BA4",start:"\u5F00\u59CB",end:"\u7ED3\u675F",today:"\u4ECA\u65E5",markItems:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u65E5"],yearAndMonth:"${year}\u5E74${month}\u6708"},Cascader:{placeholder:"\u8BF7\u9009\u62E9"},Dialog:{ok:"\u6211\u77E5\u9053\u4E86"},DatePicker:{tillNow:"\u81F3\u4ECA"},ErrorBlock:{default:{title:"\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",description:"\u5F85\u4F1A\u6765\u8BD5\u8BD5"},busy:{title:"\u524D\u65B9\u62E5\u5835",description:"\u5237\u65B0\u8BD5\u8BD5"},disconnected:{title:"\u7F51\u7EDC\u6709\u70B9\u5FD9",description:"\u52A8\u52A8\u624B\u6307\u5E2E\u5FD9\u4FEE\u590D"},empty:{title:"\u6CA1\u6709\u627E\u5230\u4F60\u9700\u8981\u7684\u4E1C\u897F",description:"\u627E\u627E\u5176\u4ED6\u7684\u5427"}},Form:{required:"\u5FC5\u586B",optional:"\u9009\u586B",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:xe,method:xe,array:xe,object:xe,number:xe,date:xe,boolean:xe,integer:xe,float:xe,regexp:xe,email:xe,url:xe,hex:xe},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},ImageUploader:{uploading:"\u4E0A\u4F20\u4E2D...",upload:"\u4E0A\u4F20"},InfiniteScroll:{noMore:"\u6CA1\u6709\u66F4\u591A\u4E86",failedToLoad:"\u52A0\u8F7D\u5931\u8D25",retry:"\u91CD\u65B0\u52A0\u8F7D"},Input:{clear:"\u6E05\u9664"},Mask:{name:"\u80CC\u666F\u8499\u5C42"},Modal:{ok:"\u6211\u77E5\u9053\u4E86"},PasscodeInput:{name:"\u5BC6\u7801\u8F93\u5165\u6846"},PullToRefresh:{pulling:"\u4E0B\u62C9\u5237\u65B0",canRelease:"\u91CA\u653E\u7ACB\u5373\u5237\u65B0",complete:"\u5237\u65B0\u6210\u529F"},SearchBar:{name:"\u641C\u7D22\u6846"},Slider:{name:"\u6ED1\u52A8\u8F93\u5165\u6761"},Stepper:{decrease:"\u51CF\u5C11",increase:"\u589E\u52A0"},Switch:{name:"\u5F00\u5173"},Selector:{name:"\u9009\u62E9\u7EC4"}};var Ju=Yu;const Xu={current:{locale:Ju}};function Ai(){return Xu.current}const Vu=f.default.createContext(null);function ze(){var e;return(e=D.useContext(Vu))!==null&&e!==void 0?e:Ai()}function CA(e,A){const t=e;for(const n in A)A.hasOwnProperty(n)&&(t[n]=A[n]);return t}function ae(e,A){const t=Object.assign({},A.props);e.className&&(t.className=K(A.props.className,e.className)),e.style&&(t.style=Object.assign(Object.assign({},t.style),e.style)),e.tabIndex!==void 0&&(t.tabIndex=e.tabIndex);for(const n in e)!e.hasOwnProperty(n)||(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return f.default.cloneElement(A,t)}function se(...e){const A={};return e.forEach(t=>{t&&Object.keys(t).forEach(n=>{t[n]!==void 0&&(A[n]=t[n])})}),A}function ti(e,...A){for(let t=A.length-1;t>=0;t-=1)if(A[t]!==void 0)return A[t];return e}var vg=function(e){return function(A,t){var n=D.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return A()},t)}},Ft=function(e){return typeof e=="function"},Wu=!1,Rn=Wu;function KA(e){Rn&&(Ft(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var A=D.useRef(e);A.current=D.useMemo(function(){return e},[e]);var t=D.useRef();return t.current||(t.current=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return A.current.apply(this,n)}),t.current}var Zu=vg(D.useEffect);function lf(e,A){if(e===A)return!0;for(var t=0;t<e.length;t++)if(!Object.is(e[t],A[t]))return!1;return!0}function ni(e){var A=D.useRef(e);return A.current=e,A}var qu=function(e){Rn&&(Ft(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var A=ni(e);D.useEffect(function(){return function(){A.current()}},[])},ri=qu;function _u(e){var A=typeof e;return e!=null&&(A=="object"||A=="function")}var ii=_u,$u=typeof he=="object"&&he&&he.Object===Object&&he,ec=$u,Ac=ec,tc=typeof self=="object"&&self&&self.Object===Object&&self,nc=Ac||tc||Function("return this")(),wg=nc,rc=wg,ic=function(){return rc.Date.now()},fc=ic,ac=/\s/;function gc(e){for(var A=e.length;A--&&ac.test(e.charAt(A)););return A}var sc=gc,oc=sc,lc=/^\s+/;function uc(e){return e&&e.slice(0,oc(e)+1).replace(lc,"")}var cc=uc,vc=wg,wc=vc.Symbol,dg=wc,uf=dg,Cg=Object.prototype,dc=Cg.hasOwnProperty,Cc=Cg.toString,WA=uf?uf.toStringTag:void 0;function Pc(e){var A=dc.call(e,WA),t=e[WA];try{e[WA]=void 0;var n=!0}catch{}var r=Cc.call(e);return n&&(A?e[WA]=t:delete e[WA]),r}var Qc=Pc,Ic=Object.prototype,hc=Ic.toString;function Bc(e){return hc.call(e)}var mc=Bc,cf=dg,Ec=Qc,pc=mc,Dc="[object Null]",yc="[object Undefined]",vf=cf?cf.toStringTag:void 0;function bc(e){return e==null?e===void 0?yc:Dc:vf&&vf in Object(e)?Ec(e):pc(e)}var xc=bc;function Rc(e){return e!=null&&typeof e=="object"}var Oc=Rc,Fc=xc,Mc=Oc,Lc="[object Symbol]";function kc(e){return typeof e=="symbol"||Mc(e)&&Fc(e)==Lc}var Nc=kc,Sc=cc,wf=ii,Tc=Nc,df=0/0,Hc=/^[-+]0x[0-9a-f]+$/i,Gc=/^0b[01]+$/i,zc=/^0o[0-7]+$/i,jc=parseInt;function Uc(e){if(typeof e=="number")return e;if(Tc(e))return df;if(wf(e)){var A=typeof e.valueOf=="function"?e.valueOf():e;e=wf(A)?A+"":A}if(typeof e!="string")return e===0?e:+e;e=Sc(e);var t=Gc.test(e);return t||zc.test(e)?jc(e.slice(2),t?2:8):Hc.test(e)?df:+e}var Kc=Uc,Yc=ii,sr=fc,Cf=Kc,Jc="Expected a function",Xc=Math.max,Vc=Math.min;function Wc(e,A,t){var n,r,i,a,g,o,s=0,l=!1,d=!1,v=!0;if(typeof e!="function")throw new TypeError(Jc);A=Cf(A)||0,Yc(t)&&(l=!!t.leading,d="maxWait"in t,i=d?Xc(Cf(t.maxWait)||0,A):i,v="trailing"in t?!!t.trailing:v);function w(B){var b=n,x=r;return n=r=void 0,s=B,a=e.apply(x,b),a}function C(B){return s=B,g=setTimeout(P,A),l?w(B):a}function h(B){var b=B-o,x=B-s,S=A-b;return d?Vc(S,i-x):S}function E(B){var b=B-o,x=B-s;return o===void 0||b>=A||b<0||d&&x>=i}function P(){var B=sr();if(E(B))return m(B);g=setTimeout(P,h(B))}function m(B){return g=void 0,v&&n?w(B):(n=r=void 0,a)}function u(){g!==void 0&&clearTimeout(g),s=0,n=o=r=g=void 0}function c(){return g===void 0?a:m(sr())}function Q(){var B=sr(),b=E(B);if(n=arguments,r=this,o=B,b){if(g===void 0)return C(o);if(d)return clearTimeout(g),g=setTimeout(P,A),w(o)}return g===void 0&&(g=setTimeout(P,A)),a}return Q.cancel=u,Q.flush=c,Q}var Pg=Wc,Zc=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Qg=Zc,qc=Pg,_c=ii,$c="Expected a function";function ev(e,A,t){var n=!0,r=!0;if(typeof e!="function")throw new TypeError($c);return _c(t)&&(n="leading"in t?!!t.leading:n,r="trailing"in t?!!t.trailing:r),qc(e,A,{leading:n,maxWait:A,trailing:r})}var Av=ev,tv=function(){var e=TA(D.useState({}),2),A=e[1];return D.useCallback(function(){return A({})},[])},nv=tv;function Dr(e,A){if(!!Qg){if(!e)return A;var t;return Ft(e)?t=e():"current"in e?t=e.current:t=e,t}}var rv=function(e){var A=function(t,n,r){var i=D.useRef(!1),a=D.useRef([]),g=D.useRef([]),o=D.useRef();e(function(){var s,l=Array.isArray(r)?r:[r],d=l.map(function(v){return Dr(v)});if(!i.current){i.current=!0,a.current=d,g.current=n,o.current=t();return}(d.length!==a.current.length||!lf(a.current,d)||!lf(g.current,n))&&((s=o.current)===null||s===void 0||s.call(o),a.current=d,g.current=n,o.current=t())}),ri(function(){var s;(s=o.current)===null||s===void 0||s.call(o),i.current=!1})};return A},iv=rv,fv=iv(D.useEffect),av=fv,Ig={exports:{}};(function(e,A){(function(t,n){e.exports=n()})(he,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",a="second",g="minute",o="hour",s="day",l="week",d="month",v="quarter",w="year",C="date",h="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var H=["th","st","nd","rd"],L=z%100;return"["+z+(H[(L-20)%10]||H[L]||H[0])+"]"}},u=function(z,H,L){var U=String(z);return!U||U.length>=H?z:""+Array(H+1-U.length).join(L)+z},c={s:u,z:function(z){var H=-z.utcOffset(),L=Math.abs(H),U=Math.floor(L/60),G=L%60;return(H<=0?"+":"-")+u(U,2,"0")+":"+u(G,2,"0")},m:function z(H,L){if(H.date()<L.date())return-z(L,H);var U=12*(L.year()-H.year())+(L.month()-H.month()),G=H.clone().add(U,d),F=L-G<0,N=H.clone().add(U+(F?-1:1),d);return+(-(U+(L-G)/(F?G-N:N-G))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:d,y:w,w:l,d:s,D:C,h:o,m:g,s:a,ms:i,Q:v}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},Q="en",B={};B[Q]=m;var b="$isDayjsObject",x=function(z){return z instanceof Y||!(!z||!z[b])},S=function z(H,L,U){var G;if(!H)return Q;if(typeof H=="string"){var F=H.toLowerCase();B[F]&&(G=F),L&&(B[F]=L,G=F);var N=H.split("-");if(!G&&N.length>1)return z(N[0])}else{var V=H.name;B[V]=H,G=V}return!U&&G&&(Q=G),G||!U&&Q},O=function(z,H){if(x(z))return z.clone();var L=typeof H=="object"?H:{};return L.date=z,L.args=arguments,new Y(L)},M=c;M.l=S,M.i=x,M.w=function(z,H){return O(z,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var Y=function(){function z(L){this.$L=S(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[b]=!0}var H=z.prototype;return H.parse=function(L){this.$d=function(U){var G=U.date,F=U.utc;if(G===null)return new Date(NaN);if(M.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var N=G.match(E);if(N){var V=N[2]-1||0,q=(N[7]||"0").substring(0,3);return F?new Date(Date.UTC(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,q)):new Date(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,q)}}return new Date(G)}(L),this.init()},H.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},H.$utils=function(){return M},H.isValid=function(){return this.$d.toString()!==h},H.isSame=function(L,U){var G=O(L);return this.startOf(U)<=G&&G<=this.endOf(U)},H.isAfter=function(L,U){return O(L)<this.startOf(U)},H.isBefore=function(L,U){return this.endOf(U)<O(L)},H.$g=function(L,U,G){return M.u(L)?this[U]:this.set(G,L)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(L,U){var G=this,F=!!M.u(U)||U,N=M.p(L),V=function(Oe,Ie){var Ue=M.w(G.$u?Date.UTC(G.$y,Ie,Oe):new Date(G.$y,Ie,Oe),G);return F?Ue:Ue.endOf(s)},q=function(Oe,Ie){return M.w(G.toDate()[Oe].apply(G.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Ie)),G)},re=this.$W,Ae=this.$M,_=this.$D,je="set"+(this.$u?"UTC":"");switch(N){case w:return F?V(1,0):V(31,11);case d:return F?V(1,Ae):V(0,Ae+1);case l:var be=this.$locale().weekStart||0,me=(re<be?re+7:re)-be;return V(F?_-me:_+(6-me),Ae);case s:case C:return q(je+"Hours",0);case o:return q(je+"Minutes",1);case g:return q(je+"Seconds",2);case a:return q(je+"Milliseconds",3);default:return this.clone()}},H.endOf=function(L){return this.startOf(L,!1)},H.$set=function(L,U){var G,F=M.p(L),N="set"+(this.$u?"UTC":""),V=(G={},G[s]=N+"Date",G[C]=N+"Date",G[d]=N+"Month",G[w]=N+"FullYear",G[o]=N+"Hours",G[g]=N+"Minutes",G[a]=N+"Seconds",G[i]=N+"Milliseconds",G)[F],q=F===s?this.$D+(U-this.$W):U;if(F===d||F===w){var re=this.clone().set(C,1);re.$d[V](q),re.init(),this.$d=re.set(C,Math.min(this.$D,re.daysInMonth())).$d}else V&&this.$d[V](q);return this.init(),this},H.set=function(L,U){return this.clone().$set(L,U)},H.get=function(L){return this[M.p(L)]()},H.add=function(L,U){var G,F=this;L=Number(L);var N=M.p(U),V=function(Ae){var _=O(F);return M.w(_.date(_.date()+Math.round(Ae*L)),F)};if(N===d)return this.set(d,this.$M+L);if(N===w)return this.set(w,this.$y+L);if(N===s)return V(1);if(N===l)return V(7);var q=(G={},G[g]=n,G[o]=r,G[a]=t,G)[N]||1,re=this.$d.getTime()+L*q;return M.w(re,this)},H.subtract=function(L,U){return this.add(-1*L,U)},H.format=function(L){var U=this,G=this.$locale();if(!this.isValid())return G.invalidDate||h;var F=L||"YYYY-MM-DDTHH:mm:ssZ",N=M.z(this),V=this.$H,q=this.$m,re=this.$M,Ae=G.weekdays,_=G.months,je=G.meridiem,be=function(Ie,Ue,PA,DA){return Ie&&(Ie[Ue]||Ie(U,F))||PA[Ue].slice(0,DA)},me=function(Ie){return M.s(V%12||12,Ie,"0")},Oe=je||function(Ie,Ue,PA){var DA=Ie<12?"AM":"PM";return PA?DA.toLowerCase():DA};return F.replace(P,function(Ie,Ue){return Ue||function(PA){switch(PA){case"YY":return String(U.$y).slice(-2);case"YYYY":return M.s(U.$y,4,"0");case"M":return re+1;case"MM":return M.s(re+1,2,"0");case"MMM":return be(G.monthsShort,re,_,3);case"MMMM":return be(_,re);case"D":return U.$D;case"DD":return M.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return be(G.weekdaysMin,U.$W,Ae,2);case"ddd":return be(G.weekdaysShort,U.$W,Ae,3);case"dddd":return Ae[U.$W];case"H":return String(V);case"HH":return M.s(V,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return Oe(V,q,!0);case"A":return Oe(V,q,!1);case"m":return String(q);case"mm":return M.s(q,2,"0");case"s":return String(U.$s);case"ss":return M.s(U.$s,2,"0");case"SSS":return M.s(U.$ms,3,"0");case"Z":return N}return null}(Ie)||N.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(L,U,G){var F,N=this,V=M.p(U),q=O(L),re=(q.utcOffset()-this.utcOffset())*n,Ae=this-q,_=function(){return M.m(N,q)};switch(V){case w:F=_()/12;break;case d:F=_();break;case v:F=_()/3;break;case l:F=(Ae-re)/6048e5;break;case s:F=(Ae-re)/864e5;break;case o:F=Ae/r;break;case g:F=Ae/n;break;case a:F=Ae/t;break;default:F=Ae}return G?F:M.a(F)},H.daysInMonth=function(){return this.endOf(d).$D},H.$locale=function(){return B[this.$L]},H.locale=function(L,U){if(!L)return this.$L;var G=this.clone(),F=S(L,U,!0);return F&&(G.$L=F),G},H.clone=function(){return M.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},z}(),ee=Y.prototype;return O.prototype=ee,[["$ms",i],["$s",a],["$m",g],["$H",o],["$W",s],["$M",d],["$y",w],["$D",C]].forEach(function(z){ee[z[1]]=function(H){return this.$g(H,z[0],z[1])}}),O.extend=function(z,H){return z.$i||(z(H,Y,O),z.$i=!0),O},O.locale=S,O.isDayjs=x,O.unix=function(z){return O(1e3*z)},O.en=B[Q],O.Ls=B,O.p={},O})})(Ig);var ue=Ig.exports;function gv(){var e=(typeof global=="undefined"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,A=typeof self=="object"&&self&&self.Object===Object&&self;return e||A}gv()||(global.Date=Date);function sv(e,A){var t;Rn&&(Ft(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=ni(e),r=(t=A==null?void 0:A.wait)!==null&&t!==void 0?t:1e3,i=D.useMemo(function(){return Pg(function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];return n.current.apply(n,cg([],TA(a),!1))},r,A)},[]);return ri(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}function ov(e,A,t){var n=TA(D.useState({}),2),r=n[0],i=n[1],a=sv(function(){i({})},t).run;D.useEffect(function(){return a()},A),Zu(e,[r])}var lv=typeof Element!="undefined",uv=typeof Map=="function",cv=typeof Set=="function",vv=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function fn(e,A){if(e===A)return!0;if(e&&A&&typeof e=="object"&&typeof A=="object"){if(e.constructor!==A.constructor)return!1;var t,n,r;if(Array.isArray(e)){if(t=e.length,t!=A.length)return!1;for(n=t;n--!==0;)if(!fn(e[n],A[n]))return!1;return!0}var i;if(uv&&e instanceof Map&&A instanceof Map){if(e.size!==A.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!A.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!fn(n.value[1],A.get(n.value[0])))return!1;return!0}if(cv&&e instanceof Set&&A instanceof Set){if(e.size!==A.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!A.has(n.value[0]))return!1;return!0}if(vv&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(A)){if(t=e.length,t!=A.length)return!1;for(n=t;n--!==0;)if(e[n]!==A[n])return!1;return!0}if(e.constructor===RegExp)return e.source===A.source&&e.flags===A.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof A.valueOf=="function")return e.valueOf()===A.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof A.toString=="function")return e.toString()===A.toString();if(r=Object.keys(e),t=r.length,t!==Object.keys(A).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(A,r[n]))return!1;if(lv&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!((r[n]==="_owner"||r[n]==="__v"||r[n]==="__o")&&e.$$typeof)&&!fn(e[r[n]],A[r[n]]))return!1;return!0}return e!==e&&A!==A}var wv=function(A,t){try{return fn(A,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(u){try{return u.defaultView&&u.defaultView.frameElement||null}catch{return null}}var A=function(u){for(var c=u,Q=e(c);Q;)c=Q.ownerDocument,Q=e(c);return c}(window.document),t=[],n=null,r=null;function i(u){this.time=u.time,this.target=u.target,this.rootBounds=C(u.rootBounds),this.boundingClientRect=C(u.boundingClientRect),this.intersectionRect=C(u.intersectionRect||w()),this.isIntersecting=!!u.intersectionRect;var c=this.boundingClientRect,Q=c.width*c.height,B=this.intersectionRect,b=B.width*B.height;Q?this.intersectionRatio=Number((b/Q).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(u,c){var Q=c||{};if(typeof u!="function")throw new Error("callback must be a function");if(Q.root&&Q.root.nodeType!=1&&Q.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=o(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=u,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(Q.rootMargin),this.thresholds=this._initThresholds(Q.threshold),this.root=Q.root||null,this.rootMargin=this._rootMarginValues.map(function(B){return B.value+B.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(u,c){!u||!c?r=w():r=h(u,c),t.forEach(function(Q){Q._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(u){var c=this._observationTargets.some(function(Q){return Q.element==u});if(!c){if(!(u&&u.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:u,entry:null}),this._monitorIntersections(u.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(u){this._observationTargets=this._observationTargets.filter(function(c){return c.element!=u}),this._unmonitorIntersections(u.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var u=this._queuedEntries.slice();return this._queuedEntries=[],u},a.prototype._initThresholds=function(u){var c=u||[0];return Array.isArray(c)||(c=[c]),c.sort().filter(function(Q,B,b){if(typeof Q!="number"||isNaN(Q)||Q<0||Q>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return Q!==b[B-1]})},a.prototype._parseRootMargin=function(u){var c=u||"0px",Q=c.split(/\s+/).map(function(B){var b=/^(-?\d*\.?\d+)(px|%)$/.exec(B);if(!b)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(b[1]),unit:b[2]}});return Q[1]=Q[1]||Q[0],Q[2]=Q[2]||Q[0],Q[3]=Q[3]||Q[1],Q},a.prototype._monitorIntersections=function(u){var c=u.defaultView;if(!!c&&this._monitoringDocuments.indexOf(u)==-1){var Q=this._checkForIntersections,B=null,b=null;this.POLL_INTERVAL?B=c.setInterval(Q,this.POLL_INTERVAL):(s(c,"resize",Q,!0),s(u,"scroll",Q,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in c&&(b=new c.MutationObserver(Q),b.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(u),this._monitoringUnsubscribes.push(function(){var O=u.defaultView;O&&(B&&O.clearInterval(B),l(O,"resize",Q,!0)),l(u,"scroll",Q,!0),b&&b.disconnect()});var x=this.root&&(this.root.ownerDocument||this.root)||A;if(u!=x){var S=e(u);S&&this._monitorIntersections(S.ownerDocument)}}},a.prototype._unmonitorIntersections=function(u){var c=this._monitoringDocuments.indexOf(u);if(c!=-1){var Q=this.root&&(this.root.ownerDocument||this.root)||A,B=this._observationTargets.some(function(S){var O=S.element.ownerDocument;if(O==u)return!0;for(;O&&O!=Q;){var M=e(O);if(O=M&&M.ownerDocument,O==u)return!0}return!1});if(!B){var b=this._monitoringUnsubscribes[c];if(this._monitoringDocuments.splice(c,1),this._monitoringUnsubscribes.splice(c,1),b(),u!=Q){var x=e(u);x&&this._unmonitorIntersections(x.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var u=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var c=0;c<u.length;c++)u[c]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!r)){var u=this._rootIsInDom(),c=u?this._getRootRect():w();this._observationTargets.forEach(function(Q){var B=Q.element,b=v(B),x=this._rootContainsTarget(B),S=Q.entry,O=u&&x&&this._computeTargetAndRootIntersection(B,b,c),M=null;this._rootContainsTarget(B)?(!n||this.root)&&(M=c):M=w();var Y=Q.entry=new i({time:g(),target:B,boundingClientRect:b,rootBounds:M,intersectionRect:O});S?u&&x?this._hasCrossedThreshold(S,Y)&&this._queuedEntries.push(Y):S&&S.isIntersecting&&this._queuedEntries.push(Y):this._queuedEntries.push(Y)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(u,c,Q){if(window.getComputedStyle(u).display!="none"){for(var B=c,b=P(u),x=!1;!x&&b;){var S=null,O=b.nodeType==1?window.getComputedStyle(b):{};if(O.display=="none")return null;if(b==this.root||b.nodeType==9)if(x=!0,b==this.root||b==A)n&&!this.root?!r||r.width==0&&r.height==0?(b=null,S=null,B=null):S=r:S=Q;else{var M=P(b),Y=M&&v(M),ee=M&&this._computeTargetAndRootIntersection(M,Y,Q);Y&&ee?(b=M,S=h(Y,ee)):(b=null,B=null)}else{var z=b.ownerDocument;b!=z.body&&b!=z.documentElement&&O.overflow!="visible"&&(S=v(b))}if(S&&(B=d(S,B)),!B)break;b=b&&P(b)}return B}},a.prototype._getRootRect=function(){var u;if(this.root&&!m(this.root))u=v(this.root);else{var c=m(this.root)?this.root:A,Q=c.documentElement,B=c.body;u={top:0,left:0,right:Q.clientWidth||B.clientWidth,width:Q.clientWidth||B.clientWidth,bottom:Q.clientHeight||B.clientHeight,height:Q.clientHeight||B.clientHeight}}return this._expandRectByRootMargin(u)},a.prototype._expandRectByRootMargin=function(u){var c=this._rootMarginValues.map(function(B,b){return B.unit=="px"?B.value:B.value*(b%2?u.width:u.height)/100}),Q={top:u.top-c[0],right:u.right+c[1],bottom:u.bottom+c[2],left:u.left-c[3]};return Q.width=Q.right-Q.left,Q.height=Q.bottom-Q.top,Q},a.prototype._hasCrossedThreshold=function(u,c){var Q=u&&u.isIntersecting?u.intersectionRatio||0:-1,B=c.isIntersecting?c.intersectionRatio||0:-1;if(Q!==B)for(var b=0;b<this.thresholds.length;b++){var x=this.thresholds[b];if(x==Q||x==B||x<Q!=x<B)return!0}},a.prototype._rootIsInDom=function(){return!this.root||E(A,this.root)},a.prototype._rootContainsTarget=function(u){var c=this.root&&(this.root.ownerDocument||this.root)||A;return E(c,u)&&(!this.root||c==u.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var u=t.indexOf(this);u!=-1&&t.splice(u,1)};function g(){return window.performance&&performance.now&&performance.now()}function o(u,c){var Q=null;return function(){Q||(Q=setTimeout(function(){u(),Q=null},c))}}function s(u,c,Q,B){typeof u.addEventListener=="function"?u.addEventListener(c,Q,B||!1):typeof u.attachEvent=="function"&&u.attachEvent("on"+c,Q)}function l(u,c,Q,B){typeof u.removeEventListener=="function"?u.removeEventListener(c,Q,B||!1):typeof u.detachEvent=="function"&&u.detachEvent("on"+c,Q)}function d(u,c){var Q=Math.max(u.top,c.top),B=Math.min(u.bottom,c.bottom),b=Math.max(u.left,c.left),x=Math.min(u.right,c.right),S=x-b,O=B-Q;return S>=0&&O>=0&&{top:Q,bottom:B,left:b,right:x,width:S,height:O}||null}function v(u){var c;try{c=u.getBoundingClientRect()}catch{}return c?(c.width&&c.height||(c={top:c.top,right:c.right,bottom:c.bottom,left:c.left,width:c.right-c.left,height:c.bottom-c.top}),c):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function C(u){return!u||"x"in u?u:{top:u.top,y:u.top,bottom:u.bottom,left:u.left,x:u.left,right:u.right,width:u.width,height:u.height}}function h(u,c){var Q=c.top-u.top,B=c.left-u.left;return{top:Q,left:B,height:c.height,width:c.width,bottom:Q+c.height,right:B+c.width}}function E(u,c){for(var Q=c;Q;){if(Q==u)return!0;Q=P(Q)}return!1}function P(u){var c=u.parentNode;return u.nodeType==9&&u!=A?e(u):(c&&c.assignedSlot&&(c=c.assignedSlot.parentNode),c&&c.nodeType==11&&c.host?c.host:c)}function m(u){return u&&u.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=i})();function dv(e,A){var t=A||{},n=t.callback,r=Uu(t,["callback"]),i=TA(D.useState(),2),a=i[0],g=i[1],o=TA(D.useState(),2),s=o[0],l=o[1];return av(function(){var d=Array.isArray(e)?e:[e],v=d.map(function(C){return Dr(C)}).filter(Boolean);if(!!v.length){var w=new IntersectionObserver(function(C){var h,E;try{for(var P=Ku(C),m=P.next();!m.done;m=P.next()){var u=m.value;l(u.intersectionRatio),g(u.isIntersecting),n==null||n(u)}}catch(c){h={error:c}}finally{try{m&&!m.done&&(E=P.return)&&E.call(P)}finally{if(h)throw h.error}}},un(un({},r),{root:Dr(A==null?void 0:A.root)}));return v.forEach(function(C){return w.observe(C)}),function(){w.disconnect()}}},[A==null?void 0:A.rootMargin,A==null?void 0:A.threshold,n],e),[a,s]}var Cv=Qg?D.useLayoutEffect:D.useEffect,Ge=Cv,Pv=function(){var e=D.useRef(!1);return D.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e},fi=Pv;function Qv(e,A){var t;Rn&&(Ft(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var n=ni(e),r=(t=A==null?void 0:A.wait)!==null&&t!==void 0?t:1e3,i=D.useMemo(function(){return Av(function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];return n.current.apply(n,cg([],TA(a),!1))},r,A)},[]);return ri(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}const Pf=10;function Iv(e,A){return e>A&&e>Pf?"horizontal":A>e&&A>Pf?"vertical":""}function hv(){const e=D.useRef(0),A=D.useRef(0),t=D.useRef(0),n=D.useRef(0),r=D.useRef(0),i=D.useRef(0),a=D.useRef(""),g=()=>a.current==="vertical",o=()=>a.current==="horizontal",s=()=>{t.current=0,n.current=0,r.current=0,i.current=0,a.current=""};return{move:v=>{const w=v.touches[0];t.current=w.clientX<0?0:w.clientX-e.current,n.current=w.clientY-A.current,r.current=Math.abs(t.current),i.current=Math.abs(n.current),a.current||(a.current=Iv(r.current,i.current))},start:v=>{s(),e.current=v.touches[0].clientX,A.current=v.touches[0].clientY},reset:s,startX:e,startY:A,deltaX:t,deltaY:n,offsetX:r,offsetY:i,direction:a,isVertical:g,isHorizontal:o}}const Bv=Ot?window:void 0,mv=["scroll","auto","overlay"];function Ev(e){return e.nodeType===1}function pv(e,A=Bv){let t=e;for(;t&&t!==A&&Ev(t);){if(t===document.body)return A;const{overflowY:n}=window.getComputedStyle(t);if(mv.includes(n)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return A}let cn=!1;if(Ot)try{const e={};Object.defineProperty(e,"passive",{get(){cn=!0}}),window.addEventListener("test-passive",null,e)}catch{}let ZA=0;const Qf="adm-overflow-hidden";function Dv(e){let A=e==null?void 0:e.parentElement;for(;A;){if(A.clientHeight<A.scrollHeight)return A;A=A.parentElement}return null}function ai(e,A){const t=hv(),n=a=>{t.move(a);const g=t.deltaY.current>0?"10":"01",o=pv(a.target,e.current);if(!o)return;if(A==="strict"){const C=Dv(a.target);if(C===document.body||C===document.documentElement){a.preventDefault();return}}const{scrollHeight:s,offsetHeight:l,scrollTop:d}=o,{height:v}=o.getBoundingClientRect();let w="11";d===0?w=l>=s?"00":"01":s<=Math.round(v+d)&&(w="10"),w!=="11"&&t.isVertical()&&!(parseInt(w,2)&parseInt(g,2))&&a.cancelable&&cn&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",t.start),document.addEventListener("touchmove",n,cn?{passive:!1}:!1),ZA||document.body.classList.add(Qf),ZA++},i=()=>{ZA&&(document.removeEventListener("touchstart",t.start),document.removeEventListener("touchmove",n),ZA--,ZA||document.body.classList.remove(Qf))};D.useEffect(()=>{if(A)return r(),()=>{i()}},[A])}let gi=Lt();const W=e=>Mt(e,gi);let si=Lt();W.write=e=>Mt(e,si);let On=Lt();W.onStart=e=>Mt(e,On);let oi=Lt();W.onFrame=e=>Mt(e,oi);let li=Lt();W.onFinish=e=>Mt(e,li);let MA=[];W.setTimeout=(e,A)=>{let t=W.now()+A,n=()=>{let i=MA.findIndex(a=>a.cancel==n);~i&&MA.splice(i,1),lA-=~i?1:0},r={time:t,handler:e,cancel:n};return MA.splice(hg(t),0,r),lA+=1,Bg(),r};let hg=e=>~(~MA.findIndex(A=>A.time>e)||~MA.length);W.cancel=e=>{On.delete(e),oi.delete(e),li.delete(e),gi.delete(e),si.delete(e)};W.sync=e=>{yr=!0,W.batchedUpdates(e),yr=!1};W.throttle=e=>{let A;function t(){try{e(...A)}finally{A=null}}function n(...r){A=r,W.onStart(t)}return n.handler=e,n.cancel=()=>{On.delete(t),A=null},n};let ui=typeof window!="undefined"?window.requestAnimationFrame:()=>{};W.use=e=>ui=e;W.now=typeof performance!="undefined"?()=>performance.now():Date.now;W.batchedUpdates=e=>e();W.catch=console.error;W.frameLoop="always";W.advance=()=>{W.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Eg()};let oA=-1,lA=0,yr=!1;function Mt(e,A){yr?(A.delete(e),e(0)):(A.add(e),Bg())}function Bg(){oA<0&&(oA=0,W.frameLoop!=="demand"&&ui(mg))}function yv(){oA=-1}function mg(){~oA&&(ui(mg),W.batchedUpdates(Eg))}function Eg(){let e=oA;oA=W.now();let A=hg(oA);if(A&&(pg(MA.splice(0,A),t=>t.handler()),lA-=A),!lA){yv();return}On.flush(),gi.flush(e?Math.min(64,oA-e):16.667),oi.flush(),si.flush(),li.flush()}function Lt(){let e=new Set,A=e;return{add(t){lA+=A==e&&!e.has(t)?1:0,e.add(t)},delete(t){return lA-=A==e&&e.has(t)?1:0,e.delete(t)},flush(t){A.size&&(e=new Set,lA-=A.size,pg(A,n=>n(t)&&e.add(n)),lA+=e.size,A=e)}}}function pg(e,A){e.forEach(t=>{try{A(t)}catch(n){W.catch(n)}})}function br(){}const bv=(e,A,t)=>Object.defineProperty(e,A,{value:t,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function tA(e,A){if(T.arr(e)){if(!T.arr(A)||e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==A[t])return!1;return!0}return e===A}const te=(e,A)=>e.forEach(A);function Ze(e,A,t){if(T.arr(e)){for(let n=0;n<e.length;n++)A.call(t,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&A.call(t,e[n],n)}const Re=e=>T.und(e)?[]:T.arr(e)?e:[e];function gt(e,A){if(e.size){const t=Array.from(e);e.clear(),te(t,A)}}const rt=(e,...A)=>gt(e,t=>t(...A)),ci=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let vi,Dg,uA=null,yg=!1,wi=br;const xv=e=>{e.to&&(Dg=e.to),e.now&&(W.now=e.now),e.colors!==void 0&&(uA=e.colors),e.skipAnimation!=null&&(yg=e.skipAnimation),e.createStringInterpolator&&(vi=e.createStringInterpolator),e.requestAnimationFrame&&W.use(e.requestAnimationFrame),e.batchedUpdates&&(W.batchedUpdates=e.batchedUpdates),e.willAdvance&&(wi=e.willAdvance),e.frameLoop&&(W.frameLoop=e.frameLoop)};var qe=Object.freeze({__proto__:null,get createStringInterpolator(){return vi},get to(){return Dg},get colors(){return uA},get skipAnimation(){return yg},get willAdvance(){return wi},assign:xv});const st=new Set;let Ne=[],or=[],vn=0;const Fn={get idle(){return!st.size&&!Ne.length},start(e){vn>e.priority?(st.add(e),W.onStart(Rv)):(bg(e),W(xr))},advance:xr,sort(e){if(vn)W.onFrame(()=>Fn.sort(e));else{const A=Ne.indexOf(e);~A&&(Ne.splice(A,1),xg(e))}},clear(){Ne=[],st.clear()}};function Rv(){st.forEach(bg),st.clear(),W(xr)}function bg(e){Ne.includes(e)||xg(e)}function xg(e){Ne.splice(Ov(Ne,A=>A.priority>e.priority),0,e)}function xr(e){const A=or;for(let t=0;t<Ne.length;t++){const n=Ne[t];vn=n.priority,n.idle||(wi(n),n.advance(e),n.idle||A.push(n))}return vn=0,or=Ne,or.length=0,Ne=A,Ne.length>0}function Ov(e,A){const t=e.findIndex(A);return t<0?e.length:t}const Fv=(e,A,t)=>Math.min(Math.max(t,e),A),Mv={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},He="[-+]?\\d*\\.?\\d+",wn=He+"%";function Mn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Lv=new RegExp("rgb"+Mn(He,He,He)),kv=new RegExp("rgba"+Mn(He,He,He,He)),Nv=new RegExp("hsl"+Mn(He,wn,wn)),Sv=new RegExp("hsla"+Mn(He,wn,wn,He)),Tv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gv=/^#([0-9a-fA-F]{6})$/,zv=/^#([0-9a-fA-F]{8})$/;function jv(e){let A;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(A=Gv.exec(e))?parseInt(A[1]+"ff",16)>>>0:uA&&uA[e]!==void 0?uA[e]:(A=Lv.exec(e))?(yA(A[1])<<24|yA(A[2])<<16|yA(A[3])<<8|255)>>>0:(A=kv.exec(e))?(yA(A[1])<<24|yA(A[2])<<16|yA(A[3])<<8|Bf(A[4]))>>>0:(A=Tv.exec(e))?parseInt(A[1]+A[1]+A[2]+A[2]+A[3]+A[3]+"ff",16)>>>0:(A=zv.exec(e))?parseInt(A[1],16)>>>0:(A=Hv.exec(e))?parseInt(A[1]+A[1]+A[2]+A[2]+A[3]+A[3]+A[4]+A[4],16)>>>0:(A=Nv.exec(e))?(If(hf(A[1]),Vt(A[2]),Vt(A[3]))|255)>>>0:(A=Sv.exec(e))?(If(hf(A[1]),Vt(A[2]),Vt(A[3]))|Bf(A[4]))>>>0:null}function lr(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(A-e)*6*t:t<1/2?A:t<2/3?e+(A-e)*(2/3-t)*6:e}function If(e,A,t){const n=t<.5?t*(1+A):t+A-t*A,r=2*t-n,i=lr(r,n,e+1/3),a=lr(r,n,e),g=lr(r,n,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(g*255)<<8}function yA(e){const A=parseInt(e,10);return A<0?0:A>255?255:A}function hf(e){return(parseFloat(e)%360+360)%360/360}function Bf(e){const A=parseFloat(e);return A<0?0:A>1?255:Math.round(A*255)}function Vt(e){const A=parseFloat(e);return A<0?0:A>100?1:A/100}function mf(e){let A=jv(e);if(A===null)return e;A=A||0;let t=(A&4278190080)>>>24,n=(A&16711680)>>>16,r=(A&65280)>>>8,i=(A&255)/255;return`rgba(${t}, ${n}, ${r}, ${i})`}const vt=(e,A,t)=>{if(T.fun(e))return e;if(T.arr(e))return vt({range:e,output:A,extrapolate:t});if(T.str(e.output[0]))return vi(e);const n=e,r=n.output,i=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",g=n.extrapolateRight||n.extrapolate||"extend",o=n.easing||(s=>s);return s=>{const l=Kv(s,i);return Uv(s,i[l],i[l+1],r[l],r[l+1],o,a,g,n.map)}};function Uv(e,A,t,n,r,i,a,g,o){let s=o?o(e):e;if(s<A){if(a==="identity")return s;a==="clamp"&&(s=A)}if(s>t){if(g==="identity")return s;g==="clamp"&&(s=t)}return n===r?n:A===t?e<=A?n:r:(A===-1/0?s=-s:t===1/0?s=s-A:s=(s-A)/(t-A),s=i(s),n===-1/0?s=-s:r===1/0?s=s+n:s=s*(r-n)+n,s)}function Kv(e,A){for(var t=1;t<A.length-1&&!(A[t]>=e);++t);return t-1}const Yv=(e,A="end")=>t=>{t=A==="end"?Math.min(t,.999):Math.max(t,.001);const n=t*e,r=A==="end"?Math.floor(n):Math.ceil(n);return Fv(0,1,r/e)},dn=1.70158,Wt=dn*1.525,Ef=dn+1,pf=2*Math.PI/3,Df=2*Math.PI/4.5,Zt=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Jv={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ef*e*e*e-dn*e*e,easeOutBack:e=>1+Ef*Math.pow(e-1,3)+dn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Wt+1)*2*e-Wt)/2:(Math.pow(2*e-2,2)*((Wt+1)*(e*2-2)+Wt)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*pf),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*pf)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Df))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Df)/2+1,easeInBounce:e=>1-Zt(1-e),easeOutBounce:Zt,easeInOutBounce:e=>e<.5?(1-Zt(1-2*e))/2:(1+Zt(2*e-1))/2,steps:Yv};function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Rr.apply(this,arguments)}const HA=Symbol.for("FluidValue.get"),BA=Symbol.for("FluidValue.observers"),Le=e=>Boolean(e&&e[HA]),ye=e=>e&&e[HA]?e[HA]():e,yf=e=>e[BA]||null;function Xv(e,A){e.eventObserved?e.eventObserved(A):e(A)}function wt(e,A){let t=e[BA];t&&t.forEach(n=>{Xv(n,A)})}class Rg{constructor(A){if(this[HA]=void 0,this[BA]=void 0,!A&&!(A=this.get))throw Error("Unknown getter");Vv(this,A)}}const Vv=(e,A)=>Og(e,HA,A);function YA(e,A){if(e[HA]){let t=e[BA];t||Og(e,BA,t=new Set),t.has(A)||(t.add(A),e.observerAdded&&e.observerAdded(t.size,A))}return A}function dt(e,A){let t=e[BA];if(t&&t.has(A)){const n=t.size-1;n?t.delete(A):e[BA]=null,e.observerRemoved&&e.observerRemoved(n,A)}}const Og=(e,A,t)=>Object.defineProperty(e,A,{value:t,writable:!0,configurable:!0}),an=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bf=new RegExp(`(${an.source})(%|[a-z]+)`,"i"),Zv=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ln=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fg=e=>{const[A,t]=qv(e);if(!A||ci())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(A);if(n)return n.trim();if(t&&t.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r||e}else{if(t&&Ln.test(t))return Fg(t);if(t)return t}return e},qv=e=>{const A=Ln.exec(e);if(!A)return[,];const[,t,n]=A;return[t,n]};let ur;const _v=(e,A,t,n,r)=>`rgba(${Math.round(A)}, ${Math.round(t)}, ${Math.round(n)}, ${r})`,Mg=e=>{ur||(ur=uA?new RegExp(`(${Object.keys(uA).join("|")})(?!\\w)`,"g"):/^\b$/);const A=e.output.map(i=>ye(i).replace(Ln,Fg).replace(Wv,mf).replace(ur,mf)),t=A.map(i=>i.match(an).map(Number)),r=t[0].map((i,a)=>t.map(g=>{if(!(a in g))throw Error('The arity of each "output" value must be equal');return g[a]})).map(i=>vt(Rr({},e,{output:i})));return i=>{var a;const g=!bf.test(A[0])&&((a=A.find(s=>bf.test(s)))==null?void 0:a.replace(an,""));let o=0;return A[0].replace(an,()=>`${r[o++](i)}${g||""}`).replace(Zv,_v)}},di="react-spring: ",Lg=e=>{const A=e;let t=!1;if(typeof A!="function")throw new TypeError(`${di}once requires a function parameter`);return(...n)=>{t||(A(...n),t=!0)}},$v=Lg(console.warn);function ew(){$v(`${di}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Aw=Lg(console.warn);function tw(){Aw(`${di}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function kn(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!ci()&&Ln.test(e)||e in(uA||{}))}const Ci=ci()?D.useEffect:D.useLayoutEffect,nw=()=>{const e=D.useRef(!1);return Ci(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function kg(){const e=D.useState()[1],A=nw();return()=>{A.current&&e(Math.random())}}function rw(e,A){const[t]=D.useState(()=>({inputs:A,result:e()})),n=D.useRef(),r=n.current;let i=r;return i?Boolean(A&&i.inputs&&iw(A,i.inputs))||(i={inputs:A,result:e()}):i=t,D.useEffect(()=>{n.current=i,r==t&&(t.inputs=t.result=void 0)},[i]),i.result}function iw(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==A[t])return!1;return!0}const Ng=e=>D.useEffect(e,fw),fw=[];function xf(e){const A=D.useRef();return D.useEffect(()=>{A.current=e}),A.current}const Ct=Symbol.for("Animated:node"),aw=e=>!!e&&e[Ct]===e,Xe=e=>e&&e[Ct],Pi=(e,A)=>bv(e,Ct,A),Nn=e=>e&&e[Ct]&&e[Ct].getPayload();class Sg{constructor(){this.payload=void 0,Pi(this,this)}getPayload(){return this.payload||[]}}class JA extends Sg{constructor(A){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=A,T.num(this._value)&&(this.lastPosition=this._value)}static create(A){return new JA(A)}getPayload(){return[this]}getValue(){return this._value}setValue(A,t){return T.num(A)&&(this.lastPosition=A,t&&(A=Math.round(A/t)*t,this.done&&(this.lastPosition=A))),this._value===A?!1:(this._value=A,!0)}reset(){const{done:A}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,A&&(this.lastVelocity=null),this.v0=null)}}class GA extends JA{constructor(A){super(0),this._string=null,this._toString=void 0,this._toString=vt({output:[A,A]})}static create(A){return new GA(A)}getValue(){let A=this._string;return A==null?this._string=this._toString(this._value):A}setValue(A){if(T.str(A)){if(A==this._string)return!1;this._string=A,this._value=1}else if(super.setValue(A))this._string=null;else return!1;return!0}reset(A){A&&(this._toString=vt({output:[this.getValue(),A]})),this._value=0,super.reset()}}const Cn={dependencies:null};class Sn extends Sg{constructor(A){super(),this.source=A,this.setValue(A)}getValue(A){const t={};return Ze(this.source,(n,r)=>{aw(n)?t[r]=n.getValue(A):Le(n)?t[r]=ye(n):A||(t[r]=n)}),t}setValue(A){this.source=A,this.payload=this._makePayload(A)}reset(){this.payload&&te(this.payload,A=>A.reset())}_makePayload(A){if(A){const t=new Set;return Ze(A,this._addToPayload,t),Array.from(t)}}_addToPayload(A){Cn.dependencies&&Le(A)&&Cn.dependencies.add(A);const t=Nn(A);t&&te(t,n=>this.add(n))}}class Qi extends Sn{constructor(A){super(A)}static create(A){return new Qi(A)}getValue(){return this.source.map(A=>A.getValue())}setValue(A){const t=this.getPayload();return A.length==t.length?t.map((n,r)=>n.setValue(A[r])).some(Boolean):(super.setValue(A.map(gw)),!0)}}function gw(e){return(kn(e)?GA:JA).create(e)}function Or(e){const A=Xe(e);return A?A.constructor:T.arr(e)?Qi:kn(e)?GA:JA}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Pn.apply(this,arguments)}const Rf=(e,A)=>{const t=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return D.forwardRef((n,r)=>{const i=D.useRef(null),a=t&&D.useCallback(C=>{i.current=lw(r,C)},[r]),[g,o]=ow(n,A),s=kg(),l=()=>{const C=i.current;if(t&&!C)return;(C?A.applyAnimatedValues(C,g.getValue(!0)):!1)===!1&&s()},d=new sw(l,o),v=D.useRef();Ci(()=>(v.current=d,te(o,C=>YA(C,d)),()=>{v.current&&(te(v.current.deps,C=>dt(C,v.current)),W.cancel(v.current.update))})),D.useEffect(l,[]),Ng(()=>()=>{const C=v.current;te(C.deps,h=>dt(h,C))});const w=A.getComponentProps(g.getValue());return j.createElement(e,Pn({},w,{ref:a}))})};class sw{constructor(A,t){this.update=A,this.deps=t}eventObserved(A){A.type=="change"&&W.write(this.update)}}function ow(e,A){const t=new Set;return Cn.dependencies=t,e.style&&(e=Pn({},e,{style:A.createAnimatedStyle(e.style)})),e=new Sn(e),Cn.dependencies=null,[e,t]}function lw(e,A){return e&&(T.fun(e)?e(A):e.current=A),A}const Of=Symbol.for("AnimatedComponent"),uw=(e,{applyAnimatedValues:A=()=>!1,createAnimatedStyle:t=r=>new Sn(r),getComponentProps:n=r=>r}={})=>{const r={applyAnimatedValues:A,createAnimatedStyle:t,getComponentProps:n},i=a=>{const g=Ff(a)||"Anonymous";return T.str(a)?a=i[a]||(i[a]=Rf(a,r)):a=a[Of]||(a[Of]=Rf(a,r)),a.displayName=`Animated(${g})`,a};return Ze(e,(a,g)=>{T.arr(e)&&(g=Ff(a)),i[g]=i(a)}),{animated:i}},Ff=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Pe.apply(this,arguments)}function hA(e,...A){return T.fun(e)?e(...A):e}const ot=(e,A)=>e===!0||!!(A&&e&&(T.fun(e)?e(A):Re(e).includes(A))),Tg=(e,A)=>T.obj(e)?A&&e[A]:e,Hg=(e,A)=>e.default===!0?e[A]:e.default?e.default[A]:void 0,cw=e=>e,Ii=(e,A=cw)=>{let t=vw;e.default&&e.default!==!0&&(e=e.default,t=Object.keys(e));const n={};for(const r of t){const i=A(e[r],r);T.und(i)||(n[r]=i)}return n},vw=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ww={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function dw(e){const A={};let t=0;if(Ze(e,(n,r)=>{ww[r]||(A[r]=n,t++)}),t)return A}function Gg(e){const A=dw(e);if(A){const t={to:A};return Ze(e,(n,r)=>r in A||(t[r]=n)),t}return Pe({},e)}function Pt(e){return e=ye(e),T.arr(e)?e.map(Pt):kn(e)?qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Cw(e){for(const A in e)return!0;return!1}function Fr(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function Pw(e,A){var t;(t=e.ref)==null||t.delete(e),A==null||A.delete(e)}function Qw(e,A){if(A&&e.ref!==A){var t;(t=e.ref)==null||t.delete(e),A.add(e),e.ref=A}}const Iw={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Mr=Pe({},Iw.default,{mass:1,damping:1,easing:Jv.linear,clamp:!1});class hw{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Mr)}}function Bw(e,A,t){t&&(t=Pe({},t),Mf(t,A),A=Pe({},t,A)),Mf(e,A),Object.assign(e,A);for(const a in Mr)e[a]==null&&(e[a]=Mr[a]);let{mass:n,frequency:r,damping:i}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*n,e.friction=4*Math.PI*i*n/r),e}function Mf(e,A){if(!T.und(A.decay))e.duration=void 0;else{const t=!T.und(A.tension)||!T.und(A.friction);(t||!T.und(A.frequency)||!T.und(A.damping)||!T.und(A.mass))&&(e.duration=void 0,e.decay=void 0),t&&(e.frequency=void 0)}}const Lf=[];class mw{constructor(){this.changed=!1,this.values=Lf,this.toValues=null,this.fromValues=Lf,this.to=void 0,this.from=void 0,this.config=new hw,this.immediate=!1}}function zg(e,{key:A,props:t,defaultProps:n,state:r,actions:i}){return new Promise((a,g)=>{var o;let s,l,d=ot((o=t.cancel)!=null?o:n==null?void 0:n.cancel,A);if(d)C();else{T.und(t.pause)||(r.paused=ot(t.pause,A));let h=n==null?void 0:n.pause;h!==!0&&(h=r.paused||ot(h,A)),s=hA(t.delay||0,A),h?(r.resumeQueue.add(w),i.pause()):(i.resume(),w())}function v(){r.resumeQueue.add(w),r.timeouts.delete(l),l.cancel(),s=l.time-W.now()}function w(){s>0&&!qe.skipAnimation?(r.delayed=!0,l=W.setTimeout(C,s),r.pauseQueue.add(v),r.timeouts.add(l)):C()}function C(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(v),r.timeouts.delete(l),e<=(r.cancelId||0)&&(d=!0);try{i.start(Pe({},t,{callId:e,cancel:d}),a)}catch(h){g(h)}}})}const hi=(e,A)=>A.length==1?A[0]:A.some(t=>t.cancelled)?LA(e.get()):A.every(t=>t.noop)?jg(e.get()):Te(e.get(),A.every(t=>t.finished)),jg=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Te=(e,A,t=!1)=>({value:e,finished:A,cancelled:t}),LA=e=>({value:e,cancelled:!0,finished:!1});function Ug(e,A,t,n){const{callId:r,parentId:i,onRest:a}=A,{asyncTo:g,promise:o}=t;return!i&&e===g&&!A.reset?o:t.promise=(async()=>{t.asyncId=r,t.asyncTo=e;const s=Ii(A,(E,P)=>P==="onRest"?void 0:E);let l,d;const v=new Promise((E,P)=>(l=E,d=P)),w=E=>{const P=r<=(t.cancelId||0)&&LA(n)||r!==t.asyncId&&Te(n,!1);if(P)throw E.result=P,d(E),E},C=(E,P)=>{const m=new kf,u=new Nf;return(async()=>{if(qe.skipAnimation)throw Qt(t),u.result=Te(n,!1),d(u),u;w(m);const c=T.obj(E)?Pe({},E):Pe({},P,{to:E});c.parentId=r,Ze(s,(B,b)=>{T.und(c[b])&&(c[b]=B)});const Q=await n.start(c);return w(m),t.paused&&await new Promise(B=>{t.resumeQueue.add(B)}),Q})()};let h;if(qe.skipAnimation)return Qt(t),Te(n,!1);try{let E;T.arr(e)?E=(async P=>{for(const m of P)await C(m)})(e):E=Promise.resolve(e(C,n.stop.bind(n))),await Promise.all([E.then(l),v]),h=Te(n.get(),!0,!1)}catch(E){if(E instanceof kf)h=E.result;else if(E instanceof Nf)h=E.result;else throw E}finally{r==t.asyncId&&(t.asyncId=i,t.asyncTo=i?g:void 0,t.promise=i?o:void 0)}return T.fun(a)&&W.batchedUpdates(()=>{a(h,n,n.item)}),h})()}function Qt(e,A){gt(e.timeouts,t=>t.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,A&&(e.cancelId=A)}class kf extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Nf extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Lr=e=>e instanceof Bi;let Ew=1;class Bi extends Rg{constructor(...A){super(...A),this.id=Ew++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(A){this._priority!=A&&(this._priority=A,this._onPriorityChange(A))}get(){const A=Xe(this);return A&&A.getValue()}to(...A){return qe.to(this,A)}interpolate(...A){return ew(),qe.to(this,A)}toJSON(){return this.get()}observerAdded(A){A==1&&this._attach()}observerRemoved(A){A==0&&this._detach()}_attach(){}_detach(){}_onChange(A,t=!1){wt(this,{type:"change",parent:this,value:A,idle:t})}_onPriorityChange(A){this.idle||Fn.sort(this),wt(this,{type:"priority",parent:this,priority:A})}}const mA=Symbol.for("SpringPhase"),Kg=1,kr=2,Nr=4,cr=e=>(e[mA]&Kg)>0,iA=e=>(e[mA]&kr)>0,qA=e=>(e[mA]&Nr)>0,Sf=(e,A)=>A?e[mA]|=kr|Kg:e[mA]&=~kr,Tf=(e,A)=>A?e[mA]|=Nr:e[mA]&=~Nr;class pw extends Bi{constructor(A,t){if(super(),this.key=void 0,this.animation=new mw,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!T.und(A)||!T.und(t)){const n=T.obj(A)?Pe({},A):Pe({},t,{from:A});T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(iA(this)||this._state.asyncTo)||qA(this)}get goal(){return ye(this.animation.to)}get velocity(){const A=Xe(this);return A instanceof JA?A.lastVelocity||0:A.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return cr(this)}get isAnimating(){return iA(this)}get isPaused(){return qA(this)}get isDelayed(){return this._state.delayed}advance(A){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:a}=r;const g=Nn(r.to);!g&&Le(r.to)&&(a=Re(ye(r.to))),r.values.forEach((l,d)=>{if(l.done)return;const v=l.constructor==GA?1:g?g[d].lastPosition:a[d];let w=r.immediate,C=v;if(!w){if(C=l.lastPosition,i.tension<=0){l.done=!0;return}let h=l.elapsedTime+=A;const E=r.fromValues[d],P=l.v0!=null?l.v0:l.v0=T.arr(i.velocity)?i.velocity[d]:i.velocity;let m;const u=i.precision||(E==v?.005:Math.min(1,Math.abs(v-E)*.001));if(T.und(i.duration))if(i.decay){const c=i.decay===!0?.998:i.decay,Q=Math.exp(-(1-c)*h);C=E+P/(1-c)*(1-Q),w=Math.abs(l.lastPosition-C)<=u,m=P*Q}else{m=l.lastVelocity==null?P:l.lastVelocity;const c=i.restVelocity||u/10,Q=i.clamp?0:i.bounce,B=!T.und(Q),b=E==v?l.v0>0:E<v;let x,S=!1;const O=1,M=Math.ceil(A/O);for(let Y=0;Y<M&&(x=Math.abs(m)>c,!(!x&&(w=Math.abs(v-C)<=u,w)));++Y){B&&(S=C==v||C>v==b,S&&(m=-m*Q,C=v));const ee=-i.tension*1e-6*(C-v),z=-i.friction*.001*m,H=(ee+z)/i.mass;m=m+H*O,C=C+m*O}}else{let c=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,h=l.elapsedTime+=A)),c=(i.progress||0)+h/this._memoizedDuration,c=c>1?1:c<0?0:c,l.durationProgress=c),C=E+i.easing(c)*(v-E),m=(C-l.lastPosition)/A,w=c==1}l.lastVelocity=m,Number.isNaN(C)&&(console.warn("Got NaN while animating:",this),w=!0)}g&&!g[d].done&&(w=!1),w?l.done=!0:t=!1,l.setValue(C,i.round)&&(n=!0)});const o=Xe(this),s=o.getValue();if(t){const l=ye(r.to);(s!==l||n)&&!i.decay?(o.setValue(l),this._onChange(l)):n&&i.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}set(A){return W.batchedUpdates(()=>{this._stop(),this._focus(A),this._set(A)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(iA(this)){const{to:A,config:t}=this.animation;W.batchedUpdates(()=>{this._onStart(),t.decay||this._set(A,!1),this._stop()})}return this}update(A){return(this.queue||(this.queue=[])).push(A),this}start(A,t){let n;return T.und(A)?(n=this.queue||[],this.queue=[]):n=[T.obj(A)?A:Pe({},t,{to:A})],Promise.all(n.map(r=>this._update(r))).then(r=>hi(this,r))}stop(A){const{to:t}=this.animation;return this._focus(this.get()),Qt(this._state,A&&this._lastCallId),W.batchedUpdates(()=>this._stop(t,A)),this}reset(){this._update({reset:!0})}eventObserved(A){A.type=="change"?this._start():A.type=="priority"&&(this.priority=A.priority+1)}_prepareNode(A){const t=this.key||"";let{to:n,from:r}=A;n=T.obj(n)?n[t]:n,(n==null||Fr(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return cr(this)||(A.reverse&&([n,r]=[r,n]),r=ye(r),T.und(r)?Xe(this)||this._set(n):this._set(r)),i}_update(A,t){let n=Pe({},A);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Ii(n,(o,s)=>/^on/.test(s)?Tg(o,r):o)),Gf(this,n,"onProps"),$A(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const g=this._state;return zg(++this._lastCallId,{key:r,props:n,defaultProps:i,state:g,actions:{pause:()=>{qA(this)||(Tf(this,!0),rt(g.pauseQueue),$A(this,"onPause",Te(this,_A(this,this.animation.to)),this))},resume:()=>{qA(this)&&(Tf(this,!1),iA(this)&&this._resume(),rt(g.resumeQueue),$A(this,"onResume",Te(this,_A(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(n.loop&&o.finished&&!(t&&o.noop)){const s=Yg(n);if(s)return this._update(s,!0)}return o})}_merge(A,t,n){if(t.cancel)return this.stop(!0),n(LA(this));const r=!T.und(A.to),i=!T.und(A.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(LA(this));const{key:a,defaultProps:g,animation:o}=this,{to:s,from:l}=o;let{to:d=s,from:v=l}=A;i&&!r&&(!t.default||T.und(d))&&(d=v),t.reverse&&([d,v]=[v,d]);const w=!tA(v,l);w&&(o.from=v),v=ye(v);const C=!tA(d,s);C&&this._focus(d);const h=Fr(t.to),{config:E}=o,{decay:P,velocity:m}=E;(r||i)&&(E.velocity=0),t.config&&!h&&Bw(E,hA(t.config,a),t.config!==g.config?hA(g.config,a):void 0);let u=Xe(this);if(!u||T.und(d))return n(Te(this,!0));const c=T.und(t.reset)?i&&!t.default:!T.und(v)&&ot(t.reset,a),Q=c?v:this.get(),B=Pt(d),b=T.num(B)||T.arr(B)||kn(B),x=!h&&(!b||ot(g.immediate||t.immediate,a));if(C){const Y=Or(d);if(Y!==u.constructor)if(x)u=this._set(B);else throw Error(`Cannot animate between ${u.constructor.name} and ${Y.name}, as the "to" prop suggests`)}const S=u.constructor;let O=Le(d),M=!1;if(!O){const Y=c||!cr(this)&&w;(C||Y)&&(M=tA(Pt(Q),B),O=!M),(!tA(o.immediate,x)&&!x||!tA(E.decay,P)||!tA(E.velocity,m))&&(O=!0)}if(M&&iA(this)&&(o.changed&&!c?O=!0:O||this._stop(s)),!h&&((O||Le(s))&&(o.values=u.getPayload(),o.toValues=Le(d)?null:S==GA?[1]:Re(B)),o.immediate!=x&&(o.immediate=x,!x&&!c&&this._set(s)),O)){const{onRest:Y}=o;te(yw,z=>Gf(this,t,z));const ee=Te(this,_A(this,s));rt(this._pendingCalls,ee),this._pendingCalls.add(n),o.changed&&W.batchedUpdates(()=>{o.changed=!c,Y==null||Y(ee,this),c?hA(g.onRest,ee):o.onStart==null||o.onStart(ee,this)})}c&&this._set(Q),h?n(Ug(t.to,t,this._state,this)):O?this._start():iA(this)&&!C?this._pendingCalls.add(n):n(jg(Q))}_focus(A){const t=this.animation;A!==t.to&&(yf(this)&&this._detach(),t.to=A,yf(this)&&this._attach())}_attach(){let A=0;const{to:t}=this.animation;Le(t)&&(YA(t,this),Lr(t)&&(A=t.priority+1)),this.priority=A}_detach(){const{to:A}=this.animation;Le(A)&&dt(A,this)}_set(A,t=!0){const n=ye(A);if(!T.und(n)){const r=Xe(this);if(!r||!tA(n,r.getValue())){const i=Or(n);!r||r.constructor!=i?Pi(this,i.create(n)):r.setValue(n),r&&W.batchedUpdates(()=>{this._onChange(n,t)})}}return Xe(this)}_onStart(){const A=this.animation;A.changed||(A.changed=!0,$A(this,"onStart",Te(this,_A(this,A.to)),this))}_onChange(A,t){t||(this._onStart(),hA(this.animation.onChange,A,this)),hA(this.defaultProps.onChange,A,this),super._onChange(A,t)}_start(){const A=this.animation;Xe(this).reset(ye(A.to)),A.immediate||(A.fromValues=A.values.map(t=>t.lastPosition)),iA(this)||(Sf(this,!0),qA(this)||this._resume())}_resume(){qe.skipAnimation?this.finish():Fn.start(this)}_stop(A,t){if(iA(this)){Sf(this,!1);const n=this.animation;te(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),wt(this,{type:"idle",parent:this});const r=t?LA(this.get()):Te(this.get(),_A(this,A!=null?A:n.to));rt(this._pendingCalls,r),n.changed&&(n.changed=!1,$A(this,"onRest",r,this))}}}function _A(e,A){const t=Pt(A),n=Pt(e.get());return tA(n,t)}function Yg(e,A=e.loop,t=e.to){let n=hA(A);if(n){const r=n!==!0&&Gg(n),i=(r||e).reverse,a=!r||r.reset;return It(Pe({},e,{loop:A,default:!1,pause:void 0,to:!i||Fr(t)?t:void 0,from:a?e.from:void 0,reset:a},r))}}function It(e){const{to:A,from:t}=e=Gg(e),n=new Set;return T.obj(A)&&Hf(A,n),T.obj(t)&&Hf(t,n),e.keys=n.size?Array.from(n):null,e}function Dw(e){const A=It(e);return T.und(A.default)&&(A.default=Ii(A)),A}function Hf(e,A){Ze(e,(t,n)=>t!=null&&A.add(n))}const yw=["onStart","onRest","onChange","onPause","onResume"];function Gf(e,A,t){e.animation[t]=A[t]!==Hg(A,t)?Tg(A[t],e.key):void 0}function $A(e,A,...t){var n,r,i,a;(n=(r=e.animation)[A])==null||n.call(r,...t),(i=(a=e.defaultProps)[A])==null||i.call(a,...t)}const bw=["onStart","onChange","onRest"];let xw=1;class Rw{constructor(A,t){this.id=xw++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),A&&this.start(Pe({default:!0},A))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(A=>A.idle&&!A.isDelayed&&!A.isPaused)}get item(){return this._item}set item(A){this._item=A}get(){const A={};return this.each((t,n)=>A[n]=t.get()),A}set(A){for(const t in A){const n=A[t];T.und(n)||this.springs[t].set(n)}}update(A){return A&&this.queue.push(It(A)),this}start(A){let{queue:t}=this;return A?t=Re(A).map(It):this.queue=[],this._flush?this._flush(this,t):(Zg(this,t),Sr(this,t))}stop(A,t){if(A!==!!A&&(t=A),t){const n=this.springs;te(Re(t),r=>n[r].stop(!!A))}else Qt(this._state,this._lastAsyncId),this.each(n=>n.stop(!!A));return this}pause(A){if(T.und(A))this.start({pause:!0});else{const t=this.springs;te(Re(A),n=>t[n].pause())}return this}resume(A){if(T.und(A))this.start({pause:!1});else{const t=this.springs;te(Re(A),n=>t[n].resume())}return this}each(A){Ze(this.springs,A)}_onFrame(){const{onStart:A,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gt(A,([o,s])=>{s.value=this.get(),o(s,this,this._item)}));const a=!r&&this._started,g=i||a&&n.size?this.get():null;i&&t.size&>(t,([o,s])=>{s.value=g,o(s,this,this._item)}),a&&(this._started=!1,gt(n,([o,s])=>{s.value=g,o(s,this,this._item)}))}eventObserved(A){if(A.type=="change")this._changed.add(A.parent),A.idle||this._active.add(A.parent);else if(A.type=="idle")this._active.delete(A.parent);else return;W.onFrame(this._onFrame)}}function Sr(e,A){return Promise.all(A.map(t=>Jg(e,t))).then(t=>hi(e,t))}async function Jg(e,A,t){const{keys:n,to:r,from:i,loop:a,onRest:g,onResolve:o}=A,s=T.obj(A.default)&&A.default;a&&(A.loop=!1),r===!1&&(A.to=null),i===!1&&(A.from=null);const l=T.arr(r)||T.fun(r)?r:void 0;l?(A.to=void 0,A.onRest=void 0,s&&(s.onRest=void 0)):te(bw,h=>{const E=A[h];if(T.fun(E)){const P=e._events[h];A[h]=({finished:m,cancelled:u})=>{const c=P.get(E);c?(m||(c.finished=!1),u&&(c.cancelled=!0)):P.set(E,{value:null,finished:m||!1,cancelled:u||!1})},s&&(s[h]=A[h])}});const d=e._state;A.pause===!d.paused?(d.paused=A.pause,rt(A.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(A.pause=!0);const v=(n||Object.keys(e.springs)).map(h=>e.springs[h].start(A)),w=A.cancel===!0||Hg(A,"cancel")===!0;(l||w&&d.asyncId)&&v.push(zg(++e._lastAsyncId,{props:A,state:d,actions:{pause:br,resume:br,start(h,E){w?(Qt(d,e._lastAsyncId),E(LA(e))):(h.onRest=g,E(Ug(l,h,d,e)))}}})),d.paused&&await new Promise(h=>{d.resumeQueue.add(h)});const C=hi(e,await Promise.all(v));if(a&&C.finished&&!(t&&C.noop)){const h=Yg(A,a,r);if(h)return Zg(e,[h]),Jg(e,h,!0)}return o&&W.batchedUpdates(()=>o(C,e,e.item)),C}function zf(e,A){const t=Pe({},e.springs);return A&&te(Re(A),n=>{T.und(n.keys)&&(n=It(n)),T.obj(n.to)||(n=Pe({},n,{to:void 0})),Wg(t,n,r=>Vg(r))}),Xg(e,t),t}function Xg(e,A){Ze(A,(t,n)=>{e.springs[n]||(e.springs[n]=t,YA(t,e))})}function Vg(e,A){const t=new pw;return t.key=e,A&&YA(t,A),t}function Wg(e,A,t){A.keys&&te(A.keys,n=>{(e[n]||(e[n]=t(n)))._prepareNode(A)})}function Zg(e,A){te(A,t=>{Wg(e.springs,t,n=>Vg(n,e))})}function Ow(e,A){if(e==null)return{};var t={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(A.indexOf(r)>=0)&&(t[r]=e[r]);return t}const Fw=["children"],Tn=e=>{let{children:A}=e,t=Ow(e,Fw);const n=D.useContext(Qn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=rw(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=Qn;return j.createElement(a,{value:t},A)},Qn=Mw(Tn,{});Tn.Provider=Qn.Provider;Tn.Consumer=Qn.Consumer;function Mw(e,A){return Object.assign(e,j.createContext(A)),e.Provider._context=e,e.Consumer._context=e,e}const Lw=()=>{const e=[],A=function(r){tw();const i=[];return te(e,(a,g)=>{if(T.und(r))i.push(a.start());else{const o=t(r,a,g);o&&i.push(a.start(o))}}),i};A.current=e,A.add=function(n){e.includes(n)||e.push(n)},A.delete=function(n){const r=e.indexOf(n);~r&&e.splice(r,1)},A.pause=function(){return te(e,n=>n.pause(...arguments)),this},A.resume=function(){return te(e,n=>n.resume(...arguments)),this},A.set=function(n){te(e,r=>r.set(n))},A.start=function(n){const r=[];return te(e,(i,a)=>{if(T.und(n))r.push(i.start());else{const g=this._getProps(n,i,a);g&&r.push(i.start(g))}}),r},A.stop=function(){return te(e,n=>n.stop(...arguments)),this},A.update=function(n){return te(e,(r,i)=>r.update(this._getProps(n,r,i))),this};const t=function(r,i,a){return T.fun(r)?r(a,i):r};return A._getProps=t,A};function kw(e,A,t){const n=T.fun(A)&&A;n&&!t&&(t=[]);const r=D.useMemo(()=>n||arguments.length==3?Lw():void 0,[]),i=D.useRef(0),a=kg(),g=D.useMemo(()=>({ctrls:[],queue:[],flush(P,m){const u=zf(P,m);return i.current>0&&!g.queue.length&&!Object.keys(u).some(Q=>!P.springs[Q])?Sr(P,m):new Promise(Q=>{Xg(P,u),g.queue.push(()=>{Q(Sr(P,m))}),a()})}}),[]),o=D.useRef([...g.ctrls]),s=[],l=xf(e)||0;D.useMemo(()=>{te(o.current.slice(e,l),P=>{Pw(P,r),P.stop(!0)}),o.current.length=e,d(l,e)},[e]),D.useMemo(()=>{d(0,Math.min(l,e))},t);function d(P,m){for(let u=P;u<m;u++){const c=o.current[u]||(o.current[u]=new Rw(null,g.flush)),Q=n?n(u,c):A[u];Q&&(s[u]=Dw(Q))}}const v=o.current.map((P,m)=>zf(P,s[m])),w=D.useContext(Tn),C=xf(w),h=w!==C&&Cw(w);Ci(()=>{i.current++,g.ctrls=o.current;const{queue:P}=g;P.length&&(g.queue=[],te(P,m=>m())),te(o.current,(m,u)=>{r==null||r.add(m),h&&m.start({default:w});const c=s[u];c&&(Qw(m,c.ref),m.ref?m.queue.push(c):m.start(c))})}),Ng(()=>()=>{te(g.ctrls,P=>P.stop(!0))});const E=v.map(P=>Pe({},P));return r?[E,r]:E}function cA(e,A){const t=T.fun(e),[[n],r]=kw(1,t?e:[e],t?A||[]:A);return t||arguments.length==2?[n,r]:n}let jf;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(jf||(jf={}));class Nw extends Bi{constructor(A,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=A,this.calc=vt(...t);const n=this._get(),r=Or(n);Pi(this,r.create(n))}advance(A){const t=this._get(),n=this.get();tA(t,n)||(Xe(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Uf(this._active)&&vr(this)}_get(){const A=T.arr(this.source)?this.source.map(ye):Re(ye(this.source));return this.calc(...A)}_start(){this.idle&&!Uf(this._active)&&(this.idle=!1,te(Nn(this),A=>{A.done=!1}),qe.skipAnimation?(W.batchedUpdates(()=>this.advance()),vr(this)):Fn.start(this))}_attach(){let A=1;te(Re(this.source),t=>{Le(t)&&YA(t,this),Lr(t)&&(t.idle||this._active.add(t),A=Math.max(A,t.priority+1))}),this.priority=A,this._start()}_detach(){te(Re(this.source),A=>{Le(A)&&dt(A,this)}),this._active.clear(),vr(this)}eventObserved(A){A.type=="change"?A.idle?this.advance():(this._active.add(A.parent),this._start()):A.type=="idle"?this._active.delete(A.parent):A.type=="priority"&&(this.priority=Re(this.source).reduce((t,n)=>Math.max(t,(Lr(n)?n.priority:0)+1),0))}}function Sw(e){return e.idle!==!1}function Uf(e){return!e.size||Array.from(e).every(Sw)}function vr(e){e.idle||(e.idle=!0,te(Nn(e),A=>{A.done=!0}),wt(e,{type:"idle",parent:e}))}qe.assign({createStringInterpolator:Mg,to:(e,A)=>new Nw(e,A)});function mi(e,A){if(e==null)return{};var t={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(A.indexOf(r)>=0)&&(t[r]=e[r]);return t}const Tw=["style","children","scrollTop","scrollLeft","viewBox"],qg=/^--/;function Hw(e,A){return A==null||typeof A=="boolean"||A===""?"":typeof A=="number"&&A!==0&&!qg.test(e)&&!(lt.hasOwnProperty(e)&<[e])?A+"px":(""+A).trim()}const Kf={};function Gw(e,A){if(!e.nodeType||!e.setAttribute)return!1;const t=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",n=A,{style:r,children:i,scrollTop:a,scrollLeft:g,viewBox:o}=n,s=mi(n,Tw),l=Object.values(s),d=Object.keys(s).map(v=>t||e.hasAttribute(v)?v:Kf[v]||(Kf[v]=v.replace(/([A-Z])/g,w=>"-"+w.toLowerCase())));i!==void 0&&(e.textContent=i);for(let v in r)if(r.hasOwnProperty(v)){const w=Hw(v,r[v]);qg.test(v)?e.style.setProperty(v,w):e.style[v]=w}d.forEach((v,w)=>{e.setAttribute(v,l[w])}),a!==void 0&&(e.scrollTop=a),g!==void 0&&(e.scrollLeft=g),o!==void 0&&e.setAttribute("viewBox",o)}let lt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const zw=(e,A)=>e+A.charAt(0).toUpperCase()+A.substring(1),jw=["Webkit","Ms","Moz","O"];lt=Object.keys(lt).reduce((e,A)=>(jw.forEach(t=>e[zw(t,A)]=e[A]),e),lt);const Uw=["x","y","z"],Kw=/^(matrix|translate|scale|rotate|skew)/,Yw=/^(translate)/,Jw=/^(rotate|skew)/,wr=(e,A)=>T.num(e)&&e!==0?e+A:e,gn=(e,A)=>T.arr(e)?e.every(t=>gn(t,A)):T.num(e)?e===A:parseFloat(e)===A;class Xw extends Sn{constructor(A){let{x:t,y:n,z:r}=A,i=mi(A,Uw);const a=[],g=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),g.push(o=>[`translate3d(${o.map(s=>wr(s,"px")).join(",")})`,gn(o,0)])),Ze(i,(o,s)=>{if(s==="transform")a.push([o||""]),g.push(l=>[l,l===""]);else if(Kw.test(s)){if(delete i[s],T.und(o))return;const l=Yw.test(s)?"px":Jw.test(s)?"deg":"";a.push(Re(o)),g.push(s==="rotate3d"?([d,v,w,C])=>[`rotate3d(${d},${v},${w},${wr(C,l)})`,gn(C,0)]:d=>[`${s}(${d.map(v=>wr(v,l)).join(",")})`,gn(d,s.startsWith("scale")?1:0)])}}),a.length&&(i.transform=new Vw(a,g)),super(i)}}class Vw extends Rg{constructor(A,t){super(),this._value=null,this.inputs=A,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let A="",t=!0;return te(this.inputs,(n,r)=>{const i=ye(n[0]),[a,g]=this.transforms[r](T.arr(i)?i:n.map(ye));A+=" "+a,t=t&&g}),t?"none":A}observerAdded(A){A==1&&te(this.inputs,t=>te(t,n=>Le(n)&&YA(n,this)))}observerRemoved(A){A==0&&te(this.inputs,t=>te(t,n=>Le(n)&&dt(n,this)))}eventObserved(A){A.type=="change"&&(this._value=null),wt(this,A)}}const Ww=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zw=["scrollTop","scrollLeft"];qe.assign({batchedUpdates:pn.unstable_batchedUpdates,createStringInterpolator:Mg,colors:Mv});const qw=uw(Ww,{applyAnimatedValues:Gw,createAnimatedStyle:e=>new Xw(e),getComponentProps:e=>mi(e,Zw)}),We=qw.animated;function _w(e){return(typeof e=="function"?e():e)||document.body}function Ei(e,A){if(Ot&&e){const t=_w(e);return pn.createPortal(A,t)}return A}function $w(e){const A=D.useRef(e);return e&&(A.current=!0),!!A.current}const Hn=e=>ed(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function ed(e,A,t){const n=$w(e);return A||e?!0:n?!t:!1}const Ad={click:"onClick",touchstart:"onTouchStart"};function pi(e,A){const t=Object.assign({},A.props);for(const n of e){const r=Ad[n];t[r]=function(i){var a,g;i.stopPropagation(),(g=(a=A.props)[r])===null||g===void 0||g.call(a,i)}}return f.default.cloneElement(A,t)}const dr="adm-mask",td={default:.55,thin:.35,thick:.75},nd={black:"0, 0, 0",white:"255, 255, 255"},rd={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},id=e=>{const A=se(rd,e),{locale:t}=ze(),n=D.useRef(null);ai(n,A.visible&&A.disableBodyScroll);const r=D.useMemo(()=>{var l;const d=(l=td[A.opacity])!==null&&l!==void 0?l:A.opacity,v=nd[A.color];return v?`rgba(${v}, ${d})`:A.color},[A.color,A.opacity]),[i,a]=D.useState(A.visible),g=fi(),{opacity:o}=cA({opacity:A.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var l,d;g.current||(a(A.visible),A.visible?(l=A.afterShow)===null||l===void 0||l.call(A):(d=A.afterClose)===null||d===void 0||d.call(A))}}),s=pi(A.stopPropagation,ae(A,f.default.createElement(We.div,{className:dr,ref:n,"aria-hidden":!0,style:Object.assign(Object.assign({},A.style),{background:r,opacity:o,display:i?void 0:"none"}),onClick:l=>{var d;l.target===l.currentTarget&&((d=A.onMaskClick)===null||d===void 0||d.call(A,l))}},A.onMaskClick&&f.default.createElement("div",{className:`${dr}-aria-button`,role:"button","aria-label":t.Mask.name,onClick:A.onMaskClick}),f.default.createElement("div",{className:`${dr}-content`},A.children))));return f.default.createElement(Hn,{active:i,forceRender:A.forceRender,destroyOnClose:A.destroyOnClose},Ei(A.getContainer,s))};var _g=id;function fd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"AddOutline-add"},j.createElement("rect",{id:"AddOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function ad(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CalculatorOutline-CalculatorOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CalculatorOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"CalculatorOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M38,4 C41.3137085,4 44,6.6862915 44,10 L44,38 C44,41.3137085 41.3137085,44 38,44 L10,44 C6.6862915,44 4,41.3137085 4,38 L4,10 C4,6.6862915 6.6862915,4 10,4 L38,4 Z M38,7 L10,7 C8.40231912,7 7.09633912,8.24891996 7.00509269,9.82372721 L7,10 L7,38 C7,39.5976809 8.24891996,40.9036609 9.82372721,40.9949073 L10,41 L38,41 C39.5976809,41 40.9036609,39.75108 40.9949073,38.1762728 L41,38 L41,10 C41,8.40231912 39.75108,7.09633912 38.1762728,7.00509269 L38,7 Z M24,22.4 L24,24.6 C24,24.8209139 23.8209139,25 23.6,25 L6.4,25 C6.1790861,25 6,24.8209139 6,24.6 L6,22.4 C6,22.1790861 6.1790861,22 6.4,22 L23.6,22 C23.8209139,22 24,22.1790861 24,22.4 Z M19,31.4 L19,33.6 C19,33.8209139 18.8209139,34 18.6,34 L10.4,34 C10.1790861,34 10,33.8209139 10,33.6 L10,31.4 C10,31.1790861 10.1790861,31 10.4,31 L18.6,31 C18.8209139,31 19,31.1790861 19,31.4 Z M38,20.4 L38,22.6 C38,22.8209139 37.8209139,23 37.6,23 L29.4,23 C29.1790861,23 29,22.8209139 29,22.6 L29,20.4 C29,20.1790861 29.1790861,20 29.4,20 L37.6,20 C37.8209139,20 38,20.1790861 38,20.4 Z M38,25.4 L38,27.6 C38,27.8209139 37.8209139,28 37.6,28 L29.4,28 C29.1790861,28 29,27.8209139 29,27.6 L29,25.4 C29,25.1790861 29.1790861,25 29.4,25 L37.6,25 C37.8209139,25 38,25.1790861 38,25.4 Z M19,13.4 L19,15.6 C19,15.8209139 18.8209139,16 18.6,16 L10.4,16 C10.1790861,16 10,15.8209139 10,15.6 L10,13.4 C10,13.1790861 10.1790861,13 10.4,13 L18.6,13 C18.8209139,13 19,13.1790861 19,13.4 Z M25,6.4 L25,42.6 C25,42.8209139 24.8209139,43 24.6,43 L22.4,43 C22.1790861,43 22,42.8209139 22,42.6 L22,6.4 C22,6.1790861 22.1790861,6 22.4,6 L24.6,6 C24.8209139,6 25,6.1790861 25,6.4 Z M16,10.4 L16,18.6 C16,18.8209139 15.8209139,19 15.6,19 L13.4,19 C13.1790861,19 13,18.8209139 13,18.6 L13,10.4 C13,10.1790861 13.1790861,10 13.4,10 L15.6,10 C15.8209139,10 16,10.1790861 16,10.4 Z",id:"CalculatorOutline-\u5F62\u72B6",fill:"currentColor",fillRule:"nonzero"}))))}function gd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CheckOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"CheckOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function sd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CloseCircleFill-\u7F16\u7EC4"},j.createElement("rect",{id:"CloseCircleFill-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function od(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CloseOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"CloseOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function ld(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"EditSOutline-EditSOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"EditSOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"EditSOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M39.1558113,6.84476948 L39.1547876,6.84478452 C41.6150708,9.30533949 41.6150708,13.2945216 39.1547875,15.7550568 L14.2175882,40.6933641 C14.0205351,40.8899288 13.7535085,41 13.475183,41 L7.10015653,41 C5.94027729,41 5.00000168,40.0596889 5.00000168,38.8997532 L5.00000168,32.525535 C4.9995034,32.2468348 5.1098075,31.9793647 5.30661943,31.7820434 L30.2469685,6.84477025 C32.707296,4.38507671 36.6954838,4.38507671 39.1558113,6.84476948 Z M41.5764707,38 C41.8588237,38 42,38.1333332 42,38.4000001 L42,40.5999999 C42,40.8666668 41.8588237,41 41.5764707,41 L24.4235293,41 C24.1411763,41 24,40.8666668 24,40.5999999 L24,38.4000001 C24,38.1333332 24.1411763,38 24.4235293,38 L41.5764707,38 Z M28.172,13.371 L8.2730898,33.272167 C8.19433904,33.3510089 8.15023081,33.4579141 8.15023081,33.5693515 L8.15023081,37.4317018 C8.15023081,37.663779 8.33819467,37.8517506 8.57026108,37.8517506 L12.4303379,37.8517506 C12.5419214,37.8517506 12.6488431,37.8069757 12.7275092,37.7278363 L32.628,17.827 L28.172,13.371 Z M41.5555549,31 C41.8518518,31 42,31.1333332 42,31.4000001 L42,33.5999999 C42,33.8666668 41.8518518,34 41.5555549,34 L32.4444451,34 C32.1481482,34 32,33.8666668 32,33.5999999 L32,31.4000001 C32,31.1333332 32.1481482,31 32.4444451,31 L41.5555549,31 Z M32.607562,8.94503104 L32.4721022,9.07104573 L30.371,11.172 L34.827,15.628 L36.9275554,13.5288315 C38.1074041,12.3492947 38.1631188,10.4544078 37.0546144,9.20757614 L36.9286053,9.07316031 L36.9286254,9.07104573 C35.7488554,7.89144977 33.8540626,7.83619529 32.607562,8.94503104 Z",id:"EditSOutline-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function ud(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"LeftOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"LeftOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function cd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"MinusOutline-MinusOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"MinusOutline-add"},j.createElement("rect",{id:"MinusOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",id:"MinusOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function vd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"MoreOutline-MoreOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"MoreOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"MoreOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M12,21 C13.6568542,21 15,22.3431458 15,24 C15,25.6568542 13.6568542,27 12,27 C10.3431458,27 9,25.6568542 9,24 C9,22.3431458 10.3431458,21 12,21 Z M24,21 C25.6568542,21 27,22.3431458 27,24 C27,25.6568542 25.6568542,27 24,27 C22.3431458,27 21,25.6568542 21,24 C21,22.3431458 22.3431458,21 24,21 Z M36,21 C37.6568542,21 39,22.3431458 39,24 C39,25.6568542 37.6568542,27 36,27 C34.3431458,27 33,25.6568542 33,24 C33,22.3431458 34.3431458,21 36,21 Z",id:"MoreOutline-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function Di(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"RightOutline-RightOutlined"},j.createElement("rect",{id:"RightOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function wd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"ScanningOutline-ScanningOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"ScanningOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"ScanningOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M6.6,32 C6.8209139,32 7,32.1790861 7,32.4 L7,38 C7,39.5976809 8.24891996,40.9036609 9.82372721,40.9949073 L10,41 L15.6,41 C15.8209139,41 16,41.1790861 16,41.4 L16,43.6 C16,43.8209139 15.8209139,44 15.6,44 L10,44 C6.6862915,44 4,41.3137085 4,38 L4,32.4 C4,32.1790861 4.1790861,32 4.4,32 L6.6,32 Z M43.6,32 C43.8209139,32 44,32.1790861 44,32.4 L44,38 C44,41.3137085 41.3137085,44 38,44 L32.4,44 C32.1790861,44 32,43.8209139 32,43.6 L32,41.4 C32,41.1790861 32.1790861,41 32.4,41 L38,41 C39.5976809,41 40.9036609,39.75108 40.9949073,38.1762728 L41,38 L41,32.4 C41,32.1790861 41.1790861,32 41.4,32 L43.6,32 Z M43.6,23 C43.8209139,23 44,23.1790861 44,23.4 L44,25.6 C44,25.8209139 43.8209139,26 43.6,26 L4.4,26 C4.1790861,26 4,25.8209139 4,25.6 L4,23.4 C4,23.1790861 4.1790861,23 4.4,23 L43.6,23 Z M38,4 C41.3137085,4 44,6.6862915 44,10 L44,15.6 C44,15.8209139 43.8209139,16 43.6,16 L41.4,16 C41.1790861,16 41,15.8209139 41,15.6 L41,10 C41,8.40231912 39.75108,7.09633912 38.1762728,7.00509269 L38,7 L32.4,7 C32.1790861,7 32,6.8209139 32,6.6 L32,4.4 C32,4.1790861 32.1790861,4 32.4,4 L38,4 Z M15.6,4 C15.8209139,4 16,4.1790861 16,4.4 L16,6.6 C16,6.8209139 15.8209139,7 15.6,7 L10,7 C8.40231912,7 7.09633912,8.24891996 7.00509269,9.82372721 L7,10 L7,15.6 C7,15.8209139 6.8209139,16 6.6,16 L4.4,16 C4.1790861,16 4,15.8209139 4,15.6 L4,10 C4,6.6862915 6.6862915,4 10,4 L15.6,4 Z",id:"ScanningOutline-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function dd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"SearchOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"SearchOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-\u5F62\u72B6",fill:"currentColor",fillRule:"nonzero"}))))}function Cd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"TextOutline-TextOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"TextOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"TextOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M31.3431458,3 C32.4040117,3 33.4214274,3.42142736 34.1715729,4.17157288 L41.8284271,11.8284271 C42.5785726,12.5785726 43,13.5959883 43,14.6568542 L43,39 C43,42.3137085 40.3137085,45 37,45 L11,45 C7.6862915,45 5,42.3137085 5,39 L5,9 C5,5.6862915 7.6862915,3 11,3 L31.3431458,3 Z M30,6 L11,6 C9.40231912,6 8.09633912,7.24891996 8.00509269,8.82372721 L8,9 L8,39 C8,40.5976809 9.24891996,41.9036609 10.8237272,41.9949073 L11,42 L37,42 C38.5976809,42 39.9036609,40.75108 39.9949073,39.1762728 L40,39 L40,17 L33,17 C31.3431458,17 30,15.6568542 30,14 L30,6 Z M37,25.4 L37,27.6 C37,27.8209139 36.8209139,28 36.6,28 L11.4,28 C11.1790861,28 11,27.8209139 11,27.6 L11,25.4 C11,25.1790861 11.1790861,25 11.4,25 L36.6,25 C36.8209139,25 37,25.1790861 37,25.4 Z M24,19.4 L24,21.6 C24,21.8209139 23.8209139,22 23.6,22 L11.4,22 C11.1790861,22 11,21.8209139 11,21.6 L11,19.4 C11,19.1790861 11.1790861,19 11.4,19 L23.6,19 C23.8209139,19 24,19.1790861 24,19.4 Z M33,8.20775065 L33,13.5969918 C33,13.8179057 33.1790861,13.9969918 33.4,13.9969918 C33.400999,13.9969918 33.4019979,13.9969881 33.4029969,13.9969806 L38.7516527,13.9569061 C38.9725604,13.955251 39.1502997,13.7748282 39.1486446,13.5539205 C39.1478576,13.4488816 39.1057843,13.3483675 39.031512,13.2740882 L33.6828562,7.92492145 C33.526654,7.76870427 33.273388,7.76869218 33.1171708,7.92489443 C33.042148,7.99991008 33,8.10165744 33,8.20775065 Z",id:"TextOutline-\u5F62\u72B6",fill:"currentColor",fillRule:"nonzero"}))))}const $g={closeOnMaskClick:!1,closeIcon:f.default.createElement(od,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function es(e){const[A,t]=D.useState(e);return Ge(()=>{t(e)},[e]),A}function Pd(e,A,t){return Math.max(A,Math.min(e,t))}const Qe={toVector(e,A){return e===void 0&&(e=A),Array.isArray(e)?e:[e,e]},add(e,A){return[e[0]+A[0],e[1]+A[1]]},sub(e,A){return[e[0]-A[0],e[1]-A[1]]},addTo(e,A){e[0]+=A[0],e[1]+=A[1]},subTo(e,A){e[0]-=A[0],e[1]-=A[1]}};function Yf(e,A,t){return A===0||Math.abs(A)===1/0?Math.pow(e,t*5):e*A*t/(A+t*e)}function Jf(e,A,t,n=.15){return n===0?Pd(e,A,t):e<A?-Yf(A-e,t-A,n)+A:e>t?+Yf(e-t,t-A,n)+t:e}function Qd(e,[A,t],[n,r]){const[[i,a],[g,o]]=e;return[Jf(A,i,a,n),Jf(t,g,o,r)]}function Id(e,A){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,A||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(e)}function hd(e){var A=Id(e,"string");return typeof A=="symbol"?A:String(A)}function Ee(e,A,t){return A=hd(A),A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function Xf(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);A&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function ge(e){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?Xf(Object(t),!0).forEach(function(n){Ee(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xf(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}const As={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 Vf(e){return e?e[0].toUpperCase()+e.slice(1):""}const Bd=["enter","leave"];function md(e=!1,A){return e&&!Bd.includes(A)}function Ed(e,A="",t=!1){const n=As[e],r=n&&n[A]||A;return"on"+Vf(e)+Vf(r)+(md(t,r)?"Capture":"")}const pd=["gotpointercapture","lostpointercapture"];function Dd(e){let A=e.substring(2).toLowerCase();const t=!!~A.indexOf("passive");t&&(A=A.replace("passive",""));const n=pd.includes(A)?"capturecapture":"capture",r=!!~A.indexOf(n);return r&&(A=A.replace("capture","")),{device:A,capture:r,passive:t}}function yd(e,A=""){const t=As[e],n=t&&t[A]||A;return e+n}function Gn(e){return"touches"in e}function ts(e){return Gn(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function bd(e){return Array.from(e.touches).filter(A=>{var t,n;return A.target===e.currentTarget||((t=e.currentTarget)===null||t===void 0||(n=t.contains)===null||n===void 0?void 0:n.call(t,A.target))})}function xd(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function ns(e){return Gn(e)?xd(e)[0]:e}function Rd(e){return bd(e).map(A=>A.identifier)}function Cr(e){const A=ns(e);return Gn(e)?A.identifier:A.pointerId}function Wf(e){const A=ns(e);return[A.clientX,A.clientY]}const Zf=40,qf=800;function Od(e){let{deltaX:A,deltaY:t,deltaMode:n}=e;return n===1?(A*=Zf,t*=Zf):n===2&&(A*=qf,t*=qf),[A,t]}function Fd(e){const A={};if("buttons"in e&&(A.buttons=e.buttons),"shiftKey"in e){const{shiftKey:t,altKey:n,metaKey:r,ctrlKey:i}=e;Object.assign(A,{shiftKey:t,altKey:n,metaKey:r,ctrlKey:i})}return A}function In(e,...A){return typeof e=="function"?e(...A):e}function Md(){}function Ld(...e){return e.length===0?Md:e.length===1?e[0]:function(){let A;for(const t of e)A=t.apply(this,arguments)||A;return A}}function _f(e,A){return Object.assign({},A,e||{})}const kd=32;class Nd{constructor(A,t,n){this.ctrl=A,this.args=t,this.key=n,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(A){this.ctrl.state[this.key]=A}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:A,shared:t,ingKey:n,args:r}=this;t[n]=A._active=A.active=A._blocked=A._force=!1,A._step=[!1,!1],A.intentional=!1,A._movement=[0,0],A._distance=[0,0],A._direction=[0,0],A._delta=[0,0],A._bounds=[[-1/0,1/0],[-1/0,1/0]],A.args=r,A.axis=void 0,A.memo=void 0,A.elapsedTime=A.timeDelta=0,A.direction=[0,0],A.distance=[0,0],A.overflow=[0,0],A._movementBound=[!1,!1],A.velocity=[0,0],A.movement=[0,0],A.delta=[0,0],A.timeStamp=0}start(A){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=A.target,t.currentTarget=A.currentTarget,t.lastOffset=n.from?In(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=A.timeStamp)}computeValues(A){const t=this.state;t._values=A,t.values=this.config.transform(A)}computeInitial(){const A=this.state;A._initial=A._values,A.initial=A.values}compute(A){const{state:t,config:n,shared:r}=this;t.args=this.args;let i=0;if(A&&(t.event=A,n.preventDefault&&A.cancelable&&t.event.preventDefault(),t.type=A.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Fd(A)),r.down=r.pressed=r.buttons%2===1||r.touches>0,i=A.timeStamp-t.timeStamp,t.timeStamp=A.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const B=t._delta.map(Math.abs);Qe.addTo(t._distance,B)}this.axisIntent&&this.axisIntent(A);const[a,g]=t._movement,[o,s]=n.threshold,{_step:l,values:d}=t;if(n.hasCustomTransform?(l[0]===!1&&(l[0]=Math.abs(a)>=o&&d[0]),l[1]===!1&&(l[1]=Math.abs(g)>=s&&d[1])):(l[0]===!1&&(l[0]=Math.abs(a)>=o&&Math.sign(a)*o),l[1]===!1&&(l[1]=Math.abs(g)>=s&&Math.sign(g)*s)),t.intentional=l[0]!==!1||l[1]!==!1,!t.intentional)return;const v=[0,0];if(n.hasCustomTransform){const[B,b]=d;v[0]=l[0]!==!1?B-l[0]:0,v[1]=l[1]!==!1?b-l[1]:0}else v[0]=l[0]!==!1?a-l[0]:0,v[1]=l[1]!==!1?g-l[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(v);const w=t.offset,C=t._active&&!t._blocked||t.active;C&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,A&&(t.first&&("bounds"in n&&(t._bounds=In(n.bounds,t)),this.setup&&this.setup()),t.movement=v,this.computeOffset()));const[h,E]=t.offset,[[P,m],[u,c]]=t._bounds;t.overflow=[h<P?-1:h>m?1:0,E<u?-1:E>c?1:0],t._movementBound[0]=t.overflow[0]?t._movementBound[0]===!1?t._movement[0]:t._movementBound[0]:!1,t._movementBound[1]=t.overflow[1]?t._movementBound[1]===!1?t._movement[1]:t._movementBound[1]:!1;const Q=t._active?n.rubberband||[0,0]:[0,0];if(t.offset=Qd(t._bounds,t.offset,Q),t.delta=Qe.sub(t.offset,w),this.computeMovement(),C&&(!t.last||i>kd)){t.delta=Qe.sub(t.offset,w);const B=t.delta.map(Math.abs);Qe.addTo(t.distance,B),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&i>0&&(t.velocity=[B[0]/i,B[1]/i],t.timeDelta=i)}}emit(){const A=this.state,t=this.shared,n=this.config;if(A._active||this.clean(),(A._blocked||!A.intentional)&&!A._force&&!n.triggerAllEvents)return;const r=this.handler(ge(ge(ge({},t),A),{},{[this.aliasKey]:A.values}));r!==void 0&&(A.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Sd([e,A],t){const n=Math.abs(e),r=Math.abs(A);if(n>r&&n>t)return"x";if(r>n&&r>t)return"y"}class rs extends Nd{constructor(...A){super(...A),Ee(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=Qe.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Qe.sub(this.state.offset,this.state.lastOffset)}axisIntent(A){const t=this.state,n=this.config;if(!t.axis&&A){const r=typeof n.axisThreshold=="object"?n.axisThreshold[ts(A)]:n.axisThreshold;t.axis=Sd(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(A){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":A[1]=0;break;case"y":A[0]=0;break}}}const Td=e=>e,$f=.15,is={enabled(e=!0){return e},eventOptions(e,A,t){return ge(ge({},t.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[$f,$f];case!1:return[0,0];default:return Qe.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Qe.toVector(e)},transform(e,A,t){const n=e||t.shared.transform;return this.hasCustomTransform=!!n,n||Td},threshold(e){return Qe.toVector(e,0)}},Hd=0,XA=ge(ge({},is),{},{axis(e,A,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(e=Hd){return e},bounds(e={}){if(typeof e=="function")return i=>XA.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:A=-1/0,right:t=1/0,top:n=-1/0,bottom:r=1/0}=e;return[[A,t],[n,r]]}}),ea={ArrowRight:(e,A=1)=>[e*A,0],ArrowLeft:(e,A=1)=>[-1*e*A,0],ArrowUp:(e,A=1)=>[0,-1*e*A],ArrowDown:(e,A=1)=>[0,e*A]};class Gd extends rs{constructor(...A){super(...A),Ee(this,"ingKey","dragging")}reset(){super.reset();const A=this.state;A._pointerId=void 0,A._pointerActive=!1,A._keyboardActive=!1,A._preventScroll=!1,A._delayed=!1,A.swipe=[0,0],A.tap=!1,A.canceled=!1,A.cancel=this.cancel.bind(this)}setup(){const A=this.state;if(A._bounds instanceof HTMLElement){const t=A._bounds.getBoundingClientRect(),n=A.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+A.offset[0],right:t.right-n.right+A.offset[0],top:t.top-n.top+A.offset[1],bottom:t.bottom-n.bottom+A.offset[1]};A._bounds=XA.bounds(r)}}cancel(){const A=this.state;A.canceled||(A.canceled=!0,A._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(A){const t=this.config,n=this.state;if(A.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(A.buttons):t.pointerButtons!==-1&&t.pointerButtons!==A.buttons))return;const r=this.ctrl.setEventIds(A);t.pointerCapture&&A.target.setPointerCapture(A.pointerId),!(r&&r.size>1&&n._pointerActive)&&(this.start(A),this.setupPointer(A),n._pointerId=Cr(A),n._pointerActive=!0,this.computeValues(Wf(A)),this.computeInitial(),t.preventScrollAxis&&ts(A)!=="mouse"?(n._active=!1,this.setupScrollPrevention(A)):t.delay>0?(this.setupDelayTrigger(A),t.triggerAllEvents&&(this.compute(A),this.emit())):this.startPointerDrag(A))}startPointerDrag(A){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(A),this.emit()}pointerMove(A){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=Cr(A);if(t._pointerId!==void 0&&r!==t._pointerId)return;const i=Wf(A);if(document.pointerLockElement===A.target?t._delta=[A.movementX,A.movementY]:(t._delta=Qe.sub(i,t._values),this.computeValues(i)),Qe.addTo(t._movement,t._delta),this.compute(A),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(A);return}if(n.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(A);return}else return;this.emit()}pointerUp(A){this.ctrl.setEventIds(A);try{this.config.pointerCapture&&A.target.hasPointerCapture(A.pointerId)&&A.target.releasePointerCapture(A.pointerId)}catch{}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Cr(A);if(t._pointerId!==void 0&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(A);const[i,a]=t._distance;if(t.tap=i<=n.tapsThreshold&&a<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[g,o]=t._delta,[s,l]=t._movement,[d,v]=n.swipe.velocity,[w,C]=n.swipe.distance,h=n.swipe.duration;if(t.elapsedTime<h){const E=Math.abs(g/t.timeDelta),P=Math.abs(o/t.timeDelta);E>d&&Math.abs(s)>w&&(t.swipe[0]=Math.sign(g)),P>v&&Math.abs(l)>C&&(t.swipe[1]=Math.sign(o))}}this.emit()}pointerClick(A){!this.state.tap&&A.detail>0&&(A.preventDefault(),A.stopPropagation())}setupPointer(A){const t=this.config,n=t.device;t.pointerLock&&A.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(A){this.state._preventScroll&&A.cancelable&&A.preventDefault()}setupScrollPrevention(A){this.state._preventScroll=!1,zd(A);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,A)}setupDelayTrigger(A){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(A)},this.config.delay)}keyDown(A){const t=ea[A.key];if(t){const n=this.state,r=A.shiftKey?10:A.altKey?.1:1;this.start(A),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,Qe.addTo(n._movement,n._delta),this.compute(A),this.emit()}}keyUp(A){A.key in ea&&(this.state._keyboardActive=!1,this.setActive(),this.compute(A),this.emit())}bind(A){const t=this.config.device;A(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(A(t,"change",this.pointerMove.bind(this)),A(t,"end",this.pointerUp.bind(this)),A(t,"cancel",this.pointerUp.bind(this)),A("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(A("key","down",this.keyDown.bind(this)),A("key","up",this.keyUp.bind(this))),this.config.filterTaps&&A("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function zd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const kt=typeof window!="undefined"&&window.document&&window.document.createElement;function fs(){return kt&&"ontouchstart"in window}function jd(){return fs()||kt&&window.navigator.maxTouchPoints>1}function Ud(){return kt&&"onpointerdown"in window}function Kd(){return kt&&"exitPointerLock"in window.document}function Yd(){try{return"constructor"in GestureEvent}catch{return!1}}const ke={isBrowser:kt,gesture:Yd(),touch:fs(),touchscreen:jd(),pointer:Ud(),pointerLock:Kd()},Jd=250,Xd=180,Vd=.5,Wd=50,Zd=250,qd=10,Aa={mouse:0,touch:0,pen:8},_d=ge(ge({},XA),{},{device(e,A,{pointer:{touch:t=!1,lock:n=!1,mouse:r=!1}={}}){return this.pointerLock=n&&ke.pointerLock,ke.touch&&t?"touch":this.pointerLock?"mouse":ke.pointer&&!r?"pointer":ke.touch?"touch":"mouse"},preventScrollAxis(e,A,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&e?Jd:void 0,!(!ke.touchscreen||t===!1))return e||(t!==void 0?"y":void 0)},pointerCapture(e,A,{pointer:{capture:t=!0,buttons:n=1,keys:r=!0}={}}){return this.pointerButtons=n,this.keys=r,!this.pointerLock&&this.device==="pointer"&&t},threshold(e,A,{filterTaps:t=!1,tapsThreshold:n=3,axis:r=void 0}){const i=Qe.toVector(e,t?n:r?1:0);return this.filterTaps=t,this.tapsThreshold=n,i},swipe({velocity:e=Vd,distance:A=Wd,duration:t=Zd}={}){return{velocity:this.transform(Qe.toVector(e)),distance:this.transform(Qe.toVector(A)),duration:t}},delay(e=0){switch(e){case!0:return Xd;case!1:return 0;default:return e}},axisThreshold(e){return e?ge(ge({},Aa),e):Aa},keyboardDisplacement(e=qd){return e}});function $d(e){const[A,t]=e.overflow,[n,r]=e._delta,[i,a]=e._direction;(A<0&&n>0&&i<0||A>0&&n<0&&i>0)&&(e._movement[0]=e._movementBound[0]),(t<0&&r>0&&a<0||t>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}ge(ge({},is),{},{device(e,A,{shared:t,pointer:{touch:n=!1}={}}){if(t.target&&!ke.touch&&ke.gesture)return"gesture";if(ke.touch&&n)return"touch";if(ke.touchscreen){if(ke.pointer)return"pointer";if(ke.touch)return"touch"}},bounds(e,A,{scaleBounds:t={},angleBounds:n={}}){const r=a=>{const g=_f(In(t,a),{min:-1/0,max:1/0});return[g.min,g.max]},i=a=>{const g=_f(In(n,a),{min:-1/0,max:1/0});return[g.min,g.max]};return typeof t!="function"&&typeof n!="function"?[r(),i()]:a=>[r(a),i(a)]},threshold(e,A,t){return this.lockDirection=t.axis==="lock",Qe.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});ge(ge({},XA),{},{mouseOnly:(e=!0)=>e});class eC extends rs{constructor(...A){super(...A),Ee(this,"ingKey","wheeling")}wheel(A){this.state._active||this.start(A),this.wheelChange(A),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(A){const t=this.state;t._delta=Od(A),Qe.addTo(t._movement,t._delta),$d(t),this.compute(A),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(A){A("wheel","",this.wheel.bind(this))}}const AC=XA;ge(ge({},XA),{},{mouseOnly:(e=!0)=>e});const as=new Map,Tr=new Map;function gs(e){as.set(e.key,e.engine),Tr.set(e.key,e.resolver)}const tC={key:"drag",engine:Gd,resolver:_d},nC={key:"wheel",engine:eC,resolver:AC};function rC(e,A){if(e==null)return{};var t={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(A.indexOf(r)>=0)&&(t[r]=e[r]);return t}function iC(e,A){if(e==null)return{};var t=rC(e,A),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(A.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(t[n]=e[n]))}return t}const fC={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ke.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:A=!1}={}){return{passive:e,capture:A}},transform(e){return e}},aC=["target","eventOptions","window","enabled","transform"];function sn(e={},A){const t={};for(const[n,r]of Object.entries(A))switch(typeof r){case"function":t[n]=r.call(t,e[n],n,e);break;case"object":t[n]=sn(e[n],r);break;case"boolean":r&&(t[n]=e[n]);break}return t}function gC(e,A,t={}){const n=e,{target:r,eventOptions:i,window:a,enabled:g,transform:o}=n,s=iC(n,aC);if(t.shared=sn({target:r,eventOptions:i,window:a,enabled:g,transform:o},fC),A){const l=Tr.get(A);t[A]=sn(ge({shared:t.shared},s),l)}else for(const l in s){const d=Tr.get(l);d&&(t[l]=sn(ge({shared:t.shared},s[l]),d))}return t}class ss{constructor(A,t){Ee(this,"_listeners",new Set),this._ctrl=A,this._gestureKey=t}add(A,t,n,r,i){const a=this._listeners,g=yd(t,n),o=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},s=ge(ge({},o),i);A.addEventListener(g,r,s);const l=()=>{A.removeEventListener(g,r,s),a.delete(l)};return a.add(l),l}clean(){this._listeners.forEach(A=>A()),this._listeners.clear()}}class sC{constructor(){Ee(this,"_timeouts",new Map)}add(A,t,n=140,...r){this.remove(A),this._timeouts.set(A,window.setTimeout(t,n,...r))}remove(A){const t=this._timeouts.get(A);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(A=>void window.clearTimeout(A)),this._timeouts.clear()}}class oC{constructor(A){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new ss(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),lC(this,A)}setEventIds(A){if(Gn(A))return this.touchIds=new Set(Rd(A)),this.touchIds;if("pointerId"in A)return A.type==="pointerup"||A.type==="pointercancel"?this.pointerIds.delete(A.pointerId):A.type==="pointerdown"&&this.pointerIds.add(A.pointerId),this.pointerIds}applyHandlers(A,t){this.handlers=A,this.nativeHandlers=t}applyConfig(A,t){this.config=gC(A,t,this.config)}clean(){this._targetEventStore.clean();for(const A of this.gestures)this.gestureEventStores[A].clean(),this.gestureTimeoutStores[A].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...A){const t=this.config.shared,n={};let r;if(!(t.target&&(r=t.target(),!r))){if(t.enabled){for(const a of this.gestures){const g=this.config[a],o=ta(n,g.eventOptions,!!r);if(g.enabled){const s=as.get(a);new s(this,A,a).bind(o)}}const i=ta(n,t.eventOptions,!!r);for(const a in this.nativeHandlers)i(a,"",g=>this.nativeHandlers[a](ge(ge({},this.state.shared),{},{event:g,args:A})),void 0,!0)}for(const i in n)n[i]=Ld(...n[i]);if(!r)return n;for(const i in n){const{device:a,capture:g,passive:o}=Dd(i);this._targetEventStore.add(r,a,"",n[i],{capture:g,passive:o})}}}}function bA(e,A){e.gestures.add(A),e.gestureEventStores[A]=new ss(e,A),e.gestureTimeoutStores[A]=new sC}function lC(e,A){A.drag&&bA(e,"drag"),A.wheel&&bA(e,"wheel"),A.scroll&&bA(e,"scroll"),A.move&&bA(e,"move"),A.pinch&&bA(e,"pinch"),A.hover&&bA(e,"hover")}const ta=(e,A,t)=>(n,r,i,a={},g=!1)=>{var o,s;const l=(o=a.capture)!==null&&o!==void 0?o:A.capture,d=(s=a.passive)!==null&&s!==void 0?s:A.passive;let v=g?n:Ed(n,r,l);t&&d&&(v+="Passive"),e[v]=e[v]||[],e[v].push(i)};function os(e,A={},t,n){const r=f.default.useMemo(()=>new oC(e),[]);if(r.applyHandlers(e,n),r.applyConfig(A,t),f.default.useEffect(r.effect.bind(r)),f.default.useEffect(()=>r.clean.bind(r),[]),A.target===void 0)return r.bind.bind(r)}function ls(e,A){return gs(tC),os({drag:e},A||{},"drag")}function uC(e,A){return gs(nC),os({wheel:e},A||{},"wheel")}const qt="adm-popup",cC=Object.assign(Object.assign({},$g),{closeOnSwipe:!1,position:"bottom"}),vC=e=>{const{locale:A,popup:t={}}=ze(),n=se(cC,t,e),r=K(`${qt}-body`,n.bodyClassName,`${qt}-body-position-${n.position}`),[i,a]=D.useState(n.visible),g=D.useRef(null);ai(g,n.disableBodyScroll&&i?"strict":!1),Ge(()=>{n.visible&&a(!0)},[n.visible]);const o=fi(),{percent:s}=cA({percent:n.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var w,C;o.current||(a(n.visible),n.visible?(w=n.afterShow)===null||w===void 0||w.call(n):(C=n.afterClose)===null||C===void 0||C.call(n))}}),l=ls(({swipe:[,w]})=>{var C;!n.closeOnSwipe||(w===1&&n.position==="bottom"||w===-1&&n.position==="top")&&((C=n.onClose)===null||C===void 0||C.call(n))},{axis:"y",enabled:["top","bottom"].includes(n.position)}),d=es(i&&n.visible),v=pi(n.stopPropagation,ae(n,f.default.createElement("div",Object.assign({className:qt,onClick:n.onClick,style:{display:i?void 0:"none",touchAction:["top","bottom"].includes(n.position)?"none":"auto"}},l()),n.mask&&f.default.createElement(_g,{visible:d,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose,onMaskClick:w=>{var C,h;(C=n.onMaskClick)===null||C===void 0||C.call(n,w),n.closeOnMaskClick&&((h=n.onClose)===null||h===void 0||h.call(n))},className:n.maskClassName,style:n.maskStyle,disableBodyScroll:!1,stopPropagation:n.stopPropagation}),f.default.createElement(We.div,{className:r,style:Object.assign(Object.assign({},n.bodyStyle),{pointerEvents:s.to(w=>w===0?"unset":"none"),transform:s.to(w=>n.position==="bottom"?`translate(0, ${w}%)`:n.position==="top"?`translate(0, -${w}%)`:n.position==="left"?`translate(-${w}%, 0)`:n.position==="right"?`translate(${w}%, 0)`:"none")}),ref:g},n.showCloseButton&&f.default.createElement("a",{className:K(`${qt}-close-icon`,"adm-plain-anchor"),onClick:()=>{var w;(w=n.onClose)===null||w===void 0||w.call(n)},role:"button","aria-label":A.common.close},n.closeIcon),n.children))));return f.default.createElement(Hn,{active:i,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose},Ei(n.getContainer,v))};var yi=vC;const na="adm-safe-area",wC=e=>ae(e,f.default.createElement("div",{className:K(na,`${na}-position-${e.position}`)}));var dC=wC;const hn=Object.assign({},So),{version:CC,render:PC,unmountComponentAtNode:QC}=hn;let zn;try{Number((CC||"").split(".")[0])>=18&&hn.createRoot&&(zn=hn.createRoot)}catch{}function ra(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:A}=hn;A&&typeof A=="object"&&(A.usingClientEntryPoint=e)}const Bn="__antd_mobile_root__";function IC(e,A){PC(e,A)}function hC(e,A){ra(!0);const t=A[Bn]||zn(A);ra(!1),t.render(e),A[Bn]=t}function BC(e,A){if(zn){hC(e,A);return}IC(e,A)}function mC(e){return QC(e)}function EC(e){return SA(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var A;(A=e[Bn])===null||A===void 0||A.unmount(),delete e[Bn]})})}function pC(e){return zn?EC(e):mC(e)}function bi(e){const A=document.createElement("div");document.body.appendChild(A);function t(){pC(A)&&A.parentNode&&A.parentNode.removeChild(A)}return BC(e,A),t}function DC(e){const A=f.default.forwardRef((r,i)=>{const[a,g]=D.useState(!1),o=D.useRef(!1),[s,l]=D.useState(e),d=D.useRef(0);D.useEffect(()=>{o.current?w():g(!0)},[]);function v(){var C,h;o.current=!0,g(!1),(h=(C=s.props).onClose)===null||h===void 0||h.call(C)}function w(){var C,h;n(),(h=(C=s.props).afterClose)===null||h===void 0||h.call(C)}return D.useImperativeHandle(i,()=>({close:v,replace:C=>{var h,E;d.current++,(E=(h=s.props).afterClose)===null||E===void 0||E.call(h),l(C)}})),f.default.cloneElement(s,Object.assign(Object.assign({},s.props),{key:d.current,visible:a,onClose:v,afterClose:w}))}),t=f.default.createRef(),n=bi(f.default.createElement(A,{ref:t}));return{close:()=>SA(this,void 0,void 0,function*(){var r,i,a;t.current?(a=t.current)===null||a===void 0||a.close():(n(),(i=(r=e.props).afterClose)===null||i===void 0||i.call(r))}),replace:r=>{var i;(i=t.current)===null||i===void 0||i.replace(r)},isRendered:()=>!!t.current}}const ia="adm-auto-center",yC=e=>ae(e,f.default.createElement("div",{className:ia},f.default.createElement("div",{className:`${ia}-content`},e.children)));var fa=yC;var xi={},bC=he&&he.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xi,"__esModule",{value:!0});var us=xi.staged=void 0;const xC=bC(f.default);function cs(e){return typeof e=="function"?xC.default.createElement(RC,{stage:e}):e}function RC(e){const A=e.stage();return cs(A)}function OC(e){return function(t,n){const r=e(t,n);return cs(r)}}us=xi.staged=OC;function _t(e){return typeof e=="number"?`${e}px`:e}const FC=e=>{const A=D.useRef(null),[t]=dv(A);return D.useEffect(()=>{t&&e.onActive()},[t]),f.default.createElement("div",{ref:A})},vs=vg(Ge),MC=()=>f.default.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},f.default.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),LC=()=>f.default.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},f.default.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),mn="adm-image",kC={fit:"fill",placeholder:f.default.createElement("div",{className:`${mn}-tip`},f.default.createElement(MC,null)),fallback:f.default.createElement("div",{className:`${mn}-tip`},f.default.createElement(LC,null)),lazy:!1,draggable:!1},NC=us(e=>{const A=se(kC,e),[t,n]=D.useState(!1),[r,i]=D.useState(!1),a=D.useRef(null),g=D.useRef(null);let o=A.src,s=A.srcSet;const[l,d]=D.useState(!A.lazy);o=l?A.src:void 0,s=l?A.srcSet:void 0,vs(()=>{n(!1),i(!1)},[o]),D.useEffect(()=>{var C;!((C=g.current)===null||C===void 0)&&C.complete&&n(!0)},[]);function v(){if(r)return f.default.createElement(f.default.Fragment,null,A.fallback);const C=f.default.createElement("img",{ref:g,id:A.id,className:`${mn}-img`,src:o,alt:A.alt,onClick:A.onClick,onLoad:h=>{var E;n(!0),(E=A.onLoad)===null||E===void 0||E.call(A,h)},onError:h=>{var E;i(!0),(E=A.onError)===null||E===void 0||E.call(A,h)},style:{objectFit:A.fit,display:t?"block":"none"},crossOrigin:A.crossOrigin,decoding:A.decoding,loading:A.loading,referrerPolicy:A.referrerPolicy,sizes:A.sizes,srcSet:s,useMap:A.useMap,draggable:A.draggable});return f.default.createElement(f.default.Fragment,null,!t&&A.placeholder,C)}const w={};return A.width&&(w["--width"]=_t(A.width),w.width=_t(A.width)),A.height&&(w["--height"]=_t(A.height),w.height=_t(A.height)),ae(A,f.default.createElement("div",{ref:a,className:mn,style:w,onClick:A.onContainerClick},A.lazy&&!l&&f.default.createElement(FC,{onActive:()=>{d(!0)}}),v()))});var SC=NC;const xA="adm-badge",ws=f.default.createElement(f.default.Fragment,null),TC=e=>{const{content:A,color:t,children:n}=e,r=A===ws,i=K(xA,{[`${xA}-fixed`]:!!n,[`${xA}-dot`]:r,[`${xA}-bordered`]:e.bordered}),a=A||A===0?ae(e,f.default.createElement("div",{className:i,style:{"--color":t}},!r&&f.default.createElement("div",{className:`${xA}-content`},A))):null;return n?f.default.createElement("div",{className:K(`${xA}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},n,a):a};var HC=CA(TC,{dot:ws});const GC="adm-dot-loading",zC={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},jC={color:"default"},UC=D.memo(e=>{var A;const t=se(jC,e);return ae(t,f.default.createElement("div",{style:{color:(A=zC[t.color])!==null&&A!==void 0?A:t.color},className:K("adm-loading",GC)},f.default.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},f.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(-100.000000, -71.000000)"},f.default.createElement("g",{transform:"translate(95.000000, 71.000000)"},f.default.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(n=>f.default.createElement("rect",{key:n,fill:"currentColor",x:20+n*26,y:"16",width:"8",height:"8",rx:"2"},f.default.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${n*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});var KC=UC;function YC(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function JC(){return Ot?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Me="adm-button",XC={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:f.default.createElement(KC,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},VC=D.forwardRef((e,A)=>{const t=se(XC,e),[n,r]=D.useState(!1),i=D.useRef(null),a=t.loading==="auto"?n:t.loading,g=t.disabled||a;D.useImperativeHandle(A,()=>({get nativeElement(){return i.current}}));const o=s=>SA(void 0,void 0,void 0,function*(){if(!t.onClick)return;const l=t.onClick(s);if(YC(l))try{r(!0),yield l,r(!1)}catch(d){throw r(!1),d}});return ae(t,f.default.createElement("button",{ref:i,type:t.type,onClick:o,className:K(Me,{[`${Me}-${t.color}`]:t.color,[`${Me}-block`]:t.block,[`${Me}-disabled`]:g,[`${Me}-fill-outline`]:t.fill==="outline",[`${Me}-fill-none`]:t.fill==="none",[`${Me}-mini`]:t.size==="mini",[`${Me}-small`]:t.size==="small",[`${Me}-large`]:t.size==="large",[`${Me}-loading`]:a},`${Me}-shape-${t.shape}`),disabled:g,onMouseDown:t.onMouseDown,onMouseUp:t.onMouseUp,onTouchStart:t.onTouchStart,onTouchEnd:t.onTouchEnd},a?f.default.createElement("div",{className:`${Me}-loading-wrapper`},t.loadingIcon,t.loadingText):f.default.createElement("span",null,t.children)))});var ht=VC,ds={exports:{}};(function(e,A){(function(t,n){e.exports=n()})(he,function(){var t="day";return function(n,r,i){var a=function(s){return s.add(4-s.isoWeekday(),t)},g=r.prototype;g.isoWeekYear=function(){return a(this).year()},g.isoWeek=function(s){if(!this.$utils().u(s))return this.add(7*(s-this.isoWeek()),t);var l,d,v,w,C=a(this),h=(l=this.isoWeekYear(),d=this.$u,v=(d?i.utc:i)().year(l).startOf("year"),w=4-v.isoWeekday(),v.isoWeekday()>4&&(w+=7),v.add(w,t));return C.diff(h,"week")+1},g.isoWeekday=function(s){return this.$utils().u(s)?this.day()||7:this.day(this.day()%7?s:s-7)};var o=g.startOf;g.startOf=function(s,l){var d=this.$utils(),v=!!d.u(l)||l;return d.p(s)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(s,l)}}})})(ds);var Cs=ds.exports;function nA(e){const{value:A,defaultValue:t,onChange:n}=e,r=nv(),i=D.useRef(A!==void 0?A:t);A!==void 0&&(i.current=A);const a=KA((g,o=!1)=>{const s=typeof g=="function"?g(i.current):g;if(!(!o&&s===i.current))return i.current=s,r(),n==null?void 0:n(s)});return[i.current,a]}const Ps=!1;function Hr(e,A){Ps&&console.warn(`[antd-mobile: ${e}] ${A}`)}function aa(e){var A=j.useRef();A.current=e;var t=j.useCallback(function(){for(var n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=A.current)===null||n===void 0?void 0:n.call.apply(n,[A].concat(i))},[]);return t}function WC(e){if(Array.isArray(e))return e}function ZC(e,A){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,r,i,a,g=[],o=!0,s=!1;try{if(i=(t=t.call(e)).next,A===0){if(Object(t)!==t)return;o=!1}else for(;!(o=(n=i.call(t)).done)&&(g.push(n.value),g.length!==A);o=!0);}catch(l){s=!0,r=l}finally{try{if(!o&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return g}}function ga(e,A){(A==null||A>e.length)&&(A=e.length);for(var t=0,n=Array(A);t<A;t++)n[t]=e[t];return n}function qC(e,A){if(e){if(typeof e=="string")return ga(e,A);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ga(e,A):void 0}}function _C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
*/for(i=97;i<123;i++)n[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)n[i-48]=i;for(i=1;i<13;i++)n["f"+i]=i+111;for(i=0;i<10;i++)n["numpad "+i]=i+96;var a=A.names=A.title={};for(i in n)a[n[i]]=i;for(var g in r)n[g]=r[g]})(Er,Er.exports);var Rl=Er.exports;function Ce(e){const{type:A="default",onClick:t,className:n="",tabIndex:r=1,dataClick:i=""}=e;let a={};return i&&(a["data-click"]=i),f.default.createElement("button",{className:`pda-button pda-button-${A} ${n}`,onClick:t,tabIndex:r,...a},e.children)}function Ol(e){return f.default.createElement("div",{className:"button-group"},e.children)}Ce.Group=Ol;const Ya=["fn"],Fl=()=>{};function Ml(e){const{onBack:A,icon:t,title:n,menus:r=[],onClickMenuItem:i=Fl,onScanBarcode:a,onScan:g,onRfidRead:o,onRfidReadContinuous:s,onRfidReadAll:l,cancelMenuText:d,configIconClick:v=null,menuShortcutKey:w,backShortcutKey:C}=e,[h,E]=f.default.useState(!1);return f.default.useEffect(function(){if(w)return Af(ef(w),function(){E(!0)})},[w]),f.default.useEffect(function(){if(C&&A)return Af(ef(C),function(){A("back")})},[C,A]),f.default.useEffect(()=>Ll(function(){A&&A("back")}),[A]),f.default.useEffect(()=>Nl(function(P){a&&a(P),g&&g(P)}),[a,g]),f.default.useEffect(()=>{if(o||s||l)return kl(o,s,l)},[o,s,l]),f.default.createElement("div",{className:"pda-header"},A&&f.default.createElement("div",{onClick:()=>{A("back")},className:"pda-header-icon pda-header-icon-back"}),t&&f.default.createElement("div",{className:`pda-header-icon pda-header-icon-${t}`}),f.default.createElement("div",{className:"pda-title-text"},n),r&&r.length?f.default.createElement("div",{className:"pda-header-icon pda-header-more",onClick:()=>E(!0)}):null,v?f.default.createElement("div",{className:"pda-header-icon pda-header-config",onClick:v}):null,f.default.createElement(wA,{visible:h,verticalPosition:"bottom",closable:!1,onClosed:()=>E(!1)},f.default.createElement("div",{className:"pda-menus"},r.map((P,m)=>f.default.createElement(Ce,{onClick:()=>{E(!1),i(P),P.action&&P.action(P)},key:P.key||m},P.label)),d?f.default.createElement("div",{style:{marginTop:20}},f.default.createElement(Ce,{onClick:()=>E(!1)},d)):null)))}function ef(e){return(e.indexOf(",")>-1?e.split(","):[e]).map(t=>{if(Ya.indexOf(t.toLowerCase())>-1)return t.toLowerCase();const n=Rl(t);return n===void 0&&console.warn("OPButton.shortcutKey error key value by:",t),n}).filter(t=>t!==void 0)}function Af(e,A){function t(n){const r=n.key.toLowerCase(),i=Ya.indexOf(r)>-1?r:n.keyCode;e.indexOf(i)>-1&&A&&A(n)}return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}}function Ll(e){function A(t){t.param.originValue=="back"&&e&&e()}return document.addEventListener("keyPressed",A,!1),function(){document.removeEventListener("keyPressed",A)}}const tf=["F22","F23","F24","F9","F16",523];function kl(e,A,t){let n=null,r=[];function i(o){n!==null&&(n===!1&&e&&e(o.param.rfidData),A&&A(o.param.rfidData),r=o.param.rfidHistory,n=!0)}function a(o){const s=o.param||o.keyCode;tf.indexOf(s)>-1&&(n=!1,r=[],WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startRfidScan', 'params': null}",function(l){},function(l){}))}function g(o){const s=o.param||o.keyCode;tf.indexOf(s)>-1&&(t&&t(r),n=null,WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params': null}",function(l){},function(l){}))}return document.addEventListener("ContinuousRfidScan",i),document.addEventListener("onScanKeyDown",a),document.addEventListener("onScanKeyUp",g),function(){document.removeEventListener("ContinuousRfidScan",i),document.removeEventListener("onScanKeyDown",a),document.removeEventListener("onScanKeyUp",g)}}function Nl(e){function A(t){const n=String(t.param.scanData).trim();e&&e(n)}return document.addEventListener("BarcodeScan",A,!1),function(){document.removeEventListener("BarcodeScan",A)}}class Ja extends f.default.Component{constructor(A){super(A)}render(){const{className:A="",title:t,highlightInfo:n,subTitle:r,subHighlightInfo:i,subHighlightSubInfo:a,infoImage:g,tagText:o,highlightInfoCN:s,highlightSubInfo:l,percentage:d,highlightSubInfoCN:v,boldInfo:w,infoList:C=[],style:h={},theme:E="light"}=this.props;return f.default.createElement("div",{className:K({[A]:!0,"pda-info-card":!0,"pda-info-card-dark":E==="dark"}),style:h},f.default.createElement("div",{className:"pda-info-card-title-section"},f.default.createElement("div",{className:"pda-info-card-title"},t),o?f.default.createElement("div",{className:"pda-info-card-tag"},f.default.createElement("div",{className:"pda-info-card-tag-text"},o)):null),f.default.createElement("div",{className:"pda-info-card-highlight-section"},f.default.createElement("div",null,f.default.createElement("div",{className:"pda-info-card-highlight"},f.default.createElement("span",{className:"pda-info-card-highlight1"},n),f.default.createElement("span",{className:"pda-info-card-highlight1CN"},s),f.default.createElement("span",{className:"pda-info-card-highlight2"},l),f.default.createElement("span",{className:"pda-info-card-highlight2CN"},v)),r?f.default.createElement("div",{className:"pda-info-card-title"},r):null,i?f.default.createElement("div",{className:"pda-info-card-highlight"},f.default.createElement("span",{className:"pda-info-card-highlight1"},i),f.default.createElement("span",{className:"pda-info-card-highlight2"},a)):null),g?f.default.createElement("img",{src:g,width:150,height:150}):null),d!==void 0?f.default.createElement("div",{className:"pda-info-card-progress"},f.default.createElement("div",{className:"pda-info-card-progress-inside",style:{width:`${d*100}%`}})):null,f.default.createElement("div",{className:"pda-info-card-bold"},w),C.map((P,m)=>f.default.createElement("div",{key:m,className:"pda-info-card-list"},f.default.createElement("span",null,P.label||""),"\xA0\xA0",f.default.createElement("span",null,P.content||""))))}}Ja.IMAGE_1=`${window.PDA_IMAGE_PATH}O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png`;class Xa extends f.default.Component{constructor(A){super(A)}render(){const{className:A,header:t,onClick:n=()=>{},onHeightLightClick:r=()=>{},onIconClick:i=()=>{},highlightText:a,highlightSubText:g,stateTextList:o=[],stateList:s=[],subInfoList:l=[],style:d={},icon:v}=this.props;return f.default.createElement("div",{className:K({[A]:!0,"pda-list-item":!0}),style:d,onClick:n},t?f.default.createElement("div",{className:"pda-listitem-header"},t):null,f.default.createElement("div",{onClick:r,className:K({"pda-listitem-highlight":!0})},f.default.createElement("div",null,a),f.default.createElement("div",null,g)),f.default.createElement("div",{className:"pda-listitem-state-text"},o.map((w,C)=>f.default.createElement("span",{key:C},w.label||"","\uFF5C"))),f.default.createElement("div",{className:"pda-listitem-state-block"},s.map((w,C)=>{const h=w&&w.type?w.type:"default";return f.default.createElement("div",{key:C,className:h},w.label||"")})),v?f.default.createElement("div",{onClick:i,className:"pda-listitem-icon"},f.default.createElement("div",{className:K({"listitem-icon-container":!0,["listitem-icon-"+v]:!0})})):null,l.map((w,C)=>f.default.createElement("div",{key:C,className:"pda-listitem-subinfo"},f.default.createElement("span",null,w.label||""),"\xA0\xA0",f.default.createElement("span",null,w.content||""))))}}function Sl(){}function bn(e){const{title:A="title",message:t=null,subMessage:n=[],okText:r="okText",cancelText:i=null,okDataClick:a=null,cancelDataClick:g=null,onClick:o=Sl,type:s="primary",insertButtons:l=[],appendButtons:d=[]}=e;return f.default.createElement("div",{className:K({"confirm-wrap":!0,["confirm-"+s]:!0})},f.default.createElement("div",{className:"confirm-content"},f.default.createElement("div",{className:"confirm-title"},A),t?f.default.createElement("div",{className:"confirm-message"},t):null,n.length?f.default.createElement("div",{className:"confirm-sub-message"},n.map((v,w)=>{const{label:C,content:h}=v;return f.default.createElement("div",{className:"confirm-sub-block",key:C||w},f.default.createElement("p",{className:"confirm-sub-label"},C?C+" : ":""),f.default.createElement("p",{className:"confirm-sub-content"},h||""))})):null),f.default.createElement("div",{className:"confirm-btns"},l.length>0?f.default.createElement(Ce.Group,null,l.map((v,w)=>f.default.createElement(Ce,{key:w,onClick:()=>o(v.value),dataClick:v.dataClick},v.label))):null,f.default.createElement(Ce.Group,null,i?f.default.createElement(Ce,{className:"confirm-cancel-button",onClick:()=>o(!1),dataClick:g},i):null,f.default.createElement(Ce,{type:"primary",onClick:()=>o(!0),dataClick:a},r)),d.length>0?f.default.createElement(Ce.Group,null,d.map((v,w)=>f.default.createElement(Ce,{key:w,onClick:()=>o(v.value),dataClick:v.dataClick},v.label))):null))}function nf(e){const A={domain:"logger",method:"deviceLog",params:e};WindVane.call("WindvanePlugin","invoke",JSON.stringify(A),function(t){},function(t){})}function Tl(e){return(typeof e=="function"?e():e)||document.body}function Hl(e){return e===void 0}function Va(...e){function A(n,r){return Hl(r)?n:r}let t=Object.assign({},e[0]);for(let n=1;n<e.length;n++)t=Object.assign(t,e[n],A);return t}function vA(e){if(window.WindVane){var A={domain:"audio",method:"playSound",params:{sound:e}};WindVane.call("WindvanePlugin","invoke",JSON.stringify(A))}}function Gl(e){return{success:"toast-wrap success",warning:"toast-wrap warning",error:"toast-wrap error"}[e]||"toast-wrap"}function dA(e){const{title:A="title",message:t="message",type:n="success",duration:r=null,hasVoice:i=!0,onClick:a}=e,[g,o]=D.useState(!1);return D.useEffect(()=>{window.WindVane&&i&&(n==="warning"?(vA("error1"),window.WindVane.call("WVMotion","vibrate",{duration:400})):n==="error"&&(vA("error2"),window.WindVane.call("WVMotion","vibrate",{duration:200}),setTimeout(()=>{window.WindVane.call("WVMotion","vibrate",{duration:300})},250)))},[]),r&&setTimeout(()=>{o(!0)},r),g?null:f.default.createElement("div",{className:Gl(n),onClick:a},f.default.createElement("div",{className:"toast-title"},A),f.default.createElement("div",{className:"toast-message"},t))}const zl={maskClickable:!0,stopPropagation:["click"]},jl=e=>{const A=Va(zl,e),{maskClickable:t,content:n,icon:r,position:i="bottom",closable:a=!0,title:g,message:o,type:s,visible:l,renderContent:d,hasVoice:v}=A;return f.default.createElement(wA,{visible:l,verticalPosition:i,closable:a},d?d():f.default.createElement(dA,{title:g,message:o,type:s,hasVoice:v}))},Wa=[];function Za(e){Jr.default.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e)}const Ul={duration:2e3};function qr(e){const A=Va(Ul,e);let t=0;const{getContainer:n=()=>document.body}=A,r=document.createElement("div");Tl(n).appendChild(r),Wa.push(r);const a=D.forwardRef((o,s)=>{const[l,d]=D.useState(!0);return D.useEffect(()=>()=>{A.afterClose&&A.afterClose()},[]),D.useEffect(()=>{if(A.duration!==0)return t=window.setTimeout(()=>{d(!1)},A.duration),()=>{window.clearTimeout(t)}},[]),D.useImperativeHandle(s,()=>({close:()=>d(!1)})),f.default.createElement(jl,{...A,getContainer:()=>r,visible:l,afterClose:()=>{Za(r)}})}),g=D.createRef();return Jr.default.render(f.default.createElement(a,{ref:g}),r),{close:()=>{var o;(o=g.current)==null||o.close()}}}function Kl(){for(;;){const e=Wa.pop();if(!e)break;Za(e)}}function Yl(e={}){const{duration:A=1e4}=e;return qr({duration:A,position:"center",closable:!1,renderContent:function(){return f.default.createElement("div",{className:"loading-box"},f.default.createElement("svg",{t:"1647243772165",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2178"},f.default.createElement("path",{d:"M512 64c247.2 0 448 200.8 448 448h-64c0-212-172-384-384-384V64z m0 832c-212 0-384-172-384-384H64c0 247.2 200.8 448 448 448v-64z","p-id":"2179"})),f.default.createElement("div",null,"LOADING..."))}})}function Jl(e={}){const{duration:A=0,...t}=e;return qr({duration:A,position:"bottom",closable:!0,renderContent:function(){return f.default.createElement(bn,{...t})}})}dA.show=qr;dA.loading=Yl;dA.confirm=Jl;dA.clear=Kl;function Xl(e){const{data:A={},onNext:t}=e;return f.default.createElement(wA,{verticalPosition:"bottom"},f.default.createElement(bn,{...A,onClick:()=>t(!0)}))}function qa(e){const{action:A,appManager:t,service:n}=e,r=f.default.useCallback(function(){n.onStart(t.config.appId)});return f.default.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh"}},f.default.createElement(Ce,{type:"primary",onClick:r},ne.get("\u5F00\u59CB\u4F5C\u4E1A")),f.default.createElement("br",null),f.default.createElement("div",null,t.config.appId),f.default.createElement("div",null,t.config.groupId))}function Vl(e){const{service:A,data:t={},onNext:n}=e;return f.default.createElement(wA,{verticalPosition:"bottom"},f.default.createElement(bn,{...t,onClick:n}))}function Wl(e){return{center:"op-overlay center",top:"op-overlay top",bottom:"op-overlay bottom"}[e]||"op-overlay"}function Zl(e){const{verticalPosition:A="center",visible:t=!0,closable:n=!1,onClosed:r=()=>{},onClick:i}=e,a=f.default.useRef(),[g,o]=D.useState(!t);return D.useEffect(()=>{o(!t)},[t]),g?null:f.default.createElement("div",{ref:a,className:Wl(A),onClick:s=>{s.target===a.current&&n&&(o(!0),r()),s.target===a.current&&i&&i()}},e.children)}function ql(e){const A=f.default.useRef(),{data:t={},onNext:n}=e,{placeholder:r,defaultValue:i,title:a=ne.get("\u8BF7\u8F93\u5165"),type:g="text",okText:o=ne.get("\u786E\u8BA4"),cancelText:s=ne.get("\u53D6\u6D88")}=t;return f.default.createElement(Zl,{verticalPosition:"center",closable:!1},f.default.createElement("div",{className:"prompt-dialog"},f.default.createElement("div",null,f.default.createElement("h1",{className:"prompt-title"},a),f.default.createElement("input",{className:"prompt-input",autoFocus:!0,ref:A,placeholder:r,type:g,defaultValue:i,onKeyUp:l=>{l.keyCode===13&&n(rf(A.current))}}),f.default.createElement("div",{className:"prompt-btns"},s?f.default.createElement(Ce,{onClick:()=>n("back")},s):null,f.default.createElement(Ce,{type:"primary",onClick:()=>{n(rf(A.current))}},o)))))}function rf(e){const A=e.value||"";return String(A).trim()}function _a(e){const{data:A={},onNext:t,action:n={},content:r,className:i}=e,{title:a,level:g,message:o,duration:s=null}=A,[l,d]=D.useState(!1);return f.default.useEffect(()=>{A.hasNext===void 0&&t("");let v=null;return s&&(v=setTimeout(()=>{d(!0)},s)),()=>{clearTimeout(v)}},[A]),f.default.useEffect(()=>{d(!1)},[n.sequence]),f.default.createElement(wA,{verticalPosition:"bottom",visible:!l,onClick:()=>d(!0)},f.default.createElement("div",{style:{width:"90%"},className:i},r||f.default.createElement(dA,{type:g,title:a,message:_l(o)})))}function _l(e){var A=String(e).split("by Error:");return A[1]||A[0]}function $a(e){return f.default.createElement("div",{style:{padding:"20%"}},f.default.createElement("h1",null,"404 ",f.default.createElement("small",{style:{fontSize:"60%"}},"Not found")),f.default.createElement("div",null,e.action.getPage()))}function eg(e){const[A,t]=f.default.useState(e.visible),n=e.edgeService;return f.default.useEffect(function(){let r=!1;const i=function(a){r=a,a?setTimeout(function(){r===a&&t(!0)},350):setTimeout(function(){r===a&&t(!1)},100)};return n?(n.on("IO_STATUS",i),function(){n.off("IO_STATUS",i)}):()=>{}},[n]),A?f.default.createElement("div",{className:"loading-wrap"},f.default.createElement("div",{className:"loading-box"},f.default.createElement("svg",{t:"1647243772165",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2178"},f.default.createElement("path",{d:"M512 64c247.2 0 448 200.8 448 448h-64c0-212-172-384-384-384V64z m0 832c-212 0-384-172-384-384H64c0 247.2 200.8 448 448 448v-64z","p-id":"2179"})),f.default.createElement("div",null,"LOADING..."))):null}function $l({data:e,service:A,action:t}){const{sound:n}=e;if(window.WindVane){var r={domain:"audio",method:"playSound",params:{sound:n}};WindVane.call("WindvanePlugin","invoke",JSON.stringify(r))}return A.onNext({}),null}function eu(){return console.warn('Please stop using "Debug" Components'),null}var Au={Alert:Xl,Start:qa,Toast:_a,Confirm:Vl,NotFound:$a,Debug:eu,Prompt:ql,Loading:eg,PlaySound:$l};function UA(e){const{image:A=UA.IMAGE_1,text:t="",subText:n="",transparent:r}=e;return f.default.createElement("div",{className:r?"presentation-card transparent":"presentation-card"},f.default.createElement("img",{src:A}),t?f.default.createElement("div",{className:"text"},t):null,n?f.default.createElement("div",{className:"sub-text"},n):null)}UA.IMAGE_1=`${window.PDA_IMAGE_PATH}O1CN019Ivkor1ksy3pMGDsz_!!6000000004740-2-tps-280-322.png`;UA.IMAGE_2=`${window.PDA_IMAGE_PATH}O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png`;UA.IMAGE_3=`${window.PDA_IMAGE_PATH}O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png`;UA.IMAGE_4=`${window.PDA_IMAGE_PATH}O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif`;function tu(){}function _r(e){const{title:A="",dataSource:t=[],onClickItem:n,onItemClick:r=tu,style:i={}}=e;return f.default.createElement("div",{className:"android-pda-list",style:i},f.default.createElement("div",{className:"android-pda-list-title"},A),t.map((a,g)=>f.default.createElement(Ag,{key:a.key||g,dataSource:a,onClick:n||r})),e.children)}function Ag(e){const A=e.dataSource||{title:e.title,subTitle:e.subTitle,extra:e.extra,tags:e.tags},{title:t,subTitle:n,extra:r,tags:i=[],tabIndex:a}=A,{onClick:g}=e;return f.default.createElement("div",{className:"default-item",onClick:()=>{g(e.dataSource)},tabIndex:a},f.default.createElement("div",{className:"text"},f.default.createElement("div",null,t),n?f.default.createElement("div",{className:"sub-text"},n):null,i&&i.length?f.default.createElement("div",{className:"sub-tags"},i.map(o=>f.default.createElement("div",{className:"sub-tag-item",key:o},o))):null),f.default.createElement("div",{className:"extra"},r))}_r.Item=Ag;const Kt=()=>{};class xn extends f.default.Component{constructor(A){super(A),this.state={showLoading:!1},this._handleKeyUp=t=>{const{onScan:n=Kt,onEnter:r=Kt,onEsc:i=Kt,onDelete:a=Kt,scanMode:g=null}=this.props,{code:o,keyCode:s,key:l}=t;if(o==="Enter"){t.preventDefault(),r(t);return}if(o==="Delete"){t.preventDefault(),a(t);return}if(o==="Esc"){t.preventDefault(),i(t);return}},this._handleBeforeUnload=t=>(t.returnValue=ne.get("\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417\uFF1F"),!0),this._handleUnload=t=>{WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(r){},function(r){});const n={tag:"stopRfid",level:"d",message:"stop rfid scan!!!"};nf(n),nf(n)}}componentDidMount(){window.onunload=this._handleUnload,document.addEventListener("keyup",this._handleKeyUp)}componentWillUnmount(){window.onbeforeunload=null,window.onunload=null,document.removeEventListener("keyup",this._handleKeyUp)}shouldComponentUpdate(A,t){return A.loading&&!this.props.loading&&(this.setState({showLoading:!0}),A.loadingTimeout&&setTimeout(()=>{this.setState({showLoading:!1})},A.loadingTimeout)),!A.loading&&this.state.showLoading&&this.setState({showLoading:!1}),!0}render(){const A=this.props,{style:t={},header:n,footer:r,loading:i}=this.props;return f.default.createElement("div",{className:K({"baselayout-wrapper":!0}),style:t},n&&f.default.createElement("div",{className:K({"baselayout-header":!0})},n),f.default.createElement("div",{className:K({"baselayout-container":!0})},A.children),r&&f.default.createElement("div",{className:K({"baselayout-footer":!0})},r),this.state.showLoading?f.default.createElement("div",{className:"loading"}):null)}}const nu=()=>{};class ru extends f.default.Component{constructor(A){super(A),this._rfidBeginScan=!1,this._handleRfidScan=t=>{const{onRfidOnce:n,onRfidBoxOnce:r,onRfidPalletOnce:i}=this.props,a=t.param,g=a.rfidData.startsWith("0F006"),o=a.rfidData.startsWith("0F011");if(vA("single_recog"),o){let s=a.rfidData;a.originData=s,a.rfidData=s.substr(5,12)}r&&g?(this._stopWork(),r(a)):i&&o&&(this._stopWork(),i(a)),n&&(this._stopWork(),n(a))},this._startWork=t=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(n){},function(n){}),this._rfidBeginScan=!0},this._stopWork=t=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(n){},function(n){})},this._handleKeyDown=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(A){},function(A){})}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp),this._stopWork()}render(){const A=this.props,{onRfidOnce:t=nu,...n}=A;return f.default.createElement(xn,{...n})}}const iu=()=>{};class tg extends f.default.Component{constructor(A){super(A),this._rfidBeginScan=!1,this._handleRfidScan=t=>{const{onRfidScan:n,onRfidBoxScan:r,onRfidPalletScan:i}=this.props,a=t.param,g=a.rfidData.startsWith("0F006"),o=a.rfidData.startsWith("0F011");if(o){let s=a.rfidData;a.originData=s,a.rfidData=s.substr(5,12)}g&&r?r(a):o&&i&&i(a),n&&n(a)},this._startWork=t=>{document.addEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'startScan', 'params': null}",function(n){},function(n){}),this._rfidBeginScan=!0},this._stopWork=t=>{document.removeEventListener("ContinuousRfidScan",this._handleRfidScan),WindVane.call("WindvanePlugin","invoke","{'domain': 'rfid', 'method': 'stopRfidScan', 'params':null}",function(n){},function(n){})},this._handleKeyDown=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._rfidBeginScan||this._startWork())},this._handleKeyUp=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._stopWork(),this._rfidBeginScan=!1)}}componentDidMount(){const{autoRfidScan:A=!1,rfidReaderSleep:t}=this.props;WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'RFID'}}",function(n){},function(n){}),A?t||this._startWork():(document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp))}componentWillUnmount(){document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp),this._stopWork()}shouldComponentUpdate(A,t){return this.props.autoRfidScan&&this.props.rfidReaderSleep!==A.rfidReaderSleep&&(A.rfidReaderSleep?this._stopWork():this._startWork()),!0}render(){const A=this.props,{onRfidScan:t=iu,autoRfidScan:n,...r}=A;return f.default.createElement(xn,{...r})}}we(tg,"defaultProps",{rfidReaderSleep:!1});const fu=()=>{};class au extends f.default.Component{constructor(A){super(A),this._barcodeBeginScan=!1,this._handleBarcodeScan=t=>{const{onBarcodeScan:n}=this.props;this._stopWork(),vA("scan");const r=String(t.param.scanData).trim();n&&n({scanData:r})},this._startWork=t=>{document.addEventListener("BarcodeScan",this._handleBarcodeScan),this._barcodeBeginScan=!0},this._stopWork=t=>{document.removeEventListener("BarcodeScan",this._handleBarcodeScan)},this._handleKeyDown=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._barcodeBeginScan||this._startWork())},this._handleKeyUp=t=>{const{code:n,keyCode:r,key:i}=t;(n==="F22"||n==="F23"||n==="F24"||n==="F9"||n==="F16")&&(this._stopWork(),this._barcodeBeginScan=!1)},this.onScanBarcode=this.onScanBarcode.bind(this)}onScanBarcode(A){this.props.onScanBarcode&&this.props.onScanBarcode(A.param)}componentDidMount(){const{onBarcodeScan:A}=this.props;A&&(document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keyup",this._handleKeyUp)),document.addEventListener("BarcodeScan",this.onScanBarcode),WindVane.call("WindvanePlugin","invoke","{'domain': 'keyboard', 'method': 'changeScanMode', 'params': {'scanMode': 'barcode'}}",function(t){},function(t){})}componentWillUnmount(){const{onBarcodeScan:A}=this.props;A&&(document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keyup",this._handleKeyUp)),document.removeEventListener("BarcodeScan",this.onScanBarcode)}render(){const A=this.props,{onBarcodeScan:t=fu,...n}=A;return f.default.createElement(xn,{...n})}}class ng extends f.default.Component{constructor(A){super(A)}render(){const A=this.props,{onBarcodeScan:t,onScanBarcode:n,onRfidOnce:r,onRfidBoxOnce:i,onRfidPalletOnce:a,onRfidScan:g,onRfidBoxScan:o,onRfidPalletScan:s}=A;return r||i||a?f.default.createElement(ru,{...A}):g||o||s?f.default.createElement(tg,{...A}):t||n?f.default.createElement(au,{...A}):f.default.createElement(xn,{...A})}}const fr=()=>{};function $r(e){const{label:A=ne.get("\u67E5\u8BE2"),onWakeKeyboard:t=fr,onClick:n=fr,onHidden:r=fr,type:i="tel",placeholder:a=ne.get("\u8BF7\u8F93\u5165"),autoClose:g=!0}=e,o=D.useRef(null),[s,l]=D.useState(!0);return D.useEffect(()=>{requestAnimationFrame(()=>{o.current.focus(),t()})},[]),s?f.default.createElement("div",{className:"wakekeyborard-overlay",onClick:d=>{d.target.className&&d.target.className.includes("wakekeyborard-overlay")&&(r(!1),g&&l(!1))}},f.default.createElement("div",{className:"wakekeyborard-inputbox"},f.default.createElement("input",{ref:o,type:i,placeholder:a,onKeyUp:d=>{const{code:v,keyCode:w}=d,C=String(d.target.value).trim();if((v==="Enter"||w===13)&&C.length>0){d.preventDefault(),n(C,d),r(!0),l(!1);return}}}),f.default.createElement(Ce,{type:"cutout",onClick:d=>{const v=String(o.current.value||"").trim();n(v,d),r(!0),g&&l(!1)}},A))):null}const ff=()=>{};function rg(e){const[A,t]=D.useState(e.autoWakeup||!1),{onClick:n=ff,onHidden:r=ff,...i}=e;return f.default.createElement("div",{className:"wakekeyborard"},A?f.default.createElement($r,{onClick:(a,g)=>{n(a),t(!A)},onHidden:a=>{t(!1),r(a)},...i}):null,A?null:f.default.createElement("div",{className:"wakekeyborard-icon",onClick:a=>{t(!A)}}))}rg.Keyborard=$r;const Yt="image-uploader";class gu extends D.Component{constructor(A){super(A),this.state={}}renderDelete(){return f.default.createElement("span",{className:`${Yt}-cell-delete`,onClick:this.props.onDelete},f.default.createElement("img",{className:"uploader-delete-icon",alt:"close",src:`${window.PDA_IMAGE_PATH}O1CN01MInPNX1FWIOjjrlea_!!6000000000494-2-tps-32-32.png`}))}render(){const{src:A,deletable:t,onView:n,box:r}=this.props;return f.default.createElement("div",{className:"image-space-item"},f.default.createElement("div",{className:`${Yt}-cell`,style:{width:r,height:r}},f.default.createElement("div",{className:`${Yt}-cell-image`,style:{width:r,height:r}},f.default.createElement("img",{className:`${Yt}-img`,src:A,fit:"cover",onClick:n})),t&&this.renderDelete()))}}const af="image-uploader";class su extends D.Component{constructor(A){super(A),this.state={}}render(){const{box:A}=this.props;return f.default.createElement("div",{className:"image-space-item"},f.default.createElement("div",{className:`${af}-upload-button-wrap`,onClick:this.props.onUpload},f.default.createElement("span",{className:`${af}-upload-button image-uploader-cell`,style:{width:A,height:A}},f.default.createElement("img",{className:"uploader-add-icon",alt:"add",src:`${window.PDA_IMAGE_PATH}O1CN01RipHZ11yVyprbUP5B_!!6000000006585-2-tps-32-32.png`}))))}}const Jt="image-viewer";class ei extends D.Component{constructor(t){super(t);we(this,"onShow",(t=0)=>{const{props:n}=this;let r=0;typeof t!="number"?r=0:r=t>n.images.length-1?0:t,this.setState({visible:!0,currentIndex:r,loading:!0})});we(this,"onHide",()=>{this.setState({visible:!1})});we(this,"handleImageLoaded",t=>{this.setState({loading:!1})});we(this,"onClickMask",t=>{if(t.target.getAttribute("class")!=="image-viewer-image-wrapper"&&t.target.getAttribute("class")!=="image-viewer-loading")return;const{afterClose:n}=this.props;this.setState({visible:!1},()=>{n&&n()})});we(this,"onClose",()=>{const{onClose:t,images:n}=this.props,{currentIndex:r}=this.state;n.length===0?this.setState({visible:!1},()=>{t&&t(n[r],r)}):this.setState({currentIndex:0,visible:!1},()=>{t&&t(n[r],r)})});we(this,"onPrev",t=>{t.stopPropagation();const{currentIndex:n}=this.state;this.setState({currentIndex:n-1,loading:!0})});we(this,"onNext",t=>{t.stopPropagation();const{currentIndex:n}=this.state;this.setState({currentIndex:n+1,loading:!0})});this.state={visible:t.defaultVisible||!1,currentIndex:0,loading:!1}}render(){const{currentIndex:t,visible:n,loading:r}=this.state,{images:i}=this.props;return f.default.createElement("div",null,n?f.default.createElement("div",{className:"v-mask",onClick:this.onClickMask},f.default.createElement("div",{className:"v-mask-content"},f.default.createElement("div",{className:`${Jt}-content`},f.default.createElement("div",{className:`${Jt}-slides`},f.default.createElement("div",{className:"image-viewer-indicator"},t+1," / ",i.length),f.default.createElement("div",{className:"viewer-image-close",onClick:this.onClose},f.default.createElement("svg",{width:"44",height:"44",viewBox:"0 0 768 768"},f.default.createElement("path",{fill:"#FFF",d:"M607.5 205.5l-178.5 178.5 178.5 178.5-45 45-178.5-178.5-178.5 178.5-45-45 178.5-178.5-178.5-178.5 45-45 178.5 178.5 178.5-178.5z"}))),f.default.createElement("div",{className:"image-viewer-slides-inner"},f.default.createElement("div",{className:"image-viewer-image-wrapper"},f.default.createElement("img",{src:this.props.images[t].url,style:{width:r?1:"auto"},onLoad:this.handleImageLoaded}))),i.length>1?f.default.createElement(f.default.Fragment,null,t===0?null:f.default.createElement("div",{className:"viewer-image-arrow viewer-prev",onClick:this.onPrev},f.default.createElement("svg",{width:"44",height:"44",viewBox:"0 0 768 768"},f.default.createElement("path",{d:"M640.5 352.5v63h-390l178.5 180-45 45-256.5-256.5 256.5-256.5 45 45-178.5 180h390z"}))),t===i.length-1?null:f.default.createElement("div",{className:"viewer-image-arrow viewer-next",onClick:this.onNext},f.default.createElement("svg",{width:"44",height:"44",viewBox:"0 0 768 768"},f.default.createElement("path",{d:"M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"})))):null))),r?f.default.createElement("div",{className:`${Jt}-loading`,onClick:this.onClose},f.default.createElement("div",{className:`${Jt}-loading-reactor`},f.default.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},f.default.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),f.default.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))):null):null)}}const Xt="image-uploader";class ig extends D.Component{constructor(t){super(t);we(this,"onViewImage",t=>{this.imgRef.onShow(t)});we(this,"onClickAdd",()=>{const{capture:t}=this.props,n=this,i={type:"0",mode:t&&t==="camera"?"camera":"photo"};navigator.userAgent.toLowerCase().match(/android/)?n.handlerUpload(i):n.handlerUploadNavigator()});we(this,"handlerUploadNavigator",()=>{const{beforeUpload:t,onBeforeUpload:n}=this.props,r=document.querySelector("#inputFile");r.value=null,r.click(),r.onchange=i=>{let a=i.target.files[0];const g=new FileReader;g.readAsDataURL(a),g.onload=v=>{const w=v.target.result;t&&t({data:w,base64:w}),n&&n({data:w,base64:w})};const s=(window.URL||window.webkitURL).createObjectURL(a),{images:l}=this.state,d=(Math.random()*1e4).toFixed(0);this.setState({images:[...l||[],{id:d,url:s}]})}});we(this,"handlerUpload",t=>{const{capture:n,beforeUpload:r,onBeforeUpload:i,uploadMode:a="takePhoto",compressSize:g=200,onError:o}=this.props;(a==="takePhoto"?ou(n&&n==="camera"):lu(g)).then(d=>{i&&i(d),r&&r(d)}).catch(d=>{o&&o(d),console.log(d)})});we(this,"onDelete",(t,n)=>{const{onDelete:r}=this.props;r&&r(t,n)});we(this,"_showLoading",()=>{this.setState({loading:!0})});we(this,"_hideLoading",()=>{setTimeout(()=>{this.setState({loading:!1})},10*1e3)});this.state={images:[],loading:!1}}static getDerivedStateFromProps(t,n){return t.value!==n.images?{images:t.value}:null}componentDidMount(){this.setState({images:this.props.value})}render(){const{value:t,loading:n=!1}=this.props,{maxCount:r=1,deletable:i=!1,capture:a="camera",box:g=80}=this.props,{images:o}=this.state;return f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:`${Xt}`},f.default.createElement("input",{type:"file",name:"file",accept:"image/*,video/*",id:"inputFile",style:{display:"none"}}),f.default.createElement("div",{className:`${Xt}-wrap`},o&&o.map((s,l)=>f.default.createElement(gu,{src:s.url,key:s.url,box:g,deletable:i,onDelete:()=>this.onDelete(s,l),onView:()=>this.onViewImage(l)})),!o||(o==null?void 0:o.length)<r?f.default.createElement(su,{box:g,onUpload:this.onClickAdd}):null)),n?f.default.createElement("div",{className:`${Xt}-loading`},f.default.createElement("div",{className:`${Xt}-loading-reactor`},f.default.createElement("svg",{viewBox:"0 0 32 32",width:"36",height:"36",fill:"white"},f.default.createElement("path",{opacity:".25",d:"M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"}),f.default.createElement("path",{d:"M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z"})))):null,f.default.createElement(ei,{ref:s=>this.imgRef=s,images:t}))}}function ou(e){return new Promise(function(A,t){const n={type:"0",mode:e?"camera":"photo"};window.WindVane.call("WVCamera","takePhoto",n,function(r){const i={domain:"camera",method:"getBase64",params:{filePath:r.localPath}};window.WindVane.call("WindvanePlugin","invoke",JSON.stringify(i),function(a){A(a.data)},function(a){t(a),console.log("failure "+JSON.stringify(a))})},function(r){t(r),console.log("takePhoto failure: "+JSON.stringify(r))})})}function lu(e=200){return new Promise(function(A,t){var n={domain:"camera",method:"takePhotoMethod2",params:{compressSize:e}};window.WindVane.call("WindvanePlugin","invoke",JSON.stringify(n),function(r){const i=r.data.imageBase64;A({base64:i,data:i})},t)})}class uu extends f.default.Component{constructor(A){super(A)}render(){const{className:A,title:t,isActive:n,infoList:r=[],style:i={},index:a,isLast:g}=this.props;return f.default.createElement("div",{className:K({[A]:!0,"pda-step-card":!0}),style:i},f.default.createElement("div",{className:"pda-step-indictor"},f.default.createElement("div",{className:K({"pda-step-indictor-top":!0,"pda-step-indictor-top-hidden":a===0})}),f.default.createElement("div",{className:K({"pda-step-indictor-center":!0,"pda-step-indictor-center-active":n})}),f.default.createElement("div",{className:K({"pda-step-indictor-bottom":!0,"pda-step-indictor-bottom-hidden":g})})),f.default.createElement("div",{className:K({"pda-step":!0,"pda-step-dark":!n})},f.default.createElement("div",{className:"pda-step-title"},t),r.map((o,s)=>f.default.createElement("div",{key:s,className:"pda-step-list"},f.default.createElement("span",null,o.label||""),"\xA0\xA0",f.default.createElement("span",null,o.content||"")))))}}class fg extends f.default.Component{constructor(A){super(A)}render(){const{className:A,style:t={},theme:n="light",current:r=0,children:i}=this.props;return f.default.createElement("div",{className:K({[A]:!0}),style:t},(i||[]).map((a,g)=>{const o={index:g,isLast:g===(i||[]).length-1,...a.props};return g===r?o.isActive=!0:o.isActive=!1,D.cloneElement(a,o)}))}}we(fg,"Step",uu);class NA extends f.default.Component{constructor(A){super(A)}componentDidMount(){this.props.isError?vA("success3"):vA("success2")}render(){const{className:A,title:t,infoList:n=[],isError:r=!1,buttonMultiLines:i=!1,style:a={},onClick:g=()=>{},okText:o=ne.get("\u8FD4\u56DE\u9996\u9875"),cancelText:s=null}=this.props,l=f.default.createElement(Ce.Group,null,s?f.default.createElement(Ce,{style:i?{height:"auto",lineHeight:"50px"}:{},type:"dark",onClick:()=>g(!1)},s):null,f.default.createElement(Ce,{type:"primary",style:i?{height:"auto",lineHeight:"normal"}:{},onClick:()=>g(!0)},o));return f.default.createElement(ng,{footer:l,style:{paddingTop:0}},f.default.createElement("div",{className:"pda-finish-card-top"},f.default.createElement("img",{className:"pda-finish-card-img",src:r?NA.ERROR_SUCCESS:NA.SUCCESS}),f.default.createElement("p",{className:"pda-finish-card-title"},t),n.map((d,v)=>f.default.createElement("p",{key:v,className:"pda-finish-card-list"},f.default.createElement("span",null,d.label||""),f.default.createElement("span",null,d.content||"")))))}}NA.SUCCESS=`${window.PDA_IMAGE_PATH}O1CN01OL2UYg24792knbTtC_!!6000000007343-1-tps-506-415.gif`;NA.ERROR_SUCCESS=`${window.PDA_IMAGE_PATH}O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif`;class cu extends f.default.Component{constructor(A){super(A)}render(){const{className:A,title:t,infoText:n,percentage:r=0,style:i={}}=this.props,a=`${window.PDA_IMAGE_PATH}O1CN01EFksWL1DBZCu0H1JH_!!6000000000178-2-tps-21-30.png`,g=`${window.PDA_IMAGE_PATH}O1CN01YEhCSg1aObe8UZq7K_!!6000000003320-2-tps-379-17.png`;return f.default.createElement("div",{className:K({[A]:!0,"pda-distance-card":!0}),style:i},f.default.createElement("p",{className:"pda-distance-card-highlight"},f.default.createElement("span",{className:"pda-distance-card-highlight1"},t)),f.default.createElement("div",{className:"pda-distance-indictor"},f.default.createElement("img",{src:a,width:20,height:29}),f.default.createElement("p",null,n)),f.default.createElement("div",{className:"pda-distance-card-progress"},f.default.createElement("div",{className:"pda-distance-card-progress-inside",style:{width:`${r*100}%`}}),f.default.createElement("img",{className:"pda-distance-card-progress-indictor",src:g})),f.default.createElement("div",{className:"pda-distance-label"},f.default.createElement("p",null,ne.get("\u8FDC")),f.default.createElement("p",null,ne.get("\u8FD1"))))}}function vu(e){const{title:A,context:t,name:n,tag:r,attrs:i=[],style:a}=e;return f.default.createElement("div",{className:"android-sub-card",style:a},f.default.createElement("div",{className:"android-sub-card-title-section"},f.default.createElement("div",{className:"android-sub-card-title"},A),r?f.default.createElement("div",{className:"android-sub-card-tag"},f.default.createElement("div",{className:r.type},r.label||"")):null),f.default.createElement("div",{className:"android-sub-card-context"},t),n?f.default.createElement("div",{className:"android-sub-card-name"},n):null,f.default.createElement("div",{className:"android-sub-card-attrs"},i.map(g=>f.default.createElement("div",{key:g},g))))}function wu(e){const{title:A,label:t,select:n=!0,onClick:r=i=>{}}=e;return f.default.createElement("div",{className:"select-card"},A?f.default.createElement("p",null,A):null,f.default.createElement("div",{className:"select-card-content",onClick:r},t," ",n?f.default.createElement("span",{className:"select-icon"}):null," "))}function du(){}function Cu(e){const{dataSource:A=[],onClickItem:t=du}=e;let n=1;return f.default.createElement("div",{className:"pda-app-list"},A.map(r=>f.default.createElement("div",{className:"pda-app-group",key:r.groupName},f.default.createElement("h2",{className:"group-name"},r.groupName),f.default.createElement("div",{className:"group-apps"},r.list.map(i=>f.default.createElement("div",{className:"app-item",key:i.name,autoFocus:n===1,tabIndex:n++,onClick:()=>t(i)},f.default.createElement("span",{className:"app-name"},i.name),f.default.createElement("span",{className:"app-subname"},i.subname)))))))}function Pu(e){var A=D.useRef(e);A.current=e;var t=D.useRef();return t.current||(t.current=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return A.current.apply(this,n)}),t.current}var Qu=globalThis&&globalThis.__awaiter||function(e,A,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function g(l){try{s(n.next(l))}catch(d){a(d)}}function o(l){try{s(n.throw(l))}catch(d){a(d)}}function s(l){l.done?i(l.value):r(l.value).then(g,o)}s((n=n.apply(e,A||[])).next())})},Iu=globalThis&&globalThis.__generator||function(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,a;return a={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function g(s){return function(l){return o([s,l])}}function o(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,r&&(i=s[0]&2?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,r=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=A.call(e,t)}catch(l){s=[6,l],r=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},hu=globalThis&&globalThis.__read||function(e,A){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),r,i=[],a;try{for(;(A===void 0||A-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(g){a={error:g}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Bu=globalThis&&globalThis.__spread||function(){for(var e=[],A=0;A<arguments.length;A++)e=e.concat(hu(arguments[A]));return e};function mu(e){var A=this,t=D.useRef(!1);return D.useCallback(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Qu(A,void 0,void 0,function(){var i,a;return Iu(this,function(g){switch(g.label){case 0:if(t.current)return[2];t.current=!0,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.apply(void 0,Bu(n))];case 2:return i=g.sent(),t.current=!1,[2,i];case 3:throw a=g.sent(),t.current=!1,a;case 4:return[2]}})})},[e])}const Eu=/scroll|auto/i;function pu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function gf(e,A){let t=e;for(;t&&t!==A&&pu(t);){const{overflowY:n}=window.getComputedStyle(t);if(Eu.test(n))return t;t=t.parentNode}return A}function Du(e){return f.default.createElement("div",{style:{color:e.color||"#999"}},f.default.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},f.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(-100.000000, -71.000000)"},f.default.createElement("g",{transform:"translate(95.000000, 71.000000)"},f.default.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(A=>f.default.createElement("rect",{key:A,fill:"currentColor",x:20+A*26,y:"16",width:"8",height:"8",rx:"2"},f.default.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${A*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1",id:"circ-anim"})))))))))}function yu(e){return e===window}function ag(e){const{className:A,hasMore:t,loadMore:n,threshold:r=0,style:i,loadingText:a=ne.get("\u52A0\u8F7D\u4E2D"),notMoreText:g=ne.get("\u6CA1\u6709\u66F4\u591A\u4E86~")}=e,o=mu(async()=>{await n()}),s=D.useRef(null),l=Pu(()=>{if(!t)return;const d=s.current;if(!d)return;const v=gf(d);if(!v)return;const w=d.getBoundingClientRect().top;(yu(v)?window.innerHeight:v.getBoundingClientRect().bottom)>=w-r&&o()});return D.useEffect(()=>{l()}),D.useEffect(()=>{const d=s.current;if(!d)return;const v=gf(d);if(!v)return;function w(){l()}return v.addEventListener("scroll",w),()=>{v.removeEventListener("scroll",w)}},[]),f.default.createElement("div",{className:K({[A]:!0,"pda-infinite-scroll":!0}),style:i,ref:s},t?f.default.createElement("div",{className:"pda-infinite-scroll-view"},f.default.createElement("span",null,a),f.default.createElement(Du,null)):f.default.createElement("div",{className:"pda-infinite-scroll-view"},f.default.createElement("span",null,g)))}function bu(e){const{className:A="",visible:t,onClickItem:n,actions:r=[],stickyToBottomActions:i=[],stickyToBottomDirection:a="column",infiniteScroll:g=null}=e;return f.default.createElement("div",{className:K({[A]:!0,"action-sheet":!0,show:t})},f.default.createElement("div",{className:"action-sheet-container"},f.default.createElement("div",{className:"action-sheet-body"},r.map((o,s)=>f.default.createElement("div",{onClick:()=>{n&&n(o),o.onClick&&o.onClick(o.key)},className:"action-sheet-item",key:s},o.title)),g?f.default.createElement(ag,{...g}):null),i.length>0?f.default.createElement("div",{className:K({"action-sheet-sticky-bottom":!0,["action-sheet-sticky-bottom-"+a]:!0})},i.map((o,s)=>f.default.createElement("div",{onClick:()=>{n&&n(o),o.onClick&&o.onClick(o.key)},className:"action-sheet-item",key:s},o.title))):null))}function gg(e){const{className:A=void 0,label:t="label",type:n="success"}=e;return f.default.createElement("div",{className:K({[A]:!0,"pda-tag":!0,["pda-tag-"+n]:!0})},t)}function sg(e){const{className:A="",title:t="",content:n="",type:r="default",onClick:i=()=>{}}=e;return t||n?f.default.createElement("div",{className:K({[A]:!0,"simple-card":!0,["simple-card-"+r]:!0}),onClick:i},f.default.createElement("p",{className:"simple-card-title"},t),f.default.createElement("p",{className:"simple-card-content"},n)):null}function xu(e){const{className:A=void 0,dataSource:t=[],title:n="",tag:r}=e;return f.default.createElement("div",{className:K({[A]:!0,"simple-card-block":!0})},f.default.createElement("div",{className:"simple-card-block-header"},f.default.createElement("p",{className:"simple-card-block-title"},n),r?f.default.createElement("div",{style:{marginLeft:12}},f.default.createElement(gg,{...r})):null),t.length>0?f.default.createElement("div",{className:"simple-card-block-content"},t.map((i,a)=>f.default.createElement(sg,{key:a,...i}))):null)}function og(e){const{row:A=3,col:t=3,dataSource:n=[],onClick:r}=e;return f.default.createElement("div",{className:"lattice-mouth"},Array.from(Array(A)).map(function(i,a){return f.default.createElement("div",{className:"lattice-mouth-row",key:a},Array.from(Array(t)).map((g,o)=>Ru(n,a,o,t,r)))}))}function Ru(e,A,t,n,r){const{color:i="",value:a,label:g,style:o={}}=Ou(e,A,t,n)||{};return f.default.createElement("div",{className:`lattice-mouth-item ${i}`,style:o,key:t,onClick:()=>{r&&r(A,t,a,g)}},f.default.createElement("div",{className:"lattice-mouth-value"},a),f.default.createElement("div",{className:"lattice-mouth-label"},g))}function Ou(e,A,t,n){return e[A*n+t]}const Fu={"--base-font-size":"20px","--background-color":"#282828","--color":"#FFFFFF","--main-color":"#FFFFFF","--border-radius":"6px","--progress-background-color":"rgba(255, 255, 255, 0.5)","--progress-foreground-color":"#FFFFFF","--tag-background-color":"#008FED","--tag-color":"#FFFFFF"};function Mu(e){const{title:A,content:t,subContent:n,hasProgress:r,progress:i,infoList:a=[],tags:g=[],tagPosition:o="top",style:s={},theme:l="light",actions:d=[],onClick:v}=e;return f.default.createElement("div",{onClick:v,className:"android-op-card",style:Object.assign({},l==="dark"?Fu:{},s)},f.default.createElement("div",{className:"card-h1"},A),f.default.createElement("div",{className:"card-content"},f.default.createElement(Lu,{label:t})),r?f.default.createElement("div",{className:"card-progress"},f.default.createElement("div",{className:"card-progress-bar",style:{width:i+"%"}})):null,f.default.createElement("div",{className:"card-main-title"},n),f.default.createElement("div",{className:"card-info-list"},a&&a.map((w,C)=>f.default.createElement("div",{className:"card-info-item",key:C},w))),f.default.createElement("div",{className:`card-tags ${o}`},g&&g.map(w=>f.default.createElement("div",{className:"card-tags-item",key:w},w))),d&&d.length?f.default.createElement("div",{className:"actions"},d.map(w=>f.default.createElement("div",{className:`btn ${w.type}`,onClick:w.onClick},w.text))):null)}function Lu(e){const{label:A}=e,t=String(A).split("/");return t.length>1?f.default.createElement("div",{className:"card-content"},f.default.createElement("span",null,t[0])," ",f.default.createElement("small",null,"/",t[1])):f.default.createElement("div",{className:"card-content"},t[0])}function ku(e){const{label:A=ne.get("\u8BF7\u9009\u62E9"),dataSource:t=[],value:n,defaultValue:r,placeholder:i=ne.get("\u8BF7\u9009\u62E9"),useDetail:a=!0,onChange:g,localSearch:o=!0}=e,[s,l]=f.default.useState(!1),[d,v]=f.default.useState(),[w,C]=f.default.useState("");return f.default.useEffect(()=>{v(sf(t,n!==void 0?n:r))},[t,n]),f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"android-pda-picker",onClick:()=>l(!0)},f.default.createElement("span",{className:"label"},A),f.default.createElement("span",{className:"text"},d?d.label:i),f.default.createElement("span",{className:"icon"})),s?f.default.createElement(wA,{verticalPosition:"bottom",closable:!0,onClosed:()=>l(!1)},f.default.createElement("div",{className:"android-pda-picker-overlay"},o?f.default.createElement("div",{className:"title"},f.default.createElement("input",{value:w,placeholder:ne.get("\u641C\u7D22"),className:"filter-input",onClick:h=>{h.stopPropagation(),h.preventDefault()},onBlur:()=>{setTimeout(()=>{C("")},300)},onChange:h=>C(h.target.value)}),f.default.createElement("span",{className:"cancel",onClick:h=>{h.stopPropagation(),h.preventDefault()}},ne.get("\u53D6\u6D88")),f.default.createElement(Su,null)):null,f.default.createElement("div",{className:"android-pda-picker-list"},f.default.createElement(_r,{onClickItem:h=>{const E=sf(t,h.value);C(""),v(E),g(a?E:E.value),l(!1)},dataSource:Nu(t,w).map(h=>({title:h.label,value:h.value}))})))):null)}function Nu(e,A){return e.filter(t=>new RegExp(A).test(t.label))}function sf(e,A){return e.find(t=>t.value===A||t.value==(A==null?void 0:A.value))}function Su(){return f.default.createElement("svg",{className:"search-icon",width:"1em",height:"1em",viewBox:"0 0 48 48"},f.default.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none","stroke-width":"1",fill:"none",fillRule:"evenodd"},f.default.createElement("g",{id:ne.get("SearchOutline-\u7F16\u7EC4")},f.default.createElement("rect",{id:ne.get("SearchOutline-\u77E9\u5F62"),fill:"#FFFFFF",opacity:"0",x:"0",y:"0",width:"48",height:"48"}),f.default.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",fill:"currentColor",fillRule:"nonzero"}))))}function Tu(e){const{visible:A,text:t="LOADING..."}=e;return A?f.default.createElement("div",{className:"loading-wrap"},f.default.createElement("div",{className:"loading-box"},f.default.createElement("svg",{t:"1647243772165",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2178"},f.default.createElement("path",{d:"M512 64c247.2 0 448 200.8 448 448h-64c0-212-172-384-384-384V64z m0 832c-212 0-384-172-384-384H64c0 247.2 200.8 448 448 448v-64z","p-id":"2179"})),f.default.createElement("div",null,t))):null}function ar(e,A,t){return e!==""?(typeof t=="number"&&(e=Number(e)>t?e:t),typeof A=="number"&&(e=Number(e)>A?A:e),Number(e)):e}function Hu(e){const{label:A="",autoFocus:t=!0,defaultValue:n,placeholder:r,type:i="number",onChange:a,onSubmit:g,min:o,max:s,maxLength:l,value:d}=e;return f.default.createElement("div",{className:"android-op-input-item"},f.default.createElement("label",null,f.default.createElement("span",{className:"label-text"},A),f.default.createElement("input",{autoFocus:t,type:i,placeholder:r,defaultValue:n,onKeyUp:v=>{const{keyCode:w}=v;let C=String(v.target.value).trim();if(w===13){v.preventDefault(),i==="number"&&(v.target.value=ar(C,s,o),C=v.target.value),g&&g(C);return}},min:o,max:s,maxLength:l,value:d,onChange:v=>{let w=String(v.target.value).trim();i!=="number"||w===""?a&&a(w):a&&a(ar(w,s,o))},onKeyPress:v=>{i==="number"&&["+","e","E"].indexOf(v.key)!==-1&&v.preventDefault()},onBlur:v=>{if(i==="number")if(v.target.value==="")v.target.value="",a&&a(v.target.value);else{let w=v.target.value;v.target.value=ar(w,s,o)}}})))}const of=Function.prototype.apply,gr=new WeakMap;function rA(e){return gr.has(e)||gr.set(e,{}),gr.get(e)}class Gu{constructor(A=null,t=console){const n=rA(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=A===null?null:parseInt(A,10),this}_addCallback(A,t,n,r){return this._getCallbacks(A).push({callback:t,context:n,weight:r}),this._getCallbacks(A).sort((i,a)=>i.weight>a.weight),this}_getCallbacks(A){return rA(this)._callbacks[A]}_getCallbackIndex(A,t){return this._has(A)?this._getCallbacks(A).findIndex(n=>n.callback===t):null}_achieveMaxListener(A){return rA(this)._maxListeners!==null&&rA(this)._maxListeners<=this.listenersNumber(A)}_callbackIsExists(A,t,n){const r=this._getCallbackIndex(A,t),i=r!==-1?this._getCallbacks(A)[r]:void 0;return r!==-1&&i&&i.context===n}_has(A){return rA(this)._events.has(A)}on(A,t,n=null,r=1){const i=rA(this);if(typeof t!="function")throw new TypeError(`${t} is not a function`);return this._has(A)?(this._achieveMaxListener(A)&&i._console.warn(`Max listeners (${i._maxListeners}) for event "${A}" is reached!`),this._callbackIsExists(...arguments)&&i._console.warn(`Event "${A}" already has the callback ${t}.`)):(i._events.add(A),i._callbacks[A]=[]),this._addCallback(...arguments),this}once(A,t,n=null,r=1){const i=(...a)=>(this.off(A,i),of.call(t,n,a));return this.on(A,i,n,r)}off(A,t=null){const n=rA(this);let r;return this._has(A)&&(t===null?(n._events.delete(A),n._callbacks[A]=null):(r=this._getCallbackIndex(A,t),r!==-1&&(n._callbacks[A].splice(r,1),this.off(...arguments)))),this}emit(A,...t){return this._has(A)&&this._getCallbacks(A).forEach(n=>of.call(n.callback,n.context,t)),this}clear(){const A=rA(this);return A._events.clear(),A._callbacks={},this}listenersNumber(A){return this._has(A)?this._getCallbacks(A).length:null}}class lg extends Gu{constructor(A){super(),this.data=A||{}}on(A,t){A.indexOf(",")>-1?A.split(",").forEach(n=>{super.on(n,t)}):super.on(A,t)}off(A,t){A.indexOf(",")>-1?A.split(",").forEach(n=>{super.off(n,t)}):super.off(A,t)}get(A){return this.getVariable(A)}getVariable(A){if(typeof A!="string")return console.warn("Not string:",A),"";if(A==="$ALL")return this.data;if(A.indexOf(".")>-1){A=A.split(".");let t=this.data;for(let n=0;n<A.length;n++)if(t=t[A[n]],t==null)return;return t}return this.data[A]}set(A,t){if(A.indexOf(".")>-1){const n=A.split(".");let r=this.data;for(let i=0;i<n.length-1;i++)r[n[i]]===void 0?r=r[n[i]]={}:r=r[n[i]];r[n[n.length-1]]=t}else this.data[A]=t;this.emit(A,t),t&&Object.keys(t).length&&Object.keys(t).forEach(n=>{this.emit(`${A}.${n}`,t[n])}),this.emit("$updated",[A,t])}}we(lg,"getVariableByJSON",pr);function pr(e,A){if(typeof e=="string")return/^\$.+/.test(e)?A.getVariable(e):e;if(Array.isArray(e))return e.map(t=>pr(t,A));if(Object.prototype.toString.call(e)==="[object Object]"){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=pr(e[n],A));return t}return e}class ug extends lg{constructor(A,t={}){super(A),this.validateStatusMap={},this.validatorMap={}}getProps(A,{validator:t,formatValue:n,handleValueInChange:r,onChange:i}={}){const a=typeof t!="function"&&t!=="required"?null:o=>{t==="required"&&(t=s=>s==null||s===""?ne.get("\u5FC5\u586B"):null),this.validateStatusMap[A]=t==null?void 0:t(o)};this.validatorMap[A]=a;const g=this.get(A);return{value:typeof n=="function"?n(g,A):g,onChange:o=>{o&&o.target&&o.preventDefault&&(o=o.target.value),typeof r=="function"&&(o=r(o,A)),a==null||a(o),this.set(A,o),i==null||i(o)}}}getValidateStatus(A){return this.validateStatusMap[A]}validate(){var t,n;(n=(t=Object.entries(this.validatorMap))==null?void 0:t.forEach)==null||n.call(t,([r,i])=>{i==null||i(this.get(r))});const A=Object.entries(this.validateStatusMap).filter(([r,i])=>i);return A.length>0&&this.emit("$updated"),A.length===0?Promise.resolve(this.getValues()):Promise.reject(Object.fromEntries(A),this.getValues())}getValue(A){return this.get(A)}getValues(){return this.data}setValue(A,t){this.set(A,t)}}function zu(e,A){const[,t]=f.default.useState({}),[n]=f.default.useState(()=>new ug(e,A));return f.default.useEffect(()=>{n.on("$updated",()=>t({}))}),n}function ju(e){const{label:A="",defaultValue:t,value:n,min:r,max:i,autoFocus:a=!0,onChange:g,onSubmit:o}=e;return f.default.createElement("div",{className:"android-op-datepicker-item"},f.default.createElement("label",null,f.default.createElement("span",{className:"label-text"},A),f.default.createElement("input",{step:"0.2",defaultValue:t,value:n,autoFocus:a,min:r,max:i,type:"date",onChange:s=>{g&&g(s.target.value)},onKeyUp:s=>{const{keyCode:l}=s;let d=String(s.target.value).trim();if(l===13){s.preventDefault(),o&&o(d);return}}})))}const Ot=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ot&&document.addEventListener("touchstart",()=>{},!0);var un=function(){return un=Object.assign||function(A){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},un.apply(this,arguments)};function Uu(e,A){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&A.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)A.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]]);return t}function SA(e,A,t,n){function r(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function g(l){try{s(n.next(l))}catch(d){a(d)}}function o(l){try{s(n.throw(l))}catch(d){a(d)}}function s(l){l.done?i(l.value):r(l.value).then(g,o)}s((n=n.apply(e,A||[])).next())})}function Ku(e){var A=typeof Symbol=="function"&&Symbol.iterator,t=A&&e[A],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}function TA(e,A){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),r,i=[],a;try{for(;(A===void 0||A-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(g){a={error:g}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function cg(e,A,t){if(t||arguments.length===2)for(var n=0,r=A.length,i;n<r;n++)(i||!(n in A))&&(i||(i=Array.prototype.slice.call(A,0,n)),i[n]=A[n]);return e.concat(i||Array.prototype.slice.call(A))}const xe="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",Yu={locale:"zh-CH",common:{confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",loading:"\u52A0\u8F7D\u4E2D",close:"\u5173\u95ED"},Calendar:{title:"\u65E5\u671F\u9009\u62E9",confirm:"\u786E\u8BA4",start:"\u5F00\u59CB",end:"\u7ED3\u675F",today:"\u4ECA\u65E5",markItems:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u65E5"],yearAndMonth:"${year}\u5E74${month}\u6708"},Cascader:{placeholder:"\u8BF7\u9009\u62E9"},Dialog:{ok:"\u6211\u77E5\u9053\u4E86"},DatePicker:{tillNow:"\u81F3\u4ECA"},ErrorBlock:{default:{title:"\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",description:"\u5F85\u4F1A\u6765\u8BD5\u8BD5"},busy:{title:"\u524D\u65B9\u62E5\u5835",description:"\u5237\u65B0\u8BD5\u8BD5"},disconnected:{title:"\u7F51\u7EDC\u6709\u70B9\u5FD9",description:"\u52A8\u52A8\u624B\u6307\u5E2E\u5FD9\u4FEE\u590D"},empty:{title:"\u6CA1\u6709\u627E\u5230\u4F60\u9700\u8981\u7684\u4E1C\u897F",description:"\u627E\u627E\u5176\u4ED6\u7684\u5427"}},Form:{required:"\u5FC5\u586B",optional:"\u9009\u586B",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:xe,method:xe,array:xe,object:xe,number:xe,date:xe,boolean:xe,integer:xe,float:xe,regexp:xe,email:xe,url:xe,hex:xe},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},ImageUploader:{uploading:"\u4E0A\u4F20\u4E2D...",upload:"\u4E0A\u4F20"},InfiniteScroll:{noMore:"\u6CA1\u6709\u66F4\u591A\u4E86",failedToLoad:"\u52A0\u8F7D\u5931\u8D25",retry:"\u91CD\u65B0\u52A0\u8F7D"},Input:{clear:"\u6E05\u9664"},Mask:{name:"\u80CC\u666F\u8499\u5C42"},Modal:{ok:"\u6211\u77E5\u9053\u4E86"},PasscodeInput:{name:"\u5BC6\u7801\u8F93\u5165\u6846"},PullToRefresh:{pulling:"\u4E0B\u62C9\u5237\u65B0",canRelease:"\u91CA\u653E\u7ACB\u5373\u5237\u65B0",complete:"\u5237\u65B0\u6210\u529F"},SearchBar:{name:"\u641C\u7D22\u6846"},Slider:{name:"\u6ED1\u52A8\u8F93\u5165\u6761"},Stepper:{decrease:"\u51CF\u5C11",increase:"\u589E\u52A0"},Switch:{name:"\u5F00\u5173"},Selector:{name:"\u9009\u62E9\u7EC4"}};var Ju=Yu;const Xu={current:{locale:Ju}};function Ai(){return Xu.current}const Vu=f.default.createContext(null);function ze(){var e;return(e=D.useContext(Vu))!==null&&e!==void 0?e:Ai()}function CA(e,A){const t=e;for(const n in A)A.hasOwnProperty(n)&&(t[n]=A[n]);return t}function ae(e,A){const t=Object.assign({},A.props);e.className&&(t.className=K(A.props.className,e.className)),e.style&&(t.style=Object.assign(Object.assign({},t.style),e.style)),e.tabIndex!==void 0&&(t.tabIndex=e.tabIndex);for(const n in e)!e.hasOwnProperty(n)||(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return f.default.cloneElement(A,t)}function se(...e){const A={};return e.forEach(t=>{t&&Object.keys(t).forEach(n=>{t[n]!==void 0&&(A[n]=t[n])})}),A}function ti(e,...A){for(let t=A.length-1;t>=0;t-=1)if(A[t]!==void 0)return A[t];return e}var vg=function(e){return function(A,t){var n=D.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return A()},t)}},Ft=function(e){return typeof e=="function"},Wu=!1,Rn=Wu;function KA(e){Rn&&(Ft(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var A=D.useRef(e);A.current=D.useMemo(function(){return e},[e]);var t=D.useRef();return t.current||(t.current=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return A.current.apply(this,n)}),t.current}var Zu=vg(D.useEffect);function lf(e,A){if(e===A)return!0;for(var t=0;t<e.length;t++)if(!Object.is(e[t],A[t]))return!1;return!0}function ni(e){var A=D.useRef(e);return A.current=e,A}var qu=function(e){Rn&&(Ft(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var A=ni(e);D.useEffect(function(){return function(){A.current()}},[])},ri=qu;function _u(e){var A=typeof e;return e!=null&&(A=="object"||A=="function")}var ii=_u,$u=typeof he=="object"&&he&&he.Object===Object&&he,ec=$u,Ac=ec,tc=typeof self=="object"&&self&&self.Object===Object&&self,nc=Ac||tc||Function("return this")(),wg=nc,rc=wg,ic=function(){return rc.Date.now()},fc=ic,ac=/\s/;function gc(e){for(var A=e.length;A--&&ac.test(e.charAt(A)););return A}var sc=gc,oc=sc,lc=/^\s+/;function uc(e){return e&&e.slice(0,oc(e)+1).replace(lc,"")}var cc=uc,vc=wg,wc=vc.Symbol,dg=wc,uf=dg,Cg=Object.prototype,dc=Cg.hasOwnProperty,Cc=Cg.toString,WA=uf?uf.toStringTag:void 0;function Pc(e){var A=dc.call(e,WA),t=e[WA];try{e[WA]=void 0;var n=!0}catch{}var r=Cc.call(e);return n&&(A?e[WA]=t:delete e[WA]),r}var Qc=Pc,Ic=Object.prototype,hc=Ic.toString;function Bc(e){return hc.call(e)}var mc=Bc,cf=dg,Ec=Qc,pc=mc,Dc="[object Null]",yc="[object Undefined]",vf=cf?cf.toStringTag:void 0;function bc(e){return e==null?e===void 0?yc:Dc:vf&&vf in Object(e)?Ec(e):pc(e)}var xc=bc;function Rc(e){return e!=null&&typeof e=="object"}var Oc=Rc,Fc=xc,Mc=Oc,Lc="[object Symbol]";function kc(e){return typeof e=="symbol"||Mc(e)&&Fc(e)==Lc}var Nc=kc,Sc=cc,wf=ii,Tc=Nc,df=0/0,Hc=/^[-+]0x[0-9a-f]+$/i,Gc=/^0b[01]+$/i,zc=/^0o[0-7]+$/i,jc=parseInt;function Uc(e){if(typeof e=="number")return e;if(Tc(e))return df;if(wf(e)){var A=typeof e.valueOf=="function"?e.valueOf():e;e=wf(A)?A+"":A}if(typeof e!="string")return e===0?e:+e;e=Sc(e);var t=Gc.test(e);return t||zc.test(e)?jc(e.slice(2),t?2:8):Hc.test(e)?df:+e}var Kc=Uc,Yc=ii,sr=fc,Cf=Kc,Jc="Expected a function",Xc=Math.max,Vc=Math.min;function Wc(e,A,t){var n,r,i,a,g,o,s=0,l=!1,d=!1,v=!0;if(typeof e!="function")throw new TypeError(Jc);A=Cf(A)||0,Yc(t)&&(l=!!t.leading,d="maxWait"in t,i=d?Xc(Cf(t.maxWait)||0,A):i,v="trailing"in t?!!t.trailing:v);function w(B){var b=n,x=r;return n=r=void 0,s=B,a=e.apply(x,b),a}function C(B){return s=B,g=setTimeout(P,A),l?w(B):a}function h(B){var b=B-o,x=B-s,S=A-b;return d?Vc(S,i-x):S}function E(B){var b=B-o,x=B-s;return o===void 0||b>=A||b<0||d&&x>=i}function P(){var B=sr();if(E(B))return m(B);g=setTimeout(P,h(B))}function m(B){return g=void 0,v&&n?w(B):(n=r=void 0,a)}function u(){g!==void 0&&clearTimeout(g),s=0,n=o=r=g=void 0}function c(){return g===void 0?a:m(sr())}function Q(){var B=sr(),b=E(B);if(n=arguments,r=this,o=B,b){if(g===void 0)return C(o);if(d)return clearTimeout(g),g=setTimeout(P,A),w(o)}return g===void 0&&(g=setTimeout(P,A)),a}return Q.cancel=u,Q.flush=c,Q}var Pg=Wc,Zc=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Qg=Zc,qc=Pg,_c=ii,$c="Expected a function";function ev(e,A,t){var n=!0,r=!0;if(typeof e!="function")throw new TypeError($c);return _c(t)&&(n="leading"in t?!!t.leading:n,r="trailing"in t?!!t.trailing:r),qc(e,A,{leading:n,maxWait:A,trailing:r})}var Av=ev,tv=function(){var e=TA(D.useState({}),2),A=e[1];return D.useCallback(function(){return A({})},[])},nv=tv;function Dr(e,A){if(!!Qg){if(!e)return A;var t;return Ft(e)?t=e():"current"in e?t=e.current:t=e,t}}var rv=function(e){var A=function(t,n,r){var i=D.useRef(!1),a=D.useRef([]),g=D.useRef([]),o=D.useRef();e(function(){var s,l=Array.isArray(r)?r:[r],d=l.map(function(v){return Dr(v)});if(!i.current){i.current=!0,a.current=d,g.current=n,o.current=t();return}(d.length!==a.current.length||!lf(a.current,d)||!lf(g.current,n))&&((s=o.current)===null||s===void 0||s.call(o),a.current=d,g.current=n,o.current=t())}),ri(function(){var s;(s=o.current)===null||s===void 0||s.call(o),i.current=!1})};return A},iv=rv,fv=iv(D.useEffect),av=fv,Ig={exports:{}};(function(e,A){(function(t,n){e.exports=n()})(he,function(){var t=1e3,n=6e4,r=36e5,i="millisecond",a="second",g="minute",o="hour",s="day",l="week",d="month",v="quarter",w="year",C="date",h="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var H=["th","st","nd","rd"],L=z%100;return"["+z+(H[(L-20)%10]||H[L]||H[0])+"]"}},u=function(z,H,L){var U=String(z);return!U||U.length>=H?z:""+Array(H+1-U.length).join(L)+z},c={s:u,z:function(z){var H=-z.utcOffset(),L=Math.abs(H),U=Math.floor(L/60),G=L%60;return(H<=0?"+":"-")+u(U,2,"0")+":"+u(G,2,"0")},m:function z(H,L){if(H.date()<L.date())return-z(L,H);var U=12*(L.year()-H.year())+(L.month()-H.month()),G=H.clone().add(U,d),F=L-G<0,N=H.clone().add(U+(F?-1:1),d);return+(-(U+(L-G)/(F?G-N:N-G))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:d,y:w,w:l,d:s,D:C,h:o,m:g,s:a,ms:i,Q:v}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},Q="en",B={};B[Q]=m;var b="$isDayjsObject",x=function(z){return z instanceof Y||!(!z||!z[b])},S=function z(H,L,U){var G;if(!H)return Q;if(typeof H=="string"){var F=H.toLowerCase();B[F]&&(G=F),L&&(B[F]=L,G=F);var N=H.split("-");if(!G&&N.length>1)return z(N[0])}else{var V=H.name;B[V]=H,G=V}return!U&&G&&(Q=G),G||!U&&Q},O=function(z,H){if(x(z))return z.clone();var L=typeof H=="object"?H:{};return L.date=z,L.args=arguments,new Y(L)},M=c;M.l=S,M.i=x,M.w=function(z,H){return O(z,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var Y=function(){function z(L){this.$L=S(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[b]=!0}var H=z.prototype;return H.parse=function(L){this.$d=function(U){var G=U.date,F=U.utc;if(G===null)return new Date(NaN);if(M.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var N=G.match(E);if(N){var V=N[2]-1||0,q=(N[7]||"0").substring(0,3);return F?new Date(Date.UTC(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,q)):new Date(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,q)}}return new Date(G)}(L),this.init()},H.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},H.$utils=function(){return M},H.isValid=function(){return this.$d.toString()!==h},H.isSame=function(L,U){var G=O(L);return this.startOf(U)<=G&&G<=this.endOf(U)},H.isAfter=function(L,U){return O(L)<this.startOf(U)},H.isBefore=function(L,U){return this.endOf(U)<O(L)},H.$g=function(L,U,G){return M.u(L)?this[U]:this.set(G,L)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(L,U){var G=this,F=!!M.u(U)||U,N=M.p(L),V=function(Oe,Ie){var Ue=M.w(G.$u?Date.UTC(G.$y,Ie,Oe):new Date(G.$y,Ie,Oe),G);return F?Ue:Ue.endOf(s)},q=function(Oe,Ie){return M.w(G.toDate()[Oe].apply(G.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Ie)),G)},re=this.$W,Ae=this.$M,_=this.$D,je="set"+(this.$u?"UTC":"");switch(N){case w:return F?V(1,0):V(31,11);case d:return F?V(1,Ae):V(0,Ae+1);case l:var be=this.$locale().weekStart||0,me=(re<be?re+7:re)-be;return V(F?_-me:_+(6-me),Ae);case s:case C:return q(je+"Hours",0);case o:return q(je+"Minutes",1);case g:return q(je+"Seconds",2);case a:return q(je+"Milliseconds",3);default:return this.clone()}},H.endOf=function(L){return this.startOf(L,!1)},H.$set=function(L,U){var G,F=M.p(L),N="set"+(this.$u?"UTC":""),V=(G={},G[s]=N+"Date",G[C]=N+"Date",G[d]=N+"Month",G[w]=N+"FullYear",G[o]=N+"Hours",G[g]=N+"Minutes",G[a]=N+"Seconds",G[i]=N+"Milliseconds",G)[F],q=F===s?this.$D+(U-this.$W):U;if(F===d||F===w){var re=this.clone().set(C,1);re.$d[V](q),re.init(),this.$d=re.set(C,Math.min(this.$D,re.daysInMonth())).$d}else V&&this.$d[V](q);return this.init(),this},H.set=function(L,U){return this.clone().$set(L,U)},H.get=function(L){return this[M.p(L)]()},H.add=function(L,U){var G,F=this;L=Number(L);var N=M.p(U),V=function(Ae){var _=O(F);return M.w(_.date(_.date()+Math.round(Ae*L)),F)};if(N===d)return this.set(d,this.$M+L);if(N===w)return this.set(w,this.$y+L);if(N===s)return V(1);if(N===l)return V(7);var q=(G={},G[g]=n,G[o]=r,G[a]=t,G)[N]||1,re=this.$d.getTime()+L*q;return M.w(re,this)},H.subtract=function(L,U){return this.add(-1*L,U)},H.format=function(L){var U=this,G=this.$locale();if(!this.isValid())return G.invalidDate||h;var F=L||"YYYY-MM-DDTHH:mm:ssZ",N=M.z(this),V=this.$H,q=this.$m,re=this.$M,Ae=G.weekdays,_=G.months,je=G.meridiem,be=function(Ie,Ue,PA,DA){return Ie&&(Ie[Ue]||Ie(U,F))||PA[Ue].slice(0,DA)},me=function(Ie){return M.s(V%12||12,Ie,"0")},Oe=je||function(Ie,Ue,PA){var DA=Ie<12?"AM":"PM";return PA?DA.toLowerCase():DA};return F.replace(P,function(Ie,Ue){return Ue||function(PA){switch(PA){case"YY":return String(U.$y).slice(-2);case"YYYY":return M.s(U.$y,4,"0");case"M":return re+1;case"MM":return M.s(re+1,2,"0");case"MMM":return be(G.monthsShort,re,_,3);case"MMMM":return be(_,re);case"D":return U.$D;case"DD":return M.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return be(G.weekdaysMin,U.$W,Ae,2);case"ddd":return be(G.weekdaysShort,U.$W,Ae,3);case"dddd":return Ae[U.$W];case"H":return String(V);case"HH":return M.s(V,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return Oe(V,q,!0);case"A":return Oe(V,q,!1);case"m":return String(q);case"mm":return M.s(q,2,"0");case"s":return String(U.$s);case"ss":return M.s(U.$s,2,"0");case"SSS":return M.s(U.$ms,3,"0");case"Z":return N}return null}(Ie)||N.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(L,U,G){var F,N=this,V=M.p(U),q=O(L),re=(q.utcOffset()-this.utcOffset())*n,Ae=this-q,_=function(){return M.m(N,q)};switch(V){case w:F=_()/12;break;case d:F=_();break;case v:F=_()/3;break;case l:F=(Ae-re)/6048e5;break;case s:F=(Ae-re)/864e5;break;case o:F=Ae/r;break;case g:F=Ae/n;break;case a:F=Ae/t;break;default:F=Ae}return G?F:M.a(F)},H.daysInMonth=function(){return this.endOf(d).$D},H.$locale=function(){return B[this.$L]},H.locale=function(L,U){if(!L)return this.$L;var G=this.clone(),F=S(L,U,!0);return F&&(G.$L=F),G},H.clone=function(){return M.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},z}(),ee=Y.prototype;return O.prototype=ee,[["$ms",i],["$s",a],["$m",g],["$H",o],["$W",s],["$M",d],["$y",w],["$D",C]].forEach(function(z){ee[z[1]]=function(H){return this.$g(H,z[0],z[1])}}),O.extend=function(z,H){return z.$i||(z(H,Y,O),z.$i=!0),O},O.locale=S,O.isDayjs=x,O.unix=function(z){return O(1e3*z)},O.en=B[Q],O.Ls=B,O.p={},O})})(Ig);var ue=Ig.exports;function gv(){var e=(typeof global=="undefined"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,A=typeof self=="object"&&self&&self.Object===Object&&self;return e||A}gv()||(global.Date=Date);function sv(e,A){var t;Rn&&(Ft(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=ni(e),r=(t=A==null?void 0:A.wait)!==null&&t!==void 0?t:1e3,i=D.useMemo(function(){return Pg(function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];return n.current.apply(n,cg([],TA(a),!1))},r,A)},[]);return ri(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}function ov(e,A,t){var n=TA(D.useState({}),2),r=n[0],i=n[1],a=sv(function(){i({})},t).run;D.useEffect(function(){return a()},A),Zu(e,[r])}var lv=typeof Element!="undefined",uv=typeof Map=="function",cv=typeof Set=="function",vv=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function fn(e,A){if(e===A)return!0;if(e&&A&&typeof e=="object"&&typeof A=="object"){if(e.constructor!==A.constructor)return!1;var t,n,r;if(Array.isArray(e)){if(t=e.length,t!=A.length)return!1;for(n=t;n--!==0;)if(!fn(e[n],A[n]))return!1;return!0}var i;if(uv&&e instanceof Map&&A instanceof Map){if(e.size!==A.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!A.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!fn(n.value[1],A.get(n.value[0])))return!1;return!0}if(cv&&e instanceof Set&&A instanceof Set){if(e.size!==A.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!A.has(n.value[0]))return!1;return!0}if(vv&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(A)){if(t=e.length,t!=A.length)return!1;for(n=t;n--!==0;)if(e[n]!==A[n])return!1;return!0}if(e.constructor===RegExp)return e.source===A.source&&e.flags===A.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof A.valueOf=="function")return e.valueOf()===A.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof A.toString=="function")return e.toString()===A.toString();if(r=Object.keys(e),t=r.length,t!==Object.keys(A).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(A,r[n]))return!1;if(lv&&e instanceof Element)return!1;for(n=t;n--!==0;)if(!((r[n]==="_owner"||r[n]==="__v"||r[n]==="__o")&&e.$$typeof)&&!fn(e[r[n]],A[r[n]]))return!1;return!0}return e!==e&&A!==A}var wv=function(A,t){try{return fn(A,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(u){try{return u.defaultView&&u.defaultView.frameElement||null}catch{return null}}var A=function(u){for(var c=u,Q=e(c);Q;)c=Q.ownerDocument,Q=e(c);return c}(window.document),t=[],n=null,r=null;function i(u){this.time=u.time,this.target=u.target,this.rootBounds=C(u.rootBounds),this.boundingClientRect=C(u.boundingClientRect),this.intersectionRect=C(u.intersectionRect||w()),this.isIntersecting=!!u.intersectionRect;var c=this.boundingClientRect,Q=c.width*c.height,B=this.intersectionRect,b=B.width*B.height;Q?this.intersectionRatio=Number((b/Q).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(u,c){var Q=c||{};if(typeof u!="function")throw new Error("callback must be a function");if(Q.root&&Q.root.nodeType!=1&&Q.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=o(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=u,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(Q.rootMargin),this.thresholds=this._initThresholds(Q.threshold),this.root=Q.root||null,this.rootMargin=this._rootMarginValues.map(function(B){return B.value+B.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(u,c){!u||!c?r=w():r=h(u,c),t.forEach(function(Q){Q._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(u){var c=this._observationTargets.some(function(Q){return Q.element==u});if(!c){if(!(u&&u.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:u,entry:null}),this._monitorIntersections(u.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(u){this._observationTargets=this._observationTargets.filter(function(c){return c.element!=u}),this._unmonitorIntersections(u.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var u=this._queuedEntries.slice();return this._queuedEntries=[],u},a.prototype._initThresholds=function(u){var c=u||[0];return Array.isArray(c)||(c=[c]),c.sort().filter(function(Q,B,b){if(typeof Q!="number"||isNaN(Q)||Q<0||Q>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return Q!==b[B-1]})},a.prototype._parseRootMargin=function(u){var c=u||"0px",Q=c.split(/\s+/).map(function(B){var b=/^(-?\d*\.?\d+)(px|%)$/.exec(B);if(!b)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(b[1]),unit:b[2]}});return Q[1]=Q[1]||Q[0],Q[2]=Q[2]||Q[0],Q[3]=Q[3]||Q[1],Q},a.prototype._monitorIntersections=function(u){var c=u.defaultView;if(!!c&&this._monitoringDocuments.indexOf(u)==-1){var Q=this._checkForIntersections,B=null,b=null;this.POLL_INTERVAL?B=c.setInterval(Q,this.POLL_INTERVAL):(s(c,"resize",Q,!0),s(u,"scroll",Q,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in c&&(b=new c.MutationObserver(Q),b.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(u),this._monitoringUnsubscribes.push(function(){var O=u.defaultView;O&&(B&&O.clearInterval(B),l(O,"resize",Q,!0)),l(u,"scroll",Q,!0),b&&b.disconnect()});var x=this.root&&(this.root.ownerDocument||this.root)||A;if(u!=x){var S=e(u);S&&this._monitorIntersections(S.ownerDocument)}}},a.prototype._unmonitorIntersections=function(u){var c=this._monitoringDocuments.indexOf(u);if(c!=-1){var Q=this.root&&(this.root.ownerDocument||this.root)||A,B=this._observationTargets.some(function(S){var O=S.element.ownerDocument;if(O==u)return!0;for(;O&&O!=Q;){var M=e(O);if(O=M&&M.ownerDocument,O==u)return!0}return!1});if(!B){var b=this._monitoringUnsubscribes[c];if(this._monitoringDocuments.splice(c,1),this._monitoringUnsubscribes.splice(c,1),b(),u!=Q){var x=e(u);x&&this._unmonitorIntersections(x.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var u=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var c=0;c<u.length;c++)u[c]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!r)){var u=this._rootIsInDom(),c=u?this._getRootRect():w();this._observationTargets.forEach(function(Q){var B=Q.element,b=v(B),x=this._rootContainsTarget(B),S=Q.entry,O=u&&x&&this._computeTargetAndRootIntersection(B,b,c),M=null;this._rootContainsTarget(B)?(!n||this.root)&&(M=c):M=w();var Y=Q.entry=new i({time:g(),target:B,boundingClientRect:b,rootBounds:M,intersectionRect:O});S?u&&x?this._hasCrossedThreshold(S,Y)&&this._queuedEntries.push(Y):S&&S.isIntersecting&&this._queuedEntries.push(Y):this._queuedEntries.push(Y)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(u,c,Q){if(window.getComputedStyle(u).display!="none"){for(var B=c,b=P(u),x=!1;!x&&b;){var S=null,O=b.nodeType==1?window.getComputedStyle(b):{};if(O.display=="none")return null;if(b==this.root||b.nodeType==9)if(x=!0,b==this.root||b==A)n&&!this.root?!r||r.width==0&&r.height==0?(b=null,S=null,B=null):S=r:S=Q;else{var M=P(b),Y=M&&v(M),ee=M&&this._computeTargetAndRootIntersection(M,Y,Q);Y&&ee?(b=M,S=h(Y,ee)):(b=null,B=null)}else{var z=b.ownerDocument;b!=z.body&&b!=z.documentElement&&O.overflow!="visible"&&(S=v(b))}if(S&&(B=d(S,B)),!B)break;b=b&&P(b)}return B}},a.prototype._getRootRect=function(){var u;if(this.root&&!m(this.root))u=v(this.root);else{var c=m(this.root)?this.root:A,Q=c.documentElement,B=c.body;u={top:0,left:0,right:Q.clientWidth||B.clientWidth,width:Q.clientWidth||B.clientWidth,bottom:Q.clientHeight||B.clientHeight,height:Q.clientHeight||B.clientHeight}}return this._expandRectByRootMargin(u)},a.prototype._expandRectByRootMargin=function(u){var c=this._rootMarginValues.map(function(B,b){return B.unit=="px"?B.value:B.value*(b%2?u.width:u.height)/100}),Q={top:u.top-c[0],right:u.right+c[1],bottom:u.bottom+c[2],left:u.left-c[3]};return Q.width=Q.right-Q.left,Q.height=Q.bottom-Q.top,Q},a.prototype._hasCrossedThreshold=function(u,c){var Q=u&&u.isIntersecting?u.intersectionRatio||0:-1,B=c.isIntersecting?c.intersectionRatio||0:-1;if(Q!==B)for(var b=0;b<this.thresholds.length;b++){var x=this.thresholds[b];if(x==Q||x==B||x<Q!=x<B)return!0}},a.prototype._rootIsInDom=function(){return!this.root||E(A,this.root)},a.prototype._rootContainsTarget=function(u){var c=this.root&&(this.root.ownerDocument||this.root)||A;return E(c,u)&&(!this.root||c==u.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var u=t.indexOf(this);u!=-1&&t.splice(u,1)};function g(){return window.performance&&performance.now&&performance.now()}function o(u,c){var Q=null;return function(){Q||(Q=setTimeout(function(){u(),Q=null},c))}}function s(u,c,Q,B){typeof u.addEventListener=="function"?u.addEventListener(c,Q,B||!1):typeof u.attachEvent=="function"&&u.attachEvent("on"+c,Q)}function l(u,c,Q,B){typeof u.removeEventListener=="function"?u.removeEventListener(c,Q,B||!1):typeof u.detachEvent=="function"&&u.detachEvent("on"+c,Q)}function d(u,c){var Q=Math.max(u.top,c.top),B=Math.min(u.bottom,c.bottom),b=Math.max(u.left,c.left),x=Math.min(u.right,c.right),S=x-b,O=B-Q;return S>=0&&O>=0&&{top:Q,bottom:B,left:b,right:x,width:S,height:O}||null}function v(u){var c;try{c=u.getBoundingClientRect()}catch{}return c?(c.width&&c.height||(c={top:c.top,right:c.right,bottom:c.bottom,left:c.left,width:c.right-c.left,height:c.bottom-c.top}),c):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function C(u){return!u||"x"in u?u:{top:u.top,y:u.top,bottom:u.bottom,left:u.left,x:u.left,right:u.right,width:u.width,height:u.height}}function h(u,c){var Q=c.top-u.top,B=c.left-u.left;return{top:Q,left:B,height:c.height,width:c.width,bottom:Q+c.height,right:B+c.width}}function E(u,c){for(var Q=c;Q;){if(Q==u)return!0;Q=P(Q)}return!1}function P(u){var c=u.parentNode;return u.nodeType==9&&u!=A?e(u):(c&&c.assignedSlot&&(c=c.assignedSlot.parentNode),c&&c.nodeType==11&&c.host?c.host:c)}function m(u){return u&&u.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=i})();function dv(e,A){var t=A||{},n=t.callback,r=Uu(t,["callback"]),i=TA(D.useState(),2),a=i[0],g=i[1],o=TA(D.useState(),2),s=o[0],l=o[1];return av(function(){var d=Array.isArray(e)?e:[e],v=d.map(function(C){return Dr(C)}).filter(Boolean);if(!!v.length){var w=new IntersectionObserver(function(C){var h,E;try{for(var P=Ku(C),m=P.next();!m.done;m=P.next()){var u=m.value;l(u.intersectionRatio),g(u.isIntersecting),n==null||n(u)}}catch(c){h={error:c}}finally{try{m&&!m.done&&(E=P.return)&&E.call(P)}finally{if(h)throw h.error}}},un(un({},r),{root:Dr(A==null?void 0:A.root)}));return v.forEach(function(C){return w.observe(C)}),function(){w.disconnect()}}},[A==null?void 0:A.rootMargin,A==null?void 0:A.threshold,n],e),[a,s]}var Cv=Qg?D.useLayoutEffect:D.useEffect,Ge=Cv,Pv=function(){var e=D.useRef(!1);return D.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e},fi=Pv;function Qv(e,A){var t;Rn&&(Ft(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var n=ni(e),r=(t=A==null?void 0:A.wait)!==null&&t!==void 0?t:1e3,i=D.useMemo(function(){return Av(function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];return n.current.apply(n,cg([],TA(a),!1))},r,A)},[]);return ri(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}const Pf=10;function Iv(e,A){return e>A&&e>Pf?"horizontal":A>e&&A>Pf?"vertical":""}function hv(){const e=D.useRef(0),A=D.useRef(0),t=D.useRef(0),n=D.useRef(0),r=D.useRef(0),i=D.useRef(0),a=D.useRef(""),g=()=>a.current==="vertical",o=()=>a.current==="horizontal",s=()=>{t.current=0,n.current=0,r.current=0,i.current=0,a.current=""};return{move:v=>{const w=v.touches[0];t.current=w.clientX<0?0:w.clientX-e.current,n.current=w.clientY-A.current,r.current=Math.abs(t.current),i.current=Math.abs(n.current),a.current||(a.current=Iv(r.current,i.current))},start:v=>{s(),e.current=v.touches[0].clientX,A.current=v.touches[0].clientY},reset:s,startX:e,startY:A,deltaX:t,deltaY:n,offsetX:r,offsetY:i,direction:a,isVertical:g,isHorizontal:o}}const Bv=Ot?window:void 0,mv=["scroll","auto","overlay"];function Ev(e){return e.nodeType===1}function pv(e,A=Bv){let t=e;for(;t&&t!==A&&Ev(t);){if(t===document.body)return A;const{overflowY:n}=window.getComputedStyle(t);if(mv.includes(n)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return A}let cn=!1;if(Ot)try{const e={};Object.defineProperty(e,"passive",{get(){cn=!0}}),window.addEventListener("test-passive",null,e)}catch{}let ZA=0;const Qf="adm-overflow-hidden";function Dv(e){let A=e==null?void 0:e.parentElement;for(;A;){if(A.clientHeight<A.scrollHeight)return A;A=A.parentElement}return null}function ai(e,A){const t=hv(),n=a=>{t.move(a);const g=t.deltaY.current>0?"10":"01",o=pv(a.target,e.current);if(!o)return;if(A==="strict"){const C=Dv(a.target);if(C===document.body||C===document.documentElement){a.preventDefault();return}}const{scrollHeight:s,offsetHeight:l,scrollTop:d}=o,{height:v}=o.getBoundingClientRect();let w="11";d===0?w=l>=s?"00":"01":s<=Math.round(v+d)&&(w="10"),w!=="11"&&t.isVertical()&&!(parseInt(w,2)&parseInt(g,2))&&a.cancelable&&cn&&a.preventDefault()},r=()=>{document.addEventListener("touchstart",t.start),document.addEventListener("touchmove",n,cn?{passive:!1}:!1),ZA||document.body.classList.add(Qf),ZA++},i=()=>{ZA&&(document.removeEventListener("touchstart",t.start),document.removeEventListener("touchmove",n),ZA--,ZA||document.body.classList.remove(Qf))};D.useEffect(()=>{if(A)return r(),()=>{i()}},[A])}let gi=Lt();const W=e=>Mt(e,gi);let si=Lt();W.write=e=>Mt(e,si);let On=Lt();W.onStart=e=>Mt(e,On);let oi=Lt();W.onFrame=e=>Mt(e,oi);let li=Lt();W.onFinish=e=>Mt(e,li);let MA=[];W.setTimeout=(e,A)=>{let t=W.now()+A,n=()=>{let i=MA.findIndex(a=>a.cancel==n);~i&&MA.splice(i,1),lA-=~i?1:0},r={time:t,handler:e,cancel:n};return MA.splice(hg(t),0,r),lA+=1,Bg(),r};let hg=e=>~(~MA.findIndex(A=>A.time>e)||~MA.length);W.cancel=e=>{On.delete(e),oi.delete(e),li.delete(e),gi.delete(e),si.delete(e)};W.sync=e=>{yr=!0,W.batchedUpdates(e),yr=!1};W.throttle=e=>{let A;function t(){try{e(...A)}finally{A=null}}function n(...r){A=r,W.onStart(t)}return n.handler=e,n.cancel=()=>{On.delete(t),A=null},n};let ui=typeof window!="undefined"?window.requestAnimationFrame:()=>{};W.use=e=>ui=e;W.now=typeof performance!="undefined"?()=>performance.now():Date.now;W.batchedUpdates=e=>e();W.catch=console.error;W.frameLoop="always";W.advance=()=>{W.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Eg()};let oA=-1,lA=0,yr=!1;function Mt(e,A){yr?(A.delete(e),e(0)):(A.add(e),Bg())}function Bg(){oA<0&&(oA=0,W.frameLoop!=="demand"&&ui(mg))}function yv(){oA=-1}function mg(){~oA&&(ui(mg),W.batchedUpdates(Eg))}function Eg(){let e=oA;oA=W.now();let A=hg(oA);if(A&&(pg(MA.splice(0,A),t=>t.handler()),lA-=A),!lA){yv();return}On.flush(),gi.flush(e?Math.min(64,oA-e):16.667),oi.flush(),si.flush(),li.flush()}function Lt(){let e=new Set,A=e;return{add(t){lA+=A==e&&!e.has(t)?1:0,e.add(t)},delete(t){return lA-=A==e&&e.has(t)?1:0,e.delete(t)},flush(t){A.size&&(e=new Set,lA-=A.size,pg(A,n=>n(t)&&e.add(n)),lA+=e.size,A=e)}}}function pg(e,A){e.forEach(t=>{try{A(t)}catch(n){W.catch(n)}})}function br(){}const bv=(e,A,t)=>Object.defineProperty(e,A,{value:t,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function tA(e,A){if(T.arr(e)){if(!T.arr(A)||e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==A[t])return!1;return!0}return e===A}const te=(e,A)=>e.forEach(A);function Ze(e,A,t){if(T.arr(e)){for(let n=0;n<e.length;n++)A.call(t,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&A.call(t,e[n],n)}const Re=e=>T.und(e)?[]:T.arr(e)?e:[e];function gt(e,A){if(e.size){const t=Array.from(e);e.clear(),te(t,A)}}const rt=(e,...A)=>gt(e,t=>t(...A)),ci=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let vi,Dg,uA=null,yg=!1,wi=br;const xv=e=>{e.to&&(Dg=e.to),e.now&&(W.now=e.now),e.colors!==void 0&&(uA=e.colors),e.skipAnimation!=null&&(yg=e.skipAnimation),e.createStringInterpolator&&(vi=e.createStringInterpolator),e.requestAnimationFrame&&W.use(e.requestAnimationFrame),e.batchedUpdates&&(W.batchedUpdates=e.batchedUpdates),e.willAdvance&&(wi=e.willAdvance),e.frameLoop&&(W.frameLoop=e.frameLoop)};var qe=Object.freeze({__proto__:null,get createStringInterpolator(){return vi},get to(){return Dg},get colors(){return uA},get skipAnimation(){return yg},get willAdvance(){return wi},assign:xv});const st=new Set;let Ne=[],or=[],vn=0;const Fn={get idle(){return!st.size&&!Ne.length},start(e){vn>e.priority?(st.add(e),W.onStart(Rv)):(bg(e),W(xr))},advance:xr,sort(e){if(vn)W.onFrame(()=>Fn.sort(e));else{const A=Ne.indexOf(e);~A&&(Ne.splice(A,1),xg(e))}},clear(){Ne=[],st.clear()}};function Rv(){st.forEach(bg),st.clear(),W(xr)}function bg(e){Ne.includes(e)||xg(e)}function xg(e){Ne.splice(Ov(Ne,A=>A.priority>e.priority),0,e)}function xr(e){const A=or;for(let t=0;t<Ne.length;t++){const n=Ne[t];vn=n.priority,n.idle||(wi(n),n.advance(e),n.idle||A.push(n))}return vn=0,or=Ne,or.length=0,Ne=A,Ne.length>0}function Ov(e,A){const t=e.findIndex(A);return t<0?e.length:t}const Fv=(e,A,t)=>Math.min(Math.max(t,e),A),Mv={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},He="[-+]?\\d*\\.?\\d+",wn=He+"%";function Mn(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Lv=new RegExp("rgb"+Mn(He,He,He)),kv=new RegExp("rgba"+Mn(He,He,He,He)),Nv=new RegExp("hsl"+Mn(He,wn,wn)),Sv=new RegExp("hsla"+Mn(He,wn,wn,He)),Tv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Gv=/^#([0-9a-fA-F]{6})$/,zv=/^#([0-9a-fA-F]{8})$/;function jv(e){let A;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(A=Gv.exec(e))?parseInt(A[1]+"ff",16)>>>0:uA&&uA[e]!==void 0?uA[e]:(A=Lv.exec(e))?(yA(A[1])<<24|yA(A[2])<<16|yA(A[3])<<8|255)>>>0:(A=kv.exec(e))?(yA(A[1])<<24|yA(A[2])<<16|yA(A[3])<<8|Bf(A[4]))>>>0:(A=Tv.exec(e))?parseInt(A[1]+A[1]+A[2]+A[2]+A[3]+A[3]+"ff",16)>>>0:(A=zv.exec(e))?parseInt(A[1],16)>>>0:(A=Hv.exec(e))?parseInt(A[1]+A[1]+A[2]+A[2]+A[3]+A[3]+A[4]+A[4],16)>>>0:(A=Nv.exec(e))?(If(hf(A[1]),Vt(A[2]),Vt(A[3]))|255)>>>0:(A=Sv.exec(e))?(If(hf(A[1]),Vt(A[2]),Vt(A[3]))|Bf(A[4]))>>>0:null}function lr(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(A-e)*6*t:t<1/2?A:t<2/3?e+(A-e)*(2/3-t)*6:e}function If(e,A,t){const n=t<.5?t*(1+A):t+A-t*A,r=2*t-n,i=lr(r,n,e+1/3),a=lr(r,n,e),g=lr(r,n,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(g*255)<<8}function yA(e){const A=parseInt(e,10);return A<0?0:A>255?255:A}function hf(e){return(parseFloat(e)%360+360)%360/360}function Bf(e){const A=parseFloat(e);return A<0?0:A>1?255:Math.round(A*255)}function Vt(e){const A=parseFloat(e);return A<0?0:A>100?1:A/100}function mf(e){let A=jv(e);if(A===null)return e;A=A||0;let t=(A&4278190080)>>>24,n=(A&16711680)>>>16,r=(A&65280)>>>8,i=(A&255)/255;return`rgba(${t}, ${n}, ${r}, ${i})`}const vt=(e,A,t)=>{if(T.fun(e))return e;if(T.arr(e))return vt({range:e,output:A,extrapolate:t});if(T.str(e.output[0]))return vi(e);const n=e,r=n.output,i=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",g=n.extrapolateRight||n.extrapolate||"extend",o=n.easing||(s=>s);return s=>{const l=Kv(s,i);return Uv(s,i[l],i[l+1],r[l],r[l+1],o,a,g,n.map)}};function Uv(e,A,t,n,r,i,a,g,o){let s=o?o(e):e;if(s<A){if(a==="identity")return s;a==="clamp"&&(s=A)}if(s>t){if(g==="identity")return s;g==="clamp"&&(s=t)}return n===r?n:A===t?e<=A?n:r:(A===-1/0?s=-s:t===1/0?s=s-A:s=(s-A)/(t-A),s=i(s),n===-1/0?s=-s:r===1/0?s=s+n:s=s*(r-n)+n,s)}function Kv(e,A){for(var t=1;t<A.length-1&&!(A[t]>=e);++t);return t-1}const Yv=(e,A="end")=>t=>{t=A==="end"?Math.min(t,.999):Math.max(t,.001);const n=t*e,r=A==="end"?Math.floor(n):Math.ceil(n);return Fv(0,1,r/e)},dn=1.70158,Wt=dn*1.525,Ef=dn+1,pf=2*Math.PI/3,Df=2*Math.PI/4.5,Zt=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Jv={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ef*e*e*e-dn*e*e,easeOutBack:e=>1+Ef*Math.pow(e-1,3)+dn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Wt+1)*2*e-Wt)/2:(Math.pow(2*e-2,2)*((Wt+1)*(e*2-2)+Wt)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*pf),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*pf)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Df))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Df)/2+1,easeInBounce:e=>1-Zt(1-e),easeOutBounce:Zt,easeInOutBounce:e=>e<.5?(1-Zt(1-2*e))/2:(1+Zt(2*e-1))/2,steps:Yv};function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Rr.apply(this,arguments)}const HA=Symbol.for("FluidValue.get"),BA=Symbol.for("FluidValue.observers"),Le=e=>Boolean(e&&e[HA]),ye=e=>e&&e[HA]?e[HA]():e,yf=e=>e[BA]||null;function Xv(e,A){e.eventObserved?e.eventObserved(A):e(A)}function wt(e,A){let t=e[BA];t&&t.forEach(n=>{Xv(n,A)})}class Rg{constructor(A){if(this[HA]=void 0,this[BA]=void 0,!A&&!(A=this.get))throw Error("Unknown getter");Vv(this,A)}}const Vv=(e,A)=>Og(e,HA,A);function YA(e,A){if(e[HA]){let t=e[BA];t||Og(e,BA,t=new Set),t.has(A)||(t.add(A),e.observerAdded&&e.observerAdded(t.size,A))}return A}function dt(e,A){let t=e[BA];if(t&&t.has(A)){const n=t.size-1;n?t.delete(A):e[BA]=null,e.observerRemoved&&e.observerRemoved(n,A)}}const Og=(e,A,t)=>Object.defineProperty(e,A,{value:t,writable:!0,configurable:!0}),an=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wv=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,bf=new RegExp(`(${an.source})(%|[a-z]+)`,"i"),Zv=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ln=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Fg=e=>{const[A,t]=qv(e);if(!A||ci())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(A);if(n)return n.trim();if(t&&t.startsWith("--")){const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r||e}else{if(t&&Ln.test(t))return Fg(t);if(t)return t}return e},qv=e=>{const A=Ln.exec(e);if(!A)return[,];const[,t,n]=A;return[t,n]};let ur;const _v=(e,A,t,n,r)=>`rgba(${Math.round(A)}, ${Math.round(t)}, ${Math.round(n)}, ${r})`,Mg=e=>{ur||(ur=uA?new RegExp(`(${Object.keys(uA).join("|")})(?!\\w)`,"g"):/^\b$/);const A=e.output.map(i=>ye(i).replace(Ln,Fg).replace(Wv,mf).replace(ur,mf)),t=A.map(i=>i.match(an).map(Number)),r=t[0].map((i,a)=>t.map(g=>{if(!(a in g))throw Error('The arity of each "output" value must be equal');return g[a]})).map(i=>vt(Rr({},e,{output:i})));return i=>{var a;const g=!bf.test(A[0])&&((a=A.find(s=>bf.test(s)))==null?void 0:a.replace(an,""));let o=0;return A[0].replace(an,()=>`${r[o++](i)}${g||""}`).replace(Zv,_v)}},di="react-spring: ",Lg=e=>{const A=e;let t=!1;if(typeof A!="function")throw new TypeError(`${di}once requires a function parameter`);return(...n)=>{t||(A(...n),t=!0)}},$v=Lg(console.warn);function ew(){$v(`${di}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Aw=Lg(console.warn);function tw(){Aw(`${di}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function kn(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!ci()&&Ln.test(e)||e in(uA||{}))}const Ci=ci()?D.useEffect:D.useLayoutEffect,nw=()=>{const e=D.useRef(!1);return Ci(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function kg(){const e=D.useState()[1],A=nw();return()=>{A.current&&e(Math.random())}}function rw(e,A){const[t]=D.useState(()=>({inputs:A,result:e()})),n=D.useRef(),r=n.current;let i=r;return i?Boolean(A&&i.inputs&&iw(A,i.inputs))||(i={inputs:A,result:e()}):i=t,D.useEffect(()=>{n.current=i,r==t&&(t.inputs=t.result=void 0)},[i]),i.result}function iw(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==A[t])return!1;return!0}const Ng=e=>D.useEffect(e,fw),fw=[];function xf(e){const A=D.useRef();return D.useEffect(()=>{A.current=e}),A.current}const Ct=Symbol.for("Animated:node"),aw=e=>!!e&&e[Ct]===e,Xe=e=>e&&e[Ct],Pi=(e,A)=>bv(e,Ct,A),Nn=e=>e&&e[Ct]&&e[Ct].getPayload();class Sg{constructor(){this.payload=void 0,Pi(this,this)}getPayload(){return this.payload||[]}}class JA extends Sg{constructor(A){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=A,T.num(this._value)&&(this.lastPosition=this._value)}static create(A){return new JA(A)}getPayload(){return[this]}getValue(){return this._value}setValue(A,t){return T.num(A)&&(this.lastPosition=A,t&&(A=Math.round(A/t)*t,this.done&&(this.lastPosition=A))),this._value===A?!1:(this._value=A,!0)}reset(){const{done:A}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,A&&(this.lastVelocity=null),this.v0=null)}}class GA extends JA{constructor(A){super(0),this._string=null,this._toString=void 0,this._toString=vt({output:[A,A]})}static create(A){return new GA(A)}getValue(){let A=this._string;return A==null?this._string=this._toString(this._value):A}setValue(A){if(T.str(A)){if(A==this._string)return!1;this._string=A,this._value=1}else if(super.setValue(A))this._string=null;else return!1;return!0}reset(A){A&&(this._toString=vt({output:[this.getValue(),A]})),this._value=0,super.reset()}}const Cn={dependencies:null};class Sn extends Sg{constructor(A){super(),this.source=A,this.setValue(A)}getValue(A){const t={};return Ze(this.source,(n,r)=>{aw(n)?t[r]=n.getValue(A):Le(n)?t[r]=ye(n):A||(t[r]=n)}),t}setValue(A){this.source=A,this.payload=this._makePayload(A)}reset(){this.payload&&te(this.payload,A=>A.reset())}_makePayload(A){if(A){const t=new Set;return Ze(A,this._addToPayload,t),Array.from(t)}}_addToPayload(A){Cn.dependencies&&Le(A)&&Cn.dependencies.add(A);const t=Nn(A);t&&te(t,n=>this.add(n))}}class Qi extends Sn{constructor(A){super(A)}static create(A){return new Qi(A)}getValue(){return this.source.map(A=>A.getValue())}setValue(A){const t=this.getPayload();return A.length==t.length?t.map((n,r)=>n.setValue(A[r])).some(Boolean):(super.setValue(A.map(gw)),!0)}}function gw(e){return(kn(e)?GA:JA).create(e)}function Or(e){const A=Xe(e);return A?A.constructor:T.arr(e)?Qi:kn(e)?GA:JA}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Pn.apply(this,arguments)}const Rf=(e,A)=>{const t=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return D.forwardRef((n,r)=>{const i=D.useRef(null),a=t&&D.useCallback(C=>{i.current=lw(r,C)},[r]),[g,o]=ow(n,A),s=kg(),l=()=>{const C=i.current;if(t&&!C)return;(C?A.applyAnimatedValues(C,g.getValue(!0)):!1)===!1&&s()},d=new sw(l,o),v=D.useRef();Ci(()=>(v.current=d,te(o,C=>YA(C,d)),()=>{v.current&&(te(v.current.deps,C=>dt(C,v.current)),W.cancel(v.current.update))})),D.useEffect(l,[]),Ng(()=>()=>{const C=v.current;te(C.deps,h=>dt(h,C))});const w=A.getComponentProps(g.getValue());return j.createElement(e,Pn({},w,{ref:a}))})};class sw{constructor(A,t){this.update=A,this.deps=t}eventObserved(A){A.type=="change"&&W.write(this.update)}}function ow(e,A){const t=new Set;return Cn.dependencies=t,e.style&&(e=Pn({},e,{style:A.createAnimatedStyle(e.style)})),e=new Sn(e),Cn.dependencies=null,[e,t]}function lw(e,A){return e&&(T.fun(e)?e(A):e.current=A),A}const Of=Symbol.for("AnimatedComponent"),uw=(e,{applyAnimatedValues:A=()=>!1,createAnimatedStyle:t=r=>new Sn(r),getComponentProps:n=r=>r}={})=>{const r={applyAnimatedValues:A,createAnimatedStyle:t,getComponentProps:n},i=a=>{const g=Ff(a)||"Anonymous";return T.str(a)?a=i[a]||(i[a]=Rf(a,r)):a=a[Of]||(a[Of]=Rf(a,r)),a.displayName=`Animated(${g})`,a};return Ze(e,(a,g)=>{T.arr(e)&&(g=Ff(a)),i[g]=i(a)}),{animated:i}},Ff=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Pe.apply(this,arguments)}function hA(e,...A){return T.fun(e)?e(...A):e}const ot=(e,A)=>e===!0||!!(A&&e&&(T.fun(e)?e(A):Re(e).includes(A))),Tg=(e,A)=>T.obj(e)?A&&e[A]:e,Hg=(e,A)=>e.default===!0?e[A]:e.default?e.default[A]:void 0,cw=e=>e,Ii=(e,A=cw)=>{let t=vw;e.default&&e.default!==!0&&(e=e.default,t=Object.keys(e));const n={};for(const r of t){const i=A(e[r],r);T.und(i)||(n[r]=i)}return n},vw=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ww={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function dw(e){const A={};let t=0;if(Ze(e,(n,r)=>{ww[r]||(A[r]=n,t++)}),t)return A}function Gg(e){const A=dw(e);if(A){const t={to:A};return Ze(e,(n,r)=>r in A||(t[r]=n)),t}return Pe({},e)}function Pt(e){return e=ye(e),T.arr(e)?e.map(Pt):kn(e)?qe.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Cw(e){for(const A in e)return!0;return!1}function Fr(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function Pw(e,A){var t;(t=e.ref)==null||t.delete(e),A==null||A.delete(e)}function Qw(e,A){if(A&&e.ref!==A){var t;(t=e.ref)==null||t.delete(e),A.add(e),e.ref=A}}const Iw={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Mr=Pe({},Iw.default,{mass:1,damping:1,easing:Jv.linear,clamp:!1});class hw{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Mr)}}function Bw(e,A,t){t&&(t=Pe({},t),Mf(t,A),A=Pe({},t,A)),Mf(e,A),Object.assign(e,A);for(const a in Mr)e[a]==null&&(e[a]=Mr[a]);let{mass:n,frequency:r,damping:i}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*n,e.friction=4*Math.PI*i*n/r),e}function Mf(e,A){if(!T.und(A.decay))e.duration=void 0;else{const t=!T.und(A.tension)||!T.und(A.friction);(t||!T.und(A.frequency)||!T.und(A.damping)||!T.und(A.mass))&&(e.duration=void 0,e.decay=void 0),t&&(e.frequency=void 0)}}const Lf=[];class mw{constructor(){this.changed=!1,this.values=Lf,this.toValues=null,this.fromValues=Lf,this.to=void 0,this.from=void 0,this.config=new hw,this.immediate=!1}}function zg(e,{key:A,props:t,defaultProps:n,state:r,actions:i}){return new Promise((a,g)=>{var o;let s,l,d=ot((o=t.cancel)!=null?o:n==null?void 0:n.cancel,A);if(d)C();else{T.und(t.pause)||(r.paused=ot(t.pause,A));let h=n==null?void 0:n.pause;h!==!0&&(h=r.paused||ot(h,A)),s=hA(t.delay||0,A),h?(r.resumeQueue.add(w),i.pause()):(i.resume(),w())}function v(){r.resumeQueue.add(w),r.timeouts.delete(l),l.cancel(),s=l.time-W.now()}function w(){s>0&&!qe.skipAnimation?(r.delayed=!0,l=W.setTimeout(C,s),r.pauseQueue.add(v),r.timeouts.add(l)):C()}function C(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(v),r.timeouts.delete(l),e<=(r.cancelId||0)&&(d=!0);try{i.start(Pe({},t,{callId:e,cancel:d}),a)}catch(h){g(h)}}})}const hi=(e,A)=>A.length==1?A[0]:A.some(t=>t.cancelled)?LA(e.get()):A.every(t=>t.noop)?jg(e.get()):Te(e.get(),A.every(t=>t.finished)),jg=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Te=(e,A,t=!1)=>({value:e,finished:A,cancelled:t}),LA=e=>({value:e,cancelled:!0,finished:!1});function Ug(e,A,t,n){const{callId:r,parentId:i,onRest:a}=A,{asyncTo:g,promise:o}=t;return!i&&e===g&&!A.reset?o:t.promise=(async()=>{t.asyncId=r,t.asyncTo=e;const s=Ii(A,(E,P)=>P==="onRest"?void 0:E);let l,d;const v=new Promise((E,P)=>(l=E,d=P)),w=E=>{const P=r<=(t.cancelId||0)&&LA(n)||r!==t.asyncId&&Te(n,!1);if(P)throw E.result=P,d(E),E},C=(E,P)=>{const m=new kf,u=new Nf;return(async()=>{if(qe.skipAnimation)throw Qt(t),u.result=Te(n,!1),d(u),u;w(m);const c=T.obj(E)?Pe({},E):Pe({},P,{to:E});c.parentId=r,Ze(s,(B,b)=>{T.und(c[b])&&(c[b]=B)});const Q=await n.start(c);return w(m),t.paused&&await new Promise(B=>{t.resumeQueue.add(B)}),Q})()};let h;if(qe.skipAnimation)return Qt(t),Te(n,!1);try{let E;T.arr(e)?E=(async P=>{for(const m of P)await C(m)})(e):E=Promise.resolve(e(C,n.stop.bind(n))),await Promise.all([E.then(l),v]),h=Te(n.get(),!0,!1)}catch(E){if(E instanceof kf)h=E.result;else if(E instanceof Nf)h=E.result;else throw E}finally{r==t.asyncId&&(t.asyncId=i,t.asyncTo=i?g:void 0,t.promise=i?o:void 0)}return T.fun(a)&&W.batchedUpdates(()=>{a(h,n,n.item)}),h})()}function Qt(e,A){gt(e.timeouts,t=>t.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,A&&(e.cancelId=A)}class kf extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Nf extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Lr=e=>e instanceof Bi;let Ew=1;class Bi extends Rg{constructor(...A){super(...A),this.id=Ew++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(A){this._priority!=A&&(this._priority=A,this._onPriorityChange(A))}get(){const A=Xe(this);return A&&A.getValue()}to(...A){return qe.to(this,A)}interpolate(...A){return ew(),qe.to(this,A)}toJSON(){return this.get()}observerAdded(A){A==1&&this._attach()}observerRemoved(A){A==0&&this._detach()}_attach(){}_detach(){}_onChange(A,t=!1){wt(this,{type:"change",parent:this,value:A,idle:t})}_onPriorityChange(A){this.idle||Fn.sort(this),wt(this,{type:"priority",parent:this,priority:A})}}const mA=Symbol.for("SpringPhase"),Kg=1,kr=2,Nr=4,cr=e=>(e[mA]&Kg)>0,iA=e=>(e[mA]&kr)>0,qA=e=>(e[mA]&Nr)>0,Sf=(e,A)=>A?e[mA]|=kr|Kg:e[mA]&=~kr,Tf=(e,A)=>A?e[mA]|=Nr:e[mA]&=~Nr;class pw extends Bi{constructor(A,t){if(super(),this.key=void 0,this.animation=new mw,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!T.und(A)||!T.und(t)){const n=T.obj(A)?Pe({},A):Pe({},t,{from:A});T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(iA(this)||this._state.asyncTo)||qA(this)}get goal(){return ye(this.animation.to)}get velocity(){const A=Xe(this);return A instanceof JA?A.lastVelocity||0:A.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return cr(this)}get isAnimating(){return iA(this)}get isPaused(){return qA(this)}get isDelayed(){return this._state.delayed}advance(A){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:a}=r;const g=Nn(r.to);!g&&Le(r.to)&&(a=Re(ye(r.to))),r.values.forEach((l,d)=>{if(l.done)return;const v=l.constructor==GA?1:g?g[d].lastPosition:a[d];let w=r.immediate,C=v;if(!w){if(C=l.lastPosition,i.tension<=0){l.done=!0;return}let h=l.elapsedTime+=A;const E=r.fromValues[d],P=l.v0!=null?l.v0:l.v0=T.arr(i.velocity)?i.velocity[d]:i.velocity;let m;const u=i.precision||(E==v?.005:Math.min(1,Math.abs(v-E)*.001));if(T.und(i.duration))if(i.decay){const c=i.decay===!0?.998:i.decay,Q=Math.exp(-(1-c)*h);C=E+P/(1-c)*(1-Q),w=Math.abs(l.lastPosition-C)<=u,m=P*Q}else{m=l.lastVelocity==null?P:l.lastVelocity;const c=i.restVelocity||u/10,Q=i.clamp?0:i.bounce,B=!T.und(Q),b=E==v?l.v0>0:E<v;let x,S=!1;const O=1,M=Math.ceil(A/O);for(let Y=0;Y<M&&(x=Math.abs(m)>c,!(!x&&(w=Math.abs(v-C)<=u,w)));++Y){B&&(S=C==v||C>v==b,S&&(m=-m*Q,C=v));const ee=-i.tension*1e-6*(C-v),z=-i.friction*.001*m,H=(ee+z)/i.mass;m=m+H*O,C=C+m*O}}else{let c=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,h=l.elapsedTime+=A)),c=(i.progress||0)+h/this._memoizedDuration,c=c>1?1:c<0?0:c,l.durationProgress=c),C=E+i.easing(c)*(v-E),m=(C-l.lastPosition)/A,w=c==1}l.lastVelocity=m,Number.isNaN(C)&&(console.warn("Got NaN while animating:",this),w=!0)}g&&!g[d].done&&(w=!1),w?l.done=!0:t=!1,l.setValue(C,i.round)&&(n=!0)});const o=Xe(this),s=o.getValue();if(t){const l=ye(r.to);(s!==l||n)&&!i.decay?(o.setValue(l),this._onChange(l)):n&&i.decay&&this._onChange(s),this._stop()}else n&&this._onChange(s)}set(A){return W.batchedUpdates(()=>{this._stop(),this._focus(A),this._set(A)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(iA(this)){const{to:A,config:t}=this.animation;W.batchedUpdates(()=>{this._onStart(),t.decay||this._set(A,!1),this._stop()})}return this}update(A){return(this.queue||(this.queue=[])).push(A),this}start(A,t){let n;return T.und(A)?(n=this.queue||[],this.queue=[]):n=[T.obj(A)?A:Pe({},t,{to:A})],Promise.all(n.map(r=>this._update(r))).then(r=>hi(this,r))}stop(A){const{to:t}=this.animation;return this._focus(this.get()),Qt(this._state,A&&this._lastCallId),W.batchedUpdates(()=>this._stop(t,A)),this}reset(){this._update({reset:!0})}eventObserved(A){A.type=="change"?this._start():A.type=="priority"&&(this.priority=A.priority+1)}_prepareNode(A){const t=this.key||"";let{to:n,from:r}=A;n=T.obj(n)?n[t]:n,(n==null||Fr(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return cr(this)||(A.reverse&&([n,r]=[r,n]),r=ye(r),T.und(r)?Xe(this)||this._set(n):this._set(r)),i}_update(A,t){let n=Pe({},A);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Ii(n,(o,s)=>/^on/.test(s)?Tg(o,r):o)),Gf(this,n,"onProps"),$A(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const g=this._state;return zg(++this._lastCallId,{key:r,props:n,defaultProps:i,state:g,actions:{pause:()=>{qA(this)||(Tf(this,!0),rt(g.pauseQueue),$A(this,"onPause",Te(this,_A(this,this.animation.to)),this))},resume:()=>{qA(this)&&(Tf(this,!1),iA(this)&&this._resume(),rt(g.resumeQueue),$A(this,"onResume",Te(this,_A(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(n.loop&&o.finished&&!(t&&o.noop)){const s=Yg(n);if(s)return this._update(s,!0)}return o})}_merge(A,t,n){if(t.cancel)return this.stop(!0),n(LA(this));const r=!T.und(A.to),i=!T.und(A.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(LA(this));const{key:a,defaultProps:g,animation:o}=this,{to:s,from:l}=o;let{to:d=s,from:v=l}=A;i&&!r&&(!t.default||T.und(d))&&(d=v),t.reverse&&([d,v]=[v,d]);const w=!tA(v,l);w&&(o.from=v),v=ye(v);const C=!tA(d,s);C&&this._focus(d);const h=Fr(t.to),{config:E}=o,{decay:P,velocity:m}=E;(r||i)&&(E.velocity=0),t.config&&!h&&Bw(E,hA(t.config,a),t.config!==g.config?hA(g.config,a):void 0);let u=Xe(this);if(!u||T.und(d))return n(Te(this,!0));const c=T.und(t.reset)?i&&!t.default:!T.und(v)&&ot(t.reset,a),Q=c?v:this.get(),B=Pt(d),b=T.num(B)||T.arr(B)||kn(B),x=!h&&(!b||ot(g.immediate||t.immediate,a));if(C){const Y=Or(d);if(Y!==u.constructor)if(x)u=this._set(B);else throw Error(`Cannot animate between ${u.constructor.name} and ${Y.name}, as the "to" prop suggests`)}const S=u.constructor;let O=Le(d),M=!1;if(!O){const Y=c||!cr(this)&&w;(C||Y)&&(M=tA(Pt(Q),B),O=!M),(!tA(o.immediate,x)&&!x||!tA(E.decay,P)||!tA(E.velocity,m))&&(O=!0)}if(M&&iA(this)&&(o.changed&&!c?O=!0:O||this._stop(s)),!h&&((O||Le(s))&&(o.values=u.getPayload(),o.toValues=Le(d)?null:S==GA?[1]:Re(B)),o.immediate!=x&&(o.immediate=x,!x&&!c&&this._set(s)),O)){const{onRest:Y}=o;te(yw,z=>Gf(this,t,z));const ee=Te(this,_A(this,s));rt(this._pendingCalls,ee),this._pendingCalls.add(n),o.changed&&W.batchedUpdates(()=>{o.changed=!c,Y==null||Y(ee,this),c?hA(g.onRest,ee):o.onStart==null||o.onStart(ee,this)})}c&&this._set(Q),h?n(Ug(t.to,t,this._state,this)):O?this._start():iA(this)&&!C?this._pendingCalls.add(n):n(jg(Q))}_focus(A){const t=this.animation;A!==t.to&&(yf(this)&&this._detach(),t.to=A,yf(this)&&this._attach())}_attach(){let A=0;const{to:t}=this.animation;Le(t)&&(YA(t,this),Lr(t)&&(A=t.priority+1)),this.priority=A}_detach(){const{to:A}=this.animation;Le(A)&&dt(A,this)}_set(A,t=!0){const n=ye(A);if(!T.und(n)){const r=Xe(this);if(!r||!tA(n,r.getValue())){const i=Or(n);!r||r.constructor!=i?Pi(this,i.create(n)):r.setValue(n),r&&W.batchedUpdates(()=>{this._onChange(n,t)})}}return Xe(this)}_onStart(){const A=this.animation;A.changed||(A.changed=!0,$A(this,"onStart",Te(this,_A(this,A.to)),this))}_onChange(A,t){t||(this._onStart(),hA(this.animation.onChange,A,this)),hA(this.defaultProps.onChange,A,this),super._onChange(A,t)}_start(){const A=this.animation;Xe(this).reset(ye(A.to)),A.immediate||(A.fromValues=A.values.map(t=>t.lastPosition)),iA(this)||(Sf(this,!0),qA(this)||this._resume())}_resume(){qe.skipAnimation?this.finish():Fn.start(this)}_stop(A,t){if(iA(this)){Sf(this,!1);const n=this.animation;te(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),wt(this,{type:"idle",parent:this});const r=t?LA(this.get()):Te(this.get(),_A(this,A!=null?A:n.to));rt(this._pendingCalls,r),n.changed&&(n.changed=!1,$A(this,"onRest",r,this))}}}function _A(e,A){const t=Pt(A),n=Pt(e.get());return tA(n,t)}function Yg(e,A=e.loop,t=e.to){let n=hA(A);if(n){const r=n!==!0&&Gg(n),i=(r||e).reverse,a=!r||r.reset;return It(Pe({},e,{loop:A,default:!1,pause:void 0,to:!i||Fr(t)?t:void 0,from:a?e.from:void 0,reset:a},r))}}function It(e){const{to:A,from:t}=e=Gg(e),n=new Set;return T.obj(A)&&Hf(A,n),T.obj(t)&&Hf(t,n),e.keys=n.size?Array.from(n):null,e}function Dw(e){const A=It(e);return T.und(A.default)&&(A.default=Ii(A)),A}function Hf(e,A){Ze(e,(t,n)=>t!=null&&A.add(n))}const yw=["onStart","onRest","onChange","onPause","onResume"];function Gf(e,A,t){e.animation[t]=A[t]!==Hg(A,t)?Tg(A[t],e.key):void 0}function $A(e,A,...t){var n,r,i,a;(n=(r=e.animation)[A])==null||n.call(r,...t),(i=(a=e.defaultProps)[A])==null||i.call(a,...t)}const bw=["onStart","onChange","onRest"];let xw=1;class Rw{constructor(A,t){this.id=xw++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),A&&this.start(Pe({default:!0},A))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(A=>A.idle&&!A.isDelayed&&!A.isPaused)}get item(){return this._item}set item(A){this._item=A}get(){const A={};return this.each((t,n)=>A[n]=t.get()),A}set(A){for(const t in A){const n=A[t];T.und(n)||this.springs[t].set(n)}}update(A){return A&&this.queue.push(It(A)),this}start(A){let{queue:t}=this;return A?t=Re(A).map(It):this.queue=[],this._flush?this._flush(this,t):(Zg(this,t),Sr(this,t))}stop(A,t){if(A!==!!A&&(t=A),t){const n=this.springs;te(Re(t),r=>n[r].stop(!!A))}else Qt(this._state,this._lastAsyncId),this.each(n=>n.stop(!!A));return this}pause(A){if(T.und(A))this.start({pause:!0});else{const t=this.springs;te(Re(A),n=>t[n].pause())}return this}resume(A){if(T.und(A))this.start({pause:!1});else{const t=this.springs;te(Re(A),n=>t[n].resume())}return this}each(A){Ze(this.springs,A)}_onFrame(){const{onStart:A,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gt(A,([o,s])=>{s.value=this.get(),o(s,this,this._item)}));const a=!r&&this._started,g=i||a&&n.size?this.get():null;i&&t.size&>(t,([o,s])=>{s.value=g,o(s,this,this._item)}),a&&(this._started=!1,gt(n,([o,s])=>{s.value=g,o(s,this,this._item)}))}eventObserved(A){if(A.type=="change")this._changed.add(A.parent),A.idle||this._active.add(A.parent);else if(A.type=="idle")this._active.delete(A.parent);else return;W.onFrame(this._onFrame)}}function Sr(e,A){return Promise.all(A.map(t=>Jg(e,t))).then(t=>hi(e,t))}async function Jg(e,A,t){const{keys:n,to:r,from:i,loop:a,onRest:g,onResolve:o}=A,s=T.obj(A.default)&&A.default;a&&(A.loop=!1),r===!1&&(A.to=null),i===!1&&(A.from=null);const l=T.arr(r)||T.fun(r)?r:void 0;l?(A.to=void 0,A.onRest=void 0,s&&(s.onRest=void 0)):te(bw,h=>{const E=A[h];if(T.fun(E)){const P=e._events[h];A[h]=({finished:m,cancelled:u})=>{const c=P.get(E);c?(m||(c.finished=!1),u&&(c.cancelled=!0)):P.set(E,{value:null,finished:m||!1,cancelled:u||!1})},s&&(s[h]=A[h])}});const d=e._state;A.pause===!d.paused?(d.paused=A.pause,rt(A.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(A.pause=!0);const v=(n||Object.keys(e.springs)).map(h=>e.springs[h].start(A)),w=A.cancel===!0||Hg(A,"cancel")===!0;(l||w&&d.asyncId)&&v.push(zg(++e._lastAsyncId,{props:A,state:d,actions:{pause:br,resume:br,start(h,E){w?(Qt(d,e._lastAsyncId),E(LA(e))):(h.onRest=g,E(Ug(l,h,d,e)))}}})),d.paused&&await new Promise(h=>{d.resumeQueue.add(h)});const C=hi(e,await Promise.all(v));if(a&&C.finished&&!(t&&C.noop)){const h=Yg(A,a,r);if(h)return Zg(e,[h]),Jg(e,h,!0)}return o&&W.batchedUpdates(()=>o(C,e,e.item)),C}function zf(e,A){const t=Pe({},e.springs);return A&&te(Re(A),n=>{T.und(n.keys)&&(n=It(n)),T.obj(n.to)||(n=Pe({},n,{to:void 0})),Wg(t,n,r=>Vg(r))}),Xg(e,t),t}function Xg(e,A){Ze(A,(t,n)=>{e.springs[n]||(e.springs[n]=t,YA(t,e))})}function Vg(e,A){const t=new pw;return t.key=e,A&&YA(t,A),t}function Wg(e,A,t){A.keys&&te(A.keys,n=>{(e[n]||(e[n]=t(n)))._prepareNode(A)})}function Zg(e,A){te(A,t=>{Wg(e.springs,t,n=>Vg(n,e))})}function Ow(e,A){if(e==null)return{};var t={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(A.indexOf(r)>=0)&&(t[r]=e[r]);return t}const Fw=["children"],Tn=e=>{let{children:A}=e,t=Ow(e,Fw);const n=D.useContext(Qn),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=rw(()=>({pause:r,immediate:i}),[r,i]);const{Provider:a}=Qn;return j.createElement(a,{value:t},A)},Qn=Mw(Tn,{});Tn.Provider=Qn.Provider;Tn.Consumer=Qn.Consumer;function Mw(e,A){return Object.assign(e,j.createContext(A)),e.Provider._context=e,e.Consumer._context=e,e}const Lw=()=>{const e=[],A=function(r){tw();const i=[];return te(e,(a,g)=>{if(T.und(r))i.push(a.start());else{const o=t(r,a,g);o&&i.push(a.start(o))}}),i};A.current=e,A.add=function(n){e.includes(n)||e.push(n)},A.delete=function(n){const r=e.indexOf(n);~r&&e.splice(r,1)},A.pause=function(){return te(e,n=>n.pause(...arguments)),this},A.resume=function(){return te(e,n=>n.resume(...arguments)),this},A.set=function(n){te(e,r=>r.set(n))},A.start=function(n){const r=[];return te(e,(i,a)=>{if(T.und(n))r.push(i.start());else{const g=this._getProps(n,i,a);g&&r.push(i.start(g))}}),r},A.stop=function(){return te(e,n=>n.stop(...arguments)),this},A.update=function(n){return te(e,(r,i)=>r.update(this._getProps(n,r,i))),this};const t=function(r,i,a){return T.fun(r)?r(a,i):r};return A._getProps=t,A};function kw(e,A,t){const n=T.fun(A)&&A;n&&!t&&(t=[]);const r=D.useMemo(()=>n||arguments.length==3?Lw():void 0,[]),i=D.useRef(0),a=kg(),g=D.useMemo(()=>({ctrls:[],queue:[],flush(P,m){const u=zf(P,m);return i.current>0&&!g.queue.length&&!Object.keys(u).some(Q=>!P.springs[Q])?Sr(P,m):new Promise(Q=>{Xg(P,u),g.queue.push(()=>{Q(Sr(P,m))}),a()})}}),[]),o=D.useRef([...g.ctrls]),s=[],l=xf(e)||0;D.useMemo(()=>{te(o.current.slice(e,l),P=>{Pw(P,r),P.stop(!0)}),o.current.length=e,d(l,e)},[e]),D.useMemo(()=>{d(0,Math.min(l,e))},t);function d(P,m){for(let u=P;u<m;u++){const c=o.current[u]||(o.current[u]=new Rw(null,g.flush)),Q=n?n(u,c):A[u];Q&&(s[u]=Dw(Q))}}const v=o.current.map((P,m)=>zf(P,s[m])),w=D.useContext(Tn),C=xf(w),h=w!==C&&Cw(w);Ci(()=>{i.current++,g.ctrls=o.current;const{queue:P}=g;P.length&&(g.queue=[],te(P,m=>m())),te(o.current,(m,u)=>{r==null||r.add(m),h&&m.start({default:w});const c=s[u];c&&(Qw(m,c.ref),m.ref?m.queue.push(c):m.start(c))})}),Ng(()=>()=>{te(g.ctrls,P=>P.stop(!0))});const E=v.map(P=>Pe({},P));return r?[E,r]:E}function cA(e,A){const t=T.fun(e),[[n],r]=kw(1,t?e:[e],t?A||[]:A);return t||arguments.length==2?[n,r]:n}let jf;(function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"})(jf||(jf={}));class Nw extends Bi{constructor(A,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=A,this.calc=vt(...t);const n=this._get(),r=Or(n);Pi(this,r.create(n))}advance(A){const t=this._get(),n=this.get();tA(t,n)||(Xe(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Uf(this._active)&&vr(this)}_get(){const A=T.arr(this.source)?this.source.map(ye):Re(ye(this.source));return this.calc(...A)}_start(){this.idle&&!Uf(this._active)&&(this.idle=!1,te(Nn(this),A=>{A.done=!1}),qe.skipAnimation?(W.batchedUpdates(()=>this.advance()),vr(this)):Fn.start(this))}_attach(){let A=1;te(Re(this.source),t=>{Le(t)&&YA(t,this),Lr(t)&&(t.idle||this._active.add(t),A=Math.max(A,t.priority+1))}),this.priority=A,this._start()}_detach(){te(Re(this.source),A=>{Le(A)&&dt(A,this)}),this._active.clear(),vr(this)}eventObserved(A){A.type=="change"?A.idle?this.advance():(this._active.add(A.parent),this._start()):A.type=="idle"?this._active.delete(A.parent):A.type=="priority"&&(this.priority=Re(this.source).reduce((t,n)=>Math.max(t,(Lr(n)?n.priority:0)+1),0))}}function Sw(e){return e.idle!==!1}function Uf(e){return!e.size||Array.from(e).every(Sw)}function vr(e){e.idle||(e.idle=!0,te(Nn(e),A=>{A.done=!0}),wt(e,{type:"idle",parent:e}))}qe.assign({createStringInterpolator:Mg,to:(e,A)=>new Nw(e,A)});function mi(e,A){if(e==null)return{};var t={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(A.indexOf(r)>=0)&&(t[r]=e[r]);return t}const Tw=["style","children","scrollTop","scrollLeft","viewBox"],qg=/^--/;function Hw(e,A){return A==null||typeof A=="boolean"||A===""?"":typeof A=="number"&&A!==0&&!qg.test(e)&&!(lt.hasOwnProperty(e)&<[e])?A+"px":(""+A).trim()}const Kf={};function Gw(e,A){if(!e.nodeType||!e.setAttribute)return!1;const t=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",n=A,{style:r,children:i,scrollTop:a,scrollLeft:g,viewBox:o}=n,s=mi(n,Tw),l=Object.values(s),d=Object.keys(s).map(v=>t||e.hasAttribute(v)?v:Kf[v]||(Kf[v]=v.replace(/([A-Z])/g,w=>"-"+w.toLowerCase())));i!==void 0&&(e.textContent=i);for(let v in r)if(r.hasOwnProperty(v)){const w=Hw(v,r[v]);qg.test(v)?e.style.setProperty(v,w):e.style[v]=w}d.forEach((v,w)=>{e.setAttribute(v,l[w])}),a!==void 0&&(e.scrollTop=a),g!==void 0&&(e.scrollLeft=g),o!==void 0&&e.setAttribute("viewBox",o)}let lt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const zw=(e,A)=>e+A.charAt(0).toUpperCase()+A.substring(1),jw=["Webkit","Ms","Moz","O"];lt=Object.keys(lt).reduce((e,A)=>(jw.forEach(t=>e[zw(t,A)]=e[A]),e),lt);const Uw=["x","y","z"],Kw=/^(matrix|translate|scale|rotate|skew)/,Yw=/^(translate)/,Jw=/^(rotate|skew)/,wr=(e,A)=>T.num(e)&&e!==0?e+A:e,gn=(e,A)=>T.arr(e)?e.every(t=>gn(t,A)):T.num(e)?e===A:parseFloat(e)===A;class Xw extends Sn{constructor(A){let{x:t,y:n,z:r}=A,i=mi(A,Uw);const a=[],g=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),g.push(o=>[`translate3d(${o.map(s=>wr(s,"px")).join(",")})`,gn(o,0)])),Ze(i,(o,s)=>{if(s==="transform")a.push([o||""]),g.push(l=>[l,l===""]);else if(Kw.test(s)){if(delete i[s],T.und(o))return;const l=Yw.test(s)?"px":Jw.test(s)?"deg":"";a.push(Re(o)),g.push(s==="rotate3d"?([d,v,w,C])=>[`rotate3d(${d},${v},${w},${wr(C,l)})`,gn(C,0)]:d=>[`${s}(${d.map(v=>wr(v,l)).join(",")})`,gn(d,s.startsWith("scale")?1:0)])}}),a.length&&(i.transform=new Vw(a,g)),super(i)}}class Vw extends Rg{constructor(A,t){super(),this._value=null,this.inputs=A,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let A="",t=!0;return te(this.inputs,(n,r)=>{const i=ye(n[0]),[a,g]=this.transforms[r](T.arr(i)?i:n.map(ye));A+=" "+a,t=t&&g}),t?"none":A}observerAdded(A){A==1&&te(this.inputs,t=>te(t,n=>Le(n)&&YA(n,this)))}observerRemoved(A){A==0&&te(this.inputs,t=>te(t,n=>Le(n)&&dt(n,this)))}eventObserved(A){A.type=="change"&&(this._value=null),wt(this,A)}}const Ww=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zw=["scrollTop","scrollLeft"];qe.assign({batchedUpdates:pn.unstable_batchedUpdates,createStringInterpolator:Mg,colors:Mv});const qw=uw(Ww,{applyAnimatedValues:Gw,createAnimatedStyle:e=>new Xw(e),getComponentProps:e=>mi(e,Zw)}),We=qw.animated;function _w(e){return(typeof e=="function"?e():e)||document.body}function Ei(e,A){if(Ot&&e){const t=_w(e);return pn.createPortal(A,t)}return A}function $w(e){const A=D.useRef(e);return e&&(A.current=!0),!!A.current}const Hn=e=>ed(e.active,e.forceRender,e.destroyOnClose)?e.children:null;function ed(e,A,t){const n=$w(e);return A||e?!0:n?!t:!1}const Ad={click:"onClick",touchstart:"onTouchStart"};function pi(e,A){const t=Object.assign({},A.props);for(const n of e){const r=Ad[n];t[r]=function(i){var a,g;i.stopPropagation(),(g=(a=A.props)[r])===null||g===void 0||g.call(a,i)}}return f.default.cloneElement(A,t)}const dr="adm-mask",td={default:.55,thin:.35,thick:.75},nd={black:"0, 0, 0",white:"255, 255, 255"},rd={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},id=e=>{const A=se(rd,e),{locale:t}=ze(),n=D.useRef(null);ai(n,A.visible&&A.disableBodyScroll);const r=D.useMemo(()=>{var l;const d=(l=td[A.opacity])!==null&&l!==void 0?l:A.opacity,v=nd[A.color];return v?`rgba(${v}, ${d})`:A.color},[A.color,A.opacity]),[i,a]=D.useState(A.visible),g=fi(),{opacity:o}=cA({opacity:A.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var l,d;g.current||(a(A.visible),A.visible?(l=A.afterShow)===null||l===void 0||l.call(A):(d=A.afterClose)===null||d===void 0||d.call(A))}}),s=pi(A.stopPropagation,ae(A,f.default.createElement(We.div,{className:dr,ref:n,"aria-hidden":!0,style:Object.assign(Object.assign({},A.style),{background:r,opacity:o,display:i?void 0:"none"}),onClick:l=>{var d;l.target===l.currentTarget&&((d=A.onMaskClick)===null||d===void 0||d.call(A,l))}},A.onMaskClick&&f.default.createElement("div",{className:`${dr}-aria-button`,role:"button","aria-label":t.Mask.name,onClick:A.onMaskClick}),f.default.createElement("div",{className:`${dr}-content`},A.children))));return f.default.createElement(Hn,{active:i,forceRender:A.forceRender,destroyOnClose:A.destroyOnClose},Ei(A.getContainer,s))};var _g=id;function fd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"AddOutline-add"},j.createElement("rect",{id:"AddOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function ad(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CalculatorOutline-CalculatorOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CalculatorOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"CalculatorOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M38,4 C41.3137085,4 44,6.6862915 44,10 L44,38 C44,41.3137085 41.3137085,44 38,44 L10,44 C6.6862915,44 4,41.3137085 4,38 L4,10 C4,6.6862915 6.6862915,4 10,4 L38,4 Z M38,7 L10,7 C8.40231912,7 7.09633912,8.24891996 7.00509269,9.82372721 L7,10 L7,38 C7,39.5976809 8.24891996,40.9036609 9.82372721,40.9949073 L10,41 L38,41 C39.5976809,41 40.9036609,39.75108 40.9949073,38.1762728 L41,38 L41,10 C41,8.40231912 39.75108,7.09633912 38.1762728,7.00509269 L38,7 Z M24,22.4 L24,24.6 C24,24.8209139 23.8209139,25 23.6,25 L6.4,25 C6.1790861,25 6,24.8209139 6,24.6 L6,22.4 C6,22.1790861 6.1790861,22 6.4,22 L23.6,22 C23.8209139,22 24,22.1790861 24,22.4 Z M19,31.4 L19,33.6 C19,33.8209139 18.8209139,34 18.6,34 L10.4,34 C10.1790861,34 10,33.8209139 10,33.6 L10,31.4 C10,31.1790861 10.1790861,31 10.4,31 L18.6,31 C18.8209139,31 19,31.1790861 19,31.4 Z M38,20.4 L38,22.6 C38,22.8209139 37.8209139,23 37.6,23 L29.4,23 C29.1790861,23 29,22.8209139 29,22.6 L29,20.4 C29,20.1790861 29.1790861,20 29.4,20 L37.6,20 C37.8209139,20 38,20.1790861 38,20.4 Z M38,25.4 L38,27.6 C38,27.8209139 37.8209139,28 37.6,28 L29.4,28 C29.1790861,28 29,27.8209139 29,27.6 L29,25.4 C29,25.1790861 29.1790861,25 29.4,25 L37.6,25 C37.8209139,25 38,25.1790861 38,25.4 Z M19,13.4 L19,15.6 C19,15.8209139 18.8209139,16 18.6,16 L10.4,16 C10.1790861,16 10,15.8209139 10,15.6 L10,13.4 C10,13.1790861 10.1790861,13 10.4,13 L18.6,13 C18.8209139,13 19,13.1790861 19,13.4 Z M25,6.4 L25,42.6 C25,42.8209139 24.8209139,43 24.6,43 L22.4,43 C22.1790861,43 22,42.8209139 22,42.6 L22,6.4 C22,6.1790861 22.1790861,6 22.4,6 L24.6,6 C24.8209139,6 25,6.1790861 25,6.4 Z M16,10.4 L16,18.6 C16,18.8209139 15.8209139,19 15.6,19 L13.4,19 C13.1790861,19 13,18.8209139 13,18.6 L13,10.4 C13,10.1790861 13.1790861,10 13.4,10 L15.6,10 C15.8209139,10 16,10.1790861 16,10.4 Z",id:"CalculatorOutline-\u5F62\u72B6",fill:"currentColor",fillRule:"nonzero"}))))}function gd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CheckOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"CheckOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function sd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CloseCircleFill-\u7F16\u7EC4"},j.createElement("rect",{id:"CloseCircleFill-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function od(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"CloseOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"CloseOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function ld(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"EditSOutline-EditSOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"EditSOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"EditSOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M39.1558113,6.84476948 L39.1547876,6.84478452 C41.6150708,9.30533949 41.6150708,13.2945216 39.1547875,15.7550568 L14.2175882,40.6933641 C14.0205351,40.8899288 13.7535085,41 13.475183,41 L7.10015653,41 C5.94027729,41 5.00000168,40.0596889 5.00000168,38.8997532 L5.00000168,32.525535 C4.9995034,32.2468348 5.1098075,31.9793647 5.30661943,31.7820434 L30.2469685,6.84477025 C32.707296,4.38507671 36.6954838,4.38507671 39.1558113,6.84476948 Z M41.5764707,38 C41.8588237,38 42,38.1333332 42,38.4000001 L42,40.5999999 C42,40.8666668 41.8588237,41 41.5764707,41 L24.4235293,41 C24.1411763,41 24,40.8666668 24,40.5999999 L24,38.4000001 C24,38.1333332 24.1411763,38 24.4235293,38 L41.5764707,38 Z M28.172,13.371 L8.2730898,33.272167 C8.19433904,33.3510089 8.15023081,33.4579141 8.15023081,33.5693515 L8.15023081,37.4317018 C8.15023081,37.663779 8.33819467,37.8517506 8.57026108,37.8517506 L12.4303379,37.8517506 C12.5419214,37.8517506 12.6488431,37.8069757 12.7275092,37.7278363 L32.628,17.827 L28.172,13.371 Z M41.5555549,31 C41.8518518,31 42,31.1333332 42,31.4000001 L42,33.5999999 C42,33.8666668 41.8518518,34 41.5555549,34 L32.4444451,34 C32.1481482,34 32,33.8666668 32,33.5999999 L32,31.4000001 C32,31.1333332 32.1481482,31 32.4444451,31 L41.5555549,31 Z M32.607562,8.94503104 L32.4721022,9.07104573 L30.371,11.172 L34.827,15.628 L36.9275554,13.5288315 C38.1074041,12.3492947 38.1631188,10.4544078 37.0546144,9.20757614 L36.9286053,9.07316031 L36.9286254,9.07104573 C35.7488554,7.89144977 33.8540626,7.83619529 32.607562,8.94503104 Z",id:"EditSOutline-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function ud(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"LeftOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"LeftOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function cd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"MinusOutline-MinusOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"MinusOutline-add"},j.createElement("rect",{id:"MinusOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",id:"MinusOutline-\u8DEF\u5F84",fill:"currentColor",fillRule:"nonzero"}))))}function vd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"MoreOutline-MoreOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"MoreOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"MoreOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M12,21 C13.6568542,21 15,22.3431458 15,24 C15,25.6568542 13.6568542,27 12,27 C10.3431458,27 9,25.6568542 9,24 C9,22.3431458 10.3431458,21 12,21 Z M24,21 C25.6568542,21 27,22.3431458 27,24 C27,25.6568542 25.6568542,27 24,27 C22.3431458,27 21,25.6568542 21,24 C21,22.3431458 22.3431458,21 24,21 Z M36,21 C37.6568542,21 39,22.3431458 39,24 C39,25.6568542 37.6568542,27 36,27 C34.3431458,27 33,25.6568542 33,24 C33,22.3431458 34.3431458,21 36,21 Z",id:"MoreOutline-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function Di(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"RightOutline-RightOutlined"},j.createElement("rect",{id:"RightOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function wd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"ScanningOutline-ScanningOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"ScanningOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"ScanningOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M6.6,32 C6.8209139,32 7,32.1790861 7,32.4 L7,38 C7,39.5976809 8.24891996,40.9036609 9.82372721,40.9949073 L10,41 L15.6,41 C15.8209139,41 16,41.1790861 16,41.4 L16,43.6 C16,43.8209139 15.8209139,44 15.6,44 L10,44 C6.6862915,44 4,41.3137085 4,38 L4,32.4 C4,32.1790861 4.1790861,32 4.4,32 L6.6,32 Z M43.6,32 C43.8209139,32 44,32.1790861 44,32.4 L44,38 C44,41.3137085 41.3137085,44 38,44 L32.4,44 C32.1790861,44 32,43.8209139 32,43.6 L32,41.4 C32,41.1790861 32.1790861,41 32.4,41 L38,41 C39.5976809,41 40.9036609,39.75108 40.9949073,38.1762728 L41,38 L41,32.4 C41,32.1790861 41.1790861,32 41.4,32 L43.6,32 Z M43.6,23 C43.8209139,23 44,23.1790861 44,23.4 L44,25.6 C44,25.8209139 43.8209139,26 43.6,26 L4.4,26 C4.1790861,26 4,25.8209139 4,25.6 L4,23.4 C4,23.1790861 4.1790861,23 4.4,23 L43.6,23 Z M38,4 C41.3137085,4 44,6.6862915 44,10 L44,15.6 C44,15.8209139 43.8209139,16 43.6,16 L41.4,16 C41.1790861,16 41,15.8209139 41,15.6 L41,10 C41,8.40231912 39.75108,7.09633912 38.1762728,7.00509269 L38,7 L32.4,7 C32.1790861,7 32,6.8209139 32,6.6 L32,4.4 C32,4.1790861 32.1790861,4 32.4,4 L38,4 Z M15.6,4 C15.8209139,4 16,4.1790861 16,4.4 L16,6.6 C16,6.8209139 15.8209139,7 15.6,7 L10,7 C8.40231912,7 7.09633912,8.24891996 7.00509269,9.82372721 L7,10 L7,15.6 C7,15.8209139 6.8209139,16 6.6,16 L4.4,16 C4.1790861,16 4,15.8209139 4,15.6 L4,10 C4,6.6862915 6.6862915,4 10,4 L15.6,4 Z",id:"ScanningOutline-\u5F62\u72B6\u7ED3\u5408",fill:"currentColor",fillRule:"nonzero"}))))}function dd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"SearchOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"SearchOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-\u5F62\u72B6",fill:"currentColor",fillRule:"nonzero"}))))}function Cd(e){return j.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e,{style:Object.assign({verticalAlign:"-0.125em"},e.style),className:["antd-mobile-icon",e.className].filter(Boolean).join(" ")}),j.createElement("g",{id:"TextOutline-TextOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"TextOutline-\u7F16\u7EC4"},j.createElement("rect",{id:"TextOutline-\u77E9\u5F62",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),j.createElement("path",{d:"M31.3431458,3 C32.4040117,3 33.4214274,3.42142736 34.1715729,4.17157288 L41.8284271,11.8284271 C42.5785726,12.5785726 43,13.5959883 43,14.6568542 L43,39 C43,42.3137085 40.3137085,45 37,45 L11,45 C7.6862915,45 5,42.3137085 5,39 L5,9 C5,5.6862915 7.6862915,3 11,3 L31.3431458,3 Z M30,6 L11,6 C9.40231912,6 8.09633912,7.24891996 8.00509269,8.82372721 L8,9 L8,39 C8,40.5976809 9.24891996,41.9036609 10.8237272,41.9949073 L11,42 L37,42 C38.5976809,42 39.9036609,40.75108 39.9949073,39.1762728 L40,39 L40,17 L33,17 C31.3431458,17 30,15.6568542 30,14 L30,6 Z M37,25.4 L37,27.6 C37,27.8209139 36.8209139,28 36.6,28 L11.4,28 C11.1790861,28 11,27.8209139 11,27.6 L11,25.4 C11,25.1790861 11.1790861,25 11.4,25 L36.6,25 C36.8209139,25 37,25.1790861 37,25.4 Z M24,19.4 L24,21.6 C24,21.8209139 23.8209139,22 23.6,22 L11.4,22 C11.1790861,22 11,21.8209139 11,21.6 L11,19.4 C11,19.1790861 11.1790861,19 11.4,19 L23.6,19 C23.8209139,19 24,19.1790861 24,19.4 Z M33,8.20775065 L33,13.5969918 C33,13.8179057 33.1790861,13.9969918 33.4,13.9969918 C33.400999,13.9969918 33.4019979,13.9969881 33.4029969,13.9969806 L38.7516527,13.9569061 C38.9725604,13.955251 39.1502997,13.7748282 39.1486446,13.5539205 C39.1478576,13.4488816 39.1057843,13.3483675 39.031512,13.2740882 L33.6828562,7.92492145 C33.526654,7.76870427 33.273388,7.76869218 33.1171708,7.92489443 C33.042148,7.99991008 33,8.10165744 33,8.20775065 Z",id:"TextOutline-\u5F62\u72B6",fill:"currentColor",fillRule:"nonzero"}))))}const $g={closeOnMaskClick:!1,closeIcon:f.default.createElement(od,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function es(e){const[A,t]=D.useState(e);return Ge(()=>{t(e)},[e]),A}function Pd(e,A,t){return Math.max(A,Math.min(e,t))}const Qe={toVector(e,A){return e===void 0&&(e=A),Array.isArray(e)?e:[e,e]},add(e,A){return[e[0]+A[0],e[1]+A[1]]},sub(e,A){return[e[0]-A[0],e[1]-A[1]]},addTo(e,A){e[0]+=A[0],e[1]+=A[1]},subTo(e,A){e[0]-=A[0],e[1]-=A[1]}};function Yf(e,A,t){return A===0||Math.abs(A)===1/0?Math.pow(e,t*5):e*A*t/(A+t*e)}function Jf(e,A,t,n=.15){return n===0?Pd(e,A,t):e<A?-Yf(A-e,t-A,n)+A:e>t?+Yf(e-t,t-A,n)+t:e}function Qd(e,[A,t],[n,r]){const[[i,a],[g,o]]=e;return[Jf(A,i,a,n),Jf(t,g,o,r)]}function Id(e,A){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,A||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(e)}function hd(e){var A=Id(e,"string");return typeof A=="symbol"?A:String(A)}function Ee(e,A,t){return A=hd(A),A in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}function Xf(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);A&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function ge(e){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?Xf(Object(t),!0).forEach(function(n){Ee(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xf(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}const As={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 Vf(e){return e?e[0].toUpperCase()+e.slice(1):""}const Bd=["enter","leave"];function md(e=!1,A){return e&&!Bd.includes(A)}function Ed(e,A="",t=!1){const n=As[e],r=n&&n[A]||A;return"on"+Vf(e)+Vf(r)+(md(t,r)?"Capture":"")}const pd=["gotpointercapture","lostpointercapture"];function Dd(e){let A=e.substring(2).toLowerCase();const t=!!~A.indexOf("passive");t&&(A=A.replace("passive",""));const n=pd.includes(A)?"capturecapture":"capture",r=!!~A.indexOf(n);return r&&(A=A.replace("capture","")),{device:A,capture:r,passive:t}}function yd(e,A=""){const t=As[e],n=t&&t[A]||A;return e+n}function Gn(e){return"touches"in e}function ts(e){return Gn(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function bd(e){return Array.from(e.touches).filter(A=>{var t,n;return A.target===e.currentTarget||((t=e.currentTarget)===null||t===void 0||(n=t.contains)===null||n===void 0?void 0:n.call(t,A.target))})}function xd(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function ns(e){return Gn(e)?xd(e)[0]:e}function Rd(e){return bd(e).map(A=>A.identifier)}function Cr(e){const A=ns(e);return Gn(e)?A.identifier:A.pointerId}function Wf(e){const A=ns(e);return[A.clientX,A.clientY]}const Zf=40,qf=800;function Od(e){let{deltaX:A,deltaY:t,deltaMode:n}=e;return n===1?(A*=Zf,t*=Zf):n===2&&(A*=qf,t*=qf),[A,t]}function Fd(e){const A={};if("buttons"in e&&(A.buttons=e.buttons),"shiftKey"in e){const{shiftKey:t,altKey:n,metaKey:r,ctrlKey:i}=e;Object.assign(A,{shiftKey:t,altKey:n,metaKey:r,ctrlKey:i})}return A}function In(e,...A){return typeof e=="function"?e(...A):e}function Md(){}function Ld(...e){return e.length===0?Md:e.length===1?e[0]:function(){let A;for(const t of e)A=t.apply(this,arguments)||A;return A}}function _f(e,A){return Object.assign({},A,e||{})}const kd=32;class Nd{constructor(A,t,n){this.ctrl=A,this.args=t,this.key=n,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(A){this.ctrl.state[this.key]=A}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:A,shared:t,ingKey:n,args:r}=this;t[n]=A._active=A.active=A._blocked=A._force=!1,A._step=[!1,!1],A.intentional=!1,A._movement=[0,0],A._distance=[0,0],A._direction=[0,0],A._delta=[0,0],A._bounds=[[-1/0,1/0],[-1/0,1/0]],A.args=r,A.axis=void 0,A.memo=void 0,A.elapsedTime=A.timeDelta=0,A.direction=[0,0],A.distance=[0,0],A.overflow=[0,0],A._movementBound=[!1,!1],A.velocity=[0,0],A.movement=[0,0],A.delta=[0,0],A.timeStamp=0}start(A){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=A.target,t.currentTarget=A.currentTarget,t.lastOffset=n.from?In(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=A.timeStamp)}computeValues(A){const t=this.state;t._values=A,t.values=this.config.transform(A)}computeInitial(){const A=this.state;A._initial=A._values,A.initial=A.values}compute(A){const{state:t,config:n,shared:r}=this;t.args=this.args;let i=0;if(A&&(t.event=A,n.preventDefault&&A.cancelable&&t.event.preventDefault(),t.type=A.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,Fd(A)),r.down=r.pressed=r.buttons%2===1||r.touches>0,i=A.timeStamp-t.timeStamp,t.timeStamp=A.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const B=t._delta.map(Math.abs);Qe.addTo(t._distance,B)}this.axisIntent&&this.axisIntent(A);const[a,g]=t._movement,[o,s]=n.threshold,{_step:l,values:d}=t;if(n.hasCustomTransform?(l[0]===!1&&(l[0]=Math.abs(a)>=o&&d[0]),l[1]===!1&&(l[1]=Math.abs(g)>=s&&d[1])):(l[0]===!1&&(l[0]=Math.abs(a)>=o&&Math.sign(a)*o),l[1]===!1&&(l[1]=Math.abs(g)>=s&&Math.sign(g)*s)),t.intentional=l[0]!==!1||l[1]!==!1,!t.intentional)return;const v=[0,0];if(n.hasCustomTransform){const[B,b]=d;v[0]=l[0]!==!1?B-l[0]:0,v[1]=l[1]!==!1?b-l[1]:0}else v[0]=l[0]!==!1?a-l[0]:0,v[1]=l[1]!==!1?g-l[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(v);const w=t.offset,C=t._active&&!t._blocked||t.active;C&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,A&&(t.first&&("bounds"in n&&(t._bounds=In(n.bounds,t)),this.setup&&this.setup()),t.movement=v,this.computeOffset()));const[h,E]=t.offset,[[P,m],[u,c]]=t._bounds;t.overflow=[h<P?-1:h>m?1:0,E<u?-1:E>c?1:0],t._movementBound[0]=t.overflow[0]?t._movementBound[0]===!1?t._movement[0]:t._movementBound[0]:!1,t._movementBound[1]=t.overflow[1]?t._movementBound[1]===!1?t._movement[1]:t._movementBound[1]:!1;const Q=t._active?n.rubberband||[0,0]:[0,0];if(t.offset=Qd(t._bounds,t.offset,Q),t.delta=Qe.sub(t.offset,w),this.computeMovement(),C&&(!t.last||i>kd)){t.delta=Qe.sub(t.offset,w);const B=t.delta.map(Math.abs);Qe.addTo(t.distance,B),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&i>0&&(t.velocity=[B[0]/i,B[1]/i],t.timeDelta=i)}}emit(){const A=this.state,t=this.shared,n=this.config;if(A._active||this.clean(),(A._blocked||!A.intentional)&&!A._force&&!n.triggerAllEvents)return;const r=this.handler(ge(ge(ge({},t),A),{},{[this.aliasKey]:A.values}));r!==void 0&&(A.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Sd([e,A],t){const n=Math.abs(e),r=Math.abs(A);if(n>r&&n>t)return"x";if(r>n&&r>t)return"y"}class rs extends Nd{constructor(...A){super(...A),Ee(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=Qe.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Qe.sub(this.state.offset,this.state.lastOffset)}axisIntent(A){const t=this.state,n=this.config;if(!t.axis&&A){const r=typeof n.axisThreshold=="object"?n.axisThreshold[ts(A)]:n.axisThreshold;t.axis=Sd(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(A){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":A[1]=0;break;case"y":A[0]=0;break}}}const Td=e=>e,$f=.15,is={enabled(e=!0){return e},eventOptions(e,A,t){return ge(ge({},t.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[$f,$f];case!1:return[0,0];default:return Qe.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Qe.toVector(e)},transform(e,A,t){const n=e||t.shared.transform;return this.hasCustomTransform=!!n,n||Td},threshold(e){return Qe.toVector(e,0)}},Hd=0,XA=ge(ge({},is),{},{axis(e,A,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(e=Hd){return e},bounds(e={}){if(typeof e=="function")return i=>XA.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:A=-1/0,right:t=1/0,top:n=-1/0,bottom:r=1/0}=e;return[[A,t],[n,r]]}}),ea={ArrowRight:(e,A=1)=>[e*A,0],ArrowLeft:(e,A=1)=>[-1*e*A,0],ArrowUp:(e,A=1)=>[0,-1*e*A],ArrowDown:(e,A=1)=>[0,e*A]};class Gd extends rs{constructor(...A){super(...A),Ee(this,"ingKey","dragging")}reset(){super.reset();const A=this.state;A._pointerId=void 0,A._pointerActive=!1,A._keyboardActive=!1,A._preventScroll=!1,A._delayed=!1,A.swipe=[0,0],A.tap=!1,A.canceled=!1,A.cancel=this.cancel.bind(this)}setup(){const A=this.state;if(A._bounds instanceof HTMLElement){const t=A._bounds.getBoundingClientRect(),n=A.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+A.offset[0],right:t.right-n.right+A.offset[0],top:t.top-n.top+A.offset[1],bottom:t.bottom-n.bottom+A.offset[1]};A._bounds=XA.bounds(r)}}cancel(){const A=this.state;A.canceled||(A.canceled=!0,A._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(A){const t=this.config,n=this.state;if(A.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(A.buttons):t.pointerButtons!==-1&&t.pointerButtons!==A.buttons))return;const r=this.ctrl.setEventIds(A);t.pointerCapture&&A.target.setPointerCapture(A.pointerId),!(r&&r.size>1&&n._pointerActive)&&(this.start(A),this.setupPointer(A),n._pointerId=Cr(A),n._pointerActive=!0,this.computeValues(Wf(A)),this.computeInitial(),t.preventScrollAxis&&ts(A)!=="mouse"?(n._active=!1,this.setupScrollPrevention(A)):t.delay>0?(this.setupDelayTrigger(A),t.triggerAllEvents&&(this.compute(A),this.emit())):this.startPointerDrag(A))}startPointerDrag(A){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(A),this.emit()}pointerMove(A){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=Cr(A);if(t._pointerId!==void 0&&r!==t._pointerId)return;const i=Wf(A);if(document.pointerLockElement===A.target?t._delta=[A.movementX,A.movementY]:(t._delta=Qe.sub(i,t._values),this.computeValues(i)),Qe.addTo(t._movement,t._delta),this.compute(A),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(A);return}if(n.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(A);return}else return;this.emit()}pointerUp(A){this.ctrl.setEventIds(A);try{this.config.pointerCapture&&A.target.hasPointerCapture(A.pointerId)&&A.target.releasePointerCapture(A.pointerId)}catch{}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Cr(A);if(t._pointerId!==void 0&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(A);const[i,a]=t._distance;if(t.tap=i<=n.tapsThreshold&&a<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[g,o]=t._delta,[s,l]=t._movement,[d,v]=n.swipe.velocity,[w,C]=n.swipe.distance,h=n.swipe.duration;if(t.elapsedTime<h){const E=Math.abs(g/t.timeDelta),P=Math.abs(o/t.timeDelta);E>d&&Math.abs(s)>w&&(t.swipe[0]=Math.sign(g)),P>v&&Math.abs(l)>C&&(t.swipe[1]=Math.sign(o))}}this.emit()}pointerClick(A){!this.state.tap&&A.detail>0&&(A.preventDefault(),A.stopPropagation())}setupPointer(A){const t=this.config,n=t.device;t.pointerLock&&A.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(A){this.state._preventScroll&&A.cancelable&&A.preventDefault()}setupScrollPrevention(A){this.state._preventScroll=!1,zd(A);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,A)}setupDelayTrigger(A){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(A)},this.config.delay)}keyDown(A){const t=ea[A.key];if(t){const n=this.state,r=A.shiftKey?10:A.altKey?.1:1;this.start(A),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,Qe.addTo(n._movement,n._delta),this.compute(A),this.emit()}}keyUp(A){A.key in ea&&(this.state._keyboardActive=!1,this.setActive(),this.compute(A),this.emit())}bind(A){const t=this.config.device;A(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(A(t,"change",this.pointerMove.bind(this)),A(t,"end",this.pointerUp.bind(this)),A(t,"cancel",this.pointerUp.bind(this)),A("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(A("key","down",this.keyDown.bind(this)),A("key","up",this.keyUp.bind(this))),this.config.filterTaps&&A("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function zd(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const kt=typeof window!="undefined"&&window.document&&window.document.createElement;function fs(){return kt&&"ontouchstart"in window}function jd(){return fs()||kt&&window.navigator.maxTouchPoints>1}function Ud(){return kt&&"onpointerdown"in window}function Kd(){return kt&&"exitPointerLock"in window.document}function Yd(){try{return"constructor"in GestureEvent}catch{return!1}}const ke={isBrowser:kt,gesture:Yd(),touch:fs(),touchscreen:jd(),pointer:Ud(),pointerLock:Kd()},Jd=250,Xd=180,Vd=.5,Wd=50,Zd=250,qd=10,Aa={mouse:0,touch:0,pen:8},_d=ge(ge({},XA),{},{device(e,A,{pointer:{touch:t=!1,lock:n=!1,mouse:r=!1}={}}){return this.pointerLock=n&&ke.pointerLock,ke.touch&&t?"touch":this.pointerLock?"mouse":ke.pointer&&!r?"pointer":ke.touch?"touch":"mouse"},preventScrollAxis(e,A,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&e?Jd:void 0,!(!ke.touchscreen||t===!1))return e||(t!==void 0?"y":void 0)},pointerCapture(e,A,{pointer:{capture:t=!0,buttons:n=1,keys:r=!0}={}}){return this.pointerButtons=n,this.keys=r,!this.pointerLock&&this.device==="pointer"&&t},threshold(e,A,{filterTaps:t=!1,tapsThreshold:n=3,axis:r=void 0}){const i=Qe.toVector(e,t?n:r?1:0);return this.filterTaps=t,this.tapsThreshold=n,i},swipe({velocity:e=Vd,distance:A=Wd,duration:t=Zd}={}){return{velocity:this.transform(Qe.toVector(e)),distance:this.transform(Qe.toVector(A)),duration:t}},delay(e=0){switch(e){case!0:return Xd;case!1:return 0;default:return e}},axisThreshold(e){return e?ge(ge({},Aa),e):Aa},keyboardDisplacement(e=qd){return e}});function $d(e){const[A,t]=e.overflow,[n,r]=e._delta,[i,a]=e._direction;(A<0&&n>0&&i<0||A>0&&n<0&&i>0)&&(e._movement[0]=e._movementBound[0]),(t<0&&r>0&&a<0||t>0&&r<0&&a>0)&&(e._movement[1]=e._movementBound[1])}ge(ge({},is),{},{device(e,A,{shared:t,pointer:{touch:n=!1}={}}){if(t.target&&!ke.touch&&ke.gesture)return"gesture";if(ke.touch&&n)return"touch";if(ke.touchscreen){if(ke.pointer)return"pointer";if(ke.touch)return"touch"}},bounds(e,A,{scaleBounds:t={},angleBounds:n={}}){const r=a=>{const g=_f(In(t,a),{min:-1/0,max:1/0});return[g.min,g.max]},i=a=>{const g=_f(In(n,a),{min:-1/0,max:1/0});return[g.min,g.max]};return typeof t!="function"&&typeof n!="function"?[r(),i()]:a=>[r(a),i(a)]},threshold(e,A,t){return this.lockDirection=t.axis==="lock",Qe.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});ge(ge({},XA),{},{mouseOnly:(e=!0)=>e});class eC extends rs{constructor(...A){super(...A),Ee(this,"ingKey","wheeling")}wheel(A){this.state._active||this.start(A),this.wheelChange(A),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(A){const t=this.state;t._delta=Od(A),Qe.addTo(t._movement,t._delta),$d(t),this.compute(A),this.emit()}wheelEnd(){!this.state._active||(this.state._active=!1,this.compute(),this.emit())}bind(A){A("wheel","",this.wheel.bind(this))}}const AC=XA;ge(ge({},XA),{},{mouseOnly:(e=!0)=>e});const as=new Map,Tr=new Map;function gs(e){as.set(e.key,e.engine),Tr.set(e.key,e.resolver)}const tC={key:"drag",engine:Gd,resolver:_d},nC={key:"wheel",engine:eC,resolver:AC};function rC(e,A){if(e==null)return{};var t={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(A.indexOf(r)>=0)&&(t[r]=e[r]);return t}function iC(e,A){if(e==null)return{};var t=rC(e,A),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(A.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(t[n]=e[n]))}return t}const fC={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=ke.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:A=!1}={}){return{passive:e,capture:A}},transform(e){return e}},aC=["target","eventOptions","window","enabled","transform"];function sn(e={},A){const t={};for(const[n,r]of Object.entries(A))switch(typeof r){case"function":t[n]=r.call(t,e[n],n,e);break;case"object":t[n]=sn(e[n],r);break;case"boolean":r&&(t[n]=e[n]);break}return t}function gC(e,A,t={}){const n=e,{target:r,eventOptions:i,window:a,enabled:g,transform:o}=n,s=iC(n,aC);if(t.shared=sn({target:r,eventOptions:i,window:a,enabled:g,transform:o},fC),A){const l=Tr.get(A);t[A]=sn(ge({shared:t.shared},s),l)}else for(const l in s){const d=Tr.get(l);d&&(t[l]=sn(ge({shared:t.shared},s[l]),d))}return t}class ss{constructor(A,t){Ee(this,"_listeners",new Set),this._ctrl=A,this._gestureKey=t}add(A,t,n,r,i){const a=this._listeners,g=yd(t,n),o=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},s=ge(ge({},o),i);A.addEventListener(g,r,s);const l=()=>{A.removeEventListener(g,r,s),a.delete(l)};return a.add(l),l}clean(){this._listeners.forEach(A=>A()),this._listeners.clear()}}class sC{constructor(){Ee(this,"_timeouts",new Map)}add(A,t,n=140,...r){this.remove(A),this._timeouts.set(A,window.setTimeout(t,n,...r))}remove(A){const t=this._timeouts.get(A);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(A=>void window.clearTimeout(A)),this._timeouts.clear()}}class oC{constructor(A){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new ss(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),lC(this,A)}setEventIds(A){if(Gn(A))return this.touchIds=new Set(Rd(A)),this.touchIds;if("pointerId"in A)return A.type==="pointerup"||A.type==="pointercancel"?this.pointerIds.delete(A.pointerId):A.type==="pointerdown"&&this.pointerIds.add(A.pointerId),this.pointerIds}applyHandlers(A,t){this.handlers=A,this.nativeHandlers=t}applyConfig(A,t){this.config=gC(A,t,this.config)}clean(){this._targetEventStore.clean();for(const A of this.gestures)this.gestureEventStores[A].clean(),this.gestureTimeoutStores[A].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...A){const t=this.config.shared,n={};let r;if(!(t.target&&(r=t.target(),!r))){if(t.enabled){for(const a of this.gestures){const g=this.config[a],o=ta(n,g.eventOptions,!!r);if(g.enabled){const s=as.get(a);new s(this,A,a).bind(o)}}const i=ta(n,t.eventOptions,!!r);for(const a in this.nativeHandlers)i(a,"",g=>this.nativeHandlers[a](ge(ge({},this.state.shared),{},{event:g,args:A})),void 0,!0)}for(const i in n)n[i]=Ld(...n[i]);if(!r)return n;for(const i in n){const{device:a,capture:g,passive:o}=Dd(i);this._targetEventStore.add(r,a,"",n[i],{capture:g,passive:o})}}}}function bA(e,A){e.gestures.add(A),e.gestureEventStores[A]=new ss(e,A),e.gestureTimeoutStores[A]=new sC}function lC(e,A){A.drag&&bA(e,"drag"),A.wheel&&bA(e,"wheel"),A.scroll&&bA(e,"scroll"),A.move&&bA(e,"move"),A.pinch&&bA(e,"pinch"),A.hover&&bA(e,"hover")}const ta=(e,A,t)=>(n,r,i,a={},g=!1)=>{var o,s;const l=(o=a.capture)!==null&&o!==void 0?o:A.capture,d=(s=a.passive)!==null&&s!==void 0?s:A.passive;let v=g?n:Ed(n,r,l);t&&d&&(v+="Passive"),e[v]=e[v]||[],e[v].push(i)};function os(e,A={},t,n){const r=f.default.useMemo(()=>new oC(e),[]);if(r.applyHandlers(e,n),r.applyConfig(A,t),f.default.useEffect(r.effect.bind(r)),f.default.useEffect(()=>r.clean.bind(r),[]),A.target===void 0)return r.bind.bind(r)}function ls(e,A){return gs(tC),os({drag:e},A||{},"drag")}function uC(e,A){return gs(nC),os({wheel:e},A||{},"wheel")}const qt="adm-popup",cC=Object.assign(Object.assign({},$g),{closeOnSwipe:!1,position:"bottom"}),vC=e=>{const{locale:A,popup:t={}}=ze(),n=se(cC,t,e),r=K(`${qt}-body`,n.bodyClassName,`${qt}-body-position-${n.position}`),[i,a]=D.useState(n.visible),g=D.useRef(null);ai(g,n.disableBodyScroll&&i?"strict":!1),Ge(()=>{n.visible&&a(!0)},[n.visible]);const o=fi(),{percent:s}=cA({percent:n.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var w,C;o.current||(a(n.visible),n.visible?(w=n.afterShow)===null||w===void 0||w.call(n):(C=n.afterClose)===null||C===void 0||C.call(n))}}),l=ls(({swipe:[,w]})=>{var C;!n.closeOnSwipe||(w===1&&n.position==="bottom"||w===-1&&n.position==="top")&&((C=n.onClose)===null||C===void 0||C.call(n))},{axis:"y",enabled:["top","bottom"].includes(n.position)}),d=es(i&&n.visible),v=pi(n.stopPropagation,ae(n,f.default.createElement("div",Object.assign({className:qt,onClick:n.onClick,style:{display:i?void 0:"none",touchAction:["top","bottom"].includes(n.position)?"none":"auto"}},l()),n.mask&&f.default.createElement(_g,{visible:d,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose,onMaskClick:w=>{var C,h;(C=n.onMaskClick)===null||C===void 0||C.call(n,w),n.closeOnMaskClick&&((h=n.onClose)===null||h===void 0||h.call(n))},className:n.maskClassName,style:n.maskStyle,disableBodyScroll:!1,stopPropagation:n.stopPropagation}),f.default.createElement(We.div,{className:r,style:Object.assign(Object.assign({},n.bodyStyle),{pointerEvents:s.to(w=>w===0?"unset":"none"),transform:s.to(w=>n.position==="bottom"?`translate(0, ${w}%)`:n.position==="top"?`translate(0, -${w}%)`:n.position==="left"?`translate(-${w}%, 0)`:n.position==="right"?`translate(${w}%, 0)`:"none")}),ref:g},n.showCloseButton&&f.default.createElement("a",{className:K(`${qt}-close-icon`,"adm-plain-anchor"),onClick:()=>{var w;(w=n.onClose)===null||w===void 0||w.call(n)},role:"button","aria-label":A.common.close},n.closeIcon),n.children))));return f.default.createElement(Hn,{active:i,forceRender:n.forceRender,destroyOnClose:n.destroyOnClose},Ei(n.getContainer,v))};var yi=vC;const na="adm-safe-area",wC=e=>ae(e,f.default.createElement("div",{className:K(na,`${na}-position-${e.position}`)}));var dC=wC;const hn=Object.assign({},So),{version:CC,render:PC,unmountComponentAtNode:QC}=hn;let zn;try{Number((CC||"").split(".")[0])>=18&&hn.createRoot&&(zn=hn.createRoot)}catch{}function ra(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:A}=hn;A&&typeof A=="object"&&(A.usingClientEntryPoint=e)}const Bn="__antd_mobile_root__";function IC(e,A){PC(e,A)}function hC(e,A){ra(!0);const t=A[Bn]||zn(A);ra(!1),t.render(e),A[Bn]=t}function BC(e,A){if(zn){hC(e,A);return}IC(e,A)}function mC(e){return QC(e)}function EC(e){return SA(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var A;(A=e[Bn])===null||A===void 0||A.unmount(),delete e[Bn]})})}function pC(e){return zn?EC(e):mC(e)}function bi(e){const A=document.createElement("div");document.body.appendChild(A);function t(){pC(A)&&A.parentNode&&A.parentNode.removeChild(A)}return BC(e,A),t}function DC(e){const A=f.default.forwardRef((r,i)=>{const[a,g]=D.useState(!1),o=D.useRef(!1),[s,l]=D.useState(e),d=D.useRef(0);D.useEffect(()=>{o.current?w():g(!0)},[]);function v(){var C,h;o.current=!0,g(!1),(h=(C=s.props).onClose)===null||h===void 0||h.call(C)}function w(){var C,h;n(),(h=(C=s.props).afterClose)===null||h===void 0||h.call(C)}return D.useImperativeHandle(i,()=>({close:v,replace:C=>{var h,E;d.current++,(E=(h=s.props).afterClose)===null||E===void 0||E.call(h),l(C)}})),f.default.cloneElement(s,Object.assign(Object.assign({},s.props),{key:d.current,visible:a,onClose:v,afterClose:w}))}),t=f.default.createRef(),n=bi(f.default.createElement(A,{ref:t}));return{close:()=>SA(this,void 0,void 0,function*(){var r,i,a;t.current?(a=t.current)===null||a===void 0||a.close():(n(),(i=(r=e.props).afterClose)===null||i===void 0||i.call(r))}),replace:r=>{var i;(i=t.current)===null||i===void 0||i.replace(r)},isRendered:()=>!!t.current}}const ia="adm-auto-center",yC=e=>ae(e,f.default.createElement("div",{className:ia},f.default.createElement("div",{className:`${ia}-content`},e.children)));var fa=yC;var xi={},bC=he&&he.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xi,"__esModule",{value:!0});var us=xi.staged=void 0;const xC=bC(f.default);function cs(e){return typeof e=="function"?xC.default.createElement(RC,{stage:e}):e}function RC(e){const A=e.stage();return cs(A)}function OC(e){return function(t,n){const r=e(t,n);return cs(r)}}us=xi.staged=OC;function _t(e){return typeof e=="number"?`${e}px`:e}const FC=e=>{const A=D.useRef(null),[t]=dv(A);return D.useEffect(()=>{t&&e.onActive()},[t]),f.default.createElement("div",{ref:A})},vs=vg(Ge),MC=()=>f.default.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},f.default.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),LC=()=>f.default.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},f.default.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),mn="adm-image",kC={fit:"fill",placeholder:f.default.createElement("div",{className:`${mn}-tip`},f.default.createElement(MC,null)),fallback:f.default.createElement("div",{className:`${mn}-tip`},f.default.createElement(LC,null)),lazy:!1,draggable:!1},NC=us(e=>{const A=se(kC,e),[t,n]=D.useState(!1),[r,i]=D.useState(!1),a=D.useRef(null),g=D.useRef(null);let o=A.src,s=A.srcSet;const[l,d]=D.useState(!A.lazy);o=l?A.src:void 0,s=l?A.srcSet:void 0,vs(()=>{n(!1),i(!1)},[o]),D.useEffect(()=>{var C;!((C=g.current)===null||C===void 0)&&C.complete&&n(!0)},[]);function v(){if(r)return f.default.createElement(f.default.Fragment,null,A.fallback);const C=f.default.createElement("img",{ref:g,id:A.id,className:`${mn}-img`,src:o,alt:A.alt,onClick:A.onClick,onLoad:h=>{var E;n(!0),(E=A.onLoad)===null||E===void 0||E.call(A,h)},onError:h=>{var E;i(!0),(E=A.onError)===null||E===void 0||E.call(A,h)},style:{objectFit:A.fit,display:t?"block":"none"},crossOrigin:A.crossOrigin,decoding:A.decoding,loading:A.loading,referrerPolicy:A.referrerPolicy,sizes:A.sizes,srcSet:s,useMap:A.useMap,draggable:A.draggable});return f.default.createElement(f.default.Fragment,null,!t&&A.placeholder,C)}const w={};return A.width&&(w["--width"]=_t(A.width),w.width=_t(A.width)),A.height&&(w["--height"]=_t(A.height),w.height=_t(A.height)),ae(A,f.default.createElement("div",{ref:a,className:mn,style:w,onClick:A.onContainerClick},A.lazy&&!l&&f.default.createElement(FC,{onActive:()=>{d(!0)}}),v()))});var SC=NC;const xA="adm-badge",ws=f.default.createElement(f.default.Fragment,null),TC=e=>{const{content:A,color:t,children:n}=e,r=A===ws,i=K(xA,{[`${xA}-fixed`]:!!n,[`${xA}-dot`]:r,[`${xA}-bordered`]:e.bordered}),a=A||A===0?ae(e,f.default.createElement("div",{className:i,style:{"--color":t}},!r&&f.default.createElement("div",{className:`${xA}-content`},A))):null;return n?f.default.createElement("div",{className:K(`${xA}-wrapper`,e.wrapperClassName),style:e.wrapperStyle},n,a):a};var HC=CA(TC,{dot:ws});const GC="adm-dot-loading",zC={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},jC={color:"default"},UC=D.memo(e=>{var A;const t=se(jC,e);return ae(t,f.default.createElement("div",{style:{color:(A=zC[t.color])!==null&&A!==void 0?A:t.color},className:K("adm-loading",GC)},f.default.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},f.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},f.default.createElement("g",{transform:"translate(-100.000000, -71.000000)"},f.default.createElement("g",{transform:"translate(95.000000, 71.000000)"},f.default.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(n=>f.default.createElement("rect",{key:n,fill:"currentColor",x:20+n*26,y:"16",width:"8",height:"8",rx:"2"},f.default.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${n*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});var KC=UC;function YC(e){return!!e&&typeof e=="object"&&typeof e.then=="function"}function JC(){return Ot?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const Me="adm-button",XC={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:f.default.createElement(KC,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},VC=D.forwardRef((e,A)=>{const t=se(XC,e),[n,r]=D.useState(!1),i=D.useRef(null),a=t.loading==="auto"?n:t.loading,g=t.disabled||a;D.useImperativeHandle(A,()=>({get nativeElement(){return i.current}}));const o=s=>SA(void 0,void 0,void 0,function*(){if(!t.onClick)return;const l=t.onClick(s);if(YC(l))try{r(!0),yield l,r(!1)}catch(d){throw r(!1),d}});return ae(t,f.default.createElement("button",{ref:i,type:t.type,onClick:o,className:K(Me,{[`${Me}-${t.color}`]:t.color,[`${Me}-block`]:t.block,[`${Me}-disabled`]:g,[`${Me}-fill-outline`]:t.fill==="outline",[`${Me}-fill-none`]:t.fill==="none",[`${Me}-mini`]:t.size==="mini",[`${Me}-small`]:t.size==="small",[`${Me}-large`]:t.size==="large",[`${Me}-loading`]:a},`${Me}-shape-${t.shape}`),disabled:g,onMouseDown:t.onMouseDown,onMouseUp:t.onMouseUp,onTouchStart:t.onTouchStart,onTouchEnd:t.onTouchEnd},a?f.default.createElement("div",{className:`${Me}-loading-wrapper`},t.loadingIcon,t.loadingText):f.default.createElement("span",null,t.children)))});var ht=VC,ds={exports:{}};(function(e,A){(function(t,n){e.exports=n()})(he,function(){var t="day";return function(n,r,i){var a=function(s){return s.add(4-s.isoWeekday(),t)},g=r.prototype;g.isoWeekYear=function(){return a(this).year()},g.isoWeek=function(s){if(!this.$utils().u(s))return this.add(7*(s-this.isoWeek()),t);var l,d,v,w,C=a(this),h=(l=this.isoWeekYear(),d=this.$u,v=(d?i.utc:i)().year(l).startOf("year"),w=4-v.isoWeekday(),v.isoWeekday()>4&&(w+=7),v.add(w,t));return C.diff(h,"week")+1},g.isoWeekday=function(s){return this.$utils().u(s)?this.day()||7:this.day(this.day()%7?s:s-7)};var o=g.startOf;g.startOf=function(s,l){var d=this.$utils(),v=!!d.u(l)||l;return d.p(s)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(s,l)}}})})(ds);var Cs=ds.exports;function nA(e){const{value:A,defaultValue:t,onChange:n}=e,r=nv(),i=D.useRef(A!==void 0?A:t);A!==void 0&&(i.current=A);const a=KA((g,o=!1)=>{const s=typeof g=="function"?g(i.current):g;if(!(!o&&s===i.current))return i.current=s,r(),n==null?void 0:n(s)});return[i.current,a]}const Ps=!1;function Hr(e,A){Ps&&console.warn(`[antd-mobile: ${e}] ${A}`)}function aa(e){var A=j.useRef();A.current=e;var t=j.useCallback(function(){for(var n,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=A.current)===null||n===void 0?void 0:n.call.apply(n,[A].concat(i))},[]);return t}function WC(e){if(Array.isArray(e))return e}function ZC(e,A){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,r,i,a,g=[],o=!0,s=!1;try{if(i=(t=t.call(e)).next,A===0){if(Object(t)!==t)return;o=!1}else for(;!(o=(n=i.call(t)).done)&&(g.push(n.value),g.length!==A);o=!0);}catch(l){s=!0,r=l}finally{try{if(!o&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw r}}return g}}function ga(e,A){(A==null||A>e.length)&&(A=e.length);for(var t=0,n=Array(A);t<A;t++)n[t]=e[t];return n}function qC(e,A){if(e){if(typeof e=="string")return ga(e,A);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ga(e,A):void 0}}function _C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gr(e,A){return WC(e)||ZC(e,A)||qC(e,A)||_C()}function $C(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var sa=$C()?j.useLayoutEffect:j.useEffect,eP=function(A,t){var n=j.useRef(!0);sa(function(){return A(n.current)},t),sa(function(){return n.current=!1,function(){n.current=!0}},[])},oa=function(A,t){eP(function(n){if(!n)return A()},t)};function la(e){var A=j.useRef(!1),t=j.useState(e),n=Gr(t,2),r=n[0],i=n[1];j.useEffect(function(){return A.current=!1,function(){A.current=!0}},[]);function a(g,o){o&&A.current||i(g)}return[r,a]}function Pr(e){return e!==void 0}function AP(e,A){var t=A||{},n=t.defaultValue,r=t.value,i=t.onChange,a=t.postState,g=la(function(){return Pr(r)?r:Pr(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),o=Gr(g,2),s=o[0],l=o[1],d=r!==void 0?r:s,v=a?a(d):d,w=aa(i),C=la([d]),h=Gr(C,2),E=h[0],P=h[1];oa(function(){var u=E[0];s!==u&&w(s,u)},[E]),oa(function(){Pr(r)||l(r)},[r]);var m=aa(function(u,c){l(u,c),P([d],c)});return[v,m]}function Bt(e){return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Bt(e)}var Qs={exports:{}},fe={};/**
|
|
15
15
|
* @license React
|
|
16
16
|
* react-is.production.min.js
|
package/es/index.es.js
CHANGED
|
@@ -4755,7 +4755,7 @@ class ImageUploader extends Component {
|
|
|
4755
4755
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
4756
4756
|
type: "file",
|
|
4757
4757
|
name: "file",
|
|
4758
|
-
accept: "image/*",
|
|
4758
|
+
accept: "image/*,video/*",
|
|
4759
4759
|
id: "inputFile",
|
|
4760
4760
|
style: { display: "none" }
|
|
4761
4761
|
}), /* @__PURE__ */ React__default.createElement("div", {
|