szld-libs 0.4.32 → 0.4.33

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.
@@ -2,7 +2,7 @@
2
2
  `+xe+ue}}var ke=!1,De;{var Pe=typeof WeakMap=="function"?WeakMap:Map;De=new Pe}function ge(ue,Ie){if(!ue||ke)return"";{var Qe=De.get(ue);if(Qe!==void 0)return Qe}var mt;ke=!0;var Rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var en;en=ve.current,ve.current=null,ae();try{if(Ie){var Pt=function(){throw Error()};if(Object.defineProperty(Pt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pt,[])}catch(rn){mt=rn}Reflect.construct(ue,[],Pt)}else{try{Pt.call()}catch(rn){mt=rn}ue.call(Pt.prototype)}}else{try{throw Error()}catch(rn){mt=rn}ue()}}catch(rn){if(rn&&mt&&typeof rn.stack=="string"){for(var yt=rn.stack.split(`
3
3
  `),Dr=mt.stack.split(`
4
4
  `),$n=yt.length-1,Yn=Dr.length-1;$n>=1&&Yn>=0&&yt[$n]!==Dr[Yn];)Yn--;for(;$n>=1&&Yn>=0;$n--,Yn--)if(yt[$n]!==Dr[Yn]){if($n!==1||Yn!==1)do if($n--,Yn--,Yn<0||yt[$n]!==Dr[Yn]){var ha=`
5
- `+yt[$n].replace(" at new "," at ");return ue.displayName&&ha.includes("<anonymous>")&&(ha=ha.replace("<anonymous>",ue.displayName)),typeof ue=="function"&&De.set(ue,ha),ha}while($n>=1&&Yn>=0);break}}}finally{ke=!1,ve.current=en,fe(),Error.prepareStackTrace=Rt}var wl=ue?ue.displayName||ue.name:"",Ad=wl?se(wl):"";return typeof ue=="function"&&De.set(ue,Ad),Ad}function $e(ue,Ie,Qe){return ge(ue,!1)}function Me(ue){var Ie=ue.prototype;return!!(Ie&&Ie.isReactComponent)}function et(ue,Ie,Qe){if(ue==null)return"";if(typeof ue=="function")return ge(ue,Me(ue));if(typeof ue=="string")return se(ue);switch(ue){case d:return se("Suspense");case g:return se("SuspenseList")}if(typeof ue=="object")switch(ue.$$typeof){case m:return $e(ue.render);case C:return et(ue.type,Ie,Qe);case b:{var mt=ue,Rt=mt._payload,en=mt._init;try{return et(en(Rt),Ie,Qe)}catch{}}}return""}var ut=Object.prototype.hasOwnProperty,Xt={},Mt=A.ReactDebugCurrentFrame;function Mn(ue){if(ue){var Ie=ue._owner,Qe=et(ue.type,ue._source,Ie?Ie.type:null);Mt.setExtraStackFrame(Qe)}else Mt.setExtraStackFrame(null)}function Pn(ue,Ie,Qe,mt,Rt){{var en=Function.call.bind(ut);for(var Pt in ue)if(en(ue,Pt)){var yt=void 0;try{if(typeof ue[Pt]!="function"){var Dr=Error((mt||"React class")+": "+Qe+" type `"+Pt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ue[Pt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Dr.name="Invariant Violation",Dr}yt=ue[Pt](Ie,Pt,mt,Qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($n){yt=$n}yt&&!(yt instanceof Error)&&(Mn(Rt),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",mt||"React class",Qe,Pt,typeof yt),Mn(null)),yt instanceof Error&&!(yt.message in Xt)&&(Xt[yt.message]=!0,Mn(Rt),T("Failed %s type: %s",Qe,yt.message),Mn(null))}}}var sn=Array.isArray;function Jt(ue){return sn(ue)}function cn(ue){{var Ie=typeof Symbol=="function"&&Symbol.toStringTag,Qe=Ie&&ue[Symbol.toStringTag]||ue.constructor.name||"Object";return Qe}}function Fn(ue){try{return Bn(ue),!1}catch{return!0}}function Bn(ue){return""+ue}function kn(ue){if(Fn(ue))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cn(ue)),Bn(ue)}var Vt=A.ReactCurrentOwner,Hn={key:!0,ref:!0,__self:!0,__source:!0},gr,ur,Ye;Ye={};function at(ue){if(ut.call(ue,"ref")){var Ie=Object.getOwnPropertyDescriptor(ue,"ref").get;if(Ie&&Ie.isReactWarning)return!1}return ue.ref!==void 0}function it(ue){if(ut.call(ue,"key")){var Ie=Object.getOwnPropertyDescriptor(ue,"key").get;if(Ie&&Ie.isReactWarning)return!1}return ue.key!==void 0}function $t(ue,Ie){if(typeof ue.ref=="string"&&Vt.current&&Ie&&Vt.current.stateNode!==Ie){var Qe=H(Vt.current.type);Ye[Qe]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(Vt.current.type),ue.ref),Ye[Qe]=!0)}}function Nn(ue,Ie){{var Qe=function(){gr||(gr=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ie))};Qe.isReactWarning=!0,Object.defineProperty(ue,"key",{get:Qe,configurable:!0})}}function cr(ue,Ie){{var Qe=function(){ur||(ur=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ie))};Qe.isReactWarning=!0,Object.defineProperty(ue,"ref",{get:Qe,configurable:!0})}}var Wn=function(ue,Ie,Qe,mt,Rt,en,Pt){var yt={$$typeof:r,type:ue,key:Ie,ref:Qe,props:Pt,_owner:en};return yt._store={},Object.defineProperty(yt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(yt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:mt}),Object.defineProperty(yt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Rt}),Object.freeze&&(Object.freeze(yt.props),Object.freeze(yt)),yt};function Ur(ue,Ie,Qe,mt,Rt){{var en,Pt={},yt=null,Dr=null;Qe!==void 0&&(kn(Qe),yt=""+Qe),it(Ie)&&(kn(Ie.key),yt=""+Ie.key),at(Ie)&&(Dr=Ie.ref,$t(Ie,Rt));for(en in Ie)ut.call(Ie,en)&&!Hn.hasOwnProperty(en)&&(Pt[en]=Ie[en]);if(ue&&ue.defaultProps){var $n=ue.defaultProps;for(en in $n)Pt[en]===void 0&&(Pt[en]=$n[en])}if(yt||Dr){var Yn=typeof ue=="function"?ue.displayName||ue.name||"Unknown":ue;yt&&Nn(Pt,Yn),Dr&&cr(Pt,Yn)}return Wn(ue,yt,Dr,Rt,mt,Vt.current,Pt)}}var _n=A.ReactCurrentOwner,ra=A.ReactDebugCurrentFrame;function vn(ue){if(ue){var Ie=ue._owner,Qe=et(ue.type,ue._source,Ie?Ie.type:null);ra.setExtraStackFrame(Qe)}else ra.setExtraStackFrame(null)}var mn;mn=!1;function yl(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===r}function Do(){{if(_n.current){var ue=H(_n.current.type);if(ue)return`
5
+ `+yt[$n].replace(" at new "," at ");return ue.displayName&&ha.includes("<anonymous>")&&(ha=ha.replace("<anonymous>",ue.displayName)),typeof ue=="function"&&De.set(ue,ha),ha}while($n>=1&&Yn>=0);break}}}finally{ke=!1,ve.current=en,fe(),Error.prepareStackTrace=Rt}var wl=ue?ue.displayName||ue.name:"",Ad=wl?se(wl):"";return typeof ue=="function"&&De.set(ue,Ad),Ad}function $e(ue,Ie,Qe){return ge(ue,!1)}function Me(ue){var Ie=ue.prototype;return!!(Ie&&Ie.isReactComponent)}function et(ue,Ie,Qe){if(ue==null)return"";if(typeof ue=="function")return ge(ue,Me(ue));if(typeof ue=="string")return se(ue);switch(ue){case d:return se("Suspense");case g:return se("SuspenseList")}if(typeof ue=="object")switch(ue.$$typeof){case m:return $e(ue.render);case C:return et(ue.type,Ie,Qe);case b:{var mt=ue,Rt=mt._payload,en=mt._init;try{return et(en(Rt),Ie,Qe)}catch{}}}return""}var ut=Object.prototype.hasOwnProperty,Xt={},Mt=A.ReactDebugCurrentFrame;function Mn(ue){if(ue){var Ie=ue._owner,Qe=et(ue.type,ue._source,Ie?Ie.type:null);Mt.setExtraStackFrame(Qe)}else Mt.setExtraStackFrame(null)}function Pn(ue,Ie,Qe,mt,Rt){{var en=Function.call.bind(ut);for(var Pt in ue)if(en(ue,Pt)){var yt=void 0;try{if(typeof ue[Pt]!="function"){var Dr=Error((mt||"React class")+": "+Qe+" type `"+Pt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ue[Pt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Dr.name="Invariant Violation",Dr}yt=ue[Pt](Ie,Pt,mt,Qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($n){yt=$n}yt&&!(yt instanceof Error)&&(Mn(Rt),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",mt||"React class",Qe,Pt,typeof yt),Mn(null)),yt instanceof Error&&!(yt.message in Xt)&&(Xt[yt.message]=!0,Mn(Rt),T("Failed %s type: %s",Qe,yt.message),Mn(null))}}}var sn=Array.isArray;function Jt(ue){return sn(ue)}function cn(ue){{var Ie=typeof Symbol=="function"&&Symbol.toStringTag,Qe=Ie&&ue[Symbol.toStringTag]||ue.constructor.name||"Object";return Qe}}function Fn(ue){try{return Bn(ue),!1}catch{return!0}}function Bn(ue){return""+ue}function kn(ue){if(Fn(ue))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cn(ue)),Bn(ue)}var Vt=A.ReactCurrentOwner,Hn={key:!0,ref:!0,__self:!0,__source:!0},gr,ur,Ye;Ye={};function it(ue){if(ut.call(ue,"ref")){var Ie=Object.getOwnPropertyDescriptor(ue,"ref").get;if(Ie&&Ie.isReactWarning)return!1}return ue.ref!==void 0}function rt(ue){if(ut.call(ue,"key")){var Ie=Object.getOwnPropertyDescriptor(ue,"key").get;if(Ie&&Ie.isReactWarning)return!1}return ue.key!==void 0}function $t(ue,Ie){if(typeof ue.ref=="string"&&Vt.current&&Ie&&Vt.current.stateNode!==Ie){var Qe=H(Vt.current.type);Ye[Qe]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(Vt.current.type),ue.ref),Ye[Qe]=!0)}}function Nn(ue,Ie){{var Qe=function(){gr||(gr=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ie))};Qe.isReactWarning=!0,Object.defineProperty(ue,"key",{get:Qe,configurable:!0})}}function cr(ue,Ie){{var Qe=function(){ur||(ur=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ie))};Qe.isReactWarning=!0,Object.defineProperty(ue,"ref",{get:Qe,configurable:!0})}}var Wn=function(ue,Ie,Qe,mt,Rt,en,Pt){var yt={$$typeof:r,type:ue,key:Ie,ref:Qe,props:Pt,_owner:en};return yt._store={},Object.defineProperty(yt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(yt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:mt}),Object.defineProperty(yt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Rt}),Object.freeze&&(Object.freeze(yt.props),Object.freeze(yt)),yt};function Ur(ue,Ie,Qe,mt,Rt){{var en,Pt={},yt=null,Dr=null;Qe!==void 0&&(kn(Qe),yt=""+Qe),rt(Ie)&&(kn(Ie.key),yt=""+Ie.key),it(Ie)&&(Dr=Ie.ref,$t(Ie,Rt));for(en in Ie)ut.call(Ie,en)&&!Hn.hasOwnProperty(en)&&(Pt[en]=Ie[en]);if(ue&&ue.defaultProps){var $n=ue.defaultProps;for(en in $n)Pt[en]===void 0&&(Pt[en]=$n[en])}if(yt||Dr){var Yn=typeof ue=="function"?ue.displayName||ue.name||"Unknown":ue;yt&&Nn(Pt,Yn),Dr&&cr(Pt,Yn)}return Wn(ue,yt,Dr,Rt,mt,Vt.current,Pt)}}var _n=A.ReactCurrentOwner,ra=A.ReactDebugCurrentFrame;function vn(ue){if(ue){var Ie=ue._owner,Qe=et(ue.type,ue._source,Ie?Ie.type:null);ra.setExtraStackFrame(Qe)}else ra.setExtraStackFrame(null)}var mn;mn=!1;function yl(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===r}function Do(){{if(_n.current){var ue=H(_n.current.type);if(ue)return`
6
6
 
7
7
  Check the render method of \``+ue+"`."}return""}}function xl(ue){{if(ue!==void 0){var Ie=ue.fileName.replace(/^.*[\\\/]/,""),Qe=ue.lineNumber;return`
8
8
 
@@ -66,14 +66,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
66
66
  }
67
67
  `,f7=function(r){var t=W.useContext(H4),i=t.csp,l=t.prefixCls,f=t.layer,c=c7;l&&(c=c.replace(/anticon/g,l)),f&&(c="@layer ".concat(f,` {
68
68
  `).concat(c,`
69
- }`)),W.useEffect(function(){var h=r.current,m=n7(h);e7(c,"@ant-design-icons",{prepend:!f,csp:i,attachTo:m})},[])},d7=["icon","className","onClick","style","primaryColor","secondaryColor"],Dp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function p7(e){var r=e.primaryColor,t=e.secondaryColor;Dp.primaryColor=r,Dp.secondaryColor=t||u8(r),Dp.calculated=!!t}function h7(){return Ft({},Dp)}var lg=function(r){var t=r.icon,i=r.className,l=r.onClick,f=r.style,c=r.primaryColor,h=r.secondaryColor,m=Sp(r,d7),d=Ne.useRef(),g=Dp;if(c&&(g={primaryColor:c,secondaryColor:h||u8(c)}),f7(d),u7(l8(t),"icon should be icon definiton, but got ".concat(t)),!l8(t))return null;var C=t;return C&&typeof C.icon=="function"&&(C=Ft(Ft({},C),{},{icon:C.icon(g.primaryColor,g.secondaryColor)})),Rb(C.icon,"svg-".concat(C.name),Ft(Ft({className:i,onClick:l,style:f,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:d}))};lg.displayName="IconReact",lg.getTwoToneColors=h7,lg.setTwoToneColors=p7;const Fb=lg;function f8(e){var r=c8(e),t=mc(r,2),i=t[0],l=t[1];return Fb.setTwoToneColors({primaryColor:i,secondaryColor:l})}function v7(){var e=Fb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var m7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];f8(Eb.primary);var sg=Ne.forwardRef(function(e,r){var t=e.className,i=e.icon,l=e.spin,f=e.rotate,c=e.tabIndex,h=e.onClick,m=e.twoToneColor,d=Sp(e,m7),g=Ne.useContext(H4),C=g.prefixCls,b=C===void 0?"anticon":C,x=g.rootClassName,_=rs(x,b,Le(Le({},"".concat(b,"-").concat(i.name),!!i.name),"".concat(b,"-spin"),!!l||i.name==="loading"),t),k=c;k===void 0&&h&&(k=-1);var E=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=c8(m),T=mc(A,2),D=T[0],R=T[1];return Ne.createElement("span",Pr({role:"img","aria-label":i.name},d,{ref:r,tabIndex:k,onClick:h,className:_}),Ne.createElement(Fb,{icon:i,primaryColor:D,secondaryColor:R,style:E}))});sg.displayName="AntdIcon",sg.getTwoToneColor=v7,sg.setTwoToneColor=f8;const Qi=sg;var g7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const y7=g7;var x7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:y7}))},d8=Ne.forwardRef(x7);process.env.NODE_ENV!=="production"&&(d8.displayName="ArrowLeftOutlined");const b7=d8;var C7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const w7=C7;var _7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:w7}))},p8=Ne.forwardRef(_7);process.env.NODE_ENV!=="production"&&(p8.displayName="CheckOutlined");const h8=p8;var S7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const E7=S7;var D7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:E7}))},v8=Ne.forwardRef(D7);process.env.NODE_ENV!=="production"&&(v8.displayName="CloseCircleFilled");const k7=v8;var T7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const A7=T7;var O7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:A7}))},m8=Ne.forwardRef(O7);process.env.NODE_ENV!=="production"&&(m8.displayName="CloseOutlined");const g8=m8;var R7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const F7=R7;var N7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:F7}))},y8=Ne.forwardRef(N7);process.env.NODE_ENV!=="production"&&(y8.displayName="DownOutlined");const M7=y8;var P7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const B7=P7;var L7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:B7}))},x8=Ne.forwardRef(L7);process.env.NODE_ENV!=="production"&&(x8.displayName="InfoCircleOutlined");const b8=x8;var z7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const U7=z7;var j7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:U7}))},C8=Ne.forwardRef(j7);process.env.NODE_ENV!=="production"&&(C8.displayName="MinusSquareOutlined");const w8=C8;var I7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const H7=I7;var V7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:H7}))},_8=Ne.forwardRef(V7);process.env.NODE_ENV!=="production"&&(_8.displayName="PlusOutlined");const Nb=_8;var $7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const Y7=$7;var q7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:Y7}))},S8=Ne.forwardRef(q7);process.env.NODE_ENV!=="production"&&(S8.displayName="PlusSquareOutlined");const E8=S8;var G7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const K7=G7;var W7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:K7}))},D8=Ne.forwardRef(W7);process.env.NODE_ENV!=="production"&&(D8.displayName="SyncOutlined");const Q7=D8;var Z7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const X7=Z7;var J7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:X7}))},k8=Ne.forwardRef(J7);process.env.NODE_ENV!=="production"&&(k8.displayName="UpOutlined");const e9=k8;var t9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const n9=t9;var r9=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:n9}))},T8=Ne.forwardRef(r9);process.env.NODE_ENV!=="production"&&(T8.displayName="UploadOutlined");const Mb=T8;var ug={exports:{}},yn={};var A8;function a9(){if(A8)return yn;A8=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function k(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case e:switch(E=E.type,E){case t:case l:case i:case d:case g:return E;default:switch(E=E&&E.$$typeof,E){case h:case c:case m:case b:case C:case f:return E;default:return A}}case r:return A}}}return yn.ContextConsumer=c,yn.ContextProvider=f,yn.Element=e,yn.ForwardRef=m,yn.Fragment=t,yn.Lazy=b,yn.Memo=C,yn.Portal=r,yn.Profiler=l,yn.StrictMode=i,yn.Suspense=d,yn.SuspenseList=g,yn.isAsyncMode=function(){return!1},yn.isConcurrentMode=function(){return!1},yn.isContextConsumer=function(E){return k(E)===c},yn.isContextProvider=function(E){return k(E)===f},yn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},yn.isForwardRef=function(E){return k(E)===m},yn.isFragment=function(E){return k(E)===t},yn.isLazy=function(E){return k(E)===b},yn.isMemo=function(E){return k(E)===C},yn.isPortal=function(E){return k(E)===r},yn.isProfiler=function(E){return k(E)===l},yn.isStrictMode=function(E){return k(E)===i},yn.isSuspense=function(E){return k(E)===d},yn.isSuspenseList=function(E){return k(E)===g},yn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===t||E===l||E===i||E===d||E===g||E===x||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===C||E.$$typeof===f||E.$$typeof===c||E.$$typeof===m||E.$$typeof===_||E.getModuleId!==void 0)},yn.typeOf=k,yn}var xn={};var O8;function i9(){return O8||(O8=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=!1,k=!1,E=!1,A=!1,T=!1,D;D=Symbol.for("react.module.reference");function R(Me){return!!(typeof Me=="string"||typeof Me=="function"||Me===t||Me===l||T||Me===i||Me===d||Me===g||A||Me===x||_||k||E||typeof Me=="object"&&Me!==null&&(Me.$$typeof===b||Me.$$typeof===C||Me.$$typeof===f||Me.$$typeof===c||Me.$$typeof===m||Me.$$typeof===D||Me.getModuleId!==void 0))}function N(Me){if(typeof Me=="object"&&Me!==null){var et=Me.$$typeof;switch(et){case e:var ut=Me.type;switch(ut){case t:case l:case i:case d:case g:return ut;default:var Xt=ut&&ut.$$typeof;switch(Xt){case h:case c:case m:case b:case C:case f:return Xt;default:return et}}case r:return et}}}var z=c,M=f,I=e,Y=m,B=t,U=b,P=C,H=r,V=l,G=i,ee=d,ne=g,$=!1,X=!1;function Z(Me){return $||($=!0),!1}function q(Me){return X||(X=!0),!1}function te(Me){return N(Me)===c}function oe(Me){return N(Me)===f}function ae(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===e}function fe(Me){return N(Me)===m}function ve(Me){return N(Me)===t}function xe(Me){return N(Me)===b}function se(Me){return N(Me)===C}function ke(Me){return N(Me)===r}function De(Me){return N(Me)===l}function Pe(Me){return N(Me)===i}function ge(Me){return N(Me)===d}function $e(Me){return N(Me)===g}xn.ContextConsumer=z,xn.ContextProvider=M,xn.Element=I,xn.ForwardRef=Y,xn.Fragment=B,xn.Lazy=U,xn.Memo=P,xn.Portal=H,xn.Profiler=V,xn.StrictMode=G,xn.Suspense=ee,xn.SuspenseList=ne,xn.isAsyncMode=Z,xn.isConcurrentMode=q,xn.isContextConsumer=te,xn.isContextProvider=oe,xn.isElement=ae,xn.isForwardRef=fe,xn.isFragment=ve,xn.isLazy=xe,xn.isMemo=se,xn.isPortal=ke,xn.isProfiler=De,xn.isStrictMode=Pe,xn.isSuspense=ge,xn.isSuspenseList=$e,xn.isValidElementType=R,xn.typeOf=N}()),xn}(function(e){process.env.NODE_ENV==="production"?e.exports=a9():e.exports=i9()})(ug);var o9=Symbol.for("react.element"),l9=Symbol.for("react.transitional.element"),s9=Symbol.for("react.fragment");function u9(e){return e&&Br(e)==="object"&&(e.$$typeof===o9||e.$$typeof===l9)&&e.type===s9}const cg={main:"backheader-module_main_cac53",title:"backheader-module_title_33439",sub:"backheader-module_sub_1d015",btn:"backheader-module_btn_ee841"},{Title:c9,Text:f9}=me.Typography,d9=e=>{const{isBack:r=!0,title:t,extra:i,subTitle:l=null,className:f,style:c,titleStyle:h,level:m=2,icon:d,onBack:g}=e,C=MF.useNavigate(),b=()=>typeof l=="string"?Q(f9,{className:cg.sub,children:l}):l,x=()=>{if(g){g==null||g();return}C(-1)};return Be("div",{className:rs(cg.main,f),style:c,children:[Be(me.Space,{children:[r&&Q("div",{onClick:x,className:cg.btn,children:d||Q(b7,{style:{fontSize:24}})}),Be(c9,{level:m,className:cg.title,style:h,children:[t,b()]})]}),i]})};var tu={exports:{}},ai={},Pb={exports:{}},Bb={};var R8;function p9(){return R8||(R8=1,function(e){function r($,X){var Z=$.length;$.push(X);e:for(;0<Z;){var q=Z-1>>>1,te=$[q];if(0<l(te,X))$[q]=X,$[Z]=te,Z=q;else break e}}function t($){return $.length===0?null:$[0]}function i($){if($.length===0)return null;var X=$[0],Z=$.pop();if(Z!==X){$[0]=Z;e:for(var q=0,te=$.length,oe=te>>>1;q<oe;){var ae=2*(q+1)-1,fe=$[ae],ve=ae+1,xe=$[ve];if(0>l(fe,Z))ve<te&&0>l(xe,fe)?($[q]=xe,$[ve]=Z,q=ve):($[q]=fe,$[ae]=Z,q=ae);else if(ve<te&&0>l(xe,Z))$[q]=xe,$[ve]=Z,q=ve;else break e}}return X}function l($,X){var Z=$.sortIndex-X.sortIndex;return Z!==0?Z:$.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var m=[],d=[],g=1,C=null,b=3,x=!1,_=!1,k=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D($){for(var X=t(d);X!==null;){if(X.callback===null)i(d);else if(X.startTime<=$)i(d),X.sortIndex=X.expirationTime,r(m,X);else break;X=t(d)}}function R($){if(k=!1,D($),!_)if(t(m)!==null)_=!0,ee(N);else{var X=t(d);X!==null&&ne(R,X.startTime-$)}}function N($,X){_=!1,k&&(k=!1,A(I),I=-1),x=!0;var Z=b;try{for(D(X),C=t(m);C!==null&&(!(C.expirationTime>X)||$&&!U());){var q=C.callback;if(typeof q=="function"){C.callback=null,b=C.priorityLevel;var te=q(C.expirationTime<=X);X=e.unstable_now(),typeof te=="function"?C.callback=te:C===t(m)&&i(m),D(X)}else i(m);C=t(m)}if(C!==null)var oe=!0;else{var ae=t(d);ae!==null&&ne(R,ae.startTime-X),oe=!1}return oe}finally{C=null,b=Z,x=!1}}var z=!1,M=null,I=-1,Y=5,B=-1;function U(){return!(e.unstable_now()-B<Y)}function P(){if(M!==null){var $=e.unstable_now();B=$;var X=!0;try{X=M(!0,$)}finally{X?H():(z=!1,M=null)}}else z=!1}var H;if(typeof T=="function")H=function(){T(P)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,G=V.port2;V.port1.onmessage=P,H=function(){G.postMessage(null)}}else H=function(){E(P,0)};function ee($){M=$,z||(z=!0,H())}function ne($,X){I=E(function(){$(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,ee(N))},e.unstable_forceFrameRate=function($){0>$||125<$||(Y=0<$?Math.floor(1e3/$):5)},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return t(m)},e.unstable_next=function($){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var Z=b;b=X;try{return $()}finally{b=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Z=b;b=$;try{return X()}finally{b=Z}},e.unstable_scheduleCallback=function($,X,Z){var q=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?q+Z:q):Z=q,$){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=Z+te,$={id:g++,callback:X,priorityLevel:$,startTime:Z,expirationTime:te,sortIndex:-1},Z>q?($.sortIndex=Z,r(d,$),t(m)===null&&$===t(d)&&(k?(A(I),I=-1):k=!0,ne(R,Z-q))):($.sortIndex=te,r(m,$),_||x||(_=!0,ee(N))),$},e.unstable_shouldYield=U,e.unstable_wrapCallback=function($){var X=b;return function(){var Z=b;b=X;try{return $.apply(this,arguments)}finally{b=Z}}}}(Bb)),Bb}var Lb={};var F8;function h9(){return F8||(F8=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,t=!1,i=5;function l(Ye,at){var it=Ye.length;Ye.push(at),h(Ye,at,it)}function f(Ye){return Ye.length===0?null:Ye[0]}function c(Ye){if(Ye.length===0)return null;var at=Ye[0],it=Ye.pop();return it!==at&&(Ye[0]=it,m(Ye,it,0)),at}function h(Ye,at,it){for(var $t=it;$t>0;){var Nn=$t-1>>>1,cr=Ye[Nn];if(d(cr,at)>0)Ye[Nn]=at,Ye[$t]=cr,$t=Nn;else return}}function m(Ye,at,it){for(var $t=it,Nn=Ye.length,cr=Nn>>>1;$t<cr;){var Wn=($t+1)*2-1,Ur=Ye[Wn],_n=Wn+1,ra=Ye[_n];if(d(Ur,at)<0)_n<Nn&&d(ra,Ur)<0?(Ye[$t]=ra,Ye[_n]=at,$t=_n):(Ye[$t]=Ur,Ye[Wn]=at,$t=Wn);else if(_n<Nn&&d(ra,at)<0)Ye[$t]=ra,Ye[_n]=at,$t=_n;else return}}function d(Ye,at){var it=Ye.sortIndex-at.sortIndex;return it!==0?it:Ye.id-at.id}var g=1,C=2,b=3,x=4,_=5;function k(Ye,at){}var E=typeof performance=="object"&&typeof performance.now=="function";if(E){var A=performance;e.unstable_now=function(){return A.now()}}else{var T=Date,D=T.now();e.unstable_now=function(){return T.now()-D}}var R=1073741823,N=-1,z=250,M=5e3,I=1e4,Y=R,B=[],U=[],P=1,H=null,V=b,G=!1,ee=!1,ne=!1,$=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function q(Ye){for(var at=f(U);at!==null;){if(at.callback===null)c(U);else if(at.startTime<=Ye)c(U),at.sortIndex=at.expirationTime,l(B,at);else return;at=f(U)}}function te(Ye){if(ne=!1,q(Ye),!ee)if(f(B)!==null)ee=!0,kn(oe);else{var at=f(U);at!==null&&Vt(te,at.startTime-Ye)}}function oe(Ye,at){ee=!1,ne&&(ne=!1,Hn()),G=!0;var it=V;try{var $t;if(!t)return ae(Ye,at)}finally{H=null,V=it,G=!1}}function ae(Ye,at){var it=at;for(q(it),H=f(B);H!==null&&!r&&!(H.expirationTime>it&&(!Ye||Mn()));){var $t=H.callback;if(typeof $t=="function"){H.callback=null,V=H.priorityLevel;var Nn=H.expirationTime<=it,cr=$t(Nn);it=e.unstable_now(),typeof cr=="function"?H.callback=cr:H===f(B)&&c(B),q(it)}else c(B);H=f(B)}if(H!==null)return!0;var Wn=f(U);return Wn!==null&&Vt(te,Wn.startTime-it),!1}function fe(Ye,at){switch(Ye){case g:case C:case b:case x:case _:break;default:Ye=b}var it=V;V=Ye;try{return at()}finally{V=it}}function ve(Ye){var at;switch(V){case g:case C:case b:at=b;break;default:at=V;break}var it=V;V=at;try{return Ye()}finally{V=it}}function xe(Ye){var at=V;return function(){var it=V;V=at;try{return Ye.apply(this,arguments)}finally{V=it}}}function se(Ye,at,it){var $t=e.unstable_now(),Nn;if(typeof it=="object"&&it!==null){var cr=it.delay;typeof cr=="number"&&cr>0?Nn=$t+cr:Nn=$t}else Nn=$t;var Wn;switch(Ye){case g:Wn=N;break;case C:Wn=z;break;case _:Wn=Y;break;case x:Wn=I;break;case b:default:Wn=M;break}var Ur=Nn+Wn,_n={id:P++,callback:at,priorityLevel:Ye,startTime:Nn,expirationTime:Ur,sortIndex:-1};return Nn>$t?(_n.sortIndex=Nn,l(U,_n),f(B)===null&&_n===f(U)&&(ne?Hn():ne=!0,Vt(te,Nn-$t))):(_n.sortIndex=Ur,l(B,_n),!ee&&!G&&(ee=!0,kn(oe))),_n}function ke(){}function De(){!ee&&!G&&(ee=!0,kn(oe))}function Pe(){return f(B)}function ge(Ye){Ye.callback=null}function $e(){return V}var Me=!1,et=null,ut=-1,Xt=i,Mt=-1;function Mn(){var Ye=e.unstable_now()-Mt;return!(Ye<Xt)}function Pn(){}function sn(Ye){Ye<0||Ye>125||(Ye>0?Xt=Math.floor(1e3/Ye):Xt=i)}var Jt=function(){if(et!==null){var Ye=e.unstable_now();Mt=Ye;var at=!0,it=!0;try{it=et(at,Ye)}finally{it?cn():(Me=!1,et=null)}}else Me=!1},cn;if(typeof Z=="function")cn=function(){Z(Jt)};else if(typeof MessageChannel<"u"){var Fn=new MessageChannel,Bn=Fn.port2;Fn.port1.onmessage=Jt,cn=function(){Bn.postMessage(null)}}else cn=function(){$(Jt,0)};function kn(Ye){et=Ye,Me||(Me=!0,cn())}function Vt(Ye,at){ut=$(function(){Ye(e.unstable_now())},at)}function Hn(){X(ut),ut=-1}var gr=Pn,ur=null;e.unstable_IdlePriority=_,e.unstable_ImmediatePriority=g,e.unstable_LowPriority=x,e.unstable_NormalPriority=b,e.unstable_Profiling=ur,e.unstable_UserBlockingPriority=C,e.unstable_cancelCallback=ge,e.unstable_continueExecution=De,e.unstable_forceFrameRate=sn,e.unstable_getCurrentPriorityLevel=$e,e.unstable_getFirstCallbackNode=Pe,e.unstable_next=ve,e.unstable_pauseExecution=ke,e.unstable_requestPaint=gr,e.unstable_runWithPriority=fe,e.unstable_scheduleCallback=se,e.unstable_shouldYield=Mn,e.unstable_wrapCallback=xe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Lb)),Lb}var N8;function M8(){return N8||(N8=1,function(e){process.env.NODE_ENV==="production"?e.exports=p9():e.exports=h9()}(Pb)),Pb.exports}var P8;function v9(){if(P8)return ai;P8=1;var e=W,r=M8();function t(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,v=1;v<arguments.length;v++)s+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function f(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(l[o]=s,o=0;o<s.length;o++)i.add(s[o])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},C={};function b(o){return m.call(C,o)?!0:m.call(g,o)?!1:d.test(o)?C[o]=!0:(g[o]=!0,!1)}function x(o,s,v,w){if(v!==null&&v.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return w?!1:v!==null?!v.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function _(o,s,v,w){if(s===null||typeof s>"u"||x(o,s,v,w))return!0;if(w)return!1;if(v!==null)switch(v.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function k(o,s,v,w,O,L,J){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=w,this.attributeNamespace=O,this.mustUseProperty=v,this.propertyName=o,this.type=s,this.sanitizeURL=L,this.removeEmptyString=J}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){E[o]=new k(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];E[s]=new k(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){E[o]=new k(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){E[o]=new k(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){E[o]=new k(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){E[o]=new k(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){E[o]=new k(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){E[o]=new k(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){E[o]=new k(o,5,!1,o.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function T(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!1,!1)}),E.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!0,!0)});function D(o,s,v,w){var O=E.hasOwnProperty(s)?E[s]:null;(O!==null?O.type!==0:w||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,v,O,w)&&(v=null),w||O===null?b(s)&&(v===null?o.removeAttribute(s):o.setAttribute(s,""+v)):O.mustUseProperty?o[O.propertyName]=v===null?O.type===3?!1:"":v:(s=O.attributeName,w=O.attributeNamespace,v===null?o.removeAttribute(s):(O=O.type,v=O===3||O===4&&v===!0?"":""+v,w?o.setAttributeNS(w,s,v):o.setAttribute(s,v))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),z=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),U=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),$=Symbol.iterator;function X(o){return o===null||typeof o!="object"?null:(o=$&&o[$]||o["@@iterator"],typeof o=="function"?o:null)}var Z=Object.assign,q;function te(o){if(q===void 0)try{throw Error()}catch(v){var s=v.stack.trim().match(/\n( *(at )?)/);q=s&&s[1]||""}return`
69
+ }`)),W.useEffect(function(){var h=r.current,m=n7(h);e7(c,"@ant-design-icons",{prepend:!f,csp:i,attachTo:m})},[])},d7=["icon","className","onClick","style","primaryColor","secondaryColor"],Dp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function p7(e){var r=e.primaryColor,t=e.secondaryColor;Dp.primaryColor=r,Dp.secondaryColor=t||u8(r),Dp.calculated=!!t}function h7(){return Ft({},Dp)}var lg=function(r){var t=r.icon,i=r.className,l=r.onClick,f=r.style,c=r.primaryColor,h=r.secondaryColor,m=Sp(r,d7),d=Ne.useRef(),g=Dp;if(c&&(g={primaryColor:c,secondaryColor:h||u8(c)}),f7(d),u7(l8(t),"icon should be icon definiton, but got ".concat(t)),!l8(t))return null;var C=t;return C&&typeof C.icon=="function"&&(C=Ft(Ft({},C),{},{icon:C.icon(g.primaryColor,g.secondaryColor)})),Rb(C.icon,"svg-".concat(C.name),Ft(Ft({className:i,onClick:l,style:f,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:d}))};lg.displayName="IconReact",lg.getTwoToneColors=h7,lg.setTwoToneColors=p7;const Fb=lg;function f8(e){var r=c8(e),t=mc(r,2),i=t[0],l=t[1];return Fb.setTwoToneColors({primaryColor:i,secondaryColor:l})}function v7(){var e=Fb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var m7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];f8(Eb.primary);var sg=Ne.forwardRef(function(e,r){var t=e.className,i=e.icon,l=e.spin,f=e.rotate,c=e.tabIndex,h=e.onClick,m=e.twoToneColor,d=Sp(e,m7),g=Ne.useContext(H4),C=g.prefixCls,b=C===void 0?"anticon":C,x=g.rootClassName,_=rs(x,b,Le(Le({},"".concat(b,"-").concat(i.name),!!i.name),"".concat(b,"-spin"),!!l||i.name==="loading"),t),k=c;k===void 0&&h&&(k=-1);var E=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=c8(m),T=mc(A,2),D=T[0],R=T[1];return Ne.createElement("span",Pr({role:"img","aria-label":i.name},d,{ref:r,tabIndex:k,onClick:h,className:_}),Ne.createElement(Fb,{icon:i,primaryColor:D,secondaryColor:R,style:E}))});sg.displayName="AntdIcon",sg.getTwoToneColor=v7,sg.setTwoToneColor=f8;const Qi=sg;var g7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const y7=g7;var x7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:y7}))},d8=Ne.forwardRef(x7);process.env.NODE_ENV!=="production"&&(d8.displayName="ArrowLeftOutlined");const b7=d8;var C7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const w7=C7;var _7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:w7}))},p8=Ne.forwardRef(_7);process.env.NODE_ENV!=="production"&&(p8.displayName="CheckOutlined");const h8=p8;var S7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const E7=S7;var D7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:E7}))},v8=Ne.forwardRef(D7);process.env.NODE_ENV!=="production"&&(v8.displayName="CloseCircleFilled");const k7=v8;var T7={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const A7=T7;var O7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:A7}))},m8=Ne.forwardRef(O7);process.env.NODE_ENV!=="production"&&(m8.displayName="CloseOutlined");const g8=m8;var R7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const F7=R7;var N7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:F7}))},y8=Ne.forwardRef(N7);process.env.NODE_ENV!=="production"&&(y8.displayName="DownOutlined");const M7=y8;var P7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const B7=P7;var L7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:B7}))},x8=Ne.forwardRef(L7);process.env.NODE_ENV!=="production"&&(x8.displayName="InfoCircleOutlined");const b8=x8;var z7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const U7=z7;var j7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:U7}))},C8=Ne.forwardRef(j7);process.env.NODE_ENV!=="production"&&(C8.displayName="MinusSquareOutlined");const w8=C8;var I7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const H7=I7;var V7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:H7}))},_8=Ne.forwardRef(V7);process.env.NODE_ENV!=="production"&&(_8.displayName="PlusOutlined");const Nb=_8;var $7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const Y7=$7;var q7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:Y7}))},S8=Ne.forwardRef(q7);process.env.NODE_ENV!=="production"&&(S8.displayName="PlusSquareOutlined");const E8=S8;var G7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const K7=G7;var W7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:K7}))},D8=Ne.forwardRef(W7);process.env.NODE_ENV!=="production"&&(D8.displayName="SyncOutlined");const Q7=D8;var Z7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const X7=Z7;var J7=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:X7}))},k8=Ne.forwardRef(J7);process.env.NODE_ENV!=="production"&&(k8.displayName="UpOutlined");const e9=k8;var t9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const n9=t9;var r9=function(r,t){return Ne.createElement(Qi,Pr({},r,{ref:t,icon:n9}))},T8=Ne.forwardRef(r9);process.env.NODE_ENV!=="production"&&(T8.displayName="UploadOutlined");const Mb=T8;var ug={exports:{}},yn={};var A8;function a9(){if(A8)return yn;A8=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function k(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case e:switch(E=E.type,E){case t:case l:case i:case d:case g:return E;default:switch(E=E&&E.$$typeof,E){case h:case c:case m:case b:case C:case f:return E;default:return A}}case r:return A}}}return yn.ContextConsumer=c,yn.ContextProvider=f,yn.Element=e,yn.ForwardRef=m,yn.Fragment=t,yn.Lazy=b,yn.Memo=C,yn.Portal=r,yn.Profiler=l,yn.StrictMode=i,yn.Suspense=d,yn.SuspenseList=g,yn.isAsyncMode=function(){return!1},yn.isConcurrentMode=function(){return!1},yn.isContextConsumer=function(E){return k(E)===c},yn.isContextProvider=function(E){return k(E)===f},yn.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},yn.isForwardRef=function(E){return k(E)===m},yn.isFragment=function(E){return k(E)===t},yn.isLazy=function(E){return k(E)===b},yn.isMemo=function(E){return k(E)===C},yn.isPortal=function(E){return k(E)===r},yn.isProfiler=function(E){return k(E)===l},yn.isStrictMode=function(E){return k(E)===i},yn.isSuspense=function(E){return k(E)===d},yn.isSuspenseList=function(E){return k(E)===g},yn.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===t||E===l||E===i||E===d||E===g||E===x||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===C||E.$$typeof===f||E.$$typeof===c||E.$$typeof===m||E.$$typeof===_||E.getModuleId!==void 0)},yn.typeOf=k,yn}var xn={};var O8;function i9(){return O8||(O8=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_=!1,k=!1,E=!1,A=!1,T=!1,D;D=Symbol.for("react.module.reference");function R(Me){return!!(typeof Me=="string"||typeof Me=="function"||Me===t||Me===l||T||Me===i||Me===d||Me===g||A||Me===x||_||k||E||typeof Me=="object"&&Me!==null&&(Me.$$typeof===b||Me.$$typeof===C||Me.$$typeof===f||Me.$$typeof===c||Me.$$typeof===m||Me.$$typeof===D||Me.getModuleId!==void 0))}function N(Me){if(typeof Me=="object"&&Me!==null){var et=Me.$$typeof;switch(et){case e:var ut=Me.type;switch(ut){case t:case l:case i:case d:case g:return ut;default:var Xt=ut&&ut.$$typeof;switch(Xt){case h:case c:case m:case b:case C:case f:return Xt;default:return et}}case r:return et}}}var z=c,M=f,I=e,Y=m,B=t,U=b,P=C,H=r,V=l,G=i,ee=d,ne=g,$=!1,X=!1;function Z(Me){return $||($=!0),!1}function q(Me){return X||(X=!0),!1}function te(Me){return N(Me)===c}function oe(Me){return N(Me)===f}function ae(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===e}function fe(Me){return N(Me)===m}function ve(Me){return N(Me)===t}function xe(Me){return N(Me)===b}function se(Me){return N(Me)===C}function ke(Me){return N(Me)===r}function De(Me){return N(Me)===l}function Pe(Me){return N(Me)===i}function ge(Me){return N(Me)===d}function $e(Me){return N(Me)===g}xn.ContextConsumer=z,xn.ContextProvider=M,xn.Element=I,xn.ForwardRef=Y,xn.Fragment=B,xn.Lazy=U,xn.Memo=P,xn.Portal=H,xn.Profiler=V,xn.StrictMode=G,xn.Suspense=ee,xn.SuspenseList=ne,xn.isAsyncMode=Z,xn.isConcurrentMode=q,xn.isContextConsumer=te,xn.isContextProvider=oe,xn.isElement=ae,xn.isForwardRef=fe,xn.isFragment=ve,xn.isLazy=xe,xn.isMemo=se,xn.isPortal=ke,xn.isProfiler=De,xn.isStrictMode=Pe,xn.isSuspense=ge,xn.isSuspenseList=$e,xn.isValidElementType=R,xn.typeOf=N}()),xn}(function(e){process.env.NODE_ENV==="production"?e.exports=a9():e.exports=i9()})(ug);var o9=Symbol.for("react.element"),l9=Symbol.for("react.transitional.element"),s9=Symbol.for("react.fragment");function u9(e){return e&&Br(e)==="object"&&(e.$$typeof===o9||e.$$typeof===l9)&&e.type===s9}const cg={main:"backheader-module_main_cac53",title:"backheader-module_title_33439",sub:"backheader-module_sub_1d015",btn:"backheader-module_btn_ee841"},{Title:c9,Text:f9}=me.Typography,d9=e=>{const{isBack:r=!0,title:t,extra:i,subTitle:l=null,className:f,style:c,titleStyle:h,level:m=2,icon:d,onBack:g}=e,C=MF.useNavigate(),b=()=>typeof l=="string"?Q(f9,{className:cg.sub,children:l}):l,x=()=>{if(g){g==null||g();return}C(-1)};return Be("div",{className:rs(cg.main,f),style:c,children:[Be(me.Space,{children:[r&&Q("div",{onClick:x,className:cg.btn,children:d||Q(b7,{style:{fontSize:24}})}),Be(c9,{level:m,className:cg.title,style:h,children:[t,b()]})]}),i]})};var tu={exports:{}},ai={},Pb={exports:{}},Bb={};var R8;function p9(){return R8||(R8=1,function(e){function r($,X){var Z=$.length;$.push(X);e:for(;0<Z;){var q=Z-1>>>1,te=$[q];if(0<l(te,X))$[q]=X,$[Z]=te,Z=q;else break e}}function t($){return $.length===0?null:$[0]}function i($){if($.length===0)return null;var X=$[0],Z=$.pop();if(Z!==X){$[0]=Z;e:for(var q=0,te=$.length,oe=te>>>1;q<oe;){var ae=2*(q+1)-1,fe=$[ae],ve=ae+1,xe=$[ve];if(0>l(fe,Z))ve<te&&0>l(xe,fe)?($[q]=xe,$[ve]=Z,q=ve):($[q]=fe,$[ae]=Z,q=ae);else if(ve<te&&0>l(xe,Z))$[q]=xe,$[ve]=Z,q=ve;else break e}}return X}function l($,X){var Z=$.sortIndex-X.sortIndex;return Z!==0?Z:$.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;e.unstable_now=function(){return f.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var m=[],d=[],g=1,C=null,b=3,x=!1,_=!1,k=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D($){for(var X=t(d);X!==null;){if(X.callback===null)i(d);else if(X.startTime<=$)i(d),X.sortIndex=X.expirationTime,r(m,X);else break;X=t(d)}}function R($){if(k=!1,D($),!_)if(t(m)!==null)_=!0,ee(N);else{var X=t(d);X!==null&&ne(R,X.startTime-$)}}function N($,X){_=!1,k&&(k=!1,A(I),I=-1),x=!0;var Z=b;try{for(D(X),C=t(m);C!==null&&(!(C.expirationTime>X)||$&&!U());){var q=C.callback;if(typeof q=="function"){C.callback=null,b=C.priorityLevel;var te=q(C.expirationTime<=X);X=e.unstable_now(),typeof te=="function"?C.callback=te:C===t(m)&&i(m),D(X)}else i(m);C=t(m)}if(C!==null)var oe=!0;else{var ae=t(d);ae!==null&&ne(R,ae.startTime-X),oe=!1}return oe}finally{C=null,b=Z,x=!1}}var z=!1,M=null,I=-1,Y=5,B=-1;function U(){return!(e.unstable_now()-B<Y)}function P(){if(M!==null){var $=e.unstable_now();B=$;var X=!0;try{X=M(!0,$)}finally{X?H():(z=!1,M=null)}}else z=!1}var H;if(typeof T=="function")H=function(){T(P)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,G=V.port2;V.port1.onmessage=P,H=function(){G.postMessage(null)}}else H=function(){E(P,0)};function ee($){M=$,z||(z=!0,H())}function ne($,X){I=E(function(){$(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,ee(N))},e.unstable_forceFrameRate=function($){0>$||125<$||(Y=0<$?Math.floor(1e3/$):5)},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return t(m)},e.unstable_next=function($){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var Z=b;b=X;try{return $()}finally{b=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Z=b;b=$;try{return X()}finally{b=Z}},e.unstable_scheduleCallback=function($,X,Z){var q=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?q+Z:q):Z=q,$){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=Z+te,$={id:g++,callback:X,priorityLevel:$,startTime:Z,expirationTime:te,sortIndex:-1},Z>q?($.sortIndex=Z,r(d,$),t(m)===null&&$===t(d)&&(k?(A(I),I=-1):k=!0,ne(R,Z-q))):($.sortIndex=te,r(m,$),_||x||(_=!0,ee(N))),$},e.unstable_shouldYield=U,e.unstable_wrapCallback=function($){var X=b;return function(){var Z=b;b=X;try{return $.apply(this,arguments)}finally{b=Z}}}}(Bb)),Bb}var Lb={};var F8;function h9(){return F8||(F8=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,t=!1,i=5;function l(Ye,it){var rt=Ye.length;Ye.push(it),h(Ye,it,rt)}function f(Ye){return Ye.length===0?null:Ye[0]}function c(Ye){if(Ye.length===0)return null;var it=Ye[0],rt=Ye.pop();return rt!==it&&(Ye[0]=rt,m(Ye,rt,0)),it}function h(Ye,it,rt){for(var $t=rt;$t>0;){var Nn=$t-1>>>1,cr=Ye[Nn];if(d(cr,it)>0)Ye[Nn]=it,Ye[$t]=cr,$t=Nn;else return}}function m(Ye,it,rt){for(var $t=rt,Nn=Ye.length,cr=Nn>>>1;$t<cr;){var Wn=($t+1)*2-1,Ur=Ye[Wn],_n=Wn+1,ra=Ye[_n];if(d(Ur,it)<0)_n<Nn&&d(ra,Ur)<0?(Ye[$t]=ra,Ye[_n]=it,$t=_n):(Ye[$t]=Ur,Ye[Wn]=it,$t=Wn);else if(_n<Nn&&d(ra,it)<0)Ye[$t]=ra,Ye[_n]=it,$t=_n;else return}}function d(Ye,it){var rt=Ye.sortIndex-it.sortIndex;return rt!==0?rt:Ye.id-it.id}var g=1,C=2,b=3,x=4,_=5;function k(Ye,it){}var E=typeof performance=="object"&&typeof performance.now=="function";if(E){var A=performance;e.unstable_now=function(){return A.now()}}else{var T=Date,D=T.now();e.unstable_now=function(){return T.now()-D}}var R=1073741823,N=-1,z=250,M=5e3,I=1e4,Y=R,B=[],U=[],P=1,H=null,V=b,G=!1,ee=!1,ne=!1,$=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function q(Ye){for(var it=f(U);it!==null;){if(it.callback===null)c(U);else if(it.startTime<=Ye)c(U),it.sortIndex=it.expirationTime,l(B,it);else return;it=f(U)}}function te(Ye){if(ne=!1,q(Ye),!ee)if(f(B)!==null)ee=!0,kn(oe);else{var it=f(U);it!==null&&Vt(te,it.startTime-Ye)}}function oe(Ye,it){ee=!1,ne&&(ne=!1,Hn()),G=!0;var rt=V;try{var $t;if(!t)return ae(Ye,it)}finally{H=null,V=rt,G=!1}}function ae(Ye,it){var rt=it;for(q(rt),H=f(B);H!==null&&!r&&!(H.expirationTime>rt&&(!Ye||Mn()));){var $t=H.callback;if(typeof $t=="function"){H.callback=null,V=H.priorityLevel;var Nn=H.expirationTime<=rt,cr=$t(Nn);rt=e.unstable_now(),typeof cr=="function"?H.callback=cr:H===f(B)&&c(B),q(rt)}else c(B);H=f(B)}if(H!==null)return!0;var Wn=f(U);return Wn!==null&&Vt(te,Wn.startTime-rt),!1}function fe(Ye,it){switch(Ye){case g:case C:case b:case x:case _:break;default:Ye=b}var rt=V;V=Ye;try{return it()}finally{V=rt}}function ve(Ye){var it;switch(V){case g:case C:case b:it=b;break;default:it=V;break}var rt=V;V=it;try{return Ye()}finally{V=rt}}function xe(Ye){var it=V;return function(){var rt=V;V=it;try{return Ye.apply(this,arguments)}finally{V=rt}}}function se(Ye,it,rt){var $t=e.unstable_now(),Nn;if(typeof rt=="object"&&rt!==null){var cr=rt.delay;typeof cr=="number"&&cr>0?Nn=$t+cr:Nn=$t}else Nn=$t;var Wn;switch(Ye){case g:Wn=N;break;case C:Wn=z;break;case _:Wn=Y;break;case x:Wn=I;break;case b:default:Wn=M;break}var Ur=Nn+Wn,_n={id:P++,callback:it,priorityLevel:Ye,startTime:Nn,expirationTime:Ur,sortIndex:-1};return Nn>$t?(_n.sortIndex=Nn,l(U,_n),f(B)===null&&_n===f(U)&&(ne?Hn():ne=!0,Vt(te,Nn-$t))):(_n.sortIndex=Ur,l(B,_n),!ee&&!G&&(ee=!0,kn(oe))),_n}function ke(){}function De(){!ee&&!G&&(ee=!0,kn(oe))}function Pe(){return f(B)}function ge(Ye){Ye.callback=null}function $e(){return V}var Me=!1,et=null,ut=-1,Xt=i,Mt=-1;function Mn(){var Ye=e.unstable_now()-Mt;return!(Ye<Xt)}function Pn(){}function sn(Ye){Ye<0||Ye>125||(Ye>0?Xt=Math.floor(1e3/Ye):Xt=i)}var Jt=function(){if(et!==null){var Ye=e.unstable_now();Mt=Ye;var it=!0,rt=!0;try{rt=et(it,Ye)}finally{rt?cn():(Me=!1,et=null)}}else Me=!1},cn;if(typeof Z=="function")cn=function(){Z(Jt)};else if(typeof MessageChannel<"u"){var Fn=new MessageChannel,Bn=Fn.port2;Fn.port1.onmessage=Jt,cn=function(){Bn.postMessage(null)}}else cn=function(){$(Jt,0)};function kn(Ye){et=Ye,Me||(Me=!0,cn())}function Vt(Ye,it){ut=$(function(){Ye(e.unstable_now())},it)}function Hn(){X(ut),ut=-1}var gr=Pn,ur=null;e.unstable_IdlePriority=_,e.unstable_ImmediatePriority=g,e.unstable_LowPriority=x,e.unstable_NormalPriority=b,e.unstable_Profiling=ur,e.unstable_UserBlockingPriority=C,e.unstable_cancelCallback=ge,e.unstable_continueExecution=De,e.unstable_forceFrameRate=sn,e.unstable_getCurrentPriorityLevel=$e,e.unstable_getFirstCallbackNode=Pe,e.unstable_next=ve,e.unstable_pauseExecution=ke,e.unstable_requestPaint=gr,e.unstable_runWithPriority=fe,e.unstable_scheduleCallback=se,e.unstable_shouldYield=Mn,e.unstable_wrapCallback=xe,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Lb)),Lb}var N8;function M8(){return N8||(N8=1,function(e){process.env.NODE_ENV==="production"?e.exports=p9():e.exports=h9()}(Pb)),Pb.exports}var P8;function v9(){if(P8)return ai;P8=1;var e=W,r=M8();function t(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,v=1;v<arguments.length;v++)s+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function f(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(l[o]=s,o=0;o<s.length;o++)i.add(s[o])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},C={};function b(o){return m.call(C,o)?!0:m.call(g,o)?!1:d.test(o)?C[o]=!0:(g[o]=!0,!1)}function x(o,s,v,w){if(v!==null&&v.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return w?!1:v!==null?!v.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function _(o,s,v,w){if(s===null||typeof s>"u"||x(o,s,v,w))return!0;if(w)return!1;if(v!==null)switch(v.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function k(o,s,v,w,O,L,J){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=w,this.attributeNamespace=O,this.mustUseProperty=v,this.propertyName=o,this.type=s,this.sanitizeURL=L,this.removeEmptyString=J}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){E[o]=new k(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];E[s]=new k(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){E[o]=new k(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){E[o]=new k(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){E[o]=new k(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){E[o]=new k(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){E[o]=new k(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){E[o]=new k(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){E[o]=new k(o,5,!1,o.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function T(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(A,T);E[s]=new k(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!1,!1)}),E.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){E[o]=new k(o,1,!1,o.toLowerCase(),null,!0,!0)});function D(o,s,v,w){var O=E.hasOwnProperty(s)?E[s]:null;(O!==null?O.type!==0:w||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(_(s,v,O,w)&&(v=null),w||O===null?b(s)&&(v===null?o.removeAttribute(s):o.setAttribute(s,""+v)):O.mustUseProperty?o[O.propertyName]=v===null?O.type===3?!1:"":v:(s=O.attributeName,w=O.attributeNamespace,v===null?o.removeAttribute(s):(O=O.type,v=O===3||O===4&&v===!0?"":""+v,w?o.setAttributeNS(w,s,v):o.setAttribute(s,v))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),z=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),U=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),$=Symbol.iterator;function X(o){return o===null||typeof o!="object"?null:(o=$&&o[$]||o["@@iterator"],typeof o=="function"?o:null)}var Z=Object.assign,q;function te(o){if(q===void 0)try{throw Error()}catch(v){var s=v.stack.trim().match(/\n( *(at )?)/);q=s&&s[1]||""}return`
70
70
  `+q+o}var oe=!1;function ae(o,s){if(!o||oe)return"";oe=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(Ee){var w=Ee}Reflect.construct(o,[],s)}else{try{s.call()}catch(Ee){w=Ee}o.call(s.prototype)}else{try{throw Error()}catch(Ee){w=Ee}o()}}catch(Ee){if(Ee&&w&&typeof Ee.stack=="string"){for(var O=Ee.stack.split(`
71
71
  `),L=w.stack.split(`
72
72
  `),J=O.length-1,le=L.length-1;1<=J&&0<=le&&O[J]!==L[le];)le--;for(;1<=J&&0<=le;J--,le--)if(O[J]!==L[le]){if(J!==1||le!==1)do if(J--,le--,0>le||O[J]!==L[le]){var ce=`
73
- `+O[J].replace(" at new "," at ");return o.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",o.displayName)),ce}while(1<=J&&0<=le);break}}}finally{oe=!1,Error.prepareStackTrace=v}return(o=o?o.displayName||o.name:"")?te(o):""}function fe(o){switch(o.tag){case 5:return te(o.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 2:case 15:return o=ae(o.type,!1),o;case 11:return o=ae(o.type.render,!1),o;case 1:return o=ae(o.type,!0),o;default:return""}}function ve(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case M:return"Fragment";case z:return"Portal";case Y:return"Profiler";case I:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case U:return(o.displayName||"Context")+".Consumer";case B:return(o._context.displayName||"Context")+".Provider";case P:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case G:return s=o.displayName||null,s!==null?s:ve(o.type)||"Memo";case ee:s=o._payload,o=o._init;try{return ve(o(s))}catch{}}return null}function xe(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(s);case 8:return s===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function se(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ke(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function De(o){var s=ke(o)?"checked":"value",v=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),w=""+o[s];if(!o.hasOwnProperty(s)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var O=v.get,L=v.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return O.call(this)},set:function(J){w=""+J,L.call(this,J)}}),Object.defineProperty(o,s,{enumerable:v.enumerable}),{getValue:function(){return w},setValue:function(J){w=""+J},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Pe(o){o._valueTracker||(o._valueTracker=De(o))}function ge(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var v=s.getValue(),w="";return o&&(w=ke(o)?o.checked?"true":"false":o.value),o=w,o!==v?(s.setValue(o),!0):!1}function $e(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Me(o,s){var v=s.checked;return Z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??o._wrapperState.initialChecked})}function et(o,s){var v=s.defaultValue==null?"":s.defaultValue,w=s.checked!=null?s.checked:s.defaultChecked;v=se(s.value!=null?s.value:v),o._wrapperState={initialChecked:w,initialValue:v,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ut(o,s){s=s.checked,s!=null&&D(o,"checked",s,!1)}function Xt(o,s){ut(o,s);var v=se(s.value),w=s.type;if(v!=null)w==="number"?(v===0&&o.value===""||o.value!=v)&&(o.value=""+v):o.value!==""+v&&(o.value=""+v);else if(w==="submit"||w==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Mn(o,s.type,v):s.hasOwnProperty("defaultValue")&&Mn(o,s.type,se(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function Mt(o,s,v){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var w=s.type;if(!(w!=="submit"&&w!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,v||s===o.value||(o.value=s),o.defaultValue=s}v=o.name,v!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,v!==""&&(o.name=v)}function Mn(o,s,v){(s!=="number"||$e(o.ownerDocument)!==o)&&(v==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+v&&(o.defaultValue=""+v))}var Pn=Array.isArray;function sn(o,s,v,w){if(o=o.options,s){s={};for(var O=0;O<v.length;O++)s["$"+v[O]]=!0;for(v=0;v<o.length;v++)O=s.hasOwnProperty("$"+o[v].value),o[v].selected!==O&&(o[v].selected=O),O&&w&&(o[v].defaultSelected=!0)}else{for(v=""+se(v),s=null,O=0;O<o.length;O++){if(o[O].value===v){o[O].selected=!0,w&&(o[O].defaultSelected=!0);return}s!==null||o[O].disabled||(s=o[O])}s!==null&&(s.selected=!0)}}function Jt(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(t(91));return Z({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function cn(o,s){var v=s.value;if(v==null){if(v=s.children,s=s.defaultValue,v!=null){if(s!=null)throw Error(t(92));if(Pn(v)){if(1<v.length)throw Error(t(93));v=v[0]}s=v}s==null&&(s=""),v=s}o._wrapperState={initialValue:se(v)}}function Fn(o,s){var v=se(s.value),w=se(s.defaultValue);v!=null&&(v=""+v,v!==o.value&&(o.value=v),s.defaultValue==null&&o.defaultValue!==v&&(o.defaultValue=v)),w!=null&&(o.defaultValue=""+w)}function Bn(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function kn(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Vt(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?kn(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Hn,gr=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,v,w,O){MSApp.execUnsafeLocalFunction(function(){return o(s,v,w,O)})}:o}(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Hn=Hn||document.createElement("div"),Hn.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Hn.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function ur(o,s){if(s){var v=o.firstChild;if(v&&v===o.lastChild&&v.nodeType===3){v.nodeValue=s;return}}o.textContent=s}var Ye={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},at=["Webkit","ms","Moz","O"];Object.keys(Ye).forEach(function(o){at.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Ye[s]=Ye[o]})});function it(o,s,v){return s==null||typeof s=="boolean"||s===""?"":v||typeof s!="number"||s===0||Ye.hasOwnProperty(o)&&Ye[o]?(""+s).trim():s+"px"}function $t(o,s){o=o.style;for(var v in s)if(s.hasOwnProperty(v)){var w=v.indexOf("--")===0,O=it(v,s[v],w);v==="float"&&(v="cssFloat"),w?o.setProperty(v,O):o[v]=O}}var Nn=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cr(o,s){if(s){if(Nn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(t(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(t(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(t(61))}if(s.style!=null&&typeof s.style!="object")throw Error(t(62))}}function Wn(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ur=null;function _n(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ra=null,vn=null,mn=null;function yl(o){if(o=ff(o)){if(typeof ra!="function")throw Error(t(280));var s=o.stateNode;s&&(s=ht(s),ra(o.stateNode,o.type,s))}}function Do(o){vn?mn?mn.push(o):mn=[o]:vn=o}function xl(){if(vn){var o=vn,s=mn;if(mn=vn=null,yl(o),s)for(o=0;o<s.length;o++)yl(s[o])}}function bl(o,s){return o(s)}function gu(){}var ko=!1;function To(o,s,v){if(ko)return o(s,v);ko=!0;try{return bl(o,s,v)}finally{ko=!1,(vn!==null||mn!==null)&&(gu(),xl())}}function Ao(o,s){var v=o.stateNode;if(v===null)return null;var w=ht(v);if(w===null)return null;v=w[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(o=o.type,w=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!w;break e;default:o=!1}if(o)return null;if(v&&typeof v!="function")throw Error(t(231,s,typeof v));return v}var Oo=!1;if(h)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Oo=!1}function jr(o,s,v,w,O,L,J,le,ce){var Ee=Array.prototype.slice.call(arguments,3);try{s.apply(v,Ee)}catch(je){this.onError(je)}}var aa=!1,Ya=null,Cl=!1,ue=null,Ie={onError:function(o){aa=!0,Ya=o}};function Qe(o,s,v,w,O,L,J,le,ce){aa=!1,Ya=null,jr.apply(Ie,arguments)}function mt(o,s,v,w,O,L,J,le,ce){if(Qe.apply(this,arguments),aa){if(aa){var Ee=Ya;aa=!1,Ya=null}else throw Error(t(198));Cl||(Cl=!0,ue=Ee)}}function Rt(o){var s=o,v=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,s.flags&4098&&(v=s.return),o=s.return;while(o)}return s.tag===3?v:null}function en(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function Pt(o){if(Rt(o)!==o)throw Error(t(188))}function yt(o){var s=o.alternate;if(!s){if(s=Rt(o),s===null)throw Error(t(188));return s!==o?null:o}for(var v=o,w=s;;){var O=v.return;if(O===null)break;var L=O.alternate;if(L===null){if(w=O.return,w!==null){v=w;continue}break}if(O.child===L.child){for(L=O.child;L;){if(L===v)return Pt(O),o;if(L===w)return Pt(O),s;L=L.sibling}throw Error(t(188))}if(v.return!==w.return)v=O,w=L;else{for(var J=!1,le=O.child;le;){if(le===v){J=!0,v=O,w=L;break}if(le===w){J=!0,w=O,v=L;break}le=le.sibling}if(!J){for(le=L.child;le;){if(le===v){J=!0,v=L,w=O;break}if(le===w){J=!0,w=L,v=O;break}le=le.sibling}if(!J)throw Error(t(189))}}if(v.alternate!==w)throw Error(t(190))}if(v.tag!==3)throw Error(t(188));return v.stateNode.current===v?o:s}function Dr(o){return o=yt(o),o!==null?$n(o):null}function $n(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=$n(o);if(s!==null)return s;o=o.sibling}return null}var Yn=r.unstable_scheduleCallback,ha=r.unstable_cancelCallback,wl=r.unstable_shouldYield,Ad=r.unstable_requestPaint,rn=r.unstable_now,s_=r.unstable_getCurrentPriorityLevel,Ro=r.unstable_ImmediatePriority,jt=r.unstable_UserBlockingPriority,_l=r.unstable_NormalPriority,Cy=r.unstable_LowPriority,Vh=r.unstable_IdlePriority,Vc=null,Ui=null;function wy(o){if(Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(Vc,o,void 0,(o.current.flags&128)===128)}catch{}}var ci=Math.clz32?Math.clz32:u_,_y=Math.log,Sy=Math.LN2;function u_(o){return o>>>=0,o===0?32:31-(_y(o)/Sy|0)|0}var Od=64,yu=4194304;function ds(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ji(o,s){var v=o.pendingLanes;if(v===0)return 0;var w=0,O=o.suspendedLanes,L=o.pingedLanes,J=v&268435455;if(J!==0){var le=J&~O;le!==0?w=ds(le):(L&=J,L!==0&&(w=ds(L)))}else J=v&~O,J!==0?w=ds(J):L!==0&&(w=ds(L));if(w===0)return 0;if(s!==0&&s!==w&&!(s&O)&&(O=w&-w,L=s&-s,O>=L||O===16&&(L&4194240)!==0))return s;if(w&4&&(w|=v&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=w;0<s;)v=31-ci(s),O=1<<v,w|=o[v],s&=~O;return w}function $h(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rd(o,s){for(var v=o.suspendedLanes,w=o.pingedLanes,O=o.expirationTimes,L=o.pendingLanes;0<L;){var J=31-ci(L),le=1<<J,ce=O[J];ce===-1?(!(le&v)||le&w)&&(O[J]=$h(le,s)):ce<=s&&(o.expiredLanes|=le),L&=~le}}function Yh(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Fd(){var o=Od;return Od<<=1,!(Od&4194240)&&(Od=64),o}function qh(o){for(var s=[],v=0;31>v;v++)s.push(o);return s}function ps(o,s,v){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-ci(s),o[s]=v}function c_(o,s){var v=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var w=o.eventTimes;for(o=o.expirationTimes;0<v;){var O=31-ci(v),L=1<<O;s[O]=0,w[O]=-1,o[O]=-1,v&=~L}}function $c(o,s){var v=o.entangledLanes|=s;for(o=o.entanglements;v;){var w=31-ci(v),O=1<<w;O&s|o[w]&s&&(o[w]|=s),v&=~O}}var gn=0;function Gh(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var Ey,Nd,Tn,Dy,Kh,Tt=!1,Yc=[],fr=null,fi=null,di=null,qc=new Map,yr=new Map,Sn=[],f_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ii(o,s){switch(o){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":qc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":yr.delete(s.pointerId)}}function ia(o,s,v,w,O,L){return o===null||o.nativeEvent!==L?(o={blockedOn:s,domEventName:v,eventSystemFlags:w,nativeEvent:L,targetContainers:[O]},s!==null&&(s=ff(s),s!==null&&Nd(s)),o):(o.eventSystemFlags|=w,s=o.targetContainers,O!==null&&s.indexOf(O)===-1&&s.push(O),o)}function Sl(o,s,v,w,O){switch(s){case"focusin":return fr=ia(fr,o,s,v,w,O),!0;case"dragenter":return fi=ia(fi,o,s,v,w,O),!0;case"mouseover":return di=ia(di,o,s,v,w,O),!0;case"pointerover":var L=O.pointerId;return qc.set(L,ia(qc.get(L)||null,o,s,v,w,O)),!0;case"gotpointercapture":return L=O.pointerId,yr.set(L,ia(yr.get(L)||null,o,s,v,w,O)),!0}return!1}function ky(o){var s=hi(o.target);if(s!==null){var v=Rt(s);if(v!==null){if(s=v.tag,s===13){if(s=en(v),s!==null){o.blockedOn=s,Kh(o.priority,function(){Tn(v)});return}}else if(s===3&&v.stateNode.current.memoizedState.isDehydrated){o.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}o.blockedOn=null}function xu(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var v=Bd(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(v===null){v=o.nativeEvent;var w=new v.constructor(v.type,v);Ur=w,v.target.dispatchEvent(w),Ur=null}else return s=ff(v),s!==null&&Nd(s),o.blockedOn=v,!1;s.shift()}return!0}function Wh(o,s,v){xu(o)&&v.delete(s)}function Ty(){Tt=!1,fr!==null&&xu(fr)&&(fr=null),fi!==null&&xu(fi)&&(fi=null),di!==null&&xu(di)&&(di=null),qc.forEach(Wh),yr.forEach(Wh)}function Gc(o,s){o.blockedOn===s&&(o.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ty)))}function Kc(o){function s(O){return Gc(O,o)}if(0<Yc.length){Gc(Yc[0],o);for(var v=1;v<Yc.length;v++){var w=Yc[v];w.blockedOn===o&&(w.blockedOn=null)}}for(fr!==null&&Gc(fr,o),fi!==null&&Gc(fi,o),di!==null&&Gc(di,o),qc.forEach(s),yr.forEach(s),v=0;v<Sn.length;v++)w=Sn[v],w.blockedOn===o&&(w.blockedOn=null);for(;0<Sn.length&&(v=Sn[0],v.blockedOn===null);)ky(v),v.blockedOn===null&&Sn.shift()}var bu=R.ReactCurrentBatchConfig,hs=!0;function Ay(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=1,Pd(o,s,v,w)}finally{gn=O,bu.transition=L}}function Md(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=4,Pd(o,s,v,w)}finally{gn=O,bu.transition=L}}function Pd(o,s,v,w){if(hs){var O=Bd(o,s,v,w);if(O===null)Kd(o,s,w,Wc,v),Ii(o,w);else if(Sl(O,o,s,v,w))w.stopPropagation();else if(Ii(o,w),s&4&&-1<f_.indexOf(o)){for(;O!==null;){var L=ff(O);if(L!==null&&Ey(L),L=Bd(o,s,v,w),L===null&&Kd(o,s,w,Wc,v),L===O)break;O=L}O!==null&&w.stopPropagation()}else Kd(o,s,w,null,v)}}var Wc=null;function Bd(o,s,v,w){if(Wc=null,o=_n(w),o=hi(o),o!==null)if(s=Rt(o),s===null)o=null;else if(v=s.tag,v===13){if(o=en(s),o!==null)return o;o=null}else if(v===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Wc=o,null}function Qh(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(s_()){case Ro:return 1;case jt:return 4;case _l:case Cy:return 16;case Vh:return 536870912;default:return 16}default:return 16}}var Fo=null,Qc=null,Zc=null;function Zh(){if(Zc)return Zc;var o,s=Qc,v=s.length,w,O="value"in Fo?Fo.value:Fo.textContent,L=O.length;for(o=0;o<v&&s[o]===O[o];o++);var J=v-o;for(w=1;w<=J&&s[v-w]===O[L-w];w++);return Zc=O.slice(o,1<w?1-w:void 0)}function Cu(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Xc(){return!0}function Oy(){return!1}function qa(o){function s(v,w,O,L,J){this._reactName=v,this._targetInst=O,this.type=w,this.nativeEvent=L,this.target=J,this.currentTarget=null;for(var le in o)o.hasOwnProperty(le)&&(v=o[le],this[le]=v?v(L):L[le]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Xc:Oy,this.isPropagationStopped=Oy,this}return Z(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),s}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=qa(El),wu=Z({},El,{view:0,detail:0}),Ry=qa(wu),zd,Xh,Jc,kr=Z({},wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nv,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Jc&&(Jc&&o.type==="mousemove"?(zd=o.screenX-Jc.screenX,Xh=o.screenY-Jc.screenY):Xh=zd=0,Jc=o),zd)},movementY:function(o){return"movementY"in o?o.movementY:Xh}}),Ud=qa(kr),Fy=Z({},kr,{dataTransfer:0}),Ny=qa(Fy),d_=Z({},wu,{relatedTarget:0}),Dl=qa(d_),Jh=Z({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),My=qa(Jh),p_=Z({},El,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),h_=qa(p_),v_=Z({},El,{data:0}),ev=qa(v_),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ly(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=By[o])?!!s[o]:!1}function nv(){return Ly}var No=Z({},wu,{key:function(o){if(o.key){var s=tv[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Cu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Py[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nv,charCode:function(o){return o.type==="keypress"?Cu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),m_=qa(No),rv=Z({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=qa(rv),av=Z({},wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nv}),g_=qa(av),Id=Z({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=qa(Id),Ta=Z({},kr,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Mo=qa(Ta),dr=[9,13,27,32],Hi=h&&"CompositionEvent"in window,vs=null;h&&"documentMode"in document&&(vs=document.documentMode);var Hd=h&&"TextEvent"in window&&!vs,Uy=h&&(!Hi||vs&&8<vs&&11>=vs),_u=String.fromCharCode(32),jy=!1;function Iy(o,s){switch(o){case"keyup":return dr.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Su=!1;function y_(o,s){switch(o){case"compositionend":return Vd(s);case"keypress":return s.which!==32?null:(jy=!0,_u);case"textInput":return o=s.data,o===_u&&jy?null:o;default:return null}}function x_(o,s){if(Su)return o==="compositionend"||!Hi&&Iy(o,s)?(o=Zh(),Zc=Qc=Fo=null,Su=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Uy&&s.locale!=="ko"?null:s.data;default:return null}}var Hy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vy(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!Hy[o.type]:s==="textarea"}function $y(o,s,v,w){Do(w),s=sf(s,"onChange"),0<s.length&&(v=new Ld("onChange","change",null,v,w),o.push({event:v,listeners:s}))}var ef=null,Eu=null;function Du(o){Gd(o,0)}function ku(o){var s=Au(o);if(ge(s))return o}function Yy(o,s){if(o==="change")return s}var iv=!1;if(h){var ov;if(h){var lv="oninput"in document;if(!lv){var qy=document.createElement("div");qy.setAttribute("oninput","return;"),lv=typeof qy.oninput=="function"}ov=lv}else ov=!1;iv=ov&&(!document.documentMode||9<document.documentMode)}function Gy(){ef&&(ef.detachEvent("onpropertychange",Ky),Eu=ef=null)}function Ky(o){if(o.propertyName==="value"&&ku(Eu)){var s=[];$y(s,Eu,o,_n(o)),To(Du,s)}}function b_(o,s,v){o==="focusin"?(Gy(),ef=s,Eu=v,ef.attachEvent("onpropertychange",Ky)):o==="focusout"&&Gy()}function C_(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ku(Eu)}function w_(o,s){if(o==="click")return ku(s)}function Wy(o,s){if(o==="input"||o==="change")return ku(s)}function __(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var pi=typeof Object.is=="function"?Object.is:__;function tf(o,s){if(pi(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var v=Object.keys(o),w=Object.keys(s);if(v.length!==w.length)return!1;for(w=0;w<v.length;w++){var O=v[w];if(!m.call(s,O)||!pi(o[O],s[O]))return!1}return!0}function Qy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Zy(o,s){var v=Qy(o);o=0;for(var w;v;){if(v.nodeType===3){if(w=o+v.textContent.length,o<=s&&w>=s)return{node:v,offset:s-o};o=w}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Qy(v)}}function Xy(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Xy(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function $d(){for(var o=window,s=$e();s instanceof o.HTMLIFrameElement;){try{var v=typeof s.contentWindow.location.href=="string"}catch{v=!1}if(v)o=s.contentWindow;else break;s=$e(o.document)}return s}function Po(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function Yd(o){var s=$d(),v=o.focusedElem,w=o.selectionRange;if(s!==v&&v&&v.ownerDocument&&Xy(v.ownerDocument.documentElement,v)){if(w!==null&&Po(v)){if(s=w.start,o=w.end,o===void 0&&(o=s),"selectionStart"in v)v.selectionStart=s,v.selectionEnd=Math.min(o,v.value.length);else if(o=(s=v.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var O=v.textContent.length,L=Math.min(w.start,O);w=w.end===void 0?L:Math.min(w.end,O),!o.extend&&L>w&&(O=w,w=L,L=O),O=Zy(v,L);var J=Zy(v,w);O&&J&&(o.rangeCount!==1||o.anchorNode!==O.node||o.anchorOffset!==O.offset||o.focusNode!==J.node||o.focusOffset!==J.offset)&&(s=s.createRange(),s.setStart(O.node,O.offset),o.removeAllRanges(),L>w?(o.addRange(s),o.extend(J.node,J.offset)):(s.setEnd(J.node,J.offset),o.addRange(s)))}}for(s=[],o=v;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<s.length;v++)o=s[v],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Jy=h&&"documentMode"in document&&11>=document.documentMode,Vi=null,sv=null,nf=null,uv=!1;function e1(o,s,v){var w=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;uv||Vi==null||Vi!==$e(w)||(w=Vi,"selectionStart"in w&&Po(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),nf&&tf(nf,w)||(nf=w,w=sf(sv,"onSelect"),0<w.length&&(s=new Ld("onSelect","select",null,s,v),o.push({event:s,listeners:w}),s.target=Vi)))}function qd(o,s){var v={};return v[o.toLowerCase()]=s.toLowerCase(),v["Webkit"+o]="webkit"+s,v["Moz"+o]="moz"+s,v}var ms={animationend:qd("Animation","AnimationEnd"),animationiteration:qd("Animation","AnimationIteration"),animationstart:qd("Animation","AnimationStart"),transitionend:qd("Transition","TransitionEnd")},cv={},fv={};h&&(fv=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Tr(o){if(cv[o])return cv[o];if(!ms[o])return o;var s=ms[o],v;for(v in s)if(s.hasOwnProperty(v)&&v in fv)return cv[o]=s[v];return o}var dv=Tr("animationend"),t1=Tr("animationiteration"),n1=Tr("animationstart"),r1=Tr("transitionend"),a1=new Map,i1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Bo(o,s){a1.set(o,s),f(s,[o])}for(var rf=0;rf<i1.length;rf++){var gs=i1[rf],S_=gs.toLowerCase(),af=gs[0].toUpperCase()+gs.slice(1);Bo(S_,"on"+af)}Bo(dv,"onAnimationEnd"),Bo(t1,"onAnimationIteration"),Bo(n1,"onAnimationStart"),Bo("dblclick","onDoubleClick"),Bo("focusin","onFocus"),Bo("focusout","onBlur"),Bo(r1,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),E_=new Set("cancel close invalid load scroll toggle".split(" ").concat(of));function o1(o,s,v){var w=o.type||"unknown-event";o.currentTarget=v,mt(w,s,void 0,o),o.currentTarget=null}function Gd(o,s){s=(s&4)!==0;for(var v=0;v<o.length;v++){var w=o[v],O=w.event;w=w.listeners;e:{var L=void 0;if(s)for(var J=w.length-1;0<=J;J--){var le=w[J],ce=le.instance,Ee=le.currentTarget;if(le=le.listener,ce!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=ce}else for(J=0;J<w.length;J++){if(le=w[J],ce=le.instance,Ee=le.currentTarget,le=le.listener,ce!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=ce}}}if(Cl)throw o=ue,Cl=!1,ue=null,o}function An(o,s){var v=s[xv];v===void 0&&(v=s[xv]=new Set);var w=o+"__bubble";v.has(w)||(l1(s,o,2,!1),v.add(w))}function kl(o,s,v){var w=0;s&&(w|=4),l1(v,o,w,s)}var Lo="_reactListening"+Math.random().toString(36).slice(2);function Tu(o){if(!o[Lo]){o[Lo]=!0,i.forEach(function(v){v!=="selectionchange"&&(E_.has(v)||kl(v,!1,o),kl(v,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Lo]||(s[Lo]=!0,kl("selectionchange",!1,s))}}function l1(o,s,v,w){switch(Qh(s)){case 1:var O=Ay;break;case 4:O=Md;break;default:O=Pd}v=O.bind(null,s,v,o),O=void 0,!Oo||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(O=!0),w?O!==void 0?o.addEventListener(s,v,{capture:!0,passive:O}):o.addEventListener(s,v,!0):O!==void 0?o.addEventListener(s,v,{passive:O}):o.addEventListener(s,v,!1)}function Kd(o,s,v,w,O){var L=w;if(!(s&1)&&!(s&2)&&w!==null)e:for(;;){if(w===null)return;var J=w.tag;if(J===3||J===4){var le=w.stateNode.containerInfo;if(le===O||le.nodeType===8&&le.parentNode===O)break;if(J===4)for(J=w.return;J!==null;){var ce=J.tag;if((ce===3||ce===4)&&(ce=J.stateNode.containerInfo,ce===O||ce.nodeType===8&&ce.parentNode===O))return;J=J.return}for(;le!==null;){if(J=hi(le),J===null)return;if(ce=J.tag,ce===5||ce===6){w=L=J;continue e}le=le.parentNode}}w=w.return}To(function(){var Ee=L,je=_n(v),He=[];e:{var Ue=a1.get(o);if(Ue!==void 0){var Xe=Ld,ot=o;switch(o){case"keypress":if(Cu(v)===0)break e;case"keydown":case"keyup":Xe=m_;break;case"focusin":ot="focus",Xe=Dl;break;case"focusout":ot="blur",Xe=Dl;break;case"beforeblur":case"afterblur":Xe=Dl;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Xe=Ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Xe=Ny;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Xe=g_;break;case dv:case t1:case n1:Xe=My;break;case r1:Xe=zy;break;case"scroll":Xe=Ry;break;case"wheel":Xe=Mo;break;case"copy":case"cut":case"paste":Xe=h_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Xe=jd}var ct=(s&4)!==0,or=!ct&&o==="scroll",ye=ct?Ue!==null?Ue+"Capture":null:Ue;ct=[];for(var pe=Ee,we;pe!==null;){we=pe;var qe=we.stateNode;if(we.tag===5&&qe!==null&&(we=qe,ye!==null&&(qe=Ao(pe,ye),qe!=null&&ct.push(lf(pe,qe,we)))),or)break;pe=pe.return}0<ct.length&&(Ue=new Xe(Ue,ot,null,v,je),He.push({event:Ue,listeners:ct}))}}if(!(s&7)){e:{if(Ue=o==="mouseover"||o==="pointerover",Xe=o==="mouseout"||o==="pointerout",Ue&&v!==Ur&&(ot=v.relatedTarget||v.fromElement)&&(hi(ot)||ot[zo]))break e;if((Xe||Ue)&&(Ue=je.window===je?je:(Ue=je.ownerDocument)?Ue.defaultView||Ue.parentWindow:window,Xe?(ot=v.relatedTarget||v.toElement,Xe=Ee,ot=ot?hi(ot):null,ot!==null&&(or=Rt(ot),ot!==or||ot.tag!==5&&ot.tag!==6)&&(ot=null)):(Xe=null,ot=Ee),Xe!==ot)){if(ct=Ud,qe="onMouseLeave",ye="onMouseEnter",pe="mouse",(o==="pointerout"||o==="pointerover")&&(ct=jd,qe="onPointerLeave",ye="onPointerEnter",pe="pointer"),or=Xe==null?Ue:Au(Xe),we=ot==null?Ue:Au(ot),Ue=new ct(qe,pe+"leave",Xe,v,je),Ue.target=or,Ue.relatedTarget=we,qe=null,hi(je)===Ee&&(ct=new ct(ye,pe+"enter",ot,v,je),ct.target=we,ct.relatedTarget=or,qe=ct),or=qe,Xe&&ot)t:{for(ct=Xe,ye=ot,pe=0,we=ct;we;we=ys(we))pe++;for(we=0,qe=ye;qe;qe=ys(qe))we++;for(;0<pe-we;)ct=ys(ct),pe--;for(;0<we-pe;)ye=ys(ye),we--;for(;pe--;){if(ct===ye||ye!==null&&ct===ye.alternate)break t;ct=ys(ct),ye=ys(ye)}ct=null}else ct=null;Xe!==null&&pv(He,Ue,Xe,ct,!1),ot!==null&&or!==null&&pv(He,or,ot,ct,!0)}}e:{if(Ue=Ee?Au(Ee):window,Xe=Ue.nodeName&&Ue.nodeName.toLowerCase(),Xe==="select"||Xe==="input"&&Ue.type==="file")var ft=Yy;else if(Vy(Ue))if(iv)ft=Wy;else{ft=C_;var lt=b_}else(Xe=Ue.nodeName)&&Xe.toLowerCase()==="input"&&(Ue.type==="checkbox"||Ue.type==="radio")&&(ft=w_);if(ft&&(ft=ft(o,Ee))){$y(He,ft,v,je);break e}lt&&lt(o,Ue,Ee),o==="focusout"&&(lt=Ue._wrapperState)&&lt.controlled&&Ue.type==="number"&&Mn(Ue,"number",Ue.value)}switch(lt=Ee?Au(Ee):window,o){case"focusin":(Vy(lt)||lt.contentEditable==="true")&&(Vi=lt,sv=Ee,nf=null);break;case"focusout":nf=sv=Vi=null;break;case"mousedown":uv=!0;break;case"contextmenu":case"mouseup":case"dragend":uv=!1,e1(He,v,je);break;case"selectionchange":if(Jy)break;case"keydown":case"keyup":e1(He,v,je)}var pt;if(Hi)e:{switch(o){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Su?Iy(o,v)&&(St="onCompositionEnd"):o==="keydown"&&v.keyCode===229&&(St="onCompositionStart");St&&(Uy&&v.locale!=="ko"&&(Su||St!=="onCompositionStart"?St==="onCompositionEnd"&&Su&&(pt=Zh()):(Fo=je,Qc="value"in Fo?Fo.value:Fo.textContent,Su=!0)),lt=sf(Ee,St),0<lt.length&&(St=new ev(St,o,null,v,je),He.push({event:St,listeners:lt}),pt?St.data=pt:(pt=Vd(v),pt!==null&&(St.data=pt)))),(pt=Hd?y_(o,v):x_(o,v))&&(Ee=sf(Ee,"onBeforeInput"),0<Ee.length&&(je=new ev("onBeforeInput","beforeinput",null,v,je),He.push({event:je,listeners:Ee}),je.data=pt))}Gd(He,s)})}function lf(o,s,v){return{instance:o,listener:s,currentTarget:v}}function sf(o,s){for(var v=s+"Capture",w=[];o!==null;){var O=o,L=O.stateNode;O.tag===5&&L!==null&&(O=L,L=Ao(o,v),L!=null&&w.unshift(lf(o,L,O)),L=Ao(o,s),L!=null&&w.push(lf(o,L,O))),o=o.return}return w}function ys(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function pv(o,s,v,w,O){for(var L=s._reactName,J=[];v!==null&&v!==w;){var le=v,ce=le.alternate,Ee=le.stateNode;if(ce!==null&&ce===w)break;le.tag===5&&Ee!==null&&(le=Ee,O?(ce=Ao(v,L),ce!=null&&J.unshift(lf(v,ce,le))):O||(ce=Ao(v,L),ce!=null&&J.push(lf(v,ce,le)))),v=v.return}J.length!==0&&o.push({event:s,listeners:J})}var hv=/\r\n?/g,D_=/\u0000|\uFFFD/g;function vv(o){return(typeof o=="string"?o:""+o).replace(hv,`
73
+ `+O[J].replace(" at new "," at ");return o.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",o.displayName)),ce}while(1<=J&&0<=le);break}}}finally{oe=!1,Error.prepareStackTrace=v}return(o=o?o.displayName||o.name:"")?te(o):""}function fe(o){switch(o.tag){case 5:return te(o.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 2:case 15:return o=ae(o.type,!1),o;case 11:return o=ae(o.type.render,!1),o;case 1:return o=ae(o.type,!0),o;default:return""}}function ve(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case M:return"Fragment";case z:return"Portal";case Y:return"Profiler";case I:return"StrictMode";case H:return"Suspense";case V:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case U:return(o.displayName||"Context")+".Consumer";case B:return(o._context.displayName||"Context")+".Provider";case P:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case G:return s=o.displayName||null,s!==null?s:ve(o.type)||"Memo";case ee:s=o._payload,o=o._init;try{return ve(o(s))}catch{}}return null}function xe(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(s);case 8:return s===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function se(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function ke(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function De(o){var s=ke(o)?"checked":"value",v=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),w=""+o[s];if(!o.hasOwnProperty(s)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var O=v.get,L=v.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return O.call(this)},set:function(J){w=""+J,L.call(this,J)}}),Object.defineProperty(o,s,{enumerable:v.enumerable}),{getValue:function(){return w},setValue:function(J){w=""+J},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Pe(o){o._valueTracker||(o._valueTracker=De(o))}function ge(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var v=s.getValue(),w="";return o&&(w=ke(o)?o.checked?"true":"false":o.value),o=w,o!==v?(s.setValue(o),!0):!1}function $e(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function Me(o,s){var v=s.checked;return Z({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:v??o._wrapperState.initialChecked})}function et(o,s){var v=s.defaultValue==null?"":s.defaultValue,w=s.checked!=null?s.checked:s.defaultChecked;v=se(s.value!=null?s.value:v),o._wrapperState={initialChecked:w,initialValue:v,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ut(o,s){s=s.checked,s!=null&&D(o,"checked",s,!1)}function Xt(o,s){ut(o,s);var v=se(s.value),w=s.type;if(v!=null)w==="number"?(v===0&&o.value===""||o.value!=v)&&(o.value=""+v):o.value!==""+v&&(o.value=""+v);else if(w==="submit"||w==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Mn(o,s.type,v):s.hasOwnProperty("defaultValue")&&Mn(o,s.type,se(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function Mt(o,s,v){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var w=s.type;if(!(w!=="submit"&&w!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,v||s===o.value||(o.value=s),o.defaultValue=s}v=o.name,v!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,v!==""&&(o.name=v)}function Mn(o,s,v){(s!=="number"||$e(o.ownerDocument)!==o)&&(v==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+v&&(o.defaultValue=""+v))}var Pn=Array.isArray;function sn(o,s,v,w){if(o=o.options,s){s={};for(var O=0;O<v.length;O++)s["$"+v[O]]=!0;for(v=0;v<o.length;v++)O=s.hasOwnProperty("$"+o[v].value),o[v].selected!==O&&(o[v].selected=O),O&&w&&(o[v].defaultSelected=!0)}else{for(v=""+se(v),s=null,O=0;O<o.length;O++){if(o[O].value===v){o[O].selected=!0,w&&(o[O].defaultSelected=!0);return}s!==null||o[O].disabled||(s=o[O])}s!==null&&(s.selected=!0)}}function Jt(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(t(91));return Z({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function cn(o,s){var v=s.value;if(v==null){if(v=s.children,s=s.defaultValue,v!=null){if(s!=null)throw Error(t(92));if(Pn(v)){if(1<v.length)throw Error(t(93));v=v[0]}s=v}s==null&&(s=""),v=s}o._wrapperState={initialValue:se(v)}}function Fn(o,s){var v=se(s.value),w=se(s.defaultValue);v!=null&&(v=""+v,v!==o.value&&(o.value=v),s.defaultValue==null&&o.defaultValue!==v&&(o.defaultValue=v)),w!=null&&(o.defaultValue=""+w)}function Bn(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function kn(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Vt(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?kn(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var Hn,gr=function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,v,w,O){MSApp.execUnsafeLocalFunction(function(){return o(s,v,w,O)})}:o}(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(Hn=Hn||document.createElement("div"),Hn.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Hn.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function ur(o,s){if(s){var v=o.firstChild;if(v&&v===o.lastChild&&v.nodeType===3){v.nodeValue=s;return}}o.textContent=s}var Ye={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},it=["Webkit","ms","Moz","O"];Object.keys(Ye).forEach(function(o){it.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Ye[s]=Ye[o]})});function rt(o,s,v){return s==null||typeof s=="boolean"||s===""?"":v||typeof s!="number"||s===0||Ye.hasOwnProperty(o)&&Ye[o]?(""+s).trim():s+"px"}function $t(o,s){o=o.style;for(var v in s)if(s.hasOwnProperty(v)){var w=v.indexOf("--")===0,O=rt(v,s[v],w);v==="float"&&(v="cssFloat"),w?o.setProperty(v,O):o[v]=O}}var Nn=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cr(o,s){if(s){if(Nn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(t(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(t(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(t(61))}if(s.style!=null&&typeof s.style!="object")throw Error(t(62))}}function Wn(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ur=null;function _n(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ra=null,vn=null,mn=null;function yl(o){if(o=ff(o)){if(typeof ra!="function")throw Error(t(280));var s=o.stateNode;s&&(s=ht(s),ra(o.stateNode,o.type,s))}}function Do(o){vn?mn?mn.push(o):mn=[o]:vn=o}function xl(){if(vn){var o=vn,s=mn;if(mn=vn=null,yl(o),s)for(o=0;o<s.length;o++)yl(s[o])}}function bl(o,s){return o(s)}function gu(){}var ko=!1;function To(o,s,v){if(ko)return o(s,v);ko=!0;try{return bl(o,s,v)}finally{ko=!1,(vn!==null||mn!==null)&&(gu(),xl())}}function Ao(o,s){var v=o.stateNode;if(v===null)return null;var w=ht(v);if(w===null)return null;v=w[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(o=o.type,w=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!w;break e;default:o=!1}if(o)return null;if(v&&typeof v!="function")throw Error(t(231,s,typeof v));return v}var Oo=!1;if(h)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Oo=!1}function jr(o,s,v,w,O,L,J,le,ce){var Ee=Array.prototype.slice.call(arguments,3);try{s.apply(v,Ee)}catch(je){this.onError(je)}}var aa=!1,Ya=null,Cl=!1,ue=null,Ie={onError:function(o){aa=!0,Ya=o}};function Qe(o,s,v,w,O,L,J,le,ce){aa=!1,Ya=null,jr.apply(Ie,arguments)}function mt(o,s,v,w,O,L,J,le,ce){if(Qe.apply(this,arguments),aa){if(aa){var Ee=Ya;aa=!1,Ya=null}else throw Error(t(198));Cl||(Cl=!0,ue=Ee)}}function Rt(o){var s=o,v=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,s.flags&4098&&(v=s.return),o=s.return;while(o)}return s.tag===3?v:null}function en(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function Pt(o){if(Rt(o)!==o)throw Error(t(188))}function yt(o){var s=o.alternate;if(!s){if(s=Rt(o),s===null)throw Error(t(188));return s!==o?null:o}for(var v=o,w=s;;){var O=v.return;if(O===null)break;var L=O.alternate;if(L===null){if(w=O.return,w!==null){v=w;continue}break}if(O.child===L.child){for(L=O.child;L;){if(L===v)return Pt(O),o;if(L===w)return Pt(O),s;L=L.sibling}throw Error(t(188))}if(v.return!==w.return)v=O,w=L;else{for(var J=!1,le=O.child;le;){if(le===v){J=!0,v=O,w=L;break}if(le===w){J=!0,w=O,v=L;break}le=le.sibling}if(!J){for(le=L.child;le;){if(le===v){J=!0,v=L,w=O;break}if(le===w){J=!0,w=L,v=O;break}le=le.sibling}if(!J)throw Error(t(189))}}if(v.alternate!==w)throw Error(t(190))}if(v.tag!==3)throw Error(t(188));return v.stateNode.current===v?o:s}function Dr(o){return o=yt(o),o!==null?$n(o):null}function $n(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=$n(o);if(s!==null)return s;o=o.sibling}return null}var Yn=r.unstable_scheduleCallback,ha=r.unstable_cancelCallback,wl=r.unstable_shouldYield,Ad=r.unstable_requestPaint,rn=r.unstable_now,s_=r.unstable_getCurrentPriorityLevel,Ro=r.unstable_ImmediatePriority,jt=r.unstable_UserBlockingPriority,_l=r.unstable_NormalPriority,Cy=r.unstable_LowPriority,Vh=r.unstable_IdlePriority,Vc=null,Ui=null;function wy(o){if(Ui&&typeof Ui.onCommitFiberRoot=="function")try{Ui.onCommitFiberRoot(Vc,o,void 0,(o.current.flags&128)===128)}catch{}}var ci=Math.clz32?Math.clz32:u_,_y=Math.log,Sy=Math.LN2;function u_(o){return o>>>=0,o===0?32:31-(_y(o)/Sy|0)|0}var Od=64,yu=4194304;function ds(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ji(o,s){var v=o.pendingLanes;if(v===0)return 0;var w=0,O=o.suspendedLanes,L=o.pingedLanes,J=v&268435455;if(J!==0){var le=J&~O;le!==0?w=ds(le):(L&=J,L!==0&&(w=ds(L)))}else J=v&~O,J!==0?w=ds(J):L!==0&&(w=ds(L));if(w===0)return 0;if(s!==0&&s!==w&&!(s&O)&&(O=w&-w,L=s&-s,O>=L||O===16&&(L&4194240)!==0))return s;if(w&4&&(w|=v&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=w;0<s;)v=31-ci(s),O=1<<v,w|=o[v],s&=~O;return w}function $h(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Rd(o,s){for(var v=o.suspendedLanes,w=o.pingedLanes,O=o.expirationTimes,L=o.pendingLanes;0<L;){var J=31-ci(L),le=1<<J,ce=O[J];ce===-1?(!(le&v)||le&w)&&(O[J]=$h(le,s)):ce<=s&&(o.expiredLanes|=le),L&=~le}}function Yh(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function Fd(){var o=Od;return Od<<=1,!(Od&4194240)&&(Od=64),o}function qh(o){for(var s=[],v=0;31>v;v++)s.push(o);return s}function ps(o,s,v){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-ci(s),o[s]=v}function c_(o,s){var v=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var w=o.eventTimes;for(o=o.expirationTimes;0<v;){var O=31-ci(v),L=1<<O;s[O]=0,w[O]=-1,o[O]=-1,v&=~L}}function $c(o,s){var v=o.entangledLanes|=s;for(o=o.entanglements;v;){var w=31-ci(v),O=1<<w;O&s|o[w]&s&&(o[w]|=s),v&=~O}}var gn=0;function Gh(o){return o&=-o,1<o?4<o?o&268435455?16:536870912:4:1}var Ey,Nd,Tn,Dy,Kh,Tt=!1,Yc=[],fr=null,fi=null,di=null,qc=new Map,yr=new Map,Sn=[],f_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ii(o,s){switch(o){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":qc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":yr.delete(s.pointerId)}}function ia(o,s,v,w,O,L){return o===null||o.nativeEvent!==L?(o={blockedOn:s,domEventName:v,eventSystemFlags:w,nativeEvent:L,targetContainers:[O]},s!==null&&(s=ff(s),s!==null&&Nd(s)),o):(o.eventSystemFlags|=w,s=o.targetContainers,O!==null&&s.indexOf(O)===-1&&s.push(O),o)}function Sl(o,s,v,w,O){switch(s){case"focusin":return fr=ia(fr,o,s,v,w,O),!0;case"dragenter":return fi=ia(fi,o,s,v,w,O),!0;case"mouseover":return di=ia(di,o,s,v,w,O),!0;case"pointerover":var L=O.pointerId;return qc.set(L,ia(qc.get(L)||null,o,s,v,w,O)),!0;case"gotpointercapture":return L=O.pointerId,yr.set(L,ia(yr.get(L)||null,o,s,v,w,O)),!0}return!1}function ky(o){var s=hi(o.target);if(s!==null){var v=Rt(s);if(v!==null){if(s=v.tag,s===13){if(s=en(v),s!==null){o.blockedOn=s,Kh(o.priority,function(){Tn(v)});return}}else if(s===3&&v.stateNode.current.memoizedState.isDehydrated){o.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}o.blockedOn=null}function xu(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var v=Bd(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(v===null){v=o.nativeEvent;var w=new v.constructor(v.type,v);Ur=w,v.target.dispatchEvent(w),Ur=null}else return s=ff(v),s!==null&&Nd(s),o.blockedOn=v,!1;s.shift()}return!0}function Wh(o,s,v){xu(o)&&v.delete(s)}function Ty(){Tt=!1,fr!==null&&xu(fr)&&(fr=null),fi!==null&&xu(fi)&&(fi=null),di!==null&&xu(di)&&(di=null),qc.forEach(Wh),yr.forEach(Wh)}function Gc(o,s){o.blockedOn===s&&(o.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ty)))}function Kc(o){function s(O){return Gc(O,o)}if(0<Yc.length){Gc(Yc[0],o);for(var v=1;v<Yc.length;v++){var w=Yc[v];w.blockedOn===o&&(w.blockedOn=null)}}for(fr!==null&&Gc(fr,o),fi!==null&&Gc(fi,o),di!==null&&Gc(di,o),qc.forEach(s),yr.forEach(s),v=0;v<Sn.length;v++)w=Sn[v],w.blockedOn===o&&(w.blockedOn=null);for(;0<Sn.length&&(v=Sn[0],v.blockedOn===null);)ky(v),v.blockedOn===null&&Sn.shift()}var bu=R.ReactCurrentBatchConfig,hs=!0;function Ay(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=1,Pd(o,s,v,w)}finally{gn=O,bu.transition=L}}function Md(o,s,v,w){var O=gn,L=bu.transition;bu.transition=null;try{gn=4,Pd(o,s,v,w)}finally{gn=O,bu.transition=L}}function Pd(o,s,v,w){if(hs){var O=Bd(o,s,v,w);if(O===null)Kd(o,s,w,Wc,v),Ii(o,w);else if(Sl(O,o,s,v,w))w.stopPropagation();else if(Ii(o,w),s&4&&-1<f_.indexOf(o)){for(;O!==null;){var L=ff(O);if(L!==null&&Ey(L),L=Bd(o,s,v,w),L===null&&Kd(o,s,w,Wc,v),L===O)break;O=L}O!==null&&w.stopPropagation()}else Kd(o,s,w,null,v)}}var Wc=null;function Bd(o,s,v,w){if(Wc=null,o=_n(w),o=hi(o),o!==null)if(s=Rt(o),s===null)o=null;else if(v=s.tag,v===13){if(o=en(s),o!==null)return o;o=null}else if(v===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return Wc=o,null}function Qh(o){switch(o){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(s_()){case Ro:return 1;case jt:return 4;case _l:case Cy:return 16;case Vh:return 536870912;default:return 16}default:return 16}}var Fo=null,Qc=null,Zc=null;function Zh(){if(Zc)return Zc;var o,s=Qc,v=s.length,w,O="value"in Fo?Fo.value:Fo.textContent,L=O.length;for(o=0;o<v&&s[o]===O[o];o++);var J=v-o;for(w=1;w<=J&&s[v-w]===O[L-w];w++);return Zc=O.slice(o,1<w?1-w:void 0)}function Cu(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Xc(){return!0}function Oy(){return!1}function qa(o){function s(v,w,O,L,J){this._reactName=v,this._targetInst=O,this.type=w,this.nativeEvent=L,this.target=J,this.currentTarget=null;for(var le in o)o.hasOwnProperty(le)&&(v=o[le],this[le]=v?v(L):L[le]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Xc:Oy,this.isPropagationStopped=Oy,this}return Z(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=Xc)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=Xc)},persist:function(){},isPersistent:Xc}),s}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=qa(El),wu=Z({},El,{view:0,detail:0}),Ry=qa(wu),zd,Xh,Jc,kr=Z({},wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nv,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Jc&&(Jc&&o.type==="mousemove"?(zd=o.screenX-Jc.screenX,Xh=o.screenY-Jc.screenY):Xh=zd=0,Jc=o),zd)},movementY:function(o){return"movementY"in o?o.movementY:Xh}}),Ud=qa(kr),Fy=Z({},kr,{dataTransfer:0}),Ny=qa(Fy),d_=Z({},wu,{relatedTarget:0}),Dl=qa(d_),Jh=Z({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),My=qa(Jh),p_=Z({},El,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),h_=qa(p_),v_=Z({},El,{data:0}),ev=qa(v_),tv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Py={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ly(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=By[o])?!!s[o]:!1}function nv(){return Ly}var No=Z({},wu,{key:function(o){if(o.key){var s=tv[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Cu(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?Py[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nv,charCode:function(o){return o.type==="keypress"?Cu(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Cu(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),m_=qa(No),rv=Z({},kr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=qa(rv),av=Z({},wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nv}),g_=qa(av),Id=Z({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=qa(Id),Ta=Z({},kr,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),Mo=qa(Ta),dr=[9,13,27,32],Hi=h&&"CompositionEvent"in window,vs=null;h&&"documentMode"in document&&(vs=document.documentMode);var Hd=h&&"TextEvent"in window&&!vs,Uy=h&&(!Hi||vs&&8<vs&&11>=vs),_u=String.fromCharCode(32),jy=!1;function Iy(o,s){switch(o){case"keyup":return dr.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vd(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Su=!1;function y_(o,s){switch(o){case"compositionend":return Vd(s);case"keypress":return s.which!==32?null:(jy=!0,_u);case"textInput":return o=s.data,o===_u&&jy?null:o;default:return null}}function x_(o,s){if(Su)return o==="compositionend"||!Hi&&Iy(o,s)?(o=Zh(),Zc=Qc=Fo=null,Su=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Uy&&s.locale!=="ko"?null:s.data;default:return null}}var Hy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vy(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!Hy[o.type]:s==="textarea"}function $y(o,s,v,w){Do(w),s=sf(s,"onChange"),0<s.length&&(v=new Ld("onChange","change",null,v,w),o.push({event:v,listeners:s}))}var ef=null,Eu=null;function Du(o){Gd(o,0)}function ku(o){var s=Au(o);if(ge(s))return o}function Yy(o,s){if(o==="change")return s}var iv=!1;if(h){var ov;if(h){var lv="oninput"in document;if(!lv){var qy=document.createElement("div");qy.setAttribute("oninput","return;"),lv=typeof qy.oninput=="function"}ov=lv}else ov=!1;iv=ov&&(!document.documentMode||9<document.documentMode)}function Gy(){ef&&(ef.detachEvent("onpropertychange",Ky),Eu=ef=null)}function Ky(o){if(o.propertyName==="value"&&ku(Eu)){var s=[];$y(s,Eu,o,_n(o)),To(Du,s)}}function b_(o,s,v){o==="focusin"?(Gy(),ef=s,Eu=v,ef.attachEvent("onpropertychange",Ky)):o==="focusout"&&Gy()}function C_(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return ku(Eu)}function w_(o,s){if(o==="click")return ku(s)}function Wy(o,s){if(o==="input"||o==="change")return ku(s)}function __(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var pi=typeof Object.is=="function"?Object.is:__;function tf(o,s){if(pi(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var v=Object.keys(o),w=Object.keys(s);if(v.length!==w.length)return!1;for(w=0;w<v.length;w++){var O=v[w];if(!m.call(s,O)||!pi(o[O],s[O]))return!1}return!0}function Qy(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Zy(o,s){var v=Qy(o);o=0;for(var w;v;){if(v.nodeType===3){if(w=o+v.textContent.length,o<=s&&w>=s)return{node:v,offset:s-o};o=w}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=Qy(v)}}function Xy(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Xy(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function $d(){for(var o=window,s=$e();s instanceof o.HTMLIFrameElement;){try{var v=typeof s.contentWindow.location.href=="string"}catch{v=!1}if(v)o=s.contentWindow;else break;s=$e(o.document)}return s}function Po(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function Yd(o){var s=$d(),v=o.focusedElem,w=o.selectionRange;if(s!==v&&v&&v.ownerDocument&&Xy(v.ownerDocument.documentElement,v)){if(w!==null&&Po(v)){if(s=w.start,o=w.end,o===void 0&&(o=s),"selectionStart"in v)v.selectionStart=s,v.selectionEnd=Math.min(o,v.value.length);else if(o=(s=v.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var O=v.textContent.length,L=Math.min(w.start,O);w=w.end===void 0?L:Math.min(w.end,O),!o.extend&&L>w&&(O=w,w=L,L=O),O=Zy(v,L);var J=Zy(v,w);O&&J&&(o.rangeCount!==1||o.anchorNode!==O.node||o.anchorOffset!==O.offset||o.focusNode!==J.node||o.focusOffset!==J.offset)&&(s=s.createRange(),s.setStart(O.node,O.offset),o.removeAllRanges(),L>w?(o.addRange(s),o.extend(J.node,J.offset)):(s.setEnd(J.node,J.offset),o.addRange(s)))}}for(s=[],o=v;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<s.length;v++)o=s[v],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var Jy=h&&"documentMode"in document&&11>=document.documentMode,Vi=null,sv=null,nf=null,uv=!1;function e1(o,s,v){var w=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;uv||Vi==null||Vi!==$e(w)||(w=Vi,"selectionStart"in w&&Po(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),nf&&tf(nf,w)||(nf=w,w=sf(sv,"onSelect"),0<w.length&&(s=new Ld("onSelect","select",null,s,v),o.push({event:s,listeners:w}),s.target=Vi)))}function qd(o,s){var v={};return v[o.toLowerCase()]=s.toLowerCase(),v["Webkit"+o]="webkit"+s,v["Moz"+o]="moz"+s,v}var ms={animationend:qd("Animation","AnimationEnd"),animationiteration:qd("Animation","AnimationIteration"),animationstart:qd("Animation","AnimationStart"),transitionend:qd("Transition","TransitionEnd")},cv={},fv={};h&&(fv=document.createElement("div").style,"AnimationEvent"in window||(delete ms.animationend.animation,delete ms.animationiteration.animation,delete ms.animationstart.animation),"TransitionEvent"in window||delete ms.transitionend.transition);function Tr(o){if(cv[o])return cv[o];if(!ms[o])return o;var s=ms[o],v;for(v in s)if(s.hasOwnProperty(v)&&v in fv)return cv[o]=s[v];return o}var dv=Tr("animationend"),t1=Tr("animationiteration"),n1=Tr("animationstart"),r1=Tr("transitionend"),a1=new Map,i1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Bo(o,s){a1.set(o,s),f(s,[o])}for(var rf=0;rf<i1.length;rf++){var gs=i1[rf],S_=gs.toLowerCase(),af=gs[0].toUpperCase()+gs.slice(1);Bo(S_,"on"+af)}Bo(dv,"onAnimationEnd"),Bo(t1,"onAnimationIteration"),Bo(n1,"onAnimationStart"),Bo("dblclick","onDoubleClick"),Bo("focusin","onFocus"),Bo("focusout","onBlur"),Bo(r1,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),E_=new Set("cancel close invalid load scroll toggle".split(" ").concat(of));function o1(o,s,v){var w=o.type||"unknown-event";o.currentTarget=v,mt(w,s,void 0,o),o.currentTarget=null}function Gd(o,s){s=(s&4)!==0;for(var v=0;v<o.length;v++){var w=o[v],O=w.event;w=w.listeners;e:{var L=void 0;if(s)for(var J=w.length-1;0<=J;J--){var le=w[J],ce=le.instance,Ee=le.currentTarget;if(le=le.listener,ce!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=ce}else for(J=0;J<w.length;J++){if(le=w[J],ce=le.instance,Ee=le.currentTarget,le=le.listener,ce!==L&&O.isPropagationStopped())break e;o1(O,le,Ee),L=ce}}}if(Cl)throw o=ue,Cl=!1,ue=null,o}function An(o,s){var v=s[xv];v===void 0&&(v=s[xv]=new Set);var w=o+"__bubble";v.has(w)||(l1(s,o,2,!1),v.add(w))}function kl(o,s,v){var w=0;s&&(w|=4),l1(v,o,w,s)}var Lo="_reactListening"+Math.random().toString(36).slice(2);function Tu(o){if(!o[Lo]){o[Lo]=!0,i.forEach(function(v){v!=="selectionchange"&&(E_.has(v)||kl(v,!1,o),kl(v,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Lo]||(s[Lo]=!0,kl("selectionchange",!1,s))}}function l1(o,s,v,w){switch(Qh(s)){case 1:var O=Ay;break;case 4:O=Md;break;default:O=Pd}v=O.bind(null,s,v,o),O=void 0,!Oo||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(O=!0),w?O!==void 0?o.addEventListener(s,v,{capture:!0,passive:O}):o.addEventListener(s,v,!0):O!==void 0?o.addEventListener(s,v,{passive:O}):o.addEventListener(s,v,!1)}function Kd(o,s,v,w,O){var L=w;if(!(s&1)&&!(s&2)&&w!==null)e:for(;;){if(w===null)return;var J=w.tag;if(J===3||J===4){var le=w.stateNode.containerInfo;if(le===O||le.nodeType===8&&le.parentNode===O)break;if(J===4)for(J=w.return;J!==null;){var ce=J.tag;if((ce===3||ce===4)&&(ce=J.stateNode.containerInfo,ce===O||ce.nodeType===8&&ce.parentNode===O))return;J=J.return}for(;le!==null;){if(J=hi(le),J===null)return;if(ce=J.tag,ce===5||ce===6){w=L=J;continue e}le=le.parentNode}}w=w.return}To(function(){var Ee=L,je=_n(v),He=[];e:{var Ue=a1.get(o);if(Ue!==void 0){var Xe=Ld,ot=o;switch(o){case"keypress":if(Cu(v)===0)break e;case"keydown":case"keyup":Xe=m_;break;case"focusin":ot="focus",Xe=Dl;break;case"focusout":ot="blur",Xe=Dl;break;case"beforeblur":case"afterblur":Xe=Dl;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Xe=Ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Xe=Ny;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Xe=g_;break;case dv:case t1:case n1:Xe=My;break;case r1:Xe=zy;break;case"scroll":Xe=Ry;break;case"wheel":Xe=Mo;break;case"copy":case"cut":case"paste":Xe=h_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Xe=jd}var ct=(s&4)!==0,or=!ct&&o==="scroll",ye=ct?Ue!==null?Ue+"Capture":null:Ue;ct=[];for(var pe=Ee,we;pe!==null;){we=pe;var qe=we.stateNode;if(we.tag===5&&qe!==null&&(we=qe,ye!==null&&(qe=Ao(pe,ye),qe!=null&&ct.push(lf(pe,qe,we)))),or)break;pe=pe.return}0<ct.length&&(Ue=new Xe(Ue,ot,null,v,je),He.push({event:Ue,listeners:ct}))}}if(!(s&7)){e:{if(Ue=o==="mouseover"||o==="pointerover",Xe=o==="mouseout"||o==="pointerout",Ue&&v!==Ur&&(ot=v.relatedTarget||v.fromElement)&&(hi(ot)||ot[zo]))break e;if((Xe||Ue)&&(Ue=je.window===je?je:(Ue=je.ownerDocument)?Ue.defaultView||Ue.parentWindow:window,Xe?(ot=v.relatedTarget||v.toElement,Xe=Ee,ot=ot?hi(ot):null,ot!==null&&(or=Rt(ot),ot!==or||ot.tag!==5&&ot.tag!==6)&&(ot=null)):(Xe=null,ot=Ee),Xe!==ot)){if(ct=Ud,qe="onMouseLeave",ye="onMouseEnter",pe="mouse",(o==="pointerout"||o==="pointerover")&&(ct=jd,qe="onPointerLeave",ye="onPointerEnter",pe="pointer"),or=Xe==null?Ue:Au(Xe),we=ot==null?Ue:Au(ot),Ue=new ct(qe,pe+"leave",Xe,v,je),Ue.target=or,Ue.relatedTarget=we,qe=null,hi(je)===Ee&&(ct=new ct(ye,pe+"enter",ot,v,je),ct.target=we,ct.relatedTarget=or,qe=ct),or=qe,Xe&&ot)t:{for(ct=Xe,ye=ot,pe=0,we=ct;we;we=ys(we))pe++;for(we=0,qe=ye;qe;qe=ys(qe))we++;for(;0<pe-we;)ct=ys(ct),pe--;for(;0<we-pe;)ye=ys(ye),we--;for(;pe--;){if(ct===ye||ye!==null&&ct===ye.alternate)break t;ct=ys(ct),ye=ys(ye)}ct=null}else ct=null;Xe!==null&&pv(He,Ue,Xe,ct,!1),ot!==null&&or!==null&&pv(He,or,ot,ct,!0)}}e:{if(Ue=Ee?Au(Ee):window,Xe=Ue.nodeName&&Ue.nodeName.toLowerCase(),Xe==="select"||Xe==="input"&&Ue.type==="file")var ft=Yy;else if(Vy(Ue))if(iv)ft=Wy;else{ft=C_;var lt=b_}else(Xe=Ue.nodeName)&&Xe.toLowerCase()==="input"&&(Ue.type==="checkbox"||Ue.type==="radio")&&(ft=w_);if(ft&&(ft=ft(o,Ee))){$y(He,ft,v,je);break e}lt&&lt(o,Ue,Ee),o==="focusout"&&(lt=Ue._wrapperState)&&lt.controlled&&Ue.type==="number"&&Mn(Ue,"number",Ue.value)}switch(lt=Ee?Au(Ee):window,o){case"focusin":(Vy(lt)||lt.contentEditable==="true")&&(Vi=lt,sv=Ee,nf=null);break;case"focusout":nf=sv=Vi=null;break;case"mousedown":uv=!0;break;case"contextmenu":case"mouseup":case"dragend":uv=!1,e1(He,v,je);break;case"selectionchange":if(Jy)break;case"keydown":case"keyup":e1(He,v,je)}var pt;if(Hi)e:{switch(o){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else Su?Iy(o,v)&&(St="onCompositionEnd"):o==="keydown"&&v.keyCode===229&&(St="onCompositionStart");St&&(Uy&&v.locale!=="ko"&&(Su||St!=="onCompositionStart"?St==="onCompositionEnd"&&Su&&(pt=Zh()):(Fo=je,Qc="value"in Fo?Fo.value:Fo.textContent,Su=!0)),lt=sf(Ee,St),0<lt.length&&(St=new ev(St,o,null,v,je),He.push({event:St,listeners:lt}),pt?St.data=pt:(pt=Vd(v),pt!==null&&(St.data=pt)))),(pt=Hd?y_(o,v):x_(o,v))&&(Ee=sf(Ee,"onBeforeInput"),0<Ee.length&&(je=new ev("onBeforeInput","beforeinput",null,v,je),He.push({event:je,listeners:Ee}),je.data=pt))}Gd(He,s)})}function lf(o,s,v){return{instance:o,listener:s,currentTarget:v}}function sf(o,s){for(var v=s+"Capture",w=[];o!==null;){var O=o,L=O.stateNode;O.tag===5&&L!==null&&(O=L,L=Ao(o,v),L!=null&&w.unshift(lf(o,L,O)),L=Ao(o,s),L!=null&&w.push(lf(o,L,O))),o=o.return}return w}function ys(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function pv(o,s,v,w,O){for(var L=s._reactName,J=[];v!==null&&v!==w;){var le=v,ce=le.alternate,Ee=le.stateNode;if(ce!==null&&ce===w)break;le.tag===5&&Ee!==null&&(le=Ee,O?(ce=Ao(v,L),ce!=null&&J.unshift(lf(v,ce,le))):O||(ce=Ao(v,L),ce!=null&&J.push(lf(v,ce,le)))),v=v.return}J.length!==0&&o.push({event:s,listeners:J})}var hv=/\r\n?/g,D_=/\u0000|\uFFFD/g;function vv(o){return(typeof o=="string"?o:""+o).replace(hv,`
74
74
  `).replace(D_,"")}function Wd(o,s,v){if(s=vv(s),vv(o)!==s&&v)throw Error(t(425))}function Qd(){}var mv=null,xs=null;function uf(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var bs=typeof setTimeout=="function"?setTimeout:void 0,s1=typeof clearTimeout=="function"?clearTimeout:void 0,gv=typeof Promise=="function"?Promise:void 0,yv=typeof queueMicrotask=="function"?queueMicrotask:typeof gv<"u"?function(o){return gv.resolve(null).then(o).catch(k_)}:bs;function k_(o){setTimeout(function(){throw o})}function Tl(o,s){var v=s,w=0;do{var O=v.nextSibling;if(o.removeChild(v),O&&O.nodeType===8)if(v=O.data,v==="/$"){if(w===0){o.removeChild(O),Kc(s);return}w--}else v!=="$"&&v!=="$?"&&v!=="$!"||w++;v=O}while(v);Kc(s)}function $i(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function cf(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var v=o.data;if(v==="$"||v==="$!"||v==="$?"){if(s===0)return o;s--}else v==="/$"&&s++}o=o.previousSibling}return null}var Al=Math.random().toString(36).slice(2),io="__reactFiber$"+Al,Cs="__reactProps$"+Al,zo="__reactContainer$"+Al,xv="__reactEvents$"+Al,T_="__reactListeners$"+Al,bv="__reactHandles$"+Al;function hi(o){var s=o[io];if(s)return s;for(var v=o.parentNode;v;){if(s=v[zo]||v[io]){if(v=s.alternate,s.child!==null||v!==null&&v.child!==null)for(o=cf(o);o!==null;){if(v=o[io])return v;o=cf(o)}return s}o=v,v=o.parentNode}return null}function ff(o){return o=o[io]||o[zo],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function Au(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(t(33))}function ht(o){return o[Cs]||null}var Ol=[],Ln=-1;function At(o){return{current:o}}function un(o){0>Ln||(o.current=Ol[Ln],Ol[Ln]=null,Ln--)}function fn(o,s){Ln++,Ol[Ln]=o.current,o.current=s}var oo={},_t=At(oo),tr=At(!1),Aa=oo;function vi(o,s){var v=o.type.contextTypes;if(!v)return oo;var w=o.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===s)return w.__reactInternalMemoizedMaskedChildContext;var O={},L;for(L in v)O[L]=s[L];return w&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=O),O}function qn(o){return o=o.childContextTypes,o!=null}function mi(){un(tr),un(_t)}function Rl(o,s,v){if(_t.current!==oo)throw Error(t(168));fn(_t,s),fn(tr,v)}function df(o,s,v){var w=o.stateNode;if(s=s.childContextTypes,typeof w.getChildContext!="function")return v;w=w.getChildContext();for(var O in w)if(!(O in s))throw Error(t(108,xe(o)||"Unknown",O));return Z({},v,w)}function Zd(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||oo,Aa=_t.current,fn(_t,o),fn(tr,tr.current),!0}function u1(o,s,v){var w=o.stateNode;if(!w)throw Error(t(169));v?(o=df(o,s,Aa),w.__reactInternalMemoizedMergedChildContext=o,un(tr),un(_t),fn(_t,o)):un(tr),fn(tr,v)}var Ga=null,Ar=!1,pf=!1;function Cv(o){Ga===null?Ga=[o]:Ga.push(o)}function wv(o){Ar=!0,Cv(o)}function Oa(){if(!pf&&Ga!==null){pf=!0;var o=0,s=gn;try{var v=Ga;for(gn=1;o<v.length;o++){var w=v[o];do w=w(!0);while(w!==null)}Ga=null,Ar=!1}catch(O){throw Ga!==null&&(Ga=Ga.slice(o+1)),Yn(Ro,Oa),O}finally{gn=s,pf=!1}}return null}var Fl=[],Ra=0,ws=null,Ou=0,Fa=[],oa=0,gi=null,Ir=1,Uo="";function Ka(o,s){Fl[Ra++]=Ou,Fl[Ra++]=ws,ws=o,Ou=s}function _v(o,s,v){Fa[oa++]=Ir,Fa[oa++]=Uo,Fa[oa++]=gi,gi=o;var w=Ir;o=Uo;var O=32-ci(w)-1;w&=~(1<<O),v+=1;var L=32-ci(s)+O;if(30<L){var J=O-O%5;L=(w&(1<<J)-1).toString(32),w>>=J,O-=J,Ir=1<<32-ci(s)+O|v<<O|w,Uo=L+o}else Ir=1<<L|v<<O|w,Uo=o}function Xd(o){o.return!==null&&(Ka(o,1),_v(o,1,0))}function Sv(o){for(;o===ws;)ws=Fl[--Ra],Fl[Ra]=null,Ou=Fl[--Ra],Fl[Ra]=null;for(;o===gi;)gi=Fa[--oa],Fa[oa]=null,Uo=Fa[--oa],Fa[oa]=null,Ir=Fa[--oa],Fa[oa]=null}var Wa=null,Na=null,zn=!1,yi=null;function Ev(o,s){var v=Si(5,null,null,0);v.elementType="DELETED",v.stateNode=s,v.return=o,s=o.deletions,s===null?(o.deletions=[v],o.flags|=16):s.push(v)}function c1(o,s){switch(o.tag){case 5:var v=o.type;return s=s.nodeType!==1||v.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,Wa=o,Na=$i(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,Wa=o,Na=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(v=gi!==null?{id:Ir,overflow:Uo}:null,o.memoizedState={dehydrated:s,treeContext:v,retryLane:1073741824},v=Si(18,null,null,0),v.stateNode=s,v.return=o,o.child=v,Wa=o,Na=null,!0):!1;default:return!1}}function Jd(o){return(o.mode&1)!==0&&(o.flags&128)===0}function e0(o){if(zn){var s=Na;if(s){var v=s;if(!c1(o,s)){if(Jd(o))throw Error(t(418));s=$i(v.nextSibling);var w=Wa;s&&c1(o,s)?Ev(w,v):(o.flags=o.flags&-4097|2,zn=!1,Wa=o)}}else{if(Jd(o))throw Error(t(418));o.flags=o.flags&-4097|2,zn=!1,Wa=o}}}function f1(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;Wa=o}function t0(o){if(o!==Wa)return!1;if(!zn)return f1(o),zn=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!uf(o.type,o.memoizedProps)),s&&(s=Na)){if(Jd(o))throw d1(),Error(t(418));for(;s;)Ev(o,s),s=$i(s.nextSibling)}if(f1(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(t(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var v=o.data;if(v==="/$"){if(s===0){Na=$i(o.nextSibling);break e}s--}else v!=="$"&&v!=="$!"&&v!=="$?"||s++}o=o.nextSibling}Na=null}}else Na=Wa?$i(o.stateNode.nextSibling):null;return!0}function d1(){for(var o=Na;o;)o=$i(o.nextSibling)}function Qn(){Na=Wa=null,zn=!1}function Dv(o){yi===null?yi=[o]:yi.push(o)}var n0=R.ReactCurrentBatchConfig;function Qa(o,s){if(o&&o.defaultProps){s=Z({},s),o=o.defaultProps;for(var v in o)s[v]===void 0&&(s[v]=o[v]);return s}return s}var lo=At(null),r0=null,Nl=null,kv=null;function Tv(){kv=Nl=r0=null}function Ml(o){var s=lo.current;un(lo),o._currentValue=s}function Or(o,s,v){for(;o!==null;){var w=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,w!==null&&(w.childLanes|=s)):w!==null&&(w.childLanes&s)!==s&&(w.childLanes|=s),o===v)break;o=o.return}}function Ke(o,s){r0=o,kv=Nl=null,o=o.dependencies,o!==null&&o.firstContext!==null&&(o.lanes&s&&(pr=!0),o.firstContext=null)}function ir(o){var s=o._currentValue;if(kv!==o)if(o={context:o,memoizedValue:s,next:null},Nl===null){if(r0===null)throw Error(t(308));Nl=o,r0.dependencies={lanes:0,firstContext:o}}else Nl=Nl.next=o;return s}var Hr=null;function Av(o){Hr===null?Hr=[o]:Hr.push(o)}function p1(o,s,v,w){var O=s.interleaved;return O===null?(v.next=v,Av(s)):(v.next=O.next,O.next=v),s.interleaved=v,jo(o,w)}function jo(o,s){o.lanes|=s;var v=o.alternate;for(v!==null&&(v.lanes|=s),v=o,o=o.return;o!==null;)o.childLanes|=s,v=o.alternate,v!==null&&(v.childLanes|=s),v=o,o=o.return;return v.tag===3?v.stateNode:null}var Pl=!1;function Ov(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xr(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Io(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function Bl(o,s,v){var w=o.updateQueue;if(w===null)return null;if(w=w.shared,It&2){var O=w.pending;return O===null?s.next=s:(s.next=O.next,O.next=s),w.pending=s,jo(o,v)}return O=w.interleaved,O===null?(s.next=s,Av(w)):(s.next=O.next,O.next=s),w.interleaved=s,jo(o,v)}function a0(o,s,v){if(s=s.updateQueue,s!==null&&(s=s.shared,(v&4194240)!==0)){var w=s.lanes;w&=o.pendingLanes,v|=w,s.lanes=v,$c(o,v)}}function Rv(o,s){var v=o.updateQueue,w=o.alternate;if(w!==null&&(w=w.updateQueue,v===w)){var O=null,L=null;if(v=v.firstBaseUpdate,v!==null){do{var J={eventTime:v.eventTime,lane:v.lane,tag:v.tag,payload:v.payload,callback:v.callback,next:null};L===null?O=L=J:L=L.next=J,v=v.next}while(v!==null);L===null?O=L=s:L=L.next=s}else O=L=s;v={baseState:w.baseState,firstBaseUpdate:O,lastBaseUpdate:L,shared:w.shared,effects:w.effects},o.updateQueue=v;return}o=v.lastBaseUpdate,o===null?v.firstBaseUpdate=s:o.next=s,v.lastBaseUpdate=s}function Ll(o,s,v,w){var O=o.updateQueue;Pl=!1;var L=O.firstBaseUpdate,J=O.lastBaseUpdate,le=O.shared.pending;if(le!==null){O.shared.pending=null;var ce=le,Ee=ce.next;ce.next=null,J===null?L=Ee:J.next=Ee,J=ce;var je=o.alternate;je!==null&&(je=je.updateQueue,le=je.lastBaseUpdate,le!==J&&(le===null?je.firstBaseUpdate=Ee:le.next=Ee,je.lastBaseUpdate=ce))}if(L!==null){var He=O.baseState;J=0,je=Ee=ce=null,le=L;do{var Ue=le.lane,Xe=le.eventTime;if((w&Ue)===Ue){je!==null&&(je=je.next={eventTime:Xe,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var ot=o,ct=le;switch(Ue=s,Xe=v,ct.tag){case 1:if(ot=ct.payload,typeof ot=="function"){He=ot.call(Xe,He,Ue);break e}He=ot;break e;case 3:ot.flags=ot.flags&-65537|128;case 0:if(ot=ct.payload,Ue=typeof ot=="function"?ot.call(Xe,He,Ue):ot,Ue==null)break e;He=Z({},He,Ue);break e;case 2:Pl=!0}}le.callback!==null&&le.lane!==0&&(o.flags|=64,Ue=O.effects,Ue===null?O.effects=[le]:Ue.push(le))}else Xe={eventTime:Xe,lane:Ue,tag:le.tag,payload:le.payload,callback:le.callback,next:null},je===null?(Ee=je=Xe,ce=He):je=je.next=Xe,J|=Ue;if(le=le.next,le===null){if(le=O.shared.pending,le===null)break;Ue=le,le=Ue.next,Ue.next=null,O.lastBaseUpdate=Ue,O.shared.pending=null}}while(1);if(je===null&&(ce=He),O.baseState=ce,O.firstBaseUpdate=Ee,O.lastBaseUpdate=je,s=O.shared.interleaved,s!==null){O=s;do J|=O.lane,O=O.next;while(O!==s)}else L===null&&(O.shared.lanes=0);Yo|=J,o.lanes=J,o.memoizedState=He}}function _s(o,s,v){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var w=o[s],O=w.callback;if(O!==null){if(w.callback=null,w=v,typeof O!="function")throw Error(t(191,O));O.call(w)}}}var h1=new e.Component().refs;function Fv(o,s,v,w){s=o.memoizedState,v=v(w,s),v=v==null?s:Z({},s,v),o.memoizedState=v,o.lanes===0&&(o.updateQueue.baseState=v)}var i0={isMounted:function(o){return(o=o._reactInternals)?Rt(o)===o:!1},enqueueSetState:function(o,s,v){o=o._reactInternals;var w=ca(),O=hr(o),L=Io(w,O);L.payload=s,v!=null&&(L.callback=v),s=Bl(o,L,O),s!==null&&(fa(s,o,O,w),a0(s,o,O))},enqueueReplaceState:function(o,s,v){o=o._reactInternals;var w=ca(),O=hr(o),L=Io(w,O);L.tag=1,L.payload=s,v!=null&&(L.callback=v),s=Bl(o,L,O),s!==null&&(fa(s,o,O,w),a0(s,o,O))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var v=ca(),w=hr(o),O=Io(v,w);O.tag=2,s!=null&&(O.callback=s),s=Bl(o,O,w),s!==null&&(fa(s,o,w,v),a0(s,o,w))}};function v1(o,s,v,w,O,L,J){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(w,L,J):s.prototype&&s.prototype.isPureReactComponent?!tf(v,w)||!tf(O,L):!0}function m1(o,s,v){var w=!1,O=oo,L=s.contextType;return typeof L=="object"&&L!==null?L=ir(L):(O=qn(s)?Aa:_t.current,w=s.contextTypes,L=(w=w!=null)?vi(o,O):oo),s=new s(v,L),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=i0,o.stateNode=s,s._reactInternals=o,w&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=O,o.__reactInternalMemoizedMaskedChildContext=L),s}function g1(o,s,v,w){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(v,w),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(v,w),s.state!==o&&i0.enqueueReplaceState(s,s.state,null)}function o0(o,s,v,w){var O=o.stateNode;O.props=v,O.state=o.memoizedState,O.refs=h1,Ov(o);var L=s.contextType;typeof L=="object"&&L!==null?O.context=ir(L):(L=qn(s)?Aa:_t.current,O.context=vi(o,L)),O.state=o.memoizedState,L=s.getDerivedStateFromProps,typeof L=="function"&&(Fv(o,s,L,v),O.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(s=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),s!==O.state&&i0.enqueueReplaceState(O,O.state,null),Ll(o,v,O,w),O.state=o.memoizedState),typeof O.componentDidMount=="function"&&(o.flags|=4194308)}function Ru(o,s,v){if(o=v.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(v._owner){if(v=v._owner,v){if(v.tag!==1)throw Error(t(309));var w=v.stateNode}if(!w)throw Error(t(147,o));var O=w,L=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===L?s.ref:(s=function(J){var le=O.refs;le===h1&&(le=O.refs={}),J===null?delete le[L]:le[L]=J},s._stringRef=L,s)}if(typeof o!="string")throw Error(t(284));if(!v._owner)throw Error(t(290,o))}return o}function l0(o,s){throw o=Object.prototype.toString.call(s),Error(t(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function y1(o){var s=o._init;return s(o._payload)}function x1(o){function s(ye,pe){if(o){var we=ye.deletions;we===null?(ye.deletions=[pe],ye.flags|=16):we.push(pe)}}function v(ye,pe){if(!o)return null;for(;pe!==null;)s(ye,pe),pe=pe.sibling;return null}function w(ye,pe){for(ye=new Map;pe!==null;)pe.key!==null?ye.set(pe.key,pe):ye.set(pe.index,pe),pe=pe.sibling;return ye}function O(ye,pe){return ye=Yl(ye,pe),ye.index=0,ye.sibling=null,ye}function L(ye,pe,we){return ye.index=we,o?(we=ye.alternate,we!==null?(we=we.index,we<pe?(ye.flags|=2,pe):we):(ye.flags|=2,pe)):(ye.flags|=1048576,pe)}function J(ye){return o&&ye.alternate===null&&(ye.flags|=2),ye}function le(ye,pe,we,qe){return pe===null||pe.tag!==6?(pe=Ff(we,ye.mode,qe),pe.return=ye,pe):(pe=O(pe,we),pe.return=ye,pe)}function ce(ye,pe,we,qe){var ft=we.type;return ft===M?je(ye,pe,we.props.children,qe,we.key):pe!==null&&(pe.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===ee&&y1(ft)===pe.type)?(qe=O(pe,we.props),qe.ref=Ru(ye,pe,we),qe.return=ye,qe):(qe=U0(we.type,we.key,we.props,null,ye.mode,qe),qe.ref=Ru(ye,pe,we),qe.return=ye,qe)}function Ee(ye,pe,we,qe){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==we.containerInfo||pe.stateNode.implementation!==we.implementation?(pe=Hs(we,ye.mode,qe),pe.return=ye,pe):(pe=O(pe,we.children||[]),pe.return=ye,pe)}function je(ye,pe,we,qe,ft){return pe===null||pe.tag!==7?(pe=Is(we,ye.mode,qe,ft),pe.return=ye,pe):(pe=O(pe,we),pe.return=ye,pe)}function He(ye,pe,we){if(typeof pe=="string"&&pe!==""||typeof pe=="number")return pe=Ff(""+pe,ye.mode,we),pe.return=ye,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case N:return we=U0(pe.type,pe.key,pe.props,null,ye.mode,we),we.ref=Ru(ye,null,pe),we.return=ye,we;case z:return pe=Hs(pe,ye.mode,we),pe.return=ye,pe;case ee:var qe=pe._init;return He(ye,qe(pe._payload),we)}if(Pn(pe)||X(pe))return pe=Is(pe,ye.mode,we,null),pe.return=ye,pe;l0(ye,pe)}return null}function Ue(ye,pe,we,qe){var ft=pe!==null?pe.key:null;if(typeof we=="string"&&we!==""||typeof we=="number")return ft!==null?null:le(ye,pe,""+we,qe);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case N:return we.key===ft?ce(ye,pe,we,qe):null;case z:return we.key===ft?Ee(ye,pe,we,qe):null;case ee:return ft=we._init,Ue(ye,pe,ft(we._payload),qe)}if(Pn(we)||X(we))return ft!==null?null:je(ye,pe,we,qe,null);l0(ye,we)}return null}function Xe(ye,pe,we,qe,ft){if(typeof qe=="string"&&qe!==""||typeof qe=="number")return ye=ye.get(we)||null,le(pe,ye,""+qe,ft);if(typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case N:return ye=ye.get(qe.key===null?we:qe.key)||null,ce(pe,ye,qe,ft);case z:return ye=ye.get(qe.key===null?we:qe.key)||null,Ee(pe,ye,qe,ft);case ee:var lt=qe._init;return Xe(ye,pe,we,lt(qe._payload),ft)}if(Pn(qe)||X(qe))return ye=ye.get(we)||null,je(pe,ye,qe,ft,null);l0(pe,qe)}return null}function ot(ye,pe,we,qe){for(var ft=null,lt=null,pt=pe,St=pe=0,Nr=null;pt!==null&&St<we.length;St++){pt.index>St?(Nr=pt,pt=null):Nr=pt.sibling;var tn=Ue(ye,pt,we[St],qe);if(tn===null){pt===null&&(pt=Nr);break}o&&pt&&tn.alternate===null&&s(ye,pt),pe=L(tn,pe,St),lt===null?ft=tn:lt.sibling=tn,lt=tn,pt=Nr}if(St===we.length)return v(ye,pt),zn&&Ka(ye,St),ft;if(pt===null){for(;St<we.length;St++)pt=He(ye,we[St],qe),pt!==null&&(pe=L(pt,pe,St),lt===null?ft=pt:lt.sibling=pt,lt=pt);return zn&&Ka(ye,St),ft}for(pt=w(ye,pt);St<we.length;St++)Nr=Xe(pt,ye,St,we[St],qe),Nr!==null&&(o&&Nr.alternate!==null&&pt.delete(Nr.key===null?St:Nr.key),pe=L(Nr,pe,St),lt===null?ft=Nr:lt.sibling=Nr,lt=Nr);return o&&pt.forEach(function(ql){return s(ye,ql)}),zn&&Ka(ye,St),ft}function ct(ye,pe,we,qe){var ft=X(we);if(typeof ft!="function")throw Error(t(150));if(we=ft.call(we),we==null)throw Error(t(151));for(var lt=ft=null,pt=pe,St=pe=0,Nr=null,tn=we.next();pt!==null&&!tn.done;St++,tn=we.next()){pt.index>St?(Nr=pt,pt=null):Nr=pt.sibling;var ql=Ue(ye,pt,tn.value,qe);if(ql===null){pt===null&&(pt=Nr);break}o&&pt&&ql.alternate===null&&s(ye,pt),pe=L(ql,pe,St),lt===null?ft=ql:lt.sibling=ql,lt=ql,pt=Nr}if(tn.done)return v(ye,pt),zn&&Ka(ye,St),ft;if(pt===null){for(;!tn.done;St++,tn=we.next())tn=He(ye,tn.value,qe),tn!==null&&(pe=L(tn,pe,St),lt===null?ft=tn:lt.sibling=tn,lt=tn);return zn&&Ka(ye,St),ft}for(pt=w(ye,pt);!tn.done;St++,tn=we.next())tn=Xe(pt,ye,St,tn.value,qe),tn!==null&&(o&&tn.alternate!==null&&pt.delete(tn.key===null?St:tn.key),pe=L(tn,pe,St),lt===null?ft=tn:lt.sibling=tn,lt=tn);return o&&pt.forEach(function(K_){return s(ye,K_)}),zn&&Ka(ye,St),ft}function or(ye,pe,we,qe){if(typeof we=="object"&&we!==null&&we.type===M&&we.key===null&&(we=we.props.children),typeof we=="object"&&we!==null){switch(we.$$typeof){case N:e:{for(var ft=we.key,lt=pe;lt!==null;){if(lt.key===ft){if(ft=we.type,ft===M){if(lt.tag===7){v(ye,lt.sibling),pe=O(lt,we.props.children),pe.return=ye,ye=pe;break e}}else if(lt.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===ee&&y1(ft)===lt.type){v(ye,lt.sibling),pe=O(lt,we.props),pe.ref=Ru(ye,lt,we),pe.return=ye,ye=pe;break e}v(ye,lt);break}else s(ye,lt);lt=lt.sibling}we.type===M?(pe=Is(we.props.children,ye.mode,qe,we.key),pe.return=ye,ye=pe):(qe=U0(we.type,we.key,we.props,null,ye.mode,qe),qe.ref=Ru(ye,pe,we),qe.return=ye,ye=qe)}return J(ye);case z:e:{for(lt=we.key;pe!==null;){if(pe.key===lt)if(pe.tag===4&&pe.stateNode.containerInfo===we.containerInfo&&pe.stateNode.implementation===we.implementation){v(ye,pe.sibling),pe=O(pe,we.children||[]),pe.return=ye,ye=pe;break e}else{v(ye,pe);break}else s(ye,pe);pe=pe.sibling}pe=Hs(we,ye.mode,qe),pe.return=ye,ye=pe}return J(ye);case ee:return lt=we._init,or(ye,pe,lt(we._payload),qe)}if(Pn(we))return ot(ye,pe,we,qe);if(X(we))return ct(ye,pe,we,qe);l0(ye,we)}return typeof we=="string"&&we!==""||typeof we=="number"?(we=""+we,pe!==null&&pe.tag===6?(v(ye,pe.sibling),pe=O(pe,we),pe.return=ye,ye=pe):(v(ye,pe),pe=Ff(we,ye.mode,qe),pe.return=ye,ye=pe),J(ye)):v(ye,pe)}return or}var Fu=x1(!0),b1=x1(!1),hf={},Yi=At(hf),vf=At(hf),Nu=At(hf);function Ss(o){if(o===hf)throw Error(t(174));return o}function Nv(o,s){switch(fn(Nu,s),fn(vf,o),fn(Yi,hf),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Vt(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Vt(s,o)}un(Yi),fn(Yi,s)}function zl(){un(Yi),un(vf),un(Nu)}function gt(o){Ss(Nu.current);var s=Ss(Yi.current),v=Vt(s,o.type);s!==v&&(fn(vf,o),fn(Yi,v))}function Ut(o){vf.current===o&&(un(Yi),un(vf))}var xt=At(0);function Zn(o){for(var s=o;s!==null;){if(s.tag===13){var v=s.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||v.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var xi=[];function s0(){for(var o=0;o<xi.length;o++)xi[o]._workInProgressVersionPrimary=null;xi.length=0}var u0=R.ReactCurrentDispatcher,Mv=R.ReactCurrentBatchConfig,Es=0,Un=null,Oe=null,Yt=null,bt=!1,so=!1,Za=0,Ds=0;function jn(){throw Error(t(321))}function ks(o,s){if(s===null)return!1;for(var v=0;v<s.length&&v<o.length;v++)if(!pi(o[v],s[v]))return!1;return!0}function Ul(o,s,v,w,O,L){if(Es=L,Un=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,u0.current=o===null||o.memoizedState===null?O_:R_,o=v(w,O),so){L=0;do{if(so=!1,Za=0,25<=L)throw Error(t(301));L+=1,Yt=Oe=null,s.updateQueue=null,u0.current=Bv,o=v(w,O)}while(so)}if(u0.current=E0,s=Oe!==null&&Oe.next!==null,Es=0,Yt=Oe=Un=null,bt=!1,s)throw Error(t(300));return o}function Ts(){var o=Za!==0;return Za=0,o}function bi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?Un.memoizedState=Yt=o:Yt=Yt.next=o,Yt}function Ma(){if(Oe===null){var o=Un.alternate;o=o!==null?o.memoizedState:null}else o=Oe.next;var s=Yt===null?Un.memoizedState:Yt.next;if(s!==null)Yt=s,Oe=o;else{if(o===null)throw Error(t(310));Oe=o,o={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Yt===null?Un.memoizedState=Yt=o:Yt=Yt.next=o}return Yt}function As(o,s){return typeof s=="function"?s(o):s}function mf(o){var s=Ma(),v=s.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=o;var w=Oe,O=w.baseQueue,L=v.pending;if(L!==null){if(O!==null){var J=O.next;O.next=L.next,L.next=J}w.baseQueue=O=L,v.pending=null}if(O!==null){L=O.next,w=w.baseState;var le=J=null,ce=null,Ee=L;do{var je=Ee.lane;if((Es&je)===je)ce!==null&&(ce=ce.next={lane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),w=Ee.hasEagerState?Ee.eagerState:o(w,Ee.action);else{var He={lane:je,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};ce===null?(le=ce=He,J=w):ce=ce.next=He,Un.lanes|=je,Yo|=je}Ee=Ee.next}while(Ee!==null&&Ee!==L);ce===null?J=w:ce.next=le,pi(w,s.memoizedState)||(pr=!0),s.memoizedState=w,s.baseState=J,s.baseQueue=ce,v.lastRenderedState=w}if(o=v.interleaved,o!==null){O=o;do L=O.lane,Un.lanes|=L,Yo|=L,O=O.next;while(O!==o)}else O===null&&(v.lanes=0);return[s.memoizedState,v.dispatch]}function gf(o){var s=Ma(),v=s.queue;if(v===null)throw Error(t(311));v.lastRenderedReducer=o;var w=v.dispatch,O=v.pending,L=s.memoizedState;if(O!==null){v.pending=null;var J=O=O.next;do L=o(L,J.action),J=J.next;while(J!==O);pi(L,s.memoizedState)||(pr=!0),s.memoizedState=L,s.baseQueue===null&&(s.baseState=L),v.lastRenderedState=L}return[L,w]}function c0(){}function f0(o,s){var v=Un,w=Ma(),O=s(),L=!pi(w.memoizedState,O);if(L&&(w.memoizedState=O,pr=!0),w=w.queue,yf(h0.bind(null,v,w,o),[o]),w.getSnapshot!==s||L||Yt!==null&&Yt.memoizedState.tag&1){if(v.flags|=2048,Os(9,p0.bind(null,v,w,O,s),void 0,null),Xn===null)throw Error(t(349));Es&30||d0(v,s,O)}return O}function d0(o,s,v){o.flags|=16384,o={getSnapshot:s,value:v},s=Un.updateQueue,s===null?(s={lastEffect:null,stores:null},Un.updateQueue=s,s.stores=[o]):(v=s.stores,v===null?s.stores=[o]:v.push(o))}function p0(o,s,v,w){s.value=v,s.getSnapshot=w,v0(s)&&m0(o)}function h0(o,s,v){return v(function(){v0(s)&&m0(o)})}function v0(o){var s=o.getSnapshot;o=o.value;try{var v=s();return!pi(o,v)}catch{return!0}}function m0(o){var s=jo(o,1);s!==null&&fa(s,o,1,-1)}function g0(o){var s=bi();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:o},s.queue=o,o=o.dispatch=S0.bind(null,Un,o),[s.memoizedState,o]}function Os(o,s,v,w){return o={tag:o,create:s,destroy:v,deps:w,next:null},s=Un.updateQueue,s===null?(s={lastEffect:null,stores:null},Un.updateQueue=s,s.lastEffect=o.next=o):(v=s.lastEffect,v===null?s.lastEffect=o.next=o:(w=v.next,v.next=o,o.next=w,s.lastEffect=o)),o}function y0(){return Ma().memoizedState}function Rs(o,s,v,w){var O=bi();Un.flags|=o,O.memoizedState=Os(1|s,v,void 0,w===void 0?null:w)}function Ho(o,s,v,w){var O=Ma();w=w===void 0?null:w;var L=void 0;if(Oe!==null){var J=Oe.memoizedState;if(L=J.destroy,w!==null&&ks(w,J.deps)){O.memoizedState=Os(s,v,L,w);return}}Un.flags|=o,O.memoizedState=Os(1|s,v,L,w)}function x0(o,s){return Rs(8390656,8,o,s)}function yf(o,s){return Ho(2048,8,o,s)}function b0(o,s){return Ho(4,2,o,s)}function C0(o,s){return Ho(4,4,o,s)}function Pv(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function Mu(o,s,v){return v=v!=null?v.concat([o]):null,Ho(4,4,Pv.bind(null,s,o),v)}function w0(){}function Pu(o,s){var v=Ma();s=s===void 0?null:s;var w=v.memoizedState;return w!==null&&s!==null&&ks(s,w[1])?w[0]:(v.memoizedState=[o,s],o)}function jl(o,s){var v=Ma();s=s===void 0?null:s;var w=v.memoizedState;return w!==null&&s!==null&&ks(s,w[1])?w[0]:(o=o(),v.memoizedState=[o,s],o)}function Pa(o,s,v){return Es&21?(pi(v,s)||(v=Fd(),Un.lanes|=v,Yo|=v,o.baseState=!0),s):(o.baseState&&(o.baseState=!1,pr=!0),o.memoizedState=v)}function A_(o,s){var v=gn;gn=v!==0&&4>v?v:4,o(!0);var w=Mv.transition;Mv.transition={};try{o(!1),s()}finally{gn=v,Mv.transition=w}}function On(){return Ma().memoizedState}function _0(o,s,v){var w=hr(o);if(v={lane:w,action:v,hasEagerState:!1,eagerState:null,next:null},Bu(o))xf(s,v);else if(v=p1(o,s,v,w),v!==null){var O=ca();fa(v,o,w,O),C1(v,s,w)}}function S0(o,s,v){var w=hr(o),O={lane:w,action:v,hasEagerState:!1,eagerState:null,next:null};if(Bu(o))xf(s,O);else{var L=o.alternate;if(o.lanes===0&&(L===null||L.lanes===0)&&(L=s.lastRenderedReducer,L!==null))try{var J=s.lastRenderedState,le=L(J,v);if(O.hasEagerState=!0,O.eagerState=le,pi(le,J)){var ce=s.interleaved;ce===null?(O.next=O,Av(s)):(O.next=ce.next,ce.next=O),s.interleaved=O;return}}catch{}finally{}v=p1(o,s,O,w),v!==null&&(O=ca(),fa(v,o,w,O),C1(v,s,w))}}function Bu(o){var s=o.alternate;return o===Un||s!==null&&s===Un}function xf(o,s){so=bt=!0;var v=o.pending;v===null?s.next=s:(s.next=v.next,v.next=s),o.pending=s}function C1(o,s,v){if(v&4194240){var w=s.lanes;w&=o.pendingLanes,v|=w,s.lanes=v,$c(o,v)}}var E0={readContext:ir,useCallback:jn,useContext:jn,useEffect:jn,useImperativeHandle:jn,useInsertionEffect:jn,useLayoutEffect:jn,useMemo:jn,useReducer:jn,useRef:jn,useState:jn,useDebugValue:jn,useDeferredValue:jn,useTransition:jn,useMutableSource:jn,useSyncExternalStore:jn,useId:jn,unstable_isNewReconciler:!1},O_={readContext:ir,useCallback:function(o,s){return bi().memoizedState=[o,s===void 0?null:s],o},useContext:ir,useEffect:x0,useImperativeHandle:function(o,s,v){return v=v!=null?v.concat([o]):null,Rs(4194308,4,Pv.bind(null,s,o),v)},useLayoutEffect:function(o,s){return Rs(4194308,4,o,s)},useInsertionEffect:function(o,s){return Rs(4,2,o,s)},useMemo:function(o,s){var v=bi();return s=s===void 0?null:s,o=o(),v.memoizedState=[o,s],o},useReducer:function(o,s,v){var w=bi();return s=v!==void 0?v(s):s,w.memoizedState=w.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},w.queue=o,o=o.dispatch=_0.bind(null,Un,o),[w.memoizedState,o]},useRef:function(o){var s=bi();return o={current:o},s.memoizedState=o},useState:g0,useDebugValue:w0,useDeferredValue:function(o){return bi().memoizedState=o},useTransition:function(){var o=g0(!1),s=o[0];return o=A_.bind(null,o[1]),bi().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,v){var w=Un,O=bi();if(zn){if(v===void 0)throw Error(t(407));v=v()}else{if(v=s(),Xn===null)throw Error(t(349));Es&30||d0(w,s,v)}O.memoizedState=v;var L={value:v,getSnapshot:s};return O.queue=L,x0(h0.bind(null,w,L,o),[o]),w.flags|=2048,Os(9,p0.bind(null,w,L,v,s),void 0,null),v},useId:function(){var o=bi(),s=Xn.identifierPrefix;if(zn){var v=Uo,w=Ir;v=(w&~(1<<32-ci(w)-1)).toString(32)+v,s=":"+s+"R"+v,v=Za++,0<v&&(s+="H"+v.toString(32)),s+=":"}else v=Ds++,s=":"+s+"r"+v.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},R_={readContext:ir,useCallback:Pu,useContext:ir,useEffect:yf,useImperativeHandle:Mu,useInsertionEffect:b0,useLayoutEffect:C0,useMemo:jl,useReducer:mf,useRef:y0,useState:function(){return mf(As)},useDebugValue:w0,useDeferredValue:function(o){var s=Ma();return Pa(s,Oe.memoizedState,o)},useTransition:function(){var o=mf(As)[0],s=Ma().memoizedState;return[o,s]},useMutableSource:c0,useSyncExternalStore:f0,useId:On,unstable_isNewReconciler:!1},Bv={readContext:ir,useCallback:Pu,useContext:ir,useEffect:yf,useImperativeHandle:Mu,useInsertionEffect:b0,useLayoutEffect:C0,useMemo:jl,useReducer:gf,useRef:y0,useState:function(){return gf(As)},useDebugValue:w0,useDeferredValue:function(o){var s=Ma();return Oe===null?s.memoizedState=o:Pa(s,Oe.memoizedState,o)},useTransition:function(){var o=gf(As)[0],s=Ma().memoizedState;return[o,s]},useMutableSource:c0,useSyncExternalStore:f0,useId:On,unstable_isNewReconciler:!1};function Lu(o,s){try{var v="",w=s;do v+=fe(w),w=w.return;while(w);var O=v}catch(L){O=`
75
75
  Error generating stack: `+L.message+`
76
- `+L.stack}return{value:o,source:s,stack:O,digest:null}}function bf(o,s,v){return{value:o,source:null,stack:v??null,digest:s??null}}function D0(o,s){try{}catch(v){setTimeout(function(){throw v})}}var F_=typeof WeakMap=="function"?WeakMap:Map;function w1(o,s,v){v=Io(-1,v),v.tag=3,v.payload={element:null};var w=s.value;return v.callback=function(){N0||(N0=!0,Bs=w),D0(o,s)},v}function Cf(o,s,v){v=Io(-1,v),v.tag=3;var w=o.type.getDerivedStateFromError;if(typeof w=="function"){var O=s.value;v.payload=function(){return w(O)},v.callback=function(){D0(o,s)}}var L=o.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(v.callback=function(){D0(o,s),typeof w!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var J=s.stack;this.componentDidCatch(s.value,{componentStack:J!==null?J:""})}),v}function _1(o,s,v){var w=o.pingCache;if(w===null){w=o.pingCache=new F_;var O=new Set;w.set(s,O)}else O=w.get(s),O===void 0&&(O=new Set,w.set(s,O));O.has(v)||(O.add(v),o=U_.bind(null,o,s,v),s.then(o,o))}function Lv(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function zv(o,s,v,w,O){return o.mode&1?(o.flags|=65536,o.lanes=O,o):(o===s?o.flags|=65536:(o.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(s=Io(-1,1),s.tag=2,Bl(v,s,1))),v.lanes|=1),o)}var N_=R.ReactCurrentOwner,pr=!1;function br(o,s,v,w){s.child=o===null?b1(s,null,v,w):Fu(s,o.child,v,w)}function Il(o,s,v,w,O){v=v.render;var L=s.ref;return Ke(s,O),w=Ul(o,s,v,w,L,O),v=Ts(),o!==null&&!pr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Vr(o,s,O)):(zn&&v&&Xd(s),s.flags|=1,br(o,s,w,O),s.child)}function k0(o,s,v,w,O){if(o===null){var L=v.type;return typeof L=="function"&&!rm(L)&&L.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(s.tag=15,s.type=L,Ba(o,s,L,w,O)):(o=U0(v.type,null,w,s,s.mode,O),o.ref=s.ref,o.return=s,s.child=o)}if(L=o.child,!(o.lanes&O)){var J=L.memoizedProps;if(v=v.compare,v=v!==null?v:tf,v(J,w)&&o.ref===s.ref)return Vr(o,s,O)}return s.flags|=1,o=Yl(L,w),o.ref=s.ref,o.return=s,s.child=o}function Ba(o,s,v,w,O){if(o!==null){var L=o.memoizedProps;if(tf(L,w)&&o.ref===s.ref)if(pr=!1,s.pendingProps=w=L,(o.lanes&O)!==0)o.flags&131072&&(pr=!0);else return s.lanes=o.lanes,Vr(o,s,O)}return zu(o,s,v,w,O)}function Fs(o,s,v){var w=s.pendingProps,O=w.children,L=o!==null?o.memoizedState:null;if(w.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},fn($u,Xa),Xa|=v;else{if(!(v&1073741824))return o=L!==null?L.baseLanes|v:v,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,fn($u,Xa),Xa|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=L!==null?L.baseLanes:v,fn($u,Xa),Xa|=w}else L!==null?(w=L.baseLanes|v,s.memoizedState=null):w=v,fn($u,Xa),Xa|=w;return br(o,s,O,v),s.child}function Ot(o,s){var v=s.ref;(o===null&&v!==null||o!==null&&o.ref!==v)&&(s.flags|=512,s.flags|=2097152)}function zu(o,s,v,w,O){var L=qn(v)?Aa:_t.current;return L=vi(s,L),Ke(s,O),v=Ul(o,s,v,w,L,O),w=Ts(),o!==null&&!pr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Vr(o,s,O)):(zn&&w&&Xd(s),s.flags|=1,br(o,s,v,O),s.child)}function Uv(o,s,v,w,O){if(qn(v)){var L=!0;Zd(s)}else L=!1;if(Ke(s,O),s.stateNode===null)la(o,s),m1(s,v,w),o0(s,v,w,O),w=!0;else if(o===null){var J=s.stateNode,le=s.memoizedProps;J.props=le;var ce=J.context,Ee=v.contextType;typeof Ee=="object"&&Ee!==null?Ee=ir(Ee):(Ee=qn(v)?Aa:_t.current,Ee=vi(s,Ee));var je=v.getDerivedStateFromProps,He=typeof je=="function"||typeof J.getSnapshotBeforeUpdate=="function";He||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(le!==w||ce!==Ee)&&g1(s,J,w,Ee),Pl=!1;var Ue=s.memoizedState;J.state=Ue,Ll(s,w,J,O),ce=s.memoizedState,le!==w||Ue!==ce||tr.current||Pl?(typeof je=="function"&&(Fv(s,v,je,w),ce=s.memoizedState),(le=Pl||v1(s,v,le,w,Ue,ce,Ee))?(He||typeof J.UNSAFE_componentWillMount!="function"&&typeof J.componentWillMount!="function"||(typeof J.componentWillMount=="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount=="function"&&J.UNSAFE_componentWillMount()),typeof J.componentDidMount=="function"&&(s.flags|=4194308)):(typeof J.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=w,s.memoizedState=ce),J.props=w,J.state=ce,J.context=Ee,w=le):(typeof J.componentDidMount=="function"&&(s.flags|=4194308),w=!1)}else{J=s.stateNode,xr(o,s),le=s.memoizedProps,Ee=s.type===s.elementType?le:Qa(s.type,le),J.props=Ee,He=s.pendingProps,Ue=J.context,ce=v.contextType,typeof ce=="object"&&ce!==null?ce=ir(ce):(ce=qn(v)?Aa:_t.current,ce=vi(s,ce));var Xe=v.getDerivedStateFromProps;(je=typeof Xe=="function"||typeof J.getSnapshotBeforeUpdate=="function")||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(le!==He||Ue!==ce)&&g1(s,J,w,ce),Pl=!1,Ue=s.memoizedState,J.state=Ue,Ll(s,w,J,O);var ot=s.memoizedState;le!==He||Ue!==ot||tr.current||Pl?(typeof Xe=="function"&&(Fv(s,v,Xe,w),ot=s.memoizedState),(Ee=Pl||v1(s,v,Ee,w,Ue,ot,ce)||!1)?(je||typeof J.UNSAFE_componentWillUpdate!="function"&&typeof J.componentWillUpdate!="function"||(typeof J.componentWillUpdate=="function"&&J.componentWillUpdate(w,ot,ce),typeof J.UNSAFE_componentWillUpdate=="function"&&J.UNSAFE_componentWillUpdate(w,ot,ce)),typeof J.componentDidUpdate=="function"&&(s.flags|=4),typeof J.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof J.componentDidUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=1024),s.memoizedProps=w,s.memoizedState=ot),J.props=w,J.state=ot,J.context=ce,w=Ee):(typeof J.componentDidUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=1024),w=!1)}return S1(o,s,v,w,L,O)}function S1(o,s,v,w,O,L){Ot(o,s);var J=(s.flags&128)!==0;if(!w&&!J)return O&&u1(s,v,!1),Vr(o,s,L);w=s.stateNode,N_.current=s;var le=J&&typeof v.getDerivedStateFromError!="function"?null:w.render();return s.flags|=1,o!==null&&J?(s.child=Fu(s,o.child,null,L),s.child=Fu(s,null,le,L)):br(o,s,le,L),s.memoizedState=w.state,O&&u1(s,v,!0),s.child}function E1(o){var s=o.stateNode;s.pendingContext?Rl(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Rl(o,s.context,!1),Nv(o,s.containerInfo)}function T0(o,s,v,w,O){return Qn(),Dv(O),s.flags|=256,br(o,s,v,w),s.child}var Ns={dehydrated:null,treeContext:null,retryLane:0};function jv(o){return{baseLanes:o,cachePool:null,transitions:null}}function Iv(o,s,v){var w=s.pendingProps,O=xt.current,L=!1,J=(s.flags&128)!==0,le;if((le=J)||(le=o!==null&&o.memoizedState===null?!1:(O&2)!==0),le?(L=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(O|=1),fn(xt,O&1),o===null)return e0(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(s.mode&1?o.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(J=w.children,o=w.fallback,L?(w=s.mode,L=s.child,J={mode:"hidden",children:J},!(w&1)&&L!==null?(L.childLanes=0,L.pendingProps=J):L=Rf(J,w,0,null),o=Is(o,w,v,null),L.return=s,o.return=s,L.sibling=o,s.child=L,s.child.memoizedState=jv(v),s.memoizedState=Ns,o):Hv(s,J));if(O=o.memoizedState,O!==null&&(le=O.dehydrated,le!==null))return M_(o,s,J,w,le,O,v);if(L){L=w.fallback,J=s.mode,O=o.child,le=O.sibling;var ce={mode:"hidden",children:w.children};return!(J&1)&&s.child!==O?(w=s.child,w.childLanes=0,w.pendingProps=ce,s.deletions=null):(w=Yl(O,ce),w.subtreeFlags=O.subtreeFlags&14680064),le!==null?L=Yl(le,L):(L=Is(L,J,v,null),L.flags|=2),L.return=s,w.return=s,w.sibling=L,s.child=w,w=L,L=s.child,J=o.child.memoizedState,J=J===null?jv(v):{baseLanes:J.baseLanes|v,cachePool:null,transitions:J.transitions},L.memoizedState=J,L.childLanes=o.childLanes&~v,s.memoizedState=Ns,w}return L=o.child,o=L.sibling,w=Yl(L,{mode:"visible",children:w.children}),!(s.mode&1)&&(w.lanes=v),w.return=s,w.sibling=null,o!==null&&(v=s.deletions,v===null?(s.deletions=[o],s.flags|=16):v.push(o)),s.child=w,s.memoizedState=null,w}function Hv(o,s){return s=Rf({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Uu(o,s,v,w){return w!==null&&Dv(w),Fu(s,o.child,null,v),o=Hv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function M_(o,s,v,w,O,L,J){if(v)return s.flags&256?(s.flags&=-257,w=bf(Error(t(422))),Uu(o,s,J,w)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(L=w.fallback,O=s.mode,w=Rf({mode:"visible",children:w.children},O,0,null),L=Is(L,O,J,null),L.flags|=2,w.return=s,L.return=s,w.sibling=L,s.child=w,s.mode&1&&Fu(s,o.child,null,J),s.child.memoizedState=jv(J),s.memoizedState=Ns,L);if(!(s.mode&1))return Uu(o,s,J,null);if(O.data==="$!"){if(w=O.nextSibling&&O.nextSibling.dataset,w)var le=w.dgst;return w=le,L=Error(t(419)),w=bf(L,w,void 0),Uu(o,s,J,w)}if(le=(J&o.childLanes)!==0,pr||le){if(w=Xn,w!==null){switch(J&-J){case 4:O=2;break;case 16:O=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:O=32;break;case 536870912:O=268435456;break;default:O=0}O=O&(w.suspendedLanes|J)?0:O,O!==0&&O!==L.retryLane&&(L.retryLane=O,jo(o,O),fa(w,o,O,-1))}return em(),w=bf(Error(t(421))),Uu(o,s,J,w)}return O.data==="$?"?(s.flags|=128,s.child=o.child,s=j_.bind(null,o),O._reactRetry=s,null):(o=L.treeContext,Na=$i(O.nextSibling),Wa=s,zn=!0,yi=null,o!==null&&(Fa[oa++]=Ir,Fa[oa++]=Uo,Fa[oa++]=gi,Ir=o.id,Uo=o.overflow,gi=s),s=Hv(s,w.children),s.flags|=4096,s)}function Vv(o,s,v){o.lanes|=s;var w=o.alternate;w!==null&&(w.lanes|=s),Or(o.return,s,v)}function A0(o,s,v,w,O){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:w,tail:v,tailMode:O}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=w,L.tail=v,L.tailMode=O)}function $v(o,s,v){var w=s.pendingProps,O=w.revealOrder,L=w.tail;if(br(o,s,w.children,v),w=xt.current,w&2)w=w&1|2,s.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Vv(o,v,s);else if(o.tag===19)Vv(o,v,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}w&=1}if(fn(xt,w),!(s.mode&1))s.memoizedState=null;else switch(O){case"forwards":for(v=s.child,O=null;v!==null;)o=v.alternate,o!==null&&Zn(o)===null&&(O=v),v=v.sibling;v=O,v===null?(O=s.child,s.child=null):(O=v.sibling,v.sibling=null),A0(s,!1,O,v,L);break;case"backwards":for(v=null,O=s.child,s.child=null;O!==null;){if(o=O.alternate,o!==null&&Zn(o)===null){s.child=O;break}o=O.sibling,O.sibling=v,v=O,O=o}A0(s,!0,v,null,L);break;case"together":A0(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function la(o,s){!(s.mode&1)&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Vr(o,s,v){if(o!==null&&(s.dependencies=o.dependencies),Yo|=s.lanes,!(v&s.childLanes))return null;if(o!==null&&s.child!==o.child)throw Error(t(153));if(s.child!==null){for(o=s.child,v=Yl(o,o.pendingProps),s.child=v,v.return=s;o.sibling!==null;)o=o.sibling,v=v.sibling=Yl(o,o.pendingProps),v.return=s;v.sibling=null}return s.child}function Vo(o,s,v){switch(s.tag){case 3:E1(s),Qn();break;case 5:gt(s);break;case 1:qn(s.type)&&Zd(s);break;case 4:Nv(s,s.stateNode.containerInfo);break;case 10:var w=s.type._context,O=s.memoizedProps.value;fn(lo,w._currentValue),w._currentValue=O;break;case 13:if(w=s.memoizedState,w!==null)return w.dehydrated!==null?(fn(xt,xt.current&1),s.flags|=128,null):v&s.child.childLanes?Iv(o,s,v):(fn(xt,xt.current&1),o=Vr(o,s,v),o!==null?o.sibling:null);fn(xt,xt.current&1);break;case 19:if(w=(v&s.childLanes)!==0,o.flags&128){if(w)return $v(o,s,v);s.flags|=128}if(O=s.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),fn(xt,xt.current),w)break;return null;case 22:case 23:return s.lanes=0,Fs(o,s,v)}return Vr(o,s,v)}var wf,Ms,Ci,Cr;wf=function(o,s){for(var v=s.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===s)break;for(;v.sibling===null;){if(v.return===null||v.return===s)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},Ms=function(){},Ci=function(o,s,v,w){var O=o.memoizedProps;if(O!==w){o=s.stateNode,Ss(Yi.current);var L=null;switch(v){case"input":O=Me(o,O),w=Me(o,w),L=[];break;case"select":O=Z({},O,{value:void 0}),w=Z({},w,{value:void 0}),L=[];break;case"textarea":O=Jt(o,O),w=Jt(o,w),L=[];break;default:typeof O.onClick!="function"&&typeof w.onClick=="function"&&(o.onclick=Qd)}cr(v,w);var J;v=null;for(Ee in O)if(!w.hasOwnProperty(Ee)&&O.hasOwnProperty(Ee)&&O[Ee]!=null)if(Ee==="style"){var le=O[Ee];for(J in le)le.hasOwnProperty(J)&&(v||(v={}),v[J]="")}else Ee!=="dangerouslySetInnerHTML"&&Ee!=="children"&&Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&Ee!=="autoFocus"&&(l.hasOwnProperty(Ee)?L||(L=[]):(L=L||[]).push(Ee,null));for(Ee in w){var ce=w[Ee];if(le=O!=null?O[Ee]:void 0,w.hasOwnProperty(Ee)&&ce!==le&&(ce!=null||le!=null))if(Ee==="style")if(le){for(J in le)!le.hasOwnProperty(J)||ce&&ce.hasOwnProperty(J)||(v||(v={}),v[J]="");for(J in ce)ce.hasOwnProperty(J)&&le[J]!==ce[J]&&(v||(v={}),v[J]=ce[J])}else v||(L||(L=[]),L.push(Ee,v)),v=ce;else Ee==="dangerouslySetInnerHTML"?(ce=ce?ce.__html:void 0,le=le?le.__html:void 0,ce!=null&&le!==ce&&(L=L||[]).push(Ee,ce)):Ee==="children"?typeof ce!="string"&&typeof ce!="number"||(L=L||[]).push(Ee,""+ce):Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&(l.hasOwnProperty(Ee)?(ce!=null&&Ee==="onScroll"&&An("scroll",o),L||le===ce||(L=[])):(L=L||[]).push(Ee,ce))}v&&(L=L||[]).push("style",v);var Ee=L;(s.updateQueue=Ee)&&(s.flags|=4)}},Cr=function(o,s,v,w){v!==w&&(s.flags|=4)};function _f(o,s){if(!zn)switch(o.tailMode){case"hidden":s=o.tail;for(var v=null;s!==null;)s.alternate!==null&&(v=s),s=s.sibling;v===null?o.tail=null:v.sibling=null;break;case"collapsed":v=o.tail;for(var w=null;v!==null;)v.alternate!==null&&(w=v),v=v.sibling;w===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:w.sibling=null}}function sa(o){var s=o.alternate!==null&&o.alternate.child===o.child,v=0,w=0;if(s)for(var O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags&14680064,w|=O.flags&14680064,O.return=o,O=O.sibling;else for(O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags,w|=O.flags,O.return=o,O=O.sibling;return o.subtreeFlags|=w,o.childLanes=v,s}function P_(o,s,v){var w=s.pendingProps;switch(Sv(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sa(s),null;case 1:return qn(s.type)&&mi(),sa(s),null;case 3:return w=s.stateNode,zl(),un(tr),un(_t),s0(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(o===null||o.child===null)&&(t0(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,yi!==null&&(Of(yi),yi=null))),Ms(o,s),sa(s),null;case 5:Ut(s);var O=Ss(Nu.current);if(v=s.type,o!==null&&s.stateNode!=null)Ci(o,s,v,w,O),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!w){if(s.stateNode===null)throw Error(t(166));return sa(s),null}if(o=Ss(Yi.current),t0(s)){w=s.stateNode,v=s.type;var L=s.memoizedProps;switch(w[io]=s,w[Cs]=L,o=(s.mode&1)!==0,v){case"dialog":An("cancel",w),An("close",w);break;case"iframe":case"object":case"embed":An("load",w);break;case"video":case"audio":for(O=0;O<of.length;O++)An(of[O],w);break;case"source":An("error",w);break;case"img":case"image":case"link":An("error",w),An("load",w);break;case"details":An("toggle",w);break;case"input":et(w,L),An("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!L.multiple},An("invalid",w);break;case"textarea":cn(w,L),An("invalid",w)}cr(v,L),O=null;for(var J in L)if(L.hasOwnProperty(J)){var le=L[J];J==="children"?typeof le=="string"?w.textContent!==le&&(L.suppressHydrationWarning!==!0&&Wd(w.textContent,le,o),O=["children",le]):typeof le=="number"&&w.textContent!==""+le&&(L.suppressHydrationWarning!==!0&&Wd(w.textContent,le,o),O=["children",""+le]):l.hasOwnProperty(J)&&le!=null&&J==="onScroll"&&An("scroll",w)}switch(v){case"input":Pe(w),Mt(w,L,!0);break;case"textarea":Pe(w),Bn(w);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(w.onclick=Qd)}w=O,s.updateQueue=w,w!==null&&(s.flags|=4)}else{J=O.nodeType===9?O:O.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=kn(v)),o==="http://www.w3.org/1999/xhtml"?v==="script"?(o=J.createElement("div"),o.innerHTML="<script></script>",o=o.removeChild(o.firstChild)):typeof w.is=="string"?o=J.createElement(v,{is:w.is}):(o=J.createElement(v),v==="select"&&(J=o,w.multiple?J.multiple=!0:w.size&&(J.size=w.size))):o=J.createElementNS(o,v),o[io]=s,o[Cs]=w,wf(o,s,!1,!1),s.stateNode=o;e:{switch(J=Wn(v,w),v){case"dialog":An("cancel",o),An("close",o),O=w;break;case"iframe":case"object":case"embed":An("load",o),O=w;break;case"video":case"audio":for(O=0;O<of.length;O++)An(of[O],o);O=w;break;case"source":An("error",o),O=w;break;case"img":case"image":case"link":An("error",o),An("load",o),O=w;break;case"details":An("toggle",o),O=w;break;case"input":et(o,w),O=Me(o,w),An("invalid",o);break;case"option":O=w;break;case"select":o._wrapperState={wasMultiple:!!w.multiple},O=Z({},w,{value:void 0}),An("invalid",o);break;case"textarea":cn(o,w),O=Jt(o,w),An("invalid",o);break;default:O=w}cr(v,O),le=O;for(L in le)if(le.hasOwnProperty(L)){var ce=le[L];L==="style"?$t(o,ce):L==="dangerouslySetInnerHTML"?(ce=ce?ce.__html:void 0,ce!=null&&gr(o,ce)):L==="children"?typeof ce=="string"?(v!=="textarea"||ce!=="")&&ur(o,ce):typeof ce=="number"&&ur(o,""+ce):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?ce!=null&&L==="onScroll"&&An("scroll",o):ce!=null&&D(o,L,ce,J))}switch(v){case"input":Pe(o),Mt(o,w,!1);break;case"textarea":Pe(o),Bn(o);break;case"option":w.value!=null&&o.setAttribute("value",""+se(w.value));break;case"select":o.multiple=!!w.multiple,L=w.value,L!=null?sn(o,!!w.multiple,L,!1):w.defaultValue!=null&&sn(o,!!w.multiple,w.defaultValue,!0);break;default:typeof O.onClick=="function"&&(o.onclick=Qd)}switch(v){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return sa(s),null;case 6:if(o&&s.stateNode!=null)Cr(o,s,o.memoizedProps,w);else{if(typeof w!="string"&&s.stateNode===null)throw Error(t(166));if(v=Ss(Nu.current),Ss(Yi.current),t0(s)){if(w=s.stateNode,v=s.memoizedProps,w[io]=s,(L=w.nodeValue!==v)&&(o=Wa,o!==null))switch(o.tag){case 3:Wd(w.nodeValue,v,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Wd(w.nodeValue,v,(o.mode&1)!==0)}L&&(s.flags|=4)}else w=(v.nodeType===9?v:v.ownerDocument).createTextNode(w),w[io]=s,s.stateNode=w}return sa(s),null;case 13:if(un(xt),w=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(zn&&Na!==null&&s.mode&1&&!(s.flags&128))d1(),Qn(),s.flags|=98560,L=!1;else if(L=t0(s),w!==null&&w.dehydrated!==null){if(o===null){if(!L)throw Error(t(318));if(L=s.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(t(317));L[io]=s}else Qn(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;sa(s),L=!1}else yi!==null&&(Of(yi),yi=null),L=!0;if(!L)return s.flags&65536?s:null}return s.flags&128?(s.lanes=v,s):(w=w!==null,w!==(o!==null&&o.memoizedState!==null)&&w&&(s.child.flags|=8192,s.mode&1&&(o===null||xt.current&1?_r===0&&(_r=3):em())),s.updateQueue!==null&&(s.flags|=4),sa(s),null);case 4:return zl(),Ms(o,s),o===null&&Tu(s.stateNode.containerInfo),sa(s),null;case 10:return Ml(s.type._context),sa(s),null;case 17:return qn(s.type)&&mi(),sa(s),null;case 19:if(un(xt),L=s.memoizedState,L===null)return sa(s),null;if(w=(s.flags&128)!==0,J=L.rendering,J===null)if(w)_f(L,!1);else{if(_r!==0||o!==null&&o.flags&128)for(o=s.child;o!==null;){if(J=Zn(o),J!==null){for(s.flags|=128,_f(L,!1),w=J.updateQueue,w!==null&&(s.updateQueue=w,s.flags|=4),s.subtreeFlags=0,w=v,v=s.child;v!==null;)L=v,o=w,L.flags&=14680066,J=L.alternate,J===null?(L.childLanes=0,L.lanes=o,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=J.childLanes,L.lanes=J.lanes,L.child=J.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=J.memoizedProps,L.memoizedState=J.memoizedState,L.updateQueue=J.updateQueue,L.type=J.type,o=J.dependencies,L.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),v=v.sibling;return fn(xt,xt.current&1|2),s.child}o=o.sibling}L.tail!==null&&rn()>qu&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304)}else{if(!w)if(o=Zn(J),o!==null){if(s.flags|=128,w=!0,v=o.updateQueue,v!==null&&(s.updateQueue=v,s.flags|=4),_f(L,!0),L.tail===null&&L.tailMode==="hidden"&&!J.alternate&&!zn)return sa(s),null}else 2*rn()-L.renderingStartTime>qu&&v!==1073741824&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304);L.isBackwards?(J.sibling=s.child,s.child=J):(v=L.last,v!==null?v.sibling=J:s.child=J,L.last=J)}return L.tail!==null?(s=L.tail,L.rendering=s,L.tail=s.sibling,L.renderingStartTime=rn(),s.sibling=null,v=xt.current,fn(xt,w?v&1|2:v&1),s):(sa(s),null);case 22:case 23:return Jv(),w=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==w&&(s.flags|=8192),w&&s.mode&1?Xa&1073741824&&(sa(s),s.subtreeFlags&6&&(s.flags|=8192)):sa(s),null;case 24:return null;case 25:return null}throw Error(t(156,s.tag))}function Yv(o,s){switch(Sv(s),s.tag){case 1:return qn(s.type)&&mi(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return zl(),un(tr),un(_t),s0(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return Ut(s),null;case 13:if(un(xt),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(t(340));Qn()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return un(xt),null;case 4:return zl(),null;case 10:return Ml(s.type._context),null;case 22:case 23:return Jv(),null;case 24:return null;default:return null}}var Sf=!1,wr=!1,D1=typeof WeakSet=="function"?WeakSet:Set,rt=null;function ju(o,s){var v=o.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(w){rr(o,s,w)}else v.current=null}function Ef(o,s,v){try{v()}catch(w){rr(o,s,w)}}var k1=!1;function T1(o,s){if(mv=hs,o=$d(),Po(o)){if("selectionStart"in o)var v={start:o.selectionStart,end:o.selectionEnd};else e:{v=(v=o.ownerDocument)&&v.defaultView||window;var w=v.getSelection&&v.getSelection();if(w&&w.rangeCount!==0){v=w.anchorNode;var O=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{v.nodeType,L.nodeType}catch{v=null;break e}var J=0,le=-1,ce=-1,Ee=0,je=0,He=o,Ue=null;t:for(;;){for(var Xe;He!==v||O!==0&&He.nodeType!==3||(le=J+O),He!==L||w!==0&&He.nodeType!==3||(ce=J+w),He.nodeType===3&&(J+=He.nodeValue.length),(Xe=He.firstChild)!==null;)Ue=He,He=Xe;for(;;){if(He===o)break t;if(Ue===v&&++Ee===O&&(le=J),Ue===L&&++je===w&&(ce=J),(Xe=He.nextSibling)!==null)break;He=Ue,Ue=He.parentNode}He=Xe}v=le===-1||ce===-1?null:{start:le,end:ce}}else v=null}v=v||{start:0,end:0}}else v=null;for(xs={focusedElem:o,selectionRange:v},hs=!1,rt=s;rt!==null;)if(s=rt,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,rt=o;else for(;rt!==null;){s=rt;try{var ot=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ot!==null){var ct=ot.memoizedProps,or=ot.memoizedState,ye=s.stateNode,pe=ye.getSnapshotBeforeUpdate(s.elementType===s.type?ct:Qa(s.type,ct),or);ye.__reactInternalSnapshotBeforeUpdate=pe}break;case 3:var we=s.stateNode.containerInfo;we.nodeType===1?we.textContent="":we.nodeType===9&&we.documentElement&&we.removeChild(we.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(qe){rr(s,s.return,qe)}if(o=s.sibling,o!==null){o.return=s.return,rt=o;break}rt=s.return}return ot=k1,k1=!1,ot}function Df(o,s,v){var w=s.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var O=w=w.next;do{if((O.tag&o)===o){var L=O.destroy;O.destroy=void 0,L!==void 0&&Ef(s,v,L)}O=O.next}while(O!==w)}}function kf(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var v=s=s.next;do{if((v.tag&o)===o){var w=v.create;v.destroy=w()}v=v.next}while(v!==s)}}function qv(o){var s=o.ref;if(s!==null){var v=o.stateNode;switch(o.tag){case 5:o=v;break;default:o=v}typeof s=="function"?s(o):s.current=o}}function Gv(o){var s=o.alternate;s!==null&&(o.alternate=null,Gv(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[io],delete s[Cs],delete s[xv],delete s[T_],delete s[bv])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function A1(o){return o.tag===5||o.tag===3||o.tag===4}function O0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||A1(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Iu(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.nodeType===8?v.parentNode.insertBefore(o,s):v.insertBefore(o,s):(v.nodeType===8?(s=v.parentNode,s.insertBefore(o,v)):(s=v,s.appendChild(o)),v=v._reactRootContainer,v!=null||s.onclick!==null||(s.onclick=Qd));else if(w!==4&&(o=o.child,o!==null))for(Iu(o,s,v),o=o.sibling;o!==null;)Iu(o,s,v),o=o.sibling}function uo(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.insertBefore(o,s):v.appendChild(o);else if(w!==4&&(o=o.child,o!==null))for(uo(o,s,v),o=o.sibling;o!==null;)uo(o,s,v),o=o.sibling}var Gn=null,Rr=!1;function wi(o,s,v){for(v=v.child;v!==null;)Hu(o,s,v),v=v.sibling}function Hu(o,s,v){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(Vc,v)}catch{}switch(v.tag){case 5:wr||ju(v,s);case 6:var w=Gn,O=Rr;Gn=null,wi(o,s,v),Gn=w,Rr=O,Gn!==null&&(Rr?(o=Gn,v=v.stateNode,o.nodeType===8?o.parentNode.removeChild(v):o.removeChild(v)):Gn.removeChild(v.stateNode));break;case 18:Gn!==null&&(Rr?(o=Gn,v=v.stateNode,o.nodeType===8?Tl(o.parentNode,v):o.nodeType===1&&Tl(o,v),Kc(o)):Tl(Gn,v.stateNode));break;case 4:w=Gn,O=Rr,Gn=v.stateNode.containerInfo,Rr=!0,wi(o,s,v),Gn=w,Rr=O;break;case 0:case 11:case 14:case 15:if(!wr&&(w=v.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){O=w=w.next;do{var L=O,J=L.destroy;L=L.tag,J!==void 0&&(L&2||L&4)&&Ef(v,s,J),O=O.next}while(O!==w)}wi(o,s,v);break;case 1:if(!wr&&(ju(v,s),w=v.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=v.memoizedProps,w.state=v.memoizedState,w.componentWillUnmount()}catch(le){rr(v,s,le)}wi(o,s,v);break;case 21:wi(o,s,v);break;case 22:v.mode&1?(wr=(w=wr)||v.memoizedState!==null,wi(o,s,v),wr=w):wi(o,s,v);break;default:wi(o,s,v)}}function $o(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var v=o.stateNode;v===null&&(v=o.stateNode=new D1),s.forEach(function(w){var O=I_.bind(null,o,w);v.has(w)||(v.add(w),w.then(O,O))})}}function qi(o,s){var v=s.deletions;if(v!==null)for(var w=0;w<v.length;w++){var O=v[w];try{var L=o,J=s,le=J;e:for(;le!==null;){switch(le.tag){case 5:Gn=le.stateNode,Rr=!1;break e;case 3:Gn=le.stateNode.containerInfo,Rr=!0;break e;case 4:Gn=le.stateNode.containerInfo,Rr=!0;break e}le=le.return}if(Gn===null)throw Error(t(160));Hu(L,J,O),Gn=null,Rr=!1;var ce=O.alternate;ce!==null&&(ce.return=null),O.return=null}catch(Ee){rr(O,s,Ee)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)O1(s,o),s=s.sibling}function O1(o,s){var v=o.alternate,w=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(qi(s,o),co(o),w&4){try{Df(3,o,o.return),kf(3,o)}catch(ct){rr(o,o.return,ct)}try{Df(5,o,o.return)}catch(ct){rr(o,o.return,ct)}}break;case 1:qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return);break;case 5:if(qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return),o.flags&32){var O=o.stateNode;try{ur(O,"")}catch(ct){rr(o,o.return,ct)}}if(w&4&&(O=o.stateNode,O!=null)){var L=o.memoizedProps,J=v!==null?v.memoizedProps:L,le=o.type,ce=o.updateQueue;if(o.updateQueue=null,ce!==null)try{le==="input"&&L.type==="radio"&&L.name!=null&&ut(O,L),Wn(le,J);var Ee=Wn(le,L);for(J=0;J<ce.length;J+=2){var je=ce[J],He=ce[J+1];je==="style"?$t(O,He):je==="dangerouslySetInnerHTML"?gr(O,He):je==="children"?ur(O,He):D(O,je,He,Ee)}switch(le){case"input":Xt(O,L);break;case"textarea":Fn(O,L);break;case"select":var Ue=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!L.multiple;var Xe=L.value;Xe!=null?sn(O,!!L.multiple,Xe,!1):Ue!==!!L.multiple&&(L.defaultValue!=null?sn(O,!!L.multiple,L.defaultValue,!0):sn(O,!!L.multiple,L.multiple?[]:"",!1))}O[Cs]=L}catch(ct){rr(o,o.return,ct)}}break;case 6:if(qi(s,o),co(o),w&4){if(o.stateNode===null)throw Error(t(162));O=o.stateNode,L=o.memoizedProps;try{O.nodeValue=L}catch(ct){rr(o,o.return,ct)}}break;case 3:if(qi(s,o),co(o),w&4&&v!==null&&v.memoizedState.isDehydrated)try{Kc(s.containerInfo)}catch(ct){rr(o,o.return,ct)}break;case 4:qi(s,o),co(o);break;case 13:qi(s,o),co(o),O=o.child,O.flags&8192&&(L=O.memoizedState!==null,O.stateNode.isHidden=L,!L||O.alternate!==null&&O.alternate.memoizedState!==null||(Qv=rn())),w&4&&$o(o);break;case 22:if(je=v!==null&&v.memoizedState!==null,o.mode&1?(wr=(Ee=wr)||je,qi(s,o),wr=Ee):qi(s,o),co(o),w&8192){if(Ee=o.memoizedState!==null,(o.stateNode.isHidden=Ee)&&!je&&o.mode&1)for(rt=o,je=o.child;je!==null;){for(He=rt=je;rt!==null;){switch(Ue=rt,Xe=Ue.child,Ue.tag){case 0:case 11:case 14:case 15:Df(4,Ue,Ue.return);break;case 1:ju(Ue,Ue.return);var ot=Ue.stateNode;if(typeof ot.componentWillUnmount=="function"){w=Ue,v=Ue.return;try{s=w,ot.props=s.memoizedProps,ot.state=s.memoizedState,ot.componentWillUnmount()}catch(ct){rr(w,v,ct)}}break;case 5:ju(Ue,Ue.return);break;case 22:if(Ue.memoizedState!==null){Kv(He);continue}}Xe!==null?(Xe.return=Ue,rt=Xe):Kv(He)}je=je.sibling}e:for(je=null,He=o;;){if(He.tag===5){if(je===null){je=He;try{O=He.stateNode,Ee?(L=O.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(le=He.stateNode,ce=He.memoizedProps.style,J=ce!=null&&ce.hasOwnProperty("display")?ce.display:null,le.style.display=it("display",J))}catch(ct){rr(o,o.return,ct)}}}else if(He.tag===6){if(je===null)try{He.stateNode.nodeValue=Ee?"":He.memoizedProps}catch(ct){rr(o,o.return,ct)}}else if((He.tag!==22&&He.tag!==23||He.memoizedState===null||He===o)&&He.child!==null){He.child.return=He,He=He.child;continue}if(He===o)break e;for(;He.sibling===null;){if(He.return===null||He.return===o)break e;je===He&&(je=null),He=He.return}je===He&&(je=null),He.sibling.return=He.return,He=He.sibling}}break;case 19:qi(s,o),co(o),w&4&&$o(o);break;case 21:break;default:qi(s,o),co(o)}}function co(o){var s=o.flags;if(s&2){try{e:{for(var v=o.return;v!==null;){if(A1(v)){var w=v;break e}v=v.return}throw Error(t(160))}switch(w.tag){case 5:var O=w.stateNode;w.flags&32&&(ur(O,""),w.flags&=-33);var L=O0(o);uo(o,L,O);break;case 3:case 4:var J=w.stateNode.containerInfo,le=O0(o);Iu(o,le,J);break;default:throw Error(t(161))}}catch(ce){rr(o,o.return,ce)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function R1(o,s,v){rt=o,Vu(o)}function Vu(o,s,v){for(var w=(o.mode&1)!==0;rt!==null;){var O=rt,L=O.child;if(O.tag===22&&w){var J=O.memoizedState!==null||Sf;if(!J){var le=O.alternate,ce=le!==null&&le.memoizedState!==null||wr;le=Sf;var Ee=wr;if(Sf=J,(wr=ce)&&!Ee)for(rt=O;rt!==null;)J=rt,ce=J.child,J.tag===22&&J.memoizedState!==null?N1(O):ce!==null?(ce.return=J,rt=ce):N1(O);for(;L!==null;)rt=L,Vu(L),L=L.sibling;rt=O,Sf=le,wr=Ee}F1(o)}else O.subtreeFlags&8772&&L!==null?(L.return=O,rt=L):F1(o)}}function F1(o){for(;rt!==null;){var s=rt;if(s.flags&8772){var v=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:wr||kf(5,s);break;case 1:var w=s.stateNode;if(s.flags&4&&!wr)if(v===null)w.componentDidMount();else{var O=s.elementType===s.type?v.memoizedProps:Qa(s.type,v.memoizedProps);w.componentDidUpdate(O,v.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var L=s.updateQueue;L!==null&&_s(s,L,w);break;case 3:var J=s.updateQueue;if(J!==null){if(v=null,s.child!==null)switch(s.child.tag){case 5:v=s.child.stateNode;break;case 1:v=s.child.stateNode}_s(s,J,v)}break;case 5:var le=s.stateNode;if(v===null&&s.flags&4){v=le;var ce=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":ce.autoFocus&&v.focus();break;case"img":ce.src&&(v.src=ce.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Ee=s.alternate;if(Ee!==null){var je=Ee.memoizedState;if(je!==null){var He=je.dehydrated;He!==null&&Kc(He)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}wr||s.flags&512&&qv(s)}catch(Ue){rr(s,s.return,Ue)}}if(s===o){rt=null;break}if(v=s.sibling,v!==null){v.return=s.return,rt=v;break}rt=s.return}}function Kv(o){for(;rt!==null;){var s=rt;if(s===o){rt=null;break}var v=s.sibling;if(v!==null){v.return=s.return,rt=v;break}rt=s.return}}function N1(o){for(;rt!==null;){var s=rt;try{switch(s.tag){case 0:case 11:case 15:var v=s.return;try{kf(4,s)}catch(ce){rr(s,v,ce)}break;case 1:var w=s.stateNode;if(typeof w.componentDidMount=="function"){var O=s.return;try{w.componentDidMount()}catch(ce){rr(s,O,ce)}}var L=s.return;try{qv(s)}catch(ce){rr(s,L,ce)}break;case 5:var J=s.return;try{qv(s)}catch(ce){rr(s,J,ce)}}}catch(ce){rr(s,s.return,ce)}if(s===o){rt=null;break}var le=s.sibling;if(le!==null){le.return=s.return,rt=le;break}rt=s.return}}var R0=Math.ceil,Tf=R.ReactCurrentDispatcher,Wv=R.ReactCurrentOwner,ua=R.ReactCurrentBatchConfig,It=0,Xn=null,nr=null,Fr=0,Xa=0,$u=At(0),_r=0,Af=null,Yo=0,F0=0,Yu=0,Ps=null,va=null,Qv=0,qu=1/0,qo=null,N0=!1,Bs=null,fo=null,Hl=!1,Vl=null,M0=0,Gu=0,P0=null,Ls=-1,zs=0;function ca(){return It&6?rn():Ls!==-1?Ls:Ls=rn()}function hr(o){return o.mode&1?It&2&&Fr!==0?Fr&-Fr:n0.transition!==null?(zs===0&&(zs=Fd()),zs):(o=gn,o!==0||(o=window.event,o=o===void 0?16:Qh(o.type)),o):1}function fa(o,s,v,w){if(50<Gu)throw Gu=0,P0=null,Error(t(185));ps(o,v,w),(!(It&2)||o!==Xn)&&(o===Xn&&(!(It&2)&&(F0|=v),_r===4&&_i(o,Fr)),da(o,w),v===1&&It===0&&!(s.mode&1)&&(qu=rn()+500,Ar&&Oa()))}function da(o,s){var v=o.callbackNode;Rd(o,s);var w=ji(o,o===Xn?Fr:0);if(w===0)v!==null&&ha(v),o.callbackNode=null,o.callbackPriority=0;else if(s=w&-w,o.callbackPriority!==s){if(v!=null&&ha(v),s===1)o.tag===0?wv(M1.bind(null,o)):Cv(M1.bind(null,o)),yv(function(){!(It&6)&&Oa()}),v=null;else{switch(Gh(w)){case 1:v=Ro;break;case 4:v=jt;break;case 16:v=_l;break;case 536870912:v=Vh;break;default:v=_l}v=nm(v,Ku.bind(null,o))}o.callbackPriority=s,o.callbackNode=v}}function Ku(o,s){if(Ls=-1,zs=0,It&6)throw Error(t(327));var v=o.callbackNode;if(Qu()&&o.callbackNode!==v)return null;var w=ji(o,o===Xn?Fr:0);if(w===0)return null;if(w&30||w&o.expiredLanes||s)s=L0(o,w);else{s=w;var O=It;It|=2;var L=B0();(Xn!==o||Fr!==s)&&(qo=null,qu=rn()+500,Us(o,s));do try{L_();break}catch(le){P1(o,le)}while(1);Tv(),Tf.current=L,It=O,nr!==null?s=0:(Xn=null,Fr=0,s=_r)}if(s!==0){if(s===2&&(O=Yh(o),O!==0&&(w=O,s=Zv(o,O))),s===1)throw v=Af,Us(o,0),_i(o,w),da(o,rn()),v;if(s===6)_i(o,w);else{if(O=o.current.alternate,!(w&30)&&!Xv(O)&&(s=L0(o,w),s===2&&(L=Yh(o),L!==0&&(w=L,s=Zv(o,L))),s===1))throw v=Af,Us(o,0),_i(o,w),da(o,rn()),v;switch(o.finishedWork=O,o.finishedLanes=w,s){case 0:case 1:throw Error(t(345));case 2:js(o,va,qo);break;case 3:if(_i(o,w),(w&130023424)===w&&(s=Qv+500-rn(),10<s)){if(ji(o,0)!==0)break;if(O=o.suspendedLanes,(O&w)!==w){ca(),o.pingedLanes|=o.suspendedLanes&O;break}o.timeoutHandle=bs(js.bind(null,o,va,qo),s);break}js(o,va,qo);break;case 4:if(_i(o,w),(w&4194240)===w)break;for(s=o.eventTimes,O=-1;0<w;){var J=31-ci(w);L=1<<J,J=s[J],J>O&&(O=J),w&=~L}if(w=O,w=rn()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*R0(w/1960))-w,10<w){o.timeoutHandle=bs(js.bind(null,o,va,qo),w);break}js(o,va,qo);break;case 5:js(o,va,qo);break;default:throw Error(t(329))}}}return da(o,rn()),o.callbackNode===v?Ku.bind(null,o):null}function Zv(o,s){var v=Ps;return o.current.memoizedState.isDehydrated&&(Us(o,s).flags|=256),o=L0(o,s),o!==2&&(s=va,va=v,s!==null&&Of(s)),o}function Of(o){va===null?va=o:va.push.apply(va,o)}function Xv(o){for(var s=o;;){if(s.flags&16384){var v=s.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var w=0;w<v.length;w++){var O=v[w],L=O.getSnapshot;O=O.value;try{if(!pi(L(),O))return!1}catch{return!1}}}if(v=s.child,s.subtreeFlags&16384&&v!==null)v.return=s,s=v;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function _i(o,s){for(s&=~Yu,s&=~F0,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var v=31-ci(s),w=1<<v;o[v]=-1,s&=~w}}function M1(o){if(It&6)throw Error(t(327));Qu();var s=ji(o,0);if(!(s&1))return da(o,rn()),null;var v=L0(o,s);if(o.tag!==0&&v===2){var w=Yh(o);w!==0&&(s=w,v=Zv(o,w))}if(v===1)throw v=Af,Us(o,0),_i(o,s),da(o,rn()),v;if(v===6)throw Error(t(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,js(o,va,qo),da(o,rn()),null}function Wu(o,s){var v=It;It|=1;try{return o(s)}finally{It=v,It===0&&(qu=rn()+500,Ar&&Oa())}}function $l(o){Vl!==null&&Vl.tag===0&&!(It&6)&&Qu();var s=It;It|=1;var v=ua.transition,w=gn;try{if(ua.transition=null,gn=1,o)return o()}finally{gn=w,ua.transition=v,It=s,!(It&6)&&Oa()}}function Jv(){Xa=$u.current,un($u)}function Us(o,s){o.finishedWork=null,o.finishedLanes=0;var v=o.timeoutHandle;if(v!==-1&&(o.timeoutHandle=-1,s1(v)),nr!==null)for(v=nr.return;v!==null;){var w=v;switch(Sv(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&mi();break;case 3:zl(),un(tr),un(_t),s0();break;case 5:Ut(w);break;case 4:zl();break;case 13:un(xt);break;case 19:un(xt);break;case 10:Ml(w.type._context);break;case 22:case 23:Jv()}v=v.return}if(Xn=o,nr=o=Yl(o.current,null),Fr=Xa=s,_r=0,Af=null,Yu=F0=Yo=0,va=Ps=null,Hr!==null){for(s=0;s<Hr.length;s++)if(v=Hr[s],w=v.interleaved,w!==null){v.interleaved=null;var O=w.next,L=v.pending;if(L!==null){var J=L.next;L.next=O,w.next=J}v.pending=w}Hr=null}return o}function P1(o,s){do{var v=nr;try{if(Tv(),u0.current=E0,bt){for(var w=Un.memoizedState;w!==null;){var O=w.queue;O!==null&&(O.pending=null),w=w.next}bt=!1}if(Es=0,Yt=Oe=Un=null,so=!1,Za=0,Wv.current=null,v===null||v.return===null){_r=1,Af=s,nr=null;break}e:{var L=o,J=v.return,le=v,ce=s;if(s=Fr,le.flags|=32768,ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var Ee=ce,je=le,He=je.tag;if(!(je.mode&1)&&(He===0||He===11||He===15)){var Ue=je.alternate;Ue?(je.updateQueue=Ue.updateQueue,je.memoizedState=Ue.memoizedState,je.lanes=Ue.lanes):(je.updateQueue=null,je.memoizedState=null)}var Xe=Lv(J);if(Xe!==null){Xe.flags&=-257,zv(Xe,J,le,L,s),Xe.mode&1&&_1(L,Ee,s),s=Xe,ce=Ee;var ot=s.updateQueue;if(ot===null){var ct=new Set;ct.add(ce),s.updateQueue=ct}else ot.add(ce);break e}else{if(!(s&1)){_1(L,Ee,s),em();break e}ce=Error(t(426))}}else if(zn&&le.mode&1){var or=Lv(J);if(or!==null){!(or.flags&65536)&&(or.flags|=256),zv(or,J,le,L,s),Dv(Lu(ce,le));break e}}L=ce=Lu(ce,le),_r!==4&&(_r=2),Ps===null?Ps=[L]:Ps.push(L),L=J;do{switch(L.tag){case 3:L.flags|=65536,s&=-s,L.lanes|=s;var ye=w1(L,ce,s);Rv(L,ye);break e;case 1:le=ce;var pe=L.type,we=L.stateNode;if(!(L.flags&128)&&(typeof pe.getDerivedStateFromError=="function"||we!==null&&typeof we.componentDidCatch=="function"&&(fo===null||!fo.has(we)))){L.flags|=65536,s&=-s,L.lanes|=s;var qe=Cf(L,le,s);Rv(L,qe);break e}}L=L.return}while(L!==null)}tm(v)}catch(ft){s=ft,nr===v&&v!==null&&(nr=v=v.return);continue}break}while(1)}function B0(){var o=Tf.current;return Tf.current=E0,o===null?E0:o}function em(){(_r===0||_r===3||_r===2)&&(_r=4),Xn===null||!(Yo&268435455)&&!(F0&268435455)||_i(Xn,Fr)}function L0(o,s){var v=It;It|=2;var w=B0();(Xn!==o||Fr!==s)&&(qo=null,Us(o,s));do try{B_();break}catch(O){P1(o,O)}while(1);if(Tv(),It=v,Tf.current=w,nr!==null)throw Error(t(261));return Xn=null,Fr=0,_r}function B_(){for(;nr!==null;)B1(nr)}function L_(){for(;nr!==null&&!wl();)B1(nr)}function B1(o){var s=z1(o.alternate,o,Xa);o.memoizedProps=o.pendingProps,s===null?tm(o):nr=s,Wv.current=null}function tm(o){var s=o;do{var v=s.alternate;if(o=s.return,s.flags&32768){if(v=Yv(v,s),v!==null){v.flags&=32767,nr=v;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{_r=6,nr=null;return}}else if(v=P_(v,s,Xa),v!==null){nr=v;return}if(s=s.sibling,s!==null){nr=s;return}nr=s=o}while(s!==null);_r===0&&(_r=5)}function js(o,s,v){var w=gn,O=ua.transition;try{ua.transition=null,gn=1,z_(o,s,v,w)}finally{ua.transition=O,gn=w}return null}function z_(o,s,v,w){do Qu();while(Vl!==null);if(It&6)throw Error(t(327));v=o.finishedWork;var O=o.finishedLanes;if(v===null)return null;if(o.finishedWork=null,o.finishedLanes=0,v===o.current)throw Error(t(177));o.callbackNode=null,o.callbackPriority=0;var L=v.lanes|v.childLanes;if(c_(o,L),o===Xn&&(nr=Xn=null,Fr=0),!(v.subtreeFlags&2064)&&!(v.flags&2064)||Hl||(Hl=!0,nm(_l,function(){return Qu(),null})),L=(v.flags&15990)!==0,v.subtreeFlags&15990||L){L=ua.transition,ua.transition=null;var J=gn;gn=1;var le=It;It|=4,Wv.current=null,T1(o,v),O1(v,o),Yd(xs),hs=!!mv,xs=mv=null,o.current=v,R1(v),Ad(),It=le,gn=J,ua.transition=L}else o.current=v;if(Hl&&(Hl=!1,Vl=o,M0=O),L=o.pendingLanes,L===0&&(fo=null),wy(v.stateNode),da(o,rn()),s!==null)for(w=o.onRecoverableError,v=0;v<s.length;v++)O=s[v],w(O.value,{componentStack:O.stack,digest:O.digest});if(N0)throw N0=!1,o=Bs,Bs=null,o;return M0&1&&o.tag!==0&&Qu(),L=o.pendingLanes,L&1?o===P0?Gu++:(Gu=0,P0=o):Gu=0,Oa(),null}function Qu(){if(Vl!==null){var o=Gh(M0),s=ua.transition,v=gn;try{if(ua.transition=null,gn=16>o?16:o,Vl===null)var w=!1;else{if(o=Vl,Vl=null,M0=0,It&6)throw Error(t(331));var O=It;for(It|=4,rt=o.current;rt!==null;){var L=rt,J=L.child;if(rt.flags&16){var le=L.deletions;if(le!==null){for(var ce=0;ce<le.length;ce++){var Ee=le[ce];for(rt=Ee;rt!==null;){var je=rt;switch(je.tag){case 0:case 11:case 15:Df(8,je,L)}var He=je.child;if(He!==null)He.return=je,rt=He;else for(;rt!==null;){je=rt;var Ue=je.sibling,Xe=je.return;if(Gv(je),je===Ee){rt=null;break}if(Ue!==null){Ue.return=Xe,rt=Ue;break}rt=Xe}}}var ot=L.alternate;if(ot!==null){var ct=ot.child;if(ct!==null){ot.child=null;do{var or=ct.sibling;ct.sibling=null,ct=or}while(ct!==null)}}rt=L}}if(L.subtreeFlags&2064&&J!==null)J.return=L,rt=J;else e:for(;rt!==null;){if(L=rt,L.flags&2048)switch(L.tag){case 0:case 11:case 15:Df(9,L,L.return)}var ye=L.sibling;if(ye!==null){ye.return=L.return,rt=ye;break e}rt=L.return}}var pe=o.current;for(rt=pe;rt!==null;){J=rt;var we=J.child;if(J.subtreeFlags&2064&&we!==null)we.return=J,rt=we;else e:for(J=pe;rt!==null;){if(le=rt,le.flags&2048)try{switch(le.tag){case 0:case 11:case 15:kf(9,le)}}catch(ft){rr(le,le.return,ft)}if(le===J){rt=null;break e}var qe=le.sibling;if(qe!==null){qe.return=le.return,rt=qe;break e}rt=le.return}}if(It=O,Oa(),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(Vc,o)}catch{}w=!0}return w}finally{gn=v,ua.transition=s}}return!1}function L1(o,s,v){s=Lu(v,s),s=w1(o,s,1),o=Bl(o,s,1),s=ca(),o!==null&&(ps(o,1,s),da(o,s))}function rr(o,s,v){if(o.tag===3)L1(o,o,v);else for(;s!==null;){if(s.tag===3){L1(s,o,v);break}else if(s.tag===1){var w=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(fo===null||!fo.has(w))){o=Lu(v,o),o=Cf(s,o,1),s=Bl(s,o,1),o=ca(),s!==null&&(ps(s,1,o),da(s,o));break}}s=s.return}}function U_(o,s,v){var w=o.pingCache;w!==null&&w.delete(s),s=ca(),o.pingedLanes|=o.suspendedLanes&v,Xn===o&&(Fr&v)===v&&(_r===4||_r===3&&(Fr&130023424)===Fr&&500>rn()-Qv?Us(o,0):Yu|=v),da(o,s)}function z0(o,s){s===0&&(o.mode&1?(s=yu,yu<<=1,!(yu&130023424)&&(yu=4194304)):s=1);var v=ca();o=jo(o,s),o!==null&&(ps(o,s,v),da(o,v))}function j_(o){var s=o.memoizedState,v=0;s!==null&&(v=s.retryLane),z0(o,v)}function I_(o,s){var v=0;switch(o.tag){case 13:var w=o.stateNode,O=o.memoizedState;O!==null&&(v=O.retryLane);break;case 19:w=o.stateNode;break;default:throw Error(t(314))}w!==null&&w.delete(s),z0(o,v)}var z1;z1=function(o,s,v){if(o!==null)if(o.memoizedProps!==s.pendingProps||tr.current)pr=!0;else{if(!(o.lanes&v)&&!(s.flags&128))return pr=!1,Vo(o,s,v);pr=!!(o.flags&131072)}else pr=!1,zn&&s.flags&1048576&&_v(s,Ou,s.index);switch(s.lanes=0,s.tag){case 2:var w=s.type;la(o,s),o=s.pendingProps;var O=vi(s,_t.current);Ke(s,v),O=Ul(null,s,w,o,O,v);var L=Ts();return s.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,qn(w)?(L=!0,Zd(s)):L=!1,s.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,Ov(s),O.updater=i0,s.stateNode=O,O._reactInternals=s,o0(s,w,o,v),s=S1(null,s,w,!0,L,v)):(s.tag=0,zn&&L&&Xd(s),br(null,s,O,v),s=s.child),s;case 16:w=s.elementType;e:{switch(la(o,s),o=s.pendingProps,O=w._init,w=O(w._payload),s.type=w,O=s.tag=V_(w),o=Qa(w,o),O){case 0:s=zu(null,s,w,o,v);break e;case 1:s=Uv(null,s,w,o,v);break e;case 11:s=Il(null,s,w,o,v);break e;case 14:s=k0(null,s,w,Qa(w.type,o),v);break e}throw Error(t(306,w,""))}return s;case 0:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),zu(o,s,w,O,v);case 1:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Uv(o,s,w,O,v);case 3:e:{if(E1(s),o===null)throw Error(t(387));w=s.pendingProps,L=s.memoizedState,O=L.element,xr(o,s),Ll(s,w,null,v);var J=s.memoizedState;if(w=J.element,L.isDehydrated)if(L={element:w,isDehydrated:!1,cache:J.cache,pendingSuspenseBoundaries:J.pendingSuspenseBoundaries,transitions:J.transitions},s.updateQueue.baseState=L,s.memoizedState=L,s.flags&256){O=Lu(Error(t(423)),s),s=T0(o,s,w,v,O);break e}else if(w!==O){O=Lu(Error(t(424)),s),s=T0(o,s,w,v,O);break e}else for(Na=$i(s.stateNode.containerInfo.firstChild),Wa=s,zn=!0,yi=null,v=b1(s,null,w,v),s.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Qn(),w===O){s=Vr(o,s,v);break e}br(o,s,w,v)}s=s.child}return s;case 5:return gt(s),o===null&&e0(s),w=s.type,O=s.pendingProps,L=o!==null?o.memoizedProps:null,J=O.children,uf(w,O)?J=null:L!==null&&uf(w,L)&&(s.flags|=32),Ot(o,s),br(o,s,J,v),s.child;case 6:return o===null&&e0(s),null;case 13:return Iv(o,s,v);case 4:return Nv(s,s.stateNode.containerInfo),w=s.pendingProps,o===null?s.child=Fu(s,null,w,v):br(o,s,w,v),s.child;case 11:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Il(o,s,w,O,v);case 7:return br(o,s,s.pendingProps,v),s.child;case 8:return br(o,s,s.pendingProps.children,v),s.child;case 12:return br(o,s,s.pendingProps.children,v),s.child;case 10:e:{if(w=s.type._context,O=s.pendingProps,L=s.memoizedProps,J=O.value,fn(lo,w._currentValue),w._currentValue=J,L!==null)if(pi(L.value,J)){if(L.children===O.children&&!tr.current){s=Vr(o,s,v);break e}}else for(L=s.child,L!==null&&(L.return=s);L!==null;){var le=L.dependencies;if(le!==null){J=L.child;for(var ce=le.firstContext;ce!==null;){if(ce.context===w){if(L.tag===1){ce=Io(-1,v&-v),ce.tag=2;var Ee=L.updateQueue;if(Ee!==null){Ee=Ee.shared;var je=Ee.pending;je===null?ce.next=ce:(ce.next=je.next,je.next=ce),Ee.pending=ce}}L.lanes|=v,ce=L.alternate,ce!==null&&(ce.lanes|=v),Or(L.return,v,s),le.lanes|=v;break}ce=ce.next}}else if(L.tag===10)J=L.type===s.type?null:L.child;else if(L.tag===18){if(J=L.return,J===null)throw Error(t(341));J.lanes|=v,le=J.alternate,le!==null&&(le.lanes|=v),Or(J,v,s),J=L.sibling}else J=L.child;if(J!==null)J.return=L;else for(J=L;J!==null;){if(J===s){J=null;break}if(L=J.sibling,L!==null){L.return=J.return,J=L;break}J=J.return}L=J}br(o,s,O.children,v),s=s.child}return s;case 9:return O=s.type,w=s.pendingProps.children,Ke(s,v),O=ir(O),w=w(O),s.flags|=1,br(o,s,w,v),s.child;case 14:return w=s.type,O=Qa(w,s.pendingProps),O=Qa(w.type,O),k0(o,s,w,O,v);case 15:return Ba(o,s,s.type,s.pendingProps,v);case 17:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),la(o,s),s.tag=1,qn(w)?(o=!0,Zd(s)):o=!1,Ke(s,v),m1(s,w,O),o0(s,w,O,v),S1(null,s,w,!0,o,v);case 19:return $v(o,s,v);case 22:return Fs(o,s,v)}throw Error(t(156,s.tag))};function nm(o,s){return Yn(o,s)}function H_(o,s,v,w){this.tag=o,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(o,s,v,w){return new H_(o,s,v,w)}function rm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function V_(o){if(typeof o=="function")return rm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===P)return 11;if(o===G)return 14}return 2}function Yl(o,s){var v=o.alternate;return v===null?(v=Si(o.tag,s,o.key,o.mode),v.elementType=o.elementType,v.type=o.type,v.stateNode=o.stateNode,v.alternate=o,o.alternate=v):(v.pendingProps=s,v.type=o.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=o.flags&14680064,v.childLanes=o.childLanes,v.lanes=o.lanes,v.child=o.child,v.memoizedProps=o.memoizedProps,v.memoizedState=o.memoizedState,v.updateQueue=o.updateQueue,s=o.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},v.sibling=o.sibling,v.index=o.index,v.ref=o.ref,v}function U0(o,s,v,w,O,L){var J=2;if(w=o,typeof o=="function")rm(o)&&(J=1);else if(typeof o=="string")J=5;else e:switch(o){case M:return Is(v.children,O,L,s);case I:J=8,O|=8;break;case Y:return o=Si(12,v,s,O|2),o.elementType=Y,o.lanes=L,o;case H:return o=Si(13,v,s,O),o.elementType=H,o.lanes=L,o;case V:return o=Si(19,v,s,O),o.elementType=V,o.lanes=L,o;case ne:return Rf(v,O,L,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case B:J=10;break e;case U:J=9;break e;case P:J=11;break e;case G:J=14;break e;case ee:J=16,w=null;break e}throw Error(t(130,o==null?o:typeof o,""))}return s=Si(J,v,s,O),s.elementType=o,s.type=w,s.lanes=L,s}function Is(o,s,v,w){return o=Si(7,o,w,s),o.lanes=v,o}function Rf(o,s,v,w){return o=Si(22,o,w,s),o.elementType=ne,o.lanes=v,o.stateNode={isHidden:!1},o}function Ff(o,s,v){return o=Si(6,o,null,s),o.lanes=v,o}function Hs(o,s,v){return s=Si(4,o.children!==null?o.children:[],o.key,s),s.lanes=v,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function $_(o,s,v,w,O){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qh(0),this.expirationTimes=qh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qh(0),this.identifierPrefix=w,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function j0(o,s,v,w,O,L,J,le,ce){return o=new $_(o,s,v,le,ce),s===1?(s=1,L===!0&&(s|=8)):s=0,L=Si(3,null,null,s),o.current=L,L.stateNode=o,L.memoizedState={element:w,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ov(L),o}function U1(o,s,v){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:w==null?null:""+w,children:o,containerInfo:s,implementation:v}}function am(o){if(!o)return oo;o=o._reactInternals;e:{if(Rt(o)!==o||o.tag!==1)throw Error(t(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(qn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(t(171))}if(o.tag===1){var v=o.type;if(qn(v))return df(o,v,s)}return s}function j1(o,s,v,w,O,L,J,le,ce){return o=j0(v,w,!0,o,O,L,J,le,ce),o.context=am(null),v=o.current,w=ca(),O=hr(v),L=Io(w,O),L.callback=s??null,Bl(v,L,O),o.current.lanes=O,ps(o,O,w),da(o,w),o}function Nf(o,s,v,w){var O=s.current,L=ca(),J=hr(O);return v=am(v),s.context===null?s.context=v:s.pendingContext=v,s=Io(L,J),s.payload={element:o},w=w===void 0?null:w,w!==null&&(s.callback=w),o=Bl(O,s,J),o!==null&&(fa(o,O,J,L),a0(o,O,J)),J}function I0(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function I1(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var v=o.retryLane;o.retryLane=v!==0&&v<s?v:s}}function im(o,s){I1(o,s),(o=o.alternate)&&I1(o,s)}function H1(){return null}var om=typeof reportError=="function"?reportError:function(o){};function H0(o){this._internalRoot=o}Go.prototype.render=H0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(t(409));Nf(o,s,null,null)},Go.prototype.unmount=H0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;$l(function(){Nf(null,o,null,null)}),s[zo]=null}};function Go(o){this._internalRoot=o}Go.prototype.unstable_scheduleHydration=function(o){if(o){var s=Dy();o={blockedOn:null,target:o,priority:s};for(var v=0;v<Sn.length&&s!==0&&s<Sn[v].priority;v++);Sn.splice(v,0,o),v===0&&ky(o)}};function lm(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function V0(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function V1(){}function Y_(o,s,v,w,O){if(O){if(typeof w=="function"){var L=w;w=function(){var Ee=I0(J);L.call(Ee)}}var J=j1(s,w,o,0,null,!1,!1,"",V1);return o._reactRootContainer=J,o[zo]=J.current,Tu(o.nodeType===8?o.parentNode:o),$l(),J}for(;O=o.lastChild;)o.removeChild(O);if(typeof w=="function"){var le=w;w=function(){var Ee=I0(ce);le.call(Ee)}}var ce=j0(o,0,!1,null,null,!1,!1,"",V1);return o._reactRootContainer=ce,o[zo]=ce.current,Tu(o.nodeType===8?o.parentNode:o),$l(function(){Nf(s,ce,v,w)}),ce}function $0(o,s,v,w,O){var L=v._reactRootContainer;if(L){var J=L;if(typeof O=="function"){var le=O;O=function(){var ce=I0(J);le.call(ce)}}Nf(s,J,o,O)}else J=Y_(v,s,o,O,w);return I0(J)}Ey=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var v=ds(s.pendingLanes);v!==0&&($c(s,v|1),da(s,rn()),!(It&6)&&(qu=rn()+500,Oa()))}break;case 13:$l(function(){var w=jo(o,1);if(w!==null){var O=ca();fa(w,o,1,O)}}),im(o,1)}},Nd=function(o){if(o.tag===13){var s=jo(o,134217728);if(s!==null){var v=ca();fa(s,o,134217728,v)}im(o,134217728)}},Tn=function(o){if(o.tag===13){var s=hr(o),v=jo(o,s);if(v!==null){var w=ca();fa(v,o,s,w)}im(o,s)}},Dy=function(){return gn},Kh=function(o,s){var v=gn;try{return gn=o,s()}finally{gn=v}},ra=function(o,s,v){switch(s){case"input":if(Xt(o,v),s=v.name,v.type==="radio"&&s!=null){for(v=o;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<v.length;s++){var w=v[s];if(w!==o&&w.form===o.form){var O=ht(w);if(!O)throw Error(t(90));ge(w),Xt(w,O)}}}break;case"textarea":Fn(o,v);break;case"select":s=v.value,s!=null&&sn(o,!!v.multiple,s,!1)}},bl=Wu,gu=$l;var q_={usingClientEntryPoint:!1,Events:[ff,Au,ht,Do,xl,Wu]},Zu={findFiberByHostInstance:hi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},G_={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Dr(o),o===null?null:o.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||H1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Y0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Y0.isDisabled&&Y0.supportsFiber)try{Vc=Y0.inject(G_),Ui=Y0}catch{}}return ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q_,ai.createPortal=function(o,s){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lm(s))throw Error(t(200));return U1(o,s,null,v)},ai.createRoot=function(o,s){if(!lm(o))throw Error(t(299));var v=!1,w="",O=om;return s!=null&&(s.unstable_strictMode===!0&&(v=!0),s.identifierPrefix!==void 0&&(w=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError)),s=j0(o,1,!1,null,null,v,!1,w,O),o[zo]=s.current,Tu(o.nodeType===8?o.parentNode:o),new H0(s)},ai.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(t(188)):(o=Object.keys(o).join(","),Error(t(268,o)));return o=Dr(s),o=o===null?null:o.stateNode,o},ai.flushSync=function(o){return $l(o)},ai.hydrate=function(o,s,v){if(!V0(s))throw Error(t(200));return $0(null,o,s,!0,v)},ai.hydrateRoot=function(o,s,v){if(!lm(o))throw Error(t(405));var w=v!=null&&v.hydratedSources||null,O=!1,L="",J=om;if(v!=null&&(v.unstable_strictMode===!0&&(O=!0),v.identifierPrefix!==void 0&&(L=v.identifierPrefix),v.onRecoverableError!==void 0&&(J=v.onRecoverableError)),s=j1(s,null,o,1,v??null,O,!1,L,J),o[zo]=s.current,Tu(o),w)for(o=0;o<w.length;o++)v=w[o],O=v._getVersion,O=O(v._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[v,O]:s.mutableSourceEagerHydrationData.push(v,O);return new Go(s)},ai.render=function(o,s,v){if(!V0(s))throw Error(t(200));return $0(null,o,s,!1,v)},ai.unmountComponentAtNode=function(o){if(!V0(o))throw Error(t(40));return o._reactRootContainer?($l(function(){$0(null,null,o,!1,function(){o._reactRootContainer=null,o[zo]=null})}),!0):!1},ai.unstable_batchedUpdates=Wu,ai.unstable_renderSubtreeIntoContainer=function(o,s,v,w){if(!V0(v))throw Error(t(200));if(o==null||o._reactInternals===void 0)throw Error(t(38));return $0(o,s,v,!1,w)},ai.version="18.2.0-next-9e3b772b8-20220608",ai}var ii={};var B8;function m9(){return B8||(B8=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=W,r=M8(),t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function l(n){i=n}function f(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),p=1;p<a;p++)u[p-1]=arguments[p];h("warn",n,u)}}function c(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),p=1;p<a;p++)u[p-1]=arguments[p];h("error",n,u)}}function h(n,a,u){{var p=t.ReactDebugCurrentFrame,y=p.getStackAddendum();y!==""&&(a+="%s",u=u.concat([y]));var S=u.map(function(F){return String(F)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,S)}}var m=0,d=1,g=2,C=3,b=4,x=5,_=6,k=7,E=8,A=9,T=10,D=11,R=12,N=13,z=14,M=15,I=16,Y=17,B=18,U=19,P=21,H=22,V=23,G=24,ee=25,ne=!0,$=!1,X=!1,Z=!1,q=!1,te=!0,oe=!1,ae=!1,fe=!0,ve=!0,xe=!0,se=new Set,ke={},De={};function Pe(n,a){ge(n,a),ge(n+"Capture",a)}function ge(n,a){ke[n]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),ke[n]=a;{var u=n.toLowerCase();De[u]=n,n==="onDoubleClick"&&(De.ondblclick=n)}for(var p=0;p<a.length;p++)se.add(a[p])}var $e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Me=Object.prototype.hasOwnProperty;function et(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,u=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u}}function ut(n){try{return Xt(n),!1}catch{return!0}}function Xt(n){return""+n}function Mt(n,a){if(ut(n))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(n)),Xt(n)}function Mn(n){if(ut(n))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(n)),Xt(n)}function Pn(n,a){if(ut(n))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(n)),Xt(n)}function sn(n,a){if(ut(n))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(n)),Xt(n)}function Jt(n){if(ut(n))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",et(n)),Xt(n)}function cn(n){if(ut(n))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",et(n)),Xt(n)}var Fn=0,Bn=1,kn=2,Vt=3,Hn=4,gr=5,ur=6,Ye=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",at=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",it=new RegExp("^["+Ye+"]["+at+"]*$"),$t={},Nn={};function cr(n){return Me.call(Nn,n)?!0:Me.call($t,n)?!1:it.test(n)?(Nn[n]=!0,!0):($t[n]=!0,c("Invalid attribute name: `%s`",n),!1)}function Wn(n,a,u){return a!==null?a.type===Fn:u?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Ur(n,a,u,p){if(u!==null&&u.type===Fn)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(p)return!1;if(u!==null)return!u.acceptsBooleans;var y=n.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function _n(n,a,u,p){if(a===null||typeof a>"u"||Ur(n,a,u,p))return!0;if(p)return!1;if(u!==null)switch(u.type){case Vt:return!a;case Hn:return a===!1;case gr:return isNaN(a);case ur:return isNaN(a)||a<1}return!1}function ra(n){return mn.hasOwnProperty(n)?mn[n]:null}function vn(n,a,u,p,y,S,F){this.acceptsBooleans=a===kn||a===Vt||a===Hn,this.attributeName=p,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=n,this.type=a,this.sanitizeURL=S,this.removeEmptyString=F}var mn={},yl=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yl.forEach(function(n){mn[n]=new vn(n,Fn,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],u=n[1];mn[a]=new vn(a,Bn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){mn[n]=new vn(n,kn,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){mn[n]=new vn(n,kn,!1,n,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(n){mn[n]=new vn(n,Vt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){mn[n]=new vn(n,Vt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){mn[n]=new vn(n,Hn,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){mn[n]=new vn(n,ur,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){mn[n]=new vn(n,gr,!1,n.toLowerCase(),null,!1,!1)});var Do=/[\-\:]([a-z])/g,xl=function(n){return n[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Bn,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Bn,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Bn,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){mn[n]=new vn(n,Bn,!1,n.toLowerCase(),null,!1,!1)});var bl="xlinkHref";mn[bl]=new vn("xlinkHref",Bn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){mn[n]=new vn(n,Bn,!1,n.toLowerCase(),null,!0,!0)});var gu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ko=!1;function To(n){!ko&&gu.test(n)&&(ko=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function Ao(n,a,u,p){if(p.mustUseProperty){var y=p.propertyName;return n[y]}else{Mt(u,a),p.sanitizeURL&&To(""+u);var S=p.attributeName,F=null;if(p.type===Hn){if(n.hasAttribute(S)){var j=n.getAttribute(S);return j===""?!0:_n(a,u,p,!1)?j:j===""+u?u:j}}else if(n.hasAttribute(S)){if(_n(a,u,p,!1))return n.getAttribute(S);if(p.type===Vt)return u;F=n.getAttribute(S)}return _n(a,u,p,!1)?F===null?u:F:F===""+u?u:F}}function Oo(n,a,u,p){{if(!cr(a))return;if(!n.hasAttribute(a))return u===void 0?void 0:null;var y=n.getAttribute(a);return Mt(u,a),y===""+u?u:y}}function Vn(n,a,u,p){var y=ra(a);if(!Wn(a,y,p)){if(_n(a,u,y,p)&&(u=null),p||y===null){if(cr(a)){var S=a;u===null?n.removeAttribute(S):(Mt(u,a),n.setAttribute(S,""+u))}return}var F=y.mustUseProperty;if(F){var j=y.propertyName;if(u===null){var K=y.type;n[j]=K===Vt?!1:""}else n[j]=u;return}var re=y.attributeName,ie=y.attributeNamespace;if(u===null)n.removeAttribute(re);else{var he=y.type,de;he===Vt||he===Hn&&u===!0?de="":(Mt(u,re),de=""+u,y.sanitizeURL&&To(de.toString())),ie?n.setAttributeNS(ie,re,de):n.setAttribute(re,de)}}}var jr=Symbol.for("react.element"),aa=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Cl=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),Ie=Symbol.for("react.provider"),Qe=Symbol.for("react.context"),mt=Symbol.for("react.forward_ref"),Rt=Symbol.for("react.suspense"),en=Symbol.for("react.suspense_list"),Pt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),Dr=Symbol.for("react.scope"),$n=Symbol.for("react.debug_trace_mode"),Yn=Symbol.for("react.offscreen"),ha=Symbol.for("react.legacy_hidden"),wl=Symbol.for("react.cache"),Ad=Symbol.for("react.tracing_marker"),rn=Symbol.iterator,s_="@@iterator";function Ro(n){if(n===null||typeof n!="object")return null;var a=rn&&n[rn]||n[s_];return typeof a=="function"?a:null}var jt=Object.assign,_l=0,Cy,Vh,Vc,Ui,wy,ci,_y;function Sy(){}Sy.__reactDisabledLog=!0;function u_(){{if(_l===0){Cy=console.log,Vh=console.info,Vc=console.warn,Ui=console.error,wy=console.group,ci=console.groupCollapsed,_y=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Sy,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}_l++}}function Od(){{if(_l--,_l===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:jt({},n,{value:Cy}),info:jt({},n,{value:Vh}),warn:jt({},n,{value:Vc}),error:jt({},n,{value:Ui}),group:jt({},n,{value:wy}),groupCollapsed:jt({},n,{value:ci}),groupEnd:jt({},n,{value:_y})})}_l<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yu=t.ReactCurrentDispatcher,ds;function ji(n,a,u){{if(ds===void 0)try{throw Error()}catch(y){var p=y.stack.trim().match(/\n( *(at )?)/);ds=p&&p[1]||""}return`
76
+ `+L.stack}return{value:o,source:s,stack:O,digest:null}}function bf(o,s,v){return{value:o,source:null,stack:v??null,digest:s??null}}function D0(o,s){try{}catch(v){setTimeout(function(){throw v})}}var F_=typeof WeakMap=="function"?WeakMap:Map;function w1(o,s,v){v=Io(-1,v),v.tag=3,v.payload={element:null};var w=s.value;return v.callback=function(){N0||(N0=!0,Bs=w),D0(o,s)},v}function Cf(o,s,v){v=Io(-1,v),v.tag=3;var w=o.type.getDerivedStateFromError;if(typeof w=="function"){var O=s.value;v.payload=function(){return w(O)},v.callback=function(){D0(o,s)}}var L=o.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(v.callback=function(){D0(o,s),typeof w!="function"&&(fo===null?fo=new Set([this]):fo.add(this));var J=s.stack;this.componentDidCatch(s.value,{componentStack:J!==null?J:""})}),v}function _1(o,s,v){var w=o.pingCache;if(w===null){w=o.pingCache=new F_;var O=new Set;w.set(s,O)}else O=w.get(s),O===void 0&&(O=new Set,w.set(s,O));O.has(v)||(O.add(v),o=U_.bind(null,o,s,v),s.then(o,o))}function Lv(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function zv(o,s,v,w,O){return o.mode&1?(o.flags|=65536,o.lanes=O,o):(o===s?o.flags|=65536:(o.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(s=Io(-1,1),s.tag=2,Bl(v,s,1))),v.lanes|=1),o)}var N_=R.ReactCurrentOwner,pr=!1;function br(o,s,v,w){s.child=o===null?b1(s,null,v,w):Fu(s,o.child,v,w)}function Il(o,s,v,w,O){v=v.render;var L=s.ref;return Ke(s,O),w=Ul(o,s,v,w,L,O),v=Ts(),o!==null&&!pr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Vr(o,s,O)):(zn&&v&&Xd(s),s.flags|=1,br(o,s,w,O),s.child)}function k0(o,s,v,w,O){if(o===null){var L=v.type;return typeof L=="function"&&!rm(L)&&L.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(s.tag=15,s.type=L,Ba(o,s,L,w,O)):(o=U0(v.type,null,w,s,s.mode,O),o.ref=s.ref,o.return=s,s.child=o)}if(L=o.child,!(o.lanes&O)){var J=L.memoizedProps;if(v=v.compare,v=v!==null?v:tf,v(J,w)&&o.ref===s.ref)return Vr(o,s,O)}return s.flags|=1,o=Yl(L,w),o.ref=s.ref,o.return=s,s.child=o}function Ba(o,s,v,w,O){if(o!==null){var L=o.memoizedProps;if(tf(L,w)&&o.ref===s.ref)if(pr=!1,s.pendingProps=w=L,(o.lanes&O)!==0)o.flags&131072&&(pr=!0);else return s.lanes=o.lanes,Vr(o,s,O)}return zu(o,s,v,w,O)}function Fs(o,s,v){var w=s.pendingProps,O=w.children,L=o!==null?o.memoizedState:null;if(w.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},fn($u,Xa),Xa|=v;else{if(!(v&1073741824))return o=L!==null?L.baseLanes|v:v,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,fn($u,Xa),Xa|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=L!==null?L.baseLanes:v,fn($u,Xa),Xa|=w}else L!==null?(w=L.baseLanes|v,s.memoizedState=null):w=v,fn($u,Xa),Xa|=w;return br(o,s,O,v),s.child}function Ot(o,s){var v=s.ref;(o===null&&v!==null||o!==null&&o.ref!==v)&&(s.flags|=512,s.flags|=2097152)}function zu(o,s,v,w,O){var L=qn(v)?Aa:_t.current;return L=vi(s,L),Ke(s,O),v=Ul(o,s,v,w,L,O),w=Ts(),o!==null&&!pr?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~O,Vr(o,s,O)):(zn&&w&&Xd(s),s.flags|=1,br(o,s,v,O),s.child)}function Uv(o,s,v,w,O){if(qn(v)){var L=!0;Zd(s)}else L=!1;if(Ke(s,O),s.stateNode===null)la(o,s),m1(s,v,w),o0(s,v,w,O),w=!0;else if(o===null){var J=s.stateNode,le=s.memoizedProps;J.props=le;var ce=J.context,Ee=v.contextType;typeof Ee=="object"&&Ee!==null?Ee=ir(Ee):(Ee=qn(v)?Aa:_t.current,Ee=vi(s,Ee));var je=v.getDerivedStateFromProps,He=typeof je=="function"||typeof J.getSnapshotBeforeUpdate=="function";He||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(le!==w||ce!==Ee)&&g1(s,J,w,Ee),Pl=!1;var Ue=s.memoizedState;J.state=Ue,Ll(s,w,J,O),ce=s.memoizedState,le!==w||Ue!==ce||tr.current||Pl?(typeof je=="function"&&(Fv(s,v,je,w),ce=s.memoizedState),(le=Pl||v1(s,v,le,w,Ue,ce,Ee))?(He||typeof J.UNSAFE_componentWillMount!="function"&&typeof J.componentWillMount!="function"||(typeof J.componentWillMount=="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount=="function"&&J.UNSAFE_componentWillMount()),typeof J.componentDidMount=="function"&&(s.flags|=4194308)):(typeof J.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=w,s.memoizedState=ce),J.props=w,J.state=ce,J.context=Ee,w=le):(typeof J.componentDidMount=="function"&&(s.flags|=4194308),w=!1)}else{J=s.stateNode,xr(o,s),le=s.memoizedProps,Ee=s.type===s.elementType?le:Qa(s.type,le),J.props=Ee,He=s.pendingProps,Ue=J.context,ce=v.contextType,typeof ce=="object"&&ce!==null?ce=ir(ce):(ce=qn(v)?Aa:_t.current,ce=vi(s,ce));var Xe=v.getDerivedStateFromProps;(je=typeof Xe=="function"||typeof J.getSnapshotBeforeUpdate=="function")||typeof J.UNSAFE_componentWillReceiveProps!="function"&&typeof J.componentWillReceiveProps!="function"||(le!==He||Ue!==ce)&&g1(s,J,w,ce),Pl=!1,Ue=s.memoizedState,J.state=Ue,Ll(s,w,J,O);var ot=s.memoizedState;le!==He||Ue!==ot||tr.current||Pl?(typeof Xe=="function"&&(Fv(s,v,Xe,w),ot=s.memoizedState),(Ee=Pl||v1(s,v,Ee,w,Ue,ot,ce)||!1)?(je||typeof J.UNSAFE_componentWillUpdate!="function"&&typeof J.componentWillUpdate!="function"||(typeof J.componentWillUpdate=="function"&&J.componentWillUpdate(w,ot,ce),typeof J.UNSAFE_componentWillUpdate=="function"&&J.UNSAFE_componentWillUpdate(w,ot,ce)),typeof J.componentDidUpdate=="function"&&(s.flags|=4),typeof J.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof J.componentDidUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=1024),s.memoizedProps=w,s.memoizedState=ot),J.props=w,J.state=ot,J.context=ce,w=Ee):(typeof J.componentDidUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=4),typeof J.getSnapshotBeforeUpdate!="function"||le===o.memoizedProps&&Ue===o.memoizedState||(s.flags|=1024),w=!1)}return S1(o,s,v,w,L,O)}function S1(o,s,v,w,O,L){Ot(o,s);var J=(s.flags&128)!==0;if(!w&&!J)return O&&u1(s,v,!1),Vr(o,s,L);w=s.stateNode,N_.current=s;var le=J&&typeof v.getDerivedStateFromError!="function"?null:w.render();return s.flags|=1,o!==null&&J?(s.child=Fu(s,o.child,null,L),s.child=Fu(s,null,le,L)):br(o,s,le,L),s.memoizedState=w.state,O&&u1(s,v,!0),s.child}function E1(o){var s=o.stateNode;s.pendingContext?Rl(o,s.pendingContext,s.pendingContext!==s.context):s.context&&Rl(o,s.context,!1),Nv(o,s.containerInfo)}function T0(o,s,v,w,O){return Qn(),Dv(O),s.flags|=256,br(o,s,v,w),s.child}var Ns={dehydrated:null,treeContext:null,retryLane:0};function jv(o){return{baseLanes:o,cachePool:null,transitions:null}}function Iv(o,s,v){var w=s.pendingProps,O=xt.current,L=!1,J=(s.flags&128)!==0,le;if((le=J)||(le=o!==null&&o.memoizedState===null?!1:(O&2)!==0),le?(L=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(O|=1),fn(xt,O&1),o===null)return e0(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?(s.mode&1?o.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(J=w.children,o=w.fallback,L?(w=s.mode,L=s.child,J={mode:"hidden",children:J},!(w&1)&&L!==null?(L.childLanes=0,L.pendingProps=J):L=Rf(J,w,0,null),o=Is(o,w,v,null),L.return=s,o.return=s,L.sibling=o,s.child=L,s.child.memoizedState=jv(v),s.memoizedState=Ns,o):Hv(s,J));if(O=o.memoizedState,O!==null&&(le=O.dehydrated,le!==null))return M_(o,s,J,w,le,O,v);if(L){L=w.fallback,J=s.mode,O=o.child,le=O.sibling;var ce={mode:"hidden",children:w.children};return!(J&1)&&s.child!==O?(w=s.child,w.childLanes=0,w.pendingProps=ce,s.deletions=null):(w=Yl(O,ce),w.subtreeFlags=O.subtreeFlags&14680064),le!==null?L=Yl(le,L):(L=Is(L,J,v,null),L.flags|=2),L.return=s,w.return=s,w.sibling=L,s.child=w,w=L,L=s.child,J=o.child.memoizedState,J=J===null?jv(v):{baseLanes:J.baseLanes|v,cachePool:null,transitions:J.transitions},L.memoizedState=J,L.childLanes=o.childLanes&~v,s.memoizedState=Ns,w}return L=o.child,o=L.sibling,w=Yl(L,{mode:"visible",children:w.children}),!(s.mode&1)&&(w.lanes=v),w.return=s,w.sibling=null,o!==null&&(v=s.deletions,v===null?(s.deletions=[o],s.flags|=16):v.push(o)),s.child=w,s.memoizedState=null,w}function Hv(o,s){return s=Rf({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function Uu(o,s,v,w){return w!==null&&Dv(w),Fu(s,o.child,null,v),o=Hv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function M_(o,s,v,w,O,L,J){if(v)return s.flags&256?(s.flags&=-257,w=bf(Error(t(422))),Uu(o,s,J,w)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(L=w.fallback,O=s.mode,w=Rf({mode:"visible",children:w.children},O,0,null),L=Is(L,O,J,null),L.flags|=2,w.return=s,L.return=s,w.sibling=L,s.child=w,s.mode&1&&Fu(s,o.child,null,J),s.child.memoizedState=jv(J),s.memoizedState=Ns,L);if(!(s.mode&1))return Uu(o,s,J,null);if(O.data==="$!"){if(w=O.nextSibling&&O.nextSibling.dataset,w)var le=w.dgst;return w=le,L=Error(t(419)),w=bf(L,w,void 0),Uu(o,s,J,w)}if(le=(J&o.childLanes)!==0,pr||le){if(w=Xn,w!==null){switch(J&-J){case 4:O=2;break;case 16:O=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:O=32;break;case 536870912:O=268435456;break;default:O=0}O=O&(w.suspendedLanes|J)?0:O,O!==0&&O!==L.retryLane&&(L.retryLane=O,jo(o,O),fa(w,o,O,-1))}return em(),w=bf(Error(t(421))),Uu(o,s,J,w)}return O.data==="$?"?(s.flags|=128,s.child=o.child,s=j_.bind(null,o),O._reactRetry=s,null):(o=L.treeContext,Na=$i(O.nextSibling),Wa=s,zn=!0,yi=null,o!==null&&(Fa[oa++]=Ir,Fa[oa++]=Uo,Fa[oa++]=gi,Ir=o.id,Uo=o.overflow,gi=s),s=Hv(s,w.children),s.flags|=4096,s)}function Vv(o,s,v){o.lanes|=s;var w=o.alternate;w!==null&&(w.lanes|=s),Or(o.return,s,v)}function A0(o,s,v,w,O){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:w,tail:v,tailMode:O}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=w,L.tail=v,L.tailMode=O)}function $v(o,s,v){var w=s.pendingProps,O=w.revealOrder,L=w.tail;if(br(o,s,w.children,v),w=xt.current,w&2)w=w&1|2,s.flags|=128;else{if(o!==null&&o.flags&128)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Vv(o,v,s);else if(o.tag===19)Vv(o,v,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}w&=1}if(fn(xt,w),!(s.mode&1))s.memoizedState=null;else switch(O){case"forwards":for(v=s.child,O=null;v!==null;)o=v.alternate,o!==null&&Zn(o)===null&&(O=v),v=v.sibling;v=O,v===null?(O=s.child,s.child=null):(O=v.sibling,v.sibling=null),A0(s,!1,O,v,L);break;case"backwards":for(v=null,O=s.child,s.child=null;O!==null;){if(o=O.alternate,o!==null&&Zn(o)===null){s.child=O;break}o=O.sibling,O.sibling=v,v=O,O=o}A0(s,!0,v,null,L);break;case"together":A0(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function la(o,s){!(s.mode&1)&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Vr(o,s,v){if(o!==null&&(s.dependencies=o.dependencies),Yo|=s.lanes,!(v&s.childLanes))return null;if(o!==null&&s.child!==o.child)throw Error(t(153));if(s.child!==null){for(o=s.child,v=Yl(o,o.pendingProps),s.child=v,v.return=s;o.sibling!==null;)o=o.sibling,v=v.sibling=Yl(o,o.pendingProps),v.return=s;v.sibling=null}return s.child}function Vo(o,s,v){switch(s.tag){case 3:E1(s),Qn();break;case 5:gt(s);break;case 1:qn(s.type)&&Zd(s);break;case 4:Nv(s,s.stateNode.containerInfo);break;case 10:var w=s.type._context,O=s.memoizedProps.value;fn(lo,w._currentValue),w._currentValue=O;break;case 13:if(w=s.memoizedState,w!==null)return w.dehydrated!==null?(fn(xt,xt.current&1),s.flags|=128,null):v&s.child.childLanes?Iv(o,s,v):(fn(xt,xt.current&1),o=Vr(o,s,v),o!==null?o.sibling:null);fn(xt,xt.current&1);break;case 19:if(w=(v&s.childLanes)!==0,o.flags&128){if(w)return $v(o,s,v);s.flags|=128}if(O=s.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),fn(xt,xt.current),w)break;return null;case 22:case 23:return s.lanes=0,Fs(o,s,v)}return Vr(o,s,v)}var wf,Ms,Ci,Cr;wf=function(o,s){for(var v=s.child;v!==null;){if(v.tag===5||v.tag===6)o.appendChild(v.stateNode);else if(v.tag!==4&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===s)break;for(;v.sibling===null;){if(v.return===null||v.return===s)return;v=v.return}v.sibling.return=v.return,v=v.sibling}},Ms=function(){},Ci=function(o,s,v,w){var O=o.memoizedProps;if(O!==w){o=s.stateNode,Ss(Yi.current);var L=null;switch(v){case"input":O=Me(o,O),w=Me(o,w),L=[];break;case"select":O=Z({},O,{value:void 0}),w=Z({},w,{value:void 0}),L=[];break;case"textarea":O=Jt(o,O),w=Jt(o,w),L=[];break;default:typeof O.onClick!="function"&&typeof w.onClick=="function"&&(o.onclick=Qd)}cr(v,w);var J;v=null;for(Ee in O)if(!w.hasOwnProperty(Ee)&&O.hasOwnProperty(Ee)&&O[Ee]!=null)if(Ee==="style"){var le=O[Ee];for(J in le)le.hasOwnProperty(J)&&(v||(v={}),v[J]="")}else Ee!=="dangerouslySetInnerHTML"&&Ee!=="children"&&Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&Ee!=="autoFocus"&&(l.hasOwnProperty(Ee)?L||(L=[]):(L=L||[]).push(Ee,null));for(Ee in w){var ce=w[Ee];if(le=O!=null?O[Ee]:void 0,w.hasOwnProperty(Ee)&&ce!==le&&(ce!=null||le!=null))if(Ee==="style")if(le){for(J in le)!le.hasOwnProperty(J)||ce&&ce.hasOwnProperty(J)||(v||(v={}),v[J]="");for(J in ce)ce.hasOwnProperty(J)&&le[J]!==ce[J]&&(v||(v={}),v[J]=ce[J])}else v||(L||(L=[]),L.push(Ee,v)),v=ce;else Ee==="dangerouslySetInnerHTML"?(ce=ce?ce.__html:void 0,le=le?le.__html:void 0,ce!=null&&le!==ce&&(L=L||[]).push(Ee,ce)):Ee==="children"?typeof ce!="string"&&typeof ce!="number"||(L=L||[]).push(Ee,""+ce):Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&(l.hasOwnProperty(Ee)?(ce!=null&&Ee==="onScroll"&&An("scroll",o),L||le===ce||(L=[])):(L=L||[]).push(Ee,ce))}v&&(L=L||[]).push("style",v);var Ee=L;(s.updateQueue=Ee)&&(s.flags|=4)}},Cr=function(o,s,v,w){v!==w&&(s.flags|=4)};function _f(o,s){if(!zn)switch(o.tailMode){case"hidden":s=o.tail;for(var v=null;s!==null;)s.alternate!==null&&(v=s),s=s.sibling;v===null?o.tail=null:v.sibling=null;break;case"collapsed":v=o.tail;for(var w=null;v!==null;)v.alternate!==null&&(w=v),v=v.sibling;w===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:w.sibling=null}}function sa(o){var s=o.alternate!==null&&o.alternate.child===o.child,v=0,w=0;if(s)for(var O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags&14680064,w|=O.flags&14680064,O.return=o,O=O.sibling;else for(O=o.child;O!==null;)v|=O.lanes|O.childLanes,w|=O.subtreeFlags,w|=O.flags,O.return=o,O=O.sibling;return o.subtreeFlags|=w,o.childLanes=v,s}function P_(o,s,v){var w=s.pendingProps;switch(Sv(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sa(s),null;case 1:return qn(s.type)&&mi(),sa(s),null;case 3:return w=s.stateNode,zl(),un(tr),un(_t),s0(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(o===null||o.child===null)&&(t0(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,yi!==null&&(Of(yi),yi=null))),Ms(o,s),sa(s),null;case 5:Ut(s);var O=Ss(Nu.current);if(v=s.type,o!==null&&s.stateNode!=null)Ci(o,s,v,w,O),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!w){if(s.stateNode===null)throw Error(t(166));return sa(s),null}if(o=Ss(Yi.current),t0(s)){w=s.stateNode,v=s.type;var L=s.memoizedProps;switch(w[io]=s,w[Cs]=L,o=(s.mode&1)!==0,v){case"dialog":An("cancel",w),An("close",w);break;case"iframe":case"object":case"embed":An("load",w);break;case"video":case"audio":for(O=0;O<of.length;O++)An(of[O],w);break;case"source":An("error",w);break;case"img":case"image":case"link":An("error",w),An("load",w);break;case"details":An("toggle",w);break;case"input":et(w,L),An("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!L.multiple},An("invalid",w);break;case"textarea":cn(w,L),An("invalid",w)}cr(v,L),O=null;for(var J in L)if(L.hasOwnProperty(J)){var le=L[J];J==="children"?typeof le=="string"?w.textContent!==le&&(L.suppressHydrationWarning!==!0&&Wd(w.textContent,le,o),O=["children",le]):typeof le=="number"&&w.textContent!==""+le&&(L.suppressHydrationWarning!==!0&&Wd(w.textContent,le,o),O=["children",""+le]):l.hasOwnProperty(J)&&le!=null&&J==="onScroll"&&An("scroll",w)}switch(v){case"input":Pe(w),Mt(w,L,!0);break;case"textarea":Pe(w),Bn(w);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(w.onclick=Qd)}w=O,s.updateQueue=w,w!==null&&(s.flags|=4)}else{J=O.nodeType===9?O:O.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=kn(v)),o==="http://www.w3.org/1999/xhtml"?v==="script"?(o=J.createElement("div"),o.innerHTML="<script></script>",o=o.removeChild(o.firstChild)):typeof w.is=="string"?o=J.createElement(v,{is:w.is}):(o=J.createElement(v),v==="select"&&(J=o,w.multiple?J.multiple=!0:w.size&&(J.size=w.size))):o=J.createElementNS(o,v),o[io]=s,o[Cs]=w,wf(o,s,!1,!1),s.stateNode=o;e:{switch(J=Wn(v,w),v){case"dialog":An("cancel",o),An("close",o),O=w;break;case"iframe":case"object":case"embed":An("load",o),O=w;break;case"video":case"audio":for(O=0;O<of.length;O++)An(of[O],o);O=w;break;case"source":An("error",o),O=w;break;case"img":case"image":case"link":An("error",o),An("load",o),O=w;break;case"details":An("toggle",o),O=w;break;case"input":et(o,w),O=Me(o,w),An("invalid",o);break;case"option":O=w;break;case"select":o._wrapperState={wasMultiple:!!w.multiple},O=Z({},w,{value:void 0}),An("invalid",o);break;case"textarea":cn(o,w),O=Jt(o,w),An("invalid",o);break;default:O=w}cr(v,O),le=O;for(L in le)if(le.hasOwnProperty(L)){var ce=le[L];L==="style"?$t(o,ce):L==="dangerouslySetInnerHTML"?(ce=ce?ce.__html:void 0,ce!=null&&gr(o,ce)):L==="children"?typeof ce=="string"?(v!=="textarea"||ce!=="")&&ur(o,ce):typeof ce=="number"&&ur(o,""+ce):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?ce!=null&&L==="onScroll"&&An("scroll",o):ce!=null&&D(o,L,ce,J))}switch(v){case"input":Pe(o),Mt(o,w,!1);break;case"textarea":Pe(o),Bn(o);break;case"option":w.value!=null&&o.setAttribute("value",""+se(w.value));break;case"select":o.multiple=!!w.multiple,L=w.value,L!=null?sn(o,!!w.multiple,L,!1):w.defaultValue!=null&&sn(o,!!w.multiple,w.defaultValue,!0);break;default:typeof O.onClick=="function"&&(o.onclick=Qd)}switch(v){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return sa(s),null;case 6:if(o&&s.stateNode!=null)Cr(o,s,o.memoizedProps,w);else{if(typeof w!="string"&&s.stateNode===null)throw Error(t(166));if(v=Ss(Nu.current),Ss(Yi.current),t0(s)){if(w=s.stateNode,v=s.memoizedProps,w[io]=s,(L=w.nodeValue!==v)&&(o=Wa,o!==null))switch(o.tag){case 3:Wd(w.nodeValue,v,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Wd(w.nodeValue,v,(o.mode&1)!==0)}L&&(s.flags|=4)}else w=(v.nodeType===9?v:v.ownerDocument).createTextNode(w),w[io]=s,s.stateNode=w}return sa(s),null;case 13:if(un(xt),w=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(zn&&Na!==null&&s.mode&1&&!(s.flags&128))d1(),Qn(),s.flags|=98560,L=!1;else if(L=t0(s),w!==null&&w.dehydrated!==null){if(o===null){if(!L)throw Error(t(318));if(L=s.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(t(317));L[io]=s}else Qn(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;sa(s),L=!1}else yi!==null&&(Of(yi),yi=null),L=!0;if(!L)return s.flags&65536?s:null}return s.flags&128?(s.lanes=v,s):(w=w!==null,w!==(o!==null&&o.memoizedState!==null)&&w&&(s.child.flags|=8192,s.mode&1&&(o===null||xt.current&1?_r===0&&(_r=3):em())),s.updateQueue!==null&&(s.flags|=4),sa(s),null);case 4:return zl(),Ms(o,s),o===null&&Tu(s.stateNode.containerInfo),sa(s),null;case 10:return Ml(s.type._context),sa(s),null;case 17:return qn(s.type)&&mi(),sa(s),null;case 19:if(un(xt),L=s.memoizedState,L===null)return sa(s),null;if(w=(s.flags&128)!==0,J=L.rendering,J===null)if(w)_f(L,!1);else{if(_r!==0||o!==null&&o.flags&128)for(o=s.child;o!==null;){if(J=Zn(o),J!==null){for(s.flags|=128,_f(L,!1),w=J.updateQueue,w!==null&&(s.updateQueue=w,s.flags|=4),s.subtreeFlags=0,w=v,v=s.child;v!==null;)L=v,o=w,L.flags&=14680066,J=L.alternate,J===null?(L.childLanes=0,L.lanes=o,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=J.childLanes,L.lanes=J.lanes,L.child=J.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=J.memoizedProps,L.memoizedState=J.memoizedState,L.updateQueue=J.updateQueue,L.type=J.type,o=J.dependencies,L.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),v=v.sibling;return fn(xt,xt.current&1|2),s.child}o=o.sibling}L.tail!==null&&rn()>qu&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304)}else{if(!w)if(o=Zn(J),o!==null){if(s.flags|=128,w=!0,v=o.updateQueue,v!==null&&(s.updateQueue=v,s.flags|=4),_f(L,!0),L.tail===null&&L.tailMode==="hidden"&&!J.alternate&&!zn)return sa(s),null}else 2*rn()-L.renderingStartTime>qu&&v!==1073741824&&(s.flags|=128,w=!0,_f(L,!1),s.lanes=4194304);L.isBackwards?(J.sibling=s.child,s.child=J):(v=L.last,v!==null?v.sibling=J:s.child=J,L.last=J)}return L.tail!==null?(s=L.tail,L.rendering=s,L.tail=s.sibling,L.renderingStartTime=rn(),s.sibling=null,v=xt.current,fn(xt,w?v&1|2:v&1),s):(sa(s),null);case 22:case 23:return Jv(),w=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==w&&(s.flags|=8192),w&&s.mode&1?Xa&1073741824&&(sa(s),s.subtreeFlags&6&&(s.flags|=8192)):sa(s),null;case 24:return null;case 25:return null}throw Error(t(156,s.tag))}function Yv(o,s){switch(Sv(s),s.tag){case 1:return qn(s.type)&&mi(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return zl(),un(tr),un(_t),s0(),o=s.flags,o&65536&&!(o&128)?(s.flags=o&-65537|128,s):null;case 5:return Ut(s),null;case 13:if(un(xt),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(t(340));Qn()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return un(xt),null;case 4:return zl(),null;case 10:return Ml(s.type._context),null;case 22:case 23:return Jv(),null;case 24:return null;default:return null}}var Sf=!1,wr=!1,D1=typeof WeakSet=="function"?WeakSet:Set,at=null;function ju(o,s){var v=o.ref;if(v!==null)if(typeof v=="function")try{v(null)}catch(w){rr(o,s,w)}else v.current=null}function Ef(o,s,v){try{v()}catch(w){rr(o,s,w)}}var k1=!1;function T1(o,s){if(mv=hs,o=$d(),Po(o)){if("selectionStart"in o)var v={start:o.selectionStart,end:o.selectionEnd};else e:{v=(v=o.ownerDocument)&&v.defaultView||window;var w=v.getSelection&&v.getSelection();if(w&&w.rangeCount!==0){v=w.anchorNode;var O=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{v.nodeType,L.nodeType}catch{v=null;break e}var J=0,le=-1,ce=-1,Ee=0,je=0,He=o,Ue=null;t:for(;;){for(var Xe;He!==v||O!==0&&He.nodeType!==3||(le=J+O),He!==L||w!==0&&He.nodeType!==3||(ce=J+w),He.nodeType===3&&(J+=He.nodeValue.length),(Xe=He.firstChild)!==null;)Ue=He,He=Xe;for(;;){if(He===o)break t;if(Ue===v&&++Ee===O&&(le=J),Ue===L&&++je===w&&(ce=J),(Xe=He.nextSibling)!==null)break;He=Ue,Ue=He.parentNode}He=Xe}v=le===-1||ce===-1?null:{start:le,end:ce}}else v=null}v=v||{start:0,end:0}}else v=null;for(xs={focusedElem:o,selectionRange:v},hs=!1,at=s;at!==null;)if(s=at,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,at=o;else for(;at!==null;){s=at;try{var ot=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ot!==null){var ct=ot.memoizedProps,or=ot.memoizedState,ye=s.stateNode,pe=ye.getSnapshotBeforeUpdate(s.elementType===s.type?ct:Qa(s.type,ct),or);ye.__reactInternalSnapshotBeforeUpdate=pe}break;case 3:var we=s.stateNode.containerInfo;we.nodeType===1?we.textContent="":we.nodeType===9&&we.documentElement&&we.removeChild(we.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(qe){rr(s,s.return,qe)}if(o=s.sibling,o!==null){o.return=s.return,at=o;break}at=s.return}return ot=k1,k1=!1,ot}function Df(o,s,v){var w=s.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var O=w=w.next;do{if((O.tag&o)===o){var L=O.destroy;O.destroy=void 0,L!==void 0&&Ef(s,v,L)}O=O.next}while(O!==w)}}function kf(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var v=s=s.next;do{if((v.tag&o)===o){var w=v.create;v.destroy=w()}v=v.next}while(v!==s)}}function qv(o){var s=o.ref;if(s!==null){var v=o.stateNode;switch(o.tag){case 5:o=v;break;default:o=v}typeof s=="function"?s(o):s.current=o}}function Gv(o){var s=o.alternate;s!==null&&(o.alternate=null,Gv(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[io],delete s[Cs],delete s[xv],delete s[T_],delete s[bv])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function A1(o){return o.tag===5||o.tag===3||o.tag===4}function O0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||A1(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Iu(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.nodeType===8?v.parentNode.insertBefore(o,s):v.insertBefore(o,s):(v.nodeType===8?(s=v.parentNode,s.insertBefore(o,v)):(s=v,s.appendChild(o)),v=v._reactRootContainer,v!=null||s.onclick!==null||(s.onclick=Qd));else if(w!==4&&(o=o.child,o!==null))for(Iu(o,s,v),o=o.sibling;o!==null;)Iu(o,s,v),o=o.sibling}function uo(o,s,v){var w=o.tag;if(w===5||w===6)o=o.stateNode,s?v.insertBefore(o,s):v.appendChild(o);else if(w!==4&&(o=o.child,o!==null))for(uo(o,s,v),o=o.sibling;o!==null;)uo(o,s,v),o=o.sibling}var Gn=null,Rr=!1;function wi(o,s,v){for(v=v.child;v!==null;)Hu(o,s,v),v=v.sibling}function Hu(o,s,v){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(Vc,v)}catch{}switch(v.tag){case 5:wr||ju(v,s);case 6:var w=Gn,O=Rr;Gn=null,wi(o,s,v),Gn=w,Rr=O,Gn!==null&&(Rr?(o=Gn,v=v.stateNode,o.nodeType===8?o.parentNode.removeChild(v):o.removeChild(v)):Gn.removeChild(v.stateNode));break;case 18:Gn!==null&&(Rr?(o=Gn,v=v.stateNode,o.nodeType===8?Tl(o.parentNode,v):o.nodeType===1&&Tl(o,v),Kc(o)):Tl(Gn,v.stateNode));break;case 4:w=Gn,O=Rr,Gn=v.stateNode.containerInfo,Rr=!0,wi(o,s,v),Gn=w,Rr=O;break;case 0:case 11:case 14:case 15:if(!wr&&(w=v.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){O=w=w.next;do{var L=O,J=L.destroy;L=L.tag,J!==void 0&&(L&2||L&4)&&Ef(v,s,J),O=O.next}while(O!==w)}wi(o,s,v);break;case 1:if(!wr&&(ju(v,s),w=v.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=v.memoizedProps,w.state=v.memoizedState,w.componentWillUnmount()}catch(le){rr(v,s,le)}wi(o,s,v);break;case 21:wi(o,s,v);break;case 22:v.mode&1?(wr=(w=wr)||v.memoizedState!==null,wi(o,s,v),wr=w):wi(o,s,v);break;default:wi(o,s,v)}}function $o(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var v=o.stateNode;v===null&&(v=o.stateNode=new D1),s.forEach(function(w){var O=I_.bind(null,o,w);v.has(w)||(v.add(w),w.then(O,O))})}}function qi(o,s){var v=s.deletions;if(v!==null)for(var w=0;w<v.length;w++){var O=v[w];try{var L=o,J=s,le=J;e:for(;le!==null;){switch(le.tag){case 5:Gn=le.stateNode,Rr=!1;break e;case 3:Gn=le.stateNode.containerInfo,Rr=!0;break e;case 4:Gn=le.stateNode.containerInfo,Rr=!0;break e}le=le.return}if(Gn===null)throw Error(t(160));Hu(L,J,O),Gn=null,Rr=!1;var ce=O.alternate;ce!==null&&(ce.return=null),O.return=null}catch(Ee){rr(O,s,Ee)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)O1(s,o),s=s.sibling}function O1(o,s){var v=o.alternate,w=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(qi(s,o),co(o),w&4){try{Df(3,o,o.return),kf(3,o)}catch(ct){rr(o,o.return,ct)}try{Df(5,o,o.return)}catch(ct){rr(o,o.return,ct)}}break;case 1:qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return);break;case 5:if(qi(s,o),co(o),w&512&&v!==null&&ju(v,v.return),o.flags&32){var O=o.stateNode;try{ur(O,"")}catch(ct){rr(o,o.return,ct)}}if(w&4&&(O=o.stateNode,O!=null)){var L=o.memoizedProps,J=v!==null?v.memoizedProps:L,le=o.type,ce=o.updateQueue;if(o.updateQueue=null,ce!==null)try{le==="input"&&L.type==="radio"&&L.name!=null&&ut(O,L),Wn(le,J);var Ee=Wn(le,L);for(J=0;J<ce.length;J+=2){var je=ce[J],He=ce[J+1];je==="style"?$t(O,He):je==="dangerouslySetInnerHTML"?gr(O,He):je==="children"?ur(O,He):D(O,je,He,Ee)}switch(le){case"input":Xt(O,L);break;case"textarea":Fn(O,L);break;case"select":var Ue=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!L.multiple;var Xe=L.value;Xe!=null?sn(O,!!L.multiple,Xe,!1):Ue!==!!L.multiple&&(L.defaultValue!=null?sn(O,!!L.multiple,L.defaultValue,!0):sn(O,!!L.multiple,L.multiple?[]:"",!1))}O[Cs]=L}catch(ct){rr(o,o.return,ct)}}break;case 6:if(qi(s,o),co(o),w&4){if(o.stateNode===null)throw Error(t(162));O=o.stateNode,L=o.memoizedProps;try{O.nodeValue=L}catch(ct){rr(o,o.return,ct)}}break;case 3:if(qi(s,o),co(o),w&4&&v!==null&&v.memoizedState.isDehydrated)try{Kc(s.containerInfo)}catch(ct){rr(o,o.return,ct)}break;case 4:qi(s,o),co(o);break;case 13:qi(s,o),co(o),O=o.child,O.flags&8192&&(L=O.memoizedState!==null,O.stateNode.isHidden=L,!L||O.alternate!==null&&O.alternate.memoizedState!==null||(Qv=rn())),w&4&&$o(o);break;case 22:if(je=v!==null&&v.memoizedState!==null,o.mode&1?(wr=(Ee=wr)||je,qi(s,o),wr=Ee):qi(s,o),co(o),w&8192){if(Ee=o.memoizedState!==null,(o.stateNode.isHidden=Ee)&&!je&&o.mode&1)for(at=o,je=o.child;je!==null;){for(He=at=je;at!==null;){switch(Ue=at,Xe=Ue.child,Ue.tag){case 0:case 11:case 14:case 15:Df(4,Ue,Ue.return);break;case 1:ju(Ue,Ue.return);var ot=Ue.stateNode;if(typeof ot.componentWillUnmount=="function"){w=Ue,v=Ue.return;try{s=w,ot.props=s.memoizedProps,ot.state=s.memoizedState,ot.componentWillUnmount()}catch(ct){rr(w,v,ct)}}break;case 5:ju(Ue,Ue.return);break;case 22:if(Ue.memoizedState!==null){Kv(He);continue}}Xe!==null?(Xe.return=Ue,at=Xe):Kv(He)}je=je.sibling}e:for(je=null,He=o;;){if(He.tag===5){if(je===null){je=He;try{O=He.stateNode,Ee?(L=O.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(le=He.stateNode,ce=He.memoizedProps.style,J=ce!=null&&ce.hasOwnProperty("display")?ce.display:null,le.style.display=rt("display",J))}catch(ct){rr(o,o.return,ct)}}}else if(He.tag===6){if(je===null)try{He.stateNode.nodeValue=Ee?"":He.memoizedProps}catch(ct){rr(o,o.return,ct)}}else if((He.tag!==22&&He.tag!==23||He.memoizedState===null||He===o)&&He.child!==null){He.child.return=He,He=He.child;continue}if(He===o)break e;for(;He.sibling===null;){if(He.return===null||He.return===o)break e;je===He&&(je=null),He=He.return}je===He&&(je=null),He.sibling.return=He.return,He=He.sibling}}break;case 19:qi(s,o),co(o),w&4&&$o(o);break;case 21:break;default:qi(s,o),co(o)}}function co(o){var s=o.flags;if(s&2){try{e:{for(var v=o.return;v!==null;){if(A1(v)){var w=v;break e}v=v.return}throw Error(t(160))}switch(w.tag){case 5:var O=w.stateNode;w.flags&32&&(ur(O,""),w.flags&=-33);var L=O0(o);uo(o,L,O);break;case 3:case 4:var J=w.stateNode.containerInfo,le=O0(o);Iu(o,le,J);break;default:throw Error(t(161))}}catch(ce){rr(o,o.return,ce)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function R1(o,s,v){at=o,Vu(o)}function Vu(o,s,v){for(var w=(o.mode&1)!==0;at!==null;){var O=at,L=O.child;if(O.tag===22&&w){var J=O.memoizedState!==null||Sf;if(!J){var le=O.alternate,ce=le!==null&&le.memoizedState!==null||wr;le=Sf;var Ee=wr;if(Sf=J,(wr=ce)&&!Ee)for(at=O;at!==null;)J=at,ce=J.child,J.tag===22&&J.memoizedState!==null?N1(O):ce!==null?(ce.return=J,at=ce):N1(O);for(;L!==null;)at=L,Vu(L),L=L.sibling;at=O,Sf=le,wr=Ee}F1(o)}else O.subtreeFlags&8772&&L!==null?(L.return=O,at=L):F1(o)}}function F1(o){for(;at!==null;){var s=at;if(s.flags&8772){var v=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:wr||kf(5,s);break;case 1:var w=s.stateNode;if(s.flags&4&&!wr)if(v===null)w.componentDidMount();else{var O=s.elementType===s.type?v.memoizedProps:Qa(s.type,v.memoizedProps);w.componentDidUpdate(O,v.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var L=s.updateQueue;L!==null&&_s(s,L,w);break;case 3:var J=s.updateQueue;if(J!==null){if(v=null,s.child!==null)switch(s.child.tag){case 5:v=s.child.stateNode;break;case 1:v=s.child.stateNode}_s(s,J,v)}break;case 5:var le=s.stateNode;if(v===null&&s.flags&4){v=le;var ce=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":ce.autoFocus&&v.focus();break;case"img":ce.src&&(v.src=ce.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Ee=s.alternate;if(Ee!==null){var je=Ee.memoizedState;if(je!==null){var He=je.dehydrated;He!==null&&Kc(He)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}wr||s.flags&512&&qv(s)}catch(Ue){rr(s,s.return,Ue)}}if(s===o){at=null;break}if(v=s.sibling,v!==null){v.return=s.return,at=v;break}at=s.return}}function Kv(o){for(;at!==null;){var s=at;if(s===o){at=null;break}var v=s.sibling;if(v!==null){v.return=s.return,at=v;break}at=s.return}}function N1(o){for(;at!==null;){var s=at;try{switch(s.tag){case 0:case 11:case 15:var v=s.return;try{kf(4,s)}catch(ce){rr(s,v,ce)}break;case 1:var w=s.stateNode;if(typeof w.componentDidMount=="function"){var O=s.return;try{w.componentDidMount()}catch(ce){rr(s,O,ce)}}var L=s.return;try{qv(s)}catch(ce){rr(s,L,ce)}break;case 5:var J=s.return;try{qv(s)}catch(ce){rr(s,J,ce)}}}catch(ce){rr(s,s.return,ce)}if(s===o){at=null;break}var le=s.sibling;if(le!==null){le.return=s.return,at=le;break}at=s.return}}var R0=Math.ceil,Tf=R.ReactCurrentDispatcher,Wv=R.ReactCurrentOwner,ua=R.ReactCurrentBatchConfig,It=0,Xn=null,nr=null,Fr=0,Xa=0,$u=At(0),_r=0,Af=null,Yo=0,F0=0,Yu=0,Ps=null,va=null,Qv=0,qu=1/0,qo=null,N0=!1,Bs=null,fo=null,Hl=!1,Vl=null,M0=0,Gu=0,P0=null,Ls=-1,zs=0;function ca(){return It&6?rn():Ls!==-1?Ls:Ls=rn()}function hr(o){return o.mode&1?It&2&&Fr!==0?Fr&-Fr:n0.transition!==null?(zs===0&&(zs=Fd()),zs):(o=gn,o!==0||(o=window.event,o=o===void 0?16:Qh(o.type)),o):1}function fa(o,s,v,w){if(50<Gu)throw Gu=0,P0=null,Error(t(185));ps(o,v,w),(!(It&2)||o!==Xn)&&(o===Xn&&(!(It&2)&&(F0|=v),_r===4&&_i(o,Fr)),da(o,w),v===1&&It===0&&!(s.mode&1)&&(qu=rn()+500,Ar&&Oa()))}function da(o,s){var v=o.callbackNode;Rd(o,s);var w=ji(o,o===Xn?Fr:0);if(w===0)v!==null&&ha(v),o.callbackNode=null,o.callbackPriority=0;else if(s=w&-w,o.callbackPriority!==s){if(v!=null&&ha(v),s===1)o.tag===0?wv(M1.bind(null,o)):Cv(M1.bind(null,o)),yv(function(){!(It&6)&&Oa()}),v=null;else{switch(Gh(w)){case 1:v=Ro;break;case 4:v=jt;break;case 16:v=_l;break;case 536870912:v=Vh;break;default:v=_l}v=nm(v,Ku.bind(null,o))}o.callbackPriority=s,o.callbackNode=v}}function Ku(o,s){if(Ls=-1,zs=0,It&6)throw Error(t(327));var v=o.callbackNode;if(Qu()&&o.callbackNode!==v)return null;var w=ji(o,o===Xn?Fr:0);if(w===0)return null;if(w&30||w&o.expiredLanes||s)s=L0(o,w);else{s=w;var O=It;It|=2;var L=B0();(Xn!==o||Fr!==s)&&(qo=null,qu=rn()+500,Us(o,s));do try{L_();break}catch(le){P1(o,le)}while(1);Tv(),Tf.current=L,It=O,nr!==null?s=0:(Xn=null,Fr=0,s=_r)}if(s!==0){if(s===2&&(O=Yh(o),O!==0&&(w=O,s=Zv(o,O))),s===1)throw v=Af,Us(o,0),_i(o,w),da(o,rn()),v;if(s===6)_i(o,w);else{if(O=o.current.alternate,!(w&30)&&!Xv(O)&&(s=L0(o,w),s===2&&(L=Yh(o),L!==0&&(w=L,s=Zv(o,L))),s===1))throw v=Af,Us(o,0),_i(o,w),da(o,rn()),v;switch(o.finishedWork=O,o.finishedLanes=w,s){case 0:case 1:throw Error(t(345));case 2:js(o,va,qo);break;case 3:if(_i(o,w),(w&130023424)===w&&(s=Qv+500-rn(),10<s)){if(ji(o,0)!==0)break;if(O=o.suspendedLanes,(O&w)!==w){ca(),o.pingedLanes|=o.suspendedLanes&O;break}o.timeoutHandle=bs(js.bind(null,o,va,qo),s);break}js(o,va,qo);break;case 4:if(_i(o,w),(w&4194240)===w)break;for(s=o.eventTimes,O=-1;0<w;){var J=31-ci(w);L=1<<J,J=s[J],J>O&&(O=J),w&=~L}if(w=O,w=rn()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*R0(w/1960))-w,10<w){o.timeoutHandle=bs(js.bind(null,o,va,qo),w);break}js(o,va,qo);break;case 5:js(o,va,qo);break;default:throw Error(t(329))}}}return da(o,rn()),o.callbackNode===v?Ku.bind(null,o):null}function Zv(o,s){var v=Ps;return o.current.memoizedState.isDehydrated&&(Us(o,s).flags|=256),o=L0(o,s),o!==2&&(s=va,va=v,s!==null&&Of(s)),o}function Of(o){va===null?va=o:va.push.apply(va,o)}function Xv(o){for(var s=o;;){if(s.flags&16384){var v=s.updateQueue;if(v!==null&&(v=v.stores,v!==null))for(var w=0;w<v.length;w++){var O=v[w],L=O.getSnapshot;O=O.value;try{if(!pi(L(),O))return!1}catch{return!1}}}if(v=s.child,s.subtreeFlags&16384&&v!==null)v.return=s,s=v;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function _i(o,s){for(s&=~Yu,s&=~F0,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var v=31-ci(s),w=1<<v;o[v]=-1,s&=~w}}function M1(o){if(It&6)throw Error(t(327));Qu();var s=ji(o,0);if(!(s&1))return da(o,rn()),null;var v=L0(o,s);if(o.tag!==0&&v===2){var w=Yh(o);w!==0&&(s=w,v=Zv(o,w))}if(v===1)throw v=Af,Us(o,0),_i(o,s),da(o,rn()),v;if(v===6)throw Error(t(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,js(o,va,qo),da(o,rn()),null}function Wu(o,s){var v=It;It|=1;try{return o(s)}finally{It=v,It===0&&(qu=rn()+500,Ar&&Oa())}}function $l(o){Vl!==null&&Vl.tag===0&&!(It&6)&&Qu();var s=It;It|=1;var v=ua.transition,w=gn;try{if(ua.transition=null,gn=1,o)return o()}finally{gn=w,ua.transition=v,It=s,!(It&6)&&Oa()}}function Jv(){Xa=$u.current,un($u)}function Us(o,s){o.finishedWork=null,o.finishedLanes=0;var v=o.timeoutHandle;if(v!==-1&&(o.timeoutHandle=-1,s1(v)),nr!==null)for(v=nr.return;v!==null;){var w=v;switch(Sv(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&mi();break;case 3:zl(),un(tr),un(_t),s0();break;case 5:Ut(w);break;case 4:zl();break;case 13:un(xt);break;case 19:un(xt);break;case 10:Ml(w.type._context);break;case 22:case 23:Jv()}v=v.return}if(Xn=o,nr=o=Yl(o.current,null),Fr=Xa=s,_r=0,Af=null,Yu=F0=Yo=0,va=Ps=null,Hr!==null){for(s=0;s<Hr.length;s++)if(v=Hr[s],w=v.interleaved,w!==null){v.interleaved=null;var O=w.next,L=v.pending;if(L!==null){var J=L.next;L.next=O,w.next=J}v.pending=w}Hr=null}return o}function P1(o,s){do{var v=nr;try{if(Tv(),u0.current=E0,bt){for(var w=Un.memoizedState;w!==null;){var O=w.queue;O!==null&&(O.pending=null),w=w.next}bt=!1}if(Es=0,Yt=Oe=Un=null,so=!1,Za=0,Wv.current=null,v===null||v.return===null){_r=1,Af=s,nr=null;break}e:{var L=o,J=v.return,le=v,ce=s;if(s=Fr,le.flags|=32768,ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var Ee=ce,je=le,He=je.tag;if(!(je.mode&1)&&(He===0||He===11||He===15)){var Ue=je.alternate;Ue?(je.updateQueue=Ue.updateQueue,je.memoizedState=Ue.memoizedState,je.lanes=Ue.lanes):(je.updateQueue=null,je.memoizedState=null)}var Xe=Lv(J);if(Xe!==null){Xe.flags&=-257,zv(Xe,J,le,L,s),Xe.mode&1&&_1(L,Ee,s),s=Xe,ce=Ee;var ot=s.updateQueue;if(ot===null){var ct=new Set;ct.add(ce),s.updateQueue=ct}else ot.add(ce);break e}else{if(!(s&1)){_1(L,Ee,s),em();break e}ce=Error(t(426))}}else if(zn&&le.mode&1){var or=Lv(J);if(or!==null){!(or.flags&65536)&&(or.flags|=256),zv(or,J,le,L,s),Dv(Lu(ce,le));break e}}L=ce=Lu(ce,le),_r!==4&&(_r=2),Ps===null?Ps=[L]:Ps.push(L),L=J;do{switch(L.tag){case 3:L.flags|=65536,s&=-s,L.lanes|=s;var ye=w1(L,ce,s);Rv(L,ye);break e;case 1:le=ce;var pe=L.type,we=L.stateNode;if(!(L.flags&128)&&(typeof pe.getDerivedStateFromError=="function"||we!==null&&typeof we.componentDidCatch=="function"&&(fo===null||!fo.has(we)))){L.flags|=65536,s&=-s,L.lanes|=s;var qe=Cf(L,le,s);Rv(L,qe);break e}}L=L.return}while(L!==null)}tm(v)}catch(ft){s=ft,nr===v&&v!==null&&(nr=v=v.return);continue}break}while(1)}function B0(){var o=Tf.current;return Tf.current=E0,o===null?E0:o}function em(){(_r===0||_r===3||_r===2)&&(_r=4),Xn===null||!(Yo&268435455)&&!(F0&268435455)||_i(Xn,Fr)}function L0(o,s){var v=It;It|=2;var w=B0();(Xn!==o||Fr!==s)&&(qo=null,Us(o,s));do try{B_();break}catch(O){P1(o,O)}while(1);if(Tv(),It=v,Tf.current=w,nr!==null)throw Error(t(261));return Xn=null,Fr=0,_r}function B_(){for(;nr!==null;)B1(nr)}function L_(){for(;nr!==null&&!wl();)B1(nr)}function B1(o){var s=z1(o.alternate,o,Xa);o.memoizedProps=o.pendingProps,s===null?tm(o):nr=s,Wv.current=null}function tm(o){var s=o;do{var v=s.alternate;if(o=s.return,s.flags&32768){if(v=Yv(v,s),v!==null){v.flags&=32767,nr=v;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{_r=6,nr=null;return}}else if(v=P_(v,s,Xa),v!==null){nr=v;return}if(s=s.sibling,s!==null){nr=s;return}nr=s=o}while(s!==null);_r===0&&(_r=5)}function js(o,s,v){var w=gn,O=ua.transition;try{ua.transition=null,gn=1,z_(o,s,v,w)}finally{ua.transition=O,gn=w}return null}function z_(o,s,v,w){do Qu();while(Vl!==null);if(It&6)throw Error(t(327));v=o.finishedWork;var O=o.finishedLanes;if(v===null)return null;if(o.finishedWork=null,o.finishedLanes=0,v===o.current)throw Error(t(177));o.callbackNode=null,o.callbackPriority=0;var L=v.lanes|v.childLanes;if(c_(o,L),o===Xn&&(nr=Xn=null,Fr=0),!(v.subtreeFlags&2064)&&!(v.flags&2064)||Hl||(Hl=!0,nm(_l,function(){return Qu(),null})),L=(v.flags&15990)!==0,v.subtreeFlags&15990||L){L=ua.transition,ua.transition=null;var J=gn;gn=1;var le=It;It|=4,Wv.current=null,T1(o,v),O1(v,o),Yd(xs),hs=!!mv,xs=mv=null,o.current=v,R1(v),Ad(),It=le,gn=J,ua.transition=L}else o.current=v;if(Hl&&(Hl=!1,Vl=o,M0=O),L=o.pendingLanes,L===0&&(fo=null),wy(v.stateNode),da(o,rn()),s!==null)for(w=o.onRecoverableError,v=0;v<s.length;v++)O=s[v],w(O.value,{componentStack:O.stack,digest:O.digest});if(N0)throw N0=!1,o=Bs,Bs=null,o;return M0&1&&o.tag!==0&&Qu(),L=o.pendingLanes,L&1?o===P0?Gu++:(Gu=0,P0=o):Gu=0,Oa(),null}function Qu(){if(Vl!==null){var o=Gh(M0),s=ua.transition,v=gn;try{if(ua.transition=null,gn=16>o?16:o,Vl===null)var w=!1;else{if(o=Vl,Vl=null,M0=0,It&6)throw Error(t(331));var O=It;for(It|=4,at=o.current;at!==null;){var L=at,J=L.child;if(at.flags&16){var le=L.deletions;if(le!==null){for(var ce=0;ce<le.length;ce++){var Ee=le[ce];for(at=Ee;at!==null;){var je=at;switch(je.tag){case 0:case 11:case 15:Df(8,je,L)}var He=je.child;if(He!==null)He.return=je,at=He;else for(;at!==null;){je=at;var Ue=je.sibling,Xe=je.return;if(Gv(je),je===Ee){at=null;break}if(Ue!==null){Ue.return=Xe,at=Ue;break}at=Xe}}}var ot=L.alternate;if(ot!==null){var ct=ot.child;if(ct!==null){ot.child=null;do{var or=ct.sibling;ct.sibling=null,ct=or}while(ct!==null)}}at=L}}if(L.subtreeFlags&2064&&J!==null)J.return=L,at=J;else e:for(;at!==null;){if(L=at,L.flags&2048)switch(L.tag){case 0:case 11:case 15:Df(9,L,L.return)}var ye=L.sibling;if(ye!==null){ye.return=L.return,at=ye;break e}at=L.return}}var pe=o.current;for(at=pe;at!==null;){J=at;var we=J.child;if(J.subtreeFlags&2064&&we!==null)we.return=J,at=we;else e:for(J=pe;at!==null;){if(le=at,le.flags&2048)try{switch(le.tag){case 0:case 11:case 15:kf(9,le)}}catch(ft){rr(le,le.return,ft)}if(le===J){at=null;break e}var qe=le.sibling;if(qe!==null){qe.return=le.return,at=qe;break e}at=le.return}}if(It=O,Oa(),Ui&&typeof Ui.onPostCommitFiberRoot=="function")try{Ui.onPostCommitFiberRoot(Vc,o)}catch{}w=!0}return w}finally{gn=v,ua.transition=s}}return!1}function L1(o,s,v){s=Lu(v,s),s=w1(o,s,1),o=Bl(o,s,1),s=ca(),o!==null&&(ps(o,1,s),da(o,s))}function rr(o,s,v){if(o.tag===3)L1(o,o,v);else for(;s!==null;){if(s.tag===3){L1(s,o,v);break}else if(s.tag===1){var w=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(fo===null||!fo.has(w))){o=Lu(v,o),o=Cf(s,o,1),s=Bl(s,o,1),o=ca(),s!==null&&(ps(s,1,o),da(s,o));break}}s=s.return}}function U_(o,s,v){var w=o.pingCache;w!==null&&w.delete(s),s=ca(),o.pingedLanes|=o.suspendedLanes&v,Xn===o&&(Fr&v)===v&&(_r===4||_r===3&&(Fr&130023424)===Fr&&500>rn()-Qv?Us(o,0):Yu|=v),da(o,s)}function z0(o,s){s===0&&(o.mode&1?(s=yu,yu<<=1,!(yu&130023424)&&(yu=4194304)):s=1);var v=ca();o=jo(o,s),o!==null&&(ps(o,s,v),da(o,v))}function j_(o){var s=o.memoizedState,v=0;s!==null&&(v=s.retryLane),z0(o,v)}function I_(o,s){var v=0;switch(o.tag){case 13:var w=o.stateNode,O=o.memoizedState;O!==null&&(v=O.retryLane);break;case 19:w=o.stateNode;break;default:throw Error(t(314))}w!==null&&w.delete(s),z0(o,v)}var z1;z1=function(o,s,v){if(o!==null)if(o.memoizedProps!==s.pendingProps||tr.current)pr=!0;else{if(!(o.lanes&v)&&!(s.flags&128))return pr=!1,Vo(o,s,v);pr=!!(o.flags&131072)}else pr=!1,zn&&s.flags&1048576&&_v(s,Ou,s.index);switch(s.lanes=0,s.tag){case 2:var w=s.type;la(o,s),o=s.pendingProps;var O=vi(s,_t.current);Ke(s,v),O=Ul(null,s,w,o,O,v);var L=Ts();return s.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,qn(w)?(L=!0,Zd(s)):L=!1,s.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,Ov(s),O.updater=i0,s.stateNode=O,O._reactInternals=s,o0(s,w,o,v),s=S1(null,s,w,!0,L,v)):(s.tag=0,zn&&L&&Xd(s),br(null,s,O,v),s=s.child),s;case 16:w=s.elementType;e:{switch(la(o,s),o=s.pendingProps,O=w._init,w=O(w._payload),s.type=w,O=s.tag=V_(w),o=Qa(w,o),O){case 0:s=zu(null,s,w,o,v);break e;case 1:s=Uv(null,s,w,o,v);break e;case 11:s=Il(null,s,w,o,v);break e;case 14:s=k0(null,s,w,Qa(w.type,o),v);break e}throw Error(t(306,w,""))}return s;case 0:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),zu(o,s,w,O,v);case 1:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Uv(o,s,w,O,v);case 3:e:{if(E1(s),o===null)throw Error(t(387));w=s.pendingProps,L=s.memoizedState,O=L.element,xr(o,s),Ll(s,w,null,v);var J=s.memoizedState;if(w=J.element,L.isDehydrated)if(L={element:w,isDehydrated:!1,cache:J.cache,pendingSuspenseBoundaries:J.pendingSuspenseBoundaries,transitions:J.transitions},s.updateQueue.baseState=L,s.memoizedState=L,s.flags&256){O=Lu(Error(t(423)),s),s=T0(o,s,w,v,O);break e}else if(w!==O){O=Lu(Error(t(424)),s),s=T0(o,s,w,v,O);break e}else for(Na=$i(s.stateNode.containerInfo.firstChild),Wa=s,zn=!0,yi=null,v=b1(s,null,w,v),s.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling;else{if(Qn(),w===O){s=Vr(o,s,v);break e}br(o,s,w,v)}s=s.child}return s;case 5:return gt(s),o===null&&e0(s),w=s.type,O=s.pendingProps,L=o!==null?o.memoizedProps:null,J=O.children,uf(w,O)?J=null:L!==null&&uf(w,L)&&(s.flags|=32),Ot(o,s),br(o,s,J,v),s.child;case 6:return o===null&&e0(s),null;case 13:return Iv(o,s,v);case 4:return Nv(s,s.stateNode.containerInfo),w=s.pendingProps,o===null?s.child=Fu(s,null,w,v):br(o,s,w,v),s.child;case 11:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),Il(o,s,w,O,v);case 7:return br(o,s,s.pendingProps,v),s.child;case 8:return br(o,s,s.pendingProps.children,v),s.child;case 12:return br(o,s,s.pendingProps.children,v),s.child;case 10:e:{if(w=s.type._context,O=s.pendingProps,L=s.memoizedProps,J=O.value,fn(lo,w._currentValue),w._currentValue=J,L!==null)if(pi(L.value,J)){if(L.children===O.children&&!tr.current){s=Vr(o,s,v);break e}}else for(L=s.child,L!==null&&(L.return=s);L!==null;){var le=L.dependencies;if(le!==null){J=L.child;for(var ce=le.firstContext;ce!==null;){if(ce.context===w){if(L.tag===1){ce=Io(-1,v&-v),ce.tag=2;var Ee=L.updateQueue;if(Ee!==null){Ee=Ee.shared;var je=Ee.pending;je===null?ce.next=ce:(ce.next=je.next,je.next=ce),Ee.pending=ce}}L.lanes|=v,ce=L.alternate,ce!==null&&(ce.lanes|=v),Or(L.return,v,s),le.lanes|=v;break}ce=ce.next}}else if(L.tag===10)J=L.type===s.type?null:L.child;else if(L.tag===18){if(J=L.return,J===null)throw Error(t(341));J.lanes|=v,le=J.alternate,le!==null&&(le.lanes|=v),Or(J,v,s),J=L.sibling}else J=L.child;if(J!==null)J.return=L;else for(J=L;J!==null;){if(J===s){J=null;break}if(L=J.sibling,L!==null){L.return=J.return,J=L;break}J=J.return}L=J}br(o,s,O.children,v),s=s.child}return s;case 9:return O=s.type,w=s.pendingProps.children,Ke(s,v),O=ir(O),w=w(O),s.flags|=1,br(o,s,w,v),s.child;case 14:return w=s.type,O=Qa(w,s.pendingProps),O=Qa(w.type,O),k0(o,s,w,O,v);case 15:return Ba(o,s,s.type,s.pendingProps,v);case 17:return w=s.type,O=s.pendingProps,O=s.elementType===w?O:Qa(w,O),la(o,s),s.tag=1,qn(w)?(o=!0,Zd(s)):o=!1,Ke(s,v),m1(s,w,O),o0(s,w,O,v),S1(null,s,w,!0,o,v);case 19:return $v(o,s,v);case 22:return Fs(o,s,v)}throw Error(t(156,s.tag))};function nm(o,s){return Yn(o,s)}function H_(o,s,v,w){this.tag=o,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(o,s,v,w){return new H_(o,s,v,w)}function rm(o){return o=o.prototype,!(!o||!o.isReactComponent)}function V_(o){if(typeof o=="function")return rm(o)?1:0;if(o!=null){if(o=o.$$typeof,o===P)return 11;if(o===G)return 14}return 2}function Yl(o,s){var v=o.alternate;return v===null?(v=Si(o.tag,s,o.key,o.mode),v.elementType=o.elementType,v.type=o.type,v.stateNode=o.stateNode,v.alternate=o,o.alternate=v):(v.pendingProps=s,v.type=o.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=o.flags&14680064,v.childLanes=o.childLanes,v.lanes=o.lanes,v.child=o.child,v.memoizedProps=o.memoizedProps,v.memoizedState=o.memoizedState,v.updateQueue=o.updateQueue,s=o.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},v.sibling=o.sibling,v.index=o.index,v.ref=o.ref,v}function U0(o,s,v,w,O,L){var J=2;if(w=o,typeof o=="function")rm(o)&&(J=1);else if(typeof o=="string")J=5;else e:switch(o){case M:return Is(v.children,O,L,s);case I:J=8,O|=8;break;case Y:return o=Si(12,v,s,O|2),o.elementType=Y,o.lanes=L,o;case H:return o=Si(13,v,s,O),o.elementType=H,o.lanes=L,o;case V:return o=Si(19,v,s,O),o.elementType=V,o.lanes=L,o;case ne:return Rf(v,O,L,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case B:J=10;break e;case U:J=9;break e;case P:J=11;break e;case G:J=14;break e;case ee:J=16,w=null;break e}throw Error(t(130,o==null?o:typeof o,""))}return s=Si(J,v,s,O),s.elementType=o,s.type=w,s.lanes=L,s}function Is(o,s,v,w){return o=Si(7,o,w,s),o.lanes=v,o}function Rf(o,s,v,w){return o=Si(22,o,w,s),o.elementType=ne,o.lanes=v,o.stateNode={isHidden:!1},o}function Ff(o,s,v){return o=Si(6,o,null,s),o.lanes=v,o}function Hs(o,s,v){return s=Si(4,o.children!==null?o.children:[],o.key,s),s.lanes=v,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function $_(o,s,v,w,O){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qh(0),this.expirationTimes=qh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qh(0),this.identifierPrefix=w,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function j0(o,s,v,w,O,L,J,le,ce){return o=new $_(o,s,v,le,ce),s===1?(s=1,L===!0&&(s|=8)):s=0,L=Si(3,null,null,s),o.current=L,L.stateNode=o,L.memoizedState={element:w,isDehydrated:v,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ov(L),o}function U1(o,s,v){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:w==null?null:""+w,children:o,containerInfo:s,implementation:v}}function am(o){if(!o)return oo;o=o._reactInternals;e:{if(Rt(o)!==o||o.tag!==1)throw Error(t(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(qn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(t(171))}if(o.tag===1){var v=o.type;if(qn(v))return df(o,v,s)}return s}function j1(o,s,v,w,O,L,J,le,ce){return o=j0(v,w,!0,o,O,L,J,le,ce),o.context=am(null),v=o.current,w=ca(),O=hr(v),L=Io(w,O),L.callback=s??null,Bl(v,L,O),o.current.lanes=O,ps(o,O,w),da(o,w),o}function Nf(o,s,v,w){var O=s.current,L=ca(),J=hr(O);return v=am(v),s.context===null?s.context=v:s.pendingContext=v,s=Io(L,J),s.payload={element:o},w=w===void 0?null:w,w!==null&&(s.callback=w),o=Bl(O,s,J),o!==null&&(fa(o,O,J,L),a0(o,O,J)),J}function I0(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function I1(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var v=o.retryLane;o.retryLane=v!==0&&v<s?v:s}}function im(o,s){I1(o,s),(o=o.alternate)&&I1(o,s)}function H1(){return null}var om=typeof reportError=="function"?reportError:function(o){};function H0(o){this._internalRoot=o}Go.prototype.render=H0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(t(409));Nf(o,s,null,null)},Go.prototype.unmount=H0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;$l(function(){Nf(null,o,null,null)}),s[zo]=null}};function Go(o){this._internalRoot=o}Go.prototype.unstable_scheduleHydration=function(o){if(o){var s=Dy();o={blockedOn:null,target:o,priority:s};for(var v=0;v<Sn.length&&s!==0&&s<Sn[v].priority;v++);Sn.splice(v,0,o),v===0&&ky(o)}};function lm(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function V0(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function V1(){}function Y_(o,s,v,w,O){if(O){if(typeof w=="function"){var L=w;w=function(){var Ee=I0(J);L.call(Ee)}}var J=j1(s,w,o,0,null,!1,!1,"",V1);return o._reactRootContainer=J,o[zo]=J.current,Tu(o.nodeType===8?o.parentNode:o),$l(),J}for(;O=o.lastChild;)o.removeChild(O);if(typeof w=="function"){var le=w;w=function(){var Ee=I0(ce);le.call(Ee)}}var ce=j0(o,0,!1,null,null,!1,!1,"",V1);return o._reactRootContainer=ce,o[zo]=ce.current,Tu(o.nodeType===8?o.parentNode:o),$l(function(){Nf(s,ce,v,w)}),ce}function $0(o,s,v,w,O){var L=v._reactRootContainer;if(L){var J=L;if(typeof O=="function"){var le=O;O=function(){var ce=I0(J);le.call(ce)}}Nf(s,J,o,O)}else J=Y_(v,s,o,O,w);return I0(J)}Ey=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var v=ds(s.pendingLanes);v!==0&&($c(s,v|1),da(s,rn()),!(It&6)&&(qu=rn()+500,Oa()))}break;case 13:$l(function(){var w=jo(o,1);if(w!==null){var O=ca();fa(w,o,1,O)}}),im(o,1)}},Nd=function(o){if(o.tag===13){var s=jo(o,134217728);if(s!==null){var v=ca();fa(s,o,134217728,v)}im(o,134217728)}},Tn=function(o){if(o.tag===13){var s=hr(o),v=jo(o,s);if(v!==null){var w=ca();fa(v,o,s,w)}im(o,s)}},Dy=function(){return gn},Kh=function(o,s){var v=gn;try{return gn=o,s()}finally{gn=v}},ra=function(o,s,v){switch(s){case"input":if(Xt(o,v),s=v.name,v.type==="radio"&&s!=null){for(v=o;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<v.length;s++){var w=v[s];if(w!==o&&w.form===o.form){var O=ht(w);if(!O)throw Error(t(90));ge(w),Xt(w,O)}}}break;case"textarea":Fn(o,v);break;case"select":s=v.value,s!=null&&sn(o,!!v.multiple,s,!1)}},bl=Wu,gu=$l;var q_={usingClientEntryPoint:!1,Events:[ff,Au,ht,Do,xl,Wu]},Zu={findFiberByHostInstance:hi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},G_={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=Dr(o),o===null?null:o.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||H1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Y0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Y0.isDisabled&&Y0.supportsFiber)try{Vc=Y0.inject(G_),Ui=Y0}catch{}}return ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q_,ai.createPortal=function(o,s){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lm(s))throw Error(t(200));return U1(o,s,null,v)},ai.createRoot=function(o,s){if(!lm(o))throw Error(t(299));var v=!1,w="",O=om;return s!=null&&(s.unstable_strictMode===!0&&(v=!0),s.identifierPrefix!==void 0&&(w=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError)),s=j0(o,1,!1,null,null,v,!1,w,O),o[zo]=s.current,Tu(o.nodeType===8?o.parentNode:o),new H0(s)},ai.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(t(188)):(o=Object.keys(o).join(","),Error(t(268,o)));return o=Dr(s),o=o===null?null:o.stateNode,o},ai.flushSync=function(o){return $l(o)},ai.hydrate=function(o,s,v){if(!V0(s))throw Error(t(200));return $0(null,o,s,!0,v)},ai.hydrateRoot=function(o,s,v){if(!lm(o))throw Error(t(405));var w=v!=null&&v.hydratedSources||null,O=!1,L="",J=om;if(v!=null&&(v.unstable_strictMode===!0&&(O=!0),v.identifierPrefix!==void 0&&(L=v.identifierPrefix),v.onRecoverableError!==void 0&&(J=v.onRecoverableError)),s=j1(s,null,o,1,v??null,O,!1,L,J),o[zo]=s.current,Tu(o),w)for(o=0;o<w.length;o++)v=w[o],O=v._getVersion,O=O(v._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[v,O]:s.mutableSourceEagerHydrationData.push(v,O);return new Go(s)},ai.render=function(o,s,v){if(!V0(s))throw Error(t(200));return $0(null,o,s,!1,v)},ai.unmountComponentAtNode=function(o){if(!V0(o))throw Error(t(40));return o._reactRootContainer?($l(function(){$0(null,null,o,!1,function(){o._reactRootContainer=null,o[zo]=null})}),!0):!1},ai.unstable_batchedUpdates=Wu,ai.unstable_renderSubtreeIntoContainer=function(o,s,v,w){if(!V0(v))throw Error(t(200));if(o==null||o._reactInternals===void 0)throw Error(t(38));return $0(o,s,v,!1,w)},ai.version="18.2.0-next-9e3b772b8-20220608",ai}var ii={};var B8;function m9(){return B8||(B8=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=W,r=M8(),t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function l(n){i=n}function f(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),p=1;p<a;p++)u[p-1]=arguments[p];h("warn",n,u)}}function c(n){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),p=1;p<a;p++)u[p-1]=arguments[p];h("error",n,u)}}function h(n,a,u){{var p=t.ReactDebugCurrentFrame,y=p.getStackAddendum();y!==""&&(a+="%s",u=u.concat([y]));var S=u.map(function(F){return String(F)});S.unshift("Warning: "+a),Function.prototype.apply.call(console[n],console,S)}}var m=0,d=1,g=2,C=3,b=4,x=5,_=6,k=7,E=8,A=9,T=10,D=11,R=12,N=13,z=14,M=15,I=16,Y=17,B=18,U=19,P=21,H=22,V=23,G=24,ee=25,ne=!0,$=!1,X=!1,Z=!1,q=!1,te=!0,oe=!1,ae=!1,fe=!0,ve=!0,xe=!0,se=new Set,ke={},De={};function Pe(n,a){ge(n,a),ge(n+"Capture",a)}function ge(n,a){ke[n]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),ke[n]=a;{var u=n.toLowerCase();De[u]=n,n==="onDoubleClick"&&(De.ondblclick=n)}for(var p=0;p<a.length;p++)se.add(a[p])}var $e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Me=Object.prototype.hasOwnProperty;function et(n){{var a=typeof Symbol=="function"&&Symbol.toStringTag,u=a&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u}}function ut(n){try{return Xt(n),!1}catch{return!0}}function Xt(n){return""+n}function Mt(n,a){if(ut(n))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(n)),Xt(n)}function Mn(n){if(ut(n))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",et(n)),Xt(n)}function Pn(n,a){if(ut(n))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(n)),Xt(n)}function sn(n,a){if(ut(n))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,et(n)),Xt(n)}function Jt(n){if(ut(n))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",et(n)),Xt(n)}function cn(n){if(ut(n))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",et(n)),Xt(n)}var Fn=0,Bn=1,kn=2,Vt=3,Hn=4,gr=5,ur=6,Ye=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",it=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",rt=new RegExp("^["+Ye+"]["+it+"]*$"),$t={},Nn={};function cr(n){return Me.call(Nn,n)?!0:Me.call($t,n)?!1:rt.test(n)?(Nn[n]=!0,!0):($t[n]=!0,c("Invalid attribute name: `%s`",n),!1)}function Wn(n,a,u){return a!==null?a.type===Fn:u?!1:n.length>2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Ur(n,a,u,p){if(u!==null&&u.type===Fn)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(p)return!1;if(u!==null)return!u.acceptsBooleans;var y=n.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function _n(n,a,u,p){if(a===null||typeof a>"u"||Ur(n,a,u,p))return!0;if(p)return!1;if(u!==null)switch(u.type){case Vt:return!a;case Hn:return a===!1;case gr:return isNaN(a);case ur:return isNaN(a)||a<1}return!1}function ra(n){return mn.hasOwnProperty(n)?mn[n]:null}function vn(n,a,u,p,y,S,F){this.acceptsBooleans=a===kn||a===Vt||a===Hn,this.attributeName=p,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=n,this.type=a,this.sanitizeURL=S,this.removeEmptyString=F}var mn={},yl=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];yl.forEach(function(n){mn[n]=new vn(n,Fn,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],u=n[1];mn[a]=new vn(a,Bn,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){mn[n]=new vn(n,kn,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){mn[n]=new vn(n,kn,!1,n,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(n){mn[n]=new vn(n,Vt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){mn[n]=new vn(n,Vt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){mn[n]=new vn(n,Hn,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){mn[n]=new vn(n,ur,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){mn[n]=new vn(n,gr,!1,n.toLowerCase(),null,!1,!1)});var Do=/[\-\:]([a-z])/g,xl=function(n){return n[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Bn,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Bn,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(Do,xl);mn[a]=new vn(a,Bn,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){mn[n]=new vn(n,Bn,!1,n.toLowerCase(),null,!1,!1)});var bl="xlinkHref";mn[bl]=new vn("xlinkHref",Bn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){mn[n]=new vn(n,Bn,!1,n.toLowerCase(),null,!0,!0)});var gu=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ko=!1;function To(n){!ko&&gu.test(n)&&(ko=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function Ao(n,a,u,p){if(p.mustUseProperty){var y=p.propertyName;return n[y]}else{Mt(u,a),p.sanitizeURL&&To(""+u);var S=p.attributeName,F=null;if(p.type===Hn){if(n.hasAttribute(S)){var j=n.getAttribute(S);return j===""?!0:_n(a,u,p,!1)?j:j===""+u?u:j}}else if(n.hasAttribute(S)){if(_n(a,u,p,!1))return n.getAttribute(S);if(p.type===Vt)return u;F=n.getAttribute(S)}return _n(a,u,p,!1)?F===null?u:F:F===""+u?u:F}}function Oo(n,a,u,p){{if(!cr(a))return;if(!n.hasAttribute(a))return u===void 0?void 0:null;var y=n.getAttribute(a);return Mt(u,a),y===""+u?u:y}}function Vn(n,a,u,p){var y=ra(a);if(!Wn(a,y,p)){if(_n(a,u,y,p)&&(u=null),p||y===null){if(cr(a)){var S=a;u===null?n.removeAttribute(S):(Mt(u,a),n.setAttribute(S,""+u))}return}var F=y.mustUseProperty;if(F){var j=y.propertyName;if(u===null){var K=y.type;n[j]=K===Vt?!1:""}else n[j]=u;return}var re=y.attributeName,ie=y.attributeNamespace;if(u===null)n.removeAttribute(re);else{var he=y.type,de;he===Vt||he===Hn&&u===!0?de="":(Mt(u,re),de=""+u,y.sanitizeURL&&To(de.toString())),ie?n.setAttributeNS(ie,re,de):n.setAttribute(re,de)}}}var jr=Symbol.for("react.element"),aa=Symbol.for("react.portal"),Ya=Symbol.for("react.fragment"),Cl=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),Ie=Symbol.for("react.provider"),Qe=Symbol.for("react.context"),mt=Symbol.for("react.forward_ref"),Rt=Symbol.for("react.suspense"),en=Symbol.for("react.suspense_list"),Pt=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),Dr=Symbol.for("react.scope"),$n=Symbol.for("react.debug_trace_mode"),Yn=Symbol.for("react.offscreen"),ha=Symbol.for("react.legacy_hidden"),wl=Symbol.for("react.cache"),Ad=Symbol.for("react.tracing_marker"),rn=Symbol.iterator,s_="@@iterator";function Ro(n){if(n===null||typeof n!="object")return null;var a=rn&&n[rn]||n[s_];return typeof a=="function"?a:null}var jt=Object.assign,_l=0,Cy,Vh,Vc,Ui,wy,ci,_y;function Sy(){}Sy.__reactDisabledLog=!0;function u_(){{if(_l===0){Cy=console.log,Vh=console.info,Vc=console.warn,Ui=console.error,wy=console.group,ci=console.groupCollapsed,_y=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Sy,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}_l++}}function Od(){{if(_l--,_l===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:jt({},n,{value:Cy}),info:jt({},n,{value:Vh}),warn:jt({},n,{value:Vc}),error:jt({},n,{value:Ui}),group:jt({},n,{value:wy}),groupCollapsed:jt({},n,{value:ci}),groupEnd:jt({},n,{value:_y})})}_l<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var yu=t.ReactCurrentDispatcher,ds;function ji(n,a,u){{if(ds===void 0)try{throw Error()}catch(y){var p=y.stack.trim().match(/\n( *(at )?)/);ds=p&&p[1]||""}return`
77
77
  `+ds+n}}var $h=!1,Rd;{var Yh=typeof WeakMap=="function"?WeakMap:Map;Rd=new Yh}function Fd(n,a){if(!n||$h)return"";{var u=Rd.get(n);if(u!==void 0)return u}var p;$h=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var S;S=yu.current,yu.current=null,u_();try{if(a){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Se){p=Se}Reflect.construct(n,[],F)}else{try{F.call()}catch(Se){p=Se}n.call(F.prototype)}}else{try{throw Error()}catch(Se){p=Se}n()}}catch(Se){if(Se&&p&&typeof Se.stack=="string"){for(var j=Se.stack.split(`
78
78
  `),K=p.stack.split(`
79
79
  `),re=j.length-1,ie=K.length-1;re>=1&&ie>=0&&j[re]!==K[ie];)ie--;for(;re>=1&&ie>=0;re--,ie--)if(j[re]!==K[ie]){if(re!==1||ie!==1)do if(re--,ie--,ie<0||j[re]!==K[ie]){var he=`
@@ -81,7 +81,7 @@ Error generating stack: `+L.message+`
81
81
  Error generating stack: `+p.message+`
82
82
  `+p.stack}}function Ey(n,a,u){var p=n.displayName;if(p)return p;var y=a.displayName||a.name||"";return y!==""?u+"("+y+")":u}function Nd(n){return n.displayName||"Context"}function Tn(n){if(n==null)return null;if(typeof n.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Ya:return"Fragment";case aa:return"Portal";case ue:return"Profiler";case Cl:return"StrictMode";case Rt:return"Suspense";case en:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case Qe:var a=n;return Nd(a)+".Consumer";case Ie:var u=n;return Nd(u._context)+".Provider";case mt:return Ey(n,n.render,"ForwardRef");case Pt:var p=n.displayName||null;return p!==null?p:Tn(n.type)||"Memo";case yt:{var y=n,S=y._payload,F=y._init;try{return Tn(F(S))}catch{return null}}}return null}function Dy(n,a,u){var p=a.displayName||a.name||"";return n.displayName||(p!==""?u+"("+p+")":u)}function Kh(n){return n.displayName||"Context"}function Tt(n){var a=n.tag,u=n.type;switch(a){case G:return"Cache";case A:var p=u;return Kh(p)+".Consumer";case T:var y=u;return Kh(y._context)+".Provider";case B:return"DehydratedFragment";case D:return Dy(u,u.render,"ForwardRef");case k:return"Fragment";case x:return u;case b:return"Portal";case C:return"Root";case _:return"Text";case I:return Tn(u);case E:return u===Cl?"StrictMode":"Mode";case H:return"Offscreen";case R:return"Profiler";case P:return"Scope";case N:return"Suspense";case U:return"SuspenseList";case ee:return"TracingMarker";case d:case m:case Y:case g:case z:case M:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;break}return null}var Yc=t.ReactDebugCurrentFrame,fr=null,fi=!1;function di(){{if(fr===null)return null;var n=fr._debugOwner;if(n!==null&&typeof n<"u")return Tt(n)}return null}function qc(){return fr===null?"":Gh(fr)}function yr(){Yc.getCurrentStack=null,fr=null,fi=!1}function Sn(n){Yc.getCurrentStack=n===null?null:qc,fr=n,fi=!1}function f_(){return fr}function Ii(n){fi=n}function ia(n){return""+n}function Sl(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return cn(n),n;default:return""}}var ky={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function xu(n,a){ky[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||c("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Wh(n){var a=n.type,u=n.nodeName;return u&&u.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ty(n){return n._valueTracker}function Gc(n){n._valueTracker=null}function Kc(n){var a="";return n&&(Wh(n)?a=n.checked?"true":"false":a=n.value),a}function bu(n){var a=Wh(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);cn(n[a]);var p=""+n[a];if(!(n.hasOwnProperty(a)||typeof u>"u"||typeof u.get!="function"||typeof u.set!="function")){var y=u.get,S=u.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return y.call(this)},set:function(j){cn(j),p=""+j,S.call(this,j)}}),Object.defineProperty(n,a,{enumerable:u.enumerable});var F={getValue:function(){return p},setValue:function(j){cn(j),p=""+j},stopTracking:function(){Gc(n),delete n[a]}};return F}}function hs(n){Ty(n)||(n._valueTracker=bu(n))}function Ay(n){if(!n)return!1;var a=Ty(n);if(!a)return!0;var u=a.getValue(),p=Kc(n);return p!==u?(a.setValue(p),!0):!1}function Md(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Pd=!1,Wc=!1,Bd=!1,Qh=!1;function Fo(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function Qc(n,a){var u=n,p=a.checked,y=jt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??u._wrapperState.initialChecked});return y}function Zc(n,a){xu("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!Wc&&(c("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component",a.type),Wc=!0),a.value!==void 0&&a.defaultValue!==void 0&&!Pd&&(c("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component",a.type),Pd=!0);var u=n,p=a.defaultValue==null?"":a.defaultValue;u._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:Sl(a.value!=null?a.value:p),controlled:Fo(a)}}function Zh(n,a){var u=n,p=a.checked;p!=null&&Vn(u,"checked",p,!1)}function Cu(n,a){var u=n;{var p=Fo(a);!u._wrapperState.controlled&&p&&!Qh&&(c("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Qh=!0),u._wrapperState.controlled&&!p&&!Bd&&(c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Bd=!0)}Zh(n,a);var y=Sl(a.value),S=a.type;if(y!=null)S==="number"?(y===0&&u.value===""||u.value!=y)&&(u.value=ia(y)):u.value!==ia(y)&&(u.value=ia(y));else if(S==="submit"||S==="reset"){u.removeAttribute("value");return}a.hasOwnProperty("value")?El(u,a.type,y):a.hasOwnProperty("defaultValue")&&El(u,a.type,Sl(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(u.defaultChecked=!!a.defaultChecked)}function Xc(n,a,u){var p=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var y=a.type,S=y==="submit"||y==="reset";if(S&&(a.value===void 0||a.value===null))return;var F=ia(p._wrapperState.initialValue);u||F!==p.value&&(p.value=F),p.defaultValue=F}var j=p.name;j!==""&&(p.name=""),p.defaultChecked=!p.defaultChecked,p.defaultChecked=!!p._wrapperState.initialChecked,j!==""&&(p.name=j)}function Oy(n,a){var u=n;Cu(u,a),qa(u,a)}function qa(n,a){var u=a.name;if(a.type==="radio"&&u!=null){for(var p=n;p.parentNode;)p=p.parentNode;Mt(u,"name");for(var y=p.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),S=0;S<y.length;S++){var F=y[S];if(!(F===n||F.form!==n.form)){var j=ox(F);if(!j)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ay(F),Cu(F,j)}}}}function El(n,a,u){(a!=="number"||Md(n.ownerDocument)!==n)&&(u==null?n.defaultValue=ia(n._wrapperState.initialValue):n.defaultValue!==ia(u)&&(n.defaultValue=ia(u)))}var Ld=!1,wu=!1,Ry=!1;function zd(n,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(u){u!=null&&(typeof u=="string"||typeof u=="number"||wu||(wu=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(Ry||(Ry=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!Ld&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ld=!0)}function Xh(n,a){a.value!=null&&n.setAttribute("value",ia(Sl(a.value)))}var Jc=Array.isArray;function kr(n){return Jc(n)}var Ud;Ud=!1;function Fy(){var n=di();return n?`
83
83
 
84
- Check the render method of \``+n+"`.":""}var Ny=["value","defaultValue"];function d_(n){{xu("select",n);for(var a=0;a<Ny.length;a++){var u=Ny[a];if(n[u]!=null){var p=kr(n[u]);n.multiple&&!p?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Fy()):!n.multiple&&p&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Fy())}}}}function Dl(n,a,u,p){var y=n.options;if(a){for(var S=u,F={},j=0;j<S.length;j++)F["$"+S[j]]=!0;for(var K=0;K<y.length;K++){var re=F.hasOwnProperty("$"+y[K].value);y[K].selected!==re&&(y[K].selected=re),re&&p&&(y[K].defaultSelected=!0)}}else{for(var ie=ia(Sl(u)),he=null,de=0;de<y.length;de++){if(y[de].value===ie){y[de].selected=!0,p&&(y[de].defaultSelected=!0);return}he===null&&!y[de].disabled&&(he=y[de])}he!==null&&(he.selected=!0)}}function Jh(n,a){return jt({},a,{value:void 0})}function My(n,a){var u=n;d_(a),u._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!Ud&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ud=!0)}function p_(n,a){var u=n;u.multiple=!!a.multiple;var p=a.value;p!=null?Dl(u,!!a.multiple,p,!1):a.defaultValue!=null&&Dl(u,!!a.multiple,a.defaultValue,!0)}function h_(n,a){var u=n,p=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!a.multiple;var y=a.value;y!=null?Dl(u,!!a.multiple,y,!1):p!==!!a.multiple&&(a.defaultValue!=null?Dl(u,!!a.multiple,a.defaultValue,!0):Dl(u,!!a.multiple,a.multiple?[]:"",!1))}function v_(n,a){var u=n,p=a.value;p!=null&&Dl(u,!!a.multiple,p,!1)}var ev=!1;function tv(n,a){var u=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var p=jt({},a,{value:void 0,defaultValue:void 0,children:ia(u._wrapperState.initialValue)});return p}function Py(n,a){var u=n;xu("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!ev&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component"),ev=!0);var p=a.value;if(p==null){var y=a.children,S=a.defaultValue;if(y!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(kr(y)){if(y.length>1)throw new Error("<textarea> can only have at most one child.");y=y[0]}S=y}}S==null&&(S=""),p=S}u._wrapperState={initialValue:Sl(p)}}function By(n,a){var u=n,p=Sl(a.value),y=Sl(a.defaultValue);if(p!=null){var S=ia(p);S!==u.value&&(u.value=S),a.defaultValue==null&&u.defaultValue!==S&&(u.defaultValue=S)}y!=null&&(u.defaultValue=ia(y))}function Ly(n,a){var u=n,p=u.textContent;p===u._wrapperState.initialValue&&p!==""&&p!==null&&(u.value=p)}function nv(n,a){By(n,a)}var No="http://www.w3.org/1999/xhtml",m_="http://www.w3.org/1998/Math/MathML",rv="http://www.w3.org/2000/svg";function jd(n){switch(n){case"svg":return rv;case"math":return m_;default:return No}}function av(n,a){return n==null||n===No?jd(a):n===rv&&a==="foreignObject"?No:n}var g_=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,p,y){MSApp.execUnsafeLocalFunction(function(){return n(a,u,p,y)})}:n},Id,zy=g_(function(n,a){if(n.namespaceURI===rv&&!("innerHTML"in n)){Id=Id||document.createElement("div"),Id.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var u=Id.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;u.firstChild;)n.appendChild(u.firstChild);return}n.innerHTML=a}),Ta=1,Mo=3,dr=8,Hi=9,vs=11,Hd=function(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===Mo){u.nodeValue=a;return}}n.textContent=a},Uy={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},_u={animationIterationCount:!0,aspectRatio:!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,gridArea:!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};function jy(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var Iy=["Webkit","ms","Moz","O"];Object.keys(_u).forEach(function(n){Iy.forEach(function(a){_u[jy(a,n)]=_u[n]})});function Vd(n,a,u){var p=a==null||typeof a=="boolean"||a==="";return p?"":!u&&typeof a=="number"&&a!==0&&!(_u.hasOwnProperty(n)&&_u[n])?a+"px":(sn(a,n),(""+a).trim())}var Su=/([A-Z])/g,y_=/^ms-/;function x_(n){return n.replace(Su,"-$1").toLowerCase().replace(y_,"-ms-")}var Hy=function(){};{var Vy=/^(?:webkit|moz|o)[A-Z]/,$y=/^-ms-/,ef=/-(.)/g,Eu=/;\s*$/,Du={},ku={},Yy=!1,iv=!1,ov=function(n){return n.replace(ef,function(a,u){return u.toUpperCase()})},lv=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported style property %s. Did you mean %s?",n,ov(n.replace($y,"ms-"))))},qy=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},Gy=function(n,a){ku.hasOwnProperty(a)&&ku[a]||(ku[a]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(Eu,"")))},Ky=function(n,a){Yy||(Yy=!0,c("`NaN` is an invalid value for the `%s` css style property.",n))},b_=function(n,a){iv||(iv=!0,c("`Infinity` is an invalid value for the `%s` css style property.",n))};Hy=function(n,a){n.indexOf("-")>-1?lv(n):Vy.test(n)?qy(n):Eu.test(a)&&Gy(n,a),typeof a=="number"&&(isNaN(a)?Ky(n,a):isFinite(a)||b_(n,a))}}var C_=Hy;function w_(n){{var a="",u="";for(var p in n)if(n.hasOwnProperty(p)){var y=n[p];if(y!=null){var S=p.indexOf("--")===0;a+=u+(S?p:x_(p))+":",a+=Vd(p,y,S),u=";"}}return a||null}}function Wy(n,a){var u=n.style;for(var p in a)if(a.hasOwnProperty(p)){var y=p.indexOf("--")===0;y||C_(p,a[p]);var S=Vd(p,a[p],y);p==="float"&&(p="cssFloat"),y?u.setProperty(p,S):u[p]=S}}function __(n){return n==null||typeof n=="boolean"||n===""}function pi(n){var a={};for(var u in n)for(var p=Uy[u]||[u],y=0;y<p.length;y++)a[p[y]]=u;return a}function tf(n,a){{if(!a)return;var u=pi(n),p=pi(a),y={};for(var S in u){var F=u[S],j=p[S];if(j&&F!==j){var K=F+","+j;if(y[K])continue;y[K]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",__(n[F])?"Removing":"Updating",F,j)}}}}var Qy={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Zy=jt({menuitem:!0},Qy),Xy="__html";function $d(n,a){if(a){if(Zy[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Xy in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Po(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Jy={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vi={},sv=new RegExp("^(aria)-["+at+"]*$"),nf=new RegExp("^(aria)[A-Z]["+at+"]*$");function uv(n,a){{if(Me.call(Vi,a)&&Vi[a])return!0;if(nf.test(a)){var u="aria-"+a.slice(4).toLowerCase(),p=Jy.hasOwnProperty(u)?u:null;if(p==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Vi[a]=!0,!0;if(a!==p)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,p),Vi[a]=!0,!0}if(sv.test(a)){var y=a.toLowerCase(),S=Jy.hasOwnProperty(y)?y:null;if(S==null)return Vi[a]=!0,!1;if(a!==S)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,S),Vi[a]=!0,!0}}return!0}function e1(n,a){{var u=[];for(var p in a){var y=uv(n,p);y||u.push(p)}var S=u.map(function(F){return"`"+F+"`"}).join(", ");u.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n):u.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n)}}function qd(n,a){Po(n,a)||e1(n,a)}var ms=!1;function cv(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!ms&&(ms=!0,n==="select"&&a.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var fv=function(){};{var Tr={},dv=/^on./,t1=/^on[^A-Z]/,n1=new RegExp("^(aria)-["+at+"]*$"),r1=new RegExp("^(aria)[A-Z]["+at+"]*$");fv=function(n,a,u,p){if(Me.call(Tr,a)&&Tr[a])return!0;var y=a.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Tr[a]=!0,!0;if(p!=null){var S=p.registrationNameDependencies,F=p.possibleRegistrationNames;if(S.hasOwnProperty(a))return!0;var j=F.hasOwnProperty(y)?F[y]:null;if(j!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",a,j),Tr[a]=!0,!0;if(dv.test(a))return c("Unknown event handler property `%s`. It will be ignored.",a),Tr[a]=!0,!0}else if(dv.test(a))return t1.test(a)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Tr[a]=!0,!0;if(n1.test(a)||r1.test(a))return!0;if(y==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Tr[a]=!0,!0;if(y==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Tr[a]=!0,!0;if(y==="is"&&u!==null&&u!==void 0&&typeof u!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Tr[a]=!0,!0;if(typeof u=="number"&&isNaN(u))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Tr[a]=!0,!0;var K=ra(a),re=K!==null&&K.type===Fn;if(Yd.hasOwnProperty(y)){var ie=Yd[y];if(ie!==a)return c("Invalid DOM property `%s`. Did you mean `%s`?",a,ie),Tr[a]=!0,!0}else if(!re&&a!==y)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,y),Tr[a]=!0,!0;return typeof u=="boolean"&&Ur(a,u,K,!1)?(u?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),Tr[a]=!0,!0):re?!0:Ur(a,u,K,!1)?(Tr[a]=!0,!1):((u==="false"||u==="true")&&K!==null&&K.type===Vt&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),Tr[a]=!0),!0)}}var a1=function(n,a,u){{var p=[];for(var y in a){var S=fv(n,y,a[y],u);S||p.push(y)}var F=p.map(function(j){return"`"+j+"`"}).join(", ");p.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n):p.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n)}};function i1(n,a,u){Po(n,a)||a1(n,a,u)}var Bo=1,rf=1<<1,gs=1<<2,S_=Bo|rf|gs,af=null;function of(n){af!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),af=n}function E_(){af===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),af=null}function o1(n){return n===af}function Gd(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Mo?a.parentNode:a}var An=null,kl=null,Lo=null;function Tu(n){var a=ec(n);if(a){if(typeof An!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var u=a.stateNode;if(u){var p=ox(u);An(a.stateNode,a.type,p)}}}function l1(n){An=n}function Kd(n){kl?Lo?Lo.push(n):Lo=[n]:kl=n}function lf(){return kl!==null||Lo!==null}function sf(){if(kl){var n=kl,a=Lo;if(kl=null,Lo=null,Tu(n),a)for(var u=0;u<a.length;u++)Tu(a[u])}}var ys=function(n,a){return n(a)},pv=function(){},hv=!1;function D_(){var n=lf();n&&(pv(),sf())}function vv(n,a,u){if(hv)return n(a,u);hv=!0;try{return ys(n,a,u)}finally{hv=!1,D_()}}function Wd(n,a,u){ys=n,pv=u}function Qd(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function mv(n,a,u){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(u.disabled&&Qd(a));default:return!1}}function xs(n,a){var u=n.stateNode;if(u===null)return null;var p=ox(u);if(p===null)return null;var y=p[a];if(mv(a,n.type,p))return null;if(y&&typeof y!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof y+"` type.");return y}var uf=!1;if($e)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){uf=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{uf=!1}function s1(n,a,u,p,y,S,F,j,K){var re=Array.prototype.slice.call(arguments,3);try{a.apply(u,re)}catch(ie){this.onError(ie)}}var gv=s1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var yv=document.createElement("react");gv=function(a,u,p,y,S,F,j,K,re){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ie=document.createEvent("Event"),he=!1,de=!0,_e=window.event,Se=Object.getOwnPropertyDescriptor(window,"event");function Te(){yv.removeEventListener(Ae,vt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_e)}var tt=Array.prototype.slice.call(arguments,3);function vt(){he=!0,Te(),u.apply(p,tt),de=!1}var dt,Gt=!1,Ht=!1;function be(Ce){if(dt=Ce.error,Gt=!0,dt===null&&Ce.colno===0&&Ce.lineno===0&&(Ht=!0),Ce.defaultPrevented&&dt!=null&&typeof dt=="object")try{dt._suppressLogging=!0}catch{}}var Ae="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",be),yv.addEventListener(Ae,vt,!1),ie.initEvent(Ae,!1,!1),yv.dispatchEvent(ie),Se&&Object.defineProperty(window,"event",Se),he&&de&&(Gt?Ht&&(dt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):dt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(dt)),window.removeEventListener("error",be),!he)return Te(),s1.apply(this,arguments)}}var k_=gv,Tl=!1,$i=null,cf=!1,Al=null,io={onError:function(n){Tl=!0,$i=n}};function Cs(n,a,u,p,y,S,F,j,K){Tl=!1,$i=null,k_.apply(io,arguments)}function zo(n,a,u,p,y,S,F,j,K){if(Cs.apply(this,arguments),Tl){var re=bv();cf||(cf=!0,Al=re)}}function xv(){if(cf){var n=Al;throw cf=!1,Al=null,n}}function T_(){return Tl}function bv(){if(Tl){var n=$i;return Tl=!1,$i=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function hi(n){return n._reactInternals}function ff(n){return n._reactInternals!==void 0}function Au(n,a){n._reactInternals=a}var ht=0,Ol=1,Ln=2,At=4,un=16,fn=32,oo=64,_t=128,tr=256,Aa=512,vi=1024,qn=2048,mi=4096,Rl=8192,df=16384,Zd=qn|At|oo|Aa|vi|df,u1=32767,Ga=32768,Ar=65536,pf=131072,Cv=1048576,wv=2097152,Oa=4194304,Fl=8388608,Ra=16777216,ws=33554432,Ou=At|vi|0,Fa=Ln|At|un|fn|Aa|mi|Rl,oa=At|oo|Aa|Rl,gi=qn|un,Ir=Oa|Fl|wv,Uo=t.ReactCurrentOwner;function Ka(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{var p=a;do a=p,(a.flags&(Ln|mi))!==ht&&(u=a.return),p=a.return;while(p)}return a.tag===C?u:null}function _v(n){if(n.tag===N){var a=n.memoizedState;if(a===null){var u=n.alternate;u!==null&&(a=u.memoizedState)}if(a!==null)return a.dehydrated}return null}function Xd(n){return n.tag===C?n.stateNode.containerInfo:null}function Sv(n){return Ka(n)===n}function Wa(n){{var a=Uo.current;if(a!==null&&a.tag===d){var u=a,p=u.stateNode;p._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tt(u)||"A component"),p._warnedAboutRefsInRender=!0}}var y=hi(n);return y?Ka(y)===y:!1}function Na(n){if(Ka(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function zn(n){var a=n.alternate;if(!a){var u=Ka(n);if(u===null)throw new Error("Unable to find node on an unmounted component.");return u!==n?null:n}for(var p=n,y=a;;){var S=p.return;if(S===null)break;var F=S.alternate;if(F===null){var j=S.return;if(j!==null){p=y=j;continue}break}if(S.child===F.child){for(var K=S.child;K;){if(K===p)return Na(S),n;if(K===y)return Na(S),a;K=K.sibling}throw new Error("Unable to find node on an unmounted component.")}if(p.return!==y.return)p=S,y=F;else{for(var re=!1,ie=S.child;ie;){if(ie===p){re=!0,p=S,y=F;break}if(ie===y){re=!0,y=S,p=F;break}ie=ie.sibling}if(!re){for(ie=F.child;ie;){if(ie===p){re=!0,p=F,y=S;break}if(ie===y){re=!0,y=F,p=S;break}ie=ie.sibling}if(!re)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==y)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==C)throw new Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?n:a}function yi(n){var a=zn(n);return a!==null?Ev(a):null}function Ev(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){var u=Ev(a);if(u!==null)return u;a=a.sibling}return null}function c1(n){var a=zn(n);return a!==null?Jd(a):null}function Jd(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){if(a.tag!==b){var u=Jd(a);if(u!==null)return u}a=a.sibling}return null}var e0=r.unstable_scheduleCallback,f1=r.unstable_cancelCallback,t0=r.unstable_shouldYield,d1=r.unstable_requestPaint,Qn=r.unstable_now,Dv=r.unstable_getCurrentPriorityLevel,n0=r.unstable_ImmediatePriority,Qa=r.unstable_UserBlockingPriority,lo=r.unstable_NormalPriority,r0=r.unstable_LowPriority,Nl=r.unstable_IdlePriority,kv=r.unstable_yieldValue,Tv=r.unstable_setDisableYieldValue,Ml=null,Or=null,Ke=null,ir=!1,Hr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Av(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{fe&&(n=jt({},n,{getLaneLabelMap:Bl,injectProfilingHooks:Io})),Ml=a.inject(n),Or=a}catch(u){c("React instrumentation encountered an error: %s.",u)}return!!a.checkDCE}function p1(n,a){if(Or&&typeof Or.onScheduleFiberRoot=="function")try{Or.onScheduleFiberRoot(Ml,n,a)}catch(u){ir||(ir=!0,c("React instrumentation encountered an error: %s",u))}}function jo(n,a){if(Or&&typeof Or.onCommitFiberRoot=="function")try{var u=(n.current.flags&_t)===_t;if(ve){var p;switch(a){case la:p=n0;break;case Vr:p=Qa;break;case Vo:p=lo;break;case wf:p=Nl;break;default:p=lo;break}Or.onCommitFiberRoot(Ml,n,p,u)}}catch(y){ir||(ir=!0,c("React instrumentation encountered an error: %s",y))}}function Pl(n){if(Or&&typeof Or.onPostCommitFiberRoot=="function")try{Or.onPostCommitFiberRoot(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Ov(n){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function xr(n){if(typeof kv=="function"&&(Tv(n),l(n)),Or&&typeof Or.setStrictMode=="function")try{Or.setStrictMode(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Io(n){Ke=n}function Bl(){{for(var n=new Map,a=1,u=0;u<Un;u++){var p=A_(a);n.set(a,p),a*=2}return n}}function a0(n){Ke!==null&&typeof Ke.markCommitStarted=="function"&&Ke.markCommitStarted(n)}function Rv(){Ke!==null&&typeof Ke.markCommitStopped=="function"&&Ke.markCommitStopped()}function Ll(n){Ke!==null&&typeof Ke.markComponentRenderStarted=="function"&&Ke.markComponentRenderStarted(n)}function _s(){Ke!==null&&typeof Ke.markComponentRenderStopped=="function"&&Ke.markComponentRenderStopped()}function h1(n){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStarted=="function"&&Ke.markComponentPassiveEffectMountStarted(n)}function Fv(){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStopped=="function"&&Ke.markComponentPassiveEffectMountStopped()}function i0(n){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStarted=="function"&&Ke.markComponentPassiveEffectUnmountStarted(n)}function v1(){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStopped=="function"&&Ke.markComponentPassiveEffectUnmountStopped()}function m1(n){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStarted=="function"&&Ke.markComponentLayoutEffectMountStarted(n)}function g1(){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStopped=="function"&&Ke.markComponentLayoutEffectMountStopped()}function o0(n){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStarted=="function"&&Ke.markComponentLayoutEffectUnmountStarted(n)}function Ru(){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStopped=="function"&&Ke.markComponentLayoutEffectUnmountStopped()}function l0(n,a,u){Ke!==null&&typeof Ke.markComponentErrored=="function"&&Ke.markComponentErrored(n,a,u)}function y1(n,a,u){Ke!==null&&typeof Ke.markComponentSuspended=="function"&&Ke.markComponentSuspended(n,a,u)}function x1(n){Ke!==null&&typeof Ke.markLayoutEffectsStarted=="function"&&Ke.markLayoutEffectsStarted(n)}function Fu(){Ke!==null&&typeof Ke.markLayoutEffectsStopped=="function"&&Ke.markLayoutEffectsStopped()}function b1(n){Ke!==null&&typeof Ke.markPassiveEffectsStarted=="function"&&Ke.markPassiveEffectsStarted(n)}function hf(){Ke!==null&&typeof Ke.markPassiveEffectsStopped=="function"&&Ke.markPassiveEffectsStopped()}function Yi(n){Ke!==null&&typeof Ke.markRenderStarted=="function"&&Ke.markRenderStarted(n)}function vf(){Ke!==null&&typeof Ke.markRenderYielded=="function"&&Ke.markRenderYielded()}function Nu(){Ke!==null&&typeof Ke.markRenderStopped=="function"&&Ke.markRenderStopped()}function Ss(n){Ke!==null&&typeof Ke.markRenderScheduled=="function"&&Ke.markRenderScheduled(n)}function Nv(n,a){Ke!==null&&typeof Ke.markForceUpdateScheduled=="function"&&Ke.markForceUpdateScheduled(n,a)}function zl(n,a){Ke!==null&&typeof Ke.markStateUpdateScheduled=="function"&&Ke.markStateUpdateScheduled(n,a)}var gt=0,Ut=1,xt=2,Zn=8,xi=16,s0=Math.clz32?Math.clz32:Es,u0=Math.log,Mv=Math.LN2;function Es(n){var a=n>>>0;return a===0?32:31-(u0(a)/Mv|0)|0}var Un=31,Oe=0,Yt=0,bt=1,so=2,Za=4,Ds=8,jn=16,ks=32,Ul=4194240,Ts=64,bi=128,Ma=256,As=512,mf=1024,gf=2048,c0=4096,f0=8192,d0=16384,p0=32768,h0=65536,v0=131072,m0=262144,g0=524288,Os=1048576,y0=2097152,Rs=130023424,Ho=4194304,x0=8388608,yf=16777216,b0=33554432,C0=67108864,Pv=Ho,Mu=134217728,w0=268435455,Pu=268435456,jl=536870912,Pa=1073741824;function A_(n){{if(n&bt)return"Sync";if(n&so)return"InputContinuousHydration";if(n&Za)return"InputContinuous";if(n&Ds)return"DefaultHydration";if(n&jn)return"Default";if(n&ks)return"TransitionHydration";if(n&Ul)return"Transition";if(n&Rs)return"Retry";if(n&Mu)return"SelectiveHydration";if(n&Pu)return"IdleHydration";if(n&jl)return"Idle";if(n&Pa)return"Offscreen"}}var On=-1,_0=Ts,S0=Ho;function Bu(n){switch(pr(n)){case bt:return bt;case so:return so;case Za:return Za;case Ds:return Ds;case jn:return jn;case ks:return ks;case Ts:case bi:case Ma:case As:case mf:case gf:case c0:case f0:case d0:case p0:case h0:case v0:case m0:case g0:case Os:case y0:return n&Ul;case Ho:case x0:case yf:case b0:case C0:return n&Rs;case Mu:return Mu;case Pu:return Pu;case jl:return jl;case Pa:return Pa;default:return c("Should have found matching lanes. This is a bug in React."),n}}function xf(n,a){var u=n.pendingLanes;if(u===Oe)return Oe;var p=Oe,y=n.suspendedLanes,S=n.pingedLanes,F=u&w0;if(F!==Oe){var j=F&~y;if(j!==Oe)p=Bu(j);else{var K=F&S;K!==Oe&&(p=Bu(K))}}else{var re=u&~y;re!==Oe?p=Bu(re):S!==Oe&&(p=Bu(S))}if(p===Oe)return Oe;if(a!==Oe&&a!==p&&(a&y)===Oe){var ie=pr(p),he=pr(a);if(ie>=he||ie===jn&&(he&Ul)!==Oe)return a}(p&Za)!==Oe&&(p|=u&jn);var de=n.entangledLanes;if(de!==Oe)for(var _e=n.entanglements,Se=p&de;Se>0;){var Te=Il(Se),tt=1<<Te;p|=_e[Te],Se&=~tt}return p}function C1(n,a){for(var u=n.eventTimes,p=On;a>0;){var y=Il(a),S=1<<y,F=u[y];F>p&&(p=F),a&=~S}return p}function E0(n,a){switch(n){case bt:case so:case Za:return a+250;case Ds:case jn:case ks:case Ts:case bi:case Ma:case As:case mf:case gf:case c0:case f0:case d0:case p0:case h0:case v0:case m0:case g0:case Os:case y0:return a+5e3;case Ho:case x0:case yf:case b0:case C0:return On;case Mu:case Pu:case jl:case Pa:return On;default:return c("Should have found matching lanes. This is a bug in React."),On}}function O_(n,a){for(var u=n.pendingLanes,p=n.suspendedLanes,y=n.pingedLanes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),K=1<<j,re=S[j];re===On?((K&p)===Oe||(K&y)!==Oe)&&(S[j]=E0(K,a)):re<=a&&(n.expiredLanes|=K),F&=~K}}function R_(n){return Bu(n.pendingLanes)}function Bv(n){var a=n.pendingLanes&~Pa;return a!==Oe?a:a&Pa?Pa:Oe}function Lu(n){return(n&bt)!==Oe}function bf(n){return(n&w0)!==Oe}function D0(n){return(n&Rs)===n}function F_(n){var a=bt|Za|jn;return(n&a)===Oe}function w1(n){return(n&Ul)===n}function Cf(n,a){var u=so|Za|Ds|jn;return(a&u)!==Oe}function _1(n,a){return(a&n.expiredLanes)!==Oe}function Lv(n){return(n&Ul)!==Oe}function zv(){var n=_0;return _0<<=1,(_0&Ul)===Oe&&(_0=Ts),n}function N_(){var n=S0;return S0<<=1,(S0&Rs)===Oe&&(S0=Ho),n}function pr(n){return n&-n}function br(n){return pr(n)}function Il(n){return 31-s0(n)}function k0(n){return Il(n)}function Ba(n,a){return(n&a)!==Oe}function Fs(n,a){return(n&a)===a}function Ot(n,a){return n|a}function zu(n,a){return n&~a}function Uv(n,a){return n&a}function S1(n){return n}function E1(n,a){return n!==Yt&&n<a?n:a}function T0(n){for(var a=[],u=0;u<Un;u++)a.push(n);return a}function Ns(n,a,u){n.pendingLanes|=a,a!==jl&&(n.suspendedLanes=Oe,n.pingedLanes=Oe);var p=n.eventTimes,y=k0(a);p[y]=u}function jv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var u=n.expirationTimes,p=a;p>0;){var y=Il(p),S=1<<y;u[y]=On,p&=~S}}function Iv(n,a,u){n.pingedLanes|=n.suspendedLanes&a}function Hv(n,a){var u=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Oe,n.pingedLanes=Oe,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var p=n.entanglements,y=n.eventTimes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),K=1<<j;p[j]=Oe,y[j]=On,S[j]=On,F&=~K}}function Uu(n,a){for(var u=n.entangledLanes|=a,p=n.entanglements,y=u;y;){var S=Il(y),F=1<<S;F&a|p[S]&a&&(p[S]|=a),y&=~F}}function M_(n,a){var u=pr(a),p;switch(u){case Za:p=so;break;case jn:p=Ds;break;case Ts:case bi:case Ma:case As:case mf:case gf:case c0:case f0:case d0:case p0:case h0:case v0:case m0:case g0:case Os:case y0:case Ho:case x0:case yf:case b0:case C0:p=ks;break;case jl:p=Pu;break;default:p=Yt;break}return(p&(n.suspendedLanes|a))!==Yt?Yt:p}function Vv(n,a,u){if(Hr)for(var p=n.pendingUpdatersLaneMap;u>0;){var y=k0(u),S=1<<y,F=p[y];F.add(a),u&=~S}}function A0(n,a){if(Hr)for(var u=n.pendingUpdatersLaneMap,p=n.memoizedUpdaters;a>0;){var y=k0(a),S=1<<y,F=u[y];F.size>0&&(F.forEach(function(j){var K=j.alternate;(K===null||!p.has(K))&&p.add(j)}),F.clear()),a&=~S}}function $v(n,a){return null}var la=bt,Vr=Za,Vo=jn,wf=jl,Ms=Yt;function Ci(){return Ms}function Cr(n){Ms=n}function _f(n,a){var u=Ms;try{return Ms=n,a()}finally{Ms=u}}function sa(n,a){return n!==0&&n<a?n:a}function P_(n,a){return n===0||n>a?n:a}function Yv(n,a){return n!==0&&n<a}function Sf(n){var a=pr(n);return Yv(la,a)?Yv(Vr,a)?bf(a)?Vo:wf:Vr:la}function wr(n){var a=n.current.memoizedState;return a.isDehydrated}var D1;function rt(n){D1=n}function ju(n){D1(n)}var Ef;function k1(n){Ef=n}var T1;function Df(n){T1=n}var kf;function qv(n){kf=n}var Gv;function A1(n){Gv=n}var O0=!1,Iu=[],uo=null,Gn=null,Rr=null,wi=new Map,Hu=new Map,$o=[],qi=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function O1(n){return qi.indexOf(n)>-1}function co(n,a,u,p,y){return{blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:y,targetContainers:[p]}}function R1(n,a){switch(n){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":{var u=a.pointerId;wi.delete(u);break}case"gotpointercapture":case"lostpointercapture":{var p=a.pointerId;Hu.delete(p);break}}}function Vu(n,a,u,p,y,S){if(n===null||n.nativeEvent!==S){var F=co(a,u,p,y,S);if(a!==null){var j=ec(a);j!==null&&Ef(j)}return F}n.eventSystemFlags|=p;var K=n.targetContainers;return y!==null&&K.indexOf(y)===-1&&K.push(y),n}function F1(n,a,u,p,y){switch(a){case"focusin":{var S=y;return uo=Vu(uo,n,a,u,p,S),!0}case"dragenter":{var F=y;return Gn=Vu(Gn,n,a,u,p,F),!0}case"mouseover":{var j=y;return Rr=Vu(Rr,n,a,u,p,j),!0}case"pointerover":{var K=y,re=K.pointerId;return wi.set(re,Vu(wi.get(re)||null,n,a,u,p,K)),!0}case"gotpointercapture":{var ie=y,he=ie.pointerId;return Hu.set(he,Vu(Hu.get(he)||null,n,a,u,p,ie)),!0}}return!1}function Kv(n){var a=Bf(n.target);if(a!==null){var u=Ka(a);if(u!==null){var p=u.tag;if(p===N){var y=_v(u);if(y!==null){n.blockedOn=y,Gv(n.priority,function(){T1(u)});return}}else if(p===C){var S=u.stateNode;if(wr(S)){n.blockedOn=Xd(u);return}}}}n.blockedOn=null}function N1(n){for(var a=kf(),u={blockedOn:null,target:n,priority:a},p=0;p<$o.length&&Yv(a,$o[p].priority);p++);$o.splice(p,0,u),p===0&&Kv(u)}function R0(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var u=a[0],p=Ps(n.domEventName,n.eventSystemFlags,u,n.nativeEvent);if(p===null){var y=n.nativeEvent,S=new y.constructor(y.type,y);of(S),y.target.dispatchEvent(S),E_()}else{var F=ec(p);return F!==null&&Ef(F),n.blockedOn=p,!1}a.shift()}return!0}function Tf(n,a,u){R0(n)&&u.delete(a)}function Wv(){O0=!1,uo!==null&&R0(uo)&&(uo=null),Gn!==null&&R0(Gn)&&(Gn=null),Rr!==null&&R0(Rr)&&(Rr=null),wi.forEach(Tf),Hu.forEach(Tf)}function ua(n,a){n.blockedOn===a&&(n.blockedOn=null,O0||(O0=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wv)))}function It(n){if(Iu.length>0){ua(Iu[0],n);for(var a=1;a<Iu.length;a++){var u=Iu[a];u.blockedOn===n&&(u.blockedOn=null)}}uo!==null&&ua(uo,n),Gn!==null&&ua(Gn,n),Rr!==null&&ua(Rr,n);var p=function(j){return ua(j,n)};wi.forEach(p),Hu.forEach(p);for(var y=0;y<$o.length;y++){var S=$o[y];S.blockedOn===n&&(S.blockedOn=null)}for(;$o.length>0;){var F=$o[0];if(F.blockedOn!==null)break;Kv(F),F.blockedOn===null&&$o.shift()}}var Xn=t.ReactCurrentBatchConfig,nr=!0;function Fr(n){nr=!!n}function Xa(){return nr}function $u(n,a,u){var p=va(a),y;switch(p){case la:y=_r;break;case Vr:y=Af;break;case Vo:default:y=Yo;break}return y.bind(null,a,u,n)}function _r(n,a,u,p){var y=Ci(),S=Xn.transition;Xn.transition=null;try{Cr(la),Yo(n,a,u,p)}finally{Cr(y),Xn.transition=S}}function Af(n,a,u,p){var y=Ci(),S=Xn.transition;Xn.transition=null;try{Cr(Vr),Yo(n,a,u,p)}finally{Cr(y),Xn.transition=S}}function Yo(n,a,u,p){nr&&F0(n,a,u,p)}function F0(n,a,u,p){var y=Ps(n,a,u,p);if(y===null){tS(n,a,p,Yu,u),R1(n,p);return}if(F1(y,n,a,u,p)){p.stopPropagation();return}if(R1(n,p),a&gs&&O1(n)){for(;y!==null;){var S=ec(y);S!==null&&ju(S);var F=Ps(n,a,u,p);if(F===null&&tS(n,a,p,Yu,u),F===y)break;y=F}y!==null&&p.stopPropagation();return}tS(n,a,p,null,u)}var Yu=null;function Ps(n,a,u,p){Yu=null;var y=Gd(p),S=Bf(y);if(S!==null){var F=Ka(S);if(F===null)S=null;else{var j=F.tag;if(j===N){var K=_v(F);if(K!==null)return K;S=null}else if(j===C){var re=F.stateNode;if(wr(re))return Xd(F);S=null}else F!==S&&(S=null)}}return Yu=S,null}function va(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return la;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Vr;case"message":{var a=Dv();switch(a){case n0:return la;case Qa:return Vr;case lo:case r0:return Vo;case Nl:return wf;default:return Vo}}default:return Vo}}function Qv(n,a,u){return n.addEventListener(a,u,!1),u}function qu(n,a,u){return n.addEventListener(a,u,!0),u}function qo(n,a,u,p){return n.addEventListener(a,u,{capture:!0,passive:p}),u}function N0(n,a,u,p){return n.addEventListener(a,u,{passive:p}),u}var Bs=null,fo=null,Hl=null;function Vl(n){return Bs=n,fo=P0(),!0}function M0(){Bs=null,fo=null,Hl=null}function Gu(){if(Hl)return Hl;var n,a=fo,u=a.length,p,y=P0(),S=y.length;for(n=0;n<u&&a[n]===y[n];n++);var F=u-n;for(p=1;p<=F&&a[u-p]===y[S-p];p++);var j=p>1?1-p:void 0;return Hl=y.slice(n,j),Hl}function P0(){return"value"in Bs?Bs.value:Bs.textContent}function Ls(n){var a,u=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),a>=32||a===13?a:0}function zs(){return!0}function ca(){return!1}function hr(n){function a(u,p,y,S,F){this._reactName=u,this._targetInst=y,this.type=p,this.nativeEvent=S,this.target=F,this.currentTarget=null;for(var j in n)if(n.hasOwnProperty(j)){var K=n[j];K?this[j]=K(S):this[j]=S[j]}var re=S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1;return re?this.isDefaultPrevented=zs:this.isDefaultPrevented=ca,this.isPropagationStopped=ca,this}return jt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),a}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},da=hr(fa),Ku=jt({},fa,{view:0,detail:0}),Zv=hr(Ku),Of,Xv,_i;function M1(n){n!==_i&&(_i&&n.type==="mousemove"?(Of=n.screenX-_i.screenX,Xv=n.screenY-_i.screenY):(Of=0,Xv=0),_i=n)}var Wu=jt({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:z0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(M1(n),Of)},movementY:function(n){return"movementY"in n?n.movementY:Xv}}),$l=hr(Wu),Jv=jt({},Wu,{dataTransfer:0}),Us=hr(Jv),P1=jt({},Ku,{relatedTarget:0}),B0=hr(P1),em=jt({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),L0=hr(em),B_=jt({},fa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),L_=hr(B_),B1=jt({},fa,{data:0}),tm=hr(B1),js=tm,z_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function L1(n){if(n.key){var a=z_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var u=Ls(n);return u===13?"Enter":String.fromCharCode(u)}return n.type==="keydown"||n.type==="keyup"?Qu[n.keyCode]||"Unidentified":""}var rr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U_(n){var a=this,u=a.nativeEvent;if(u.getModifierState)return u.getModifierState(n);var p=rr[n];return p?!!u[p]:!1}function z0(n){return U_}var j_=jt({},Ku,{key:L1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:z0,charCode:function(n){return n.type==="keypress"?Ls(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ls(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),I_=hr(j_),z1=jt({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nm=hr(z1),H_=jt({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:z0}),Si=hr(H_),rm=jt({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),V_=hr(rm),Yl=jt({},Wu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),U0=hr(Yl),Is=[9,13,27,32],Rf=229,Ff=$e&&"CompositionEvent"in window,Hs=null;$e&&"documentMode"in document&&(Hs=document.documentMode);var $_=$e&&"TextEvent"in window&&!Hs,j0=$e&&(!Ff||Hs&&Hs>8&&Hs<=11),U1=32,am=String.fromCharCode(U1);function j1(){Pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Nf=!1;function I0(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function I1(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function im(n,a){return n==="keydown"&&a.keyCode===Rf}function H1(n,a){switch(n){case"keyup":return Is.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==Rf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function H0(n){return n.locale==="ko"}var Go=!1;function lm(n,a,u,p,y){var S,F;if(Ff?S=I1(a):Go?H1(a,p)&&(S="onCompositionEnd"):im(a,p)&&(S="onCompositionStart"),!S)return null;j0&&!H0(p)&&(!Go&&S==="onCompositionStart"?Go=Vl(y):S==="onCompositionEnd"&&Go&&(F=Gu()));var j=G1(u,S);if(j.length>0){var K=new tm(S,a,null,p,y);if(n.push({event:K,listeners:j}),F)K.data=F;else{var re=om(p);re!==null&&(K.data=re)}}}function V0(n,a){switch(n){case"compositionend":return om(a);case"keypress":var u=a.which;return u!==U1?null:(Nf=!0,am);case"textInput":var p=a.data;return p===am&&Nf?null:p;default:return null}}function V1(n,a){if(Go){if(n==="compositionend"||!Ff&&H1(n,a)){var u=Gu();return M0(),Go=!1,u}return null}switch(n){case"paste":return null;case"keypress":if(!I0(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return j0&&!H0(a)?null:a.data;default:return null}}function Y_(n,a,u,p,y){var S;if($_?S=V0(a,p):S=V1(a,p),!S)return null;var F=G1(u,"onBeforeInput");if(F.length>0){var j=new js("onBeforeInput","beforeinput",null,p,y);n.push({event:j,listeners:F}),j.data=S}}function $0(n,a,u,p,y,S,F){lm(n,a,u,p,y),Y_(n,a,u,p,y)}var q_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zu(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!q_[n.type]:a==="textarea"}function G_(n){if(!$e)return!1;var a="on"+n,u=a in document;if(!u){var p=document.createElement("div");p.setAttribute(a,"return;"),u=typeof p[a]=="function"}return u}function Y0(){Pe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(n,a,u,p){Kd(p);var y=G1(a,"onChange");if(y.length>0){var S=new da("onChange","change",null,u,p);n.push({event:S,listeners:y})}}var s=null,v=null;function w(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function O(n){var a=[];o(a,v,n,Gd(n)),vv(L,a)}function L(n){pA(n,0)}function J(n){var a=Z0(n);if(Ay(a))return n}function le(n,a){if(n==="change")return a}var ce=!1;$e&&(ce=G_("input")&&(!document.documentMode||document.documentMode>9));function Ee(n,a){s=n,v=a,s.attachEvent("onpropertychange",He)}function je(){s&&(s.detachEvent("onpropertychange",He),s=null,v=null)}function He(n){n.propertyName==="value"&&J(v)&&O(n)}function Ue(n,a,u){n==="focusin"?(je(),Ee(a,u)):n==="focusout"&&je()}function Xe(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return J(v)}function ot(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function ct(n,a){if(n==="click")return J(a)}function or(n,a){if(n==="input"||n==="change")return J(a)}function ye(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||El(n,"number",n.value)}function pe(n,a,u,p,y,S,F){var j=u?Z0(u):window,K,re;if(w(j)?K=le:Zu(j)?ce?K=or:(K=Xe,re=Ue):ot(j)&&(K=ct),K){var ie=K(a,u);if(ie){o(n,ie,p,y);return}}re&&re(a,j,u),a==="focusout"&&ye(j)}function we(){ge("onMouseEnter",["mouseout","mouseover"]),ge("onMouseLeave",["mouseout","mouseover"]),ge("onPointerEnter",["pointerout","pointerover"]),ge("onPointerLeave",["pointerout","pointerover"])}function qe(n,a,u,p,y,S,F){var j=a==="mouseover"||a==="pointerover",K=a==="mouseout"||a==="pointerout";if(j&&!o1(p)){var re=p.relatedTarget||p.fromElement;if(re&&(Bf(re)||Cm(re)))return}if(!(!K&&!j)){var ie;if(y.window===y)ie=y;else{var he=y.ownerDocument;he?ie=he.defaultView||he.parentWindow:ie=window}var de,_e;if(K){var Se=p.relatedTarget||p.toElement;if(de=u,_e=Se?Bf(Se):null,_e!==null){var Te=Ka(_e);(_e!==Te||_e.tag!==x&&_e.tag!==_)&&(_e=null)}}else de=null,_e=u;if(de!==_e){var tt=$l,vt="onMouseLeave",dt="onMouseEnter",Gt="mouse";(a==="pointerout"||a==="pointerover")&&(tt=nm,vt="onPointerLeave",dt="onPointerEnter",Gt="pointer");var Ht=de==null?ie:Z0(de),be=_e==null?ie:Z0(_e),Ae=new tt(vt,Gt+"leave",de,p,y);Ae.target=Ht,Ae.relatedTarget=be;var Ce=null,Ve=Bf(y);if(Ve===u){var nt=new tt(dt,Gt+"enter",_e,p,y);nt.target=be,nt.relatedTarget=Ht,Ce=nt}H$(n,Ae,Ce,de,_e)}}}function ft(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var lt=typeof Object.is=="function"?Object.is:ft;function pt(n,a){if(lt(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),p=Object.keys(a);if(u.length!==p.length)return!1;for(var y=0;y<u.length;y++){var S=u[y];if(!Me.call(a,S)||!lt(n[S],a[S]))return!1}return!0}function St(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Nr(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function tn(n,a){for(var u=St(n),p=0,y=0;u;){if(u.nodeType===Mo){if(y=p+u.textContent.length,p<=a&&y>=a)return{node:u,offset:a-p};p=y}u=St(Nr(u))}}function ql(n){var a=n.ownerDocument,u=a&&a.defaultView||window,p=u.getSelection&&u.getSelection();if(!p||p.rangeCount===0)return null;var y=p.anchorNode,S=p.anchorOffset,F=p.focusNode,j=p.focusOffset;try{y.nodeType,F.nodeType}catch{return null}return K_(n,y,S,F,j)}function K_(n,a,u,p,y){var S=0,F=-1,j=-1,K=0,re=0,ie=n,he=null;e:for(;;){for(var de=null;ie===a&&(u===0||ie.nodeType===Mo)&&(F=S+u),ie===p&&(y===0||ie.nodeType===Mo)&&(j=S+y),ie.nodeType===Mo&&(S+=ie.nodeValue.length),(de=ie.firstChild)!==null;)he=ie,ie=de;for(;;){if(ie===n)break e;if(he===a&&++K===u&&(F=S),he===p&&++re===y&&(j=S),(de=ie.nextSibling)!==null)break;ie=he,he=ie.parentNode}ie=de}return F===-1||j===-1?null:{start:F,end:j}}function _$(n,a){var u=n.ownerDocument||document,p=u&&u.defaultView||window;if(p.getSelection){var y=p.getSelection(),S=n.textContent.length,F=Math.min(a.start,S),j=a.end===void 0?F:Math.min(a.end,S);if(!y.extend&&F>j){var K=j;j=F,F=K}var re=tn(n,F),ie=tn(n,j);if(re&&ie){if(y.rangeCount===1&&y.anchorNode===re.node&&y.anchorOffset===re.offset&&y.focusNode===ie.node&&y.focusOffset===ie.offset)return;var he=u.createRange();he.setStart(re.node,re.offset),y.removeAllRanges(),F>j?(y.addRange(he),y.extend(ie.node,ie.offset)):(he.setEnd(ie.node,ie.offset),y.addRange(he))}}}function tA(n){return n&&n.nodeType===Mo}function nA(n,a){return!n||!a?!1:n===a?!0:tA(n)?!1:tA(a)?nA(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function S$(n){return n&&n.ownerDocument&&nA(n.ownerDocument.documentElement,n)}function E$(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function rA(){for(var n=window,a=Md();a instanceof n.HTMLIFrameElement;){if(E$(a))n=a.contentWindow;else return a;a=Md(n.document)}return a}function W_(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function D$(){var n=rA();return{focusedElem:n,selectionRange:W_(n)?T$(n):null}}function k$(n){var a=rA(),u=n.focusedElem,p=n.selectionRange;if(a!==u&&S$(u)){p!==null&&W_(u)&&A$(u,p);for(var y=[],S=u;S=S.parentNode;)S.nodeType===Ta&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});typeof u.focus=="function"&&u.focus();for(var F=0;F<y.length;F++){var j=y[F];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}}function T$(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=ql(n),a||{start:0,end:0}}function A$(n,a){var u=a.start,p=a.end;p===void 0&&(p=u),"selectionStart"in n?(n.selectionStart=u,n.selectionEnd=Math.min(p,n.value.length)):_$(n,a)}var O$=$e&&"documentMode"in document&&document.documentMode<=11;function R$(){Pe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var q0=null,Q_=null,sm=null,Z_=!1;function F$(n){if("selectionStart"in n&&W_(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,u=a.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function N$(n){return n.window===n?n.document:n.nodeType===Hi?n:n.ownerDocument}function aA(n,a,u){var p=N$(u);if(!(Z_||q0==null||q0!==Md(p))){var y=F$(q0);if(!sm||!pt(sm,y)){sm=y;var S=G1(Q_,"onSelect");if(S.length>0){var F=new da("onSelect","select",null,a,u);n.push({event:F,listeners:S}),F.target=q0}}}}function M$(n,a,u,p,y,S,F){var j=u?Z0(u):window;switch(a){case"focusin":(Zu(j)||j.contentEditable==="true")&&(q0=j,Q_=u,sm=null);break;case"focusout":q0=null,Q_=null,sm=null;break;case"mousedown":Z_=!0;break;case"contextmenu":case"mouseup":case"dragend":Z_=!1,aA(n,p,y);break;case"selectionchange":if(O$)break;case"keydown":case"keyup":aA(n,p,y)}}function $1(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var G0={animationend:$1("Animation","AnimationEnd"),animationiteration:$1("Animation","AnimationIteration"),animationstart:$1("Animation","AnimationStart"),transitionend:$1("Transition","TransitionEnd")},X_={},iA={};$e&&(iA=document.createElement("div").style,"AnimationEvent"in window||(delete G0.animationend.animation,delete G0.animationiteration.animation,delete G0.animationstart.animation),"TransitionEvent"in window||delete G0.transitionend.transition);function Y1(n){if(X_[n])return X_[n];if(!G0[n])return n;var a=G0[n];for(var u in a)if(a.hasOwnProperty(u)&&u in iA)return X_[n]=a[u];return n}var oA=Y1("animationend"),lA=Y1("animationiteration"),sA=Y1("animationstart"),uA=Y1("transitionend"),cA=new Map,fA=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Xu(n,a){cA.set(n,a),Pe(a,[n])}function P$(){for(var n=0;n<fA.length;n++){var a=fA[n],u=a.toLowerCase(),p=a[0].toUpperCase()+a.slice(1);Xu(u,"on"+p)}Xu(oA,"onAnimationEnd"),Xu(lA,"onAnimationIteration"),Xu(sA,"onAnimationStart"),Xu("dblclick","onDoubleClick"),Xu("focusin","onFocus"),Xu("focusout","onBlur"),Xu(uA,"onTransitionEnd")}function B$(n,a,u,p,y,S,F){var j=cA.get(a);if(j!==void 0){var K=da,re=a;switch(a){case"keypress":if(Ls(p)===0)return;case"keydown":case"keyup":K=I_;break;case"focusin":re="focus",K=B0;break;case"focusout":re="blur",K=B0;break;case"beforeblur":case"afterblur":K=B0;break;case"click":if(p.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=$l;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Us;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Si;break;case oA:case lA:case sA:K=L0;break;case uA:K=V_;break;case"scroll":K=Zv;break;case"wheel":K=U0;break;case"copy":case"cut":case"paste":K=L_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=nm;break}var ie=(S&gs)!==0;{var he=!ie&&a==="scroll",de=j$(u,j,p.type,ie,he);if(de.length>0){var _e=new K(j,re,null,p,y);n.push({event:_e,listeners:de})}}}}P$(),we(),Y0(),R$(),j1();function L$(n,a,u,p,y,S,F){B$(n,a,u,p,y,S);var j=(S&S_)===0;j&&(qe(n,a,u,p,y),pe(n,a,u,p,y),M$(n,a,u,p,y),$0(n,a,u,p,y))}var um=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],J_=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(um));function dA(n,a,u){var p=n.type||"unknown-event";n.currentTarget=u,zo(p,a,void 0,n),n.currentTarget=null}function z$(n,a,u){var p;if(u)for(var y=a.length-1;y>=0;y--){var S=a[y],F=S.instance,j=S.currentTarget,K=S.listener;if(F!==p&&n.isPropagationStopped())return;dA(n,K,j),p=F}else for(var re=0;re<a.length;re++){var ie=a[re],he=ie.instance,de=ie.currentTarget,_e=ie.listener;if(he!==p&&n.isPropagationStopped())return;dA(n,_e,de),p=he}}function pA(n,a){for(var u=(a&gs)!==0,p=0;p<n.length;p++){var y=n[p],S=y.event,F=y.listeners;z$(S,F,u)}xv()}function U$(n,a,u,p,y){var S=Gd(u),F=[];L$(F,n,p,u,S,a),pA(F,a)}function Jn(n,a){J_.has(n)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var u=!1,p=vq(a),y=V$(n,u);p.has(y)||(hA(a,n,rf,u),p.add(y))}function eS(n,a,u){J_.has(n)&&!a&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var p=0;a&&(p|=gs),hA(u,n,p,a)}var q1="_reactListening"+Math.random().toString(36).slice(2);function cm(n){if(!n[q1]){n[q1]=!0,se.forEach(function(u){u!=="selectionchange"&&(J_.has(u)||eS(u,!1,n),eS(u,!0,n))});var a=n.nodeType===Hi?n:n.ownerDocument;a!==null&&(a[q1]||(a[q1]=!0,eS("selectionchange",!1,a)))}}function hA(n,a,u,p,y){var S=$u(n,a,u),F=void 0;uf&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(F=!0),n=n,p?F!==void 0?qo(n,a,S,F):qu(n,a,S):F!==void 0?N0(n,a,S,F):Qv(n,a,S)}function vA(n,a){return n===a||n.nodeType===dr&&n.parentNode===a}function tS(n,a,u,p,y){var S=p;if(!(a&Bo)&&!(a&rf)){var F=y;if(p!==null){var j=p;e:for(;;){if(j===null)return;var K=j.tag;if(K===C||K===b){var re=j.stateNode.containerInfo;if(vA(re,F))break;if(K===b)for(var ie=j.return;ie!==null;){var he=ie.tag;if(he===C||he===b){var de=ie.stateNode.containerInfo;if(vA(de,F))return}ie=ie.return}for(;re!==null;){var _e=Bf(re);if(_e===null)return;var Se=_e.tag;if(Se===x||Se===_){j=S=_e;continue e}re=re.parentNode}}j=j.return}}}vv(function(){return U$(n,a,u,S)})}function fm(n,a,u){return{instance:n,listener:a,currentTarget:u}}function j$(n,a,u,p,y,S){for(var F=a!==null?a+"Capture":null,j=p?F:a,K=[],re=n,ie=null;re!==null;){var he=re,de=he.stateNode,_e=he.tag;if(_e===x&&de!==null&&(ie=de,j!==null)){var Se=xs(re,j);Se!=null&&K.push(fm(re,Se,ie))}if(y)break;re=re.return}return K}function G1(n,a){for(var u=a+"Capture",p=[],y=n;y!==null;){var S=y,F=S.stateNode,j=S.tag;if(j===x&&F!==null){var K=F,re=xs(y,u);re!=null&&p.unshift(fm(y,re,K));var ie=xs(y,a);ie!=null&&p.push(fm(y,ie,K))}y=y.return}return p}function K0(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==x);return n||null}function I$(n,a){for(var u=n,p=a,y=0,S=u;S;S=K0(S))y++;for(var F=0,j=p;j;j=K0(j))F++;for(;y-F>0;)u=K0(u),y--;for(;F-y>0;)p=K0(p),F--;for(var K=y;K--;){if(u===p||p!==null&&u===p.alternate)return u;u=K0(u),p=K0(p)}return null}function mA(n,a,u,p,y){for(var S=a._reactName,F=[],j=u;j!==null&&j!==p;){var K=j,re=K.alternate,ie=K.stateNode,he=K.tag;if(re!==null&&re===p)break;if(he===x&&ie!==null){var de=ie;if(y){var _e=xs(j,S);_e!=null&&F.unshift(fm(j,_e,de))}else if(!y){var Se=xs(j,S);Se!=null&&F.push(fm(j,Se,de))}}j=j.return}F.length!==0&&n.push({event:a,listeners:F})}function H$(n,a,u,p,y){var S=p&&y?I$(p,y):null;p!==null&&mA(n,a,p,S,!1),y!==null&&u!==null&&mA(n,u,y,S,!0)}function V$(n,a){return n+"__"+(a?"capture":"bubble")}var Ei=!1,dm="dangerouslySetInnerHTML",K1="suppressContentEditableWarning",Ju="suppressHydrationWarning",gA="autoFocus",Mf="children",Pf="style",W1="__html",nS,Q1,pm,yA,Z1,xA,bA;nS={dialog:!0,webview:!0},Q1=function(n,a){qd(n,a),cv(n,a),i1(n,a,{registrationNameDependencies:ke,possibleRegistrationNames:De})},xA=$e&&!document.documentMode,pm=function(n,a,u){if(!Ei){var p=X1(u),y=X1(a);y!==p&&(Ei=!0,c("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(y),JSON.stringify(p)))}},yA=function(n){if(!Ei){Ei=!0;var a=[];n.forEach(function(u){a.push(u)}),c("Extra attributes from the server: %s",a)}},Z1=function(n,a){a===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},bA=function(n,a){var u=n.namespaceURI===No?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return u.innerHTML=a,u.innerHTML};var $$=/\r\n?/g,Y$=/\u0000|\uFFFD/g;function X1(n){Jt(n);var a=typeof n=="string"?n:""+n;return a.replace($$,`
84
+ Check the render method of \``+n+"`.":""}var Ny=["value","defaultValue"];function d_(n){{xu("select",n);for(var a=0;a<Ny.length;a++){var u=Ny[a];if(n[u]!=null){var p=kr(n[u]);n.multiple&&!p?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Fy()):!n.multiple&&p&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Fy())}}}}function Dl(n,a,u,p){var y=n.options;if(a){for(var S=u,F={},j=0;j<S.length;j++)F["$"+S[j]]=!0;for(var K=0;K<y.length;K++){var re=F.hasOwnProperty("$"+y[K].value);y[K].selected!==re&&(y[K].selected=re),re&&p&&(y[K].defaultSelected=!0)}}else{for(var ie=ia(Sl(u)),he=null,de=0;de<y.length;de++){if(y[de].value===ie){y[de].selected=!0,p&&(y[de].defaultSelected=!0);return}he===null&&!y[de].disabled&&(he=y[de])}he!==null&&(he.selected=!0)}}function Jh(n,a){return jt({},a,{value:void 0})}function My(n,a){var u=n;d_(a),u._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!Ud&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ud=!0)}function p_(n,a){var u=n;u.multiple=!!a.multiple;var p=a.value;p!=null?Dl(u,!!a.multiple,p,!1):a.defaultValue!=null&&Dl(u,!!a.multiple,a.defaultValue,!0)}function h_(n,a){var u=n,p=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!a.multiple;var y=a.value;y!=null?Dl(u,!!a.multiple,y,!1):p!==!!a.multiple&&(a.defaultValue!=null?Dl(u,!!a.multiple,a.defaultValue,!0):Dl(u,!!a.multiple,a.multiple?[]:"",!1))}function v_(n,a){var u=n,p=a.value;p!=null&&Dl(u,!!a.multiple,p,!1)}var ev=!1;function tv(n,a){var u=n;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var p=jt({},a,{value:void 0,defaultValue:void 0,children:ia(u._wrapperState.initialValue)});return p}function Py(n,a){var u=n;xu("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!ev&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",di()||"A component"),ev=!0);var p=a.value;if(p==null){var y=a.children,S=a.defaultValue;if(y!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(kr(y)){if(y.length>1)throw new Error("<textarea> can only have at most one child.");y=y[0]}S=y}}S==null&&(S=""),p=S}u._wrapperState={initialValue:Sl(p)}}function By(n,a){var u=n,p=Sl(a.value),y=Sl(a.defaultValue);if(p!=null){var S=ia(p);S!==u.value&&(u.value=S),a.defaultValue==null&&u.defaultValue!==S&&(u.defaultValue=S)}y!=null&&(u.defaultValue=ia(y))}function Ly(n,a){var u=n,p=u.textContent;p===u._wrapperState.initialValue&&p!==""&&p!==null&&(u.value=p)}function nv(n,a){By(n,a)}var No="http://www.w3.org/1999/xhtml",m_="http://www.w3.org/1998/Math/MathML",rv="http://www.w3.org/2000/svg";function jd(n){switch(n){case"svg":return rv;case"math":return m_;default:return No}}function av(n,a){return n==null||n===No?jd(a):n===rv&&a==="foreignObject"?No:n}var g_=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,p,y){MSApp.execUnsafeLocalFunction(function(){return n(a,u,p,y)})}:n},Id,zy=g_(function(n,a){if(n.namespaceURI===rv&&!("innerHTML"in n)){Id=Id||document.createElement("div"),Id.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var u=Id.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;u.firstChild;)n.appendChild(u.firstChild);return}n.innerHTML=a}),Ta=1,Mo=3,dr=8,Hi=9,vs=11,Hd=function(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===Mo){u.nodeValue=a;return}}n.textContent=a},Uy={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},_u={animationIterationCount:!0,aspectRatio:!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,gridArea:!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};function jy(n,a){return n+a.charAt(0).toUpperCase()+a.substring(1)}var Iy=["Webkit","ms","Moz","O"];Object.keys(_u).forEach(function(n){Iy.forEach(function(a){_u[jy(a,n)]=_u[n]})});function Vd(n,a,u){var p=a==null||typeof a=="boolean"||a==="";return p?"":!u&&typeof a=="number"&&a!==0&&!(_u.hasOwnProperty(n)&&_u[n])?a+"px":(sn(a,n),(""+a).trim())}var Su=/([A-Z])/g,y_=/^ms-/;function x_(n){return n.replace(Su,"-$1").toLowerCase().replace(y_,"-ms-")}var Hy=function(){};{var Vy=/^(?:webkit|moz|o)[A-Z]/,$y=/^-ms-/,ef=/-(.)/g,Eu=/;\s*$/,Du={},ku={},Yy=!1,iv=!1,ov=function(n){return n.replace(ef,function(a,u){return u.toUpperCase()})},lv=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported style property %s. Did you mean %s?",n,ov(n.replace($y,"ms-"))))},qy=function(n){Du.hasOwnProperty(n)&&Du[n]||(Du[n]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1)))},Gy=function(n,a){ku.hasOwnProperty(a)&&ku[a]||(ku[a]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(Eu,"")))},Ky=function(n,a){Yy||(Yy=!0,c("`NaN` is an invalid value for the `%s` css style property.",n))},b_=function(n,a){iv||(iv=!0,c("`Infinity` is an invalid value for the `%s` css style property.",n))};Hy=function(n,a){n.indexOf("-")>-1?lv(n):Vy.test(n)?qy(n):Eu.test(a)&&Gy(n,a),typeof a=="number"&&(isNaN(a)?Ky(n,a):isFinite(a)||b_(n,a))}}var C_=Hy;function w_(n){{var a="",u="";for(var p in n)if(n.hasOwnProperty(p)){var y=n[p];if(y!=null){var S=p.indexOf("--")===0;a+=u+(S?p:x_(p))+":",a+=Vd(p,y,S),u=";"}}return a||null}}function Wy(n,a){var u=n.style;for(var p in a)if(a.hasOwnProperty(p)){var y=p.indexOf("--")===0;y||C_(p,a[p]);var S=Vd(p,a[p],y);p==="float"&&(p="cssFloat"),y?u.setProperty(p,S):u[p]=S}}function __(n){return n==null||typeof n=="boolean"||n===""}function pi(n){var a={};for(var u in n)for(var p=Uy[u]||[u],y=0;y<p.length;y++)a[p[y]]=u;return a}function tf(n,a){{if(!a)return;var u=pi(n),p=pi(a),y={};for(var S in u){var F=u[S],j=p[S];if(j&&F!==j){var K=F+","+j;if(y[K])continue;y[K]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",__(n[F])?"Removing":"Updating",F,j)}}}}var Qy={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Zy=jt({menuitem:!0},Qy),Xy="__html";function $d(n,a){if(a){if(Zy[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(Xy in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Po(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yd={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Jy={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Vi={},sv=new RegExp("^(aria)-["+it+"]*$"),nf=new RegExp("^(aria)[A-Z]["+it+"]*$");function uv(n,a){{if(Me.call(Vi,a)&&Vi[a])return!0;if(nf.test(a)){var u="aria-"+a.slice(4).toLowerCase(),p=Jy.hasOwnProperty(u)?u:null;if(p==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Vi[a]=!0,!0;if(a!==p)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,p),Vi[a]=!0,!0}if(sv.test(a)){var y=a.toLowerCase(),S=Jy.hasOwnProperty(y)?y:null;if(S==null)return Vi[a]=!0,!1;if(a!==S)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,S),Vi[a]=!0,!0}}return!0}function e1(n,a){{var u=[];for(var p in a){var y=uv(n,p);y||u.push(p)}var S=u.map(function(F){return"`"+F+"`"}).join(", ");u.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n):u.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",S,n)}}function qd(n,a){Po(n,a)||e1(n,a)}var ms=!1;function cv(n,a){{if(n!=="input"&&n!=="textarea"&&n!=="select")return;a!=null&&a.value===null&&!ms&&(ms=!0,n==="select"&&a.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",n):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",n))}}var fv=function(){};{var Tr={},dv=/^on./,t1=/^on[^A-Z]/,n1=new RegExp("^(aria)-["+it+"]*$"),r1=new RegExp("^(aria)[A-Z]["+it+"]*$");fv=function(n,a,u,p){if(Me.call(Tr,a)&&Tr[a])return!0;var y=a.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Tr[a]=!0,!0;if(p!=null){var S=p.registrationNameDependencies,F=p.possibleRegistrationNames;if(S.hasOwnProperty(a))return!0;var j=F.hasOwnProperty(y)?F[y]:null;if(j!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",a,j),Tr[a]=!0,!0;if(dv.test(a))return c("Unknown event handler property `%s`. It will be ignored.",a),Tr[a]=!0,!0}else if(dv.test(a))return t1.test(a)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Tr[a]=!0,!0;if(n1.test(a)||r1.test(a))return!0;if(y==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Tr[a]=!0,!0;if(y==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Tr[a]=!0,!0;if(y==="is"&&u!==null&&u!==void 0&&typeof u!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),Tr[a]=!0,!0;if(typeof u=="number"&&isNaN(u))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Tr[a]=!0,!0;var K=ra(a),re=K!==null&&K.type===Fn;if(Yd.hasOwnProperty(y)){var ie=Yd[y];if(ie!==a)return c("Invalid DOM property `%s`. Did you mean `%s`?",a,ie),Tr[a]=!0,!0}else if(!re&&a!==y)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,y),Tr[a]=!0,!0;return typeof u=="boolean"&&Ur(a,u,K,!1)?(u?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',u,a,a,u,a):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',u,a,a,u,a,a,a),Tr[a]=!0,!0):re?!0:Ur(a,u,K,!1)?(Tr[a]=!0,!1):((u==="false"||u==="true")&&K!==null&&K.type===Vt&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,u),Tr[a]=!0),!0)}}var a1=function(n,a,u){{var p=[];for(var y in a){var S=fv(n,y,a[y],u);S||p.push(y)}var F=p.map(function(j){return"`"+j+"`"}).join(", ");p.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n):p.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,n)}};function i1(n,a,u){Po(n,a)||a1(n,a,u)}var Bo=1,rf=1<<1,gs=1<<2,S_=Bo|rf|gs,af=null;function of(n){af!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),af=n}function E_(){af===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),af=null}function o1(n){return n===af}function Gd(n){var a=n.target||n.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Mo?a.parentNode:a}var An=null,kl=null,Lo=null;function Tu(n){var a=ec(n);if(a){if(typeof An!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var u=a.stateNode;if(u){var p=ox(u);An(a.stateNode,a.type,p)}}}function l1(n){An=n}function Kd(n){kl?Lo?Lo.push(n):Lo=[n]:kl=n}function lf(){return kl!==null||Lo!==null}function sf(){if(kl){var n=kl,a=Lo;if(kl=null,Lo=null,Tu(n),a)for(var u=0;u<a.length;u++)Tu(a[u])}}var ys=function(n,a){return n(a)},pv=function(){},hv=!1;function D_(){var n=lf();n&&(pv(),sf())}function vv(n,a,u){if(hv)return n(a,u);hv=!0;try{return ys(n,a,u)}finally{hv=!1,D_()}}function Wd(n,a,u){ys=n,pv=u}function Qd(n){return n==="button"||n==="input"||n==="select"||n==="textarea"}function mv(n,a,u){switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(u.disabled&&Qd(a));default:return!1}}function xs(n,a){var u=n.stateNode;if(u===null)return null;var p=ox(u);if(p===null)return null;var y=p[a];if(mv(a,n.type,p))return null;if(y&&typeof y!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof y+"` type.");return y}var uf=!1;if($e)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){uf=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{uf=!1}function s1(n,a,u,p,y,S,F,j,K){var re=Array.prototype.slice.call(arguments,3);try{a.apply(u,re)}catch(ie){this.onError(ie)}}var gv=s1;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var yv=document.createElement("react");gv=function(a,u,p,y,S,F,j,K,re){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var ie=document.createEvent("Event"),he=!1,de=!0,_e=window.event,Se=Object.getOwnPropertyDescriptor(window,"event");function Te(){yv.removeEventListener(Ae,vt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_e)}var tt=Array.prototype.slice.call(arguments,3);function vt(){he=!0,Te(),u.apply(p,tt),de=!1}var dt,Gt=!1,Ht=!1;function be(Ce){if(dt=Ce.error,Gt=!0,dt===null&&Ce.colno===0&&Ce.lineno===0&&(Ht=!0),Ce.defaultPrevented&&dt!=null&&typeof dt=="object")try{dt._suppressLogging=!0}catch{}}var Ae="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",be),yv.addEventListener(Ae,vt,!1),ie.initEvent(Ae,!1,!1),yv.dispatchEvent(ie),Se&&Object.defineProperty(window,"event",Se),he&&de&&(Gt?Ht&&(dt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):dt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(dt)),window.removeEventListener("error",be),!he)return Te(),s1.apply(this,arguments)}}var k_=gv,Tl=!1,$i=null,cf=!1,Al=null,io={onError:function(n){Tl=!0,$i=n}};function Cs(n,a,u,p,y,S,F,j,K){Tl=!1,$i=null,k_.apply(io,arguments)}function zo(n,a,u,p,y,S,F,j,K){if(Cs.apply(this,arguments),Tl){var re=bv();cf||(cf=!0,Al=re)}}function xv(){if(cf){var n=Al;throw cf=!1,Al=null,n}}function T_(){return Tl}function bv(){if(Tl){var n=$i;return Tl=!1,$i=null,n}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function hi(n){return n._reactInternals}function ff(n){return n._reactInternals!==void 0}function Au(n,a){n._reactInternals=a}var ht=0,Ol=1,Ln=2,At=4,un=16,fn=32,oo=64,_t=128,tr=256,Aa=512,vi=1024,qn=2048,mi=4096,Rl=8192,df=16384,Zd=qn|At|oo|Aa|vi|df,u1=32767,Ga=32768,Ar=65536,pf=131072,Cv=1048576,wv=2097152,Oa=4194304,Fl=8388608,Ra=16777216,ws=33554432,Ou=At|vi|0,Fa=Ln|At|un|fn|Aa|mi|Rl,oa=At|oo|Aa|Rl,gi=qn|un,Ir=Oa|Fl|wv,Uo=t.ReactCurrentOwner;function Ka(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{var p=a;do a=p,(a.flags&(Ln|mi))!==ht&&(u=a.return),p=a.return;while(p)}return a.tag===C?u:null}function _v(n){if(n.tag===N){var a=n.memoizedState;if(a===null){var u=n.alternate;u!==null&&(a=u.memoizedState)}if(a!==null)return a.dehydrated}return null}function Xd(n){return n.tag===C?n.stateNode.containerInfo:null}function Sv(n){return Ka(n)===n}function Wa(n){{var a=Uo.current;if(a!==null&&a.tag===d){var u=a,p=u.stateNode;p._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tt(u)||"A component"),p._warnedAboutRefsInRender=!0}}var y=hi(n);return y?Ka(y)===y:!1}function Na(n){if(Ka(n)!==n)throw new Error("Unable to find node on an unmounted component.")}function zn(n){var a=n.alternate;if(!a){var u=Ka(n);if(u===null)throw new Error("Unable to find node on an unmounted component.");return u!==n?null:n}for(var p=n,y=a;;){var S=p.return;if(S===null)break;var F=S.alternate;if(F===null){var j=S.return;if(j!==null){p=y=j;continue}break}if(S.child===F.child){for(var K=S.child;K;){if(K===p)return Na(S),n;if(K===y)return Na(S),a;K=K.sibling}throw new Error("Unable to find node on an unmounted component.")}if(p.return!==y.return)p=S,y=F;else{for(var re=!1,ie=S.child;ie;){if(ie===p){re=!0,p=S,y=F;break}if(ie===y){re=!0,y=S,p=F;break}ie=ie.sibling}if(!re){for(ie=F.child;ie;){if(ie===p){re=!0,p=F,y=S;break}if(ie===y){re=!0,y=F,p=S;break}ie=ie.sibling}if(!re)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==y)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==C)throw new Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?n:a}function yi(n){var a=zn(n);return a!==null?Ev(a):null}function Ev(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){var u=Ev(a);if(u!==null)return u;a=a.sibling}return null}function c1(n){var a=zn(n);return a!==null?Jd(a):null}function Jd(n){if(n.tag===x||n.tag===_)return n;for(var a=n.child;a!==null;){if(a.tag!==b){var u=Jd(a);if(u!==null)return u}a=a.sibling}return null}var e0=r.unstable_scheduleCallback,f1=r.unstable_cancelCallback,t0=r.unstable_shouldYield,d1=r.unstable_requestPaint,Qn=r.unstable_now,Dv=r.unstable_getCurrentPriorityLevel,n0=r.unstable_ImmediatePriority,Qa=r.unstable_UserBlockingPriority,lo=r.unstable_NormalPriority,r0=r.unstable_LowPriority,Nl=r.unstable_IdlePriority,kv=r.unstable_yieldValue,Tv=r.unstable_setDisableYieldValue,Ml=null,Or=null,Ke=null,ir=!1,Hr=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Av(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{fe&&(n=jt({},n,{getLaneLabelMap:Bl,injectProfilingHooks:Io})),Ml=a.inject(n),Or=a}catch(u){c("React instrumentation encountered an error: %s.",u)}return!!a.checkDCE}function p1(n,a){if(Or&&typeof Or.onScheduleFiberRoot=="function")try{Or.onScheduleFiberRoot(Ml,n,a)}catch(u){ir||(ir=!0,c("React instrumentation encountered an error: %s",u))}}function jo(n,a){if(Or&&typeof Or.onCommitFiberRoot=="function")try{var u=(n.current.flags&_t)===_t;if(ve){var p;switch(a){case la:p=n0;break;case Vr:p=Qa;break;case Vo:p=lo;break;case wf:p=Nl;break;default:p=lo;break}Or.onCommitFiberRoot(Ml,n,p,u)}}catch(y){ir||(ir=!0,c("React instrumentation encountered an error: %s",y))}}function Pl(n){if(Or&&typeof Or.onPostCommitFiberRoot=="function")try{Or.onPostCommitFiberRoot(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Ov(n){if(Or&&typeof Or.onCommitFiberUnmount=="function")try{Or.onCommitFiberUnmount(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function xr(n){if(typeof kv=="function"&&(Tv(n),l(n)),Or&&typeof Or.setStrictMode=="function")try{Or.setStrictMode(Ml,n)}catch(a){ir||(ir=!0,c("React instrumentation encountered an error: %s",a))}}function Io(n){Ke=n}function Bl(){{for(var n=new Map,a=1,u=0;u<Un;u++){var p=A_(a);n.set(a,p),a*=2}return n}}function a0(n){Ke!==null&&typeof Ke.markCommitStarted=="function"&&Ke.markCommitStarted(n)}function Rv(){Ke!==null&&typeof Ke.markCommitStopped=="function"&&Ke.markCommitStopped()}function Ll(n){Ke!==null&&typeof Ke.markComponentRenderStarted=="function"&&Ke.markComponentRenderStarted(n)}function _s(){Ke!==null&&typeof Ke.markComponentRenderStopped=="function"&&Ke.markComponentRenderStopped()}function h1(n){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStarted=="function"&&Ke.markComponentPassiveEffectMountStarted(n)}function Fv(){Ke!==null&&typeof Ke.markComponentPassiveEffectMountStopped=="function"&&Ke.markComponentPassiveEffectMountStopped()}function i0(n){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStarted=="function"&&Ke.markComponentPassiveEffectUnmountStarted(n)}function v1(){Ke!==null&&typeof Ke.markComponentPassiveEffectUnmountStopped=="function"&&Ke.markComponentPassiveEffectUnmountStopped()}function m1(n){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStarted=="function"&&Ke.markComponentLayoutEffectMountStarted(n)}function g1(){Ke!==null&&typeof Ke.markComponentLayoutEffectMountStopped=="function"&&Ke.markComponentLayoutEffectMountStopped()}function o0(n){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStarted=="function"&&Ke.markComponentLayoutEffectUnmountStarted(n)}function Ru(){Ke!==null&&typeof Ke.markComponentLayoutEffectUnmountStopped=="function"&&Ke.markComponentLayoutEffectUnmountStopped()}function l0(n,a,u){Ke!==null&&typeof Ke.markComponentErrored=="function"&&Ke.markComponentErrored(n,a,u)}function y1(n,a,u){Ke!==null&&typeof Ke.markComponentSuspended=="function"&&Ke.markComponentSuspended(n,a,u)}function x1(n){Ke!==null&&typeof Ke.markLayoutEffectsStarted=="function"&&Ke.markLayoutEffectsStarted(n)}function Fu(){Ke!==null&&typeof Ke.markLayoutEffectsStopped=="function"&&Ke.markLayoutEffectsStopped()}function b1(n){Ke!==null&&typeof Ke.markPassiveEffectsStarted=="function"&&Ke.markPassiveEffectsStarted(n)}function hf(){Ke!==null&&typeof Ke.markPassiveEffectsStopped=="function"&&Ke.markPassiveEffectsStopped()}function Yi(n){Ke!==null&&typeof Ke.markRenderStarted=="function"&&Ke.markRenderStarted(n)}function vf(){Ke!==null&&typeof Ke.markRenderYielded=="function"&&Ke.markRenderYielded()}function Nu(){Ke!==null&&typeof Ke.markRenderStopped=="function"&&Ke.markRenderStopped()}function Ss(n){Ke!==null&&typeof Ke.markRenderScheduled=="function"&&Ke.markRenderScheduled(n)}function Nv(n,a){Ke!==null&&typeof Ke.markForceUpdateScheduled=="function"&&Ke.markForceUpdateScheduled(n,a)}function zl(n,a){Ke!==null&&typeof Ke.markStateUpdateScheduled=="function"&&Ke.markStateUpdateScheduled(n,a)}var gt=0,Ut=1,xt=2,Zn=8,xi=16,s0=Math.clz32?Math.clz32:Es,u0=Math.log,Mv=Math.LN2;function Es(n){var a=n>>>0;return a===0?32:31-(u0(a)/Mv|0)|0}var Un=31,Oe=0,Yt=0,bt=1,so=2,Za=4,Ds=8,jn=16,ks=32,Ul=4194240,Ts=64,bi=128,Ma=256,As=512,mf=1024,gf=2048,c0=4096,f0=8192,d0=16384,p0=32768,h0=65536,v0=131072,m0=262144,g0=524288,Os=1048576,y0=2097152,Rs=130023424,Ho=4194304,x0=8388608,yf=16777216,b0=33554432,C0=67108864,Pv=Ho,Mu=134217728,w0=268435455,Pu=268435456,jl=536870912,Pa=1073741824;function A_(n){{if(n&bt)return"Sync";if(n&so)return"InputContinuousHydration";if(n&Za)return"InputContinuous";if(n&Ds)return"DefaultHydration";if(n&jn)return"Default";if(n&ks)return"TransitionHydration";if(n&Ul)return"Transition";if(n&Rs)return"Retry";if(n&Mu)return"SelectiveHydration";if(n&Pu)return"IdleHydration";if(n&jl)return"Idle";if(n&Pa)return"Offscreen"}}var On=-1,_0=Ts,S0=Ho;function Bu(n){switch(pr(n)){case bt:return bt;case so:return so;case Za:return Za;case Ds:return Ds;case jn:return jn;case ks:return ks;case Ts:case bi:case Ma:case As:case mf:case gf:case c0:case f0:case d0:case p0:case h0:case v0:case m0:case g0:case Os:case y0:return n&Ul;case Ho:case x0:case yf:case b0:case C0:return n&Rs;case Mu:return Mu;case Pu:return Pu;case jl:return jl;case Pa:return Pa;default:return c("Should have found matching lanes. This is a bug in React."),n}}function xf(n,a){var u=n.pendingLanes;if(u===Oe)return Oe;var p=Oe,y=n.suspendedLanes,S=n.pingedLanes,F=u&w0;if(F!==Oe){var j=F&~y;if(j!==Oe)p=Bu(j);else{var K=F&S;K!==Oe&&(p=Bu(K))}}else{var re=u&~y;re!==Oe?p=Bu(re):S!==Oe&&(p=Bu(S))}if(p===Oe)return Oe;if(a!==Oe&&a!==p&&(a&y)===Oe){var ie=pr(p),he=pr(a);if(ie>=he||ie===jn&&(he&Ul)!==Oe)return a}(p&Za)!==Oe&&(p|=u&jn);var de=n.entangledLanes;if(de!==Oe)for(var _e=n.entanglements,Se=p&de;Se>0;){var Te=Il(Se),tt=1<<Te;p|=_e[Te],Se&=~tt}return p}function C1(n,a){for(var u=n.eventTimes,p=On;a>0;){var y=Il(a),S=1<<y,F=u[y];F>p&&(p=F),a&=~S}return p}function E0(n,a){switch(n){case bt:case so:case Za:return a+250;case Ds:case jn:case ks:case Ts:case bi:case Ma:case As:case mf:case gf:case c0:case f0:case d0:case p0:case h0:case v0:case m0:case g0:case Os:case y0:return a+5e3;case Ho:case x0:case yf:case b0:case C0:return On;case Mu:case Pu:case jl:case Pa:return On;default:return c("Should have found matching lanes. This is a bug in React."),On}}function O_(n,a){for(var u=n.pendingLanes,p=n.suspendedLanes,y=n.pingedLanes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),K=1<<j,re=S[j];re===On?((K&p)===Oe||(K&y)!==Oe)&&(S[j]=E0(K,a)):re<=a&&(n.expiredLanes|=K),F&=~K}}function R_(n){return Bu(n.pendingLanes)}function Bv(n){var a=n.pendingLanes&~Pa;return a!==Oe?a:a&Pa?Pa:Oe}function Lu(n){return(n&bt)!==Oe}function bf(n){return(n&w0)!==Oe}function D0(n){return(n&Rs)===n}function F_(n){var a=bt|Za|jn;return(n&a)===Oe}function w1(n){return(n&Ul)===n}function Cf(n,a){var u=so|Za|Ds|jn;return(a&u)!==Oe}function _1(n,a){return(a&n.expiredLanes)!==Oe}function Lv(n){return(n&Ul)!==Oe}function zv(){var n=_0;return _0<<=1,(_0&Ul)===Oe&&(_0=Ts),n}function N_(){var n=S0;return S0<<=1,(S0&Rs)===Oe&&(S0=Ho),n}function pr(n){return n&-n}function br(n){return pr(n)}function Il(n){return 31-s0(n)}function k0(n){return Il(n)}function Ba(n,a){return(n&a)!==Oe}function Fs(n,a){return(n&a)===a}function Ot(n,a){return n|a}function zu(n,a){return n&~a}function Uv(n,a){return n&a}function S1(n){return n}function E1(n,a){return n!==Yt&&n<a?n:a}function T0(n){for(var a=[],u=0;u<Un;u++)a.push(n);return a}function Ns(n,a,u){n.pendingLanes|=a,a!==jl&&(n.suspendedLanes=Oe,n.pingedLanes=Oe);var p=n.eventTimes,y=k0(a);p[y]=u}function jv(n,a){n.suspendedLanes|=a,n.pingedLanes&=~a;for(var u=n.expirationTimes,p=a;p>0;){var y=Il(p),S=1<<y;u[y]=On,p&=~S}}function Iv(n,a,u){n.pingedLanes|=n.suspendedLanes&a}function Hv(n,a){var u=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=Oe,n.pingedLanes=Oe,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a;for(var p=n.entanglements,y=n.eventTimes,S=n.expirationTimes,F=u;F>0;){var j=Il(F),K=1<<j;p[j]=Oe,y[j]=On,S[j]=On,F&=~K}}function Uu(n,a){for(var u=n.entangledLanes|=a,p=n.entanglements,y=u;y;){var S=Il(y),F=1<<S;F&a|p[S]&a&&(p[S]|=a),y&=~F}}function M_(n,a){var u=pr(a),p;switch(u){case Za:p=so;break;case jn:p=Ds;break;case Ts:case bi:case Ma:case As:case mf:case gf:case c0:case f0:case d0:case p0:case h0:case v0:case m0:case g0:case Os:case y0:case Ho:case x0:case yf:case b0:case C0:p=ks;break;case jl:p=Pu;break;default:p=Yt;break}return(p&(n.suspendedLanes|a))!==Yt?Yt:p}function Vv(n,a,u){if(Hr)for(var p=n.pendingUpdatersLaneMap;u>0;){var y=k0(u),S=1<<y,F=p[y];F.add(a),u&=~S}}function A0(n,a){if(Hr)for(var u=n.pendingUpdatersLaneMap,p=n.memoizedUpdaters;a>0;){var y=k0(a),S=1<<y,F=u[y];F.size>0&&(F.forEach(function(j){var K=j.alternate;(K===null||!p.has(K))&&p.add(j)}),F.clear()),a&=~S}}function $v(n,a){return null}var la=bt,Vr=Za,Vo=jn,wf=jl,Ms=Yt;function Ci(){return Ms}function Cr(n){Ms=n}function _f(n,a){var u=Ms;try{return Ms=n,a()}finally{Ms=u}}function sa(n,a){return n!==0&&n<a?n:a}function P_(n,a){return n===0||n>a?n:a}function Yv(n,a){return n!==0&&n<a}function Sf(n){var a=pr(n);return Yv(la,a)?Yv(Vr,a)?bf(a)?Vo:wf:Vr:la}function wr(n){var a=n.current.memoizedState;return a.isDehydrated}var D1;function at(n){D1=n}function ju(n){D1(n)}var Ef;function k1(n){Ef=n}var T1;function Df(n){T1=n}var kf;function qv(n){kf=n}var Gv;function A1(n){Gv=n}var O0=!1,Iu=[],uo=null,Gn=null,Rr=null,wi=new Map,Hu=new Map,$o=[],qi=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function O1(n){return qi.indexOf(n)>-1}function co(n,a,u,p,y){return{blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:y,targetContainers:[p]}}function R1(n,a){switch(n){case"focusin":case"focusout":uo=null;break;case"dragenter":case"dragleave":Gn=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":{var u=a.pointerId;wi.delete(u);break}case"gotpointercapture":case"lostpointercapture":{var p=a.pointerId;Hu.delete(p);break}}}function Vu(n,a,u,p,y,S){if(n===null||n.nativeEvent!==S){var F=co(a,u,p,y,S);if(a!==null){var j=ec(a);j!==null&&Ef(j)}return F}n.eventSystemFlags|=p;var K=n.targetContainers;return y!==null&&K.indexOf(y)===-1&&K.push(y),n}function F1(n,a,u,p,y){switch(a){case"focusin":{var S=y;return uo=Vu(uo,n,a,u,p,S),!0}case"dragenter":{var F=y;return Gn=Vu(Gn,n,a,u,p,F),!0}case"mouseover":{var j=y;return Rr=Vu(Rr,n,a,u,p,j),!0}case"pointerover":{var K=y,re=K.pointerId;return wi.set(re,Vu(wi.get(re)||null,n,a,u,p,K)),!0}case"gotpointercapture":{var ie=y,he=ie.pointerId;return Hu.set(he,Vu(Hu.get(he)||null,n,a,u,p,ie)),!0}}return!1}function Kv(n){var a=Bf(n.target);if(a!==null){var u=Ka(a);if(u!==null){var p=u.tag;if(p===N){var y=_v(u);if(y!==null){n.blockedOn=y,Gv(n.priority,function(){T1(u)});return}}else if(p===C){var S=u.stateNode;if(wr(S)){n.blockedOn=Xd(u);return}}}}n.blockedOn=null}function N1(n){for(var a=kf(),u={blockedOn:null,target:n,priority:a},p=0;p<$o.length&&Yv(a,$o[p].priority);p++);$o.splice(p,0,u),p===0&&Kv(u)}function R0(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;a.length>0;){var u=a[0],p=Ps(n.domEventName,n.eventSystemFlags,u,n.nativeEvent);if(p===null){var y=n.nativeEvent,S=new y.constructor(y.type,y);of(S),y.target.dispatchEvent(S),E_()}else{var F=ec(p);return F!==null&&Ef(F),n.blockedOn=p,!1}a.shift()}return!0}function Tf(n,a,u){R0(n)&&u.delete(a)}function Wv(){O0=!1,uo!==null&&R0(uo)&&(uo=null),Gn!==null&&R0(Gn)&&(Gn=null),Rr!==null&&R0(Rr)&&(Rr=null),wi.forEach(Tf),Hu.forEach(Tf)}function ua(n,a){n.blockedOn===a&&(n.blockedOn=null,O0||(O0=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Wv)))}function It(n){if(Iu.length>0){ua(Iu[0],n);for(var a=1;a<Iu.length;a++){var u=Iu[a];u.blockedOn===n&&(u.blockedOn=null)}}uo!==null&&ua(uo,n),Gn!==null&&ua(Gn,n),Rr!==null&&ua(Rr,n);var p=function(j){return ua(j,n)};wi.forEach(p),Hu.forEach(p);for(var y=0;y<$o.length;y++){var S=$o[y];S.blockedOn===n&&(S.blockedOn=null)}for(;$o.length>0;){var F=$o[0];if(F.blockedOn!==null)break;Kv(F),F.blockedOn===null&&$o.shift()}}var Xn=t.ReactCurrentBatchConfig,nr=!0;function Fr(n){nr=!!n}function Xa(){return nr}function $u(n,a,u){var p=va(a),y;switch(p){case la:y=_r;break;case Vr:y=Af;break;case Vo:default:y=Yo;break}return y.bind(null,a,u,n)}function _r(n,a,u,p){var y=Ci(),S=Xn.transition;Xn.transition=null;try{Cr(la),Yo(n,a,u,p)}finally{Cr(y),Xn.transition=S}}function Af(n,a,u,p){var y=Ci(),S=Xn.transition;Xn.transition=null;try{Cr(Vr),Yo(n,a,u,p)}finally{Cr(y),Xn.transition=S}}function Yo(n,a,u,p){nr&&F0(n,a,u,p)}function F0(n,a,u,p){var y=Ps(n,a,u,p);if(y===null){tS(n,a,p,Yu,u),R1(n,p);return}if(F1(y,n,a,u,p)){p.stopPropagation();return}if(R1(n,p),a&gs&&O1(n)){for(;y!==null;){var S=ec(y);S!==null&&ju(S);var F=Ps(n,a,u,p);if(F===null&&tS(n,a,p,Yu,u),F===y)break;y=F}y!==null&&p.stopPropagation();return}tS(n,a,p,null,u)}var Yu=null;function Ps(n,a,u,p){Yu=null;var y=Gd(p),S=Bf(y);if(S!==null){var F=Ka(S);if(F===null)S=null;else{var j=F.tag;if(j===N){var K=_v(F);if(K!==null)return K;S=null}else if(j===C){var re=F.stateNode;if(wr(re))return Xd(F);S=null}else F!==S&&(S=null)}}return Yu=S,null}function va(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return la;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Vr;case"message":{var a=Dv();switch(a){case n0:return la;case Qa:return Vr;case lo:case r0:return Vo;case Nl:return wf;default:return Vo}}default:return Vo}}function Qv(n,a,u){return n.addEventListener(a,u,!1),u}function qu(n,a,u){return n.addEventListener(a,u,!0),u}function qo(n,a,u,p){return n.addEventListener(a,u,{capture:!0,passive:p}),u}function N0(n,a,u,p){return n.addEventListener(a,u,{passive:p}),u}var Bs=null,fo=null,Hl=null;function Vl(n){return Bs=n,fo=P0(),!0}function M0(){Bs=null,fo=null,Hl=null}function Gu(){if(Hl)return Hl;var n,a=fo,u=a.length,p,y=P0(),S=y.length;for(n=0;n<u&&a[n]===y[n];n++);var F=u-n;for(p=1;p<=F&&a[u-p]===y[S-p];p++);var j=p>1?1-p:void 0;return Hl=y.slice(n,j),Hl}function P0(){return"value"in Bs?Bs.value:Bs.textContent}function Ls(n){var a,u=n.keyCode;return"charCode"in n?(a=n.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),a>=32||a===13?a:0}function zs(){return!0}function ca(){return!1}function hr(n){function a(u,p,y,S,F){this._reactName=u,this._targetInst=y,this.type=p,this.nativeEvent=S,this.target=F,this.currentTarget=null;for(var j in n)if(n.hasOwnProperty(j)){var K=n[j];K?this[j]=K(S):this[j]=S[j]}var re=S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1;return re?this.isDefaultPrevented=zs:this.isDefaultPrevented=ca,this.isPropagationStopped=ca,this}return jt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=zs)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=zs)},persist:function(){},isPersistent:zs}),a}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},da=hr(fa),Ku=jt({},fa,{view:0,detail:0}),Zv=hr(Ku),Of,Xv,_i;function M1(n){n!==_i&&(_i&&n.type==="mousemove"?(Of=n.screenX-_i.screenX,Xv=n.screenY-_i.screenY):(Of=0,Xv=0),_i=n)}var Wu=jt({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:z0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(M1(n),Of)},movementY:function(n){return"movementY"in n?n.movementY:Xv}}),$l=hr(Wu),Jv=jt({},Wu,{dataTransfer:0}),Us=hr(Jv),P1=jt({},Ku,{relatedTarget:0}),B0=hr(P1),em=jt({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),L0=hr(em),B_=jt({},fa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),L_=hr(B_),B1=jt({},fa,{data:0}),tm=hr(B1),js=tm,z_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function L1(n){if(n.key){var a=z_[n.key]||n.key;if(a!=="Unidentified")return a}if(n.type==="keypress"){var u=Ls(n);return u===13?"Enter":String.fromCharCode(u)}return n.type==="keydown"||n.type==="keyup"?Qu[n.keyCode]||"Unidentified":""}var rr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function U_(n){var a=this,u=a.nativeEvent;if(u.getModifierState)return u.getModifierState(n);var p=rr[n];return p?!!u[p]:!1}function z0(n){return U_}var j_=jt({},Ku,{key:L1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:z0,charCode:function(n){return n.type==="keypress"?Ls(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ls(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),I_=hr(j_),z1=jt({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nm=hr(z1),H_=jt({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:z0}),Si=hr(H_),rm=jt({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),V_=hr(rm),Yl=jt({},Wu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),U0=hr(Yl),Is=[9,13,27,32],Rf=229,Ff=$e&&"CompositionEvent"in window,Hs=null;$e&&"documentMode"in document&&(Hs=document.documentMode);var $_=$e&&"TextEvent"in window&&!Hs,j0=$e&&(!Ff||Hs&&Hs>8&&Hs<=11),U1=32,am=String.fromCharCode(U1);function j1(){Pe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Pe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Nf=!1;function I0(n){return(n.ctrlKey||n.altKey||n.metaKey)&&!(n.ctrlKey&&n.altKey)}function I1(n){switch(n){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function im(n,a){return n==="keydown"&&a.keyCode===Rf}function H1(n,a){switch(n){case"keyup":return Is.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==Rf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function om(n){var a=n.detail;return typeof a=="object"&&"data"in a?a.data:null}function H0(n){return n.locale==="ko"}var Go=!1;function lm(n,a,u,p,y){var S,F;if(Ff?S=I1(a):Go?H1(a,p)&&(S="onCompositionEnd"):im(a,p)&&(S="onCompositionStart"),!S)return null;j0&&!H0(p)&&(!Go&&S==="onCompositionStart"?Go=Vl(y):S==="onCompositionEnd"&&Go&&(F=Gu()));var j=G1(u,S);if(j.length>0){var K=new tm(S,a,null,p,y);if(n.push({event:K,listeners:j}),F)K.data=F;else{var re=om(p);re!==null&&(K.data=re)}}}function V0(n,a){switch(n){case"compositionend":return om(a);case"keypress":var u=a.which;return u!==U1?null:(Nf=!0,am);case"textInput":var p=a.data;return p===am&&Nf?null:p;default:return null}}function V1(n,a){if(Go){if(n==="compositionend"||!Ff&&H1(n,a)){var u=Gu();return M0(),Go=!1,u}return null}switch(n){case"paste":return null;case"keypress":if(!I0(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return j0&&!H0(a)?null:a.data;default:return null}}function Y_(n,a,u,p,y){var S;if($_?S=V0(a,p):S=V1(a,p),!S)return null;var F=G1(u,"onBeforeInput");if(F.length>0){var j=new js("onBeforeInput","beforeinput",null,p,y);n.push({event:j,listeners:F}),j.data=S}}function $0(n,a,u,p,y,S,F){lm(n,a,u,p,y),Y_(n,a,u,p,y)}var q_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zu(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!q_[n.type]:a==="textarea"}function G_(n){if(!$e)return!1;var a="on"+n,u=a in document;if(!u){var p=document.createElement("div");p.setAttribute(a,"return;"),u=typeof p[a]=="function"}return u}function Y0(){Pe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function o(n,a,u,p){Kd(p);var y=G1(a,"onChange");if(y.length>0){var S=new da("onChange","change",null,u,p);n.push({event:S,listeners:y})}}var s=null,v=null;function w(n){var a=n.nodeName&&n.nodeName.toLowerCase();return a==="select"||a==="input"&&n.type==="file"}function O(n){var a=[];o(a,v,n,Gd(n)),vv(L,a)}function L(n){pA(n,0)}function J(n){var a=Z0(n);if(Ay(a))return n}function le(n,a){if(n==="change")return a}var ce=!1;$e&&(ce=G_("input")&&(!document.documentMode||document.documentMode>9));function Ee(n,a){s=n,v=a,s.attachEvent("onpropertychange",He)}function je(){s&&(s.detachEvent("onpropertychange",He),s=null,v=null)}function He(n){n.propertyName==="value"&&J(v)&&O(n)}function Ue(n,a,u){n==="focusin"?(je(),Ee(a,u)):n==="focusout"&&je()}function Xe(n,a){if(n==="selectionchange"||n==="keyup"||n==="keydown")return J(v)}function ot(n){var a=n.nodeName;return a&&a.toLowerCase()==="input"&&(n.type==="checkbox"||n.type==="radio")}function ct(n,a){if(n==="click")return J(a)}function or(n,a){if(n==="input"||n==="change")return J(a)}function ye(n){var a=n._wrapperState;!a||!a.controlled||n.type!=="number"||El(n,"number",n.value)}function pe(n,a,u,p,y,S,F){var j=u?Z0(u):window,K,re;if(w(j)?K=le:Zu(j)?ce?K=or:(K=Xe,re=Ue):ot(j)&&(K=ct),K){var ie=K(a,u);if(ie){o(n,ie,p,y);return}}re&&re(a,j,u),a==="focusout"&&ye(j)}function we(){ge("onMouseEnter",["mouseout","mouseover"]),ge("onMouseLeave",["mouseout","mouseover"]),ge("onPointerEnter",["pointerout","pointerover"]),ge("onPointerLeave",["pointerout","pointerover"])}function qe(n,a,u,p,y,S,F){var j=a==="mouseover"||a==="pointerover",K=a==="mouseout"||a==="pointerout";if(j&&!o1(p)){var re=p.relatedTarget||p.fromElement;if(re&&(Bf(re)||Cm(re)))return}if(!(!K&&!j)){var ie;if(y.window===y)ie=y;else{var he=y.ownerDocument;he?ie=he.defaultView||he.parentWindow:ie=window}var de,_e;if(K){var Se=p.relatedTarget||p.toElement;if(de=u,_e=Se?Bf(Se):null,_e!==null){var Te=Ka(_e);(_e!==Te||_e.tag!==x&&_e.tag!==_)&&(_e=null)}}else de=null,_e=u;if(de!==_e){var tt=$l,vt="onMouseLeave",dt="onMouseEnter",Gt="mouse";(a==="pointerout"||a==="pointerover")&&(tt=nm,vt="onPointerLeave",dt="onPointerEnter",Gt="pointer");var Ht=de==null?ie:Z0(de),be=_e==null?ie:Z0(_e),Ae=new tt(vt,Gt+"leave",de,p,y);Ae.target=Ht,Ae.relatedTarget=be;var Ce=null,Ve=Bf(y);if(Ve===u){var nt=new tt(dt,Gt+"enter",_e,p,y);nt.target=be,nt.relatedTarget=Ht,Ce=nt}H$(n,Ae,Ce,de,_e)}}}function ft(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var lt=typeof Object.is=="function"?Object.is:ft;function pt(n,a){if(lt(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),p=Object.keys(a);if(u.length!==p.length)return!1;for(var y=0;y<u.length;y++){var S=u[y];if(!Me.call(a,S)||!lt(n[S],a[S]))return!1}return!0}function St(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Nr(n){for(;n;){if(n.nextSibling)return n.nextSibling;n=n.parentNode}}function tn(n,a){for(var u=St(n),p=0,y=0;u;){if(u.nodeType===Mo){if(y=p+u.textContent.length,p<=a&&y>=a)return{node:u,offset:a-p};p=y}u=St(Nr(u))}}function ql(n){var a=n.ownerDocument,u=a&&a.defaultView||window,p=u.getSelection&&u.getSelection();if(!p||p.rangeCount===0)return null;var y=p.anchorNode,S=p.anchorOffset,F=p.focusNode,j=p.focusOffset;try{y.nodeType,F.nodeType}catch{return null}return K_(n,y,S,F,j)}function K_(n,a,u,p,y){var S=0,F=-1,j=-1,K=0,re=0,ie=n,he=null;e:for(;;){for(var de=null;ie===a&&(u===0||ie.nodeType===Mo)&&(F=S+u),ie===p&&(y===0||ie.nodeType===Mo)&&(j=S+y),ie.nodeType===Mo&&(S+=ie.nodeValue.length),(de=ie.firstChild)!==null;)he=ie,ie=de;for(;;){if(ie===n)break e;if(he===a&&++K===u&&(F=S),he===p&&++re===y&&(j=S),(de=ie.nextSibling)!==null)break;ie=he,he=ie.parentNode}ie=de}return F===-1||j===-1?null:{start:F,end:j}}function _$(n,a){var u=n.ownerDocument||document,p=u&&u.defaultView||window;if(p.getSelection){var y=p.getSelection(),S=n.textContent.length,F=Math.min(a.start,S),j=a.end===void 0?F:Math.min(a.end,S);if(!y.extend&&F>j){var K=j;j=F,F=K}var re=tn(n,F),ie=tn(n,j);if(re&&ie){if(y.rangeCount===1&&y.anchorNode===re.node&&y.anchorOffset===re.offset&&y.focusNode===ie.node&&y.focusOffset===ie.offset)return;var he=u.createRange();he.setStart(re.node,re.offset),y.removeAllRanges(),F>j?(y.addRange(he),y.extend(ie.node,ie.offset)):(he.setEnd(ie.node,ie.offset),y.addRange(he))}}}function tA(n){return n&&n.nodeType===Mo}function nA(n,a){return!n||!a?!1:n===a?!0:tA(n)?!1:tA(a)?nA(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1}function S$(n){return n&&n.ownerDocument&&nA(n.ownerDocument.documentElement,n)}function E$(n){try{return typeof n.contentWindow.location.href=="string"}catch{return!1}}function rA(){for(var n=window,a=Md();a instanceof n.HTMLIFrameElement;){if(E$(a))n=a.contentWindow;else return a;a=Md(n.document)}return a}function W_(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function D$(){var n=rA();return{focusedElem:n,selectionRange:W_(n)?T$(n):null}}function k$(n){var a=rA(),u=n.focusedElem,p=n.selectionRange;if(a!==u&&S$(u)){p!==null&&W_(u)&&A$(u,p);for(var y=[],S=u;S=S.parentNode;)S.nodeType===Ta&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});typeof u.focus=="function"&&u.focus();for(var F=0;F<y.length;F++){var j=y[F];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}}function T$(n){var a;return"selectionStart"in n?a={start:n.selectionStart,end:n.selectionEnd}:a=ql(n),a||{start:0,end:0}}function A$(n,a){var u=a.start,p=a.end;p===void 0&&(p=u),"selectionStart"in n?(n.selectionStart=u,n.selectionEnd=Math.min(p,n.value.length)):_$(n,a)}var O$=$e&&"documentMode"in document&&document.documentMode<=11;function R$(){Pe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var q0=null,Q_=null,sm=null,Z_=!1;function F$(n){if("selectionStart"in n&&W_(n))return{start:n.selectionStart,end:n.selectionEnd};var a=n.ownerDocument&&n.ownerDocument.defaultView||window,u=a.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function N$(n){return n.window===n?n.document:n.nodeType===Hi?n:n.ownerDocument}function aA(n,a,u){var p=N$(u);if(!(Z_||q0==null||q0!==Md(p))){var y=F$(q0);if(!sm||!pt(sm,y)){sm=y;var S=G1(Q_,"onSelect");if(S.length>0){var F=new da("onSelect","select",null,a,u);n.push({event:F,listeners:S}),F.target=q0}}}}function M$(n,a,u,p,y,S,F){var j=u?Z0(u):window;switch(a){case"focusin":(Zu(j)||j.contentEditable==="true")&&(q0=j,Q_=u,sm=null);break;case"focusout":q0=null,Q_=null,sm=null;break;case"mousedown":Z_=!0;break;case"contextmenu":case"mouseup":case"dragend":Z_=!1,aA(n,p,y);break;case"selectionchange":if(O$)break;case"keydown":case"keyup":aA(n,p,y)}}function $1(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var G0={animationend:$1("Animation","AnimationEnd"),animationiteration:$1("Animation","AnimationIteration"),animationstart:$1("Animation","AnimationStart"),transitionend:$1("Transition","TransitionEnd")},X_={},iA={};$e&&(iA=document.createElement("div").style,"AnimationEvent"in window||(delete G0.animationend.animation,delete G0.animationiteration.animation,delete G0.animationstart.animation),"TransitionEvent"in window||delete G0.transitionend.transition);function Y1(n){if(X_[n])return X_[n];if(!G0[n])return n;var a=G0[n];for(var u in a)if(a.hasOwnProperty(u)&&u in iA)return X_[n]=a[u];return n}var oA=Y1("animationend"),lA=Y1("animationiteration"),sA=Y1("animationstart"),uA=Y1("transitionend"),cA=new Map,fA=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Xu(n,a){cA.set(n,a),Pe(a,[n])}function P$(){for(var n=0;n<fA.length;n++){var a=fA[n],u=a.toLowerCase(),p=a[0].toUpperCase()+a.slice(1);Xu(u,"on"+p)}Xu(oA,"onAnimationEnd"),Xu(lA,"onAnimationIteration"),Xu(sA,"onAnimationStart"),Xu("dblclick","onDoubleClick"),Xu("focusin","onFocus"),Xu("focusout","onBlur"),Xu(uA,"onTransitionEnd")}function B$(n,a,u,p,y,S,F){var j=cA.get(a);if(j!==void 0){var K=da,re=a;switch(a){case"keypress":if(Ls(p)===0)return;case"keydown":case"keyup":K=I_;break;case"focusin":re="focus",K=B0;break;case"focusout":re="blur",K=B0;break;case"beforeblur":case"afterblur":K=B0;break;case"click":if(p.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=$l;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Us;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Si;break;case oA:case lA:case sA:K=L0;break;case uA:K=V_;break;case"scroll":K=Zv;break;case"wheel":K=U0;break;case"copy":case"cut":case"paste":K=L_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=nm;break}var ie=(S&gs)!==0;{var he=!ie&&a==="scroll",de=j$(u,j,p.type,ie,he);if(de.length>0){var _e=new K(j,re,null,p,y);n.push({event:_e,listeners:de})}}}}P$(),we(),Y0(),R$(),j1();function L$(n,a,u,p,y,S,F){B$(n,a,u,p,y,S);var j=(S&S_)===0;j&&(qe(n,a,u,p,y),pe(n,a,u,p,y),M$(n,a,u,p,y),$0(n,a,u,p,y))}var um=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],J_=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(um));function dA(n,a,u){var p=n.type||"unknown-event";n.currentTarget=u,zo(p,a,void 0,n),n.currentTarget=null}function z$(n,a,u){var p;if(u)for(var y=a.length-1;y>=0;y--){var S=a[y],F=S.instance,j=S.currentTarget,K=S.listener;if(F!==p&&n.isPropagationStopped())return;dA(n,K,j),p=F}else for(var re=0;re<a.length;re++){var ie=a[re],he=ie.instance,de=ie.currentTarget,_e=ie.listener;if(he!==p&&n.isPropagationStopped())return;dA(n,_e,de),p=he}}function pA(n,a){for(var u=(a&gs)!==0,p=0;p<n.length;p++){var y=n[p],S=y.event,F=y.listeners;z$(S,F,u)}xv()}function U$(n,a,u,p,y){var S=Gd(u),F=[];L$(F,n,p,u,S,a),pA(F,a)}function Jn(n,a){J_.has(n)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',n);var u=!1,p=vq(a),y=V$(n,u);p.has(y)||(hA(a,n,rf,u),p.add(y))}function eS(n,a,u){J_.has(n)&&!a&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',n);var p=0;a&&(p|=gs),hA(u,n,p,a)}var q1="_reactListening"+Math.random().toString(36).slice(2);function cm(n){if(!n[q1]){n[q1]=!0,se.forEach(function(u){u!=="selectionchange"&&(J_.has(u)||eS(u,!1,n),eS(u,!0,n))});var a=n.nodeType===Hi?n:n.ownerDocument;a!==null&&(a[q1]||(a[q1]=!0,eS("selectionchange",!1,a)))}}function hA(n,a,u,p,y){var S=$u(n,a,u),F=void 0;uf&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(F=!0),n=n,p?F!==void 0?qo(n,a,S,F):qu(n,a,S):F!==void 0?N0(n,a,S,F):Qv(n,a,S)}function vA(n,a){return n===a||n.nodeType===dr&&n.parentNode===a}function tS(n,a,u,p,y){var S=p;if(!(a&Bo)&&!(a&rf)){var F=y;if(p!==null){var j=p;e:for(;;){if(j===null)return;var K=j.tag;if(K===C||K===b){var re=j.stateNode.containerInfo;if(vA(re,F))break;if(K===b)for(var ie=j.return;ie!==null;){var he=ie.tag;if(he===C||he===b){var de=ie.stateNode.containerInfo;if(vA(de,F))return}ie=ie.return}for(;re!==null;){var _e=Bf(re);if(_e===null)return;var Se=_e.tag;if(Se===x||Se===_){j=S=_e;continue e}re=re.parentNode}}j=j.return}}}vv(function(){return U$(n,a,u,S)})}function fm(n,a,u){return{instance:n,listener:a,currentTarget:u}}function j$(n,a,u,p,y,S){for(var F=a!==null?a+"Capture":null,j=p?F:a,K=[],re=n,ie=null;re!==null;){var he=re,de=he.stateNode,_e=he.tag;if(_e===x&&de!==null&&(ie=de,j!==null)){var Se=xs(re,j);Se!=null&&K.push(fm(re,Se,ie))}if(y)break;re=re.return}return K}function G1(n,a){for(var u=a+"Capture",p=[],y=n;y!==null;){var S=y,F=S.stateNode,j=S.tag;if(j===x&&F!==null){var K=F,re=xs(y,u);re!=null&&p.unshift(fm(y,re,K));var ie=xs(y,a);ie!=null&&p.push(fm(y,ie,K))}y=y.return}return p}function K0(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==x);return n||null}function I$(n,a){for(var u=n,p=a,y=0,S=u;S;S=K0(S))y++;for(var F=0,j=p;j;j=K0(j))F++;for(;y-F>0;)u=K0(u),y--;for(;F-y>0;)p=K0(p),F--;for(var K=y;K--;){if(u===p||p!==null&&u===p.alternate)return u;u=K0(u),p=K0(p)}return null}function mA(n,a,u,p,y){for(var S=a._reactName,F=[],j=u;j!==null&&j!==p;){var K=j,re=K.alternate,ie=K.stateNode,he=K.tag;if(re!==null&&re===p)break;if(he===x&&ie!==null){var de=ie;if(y){var _e=xs(j,S);_e!=null&&F.unshift(fm(j,_e,de))}else if(!y){var Se=xs(j,S);Se!=null&&F.push(fm(j,Se,de))}}j=j.return}F.length!==0&&n.push({event:a,listeners:F})}function H$(n,a,u,p,y){var S=p&&y?I$(p,y):null;p!==null&&mA(n,a,p,S,!1),y!==null&&u!==null&&mA(n,u,y,S,!0)}function V$(n,a){return n+"__"+(a?"capture":"bubble")}var Ei=!1,dm="dangerouslySetInnerHTML",K1="suppressContentEditableWarning",Ju="suppressHydrationWarning",gA="autoFocus",Mf="children",Pf="style",W1="__html",nS,Q1,pm,yA,Z1,xA,bA;nS={dialog:!0,webview:!0},Q1=function(n,a){qd(n,a),cv(n,a),i1(n,a,{registrationNameDependencies:ke,possibleRegistrationNames:De})},xA=$e&&!document.documentMode,pm=function(n,a,u){if(!Ei){var p=X1(u),y=X1(a);y!==p&&(Ei=!0,c("Prop `%s` did not match. Server: %s Client: %s",n,JSON.stringify(y),JSON.stringify(p)))}},yA=function(n){if(!Ei){Ei=!0;var a=[];n.forEach(function(u){a.push(u)}),c("Extra attributes from the server: %s",a)}},Z1=function(n,a){a===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",n,n,n):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",n,typeof a)},bA=function(n,a){var u=n.namespaceURI===No?n.ownerDocument.createElement(n.tagName):n.ownerDocument.createElementNS(n.namespaceURI,n.tagName);return u.innerHTML=a,u.innerHTML};var $$=/\r\n?/g,Y$=/\u0000|\uFFFD/g;function X1(n){Jt(n);var a=typeof n=="string"?n:""+n;return a.replace($$,`
85
85
  `).replace(Y$,"")}function J1(n,a,u,p){var y=X1(a),S=X1(n);if(S!==y&&(p&&(Ei||(Ei=!0,c('Text content did not match. Server: "%s" Client: "%s"',S,y))),u&&ne))throw new Error("Text content does not match server-rendered HTML.")}function CA(n){return n.nodeType===Hi?n:n.ownerDocument}function q$(){}function ex(n){n.onclick=q$}function G$(n,a,u,p,y){for(var S in p)if(p.hasOwnProperty(S)){var F=p[S];if(S===Pf)F&&Object.freeze(F),Wy(a,F);else if(S===dm){var j=F?F[W1]:void 0;j!=null&&zy(a,j)}else if(S===Mf)if(typeof F=="string"){var K=n!=="textarea"||F!=="";K&&Hd(a,F)}else typeof F=="number"&&Hd(a,""+F);else S===K1||S===Ju||S===gA||(ke.hasOwnProperty(S)?F!=null&&(typeof F!="function"&&Z1(S,F),S==="onScroll"&&Jn("scroll",a)):F!=null&&Vn(a,S,F,y))}}function K$(n,a,u,p){for(var y=0;y<a.length;y+=2){var S=a[y],F=a[y+1];S===Pf?Wy(n,F):S===dm?zy(n,F):S===Mf?Hd(n,F):Vn(n,S,F,p)}}function W$(n,a,u,p){var y,S=CA(u),F,j=p;if(j===No&&(j=jd(n)),j===No){if(y=Po(n,a),!y&&n!==n.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),n==="script"){var K=S.createElement("div");K.innerHTML="<script></script>";var re=K.firstChild;F=K.removeChild(re)}else if(typeof a.is=="string")F=S.createElement(n,{is:a.is});else if(F=S.createElement(n),n==="select"){var ie=F;a.multiple?ie.multiple=!0:a.size&&(ie.size=a.size)}}else F=S.createElementNS(j,n);return j===No&&!y&&Object.prototype.toString.call(F)==="[object HTMLUnknownElement]"&&!Me.call(nS,n)&&(nS[n]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)),F}function Q$(n,a){return CA(a).createTextNode(n)}function Z$(n,a,u,p){var y=Po(a,u);Q1(a,u);var S;switch(a){case"dialog":Jn("cancel",n),Jn("close",n),S=u;break;case"iframe":case"object":case"embed":Jn("load",n),S=u;break;case"video":case"audio":for(var F=0;F<um.length;F++)Jn(um[F],n);S=u;break;case"source":Jn("error",n),S=u;break;case"img":case"image":case"link":Jn("error",n),Jn("load",n),S=u;break;case"details":Jn("toggle",n),S=u;break;case"input":Zc(n,u),S=Qc(n,u),Jn("invalid",n);break;case"option":zd(n,u),S=u;break;case"select":My(n,u),S=Jh(n,u),Jn("invalid",n);break;case"textarea":Py(n,u),S=tv(n,u),Jn("invalid",n);break;default:S=u}switch($d(a,S),G$(a,n,p,S,y),a){case"input":hs(n),Xc(n,u,!1);break;case"textarea":hs(n),Ly(n);break;case"option":Xh(n,u);break;case"select":p_(n,u);break;default:typeof S.onClick=="function"&&ex(n);break}}function X$(n,a,u,p,y){Q1(a,p);var S=null,F,j;switch(a){case"input":F=Qc(n,u),j=Qc(n,p),S=[];break;case"select":F=Jh(n,u),j=Jh(n,p),S=[];break;case"textarea":F=tv(n,u),j=tv(n,p),S=[];break;default:F=u,j=p,typeof F.onClick!="function"&&typeof j.onClick=="function"&&ex(n);break}$d(a,j);var K,re,ie=null;for(K in F)if(!(j.hasOwnProperty(K)||!F.hasOwnProperty(K)||F[K]==null))if(K===Pf){var he=F[K];for(re in he)he.hasOwnProperty(re)&&(ie||(ie={}),ie[re]="")}else K===dm||K===Mf||K===K1||K===Ju||K===gA||(ke.hasOwnProperty(K)?S||(S=[]):(S=S||[]).push(K,null));for(K in j){var de=j[K],_e=F!=null?F[K]:void 0;if(!(!j.hasOwnProperty(K)||de===_e||de==null&&_e==null))if(K===Pf)if(de&&Object.freeze(de),_e){for(re in _e)_e.hasOwnProperty(re)&&(!de||!de.hasOwnProperty(re))&&(ie||(ie={}),ie[re]="");for(re in de)de.hasOwnProperty(re)&&_e[re]!==de[re]&&(ie||(ie={}),ie[re]=de[re])}else ie||(S||(S=[]),S.push(K,ie)),ie=de;else if(K===dm){var Se=de?de[W1]:void 0,Te=_e?_e[W1]:void 0;Se!=null&&Te!==Se&&(S=S||[]).push(K,Se)}else K===Mf?(typeof de=="string"||typeof de=="number")&&(S=S||[]).push(K,""+de):K===K1||K===Ju||(ke.hasOwnProperty(K)?(de!=null&&(typeof de!="function"&&Z1(K,de),K==="onScroll"&&Jn("scroll",n)),!S&&_e!==de&&(S=[])):(S=S||[]).push(K,de))}return ie&&(tf(ie,j[Pf]),(S=S||[]).push(Pf,ie)),S}function J$(n,a,u,p,y){u==="input"&&y.type==="radio"&&y.name!=null&&Zh(n,y);var S=Po(u,p),F=Po(u,y);switch(K$(n,a,S,F),u){case"input":Cu(n,y);break;case"textarea":By(n,y);break;case"select":h_(n,y);break}}function eY(n){{var a=n.toLowerCase();return Yd.hasOwnProperty(a)&&Yd[a]||null}}function tY(n,a,u,p,y,S,F){var j,K;switch(j=Po(a,u),Q1(a,u),a){case"dialog":Jn("cancel",n),Jn("close",n);break;case"iframe":case"object":case"embed":Jn("load",n);break;case"video":case"audio":for(var re=0;re<um.length;re++)Jn(um[re],n);break;case"source":Jn("error",n);break;case"img":case"image":case"link":Jn("error",n),Jn("load",n);break;case"details":Jn("toggle",n);break;case"input":Zc(n,u),Jn("invalid",n);break;case"option":zd(n,u);break;case"select":My(n,u),Jn("invalid",n);break;case"textarea":Py(n,u),Jn("invalid",n);break}$d(a,u);{K=new Set;for(var ie=n.attributes,he=0;he<ie.length;he++){var de=ie[he].name.toLowerCase();switch(de){case"value":break;case"checked":break;case"selected":break;default:K.add(ie[he].name)}}}var _e=null;for(var Se in u)if(u.hasOwnProperty(Se)){var Te=u[Se];if(Se===Mf)typeof Te=="string"?n.textContent!==Te&&(u[Ju]!==!0&&J1(n.textContent,Te,S,F),_e=[Mf,Te]):typeof Te=="number"&&n.textContent!==""+Te&&(u[Ju]!==!0&&J1(n.textContent,Te,S,F),_e=[Mf,""+Te]);else if(ke.hasOwnProperty(Se))Te!=null&&(typeof Te!="function"&&Z1(Se,Te),Se==="onScroll"&&Jn("scroll",n));else if(F&&typeof j=="boolean"){var tt=void 0,vt=j&&oe?null:ra(Se);if(u[Ju]!==!0){if(!(Se===K1||Se===Ju||Se==="value"||Se==="checked"||Se==="selected")){if(Se===dm){var dt=n.innerHTML,Gt=Te?Te[W1]:void 0;if(Gt!=null){var Ht=bA(n,Gt);Ht!==dt&&pm(Se,dt,Ht)}}else if(Se===Pf){if(K.delete(Se),xA){var be=w_(Te);tt=n.getAttribute("style"),be!==tt&&pm(Se,tt,be)}}else if(j&&!oe)K.delete(Se.toLowerCase()),tt=Oo(n,Se,Te),Te!==tt&&pm(Se,tt,Te);else if(!Wn(Se,vt,j)&&!_n(Se,Te,vt,j)){var Ae=!1;if(vt!==null)K.delete(vt.attributeName),tt=Ao(n,Se,Te,vt);else{var Ce=p;if(Ce===No&&(Ce=jd(a)),Ce===No)K.delete(Se.toLowerCase());else{var Ve=eY(Se);Ve!==null&&Ve!==Se&&(Ae=!0,K.delete(Ve)),K.delete(Se)}tt=Oo(n,Se,Te)}var nt=oe;!nt&&Te!==tt&&!Ae&&pm(Se,tt,Te)}}}}}switch(F&&K.size>0&&u[Ju]!==!0&&yA(K),a){case"input":hs(n),Xc(n,u,!0);break;case"textarea":hs(n),Ly(n);break;case"select":case"option":break;default:typeof u.onClick=="function"&&ex(n);break}return _e}function nY(n,a,u){var p=n.nodeValue!==a;return p}function rS(n,a){{if(Ei)return;Ei=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),n.nodeName.toLowerCase())}}function aS(n,a){{if(Ei)return;Ei=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,n.nodeName.toLowerCase())}}function iS(n,a,u){{if(Ei)return;Ei=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",a,n.nodeName.toLowerCase())}}function oS(n,a){{if(a===""||Ei)return;Ei=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,n.nodeName.toLowerCase())}}function rY(n,a,u){switch(a){case"input":Oy(n,u);return;case"textarea":nv(n,u);return;case"select":v_(n,u);return}}var hm=function(){},vm=function(){};{var aY=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],wA=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],iY=wA.concat(["button"]),oY=["dd","dt","li","option","optgroup","p","rp","rt"],_A={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};vm=function(n,a){var u=jt({},n||_A),p={tag:a};return wA.indexOf(a)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),iY.indexOf(a)!==-1&&(u.pTagInButtonScope=null),aY.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=p,a==="form"&&(u.formTag=p),a==="a"&&(u.aTagInScope=p),a==="button"&&(u.buttonTagInScope=p),a==="nobr"&&(u.nobrTagInScope=p),a==="p"&&(u.pTagInButtonScope=p),a==="li"&&(u.listItemTagAutoclosing=p),(a==="dd"||a==="dt")&&(u.dlItemTagAutoclosing=p),u};var lY=function(n,a){switch(a){case"select":return n==="option"||n==="optgroup"||n==="#text";case"optgroup":return n==="option"||n==="#text";case"option":return n==="#text";case"tr":return n==="th"||n==="td"||n==="style"||n==="script"||n==="template";case"tbody":case"thead":case"tfoot":return n==="tr"||n==="style"||n==="script"||n==="template";case"colgroup":return n==="col"||n==="template";case"table":return n==="caption"||n==="colgroup"||n==="tbody"||n==="tfoot"||n==="thead"||n==="style"||n==="script"||n==="template";case"head":return n==="base"||n==="basefont"||n==="bgsound"||n==="link"||n==="meta"||n==="title"||n==="noscript"||n==="noframes"||n==="style"||n==="script"||n==="template";case"html":return n==="head"||n==="body"||n==="frameset";case"frameset":return n==="frame";case"#document":return n==="html"}switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return oY.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},sY=function(n,a){switch(n){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},SA={};hm=function(n,a,u){u=u||_A;var p=u.current,y=p&&p.tag;a!=null&&(n!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),n="#text");var S=lY(n,y)?null:p,F=S?null:sY(n,u),j=S||F;if(j){var K=j.tag,re=!!S+"|"+n+"|"+K;if(!SA[re]){SA[re]=!0;var ie=n,he="";if(n==="#text"?/\S/.test(a)?ie="Text nodes":(ie="Whitespace text nodes",he=" Make sure you don't have any extra whitespace between tags on each line of your source code."):ie="<"+n+">",S){var de="";K==="table"&&n==="tr"&&(de+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",ie,K,he,de)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",ie,K)}}}}var tx="suppressHydrationWarning",nx="$",rx="/$",mm="$?",gm="$!",uY="style",lS=null,sS=null;function cY(n){var a,u,p=n.nodeType;switch(p){case Hi:case vs:{a=p===Hi?"#document":"#fragment";var y=n.documentElement;u=y?y.namespaceURI:av(null,"");break}default:{var S=p===dr?n.parentNode:n,F=S.namespaceURI||null;a=S.tagName,u=av(F,a);break}}{var j=a.toLowerCase(),K=vm(null,j);return{namespace:u,ancestorInfo:K}}}function fY(n,a,u){{var p=n,y=av(p.namespace,a),S=vm(p.ancestorInfo,a);return{namespace:y,ancestorInfo:S}}}function BX(n){return n}function dY(n){lS=Xa(),sS=D$();var a=null;return Fr(!1),a}function pY(n){k$(sS),Fr(lS),lS=null,sS=null}function hY(n,a,u,p,y){var S;{var F=p;if(hm(n,null,F.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var j=""+a.children,K=vm(F.ancestorInfo,n);hm(null,j,K)}S=F.namespace}var re=W$(n,a,u,S);return bm(y,re),mS(re,a),re}function vY(n,a){n.appendChild(a)}function mY(n,a,u,p,y){switch(Z$(n,a,u,p),a){case"button":case"input":case"select":case"textarea":return!!u.autoFocus;case"img":return!0;default:return!1}}function gY(n,a,u,p,y,S){{var F=S;if(typeof p.children!=typeof u.children&&(typeof p.children=="string"||typeof p.children=="number")){var j=""+p.children,K=vm(F.ancestorInfo,a);hm(null,j,K)}}return X$(n,a,u,p)}function uS(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function yY(n,a,u,p){{var y=u;hm(null,n,y.ancestorInfo)}var S=Q$(n,a);return bm(p,S),S}function xY(){var n=window.event;return n===void 0?Vo:va(n.type)}var cS=typeof setTimeout=="function"?setTimeout:void 0,bY=typeof clearTimeout=="function"?clearTimeout:void 0,fS=-1,EA=typeof Promise=="function"?Promise:void 0,CY=typeof queueMicrotask=="function"?queueMicrotask:typeof EA<"u"?function(n){return EA.resolve(null).then(n).catch(wY)}:cS;function wY(n){setTimeout(function(){throw n})}function _Y(n,a,u,p){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();return;case"img":{u.src&&(n.src=u.src);return}}}function SY(n,a,u,p,y,S){J$(n,a,u,p,y),mS(n,y)}function DA(n){Hd(n,"")}function EY(n,a,u){n.nodeValue=u}function DY(n,a){n.appendChild(a)}function kY(n,a){var u;n.nodeType===dr?(u=n.parentNode,u.insertBefore(a,n)):(u=n,u.appendChild(a));var p=n._reactRootContainer;p==null&&u.onclick===null&&ex(u)}function TY(n,a,u){n.insertBefore(a,u)}function AY(n,a,u){n.nodeType===dr?n.parentNode.insertBefore(a,u):n.insertBefore(a,u)}function OY(n,a){n.removeChild(a)}function RY(n,a){n.nodeType===dr?n.parentNode.removeChild(a):n.removeChild(a)}function dS(n,a){var u=a,p=0;do{var y=u.nextSibling;if(n.removeChild(u),y&&y.nodeType===dr){var S=y.data;if(S===rx)if(p===0){n.removeChild(y),It(a);return}else p--;else(S===nx||S===mm||S===gm)&&p++}u=y}while(u);It(a)}function FY(n,a){n.nodeType===dr?dS(n.parentNode,a):n.nodeType===Ta&&dS(n,a),It(n)}function NY(n){n=n;var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function MY(n){n.nodeValue=""}function PY(n,a){n=n;var u=a[uY],p=u!=null&&u.hasOwnProperty("display")?u.display:null;n.style.display=Vd("display",p)}function BY(n,a){n.nodeValue=a}function LY(n){n.nodeType===Ta?n.textContent="":n.nodeType===Hi&&n.documentElement&&n.removeChild(n.documentElement)}function zY(n,a,u){return n.nodeType!==Ta||a.toLowerCase()!==n.nodeName.toLowerCase()?null:n}function UY(n,a){return a===""||n.nodeType!==Mo?null:n}function jY(n){return n.nodeType!==dr?null:n}function kA(n){return n.data===mm}function pS(n){return n.data===gm}function IY(n){var a=n.nextSibling&&n.nextSibling.dataset,u,p,y;return a&&(u=a.dgst,p=a.msg,y=a.stck),{message:p,digest:u,stack:y}}function HY(n,a){n._reactRetry=a}function ax(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===Ta||a===Mo)break;if(a===dr){var u=n.data;if(u===nx||u===gm||u===mm)break;if(u===rx)return null}}return n}function ym(n){return ax(n.nextSibling)}function VY(n){return ax(n.firstChild)}function $Y(n){return ax(n.firstChild)}function YY(n){return ax(n.nextSibling)}function qY(n,a,u,p,y,S,F){bm(S,n),mS(n,u);var j;{var K=y;j=K.namespace}var re=(S.mode&Ut)!==gt;return tY(n,a,u,j,p,re,F)}function GY(n,a,u,p){return bm(u,n),u.mode&Ut,nY(n,a)}function KY(n,a){bm(a,n)}function WY(n){for(var a=n.nextSibling,u=0;a;){if(a.nodeType===dr){var p=a.data;if(p===rx){if(u===0)return ym(a);u--}else(p===nx||p===gm||p===mm)&&u++}a=a.nextSibling}return null}function TA(n){for(var a=n.previousSibling,u=0;a;){if(a.nodeType===dr){var p=a.data;if(p===nx||p===gm||p===mm){if(u===0)return a;u--}else p===rx&&u++}a=a.previousSibling}return null}function QY(n){It(n)}function ZY(n){It(n)}function XY(n){return n!=="head"&&n!=="body"}function JY(n,a,u,p){var y=!0;J1(a.nodeValue,u,p,y)}function eq(n,a,u,p,y,S){if(a[tx]!==!0){var F=!0;J1(p.nodeValue,y,S,F)}}function tq(n,a){a.nodeType===Ta?rS(n,a):a.nodeType===dr||aS(n,a)}function nq(n,a){{var u=n.parentNode;u!==null&&(a.nodeType===Ta?rS(u,a):a.nodeType===dr||aS(u,a))}}function rq(n,a,u,p,y){(y||a[tx]!==!0)&&(p.nodeType===Ta?rS(u,p):p.nodeType===dr||aS(u,p))}function aq(n,a,u){iS(n,a)}function iq(n,a){oS(n,a)}function oq(n,a,u){{var p=n.parentNode;p!==null&&iS(p,a)}}function lq(n,a){{var u=n.parentNode;u!==null&&oS(u,a)}}function sq(n,a,u,p,y,S){(S||a[tx]!==!0)&&iS(u,p)}function uq(n,a,u,p,y){(y||a[tx]!==!0)&&oS(u,p)}function cq(n){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",n.nodeName.toLowerCase())}function fq(n){cm(n)}var W0=Math.random().toString(36).slice(2),Q0="__reactFiber$"+W0,hS="__reactProps$"+W0,xm="__reactContainer$"+W0,vS="__reactEvents$"+W0,dq="__reactListeners$"+W0,pq="__reactHandles$"+W0;function hq(n){delete n[Q0],delete n[hS],delete n[vS],delete n[dq],delete n[pq]}function bm(n,a){a[Q0]=n}function ix(n,a){a[xm]=n}function AA(n){n[xm]=null}function Cm(n){return!!n[xm]}function Bf(n){var a=n[Q0];if(a)return a;for(var u=n.parentNode;u;){if(a=u[xm]||u[Q0],a){var p=a.alternate;if(a.child!==null||p!==null&&p.child!==null)for(var y=TA(n);y!==null;){var S=y[Q0];if(S)return S;y=TA(y)}return a}n=u,u=n.parentNode}return null}function ec(n){var a=n[Q0]||n[xm];return a&&(a.tag===x||a.tag===_||a.tag===N||a.tag===C)?a:null}function Z0(n){if(n.tag===x||n.tag===_)return n.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function ox(n){return n[hS]||null}function mS(n,a){n[hS]=a}function vq(n){var a=n[vS];return a===void 0&&(a=n[vS]=new Set),a}var OA={},RA=t.ReactDebugCurrentFrame;function lx(n){if(n){var a=n._owner,u=$c(n.type,n._source,a?a.type:null);RA.setExtraStackFrame(u)}else RA.setExtraStackFrame(null)}function Ko(n,a,u,p,y){{var S=Function.call.bind(Me);for(var F in n)if(S(n,F)){var j=void 0;try{if(typeof n[F]!="function"){var K=Error((p||"React class")+": "+u+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}j=n[F](a,F,p,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){j=re}j&&!(j instanceof Error)&&(lx(y),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",u,F,typeof j),lx(null)),j instanceof Error&&!(j.message in OA)&&(OA[j.message]=!0,lx(y),c("Failed %s type: %s",u,j.message),lx(null))}}}var gS=[],sx;sx=[];var Vs=-1;function tc(n){return{current:n}}function La(n,a){if(Vs<0){c("Unexpected pop.");return}a!==sx[Vs]&&c("Unexpected Fiber popped."),n.current=gS[Vs],gS[Vs]=null,sx[Vs]=null,Vs--}function za(n,a,u){Vs++,gS[Vs]=n.current,sx[Vs]=u,n.current=a}var yS;yS={};var Gi={};Object.freeze(Gi);var $s=tc(Gi),Gl=tc(!1),xS=Gi;function X0(n,a,u){return u&&Kl(a)?xS:$s.current}function FA(n,a,u){{var p=n.stateNode;p.__reactInternalMemoizedUnmaskedChildContext=a,p.__reactInternalMemoizedMaskedChildContext=u}}function J0(n,a){{var u=n.type,p=u.contextTypes;if(!p)return Gi;var y=n.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===a)return y.__reactInternalMemoizedMaskedChildContext;var S={};for(var F in p)S[F]=a[F];{var j=Tt(n)||"Unknown";Ko(p,S,"context",j)}return y&&FA(n,a,S),S}}function ux(){return Gl.current}function Kl(n){{var a=n.childContextTypes;return a!=null}}function cx(n){La(Gl,n),La($s,n)}function bS(n){La(Gl,n),La($s,n)}function NA(n,a,u){{if($s.current!==Gi)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");za($s,a,n),za(Gl,u,n)}}function MA(n,a,u){{var p=n.stateNode,y=a.childContextTypes;if(typeof p.getChildContext!="function"){{var S=Tt(n)||"Unknown";yS[S]||(yS[S]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",S,S))}return u}var F=p.getChildContext();for(var j in F)if(!(j in y))throw new Error((Tt(n)||"Unknown")+'.getChildContext(): key "'+j+'" is not defined in childContextTypes.');{var K=Tt(n)||"Unknown";Ko(y,F,"child context",K)}return jt({},u,F)}}function fx(n){{var a=n.stateNode,u=a&&a.__reactInternalMemoizedMergedChildContext||Gi;return xS=$s.current,za($s,u,n),za(Gl,Gl.current,n),!0}}function PA(n,a,u){{var p=n.stateNode;if(!p)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(u){var y=MA(n,a,xS);p.__reactInternalMemoizedMergedChildContext=y,La(Gl,n),La($s,n),za($s,y,n),za(Gl,u,n)}else La(Gl,n),za(Gl,u,n)}}function mq(n){{if(!Sv(n)||n.tag!==d)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=n;do{switch(a.tag){case C:return a.stateNode.context;case d:{var u=a.type;if(Kl(u))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var nc=0,dx=1,Ys=null,CS=!1,wS=!1;function BA(n){Ys===null?Ys=[n]:Ys.push(n)}function gq(n){CS=!0,BA(n)}function LA(){CS&&rc()}function rc(){if(!wS&&Ys!==null){wS=!0;var n=0,a=Ci();try{var u=!0,p=Ys;for(Cr(la);n<p.length;n++){var y=p[n];do y=y(u);while(y!==null)}Ys=null,CS=!1}catch(S){throw Ys!==null&&(Ys=Ys.slice(n+1)),e0(n0,rc),S}finally{Cr(a),wS=!1}}return null}var ep=[],tp=0,px=null,hx=0,po=[],ho=0,Lf=null,qs=1,Gs="";function yq(n){return Uf(),(n.flags&Cv)!==ht}function xq(n){return Uf(),hx}function bq(){var n=Gs,a=qs,u=a&~Cq(a);return u.toString(32)+n}function zf(n,a){Uf(),ep[tp++]=hx,ep[tp++]=px,px=n,hx=a}function zA(n,a,u){Uf(),po[ho++]=qs,po[ho++]=Gs,po[ho++]=Lf,Lf=n;var p=qs,y=Gs,S=vx(p)-1,F=p&~(1<<S),j=u+1,K=vx(a)+S;if(K>30){var re=S-S%5,ie=(1<<re)-1,he=(F&ie).toString(32),de=F>>re,_e=S-re,Se=vx(a)+_e,Te=j<<_e,tt=Te|de,vt=he+y;qs=1<<Se|tt,Gs=vt}else{var dt=j<<S,Gt=dt|F,Ht=y;qs=1<<K|Gt,Gs=Ht}}function _S(n){Uf();var a=n.return;if(a!==null){var u=1,p=0;zf(n,u),zA(n,u,p)}}function vx(n){return 32-s0(n)}function Cq(n){return 1<<vx(n)-1}function SS(n){for(;n===px;)px=ep[--tp],ep[tp]=null,hx=ep[--tp],ep[tp]=null;for(;n===Lf;)Lf=po[--ho],po[ho]=null,Gs=po[--ho],po[ho]=null,qs=po[--ho],po[ho]=null}function wq(){return Uf(),Lf!==null?{id:qs,overflow:Gs}:null}function _q(n,a){Uf(),po[ho++]=qs,po[ho++]=Gs,po[ho++]=Lf,qs=a.id,Gs=a.overflow,Lf=n}function Uf(){ga()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ma=null,vo=null,Wo=!1,jf=!1,ac=null;function Sq(){Wo&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function UA(){jf=!0}function Eq(){return jf}function Dq(n){var a=n.stateNode.containerInfo;return vo=$Y(a),ma=n,Wo=!0,ac=null,jf=!1,!0}function kq(n,a,u){return vo=YY(a),ma=n,Wo=!0,ac=null,jf=!1,u!==null&&_q(n,u),!0}function jA(n,a){switch(n.tag){case C:{tq(n.stateNode.containerInfo,a);break}case x:{var u=(n.mode&Ut)!==gt;rq(n.type,n.memoizedProps,n.stateNode,a,u);break}case N:{var p=n.memoizedState;p.dehydrated!==null&&nq(p.dehydrated,a);break}}}function IA(n,a){jA(n,a);var u=OW();u.stateNode=a,u.return=n;var p=n.deletions;p===null?(n.deletions=[u],n.flags|=un):p.push(u)}function ES(n,a){{if(jf)return;switch(n.tag){case C:{var u=n.stateNode.containerInfo;switch(a.tag){case x:var p=a.type;a.pendingProps,aq(u,p);break;case _:var y=a.pendingProps;iq(u,y);break}break}case x:{var S=n.type,F=n.memoizedProps,j=n.stateNode;switch(a.tag){case x:{var K=a.type,re=a.pendingProps,ie=(n.mode&Ut)!==gt;sq(S,F,j,K,re,ie);break}case _:{var he=a.pendingProps,de=(n.mode&Ut)!==gt;uq(S,F,j,he,de);break}}break}case N:{var _e=n.memoizedState,Se=_e.dehydrated;if(Se!==null)switch(a.tag){case x:var Te=a.type;a.pendingProps,oq(Se,Te);break;case _:var tt=a.pendingProps;lq(Se,tt);break}break}default:return}}}function HA(n,a){a.flags=a.flags&~mi|Ln,ES(n,a)}function VA(n,a){switch(n.tag){case x:{var u=n.type;n.pendingProps;var p=zY(a,u);return p!==null?(n.stateNode=p,ma=n,vo=VY(p),!0):!1}case _:{var y=n.pendingProps,S=UY(a,y);return S!==null?(n.stateNode=S,ma=n,vo=null,!0):!1}case N:{var F=jY(a);if(F!==null){var j={dehydrated:F,treeContext:wq(),retryLane:Pa};n.memoizedState=j;var K=RW(F);return K.return=n,n.child=K,ma=n,vo=null,!0}return!1}default:return!1}}function DS(n){return(n.mode&Ut)!==gt&&(n.flags&_t)===ht}function kS(n){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function TS(n){if(Wo){var a=vo;if(!a){DS(n)&&(ES(ma,n),kS()),HA(ma,n),Wo=!1,ma=n;return}var u=a;if(!VA(n,a)){DS(n)&&(ES(ma,n),kS()),a=ym(u);var p=ma;if(!a||!VA(n,a)){HA(ma,n),Wo=!1,ma=n;return}IA(p,u)}}}function Tq(n,a,u){var p=n.stateNode,y=!jf,S=qY(p,n.type,n.memoizedProps,a,u,n,y);return n.updateQueue=S,S!==null}function Aq(n){var a=n.stateNode,u=n.memoizedProps,p=GY(a,u,n);if(p){var y=ma;if(y!==null)switch(y.tag){case C:{var S=y.stateNode.containerInfo,F=(y.mode&Ut)!==gt;JY(S,a,u,F);break}case x:{var j=y.type,K=y.memoizedProps,re=y.stateNode,ie=(y.mode&Ut)!==gt;eq(j,K,re,a,u,ie);break}}}return p}function Oq(n){var a=n.memoizedState,u=a!==null?a.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");KY(u,n)}function Rq(n){var a=n.memoizedState,u=a!==null?a.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return WY(u)}function $A(n){for(var a=n.return;a!==null&&a.tag!==x&&a.tag!==C&&a.tag!==N;)a=a.return;ma=a}function mx(n){if(n!==ma)return!1;if(!Wo)return $A(n),Wo=!0,!1;if(n.tag!==C&&(n.tag!==x||XY(n.type)&&!uS(n.type,n.memoizedProps))){var a=vo;if(a)if(DS(n))YA(n),kS();else for(;a;)IA(n,a),a=ym(a)}return $A(n),n.tag===N?vo=Rq(n):vo=ma?ym(n.stateNode):null,!0}function Fq(){return Wo&&vo!==null}function YA(n){for(var a=vo;a;)jA(n,a),a=ym(a)}function np(){ma=null,vo=null,Wo=!1,jf=!1}function qA(){ac!==null&&(jR(ac),ac=null)}function ga(){return Wo}function AS(n){ac===null?ac=[n]:ac.push(n)}var Nq=t.ReactCurrentBatchConfig,Mq=null;function Pq(){return Nq.transition}var Qo={recordUnsafeLifecycleWarnings:function(n,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(n,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Bq=function(n){for(var a=null,u=n;u!==null;)u.mode&Zn&&(a=u),u=u.return;return a},If=function(n){var a=[];return n.forEach(function(u){a.push(u)}),a.sort().join(", ")},wm=[],_m=[],Sm=[],Em=[],Dm=[],km=[],Hf=new Set;Qo.recordUnsafeLifecycleWarnings=function(n,a){Hf.has(n.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&wm.push(n),n.mode&Zn&&typeof a.UNSAFE_componentWillMount=="function"&&_m.push(n),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Sm.push(n),n.mode&Zn&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Em.push(n),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&Dm.push(n),n.mode&Zn&&typeof a.UNSAFE_componentWillUpdate=="function"&&km.push(n))},Qo.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;wm.length>0&&(wm.forEach(function(de){n.add(Tt(de)||"Component"),Hf.add(de.type)}),wm=[]);var a=new Set;_m.length>0&&(_m.forEach(function(de){a.add(Tt(de)||"Component"),Hf.add(de.type)}),_m=[]);var u=new Set;Sm.length>0&&(Sm.forEach(function(de){u.add(Tt(de)||"Component"),Hf.add(de.type)}),Sm=[]);var p=new Set;Em.length>0&&(Em.forEach(function(de){p.add(Tt(de)||"Component"),Hf.add(de.type)}),Em=[]);var y=new Set;Dm.length>0&&(Dm.forEach(function(de){y.add(Tt(de)||"Component"),Hf.add(de.type)}),Dm=[]);var S=new Set;if(km.length>0&&(km.forEach(function(de){S.add(Tt(de)||"Component"),Hf.add(de.type)}),km=[]),a.size>0){var F=If(a);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
86
86
 
87
87
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
@@ -190,10 +190,10 @@ Check the render method of \``+re+"`.")}throw new Error("Element type is invalid
190
190
  Check the render method of %s.`,Tt(fr)||"Unknown"));var K=Ks(S,F);K.payload={element:n},p=p===void 0?null:p,p!==null&&(typeof p!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",p),K.callback=p);var re=ic(y,K,F);return re!==null&&(Zr(re,y,F,S),Ex(re,y,F)),F}function mb(n){var a=n.current;if(!a.child)return null;switch(a.child.tag){case x:return a.child.stateNode;default:return a.child.stateNode}}function PW(n){switch(n.tag){case C:{var a=n.stateNode;if(wr(a)){var u=R_(a);YK(a,u)}break}case N:{Xs(function(){var y=Di(n,bt);if(y!==null){var S=ti();Zr(y,n,bt,S)}});var p=bt;M4(n,p);break}}}function fF(n,a){var u=n.memoizedState;u!==null&&u.dehydrated!==null&&(u.retryLane=E1(u.retryLane,a))}function M4(n,a){fF(n,a);var u=n.alternate;u&&fF(u,a)}function BW(n){if(n.tag===N){var a=Mu,u=Di(n,a);if(u!==null){var p=ti();Zr(u,n,a,p)}M4(n,a)}}function LW(n){if(n.tag===N){var a=pc(n),u=Di(n,a);if(u!==null){var p=ti();Zr(u,n,a,p)}M4(n,a)}}function dF(n){var a=c1(n);return a===null?null:a.stateNode}var pF=function(n){return null};function zW(n){return pF(n)}var hF=function(n){return!1};function UW(n){return hF(n)}var vF=null,mF=null,gF=null,yF=null,xF=null,bF=null,CF=null,wF=null,_F=null;{var SF=function(n,a,u){var p=a[u],y=kr(n)?n.slice():jt({},n);return u+1===a.length?(kr(y)?y.splice(p,1):delete y[p],y):(y[p]=SF(n[p],a,u+1),y)},EF=function(n,a){return SF(n,a,0)},DF=function(n,a,u,p){var y=a[p],S=kr(n)?n.slice():jt({},n);if(p+1===a.length){var F=u[p];S[F]=S[y],kr(S)?S.splice(y,1):delete S[y]}else S[y]=DF(n[y],a,u,p+1);return S},kF=function(n,a,u){if(a.length!==u.length){f("copyWithRename() expects paths of the same length");return}else for(var p=0;p<u.length-1;p++)if(a[p]!==u[p]){f("copyWithRename() expects paths to be the same except for the deepest key");return}return DF(n,a,u,0)},TF=function(n,a,u,p){if(u>=a.length)return p;var y=a[u],S=kr(n)?n.slice():jt({},n);return S[y]=TF(n[y],a,u+1,p),S},AF=function(n,a,u){return TF(n,a,0,u)},P4=function(n,a){for(var u=n.memoizedState;u!==null&&a>0;)u=u.next,a--;return u};vF=function(n,a,u,p){var y=P4(n,a);if(y!==null){var S=AF(y.memoizedState,u,p);y.memoizedState=S,y.baseState=S,n.memoizedProps=jt({},n.memoizedProps);var F=Di(n,bt);F!==null&&Zr(F,n,bt,On)}},mF=function(n,a,u){var p=P4(n,a);if(p!==null){var y=EF(p.memoizedState,u);p.memoizedState=y,p.baseState=y,n.memoizedProps=jt({},n.memoizedProps);var S=Di(n,bt);S!==null&&Zr(S,n,bt,On)}},gF=function(n,a,u,p){var y=P4(n,a);if(y!==null){var S=kF(y.memoizedState,u,p);y.memoizedState=S,y.baseState=S,n.memoizedProps=jt({},n.memoizedProps);var F=Di(n,bt);F!==null&&Zr(F,n,bt,On)}},yF=function(n,a,u){n.pendingProps=AF(n.memoizedProps,a,u),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var p=Di(n,bt);p!==null&&Zr(p,n,bt,On)},xF=function(n,a){n.pendingProps=EF(n.memoizedProps,a),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var u=Di(n,bt);u!==null&&Zr(u,n,bt,On)},bF=function(n,a,u){n.pendingProps=kF(n.memoizedProps,a,u),n.alternate&&(n.alternate.pendingProps=n.pendingProps);var p=Di(n,bt);p!==null&&Zr(p,n,bt,On)},CF=function(n){var a=Di(n,bt);a!==null&&Zr(a,n,bt,On)},wF=function(n){pF=n},_F=function(n){hF=n}}function jW(n){var a=yi(n);return a===null?null:a.stateNode}function IW(n){return null}function HW(){return fr}function VW(n){var a=n.findFiberByHostInstance,u=t.ReactCurrentDispatcher;return Av({bundleType:n.bundleType,version:n.version,rendererPackageName:n.rendererPackageName,rendererConfig:n.rendererConfig,overrideHookState:vF,overrideHookStateDeletePath:mF,overrideHookStateRenamePath:gF,overrideProps:yF,overridePropsDeletePath:xF,overridePropsRenamePath:bF,setErrorHandler:wF,setSuspenseHandler:_F,scheduleUpdate:CF,currentDispatcherRef:u,findHostInstanceByFiber:jW,findFiberByHostInstance:a||IW,findHostInstancesForRefresh:xW,scheduleRefresh:gW,scheduleRoot:yW,setRefreshHandler:mW,getCurrentFiber:HW,reconcilerVersion:R4})}var OF=typeof reportError=="function"?reportError:function(n){};function B4(n){this._internalRoot=n}gb.prototype.render=B4.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):yb(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var u=a.containerInfo;if(u.nodeType!==dr){var p=dF(a.current);p&&p.parentNode!==u&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}ng(n,a,null,null)},gb.prototype.unmount=B4.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;HR()&&c("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Xs(function(){ng(null,n,null,null)}),AA(a)}};function $W(n,a){if(!yb(n))throw new Error("createRoot(...): Target container is not a DOM element.");RF(n);var u=!1,p=!1,y="",S=OF;a!=null&&(a.hydrate?f("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===jr&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
191
191
 
192
192
  let root = createRoot(domContainer);
193
- root.render(<App />);`),a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var F=uF(n,dx,null,u,p,y,S);ix(F.current,n);var j=n.nodeType===dr?n.parentNode:n;return cm(j),new B4(F)}function gb(n){this._internalRoot=n}function YW(n){n&&N1(n)}gb.prototype.unstable_scheduleHydration=YW;function qW(n,a,u){if(!yb(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");RF(n),a===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var p=u??null,y=u!=null&&u.hydratedSources||null,S=!1,F=!1,j="",K=OF;u!=null&&(u.unstable_strictMode===!0&&(S=!0),u.identifierPrefix!==void 0&&(j=u.identifierPrefix),u.onRecoverableError!==void 0&&(K=u.onRecoverableError));var re=cF(a,null,n,dx,p,S,F,j,K);if(ix(re.current,n),cm(n),y)for(var ie=0;ie<y.length;ie++){var he=y[ie];eG(re,he)}return new gb(re)}function yb(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||!te))}function rg(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||n.nodeType===dr&&n.nodeValue===" react-mount-point-unstable "))}function RF(n){n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Cm(n)&&(n._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var GW=t.ReactCurrentOwner,FF;FF=function(n){if(n._reactRootContainer&&n.nodeType!==dr){var a=dF(n._reactRootContainer.current);a&&a.parentNode!==n&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!n._reactRootContainer,p=L4(n),y=!!(p&&ec(p));y&&!u&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function L4(n){return n?n.nodeType===Hi?n.documentElement:n.firstChild:null}function NF(){}function KW(n,a,u,p,y){if(y){if(typeof p=="function"){var S=p;p=function(){var de=mb(F);S.call(de)}}var F=cF(a,p,n,nc,null,!1,!1,"",NF);n._reactRootContainer=F,ix(F.current,n);var j=n.nodeType===dr?n.parentNode:n;return cm(j),Xs(),F}else{for(var K;K=n.lastChild;)n.removeChild(K);if(typeof p=="function"){var re=p;p=function(){var de=mb(ie);re.call(de)}}var ie=uF(n,nc,null,!1,!1,"",NF);n._reactRootContainer=ie,ix(ie.current,n);var he=n.nodeType===dr?n.parentNode:n;return cm(he),Xs(function(){ng(a,ie,u,p)}),ie}}function WW(n,a){n!==null&&typeof n!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function xb(n,a,u,p,y){FF(u),WW(y===void 0?null:y,"render");var S=u._reactRootContainer,F;if(!S)F=KW(u,a,n,y,p);else{if(F=S,typeof y=="function"){var j=y;y=function(){var K=mb(F);j.call(K)}}ng(a,F,n,y)}return mb(F)}function QW(n){{var a=GW.current;if(a!==null&&a.stateNode!==null){var u=a.stateNode._warnedAboutRefsInRender;u||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===Ta?n:MW(n,"findDOMNode")}function ZW(n,a,u){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var p=Cm(a)&&a._reactRootContainer===void 0;p&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return xb(null,n,a,!0,u)}function XW(n,a,u){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var p=Cm(a)&&a._reactRootContainer===void 0;p&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return xb(null,n,a,!1,u)}function JW(n,a,u,p){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(u))throw new Error("Target container is not a DOM element.");if(n==null||!ff(n))throw new Error("parentComponent must be a valid React Component");return xb(n,a,u,!1,p)}function eQ(n){if(!rg(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Cm(n)&&n._reactRootContainer===void 0;a&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var u=L4(n),p=u&&!ec(u);p&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Xs(function(){xb(null,null,n,!1,function(){n._reactRootContainer=null,AA(n)})}),!0}else{{var y=L4(n),S=!!(y&&ec(y)),F=n.nodeType===Ta&&rg(n.parentNode)&&!!n.parentNode._reactRootContainer;S&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",F?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}rt(PW),k1(BW),Df(LW),qv(Ci),A1(_f),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),l1(rY),Wd(h4,qK,Xs);function tQ(n,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!yb(a))throw new Error("Target container is not a DOM element.");return NW(n,a,null,u)}function nQ(n,a,u,p){return JW(n,a,u,p)}var z4={usingClientEntryPoint:!1,Events:[ec,Z0,ox,Kd,sf,h4]};function rQ(n,a){return z4.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),$W(n,a)}function aQ(n,a,u){return z4.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),qW(n,a,u)}function iQ(n){return HR()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Xs(n)}var oQ=VW({findFiberByHostInstance:Bf,bundleType:1,version:R4,rendererPackageName:"react-dom"});if(!oQ&&$e&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var lQ=window.location.protocol;/^(https?|file):$/.test(lQ)}ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z4,ii.createPortal=tQ,ii.createRoot=rQ,ii.findDOMNode=QW,ii.flushSync=iQ,ii.hydrate=ZW,ii.hydrateRoot=aQ,ii.render=XW,ii.unmountComponentAtNode=eQ,ii.unstable_batchedUpdates=h4,ii.unstable_renderSubtreeIntoContainer=nQ,ii.version=R4,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ii}(function(e){function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch{}}}process.env.NODE_ENV==="production"?(r(),e.exports=v9()):e.exports=m9()})(tu);const fg=LF(tu.exports),g9=BF({__proto__:null,default:fg},[tu.exports]);var zb=(e=>(e.zip="application/zip",e.png="image/png",e.jpg="image/jpg",e.jpeg="image/jpeg",e.pdf="application/pdf",e.doc="application/msword",e.docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.pptx="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.ppt="application/vnd.ms-powerpoint",e.xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.xls="application/vnd.ms-excel",e.txt="text/plain",e.csv="text/csv",e.svg="image/svg+xml",e))(zb||{});const Ub=new Map(Object.entries(zb));var ed=(e=>(e.zip=".zip",e.png=".png",e.jpg=".jpg",e.jpeg=".jpeg",e.pdf=".pdf",e.doc=".doc",e.docx=".docx",e.ppt=".ppt",e.pptx=".pptx",e.xls=".xls",e.xlsx=".xlsx",e.txt=".txt",e.csv=".csv",e.svg=".svg",e.rar=".rar",e))(ed||{});const y9=Object.freeze(Object.defineProperty({__proto__:null,FileType:zb,FileTypeMap:Ub,FileSuffix:ed},Symbol.toStringTag,{value:"Module"})),x9=e=>{if(!il.isObject(e))return e;const r=e;return il.pick(r,il.keys(r).filter(t=>!il.isNil(r[t])))},L8=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),dg=e=>{var r;if(e)return"."+((r=e.split(".").at(-1))==null?void 0:r.toLowerCase())},b9=e=>{if(e){if(e.startsWith("http")){const r=e.split(".").at(-1);if(r&&Ub.has(r))return Ub.get(r)}if(e.startsWith("data:")&&e.includes("base64")){const r=e.indexOf(";base64"),t=e.slice(0,r).split(":");if(t[1])return t[1]}}},z8=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;localStorage.setItem(e,t)},jb=e=>{let t=localStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},C9=e=>{localStorage.removeItem(e)},w9=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;sessionStorage.setItem(e,t)},_9=e=>{let t=sessionStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},S9=e=>{sessionStorage.removeItem(e)},E9=(e,r)=>{const t=[];for(let i=0;i<r.length;i++)t.findIndex(l=>l[e]===r[i][e])<0&&t.push(r[i]);return t},Ib=e=>{if(!e)return null;if(typeof e=="object")return e;if(typeof e=="string"){let r=e;try{r=JSON.parse(e)}catch{}return r}};function D9(){var e=URL.createObjectURL(new Blob),r=e.toString();return URL.revokeObjectURL(e),r.substr(r.lastIndexOf("/")+1)}const k9=Object.freeze(Object.defineProperty({__proto__:null,filterObject:x9,getBase64:L8,getFileSuffix:dg,getFileType:b9,setLocalStorage:z8,getLocalStorage:jb,removeLocalStorage:C9,setSessionStorage:w9,getSessionStorage:_9,removeSessionStorage:S9,arrayDeduplication:E9,JSONParse:Ib,uuid:D9,forceReload:()=>{const e="FORCERELOAD";sessionStorage.getItem(e)!=="1"&&(sessionStorage.setItem(e,"1"),window.location.reload())},formatResponse:e=>{if(typeof e=="string"){const r=e.indexOf(",");return JSON.parse(e.slice(r+1))}return e}},Symbol.toStringTag,{value:"Module"}));const T9=4,U8=0,j8=1,A9=2;function td(e){let r=e.length;for(;--r>=0;)e[r]=0}const O9=0,I8=1,R9=2,F9=3,N9=258,Hb=29,kp=256,Tp=kp+1+Hb,nd=30,Vb=19,H8=2*Tp+1,gc=15,$b=16,M9=7,Yb=256,V8=16,$8=17,Y8=18,qb=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),pg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),P9=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),q8=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),B9=512,as=new Array((Tp+2)*2);td(as);const Ap=new Array(nd*2);td(Ap);const Op=new Array(B9);td(Op);const Rp=new Array(N9-F9+1);td(Rp);const Gb=new Array(Hb);td(Gb);const hg=new Array(nd);td(hg);function Kb(e,r,t,i,l){this.static_tree=e,this.extra_bits=r,this.extra_base=t,this.elems=i,this.max_length=l,this.has_stree=e&&e.length}let G8,K8,W8;function Wb(e,r){this.dyn_tree=e,this.max_code=0,this.stat_desc=r}const Q8=e=>e<256?Op[e]:Op[256+(e>>>7)],Fp=(e,r)=>{e.pending_buf[e.pending++]=r&255,e.pending_buf[e.pending++]=r>>>8&255},oi=(e,r,t)=>{e.bi_valid>$b-t?(e.bi_buf|=r<<e.bi_valid&65535,Fp(e,e.bi_buf),e.bi_buf=r>>$b-e.bi_valid,e.bi_valid+=t-$b):(e.bi_buf|=r<<e.bi_valid&65535,e.bi_valid+=t)},ol=(e,r,t)=>{oi(e,t[r*2],t[r*2+1])},Z8=(e,r)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--r>0);return t>>>1},L9=e=>{e.bi_valid===16?(Fp(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},z9=(e,r)=>{const t=r.dyn_tree,i=r.max_code,l=r.stat_desc.static_tree,f=r.stat_desc.has_stree,c=r.stat_desc.extra_bits,h=r.stat_desc.extra_base,m=r.stat_desc.max_length;let d,g,C,b,x,_,k=0;for(b=0;b<=gc;b++)e.bl_count[b]=0;for(t[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;d<H8;d++)g=e.heap[d],b=t[t[g*2+1]*2+1]+1,b>m&&(b=m,k++),t[g*2+1]=b,!(g>i)&&(e.bl_count[b]++,x=0,g>=h&&(x=c[g-h]),_=t[g*2],e.opt_len+=_*(b+x),f&&(e.static_len+=_*(l[g*2+1]+x)));if(k!==0){do{for(b=m-1;e.bl_count[b]===0;)b--;e.bl_count[b]--,e.bl_count[b+1]+=2,e.bl_count[m]--,k-=2}while(k>0);for(b=m;b!==0;b--)for(g=e.bl_count[b];g!==0;)C=e.heap[--d],!(C>i)&&(t[C*2+1]!==b&&(e.opt_len+=(b-t[C*2+1])*t[C*2],t[C*2+1]=b),g--)}},X8=(e,r,t)=>{const i=new Array(gc+1);let l=0,f,c;for(f=1;f<=gc;f++)l=l+t[f-1]<<1,i[f]=l;for(c=0;c<=r;c++){let h=e[c*2+1];h!==0&&(e[c*2]=Z8(i[h]++,h))}},U9=()=>{let e,r,t,i,l;const f=new Array(gc+1);for(t=0,i=0;i<Hb-1;i++)for(Gb[i]=t,e=0;e<1<<qb[i];e++)Rp[t++]=i;for(Rp[t-1]=i,l=0,i=0;i<16;i++)for(hg[i]=l,e=0;e<1<<pg[i];e++)Op[l++]=i;for(l>>=7;i<nd;i++)for(hg[i]=l<<7,e=0;e<1<<pg[i]-7;e++)Op[256+l++]=i;for(r=0;r<=gc;r++)f[r]=0;for(e=0;e<=143;)as[e*2+1]=8,e++,f[8]++;for(;e<=255;)as[e*2+1]=9,e++,f[9]++;for(;e<=279;)as[e*2+1]=7,e++,f[7]++;for(;e<=287;)as[e*2+1]=8,e++,f[8]++;for(X8(as,Tp+1,f),e=0;e<nd;e++)Ap[e*2+1]=5,Ap[e*2]=Z8(e,5);G8=new Kb(as,qb,kp+1,Tp,gc),K8=new Kb(Ap,pg,0,nd,gc),W8=new Kb(new Array(0),P9,0,Vb,M9)},J8=e=>{let r;for(r=0;r<Tp;r++)e.dyn_ltree[r*2]=0;for(r=0;r<nd;r++)e.dyn_dtree[r*2]=0;for(r=0;r<Vb;r++)e.bl_tree[r*2]=0;e.dyn_ltree[Yb*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},e5=e=>{e.bi_valid>8?Fp(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},t5=(e,r,t,i)=>{const l=r*2,f=t*2;return e[l]<e[f]||e[l]===e[f]&&i[r]<=i[t]},Qb=(e,r,t)=>{const i=e.heap[t];let l=t<<1;for(;l<=e.heap_len&&(l<e.heap_len&&t5(r,e.heap[l+1],e.heap[l],e.depth)&&l++,!t5(r,i,e.heap[l],e.depth));)e.heap[t]=e.heap[l],t=l,l<<=1;e.heap[t]=i},n5=(e,r,t)=>{let i,l,f=0,c,h;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+f++]&255,i+=(e.pending_buf[e.sym_buf+f++]&255)<<8,l=e.pending_buf[e.sym_buf+f++],i===0?ol(e,l,r):(c=Rp[l],ol(e,c+kp+1,r),h=qb[c],h!==0&&(l-=Gb[c],oi(e,l,h)),i--,c=Q8(i),ol(e,c,t),h=pg[c],h!==0&&(i-=hg[c],oi(e,i,h)));while(f<e.sym_next);ol(e,Yb,r)},Zb=(e,r)=>{const t=r.dyn_tree,i=r.stat_desc.static_tree,l=r.stat_desc.has_stree,f=r.stat_desc.elems;let c,h,m=-1,d;for(e.heap_len=0,e.heap_max=H8,c=0;c<f;c++)t[c*2]!==0?(e.heap[++e.heap_len]=m=c,e.depth[c]=0):t[c*2+1]=0;for(;e.heap_len<2;)d=e.heap[++e.heap_len]=m<2?++m:0,t[d*2]=1,e.depth[d]=0,e.opt_len--,l&&(e.static_len-=i[d*2+1]);for(r.max_code=m,c=e.heap_len>>1;c>=1;c--)Qb(e,t,c);d=f;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qb(e,t,1),h=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=h,t[d*2]=t[c*2]+t[h*2],e.depth[d]=(e.depth[c]>=e.depth[h]?e.depth[c]:e.depth[h])+1,t[c*2+1]=t[h*2+1]=d,e.heap[1]=d++,Qb(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],z9(e,r),X8(t,m,e.bl_count)},r5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],h=0,m=7,d=4;for(c===0&&(m=138,d=3),r[(t+1)*2+1]=65535,i=0;i<=t;i++)f=c,c=r[(i+1)*2+1],!(++h<m&&f===c)&&(h<d?e.bl_tree[f*2]+=h:f!==0?(f!==l&&e.bl_tree[f*2]++,e.bl_tree[V8*2]++):h<=10?e.bl_tree[$8*2]++:e.bl_tree[Y8*2]++,h=0,l=f,c===0?(m=138,d=3):f===c?(m=6,d=3):(m=7,d=4))},a5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],h=0,m=7,d=4;for(c===0&&(m=138,d=3),i=0;i<=t;i++)if(f=c,c=r[(i+1)*2+1],!(++h<m&&f===c)){if(h<d)do ol(e,f,e.bl_tree);while(--h!==0);else f!==0?(f!==l&&(ol(e,f,e.bl_tree),h--),ol(e,V8,e.bl_tree),oi(e,h-3,2)):h<=10?(ol(e,$8,e.bl_tree),oi(e,h-3,3)):(ol(e,Y8,e.bl_tree),oi(e,h-11,7));h=0,l=f,c===0?(m=138,d=3):f===c?(m=6,d=3):(m=7,d=4)}},j9=e=>{let r;for(r5(e,e.dyn_ltree,e.l_desc.max_code),r5(e,e.dyn_dtree,e.d_desc.max_code),Zb(e,e.bl_desc),r=Vb-1;r>=3&&e.bl_tree[q8[r]*2+1]===0;r--);return e.opt_len+=3*(r+1)+5+5+4,r},I9=(e,r,t,i)=>{let l;for(oi(e,r-257,5),oi(e,t-1,5),oi(e,i-4,4),l=0;l<i;l++)oi(e,e.bl_tree[q8[l]*2+1],3);a5(e,e.dyn_ltree,r-1),a5(e,e.dyn_dtree,t-1)},H9=e=>{let r=4093624447,t;for(t=0;t<=31;t++,r>>>=1)if(r&1&&e.dyn_ltree[t*2]!==0)return U8;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return j8;for(t=32;t<kp;t++)if(e.dyn_ltree[t*2]!==0)return j8;return U8};let i5=!1;const V9=e=>{i5||(U9(),i5=!0),e.l_desc=new Wb(e.dyn_ltree,G8),e.d_desc=new Wb(e.dyn_dtree,K8),e.bl_desc=new Wb(e.bl_tree,W8),e.bi_buf=0,e.bi_valid=0,J8(e)},o5=(e,r,t,i)=>{oi(e,(O9<<1)+(i?1:0),3),e5(e),Fp(e,t),Fp(e,~t),t&&e.pending_buf.set(e.window.subarray(r,r+t),e.pending),e.pending+=t},$9=e=>{oi(e,I8<<1,3),ol(e,Yb,as),L9(e)},Y9=(e,r,t,i)=>{let l,f,c=0;e.level>0?(e.strm.data_type===A9&&(e.strm.data_type=H9(e)),Zb(e,e.l_desc),Zb(e,e.d_desc),c=j9(e),l=e.opt_len+3+7>>>3,f=e.static_len+3+7>>>3,f<=l&&(l=f)):l=f=t+5,t+4<=l&&r!==-1?o5(e,r,t,i):e.strategy===T9||f===l?(oi(e,(I8<<1)+(i?1:0),3),n5(e,as,Ap)):(oi(e,(R9<<1)+(i?1:0),3),I9(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),n5(e,e.dyn_ltree,e.dyn_dtree)),J8(e),i&&e5(e)},q9=(e,r,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=r,e.pending_buf[e.sym_buf+e.sym_next++]=r>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,r===0?e.dyn_ltree[t*2]++:(e.matches++,r--,e.dyn_ltree[(Rp[t]+kp+1)*2]++,e.dyn_dtree[Q8(r)*2]++),e.sym_next===e.sym_end);var G9=V9,K9=o5,W9=Y9,Q9=q9,Z9=$9,X9={_tr_init:G9,_tr_stored_block:K9,_tr_flush_block:W9,_tr_tally:Q9,_tr_align:Z9},Np=(e,r,t,i)=>{let l=e&65535|0,f=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do l=l+r[i++]|0,f=f+l|0;while(--c);l%=65521,f%=65521}return l|f<<16|0};const J9=()=>{let e,r=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;r[t]=e}return r},eN=new Uint32Array(J9());var Jr=(e,r,t,i)=>{const l=eN,f=i+t;e^=-1;for(let c=i;c<f;c++)e=e>>>8^l[(e^r[c])&255];return e^-1},yc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:tN,_tr_stored_block:Xb,_tr_flush_block:nN,_tr_tally:nu,_tr_align:rN}=X9,{Z_NO_FLUSH:ru,Z_PARTIAL_FLUSH:aN,Z_FULL_FLUSH:iN,Z_FINISH:Zi,Z_BLOCK:l5,Z_OK:pa,Z_STREAM_END:s5,Z_STREAM_ERROR:ll,Z_DATA_ERROR:oN,Z_BUF_ERROR:Jb,Z_DEFAULT_COMPRESSION:lN,Z_FILTERED:sN,Z_HUFFMAN_ONLY:vg,Z_RLE:uN,Z_FIXED:cN,Z_DEFAULT_STRATEGY:fN,Z_UNKNOWN:dN,Z_DEFLATED:mg}=xc,pN=9,hN=15,vN=8,mN=29,e2=256+1+mN,gN=30,yN=19,xN=2*e2+1,bN=15,Wt=3,au=258,sl=au+Wt+1,CN=32,rd=42,t2=57,n2=69,r2=73,a2=91,i2=103,bc=113,Mp=666,Ha=1,ad=2,Cc=3,id=4,wN=3,wc=(e,r)=>(e.msg=yc[r],r),u5=e=>e*2-(e>4?9:0),iu=e=>{let r=e.length;for(;--r>=0;)e[r]=0},_N=e=>{let r,t,i,l=e.w_size;r=e.hash_size,i=r;do t=e.head[--i],e.head[i]=t>=l?t-l:0;while(--r);r=l,i=r;do t=e.prev[--i],e.prev[i]=t>=l?t-l:0;while(--r)};let ou=(e,r,t)=>(r<<e.hash_shift^t)&e.hash_mask;const Oi=e=>{const r=e.state;let t=r.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(r.pending_buf.subarray(r.pending_out,r.pending_out+t),e.next_out),e.next_out+=t,r.pending_out+=t,e.total_out+=t,e.avail_out-=t,r.pending-=t,r.pending===0&&(r.pending_out=0))},Ri=(e,r)=>{nN(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r),e.block_start=e.strstart,Oi(e.strm)},pn=(e,r)=>{e.pending_buf[e.pending++]=r},Pp=(e,r)=>{e.pending_buf[e.pending++]=r>>>8&255,e.pending_buf[e.pending++]=r&255},o2=(e,r,t,i)=>{let l=e.avail_in;return l>i&&(l=i),l===0?0:(e.avail_in-=l,r.set(e.input.subarray(e.next_in,e.next_in+l),t),e.state.wrap===1?e.adler=Np(e.adler,r,l,t):e.state.wrap===2&&(e.adler=Jr(e.adler,r,l,t)),e.next_in+=l,e.total_in+=l,l)},c5=(e,r)=>{let t=e.max_chain_length,i=e.strstart,l,f,c=e.prev_length,h=e.nice_match;const m=e.strstart>e.w_size-sl?e.strstart-(e.w_size-sl):0,d=e.window,g=e.w_mask,C=e.prev,b=e.strstart+au;let x=d[i+c-1],_=d[i+c];e.prev_length>=e.good_match&&(t>>=2),h>e.lookahead&&(h=e.lookahead);do if(l=r,!(d[l+c]!==_||d[l+c-1]!==x||d[l]!==d[i]||d[++l]!==d[i+1])){i+=2,l++;do;while(d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&i<b);if(f=au-(b-i),i=b-au,f>c){if(e.match_start=r,c=f,f>=h)break;x=d[i+c-1],_=d[i+c]}}while((r=C[r&g])>m&&--t!==0);return c<=e.lookahead?c:e.lookahead},od=e=>{const r=e.w_size;let t,i,l;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=r+(r-sl)&&(e.window.set(e.window.subarray(r,r+r-i),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.insert>e.strstart&&(e.insert=e.strstart),_N(e),i+=r),e.strm.avail_in===0)break;if(t=o2(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=Wt)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=ou(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=ou(e,e.ins_h,e.window[l+Wt-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<Wt)););}while(e.lookahead<sl&&e.strm.avail_in!==0)},f5=(e,r)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,l,f,c=0,h=e.strm.avail_in;do{if(i=65535,f=e.bi_valid+42>>3,e.strm.avail_out<f||(f=e.strm.avail_out-f,l=e.strstart-e.block_start,i>l+e.strm.avail_in&&(i=l+e.strm.avail_in),i>f&&(i=f),i<t&&(i===0&&r!==Zi||r===ru||i!==l+e.strm.avail_in)))break;c=r===Zi&&i===l+e.strm.avail_in?1:0,Xb(e,0,0,c),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Oi(e.strm),l&&(l>i&&(l=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+l),e.strm.next_out),e.strm.next_out+=l,e.strm.avail_out-=l,e.strm.total_out+=l,e.block_start+=l,i-=l),i&&(o2(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(c===0);return h-=e.strm.avail_in,h&&(h>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=h&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-h,e.strm.next_in),e.strstart),e.strstart+=h,e.insert+=h>e.w_size-e.insert?e.w_size-e.insert:h),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),c?id:r!==ru&&r!==Zi&&e.strm.avail_in===0&&e.strstart===e.block_start?ad:(f=e.window_size-e.strstart,e.strm.avail_in>f&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,f+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),f>e.strm.avail_in&&(f=e.strm.avail_in),f&&(o2(e.strm,e.window,e.strstart,f),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.high_water<e.strstart&&(e.high_water=e.strstart),f=e.bi_valid+42>>3,f=e.pending_buf_size-f>65535?65535:e.pending_buf_size-f,t=f>e.w_size?e.w_size:f,l=e.strstart-e.block_start,(l>=t||(l||r===Zi)&&r!==ru&&e.strm.avail_in===0&&l<=f)&&(i=l>f?f:l,c=r===Zi&&e.strm.avail_in===0&&i===l?1:0,Xb(e,e.block_start,i,c),e.block_start+=i,Oi(e.strm)),c?Cc:Ha)},l2=(e,r)=>{let t,i;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Wt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-sl&&(e.match_length=c5(e,t)),e.match_length>=Wt)if(i=nu(e,e.strstart-e.match_start,e.match_length-Wt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Wt){e.match_length--;do e.strstart++,e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ou(e,e.ins_h,e.window[e.strstart+1]);else i=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=e.strstart<Wt-1?e.strstart:Wt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},ld=(e,r)=>{let t,i,l;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Wt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Wt-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-sl&&(e.match_length=c5(e,t),e.match_length<=5&&(e.strategy===sN||e.match_length===Wt&&e.strstart-e.match_start>4096)&&(e.match_length=Wt-1)),e.prev_length>=Wt&&e.match_length<=e.prev_length){l=e.strstart+e.lookahead-Wt,i=nu(e,e.strstart-1-e.prev_match,e.prev_length-Wt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=l&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Wt-1,e.strstart++,i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}else if(e.match_available){if(i=nu(e,0,e.window[e.strstart-1]),i&&Ri(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ha}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=nu(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Wt-1?e.strstart:Wt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},SN=(e,r)=>{let t,i,l,f;const c=e.window;for(;;){if(e.lookahead<=au){if(od(e),e.lookahead<=au&&r===ru)return Ha;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Wt&&e.strstart>0&&(l=e.strstart-1,i=c[l],i===c[++l]&&i===c[++l]&&i===c[++l])){f=e.strstart+au;do;while(i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&l<f);e.match_length=au-(f-l),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Wt?(t=nu(e,1,e.match_length-Wt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},EN=(e,r)=>{let t;for(;;){if(e.lookahead===0&&(od(e),e.lookahead===0)){if(r===ru)return Ha;break}if(e.match_length=0,t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad};function ul(e,r,t,i,l){this.good_length=e,this.max_lazy=r,this.nice_length=t,this.max_chain=i,this.func=l}const Bp=[new ul(0,0,0,0,f5),new ul(4,4,8,4,l2),new ul(4,5,16,8,l2),new ul(4,6,32,32,l2),new ul(4,4,16,16,ld),new ul(8,16,32,32,ld),new ul(8,16,128,128,ld),new ul(8,32,128,256,ld),new ul(32,128,258,1024,ld),new ul(32,258,258,4096,ld)],DN=e=>{e.window_size=2*e.w_size,iu(e.head),e.max_lazy_match=Bp[e.level].max_lazy,e.good_match=Bp[e.level].good_length,e.nice_match=Bp[e.level].nice_length,e.max_chain_length=Bp[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Wt-1,e.match_available=0,e.ins_h=0};function kN(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mg,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(xN*2),this.dyn_dtree=new Uint16Array((2*gN+1)*2),this.bl_tree=new Uint16Array((2*yN+1)*2),iu(this.dyn_ltree),iu(this.dyn_dtree),iu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(bN+1),this.heap=new Uint16Array(2*e2+1),iu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*e2+1),iu(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Lp=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.status!==rd&&r.status!==t2&&r.status!==n2&&r.status!==r2&&r.status!==a2&&r.status!==i2&&r.status!==bc&&r.status!==Mp?1:0},d5=e=>{if(Lp(e))return wc(e,ll);e.total_in=e.total_out=0,e.data_type=dN;const r=e.state;return r.pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap===2?t2:r.wrap?rd:bc,e.adler=r.wrap===2?0:1,r.last_flush=-2,tN(r),pa},p5=e=>{const r=d5(e);return r===pa&&DN(e.state),r},TN=(e,r)=>Lp(e)||e.state.wrap!==2?ll:(e.state.gzhead=r,pa),h5=(e,r,t,i,l,f)=>{if(!e)return ll;let c=1;if(r===lN&&(r=6),i<0?(c=0,i=-i):i>15&&(c=2,i-=16),l<1||l>pN||t!==mg||i<8||i>15||r<0||r>9||f<0||f>cN||i===8&&c!==1)return wc(e,ll);i===8&&(i=9);const h=new kN;return e.state=h,h.strm=e,h.status=rd,h.wrap=c,h.gzhead=null,h.w_bits=i,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=l+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+Wt-1)/Wt),h.window=new Uint8Array(h.w_size*2),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<l+6,h.pending_buf_size=h.lit_bufsize*4,h.pending_buf=new Uint8Array(h.pending_buf_size),h.sym_buf=h.lit_bufsize,h.sym_end=(h.lit_bufsize-1)*3,h.level=r,h.strategy=f,h.method=t,p5(e)},AN=(e,r)=>h5(e,r,mg,hN,vN,fN),ON=(e,r)=>{if(Lp(e)||r>l5||r<0)return e?wc(e,ll):ll;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Mp&&r!==Zi)return wc(e,e.avail_out===0?Jb:ll);const i=t.last_flush;if(t.last_flush=r,t.pending!==0){if(Oi(e),e.avail_out===0)return t.last_flush=-1,pa}else if(e.avail_in===0&&u5(r)<=u5(i)&&r!==Zi)return wc(e,Jb);if(t.status===Mp&&e.avail_in!==0)return wc(e,Jb);if(t.status===rd&&t.wrap===0&&(t.status=bc),t.status===rd){let l=mg+(t.w_bits-8<<4)<<8,f=-1;if(t.strategy>=vg||t.level<2?f=0:t.level<6?f=1:t.level===6?f=2:f=3,l|=f<<6,t.strstart!==0&&(l|=CN),l+=31-l%31,Pp(t,l),t.strstart!==0&&(Pp(t,e.adler>>>16),Pp(t,e.adler&65535)),e.adler=1,t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,pa}if(t.status===t2){if(e.adler=0,pn(t,31),pn(t,139),pn(t,8),t.gzhead)pn(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),pn(t,t.gzhead.time&255),pn(t,t.gzhead.time>>8&255),pn(t,t.gzhead.time>>16&255),pn(t,t.gzhead.time>>24&255),pn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),pn(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(pn(t,t.gzhead.extra.length&255),pn(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=Jr(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=n2;else if(pn(t,0),pn(t,0),pn(t,0),pn(t,0),pn(t,0),pn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),pn(t,wN),t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,pa}if(t.status===n2){if(t.gzhead.extra){let l=t.pending,f=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+f>t.pending_buf_size;){let h=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+h),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex+=h,Oi(e),t.pending!==0)return t.last_flush=-1,pa;l=0,f-=h}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+f),t.pending),t.pending+=f,t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=r2}if(t.status===r2){if(t.gzhead.name){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,pa;l=0}t.gzindex<t.gzhead.name.length?f=t.gzhead.name.charCodeAt(t.gzindex++)&255:f=0,pn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=a2}if(t.status===a2){if(t.gzhead.comment){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,pa;l=0}t.gzindex<t.gzhead.comment.length?f=t.gzhead.comment.charCodeAt(t.gzindex++)&255:f=0,pn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l))}t.status=i2}if(t.status===i2){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Oi(e),t.pending!==0))return t.last_flush=-1,pa;pn(t,e.adler&255),pn(t,e.adler>>8&255),e.adler=0}if(t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,pa}if(e.avail_in!==0||t.lookahead!==0||r!==ru&&t.status!==Mp){let l=t.level===0?f5(t,r):t.strategy===vg?EN(t,r):t.strategy===uN?SN(t,r):Bp[t.level].func(t,r);if((l===Cc||l===id)&&(t.status=Mp),l===Ha||l===Cc)return e.avail_out===0&&(t.last_flush=-1),pa;if(l===ad&&(r===aN?rN(t):r!==l5&&(Xb(t,0,0,!1),r===iN&&(iu(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Oi(e),e.avail_out===0))return t.last_flush=-1,pa}return r!==Zi?pa:t.wrap<=0?s5:(t.wrap===2?(pn(t,e.adler&255),pn(t,e.adler>>8&255),pn(t,e.adler>>16&255),pn(t,e.adler>>24&255),pn(t,e.total_in&255),pn(t,e.total_in>>8&255),pn(t,e.total_in>>16&255),pn(t,e.total_in>>24&255)):(Pp(t,e.adler>>>16),Pp(t,e.adler&65535)),Oi(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?pa:s5)},RN=e=>{if(Lp(e))return ll;const r=e.state.status;return e.state=null,r===bc?wc(e,oN):pa},FN=(e,r)=>{let t=r.length;if(Lp(e))return ll;const i=e.state,l=i.wrap;if(l===2||l===1&&i.status!==rd||i.lookahead)return ll;if(l===1&&(e.adler=Np(e.adler,r,t,0)),i.wrap=0,t>=i.w_size){l===0&&(iu(i.head),i.strstart=0,i.block_start=0,i.insert=0);let m=new Uint8Array(i.w_size);m.set(r.subarray(t-i.w_size,t),0),r=m,t=i.w_size}const f=e.avail_in,c=e.next_in,h=e.input;for(e.avail_in=t,e.next_in=0,e.input=r,od(i);i.lookahead>=Wt;){let m=i.strstart,d=i.lookahead-(Wt-1);do i.ins_h=ou(i,i.ins_h,i.window[m+Wt-1]),i.prev[m&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=m,m++;while(--d);i.strstart=m,i.lookahead=Wt-1,od(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Wt-1,i.match_available=0,e.next_in=c,e.input=h,e.avail_in=f,i.wrap=l,pa};var NN=AN,MN=h5,PN=p5,BN=d5,LN=TN,zN=ON,UN=RN,jN=FN,IN="pako deflate (from Nodeca project)",zp={deflateInit:NN,deflateInit2:MN,deflateReset:PN,deflateResetKeep:BN,deflateSetHeader:LN,deflate:zN,deflateEnd:UN,deflateSetDictionary:jN,deflateInfo:IN};const HN=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var VN=function(e){const r=Array.prototype.slice.call(arguments,1);for(;r.length;){const t=r.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)HN(t,i)&&(e[i]=t[i])}}return e},$N=e=>{let r=0;for(let i=0,l=e.length;i<l;i++)r+=e[i].length;const t=new Uint8Array(r);for(let i=0,l=0,f=e.length;i<f;i++){let c=e[i];t.set(c,l),l+=c.length}return t},gg={assign:VN,flattenChunks:$N};let v5=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{v5=!1}const Up=new Uint8Array(256);for(let e=0;e<256;e++)Up[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Up[254]=Up[254]=1;var YN=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let r,t,i,l,f,c=e.length,h=0;for(l=0;l<c;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),h+=t<128?1:t<2048?2:t<65536?3:4;for(r=new Uint8Array(h),f=0,l=0;f<h;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),t<128?r[f++]=t:t<2048?(r[f++]=192|t>>>6,r[f++]=128|t&63):t<65536?(r[f++]=224|t>>>12,r[f++]=128|t>>>6&63,r[f++]=128|t&63):(r[f++]=240|t>>>18,r[f++]=128|t>>>12&63,r[f++]=128|t>>>6&63,r[f++]=128|t&63);return r};const qN=(e,r)=>{if(r<65534&&e.subarray&&v5)return String.fromCharCode.apply(null,e.length===r?e:e.subarray(0,r));let t="";for(let i=0;i<r;i++)t+=String.fromCharCode(e[i]);return t};var GN=(e,r)=>{const t=r||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,r));let i,l;const f=new Array(t*2);for(l=0,i=0;i<t;){let c=e[i++];if(c<128){f[l++]=c;continue}let h=Up[c];if(h>4){f[l++]=65533,i+=h-1;continue}for(c&=h===2?31:h===3?15:7;h>1&&i<t;)c=c<<6|e[i++]&63,h--;if(h>1){f[l++]=65533;continue}c<65536?f[l++]=c:(c-=65536,f[l++]=55296|c>>10&1023,f[l++]=56320|c&1023)}return qN(f,l)},KN=(e,r)=>{r=r||e.length,r>e.length&&(r=e.length);let t=r-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?r:t+Up[e[t]]>r?t:r},jp={string2buf:YN,buf2string:GN,utf8border:KN};function WN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var m5=WN;const g5=Object.prototype.toString,{Z_NO_FLUSH:QN,Z_SYNC_FLUSH:ZN,Z_FULL_FLUSH:XN,Z_FINISH:JN,Z_OK:yg,Z_STREAM_END:eM,Z_DEFAULT_COMPRESSION:tM,Z_DEFAULT_STRATEGY:nM,Z_DEFLATED:rM}=xc;function Ip(e){this.options=gg.assign({level:tM,method:rM,chunkSize:16384,windowBits:15,memLevel:8,strategy:nM},e||{});let r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m5,this.strm.avail_out=0;let t=zp.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==yg)throw new Error(yc[t]);if(r.header&&zp.deflateSetHeader(this.strm,r.header),r.dictionary){let i;if(typeof r.dictionary=="string"?i=jp.string2buf(r.dictionary):g5.call(r.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(r.dictionary):i=r.dictionary,t=zp.deflateSetDictionary(this.strm,i),t!==yg)throw new Error(yc[t]);this._dict_set=!0}}Ip.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize;let l,f;if(this.ended)return!1;for(r===~~r?f=r:f=r===!0?JN:QN,typeof e=="string"?t.input=jp.string2buf(e):g5.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(f===ZN||f===XN)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(l=zp.deflate(t,f),l===eM)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),l=zp.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===yg;if(t.avail_out===0){this.onData(t.output);continue}if(f>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},Ip.prototype.onData=function(e){this.chunks.push(e)},Ip.prototype.onEnd=function(e){e===yg&&(this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s2(e,r){const t=new Ip(r);if(t.push(e,!0),t.err)throw t.msg||yc[t.err];return t.result}function aM(e,r){return r=r||{},r.raw=!0,s2(e,r)}function iM(e,r){return r=r||{},r.gzip=!0,s2(e,r)}var oM=Ip,lM=s2,sM=aM,uM=iM,cM=xc,fM={Deflate:oM,deflate:lM,deflateRaw:sM,gzip:uM,constants:cM};const xg=16209,dM=16191;var pM=function(r,t){let i,l,f,c,h,m,d,g,C,b,x,_,k,E,A,T,D,R,N,z,M,I,Y,B;const U=r.state;i=r.next_in,Y=r.input,l=i+(r.avail_in-5),f=r.next_out,B=r.output,c=f-(t-r.avail_out),h=f+(r.avail_out-257),m=U.dmax,d=U.wsize,g=U.whave,C=U.wnext,b=U.window,x=U.hold,_=U.bits,k=U.lencode,E=U.distcode,A=(1<<U.lenbits)-1,T=(1<<U.distbits)-1;e:do{_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=k[x&A];t:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R===0)B[f++]=D&65535;else if(R&16){N=D&65535,R&=15,R&&(_<R&&(x+=Y[i++]<<_,_+=8),N+=x&(1<<R)-1,x>>>=R,_-=R),_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=E[x&T];n:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R&16){if(z=D&65535,R&=15,_<R&&(x+=Y[i++]<<_,_+=8,_<R&&(x+=Y[i++]<<_,_+=8)),z+=x&(1<<R)-1,z>m){r.msg="invalid distance too far back",U.mode=xg;break e}if(x>>>=R,_-=R,R=f-c,z>R){if(R=z-R,R>g&&U.sane){r.msg="invalid distance too far back",U.mode=xg;break e}if(M=0,I=b,C===0){if(M+=d-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}else if(C<R){if(M+=d+C-R,R-=C,R<N){N-=R;do B[f++]=b[M++];while(--R);if(M=0,C<N){R=C,N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}}else if(M+=C-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}for(;N>2;)B[f++]=I[M++],B[f++]=I[M++],B[f++]=I[M++],N-=3;N&&(B[f++]=I[M++],N>1&&(B[f++]=I[M++]))}else{M=f-z;do B[f++]=B[M++],B[f++]=B[M++],B[f++]=B[M++],N-=3;while(N>2);N&&(B[f++]=B[M++],N>1&&(B[f++]=B[M++]))}}else if(R&64){r.msg="invalid distance code",U.mode=xg;break e}else{D=E[(D&65535)+(x&(1<<R)-1)];continue n}break}}else if(R&64)if(R&32){U.mode=dM;break e}else{r.msg="invalid literal/length code",U.mode=xg;break e}else{D=k[(D&65535)+(x&(1<<R)-1)];continue t}break}}while(i<l&&f<h);N=_>>3,i-=N,_-=N<<3,x&=(1<<_)-1,r.next_in=i,r.next_out=f,r.avail_in=i<l?5+(l-i):5-(i-l),r.avail_out=f<h?257+(h-f):257-(f-h),U.hold=x,U.bits=_};const sd=15,y5=852,x5=592,b5=0,u2=1,C5=2,hM=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),vM=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),mM=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),gM=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Hp=(e,r,t,i,l,f,c,h)=>{const m=h.bits;let d=0,g=0,C=0,b=0,x=0,_=0,k=0,E=0,A=0,T=0,D,R,N,z,M,I=null,Y;const B=new Uint16Array(sd+1),U=new Uint16Array(sd+1);let P=null,H,V,G;for(d=0;d<=sd;d++)B[d]=0;for(g=0;g<i;g++)B[r[t+g]]++;for(x=m,b=sd;b>=1&&B[b]===0;b--);if(x>b&&(x=b),b===0)return l[f++]=1<<24|64<<16|0,l[f++]=1<<24|64<<16|0,h.bits=1,0;for(C=1;C<b&&B[C]===0;C++);for(x<C&&(x=C),E=1,d=1;d<=sd;d++)if(E<<=1,E-=B[d],E<0)return-1;if(E>0&&(e===b5||b!==1))return-1;for(U[1]=0,d=1;d<sd;d++)U[d+1]=U[d]+B[d];for(g=0;g<i;g++)r[t+g]!==0&&(c[U[r[t+g]]++]=g);if(e===b5?(I=P=c,Y=20):e===u2?(I=hM,P=vM,Y=257):(I=mM,P=gM,Y=0),T=0,g=0,d=C,M=f,_=x,k=0,N=-1,A=1<<x,z=A-1,e===u2&&A>y5||e===C5&&A>x5)return 1;for(;;){H=d-k,c[g]+1<Y?(V=0,G=c[g]):c[g]>=Y?(V=P[c[g]-Y],G=I[c[g]-Y]):(V=32+64,G=0),D=1<<d-k,R=1<<_,C=R;do R-=D,l[M+(T>>k)+R]=H<<24|V<<16|G|0;while(R!==0);for(D=1<<d-1;T&D;)D>>=1;if(D!==0?(T&=D-1,T+=D):T=0,g++,--B[d]===0){if(d===b)break;d=r[t+c[g]]}if(d>x&&(T&z)!==N){for(k===0&&(k=x),M+=C,_=d-k,E=1<<_;_+k<b&&(E-=B[_+k],!(E<=0));)_++,E<<=1;if(A+=1<<_,e===u2&&A>y5||e===C5&&A>x5)return 1;N=T&z,l[N]=x<<24|_<<16|M-f|0}}return T!==0&&(l[M+T]=d-k<<24|64<<16|0),h.bits=x,0};const yM=0,w5=1,_5=2,{Z_FINISH:S5,Z_BLOCK:xM,Z_TREES:bg,Z_OK:_c,Z_STREAM_END:bM,Z_NEED_DICT:CM,Z_STREAM_ERROR:Xi,Z_DATA_ERROR:E5,Z_MEM_ERROR:D5,Z_BUF_ERROR:wM,Z_DEFLATED:k5}=xc,Cg=16180,T5=16181,A5=16182,O5=16183,R5=16184,F5=16185,N5=16186,M5=16187,P5=16188,B5=16189,wg=16190,is=16191,c2=16192,L5=16193,f2=16194,z5=16195,U5=16196,j5=16197,I5=16198,_g=16199,Sg=16200,H5=16201,V5=16202,$5=16203,Y5=16204,q5=16205,d2=16206,G5=16207,K5=16208,er=16209,W5=16210,Q5=16211,_M=852,SM=592,EM=15,Z5=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function DM(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Sc=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.mode<Cg||r.mode>Q5?1:0},X5=e=>{if(Sc(e))return Xi;const r=e.state;return e.total_in=e.total_out=r.total=0,e.msg="",r.wrap&&(e.adler=r.wrap&1),r.mode=Cg,r.last=0,r.havedict=0,r.flags=-1,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new Int32Array(_M),r.distcode=r.distdyn=new Int32Array(SM),r.sane=1,r.back=-1,_c},J5=e=>{if(Sc(e))return Xi;const r=e.state;return r.wsize=0,r.whave=0,r.wnext=0,X5(e)},e6=(e,r)=>{let t;if(Sc(e))return Xi;const i=e.state;return r<0?(t=0,r=-r):(t=(r>>4)+5,r<48&&(r&=15)),r&&(r<8||r>15)?Xi:(i.window!==null&&i.wbits!==r&&(i.window=null),i.wrap=t,i.wbits=r,J5(e))},t6=(e,r)=>{if(!e)return Xi;const t=new DM;e.state=t,t.strm=e,t.window=null,t.mode=Cg;const i=e6(e,r);return i!==_c&&(e.state=null),i},kM=e=>t6(e,EM);let n6=!0,p2,h2;const TM=e=>{if(n6){p2=new Int32Array(512),h2=new Int32Array(32);let r=0;for(;r<144;)e.lens[r++]=8;for(;r<256;)e.lens[r++]=9;for(;r<280;)e.lens[r++]=7;for(;r<288;)e.lens[r++]=8;for(Hp(w5,e.lens,0,288,p2,0,e.work,{bits:9}),r=0;r<32;)e.lens[r++]=5;Hp(_5,e.lens,0,32,h2,0,e.work,{bits:5}),n6=!1}e.lencode=p2,e.lenbits=9,e.distcode=h2,e.distbits=5},r6=(e,r,t,i)=>{let l;const f=e.state;return f.window===null&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new Uint8Array(f.wsize)),i>=f.wsize?(f.window.set(r.subarray(t-f.wsize,t),0),f.wnext=0,f.whave=f.wsize):(l=f.wsize-f.wnext,l>i&&(l=i),f.window.set(r.subarray(t-i,t-i+l),f.wnext),i-=l,i?(f.window.set(r.subarray(t-i,t),0),f.wnext=i,f.whave=f.wsize):(f.wnext+=l,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=l))),0},AM=(e,r)=>{let t,i,l,f,c,h,m,d,g,C,b,x,_,k,E=0,A,T,D,R,N,z,M,I;const Y=new Uint8Array(4);let B,U;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Sc(e)||!e.output||!e.input&&e.avail_in!==0)return Xi;t=e.state,t.mode===is&&(t.mode=c2),c=e.next_out,l=e.output,m=e.avail_out,f=e.next_in,i=e.input,h=e.avail_in,d=t.hold,g=t.bits,C=h,b=m,I=_c;e:for(;;)switch(t.mode){case Cg:if(t.wrap===0){t.mode=c2;break}for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.wrap&2&&d===35615){t.wbits===0&&(t.wbits=15),t.check=0,Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0),d=0,g=0,t.mode=T5;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",t.mode=er;break}if((d&15)!==k5){e.msg="unknown compression method",t.mode=er;break}if(d>>>=4,g-=4,M=(d&15)+8,t.wbits===0&&(t.wbits=M),M>15||M>t.wbits){e.msg="invalid window size",t.mode=er;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=d&512?B5:is,d=0,g=0;break;case T5:for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.flags=d,(t.flags&255)!==k5){e.msg="unknown compression method",t.mode=er;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=er;break}t.head&&(t.head.text=d>>8&1),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0)),d=0,g=0,t.mode=A5;case A5:for(;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.head&&(t.head.time=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,Y[2]=d>>>16&255,Y[3]=d>>>24&255,t.check=Jr(t.check,Y,4,0)),d=0,g=0,t.mode=O5;case O5:for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.head&&(t.head.xflags=d&255,t.head.os=d>>8),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0)),d=0,g=0,t.mode=R5;case R5:if(t.flags&1024){for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.length=d,t.head&&(t.head.extra_len=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0)),d=0,g=0}else t.head&&(t.head.extra=null);t.mode=F5;case F5:if(t.flags&1024&&(x=t.length,x>h&&(x=h),x&&(t.head&&(M=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(f,f+x),M)),t.flags&512&&t.wrap&4&&(t.check=Jr(t.check,i,x,f)),h-=x,f+=x,t.length-=x),t.length))break e;t.length=0,t.mode=N5;case N5:if(t.flags&2048){if(h===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.name+=String.fromCharCode(M));while(M&&x<h);if(t.flags&512&&t.wrap&4&&(t.check=Jr(t.check,i,x,f)),h-=x,f+=x,M)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=M5;case M5:if(t.flags&4096){if(h===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.comment+=String.fromCharCode(M));while(M&&x<h);if(t.flags&512&&t.wrap&4&&(t.check=Jr(t.check,i,x,f)),h-=x,f+=x,M)break e}else t.head&&(t.head.comment=null);t.mode=P5;case P5:if(t.flags&512){for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.wrap&4&&d!==(t.check&65535)){e.msg="header crc mismatch",t.mode=er;break}d=0,g=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=is;break;case B5:for(;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}e.adler=t.check=Z5(d),d=0,g=0,t.mode=wg;case wg:if(t.havedict===0)return e.next_out=c,e.avail_out=m,e.next_in=f,e.avail_in=h,t.hold=d,t.bits=g,CM;e.adler=t.check=1,t.mode=is;case is:if(r===xM||r===bg)break e;case c2:if(t.last){d>>>=g&7,g-=g&7,t.mode=d2;break}for(;g<3;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}switch(t.last=d&1,d>>>=1,g-=1,d&3){case 0:t.mode=L5;break;case 1:if(TM(t),t.mode=_g,r===bg){d>>>=2,g-=2;break e}break;case 2:t.mode=U5;break;case 3:e.msg="invalid block type",t.mode=er}d>>>=2,g-=2;break;case L5:for(d>>>=g&7,g-=g&7;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",t.mode=er;break}if(t.length=d&65535,d=0,g=0,t.mode=f2,r===bg)break e;case f2:t.mode=z5;case z5:if(x=t.length,x){if(x>h&&(x=h),x>m&&(x=m),x===0)break e;l.set(i.subarray(f,f+x),c),h-=x,f+=x,m-=x,c+=x,t.length-=x;break}t.mode=is;break;case U5:for(;g<14;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.nlen=(d&31)+257,d>>>=5,g-=5,t.ndist=(d&31)+1,d>>>=5,g-=5,t.ncode=(d&15)+4,d>>>=4,g-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=er;break}t.have=0,t.mode=j5;case j5:for(;t.have<t.ncode;){for(;g<3;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.lens[P[t.have++]]=d&7,d>>>=3,g-=3}for(;t.have<19;)t.lens[P[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,B={bits:t.lenbits},I=Hp(yM,t.lens,0,19,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid code lengths set",t.mode=er;break}t.have=0,t.mode=I5;case I5:for(;t.have<t.nlen+t.ndist;){for(;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(D<16)d>>>=A,g-=A,t.lens[t.have++]=D;else{if(D===16){for(U=A+2;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(d>>>=A,g-=A,t.have===0){e.msg="invalid bit length repeat",t.mode=er;break}M=t.lens[t.have-1],x=3+(d&3),d>>>=2,g-=2}else if(D===17){for(U=A+3;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=A,g-=A,M=0,x=3+(d&7),d>>>=3,g-=3}else{for(U=A+7;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=A,g-=A,M=0,x=11+(d&127),d>>>=7,g-=7}if(t.have+x>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=er;break}for(;x--;)t.lens[t.have++]=M}}if(t.mode===er)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=er;break}if(t.lenbits=9,B={bits:t.lenbits},I=Hp(w5,t.lens,0,t.nlen,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid literal/lengths set",t.mode=er;break}if(t.distbits=6,t.distcode=t.distdyn,B={bits:t.distbits},I=Hp(_5,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,B),t.distbits=B.bits,I){e.msg="invalid distances set",t.mode=er;break}if(t.mode=_g,r===bg)break e;case _g:t.mode=Sg;case Sg:if(h>=6&&m>=258){e.next_out=c,e.avail_out=m,e.next_in=f,e.avail_in=h,t.hold=d,t.bits=g,pM(e,b),c=e.next_out,l=e.output,m=e.avail_out,f=e.next_in,i=e.input,h=e.avail_in,d=t.hold,g=t.bits,t.mode===is&&(t.back=-1);break}for(t.back=0;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(T&&!(T&240)){for(R=A,N=T,z=D;E=t.lencode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=R,g-=R,t.back+=R}if(d>>>=A,g-=A,t.back+=A,t.length=D,T===0){t.mode=q5;break}if(T&32){t.back=-1,t.mode=is;break}if(T&64){e.msg="invalid literal/length code",t.mode=er;break}t.extra=T&15,t.mode=H5;case H5:if(t.extra){for(U=t.extra;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.length+=d&(1<<t.extra)-1,d>>>=t.extra,g-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=V5;case V5:for(;E=t.distcode[d&(1<<t.distbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(!(T&240)){for(R=A,N=T,z=D;E=t.distcode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=R,g-=R,t.back+=R}if(d>>>=A,g-=A,t.back+=A,T&64){e.msg="invalid distance code",t.mode=er;break}t.offset=D,t.extra=T&15,t.mode=$5;case $5:if(t.extra){for(U=t.extra;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.offset+=d&(1<<t.extra)-1,d>>>=t.extra,g-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=er;break}t.mode=Y5;case Y5:if(m===0)break e;if(x=b-m,t.offset>x){if(x=t.offset-x,x>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=er;break}x>t.wnext?(x-=t.wnext,_=t.wsize-x):_=t.wnext-x,x>t.length&&(x=t.length),k=t.window}else k=l,_=c-t.offset,x=t.length;x>m&&(x=m),m-=x,t.length-=x;do l[c++]=k[_++];while(--x);t.length===0&&(t.mode=Sg);break;case q5:if(m===0)break e;l[c++]=t.length,m--,t.mode=Sg;break;case d2:if(t.wrap){for(;g<32;){if(h===0)break e;h--,d|=i[f++]<<g,g+=8}if(b-=m,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Jr(t.check,l,b,c-b):Np(t.check,l,b,c-b)),b=m,t.wrap&4&&(t.flags?d:Z5(d))!==t.check){e.msg="incorrect data check",t.mode=er;break}d=0,g=0}t.mode=G5;case G5:if(t.wrap&&t.flags){for(;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.wrap&4&&d!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=er;break}d=0,g=0}t.mode=K5;case K5:I=bM;break e;case er:I=E5;break e;case W5:return D5;case Q5:default:return Xi}return e.next_out=c,e.avail_out=m,e.next_in=f,e.avail_in=h,t.hold=d,t.bits=g,(t.wsize||b!==e.avail_out&&t.mode<er&&(t.mode<d2||r!==S5))&&r6(e,e.output,e.next_out,b-e.avail_out),C-=e.avail_in,b-=e.avail_out,e.total_in+=C,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Jr(t.check,l,b,e.next_out-b):Np(t.check,l,b,e.next_out-b)),e.data_type=t.bits+(t.last?64:0)+(t.mode===is?128:0)+(t.mode===_g||t.mode===f2?256:0),(C===0&&b===0||r===S5)&&I===_c&&(I=wM),I},OM=e=>{if(Sc(e))return Xi;let r=e.state;return r.window&&(r.window=null),e.state=null,_c},RM=(e,r)=>{if(Sc(e))return Xi;const t=e.state;return t.wrap&2?(t.head=r,r.done=!1,_c):Xi},FM=(e,r)=>{const t=r.length;let i,l,f;return Sc(e)||(i=e.state,i.wrap!==0&&i.mode!==wg)?Xi:i.mode===wg&&(l=1,l=Np(l,r,t,0),l!==i.check)?E5:(f=r6(e,r,t,t),f?(i.mode=W5,D5):(i.havedict=1,_c))};var NM=J5,MM=e6,PM=X5,BM=kM,LM=t6,zM=AM,UM=OM,jM=RM,IM=FM,HM="pako inflate (from Nodeca project)",os={inflateReset:NM,inflateReset2:MM,inflateResetKeep:PM,inflateInit:BM,inflateInit2:LM,inflate:zM,inflateEnd:UM,inflateGetHeader:jM,inflateSetDictionary:IM,inflateInfo:HM};function VM(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var $M=VM;const a6=Object.prototype.toString,{Z_NO_FLUSH:YM,Z_FINISH:qM,Z_OK:Vp,Z_STREAM_END:v2,Z_NEED_DICT:m2,Z_STREAM_ERROR:GM,Z_DATA_ERROR:i6,Z_MEM_ERROR:KM}=xc;function $p(e){this.options=gg.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)&&(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(r.windowBits&15||(r.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m5,this.strm.avail_out=0;let t=os.inflateInit2(this.strm,r.windowBits);if(t!==Vp)throw new Error(yc[t]);if(this.header=new $M,os.inflateGetHeader(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=jp.string2buf(r.dictionary):a6.call(r.dictionary)==="[object ArrayBuffer]"&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(t=os.inflateSetDictionary(this.strm,r.dictionary),t!==Vp)))throw new Error(yc[t])}$p.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize,l=this.options.dictionary;let f,c,h;if(this.ended)return!1;for(r===~~r?c=r:c=r===!0?qM:YM,a6.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),f=os.inflate(t,c),f===m2&&l&&(f=os.inflateSetDictionary(t,l),f===Vp?f=os.inflate(t,c):f===i6&&(f=m2));t.avail_in>0&&f===v2&&t.state.wrap>0&&e[t.next_in]!==0;)os.inflateReset(t),f=os.inflate(t,c);switch(f){case GM:case i6:case m2:case KM:return this.onEnd(f),this.ended=!0,!1}if(h=t.avail_out,t.next_out&&(t.avail_out===0||f===v2))if(this.options.to==="string"){let m=jp.utf8border(t.output,t.next_out),d=t.next_out-m,g=jp.buf2string(t.output,m);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(m,m+d),0),this.onData(g)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(f===Vp&&h===0)){if(f===v2)return f=os.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},$p.prototype.onData=function(e){this.chunks.push(e)},$p.prototype.onEnd=function(e){e===Vp&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g2(e,r){const t=new $p(r);if(t.push(e),t.err)throw t.msg||yc[t.err];return t.result}function WM(e,r){return r=r||{},r.raw=!0,g2(e,r)}var QM=$p,ZM=g2,XM=WM,JM=g2,eP=xc,tP={Inflate:QM,inflate:ZM,inflateRaw:XM,ungzip:JM,constants:eP};const{Deflate:nP,deflate:rP,deflateRaw:aP,gzip:iP}=fM,{Inflate:oP,inflate:lP,inflateRaw:sP,ungzip:uP}=tP;var cP=nP,fP=rP,dP=aP,pP=iP,hP=oP,vP=lP,mP=sP,gP=uP,yP=xc,xP={Deflate:cP,deflate:fP,deflateRaw:dP,gzip:pP,Inflate:hP,inflate:vP,inflateRaw:mP,ungzip:gP,constants:yP},ze={};ze.toRGBA8=function(e){var r=e.width,t=e.height;if(e.tabs.acTL==null)return[ze.toRGBA8.decodeImage(e.data,r,t,e).buffer];var i=[];e.frames[0].data==null&&(e.frames[0].data=e.data);for(var l=r*t*4,f=new Uint8Array(l),c=new Uint8Array(l),h=new Uint8Array(l),m=0;m<e.frames.length;m++){var d=e.frames[m],g=d.rect.x,C=d.rect.y,b=d.rect.width,x=d.rect.height,_=ze.toRGBA8.decodeImage(d.data,b,x,e);if(m!=0)for(var k=0;k<l;k++)h[k]=f[k];if(d.blend==0?ze._copyTile(_,b,x,f,r,t,g,C,0):d.blend==1&&ze._copyTile(_,b,x,f,r,t,g,C,1),i.push(f.buffer.slice(0)),d.dispose!=0){if(d.dispose==1)ze._copyTile(c,b,x,f,r,t,g,C,0);else if(d.dispose==2)for(var k=0;k<l;k++)f[k]=h[k]}}return i},ze.toRGBA8.decodeImage=function(e,r,t,i){var l=r*t,f=ze.decode._getBPP(i),c=Math.ceil(r*f/8),h=new Uint8Array(l*4),m=new Uint32Array(h.buffer),d=i.ctype,g=i.depth,C=ze._bin.readUshort;if(d==6){var b=l<<2;if(g==8)for(var x=0;x<b;x+=4)h[x]=e[x],h[x+1]=e[x+1],h[x+2]=e[x+2],h[x+3]=e[x+3];if(g==16)for(var x=0;x<b;x++)h[x]=e[x<<1]}else if(d==2){var _=i.tabs.tRNS;if(_==null){if(g==8)for(var x=0;x<l;x++){var k=x*3;m[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k]}if(g==16)for(var x=0;x<l;x++){var k=x*6;m[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k]}}else{var E=_[0],A=_[1],T=_[2];if(g==8)for(var x=0;x<l;x++){var D=x<<2,k=x*3;m[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k],e[k]==E&&e[k+1]==A&&e[k+2]==T&&(h[D+3]=0)}if(g==16)for(var x=0;x<l;x++){var D=x<<2,k=x*6;m[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k],C(e,k)==E&&C(e,k+2)==A&&C(e,k+4)==T&&(h[D+3]=0)}}}else if(d==3){var R=i.tabs.PLTE,N=i.tabs.tRNS,z=N?N.length:0;if(g==1)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>3)]>>7-((x&7)<<0)&1,U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}if(g==2)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>2)]>>6-((x&3)<<1)&3,U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}if(g==4)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>1)]>>4-((x&1)<<2)&15,U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}if(g==8)for(var x=0;x<l;x++){var D=x<<2,B=e[x],U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}}else if(d==4){if(g==8)for(var x=0;x<l;x++){var D=x<<2,P=x<<1,H=e[P];h[D]=H,h[D+1]=H,h[D+2]=H,h[D+3]=e[P+1]}if(g==16)for(var x=0;x<l;x++){var D=x<<2,P=x<<2,H=e[P];h[D]=H,h[D+1]=H,h[D+2]=H,h[D+3]=e[P+2]}}else if(d==0)for(var E=i.tabs.tRNS?i.tabs.tRNS:-1,M=0;M<t;M++){var V=M*c,G=M*r;if(g==1)for(var ee=0;ee<r;ee++){var H=255*(e[V+(ee>>>3)]>>>7-(ee&7)&1),ne=H==E*255?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==2)for(var ee=0;ee<r;ee++){var H=85*(e[V+(ee>>>2)]>>>6-((ee&3)<<1)&3),ne=H==E*85?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==4)for(var ee=0;ee<r;ee++){var H=17*(e[V+(ee>>>1)]>>>4-((ee&1)<<2)&15),ne=H==E*17?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==8)for(var ee=0;ee<r;ee++){var H=e[V+ee],ne=H==E?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==16)for(var ee=0;ee<r;ee++){var H=e[V+(ee<<1)],ne=C(e,V+(ee<<x))==E?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}}return h},ze.decode=function(e){for(var r=new Uint8Array(e),t=8,i=ze._bin,l=i.readUshort,f=i.readUint,c={tabs:{},frames:[]},h=new Uint8Array(r.length),m=0,d,g=0,C=[137,80,78,71,13,10,26,10],b=0;b<8;b++)if(r[b]!=C[b])throw"The input is not a PNG file!";for(;t<r.length;){var x=i.readUint(r,t);t+=4;var _=i.readASCII(r,t,4);if(t+=4,_=="IHDR")ze.decode._IHDR(r,t,c);else if(_=="CgBI")c.tabs[_]=r.slice(t,t+4);else if(_=="IDAT"){for(var b=0;b<x;b++)h[m+b]=r[t+b];m+=x}else if(_=="acTL")c.tabs[_]={num_frames:f(r,t),num_plays:f(r,t+4)},d=new Uint8Array(r.length);else if(_=="fcTL"){if(g!=0){var k=c.frames[c.frames.length-1];k.data=ze.decode._decompress(c,d.slice(0,g),k.rect.width,k.rect.height),g=0}var E={x:f(r,t+12),y:f(r,t+16),width:f(r,t+4),height:f(r,t+8)},A=l(r,t+22);A=l(r,t+20)/(A==0?100:A);var T={rect:E,delay:Math.round(A*1e3),dispose:r[t+24],blend:r[t+25]};c.frames.push(T)}else if(_=="fdAT"){for(var b=0;b<x-4;b++)d[g+b]=r[t+b+4];g+=x-4}else if(_=="pHYs")c.tabs[_]=[i.readUint(r,t),i.readUint(r,t+4),r[t+8]];else if(_=="cHRM"){c.tabs[_]=[];for(var b=0;b<8;b++)c.tabs[_].push(i.readUint(r,t+b*4))}else if(_=="tEXt"||_=="zTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=i.nextZero(r,t),R=i.readASCII(r,t,D-t),N,z=t+x-D-1;if(_=="tEXt")N=i.readASCII(r,D+1,z);else{var M=ze.decode._inflate(r.slice(D+2,D+2+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="iTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=0,I=t;D=i.nextZero(r,I);var R=i.readASCII(r,I,D-I);I=D+1;var Y=r[I];r[I+1],I+=2,D=i.nextZero(r,I),i.readASCII(r,I,D-I),I=D+1,D=i.nextZero(r,I),i.readUTF8(r,I,D-I),I=D+1;var N,z=x-(I-t);if(Y==0)N=i.readUTF8(r,I,z);else{var M=ze.decode._inflate(r.slice(I,I+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="PLTE")c.tabs[_]=i.readBytes(r,t,x);else if(_=="hIST"){var B=c.tabs.PLTE.length/3;c.tabs[_]=[];for(var b=0;b<B;b++)c.tabs[_].push(l(r,t+b*2))}else if(_=="tRNS")c.ctype==3?c.tabs[_]=i.readBytes(r,t,x):c.ctype==0?c.tabs[_]=l(r,t):c.ctype==2&&(c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]);else if(_=="gAMA")c.tabs[_]=i.readUint(r,t)/1e5;else if(_=="sRGB")c.tabs[_]=r[t];else if(_=="bKGD")c.ctype==0||c.ctype==4?c.tabs[_]=[l(r,t)]:c.ctype==2||c.ctype==6?c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]:c.ctype==3&&(c.tabs[_]=r[t]);else if(_=="IEND")break;t+=x,i.readUint(r,t),t+=4}if(g!=0){var k=c.frames[c.frames.length-1];k.data=ze.decode._decompress(c,d.slice(0,g),k.rect.width,k.rect.height),g=0}return c.data=ze.decode._decompress(c,h,c.width,c.height),delete c.compress,delete c.interlace,delete c.filter,c},ze.decode._decompress=function(e,r,t,i){var l=ze.decode._getBPP(e),f=Math.ceil(t*l/8),c=new Uint8Array((f+1+e.interlace)*i);return e.tabs.CgBI?r=ze.inflateRaw(r,c):r=ze.decode._inflate(r,c),e.interlace==0?r=ze.decode._filterZero(r,e,0,t,i):e.interlace==1&&(r=ze.decode._readInterlace(r,e)),r},ze.decode._inflate=function(e,r){var t=ze.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),r);return t},ze.inflateRaw=function(){var e={};return e.H={},e.H.N=function(r,t){var i=Uint8Array,l=0,f=0,c=0,h=0,m=0,d=0,g=0,C=0,b=0,x,_;if(r[0]==3&&r[1]==0)return t||new i(0);var k=e.H,E=k.b,A=k.e,T=k.R,D=k.n,R=k.A,N=k.Z,z=k.m,M=t==null;for(M&&(t=new i(r.length>>>2<<3));l==0;){if(l=E(r,b,1),f=E(r,b+1,2),b+=3,f==0){b&7&&(b+=8-(b&7));var I=(b>>>3)+4,Y=r[I-4]|r[I-3]<<8;M&&(t=e.H.W(t,C+Y)),t.set(new i(r.buffer,r.byteOffset+I,Y),C),b=I+Y<<3,C+=Y;continue}if(M&&(t=e.H.W(t,C+(1<<17))),f==1&&(x=z.J,_=z.h,d=(1<<9)-1,g=(1<<5)-1),f==2){c=A(r,b,5)+257,h=A(r,b+5,5)+1,m=A(r,b+10,4)+4,b+=14;for(var B=1,U=0;U<38;U+=2)z.Q[U]=0,z.Q[U+1]=0;for(var U=0;U<m;U++){var P=A(r,b+U*3,3);z.Q[(z.X[U]<<1)+1]=P,P>B&&(B=P)}b+=3*m,D(z.Q,B),R(z.Q,B,z.u),x=z.w,_=z.d,b=T(z.u,(1<<B)-1,c+h,r,b,z.v);var H=k.V(z.v,0,c,z.C);d=(1<<H)-1;var V=k.V(z.v,c,h,z.D);g=(1<<V)-1,D(z.C,H),R(z.C,H,x),D(z.D,V),R(z.D,V,_)}for(;;){var G=x[N(r,b)&d];b+=G&15;var ee=G>>>4;if(!(ee>>>8))t[C++]=ee;else{if(ee==256)break;var ne=C+ee-254;if(ee>264){var $=z.q[ee-257];ne=C+($>>>3)+A(r,b,$&7),b+=$&7}var X=_[N(r,b)&g];b+=X&15;var Z=X>>>4,q=z.c[Z],te=(q>>>4)+E(r,b,q&15);for(b+=q&15;C<ne;)t[C]=t[C++-te],t[C]=t[C++-te],t[C]=t[C++-te],t[C]=t[C++-te];C=ne}}}return t.length==C?t:t.slice(0,C)},e.H.W=function(r,t){var i=r.length;if(t<=i)return r;var l=new Uint8Array(i<<1);return l.set(r,0),l},e.H.R=function(r,t,i,l,f,c){for(var h=e.H.e,m=e.H.Z,d=0;d<i;){var g=r[m(l,f)&t];f+=g&15;var C=g>>>4;if(C<=15)c[d]=C,d++;else{var b=0,x=0;C==16?(x=3+h(l,f,2),f+=2,b=c[d-1]):C==17?(x=3+h(l,f,3),f+=3):C==18&&(x=11+h(l,f,7),f+=7);for(var _=d+x;d<_;)c[d]=b,d++}}return f},e.H.V=function(r,t,i,l){for(var f=0,c=0,h=l.length>>>1;c<i;){var m=r[c+t];l[c<<1]=0,l[(c<<1)+1]=m,m>f&&(f=m),c++}for(;c<h;)l[c<<1]=0,l[(c<<1)+1]=0,c++;return f},e.H.n=function(r,t){for(var i=e.H.m,l=r.length,f,c,h,m,d,g=i.j,m=0;m<=t;m++)g[m]=0;for(m=1;m<l;m+=2)g[r[m]]++;var C=i.K;for(f=0,g[0]=0,c=1;c<=t;c++)f=f+g[c-1]<<1,C[c]=f;for(h=0;h<l;h+=2)d=r[h+1],d!=0&&(r[h]=C[d],C[d]++)},e.H.A=function(r,t,i){for(var l=r.length,f=e.H.m,c=f.r,h=0;h<l;h+=2)if(r[h+1]!=0)for(var m=h>>1,d=r[h+1],g=m<<4|d,C=t-d,b=r[h]<<C,x=b+(1<<C);b!=x;){var _=c[b]>>>15-t;i[_]=g,b++}},e.H.l=function(r,t){for(var i=e.H.m.r,l=15-t,f=0;f<r.length;f+=2){var c=r[f]<<t-r[f+1];r[f]=i[c]>>>l}},e.H.M=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8},e.H.I=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8,r[l+2]|=i>>>16},e.H.e=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8)>>>(t&7)&(1<<i)-1},e.H.b=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)&(1<<i)-1},e.H.Z=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16|r[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){var r=Uint16Array,t=Uint32Array;return{K:new r(16),j:new r(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new r(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new r(512),_:[],h:new r(32),$:[],w:new r(32768),C:[],v:[],d:new r(32768),D:[],u:new r(512),Q:[],r:new r(1<<15),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new r(1<<16),g:new r(1<<15)}}(),function(){for(var r=e.H.m,t=1<<15,i=0;i<t;i++){var l=i;l=(l&2863311530)>>>1|(l&1431655765)<<1,l=(l&3435973836)>>>2|(l&858993459)<<2,l=(l&4042322160)>>>4|(l&252645135)<<4,l=(l&4278255360)>>>8|(l&16711935)<<8,r.r[i]=(l>>>16|l<<16)>>>17}function f(c,h,m){for(;h--!=0;)c.push(0,m)}for(var i=0;i<32;i++)r.q[i]=r.S[i]<<3|r.T[i],r.c[i]=r.p[i]<<4|r.z[i];f(r._,144,8),f(r._,255-143,9),f(r._,279-255,7),f(r._,287-279,8),e.H.n(r._,9),e.H.A(r._,9,r.J),e.H.l(r._,9),f(r.$,32,5),e.H.n(r.$,5),e.H.A(r.$,5,r.h),e.H.l(r.$,5),f(r.Q,19,0),f(r.C,286,0),f(r.D,30,0),f(r.v,320,0)}(),e.H.N}(),ze.decode._readInterlace=function(e,r){for(var t=r.width,i=r.height,l=ze.decode._getBPP(r),f=l>>3,c=Math.ceil(t*l/8),h=new Uint8Array(i*c),m=0,d=[0,0,4,0,2,0,1],g=[0,4,0,2,0,1,0],C=[8,8,8,4,4,2,2],b=[8,8,4,4,2,2,1],x=0;x<7;){for(var _=C[x],k=b[x],E=0,A=0,T=d[x];T<i;)T+=_,A++;for(var D=g[x];D<t;)D+=k,E++;var R=Math.ceil(E*l/8);ze.decode._filterZero(e,r,m,E,A);for(var N=0,z=d[x];z<i;){for(var M=g[x],I=m+N*R<<3;M<t;){if(l==1){var Y=e[I>>3];Y=Y>>7-(I&7)&1,h[z*c+(M>>3)]|=Y<<7-((M&7)<<0)}if(l==2){var Y=e[I>>3];Y=Y>>6-(I&7)&3,h[z*c+(M>>2)]|=Y<<6-((M&3)<<1)}if(l==4){var Y=e[I>>3];Y=Y>>4-(I&7)&15,h[z*c+(M>>1)]|=Y<<4-((M&1)<<2)}if(l>=8)for(var B=z*c+M*f,U=0;U<f;U++)h[B+U]=e[(I>>3)+U];I+=l,M+=k}N++,z+=_}E*A!=0&&(m+=A*(1+R)),x=x+1}return h},ze.decode._getBPP=function(e){var r=[1,null,3,1,2,null,4][e.ctype];return r*e.depth},ze.decode._filterZero=function(e,r,t,i,l){var f=ze.decode._getBPP(r),c=Math.ceil(i*f/8),h=ze.decode._paeth;f=Math.ceil(f/8);var m=0,d=1,g=e[t],C=0;if(g>1&&(e[t]=[0,0,1][g-2]),g==3)for(C=f;C<c;C++)e[C+1]=e[C+1]+(e[C+1-f]>>>1)&255;for(var b=0;b<l;b++)if(m=t+b*c,d=m+b+1,g=e[d-1],C=0,g==0)for(;C<c;C++)e[m+C]=e[d+C];else if(g==1){for(;C<f;C++)e[m+C]=e[d+C];for(;C<c;C++)e[m+C]=e[d+C]+e[m+C-f]}else if(g==2)for(;C<c;C++)e[m+C]=e[d+C]+e[m+C-c];else if(g==3){for(;C<f;C++)e[m+C]=e[d+C]+(e[m+C-c]>>>1);for(;C<c;C++)e[m+C]=e[d+C]+(e[m+C-c]+e[m+C-f]>>>1)}else{for(;C<f;C++)e[m+C]=e[d+C]+h(0,e[m+C-c],0);for(;C<c;C++)e[m+C]=e[d+C]+h(e[m+C-f],e[m+C-c],e[m+C-f-c])}return e},ze.decode._paeth=function(e,r,t){var i=e+r-t,l=i-e,f=i-r,c=i-t;return l*l<=f*f&&l*l<=c*c?e:f*f<=c*c?r:t},ze.decode._IHDR=function(e,r,t){var i=ze._bin;t.width=i.readUint(e,r),r+=4,t.height=i.readUint(e,r),r+=4,t.depth=e[r],r++,t.ctype=e[r],r++,t.compress=e[r],r++,t.filter=e[r],r++,t.interlace=e[r],r++},ze._bin={nextZero:function(e,r){for(;e[r]!=0;)r++;return r},readUshort:function(e,r){return e[r]<<8|e[r+1]},writeUshort:function(e,r,t){e[r]=t>>8&255,e[r+1]=t&255},readUint:function(e,r){return e[r]*(256*256*256)+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=t&255},readASCII:function(e,r,t){for(var i="",l=0;l<t;l++)i+=String.fromCharCode(e[r+l]);return i},writeASCII:function(e,r,t){for(var i=0;i<t.length;i++)e[r+i]=t.charCodeAt(i)},readBytes:function(e,r,t){for(var i=[],l=0;l<t;l++)i.push(e[r+l]);return i},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,r,t){for(var i="",l,f=0;f<t;f++)i+="%"+ze._bin.pad(e[r+f].toString(16));try{l=decodeURIComponent(i)}catch{return ze._bin.readASCII(e,r,t)}return l}},ze._copyTile=function(e,r,t,i,l,f,c,h,m){for(var d=Math.min(r,l),g=Math.min(t,f),C=0,b=0,x=0;x<g;x++)for(var _=0;_<d;_++)if(c>=0&&h>=0?(C=x*r+_<<2,b=(h+x)*l+c+_<<2):(C=(-h+x)*r-c+_<<2,b=x*l+_<<2),m==0)i[b]=e[C],i[b+1]=e[C+1],i[b+2]=e[C+2],i[b+3]=e[C+3];else if(m==1){var k=e[C+3]*.00392156862745098,E=e[C]*k,A=e[C+1]*k,T=e[C+2]*k,D=i[b+3]*(1/255),R=i[b]*D,N=i[b+1]*D,z=i[b+2]*D,M=1-k,I=k+D*M,Y=I==0?0:1/I;i[b+3]=255*I,i[b+0]=(E+R*M)*Y,i[b+1]=(A+N*M)*Y,i[b+2]=(T+z*M)*Y}else if(m==2){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];k==D&&E==R&&A==N&&T==z?(i[b]=0,i[b+1]=0,i[b+2]=0,i[b+3]=0):(i[b]=E,i[b+1]=A,i[b+2]=T,i[b+3]=k)}else if(m==3){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];if(k==D&&E==R&&A==N&&T==z)continue;if(k<220&&D>20)return!1}return!0},ze.encode=function(e,r,t,i,l,f,c){i==null&&(i=0),c==null&&(c=!1);var h=ze.encode.compress(e,r,t,i,[!1,!1,!1,0,c]);return ze.encode.compressPNG(h,-1),ze.encode._main(h,r,t,l,f)},ze.encodeLL=function(e,r,t,i,l,f,c,h){for(var m={ctype:0+(i==1?0:2)+(l==0?0:4),depth:f,frames:[]},d=(i+l)*f,g=d*r,C=0;C<e.length;C++)m.frames.push({rect:{x:0,y:0,width:r,height:t},img:new Uint8Array(e[C]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(g/8)});ze.encode.compressPNG(m,0,!0);var b=ze.encode._main(m,r,t,c,h);return b},ze.encode._main=function(e,r,t,i,l){l==null&&(l={});var f=ze.crc.crc,c=ze._bin.writeUint,h=ze._bin.writeUshort,m=ze._bin.writeASCII,d=8,g=e.frames.length>1,C=!1,b=8+(16+5+4)+(g?20:0);if(l.sRGB!=null&&(b+=8+1+4),l.pHYs!=null&&(b+=8+9+4),e.ctype==3){for(var x=e.plte.length,_=0;_<x;_++)e.plte[_]>>>24!=255&&(C=!0);b+=8+x*3+4+(C?8+x*1+4:0)}for(var k=0;k<e.frames.length;k++){var E=e.frames[k];g&&(b+=38),b+=E.cimg.length+12,k!=0&&(b+=4)}b+=12;for(var A=new Uint8Array(b),T=[137,80,78,71,13,10,26,10],_=0;_<8;_++)A[_]=T[_];if(c(A,d,13),d+=4,m(A,d,"IHDR"),d+=4,c(A,d,r),d+=4,c(A,d,t),d+=4,A[d]=e.depth,d++,A[d]=e.ctype,d++,A[d]=0,d++,A[d]=0,d++,A[d]=0,d++,c(A,d,f(A,d-17,17)),d+=4,l.sRGB!=null&&(c(A,d,1),d+=4,m(A,d,"sRGB"),d+=4,A[d]=l.sRGB,d++,c(A,d,f(A,d-5,5)),d+=4),l.pHYs!=null&&(c(A,d,9),d+=4,m(A,d,"pHYs"),d+=4,c(A,d,l.pHYs[0]),d+=4,c(A,d,l.pHYs[1]),d+=4,A[d]=l.pHYs[2],d++,c(A,d,f(A,d-13,13)),d+=4),g&&(c(A,d,8),d+=4,m(A,d,"acTL"),d+=4,c(A,d,e.frames.length),d+=4,c(A,d,l.loop!=null?l.loop:0),d+=4,c(A,d,f(A,d-12,12)),d+=4),e.ctype==3){var x=e.plte.length;c(A,d,x*3),d+=4,m(A,d,"PLTE"),d+=4;for(var _=0;_<x;_++){var D=_*3,R=e.plte[_],N=R&255,z=R>>>8&255,M=R>>>16&255;A[d+D+0]=N,A[d+D+1]=z,A[d+D+2]=M}if(d+=x*3,c(A,d,f(A,d-x*3-4,x*3+4)),d+=4,C){c(A,d,x),d+=4,m(A,d,"tRNS"),d+=4;for(var _=0;_<x;_++)A[d+_]=e.plte[_]>>>24&255;d+=x,c(A,d,f(A,d-x-4,x+4)),d+=4}}for(var I=0,k=0;k<e.frames.length;k++){var E=e.frames[k];g&&(c(A,d,26),d+=4,m(A,d,"fcTL"),d+=4,c(A,d,I++),d+=4,c(A,d,E.rect.width),d+=4,c(A,d,E.rect.height),d+=4,c(A,d,E.rect.x),d+=4,c(A,d,E.rect.y),d+=4,h(A,d,i[k]),d+=2,h(A,d,1e3),d+=2,A[d]=E.dispose,d++,A[d]=E.blend,d++,c(A,d,f(A,d-30,30)),d+=4);var Y=E.cimg,x=Y.length;c(A,d,x+(k==0?0:4)),d+=4;var B=d;m(A,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(c(A,d,I++),d+=4),A.set(Y,d),d+=x,c(A,d,f(A,B,d-B)),d+=4}return c(A,d,0),d+=4,m(A,d,"IEND"),d+=4,c(A,d,f(A,d-4,4)),d+=4,A.buffer},ze.encode.compressPNG=function(e,r,t){for(var i=0;i<e.frames.length;i++){var l=e.frames[i];l.rect.width;var f=l.rect.height,c=new Uint8Array(f*l.bpl+f);l.cimg=ze.encode._filterZero(l.img,f,l.bpp,l.bpl,c,r,t)}},ze.encode.compress=function(e,r,t,i,l){for(var f=l[0],c=l[1],h=l[2],m=l[3],d=l[4],g=6,C=8,b=255,x=0;x<e.length;x++)for(var _=new Uint8Array(e[x]),k=_.length,E=0;E<k;E+=4)b&=_[E+3];var A=b!=255,T=ze.encode.framize(e,r,t,f,c,h),D={},R=[],N=[];if(i!=0){for(var z=[],E=0;E<T.length;E++)z.push(T[E].img.buffer);for(var M=ze.encode.concatRGBA(z),I=ze.quantize(M,i),Y=0,B=new Uint8Array(I.abuf),E=0;E<T.length;E++){var U=T[E].img,P=U.length;N.push(new Uint8Array(I.inds.buffer,Y>>2,P>>2));for(var x=0;x<P;x+=4)U[x]=B[Y+x],U[x+1]=B[Y+x+1],U[x+2]=B[Y+x+2],U[x+3]=B[Y+x+3];Y+=P}for(var E=0;E<I.plte.length;E++)R.push(I.plte[E].est.rgba)}else for(var x=0;x<T.length;x++){var H=T[x],V=new Uint32Array(H.img.buffer),G=H.rect.width,k=V.length,ee=new Uint8Array(k);N.push(ee);for(var E=0;E<k;E++){var ne=V[E];if(E!=0&&ne==V[E-1])ee[E]=ee[E-1];else if(E>G&&ne==V[E-G])ee[E]=ee[E-G];else{var $=D[ne];if($==null&&(D[ne]=$=R.length,R.push(ne),R.length>=300))break;ee[E]=$}}}var X=R.length;X<=256&&d==!1&&(X<=2?C=1:X<=4?C=2:X<=16?C=4:C=8,C=Math.max(C,m));for(var x=0;x<T.length;x++){var H=T[x];H.rect.x,H.rect.y;var G=H.rect.width,Z=H.rect.height,q=H.img;new Uint32Array(q.buffer);var te=4*G,oe=4;if(X<=256&&d==!1){te=Math.ceil(C*G/8);for(var ae=new Uint8Array(te*Z),fe=N[x],ve=0;ve<Z;ve++){var E=ve*te,xe=ve*G;if(C==8)for(var se=0;se<G;se++)ae[E+se]=fe[xe+se];else if(C==4)for(var se=0;se<G;se++)ae[E+(se>>1)]|=fe[xe+se]<<4-(se&1)*4;else if(C==2)for(var se=0;se<G;se++)ae[E+(se>>2)]|=fe[xe+se]<<6-(se&3)*2;else if(C==1)for(var se=0;se<G;se++)ae[E+(se>>3)]|=fe[xe+se]<<7-(se&7)*1}q=ae,g=3,oe=1}else if(A==!1&&T.length==1){for(var ae=new Uint8Array(G*Z*3),ke=G*Z,E=0;E<ke;E++){var U=E*3,De=E*4;ae[U]=q[De],ae[U+1]=q[De+1],ae[U+2]=q[De+2]}q=ae,g=2,oe=3,te=3*G}H.img=q,H.bpl=te,H.bpp=oe}return{ctype:g,depth:C,plte:R,frames:T}},ze.encode.framize=function(e,r,t,i,l,f){for(var c=[],h=0;h<e.length;h++){var m=new Uint8Array(e[h]),d=new Uint32Array(m.buffer),g,C=0,b=0,x=r,_=t,k=i?1:0;if(h!=0){for(var E=f||i||h==1||c[h-2].dispose!=0?1:2,A=0,T=1e9,D=0;D<E;D++){for(var H=new Uint8Array(e[h-1-D]),R=new Uint32Array(e[h-1-D]),N=r,z=t,M=-1,I=-1,Y=0;Y<t;Y++)for(var B=0;B<r;B++){var U=Y*r+B;d[U]!=R[U]&&(B<N&&(N=B),B>M&&(M=B),Y<z&&(z=Y),Y>I&&(I=Y))}M==-1&&(N=z=M=I=0),l&&((N&1)==1&&N--,(z&1)==1&&z--);var P=(M-N+1)*(I-z+1);P<T&&(T=P,A=D,C=N,b=z,x=M-N+1,_=I-z+1)}var H=new Uint8Array(e[h-1-A]);A==1&&(c[h-1].dispose=2),g=new Uint8Array(x*_*4),ze._copyTile(H,r,t,g,x,_,-C,-b,0),k=ze._copyTile(m,r,t,g,x,_,-C,-b,3)?1:0,k==1?ze.encode._prepareDiff(m,r,t,g,{x:C,y:b,width:x,height:_}):ze._copyTile(m,r,t,g,x,_,-C,-b,0)}else g=m.slice(0);c.push({rect:{x:C,y:b,width:x,height:_},img:g,blend:k,dispose:0})}if(i)for(var h=0;h<c.length;h++){var V=c[h];if(V.blend!=1){var G=V.rect,ee=c[h-1].rect,ne=Math.min(G.x,ee.x),$=Math.min(G.y,ee.y),X=Math.max(G.x+G.width,ee.x+ee.width),Z=Math.max(G.y+G.height,ee.y+ee.height),q={x:ne,y:$,width:X-ne,height:Z-$};c[h-1].dispose=1,h-1!=0&&ze.encode._updateFrame(e,r,t,c,h-1,q,l),ze.encode._updateFrame(e,r,t,c,h,q,l)}}var te=0;if(e.length!=1)for(var U=0;U<c.length;U++){var V=c[U];te+=V.rect.width*V.rect.height}return c},ze.encode._updateFrame=function(e,r,t,i,l,f,c){for(var h=Uint8Array,m=Uint32Array,d=new h(e[l-1]),g=new m(e[l-1]),C=l+1<e.length?new h(e[l+1]):null,b=new h(e[l]),x=new m(b.buffer),_=r,k=t,E=-1,A=-1,T=0;T<f.height;T++)for(var D=0;D<f.width;D++){var R=f.x+D,N=f.y+T,z=N*r+R,M=x[z];M==0||i[l-1].dispose==0&&g[z]==M&&(C==null||C[z*4+3]!=0)||(R<_&&(_=R),R>E&&(E=R),N<k&&(k=N),N>A&&(A=N))}E==-1&&(_=k=E=A=0),c&&((_&1)==1&&_--,(k&1)==1&&k--),f={x:_,y:k,width:E-_+1,height:A-k+1};var I=i[l];I.rect=f,I.blend=1,I.img=new Uint8Array(f.width*f.height*4),i[l-1].dispose==0?(ze._copyTile(d,r,t,I.img,f.width,f.height,-f.x,-f.y,0),ze.encode._prepareDiff(b,r,t,I.img,f)):ze._copyTile(b,r,t,I.img,f.width,f.height,-f.x,-f.y,0)},ze.encode._prepareDiff=function(e,r,t,i,l){ze._copyTile(e,r,t,i,l.width,l.height,-l.x,-l.y,2)},ze.encode._filterZero=function(e,r,t,i,l,f,c){var h=[],m=[0,1,2,3,4];f!=-1?m=[f]:(r*i>5e5||t==1)&&(m=[0]);var d;c&&(d={level:0});for(var g=l.length>1e7&&UZIP!=null?UZIP:xP,C=0;C<m.length;C++){for(var b=0;b<r;b++)ze.encode._filterLine(l,e,b,i,t,m[C]);h.push(g.deflate(l,d))}for(var x,_=1e9,C=0;C<h.length;C++)h[C].length<_&&(x=C,_=h[C].length);return h[x]},ze.encode._filterLine=function(e,r,t,i,l,f){var c=t*i,h=c+t,m=ze.decode._paeth;if(e[h]=f,h++,f==0)if(i<500)for(var d=0;d<i;d++)e[h+d]=r[c+d];else e.set(new Uint8Array(r.buffer,c,i),h);else if(f==1){for(var d=0;d<l;d++)e[h+d]=r[c+d];for(var d=l;d<i;d++)e[h+d]=r[c+d]-r[c+d-l]+256&255}else if(t==0){for(var d=0;d<l;d++)e[h+d]=r[c+d];if(f==2)for(var d=l;d<i;d++)e[h+d]=r[c+d];if(f==3)for(var d=l;d<i;d++)e[h+d]=r[c+d]-(r[c+d-l]>>1)+256&255;if(f==4)for(var d=l;d<i;d++)e[h+d]=r[c+d]-m(r[c+d-l],0,0)+256&255}else{if(f==2)for(var d=0;d<i;d++)e[h+d]=r[c+d]+256-r[c+d-i]&255;if(f==3){for(var d=0;d<l;d++)e[h+d]=r[c+d]+256-(r[c+d-i]>>1)&255;for(var d=l;d<i;d++)e[h+d]=r[c+d]+256-(r[c+d-i]+r[c+d-l]>>1)&255}if(f==4){for(var d=0;d<l;d++)e[h+d]=r[c+d]+256-m(0,r[c+d-i],0)&255;for(var d=l;d<i;d++)e[h+d]=r[c+d]+256-m(r[c+d-l],r[c+d-i],r[c+d-l-i])&255}}},ze.crc={table:function(){for(var e=new Uint32Array(256),r=0;r<256;r++){for(var t=r,i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;e[r]=t}return e}(),update:function(e,r,t,i){for(var l=0;l<i;l++)e=ze.crc.table[(e^r[t+l])&255]^e>>>8;return e},crc:function(e,r,t){return ze.crc.update(4294967295,e,r,t)^4294967295}},ze.quantize=function(e,r){var t=new Uint8Array(e),i=t.slice(0),l=new Uint32Array(i.buffer),f=ze.quantize.getKDtree(i,r),c=f[0],h=f[1],m=ze.quantize.planeDst,d=t,g=l,C=d.length,b=new Uint8Array(t.length>>2),x;if(t.length<2e7)for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);x=ze.quantize.getNearest(c,k,E,A,T),b[_>>2]=x.ind,g[_>>2]=x.est.rgba}else for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);for(x=c;x.left;)x=m(x.est,k,E,A,T)<=0?x.left:x.right;b[_>>2]=x.ind,g[_>>2]=x.est.rgba}return{abuf:i.buffer,inds:b,plte:h}},ze.quantize.getKDtree=function(e,r,t){t==null&&(t=1e-4);var i=new Uint32Array(e.buffer),l={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};l.bst=ze.quantize.stats(e,l.i0,l.i1),l.est=ze.quantize.estats(l.bst);for(var f=[l];f.length<r;){for(var c=0,h=0,m=0;m<f.length;m++)f[m].est.L>c&&(c=f[m].est.L,h=m);if(c<t)break;var d=f[h],g=ze.quantize.splitPixels(e,i,d.i0,d.i1,d.est.e,d.est.eMq255),C=d.i0>=g||d.i1<=g;if(C){d.est.L=0;continue}var b={i0:d.i0,i1:g,bst:null,est:null,tdst:0,left:null,right:null};b.bst=ze.quantize.stats(e,b.i0,b.i1),b.est=ze.quantize.estats(b.bst);var x={i0:g,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};x.bst={R:[],m:[],N:d.bst.N-b.bst.N};for(var m=0;m<16;m++)x.bst.R[m]=d.bst.R[m]-b.bst.R[m];for(var m=0;m<4;m++)x.bst.m[m]=d.bst.m[m]-b.bst.m[m];x.est=ze.quantize.estats(x.bst),d.left=b,d.right=x,f[h]=b,f.push(x)}f.sort(function(_,k){return k.bst.N-_.bst.N});for(var m=0;m<f.length;m++)f[m].ind=m;return[l,f]},ze.quantize.getNearest=function(e,r,t,i,l){if(e.left==null)return e.tdst=ze.quantize.dist(e.est.q,r,t,i,l),e;var f=ze.quantize.planeDst(e.est,r,t,i,l),c=e.left,h=e.right;f>0&&(c=e.right,h=e.left);var m=ze.quantize.getNearest(c,r,t,i,l);if(m.tdst<=f*f)return m;var d=ze.quantize.getNearest(h,r,t,i,l);return d.tdst<m.tdst?d:m},ze.quantize.planeDst=function(e,r,t,i,l){var f=e.e;return f[0]*r+f[1]*t+f[2]*i+f[3]*l-e.eMq},ze.quantize.dist=function(e,r,t,i,l){var f=r-e[0],c=t-e[1],h=i-e[2],m=l-e[3];return f*f+c*c+h*h+m*m},ze.quantize.splitPixels=function(e,r,t,i,l,f){var c=ze.quantize.vecDot;for(i-=4;t<i;){for(;c(e,t,l)<=f;)t+=4;for(;c(e,i,l)>f;)i-=4;if(t>=i)break;var h=r[t>>2];r[t>>2]=r[i>>2],r[i>>2]=h,t+=4,i-=4}for(;c(e,t,l)>f;)t-=4;return t+4},ze.quantize.vecDot=function(e,r,t){return e[r]*t[0]+e[r+1]*t[1]+e[r+2]*t[2]+e[r+3]*t[3]},ze.quantize.stats=function(e,r,t){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,0,0,0],f=t-r>>2,c=r;c<t;c+=4){var h=e[c]*.00392156862745098,m=e[c+1]*(1/255),d=e[c+2]*(1/255),g=e[c+3]*(1/255);l[0]+=h,l[1]+=m,l[2]+=d,l[3]+=g,i[0]+=h*h,i[1]+=h*m,i[2]+=h*d,i[3]+=h*g,i[5]+=m*m,i[6]+=m*d,i[7]+=m*g,i[10]+=d*d,i[11]+=d*g,i[15]+=g*g}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:l,N:f}},ze.quantize.estats=function(e){var r=e.R,t=e.m,i=e.N,l=t[0],f=t[1],c=t[2],h=t[3],m=i==0?0:1/i,d=[r[0]-l*l*m,r[1]-l*f*m,r[2]-l*c*m,r[3]-l*h*m,r[4]-f*l*m,r[5]-f*f*m,r[6]-f*c*m,r[7]-f*h*m,r[8]-c*l*m,r[9]-c*f*m,r[10]-c*c*m,r[11]-c*h*m,r[12]-h*l*m,r[13]-h*f*m,r[14]-h*c*m,r[15]-h*h*m],g=d,C=ze.M4,b=[Math.random(),Math.random(),Math.random(),Math.random()],x=0,_=0;if(i!=0)for(var k=0;k<16&&(b=C.multVec(g,b),_=Math.sqrt(C.dot(b,b)),b=C.sml(1/_,b),!(k!=0&&Math.abs(_-x)<1e-9));k++)x=_;var E=[l*m,f*m,c*m,h*m],A=C.dot(C.sml(255,E),b);return{Cov:d,q:E,e:b,L:x,eMq255:A,eMq:C.dot(b,E),rgba:(Math.round(255*E[3])<<24|Math.round(255*E[2])<<16|Math.round(255*E[1])<<8|Math.round(255*E[0])<<0)>>>0}},ze.M4={multVec:function(e,r){return[e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3],e[4]*r[0]+e[5]*r[1]+e[6]*r[2]+e[7]*r[3],e[8]*r[0]+e[9]*r[1]+e[10]*r[2]+e[11]*r[3],e[12]*r[0]+e[13]*r[1]+e[14]*r[2]+e[15]*r[3]]},dot:function(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]},sml:function(e,r){return[e*r[0],e*r[1],e*r[2],e*r[3]]}},ze.encode.concatRGBA=function(e){for(var r=0,t=0;t<e.length;t++)r+=e[t].byteLength;for(var i=new Uint8Array(r),l=0,t=0;t<e.length;t++){for(var f=new Uint8Array(e[t]),c=f.length,h=0;h<c;h+=4){var m=f[h],d=f[h+1],g=f[h+2],C=f[h+3];C==0&&(m=d=g=0),i[l+h]=m,i[l+h+1]=d,i[l+h+2]=g,i[l+h+3]=C}l+=c}return i.buffer};const bP=e=>new Promise((r,t)=>{const i=new FileReader;i.onloadend=l=>r(l.target.result),i.onerror=l=>t(l),i.readAsDataURL(e)}),CP=e=>new Promise((r,t)=>{const i=new Image;i.onload=()=>r(i),i.onerror=l=>t(l),i.src=e}),wP=(e,r,t)=>new Promise(i=>e.toBlob(l=>i(l),r,t)),_P=e=>{const i=e.width,l=e.height;let f=e.width,c=e.height;return(i>2e3||l>2e3)&&(i/l>2e3/2e3?(f=2e3,c=Math.round(2e3*(l/i))):(c=2e3,f=Math.round(2e3*(i/l)))),{width:f,height:c}},SP=e=>{let r=0;return e>1||e<0?r=0:r=e?e*256:0,r},o6=async(e,r=.5,t=5)=>{const i=e.name;if(e.size/1024/1024<t)return e;try{const l=document.createElement("canvas"),f=l.getContext("2d"),c=await bP(e),h=await CP(c),m=_P(h);if(l.width=m.width,l.height=m.height,f.clearRect(0,0,m.width,m.height),f.drawImage(h,0,0,m.width,m.height),["image/jpeg","image/jpg"].includes(e.type)){const d=await wP(l,e.type,r);return new File([d],i,{type:e.type})}else{const d=f.getImageData(0,0,m.width,m.height).data,g=SP(r),C=ze.encode([d.buffer],m.width,m.height,g);return new File([C],e.name,{type:e.type})}}catch{return e}},l6=[ed.jpeg,ed.jpg,ed.png],s6=e=>{const{maxCount:r=1,listType:t="picture-card",fileList:i=[],maxSize:l=2,accept:f=l6.join(","),uploadBtnName:c="上传",uploadHint:h=null,compression:m}=e,[d,g]=W.useState(!1),[C,b]=W.useState(""),x=()=>t!=="text"?Be("div",{style:{position:"relative"},children:[Be("div",{children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:c})]}),h]}):Be(nn,{children:[Q(me.Button,{icon:Q(Mb,{}),children:c}),h]}),_=T=>new Promise(async(R,N)=>{const z=f.split(","),M=dg(T.name)||"";if(f&&!z.includes(M)&&(me.message.error(`只允许上传 ${f} 文件`),N(!1)),!(T.size/1024/1024<l)&&!m&&(me.message.error(`文件必须小于${l}MB`),N(!1)),m){let Y=0;async function B(P){if(!m)return;const H=await o6(P,m.quality,m.limit);if(Y++,Y>=5)return H;if(H.size/1024/1024>l)await B(H);else return H}const U=await B(T);R(U)}R(T)}).catch(R=>me.Upload.LIST_IGNORE),k=T=>{e.onChange&&e.onChange(T)},E=T=>{e.onPreview?e.onPreview(T):A(T)},A=async T=>{let D=dg(T.name)||"";if(D||(D=dg(T.name||T.url)||""),D===ed.pdf)return me.Modal.info({title:"PDF",width:"60%",content:Q("iframe",{title:"PDF预览",src:T.url||T.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});l6.includes(D)&&(!T.url&&!T.thumbUrl&&!T.preview&&(T.preview=await L8(T.originFileObj)),b(T.url||T.thumbUrl||T.preview),g(!0))};return Be(nn,{children:[Q(me.Upload,{beforeUpload:_,onChange:k,listType:t,...e,onPreview:E,children:i.length>=r?null:x()}),Q(me.Image,{style:{display:"none"},preview:{visible:d,src:C,onVisibleChange:()=>{g(!1),b("")}}})]})},Eg={fieldModal:"create-form-module_fieldModal_8bf3d",content:"create-form-module_content_61f84",suffix:"create-form-module_suffix_42205",placeholder:"create-form-module_placeholder_90d6a"},EP={labelCol:{span:4},wrapperCol:{span:20}},u6=e=>{switch(e){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},y2=e=>{const{items:r,rowProps:t,formProps:i,readonly:l=!1,hiddenTitle:f=!1,langId:c="10001"}=e,h=(g,C)=>{var b,x;if(C.btnType==="submit"){(b=i==null?void 0:i.form)==null||b.validateFields().then(_=>{C.onClick&&C.onClick(_)});return}if(C.btnType==="reset"){(x=i==null?void 0:i.form)==null||x.resetFields(),C.onClick&&C.onClick(g);return}C.btnType==="cancel"&&C.onClick&&C.onClick(g)},m=g=>Array.isArray(g)?g:g&&g.fileList,d=g=>{var b;const C=i==null?void 0:i.initialValues;return g.dataIndex?((b=g.render)==null?void 0:b.call(g,C==null?void 0:C[g.dataIndex],C))||g.value||(C==null?void 0:C[g.dataIndex]):""};return Q(me.Form,{layout:"horizontal",form:i==null?void 0:i.form,...EP,...i||{},children:Q(me.Row,{gutter:16,...t,children:r.filter(g=>!g.hidden).map((g,C)=>Q(me.Col,{...g.colProps||{span:24},children:Q(me.Form.Item,{...g.valueType==="upload"?{getValueFromEvent:m}:{},label:f?"":g.title,name:g.valueType==="btns"?void 0:g.dataIndex,...g.formItemProps,children:g.readonly?Q("div",{children:d(g)}):g.readonly===void 0&&l?Q("div",{children:d(g)}):Q(c6,{onChange:b=>{var x;return(x=g==null?void 0:g.onChange)==null?void 0:x.call(g,b)},valueType:g.valueType,onBtnClick:h,valueProps:g.valueProps,formItemProps:g.formItemProps,langId:c})})},g.dataIndex||C))})})},c6=e=>{const{valueType:r,valueProps:t,value:i,onChange:l,onBtnClick:f,inputRef:c,formItemProps:h,langId:m}=e,d=W.useMemo(()=>{let g=Q(me.Input,{placeholder:m==="10001"?"请输入":"Please input",allowClear:!0,...t});switch(r){case"rate":g=Q(me.Rate,{...t});break;case"password":g=Q(me.Input.Password,{...t});break;case"modal":g=Q(DP,{...t});break;case"checkbox":g=Q(me.Checkbox.Group,{...t});break;case"select":g=Q(me.Select,{placeholder:m==="10001"?"请选择":"Please select",allowClear:!0,...t});break;case"inputNumber":g=Q(me.InputNumber,{style:{width:"100%"},placeholder:m==="10001"?"请输入":"Please input",...t});break;case"textarea":g=Q(me.Input.TextArea,{placeholder:m==="10001"?"请输入":"Please input",allowClear:!0,...t});break;case"radio":g=Q(me.Radio.Group,{...t});break;case"switch":g=Q(me.Switch,{...t});break;case"datePicker":g=Q(me.DatePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"rangePicker":g=Q(me.DatePicker.RangePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"timePicker":g=Q(me.TimePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"cascader":g=Q(me.Cascader,{allowClear:!0,...t});break;case"upload":g=Q(s6,{...t});break;case"btns":g=Q(me.Space,{children:t==null?void 0:t.map(C=>W.createElement(me.Button,{type:C.btnType==="submit"?"primary":"default",...il.omit(C,["btnType"]),key:C.key||C.btnType,onClick:b=>{f==null||f(b,C)}},C.title||C.children))});break}return g},[r,t,l,i]);if(r==="custom"){const g=t;return W.cloneElement(g.children,{[(h==null?void 0:h.valuePropName)||u6(r||"input")]:i,onChange:l,ref:c})}return W.cloneElement(d,{[u6(r||"input")]:i,onChange:l,ref:c})},DP=e=>{const{placeholder:r,labelKey:t,onToggle:i,value:l,onClear:f,className:c,style:h}=e;return Be("div",{className:[Eg.fieldModal,c].filter(m=>m).join(" "),style:h,children:[Q("div",{className:Eg.content,onClick:()=>i(!0),children:l?Q("span",{children:l[t]}):Q("span",{className:Eg.placeholder,children:r})}),Q("span",{className:Eg.suffix,onClick:f,children:l&&Q(k7,{})})]})};var x2={exports:{}},Yp={},Dg={exports:{}},f6={},wt={exports:{}},b2={exports:{}},bn={};var d6;function kP(){if(d6)return bn;d6=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(N){if(typeof N=="object"&&N!==null){var z=N.$$typeof;switch(z){case r:switch(N=N.type,N){case m:case d:case i:case f:case l:case C:return N;default:switch(N=N&&N.$$typeof,N){case h:case g:case _:case x:case c:return N;default:return z}}case t:return z}}}function R(N){return D(N)===d}return bn.AsyncMode=m,bn.ConcurrentMode=d,bn.ContextConsumer=h,bn.ContextProvider=c,bn.Element=r,bn.ForwardRef=g,bn.Fragment=i,bn.Lazy=_,bn.Memo=x,bn.Portal=t,bn.Profiler=f,bn.StrictMode=l,bn.Suspense=C,bn.isAsyncMode=function(N){return R(N)||D(N)===m},bn.isConcurrentMode=R,bn.isContextConsumer=function(N){return D(N)===h},bn.isContextProvider=function(N){return D(N)===c},bn.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===r},bn.isForwardRef=function(N){return D(N)===g},bn.isFragment=function(N){return D(N)===i},bn.isLazy=function(N){return D(N)===_},bn.isMemo=function(N){return D(N)===x},bn.isPortal=function(N){return D(N)===t},bn.isProfiler=function(N){return D(N)===f},bn.isStrictMode=function(N){return D(N)===l},bn.isSuspense=function(N){return D(N)===C},bn.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===i||N===d||N===f||N===l||N===C||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===_||N.$$typeof===x||N.$$typeof===c||N.$$typeof===h||N.$$typeof===g||N.$$typeof===E||N.$$typeof===A||N.$$typeof===T||N.$$typeof===k)},bn.typeOf=D,bn}var Cn={};var p6;function TP(){return p6||(p6=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(ge){return typeof ge=="string"||typeof ge=="function"||ge===i||ge===d||ge===f||ge===l||ge===C||ge===b||typeof ge=="object"&&ge!==null&&(ge.$$typeof===_||ge.$$typeof===x||ge.$$typeof===c||ge.$$typeof===h||ge.$$typeof===g||ge.$$typeof===E||ge.$$typeof===A||ge.$$typeof===T||ge.$$typeof===k)}function R(ge){if(typeof ge=="object"&&ge!==null){var $e=ge.$$typeof;switch($e){case r:var Me=ge.type;switch(Me){case m:case d:case i:case f:case l:case C:return Me;default:var et=Me&&Me.$$typeof;switch(et){case h:case g:case _:case x:case c:return et;default:return $e}}case t:return $e}}}var N=m,z=d,M=h,I=c,Y=r,B=g,U=i,P=_,H=x,V=t,G=f,ee=l,ne=C,$=!1;function X(ge){return $||($=!0),Z(ge)||R(ge)===m}function Z(ge){return R(ge)===d}function q(ge){return R(ge)===h}function te(ge){return R(ge)===c}function oe(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===r}function ae(ge){return R(ge)===g}function fe(ge){return R(ge)===i}function ve(ge){return R(ge)===_}function xe(ge){return R(ge)===x}function se(ge){return R(ge)===t}function ke(ge){return R(ge)===f}function De(ge){return R(ge)===l}function Pe(ge){return R(ge)===C}Cn.AsyncMode=N,Cn.ConcurrentMode=z,Cn.ContextConsumer=M,Cn.ContextProvider=I,Cn.Element=Y,Cn.ForwardRef=B,Cn.Fragment=U,Cn.Lazy=P,Cn.Memo=H,Cn.Portal=V,Cn.Profiler=G,Cn.StrictMode=ee,Cn.Suspense=ne,Cn.isAsyncMode=X,Cn.isConcurrentMode=Z,Cn.isContextConsumer=q,Cn.isContextProvider=te,Cn.isElement=oe,Cn.isForwardRef=ae,Cn.isFragment=fe,Cn.isLazy=ve,Cn.isMemo=xe,Cn.isPortal=se,Cn.isProfiler=ke,Cn.isStrictMode=De,Cn.isSuspense=Pe,Cn.isValidElementType=D,Cn.typeOf=R}()),Cn}var h6;function v6(){return h6||(h6=1,function(e){process.env.NODE_ENV==="production"?e.exports=kP():e.exports=TP()}(b2)),b2.exports}var C2,m6;function AP(){if(m6)return C2;m6=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function i(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function l(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var c={},h=0;h<10;h++)c["_"+String.fromCharCode(h)]=h;var m=Object.getOwnPropertyNames(c).map(function(g){return c[g]});if(m.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(g){d[g]=g}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C2=l()?Object.assign:function(f,c){for(var h,m=i(f),d,g=1;g<arguments.length;g++){h=Object(arguments[g]);for(var C in h)r.call(h,C)&&(m[C]=h[C]);if(e){d=e(h);for(var b=0;b<d.length;b++)t.call(h,d[b])&&(m[d[b]]=h[d[b]])}}return m},C2}var w2,g6;function _2(){if(g6)return w2;g6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return w2=e,w2}var S2,y6;function x6(){return y6||(y6=1,S2=Function.call.bind(Object.prototype.hasOwnProperty)),S2}var E2,b6;function OP(){if(b6)return E2;b6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_2(),t={},i=x6();e=function(f){var c="Warning: "+f;try{throw new Error(c)}catch{}}}function l(f,c,h,m,d){if(process.env.NODE_ENV!=="production"){for(var g in f)if(i(f,g)){var C;try{if(typeof f[g]!="function"){var b=Error((m||"React class")+": "+h+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}C=f[g](c,g,m,h,null,r)}catch(_){C=_}if(C&&!(C instanceof Error)&&e((m||"React class")+": type specification of "+h+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof C+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),C instanceof Error&&!(C.message in t)){t[C.message]=!0;var x=d?d():"";e("Failed "+h+" type: "+C.message+(x??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},E2=l,E2}var D2,C6;function RP(){if(C6)return D2;C6=1;var e=v6(),r=AP(),t=_2(),i=x6(),l=OP(),f=function(){};process.env.NODE_ENV!=="production"&&(f=function(h){var m="Warning: "+h;try{throw new Error(m)}catch{}});function c(){return null}return D2=function(h,m){var d=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function C(Z){var q=Z&&(d&&Z[d]||Z[g]);if(typeof q=="function")return q}var b="<<anonymous>>",x={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(),arrayOf:D,element:R(),elementType:N(),instanceOf:z,node:B(),objectOf:I,oneOf:M,oneOfType:Y,shape:P,exact:H};function _(Z,q){return Z===q?Z!==0||1/Z===1/q:Z!==Z&&q!==q}function k(Z,q){this.message=Z,this.data=q&&typeof q=="object"?q:{},this.stack=""}k.prototype=Error.prototype;function E(Z){if(process.env.NODE_ENV!=="production")var q={},te=0;function oe(fe,ve,xe,se,ke,De,Pe){if(se=se||b,De=De||xe,Pe!==t){if(m){var ge=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ge.name="Invariant Violation",ge}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=se+":"+xe;!q[$e]&&te<3&&(f("You are manually calling a React.PropTypes validation function for the `"+De+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[$e]=!0,te++)}}return ve[xe]==null?fe?ve[xe]===null?new k("The "+ke+" `"+De+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new k("The "+ke+" `"+De+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:Z(ve,xe,se,ke,De)}var ae=oe.bind(null,!1);return ae.isRequired=oe.bind(null,!0),ae}function A(Z){function q(te,oe,ae,fe,ve,xe){var se=te[oe],ke=ee(se);if(ke!==Z){var De=ne(se);return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+De+"` supplied to `"+ae+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return E(q)}function T(){return E(c)}function D(Z){function q(te,oe,ae,fe,ve){if(typeof Z!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var xe=te[oe];if(!Array.isArray(xe)){var se=ee(xe);return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+se+"` supplied to `"+ae+"`, expected an array."))}for(var ke=0;ke<xe.length;ke++){var De=Z(xe,ke,ae,fe,ve+"["+ke+"]",t);if(De instanceof Error)return De}return null}return E(q)}function R(){function Z(q,te,oe,ae,fe){var ve=q[te];if(!h(ve)){var xe=ee(ve);return new k("Invalid "+ae+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return E(Z)}function N(){function Z(q,te,oe,ae,fe){var ve=q[te];if(!e.isValidElementType(ve)){var xe=ee(ve);return new k("Invalid "+ae+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return E(Z)}function z(Z){function q(te,oe,ae,fe,ve){if(!(te[oe]instanceof Z)){var xe=Z.name||b,se=X(te[oe]);return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+se+"` supplied to `"+ae+"`, expected ")+("instance of `"+xe+"`."))}return null}return E(q)}function M(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?f("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):f("Invalid argument supplied to oneOf, expected an array.")),c;function q(te,oe,ae,fe,ve){for(var xe=te[oe],se=0;se<Z.length;se++)if(_(xe,Z[se]))return null;var ke=JSON.stringify(Z,function(Pe,ge){var $e=ne(ge);return $e==="symbol"?String(ge):ge});return new k("Invalid "+fe+" `"+ve+"` of value `"+String(xe)+"` "+("supplied to `"+ae+"`, expected one of "+ke+"."))}return E(q)}function I(Z){function q(te,oe,ae,fe,ve){if(typeof Z!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var xe=te[oe],se=ee(xe);if(se!=="object")return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+se+"` supplied to `"+ae+"`, expected an object."));for(var ke in xe)if(i(xe,ke)){var De=Z(xe,ke,ae,fe,ve+"."+ke,t);if(De instanceof Error)return De}return null}return E(q)}function Y(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&f("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var q=0;q<Z.length;q++){var te=Z[q];if(typeof te!="function")return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(te)+" at index "+q+"."),c}function oe(ae,fe,ve,xe,se){for(var ke=[],De=0;De<Z.length;De++){var Pe=Z[De],ge=Pe(ae,fe,ve,xe,se,t);if(ge==null)return null;ge.data&&i(ge.data,"expectedType")&&ke.push(ge.data.expectedType)}var $e=ke.length>0?", expected one of type ["+ke.join(", ")+"]":"";return new k("Invalid "+xe+" `"+se+"` supplied to "+("`"+ve+"`"+$e+"."))}return E(oe)}function B(){function Z(q,te,oe,ae,fe){return V(q[te])?null:new k("Invalid "+ae+" `"+fe+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return E(Z)}function U(Z,q,te,oe,ae){return new k((Z||"React class")+": "+q+" type `"+te+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function P(Z){function q(te,oe,ae,fe,ve){var xe=te[oe],se=ee(xe);if(se!=="object")return new k("Invalid "+fe+" `"+ve+"` of type `"+se+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ke in Z){var De=Z[ke];if(typeof De!="function")return U(ae,fe,ve,ke,ne(De));var Pe=De(xe,ke,ae,fe,ve+"."+ke,t);if(Pe)return Pe}return null}return E(q)}function H(Z){function q(te,oe,ae,fe,ve){var xe=te[oe],se=ee(xe);if(se!=="object")return new k("Invalid "+fe+" `"+ve+"` of type `"+se+"` "+("supplied to `"+ae+"`, expected `object`."));var ke=r({},te[oe],Z);for(var De in ke){var Pe=Z[De];if(i(Z,De)&&typeof Pe!="function")return U(ae,fe,ve,De,ne(Pe));if(!Pe)return new k("Invalid "+fe+" `"+ve+"` key `"+De+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(te[oe],null," ")+`
193
+ root.render(<App />);`),a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var F=uF(n,dx,null,u,p,y,S);ix(F.current,n);var j=n.nodeType===dr?n.parentNode:n;return cm(j),new B4(F)}function gb(n){this._internalRoot=n}function YW(n){n&&N1(n)}gb.prototype.unstable_scheduleHydration=YW;function qW(n,a,u){if(!yb(n))throw new Error("hydrateRoot(...): Target container is not a DOM element.");RF(n),a===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var p=u??null,y=u!=null&&u.hydratedSources||null,S=!1,F=!1,j="",K=OF;u!=null&&(u.unstable_strictMode===!0&&(S=!0),u.identifierPrefix!==void 0&&(j=u.identifierPrefix),u.onRecoverableError!==void 0&&(K=u.onRecoverableError));var re=cF(a,null,n,dx,p,S,F,j,K);if(ix(re.current,n),cm(n),y)for(var ie=0;ie<y.length;ie++){var he=y[ie];eG(re,he)}return new gb(re)}function yb(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||!te))}function rg(n){return!!(n&&(n.nodeType===Ta||n.nodeType===Hi||n.nodeType===vs||n.nodeType===dr&&n.nodeValue===" react-mount-point-unstable "))}function RF(n){n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Cm(n)&&(n._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var GW=t.ReactCurrentOwner,FF;FF=function(n){if(n._reactRootContainer&&n.nodeType!==dr){var a=dF(n._reactRootContainer.current);a&&a.parentNode!==n&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var u=!!n._reactRootContainer,p=L4(n),y=!!(p&&ec(p));y&&!u&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),n.nodeType===Ta&&n.tagName&&n.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function L4(n){return n?n.nodeType===Hi?n.documentElement:n.firstChild:null}function NF(){}function KW(n,a,u,p,y){if(y){if(typeof p=="function"){var S=p;p=function(){var de=mb(F);S.call(de)}}var F=cF(a,p,n,nc,null,!1,!1,"",NF);n._reactRootContainer=F,ix(F.current,n);var j=n.nodeType===dr?n.parentNode:n;return cm(j),Xs(),F}else{for(var K;K=n.lastChild;)n.removeChild(K);if(typeof p=="function"){var re=p;p=function(){var de=mb(ie);re.call(de)}}var ie=uF(n,nc,null,!1,!1,"",NF);n._reactRootContainer=ie,ix(ie.current,n);var he=n.nodeType===dr?n.parentNode:n;return cm(he),Xs(function(){ng(a,ie,u,p)}),ie}}function WW(n,a){n!==null&&typeof n!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,n)}function xb(n,a,u,p,y){FF(u),WW(y===void 0?null:y,"render");var S=u._reactRootContainer,F;if(!S)F=KW(u,a,n,y,p);else{if(F=S,typeof y=="function"){var j=y;y=function(){var K=mb(F);j.call(K)}}ng(a,F,n,y)}return mb(F)}function QW(n){{var a=GW.current;if(a!==null&&a.stateNode!==null){var u=a.stateNode._warnedAboutRefsInRender;u||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return n==null?null:n.nodeType===Ta?n:MW(n,"findDOMNode")}function ZW(n,a,u){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var p=Cm(a)&&a._reactRootContainer===void 0;p&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return xb(null,n,a,!0,u)}function XW(n,a,u){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(a))throw new Error("Target container is not a DOM element.");{var p=Cm(a)&&a._reactRootContainer===void 0;p&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return xb(null,n,a,!1,u)}function JW(n,a,u,p){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!rg(u))throw new Error("Target container is not a DOM element.");if(n==null||!ff(n))throw new Error("parentComponent must be a valid React Component");return xb(n,a,u,!1,p)}function eQ(n){if(!rg(n))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Cm(n)&&n._reactRootContainer===void 0;a&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(n._reactRootContainer){{var u=L4(n),p=u&&!ec(u);p&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Xs(function(){xb(null,null,n,!1,function(){n._reactRootContainer=null,AA(n)})}),!0}else{{var y=L4(n),S=!!(y&&ec(y)),F=n.nodeType===Ta&&rg(n.parentNode)&&!!n.parentNode._reactRootContainer;S&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",F?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}at(PW),k1(BW),Df(LW),qv(Ci),A1(_f),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),l1(rY),Wd(h4,qK,Xs);function tQ(n,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!yb(a))throw new Error("Target container is not a DOM element.");return NW(n,a,null,u)}function nQ(n,a,u,p){return JW(n,a,u,p)}var z4={usingClientEntryPoint:!1,Events:[ec,Z0,ox,Kd,sf,h4]};function rQ(n,a){return z4.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),$W(n,a)}function aQ(n,a,u){return z4.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),qW(n,a,u)}function iQ(n){return HR()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Xs(n)}var oQ=VW({findFiberByHostInstance:Bf,bundleType:1,version:R4,rendererPackageName:"react-dom"});if(!oQ&&$e&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var lQ=window.location.protocol;/^(https?|file):$/.test(lQ)}ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z4,ii.createPortal=tQ,ii.createRoot=rQ,ii.findDOMNode=QW,ii.flushSync=iQ,ii.hydrate=ZW,ii.hydrateRoot=aQ,ii.render=XW,ii.unmountComponentAtNode=eQ,ii.unstable_batchedUpdates=h4,ii.unstable_renderSubtreeIntoContainer=nQ,ii.version=R4,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ii}(function(e){function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch{}}}process.env.NODE_ENV==="production"?(r(),e.exports=v9()):e.exports=m9()})(tu);const fg=LF(tu.exports),g9=BF({__proto__:null,default:fg},[tu.exports]);var zb=(e=>(e.zip="application/zip",e.png="image/png",e.jpg="image/jpg",e.jpeg="image/jpeg",e.pdf="application/pdf",e.doc="application/msword",e.docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.pptx="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.ppt="application/vnd.ms-powerpoint",e.xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.xls="application/vnd.ms-excel",e.txt="text/plain",e.csv="text/csv",e.svg="image/svg+xml",e))(zb||{});const Ub=new Map(Object.entries(zb));var ed=(e=>(e.zip=".zip",e.png=".png",e.jpg=".jpg",e.jpeg=".jpeg",e.pdf=".pdf",e.doc=".doc",e.docx=".docx",e.ppt=".ppt",e.pptx=".pptx",e.xls=".xls",e.xlsx=".xlsx",e.txt=".txt",e.csv=".csv",e.svg=".svg",e.rar=".rar",e))(ed||{});const y9=Object.freeze(Object.defineProperty({__proto__:null,FileType:zb,FileTypeMap:Ub,FileSuffix:ed},Symbol.toStringTag,{value:"Module"})),x9=e=>{if(!il.isObject(e))return e;const r=e;return il.pick(r,il.keys(r).filter(t=>!il.isNil(r[t])))},L8=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),dg=e=>{var r;if(e)return"."+((r=e.split(".").at(-1))==null?void 0:r.toLowerCase())},b9=e=>{if(e){if(e.startsWith("http")){const r=e.split(".").at(-1);if(r&&Ub.has(r))return Ub.get(r)}if(e.startsWith("data:")&&e.includes("base64")){const r=e.indexOf(";base64"),t=e.slice(0,r).split(":");if(t[1])return t[1]}}},z8=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;localStorage.setItem(e,t)},jb=e=>{let t=localStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},C9=e=>{localStorage.removeItem(e)},w9=(e,r)=>{const t=typeof r=="object"?JSON.stringify(r):r;sessionStorage.setItem(e,t)},_9=e=>{let t=sessionStorage.getItem(e);return typeof t=="string"&&(t=Ib(t)),t||null},S9=e=>{sessionStorage.removeItem(e)},E9=(e,r)=>{const t=[];for(let i=0;i<r.length;i++)t.findIndex(l=>l[e]===r[i][e])<0&&t.push(r[i]);return t},Ib=e=>{if(!e)return null;if(typeof e=="object")return e;if(typeof e=="string"){let r=e;try{r=JSON.parse(e)}catch{}return r}};function D9(){var e=URL.createObjectURL(new Blob),r=e.toString();return URL.revokeObjectURL(e),r.substr(r.lastIndexOf("/")+1)}const k9=Object.freeze(Object.defineProperty({__proto__:null,filterObject:x9,getBase64:L8,getFileSuffix:dg,getFileType:b9,setLocalStorage:z8,getLocalStorage:jb,removeLocalStorage:C9,setSessionStorage:w9,getSessionStorage:_9,removeSessionStorage:S9,arrayDeduplication:E9,JSONParse:Ib,uuid:D9,forceReload:()=>{const e="FORCERELOAD";sessionStorage.getItem(e)!=="1"&&(sessionStorage.setItem(e,"1"),window.location.reload())},formatResponse:e=>{if(typeof e=="string"){const r=e.indexOf(",");return JSON.parse(e.slice(r+1))}return e}},Symbol.toStringTag,{value:"Module"}));const T9=4,U8=0,j8=1,A9=2;function td(e){let r=e.length;for(;--r>=0;)e[r]=0}const O9=0,I8=1,R9=2,F9=3,N9=258,Hb=29,kp=256,Tp=kp+1+Hb,nd=30,Vb=19,H8=2*Tp+1,gc=15,$b=16,M9=7,Yb=256,V8=16,$8=17,Y8=18,qb=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),pg=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),P9=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),q8=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),B9=512,as=new Array((Tp+2)*2);td(as);const Ap=new Array(nd*2);td(Ap);const Op=new Array(B9);td(Op);const Rp=new Array(N9-F9+1);td(Rp);const Gb=new Array(Hb);td(Gb);const hg=new Array(nd);td(hg);function Kb(e,r,t,i,l){this.static_tree=e,this.extra_bits=r,this.extra_base=t,this.elems=i,this.max_length=l,this.has_stree=e&&e.length}let G8,K8,W8;function Wb(e,r){this.dyn_tree=e,this.max_code=0,this.stat_desc=r}const Q8=e=>e<256?Op[e]:Op[256+(e>>>7)],Fp=(e,r)=>{e.pending_buf[e.pending++]=r&255,e.pending_buf[e.pending++]=r>>>8&255},oi=(e,r,t)=>{e.bi_valid>$b-t?(e.bi_buf|=r<<e.bi_valid&65535,Fp(e,e.bi_buf),e.bi_buf=r>>$b-e.bi_valid,e.bi_valid+=t-$b):(e.bi_buf|=r<<e.bi_valid&65535,e.bi_valid+=t)},ol=(e,r,t)=>{oi(e,t[r*2],t[r*2+1])},Z8=(e,r)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--r>0);return t>>>1},L9=e=>{e.bi_valid===16?(Fp(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},z9=(e,r)=>{const t=r.dyn_tree,i=r.max_code,l=r.stat_desc.static_tree,f=r.stat_desc.has_stree,c=r.stat_desc.extra_bits,h=r.stat_desc.extra_base,m=r.stat_desc.max_length;let d,g,C,b,x,_,k=0;for(b=0;b<=gc;b++)e.bl_count[b]=0;for(t[e.heap[e.heap_max]*2+1]=0,d=e.heap_max+1;d<H8;d++)g=e.heap[d],b=t[t[g*2+1]*2+1]+1,b>m&&(b=m,k++),t[g*2+1]=b,!(g>i)&&(e.bl_count[b]++,x=0,g>=h&&(x=c[g-h]),_=t[g*2],e.opt_len+=_*(b+x),f&&(e.static_len+=_*(l[g*2+1]+x)));if(k!==0){do{for(b=m-1;e.bl_count[b]===0;)b--;e.bl_count[b]--,e.bl_count[b+1]+=2,e.bl_count[m]--,k-=2}while(k>0);for(b=m;b!==0;b--)for(g=e.bl_count[b];g!==0;)C=e.heap[--d],!(C>i)&&(t[C*2+1]!==b&&(e.opt_len+=(b-t[C*2+1])*t[C*2],t[C*2+1]=b),g--)}},X8=(e,r,t)=>{const i=new Array(gc+1);let l=0,f,c;for(f=1;f<=gc;f++)l=l+t[f-1]<<1,i[f]=l;for(c=0;c<=r;c++){let h=e[c*2+1];h!==0&&(e[c*2]=Z8(i[h]++,h))}},U9=()=>{let e,r,t,i,l;const f=new Array(gc+1);for(t=0,i=0;i<Hb-1;i++)for(Gb[i]=t,e=0;e<1<<qb[i];e++)Rp[t++]=i;for(Rp[t-1]=i,l=0,i=0;i<16;i++)for(hg[i]=l,e=0;e<1<<pg[i];e++)Op[l++]=i;for(l>>=7;i<nd;i++)for(hg[i]=l<<7,e=0;e<1<<pg[i]-7;e++)Op[256+l++]=i;for(r=0;r<=gc;r++)f[r]=0;for(e=0;e<=143;)as[e*2+1]=8,e++,f[8]++;for(;e<=255;)as[e*2+1]=9,e++,f[9]++;for(;e<=279;)as[e*2+1]=7,e++,f[7]++;for(;e<=287;)as[e*2+1]=8,e++,f[8]++;for(X8(as,Tp+1,f),e=0;e<nd;e++)Ap[e*2+1]=5,Ap[e*2]=Z8(e,5);G8=new Kb(as,qb,kp+1,Tp,gc),K8=new Kb(Ap,pg,0,nd,gc),W8=new Kb(new Array(0),P9,0,Vb,M9)},J8=e=>{let r;for(r=0;r<Tp;r++)e.dyn_ltree[r*2]=0;for(r=0;r<nd;r++)e.dyn_dtree[r*2]=0;for(r=0;r<Vb;r++)e.bl_tree[r*2]=0;e.dyn_ltree[Yb*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},e5=e=>{e.bi_valid>8?Fp(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},t5=(e,r,t,i)=>{const l=r*2,f=t*2;return e[l]<e[f]||e[l]===e[f]&&i[r]<=i[t]},Qb=(e,r,t)=>{const i=e.heap[t];let l=t<<1;for(;l<=e.heap_len&&(l<e.heap_len&&t5(r,e.heap[l+1],e.heap[l],e.depth)&&l++,!t5(r,i,e.heap[l],e.depth));)e.heap[t]=e.heap[l],t=l,l<<=1;e.heap[t]=i},n5=(e,r,t)=>{let i,l,f=0,c,h;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+f++]&255,i+=(e.pending_buf[e.sym_buf+f++]&255)<<8,l=e.pending_buf[e.sym_buf+f++],i===0?ol(e,l,r):(c=Rp[l],ol(e,c+kp+1,r),h=qb[c],h!==0&&(l-=Gb[c],oi(e,l,h)),i--,c=Q8(i),ol(e,c,t),h=pg[c],h!==0&&(i-=hg[c],oi(e,i,h)));while(f<e.sym_next);ol(e,Yb,r)},Zb=(e,r)=>{const t=r.dyn_tree,i=r.stat_desc.static_tree,l=r.stat_desc.has_stree,f=r.stat_desc.elems;let c,h,m=-1,d;for(e.heap_len=0,e.heap_max=H8,c=0;c<f;c++)t[c*2]!==0?(e.heap[++e.heap_len]=m=c,e.depth[c]=0):t[c*2+1]=0;for(;e.heap_len<2;)d=e.heap[++e.heap_len]=m<2?++m:0,t[d*2]=1,e.depth[d]=0,e.opt_len--,l&&(e.static_len-=i[d*2+1]);for(r.max_code=m,c=e.heap_len>>1;c>=1;c--)Qb(e,t,c);d=f;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qb(e,t,1),h=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=h,t[d*2]=t[c*2]+t[h*2],e.depth[d]=(e.depth[c]>=e.depth[h]?e.depth[c]:e.depth[h])+1,t[c*2+1]=t[h*2+1]=d,e.heap[1]=d++,Qb(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],z9(e,r),X8(t,m,e.bl_count)},r5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],h=0,m=7,d=4;for(c===0&&(m=138,d=3),r[(t+1)*2+1]=65535,i=0;i<=t;i++)f=c,c=r[(i+1)*2+1],!(++h<m&&f===c)&&(h<d?e.bl_tree[f*2]+=h:f!==0?(f!==l&&e.bl_tree[f*2]++,e.bl_tree[V8*2]++):h<=10?e.bl_tree[$8*2]++:e.bl_tree[Y8*2]++,h=0,l=f,c===0?(m=138,d=3):f===c?(m=6,d=3):(m=7,d=4))},a5=(e,r,t)=>{let i,l=-1,f,c=r[0*2+1],h=0,m=7,d=4;for(c===0&&(m=138,d=3),i=0;i<=t;i++)if(f=c,c=r[(i+1)*2+1],!(++h<m&&f===c)){if(h<d)do ol(e,f,e.bl_tree);while(--h!==0);else f!==0?(f!==l&&(ol(e,f,e.bl_tree),h--),ol(e,V8,e.bl_tree),oi(e,h-3,2)):h<=10?(ol(e,$8,e.bl_tree),oi(e,h-3,3)):(ol(e,Y8,e.bl_tree),oi(e,h-11,7));h=0,l=f,c===0?(m=138,d=3):f===c?(m=6,d=3):(m=7,d=4)}},j9=e=>{let r;for(r5(e,e.dyn_ltree,e.l_desc.max_code),r5(e,e.dyn_dtree,e.d_desc.max_code),Zb(e,e.bl_desc),r=Vb-1;r>=3&&e.bl_tree[q8[r]*2+1]===0;r--);return e.opt_len+=3*(r+1)+5+5+4,r},I9=(e,r,t,i)=>{let l;for(oi(e,r-257,5),oi(e,t-1,5),oi(e,i-4,4),l=0;l<i;l++)oi(e,e.bl_tree[q8[l]*2+1],3);a5(e,e.dyn_ltree,r-1),a5(e,e.dyn_dtree,t-1)},H9=e=>{let r=4093624447,t;for(t=0;t<=31;t++,r>>>=1)if(r&1&&e.dyn_ltree[t*2]!==0)return U8;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return j8;for(t=32;t<kp;t++)if(e.dyn_ltree[t*2]!==0)return j8;return U8};let i5=!1;const V9=e=>{i5||(U9(),i5=!0),e.l_desc=new Wb(e.dyn_ltree,G8),e.d_desc=new Wb(e.dyn_dtree,K8),e.bl_desc=new Wb(e.bl_tree,W8),e.bi_buf=0,e.bi_valid=0,J8(e)},o5=(e,r,t,i)=>{oi(e,(O9<<1)+(i?1:0),3),e5(e),Fp(e,t),Fp(e,~t),t&&e.pending_buf.set(e.window.subarray(r,r+t),e.pending),e.pending+=t},$9=e=>{oi(e,I8<<1,3),ol(e,Yb,as),L9(e)},Y9=(e,r,t,i)=>{let l,f,c=0;e.level>0?(e.strm.data_type===A9&&(e.strm.data_type=H9(e)),Zb(e,e.l_desc),Zb(e,e.d_desc),c=j9(e),l=e.opt_len+3+7>>>3,f=e.static_len+3+7>>>3,f<=l&&(l=f)):l=f=t+5,t+4<=l&&r!==-1?o5(e,r,t,i):e.strategy===T9||f===l?(oi(e,(I8<<1)+(i?1:0),3),n5(e,as,Ap)):(oi(e,(R9<<1)+(i?1:0),3),I9(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),n5(e,e.dyn_ltree,e.dyn_dtree)),J8(e),i&&e5(e)},q9=(e,r,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=r,e.pending_buf[e.sym_buf+e.sym_next++]=r>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,r===0?e.dyn_ltree[t*2]++:(e.matches++,r--,e.dyn_ltree[(Rp[t]+kp+1)*2]++,e.dyn_dtree[Q8(r)*2]++),e.sym_next===e.sym_end);var G9=V9,K9=o5,W9=Y9,Q9=q9,Z9=$9,X9={_tr_init:G9,_tr_stored_block:K9,_tr_flush_block:W9,_tr_tally:Q9,_tr_align:Z9},Np=(e,r,t,i)=>{let l=e&65535|0,f=e>>>16&65535|0,c=0;for(;t!==0;){c=t>2e3?2e3:t,t-=c;do l=l+r[i++]|0,f=f+l|0;while(--c);l%=65521,f%=65521}return l|f<<16|0};const J9=()=>{let e,r=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;r[t]=e}return r},eN=new Uint32Array(J9());var Jr=(e,r,t,i)=>{const l=eN,f=i+t;e^=-1;for(let c=i;c<f;c++)e=e>>>8^l[(e^r[c])&255];return e^-1},yc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:tN,_tr_stored_block:Xb,_tr_flush_block:nN,_tr_tally:nu,_tr_align:rN}=X9,{Z_NO_FLUSH:ru,Z_PARTIAL_FLUSH:aN,Z_FULL_FLUSH:iN,Z_FINISH:Zi,Z_BLOCK:l5,Z_OK:pa,Z_STREAM_END:s5,Z_STREAM_ERROR:ll,Z_DATA_ERROR:oN,Z_BUF_ERROR:Jb,Z_DEFAULT_COMPRESSION:lN,Z_FILTERED:sN,Z_HUFFMAN_ONLY:vg,Z_RLE:uN,Z_FIXED:cN,Z_DEFAULT_STRATEGY:fN,Z_UNKNOWN:dN,Z_DEFLATED:mg}=xc,pN=9,hN=15,vN=8,mN=29,e2=256+1+mN,gN=30,yN=19,xN=2*e2+1,bN=15,Wt=3,au=258,sl=au+Wt+1,CN=32,rd=42,t2=57,n2=69,r2=73,a2=91,i2=103,bc=113,Mp=666,Ha=1,ad=2,Cc=3,id=4,wN=3,wc=(e,r)=>(e.msg=yc[r],r),u5=e=>e*2-(e>4?9:0),iu=e=>{let r=e.length;for(;--r>=0;)e[r]=0},_N=e=>{let r,t,i,l=e.w_size;r=e.hash_size,i=r;do t=e.head[--i],e.head[i]=t>=l?t-l:0;while(--r);r=l,i=r;do t=e.prev[--i],e.prev[i]=t>=l?t-l:0;while(--r)};let ou=(e,r,t)=>(r<<e.hash_shift^t)&e.hash_mask;const Oi=e=>{const r=e.state;let t=r.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(r.pending_buf.subarray(r.pending_out,r.pending_out+t),e.next_out),e.next_out+=t,r.pending_out+=t,e.total_out+=t,e.avail_out-=t,r.pending-=t,r.pending===0&&(r.pending_out=0))},Ri=(e,r)=>{nN(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r),e.block_start=e.strstart,Oi(e.strm)},pn=(e,r)=>{e.pending_buf[e.pending++]=r},Pp=(e,r)=>{e.pending_buf[e.pending++]=r>>>8&255,e.pending_buf[e.pending++]=r&255},o2=(e,r,t,i)=>{let l=e.avail_in;return l>i&&(l=i),l===0?0:(e.avail_in-=l,r.set(e.input.subarray(e.next_in,e.next_in+l),t),e.state.wrap===1?e.adler=Np(e.adler,r,l,t):e.state.wrap===2&&(e.adler=Jr(e.adler,r,l,t)),e.next_in+=l,e.total_in+=l,l)},c5=(e,r)=>{let t=e.max_chain_length,i=e.strstart,l,f,c=e.prev_length,h=e.nice_match;const m=e.strstart>e.w_size-sl?e.strstart-(e.w_size-sl):0,d=e.window,g=e.w_mask,C=e.prev,b=e.strstart+au;let x=d[i+c-1],_=d[i+c];e.prev_length>=e.good_match&&(t>>=2),h>e.lookahead&&(h=e.lookahead);do if(l=r,!(d[l+c]!==_||d[l+c-1]!==x||d[l]!==d[i]||d[++l]!==d[i+1])){i+=2,l++;do;while(d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&d[++i]===d[++l]&&i<b);if(f=au-(b-i),i=b-au,f>c){if(e.match_start=r,c=f,f>=h)break;x=d[i+c-1],_=d[i+c]}}while((r=C[r&g])>m&&--t!==0);return c<=e.lookahead?c:e.lookahead},od=e=>{const r=e.w_size;let t,i,l;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=r+(r-sl)&&(e.window.set(e.window.subarray(r,r+r-i),0),e.match_start-=r,e.strstart-=r,e.block_start-=r,e.insert>e.strstart&&(e.insert=e.strstart),_N(e),i+=r),e.strm.avail_in===0)break;if(t=o2(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=Wt)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=ou(e,e.ins_h,e.window[l+1]);e.insert&&(e.ins_h=ou(e,e.ins_h,e.window[l+Wt-1]),e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<Wt)););}while(e.lookahead<sl&&e.strm.avail_in!==0)},f5=(e,r)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,l,f,c=0,h=e.strm.avail_in;do{if(i=65535,f=e.bi_valid+42>>3,e.strm.avail_out<f||(f=e.strm.avail_out-f,l=e.strstart-e.block_start,i>l+e.strm.avail_in&&(i=l+e.strm.avail_in),i>f&&(i=f),i<t&&(i===0&&r!==Zi||r===ru||i!==l+e.strm.avail_in)))break;c=r===Zi&&i===l+e.strm.avail_in?1:0,Xb(e,0,0,c),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,Oi(e.strm),l&&(l>i&&(l=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+l),e.strm.next_out),e.strm.next_out+=l,e.strm.avail_out-=l,e.strm.total_out+=l,e.block_start+=l,i-=l),i&&(o2(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(c===0);return h-=e.strm.avail_in,h&&(h>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=h&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-h,e.strm.next_in),e.strstart),e.strstart+=h,e.insert+=h>e.w_size-e.insert?e.w_size-e.insert:h),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),c?id:r!==ru&&r!==Zi&&e.strm.avail_in===0&&e.strstart===e.block_start?ad:(f=e.window_size-e.strstart,e.strm.avail_in>f&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,f+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),f>e.strm.avail_in&&(f=e.strm.avail_in),f&&(o2(e.strm,e.window,e.strstart,f),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.high_water<e.strstart&&(e.high_water=e.strstart),f=e.bi_valid+42>>3,f=e.pending_buf_size-f>65535?65535:e.pending_buf_size-f,t=f>e.w_size?e.w_size:f,l=e.strstart-e.block_start,(l>=t||(l||r===Zi)&&r!==ru&&e.strm.avail_in===0&&l<=f)&&(i=l>f?f:l,c=r===Zi&&e.strm.avail_in===0&&i===l?1:0,Xb(e,e.block_start,i,c),e.block_start+=i,Oi(e.strm)),c?Cc:Ha)},l2=(e,r)=>{let t,i;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Wt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-sl&&(e.match_length=c5(e,t)),e.match_length>=Wt)if(i=nu(e,e.strstart-e.match_start,e.match_length-Wt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Wt){e.match_length--;do e.strstart++,e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ou(e,e.ins_h,e.window[e.strstart+1]);else i=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=e.strstart<Wt-1?e.strstart:Wt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},ld=(e,r)=>{let t,i,l;for(;;){if(e.lookahead<sl){if(od(e),e.lookahead<sl&&r===ru)return Ha;if(e.lookahead===0)break}if(t=0,e.lookahead>=Wt&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Wt-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-sl&&(e.match_length=c5(e,t),e.match_length<=5&&(e.strategy===sN||e.match_length===Wt&&e.strstart-e.match_start>4096)&&(e.match_length=Wt-1)),e.prev_length>=Wt&&e.match_length<=e.prev_length){l=e.strstart+e.lookahead-Wt,i=nu(e,e.strstart-1-e.prev_match,e.prev_length-Wt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=l&&(e.ins_h=ou(e,e.ins_h,e.window[e.strstart+Wt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Wt-1,e.strstart++,i&&(Ri(e,!1),e.strm.avail_out===0))return Ha}else if(e.match_available){if(i=nu(e,0,e.window[e.strstart-1]),i&&Ri(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Ha}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=nu(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Wt-1?e.strstart:Wt-1,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},SN=(e,r)=>{let t,i,l,f;const c=e.window;for(;;){if(e.lookahead<=au){if(od(e),e.lookahead<=au&&r===ru)return Ha;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Wt&&e.strstart>0&&(l=e.strstart-1,i=c[l],i===c[++l]&&i===c[++l]&&i===c[++l])){f=e.strstart+au;do;while(i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&i===c[++l]&&l<f);e.match_length=au-(f-l),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Wt?(t=nu(e,1,e.match_length-Wt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad},EN=(e,r)=>{let t;for(;;){if(e.lookahead===0&&(od(e),e.lookahead===0)){if(r===ru)return Ha;break}if(e.match_length=0,t=nu(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Ri(e,!1),e.strm.avail_out===0))return Ha}return e.insert=0,r===Zi?(Ri(e,!0),e.strm.avail_out===0?Cc:id):e.sym_next&&(Ri(e,!1),e.strm.avail_out===0)?Ha:ad};function ul(e,r,t,i,l){this.good_length=e,this.max_lazy=r,this.nice_length=t,this.max_chain=i,this.func=l}const Bp=[new ul(0,0,0,0,f5),new ul(4,4,8,4,l2),new ul(4,5,16,8,l2),new ul(4,6,32,32,l2),new ul(4,4,16,16,ld),new ul(8,16,32,32,ld),new ul(8,16,128,128,ld),new ul(8,32,128,256,ld),new ul(32,128,258,1024,ld),new ul(32,258,258,4096,ld)],DN=e=>{e.window_size=2*e.w_size,iu(e.head),e.max_lazy_match=Bp[e.level].max_lazy,e.good_match=Bp[e.level].good_length,e.nice_match=Bp[e.level].nice_length,e.max_chain_length=Bp[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Wt-1,e.match_available=0,e.ins_h=0};function kN(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mg,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(xN*2),this.dyn_dtree=new Uint16Array((2*gN+1)*2),this.bl_tree=new Uint16Array((2*yN+1)*2),iu(this.dyn_ltree),iu(this.dyn_dtree),iu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(bN+1),this.heap=new Uint16Array(2*e2+1),iu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*e2+1),iu(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Lp=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.status!==rd&&r.status!==t2&&r.status!==n2&&r.status!==r2&&r.status!==a2&&r.status!==i2&&r.status!==bc&&r.status!==Mp?1:0},d5=e=>{if(Lp(e))return wc(e,ll);e.total_in=e.total_out=0,e.data_type=dN;const r=e.state;return r.pending=0,r.pending_out=0,r.wrap<0&&(r.wrap=-r.wrap),r.status=r.wrap===2?t2:r.wrap?rd:bc,e.adler=r.wrap===2?0:1,r.last_flush=-2,tN(r),pa},p5=e=>{const r=d5(e);return r===pa&&DN(e.state),r},TN=(e,r)=>Lp(e)||e.state.wrap!==2?ll:(e.state.gzhead=r,pa),h5=(e,r,t,i,l,f)=>{if(!e)return ll;let c=1;if(r===lN&&(r=6),i<0?(c=0,i=-i):i>15&&(c=2,i-=16),l<1||l>pN||t!==mg||i<8||i>15||r<0||r>9||f<0||f>cN||i===8&&c!==1)return wc(e,ll);i===8&&(i=9);const h=new kN;return e.state=h,h.strm=e,h.status=rd,h.wrap=c,h.gzhead=null,h.w_bits=i,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=l+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+Wt-1)/Wt),h.window=new Uint8Array(h.w_size*2),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<l+6,h.pending_buf_size=h.lit_bufsize*4,h.pending_buf=new Uint8Array(h.pending_buf_size),h.sym_buf=h.lit_bufsize,h.sym_end=(h.lit_bufsize-1)*3,h.level=r,h.strategy=f,h.method=t,p5(e)},AN=(e,r)=>h5(e,r,mg,hN,vN,fN),ON=(e,r)=>{if(Lp(e)||r>l5||r<0)return e?wc(e,ll):ll;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Mp&&r!==Zi)return wc(e,e.avail_out===0?Jb:ll);const i=t.last_flush;if(t.last_flush=r,t.pending!==0){if(Oi(e),e.avail_out===0)return t.last_flush=-1,pa}else if(e.avail_in===0&&u5(r)<=u5(i)&&r!==Zi)return wc(e,Jb);if(t.status===Mp&&e.avail_in!==0)return wc(e,Jb);if(t.status===rd&&t.wrap===0&&(t.status=bc),t.status===rd){let l=mg+(t.w_bits-8<<4)<<8,f=-1;if(t.strategy>=vg||t.level<2?f=0:t.level<6?f=1:t.level===6?f=2:f=3,l|=f<<6,t.strstart!==0&&(l|=CN),l+=31-l%31,Pp(t,l),t.strstart!==0&&(Pp(t,e.adler>>>16),Pp(t,e.adler&65535)),e.adler=1,t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,pa}if(t.status===t2){if(e.adler=0,pn(t,31),pn(t,139),pn(t,8),t.gzhead)pn(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),pn(t,t.gzhead.time&255),pn(t,t.gzhead.time>>8&255),pn(t,t.gzhead.time>>16&255),pn(t,t.gzhead.time>>24&255),pn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),pn(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(pn(t,t.gzhead.extra.length&255),pn(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=Jr(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=n2;else if(pn(t,0),pn(t,0),pn(t,0),pn(t,0),pn(t,0),pn(t,t.level===9?2:t.strategy>=vg||t.level<2?4:0),pn(t,wN),t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,pa}if(t.status===n2){if(t.gzhead.extra){let l=t.pending,f=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+f>t.pending_buf_size;){let h=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+h),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex+=h,Oi(e),t.pending!==0)return t.last_flush=-1,pa;l=0,f-=h}let c=new Uint8Array(t.gzhead.extra);t.pending_buf.set(c.subarray(t.gzindex,t.gzindex+f),t.pending),t.pending+=f,t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=r2}if(t.status===r2){if(t.gzhead.name){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,pa;l=0}t.gzindex<t.gzhead.name.length?f=t.gzhead.name.charCodeAt(t.gzindex++)&255:f=0,pn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),t.gzindex=0}t.status=a2}if(t.status===a2){if(t.gzhead.comment){let l=t.pending,f;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l)),Oi(e),t.pending!==0)return t.last_flush=-1,pa;l=0}t.gzindex<t.gzhead.comment.length?f=t.gzhead.comment.charCodeAt(t.gzindex++)&255:f=0,pn(t,f)}while(f!==0);t.gzhead.hcrc&&t.pending>l&&(e.adler=Jr(e.adler,t.pending_buf,t.pending-l,l))}t.status=i2}if(t.status===i2){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Oi(e),t.pending!==0))return t.last_flush=-1,pa;pn(t,e.adler&255),pn(t,e.adler>>8&255),e.adler=0}if(t.status=bc,Oi(e),t.pending!==0)return t.last_flush=-1,pa}if(e.avail_in!==0||t.lookahead!==0||r!==ru&&t.status!==Mp){let l=t.level===0?f5(t,r):t.strategy===vg?EN(t,r):t.strategy===uN?SN(t,r):Bp[t.level].func(t,r);if((l===Cc||l===id)&&(t.status=Mp),l===Ha||l===Cc)return e.avail_out===0&&(t.last_flush=-1),pa;if(l===ad&&(r===aN?rN(t):r!==l5&&(Xb(t,0,0,!1),r===iN&&(iu(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Oi(e),e.avail_out===0))return t.last_flush=-1,pa}return r!==Zi?pa:t.wrap<=0?s5:(t.wrap===2?(pn(t,e.adler&255),pn(t,e.adler>>8&255),pn(t,e.adler>>16&255),pn(t,e.adler>>24&255),pn(t,e.total_in&255),pn(t,e.total_in>>8&255),pn(t,e.total_in>>16&255),pn(t,e.total_in>>24&255)):(Pp(t,e.adler>>>16),Pp(t,e.adler&65535)),Oi(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?pa:s5)},RN=e=>{if(Lp(e))return ll;const r=e.state.status;return e.state=null,r===bc?wc(e,oN):pa},FN=(e,r)=>{let t=r.length;if(Lp(e))return ll;const i=e.state,l=i.wrap;if(l===2||l===1&&i.status!==rd||i.lookahead)return ll;if(l===1&&(e.adler=Np(e.adler,r,t,0)),i.wrap=0,t>=i.w_size){l===0&&(iu(i.head),i.strstart=0,i.block_start=0,i.insert=0);let m=new Uint8Array(i.w_size);m.set(r.subarray(t-i.w_size,t),0),r=m,t=i.w_size}const f=e.avail_in,c=e.next_in,h=e.input;for(e.avail_in=t,e.next_in=0,e.input=r,od(i);i.lookahead>=Wt;){let m=i.strstart,d=i.lookahead-(Wt-1);do i.ins_h=ou(i,i.ins_h,i.window[m+Wt-1]),i.prev[m&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=m,m++;while(--d);i.strstart=m,i.lookahead=Wt-1,od(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=Wt-1,i.match_available=0,e.next_in=c,e.input=h,e.avail_in=f,i.wrap=l,pa};var NN=AN,MN=h5,PN=p5,BN=d5,LN=TN,zN=ON,UN=RN,jN=FN,IN="pako deflate (from Nodeca project)",zp={deflateInit:NN,deflateInit2:MN,deflateReset:PN,deflateResetKeep:BN,deflateSetHeader:LN,deflate:zN,deflateEnd:UN,deflateSetDictionary:jN,deflateInfo:IN};const HN=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var VN=function(e){const r=Array.prototype.slice.call(arguments,1);for(;r.length;){const t=r.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)HN(t,i)&&(e[i]=t[i])}}return e},$N=e=>{let r=0;for(let i=0,l=e.length;i<l;i++)r+=e[i].length;const t=new Uint8Array(r);for(let i=0,l=0,f=e.length;i<f;i++){let c=e[i];t.set(c,l),l+=c.length}return t},gg={assign:VN,flattenChunks:$N};let v5=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{v5=!1}const Up=new Uint8Array(256);for(let e=0;e<256;e++)Up[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Up[254]=Up[254]=1;var YN=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let r,t,i,l,f,c=e.length,h=0;for(l=0;l<c;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),h+=t<128?1:t<2048?2:t<65536?3:4;for(r=new Uint8Array(h),f=0,l=0;f<h;l++)t=e.charCodeAt(l),(t&64512)===55296&&l+1<c&&(i=e.charCodeAt(l+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),l++)),t<128?r[f++]=t:t<2048?(r[f++]=192|t>>>6,r[f++]=128|t&63):t<65536?(r[f++]=224|t>>>12,r[f++]=128|t>>>6&63,r[f++]=128|t&63):(r[f++]=240|t>>>18,r[f++]=128|t>>>12&63,r[f++]=128|t>>>6&63,r[f++]=128|t&63);return r};const qN=(e,r)=>{if(r<65534&&e.subarray&&v5)return String.fromCharCode.apply(null,e.length===r?e:e.subarray(0,r));let t="";for(let i=0;i<r;i++)t+=String.fromCharCode(e[i]);return t};var GN=(e,r)=>{const t=r||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,r));let i,l;const f=new Array(t*2);for(l=0,i=0;i<t;){let c=e[i++];if(c<128){f[l++]=c;continue}let h=Up[c];if(h>4){f[l++]=65533,i+=h-1;continue}for(c&=h===2?31:h===3?15:7;h>1&&i<t;)c=c<<6|e[i++]&63,h--;if(h>1){f[l++]=65533;continue}c<65536?f[l++]=c:(c-=65536,f[l++]=55296|c>>10&1023,f[l++]=56320|c&1023)}return qN(f,l)},KN=(e,r)=>{r=r||e.length,r>e.length&&(r=e.length);let t=r-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?r:t+Up[e[t]]>r?t:r},jp={string2buf:YN,buf2string:GN,utf8border:KN};function WN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var m5=WN;const g5=Object.prototype.toString,{Z_NO_FLUSH:QN,Z_SYNC_FLUSH:ZN,Z_FULL_FLUSH:XN,Z_FINISH:JN,Z_OK:yg,Z_STREAM_END:eM,Z_DEFAULT_COMPRESSION:tM,Z_DEFAULT_STRATEGY:nM,Z_DEFLATED:rM}=xc;function Ip(e){this.options=gg.assign({level:tM,method:rM,chunkSize:16384,windowBits:15,memLevel:8,strategy:nM},e||{});let r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m5,this.strm.avail_out=0;let t=zp.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(t!==yg)throw new Error(yc[t]);if(r.header&&zp.deflateSetHeader(this.strm,r.header),r.dictionary){let i;if(typeof r.dictionary=="string"?i=jp.string2buf(r.dictionary):g5.call(r.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(r.dictionary):i=r.dictionary,t=zp.deflateSetDictionary(this.strm,i),t!==yg)throw new Error(yc[t]);this._dict_set=!0}}Ip.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize;let l,f;if(this.ended)return!1;for(r===~~r?f=r:f=r===!0?JN:QN,typeof e=="string"?t.input=jp.string2buf(e):g5.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(f===ZN||f===XN)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(l=zp.deflate(t,f),l===eM)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),l=zp.deflateEnd(this.strm),this.onEnd(l),this.ended=!0,l===yg;if(t.avail_out===0){this.onData(t.output);continue}if(f>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},Ip.prototype.onData=function(e){this.chunks.push(e)},Ip.prototype.onEnd=function(e){e===yg&&(this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function s2(e,r){const t=new Ip(r);if(t.push(e,!0),t.err)throw t.msg||yc[t.err];return t.result}function aM(e,r){return r=r||{},r.raw=!0,s2(e,r)}function iM(e,r){return r=r||{},r.gzip=!0,s2(e,r)}var oM=Ip,lM=s2,sM=aM,uM=iM,cM=xc,fM={Deflate:oM,deflate:lM,deflateRaw:sM,gzip:uM,constants:cM};const xg=16209,dM=16191;var pM=function(r,t){let i,l,f,c,h,m,d,g,C,b,x,_,k,E,A,T,D,R,N,z,M,I,Y,B;const U=r.state;i=r.next_in,Y=r.input,l=i+(r.avail_in-5),f=r.next_out,B=r.output,c=f-(t-r.avail_out),h=f+(r.avail_out-257),m=U.dmax,d=U.wsize,g=U.whave,C=U.wnext,b=U.window,x=U.hold,_=U.bits,k=U.lencode,E=U.distcode,A=(1<<U.lenbits)-1,T=(1<<U.distbits)-1;e:do{_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=k[x&A];t:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R===0)B[f++]=D&65535;else if(R&16){N=D&65535,R&=15,R&&(_<R&&(x+=Y[i++]<<_,_+=8),N+=x&(1<<R)-1,x>>>=R,_-=R),_<15&&(x+=Y[i++]<<_,_+=8,x+=Y[i++]<<_,_+=8),D=E[x&T];n:for(;;){if(R=D>>>24,x>>>=R,_-=R,R=D>>>16&255,R&16){if(z=D&65535,R&=15,_<R&&(x+=Y[i++]<<_,_+=8,_<R&&(x+=Y[i++]<<_,_+=8)),z+=x&(1<<R)-1,z>m){r.msg="invalid distance too far back",U.mode=xg;break e}if(x>>>=R,_-=R,R=f-c,z>R){if(R=z-R,R>g&&U.sane){r.msg="invalid distance too far back",U.mode=xg;break e}if(M=0,I=b,C===0){if(M+=d-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}else if(C<R){if(M+=d+C-R,R-=C,R<N){N-=R;do B[f++]=b[M++];while(--R);if(M=0,C<N){R=C,N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}}}else if(M+=C-R,R<N){N-=R;do B[f++]=b[M++];while(--R);M=f-z,I=B}for(;N>2;)B[f++]=I[M++],B[f++]=I[M++],B[f++]=I[M++],N-=3;N&&(B[f++]=I[M++],N>1&&(B[f++]=I[M++]))}else{M=f-z;do B[f++]=B[M++],B[f++]=B[M++],B[f++]=B[M++],N-=3;while(N>2);N&&(B[f++]=B[M++],N>1&&(B[f++]=B[M++]))}}else if(R&64){r.msg="invalid distance code",U.mode=xg;break e}else{D=E[(D&65535)+(x&(1<<R)-1)];continue n}break}}else if(R&64)if(R&32){U.mode=dM;break e}else{r.msg="invalid literal/length code",U.mode=xg;break e}else{D=k[(D&65535)+(x&(1<<R)-1)];continue t}break}}while(i<l&&f<h);N=_>>3,i-=N,_-=N<<3,x&=(1<<_)-1,r.next_in=i,r.next_out=f,r.avail_in=i<l?5+(l-i):5-(i-l),r.avail_out=f<h?257+(h-f):257-(f-h),U.hold=x,U.bits=_};const sd=15,y5=852,x5=592,b5=0,u2=1,C5=2,hM=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),vM=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),mM=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),gM=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Hp=(e,r,t,i,l,f,c,h)=>{const m=h.bits;let d=0,g=0,C=0,b=0,x=0,_=0,k=0,E=0,A=0,T=0,D,R,N,z,M,I=null,Y;const B=new Uint16Array(sd+1),U=new Uint16Array(sd+1);let P=null,H,V,G;for(d=0;d<=sd;d++)B[d]=0;for(g=0;g<i;g++)B[r[t+g]]++;for(x=m,b=sd;b>=1&&B[b]===0;b--);if(x>b&&(x=b),b===0)return l[f++]=1<<24|64<<16|0,l[f++]=1<<24|64<<16|0,h.bits=1,0;for(C=1;C<b&&B[C]===0;C++);for(x<C&&(x=C),E=1,d=1;d<=sd;d++)if(E<<=1,E-=B[d],E<0)return-1;if(E>0&&(e===b5||b!==1))return-1;for(U[1]=0,d=1;d<sd;d++)U[d+1]=U[d]+B[d];for(g=0;g<i;g++)r[t+g]!==0&&(c[U[r[t+g]]++]=g);if(e===b5?(I=P=c,Y=20):e===u2?(I=hM,P=vM,Y=257):(I=mM,P=gM,Y=0),T=0,g=0,d=C,M=f,_=x,k=0,N=-1,A=1<<x,z=A-1,e===u2&&A>y5||e===C5&&A>x5)return 1;for(;;){H=d-k,c[g]+1<Y?(V=0,G=c[g]):c[g]>=Y?(V=P[c[g]-Y],G=I[c[g]-Y]):(V=32+64,G=0),D=1<<d-k,R=1<<_,C=R;do R-=D,l[M+(T>>k)+R]=H<<24|V<<16|G|0;while(R!==0);for(D=1<<d-1;T&D;)D>>=1;if(D!==0?(T&=D-1,T+=D):T=0,g++,--B[d]===0){if(d===b)break;d=r[t+c[g]]}if(d>x&&(T&z)!==N){for(k===0&&(k=x),M+=C,_=d-k,E=1<<_;_+k<b&&(E-=B[_+k],!(E<=0));)_++,E<<=1;if(A+=1<<_,e===u2&&A>y5||e===C5&&A>x5)return 1;N=T&z,l[N]=x<<24|_<<16|M-f|0}}return T!==0&&(l[M+T]=d-k<<24|64<<16|0),h.bits=x,0};const yM=0,w5=1,_5=2,{Z_FINISH:S5,Z_BLOCK:xM,Z_TREES:bg,Z_OK:_c,Z_STREAM_END:bM,Z_NEED_DICT:CM,Z_STREAM_ERROR:Xi,Z_DATA_ERROR:E5,Z_MEM_ERROR:D5,Z_BUF_ERROR:wM,Z_DEFLATED:k5}=xc,Cg=16180,T5=16181,A5=16182,O5=16183,R5=16184,F5=16185,N5=16186,M5=16187,P5=16188,B5=16189,wg=16190,is=16191,c2=16192,L5=16193,f2=16194,z5=16195,U5=16196,j5=16197,I5=16198,_g=16199,Sg=16200,H5=16201,V5=16202,$5=16203,Y5=16204,q5=16205,d2=16206,G5=16207,K5=16208,er=16209,W5=16210,Q5=16211,_M=852,SM=592,EM=15,Z5=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function DM(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Sc=e=>{if(!e)return 1;const r=e.state;return!r||r.strm!==e||r.mode<Cg||r.mode>Q5?1:0},X5=e=>{if(Sc(e))return Xi;const r=e.state;return e.total_in=e.total_out=r.total=0,e.msg="",r.wrap&&(e.adler=r.wrap&1),r.mode=Cg,r.last=0,r.havedict=0,r.flags=-1,r.dmax=32768,r.head=null,r.hold=0,r.bits=0,r.lencode=r.lendyn=new Int32Array(_M),r.distcode=r.distdyn=new Int32Array(SM),r.sane=1,r.back=-1,_c},J5=e=>{if(Sc(e))return Xi;const r=e.state;return r.wsize=0,r.whave=0,r.wnext=0,X5(e)},e6=(e,r)=>{let t;if(Sc(e))return Xi;const i=e.state;return r<0?(t=0,r=-r):(t=(r>>4)+5,r<48&&(r&=15)),r&&(r<8||r>15)?Xi:(i.window!==null&&i.wbits!==r&&(i.window=null),i.wrap=t,i.wbits=r,J5(e))},t6=(e,r)=>{if(!e)return Xi;const t=new DM;e.state=t,t.strm=e,t.window=null,t.mode=Cg;const i=e6(e,r);return i!==_c&&(e.state=null),i},kM=e=>t6(e,EM);let n6=!0,p2,h2;const TM=e=>{if(n6){p2=new Int32Array(512),h2=new Int32Array(32);let r=0;for(;r<144;)e.lens[r++]=8;for(;r<256;)e.lens[r++]=9;for(;r<280;)e.lens[r++]=7;for(;r<288;)e.lens[r++]=8;for(Hp(w5,e.lens,0,288,p2,0,e.work,{bits:9}),r=0;r<32;)e.lens[r++]=5;Hp(_5,e.lens,0,32,h2,0,e.work,{bits:5}),n6=!1}e.lencode=p2,e.lenbits=9,e.distcode=h2,e.distbits=5},r6=(e,r,t,i)=>{let l;const f=e.state;return f.window===null&&(f.wsize=1<<f.wbits,f.wnext=0,f.whave=0,f.window=new Uint8Array(f.wsize)),i>=f.wsize?(f.window.set(r.subarray(t-f.wsize,t),0),f.wnext=0,f.whave=f.wsize):(l=f.wsize-f.wnext,l>i&&(l=i),f.window.set(r.subarray(t-i,t-i+l),f.wnext),i-=l,i?(f.window.set(r.subarray(t-i,t),0),f.wnext=i,f.whave=f.wsize):(f.wnext+=l,f.wnext===f.wsize&&(f.wnext=0),f.whave<f.wsize&&(f.whave+=l))),0},AM=(e,r)=>{let t,i,l,f,c,h,m,d,g,C,b,x,_,k,E=0,A,T,D,R,N,z,M,I;const Y=new Uint8Array(4);let B,U;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Sc(e)||!e.output||!e.input&&e.avail_in!==0)return Xi;t=e.state,t.mode===is&&(t.mode=c2),c=e.next_out,l=e.output,m=e.avail_out,f=e.next_in,i=e.input,h=e.avail_in,d=t.hold,g=t.bits,C=h,b=m,I=_c;e:for(;;)switch(t.mode){case Cg:if(t.wrap===0){t.mode=c2;break}for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.wrap&2&&d===35615){t.wbits===0&&(t.wbits=15),t.check=0,Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0),d=0,g=0,t.mode=T5;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((d&255)<<8)+(d>>8))%31){e.msg="incorrect header check",t.mode=er;break}if((d&15)!==k5){e.msg="unknown compression method",t.mode=er;break}if(d>>>=4,g-=4,M=(d&15)+8,t.wbits===0&&(t.wbits=M),M>15||M>t.wbits){e.msg="invalid window size",t.mode=er;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=d&512?B5:is,d=0,g=0;break;case T5:for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.flags=d,(t.flags&255)!==k5){e.msg="unknown compression method",t.mode=er;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=er;break}t.head&&(t.head.text=d>>8&1),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0)),d=0,g=0,t.mode=A5;case A5:for(;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.head&&(t.head.time=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,Y[2]=d>>>16&255,Y[3]=d>>>24&255,t.check=Jr(t.check,Y,4,0)),d=0,g=0,t.mode=O5;case O5:for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.head&&(t.head.xflags=d&255,t.head.os=d>>8),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0)),d=0,g=0,t.mode=R5;case R5:if(t.flags&1024){for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.length=d,t.head&&(t.head.extra_len=d),t.flags&512&&t.wrap&4&&(Y[0]=d&255,Y[1]=d>>>8&255,t.check=Jr(t.check,Y,2,0)),d=0,g=0}else t.head&&(t.head.extra=null);t.mode=F5;case F5:if(t.flags&1024&&(x=t.length,x>h&&(x=h),x&&(t.head&&(M=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(f,f+x),M)),t.flags&512&&t.wrap&4&&(t.check=Jr(t.check,i,x,f)),h-=x,f+=x,t.length-=x),t.length))break e;t.length=0,t.mode=N5;case N5:if(t.flags&2048){if(h===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.name+=String.fromCharCode(M));while(M&&x<h);if(t.flags&512&&t.wrap&4&&(t.check=Jr(t.check,i,x,f)),h-=x,f+=x,M)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=M5;case M5:if(t.flags&4096){if(h===0)break e;x=0;do M=i[f+x++],t.head&&M&&t.length<65536&&(t.head.comment+=String.fromCharCode(M));while(M&&x<h);if(t.flags&512&&t.wrap&4&&(t.check=Jr(t.check,i,x,f)),h-=x,f+=x,M)break e}else t.head&&(t.head.comment=null);t.mode=P5;case P5:if(t.flags&512){for(;g<16;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.wrap&4&&d!==(t.check&65535)){e.msg="header crc mismatch",t.mode=er;break}d=0,g=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=is;break;case B5:for(;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}e.adler=t.check=Z5(d),d=0,g=0,t.mode=wg;case wg:if(t.havedict===0)return e.next_out=c,e.avail_out=m,e.next_in=f,e.avail_in=h,t.hold=d,t.bits=g,CM;e.adler=t.check=1,t.mode=is;case is:if(r===xM||r===bg)break e;case c2:if(t.last){d>>>=g&7,g-=g&7,t.mode=d2;break}for(;g<3;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}switch(t.last=d&1,d>>>=1,g-=1,d&3){case 0:t.mode=L5;break;case 1:if(TM(t),t.mode=_g,r===bg){d>>>=2,g-=2;break e}break;case 2:t.mode=U5;break;case 3:e.msg="invalid block type",t.mode=er}d>>>=2,g-=2;break;case L5:for(d>>>=g&7,g-=g&7;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if((d&65535)!==(d>>>16^65535)){e.msg="invalid stored block lengths",t.mode=er;break}if(t.length=d&65535,d=0,g=0,t.mode=f2,r===bg)break e;case f2:t.mode=z5;case z5:if(x=t.length,x){if(x>h&&(x=h),x>m&&(x=m),x===0)break e;l.set(i.subarray(f,f+x),c),h-=x,f+=x,m-=x,c+=x,t.length-=x;break}t.mode=is;break;case U5:for(;g<14;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.nlen=(d&31)+257,d>>>=5,g-=5,t.ndist=(d&31)+1,d>>>=5,g-=5,t.ncode=(d&15)+4,d>>>=4,g-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=er;break}t.have=0,t.mode=j5;case j5:for(;t.have<t.ncode;){for(;g<3;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.lens[P[t.have++]]=d&7,d>>>=3,g-=3}for(;t.have<19;)t.lens[P[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,B={bits:t.lenbits},I=Hp(yM,t.lens,0,19,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid code lengths set",t.mode=er;break}t.have=0,t.mode=I5;case I5:for(;t.have<t.nlen+t.ndist;){for(;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(D<16)d>>>=A,g-=A,t.lens[t.have++]=D;else{if(D===16){for(U=A+2;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(d>>>=A,g-=A,t.have===0){e.msg="invalid bit length repeat",t.mode=er;break}M=t.lens[t.have-1],x=3+(d&3),d>>>=2,g-=2}else if(D===17){for(U=A+3;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=A,g-=A,M=0,x=3+(d&7),d>>>=3,g-=3}else{for(U=A+7;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=A,g-=A,M=0,x=11+(d&127),d>>>=7,g-=7}if(t.have+x>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=er;break}for(;x--;)t.lens[t.have++]=M}}if(t.mode===er)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=er;break}if(t.lenbits=9,B={bits:t.lenbits},I=Hp(w5,t.lens,0,t.nlen,t.lencode,0,t.work,B),t.lenbits=B.bits,I){e.msg="invalid literal/lengths set",t.mode=er;break}if(t.distbits=6,t.distcode=t.distdyn,B={bits:t.distbits},I=Hp(_5,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,B),t.distbits=B.bits,I){e.msg="invalid distances set",t.mode=er;break}if(t.mode=_g,r===bg)break e;case _g:t.mode=Sg;case Sg:if(h>=6&&m>=258){e.next_out=c,e.avail_out=m,e.next_in=f,e.avail_in=h,t.hold=d,t.bits=g,pM(e,b),c=e.next_out,l=e.output,m=e.avail_out,f=e.next_in,i=e.input,h=e.avail_in,d=t.hold,g=t.bits,t.mode===is&&(t.back=-1);break}for(t.back=0;E=t.lencode[d&(1<<t.lenbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(T&&!(T&240)){for(R=A,N=T,z=D;E=t.lencode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=R,g-=R,t.back+=R}if(d>>>=A,g-=A,t.back+=A,t.length=D,T===0){t.mode=q5;break}if(T&32){t.back=-1,t.mode=is;break}if(T&64){e.msg="invalid literal/length code",t.mode=er;break}t.extra=T&15,t.mode=H5;case H5:if(t.extra){for(U=t.extra;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.length+=d&(1<<t.extra)-1,d>>>=t.extra,g-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=V5;case V5:for(;E=t.distcode[d&(1<<t.distbits)-1],A=E>>>24,T=E>>>16&255,D=E&65535,!(A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(!(T&240)){for(R=A,N=T,z=D;E=t.distcode[z+((d&(1<<R+N)-1)>>R)],A=E>>>24,T=E>>>16&255,D=E&65535,!(R+A<=g);){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}d>>>=R,g-=R,t.back+=R}if(d>>>=A,g-=A,t.back+=A,T&64){e.msg="invalid distance code",t.mode=er;break}t.offset=D,t.extra=T&15,t.mode=$5;case $5:if(t.extra){for(U=t.extra;g<U;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}t.offset+=d&(1<<t.extra)-1,d>>>=t.extra,g-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=er;break}t.mode=Y5;case Y5:if(m===0)break e;if(x=b-m,t.offset>x){if(x=t.offset-x,x>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=er;break}x>t.wnext?(x-=t.wnext,_=t.wsize-x):_=t.wnext-x,x>t.length&&(x=t.length),k=t.window}else k=l,_=c-t.offset,x=t.length;x>m&&(x=m),m-=x,t.length-=x;do l[c++]=k[_++];while(--x);t.length===0&&(t.mode=Sg);break;case q5:if(m===0)break e;l[c++]=t.length,m--,t.mode=Sg;break;case d2:if(t.wrap){for(;g<32;){if(h===0)break e;h--,d|=i[f++]<<g,g+=8}if(b-=m,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Jr(t.check,l,b,c-b):Np(t.check,l,b,c-b)),b=m,t.wrap&4&&(t.flags?d:Z5(d))!==t.check){e.msg="incorrect data check",t.mode=er;break}d=0,g=0}t.mode=G5;case G5:if(t.wrap&&t.flags){for(;g<32;){if(h===0)break e;h--,d+=i[f++]<<g,g+=8}if(t.wrap&4&&d!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=er;break}d=0,g=0}t.mode=K5;case K5:I=bM;break e;case er:I=E5;break e;case W5:return D5;case Q5:default:return Xi}return e.next_out=c,e.avail_out=m,e.next_in=f,e.avail_in=h,t.hold=d,t.bits=g,(t.wsize||b!==e.avail_out&&t.mode<er&&(t.mode<d2||r!==S5))&&r6(e,e.output,e.next_out,b-e.avail_out),C-=e.avail_in,b-=e.avail_out,e.total_in+=C,e.total_out+=b,t.total+=b,t.wrap&4&&b&&(e.adler=t.check=t.flags?Jr(t.check,l,b,e.next_out-b):Np(t.check,l,b,e.next_out-b)),e.data_type=t.bits+(t.last?64:0)+(t.mode===is?128:0)+(t.mode===_g||t.mode===f2?256:0),(C===0&&b===0||r===S5)&&I===_c&&(I=wM),I},OM=e=>{if(Sc(e))return Xi;let r=e.state;return r.window&&(r.window=null),e.state=null,_c},RM=(e,r)=>{if(Sc(e))return Xi;const t=e.state;return t.wrap&2?(t.head=r,r.done=!1,_c):Xi},FM=(e,r)=>{const t=r.length;let i,l,f;return Sc(e)||(i=e.state,i.wrap!==0&&i.mode!==wg)?Xi:i.mode===wg&&(l=1,l=Np(l,r,t,0),l!==i.check)?E5:(f=r6(e,r,t,t),f?(i.mode=W5,D5):(i.havedict=1,_c))};var NM=J5,MM=e6,PM=X5,BM=kM,LM=t6,zM=AM,UM=OM,jM=RM,IM=FM,HM="pako inflate (from Nodeca project)",os={inflateReset:NM,inflateReset2:MM,inflateResetKeep:PM,inflateInit:BM,inflateInit2:LM,inflate:zM,inflateEnd:UM,inflateGetHeader:jM,inflateSetDictionary:IM,inflateInfo:HM};function VM(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var $M=VM;const a6=Object.prototype.toString,{Z_NO_FLUSH:YM,Z_FINISH:qM,Z_OK:Vp,Z_STREAM_END:v2,Z_NEED_DICT:m2,Z_STREAM_ERROR:GM,Z_DATA_ERROR:i6,Z_MEM_ERROR:KM}=xc;function $p(e){this.options=gg.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)&&(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(r.windowBits&15||(r.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m5,this.strm.avail_out=0;let t=os.inflateInit2(this.strm,r.windowBits);if(t!==Vp)throw new Error(yc[t]);if(this.header=new $M,os.inflateGetHeader(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=jp.string2buf(r.dictionary):a6.call(r.dictionary)==="[object ArrayBuffer]"&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(t=os.inflateSetDictionary(this.strm,r.dictionary),t!==Vp)))throw new Error(yc[t])}$p.prototype.push=function(e,r){const t=this.strm,i=this.options.chunkSize,l=this.options.dictionary;let f,c,h;if(this.ended)return!1;for(r===~~r?c=r:c=r===!0?qM:YM,a6.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),f=os.inflate(t,c),f===m2&&l&&(f=os.inflateSetDictionary(t,l),f===Vp?f=os.inflate(t,c):f===i6&&(f=m2));t.avail_in>0&&f===v2&&t.state.wrap>0&&e[t.next_in]!==0;)os.inflateReset(t),f=os.inflate(t,c);switch(f){case GM:case i6:case m2:case KM:return this.onEnd(f),this.ended=!0,!1}if(h=t.avail_out,t.next_out&&(t.avail_out===0||f===v2))if(this.options.to==="string"){let m=jp.utf8border(t.output,t.next_out),d=t.next_out-m,g=jp.buf2string(t.output,m);t.next_out=d,t.avail_out=i-d,d&&t.output.set(t.output.subarray(m,m+d),0),this.onData(g)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(f===Vp&&h===0)){if(f===v2)return f=os.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},$p.prototype.onData=function(e){this.chunks.push(e)},$p.prototype.onEnd=function(e){e===Vp&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gg.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function g2(e,r){const t=new $p(r);if(t.push(e),t.err)throw t.msg||yc[t.err];return t.result}function WM(e,r){return r=r||{},r.raw=!0,g2(e,r)}var QM=$p,ZM=g2,XM=WM,JM=g2,eP=xc,tP={Inflate:QM,inflate:ZM,inflateRaw:XM,ungzip:JM,constants:eP};const{Deflate:nP,deflate:rP,deflateRaw:aP,gzip:iP}=fM,{Inflate:oP,inflate:lP,inflateRaw:sP,ungzip:uP}=tP;var cP=nP,fP=rP,dP=aP,pP=iP,hP=oP,vP=lP,mP=sP,gP=uP,yP=xc,xP={Deflate:cP,deflate:fP,deflateRaw:dP,gzip:pP,Inflate:hP,inflate:vP,inflateRaw:mP,ungzip:gP,constants:yP},ze={};ze.toRGBA8=function(e){var r=e.width,t=e.height;if(e.tabs.acTL==null)return[ze.toRGBA8.decodeImage(e.data,r,t,e).buffer];var i=[];e.frames[0].data==null&&(e.frames[0].data=e.data);for(var l=r*t*4,f=new Uint8Array(l),c=new Uint8Array(l),h=new Uint8Array(l),m=0;m<e.frames.length;m++){var d=e.frames[m],g=d.rect.x,C=d.rect.y,b=d.rect.width,x=d.rect.height,_=ze.toRGBA8.decodeImage(d.data,b,x,e);if(m!=0)for(var k=0;k<l;k++)h[k]=f[k];if(d.blend==0?ze._copyTile(_,b,x,f,r,t,g,C,0):d.blend==1&&ze._copyTile(_,b,x,f,r,t,g,C,1),i.push(f.buffer.slice(0)),d.dispose!=0){if(d.dispose==1)ze._copyTile(c,b,x,f,r,t,g,C,0);else if(d.dispose==2)for(var k=0;k<l;k++)f[k]=h[k]}}return i},ze.toRGBA8.decodeImage=function(e,r,t,i){var l=r*t,f=ze.decode._getBPP(i),c=Math.ceil(r*f/8),h=new Uint8Array(l*4),m=new Uint32Array(h.buffer),d=i.ctype,g=i.depth,C=ze._bin.readUshort;if(d==6){var b=l<<2;if(g==8)for(var x=0;x<b;x+=4)h[x]=e[x],h[x+1]=e[x+1],h[x+2]=e[x+2],h[x+3]=e[x+3];if(g==16)for(var x=0;x<b;x++)h[x]=e[x<<1]}else if(d==2){var _=i.tabs.tRNS;if(_==null){if(g==8)for(var x=0;x<l;x++){var k=x*3;m[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k]}if(g==16)for(var x=0;x<l;x++){var k=x*6;m[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k]}}else{var E=_[0],A=_[1],T=_[2];if(g==8)for(var x=0;x<l;x++){var D=x<<2,k=x*3;m[x]=255<<24|e[k+2]<<16|e[k+1]<<8|e[k],e[k]==E&&e[k+1]==A&&e[k+2]==T&&(h[D+3]=0)}if(g==16)for(var x=0;x<l;x++){var D=x<<2,k=x*6;m[x]=255<<24|e[k+4]<<16|e[k+2]<<8|e[k],C(e,k)==E&&C(e,k+2)==A&&C(e,k+4)==T&&(h[D+3]=0)}}}else if(d==3){var R=i.tabs.PLTE,N=i.tabs.tRNS,z=N?N.length:0;if(g==1)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>3)]>>7-((x&7)<<0)&1,U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}if(g==2)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>2)]>>6-((x&3)<<1)&3,U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}if(g==4)for(var M=0;M<t;M++)for(var I=M*c,Y=M*r,x=0;x<r;x++){var D=Y+x<<2,B=e[I+(x>>1)]>>4-((x&1)<<2)&15,U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}if(g==8)for(var x=0;x<l;x++){var D=x<<2,B=e[x],U=3*B;h[D]=R[U],h[D+1]=R[U+1],h[D+2]=R[U+2],h[D+3]=B<z?N[B]:255}}else if(d==4){if(g==8)for(var x=0;x<l;x++){var D=x<<2,P=x<<1,H=e[P];h[D]=H,h[D+1]=H,h[D+2]=H,h[D+3]=e[P+1]}if(g==16)for(var x=0;x<l;x++){var D=x<<2,P=x<<2,H=e[P];h[D]=H,h[D+1]=H,h[D+2]=H,h[D+3]=e[P+2]}}else if(d==0)for(var E=i.tabs.tRNS?i.tabs.tRNS:-1,M=0;M<t;M++){var V=M*c,G=M*r;if(g==1)for(var ee=0;ee<r;ee++){var H=255*(e[V+(ee>>>3)]>>>7-(ee&7)&1),ne=H==E*255?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==2)for(var ee=0;ee<r;ee++){var H=85*(e[V+(ee>>>2)]>>>6-((ee&3)<<1)&3),ne=H==E*85?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==4)for(var ee=0;ee<r;ee++){var H=17*(e[V+(ee>>>1)]>>>4-((ee&1)<<2)&15),ne=H==E*17?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==8)for(var ee=0;ee<r;ee++){var H=e[V+ee],ne=H==E?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}else if(g==16)for(var ee=0;ee<r;ee++){var H=e[V+(ee<<1)],ne=C(e,V+(ee<<x))==E?0:255;m[G+ee]=ne<<24|H<<16|H<<8|H}}return h},ze.decode=function(e){for(var r=new Uint8Array(e),t=8,i=ze._bin,l=i.readUshort,f=i.readUint,c={tabs:{},frames:[]},h=new Uint8Array(r.length),m=0,d,g=0,C=[137,80,78,71,13,10,26,10],b=0;b<8;b++)if(r[b]!=C[b])throw"The input is not a PNG file!";for(;t<r.length;){var x=i.readUint(r,t);t+=4;var _=i.readASCII(r,t,4);if(t+=4,_=="IHDR")ze.decode._IHDR(r,t,c);else if(_=="CgBI")c.tabs[_]=r.slice(t,t+4);else if(_=="IDAT"){for(var b=0;b<x;b++)h[m+b]=r[t+b];m+=x}else if(_=="acTL")c.tabs[_]={num_frames:f(r,t),num_plays:f(r,t+4)},d=new Uint8Array(r.length);else if(_=="fcTL"){if(g!=0){var k=c.frames[c.frames.length-1];k.data=ze.decode._decompress(c,d.slice(0,g),k.rect.width,k.rect.height),g=0}var E={x:f(r,t+12),y:f(r,t+16),width:f(r,t+4),height:f(r,t+8)},A=l(r,t+22);A=l(r,t+20)/(A==0?100:A);var T={rect:E,delay:Math.round(A*1e3),dispose:r[t+24],blend:r[t+25]};c.frames.push(T)}else if(_=="fdAT"){for(var b=0;b<x-4;b++)d[g+b]=r[t+b+4];g+=x-4}else if(_=="pHYs")c.tabs[_]=[i.readUint(r,t),i.readUint(r,t+4),r[t+8]];else if(_=="cHRM"){c.tabs[_]=[];for(var b=0;b<8;b++)c.tabs[_].push(i.readUint(r,t+b*4))}else if(_=="tEXt"||_=="zTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=i.nextZero(r,t),R=i.readASCII(r,t,D-t),N,z=t+x-D-1;if(_=="tEXt")N=i.readASCII(r,D+1,z);else{var M=ze.decode._inflate(r.slice(D+2,D+2+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="iTXt"){c.tabs[_]==null&&(c.tabs[_]={});var D=0,I=t;D=i.nextZero(r,I);var R=i.readASCII(r,I,D-I);I=D+1;var Y=r[I];r[I+1],I+=2,D=i.nextZero(r,I),i.readASCII(r,I,D-I),I=D+1,D=i.nextZero(r,I),i.readUTF8(r,I,D-I),I=D+1;var N,z=x-(I-t);if(Y==0)N=i.readUTF8(r,I,z);else{var M=ze.decode._inflate(r.slice(I,I+z));N=i.readUTF8(M,0,M.length)}c.tabs[_][R]=N}else if(_=="PLTE")c.tabs[_]=i.readBytes(r,t,x);else if(_=="hIST"){var B=c.tabs.PLTE.length/3;c.tabs[_]=[];for(var b=0;b<B;b++)c.tabs[_].push(l(r,t+b*2))}else if(_=="tRNS")c.ctype==3?c.tabs[_]=i.readBytes(r,t,x):c.ctype==0?c.tabs[_]=l(r,t):c.ctype==2&&(c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]);else if(_=="gAMA")c.tabs[_]=i.readUint(r,t)/1e5;else if(_=="sRGB")c.tabs[_]=r[t];else if(_=="bKGD")c.ctype==0||c.ctype==4?c.tabs[_]=[l(r,t)]:c.ctype==2||c.ctype==6?c.tabs[_]=[l(r,t),l(r,t+2),l(r,t+4)]:c.ctype==3&&(c.tabs[_]=r[t]);else if(_=="IEND")break;t+=x,i.readUint(r,t),t+=4}if(g!=0){var k=c.frames[c.frames.length-1];k.data=ze.decode._decompress(c,d.slice(0,g),k.rect.width,k.rect.height),g=0}return c.data=ze.decode._decompress(c,h,c.width,c.height),delete c.compress,delete c.interlace,delete c.filter,c},ze.decode._decompress=function(e,r,t,i){var l=ze.decode._getBPP(e),f=Math.ceil(t*l/8),c=new Uint8Array((f+1+e.interlace)*i);return e.tabs.CgBI?r=ze.inflateRaw(r,c):r=ze.decode._inflate(r,c),e.interlace==0?r=ze.decode._filterZero(r,e,0,t,i):e.interlace==1&&(r=ze.decode._readInterlace(r,e)),r},ze.decode._inflate=function(e,r){var t=ze.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),r);return t},ze.inflateRaw=function(){var e={};return e.H={},e.H.N=function(r,t){var i=Uint8Array,l=0,f=0,c=0,h=0,m=0,d=0,g=0,C=0,b=0,x,_;if(r[0]==3&&r[1]==0)return t||new i(0);var k=e.H,E=k.b,A=k.e,T=k.R,D=k.n,R=k.A,N=k.Z,z=k.m,M=t==null;for(M&&(t=new i(r.length>>>2<<3));l==0;){if(l=E(r,b,1),f=E(r,b+1,2),b+=3,f==0){b&7&&(b+=8-(b&7));var I=(b>>>3)+4,Y=r[I-4]|r[I-3]<<8;M&&(t=e.H.W(t,C+Y)),t.set(new i(r.buffer,r.byteOffset+I,Y),C),b=I+Y<<3,C+=Y;continue}if(M&&(t=e.H.W(t,C+(1<<17))),f==1&&(x=z.J,_=z.h,d=(1<<9)-1,g=(1<<5)-1),f==2){c=A(r,b,5)+257,h=A(r,b+5,5)+1,m=A(r,b+10,4)+4,b+=14;for(var B=1,U=0;U<38;U+=2)z.Q[U]=0,z.Q[U+1]=0;for(var U=0;U<m;U++){var P=A(r,b+U*3,3);z.Q[(z.X[U]<<1)+1]=P,P>B&&(B=P)}b+=3*m,D(z.Q,B),R(z.Q,B,z.u),x=z.w,_=z.d,b=T(z.u,(1<<B)-1,c+h,r,b,z.v);var H=k.V(z.v,0,c,z.C);d=(1<<H)-1;var V=k.V(z.v,c,h,z.D);g=(1<<V)-1,D(z.C,H),R(z.C,H,x),D(z.D,V),R(z.D,V,_)}for(;;){var G=x[N(r,b)&d];b+=G&15;var ee=G>>>4;if(!(ee>>>8))t[C++]=ee;else{if(ee==256)break;var ne=C+ee-254;if(ee>264){var $=z.q[ee-257];ne=C+($>>>3)+A(r,b,$&7),b+=$&7}var X=_[N(r,b)&g];b+=X&15;var Z=X>>>4,q=z.c[Z],te=(q>>>4)+E(r,b,q&15);for(b+=q&15;C<ne;)t[C]=t[C++-te],t[C]=t[C++-te],t[C]=t[C++-te],t[C]=t[C++-te];C=ne}}}return t.length==C?t:t.slice(0,C)},e.H.W=function(r,t){var i=r.length;if(t<=i)return r;var l=new Uint8Array(i<<1);return l.set(r,0),l},e.H.R=function(r,t,i,l,f,c){for(var h=e.H.e,m=e.H.Z,d=0;d<i;){var g=r[m(l,f)&t];f+=g&15;var C=g>>>4;if(C<=15)c[d]=C,d++;else{var b=0,x=0;C==16?(x=3+h(l,f,2),f+=2,b=c[d-1]):C==17?(x=3+h(l,f,3),f+=3):C==18&&(x=11+h(l,f,7),f+=7);for(var _=d+x;d<_;)c[d]=b,d++}}return f},e.H.V=function(r,t,i,l){for(var f=0,c=0,h=l.length>>>1;c<i;){var m=r[c+t];l[c<<1]=0,l[(c<<1)+1]=m,m>f&&(f=m),c++}for(;c<h;)l[c<<1]=0,l[(c<<1)+1]=0,c++;return f},e.H.n=function(r,t){for(var i=e.H.m,l=r.length,f,c,h,m,d,g=i.j,m=0;m<=t;m++)g[m]=0;for(m=1;m<l;m+=2)g[r[m]]++;var C=i.K;for(f=0,g[0]=0,c=1;c<=t;c++)f=f+g[c-1]<<1,C[c]=f;for(h=0;h<l;h+=2)d=r[h+1],d!=0&&(r[h]=C[d],C[d]++)},e.H.A=function(r,t,i){for(var l=r.length,f=e.H.m,c=f.r,h=0;h<l;h+=2)if(r[h+1]!=0)for(var m=h>>1,d=r[h+1],g=m<<4|d,C=t-d,b=r[h]<<C,x=b+(1<<C);b!=x;){var _=c[b]>>>15-t;i[_]=g,b++}},e.H.l=function(r,t){for(var i=e.H.m.r,l=15-t,f=0;f<r.length;f+=2){var c=r[f]<<t-r[f+1];r[f]=i[c]>>>l}},e.H.M=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8},e.H.I=function(r,t,i){i=i<<(t&7);var l=t>>>3;r[l]|=i,r[l+1]|=i>>>8,r[l+2]|=i>>>16},e.H.e=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8)>>>(t&7)&(1<<i)-1},e.H.b=function(r,t,i){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)&(1<<i)-1},e.H.Z=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16)>>>(t&7)},e.H.i=function(r,t){return(r[t>>>3]|r[(t>>>3)+1]<<8|r[(t>>>3)+2]<<16|r[(t>>>3)+3]<<24)>>>(t&7)},e.H.m=function(){var r=Uint16Array,t=Uint32Array;return{K:new r(16),j:new r(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new r(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new r(512),_:[],h:new r(32),$:[],w:new r(32768),C:[],v:[],d:new r(32768),D:[],u:new r(512),Q:[],r:new r(1<<15),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new r(1<<16),g:new r(1<<15)}}(),function(){for(var r=e.H.m,t=1<<15,i=0;i<t;i++){var l=i;l=(l&2863311530)>>>1|(l&1431655765)<<1,l=(l&3435973836)>>>2|(l&858993459)<<2,l=(l&4042322160)>>>4|(l&252645135)<<4,l=(l&4278255360)>>>8|(l&16711935)<<8,r.r[i]=(l>>>16|l<<16)>>>17}function f(c,h,m){for(;h--!=0;)c.push(0,m)}for(var i=0;i<32;i++)r.q[i]=r.S[i]<<3|r.T[i],r.c[i]=r.p[i]<<4|r.z[i];f(r._,144,8),f(r._,255-143,9),f(r._,279-255,7),f(r._,287-279,8),e.H.n(r._,9),e.H.A(r._,9,r.J),e.H.l(r._,9),f(r.$,32,5),e.H.n(r.$,5),e.H.A(r.$,5,r.h),e.H.l(r.$,5),f(r.Q,19,0),f(r.C,286,0),f(r.D,30,0),f(r.v,320,0)}(),e.H.N}(),ze.decode._readInterlace=function(e,r){for(var t=r.width,i=r.height,l=ze.decode._getBPP(r),f=l>>3,c=Math.ceil(t*l/8),h=new Uint8Array(i*c),m=0,d=[0,0,4,0,2,0,1],g=[0,4,0,2,0,1,0],C=[8,8,8,4,4,2,2],b=[8,8,4,4,2,2,1],x=0;x<7;){for(var _=C[x],k=b[x],E=0,A=0,T=d[x];T<i;)T+=_,A++;for(var D=g[x];D<t;)D+=k,E++;var R=Math.ceil(E*l/8);ze.decode._filterZero(e,r,m,E,A);for(var N=0,z=d[x];z<i;){for(var M=g[x],I=m+N*R<<3;M<t;){if(l==1){var Y=e[I>>3];Y=Y>>7-(I&7)&1,h[z*c+(M>>3)]|=Y<<7-((M&7)<<0)}if(l==2){var Y=e[I>>3];Y=Y>>6-(I&7)&3,h[z*c+(M>>2)]|=Y<<6-((M&3)<<1)}if(l==4){var Y=e[I>>3];Y=Y>>4-(I&7)&15,h[z*c+(M>>1)]|=Y<<4-((M&1)<<2)}if(l>=8)for(var B=z*c+M*f,U=0;U<f;U++)h[B+U]=e[(I>>3)+U];I+=l,M+=k}N++,z+=_}E*A!=0&&(m+=A*(1+R)),x=x+1}return h},ze.decode._getBPP=function(e){var r=[1,null,3,1,2,null,4][e.ctype];return r*e.depth},ze.decode._filterZero=function(e,r,t,i,l){var f=ze.decode._getBPP(r),c=Math.ceil(i*f/8),h=ze.decode._paeth;f=Math.ceil(f/8);var m=0,d=1,g=e[t],C=0;if(g>1&&(e[t]=[0,0,1][g-2]),g==3)for(C=f;C<c;C++)e[C+1]=e[C+1]+(e[C+1-f]>>>1)&255;for(var b=0;b<l;b++)if(m=t+b*c,d=m+b+1,g=e[d-1],C=0,g==0)for(;C<c;C++)e[m+C]=e[d+C];else if(g==1){for(;C<f;C++)e[m+C]=e[d+C];for(;C<c;C++)e[m+C]=e[d+C]+e[m+C-f]}else if(g==2)for(;C<c;C++)e[m+C]=e[d+C]+e[m+C-c];else if(g==3){for(;C<f;C++)e[m+C]=e[d+C]+(e[m+C-c]>>>1);for(;C<c;C++)e[m+C]=e[d+C]+(e[m+C-c]+e[m+C-f]>>>1)}else{for(;C<f;C++)e[m+C]=e[d+C]+h(0,e[m+C-c],0);for(;C<c;C++)e[m+C]=e[d+C]+h(e[m+C-f],e[m+C-c],e[m+C-f-c])}return e},ze.decode._paeth=function(e,r,t){var i=e+r-t,l=i-e,f=i-r,c=i-t;return l*l<=f*f&&l*l<=c*c?e:f*f<=c*c?r:t},ze.decode._IHDR=function(e,r,t){var i=ze._bin;t.width=i.readUint(e,r),r+=4,t.height=i.readUint(e,r),r+=4,t.depth=e[r],r++,t.ctype=e[r],r++,t.compress=e[r],r++,t.filter=e[r],r++,t.interlace=e[r],r++},ze._bin={nextZero:function(e,r){for(;e[r]!=0;)r++;return r},readUshort:function(e,r){return e[r]<<8|e[r+1]},writeUshort:function(e,r,t){e[r]=t>>8&255,e[r+1]=t&255},readUint:function(e,r){return e[r]*(256*256*256)+(e[r+1]<<16|e[r+2]<<8|e[r+3])},writeUint:function(e,r,t){e[r]=t>>24&255,e[r+1]=t>>16&255,e[r+2]=t>>8&255,e[r+3]=t&255},readASCII:function(e,r,t){for(var i="",l=0;l<t;l++)i+=String.fromCharCode(e[r+l]);return i},writeASCII:function(e,r,t){for(var i=0;i<t.length;i++)e[r+i]=t.charCodeAt(i)},readBytes:function(e,r,t){for(var i=[],l=0;l<t;l++)i.push(e[r+l]);return i},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,r,t){for(var i="",l,f=0;f<t;f++)i+="%"+ze._bin.pad(e[r+f].toString(16));try{l=decodeURIComponent(i)}catch{return ze._bin.readASCII(e,r,t)}return l}},ze._copyTile=function(e,r,t,i,l,f,c,h,m){for(var d=Math.min(r,l),g=Math.min(t,f),C=0,b=0,x=0;x<g;x++)for(var _=0;_<d;_++)if(c>=0&&h>=0?(C=x*r+_<<2,b=(h+x)*l+c+_<<2):(C=(-h+x)*r-c+_<<2,b=x*l+_<<2),m==0)i[b]=e[C],i[b+1]=e[C+1],i[b+2]=e[C+2],i[b+3]=e[C+3];else if(m==1){var k=e[C+3]*.00392156862745098,E=e[C]*k,A=e[C+1]*k,T=e[C+2]*k,D=i[b+3]*(1/255),R=i[b]*D,N=i[b+1]*D,z=i[b+2]*D,M=1-k,I=k+D*M,Y=I==0?0:1/I;i[b+3]=255*I,i[b+0]=(E+R*M)*Y,i[b+1]=(A+N*M)*Y,i[b+2]=(T+z*M)*Y}else if(m==2){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];k==D&&E==R&&A==N&&T==z?(i[b]=0,i[b+1]=0,i[b+2]=0,i[b+3]=0):(i[b]=E,i[b+1]=A,i[b+2]=T,i[b+3]=k)}else if(m==3){var k=e[C+3],E=e[C],A=e[C+1],T=e[C+2],D=i[b+3],R=i[b],N=i[b+1],z=i[b+2];if(k==D&&E==R&&A==N&&T==z)continue;if(k<220&&D>20)return!1}return!0},ze.encode=function(e,r,t,i,l,f,c){i==null&&(i=0),c==null&&(c=!1);var h=ze.encode.compress(e,r,t,i,[!1,!1,!1,0,c]);return ze.encode.compressPNG(h,-1),ze.encode._main(h,r,t,l,f)},ze.encodeLL=function(e,r,t,i,l,f,c,h){for(var m={ctype:0+(i==1?0:2)+(l==0?0:4),depth:f,frames:[]},d=(i+l)*f,g=d*r,C=0;C<e.length;C++)m.frames.push({rect:{x:0,y:0,width:r,height:t},img:new Uint8Array(e[C]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(g/8)});ze.encode.compressPNG(m,0,!0);var b=ze.encode._main(m,r,t,c,h);return b},ze.encode._main=function(e,r,t,i,l){l==null&&(l={});var f=ze.crc.crc,c=ze._bin.writeUint,h=ze._bin.writeUshort,m=ze._bin.writeASCII,d=8,g=e.frames.length>1,C=!1,b=8+(16+5+4)+(g?20:0);if(l.sRGB!=null&&(b+=8+1+4),l.pHYs!=null&&(b+=8+9+4),e.ctype==3){for(var x=e.plte.length,_=0;_<x;_++)e.plte[_]>>>24!=255&&(C=!0);b+=8+x*3+4+(C?8+x*1+4:0)}for(var k=0;k<e.frames.length;k++){var E=e.frames[k];g&&(b+=38),b+=E.cimg.length+12,k!=0&&(b+=4)}b+=12;for(var A=new Uint8Array(b),T=[137,80,78,71,13,10,26,10],_=0;_<8;_++)A[_]=T[_];if(c(A,d,13),d+=4,m(A,d,"IHDR"),d+=4,c(A,d,r),d+=4,c(A,d,t),d+=4,A[d]=e.depth,d++,A[d]=e.ctype,d++,A[d]=0,d++,A[d]=0,d++,A[d]=0,d++,c(A,d,f(A,d-17,17)),d+=4,l.sRGB!=null&&(c(A,d,1),d+=4,m(A,d,"sRGB"),d+=4,A[d]=l.sRGB,d++,c(A,d,f(A,d-5,5)),d+=4),l.pHYs!=null&&(c(A,d,9),d+=4,m(A,d,"pHYs"),d+=4,c(A,d,l.pHYs[0]),d+=4,c(A,d,l.pHYs[1]),d+=4,A[d]=l.pHYs[2],d++,c(A,d,f(A,d-13,13)),d+=4),g&&(c(A,d,8),d+=4,m(A,d,"acTL"),d+=4,c(A,d,e.frames.length),d+=4,c(A,d,l.loop!=null?l.loop:0),d+=4,c(A,d,f(A,d-12,12)),d+=4),e.ctype==3){var x=e.plte.length;c(A,d,x*3),d+=4,m(A,d,"PLTE"),d+=4;for(var _=0;_<x;_++){var D=_*3,R=e.plte[_],N=R&255,z=R>>>8&255,M=R>>>16&255;A[d+D+0]=N,A[d+D+1]=z,A[d+D+2]=M}if(d+=x*3,c(A,d,f(A,d-x*3-4,x*3+4)),d+=4,C){c(A,d,x),d+=4,m(A,d,"tRNS"),d+=4;for(var _=0;_<x;_++)A[d+_]=e.plte[_]>>>24&255;d+=x,c(A,d,f(A,d-x-4,x+4)),d+=4}}for(var I=0,k=0;k<e.frames.length;k++){var E=e.frames[k];g&&(c(A,d,26),d+=4,m(A,d,"fcTL"),d+=4,c(A,d,I++),d+=4,c(A,d,E.rect.width),d+=4,c(A,d,E.rect.height),d+=4,c(A,d,E.rect.x),d+=4,c(A,d,E.rect.y),d+=4,h(A,d,i[k]),d+=2,h(A,d,1e3),d+=2,A[d]=E.dispose,d++,A[d]=E.blend,d++,c(A,d,f(A,d-30,30)),d+=4);var Y=E.cimg,x=Y.length;c(A,d,x+(k==0?0:4)),d+=4;var B=d;m(A,d,k==0?"IDAT":"fdAT"),d+=4,k!=0&&(c(A,d,I++),d+=4),A.set(Y,d),d+=x,c(A,d,f(A,B,d-B)),d+=4}return c(A,d,0),d+=4,m(A,d,"IEND"),d+=4,c(A,d,f(A,d-4,4)),d+=4,A.buffer},ze.encode.compressPNG=function(e,r,t){for(var i=0;i<e.frames.length;i++){var l=e.frames[i];l.rect.width;var f=l.rect.height,c=new Uint8Array(f*l.bpl+f);l.cimg=ze.encode._filterZero(l.img,f,l.bpp,l.bpl,c,r,t)}},ze.encode.compress=function(e,r,t,i,l){for(var f=l[0],c=l[1],h=l[2],m=l[3],d=l[4],g=6,C=8,b=255,x=0;x<e.length;x++)for(var _=new Uint8Array(e[x]),k=_.length,E=0;E<k;E+=4)b&=_[E+3];var A=b!=255,T=ze.encode.framize(e,r,t,f,c,h),D={},R=[],N=[];if(i!=0){for(var z=[],E=0;E<T.length;E++)z.push(T[E].img.buffer);for(var M=ze.encode.concatRGBA(z),I=ze.quantize(M,i),Y=0,B=new Uint8Array(I.abuf),E=0;E<T.length;E++){var U=T[E].img,P=U.length;N.push(new Uint8Array(I.inds.buffer,Y>>2,P>>2));for(var x=0;x<P;x+=4)U[x]=B[Y+x],U[x+1]=B[Y+x+1],U[x+2]=B[Y+x+2],U[x+3]=B[Y+x+3];Y+=P}for(var E=0;E<I.plte.length;E++)R.push(I.plte[E].est.rgba)}else for(var x=0;x<T.length;x++){var H=T[x],V=new Uint32Array(H.img.buffer),G=H.rect.width,k=V.length,ee=new Uint8Array(k);N.push(ee);for(var E=0;E<k;E++){var ne=V[E];if(E!=0&&ne==V[E-1])ee[E]=ee[E-1];else if(E>G&&ne==V[E-G])ee[E]=ee[E-G];else{var $=D[ne];if($==null&&(D[ne]=$=R.length,R.push(ne),R.length>=300))break;ee[E]=$}}}var X=R.length;X<=256&&d==!1&&(X<=2?C=1:X<=4?C=2:X<=16?C=4:C=8,C=Math.max(C,m));for(var x=0;x<T.length;x++){var H=T[x];H.rect.x,H.rect.y;var G=H.rect.width,Z=H.rect.height,q=H.img;new Uint32Array(q.buffer);var te=4*G,oe=4;if(X<=256&&d==!1){te=Math.ceil(C*G/8);for(var ae=new Uint8Array(te*Z),fe=N[x],ve=0;ve<Z;ve++){var E=ve*te,xe=ve*G;if(C==8)for(var se=0;se<G;se++)ae[E+se]=fe[xe+se];else if(C==4)for(var se=0;se<G;se++)ae[E+(se>>1)]|=fe[xe+se]<<4-(se&1)*4;else if(C==2)for(var se=0;se<G;se++)ae[E+(se>>2)]|=fe[xe+se]<<6-(se&3)*2;else if(C==1)for(var se=0;se<G;se++)ae[E+(se>>3)]|=fe[xe+se]<<7-(se&7)*1}q=ae,g=3,oe=1}else if(A==!1&&T.length==1){for(var ae=new Uint8Array(G*Z*3),ke=G*Z,E=0;E<ke;E++){var U=E*3,De=E*4;ae[U]=q[De],ae[U+1]=q[De+1],ae[U+2]=q[De+2]}q=ae,g=2,oe=3,te=3*G}H.img=q,H.bpl=te,H.bpp=oe}return{ctype:g,depth:C,plte:R,frames:T}},ze.encode.framize=function(e,r,t,i,l,f){for(var c=[],h=0;h<e.length;h++){var m=new Uint8Array(e[h]),d=new Uint32Array(m.buffer),g,C=0,b=0,x=r,_=t,k=i?1:0;if(h!=0){for(var E=f||i||h==1||c[h-2].dispose!=0?1:2,A=0,T=1e9,D=0;D<E;D++){for(var H=new Uint8Array(e[h-1-D]),R=new Uint32Array(e[h-1-D]),N=r,z=t,M=-1,I=-1,Y=0;Y<t;Y++)for(var B=0;B<r;B++){var U=Y*r+B;d[U]!=R[U]&&(B<N&&(N=B),B>M&&(M=B),Y<z&&(z=Y),Y>I&&(I=Y))}M==-1&&(N=z=M=I=0),l&&((N&1)==1&&N--,(z&1)==1&&z--);var P=(M-N+1)*(I-z+1);P<T&&(T=P,A=D,C=N,b=z,x=M-N+1,_=I-z+1)}var H=new Uint8Array(e[h-1-A]);A==1&&(c[h-1].dispose=2),g=new Uint8Array(x*_*4),ze._copyTile(H,r,t,g,x,_,-C,-b,0),k=ze._copyTile(m,r,t,g,x,_,-C,-b,3)?1:0,k==1?ze.encode._prepareDiff(m,r,t,g,{x:C,y:b,width:x,height:_}):ze._copyTile(m,r,t,g,x,_,-C,-b,0)}else g=m.slice(0);c.push({rect:{x:C,y:b,width:x,height:_},img:g,blend:k,dispose:0})}if(i)for(var h=0;h<c.length;h++){var V=c[h];if(V.blend!=1){var G=V.rect,ee=c[h-1].rect,ne=Math.min(G.x,ee.x),$=Math.min(G.y,ee.y),X=Math.max(G.x+G.width,ee.x+ee.width),Z=Math.max(G.y+G.height,ee.y+ee.height),q={x:ne,y:$,width:X-ne,height:Z-$};c[h-1].dispose=1,h-1!=0&&ze.encode._updateFrame(e,r,t,c,h-1,q,l),ze.encode._updateFrame(e,r,t,c,h,q,l)}}var te=0;if(e.length!=1)for(var U=0;U<c.length;U++){var V=c[U];te+=V.rect.width*V.rect.height}return c},ze.encode._updateFrame=function(e,r,t,i,l,f,c){for(var h=Uint8Array,m=Uint32Array,d=new h(e[l-1]),g=new m(e[l-1]),C=l+1<e.length?new h(e[l+1]):null,b=new h(e[l]),x=new m(b.buffer),_=r,k=t,E=-1,A=-1,T=0;T<f.height;T++)for(var D=0;D<f.width;D++){var R=f.x+D,N=f.y+T,z=N*r+R,M=x[z];M==0||i[l-1].dispose==0&&g[z]==M&&(C==null||C[z*4+3]!=0)||(R<_&&(_=R),R>E&&(E=R),N<k&&(k=N),N>A&&(A=N))}E==-1&&(_=k=E=A=0),c&&((_&1)==1&&_--,(k&1)==1&&k--),f={x:_,y:k,width:E-_+1,height:A-k+1};var I=i[l];I.rect=f,I.blend=1,I.img=new Uint8Array(f.width*f.height*4),i[l-1].dispose==0?(ze._copyTile(d,r,t,I.img,f.width,f.height,-f.x,-f.y,0),ze.encode._prepareDiff(b,r,t,I.img,f)):ze._copyTile(b,r,t,I.img,f.width,f.height,-f.x,-f.y,0)},ze.encode._prepareDiff=function(e,r,t,i,l){ze._copyTile(e,r,t,i,l.width,l.height,-l.x,-l.y,2)},ze.encode._filterZero=function(e,r,t,i,l,f,c){var h=[],m=[0,1,2,3,4];f!=-1?m=[f]:(r*i>5e5||t==1)&&(m=[0]);var d;c&&(d={level:0});for(var g=l.length>1e7&&UZIP!=null?UZIP:xP,C=0;C<m.length;C++){for(var b=0;b<r;b++)ze.encode._filterLine(l,e,b,i,t,m[C]);h.push(g.deflate(l,d))}for(var x,_=1e9,C=0;C<h.length;C++)h[C].length<_&&(x=C,_=h[C].length);return h[x]},ze.encode._filterLine=function(e,r,t,i,l,f){var c=t*i,h=c+t,m=ze.decode._paeth;if(e[h]=f,h++,f==0)if(i<500)for(var d=0;d<i;d++)e[h+d]=r[c+d];else e.set(new Uint8Array(r.buffer,c,i),h);else if(f==1){for(var d=0;d<l;d++)e[h+d]=r[c+d];for(var d=l;d<i;d++)e[h+d]=r[c+d]-r[c+d-l]+256&255}else if(t==0){for(var d=0;d<l;d++)e[h+d]=r[c+d];if(f==2)for(var d=l;d<i;d++)e[h+d]=r[c+d];if(f==3)for(var d=l;d<i;d++)e[h+d]=r[c+d]-(r[c+d-l]>>1)+256&255;if(f==4)for(var d=l;d<i;d++)e[h+d]=r[c+d]-m(r[c+d-l],0,0)+256&255}else{if(f==2)for(var d=0;d<i;d++)e[h+d]=r[c+d]+256-r[c+d-i]&255;if(f==3){for(var d=0;d<l;d++)e[h+d]=r[c+d]+256-(r[c+d-i]>>1)&255;for(var d=l;d<i;d++)e[h+d]=r[c+d]+256-(r[c+d-i]+r[c+d-l]>>1)&255}if(f==4){for(var d=0;d<l;d++)e[h+d]=r[c+d]+256-m(0,r[c+d-i],0)&255;for(var d=l;d<i;d++)e[h+d]=r[c+d]+256-m(r[c+d-l],r[c+d-i],r[c+d-l-i])&255}}},ze.crc={table:function(){for(var e=new Uint32Array(256),r=0;r<256;r++){for(var t=r,i=0;i<8;i++)t&1?t=3988292384^t>>>1:t=t>>>1;e[r]=t}return e}(),update:function(e,r,t,i){for(var l=0;l<i;l++)e=ze.crc.table[(e^r[t+l])&255]^e>>>8;return e},crc:function(e,r,t){return ze.crc.update(4294967295,e,r,t)^4294967295}},ze.quantize=function(e,r){var t=new Uint8Array(e),i=t.slice(0),l=new Uint32Array(i.buffer),f=ze.quantize.getKDtree(i,r),c=f[0],h=f[1],m=ze.quantize.planeDst,d=t,g=l,C=d.length,b=new Uint8Array(t.length>>2),x;if(t.length<2e7)for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);x=ze.quantize.getNearest(c,k,E,A,T),b[_>>2]=x.ind,g[_>>2]=x.est.rgba}else for(var _=0;_<C;_+=4){var k=d[_]*.00392156862745098,E=d[_+1]*(1/255),A=d[_+2]*(1/255),T=d[_+3]*(1/255);for(x=c;x.left;)x=m(x.est,k,E,A,T)<=0?x.left:x.right;b[_>>2]=x.ind,g[_>>2]=x.est.rgba}return{abuf:i.buffer,inds:b,plte:h}},ze.quantize.getKDtree=function(e,r,t){t==null&&(t=1e-4);var i=new Uint32Array(e.buffer),l={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};l.bst=ze.quantize.stats(e,l.i0,l.i1),l.est=ze.quantize.estats(l.bst);for(var f=[l];f.length<r;){for(var c=0,h=0,m=0;m<f.length;m++)f[m].est.L>c&&(c=f[m].est.L,h=m);if(c<t)break;var d=f[h],g=ze.quantize.splitPixels(e,i,d.i0,d.i1,d.est.e,d.est.eMq255),C=d.i0>=g||d.i1<=g;if(C){d.est.L=0;continue}var b={i0:d.i0,i1:g,bst:null,est:null,tdst:0,left:null,right:null};b.bst=ze.quantize.stats(e,b.i0,b.i1),b.est=ze.quantize.estats(b.bst);var x={i0:g,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};x.bst={R:[],m:[],N:d.bst.N-b.bst.N};for(var m=0;m<16;m++)x.bst.R[m]=d.bst.R[m]-b.bst.R[m];for(var m=0;m<4;m++)x.bst.m[m]=d.bst.m[m]-b.bst.m[m];x.est=ze.quantize.estats(x.bst),d.left=b,d.right=x,f[h]=b,f.push(x)}f.sort(function(_,k){return k.bst.N-_.bst.N});for(var m=0;m<f.length;m++)f[m].ind=m;return[l,f]},ze.quantize.getNearest=function(e,r,t,i,l){if(e.left==null)return e.tdst=ze.quantize.dist(e.est.q,r,t,i,l),e;var f=ze.quantize.planeDst(e.est,r,t,i,l),c=e.left,h=e.right;f>0&&(c=e.right,h=e.left);var m=ze.quantize.getNearest(c,r,t,i,l);if(m.tdst<=f*f)return m;var d=ze.quantize.getNearest(h,r,t,i,l);return d.tdst<m.tdst?d:m},ze.quantize.planeDst=function(e,r,t,i,l){var f=e.e;return f[0]*r+f[1]*t+f[2]*i+f[3]*l-e.eMq},ze.quantize.dist=function(e,r,t,i,l){var f=r-e[0],c=t-e[1],h=i-e[2],m=l-e[3];return f*f+c*c+h*h+m*m},ze.quantize.splitPixels=function(e,r,t,i,l,f){var c=ze.quantize.vecDot;for(i-=4;t<i;){for(;c(e,t,l)<=f;)t+=4;for(;c(e,i,l)>f;)i-=4;if(t>=i)break;var h=r[t>>2];r[t>>2]=r[i>>2],r[i>>2]=h,t+=4,i-=4}for(;c(e,t,l)>f;)t-=4;return t+4},ze.quantize.vecDot=function(e,r,t){return e[r]*t[0]+e[r+1]*t[1]+e[r+2]*t[2]+e[r+3]*t[3]},ze.quantize.stats=function(e,r,t){for(var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[0,0,0,0],f=t-r>>2,c=r;c<t;c+=4){var h=e[c]*.00392156862745098,m=e[c+1]*(1/255),d=e[c+2]*(1/255),g=e[c+3]*(1/255);l[0]+=h,l[1]+=m,l[2]+=d,l[3]+=g,i[0]+=h*h,i[1]+=h*m,i[2]+=h*d,i[3]+=h*g,i[5]+=m*m,i[6]+=m*d,i[7]+=m*g,i[10]+=d*d,i[11]+=d*g,i[15]+=g*g}return i[4]=i[1],i[8]=i[2],i[9]=i[6],i[12]=i[3],i[13]=i[7],i[14]=i[11],{R:i,m:l,N:f}},ze.quantize.estats=function(e){var r=e.R,t=e.m,i=e.N,l=t[0],f=t[1],c=t[2],h=t[3],m=i==0?0:1/i,d=[r[0]-l*l*m,r[1]-l*f*m,r[2]-l*c*m,r[3]-l*h*m,r[4]-f*l*m,r[5]-f*f*m,r[6]-f*c*m,r[7]-f*h*m,r[8]-c*l*m,r[9]-c*f*m,r[10]-c*c*m,r[11]-c*h*m,r[12]-h*l*m,r[13]-h*f*m,r[14]-h*c*m,r[15]-h*h*m],g=d,C=ze.M4,b=[Math.random(),Math.random(),Math.random(),Math.random()],x=0,_=0;if(i!=0)for(var k=0;k<16&&(b=C.multVec(g,b),_=Math.sqrt(C.dot(b,b)),b=C.sml(1/_,b),!(k!=0&&Math.abs(_-x)<1e-9));k++)x=_;var E=[l*m,f*m,c*m,h*m],A=C.dot(C.sml(255,E),b);return{Cov:d,q:E,e:b,L:x,eMq255:A,eMq:C.dot(b,E),rgba:(Math.round(255*E[3])<<24|Math.round(255*E[2])<<16|Math.round(255*E[1])<<8|Math.round(255*E[0])<<0)>>>0}},ze.M4={multVec:function(e,r){return[e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3],e[4]*r[0]+e[5]*r[1]+e[6]*r[2]+e[7]*r[3],e[8]*r[0]+e[9]*r[1]+e[10]*r[2]+e[11]*r[3],e[12]*r[0]+e[13]*r[1]+e[14]*r[2]+e[15]*r[3]]},dot:function(e,r){return e[0]*r[0]+e[1]*r[1]+e[2]*r[2]+e[3]*r[3]},sml:function(e,r){return[e*r[0],e*r[1],e*r[2],e*r[3]]}},ze.encode.concatRGBA=function(e){for(var r=0,t=0;t<e.length;t++)r+=e[t].byteLength;for(var i=new Uint8Array(r),l=0,t=0;t<e.length;t++){for(var f=new Uint8Array(e[t]),c=f.length,h=0;h<c;h+=4){var m=f[h],d=f[h+1],g=f[h+2],C=f[h+3];C==0&&(m=d=g=0),i[l+h]=m,i[l+h+1]=d,i[l+h+2]=g,i[l+h+3]=C}l+=c}return i.buffer};const bP=e=>new Promise((r,t)=>{const i=new FileReader;i.onloadend=l=>r(l.target.result),i.onerror=l=>t(l),i.readAsDataURL(e)}),CP=e=>new Promise((r,t)=>{const i=new Image;i.onload=()=>r(i),i.onerror=l=>t(l),i.src=e}),wP=(e,r,t)=>new Promise(i=>e.toBlob(l=>i(l),r,t)),_P=e=>{const i=e.width,l=e.height;let f=e.width,c=e.height;return(i>2e3||l>2e3)&&(i/l>2e3/2e3?(f=2e3,c=Math.round(2e3*(l/i))):(c=2e3,f=Math.round(2e3*(i/l)))),{width:f,height:c}},SP=e=>{let r=0;return e>1||e<0?r=0:r=e?e*256:0,r},o6=async(e,r=.5,t=5)=>{const i=e.name;if(e.size/1024/1024<t)return e;try{const l=document.createElement("canvas"),f=l.getContext("2d"),c=await bP(e),h=await CP(c),m=_P(h);if(l.width=m.width,l.height=m.height,f.clearRect(0,0,m.width,m.height),f.drawImage(h,0,0,m.width,m.height),["image/jpeg","image/jpg"].includes(e.type)){const d=await wP(l,e.type,r);return new File([d],i,{type:e.type})}else{const d=f.getImageData(0,0,m.width,m.height).data,g=SP(r),C=ze.encode([d.buffer],m.width,m.height,g);return new File([C],e.name,{type:e.type})}}catch{return e}},l6=[ed.jpeg,ed.jpg,ed.png],s6=e=>{const{maxCount:r=1,listType:t="picture-card",fileList:i=[],maxSize:l=2,accept:f=l6.join(","),uploadBtnName:c="上传",uploadHint:h=null,compression:m}=e,[d,g]=W.useState(!1),[C,b]=W.useState(""),x=()=>t!=="text"?Be("div",{style:{position:"relative"},children:[Be("div",{children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:c})]}),h]}):Be(nn,{children:[Q(me.Button,{icon:Q(Mb,{}),children:c}),h]}),_=T=>new Promise(async(R,N)=>{const z=f.split(","),M=dg(T.name)||"";if(f&&!z.includes(M)&&(me.message.error(`只允许上传 ${f} 文件`),N(!1)),!(T.size/1024/1024<l)&&!m&&(me.message.error(`文件必须小于${l}MB`),N(!1)),m){let Y=0;async function B(P){if(!m)return;const H=await o6(P,m.quality,m.limit);if(Y++,Y>=5)return H;if(H.size/1024/1024>l)await B(H);else return H}const U=await B(T);R(U)}R(T)}).catch(R=>me.Upload.LIST_IGNORE),k=T=>{e.onChange&&e.onChange(T)},E=T=>{e.onPreview?e.onPreview(T):A(T)},A=async T=>{let D=dg(T.name)||"";if(D||(D=dg(T.name||T.url)||""),D===ed.pdf)return me.Modal.info({title:"PDF",width:"60%",content:Q("iframe",{title:"PDF预览",src:T.url||T.response.url,frameBorder:"0",style:{width:"100%",height:"70vh"}}),okText:"关闭"});l6.includes(D)&&(!T.url&&!T.thumbUrl&&!T.preview&&(T.preview=await L8(T.originFileObj)),b(T.url||T.thumbUrl||T.preview),g(!0))};return Be(nn,{children:[Q(me.Upload,{beforeUpload:_,onChange:k,listType:t,...e,onPreview:E,children:i.length>=r?null:x()}),Q(me.Image,{style:{display:"none"},preview:{visible:d,src:C,onVisibleChange:()=>{g(!1),b("")}}})]})},Eg={fieldModal:"create-form-module_fieldModal_8bf3d",content:"create-form-module_content_61f84",suffix:"create-form-module_suffix_42205",placeholder:"create-form-module_placeholder_90d6a"},EP={labelCol:{span:4},wrapperCol:{span:20}},u6=e=>{switch(e){case"upload":return"fileList";case"switch":return"checked";default:return"value"}},y2=e=>{const{items:r,rowProps:t,formProps:i,readonly:l=!1,hiddenTitle:f=!1,langId:c="10001"}=e,h=(g,C)=>{var b,x;if(C.btnType==="submit"){(b=i==null?void 0:i.form)==null||b.validateFields().then(_=>{C.onClick&&C.onClick(_)});return}if(C.btnType==="reset"){(x=i==null?void 0:i.form)==null||x.resetFields(),C.onClick&&C.onClick(g);return}C.btnType==="cancel"&&C.onClick&&C.onClick(g)},m=g=>Array.isArray(g)?g:g&&g.fileList,d=g=>{var b;const C=i==null?void 0:i.initialValues;return g.dataIndex?((b=g.render)==null?void 0:b.call(g,C==null?void 0:C[g.dataIndex],C))||g.value||(C==null?void 0:C[g.dataIndex]):""};return Q(me.Form,{layout:"horizontal",form:i==null?void 0:i.form,...EP,...i||{},children:Q(me.Row,{gutter:16,...t,children:r.filter(g=>!g.hidden).map((g,C)=>Q(me.Col,{...g.colProps||{span:24},children:Q(me.Form.Item,{...g.valueType==="upload"?{getValueFromEvent:m}:{},label:f?"":g.title,name:g.valueType==="btns"?void 0:g.dataIndex,...g.formItemProps,children:g.readonly?Q("div",{children:d(g)}):g.readonly===void 0&&l?Q("div",{children:d(g)}):Q(c6,{onChange:b=>{var x;return(x=g==null?void 0:g.onChange)==null?void 0:x.call(g,b)},valueType:g.valueType,onBtnClick:h,valueProps:g.valueProps,formItemProps:g.formItemProps,langId:c})})},g.dataIndex||C))})})},c6=e=>{const{valueType:r,valueProps:t,value:i,onChange:l,onBtnClick:f,inputRef:c,formItemProps:h,langId:m}=e,d=W.useMemo(()=>{let g=Q(me.Input,{placeholder:m==="10001"?"请输入":"Please input",allowClear:!0,...t});switch(r){case"rate":g=Q(me.Rate,{...t});break;case"password":g=Q(me.Input.Password,{...t});break;case"modal":g=Q(DP,{...t});break;case"checkbox":g=Q(me.Checkbox.Group,{...t});break;case"select":g=Q(me.Select,{placeholder:m==="10001"?"请选择":"Please select",allowClear:!0,...t});break;case"inputNumber":g=Q(me.InputNumber,{style:{width:"100%"},placeholder:m==="10001"?"请输入":"Please input",...t});break;case"textarea":g=Q(me.Input.TextArea,{placeholder:m==="10001"?"请输入":"Please input",allowClear:!0,...t});break;case"radio":g=Q(me.Radio.Group,{...t});break;case"switch":g=Q(me.Switch,{...t});break;case"datePicker":g=Q(me.DatePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"rangePicker":g=Q(me.DatePicker.RangePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"timePicker":g=Q(me.TimePicker,{style:{width:"100%"},allowClear:!0,...t});break;case"cascader":g=Q(me.Cascader,{allowClear:!0,...t});break;case"upload":g=Q(s6,{...t});break;case"btns":g=Q(me.Space,{children:t==null?void 0:t.map(C=>W.createElement(me.Button,{type:C.btnType==="submit"?"primary":"default",...il.omit(C,["btnType"]),key:C.key||C.btnType,onClick:b=>{f==null||f(b,C)}},C.title||C.children))});break}return g},[r,t,l,i]);if(r==="custom"){const g=t;return W.cloneElement(g.children,{[(h==null?void 0:h.valuePropName)||u6(r||"input")]:i,onChange:l,ref:c})}return W.cloneElement(d,{[u6(r||"input")]:i,onChange:l,ref:c})},DP=e=>{const{placeholder:r,labelKey:t,onToggle:i,value:l,onClear:f,className:c,style:h}=e;return Be("div",{className:[Eg.fieldModal,c].filter(m=>m).join(" "),style:h,children:[Q("div",{className:Eg.content,onClick:()=>i(!0),children:l?Q("span",{children:l[t]}):Q("span",{className:Eg.placeholder,children:r})}),Q("span",{className:Eg.suffix,onClick:f,children:l&&Q(k7,{})})]})};var x2={exports:{}},Yp={},Dg={exports:{}},f6={},wt={exports:{}},b2={exports:{}},bn={};var d6;function kP(){if(d6)return bn;d6=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(N){if(typeof N=="object"&&N!==null){var z=N.$$typeof;switch(z){case r:switch(N=N.type,N){case m:case d:case i:case f:case l:case C:return N;default:switch(N=N&&N.$$typeof,N){case h:case g:case _:case x:case c:return N;default:return z}}case t:return z}}}function R(N){return D(N)===d}return bn.AsyncMode=m,bn.ConcurrentMode=d,bn.ContextConsumer=h,bn.ContextProvider=c,bn.Element=r,bn.ForwardRef=g,bn.Fragment=i,bn.Lazy=_,bn.Memo=x,bn.Portal=t,bn.Profiler=f,bn.StrictMode=l,bn.Suspense=C,bn.isAsyncMode=function(N){return R(N)||D(N)===m},bn.isConcurrentMode=R,bn.isContextConsumer=function(N){return D(N)===h},bn.isContextProvider=function(N){return D(N)===c},bn.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===r},bn.isForwardRef=function(N){return D(N)===g},bn.isFragment=function(N){return D(N)===i},bn.isLazy=function(N){return D(N)===_},bn.isMemo=function(N){return D(N)===x},bn.isPortal=function(N){return D(N)===t},bn.isProfiler=function(N){return D(N)===f},bn.isStrictMode=function(N){return D(N)===l},bn.isSuspense=function(N){return D(N)===C},bn.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===i||N===d||N===f||N===l||N===C||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===_||N.$$typeof===x||N.$$typeof===c||N.$$typeof===h||N.$$typeof===g||N.$$typeof===E||N.$$typeof===A||N.$$typeof===T||N.$$typeof===k)},bn.typeOf=D,bn}var Cn={};var p6;function TP(){return p6||(p6=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,C=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function D(ge){return typeof ge=="string"||typeof ge=="function"||ge===i||ge===d||ge===f||ge===l||ge===C||ge===b||typeof ge=="object"&&ge!==null&&(ge.$$typeof===_||ge.$$typeof===x||ge.$$typeof===c||ge.$$typeof===h||ge.$$typeof===g||ge.$$typeof===E||ge.$$typeof===A||ge.$$typeof===T||ge.$$typeof===k)}function R(ge){if(typeof ge=="object"&&ge!==null){var $e=ge.$$typeof;switch($e){case r:var Me=ge.type;switch(Me){case m:case d:case i:case f:case l:case C:return Me;default:var et=Me&&Me.$$typeof;switch(et){case h:case g:case _:case x:case c:return et;default:return $e}}case t:return $e}}}var N=m,z=d,M=h,I=c,Y=r,B=g,U=i,P=_,H=x,V=t,G=f,ee=l,ne=C,$=!1;function X(ge){return $||($=!0),Z(ge)||R(ge)===m}function Z(ge){return R(ge)===d}function q(ge){return R(ge)===h}function te(ge){return R(ge)===c}function oe(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===r}function ae(ge){return R(ge)===g}function fe(ge){return R(ge)===i}function ve(ge){return R(ge)===_}function xe(ge){return R(ge)===x}function se(ge){return R(ge)===t}function ke(ge){return R(ge)===f}function De(ge){return R(ge)===l}function Pe(ge){return R(ge)===C}Cn.AsyncMode=N,Cn.ConcurrentMode=z,Cn.ContextConsumer=M,Cn.ContextProvider=I,Cn.Element=Y,Cn.ForwardRef=B,Cn.Fragment=U,Cn.Lazy=P,Cn.Memo=H,Cn.Portal=V,Cn.Profiler=G,Cn.StrictMode=ee,Cn.Suspense=ne,Cn.isAsyncMode=X,Cn.isConcurrentMode=Z,Cn.isContextConsumer=q,Cn.isContextProvider=te,Cn.isElement=oe,Cn.isForwardRef=ae,Cn.isFragment=fe,Cn.isLazy=ve,Cn.isMemo=xe,Cn.isPortal=se,Cn.isProfiler=ke,Cn.isStrictMode=De,Cn.isSuspense=Pe,Cn.isValidElementType=D,Cn.typeOf=R}()),Cn}var h6;function v6(){return h6||(h6=1,function(e){process.env.NODE_ENV==="production"?e.exports=kP():e.exports=TP()}(b2)),b2.exports}var C2,m6;function AP(){if(m6)return C2;m6=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function i(f){if(f==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(f)}function l(){try{if(!Object.assign)return!1;var f=new String("abc");if(f[5]="de",Object.getOwnPropertyNames(f)[0]==="5")return!1;for(var c={},h=0;h<10;h++)c["_"+String.fromCharCode(h)]=h;var m=Object.getOwnPropertyNames(c).map(function(g){return c[g]});if(m.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(g){d[g]=g}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return C2=l()?Object.assign:function(f,c){for(var h,m=i(f),d,g=1;g<arguments.length;g++){h=Object(arguments[g]);for(var C in h)r.call(h,C)&&(m[C]=h[C]);if(e){d=e(h);for(var b=0;b<d.length;b++)t.call(h,d[b])&&(m[d[b]]=h[d[b]])}}return m},C2}var w2,g6;function _2(){if(g6)return w2;g6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return w2=e,w2}var S2,y6;function x6(){return y6||(y6=1,S2=Function.call.bind(Object.prototype.hasOwnProperty)),S2}var E2,b6;function OP(){if(b6)return E2;b6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_2(),t={},i=x6();e=function(f){var c="Warning: "+f;try{throw new Error(c)}catch{}}}function l(f,c,h,m,d){if(process.env.NODE_ENV!=="production"){for(var g in f)if(i(f,g)){var C;try{if(typeof f[g]!="function"){var b=Error((m||"React class")+": "+h+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}C=f[g](c,g,m,h,null,r)}catch(_){C=_}if(C&&!(C instanceof Error)&&e((m||"React class")+": type specification of "+h+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof C+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),C instanceof Error&&!(C.message in t)){t[C.message]=!0;var x=d?d():"";e("Failed "+h+" type: "+C.message+(x??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},E2=l,E2}var D2,C6;function RP(){if(C6)return D2;C6=1;var e=v6(),r=AP(),t=_2(),i=x6(),l=OP(),f=function(){};process.env.NODE_ENV!=="production"&&(f=function(h){var m="Warning: "+h;try{throw new Error(m)}catch{}});function c(){return null}return D2=function(h,m){var d=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function C(Z){var q=Z&&(d&&Z[d]||Z[g]);if(typeof q=="function")return q}var b="<<anonymous>>",x={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:T(),arrayOf:D,element:R(),elementType:N(),instanceOf:z,node:B(),objectOf:I,oneOf:M,oneOfType:Y,shape:P,exact:H};function _(Z,q){return Z===q?Z!==0||1/Z===1/q:Z!==Z&&q!==q}function k(Z,q){this.message=Z,this.data=q&&typeof q=="object"?q:{},this.stack=""}k.prototype=Error.prototype;function E(Z){if(process.env.NODE_ENV!=="production")var q={},te=0;function oe(fe,ve,xe,se,ke,De,Pe){if(se=se||b,De=De||xe,Pe!==t){if(m){var ge=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ge.name="Invariant Violation",ge}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $e=se+":"+xe;!q[$e]&&te<3&&(f("You are manually calling a React.PropTypes validation function for the `"+De+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[$e]=!0,te++)}}return ve[xe]==null?fe?ve[xe]===null?new k("The "+ke+" `"+De+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new k("The "+ke+" `"+De+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:Z(ve,xe,se,ke,De)}var ae=oe.bind(null,!1);return ae.isRequired=oe.bind(null,!0),ae}function A(Z){function q(te,oe,ae,fe,ve,xe){var se=te[oe],ke=ee(se);if(ke!==Z){var De=ne(se);return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+De+"` supplied to `"+ae+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return E(q)}function T(){return E(c)}function D(Z){function q(te,oe,ae,fe,ve){if(typeof Z!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var xe=te[oe];if(!Array.isArray(xe)){var se=ee(xe);return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+se+"` supplied to `"+ae+"`, expected an array."))}for(var ke=0;ke<xe.length;ke++){var De=Z(xe,ke,ae,fe,ve+"["+ke+"]",t);if(De instanceof Error)return De}return null}return E(q)}function R(){function Z(q,te,oe,ae,fe){var ve=q[te];if(!h(ve)){var xe=ee(ve);return new k("Invalid "+ae+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return E(Z)}function N(){function Z(q,te,oe,ae,fe){var ve=q[te];if(!e.isValidElementType(ve)){var xe=ee(ve);return new k("Invalid "+ae+" `"+fe+"` of type "+("`"+xe+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return E(Z)}function z(Z){function q(te,oe,ae,fe,ve){if(!(te[oe]instanceof Z)){var xe=Z.name||b,se=X(te[oe]);return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+se+"` supplied to `"+ae+"`, expected ")+("instance of `"+xe+"`."))}return null}return E(q)}function M(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?f("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):f("Invalid argument supplied to oneOf, expected an array.")),c;function q(te,oe,ae,fe,ve){for(var xe=te[oe],se=0;se<Z.length;se++)if(_(xe,Z[se]))return null;var ke=JSON.stringify(Z,function(Pe,ge){var $e=ne(ge);return $e==="symbol"?String(ge):ge});return new k("Invalid "+fe+" `"+ve+"` of value `"+String(xe)+"` "+("supplied to `"+ae+"`, expected one of "+ke+"."))}return E(q)}function I(Z){function q(te,oe,ae,fe,ve){if(typeof Z!="function")return new k("Property `"+ve+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var xe=te[oe],se=ee(xe);if(se!=="object")return new k("Invalid "+fe+" `"+ve+"` of type "+("`"+se+"` supplied to `"+ae+"`, expected an object."));for(var ke in xe)if(i(xe,ke)){var De=Z(xe,ke,ae,fe,ve+"."+ke,t);if(De instanceof Error)return De}return null}return E(q)}function Y(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&f("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var q=0;q<Z.length;q++){var te=Z[q];if(typeof te!="function")return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(te)+" at index "+q+"."),c}function oe(ae,fe,ve,xe,se){for(var ke=[],De=0;De<Z.length;De++){var Pe=Z[De],ge=Pe(ae,fe,ve,xe,se,t);if(ge==null)return null;ge.data&&i(ge.data,"expectedType")&&ke.push(ge.data.expectedType)}var $e=ke.length>0?", expected one of type ["+ke.join(", ")+"]":"";return new k("Invalid "+xe+" `"+se+"` supplied to "+("`"+ve+"`"+$e+"."))}return E(oe)}function B(){function Z(q,te,oe,ae,fe){return V(q[te])?null:new k("Invalid "+ae+" `"+fe+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return E(Z)}function U(Z,q,te,oe,ae){return new k((Z||"React class")+": "+q+" type `"+te+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function P(Z){function q(te,oe,ae,fe,ve){var xe=te[oe],se=ee(xe);if(se!=="object")return new k("Invalid "+fe+" `"+ve+"` of type `"+se+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ke in Z){var De=Z[ke];if(typeof De!="function")return U(ae,fe,ve,ke,ne(De));var Pe=De(xe,ke,ae,fe,ve+"."+ke,t);if(Pe)return Pe}return null}return E(q)}function H(Z){function q(te,oe,ae,fe,ve){var xe=te[oe],se=ee(xe);if(se!=="object")return new k("Invalid "+fe+" `"+ve+"` of type `"+se+"` "+("supplied to `"+ae+"`, expected `object`."));var ke=r({},te[oe],Z);for(var De in ke){var Pe=Z[De];if(i(Z,De)&&typeof Pe!="function")return U(ae,fe,ve,De,ne(Pe));if(!Pe)return new k("Invalid "+fe+" `"+ve+"` key `"+De+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(te[oe],null," ")+`
194
194
  Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ge=Pe(xe,De,ae,fe,ve+"."+De,t);if(ge)return ge}return null}return E(q)}function V(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(V);if(Z===null||h(Z))return!0;var q=C(Z);if(q){var te=q.call(Z),oe;if(q!==Z.entries){for(;!(oe=te.next()).done;)if(!V(oe.value))return!1}else for(;!(oe=te.next()).done;){var ae=oe.value;if(ae&&!V(ae[1]))return!1}}else return!1;return!0;default:return!1}}function G(Z,q){return Z==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function ee(Z){var q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":G(q,Z)?"symbol":q}function ne(Z){if(typeof Z>"u"||Z===null)return""+Z;var q=ee(Z);if(q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return q}function $(Z){var q=ne(Z);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function X(Z){return!Z.constructor||!Z.constructor.name?b:Z.constructor.name}return x.checkPropTypes=l,x.resetWarningCache=l.resetWarningCache,x.PropTypes=x,x},D2}var k2,w6;function FP(){if(w6)return k2;w6=1;var e=_2();function r(){}function t(){}return t.resetWarningCache=r,k2=function(){function i(c,h,m,d,g,C){if(C!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function l(){return i}var f={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:t,resetWarningCache:r};return f.PropTypes=f,f},k2}if(process.env.NODE_ENV!=="production"){var NP=v6(),MP=!0;wt.exports=RP()(NP.isElement,MP)}else wt.exports=FP()();function _6(e){var r,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=_6(e[r]))&&(i&&(i+=" "),i+=t);else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Re(){for(var e,r,t=0,i="";t<arguments.length;)(e=arguments[t++])&&(r=_6(e))&&(i&&(i+=" "),i+=r);return i}const PP=U4(Object.freeze(Object.defineProperty({__proto__:null,clsx:Re,default:Re},Symbol.toStringTag,{value:"Module"})));var sr={},cl={};Object.defineProperty(cl,"__esModule",{value:!0}),cl.dontSetMe=jP,cl.findInArray=BP,cl.int=UP,cl.isFunction=LP,cl.isNum=zP;function BP(e,r){for(let t=0,i=e.length;t<i;t++)if(r.apply(r,[e[t],t,e]))return e[t]}function LP(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function zP(e){return typeof e=="number"&&!isNaN(e)}function UP(e){return parseInt(e,10)}function jP(e,r,t){if(e[r])return new Error("Invalid prop ".concat(r," passed to ").concat(t," - do not set this, set it on the child."))}var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.browserPrefixToKey=E6,Ec.browserPrefixToStyle=IP,Ec.default=void 0,Ec.getPrefix=S6;const T2=["Moz","Webkit","O","ms"];function S6(){var e;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!t||r in t)return"";for(let i=0;i<T2.length;i++)if(E6(r,T2[i])in t)return T2[i];return""}function E6(e,r){return r?"".concat(r).concat(HP(e)):e}function IP(e,r){return r?"-".concat(r.toLowerCase(),"-").concat(e):e}function HP(e){let r="",t=!0;for(let i=0;i<e.length;i++)t?(r+=e[i].toUpperCase(),t=!1):e[i]==="-"?t=!0:r+=e[i];return r}Ec.default=S6(),Object.defineProperty(sr,"__esModule",{value:!0}),sr.addClassName=A6,sr.addEvent=YP,sr.addUserSelectStyles=nB,sr.createCSSTransform=XP,sr.createSVGTransform=JP,sr.getTouch=eB,sr.getTouchIdentifier=tB,sr.getTranslation=A2,sr.innerHeight=WP,sr.innerWidth=QP,sr.matchesSelector=T6,sr.matchesSelectorAndParentsTo=$P,sr.offsetXYFromParent=ZP,sr.outerHeight=GP,sr.outerWidth=KP,sr.removeClassName=O6,sr.removeEvent=qP,sr.removeUserSelectStyles=rB;var Fi=cl,D6=VP(Ec);function k6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(k6=function(i){return i?t:r})(e)}function VP(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=k6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}let kg="";function T6(e,r){return kg||(kg=(0,Fi.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,Fi.isFunction)(e[t])})),(0,Fi.isFunction)(e[kg])?e[kg](r):!1}function $P(e,r,t){let i=e;do{if(T6(i,r))return!0;if(i===t)return!1;i=i.parentNode}while(i);return!1}function YP(e,r,t,i){if(!e)return;const l={capture:!0,...i};e.addEventListener?e.addEventListener(r,t,l):e.attachEvent?e.attachEvent("on"+r,t):e["on"+r]=t}function qP(e,r,t,i){if(!e)return;const l={capture:!0,...i};e.removeEventListener?e.removeEventListener(r,t,l):e.detachEvent?e.detachEvent("on"+r,t):e["on"+r]=null}function GP(e){let r=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r+=(0,Fi.int)(t.borderTopWidth),r+=(0,Fi.int)(t.borderBottomWidth),r}function KP(e){let r=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r+=(0,Fi.int)(t.borderLeftWidth),r+=(0,Fi.int)(t.borderRightWidth),r}function WP(e){let r=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r-=(0,Fi.int)(t.paddingTop),r-=(0,Fi.int)(t.paddingBottom),r}function QP(e){let r=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return r-=(0,Fi.int)(t.paddingLeft),r-=(0,Fi.int)(t.paddingRight),r}function ZP(e,r,t){const l=r===r.ownerDocument.body?{left:0,top:0}:r.getBoundingClientRect(),f=(e.clientX+r.scrollLeft-l.left)/t,c=(e.clientY+r.scrollTop-l.top)/t;return{x:f,y:c}}function XP(e,r){const t=A2(e,r,"px");return{[(0,D6.browserPrefixToKey)("transform",D6.default)]:t}}function JP(e,r){return A2(e,r,"")}function A2(e,r,t){let{x:i,y:l}=e,f="translate(".concat(i).concat(t,",").concat(l).concat(t,")");if(r){const c="".concat(typeof r.x=="string"?r.x:r.x+t),h="".concat(typeof r.y=="string"?r.y:r.y+t);f="translate(".concat(c,", ").concat(h,")")+f}return f}function eB(e,r){return e.targetTouches&&(0,Fi.findInArray)(e.targetTouches,t=>r===t.identifier)||e.changedTouches&&(0,Fi.findInArray)(e.changedTouches,t=>r===t.identifier)}function tB(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function nB(e){if(!e)return;let r=e.getElementById("react-draggable-style-el");r||(r=e.createElement("style"),r.type="text/css",r.id="react-draggable-style-el",r.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
195
195
  `,r.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
196
- `,e.getElementsByTagName("head")[0].appendChild(r)),e.body&&A6(e.body,"react-draggable-transparent-selection")}function rB(e){if(e)try{if(e.body&&O6(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const r=(e.defaultView||window).getSelection();r&&r.type!=="Caret"&&r.removeAllRanges()}}catch{}}function A6(e,r){e.classList?e.classList.add(r):e.className.match(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)")))||(e.className+=" ".concat(r))}function O6(e,r){e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)"),"g"),"")}var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.canDragX=oB,fl.canDragY=lB,fl.createCoreData=uB,fl.createDraggableData=cB,fl.getBoundPosition=aB,fl.getControlPosition=sB,fl.snapToGrid=iB;var Ni=cl,ud=sr;function aB(e,r,t){if(!e.props.bounds)return[r,t];let{bounds:i}=e.props;i=typeof i=="string"?i:fB(i);const l=O2(e);if(typeof i=="string"){const{ownerDocument:f}=l,c=f.defaultView;let h;if(i==="parent"?h=l.parentNode:h=f.querySelector(i),!(h instanceof c.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const m=h,d=c.getComputedStyle(l),g=c.getComputedStyle(m);i={left:-l.offsetLeft+(0,Ni.int)(g.paddingLeft)+(0,Ni.int)(d.marginLeft),top:-l.offsetTop+(0,Ni.int)(g.paddingTop)+(0,Ni.int)(d.marginTop),right:(0,ud.innerWidth)(m)-(0,ud.outerWidth)(l)-l.offsetLeft+(0,Ni.int)(g.paddingRight)-(0,Ni.int)(d.marginRight),bottom:(0,ud.innerHeight)(m)-(0,ud.outerHeight)(l)-l.offsetTop+(0,Ni.int)(g.paddingBottom)-(0,Ni.int)(d.marginBottom)}}return(0,Ni.isNum)(i.right)&&(r=Math.min(r,i.right)),(0,Ni.isNum)(i.bottom)&&(t=Math.min(t,i.bottom)),(0,Ni.isNum)(i.left)&&(r=Math.max(r,i.left)),(0,Ni.isNum)(i.top)&&(t=Math.max(t,i.top)),[r,t]}function iB(e,r,t){const i=Math.round(r/e[0])*e[0],l=Math.round(t/e[1])*e[1];return[i,l]}function oB(e){return e.props.axis==="both"||e.props.axis==="x"}function lB(e){return e.props.axis==="both"||e.props.axis==="y"}function sB(e,r,t){const i=typeof r=="number"?(0,ud.getTouch)(e,r):null;if(typeof r=="number"&&!i)return null;const l=O2(t),f=t.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,ud.offsetXYFromParent)(i||e,f,t.props.scale)}function uB(e,r,t){const i=!(0,Ni.isNum)(e.lastX),l=O2(e);return i?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:t,x:r,y:t}:{node:l,deltaX:r-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:r,y:t}}function cB(e,r){const t=e.props.scale;return{node:r.node,x:e.state.x+r.deltaX/t,y:e.state.y+r.deltaY/t,deltaX:r.deltaX/t,deltaY:r.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function fB(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function O2(e){const r=e.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}var Tg={},Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=dB;function dB(){}Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var R2=hB(W),li=N2(wt.exports),pB=N2(tu.exports),Ea=sr,lu=fl,F2=cl,qp=N2(Ag);function N2(e){return e&&e.__esModule?e:{default:e}}function R6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(R6=function(i){return i?t:r})(e)}function hB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=R6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function Va(e,r,t){return r=vB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function vB(e){var r=mB(e,"string");return typeof r=="symbol"?r:String(r)}function mB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const bo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let su=bo.mouse,Og=class extends R2.Component{constructor(){super(...arguments),Va(this,"dragging",!1),Va(this,"lastX",NaN),Va(this,"lastY",NaN),Va(this,"touchIdentifier",null),Va(this,"mounted",!1),Va(this,"handleDragStart",r=>{if(this.props.onMouseDown(r),!this.props.allowAnyClick&&typeof r.button=="number"&&r.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:i}=t;if(this.props.disabled||!(r.target instanceof i.defaultView.Node)||this.props.handle&&!(0,Ea.matchesSelectorAndParentsTo)(r.target,this.props.handle,t)||this.props.cancel&&(0,Ea.matchesSelectorAndParentsTo)(r.target,this.props.cancel,t))return;r.type==="touchstart"&&r.preventDefault();const l=(0,Ea.getTouchIdentifier)(r);this.touchIdentifier=l;const f=(0,lu.getControlPosition)(r,l,this);if(f==null)return;const{x:c,y:h}=f,m=(0,lu.createCoreData)(this,c,h);(0,qp.default)("DraggableCore: handleDragStart: %j",m),(0,qp.default)("calling",this.props.onStart),!(this.props.onStart(r,m)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ea.addUserSelectStyles)(i),this.dragging=!0,this.lastX=c,this.lastY=h,(0,Ea.addEvent)(i,su.move,this.handleDrag),(0,Ea.addEvent)(i,su.stop,this.handleDragStop))}),Va(this,"handleDrag",r=>{const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let h=i-this.lastX,m=l-this.lastY;if([h,m]=(0,lu.snapToGrid)(this.props.grid,h,m),!h&&!m)return;i=this.lastX+h,l=this.lastY+m}const f=(0,lu.createCoreData)(this,i,l);if((0,qp.default)("DraggableCore: handleDrag: %j",f),this.props.onDrag(r,f)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const m=document.createEvent("MouseEvents");m.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(m)}return}this.lastX=i,this.lastY=l}),Va(this,"handleDragStop",r=>{if(!this.dragging)return;const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let m=i-this.lastX||0,d=l-this.lastY||0;[m,d]=(0,lu.snapToGrid)(this.props.grid,m,d),i=this.lastX+m,l=this.lastY+d}const f=(0,lu.createCoreData)(this,i,l);if(this.props.onStop(r,f)===!1||this.mounted===!1)return!1;const h=this.findDOMNode();h&&this.props.enableUserSelectHack&&(0,Ea.removeUserSelectStyles)(h.ownerDocument),(0,qp.default)("DraggableCore: handleDragStop: %j",f),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,h&&((0,qp.default)("DraggableCore: Removing handlers"),(0,Ea.removeEvent)(h.ownerDocument,su.move,this.handleDrag),(0,Ea.removeEvent)(h.ownerDocument,su.stop,this.handleDragStop))}),Va(this,"onMouseDown",r=>(su=bo.mouse,this.handleDragStart(r))),Va(this,"onMouseUp",r=>(su=bo.mouse,this.handleDragStop(r))),Va(this,"onTouchStart",r=>(su=bo.touch,this.handleDragStart(r))),Va(this,"onTouchEnd",r=>(su=bo.touch,this.handleDragStop(r)))}componentDidMount(){this.mounted=!0;const r=this.findDOMNode();r&&(0,Ea.addEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const r=this.findDOMNode();if(r){const{ownerDocument:t}=r;(0,Ea.removeEvent)(t,bo.mouse.move,this.handleDrag),(0,Ea.removeEvent)(t,bo.touch.move,this.handleDrag),(0,Ea.removeEvent)(t,bo.mouse.stop,this.handleDragStop),(0,Ea.removeEvent)(t,bo.touch.stop,this.handleDragStop),(0,Ea.removeEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ea.removeUserSelectStyles)(t)}}findDOMNode(){var r,t;return(r=this.props)!==null&&r!==void 0&&r.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:pB.default.findDOMNode(this)}render(){return R2.cloneElement(R2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Tg.default=Og,Va(Og,"displayName","DraggableCore"),Va(Og,"propTypes",{allowAnyClick:li.default.bool,children:li.default.node.isRequired,disabled:li.default.bool,enableUserSelectHack:li.default.bool,offsetParent:function(e,r){if(e[r]&&e[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:li.default.arrayOf(li.default.number),handle:li.default.string,cancel:li.default.string,nodeRef:li.default.object,onStart:li.default.func,onDrag:li.default.func,onStop:li.default.func,onMouseDown:li.default.func,scale:li.default.number,className:F2.dontSetMe,style:F2.dontSetMe,transform:F2.dontSetMe}),Va(Og,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return m.default}}),e.default=void 0;var r=b(W),t=g(wt.exports),i=g(tu.exports),l=g(PP),f=sr,c=fl,h=cl,m=g(Tg),d=g(Ag);function g(T){return T&&T.__esModule?T:{default:T}}function C(T){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(C=function(N){return N?R:D})(T)}function b(T,D){if(!D&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var R=C(D);if(R&&R.has(T))return R.get(T);var N={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in T)if(M!=="default"&&Object.prototype.hasOwnProperty.call(T,M)){var I=z?Object.getOwnPropertyDescriptor(T,M):null;I&&(I.get||I.set)?Object.defineProperty(N,M,I):N[M]=T[M]}return N.default=T,R&&R.set(T,N),N}function x(){return x=Object.assign?Object.assign.bind():function(T){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(T[N]=R[N])}return T},x.apply(this,arguments)}function _(T,D,R){return D=k(D),D in T?Object.defineProperty(T,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[D]=R,T}function k(T){var D=E(T,"string");return typeof D=="symbol"?D:String(D)}function E(T,D){if(typeof T!="object"||T===null)return T;var R=T[Symbol.toPrimitive];if(R!==void 0){var N=R.call(T,D||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(T)}class A extends r.Component{static getDerivedStateFromProps(D,R){let{position:N}=D,{prevPropsPosition:z}=R;return N&&(!z||N.x!==z.x||N.y!==z.y)?((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:N,prevPropsPosition:z}),{x:N.x,y:N.y,prevPropsPosition:{...N}}):null}constructor(D){super(D),_(this,"onDragStart",(R,N)=>{if((0,d.default)("Draggable: onDragStart: %j",N),this.props.onStart(R,(0,c.createDraggableData)(this,N))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),_(this,"onDrag",(R,N)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",N);const z=(0,c.createDraggableData)(this,N),M={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Y,y:B}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[U,P]=(0,c.getBoundPosition)(this,M.x,M.y);M.x=U,M.y=P,M.slackX=this.state.slackX+(Y-M.x),M.slackY=this.state.slackY+(B-M.y),z.x=M.x,z.y=M.y,z.deltaX=M.x-this.state.x,z.deltaY=M.y-this.state.y}if(this.props.onDrag(R,z)===!1)return!1;this.setState(M)}),_(this,"onDragStop",(R,N)=>{if(!this.state.dragging||this.props.onStop(R,(0,c.createDraggableData)(this,N))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",N);const M={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:Y,y:B}=this.props.position;M.x=Y,M.y=B}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:D.position?D.position.x:D.defaultPosition.x,y:D.position?D.position.y:D.defaultPosition.y,prevPropsPosition:{...D.position},slackX:0,slackY:0,isElementSVG:!1},D.position&&(D.onDrag||D.onStop)}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var D,R;return(D=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&D!==void 0?D:i.default.findDOMNode(this)}render(){const{axis:D,bounds:R,children:N,defaultPosition:z,defaultClassName:M,defaultClassNameDragging:I,defaultClassNameDragged:Y,position:B,positionOffset:U,scale:P,...H}=this.props;let V={},G=null;const ne=!Boolean(B)||this.state.dragging,$=B||z,X={x:(0,c.canDragX)(this)&&ne?this.state.x:$.x,y:(0,c.canDragY)(this)&&ne?this.state.y:$.y};this.state.isElementSVG?G=(0,f.createSVGTransform)(X,U):V=(0,f.createCSSTransform)(X,U);const Z=(0,l.default)(N.props.className||"",M,{[I]:this.state.dragging,[Y]:this.state.dragged});return r.createElement(m.default,x({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(N),{className:Z,style:{...N.props.style,...V},transform:G}))}}e.default=A,_(A,"displayName","Draggable"),_(A,"propTypes",{...m.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:h.dontSetMe,style:h.dontSetMe,transform:h.dontSetMe}),_(A,"defaultProps",{...m.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(f6);const{default:F6,DraggableCore:gB}=f6;Dg.exports=F6,Dg.exports.default=F6,Dg.exports.DraggableCore=gB;var M2={};M2.__esModule=!0,M2.cloneElement=_B;var yB=xB(W);function xB(e){return e&&e.__esModule?e:{default:e}}function N6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function M6(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?N6(Object(t),!0).forEach(function(i){bB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function bB(e,r,t){return r=CB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CB(e){var r=wB(e,"string");return typeof r=="symbol"?r:String(r)}function wB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _B(e,r){return r.style&&e.props.style&&(r.style=M6(M6({},e.props.style),r.style)),r.className&&e.props.className&&(r.className=e.props.className+" "+r.className),yB.default.cloneElement(e,r)}var Gp={};Gp.__esModule=!0,Gp.resizableProps=void 0;var zt=SB(wt.exports);function SB(e){return e&&e.__esModule?e:{default:e}}var EB={axis:zt.default.oneOf(["both","x","y","none"]),className:zt.default.string,children:zt.default.element.isRequired,draggableOpts:zt.default.shape({allowAnyClick:zt.default.bool,cancel:zt.default.string,children:zt.default.node,disabled:zt.default.bool,enableUserSelectHack:zt.default.bool,offsetParent:zt.default.node,grid:zt.default.arrayOf(zt.default.number),handle:zt.default.string,nodeRef:zt.default.object,onStart:zt.default.func,onDrag:zt.default.func,onStop:zt.default.func,onMouseDown:zt.default.func,scale:zt.default.number}),height:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="y"){var f;return(f=zt.default.number).isRequired.apply(f,t)}return zt.default.number.apply(zt.default,t)},handle:zt.default.oneOfType([zt.default.node,zt.default.func]),handleSize:zt.default.arrayOf(zt.default.number),lockAspectRatio:zt.default.bool,maxConstraints:zt.default.arrayOf(zt.default.number),minConstraints:zt.default.arrayOf(zt.default.number),onResizeStop:zt.default.func,onResizeStart:zt.default.func,onResize:zt.default.func,resizeHandles:zt.default.arrayOf(zt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:zt.default.number,width:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="x"){var f;return(f=zt.default.number).isRequired.apply(f,t)}return zt.default.number.apply(zt.default,t)}};Gp.resizableProps=EB,Yp.__esModule=!0,Yp.default=void 0;var Kp=OB(W),DB=Dg.exports,kB=M2,TB=Gp,AB=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function P6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(P6=function(l){return l?t:r})(e)}function OB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=P6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P2.apply(this,arguments)}function RB(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function B6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function B2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?B6(Object(t),!0).forEach(function(i){FB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):B6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function FB(e,r,t){return r=NB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function NB(e){var r=MB(e,"string");return typeof r=="symbol"?r:String(r)}function MB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function PB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,L2(e,r)}function L2(e,r){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},L2(e,r)}var z2=function(e){PB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.handleRefs={},i.lastHandleRect=null,i.slack=null,i}var t=r.prototype;return t.componentWillUnmount=function(){this.resetData()},t.resetData=function(){this.lastHandleRect=this.slack=null},t.runConstraints=function(l,f){var c=this.props,h=c.minConstraints,m=c.maxConstraints,d=c.lockAspectRatio;if(!h&&!m&&!d)return[l,f];if(d){var g=this.props.width/this.props.height,C=l-this.props.width,b=f-this.props.height;Math.abs(C)>Math.abs(b*g)?f=l/g:l=f*g}var x=l,_=f,k=this.slack||[0,0],E=k[0],A=k[1];return l+=E,f+=A,h&&(l=Math.max(h[0],l),f=Math.max(h[1],f)),m&&(l=Math.min(m[0],l),f=Math.min(m[1],f)),this.slack=[E+(x-l),A+(_-f)],[l,f]},t.resizeHandler=function(l,f){var c=this;return function(h,m){var d=m.node,g=m.deltaX,C=m.deltaY;l==="onResizeStart"&&c.resetData();var b=(c.props.axis==="both"||c.props.axis==="x")&&f!=="n"&&f!=="s",x=(c.props.axis==="both"||c.props.axis==="y")&&f!=="e"&&f!=="w";if(!(!b&&!x)){var _=f[0],k=f[f.length-1],E=d.getBoundingClientRect();if(c.lastHandleRect!=null){if(k==="w"){var A=E.left-c.lastHandleRect.left;g+=A}if(_==="n"){var T=E.top-c.lastHandleRect.top;C+=T}}c.lastHandleRect=E,k==="w"&&(g=-g),_==="n"&&(C=-C);var D=c.props.width+(b?g/c.props.transformScale:0),R=c.props.height+(x?C/c.props.transformScale:0),N=c.runConstraints(D,R);D=N[0],R=N[1];var z=D!==c.props.width||R!==c.props.height,M=typeof c.props[l]=="function"?c.props[l]:null,I=l==="onResize"&&!z;M&&!I&&(h.persist==null||h.persist(),M(h,{node:d,size:{width:D,height:R},handle:f})),l==="onResizeStop"&&c.resetData()}}},t.renderResizeHandle=function(l,f){var c=this.props.handle;if(!c)return Kp.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+l,ref:f});if(typeof c=="function")return c(l,f);var h=typeof c.type=="string",m=B2({ref:f},h?{}:{handleAxis:l});return Kp.cloneElement(c,m)},t.render=function(){var l=this,f=this.props,c=f.children,h=f.className,m=f.draggableOpts;f.width,f.height,f.handle,f.handleSize,f.lockAspectRatio,f.axis,f.minConstraints,f.maxConstraints,f.onResize,f.onResizeStop,f.onResizeStart;var d=f.resizeHandles;f.transformScale;var g=RB(f,AB);return(0,kB.cloneElement)(c,B2(B2({},g),{},{className:(h?h+" ":"")+"react-resizable",children:[].concat(c.props.children,d.map(function(C){var b,x=(b=l.handleRefs[C])!=null?b:l.handleRefs[C]=Kp.createRef();return Kp.createElement(DB.DraggableCore,P2({},m,{nodeRef:x,key:"resizableHandle-"+C,onStop:l.resizeHandler("onResizeStop",C),onStart:l.resizeHandler("onResizeStart",C),onDrag:l.resizeHandler("onResize",C)}),l.renderResizeHandle(C,x))}))}))},r}(Kp.Component);Yp.default=z2,z2.propTypes=TB.resizableProps,z2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Rg={};Rg.__esModule=!0,Rg.default=void 0;var U2=jB(W),BB=L6(wt.exports),LB=L6(Yp),zB=Gp,UB=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function L6(e){return e&&e.__esModule?e:{default:e}}function z6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(z6=function(l){return l?t:r})(e)}function jB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=z6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},j2.apply(this,arguments)}function U6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function Fg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?U6(Object(t),!0).forEach(function(i){IB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function IB(e,r,t){return r=HB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function HB(e){var r=VB(e,"string");return typeof r=="symbol"?r:String(r)}function VB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function $B(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function YB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,I2(e,r)}function I2(e,r){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},I2(e,r)}var j6=function(e){YB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.state={width:i.props.width,height:i.props.height,propsWidth:i.props.width,propsHeight:i.props.height},i.onResize=function(h,m){var d=m.size;i.props.onResize?(h.persist==null||h.persist(),i.setState(d,function(){return i.props.onResize&&i.props.onResize(h,m)})):i.setState(d)},i}r.getDerivedStateFromProps=function(l,f){return f.propsWidth!==l.width||f.propsHeight!==l.height?{width:l.width,height:l.height,propsWidth:l.width,propsHeight:l.height}:null};var t=r.prototype;return t.render=function(){var l=this.props,f=l.handle,c=l.handleSize;l.onResize;var h=l.onResizeStart,m=l.onResizeStop,d=l.draggableOpts,g=l.minConstraints,C=l.maxConstraints,b=l.lockAspectRatio,x=l.axis;l.width,l.height;var _=l.resizeHandles,k=l.style,E=l.transformScale,A=$B(l,UB);return U2.createElement(LB.default,{axis:x,draggableOpts:d,handle:f,handleSize:c,height:this.state.height,lockAspectRatio:b,maxConstraints:C,minConstraints:g,onResizeStart:h,onResize:this.onResize,onResizeStop:m,resizeHandles:_,transformScale:E,width:this.state.width},U2.createElement("div",j2({},A,{style:Fg(Fg({},k),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},r}(U2.Component);Rg.default=j6,j6.propTypes=Fg(Fg({},zB.resizableProps),{},{children:BB.default.element}),x2.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var qB=x2.exports.Resizable=Yp.default;x2.exports.ResizableBox=Rg.default;const GB={search:"search-table-module_search_17add",table:"search-table-module_table_5f652"},KB=e=>{const{onResize:r,width:t,resizeable:i,...l}=e;return!t||!i?Q("th",{...l}):Q(qB,{width:t||200,height:0,onResize:r,draggableOpts:{enableUserSelectHack:!1},children:Q("th",{...l})})};function WB(e){const{tableProps:r={},searchProps:t,langId:i}=e,{minColumnWidth:l=200,resizeable:f=!1,tableId:c,storageKey:h="szld_table_cell_width",emptyText:m,...d}=r,[g,C]=W.useState(r.columns||[]),b=E=>{var T,D;let A=E.width||l;if(E.dataIndex&&c){const R=Array.isArray(E.dataIndex)?E.dataIndex.join("-"):String(E.dataIndex),N=(D=(T=jb(h))==null?void 0:T[c])==null?void 0:D[R];N&&(A=N)}return A};W.useEffect(()=>{const E=r.columns||[];if(E.length===0||!f){C(E);return}const A=E==null?void 0:E.filter(T=>!T.hidden).map(T=>T.dataIndex?{...T,width:b(T),onHeaderCell:D=>({width:D.width,resizeable:f,onResize:(R,{size:N})=>x(D,N)})}:T);A.length>0&&(A[A.length-1].minWidth=A[A.length-1].width,A[A.length-1].width=void 0),C(A)},[r.columns,c,l,f]);const x=(E,A)=>{C(T=>{const D=T==null?void 0:T.map(R=>R.dataIndex===E.dataIndex?{...R,width:A.width}:R);if(c){const R=jb(h)||{};R[c]=R[c]||{},D==null||D.forEach(N=>{if(N.dataIndex){const z=Array.isArray(N.dataIndex)?N.dataIndex.join("-"):String(N.dataIndex);R[c][z]=N.width}}),localStorage.setItem(h,JSON.stringify(R))}return D})},_={header:{cell:KB},...d==null?void 0:d.components},k=W.useMemo(()=>{var A;const E=T=>{let D=T.width||T.minWidth;return(!D||typeof D=="string")&&(D=l),D};return(A=g==null?void 0:g.map(T=>E(T)))==null?void 0:A.reduce((T,D)=>T+D,0)},[g,l]);return Be(nn,{children:[t&&Q(y2,{hiddenTitle:!0,...t,items:t.items}),Q(me.Table,{scroll:{x:k},...d,components:_,columns:g,className:rs(GB.table,r==null?void 0:r.className),locale:{emptyText:Q(me.Empty,{image:me.Empty.PRESENTED_IMAGE_SIMPLE,description:m})},pagination:typeof(r==null?void 0:r.pagination)=="boolean"?r.pagination:{showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:E=>i==="10001"?`共 ${E} 条`:`Total ${E} items`,...r==null?void 0:r.pagination}})]})}const QB={editableCellValueWrap:"editable-module_editableCellValueWrap_3b3d9"},I6=W.createContext(null),ZB=({index:e,...r})=>{const[t]=me.Form.useForm();return Q(me.Form,{form:t,component:!1,children:Q(I6.Provider,{value:t,children:Q("tr",{...r})})})};function XB(e){const{title:r,editable:t,children:i,dataIndex:l,record:f,rules:c,onChange:h,type:m="input",valueProps:d,initialValue:g,...C}=e,b=W.useRef(null),x=W.useContext(I6),_=async()=>{try{const A=await x.validateFields();h({...f,...A})}catch{}},k=()=>Q(c6,{valueType:m,valueProps:{...d,onBlur:_,onPressEnter:_},inputRef:b});let E=i;return t&&(E=Q(me.Form.Item,{style:{margin:0},initialValue:g||il.get(f,l),name:l,rules:c,children:k()})),Q("td",{...C,children:E})}function JB(e){const{columns:r,onChange:t,...i}=e,l={body:{row:ZB,cell:XB}},f=r==null?void 0:r.map(c=>c.editable?{...c,onCell:h=>({...c,record:h,onChange:t})}:c);return Q(me.Table,{...i,components:l,rowClassName:()=>QB.editableRow,columns:f})}const H6=e=>{const{auth:r=!0,...t}=e;return r?Q(me.Button,{...t}):null},eL=e=>{const{PId:r,auths:t,...i}=e,l=W.useMemo(()=>t?!!(typeof r=="number"&&t.find(f=>f.PId===r)||Array.isArray(r)&&t.filter(f=>r.includes(f.PId)).length>0):!1,[r,t]);return Q(H6,{...i,auth:l})},Wp={wrapper:"LoopSlide-module_wrapper_dde90",container:"LoopSlide-module_container_be123",scrollContent:"LoopSlide-module_scrollContent_36ed7",content:"LoopSlide-module_content_f392a"},tL=({speed:e=10,delay:r=1,timingFunction:t="linear",className:i="",style:l,children:f,height:c="100vh",mouseControl:h=!1,classes:m})=>{const d=W.useRef(null),g=W.useRef(null),C=W.useRef(null),b=W.useRef(null),x=W.useRef(0),_=W.useRef(),k=W.useRef(0),E=W.useMemo(()=>{if(!g.current||!C.current)return;const M=g.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());return Y*2-M.clientHeight<Y},[]),A=()=>{if(!g.current||!C.current)return;const M=g.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());if(Y*2<=M.clientHeight){M.style.animation="none";return}const B=Y/M.clientHeight;M.style.setProperty("--content-height",`${Y}px`),M.style.animationDuration=`${e*B}s`,M.style.animationDelay=`${r}s`,M.style.animationTimingFunction=t};W.useEffect(()=>(A(),g.current&&(b.current=new ResizeObserver(A),b.current.observe(g.current)),()=>{b.current&&g.current&&b.current.unobserve(g.current)}),[e,r]);const T=()=>{h&&g.current&&(g.current.style.animationPlayState="paused")},D=()=>{h&&g.current&&(z(),g.current.style.animationPlayState="running")},R=()=>{if(!g.current||!h)return;const I=g.current.getAnimations()[0];if(I)if(Math.abs(x.current)>.1){const Y=performance.now(),B=Y-k.current;k.current=Y;const U=.95;x.current*=Math.pow(U,B/16);const P=I.currentTime||0;I.currentTime=P+x.current,_.current=requestAnimationFrame(R)}else x.current=0,z()},N=M=>{if(!h||!g.current)return;M.preventDefault();const I=M.deltaY,Y=.25;x.current+=I*Y;const B=50;x.current=Math.max(-B,Math.min(B,x.current)),_.current||(k.current=performance.now(),_.current=requestAnimationFrame(R))},z=()=>{_.current&&(cancelAnimationFrame(_.current),_.current=void 0)};return W.useEffect(()=>()=>{z()},[]),W.useEffect(()=>{const M=d.current;if(M)return h&&M.addEventListener("wheel",N,{passive:!1}),()=>{M.removeEventListener("wheel",N)}},[h]),Q("div",{ref:d,className:`${Wp.wrapper} ${i}`,style:{height:c,...l},onMouseEnter:T,onMouseLeave:D,children:Be("div",{ref:g,className:rs(Wp.container,m==null?void 0:m.container),children:[Q("div",{ref:C,className:rs(Wp.content,m==null?void 0:m.content),children:f}),Q("div",{className:rs(Wp.content,m==null?void 0:m.content),children:f}),E&&Q("div",{className:rs(Wp.content,m==null?void 0:m.content),children:f})]})})},Lr={main:"workflownode-module_main_dce7f",item:"workflownode-module_item_73d7c",tail:"workflownode-module_tail_3cb51",node:"workflownode-module_node_005fd",content:"workflownode-module_content_8334f",btn:"workflownode-module_btn_b0c06",collpase:"workflownode-module_collpase_f2468",title:"workflownode-module_title_cb34c",dateWrapper:"workflownode-module_dateWrapper_94849",remark:"workflownode-module_remark_4f910",itemActive:"workflownode-module_itemActive_2a29d",itemDone:"workflownode-module_itemDone_489bc",itemUnDo:"workflownode-module_itemUnDo_2914c"},V6=e=>{const{data:r,current:t,rowKey:i,renderContent:l}=e,[f,c]=W.useState(!1),h=W.useMemo(()=>e.currentIndex!==void 0?e.currentIndex:!t||r.length===0?0:r.findIndex(C=>C.PNId===t),[t,r]),m=W.useMemo(()=>h>1?f?0:h-1:0,[h,f]),d=()=>{c(!0)};return Be("ul",{className:Lr.main,children:[h>1&&!f&&Be("li",{className:rs(Lr.item,Lr.itemDone),children:[Q("div",{className:Lr.tail}),Q("div",{className:Lr.node}),Q("div",{className:Lr.content,children:Be("div",{className:Lr.collpase,children:[Be("div",{children:["已收起",Q("span",{children:h-1}),"个节点"]}),Be("a",{className:Lr.btn,onClick:d,children:["展开节点",Q(M7,{})]})]})})]}),r.slice(m).map((g,C)=>Be("li",{className:rs(Lr.item,h===C+m?Lr.itemActive:h>C+m?Lr.itemDone:Lr.itemUnDo),children:[Q("div",{className:Lr.tail}),Q("div",{className:Lr.node}),Be("div",{className:Lr.content,children:[l?l(g,C,f?h:h-m):Be(nn,{children:[Q("div",{className:Lr.title,children:g.PNName}),Be("div",{className:Lr.dateWrapper,children:[g.PlanFinishDate&&Be("span",{children:["预计完成时间: ",g.PlanFinishDate]}),g.UpdateTime&&Be("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",g.UpdateTime]})]}),g.Remark&&Q("div",{className:Lr.remark,children:g.Remark})]}),f&&h-1===C&&Be("a",{className:Lr.btn,onClick:()=>c(!1),children:["收起节点 ",Q(e9,{})]})]})]},typeof i=="string"?g[i]:i(g)))]})},nL=e=>{const{current:r,data:t,rowKey:i,renderContent:l,currentIndex:f,...c}=e;return(()=>{me.Modal.info({icon:null,title:"流程节点",width:700,content:Q(V6,{rowKey:i,renderContent:l,current:r,currentIndex:f,data:t}),closable:!0,footer:null,maskClosable:!0,...c})})(),null},$6={customPagination:"custom-pagination-module_customPagination_bb6f7",jumpBtns:"custom-pagination-module_jumpBtns_a6c0b"};function rL(e){const{totalText:r="共",unitText:t="条",jumpText:i="跳至",pageText:l="页",paginationProps:f}=e,[c,h]=W.useState(""),m=(f==null?void 0:f.pageSize)||10,d=b=>{h(b.target.value)},g=b=>{var x;h(""),!Number.isNaN(Number(b.target.value))&&((x=f==null?void 0:f.onChange)==null||x.call(f,Number(b.target.value),m))},C=b=>{var x;if(b.key==="Enter"){if(h(""),Number.isNaN(Number(c)))return;(x=f==null?void 0:f.onChange)==null||x.call(f,Number(c),m)}};return Be("div",{className:$6.customPagination,children:[Q(me.Pagination,{showTotal:b=>`${r} ${b} ${t}`,showSizeChanger:{options:[{label:`10 ${t}/${l}`,value:10},{label:`20 ${t}/${l}`,value:20},{label:`50 ${t}/${l}`,value:50},{label:`100 ${t}/${l}`,value:100}]},...f}),Be("div",{className:$6.jumpBtns,children:[i,Q(me.Input,{style:{width:"50px",margin:"0 8px"},value:c,onChange:d,onBlur:b=>g(b),onKeyDown:b=>C(b)}),l]})]})}var Y6={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Lt,function(){var t=1e3,i=6e4,l=36e5,f="millisecond",c="second",h="minute",m="hour",d="day",g="week",C="month",b="quarter",x="year",_="date",k="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,T={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(V){var G=["th","st","nd","rd"],ee=V%100;return"["+V+(G[(ee-20)%10]||G[ee]||G[0])+"]"}},D=function(V,G,ee){var ne=String(V);return!ne||ne.length>=G?V:""+Array(G+1-ne.length).join(ee)+V},R={s:D,z:function(V){var G=-V.utcOffset(),ee=Math.abs(G),ne=Math.floor(ee/60),$=ee%60;return(G<=0?"+":"-")+D(ne,2,"0")+":"+D($,2,"0")},m:function V(G,ee){if(G.date()<ee.date())return-V(ee,G);var ne=12*(ee.year()-G.year())+(ee.month()-G.month()),$=G.clone().add(ne,C),X=ee-$<0,Z=G.clone().add(ne+(X?-1:1),C);return+(-(ne+(ee-$)/(X?$-Z:Z-$))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:C,y:x,w:g,d,D:_,h:m,m:h,s:c,ms:f,Q:b}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},N="en",z={};z[N]=T;var M="$isDayjsObject",I=function(V){return V instanceof P||!(!V||!V[M])},Y=function V(G,ee,ne){var $;if(!G)return N;if(typeof G=="string"){var X=G.toLowerCase();z[X]&&($=X),ee&&(z[X]=ee,$=X);var Z=G.split("-");if(!$&&Z.length>1)return V(Z[0])}else{var q=G.name;z[q]=G,$=q}return!ne&&$&&(N=$),$||!ne&&N},B=function(V,G){if(I(V))return V.clone();var ee=typeof G=="object"?G:{};return ee.date=V,ee.args=arguments,new P(ee)},U=R;U.l=Y,U.i=I,U.w=function(V,G){return B(V,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var P=function(){function V(ee){this.$L=Y(ee.locale,null,!0),this.parse(ee),this.$x=this.$x||ee.x||{},this[M]=!0}var G=V.prototype;return G.parse=function(ee){this.$d=function(ne){var $=ne.date,X=ne.utc;if($===null)return new Date(NaN);if(U.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var Z=$.match(E);if(Z){var q=Z[2]-1||0,te=(Z[7]||"0").substring(0,3);return X?new Date(Date.UTC(Z[1],q,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,te)):new Date(Z[1],q,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,te)}}return new Date($)}(ee),this.init()},G.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},G.$utils=function(){return U},G.isValid=function(){return this.$d.toString()!==k},G.isSame=function(ee,ne){var $=B(ee);return this.startOf(ne)<=$&&$<=this.endOf(ne)},G.isAfter=function(ee,ne){return B(ee)<this.startOf(ne)},G.isBefore=function(ee,ne){return this.endOf(ne)<B(ee)},G.$g=function(ee,ne,$){return U.u(ee)?this[ne]:this.set($,ee)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(ee,ne){var $=this,X=!!U.u(ne)||ne,Z=U.p(ee),q=function(ke,De){var Pe=U.w($.$u?Date.UTC($.$y,De,ke):new Date($.$y,De,ke),$);return X?Pe:Pe.endOf(d)},te=function(ke,De){return U.w($.toDate()[ke].apply($.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(De)),$)},oe=this.$W,ae=this.$M,fe=this.$D,ve="set"+(this.$u?"UTC":"");switch(Z){case x:return X?q(1,0):q(31,11);case C:return X?q(1,ae):q(0,ae+1);case g:var xe=this.$locale().weekStart||0,se=(oe<xe?oe+7:oe)-xe;return q(X?fe-se:fe+(6-se),ae);case d:case _:return te(ve+"Hours",0);case m:return te(ve+"Minutes",1);case h:return te(ve+"Seconds",2);case c:return te(ve+"Milliseconds",3);default:return this.clone()}},G.endOf=function(ee){return this.startOf(ee,!1)},G.$set=function(ee,ne){var $,X=U.p(ee),Z="set"+(this.$u?"UTC":""),q=($={},$[d]=Z+"Date",$[_]=Z+"Date",$[C]=Z+"Month",$[x]=Z+"FullYear",$[m]=Z+"Hours",$[h]=Z+"Minutes",$[c]=Z+"Seconds",$[f]=Z+"Milliseconds",$)[X],te=X===d?this.$D+(ne-this.$W):ne;if(X===C||X===x){var oe=this.clone().set(_,1);oe.$d[q](te),oe.init(),this.$d=oe.set(_,Math.min(this.$D,oe.daysInMonth())).$d}else q&&this.$d[q](te);return this.init(),this},G.set=function(ee,ne){return this.clone().$set(ee,ne)},G.get=function(ee){return this[U.p(ee)]()},G.add=function(ee,ne){var $,X=this;ee=Number(ee);var Z=U.p(ne),q=function(ae){var fe=B(X);return U.w(fe.date(fe.date()+Math.round(ae*ee)),X)};if(Z===C)return this.set(C,this.$M+ee);if(Z===x)return this.set(x,this.$y+ee);if(Z===d)return q(1);if(Z===g)return q(7);var te=($={},$[h]=i,$[m]=l,$[c]=t,$)[Z]||1,oe=this.$d.getTime()+ee*te;return U.w(oe,this)},G.subtract=function(ee,ne){return this.add(-1*ee,ne)},G.format=function(ee){var ne=this,$=this.$locale();if(!this.isValid())return $.invalidDate||k;var X=ee||"YYYY-MM-DDTHH:mm:ssZ",Z=U.z(this),q=this.$H,te=this.$m,oe=this.$M,ae=$.weekdays,fe=$.months,ve=$.meridiem,xe=function(De,Pe,ge,$e){return De&&(De[Pe]||De(ne,X))||ge[Pe].slice(0,$e)},se=function(De){return U.s(q%12||12,De,"0")},ke=ve||function(De,Pe,ge){var $e=De<12?"AM":"PM";return ge?$e.toLowerCase():$e};return X.replace(A,function(De,Pe){return Pe||function(ge){switch(ge){case"YY":return String(ne.$y).slice(-2);case"YYYY":return U.s(ne.$y,4,"0");case"M":return oe+1;case"MM":return U.s(oe+1,2,"0");case"MMM":return xe($.monthsShort,oe,fe,3);case"MMMM":return xe(fe,oe);case"D":return ne.$D;case"DD":return U.s(ne.$D,2,"0");case"d":return String(ne.$W);case"dd":return xe($.weekdaysMin,ne.$W,ae,2);case"ddd":return xe($.weekdaysShort,ne.$W,ae,3);case"dddd":return ae[ne.$W];case"H":return String(q);case"HH":return U.s(q,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return ke(q,te,!0);case"A":return ke(q,te,!1);case"m":return String(te);case"mm":return U.s(te,2,"0");case"s":return String(ne.$s);case"ss":return U.s(ne.$s,2,"0");case"SSS":return U.s(ne.$ms,3,"0");case"Z":return Z}return null}(De)||Z.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(ee,ne,$){var X,Z=this,q=U.p(ne),te=B(ee),oe=(te.utcOffset()-this.utcOffset())*i,ae=this-te,fe=function(){return U.m(Z,te)};switch(q){case x:X=fe()/12;break;case C:X=fe();break;case b:X=fe()/3;break;case g:X=(ae-oe)/6048e5;break;case d:X=(ae-oe)/864e5;break;case m:X=ae/l;break;case h:X=ae/i;break;case c:X=ae/t;break;default:X=ae}return $?X:U.a(X)},G.daysInMonth=function(){return this.endOf(C).$D},G.$locale=function(){return z[this.$L]},G.locale=function(ee,ne){if(!ee)return this.$L;var $=this.clone(),X=Y(ee,ne,!0);return X&&($.$L=X),$},G.clone=function(){return U.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},V}(),H=P.prototype;return B.prototype=H,[["$ms",f],["$s",c],["$m",h],["$H",m],["$W",d],["$M",C],["$y",x],["$D",_]].forEach(function(V){H[V[1]]=function(G){return this.$g(G,V[0],V[1])}}),B.extend=function(V,G){return V.$i||(V(G,P,B),V.$i=!0),B},B.locale=Y,B.isDayjs=I,B.unix=function(V){return B(1e3*V)},B.en=z[N],B.Ls=z,B.p={},B})})(Y6);const Bt=Y6.exports,Qp=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Dc=e=>{var i,l,f,c,h,m;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default);if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t==null?void 0:t.split("~"),t=t.map(d=>d)}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(d=>Bt())}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const d=(c=e.json)==null?void 0:c["cascader-delimiter"];d&&(t=t.split(d).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return r==="time-picker"&&!t&&((h=e.json)!=null&&h["auto-generate"])&&((m=e.json)==null?void 0:m["auto-generate-type"])==="currenttime"&&(t=Bt().format("YYYY-MM-DD HH:mm:ss:ss")),e.attrtype===1&&(t=aL(e.children||[])),t||null},q6=e=>e&&e<Bt().startOf("day"),G6=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},aL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)},cd=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c})=>{var g;let h=[];const m=async C=>{var x;let b=[];if(c.classify)try{const _=await r(C,{asctypeid:c.classify});(x=_==null?void 0:_.data)!=null&&x.list&&Array.isArray(_.data.list)&&(b=_.data.list.map(k=>({label:`${k.dicid||""}-${k.info||""}`,value:`${k.dicid||""}-${k.info||""}`})))}catch{me.message.error("加载选项失败")}return b},d=async()=>{var C,b;try{const x=((C=c==null?void 0:c["key-field"])==null?void 0:C.list)||[],_=((b=c==null?void 0:c["key-field"])==null?void 0:b.delimiter)||"",k=c==null?void 0:c["field-names"];if(!x.length){me.message.error("请配置key-field");return}const E=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(E!=null&&E.data){const A=E==null?void 0:E.data,T=(A==null?void 0:A.list)||[];let D=[];Array.isArray(A)&&(D=A),Array.isArray(T)&&(D=T),k?h=D:h=D.map(R=>({label:G6(R,_,x),value:G6(R,_,x)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(h=((g=c.data)==null?void 0:g.map(C=>({label:C,value:C})))||[],c.options&&Array.isArray(c.options)&&(h=c.options)):c.inputType==="dictionary"?h=await m(t):c.inputType==="system-dictionary"&&(h=await m(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await d(),h};function iL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}let c={};e.forEach(h=>{for(let[m,d]of Object.entries(f)){const g=(d==null?void 0:d.list)??[],C=(d==null?void 0:d.delimiter)??"-",b=g.map(x=>h==null?void 0:h[x]);c[m]=b.join(C)}}),i(c)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}const K6=(e,r,t=!0)=>{const i=String(r);return e.find(l=>Object.values(l).some(f=>{const c=String(f);return t?c===i:c.includes(i)}))};function uu(e){try{return JSON.parse(e)}catch{return{}}}function Zp(e){if(!W6(e))return e;const r=atob(e),t=new Uint8Array(r.length);for(let i=0;i<r.length;i++)t[i]=r.charCodeAt(i);return new TextDecoder().decode(t)}function W6(e){return e?e.length%4!==0?!1:/^[A-Za-z0-9+/]+(?:=?=?)$/.test(e):!0}const oL=(e,r)=>{var b;let t=il.cloneDeep(e);const{attr_list:i=[]}=t,{isMobile:l=!1,guid:f,isListToObj:c=!1,isAutoFill:h=!0,onlyNumber:m=""}=e;let d=[];const g=(x,_)=>{try{const k=new Map(x.map((E,A)=>[E.attrid,A]));for(const[E,A]of Object.entries(_)){const T=k.get(E);if(T===void 0)continue;let D=x[T];if(!A&&A!==0){D.attrvalue="";continue}D=C(D,A,l)}x.forEach(E=>{E.children&&Array.isArray(E.children)&&E.children.length>0&&!Array.isArray(E.children[0])&&_[E.attrid]&&g(E.children,_[E.attrid]),E.children&&Array.isArray(E.children)&&E.children.length>0&&Array.isArray(E.children[0])&&E.children.forEach((A,T)=>{var D,R;A&&Array.isArray(A)&&((D=_==null?void 0:_[E.attrid])!=null&&D[T])&&g(A,(R=_==null?void 0:_[E.attrid])==null?void 0:R[T])})})}catch{}},C=(x,_,k)=>{var T,D,R,N;const E=(T=x.json)==null?void 0:T.input,A=(D=x.json)==null?void 0:D.format;switch(E){case"image":case"file":case"video":case"audio":const z=typeof _=="string"?JSON.parse(_):_;if(!Array.isArray(z)){x.attrvalue=JSON.stringify([]);return}const M=z.filter(B=>B.FileId),I=z.filter(B=>{var U;return B.status==="done"&&((U=B.response)==null?void 0:U.data)}).map(B=>B.response.data),Y=[...M,...I];d=[...d,...I],x.attrvalue=JSON.stringify(Y);break;case"cascader":if(Array.isArray(_)&&_.length>0){const B=((R=x.json)==null?void 0:R["cascader-delimiter"])||"/";x.attrvalue=_.join(B)}else x.attrvalue="";break;case"range-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>Bt(B).format(A||"YYYY-MM-DD")).join("~"):x.attrvalue="":Array.isArray(_)&&_.length>0?x.attrvalue=_.join("~"):x.attrvalue="";break;case"multiple-date-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>Bt(B).format(A||"YYYY-MM-DD")).join(","):x.attrvalue=_:Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"checkbox":case"mult-select":Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"date-picker":_?x.attrvalue=Bt(_).format(A||"YYYY-MM-DD"):x.attrvalue="";break;case"time-picker":_?x.attrvalue=Bt(_).format(A||"YYYY-MM-DD HH:mm:ss"):x.attrvalue="";break;default:(N=x==null?void 0:x.json)!=null&&N["properties-multiple"]||(x.attrvalue=_);break}return x};return t.attr_list&&Array.isArray(t.attr_list)&&g(i,r),h&&((b=t==null?void 0:t.attr_list)==null||b.forEach(x=>{var k,E,A,T,D,R;const _=(x==null?void 0:x.attrvalue)||"";(k=x==null?void 0:x.json)!=null&&k["auto-generate"]&&((E=x==null?void 0:x.json)!=null&&E["auto-generate-type"])&&!_&&(((A=x==null?void 0:x.json)==null?void 0:A["auto-generate-type"])==="currenttime"&&(x.attrvalue=Bt().format("YYYY-MM-DD HH:mm:ss")),((T=x==null?void 0:x.json)==null?void 0:T["auto-generate-type"])==="guid"&&!_&&(x.attrvalue=m||f||"")),(D=x==null?void 0:x.json)!=null&&D.default&&!_&&(x.attrvalue=(R=x==null?void 0:x.json)==null?void 0:R.default)})),{updatedData:c?J6(t.attr_list||[]):t,uploadedFiles:d}},H2=(e,r,t)=>e.map(i=>{var c,h,m;const l=Q6(i,r,t),{children:f}=l;if(f&&!Array.isArray(f==null?void 0:f[0])&&(f!=null&&f.length)&&(l.children=[H2(f,r,t)]),l!=null&&l.children&&Array.isArray((c=l==null?void 0:l.children)==null?void 0:c[0])&&((h=l==null?void 0:l.children)!=null&&h.length)){const d=(m=l==null?void 0:l.children)==null?void 0:m.map(g=>g==null?void 0:g.map(C=>Q6(C,r,t)));l.children=d}return l}),Q6=(e,r,t)=>{var i,l;if(!e.json&&e.info)try{const f=e.info_base64===1?Zp(e.info):e.info,c=uu(f),h=il.cloneDeep(r)||{},{langConfig:m=[],attrLangConfig:d=[]}=h||{};return h==null||delete h.langConfig,m!=null&&m.length&&((i=c==null?void 0:c.data)!=null&&i.length)&&(c==null?void 0:c.inputType)==="local"&&(c.options=(l=c.data)==null?void 0:l.map(g=>({label:Ji(m,g),value:g})),c==null||delete c.data),t!=null&&t.includes(e.attrid)&&(c.hidden=!0),m!=null&&m.length&&(c!=null&&c["combination-name"])&&(c["combination-name"]=Ji(d,c["combination-name"])||Ji(m,c["combination-name"])),m!=null&&m.length&&(c!=null&&c["default-prompt"])&&(c["default-prompt"]=Ji(d,c["default-prompt"])),m!=null&&m.length&&(c!=null&&c.instruction)&&(c.instruction=Ji(d,c.instruction)),m!=null&&m.length&&(c!=null&&c["regexp-message"])&&(c["regexp-message"]=Ji(d,c["regexp-message"])),{...e,json:c,...h,info:JSON.stringify(c)}}catch{return{...e,json:{},...r}}return{...e,...r}},Z6=(e,r,t)=>H2(e,r,t),X6=(e,r,t)=>{const i=H2(e,r,t),l=i.filter(h=>{var m;return(m=h.json)==null?void 0:m.combination}).reduce((h,m)=>{const d=m.json["combination-id"];return d&&(h[d]||(h[d]=[]),h[d].push(m)),h},{}),f=new Set;Object.values(l).forEach(h=>{(h==null?void 0:h.length)!==0&&h.slice(1).forEach(m=>f.add(m.attrid))});const c=h=>h.filter(m=>!f.has(m.attrid)).map(m=>{var C;const d=(C=m.json)==null?void 0:C["combination-id"];if(d&&l[d]){const b={...m,json:{...m.json,combinations:l[d]}},{children:x}=b;return x&&Array.isArray(x==null?void 0:x[0])&&(x!=null&&x.length)&&(b.children=x==null?void 0:x.map(_=>c(_))),b}const{children:g}=m;return g&&Array.isArray(g==null?void 0:g[0])&&(g!=null&&g.length)&&(m.children=g==null?void 0:g.map(b=>c(b))),m});return c(i)},lL=async({number:e,key:r,sourceNumber:t,guidInterfaceName:i,SelPCParamInterfaceName:l,servicerAttrListInterfaceName:f,accepterAttrListInterfaceName:c,defaultAttrListInterfaceName:h,commonRequest:m,guidParams:d,pcParam:g,attrReqKey:C="asid",attrListExtraParams:b={}})=>new Promise(async(x,_)=>{var N,z,M,I;let k="",E=[],A={},T={};const D=await m(i||"FWDXGLCreateGUID",d||{"source-number":t});(D==null?void 0:D.ReturnValue)===1&&((N=D==null?void 0:D.data)!=null&&N.GUID)?k=D.data.GUID:_("获取GUID失败");const R=await m(l||"FWDXGLSelPCParam",g||{"source-number":t});if((R==null?void 0:R.ReturnValue)===1){const Y=(z=R.data[e])==null?void 0:z[r],B=(M=R.data[e])==null?void 0:M["properties-type"],U={server:f||"",accepter:c||""};T=R.data;const P=await m(U[B]||h,{[C]:Y,"source-number":t,...b});if((P==null?void 0:P.ReturnValue)===1&&P.data){const H=((I=P.data)==null?void 0:I.attr_list)||[];E=X6(H),A={...P.data,attr_list:E},x({baseData:A,newGUID:k,attrListConfigs:E,selPCParam:T})}else _("请配置属性集")}else _("获取配置失败")}),sL=async(e,r,t)=>await t(e,r);function uL(e){return e.replace(/-([a-z])/g,function(r,t){return t.toUpperCase()})}const J6=e=>{var l;function r(f){const c={};return f.forEach(h=>{var d,g,C,b,x,_,k;const m=`${h.attrid}_${h.attrtype}`;if(h.attrtype===1&&h.children.length>0&&!Array.isArray(h.children))c[m]={asid:((g=(d=h.children)==null?void 0:d[0])==null?void 0:g.asid)||"",data_list:[r(h.children)]};else if(h.attrtype===1&&h.children.length>0&&Array.isArray(h.children)){let{children:E=[],attrvalue:A}=h||{};A&&(A!=null&&A.length)&&Array.isArray(A)?E=A.map(T=>{var N,z,M,I;const D=(N=Object.values(T))==null?void 0:N.findIndex(Y=>Array.isArray(Y)),R=((z=Object.keys(T))==null?void 0:z[D])||"";if(R){const Y=((M=E==null?void 0:E[0])==null?void 0:M.find(U=>U.attrid===R))||{},{input:B}=(Y==null?void 0:Y.json)||{};if(["file","image","video","audio"].includes(B)){const U=((I=Object.values(T))==null?void 0:I[D])||[],P=U.filter(G=>G.FileId),H=U.filter(G=>{var ee;return G.status==="done"&&((ee=G.response)==null?void 0:ee.data)}).map(G=>G.response.data),V=[...P,...H];T[R]=V}}return nD((E==null?void 0:E[0])||[],T)}):(h.childAsid=((b=(C=E==null?void 0:E[0])==null?void 0:C[0])==null?void 0:b.asid)||"",E=[[]]),E!=null&&E.length&&Array.isArray(E==null?void 0:E[0])&&(c[m]={asid:((_=(x=E==null?void 0:E[0])==null?void 0:x[0])==null?void 0:_.asid)||h.childAsid||"",data_list:(E==null?void 0:E.length)&&((k=E==null?void 0:E[0])==null?void 0:k.length)&&E.map(T=>r(T))||[]})}else c[m]=h.attrvalue}),c}const t=((l=e[0])==null?void 0:l.asid)||"",i=[r(e)];return{data:{asid:t,data_list:i}}},eD=async({attrList:e,params:r,extra:t={},commonRequest:i})=>{var h;const l=await i("YLFWLRDataDetails",r),f=((h=l==null?void 0:l.data)==null?void 0:h.list)||[];return f.length?await Promise.all(f.map(async m=>await Promise.all((e==null?void 0:e.map(async g=>{const C={...g,...t};if(C.attrvalue=(m==null?void 0:m[g.attrid])||"",g.attrtype===1&&Array.isArray(g.children)&&g.children.length>0){const b=(m==null?void 0:m[g.attrid])||{};C.children=await eD({attrList:g.children,params:b,extra:t,commonRequest:i})}return C}))||[])))||[]:e.map(m=>({...m,...t,attrvalue:"",children:[]}))},kc=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},Ji=(e,r)=>{const t=e.find(i=>(i==null?void 0:i.dataid)===r);return(t==null?void 0:t.content)??r},tD=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c,langConfig:h=[]})=>{var C;let m=[];const d=async b=>{var _;let x=[];if(c.classify)try{const k=await r(b,{asctypeid:c.classify});(_=k==null?void 0:k.data)!=null&&_.list&&Array.isArray(k.data.list)&&(x=k.data.list.map(E=>({label:`${E.dicid||""}-${E.info||""}`,value:`${E.dicid||""}-${E.info||""}`})))}catch{me.message.error("加载选项失败")}return x},g=async()=>{var b,x;try{const _=((b=c==null?void 0:c["key-field"])==null?void 0:b.list)||[],k=((x=c==null?void 0:c["key-field"])==null?void 0:x.delimiter)||"",E=c==null?void 0:c["field-names"];if(!_.length){me.message.error("请配置key-field");return}const A=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(A!=null&&A.data){const T=A==null?void 0:A.data,D=(T==null?void 0:T.list)||[];let R=[];Array.isArray(T)&&(R=T),Array.isArray(D)&&(R=D),E?m=R:m=R.map(N=>({label:kc(N,k,_),value:kc(N,k,_)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(m=((C=c.data)==null?void 0:C.map(b=>({label:Ji(h,b),value:b})))||[],c.options&&Array.isArray(c.options)&&(m=c.options)):c.inputType==="dictionary"?m=await d(t):c.inputType==="system-dictionary"&&(m=await d(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await g(),m},nD=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),cL=Object.freeze(Object.defineProperty({__proto__:null,getJson:uu,base64ToString:Zp,isBase64:W6,handleSubmitForm:oL,handleBaseAttrList:Z6,handleAttrList:X6,handleFormConfig:lL,handleOperationFile:sL,handleKebabToCamel:uL,handleAttrListToObj:J6,handleAttrListToObjDetail:eD,handleUrlOptions:kc,getTitle:Ji,handleSelectOptions:tD,handleObjDetailToSignleAttrList:nD},Symbol.toStringTag,{value:"Module"})),rD=async(e,r,t)=>{var i;try{const l=await r(t||"SERATTALLList",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.attr_list)||[]:[]}catch{}},fL=async(e,r,t)=>{var i;try{const l=await r(t||"YLFWLRDataDetails",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.list)||[]:[]}catch{}},V2=async(e,r,t)=>{var l;const i={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"};try{const f=await r(t||i,e);return(f==null?void 0:f.ReturnValue)===1?((l=f==null?void 0:f.data)==null?void 0:l.list)||[]:[]}catch{}},dL=async({params:e,commonRequestWidthParams:r,requestParams:t})=>{const i={PageName:"PCInstanceData",Controlname:"DataProcess"};try{return await r(t||i||{},e)}catch{}},pL=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),aD=(e,r,t)=>({style:{backgroundColor:r!==void 0&&r%2===1?(t==null?void 0:t[0])||"rgba(0, 77, 50, 0.16)":(t==null?void 0:t[1])||"rgba(0, 77, 50, 0.24)"}}),hL=(e,r="YYYY-MM-DD")=>(Object.entries(il.cloneDeep(e)).forEach(([t,i])=>{Array.isArray(i)&&i.length>0&&i[0]instanceof Date&&(e[t]=i.map(l=>Bt(l).format(r))),i instanceof Date&&(e[t]=Bt(i).format(r))}),e),vL=(e,r)=>{const t=Object.fromEntries(Object.entries(e).map(([l,f])=>[f,l])),i={};for(const[l,f]of Object.entries(r))t.hasOwnProperty(l)&&(i[t[l]]=f);return i},$2=async(e,r)=>{var t;try{const i=await r("YLKHDSelPCParam",{"source-number":e});return(i==null?void 0:i.ReturnValue)===1?((t=i==null?void 0:i.data)==null?void 0:t[e])||{}:null}catch{}},mL=Object.freeze(Object.defineProperty({__proto__:null,handleGetAttrList:rD,handleGetAttrDetail:fL,handleGetList:V2,handleCallSupportCode:dL,handleObjDetailToSignleAttrList:pL,handleSetTableRowColor:aD,handleFormatMobileDate:hL,handleNonUniversalHeader:vL,handleGetControlPanelConfig:$2},Symbol.toStringTag,{value:"Module"})),gL=(e,r)=>{const t=new URL(e),i=new URL(r);return t.protocol===i.protocol&&t.host===i.host&&t.port===i.port},yL=e=>{const r=String(e).split("/");return r[r.length-1]},xL=e=>{var t;return(t=e.headers.get("content-disposition"))==null?void 0:t.split(";")[1].split("=")[1]},iD=(e,r)=>{const t=r||yL(e);if(gL(e,window.location.href)){Y2(e,t);return}let i=r;fetch(e,{method:"get"}).then(l=>(i||(i=xL(l)),l.blob())).then(l=>{oD(l,i||t)}).catch(()=>{Y2(e,"")})},bL=e=>{for(var r=e.split(","),t=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]),l=i.length,f=new Uint8Array(l);l--;)f[l]=i.charCodeAt(l);return new Blob([f],{type:t})},oD=(e,r)=>{let t="";e instanceof Blob?t=window.URL.createObjectURL(e):t=window.URL.createObjectURL(bL(e));const i=window.navigator;if(i.msSaveOrOpenBlob){i.msSaveOrOpenBlob(e,r);return}Y2(t,r),window.URL.revokeObjectURL(t)},Y2=(e,r)=>{let t=document.createElement("a");t.style.display="none",t.href=e,t.target="_blank",t.download=r,document.body.appendChild(t),t.click(),document.body.removeChild(t)},CL=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:iD,downloadBlob:oD},Symbol.toStringTag,{value:"Module"}));function q2(){const{message:e,modal:r}=me.App.useApp(),t={},i=async({selListData:C,handleSearch:b,handleReset:x,detail:_,styles:k,attributeSetId:E,commonRequest:A,commonRequestWidthParams:T,getTitle:D,searchText:R="搜索",resetText:N="重置",langConfig:z=[]})=>{var M;try{C!=null&&C.length&&_&&C.forEach(V=>{var ee;const G=((ee=V["default-render-data"])==null?void 0:ee.key)||"";G&&(V.attrvalue=(_==null?void 0:_[G])||"")});const I=C.filter(V=>{var G;return((G=V.renderdata)==null?void 0:G.input)!=="tab"&&!(V!=null&&V["default-render-data"])}),Y=I.filter(V=>{var G;return["select","checkbox","radio","mult-select","cascader"].includes((G=V.renderdata)==null?void 0:G.input)});let B=[];if(Y!=null&&Y.length)if((M=t[E])!=null&&M.length)B=t[E];else{const V=await rD({asid:E},A);B=Z6(V)||[],t[E]=B||[]}const U=await Promise.all(I.map(async V=>{var te;const G=V.renderdata||{},{input:ee,width:ne}=G||{},$=(G==null?void 0:G["label-col"])||6,X=()=>{const oe=G["default-prompt"];if(D){if(typeof oe=="string"){const ae=D(E||"",oe),fe=g(ae);return ee==="range-picker"&&oe&&fe?JSON.parse(ae):ae}}else return oe||""};let Z="input";switch(ee){case"range-picker":Z="rangePicker";break;case"number":Z="inputNumber";break;case"select":case"checkbox":case"radio":case"textarea":Z=ee;break;case"mult-select":Z="select";break;case"time-picker":Z="timePicker";break;case"date-picker":Z="datePicker";break;case"cascader":Z="cascader";break;default:Z="input";break}const q={dataIndex:V.attrid,title:V.attrname||"",valueType:Z,valueProps:{placeholder:X()},colProps:{},formItemProps:{style:{marginBottom:10,width:typeof ne=="string"?`${ne}px`:ne||240},labelCol:{span:$}}};if(["select","checkbox","radio","mult-select","cascader"].includes(ee)){const oe=V.attrid||"",ae=B.find(xe=>xe.attrid===oe);let fe=(ae==null?void 0:ae.json)||{};!(fe!=null&&fe.inputType)&&(G!=null&&G["input-type"])&&(fe={...fe,inputType:G==null?void 0:G["input-type"],"action-url":G==null?void 0:G["action-url"],"field-names":G==null?void 0:G["field-names"],"key-field":{...G==null?void 0:G["key-field"]}});let ve=await tD({item:fe||{},commonRequest:A,commonRequestWidthParams:T,langConfig:z||[]});if(!(ve!=null&&ve.length)){const{data:xe=[]}=G||{};xe!=null&&xe.length&&(ve=xe==null?void 0:xe.map(se=>({label:se||"",value:se||""}))),(te=G==null?void 0:G.options)!=null&&te.length&&(ve=(G==null?void 0:G.options)||[])}if(ee==="cascader"){const xe=d(ve,G==null?void 0:G["field-names"]);q.valueProps.options=xe||[]}else q.valueProps.options=ve||[]}return q}));let P={color:"#ffffff",borderRadius:4,fontSize:14,height:32},H={color:"#333333",borderRadius:4,fontSize:14,height:32,borderColor:"#D9D9D9"};return C!=null&&C.length&&U.push({dataIndex:"btns",valueType:"btns",valueProps:[{btnType:"submit",title:R,type:"primary",shape:"default",style:{...P,...k==null?void 0:k.searchStyle},onClick:V=>b(V,C)},{btnType:"reset",title:N,style:{...H,...k==null?void 0:k.resetStyle},onClick:()=>x(C)}],colProps:{flex:"none"},formItemProps:{style:{marginBottom:10,minWidth:127}}}),{formItems:U,selList:C,attrList:B}}catch{return{formItems:[],selList:[],attrList:[]}}},l=({universalHeader:C,extraBtn:b,operationColumnConfig:x,attributeSetId:_,getTitle:k,downloadText:E="下载",isDefaultWidth:A=!0,otherLangPageId:T,objDefaultLangPageId:D="5000000"})=>{if(!(C!=null&&C.length))return e.error("请配置 universalHeader表头数据");const R=f(C),N=R==null?void 0:R.map(z=>{const M={title:_?(k==null?void 0:k(_,z==null?void 0:z["header-attribute-id"]))||"":(z==null?void 0:z["header-name"])||"",dataIndex:(z==null?void 0:z["header-attribute-id"])||"",width:A?(z==null?void 0:z["header-width"])||180:void 0,render:(B,U)=>{var P,H,V,G;if(B&&B&&typeof B=="string"&&(B!=null&&B.includes("FileName"))&&(B!=null&&B.includes("FilePath"))){try{const ee=JSON.parse(B);return ee!=null&&ee.length?Q(me.Flex,{vertical:!0,children:ee==null?void 0:ee.map(ne=>{const{FileName:$,FilePath:X}=ne||{};return Be(me.Space,{children:[Q("span",{children:$}),Q(me.Button,{type:"link",size:"small",onClick:()=>iD(X),children:E})]})})}):"-"}catch{}return Q(me.Space,{})}if(z!=null&&z["show-lang-data-id"]&&T){if(B&&B&&typeof B=="object"&&((P=Object.keys(B))!=null&&P.includes("delimiter"))){const{list:ee,delimiter:ne=","}=B||{},$=ee==null?void 0:ee.map(X=>{const Z=(X==null?void 0:X.split("|"))||[],q=(Z==null?void 0:Z.length)>1?Z[0]:D,te=(Z==null?void 0:Z.length)>1?Z[1]:Z[0];return k==null?void 0:k(q,te)});return Q("span",{dangerouslySetInnerHTML:{__html:((H=$==null?void 0:$.join(ne))==null?void 0:H.replace(/br/g,"<br>"))||"-"}})}return Q(me.Tooltip,{title:B,children:Q("span",{style:{cursor:"pointer"},children:k==null?void 0:k(T,B??"-")})})}if(B&&B&&typeof B=="object"&&((V=Object.keys(B))!=null&&V.includes("delimiter"))){const{list:ee,delimiter:ne=","}=B||{};return Q("span",{dangerouslySetInnerHTML:{__html:((G=ee==null?void 0:ee.join(ne))==null?void 0:G.replace(/br/g,"<br>"))||"-"}})}return B??"-"}},I=z==null?void 0:z["header-mul-attribute-id"],Y=z==null?void 0:z["show-btn"];return I&&I.list&&Array.isArray(I.list)?M.render=(B,U)=>{const{list:P,delimiter:H=","}=I,V=P.map(ee=>ee?U[ee]??"":"").filter(ee=>ee!==""),G=(V==null?void 0:V.join(H))??"-";return Y&&b?Be(nn,{children:[G??"-",b==null?void 0:b(U,G,z)]}):G||"-"}:Y&&b&&(M.render=(B,U)=>{const P=U[M.dataIndex]||"";return Be(nn,{children:[P||"-",b(U,P,z)]})}),M});return x&&(N!=null&&N.length)&&N.push(x),N},f=C=>C.slice().sort((b,x)=>{const _=typeof b["header-number"]=="number"?b["header-number"]:1/0,k=typeof x["header-number"]=="number"?x["header-number"]:1/0;return _-k}),c=async({commonRequest:C,refresh:b,interfaceType:x="YLFWLRInstanceDelete",record:_,configData:k,title:E,okText:A,cancelText:T,getTitle:D,pageID:R,deleteItem:N,okType:z="primary",cancelType:M="default"})=>{var I,Y;try{let B=(k==null?void 0:k["must-attrid"])||[];const U=(N==null?void 0:N["source-number"])||(N==null?void 0:N.sourceNumber)||"";if(!(B!=null&&B.length)&&U){const V=await C("YLKHDSelPCParam",{"source-number":Number(U)});V&&V.ReturnValue===1&&V.data&&(B=((Y=(I=V.data)==null?void 0:I[U])==null?void 0:Y["must-attrid"])||[])}if(!(B!=null&&B.length)){e.error("请先配置must-attrid");return}const P={};for(const[V,G]of Object.entries(_))B.includes(V)&&(P[V]=G);const H={instanceid:_==null?void 0:_.instanceid,asid:_==null?void 0:_.asid,...P};r.confirm({title:E||(N==null?void 0:N.title)||"",icon:null,okButtonProps:{type:z},cancelButtonProps:{type:M},okText:A||"",cancelText:T||"",onOk:()=>new Promise(async(V,G)=>{const ee=await C(x,H),ne=D&&D(R||"",ee==null?void 0:ee["msg-code"])||(ee==null?void 0:ee.msg);(ee==null?void 0:ee.ReturnValue)===1?(e.success(ne),b(),V(ee)):(e.error(ne||"删除失败"),G(ee))})})}catch{}},h=({values:C,currentSelList:b,currentActive:x,onSearch:_,tabItems:k})=>{const A={"sel-list":b.map(T=>{var I,Y;const{input:D,inputType:R}=(T==null?void 0:T.renderdata)||{};if(T==null?void 0:T["default-render-data"])return T;if(D==="tab"&&(R!=null&&R.startsWith("local-"))&&(k!=null&&k.length)&&(x||x===0)){const B=b.find(G=>D==="tab"&&(R==null?void 0:R.startsWith("local-"))),U=k[x],P=((I=B==null?void 0:B.renderdata["key-field"])==null?void 0:I.list)||[],H=((Y=B==null?void 0:B.renderdata["key-field"])==null?void 0:Y.delimiter)||"-",V=P==null?void 0:P.map(G=>U[G]||"").join(H);return{...T,attrvalue:V}}const z=C[T.attrid];let M;return z!=null&&(D==="cascader"&&Array.isArray(z)?M=z.join("|"):Array.isArray(z)&&["range-picker"].includes(D)?M=z.map(B=>{var U;return((U=B==null?void 0:B.format)==null?void 0:U.call(B,"YYYY-MM-DD"))||B}).join("~"):Array.isArray(z)?M=z:M=String(z)),{...T,attrvalue:M}}),...C};_(A)},m=({currentSelList:C,tabItems:b,currentActive:x,onSearch:_,setSelList:k})=>{const E=C.map(A=>{var T,D,R,N,z;if(((T=A.renderdata)==null?void 0:T.input)==="tab"&&(b!=null&&b.length)&&(x||x===0)){if((R=(D=A.renderdata)==null?void 0:D.inputType)!=null&&R.startsWith("local-")){const M=C.find(P=>{var H,V,G;return((H=P.renderdata)==null?void 0:H.input)==="tab"&&((G=(V=P.renderdata)==null?void 0:V.inputType)==null?void 0:G.startsWith("local-"))}),I=b[x],Y=((N=M==null?void 0:M.renderdata["key-field"])==null?void 0:N.list)||[],B=((z=M==null?void 0:M.renderdata["key-field"])==null?void 0:z.delimiter)||"-",U=Y==null?void 0:Y.map(P=>(I==null?void 0:I[P])||"").join(B);return{...A,attrvalue:U}}return A}return{...A,attrvalue:""}});k(E),_({"sel-list":E})},d=(C,b)=>{const{label:x,value:_,children:k}=b,E=A=>A.map(T=>{const D={label:T[x],value:T[_],children:[]};return Array.isArray(T[k])&&T[k].length>0&&(D.children=E(T[k])),D});return E(C)},g=C=>{if(typeof C!="string")return!1;try{const b=JSON.parse(C);return Array.isArray(b)}catch{return!1}};return{handleUniversalHeaderToColumns:l,handleSelListToFormItems:i,handleUniversalDelete:c,handleUniversalSearch:h,handleUniversalReset:m,isArrayString:g}}function wL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:h,form:m,langId:d,getTitle:g}=e,C=me.Form.useWatch(h,m),{message:b}=me.App.useApp(),x=r.input,[_,k]=W.useState(e.value),[E,A]=W.useState(!1),[T,D]=W.useState([]),[R,N]=W.useState([]),[z,M]=W.useState(!1),[I,Y]=W.useState({PageNum:1,PageSize:6}),[B,U]=W.useState([]),[P,H]=W.useState(0),[V,G]=W.useState(te()),{handleUniversalHeaderToColumns:ee}=q2();W.useEffect(()=>{E&&$()},[E,I]);const ne=(ae,fe)=>{D(ae),N(fe)},$=async()=>{var ae,fe,ve,xe,se;if(r.inputType==="url"&&(r!=null&&r["action-url"])){M(!0);try{const ke=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...I,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ke==null?void 0:ke.ReturnValue)===0){b.error(ke.msg),M(!1);return}const De=ke==null?void 0:ke.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map(($e,Me)=>{const et=(I.PageNum-1)*I.PageSize+Me;return{...$e,_rowKey:et}}),ge=(Pe==null?void 0:Pe.filter($e=>T.includes($e._rowKey)))||[];N(ge),U([...Pe||[]]),H((De==null?void 0:De.number)||0),M(!1)}catch{M(!1)}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ke={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...I};try{const Pe=await l(ke,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const $e=(ve=((fe=Pe==null?void 0:Pe.data)==null?void 0:fe.list)||[])==null?void 0:ve.map((Me,et)=>{const ut=(I.PageNum-1)*I.PageSize+et;return{...Me,_rowKey:ut}});H(((xe=Pe==null?void 0:Pe.data)==null?void 0:xe.number)||0),U([...$e])}const ge=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ge==null?void 0:ge.ReturnValue)===1){const $e=(se=ge==null?void 0:ge.data)==null?void 0:se[r==null?void 0:r["instance-source-number"]],Me=($e==null?void 0:$e["universal-header"])||[],et=($e==null?void 0:$e["attribute-set-id"])||"",ut=ee({universalHeader:Me,attributeSetId:et,getTitle:g,otherLangPageId:"5000000"})||[];G([...ut])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error")},X=()=>{var ae;if(!t){if(_){const fe=r==null?void 0:r["key-field"],ve=fe==null?void 0:fe[h],{delimiter:xe="-",list:se=[]}=ve||{};if(!fe){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ke=(ae=_==null?void 0:_.split(xe))==null?void 0:ae[0],De=B==null?void 0:B.findIndex($e=>Object.values($e).includes(ke));D([De]);break;case"modal-mult-select":const Pe=_==null?void 0:_.split(","),ge=Pe==null?void 0:Pe.map($e=>{var et;const Me=(et=$e.split(xe))==null?void 0:et[0];return B==null?void 0:B.findIndex(ut=>Me.includes((ut==null?void 0:ut.typeid)||(ut==null?void 0:ut.instanceid)))});D(ge);break}}A(!0)}},Z=async()=>{try{const ae=await iL(R,r,d);k((ae==null?void 0:ae[h])||""),e.onSure(ae),A(!1)}catch(ae){b.error(ae.msg||"参数错误")}},q=()=>{Y({...I,PageNum:1}),A(!1)};function te(){const ae=r["modal-field-list"];if(!ae)return[];let fe=[];for(let ve in ae){let xe=ae[ve];const se={dataIndex:ve,title:xe};fe=[...fe,se]}return fe}const oe=ae=>{Y({...I,PageNum:ae})};return Be(nn,{children:[Q(me.Select,{placeholder:Qp({json:r},d),onClick:X,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:E,onOk:Z,onCancel:q,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:ne},pagination:{total:P,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:E,onOk:Z,onCancel:q,width:r["modal-width"]??600,okButtonProps:{disabled:T.length===0},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:ne},pagination:{total:P,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})]})}var lD={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Lt,function(){var t="day";return function(i,l,f){var c=function(d){return d.add(4-d.isoWeekday(),t)},h=l.prototype;h.isoWeekYear=function(){return c(this).year()},h.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),t);var g,C,b,x,_=c(this),k=(g=this.isoWeekYear(),C=this.$u,b=(C?f.utc:f)().year(g).startOf("year"),x=4-b.isoWeekday(),b.isoWeekday()>4&&(x+=7),b.add(x,t));return _.diff(k,"week")+1},h.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var m=h.startOf;h.startOf=function(d,g){var C=this.$utils(),b=!!C.u(g)||g;return C.p(d)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):m.bind(this)(d,g)}}})})(lD);const sD=lD.exports;function _L(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:h}=me.App.useApp(),m=r.input,[d,g]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=G();W.useEffect(()=>{C&&U()},[C,D]);const B=(ne,$)=>{_(ne),E($)},U=async()=>{var ne;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const $=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if(($==null?void 0:$.ReturnValue)===0){h.error($.msg),T(!1);return}const X=$==null?void 0:$.data,Z=(ne=X==null?void 0:X.list)==null?void 0:ne.map((te,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...te,_rowKey:ae}}),q=(Z==null?void 0:Z.filter(te=>x.includes(te._rowKey)))||[];E(q),z([...Z||[]]),I((X==null?void 0:X.number)||0),T(!1)}catch($){T(!1),h.error($.msg||"参数错误")}return}h.error("请配置action-url")},P=()=>{var ne,$;if(!t){if(d){const X=((ne=r==null?void 0:r["key-field"])==null?void 0:ne.list)??[],Z=(($=r==null?void 0:r["key-field"])==null?void 0:$.delimiter)??"-";if(!X.length){h.error("请配置key-field");return}switch(m){case"modal-select":const q=d==null?void 0:d.split("-"),te=N==null?void 0:N.findIndex(fe=>q.includes((fe==null?void 0:fe.typeid)||(fe==null?void 0:fe.instanceid)));_([te]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(fe=>{var xe;const ve=(xe=fe.split(Z))==null?void 0:xe[0];return N==null?void 0:N.findIndex(se=>ve.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const ne=await SL(k,r,c);g(ne),e.onSure(ne),b(!1)}catch(ne){h.error(ne.msg||"参数错误")}},V=()=>{R({...D,PageNum:1}),b(!1)};function G(){const ne=r["modal-field-list"];let $=[];for(let X in ne){let Z=ne[X];const q={dataIndex:X,title:Z};$=[...$,q]}return $}const ee=ne=>{R({...D,PageNum:ne})};return Be(nn,{children:[Q(me.Select,{placeholder:Qp({json:r},c),onClick:P,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function SL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let h=e.map(m=>c.map(g=>m[g]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(h)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}const EL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,handleUrlOptions:m,value:d,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x}=e,[_,k]=W.useState([]),[E,A]=W.useState(d||[]);W.useEffect(()=>{T()},[r.inputType,r.classify,r.data,r.options]);const T=async()=>{const D=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});k(D)};return Q(me.Checkbox.Group,{...l,options:_,value:E,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:D=>{A(D),t==null||t(D)},disabled:i})},DL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C="10001"})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(m);else if(e.inputType==="system-dictionary")T(m);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(U=>({label:`${U.dicid||""}-${U.info||""}`,value:`${U.dicid||""}-${U.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,G,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],U=(e==null?void 0:e["search-field"])||[],P=((G=e==null?void 0:e["key-field"])==null?void 0:G.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...g};M&&(U.forEach(ne=>{H[ne]=M[ne]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const ne=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=ne==null?void 0:ne.data)!=null&&ee.list&&Array.isArray(ne.data.list)){const $=ne.data.list.map(X=>({...X,label:`${X[B[0]]||""}${P}${X[B[1]]||""}`,value:`${X[B[0]]||""}${P}${X[B[1]]||""}`,children:[],isLeaf:(X==null?void 0:X.subcount)===0}));I($)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:"请选择",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const U=Y.findIndex(V=>V===B[0]);if(U===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const P=t.map(V=>V.split("-")[U]||"").filter(Boolean);let H=b;for(const[V,G]of P.entries()){if(V===P.length-1)break;const ee=H.filter(X=>X[B[0]]===G);if(ee.length===0)break;const ne=ee[0];if(ne.children&&ne.children.length>0){H=ne.children;continue}H=await N(ee)}}}})},kL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,langId:c})=>{const[h,m]=W.useState([]),[d,g]=W.useState(!1);W.useEffect(()=>{(async()=>{var D;if(e.inputType==="url"&&e["action-url"]){g(!0);try{const R=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(D=R==null?void 0:R.data)!=null&&D.list&&Array.isArray(R.data.list)?m(R.data.list):R!=null&&R.data&&Array.isArray(R.data)?m(R.data):Array.isArray(R==null?void 0:R.list)?m(R.list):(R==null?void 0:R.ReturnValue)===1&&(R!=null&&R.data)&&(Array.isArray(R.data)?m(R.data):m([R.data]))}catch{}finally{g(!1)}}else e.data&&Array.isArray(e.data)&&m(e.data)})()},[e.inputType,e["action-url"],e.data]);const C=T=>JSON.stringify(T),b=T=>{const D=C(T);return t===D},x=T=>{if(r)return;const D=C(T);i&&i(D)},_=e["card-image-width"]||200,k=e["card-image-height"]||100,E=e["card-image-field"],A=e["card-info-field"];return Q("div",{style:{...l},children:d?Q("div",{style:{textAlign:"center",padding:"20px"},children:"loading..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"50px"},children:h.map((T,D)=>{const R=b(T);return Be("div",{onClick:()=>x(T),style:{flex:"1 1 auto",width:`${_}px`,padding:"12px 0",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[T[E]&&Q("img",{src:T.picurl,alt:T[A]||"",style:{width:`${_}px`,height:`${k}px`,objectFit:"cover",borderRadius:"8px",marginBottom:"8px"},onError:N=>{N.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:R?"none":"1px solid #d9d9d9",backgroundColor:R?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:R&&Q(h8,{style:{fontSize:"12px",color:"#fff"}})}),T[A]||""]})})]},D)})})})},TL=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C,getTitle:b,attrid:x})=>{const[_,k]=W.useState([]),[E,A]=W.useState(!1),[T,D]=W.useState([]);W.useEffect(()=>{R()},[e.inputType,e.classify,e.data,e.options]);const R=async()=>{try{if(A(!0),e.inputType==="instance-url"&&(e!=null&&e["instance-source-number"])&&x){const z=e==null?void 0:e["key-field"];if(!z){me.message.warning("请配置key-field");return}const M={"source-number":e==null?void 0:e["instance-source-number"]};let I=await V2(M,i);const Y=await $2(e==null?void 0:e["instance-source-number"],l);if(Y){const B=(Y==null?void 0:Y["non-universal-header"])||[],U=(B==null?void 0:B.label)||[],P=(z==null?void 0:z[x])||{},H=I==null?void 0:I.map(V=>{const G=U==null?void 0:U.map(X=>V==null?void 0:V[X]).join("-"),{list:ee,delimiter:ne}=P,$=ee==null?void 0:ee.map(X=>V==null?void 0:V[X]).join(ne||"-");return G?{label:b==null?void 0:b("5000000",G),value:$}:null});k(H),D(I)}A(!1);return}const N=await cd({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,item:e});k(N),A(!1)}catch{A(!1)}};return Q(me.Select,{placeholder:Qp({json:e},C),mode:e.input==="mult-select"?"multiple":void 0,disabled:r,loading:E,showSearch:!0,value:f,filterOption:(N,z)=>{var M;return((M=z==null?void 0:z.label)==null?void 0:M.toLowerCase().indexOf(N.toLowerCase()))>=0},options:_,style:{...t},allowClear:!0,onChange:N=>{if(x&&(T==null?void 0:T.length)>0&&(e==null?void 0:e.inputType)==="instance-url"){const z=e==null?void 0:e["key-field"],M=K6(T,String(N)),I=Object.keys(z||{}),Y=I==null?void 0:I.reduce((B,U)=>{const{list:P,delimiter:H}=(z==null?void 0:z[U])||{},V=P==null?void 0:P.map(G=>M==null?void 0:M[G]).join(H||"-");return B[U]=V,B},{});c(Y);return}c(N)}})},AL={customUpload:"myUpload-module_customUpload_7c7d3"},OL=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),RL=e=>{const{langId:r="10001"}=e,{action:t,item:i,onChange:l,readonly:f=!1,relatedid:c,uploadText:h=r==="10001"?"上传文件":"Upload File",onRemove:m,list:d=[],uploadType:g,relatedidKey:C}=e,{message:b}=me.App.useApp(),x=(i==null?void 0:i["upload-accept"])||"*",_=i==null?void 0:i.input,k=i==null?void 0:i["upload-size"],E=(i==null?void 0:i["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{d&&d.length&&R(d)},[d]);const Y=async H=>{g==="image"&&(!H.url&&!H.preview&&(H.preview=await OL(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),l&&l(H)},U=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(r==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},P=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(nn,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:h})});return Be(nn,{children:[Q(me.Upload,{action:t,beforeUpload:U,listType:A,accept:x,fileList:D,onPreview:Y,data:{[C]:c},maxCount:E,onChange:B,onRemove:m,disabled:f,className:AL.customUpload,children:D.length>=E?null:P}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},FL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,value:m,interfaceTypeDict:d,interfaceTypeSysDict:g,actionUrlKey:C,actionUrlExtraParams:b}=e,[x,_]=W.useState([]);W.useEffect(()=>{k()},[r.inputType,r.classify,r.data,r.options]);const k=async()=>{const E=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:d,interfaceTypeSysDict:g,actionUrlKey:C,actionUrlExtraParams:b,item:r});_(E)};return Q(me.Radio.Group,{...l,options:x,onChange:t,disabled:i,value:m,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})};Bt.extend(sD);function NL(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:h,relatedidKey:m,actionUrlKey:d,actionUrlExtraParams:g,CustomModalComponent:C,isEdit:b,formShowType:x="form",langId:_,getTitle:k}=e,E=W.useRef([]),{message:A}=me.App.useApp();W.useEffect(()=>{l&&(E.current=l)},[l]);const T=W.useCallback(P=>Array.isArray(P)?P:(P==null?void 0:P.fileList)??[],[]),D=P=>{f(P)},R=W.useCallback(P=>{var ee,ne;const H=(ee=P.json)==null?void 0:ee.input,V=(ne=P.json)==null?void 0:ne.format,G={};switch(H){case"image":case"file":case"video":case"audio":G.getValueFromEvent=T;break;case"date-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM-DD"),G.getValueProps=$=>({value:$?Bt($):null});break;case"time-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM-DD HH:mm:ss"),G.getValueProps=$=>({value:$?Bt($):null});break;case"week-picker":G.getValueFromEvent=$=>`${$==null?void 0:$.year()}-${Bt($).isoWeek()}周`,G.getValueProps=$=>{if(!$)return{value:null};const[X,Z]=$.split("-"),q=Number(X),te=Number(Z.replace("周",""));return{value:Bt().year(q).isoWeek(te)}};break;case"month-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM"),G.getValueProps=$=>({value:$?Bt($):null});break;case"quarter-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY年第Q季度"),G.getValueProps=$=>({value:$?Bt($,V||"YYYY年第Q季度"):null});break;case"year-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY"),G.getValueProps=$=>({value:$?Bt($):null});break;case"second-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"HH:mm:ss"),G.getValueProps=$=>({value:$?Bt($,V||"HH:mm:ss"):null});break;case"range-picker":G.getValueFromEvent=$=>$==null?void 0:$.map(X=>X==null?void 0:X.format(V||"YYYY-MM-DD")),G.getValueProps=$=>{if(!($!=null&&$.length))return{value:null};if(typeof $=="string"){const X=$.split("~");return X.length>1?{value:(X==null?void 0:X.map(Z=>Bt(Z)))||null}:{value:[Bt($),Bt($)]}}return Array.isArray($)?{value:($==null?void 0:$.map(X=>Bt(X)))||null}:null};break;case"multiple-date-picker":G.getValueFromEvent=$=>$==null?void 0:$.map(X=>X==null?void 0:X.format(V||"YYYY-MM-DD")),G.getValueProps=$=>{if(typeof $=="string"){const X=$.split(",");return{value:(X==null?void 0:X.map(Z=>Bt(Z)))||null}}return Array.isArray($)?{value:($==null?void 0:$.map(X=>Bt(X)))||null}:null};break}return G},[T]),N=W.useCallback(({isActive:P})=>P?Q(w8,{style:{fontSize:18,color:"#999"}}):Q(E8,{style:{fontSize:18,color:"#999"}}),[]),z=(P,H)=>{var V,G,ee,ne,$;return Be(me.Flex,{gap:10,vertical:H==="flex",align:"center",children:[Q("span",{children:P.attrname}),((V=P==null?void 0:P.json)==null?void 0:V.instruction)&&H==="icon"&&Q(me.Tooltip,{title:(G=P==null?void 0:P.json)==null?void 0:G.instruction,children:Q(b8,{style:{color:((ee=P==null?void 0:P.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((ne=P==null?void 0:P.json)==null?void 0:ne["instruction-color"])??"red"},children:($=P==null?void 0:P.json)==null?void 0:$.instruction})]})},M=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,parentFormListField:q,isShowLabel:te=!0})=>{const oe=Dc(P);let ae=P.children||[];Array.isArray(ae==null?void 0:ae[0])&&ae.length&&(ae=ae[0]);const fe=ve=>{const xe=(q==null?void 0:q.parentName)||(q==null?void 0:q.name);return xe?Array.isArray(xe)?[...xe,P.attrid,ve.name]:[xe,P.attrid,ve.name]:[P.attrid,ve.name]};return Q(me.Col,{span:24/H,children:Q(me.Collapse,{bordered:!1,style:{backgroundColor:"transparent"},expandIcon:({isActive:ve})=>N({isActive:ve}),items:[{key:P.attrid,label:P.attrname,styles:{header:{paddingLeft:0}},children:Q(me.Form.List,{name:q?Array.isArray(q.name)?[...q.name,P.attrid]:[q.name,P.attrid]:P.attrid,initialValue:oe,children:(ve,{add:xe,remove:se})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[ve.map(ke=>{const De={...ke,parentName:fe(ke)};return Q(me.Card,{style:{width:Z+100},size:"small",title:`${P.attrname} ${ke.name+1}`,extra:!b&&Q(g8,{onClick:()=>{ve.length>1?se(ke.name):A.warning("至少需要保留一个!")}}),children:(ae||[]).map((Pe,ge)=>Q(W.Fragment,{children:U({item:Pe,readonly:V,colNum:H,instructionShowMode:G,relatedid:$,form:X,defaultWidth:Z,formItemStyle:ne,radioAlign:ee,isFormListItem:!0,formListField:De,isShowLabel:!0})},Pe.attrid||`child-${ge}`))},ke.key)}),!b&&Q(me.Flex,{style:{width:200},children:Be(me.Button,{type:"dashed",onClick:()=>xe(),block:!0,children:["+ ",_==="10001"?"新增":"Add"]})})]})})}]},P.attrid)})},[N,Dc]),I=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ae,fe,ve,xe,se,ke,De,Pe;if(((ae=P.json)==null?void 0:ae.hide)===!0)return Q(nn,{});if(P.attrtype===1)return M({itemWithJson:P,colNum:H,readonly:V,instructionShowMode:G,radioAlign:ee,formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z,parentFormListField:te,isShowLabel:oe});if(P.attrtype===2)return Q(nn,{children:"实例信息"});if(P.attrtype===0){const ge=Dc(P),$e=(fe=P.json)==null?void 0:fe["default-prompt"],Me=(ve=P.json)==null?void 0:ve.hidden,et=Qp(P,_),{combinations:ut=[]}=P.json||{};if(ut!=null&&ut.length)return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{label:(xe=P==null?void 0:P.json)==null?void 0:xe["combination-name"],required:(se=P.json)==null?void 0:se.must,children:Q(me.Space.Compact,{children:ut.map((Mt,Mn)=>{var kn,Vt,Hn,gr,ur;let Pn=Dc(Mt),sn=Z;const Jt={},cn=Mt.json.input||"text",Fn=ne==null?void 0:ne.find(Ye=>Ye.type===cn);if(Fn){const{width:Ye}=(Fn==null?void 0:Fn.style)||{};Ye&&(Jt.width=Ye)}const Bn=(kn=Mt==null?void 0:Mt.json)==null?void 0:kn["combination-width-ratio"];return Bn&&(sn=Z*Bn),Q(me.Form.Item,{hidden:(Vt=Mt.json)==null?void 0:Vt.hidden,name:te?Array.isArray(te.name)?[...te.name,Mt.attrid]:[te.name,Mt.attrid]:Mt.attrid,noStyle:!0,initialValue:Pn,rules:[...(Hn=Mt.json)!=null&&Hn.must?[{required:!0,message:$e||`${et}${Mt.attrname}`}]:[],...(gr=P.json)!=null&&gr.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((ur=P.json)==null?void 0:ur["regexp-message"])||`${P.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(Mt),children:B({item:Mt,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:sn,customWidth:Jt})},Mn)})})},`${P.attrid}+1`)});const Xt=q&&te?Array.isArray(te.name)?[...te.name,P.attrid]:[te.name,P.attrid]:P.attrid;return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{name:Xt,label:oe&&z(P,G)||null,initialValue:ge,hidden:Me,rules:[...(ke=P.json)!=null&&ke.must?[{required:!0,message:`${et}${P.attrname}`}]:[],...(De=P.json)!=null&&De.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((Pe=P.json)==null?void 0:Pe["regexp-message"])||`${P.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(P),children:B({item:P,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:Z})},P.attrid)})}return null},[z,Dc,R,M]),Y=async P=>{var H;try{const V=(H=P==null?void 0:P.response)==null?void 0:H.data;if(V){if(!r)return;const G=await r({Controlname:"DelFile",PageName:"initializationfile"},V);if((G==null?void 0:G.ReturnValue)!==1)return A.error(G==null?void 0:G.msg),!1}else D(P);return!0}catch{return!1}},B=({item:P,readonly:H=!1,formItemStyle:V=[],radioAlign:G="horizontal",relatedid:ee,form:ne,defaultWidth:$=358,customWidth:X={}})=>{var Pe,ge,$e,Me,et,ut,Xt,Mt,Mn,Pn,sn,Jt,cn,Fn,Bn,kn,Vt,Hn,gr,ur,Ye,at;const Z=P.json.input||"text",q=((Pe=P.json)==null?void 0:Pe.format)||"",te=P.attrid,oe=Dc(P),ae=((ge=P.json)==null?void 0:ge["default-prompt"])||"",fe=(($e=P.json)==null?void 0:$e["disable-date-goover"])||!1,ve=Qp(P,_),xe=P.json.length&&{maxLength:P.json.length}||{},se=V.find(it=>it.type===Z);let ke=(Me=P.json)==null?void 0:Me["input-width"];ke&&(ke=x==="table"?Number(ke)-32:ke);const De=ke||$;switch(Z){case"label":return Q(me.Input,{disabled:!0,value:((et=P.json)==null?void 0:et["label-value"])||P.attrvalue||((ut=P.json)==null?void 0:ut.default)||"-",style:{width:De,...se==null?void 0:se.style,...X}});case"text":return Q(me.Input,{placeholder:ae||ve,...xe,disabled:H||((Xt=P.json)==null?void 0:Xt.readonly),allowClear:!0,style:{width:De,...se==null?void 0:se.style,...X}});case"password":return Q(me.Input.Password,{placeholder:ae||ve,...xe,disabled:H||((Mt=P.json)==null?void 0:Mt.readonly),allowClear:!0,style:{width:De,...se==null?void 0:se.style,...X}});case"textarea":return Q(me.Input.TextArea,{allowClear:!0,placeholder:ae||ve,rows:5,...xe,disabled:H||((Mn=P.json)==null?void 0:Mn.readonly),style:{width:De,...se==null?void 0:se.style,...X}});case"number":return Q(me.InputNumber,{controls:!1,placeholder:ae||ve,...xe,disabled:H||((Pn=P.json)==null?void 0:Pn.readonly),style:{width:De,...se==null?void 0:se.style,...X}});case"select":case"mult-select":return Q(TL,{item:P.json,attrid:te,readonly:H||((sn=P.json)==null?void 0:sn.readonly),style:{width:De,...se==null?void 0:se.style,...X},commonRequestWidthParams:r,commonRequest:i,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,getTitle:k,langId:_,onChange:it=>{alert(JSON.stringify(it)),it&&typeof it=="object"&&!Array.isArray(it)&&ne.setFieldsValue({...ne.getFieldsValue(),...it}),ne.setFieldValue(P.attrid,it)}});case"modal-mult-select":case"modal-select":return Q(_L,{style:{width:De,...se==null?void 0:se.style,...X},item:P.json,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async it=>{ne.setFieldValue(P.attrid,it)},disabled:H||((Jt=P.json)==null?void 0:Jt.readonly),langId:_,CustomModalComponent:C});case"mul-field-modal-select":return Q(wL,{style:{width:De,...se==null?void 0:se.style,...X},item:P.json,form:ne,attrid:te,getTitle:k,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async it=>{ne.setFieldsValue(it)},disabled:H||((cn=P.json)==null?void 0:cn.readonly),CustomModalComponent:C,langId:_});case"date-picker":case"time-picker":case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":case"second-picker":{const it={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};let $t;return Z==="date-picker"&&($t=fe?q6:void 0),Q(me.DatePicker,{showTime:Z==="time-picker",format:q||void 0,picker:it[Z]||"date",disabled:H||((Fn=P.json)==null?void 0:Fn.readonly),disabledDate:$t,placement:"bottomLeft",style:{width:De,...se==null?void 0:se.style,...X}})}case"range-picker":return Q(me.DatePicker.RangePicker,{disabledDate:fe?q6:void 0,disabled:H||((Bn=P.json)==null?void 0:Bn.readonly),style:{width:De,...se==null?void 0:se.style,...X}});case"multiple-date-picker":return Q(me.DatePicker,{multiple:!0,maxTagCount:((kn=P==null?void 0:P.json)==null?void 0:kn["max-tag-count"])||2,disabled:H||((Vt=P.json)==null?void 0:Vt.readonly)||!1,style:{width:De,...se==null?void 0:se.style,...X}});case"radio":return Q(FL,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H||((Hn=P.json)==null?void 0:Hn.readonly),options:xe,handleUrlOptions:kc,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,onChange:it=>{ne.setFieldValue(P.attrid,it.target.value)}});case"checkbox":return Q(EL,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H||((gr=P.json)==null?void 0:gr.readonly),options:xe,value:oe,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,onChange:it=>{ne.setFieldValue(P.attrid,it.join(","))}});case"audio":case"file":case"image":case"video":return Q(RL,{action:t&&t("initializationfile"),item:P.json,uploadType:Z,langId:_,list:oe,readonly:H||((ur=P.json)==null?void 0:ur.readonly),relatedid:ee,relatedidKey:m,onRemove:it=>Y(it)});case"cascader":return Q(DL,{commonRequestWidthParams:r,commonRequest:i,item:P.json,value:P.attrvalue,style:{width:De,...se==null?void 0:se.style,...X},interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:_});case"radio-card":return Q(kL,{item:P.json,readonly:H||((Ye=P.json)==null?void 0:Ye.readonly),onChange:it=>{ne.setFieldValue(P.attrid,it)},langId:_,commonRequestWidthParams:r});default:return Q(me.Input,{placeholder:ae||ve,...xe,showCount:!0,disabled:H||((at=P.json)==null?void 0:at.readonly),style:{width:De,...se==null?void 0:se.style,...X}})}},U=({item:P,readonly:H=!1,colNum:V=1,instructionShowMode:G="icon",relatedid:ee,form:ne,defaultWidth:$=358,formItemStyle:X,radioAlign:Z="horizontal",isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ve;const ae=P.info_base64===1?uu(Zp(P.info)):uu(P.info),fe={...P,json:{...P==null?void 0:P.json,...ae}};return((ve=fe.json)==null?void 0:ve.hide)===!0?null:Q(W.Fragment,{children:I({itemWithJson:fe,readonly:H,colNum:V,instructionShowMode:G,relatedid:ee,form:ne,defaultWidth:$,formItemStyle:X,radioAlign:Z,isFormListItem:q,formListField:te,isShowLabel:oe})},fe.attrid)};return{handleRenderItem:U,handleSetFormItemInitialValue:Dc}}const ML=W.forwardRef((e,r)=>{const{formConfig:t,form:i,readonly:l=!1,relatedid:f,colNum:c=1,colSpace:h=[0,0],instructionShowMode:m="flex",defaultWidth:d=358,commonRequestWidthParams:g,uploadAction:C,commonRequest:b,formItemStyle:x=[],radioAlign:_="horizontal",interfaceTypeChildren:k="YLLRDetailAttrlist",interfaceTypeDict:E="YLZDDictList",interfaceTypeSysDict:A="YLZDSysConfigList",relatedidKey:T="relatedid",actionUrlKey:D="action-url",actionUrlExtraParams:R={},CustomModalComponent:N,formShowType:z="form",formListItemWidth:M,formListItemName:I,isEdit:Y=!1,langId:B="10001",getTitle:U}=e,P=W.useRef([]),H=G=>{P.current.push(G)},{handleRenderItem:V}=NL({commonRequestWidthParams:g,uploadAction:C,commonRequest:b,updateDelFileList:H,formConfig:t,interfaceTypeChildren:k,interfaceTypeDict:E,interfaceTypeSysDict:A,relatedidKey:T,actionUrlKey:D,actionUrlExtraParams:R,CustomModalComponent:N,isEdit:Y,formShowType:z,langId:B,getTitle:U});return W.useImperativeHandle(r,()=>({getDelFileList:()=>P.current})),Q(nn,{children:z==="table"?Q(me.Form.List,{name:I||"customFormList",initialValue:[{}],children:(G,{add:ee,remove:ne})=>Be(me.Flex,{className:"custom-form-body",children:[Be("div",{className:"custom-form-list",children:[Q(me.Flex,{align:"center",style:{position:"relative",backgroundColor:"#004d32"},children:Q(me.Flex,{className:"custom-form-list-header",align:"center",children:t==null?void 0:t.map(($,X)=>{var q,te;const Z=((q=$==null?void 0:$.json)==null?void 0:q["input-width"])&&Number((te=$==null?void 0:$.json)==null?void 0:te["input-width"])||d;return Be(me.Flex,{style:{width:Z,flexShrink:0},align:"center",children:[X!==0&&Q("div",{className:"line"}),Q("div",{className:"custom-form-list-header-item",children:$.attrname})]},X)})})}),G.map($=>Q(me.Flex,{align:"center",className:"custom-form-list-item-container",children:Q(me.Flex,{className:"custom-form-list-item",align:"center",children:t==null?void 0:t.map((X,Z)=>{var te,oe;const q=((te=X==null?void 0:X.json)==null?void 0:te["input-width"])&&Number((oe=X==null?void 0:X.json)==null?void 0:oe["input-width"])||d;return Q(me.Flex,{align:"center",className:"custom-form-list-item-content",justify:"center",style:{width:q,flexShrink:0},children:V({item:X,readonly:l,colNum:c,instructionShowMode:m,relatedid:f,form:i,defaultWidth:d-30,formItemStyle:x,isFormListItem:!0,formListField:$,isShowLabel:!1})},X.attrid||`child-${Z}`)})})},$.key))]}),Be(me.Flex,{className:"operation",vertical:!0,children:[Q("a",{className:"custom-form-list-add-btn",onClick:()=>ee(),children:B==="10001"?"新增":"Add"}),(G==null?void 0:G.length)>0&&(G==null?void 0:G.map(($,X)=>Q("a",{className:"custom-form-list-del-btn",onClick:()=>ne($.key),children:B==="10001"?"删除":"Delete"},$.key)))]})]})}):Q(me.Row,{gutter:h,children:t.map((G,ee)=>Q(W.Fragment,{children:V({item:G,readonly:l,colNum:c,instructionShowMode:m,relatedid:f,form:i,defaultWidth:d,formItemStyle:x,radioAlign:_})},G.attrid||`form-item-${ee}`))})})}),uD=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Tc=e=>{var i,l,f,c,h,m;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default)||"";if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t.map(d=>new Date(d))}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(d=>new Date(d))}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const d=(c=e.json)==null?void 0:c["cascader-delimiter"];d&&(t=t.split(d).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return r==="time-picker"&&!t&&((h=e.json)!=null&&h["auto-generate"])&&((m=e.json)==null?void 0:m["auto-generate-type"])==="currenttime"&&(t=Bt().format("YYYY-MM-DD HH:mm:ss:ss")),e.attrtype===1&&(t=PL(e.children||[])),t||void 0},PL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)};function BL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:h,form:m,langId:d,getTitle:g}=e,C=me.Form.useWatch(h,m),{message:b}=me.App.useApp(),x=r.input,{handleUniversalHeaderToColumns:_}=q2(),[k,E]=W.useState(e.value),[A,T]=W.useState(!1),[D,R]=W.useState([]),[N,z]=W.useState([]),[M,I]=W.useState(!1),[Y,B]=W.useState({PageNum:1,PageSize:6}),[U,P]=W.useState([]),[H,V]=W.useState(0),[G,ee]=W.useState(te());W.useEffect(()=>{A&&$()},[A,Y]);const ne=(ae,fe)=>{R(ae),z(fe)},$=async()=>{var ae,fe,ve,xe,se;if(r.inputType==="url"&&(r!=null&&r["action-url"])){I(!0);try{const ke=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...Y,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ke==null?void 0:ke.ReturnValue)===0){b.error(ke.msg),I(!1);return}const De=ke==null?void 0:ke.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map(($e,Me)=>{const et=(Y.PageNum-1)*Y.PageSize+Me;return{...$e,_rowKey:et}}),ge=(Pe==null?void 0:Pe.filter($e=>D.includes($e._rowKey)))||[];z(ge),P([...Pe||[]]),V((De==null?void 0:De.number)||0),I(!1)}catch(ke){I(!1),b.error(d==="10001"?ke.msg||"参数错误":"Failed to load data")}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ke={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...Y};try{const Pe=await l(ke,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const $e=(ve=((fe=Pe==null?void 0:Pe.data)==null?void 0:fe.list)||[])==null?void 0:ve.map((Me,et)=>{const ut=(Y.PageNum-1)*Y.PageSize+et;return{...Me,_rowKey:ut}});V(((xe=Pe==null?void 0:Pe.data)==null?void 0:xe.number)||0),P([...$e])}const ge=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ge==null?void 0:ge.ReturnValue)===1){const $e=(se=ge==null?void 0:ge.data)==null?void 0:se[r==null?void 0:r["instance-source-number"]],Me=($e==null?void 0:$e["universal-header"])||[],et=($e==null?void 0:$e["attribute-set-id"])||"",ut=_({universalHeader:Me,attributeSetId:et,getTitle:g,otherLangPageId:"5000000"})||[];ee([...ut])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error"),b.error(d==="10001"?"请配置action-url":"Please configure action-url")},X=()=>{var ae;if(!t){if(k){const fe=r==null?void 0:r["key-field"],ve=fe==null?void 0:fe[h],{delimiter:xe="-",list:se=[]}=ve||{};if(!fe){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ke=(ae=k==null?void 0:k.split(xe))==null?void 0:ae[0],De=U==null?void 0:U.findIndex($e=>Object.values($e).includes(ke));R([De]);break;case"modal-mult-select":const Pe=k==null?void 0:k.split(","),ge=Pe==null?void 0:Pe.map($e=>{var et;const Me=(et=$e.split(xe))==null?void 0:et[0];return U==null?void 0:U.findIndex(ut=>Me.includes((ut==null?void 0:ut.typeid)||(ut==null?void 0:ut.instanceid)))});R(ge);break}}T(!0)}},Z=async()=>{try{const ae=await LL(N,r);E((ae==null?void 0:ae[h])||""),e.onSure(ae),T(!1)}catch(ae){b.error(d==="10001"?ae.msg||"参数错误":"Failed to load data")}},q=()=>{B({...Y,PageNum:1}),T(!1)};function te(){const ae=r["modal-field-list"];let fe=[];for(let ve in ae){let xe=ae[ve];const se={dataIndex:ve,title:xe};fe=[...fe,se]}return fe}const oe=ae=>{B({...Y,PageNum:ae})};return Be(nn,{children:[Q(me.Select,{placeholder:d==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:X,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:A,onOk:Z,onCancel:q,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:G,loading:M,dataSource:U,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:ne},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:A,onOk:Z,onCancel:q,width:r["modal-width"]??600,okButtonProps:{disabled:D.length===0},children:Q(me.Table,{columns:G,loading:M,dataSource:U,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:ne},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})]})}function LL(e,r){return new Promise((t,i)=>{try{var l=r["key-field"];if(!l){i({msg:"请配置key-field"});return}let f={};e.forEach(c=>{for(let[h,m]of Object.entries(l)){const d=(m==null?void 0:m.list)??[],g=(m==null?void 0:m.delimiter)??"-",C=d.map(b=>c==null?void 0:c[b]);f[h]=C.join(g)}}),t(f)}catch{i({msg:"key-field参数配置错误"})}})}function zL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:h}=me.App.useApp(),m=r.input,[d,g]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=G();W.useEffect(()=>{C&&U()},[C,D]);const B=(ne,$)=>{_(ne),E($)},U=async()=>{var ne;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const $=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if(($==null?void 0:$.ReturnValue)===0){h.error($.msg),T(!1);return}const X=$==null?void 0:$.data,Z=(ne=X==null?void 0:X.list)==null?void 0:ne.map((te,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...te,_rowKey:ae}}),q=(Z==null?void 0:Z.filter(te=>x.includes(te._rowKey)))||[];E(q),z([...Z||[]]),I((X==null?void 0:X.number)||0),T(!1)}catch($){T(!1),h.error(c==="10001"?$.msg||"参数错误":"Failed to load data")}return}h.error(c==="10001"?"请配置action-url":"Please configure action-url")},P=()=>{var ne,$;if(!t){if(d){const X=((ne=r==null?void 0:r["key-field"])==null?void 0:ne.list)??[],Z=(($=r==null?void 0:r["key-field"])==null?void 0:$.delimiter)??"-";if(!X.length){h.error(c==="10001"?"请配置key-field":"Please configure key-field");return}switch(m){case"modal-select":const q=d==null?void 0:d.split("-"),te=N==null?void 0:N.findIndex(fe=>q.includes((fe==null?void 0:fe.typeid)||(fe==null?void 0:fe.instanceid)));_([te]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(fe=>{var xe;const ve=(xe=fe.split(Z))==null?void 0:xe[0];return N==null?void 0:N.findIndex(se=>ve.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const ne=await UL(k,r,c);g(ne),e.onSure(ne),b(!1)}catch(ne){h.error(c==="10001"?ne.msg||"参数错误":"Failed to build value")}},V=()=>{R({...D,PageNum:1}),b(!1)};function G(){const ne=r["modal-field-list"];let $=[];for(let X in ne){let Z=ne[X];const q={dataIndex:X,title:Z};$=[...$,q]}return $}const ee=ne=>{R({...D,PageNum:ne})};return Be(nn,{children:[Q(me.Select,{placeholder:c==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:P,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function UL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let h=e.map(m=>c.map(g=>m[g]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(h)}catch{l({msg:t==="10001"?"key-field参数配置错误":"Failed to build value"})}})}const jL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,handleUrlOptions:m,value:d,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]),[A,T]=W.useState(d||[]);W.useEffect(()=>{D()},[r.inputType,r.classify,r.data,r.options]);const D=async()=>{const R=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(R)};return Q(me.Checkbox.Group,{...l,options:k,value:A,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:R=>{T(R),t==null||t(R)},disabled:i})},IL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(m);else if(e.inputType==="system-dictionary")T(m);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(U=>({label:`${U.dicid||""}-${U.info||""}`,value:`${U.dicid||""}-${U.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,G,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],U=(e==null?void 0:e["search-field"])||[],P=((G=e==null?void 0:e["key-field"])==null?void 0:G.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...g};M&&(U.forEach(ne=>{H[ne]=M[ne]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const ne=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=ne==null?void 0:ne.data)!=null&&ee.list&&Array.isArray(ne.data.list)){const $=ne.data.list.map(X=>({...X,label:`${X[B[0]]||""}${P}${X[B[1]]||""}`,value:`${X[B[0]]||""}${P}${X[B[1]]||""}`,children:[],isLeaf:(X==null?void 0:X.subcount)===0}));I($)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:C==="10001"?"请选择":"Please select",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const U=Y.findIndex(V=>V===B[0]);if(U===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const P=t.map(V=>V.split("-")[U]||"").filter(Boolean);let H=b;for(const[V,G]of P.entries()){if(V===P.length-1)break;const ee=H.filter(X=>X[B[0]]===G);if(ee.length===0)break;const ne=ee[0];if(ne.children&&ne.children.length>0){H=ne.children;continue}H=await N(ee)}}}})},HL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f})=>{const[c,h]=W.useState([]),[m,d]=W.useState(!1);W.useEffect(()=>{(async()=>{var T;if(e.inputType==="url"&&e["action-url"]){d(!0);try{const D=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(T=D==null?void 0:D.data)!=null&&T.list&&Array.isArray(D.data.list)?h(D.data.list):D!=null&&D.data&&Array.isArray(D.data)?h(D.data):Array.isArray(D==null?void 0:D.list)?h(D.list):(D==null?void 0:D.ReturnValue)===1&&(D!=null&&D.data)&&(Array.isArray(D.data)?h(D.data):h([D.data]))}catch{}finally{d(!1)}}else e.data&&Array.isArray(e.data)&&h(e.data)})()},[e.inputType,e["action-url"],e.data]);const g=A=>JSON.stringify(A),C=A=>{const T=g(A);return t===T},b=A=>{if(r)return;const T=g(A);i&&i(T)},x=e["card-image-width"]||200,_=e["card-image-height"]||100,k=e["card-image-field"],E=e["card-info-field"];return Q("div",{style:{...l},children:m?Q("div",{style:{textAlign:"center",padding:"20px"},children:"加载中..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"0px"},children:c.map((A,T)=>{const D=C(A);return Be("div",{onClick:()=>b(A),style:{flex:"1 1 auto",width:`${x}px`,padding:"12px",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[A[k]&&Q("img",{src:A.picurl,alt:A[E]||"",style:{width:`${x}px`,height:`${_}px`,objectFit:"cover",borderRadius:"4px",marginBottom:"8px"},onError:R=>{R.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:D?"none":"1px solid #d9d9d9",backgroundColor:D?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:D&&Q(h8,{style:{fontSize:"12px",color:"#fff"}})}),A[E]||""]})})]},T)})})})},XQ="";function Xp(e,r){if(!e)return r;let t;return typeof e=="function"?t=e():"current"in e?t=e.current:t=e,t}function Mi(){}const Jp=Object.assign,Ac=typeof window<"u";function ea(e){return e!=null}function Oc(e){return typeof e=="function"}function VL(e){return fd(e)&&Oc(e.then)&&Oc(e.catch)}function fd(e){return e!==null&&typeof e=="object"}function cD(e,r,t){return r.reduce((i,l)=>((!t||e[l]!==void 0)&&(i[l]=e[l]),i),{})}function G2(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((t,i)=>t+G2(e,i),""):Object.keys(r).reduce((t,i)=>t+(r[i]?G2(e,i):""),""):""}function $L(e){return(r,t)=>(r&&typeof r!="string"&&(t=r,r=""),r=r?`${e}__${r}`:e,`${r}${G2(r,t)}`)}function wn(e,r){return e=`${r||"rv"}-${e}`,[$L(e),e]}function YL(e){e.stopPropagation()}function K2(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&YL(e)}const qL={click:"onClick"};function fD(e,r){const t=Object.assign({},r.props);for(const i of e){const l=qL[i];t[l]=function(f){var c,h;f.stopPropagation(),(h=(c=r.props)[l])===null||h===void 0||h.call(c,f)}}return W.cloneElement(r,t)}const dd=Ac?window:global;let dD=Date.now();function GL(e){const r=Date.now(),t=Math.max(0,16-(r-dD)),i=setTimeout(e,t);return dD=r+t,i}function W2(e){return(dd.requestAnimationFrame||GL).call(dd,e)}function KL(){return Ac?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}function WL(e){const r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function QL(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ZL(e){pD(window,e)}function pD(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}const XL=KL();function hD(){XL&&ZL(QL())}function vD(e){return/^\d+(\.\d+)?$/.test(e)}function mD(e){return Number.isNaN?Number.isNaN(e):e!==e}function dl(e){if(ea(e))return e=String(e),vD(e)?`${e}px`:e}function JL(e){if(ea(e)){const r=dl(e);return{width:r,height:r}}return{}}let Q2;function ez(){if(!Q2){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;Q2=parseFloat(r)}return Q2}function tz(e){return e=e.replace(/rem/g,""),+e*ez()}function nz(e){return e=e.replace(/vw/g,""),+e*window.innerWidth/100}function rz(e){return e=e.replace(/vh/g,""),+e*window.innerHeight/100}function gD(e){if(typeof e=="number")return e;if(Ac){if(e.indexOf("rem")!==-1)return tz(e);if(e.indexOf("vw")!==-1)return nz(e);if(e.indexOf("vh")!==-1)return rz(e)}return parseFloat(e)}function eh(e,r,t){return Math.min(Math.max(e,r),t)}function yD(e,r,t){const i=e.indexOf(r);return i===-1?e:r==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(t,"")}function az(e,r=!0,t=!0){r?e=yD(e,".",/\./g):e=e.split(".")[0],t?e=yD(e,"-",/-/g):e=e.replace(/-/,"");const i=r?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function pl(e,r=2){let t=`${e}`;for(;t.length<r;)t=`0${t}`;return t}let xD=!1;if(Ac)try{const e={};Object.defineProperty(e,"passive",{get(){xD=!0}}),window.addEventListener("test-passive",null,e)}catch{}function Z2(e,r,t={}){if(!Ac)return;const{target:i=window,passive:l=!1,capture:f=!1,depends:c=[]}=t;let h;const m=()=>{const g=Xp(i);g&&!h&&(g.addEventListener(e,r,xD?{capture:f,passive:l}:f),h=!0)},d=()=>{const g=Xp(i);g&&h&&(g.removeEventListener(e,r,f),h=!1)};W.useEffect(()=>(m(),()=>d()),[i,...c])}function X2(e){const[r,t]=W.useState(e),i=W.useRef(r),l=W.useCallback(f=>{t(c=>i.current=Oc(f)?f(c):f)},[r]);return[r,l,i]}const iz=()=>{const e=W.useRef(!1);return W.useEffect(()=>(e.current=!1,()=>{e.current=!0}),[]),e},bD=(e={})=>{const r=iz(),[t,i,l]=X2(e),f=W.useCallback(c=>{r.current||i(h=>Object.assign(Object.assign({},h),Oc(c)?c(h):c))},[]);return[t,f,l]},Rc=(e,r)=>{const t=W.useRef(!1);W.useEffect(()=>{if(!t.current)t.current=!0;else return e()},r)};function CD(e){const r=W.useRef(e);return r.current=e,r}const oz=process.env.NODE_ENV==="development";function nZ(e,r){}const wD=e=>{process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=CD(e);W.useEffect(()=>()=>{r.current()},[])};function _D(e,r){if(e===r)return!0;for(let t=0;t<e.length;t++)if(!Object.is(e[t],r[t]))return!1;return!0}const lz=(e=>(t,i,l)=>{const f=W.useRef(!1),c=W.useRef([]),h=W.useRef([]),m=W.useRef();e(()=>{var d;const C=(Array.isArray(l)?l:[l]).map(b=>Xp(b));if(!f.current){f.current=!0,c.current=C,h.current=i,m.current=t();return}(C.length!==c.current.length||!_D(C,c.current)||!_D(i,h.current))&&((d=m.current)===null||d===void 0||d.call(m),c.current=C,h.current=i,m.current=t())}),wD(()=>{var d;(d=m.current)===null||d===void 0||d.call(m),f.current=!1})})(W.useEffect);function sz(e,r){const[t,i]=W.useState(),[l,f]=W.useState();return lz(()=>{const c=Xp(e);if(!c)return;const h=new IntersectionObserver(m=>{for(const d of m)f(d.intersectionRatio),i(d.isIntersecting)},Object.assign(Object.assign({},r),{root:Xp(r==null?void 0:r.root)}));return h.observe(c),()=>{h.disconnect()}},[],e),[t,l]}const SD=10;function uz(e,r){return e>r&&e>SD?"horizontal":r>e&&r>SD?"vertical":""}function ED(){const e=W.useRef(0),r=W.useRef(0),t=W.useRef(0),i=W.useRef(0),l=W.useRef(0),f=W.useRef(0),c=W.useRef(""),h=W.useRef(null),m=()=>c.current==="vertical",d=()=>c.current==="horizontal",g=()=>{t.current=0,i.current=0,l.current=0,f.current=0,c.current="",h.current=null};return{move:x=>{const _=x.touches[0];t.current=_.clientX<0?0:_.clientX-e.current,i.current=_.clientY-r.current,l.current=Math.abs(t.current),f.current=Math.abs(i.current),h.current===null?h.current=!0:h.current=!1,c.current||(c.current=uz(l.current,f.current))},start:x=>{g(),e.current=x.touches[0].clientX,r.current=x.touches[0].clientY},reset:g,startX:e,startY:r,deltaX:t,deltaY:i,offsetX:l,offsetY:f,direction:c,isVertical:m,isHorizontal:d,firstMove:h}}const DD=/scroll|auto/i,cz=Ac?window:void 0;function fz(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function dz(e,r=cz){r===void 0&&(r=window);let t=e;for(;t&&t!==r&&fz(t);){const{overflowY:i}=window.getComputedStyle(t);if(DD.test(i)){if(t.tagName!=="BODY")return t;const l=window.getComputedStyle(t.parentNode).overflowY;if(DD.test(l))return t}t=t.parentNode}return r}const pz=e=>(r,t)=>{const i=W.useRef(!1);e(()=>()=>{i.current=!1},[]),e(()=>{if(!i.current)i.current=!0;else return r()},t)},th=Ac?W.useLayoutEffect:W.useEffect,hz=pz(th),kD=()=>{const[,e]=W.useState({});return W.useCallback(()=>e({}),[])};function TD(e){process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=W.useRef(e);r.current=W.useMemo(()=>e,[e]);const t=W.useRef();return t.current||(t.current=function(...i){return r.current.apply(this,i)}),t.current}function nh(e){const{value:r,defaultValue:t,onChange:i}=e,l=kD(),f=W.useRef(r!==void 0?r:t);r!==void 0&&(f.current=r);const c=TD((h,m)=>{const d=typeof h=="function"?h(f.current):h;!m&&d===f.current||(f.current=d,l(),i==null||i(d))});return[f.current,c]}const lZ="";function $a(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t}function J2(e,r,t,i){function l(f){return f instanceof t?f:new t(function(c){c(f)})}return new(t||(t=Promise))(function(f,c){function h(g){try{d(i.next(g))}catch(C){c(C)}}function m(g){try{d(i.throw(g))}catch(C){c(C)}}function d(g){g.done?f(g.value):l(g.value).then(h,m)}d((i=i.apply(e,r||[])).next())})}const sZ="",vz=({bem:e})=>Q(nn,{children:Array(12).fill(null).map((r,t)=>Q("i",{className:Re(e("line",String(t+1)))},t))}),mz=({bem:e})=>Q("svg",Object.assign({className:Re(e("circular")),viewBox:"25 25 50 50"},{children:Q("circle",{cx:"50",cy:"50",r:"20",fill:"none"})})),gz=({bem:e})=>Be("div",Object.assign({className:Re(e("ball"))},{children:[Q("div",{}),Q("div",{}),Q("div",{})]})),yz=e=>({spinner:Q(vz,{bem:e}),circular:Q(mz,{bem:e}),ball:Q(gz,{bem:e})}),[Ng]=wn("loading"),eC=e=>{const{className:r,type:t="circular",vertical:i,color:l,size:f,textColor:c,children:h,textSize:m}=e,d=W.useMemo(()=>Object.assign({color:l},JL(f)),[l,f]),g=()=>h?Q("span",Object.assign({className:Re(Ng("text")),style:{fontSize:dl(m),color:c??l}},{children:h})):null;return Be("div",Object.assign({className:Re(r,Ng([t,{vertical:i}])),style:e.style},{children:[Q("span",Object.assign({className:Re(Ng("spinner",t)),style:d},{children:yz(Ng)[t]})),g()]}))},xz="#fff",rh="rv-hairline",bz=`${rh}--top`,Cz=`${rh}--left`,wz=`${rh}--surround`,_z=`${rh}--top-bottom`,Sz=`${rh}-unset--top-bottom`,AD="rv-shadow",Ez="__REACT_VANT_COMPONENT",OD=W.createContext({}),[ah]=wn("button"),Dz=e=>{const{color:r,loading:t,className:i,hairline:l,loadingText:f,round:c,square:h,plain:m,block:d,loadingType:g,nativeType:C,iconPosition:b}=e,x=$a(e,["color","loading","className","hairline","loadingText","round","square","plain","block","loadingType","nativeType","iconPosition"]),{parent:_}=W.useContext(OD),k=W.useMemo(()=>e.size||(_==null?void 0:_.size)||"normal",[_==null?void 0:_.size,e.size]),E=W.useMemo(()=>e.type||(_==null?void 0:_.type)||"default",[_==null?void 0:_.type,e.type]),A=W.useMemo(()=>m??(_==null?void 0:_.plain),[_==null?void 0:_.plain,m]),T=W.useMemo(()=>d??(_==null?void 0:_.block),[_==null?void 0:_.block,d]),D=W.useMemo(()=>b||(_==null?void 0:_.iconPosition)||"left",[_==null?void 0:_.iconPosition,b]),R=W.useMemo(()=>{var G;return(G=e.disabled)!==null&&G!==void 0?G:_==null?void 0:_.disabled},[_==null?void 0:_.disabled,e.disabled]),N=W.useMemo(()=>C||(_==null?void 0:_.nativeType)||"button",[_==null?void 0:_.nativeType,C]),M=W.useMemo(()=>e.tag||(_==null?void 0:_.tag)||"button",[_==null?void 0:_.tag,e.tag]),I=Re(i,ah([E,k,{plain:A,loading:t,disabled:R,hairline:l,block:T,round:c,square:h}]),{[wz]:l},e.shadow&&`${AD}--${+e.shadow}`),Y=Object.assign({},e.style);r&&(Y.color=A?r:xz,A||(Y.background=r),r.indexOf("gradient")!==-1?Y.border=0:Y.borderColor=r);const B=G=>{!t&&!R&&e.onClick&&e.onClick(G)},U=()=>{if(t){const{loadingSize:G="20px"}=e;return Q(eC,{className:Re(ah("loading")),size:G,type:g,color:E==="default"?void 0:""})}return null},P=()=>e.loading?U():e.icon?W.cloneElement(e.icon,{className:Re(ah("icon"))}):null,H=()=>{let G;return t?G=f:G=e.children||e.text,G?Q("span",Object.assign({className:Re(ah("text"))},{children:G}),"text"):null};return Q(M,Object.assign({},x,{disabled:R,className:I,style:Y,type:N,onClick:B},{children:(()=>Be("div",Object.assign({className:Re(ah("content"))},{children:[D==="left"&&P(),H(),D==="right"&&P()]})))()}))},[kz]=wn("button-group"),ih=Object.assign(Dz,{Group:e=>{var{className:r,style:t,children:i,onClick:l}=e,f=$a(e,["className","style","children","onClick"]);return Q("div",Object.assign({onClick:h=>{f.disabled||l==null||l(h)},style:t,className:Re(r,kz([f.type,{round:f.round,plain:f.plain,disabled:f.disabled}]),f.shadow&&`${AD}--${+f.shadow}`)},{children:Q(OD.Provider,Object.assign({value:{parent:f}},{children:i}))}))}}),hZ="";function ta(...e){const r=Object.assign({},e[0]);return e.forEach(t=>{for(const i in t){const l=t[i];r[i]=r.hasOwnProperty(i)?r[i]:l}}),r}const[RD]=wn("badge"),Tz=e=>{const r=ta(e,{tag:"div",showZero:!0}),{content:t,max:i,dot:l,showZero:f,tag:c="div"}=r,h=c,m=()=>r.content?!0:ea(t)&&t!==""&&(f||+t!=0),d=()=>!l&&m()?ea(i)&&vD(t==null?void 0:t.toString())&&+t>i?`${i}+`:t:null,g=()=>{if(m()||r.dot){let C={background:r.color};if(r.offset){const[b,x]=r.offset;r.children?(C.top=dl(x),C.right=dl(b)):(C.marginTop=dl(x),C.marginLeft=dl(b))}return r.children||(C=Object.assign(Object.assign({},r.style),C)),Q("div",Object.assign({className:Re({[r.className]:r.className&&!r.children},RD({dot:r.dot,fixed:!!r.children})),style:C},{children:d()}))}return null};return r.children?Be(h,Object.assign({className:Re(RD("wrapper"),r.className),style:r.style,onClick:r.onClick,onTouchStart:r.onTouchStart},{children:[r.children,g()]})):g()},mZ="";var Az=globalThis&&globalThis.__rest||function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t};function Oz(e){return e.substring(3).replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")}const ls=W.forwardRef((e,r)=>{const{name:t="",className:i,style:l,spin:f,rotate:c,tabIndex:h,onClick:m,children:d}=e,g=Az(e,["name","className","style","spin","rotate","tabIndex","onClick","children"]),C={};c&&(C.msTransform=`rotate(${c}deg)`,C.transform=`rotate(${c}deg)`);const b=t?Oz(t):void 0;let x=h;x===void 0&&m&&(x=-1);const _=Object.assign({role:"img","aria-label":b,focusable:"false","data-icon":b,"aria-hidden":"true",preserveAspectRatio:"xMidYMid meet",ref:r,tabIndex:x,onClick:m,className:["rv-icon",b?`rv-icon-${b}`:"",f?"rv-icon--spin":"",i].join(" ").trim(),style:Object.assign(Object.assign({},l),C)},g);return W.cloneElement(d,_)}),Rz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M494.094 733.426a41.472 41.472 0 01-20.023-11.126L140.16 388.388c-16.272-16.271-16.272-42.653 0-58.925 16.271-16.272 42.653-16.272 58.925 0L503.66 634.037 808.186 329.51c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L533.2 722.347c-10.607 10.607-25.508 14.3-39.106 11.08z",fillRule:"evenodd"})),Fz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrowDown"},e,{ref:r}),Ne.createElement(Rz,null))),Nz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 01-11.127-20.023z",fillRule:"evenodd"})),Mz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrowLeft"},e,{ref:r}),Ne.createElement(Nz,null))),Pz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M513.176 285.05a41.472 41.472 0 0120.024 11.127L867.11 630.089c16.272 16.271 16.272 42.653 0 58.925s-42.654 16.272-58.925 0L503.612 384.44 199.085 688.967c-16.272 16.271-42.654 16.271-58.925 0-16.272-16.272-16.272-42.654 0-58.926L474.07 296.129c10.606-10.606 25.508-14.299 39.105-11.078z",fillRule:"evenodd"})),Bz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrowUp"},e,{ref:r}),Ne.createElement(Pz,null))),Lz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M711.156 508.035a41.472 41.472 0 01-11.126 20.023L366.12 861.97c-16.272 16.272-42.654 16.272-58.926 0s-16.272-42.654 0-58.926L611.767 498.47 307.241 193.944c-16.272-16.272-16.272-42.654 0-58.926 16.271-16.272 42.653-16.272 58.925 0L700.078 468.93c10.606 10.606 14.299 25.508 11.078 39.105z",fillRule:"evenodd"})),zz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrow"},e,{ref:r}),Ne.createElement(Lz,null))),Uz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M500 55.556c245.46 0 444.444 198.984 444.444 444.444S745.46 944.444 500 944.444 55.556 745.46 55.556 500 254.54 55.556 500 55.556zm176.441 267.887c-10.848-10.848-28.436-10.848-39.284 0L499.665 460.936 362.172 323.443c-10.848-10.848-28.436-10.848-39.284 0-10.848 10.848-10.848 28.436 0 39.284L460.38 500.22 322.888 637.713c-10.848 10.848-10.848 28.436 0 39.284 10.848 10.848 28.436 10.848 39.284 0l137.493-137.493 137.492 137.493c10.848 10.848 28.436 10.848 39.284 0 10.848-10.848 10.848-28.436 0-39.284L538.948 500.22l137.493-137.493c10.848-10.848 10.848-28.436 0-39.284z",fillRule:"evenodd"})),Mg=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgClear"},e,{ref:r}),Ne.createElement(Uz,null))),jz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M560.149 501.223l255.344 255.344c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L501.223 560.149 245.88 815.493c-16.272 16.272-42.654 16.272-58.925 0-16.272-16.272-16.272-42.654 0-58.926l255.344-255.344L186.954 245.88c-16.272-16.272-16.272-42.654 0-58.925 16.271-16.272 42.653-16.272 58.925 0l255.344 255.344 255.344-255.344c16.272-16.272 42.654-16.272 58.926 0 16.272 16.271 16.272 42.653 0 58.925L560.149 501.223z",fillRule:"nonzero"})),tC=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgCross"},e,{ref:r}),Ne.createElement(jz,null))),Iz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M537.5 537.5v325c0 20.71-16.79 37.5-37.5 37.5s-37.5-16.79-37.5-37.5v-325h-325c-20.71 0-37.5-16.79-37.5-37.5s16.79-37.5 37.5-37.5h325v-325c0-20.71 16.79-37.5 37.5-37.5s37.5 16.79 37.5 37.5v325h325c20.71 0 37.5 16.79 37.5 37.5s-16.79 37.5-37.5 37.5h-325z",fillRule:"nonzero"})),Hz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgPlus"},e,{ref:r}),Ne.createElement(Iz,null))),Vz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M500 888.889c-214.389 0-388.889-174.5-388.889-388.889S285.611 111.111 500 111.111 888.889 285.611 888.889 500 714.389 888.889 500 888.889m0-833.333c-245.444 0-444.444 199-444.444 444.444 0 245.444 199 444.444 444.444 444.444 245.444 0 444.444-199 444.444-444.444 0-245.444-199-444.444-444.444-444.444m6.456 222.222c-44.612 0-80 12.778-105.612 39.055-26.277 25.667-39.055 60.445-39.055 105.056v1c0 17.944 14.444 32.444 32.389 32.444 17.889 0 32.389-14.5 32.389-32.444 0-.389-.111-1-.111-1 0-26.945 5.444-48.222 16.444-62.889 12.222-17.111 32.333-25.667 59.889-25.667 21.944 0 39.055 6.111 51.222 18.334 11.611 12.222 17.778 28.722 17.778 50.055 0 15.89-5.556 30.5-16.556 44.556l-10.389 11.61c-37.777 33.556-60.333 59-69.61 75.668-13.834 24.944-11.334 48-11.334 48 0 17.888 14.556 32.388 32.444 32.388 17.945 0 29.778-12.333 32.39-32.388 0 0 3.333-18.667 10.055-30.89 5.5-10.944 14.055-21.388 25-31.11 29.389-25.056 46.444-40.945 51.889-47.667 14.666-19.5 22.555-44.556 22.555-74.445 0-36.61-12.166-65.944-35.944-87.333-24.445-21.944-56.167-32.333-95.833-32.333m-10.417 357.15c-12.778 0-23.222 3.666-31.111 12.222-9.222 7.889-13.5 18.333-13.5 31.111 0 12.222 4.278 22.611 13.5 31.167 7.889 8.5 18.333 12.778 31.11 12.778 12.279 0 23.223-4.278 32.39-12.167 8.5-8.611 12.778-18.945 12.778-31.778 0-12.778-4.278-23.222-12.778-31.111-8.556-8.556-19.556-12.222-32.39-12.222",fillRule:"evenodd"})),$z=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgQuestionO"},e,{ref:r}),Ne.createElement(Vz,null))),Yz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M119.415 524.046c-9.708-9.693-11.278-24.766-2.72-35.554l20.007-25.223c8.201-10.34 23.543-12.936 34.386-5.699l173.175 115.585c9.134 6.097 24.856 5.303 33.384-1.616l457.6-371.25c10.286-8.345 26.397-7.634 35.412 1.368l11.272 11.255c9.81 9.795 9.096 25.343-1.187 35.611l-491.14 490.414c-15.28 15.258-40.369 14.59-56.099-1.116l-214.09-213.775z",fillRule:"nonzero"})),FD=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgSuccess"},e,{ref:r}),Ne.createElement(Yz,null))),kZ="",[ND]=wn("cell-group"),qz=e=>{const r=ta(e,{border:!0}),{title:t,border:i,inset:l,card:f}=r,c=f||l,h=()=>Q("div",Object.assign({className:Re(ND({inset:c}),{[_z]:!c&&i})},{children:r.children})),m=()=>t?Q("div",Object.assign({className:Re(ND("title"))},{children:t})):null;return Be("div",Object.assign({className:r.className,style:r.style},{children:[m(),h()]}))},[pd]=wn("cell"),MD=Object.assign(e=>{const r=()=>ea(e.label)?Q("div",Object.assign({className:Re(pd("label"),e.labelClass)},{children:e.label})):null,t=()=>ea(e.title)?Be("div",Object.assign({className:Re(pd("title"),e.titleClass),style:e.titleStyle},{children:[e.title,r()]})):null,i=()=>{const E=ea(e.title);return ea(e.children)||ea(e.value)?Q("div",Object.assign({className:Re(pd("value",{alone:!E}),e.valueClass)},{children:ea(e.children)?e.children:Q("span",{children:e.value})})):null},l=()=>e.icon?W.cloneElement(e.icon,{className:Re(pd("left-icon"))}):null,f=()=>{if(e.rightIcon)return e.rightIcon;if(e.isLink){const E=Re(pd("right-icon"));return e.arrowDirection==="left"?Q(Mz,{className:E}):e.arrowDirection==="up"?Q(Bz,{className:E}):e.arrowDirection==="down"?Q(Fz,{className:E}):Q(zz,{className:E})}return null},{className:c,style:h,size:m,center:d,border:g=!0,isLink:C,required:b,onClick:x}=e,_=C||e.clickable,k={center:d,required:b,clickable:_,borderless:!g};return m&&(k[m]=!!m),Be("div",Object.assign({style:h,className:Re(pd(k),c),role:_?"button":void 0,onClick:x},{children:[l(),t(),i(),f(),e.extra]}))},{Group:qz}),RZ="",FZ="";function Pg(e,r){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Pg(e,r)}function PD(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Pg(e,r)}function Gz(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function Kz(e,r){e.classList?e.classList.add(r):Gz(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function BD(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Wz(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=BD(e.className,r):e.setAttribute("class",BD(e.className&&e.className.baseVal||"",r))}const LD={disabled:!1};var Qz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.number,wt.exports.shape({enter:wt.exports.number,exit:wt.exports.number,appear:wt.exports.number}).isRequired]):null,Zz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.string,wt.exports.shape({enter:wt.exports.string,exit:wt.exports.string,active:wt.exports.string}),wt.exports.shape({enter:wt.exports.string,enterDone:wt.exports.string,enterActive:wt.exports.string,exit:wt.exports.string,exitDone:wt.exports.string,exitActive:wt.exports.string})]):null;const zD=W.createContext(null);var oh="unmounted",Fc="exited",Nc="entering",hd="entered",nC="exiting",ss=function(e){PD(r,e);function r(i,l){var f;f=e.call(this,i,l)||this;var c=l,h=c&&!c.isMounting?i.enter:i.appear,m;return f.appearStatus=null,i.in?h?(m=Fc,f.appearStatus=Nc):m=hd:i.unmountOnExit||i.mountOnEnter?m=oh:m=Fc,f.state={status:m},f.nextCallback=null,f}r.getDerivedStateFromProps=function(l,f){var c=l.in;return c&&f.status===oh?{status:Fc}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(l){var f=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==Nc&&c!==hd&&(f=Nc):(c===Nc||c===hd)&&(f=nC)}this.updateStatus(!1,f)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var l=this.props.timeout,f,c,h;return f=c=h=l,l!=null&&typeof l!="number"&&(f=l.exit,c=l.enter,h=l.appear!==void 0?l.appear:c),{exit:f,enter:c,appear:h}},t.updateStatus=function(l,f){l===void 0&&(l=!1),f!==null?(this.cancelNextCallback(),f===Nc?this.performEnter(l):this.performExit()):this.props.unmountOnExit&&this.state.status===Fc&&this.setState({status:oh})},t.performEnter=function(l){var f=this,c=this.props.enter,h=this.context?this.context.isMounting:l,m=this.props.nodeRef?[h]:[fg.findDOMNode(this),h],d=m[0],g=m[1],C=this.getTimeouts(),b=h?C.appear:C.enter;if(!l&&!c||LD.disabled){this.safeSetState({status:hd},function(){f.props.onEntered(d)});return}this.props.onEnter(d,g),this.safeSetState({status:Nc},function(){f.props.onEntering(d,g),f.onTransitionEnd(b,function(){f.safeSetState({status:hd},function(){f.props.onEntered(d,g)})})})},t.performExit=function(){var l=this,f=this.props.exit,c=this.getTimeouts(),h=this.props.nodeRef?void 0:fg.findDOMNode(this);if(!f||LD.disabled){this.safeSetState({status:Fc},function(){l.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:nC},function(){l.props.onExiting(h),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:Fc},function(){l.props.onExited(h)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(l,f){f=this.setNextCallback(f),this.setState(l,f)},t.setNextCallback=function(l){var f=this,c=!0;return this.nextCallback=function(h){c&&(c=!1,f.nextCallback=null,l(h))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},t.onTransitionEnd=function(l,f){this.setNextCallback(f);var c=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this),h=l==null&&!this.props.addEndListener;if(!c||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],d=m[0],g=m[1];this.props.addEndListener(d,g)}l!=null&&setTimeout(this.nextCallback,l)},t.render=function(){var l=this.state.status;if(l===oh)return null;var f=this.props,c=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var h=_b(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(zD.Provider,{value:null},typeof c=="function"?c(l,h):W.cloneElement(W.Children.only(c),h))},r}(W.Component);ss.contextType=zD,ss.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:wt.exports.shape({current:typeof Element>"u"?wt.exports.any:function(e,r,t,i,l,f){var c=e[r];return wt.exports.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(e,r,t,i,l,f)}}),children:wt.exports.oneOfType([wt.exports.func.isRequired,wt.exports.element.isRequired]).isRequired,in:wt.exports.bool,mountOnEnter:wt.exports.bool,unmountOnExit:wt.exports.bool,appear:wt.exports.bool,enter:wt.exports.bool,exit:wt.exports.bool,timeout:function(r){var t=Qz;r.addEndListener||(t=t.isRequired);for(var i=arguments.length,l=new Array(i>1?i-1:0),f=1;f<i;f++)l[f-1]=arguments[f];return t.apply(void 0,[r].concat(l))},addEndListener:wt.exports.func,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}:{};function vd(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vd,onEntering:vd,onEntered:vd,onExit:vd,onExiting:vd,onExited:vd},ss.UNMOUNTED=oh,ss.EXITED=Fc,ss.ENTERING=Nc,ss.ENTERED=hd,ss.EXITING=nC;const UD=ss;var Xz=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return Kz(r,i)})},rC=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return Wz(r,i)})},aC=function(e){PD(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(h,m){var d=i.resolveArguments(h,m),g=d[0],C=d[1];i.removeClasses(g,"exit"),i.addClass(g,C?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(h,m)},i.onEntering=function(h,m){var d=i.resolveArguments(h,m),g=d[0],C=d[1],b=C?"appear":"enter";i.addClass(g,b,"active"),i.props.onEntering&&i.props.onEntering(h,m)},i.onEntered=function(h,m){var d=i.resolveArguments(h,m),g=d[0],C=d[1],b=C?"appear":"enter";i.removeClasses(g,b),i.addClass(g,b,"done"),i.props.onEntered&&i.props.onEntered(h,m)},i.onExit=function(h){var m=i.resolveArguments(h),d=m[0];i.removeClasses(d,"appear"),i.removeClasses(d,"enter"),i.addClass(d,"exit","base"),i.props.onExit&&i.props.onExit(h)},i.onExiting=function(h){var m=i.resolveArguments(h),d=m[0];i.addClass(d,"exit","active"),i.props.onExiting&&i.props.onExiting(h)},i.onExited=function(h){var m=i.resolveArguments(h),d=m[0];i.removeClasses(d,"exit"),i.addClass(d,"exit","done"),i.props.onExited&&i.props.onExited(h)},i.resolveArguments=function(h,m){return i.props.nodeRef?[i.props.nodeRef.current,h]:[h,m]},i.getClassNames=function(h){var m=i.props.classNames,d=typeof m=="string",g=d&&m?m+"-":"",C=d?""+g+h:m[h],b=d?C+"-active":m[h+"Active"],x=d?C+"-done":m[h+"Done"];return{baseClassName:C,activeClassName:b,doneClassName:x}},i}var t=r.prototype;return t.addClass=function(l,f,c){var h=this.getClassNames(f)[c+"ClassName"],m=this.getClassNames("enter"),d=m.doneClassName;f==="appear"&&c==="done"&&d&&(h+=" "+d),c==="active"&&l&&l.scrollTop,h&&(this.appliedClasses[f][c]=h,Xz(l,h))},t.removeClasses=function(l,f){var c=this.appliedClasses[f],h=c.base,m=c.active,d=c.done;this.appliedClasses[f]={},h&&rC(l,h),m&&rC(l,m),d&&rC(l,d)},t.render=function(){var l=this.props;l.classNames;var f=_b(l,["classNames"]);return W.createElement(UD,Pr({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(W.Component);aC.defaultProps={classNames:""},aC.propTypes=process.env.NODE_ENV!=="production"?Pr({},UD.propTypes,{classNames:Zz,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}):{};const jD=aC;function hn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const NZ="",[Jz]=wn("overlay"),eU=e=>{const r=W.useRef(null),t=ta(e,{stopPropagation:["click"],lockScroll:!0,duration:300}),{visible:i,duration:l}=t,f=h=>{t.lockScroll&&K2(h,!0)},c=()=>{const h=Object.assign(Object.assign({zIndex:t.zIndex!==void 0?+t.zIndex:void 0,touchAction:t.lockScroll&&"none"},t.style),t.customStyle);return ea(l)&&(h.animationDuration=`${l}ms`),fD(t.stopPropagation,Q("div",Object.assign({ref:r,style:h,onClick:m=>{var d;m.target===m.currentTarget&&((d=t.onClick)===null||d===void 0||d.call(t,m))},className:Re(Jz(),t.className)},{children:t.children})))};return Z2("touchmove",f,{target:r}),Q(jD,Object.assign({nodeRef:r,mountOnEnter:!0,unmountOnExit:!0,in:i,timeout:l,classNames:"rv-fade"},{children:c()}))};function tU(e){const{interceptor:r,args:t,done:i,canceled:l}=e;if(r){const f=r.apply(null,t||[]);VL(f)?f.then(c=>{c?i():l&&l()}).catch(Mi):f?i():l&&l()}else i()}function iC(e){return(typeof e=="function"?e():e)||document.body}function Bg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nU(e,r){if(Bg()&&e){const t=iC(e);return tu.exports.createPortal(r,t)}return r}const rU=W.createContext({});let ID=!1;if(Bg())try{const e={};Object.defineProperty(e,"passive",{get(){ID=!0}}),window.addEventListener("test-passive",null,e)}catch{}let lh=0;const HD="rv-overflow-hidden";function aU(e,r){const t=ED(),i=c=>{t.move(c);const h=t.deltaY.current>0?"10":"01",m=dz(c.target,e.current);if(!m)return;const{scrollHeight:d,offsetHeight:g,scrollTop:C}=m;let b="11";C===0?b=g>=d?"00":"01":C+g>=d&&(b="10"),b!=="11"&&t.isVertical()&&!(parseInt(b,2)&parseInt(h,2))&&c.cancelable&&c.preventDefault()},l=()=>{document.addEventListener("touchstart",t.start),document.addEventListener("touchmove",i,ID?{passive:!1}:!1),lh||document.body.classList.add(HD),lh++},f=()=>{lh&&(document.removeEventListener("touchstart",t.start),document.removeEventListener("touchmove",i),lh--,lh||document.body.classList.remove(HD))};W.useEffect(()=>{if(r)return l(),()=>{f()}},[r])}let VD=2e3;const[Lg]=wn("popup"),sh=W.forwardRef((e,r)=>{var t;const i=ta(e,{duration:300,overlay:!0,lockScroll:!0,position:"center",closeIcon:Q(tC,{}),closeIconPosition:"top-right",closeOnClickOverlay:!0,stopPropagation:["click"],teleport:()=>document.body}),{round:l,closeable:f,title:c,description:h,children:m,duration:d,closeIcon:g,position:C}=i,b=W.useRef(!1),x=W.useRef((t=i.zIndex)!==null&&t!==void 0?t:VD),_=W.useRef(),[k,E]=W.useState(i.visible),[A,T]=W.useState(k),D=W.useMemo(()=>{const V=Object.assign({zIndex:x.current},i.style);if(ea(i.duration)){const G=i.position==="center"?"animationDuration":"transitionDuration";V[G]=`${i.duration}ms`}return V},[x.current,i.position,i.style,i.duration]),R=()=>{var V;i.zIndex!==void 0?x.current=+i.zIndex:x.current=VD++,b.current=!0,(V=i.onOpen)===null||V===void 0||V.call(i)},N=()=>{tU({interceptor:i.beforeClose,args:["close"],done:()=>{var V;b.current=!1,(V=i.onClose)===null||V===void 0||V.call(i)}})},z=V=>{var G;(G=i.onClickOverlay)===null||G===void 0||G.call(i,V),i.closeOnClickOverlay&&N()},M=()=>i.overlay?Q(eU,{visible:k,className:i.overlayClass,customStyle:i.overlayStyle,zIndex:x.current,duration:d,onClick:z}):null,I=V=>{i.onClickCloseIcon&&i.onClickCloseIcon(V),N()},Y=()=>{if(f){const{closeIconPosition:V}=i;return g?Q("div",Object.assign({className:Re(Lg("close-icon",V)),onClick:I},{children:g})):null}return null},B=()=>c?Q("div",Object.assign({className:Re(Lg("title"))},{children:c})):null,U=()=>h?Q("div",Object.assign({className:Re(Lg("description"))},{children:h})):null,P=()=>{const{safeAreaInsetBottom:V}=i;return fD(i.stopPropagation,Be("div",Object.assign({ref:_,style:Object.assign(Object.assign({},D),{display:!k&&!A?"none":void 0}),className:Re(Lg({round:l,[C]:C}),{"rv-safe-area-bottom":V},i.className),onClick:i.onClick},{children:[B(),U(),m,Y()]})))},H=()=>{const{transition:V,destroyOnClose:G,forceRender:ee}=i,ne=C==="center"?"rv-fade":`rv-popup-slide-${C}`;return Q(jD,Object.assign({in:k,nodeRef:_,timeout:d,classNames:V||ne,mountOnEnter:!ee,unmountOnExit:G,onEnter:R,onEntered:i.onOpened,onExited:()=>{var $;T(!1),($=i.onClosed)===null||$===void 0||$.call(i)}},{children:P()}))};return Z2("popstate",()=>{i.closeOnPopstate&&N()}),th(()=>{k&&T(!0)},[k]),th(()=>{E(i.visible)},[i.visible]),aU(_,k&&i.lockScroll),W.useImperativeHandle(r,()=>({popupRef:_})),nU(i.teleport,Be(rU.Provider,Object.assign({value:{visible:k}},{children:[M(),H()]})))}),LZ="",$D=W.createContext({}),[iU]=wn("action-bar"),oU=e=>{const r=ta(e,{safeAreaInsetBottom:!0}),t=W.useMemo(()=>W.Children.toArray(r.children),[r.children]);return Q($D.Provider,Object.assign({value:{parent:{children:t}}},{children:Q("div",Object.assign({className:Re(r.className,iU(),{"rv-safe-area-bottom":r.safeAreaInsetBottom}),style:r.style},{children:W.Children.toArray(r.children).filter(Boolean).map((i,l)=>W.cloneElement(i,{index:l}))}))}))},[YD]=wn("action-bar-icon"),lU=e=>{const r=()=>{const{badge:t,icon:i}=e;return i?Q(Tz,Object.assign({},t,{className:Re(YD("icon"))},{children:i})):null};return Be("div",Object.assign({role:"button",className:Re(e.className,YD()),style:e.style,tabIndex:0,onClick:e.onClick},{children:[r(),e.children||e.text]}))},[sU]=wn("action-bar-button"),uU=Object.assign(e=>{const{type:r,icon:t,text:i,color:l,loading:f,disabled:c,index:h}=e,{parent:m}=W.useContext($D),d=W.useMemo(()=>{if(m){const C=m.children[h-1];return!(C&&"isButton"in C.type)}return!1},[h,m]),g=W.useMemo(()=>{if(m){const C=m.children[h+1];return!(C&&"isButton"in C.type)}return!1},[h,m]);return Q(ih,Object.assign({className:Re(e.className,sU([r,{last:g,first:d}])),style:e.style,size:"large",type:r,icon:t,color:l,loading:f,disabled:c,onClick:e.onClick},{children:e.children?e.children:i}))},{isButton:!0}),oC=Object.assign(oU,{Icon:lU,Button:uU});function cU(e,r,t){const i=r[t];ea(i)&&(!Object.prototype.hasOwnProperty.call(e,t)||!fd(i)?e[t]=i:e[t]=qD(Object(e[t]),r[t]))}function qD(e,r){return Object.keys(r).forEach(t=>{cU(e,r,t)}),e}const fU={locale:qD({name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanPicker:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新...",loading:"加载中..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌信息"},vanAddressList:{add:"新增地址"}},{})},md=W.createContext(fU),[Co]=wn("dialog"),GD=e=>{const{locale:r}=W.useContext(md),t=ta(e,{transition:"rv-dialog-bounce",showConfirmButton:!0,closeOnPopstate:!0}),{width:i,title:l,theme:f,visible:c,message:h,className:m,messageAlign:d,closeOnClickOverlay:g,onClickCloseIcon:C}=t,b=$a(t,["width","title","theme","visible","message","className","messageAlign","closeOnClickOverlay","onClickCloseIcon"]),x=()=>t.title?Q("div",Object.assign({className:Re(Co("header",{isolated:!t.message&&!t.children}))},{children:l})):null,_=()=>t.children?Q("div",Object.assign({className:Re(Co("content"))},{children:t.children})):h?Q("div",Object.assign({className:Re(Co("content",{isolated:!l}))},{children:Q("div",Object.assign({className:Re(Co("message",{"has-title":l,[d]:d}))},{children:h}))})):null,k=()=>{var T,D,R,N,z,M;return Be("div",Object.assign({className:Re(bz,Co("footer"))},{children:[t.showCancelButton&&Q(ih,{size:"large",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),style:{color:t.cancelButtonColor},loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(ih,{size:"large",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm"),{[Cz]:t.showCancelButton}),round:f==="round-button"||void 0,style:{color:t.confirmButtonColor},loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},E=()=>{var T,D,R,N,z,M;return Be(oC,Object.assign({className:Re(Co("footer"))},{children:[t.showCancelButton&&Q(oC.Button,{type:"warning",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),color:t.cancelButtonColor,loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(oC.Button,{type:"danger",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm")),color:t.confirmButtonColor,loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},A=()=>t.footer?t.footer:t.theme==="round-button"?E():k();return Be(sh,Object.assign({},b,{visible:c,className:Re(Co([f]),m),style:{width:dl(i)},"aria-labelledby":l||h,closeOnClickOverlay:g,onClickCloseIcon:C,onClose:t.onClose,onClosed:t.onClosed},{children:[x(),_(),A()]}))};Number((W.version||"").split(".")[0]);const dU=Number((tu.exports.version||"").split(".")[0]),zg=Object.assign({},g9),{render:pU,unmountComponentAtNode:hU}=zg;let Ug;try{dU>=18&&zg.createRoot&&(Ug=zg.createRoot)}catch{}function KD(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:r}=zg;r&&typeof r=="object"&&(r.usingClientEntryPoint=e)}const jg="__react_vant_root__";function vU(e,r){pU(e,r)}function mU(e,r){KD(!0);const t=r[jg]||Ug(r);KD(!1),t.render(e),r[jg]=t}function WD(e,r){if(Ug){mU(e,r);return}vU(e,r)}function gU(e){return hU(e)}function yU(e){return J2(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var r;(r=e[jg])===null||r===void 0||r.unmount(),delete e[jg]})})}function QD(e){return Ug?yU(e):gU(e)}const gd=GD;gd.show=e=>{if(!Bg())return null;const r={overlay:!0,closeable:!1,closeIcon:Q(tC,{}),lockScroll:!0,transition:"rv-dialog-bounce",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1},{onClosed:t,onCancel:i=Mi,onConfirm:l=Mi,onClose:f=Mi,cancelProps:c,confirmProps:h}=e,m=$a(e,["onClosed","onCancel","onConfirm","onClose","cancelProps","confirmProps"]),d=iC(e.teleport),g=document.createElement("div");d.appendChild(g);let C=Mi;return WD(Q(()=>{const[x,_]=W.useState(!1),[k,E]=W.useState(!1),[A,T]=W.useState(!1);W.useEffect(()=>{_(!0)},[]),C=()=>{_(!1),f&&f()};const D=()=>{t&&t(),QD(g)&&g.parentNode&&g.parentNode.removeChild(g)},R=z=>J2(void 0,void 0,void 0,function*(){const M=setTimeout(()=>T(!0));(yield l(z))!==!1?(clearTimeout(M),C()):(clearTimeout(M),T(!1))}),N=(z,M)=>J2(void 0,void 0,void 0,function*(){if(M){C();return}const I=setTimeout(()=>E(!0));(yield i(z))!==!1?(clearTimeout(I),C()):(clearTimeout(I),E(!1))});return Q(GD,Object.assign({},r,m,{visible:x,teleport:()=>g,cancelProps:Object.assign({loading:k},c),confirmProps:Object.assign({loading:A},h),onClose:C,onCancel:N,onConfirm:R,onClosed:D}))},{}),g),C},gd.alert=e=>{const{onConfirm:r=Mi}=e;return new Promise(t=>{gd.show(Object.assign(Object.assign({},e),{onConfirm:i=>{r(i),t(i)}}))})},gd.confirm=e=>{const{onCancel:r=Mi,onConfirm:t=Mi}=e;return new Promise((i,l)=>{gd.show(Object.assign(Object.assign({showCancelButton:!0},e),{onCancel:f=>{r(f),l()},onConfirm:f=>{t(f),i(!0)}}))})};const xU=gd,[uh]=wn("input"),bU=W.forwardRef((e,r)=>{const t=ta(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),i=W.useRef(),[l,f]=W.useState(!1),c=W.useRef(!1),[h,m]=nh(t),{className:d,style:g,align:C,type:b,name:x,placeholder:_,disabled:k,readOnly:E,maxLength:A,autoFocus:T}=t,D=()=>{i!=null&&i.current&&i.current.focus()},R=()=>{i!=null&&i.current&&i.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{m("")},focus:D,blur:R,get nativeElement(){return i.current}}));const N=W.useMemo(()=>{if(t.clearable&&!E){const P=h!=="",H=t.clearTrigger==="always"||t.clearTrigger==="focus"&&l;return P&&H}return!1},[h,t.clearTrigger,l]),z=P=>{var H;let V=P;if(!c.current&&(ea(A)&&V.length>+A&&(V=V.slice(0,A),(H=t.onOverlimit)===null||H===void 0||H.call(t)),b==="number"||b==="digit")){const G=b==="number";V=az(V,G,G)}m(V)},M=P=>{var H;f(!0),(H=t.onFocus)===null||H===void 0||H.call(t,P),E&&R()},I=P=>{var H;f(!1),(H=t.onBlur)===null||H===void 0||H.call(t,P),hD()},Y=P=>{var H;(P.key==="Enter"||+P.charCode==13)&&(K2(P),t.type==="search"&&R()),(H=t.onKeyPress)===null||H===void 0||H.call(t,P)},B=()=>{let P=b,H;return b==="number"&&(P="text",H="decimal"),b==="digit"&&(P="tel",H="numeric"),Q("input",{value:h,type:P,inputMode:H,ref:i,name:x,className:Re(uh("control")),disabled:k,autoFocus:T,readOnly:E,placeholder:_||"",onBlur:I,onFocus:M,onChange:V=>{var G;return z((G=V==null?void 0:V.currentTarget)===null||G===void 0?void 0:G.value)},onKeyPress:Y,autoCapitalize:t.autoCapitalize,autoCorrect:t.autoCorrect,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onCompositionStart:V=>{var G;c.current=!0,(G=t.onCompositionStart)===null||G===void 0||G.call(t,V)},onCompositionEnd:V=>{var G,ee;c.current=!1,(G=t.onCompositionEnd)===null||G===void 0||G.call(t,V),z((ee=V==null?void 0:V.currentTarget)===null||ee===void 0?void 0:ee.value)},onClick:t.onClick})},U=P=>{var H;m(""),(H=t.onClear)===null||H===void 0||H.call(t,P)};return Be("div",Object.assign({className:Re(uh([C]),d),style:g},{children:[t.prefix&&Q("div",Object.assign({className:Re(uh("prefix"))},{children:t.prefix})),B(),N&&W.cloneElement(t.clearIcon||Q(Mg,{}),{className:Re(uh("clear")),onTouchStart:U}),t.suffix&&Q("div",Object.assign({className:Re(uh("suffix"))},{children:t.suffix}))]}))}),[ch]=wn("textarea"),CU=W.forwardRef((e,r)=>{const t=ta(e,{rows:2,clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),[i,l]=W.useState(!1),f=W.useRef(),c=W.useRef(!1),[h,m]=nh(t),{className:d,style:g,name:C,rows:b,placeholder:x,disabled:_,readOnly:k,maxLength:E,showWordLimit:A,autoFocus:T}=t,D=()=>{f!=null&&f.current&&f.current.focus()},R=()=>{f!=null&&f.current&&f.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{m("")},focus:D,blur:R,get nativeElement(){return f.current}}));const N=()=>{const H=f.current;if(!H)return;H.style.height="auto";let V=H.scrollHeight;if(fd(t.autoSize)){const{maxHeight:G,minHeight:ee}=t.autoSize;G&&(V=Math.min(V,G)),ee&&(V=Math.max(V,ee))}V&&(H.style.height=`${V}px`)};W.useEffect(()=>{N()},[h]);const z=W.useMemo(()=>ch("control",[{"min-height":!t.autoSize,clear:t.clearable}]),[t.autoSize]),M=H=>{var V;let G=H;c.current||ea(E)&&G.length>+E&&(G=G.slice(0,E),(V=t.onOverlimit)===null||V===void 0||V.call(t)),m(G)},I=H=>{var V;l(!0),(V=t.onFocus)===null||V===void 0||V.call(t,H),k&&R()},Y=H=>{var V;l(!1),(V=t.onBlur)===null||V===void 0||V.call(t,H),hD()},B=()=>{if(A){const H=(h?`${h}`:"").length;return Q("div",Object.assign({className:Re(ch("word-limit"))},{children:typeof A=="function"?A({currentCount:H,maxLength:E}):Be(nn,{children:[Q("span",Object.assign({className:Re(ch("word-num"))},{children:H})),E?`/${E}`:!1]})}))}return null},U=H=>{var V;m(""),(V=t.onClear)===null||V===void 0||V.call(t,H)},P=W.useMemo(()=>{if(t.clearable&&!k){const H=h!=="",V=t.clearTrigger==="always"||t.clearTrigger==="focus"&&i;return H&&V}return!1},[h,t.clearTrigger,i]);return Be("div",Object.assign({className:Re(ch(),d),style:g},{children:[Q("textarea",{ref:f,name:C,rows:b,className:Re(z),value:h,disabled:_,autoFocus:T,readOnly:k,placeholder:x||"",onBlur:Y,onFocus:I,onChange:H=>{var V;return M((V=H==null?void 0:H.currentTarget)===null||V===void 0?void 0:V.value)},onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,autoComplete:t.autoComplete,onCompositionStart:H=>{var V;c.current=!0,(V=t.onCompositionStart)===null||V===void 0||V.call(t,H)},onCompositionEnd:H=>{var V,G;c.current=!1,(V=t.onCompositionEnd)===null||V===void 0||V.call(t,H),M((G=H==null?void 0:H.currentTarget)===null||G===void 0?void 0:G.value)},onClick:t.onClick}),P&&W.cloneElement(t.clearIcon,{className:Re(ch("clear")),onTouchStart:U}),B()]}))}),ZZ="",XZ="",cu=Object.assign(bU,{TextArea:CU}),[Pi]=wn("field"),wU=W.forwardRef((e,r)=>{var t;const i=ta(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",formatTrigger:"onChange",defaultValue:""}),l=W.useRef(null),f=W.useRef(null),c=i.type==="textarea"?f:l,h=()=>{c.current&&c.current.focus()},m=()=>{c.current&&c.current.blur()},d=()=>{c.current&&c.current.clear()};W.useImperativeHandle(r,()=>({focus:h,blur:m,clear:d,get nativeElement(){return c.current.nativeElement}}));const g=q=>ea(i[q])?i[q]:null,C=()=>{const q=g("labelWidth");return q?{width:dl(q)}:{}},b=(q,te="onChange")=>{const{formatTrigger:oe,formatter:ae}=i;return ae&&te===oe?ae(q):q},x=q=>{var te;(te=i.onChange)===null||te===void 0||te.call(i,b(q))},_=()=>{const{value:q,defaultValue:te,align:oe,type:ae,placeholder:fe,name:ve,maxLength:xe,disabled:se,readOnly:ke,clearable:De,clearIcon:Pe,clearTrigger:ge,autoFocus:$e,onClear:Me,onBlur:et,onFocus:ut,onKeyPress:Xt,onOverlimit:Mt}=i;if(ea(i.children))return Q("div",Object.assign({className:Re(Pi("children"))},{children:i.children}));const Mn={value:q,onChange:x,placeholder:fe,name:ve,defaultValue:te,disabled:se,clearable:De,clearIcon:Pe,clearTrigger:ge,onClear:Me,onBlur:et,onFocus:ut,onKeyPress:Xt,onOverlimit:Mt,autoFocus:$e,readOnly:ke,maxLength:xe,onClick:i.onClickInput};return ae==="textarea"?Q(cu.TextArea,Object.assign({ref:f,autoSize:i.autoSize,showWordLimit:i.showWordLimit,rows:i.rows},Mn)):Q(cu,Object.assign({ref:l,type:ae,align:oe},Mn))},k=()=>{const{leftIcon:q,onClickLeftIcon:te}=i;return q?Q("div",Object.assign({className:Re(Pi("left-icon")),onClick:te},{children:q})):null},E=()=>{const{rightIcon:q,onClickRightIcon:te}=i;return q?Q("div",Object.assign({className:Re(Pi("right-icon")),onClick:te},{children:q})):null},A=()=>{const q=i.errorMessage;return q?Q("div",Object.assign({className:Re(Pi("error-message"))},{children:q})):null},T=()=>i.intro?Q("div",Object.assign({className:Re(Pi("intro"))},{children:i.intro})):null,D=()=>{const{tooltip:q}=i;if(q){let te=Q($z,{}),oe={message:q};if(!(W.isValidElement(q)||typeof q=="string")){const ae=q,{icon:fe}=ae,ve=$a(ae,["icon"]);te=fe||te,oe=ve}return Q("div",Object.assign({className:Re(Pi("tooltip")),onClick:()=>xU.show(oe)},{children:te}))}return null},R=()=>{const{label:q,colon:te}=i;return q?Be(nn,{children:[q,!!te&&":",D()]}):null},{size:N,center:z,border:M,isLink:I,required:Y,clickable:B,labelAlign:U,className:P,labelClass:H,valueClass:V,controlAlign:G,arrowDirection:ee,disabled:ne,titleStyle:$,error:X}=i,Z=(t=i.suffix)!==null&&t!==void 0?t:i.button;return Be(MD,Object.assign({title:R(),size:N,icon:k(),center:z,border:M,isLink:I,required:Y,clickable:B,extra:i.extra,titleStyle:Object.assign(Object.assign({},C()),$),valueClass:Re(Pi("value",[G]),V),titleClass:Re(Pi("label",U),H),arrowDirection:ee,onClick:i.onClick,style:i.style,className:Re(Pi({error:X,disabled:ne,[`label-${U}`]:U}),P)},{children:[Be("div",Object.assign({className:Re(Pi("body"))},{children:[i.prefix&&Q("div",Object.assign({className:Re(Pi("prefix"))},{children:i.prefix})),Q("div",Object.assign({className:Re(Pi("control-wrapper"))},{children:_()})),E(),Z&&Q("div",Object.assign({className:Re(Pi("suffix"))},{children:Z}))]})),A(),T()]}))}),_U=Symbol("field"),lC=Object.assign(wU,{[Ez]:_U});function SU(e,r,t){return Math.max(r,Math.min(e,t))}const Da={toVector(e,r){return e===void 0&&(e=r),Array.isArray(e)?e:[e,e]},add(e,r){return[e[0]+r[0],e[1]+r[1]]},sub(e,r){return[e[0]-r[0],e[1]-r[1]]},addTo(e,r){e[0]+=r[0],e[1]+=r[1]},subTo(e,r){e[0]-=r[0],e[1]-=r[1]}};function ZD(e,r,t){return r===0||Math.abs(r)===1/0?Math.pow(e,t*5):e*r*t/(r+t*e)}function XD(e,r,t,i=.15){return i===0?SU(e,r,t):e<r?-ZD(r-e,t-r,i)+r:e>t?+ZD(e-t,t-r,i)+t:e}function EU(e,[r,t],[i,l]){const[[f,c],[h,m]]=e;return[XD(r,f,c,i),XD(t,h,m,l)]}function si(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function JD(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function ar(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?JD(Object(t),!0).forEach(function(i){si(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):JD(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}const ek={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 tk(e){return e?e[0].toUpperCase()+e.slice(1):""}const DU=["enter","leave"];function kU(e=!1,r){return e&&!DU.includes(r)}function TU(e,r="",t=!1){const i=ek[e],l=i&&i[r]||r;return"on"+tk(e)+tk(l)+(kU(t,l)?"Capture":"")}const AU=["gotpointercapture","lostpointercapture"];function OU(e){let r=e.substring(2).toLowerCase();const t=!!~r.indexOf("passive");t&&(r=r.replace("passive",""));const i=AU.includes(r)?"capturecapture":"capture",l=!!~r.indexOf(i);return l&&(r=r.replace("capture","")),{device:r,capture:l,passive:t}}function RU(e,r=""){const t=ek[e],i=t&&t[r]||r;return e+i}function Ig(e){return"touches"in e}function nk(e){return Ig(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function FU(e){return Array.from(e.touches).filter(r=>{var t,i;return r.target===e.currentTarget||((t=e.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,r.target))})}function NU(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function rk(e){return Ig(e)?NU(e)[0]:e}function MU(e){return FU(e).map(r=>r.identifier)}function sC(e){const r=rk(e);return Ig(e)?r.identifier:r.pointerId}function ak(e){const r=rk(e);return[r.clientX,r.clientY]}function PU(e){const r={};if("buttons"in e&&(r.buttons=e.buttons),"shiftKey"in e){const{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f}=e;Object.assign(r,{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f})}return r}function Hg(e,...r){return typeof e=="function"?e(...r):e}function BU(){}function LU(...e){return e.length===0?BU:e.length===1?e[0]:function(){let r;for(const t of e)r=t.apply(this,arguments)||r;return r}}function ik(e,r){return Object.assign({},r,e||{})}const zU=32;class UU{constructor(r,t,i){this.ctrl=r,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:t,ingKey:i,args:l}=this;t[i]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=l,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=r.target,t.currentTarget=r.currentTarget,t.lastOffset=i.from?Hg(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=r.timeStamp}computeValues(r){const t=this.state;t._values=r,t.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:t,config:i,shared:l}=this;t.args=this.args;let f=0;if(r&&(t.event=r,i.preventDefault&&r.cancelable&&t.event.preventDefault(),t.type=r.type,l.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,l.locked=!!document.pointerLockElement,Object.assign(l,PU(r)),l.down=l.pressed=l.buttons%2===1||l.touches>0,f=r.timeStamp-t.timeStamp,t.timeStamp=r.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const z=t._delta.map(Math.abs);Da.addTo(t._distance,z)}this.axisIntent&&this.axisIntent(r);const[c,h]=t._movement,[m,d]=i.threshold,{_step:g,values:C}=t;if(i.hasCustomTransform?(g[0]===!1&&(g[0]=Math.abs(c)>=m&&C[0]),g[1]===!1&&(g[1]=Math.abs(h)>=d&&C[1])):(g[0]===!1&&(g[0]=Math.abs(c)>=m&&Math.sign(c)*m),g[1]===!1&&(g[1]=Math.abs(h)>=d&&Math.sign(h)*d)),t.intentional=g[0]!==!1||g[1]!==!1,!t.intentional)return;const b=[0,0];if(i.hasCustomTransform){const[z,M]=C;b[0]=g[0]!==!1?z-g[0]:0,b[1]=g[1]!==!1?M-g[1]:0}else b[0]=g[0]!==!1?c-g[0]:0,b[1]=g[1]!==!1?h-g[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(b);const x=t.offset,_=t._active&&!t._blocked||t.active;_&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=l[this.ingKey]=t._active,r&&(t.first&&("bounds"in i&&(t._bounds=Hg(i.bounds,t)),this.setup&&this.setup()),t.movement=b,this.computeOffset()));const[k,E]=t.offset,[[A,T],[D,R]]=t._bounds;t.overflow=[k<A?-1:k>T?1:0,E<D?-1:E>R?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 N=t._active?i.rubberband||[0,0]:[0,0];if(t.offset=EU(t._bounds,t.offset,N),t.delta=Da.sub(t.offset,x),this.computeMovement(),_&&(!t.last||f>zU)){t.delta=Da.sub(t.offset,x);const z=t.delta.map(Math.abs);Da.addTo(t.distance,z),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&f>0&&(t.velocity=[z[0]/f,z[1]/f])}}emit(){const r=this.state,t=this.shared,i=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!i.triggerAllEvents)return;const l=this.handler(ar(ar(ar({},t),r),{},{[this.aliasKey]:r.values}));l!==void 0&&(r.memo=l)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function jU([e,r],t){const i=Math.abs(e),l=Math.abs(r);if(i>l&&i>t)return"x";if(l>i&&l>t)return"y"}class IU extends UU{constructor(...r){super(...r),si(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=Da.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Da.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const t=this.state,i=this.config;if(!t.axis&&r){const l=typeof i.axisThreshold=="object"?i.axisThreshold[nk(r)]:i.axisThreshold;t.axis=jU(t._movement,l)}t._blocked=(i.lockDirection||!!i.axis)&&!t.axis||!!i.axis&&i.axis!==t.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const ok=e=>e,lk=.15,uC={enabled(e=!0){return e},eventOptions(e,r,t){return ar(ar({},t.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[lk,lk];case!1:return[0,0];default:return Da.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Da.toVector(e)},transform(e,r,t){const i=e||t.shared.transform;if(this.hasCustomTransform=!!i,process.env.NODE_ENV==="development"){const l=i||ok;return f=>{const c=l(f);return!isFinite(c[0])||isFinite(c[1]),c}}return i||ok},threshold(e){return Da.toVector(e,0)}};process.env.NODE_ENV==="development"&&Object.assign(uC,{domTarget(e){if(e!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(e){if(e!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(e){if(e!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const HU=0,fh=ar(ar({},uC),{},{axis(e,r,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(e=HU){return e},bounds(e={}){if(typeof e=="function")return f=>fh.bounds(e(f));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:r=-1/0,right:t=1/0,top:i=-1/0,bottom:l=1/0}=e;return[[r,t],[i,l]]}}),Vg=10,sk={ArrowRight:(e=1)=>[Vg*e,0],ArrowLeft:(e=1)=>[-Vg*e,0],ArrowUp:(e=1)=>[0,-Vg*e],ArrowDown:(e=1)=>[0,Vg*e]};class VU extends IU{constructor(...r){super(...r),si(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const t=r._bounds.getBoundingClientRect(),i=r.currentTarget.getBoundingClientRect(),l={left:t.left-i.left+r.offset[0],right:t.right-i.right+r.offset[0],top:t.top-i.top+r.offset[1],bottom:t.bottom-i.bottom+r.offset[1]};r._bounds=fh.bounds(l)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const t=this.config,i=this.state;if(r.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(r.buttons):t.pointerButtons!==-1&&t.pointerButtons!==r.buttons))return;const l=this.ctrl.setEventIds(r);t.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(l&&l.size>1&&i._pointerActive)&&(this.start(r),this.setupPointer(r),i._pointerId=sC(r),i._pointerActive=!0,this.computeValues(ak(r)),this.computeInitial(),t.preventScrollAxis&&nk(r)!=="mouse"?(i._active=!1,this.setupScrollPrevention(r)):t.delay>0?(this.setupDelayTrigger(r),t.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const t=this.state,i=this.config;if(!t._pointerActive||t.type===r.type&&r.timeStamp===t.timeStamp)return;const l=sC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;const f=ak(r);if(document.pointerLockElement===r.target?t._delta=[r.movementX,r.movementY]:(t._delta=Da.sub(f,t._values),this.computeValues(f)),Da.addTo(t._movement,t._delta),this.compute(r),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(r);return}if(i.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{process.env.NODE_ENV}const t=this.state,i=this.config;if(!t._active||!t._pointerActive)return;const l=sC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[f,c]=t._distance;if(t.tap=f<=i.tapsThreshold&&c<=i.tapsThreshold,t.tap&&i.filterTaps)t._force=!0;else{const[h,m]=t.direction,[d,g]=t.velocity,[C,b]=t.movement,[x,_]=i.swipe.velocity,[k,E]=i.swipe.distance,A=i.swipe.duration;t.elapsedTime<A&&(Math.abs(d)>x&&Math.abs(C)>k&&(t.swipe[0]=h),Math.abs(g)>_&&Math.abs(b)>E&&(t.swipe[1]=m))}this.emit()}pointerClick(r){this.state.tap||(r.preventDefault(),r.stopPropagation())}setupPointer(r){const t=this.config,i=t.device;if(process.env.NODE_ENV==="development")try{if(i==="pointer"&&t.preventScrollDelay===void 0){const l="uv"in r?r.sourceEvent.currentTarget:r.currentTarget;window.getComputedStyle(l).touchAction}}catch{}t.pointerLock&&r.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,$U(r);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,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const t=sk[r.key];if(t){const i=this.state,l=r.shiftKey?10:r.altKey?.1:1;this.start(r),i._delta=t(l),i._keyboardActive=!0,Da.addTo(i._movement,i._delta),this.compute(r),this.emit()}}keyUp(r){r.key in sk&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const t=this.config.device;r(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(t,"change",this.pointerMove.bind(this)),r(t,"end",this.pointerUp.bind(this)),r(t,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function $U(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const dh=typeof window<"u"&&window.document&&window.document.createElement;function YU(){return dh&&"ontouchstart"in window}function uk(){return YU()||dh&&window.navigator.maxTouchPoints>1}function qU(){return dh&&"onpointerdown"in window}function GU(){return dh&&"exitPointerLock"in window.document}function KU(){try{return"constructor"in GestureEvent}catch{return!1}}const eo={isBrowser:dh,gesture:KU(),touch:uk(),touchscreen:uk(),pointer:qU(),pointerLock:GU()},WU=250,QU=180,ZU=.5,XU=50,JU=250,ck={mouse:0,touch:0,pen:8},fk=ar(ar({},fh),{},{device(e,r,{pointer:{touch:t=!1,lock:i=!1,mouse:l=!1}={}}){return this.pointerLock=i&&eo.pointerLock,eo.touch&&t?"touch":this.pointerLock?"mouse":eo.pointer&&!l?"pointer":eo.touch?"touch":"mouse"},preventScrollAxis(e,r,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&e?WU:void 0,!(!eo.touchscreen||t===!1))return e||(t!==void 0?"y":void 0)},pointerCapture(e,r,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},keys(e=!0){return e},threshold(e,r,{filterTaps:t=!1,tapsThreshold:i=3,axis:l=void 0}){const f=Da.toVector(e,t?i:l?1:0);return this.filterTaps=t,this.tapsThreshold=i,f},swipe({velocity:e=ZU,distance:r=XU,duration:t=JU}={}){return{velocity:this.transform(Da.toVector(e)),distance:this.transform(Da.toVector(r)),duration:t}},delay(e=0){switch(e){case!0:return QU;case!1:return 0;default:return e}},axisThreshold(e){return e?ar(ar({},ck),e):ck}});process.env.NODE_ENV==="development"&&Object.assign(fk,{useTouch(e){if(e!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(e){if(e!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}}),ar(ar({},uC),{},{device(e,r,{shared:t,pointer:{touch:i=!1}={}}){if(t.target&&!eo.touch&&eo.gesture)return"gesture";if(eo.touch&&i)return"touch";if(eo.touchscreen){if(eo.pointer)return"pointer";if(eo.touch)return"touch"}},bounds(e,r,{scaleBounds:t={},angleBounds:i={}}){const l=c=>{const h=ik(Hg(t,c),{min:-1/0,max:1/0});return[h.min,h.max]},f=c=>{const h=ik(Hg(i,c),{min:-1/0,max:1/0});return[h.min,h.max]};return typeof t!="function"&&typeof i!="function"?[l(),f()]:c=>[l(c),f(c)]},threshold(e,r,t){return this.lockDirection=t.axis==="lock",Da.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e}}),ar(ar({},fh),{},{mouseOnly:(e=!0)=>e}),ar(ar({},fh),{},{mouseOnly:(e=!0)=>e});const dk=new Map,cC=new Map;function ej(e){dk.set(e.key,e.engine),cC.set(e.key,e.resolver)}const tj={key:"drag",engine:VU,resolver:fk};function nj(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function rj(e,r){if(e==null)return{};var t=nj(e,r),i,l;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(l=0;l<f.length;l++)i=f[l],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}const aj={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=eo.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:r=!1}={}){return{passive:e,capture:r}},transform(e){return e}},ij=["target","eventOptions","window","enabled","transform"];function $g(e={},r){const t={};for(const[i,l]of Object.entries(r))switch(typeof l){case"function":if(process.env.NODE_ENV==="development"){const f=l.call(t,e[i],i,e);Number.isNaN(f)||(t[i]=f)}else t[i]=l.call(t,e[i],i,e);break;case"object":t[i]=$g(e[i],l);break;case"boolean":l&&(t[i]=e[i]);break}return t}function oj(e,r){const t=e,{target:i,eventOptions:l,window:f,enabled:c,transform:h}=t,m=rj(t,ij),d={shared:$g({target:i,eventOptions:l,window:f,enabled:c,transform:h},aj)};if(r){const g=cC.get(r);d[r]=$g(ar({shared:d.shared},m),g)}else for(const g in m){const C=cC.get(g);if(C)d[g]=$g(ar({shared:d.shared},m[g]),C);else if(process.env.NODE_ENV==="development"&&!["drag","pinch","scroll","wheel","move","hover"].includes(g)&&g==="domTarget")throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.")}return d}class pk{constructor(r,t){si(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=t}add(r,t,i,l,f){const c=this._listeners,h=RU(t,i),m=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},d=ar(ar({},m),f);r.addEventListener(h,l,d);const g=()=>{r.removeEventListener(h,l,d),c.delete(g)};return c.add(g),g}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class lj{constructor(){si(this,"_timeouts",new Map)}add(r,t,i=140,...l){this.remove(r),this._timeouts.set(r,window.setTimeout(t,i,...l))}remove(r){const t=this._timeouts.get(r);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}let sj=class{constructor(r){si(this,"gestures",new Set),si(this,"_targetEventStore",new pk(this)),si(this,"gestureEventStores",{}),si(this,"gestureTimeoutStores",{}),si(this,"handlers",{}),si(this,"config",{}),si(this,"pointerIds",new Set),si(this,"touchIds",new Set),si(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),uj(this,r)}setEventIds(r){if(Ig(r))return this.touchIds=new Set(MU(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,t){this.handlers=r,this.nativeHandlers=t}applyConfig(r,t){this.config=oj(r,t)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const t=this.config.shared,i={};let l;if(!(t.target&&(l=t.target(),!l))){if(t.enabled){for(const c of this.gestures){const h=this.config[c],m=hk(i,h.eventOptions,!!l);if(h.enabled){const d=dk.get(c);new d(this,r,c).bind(m)}}const f=hk(i,t.eventOptions,!!l);for(const c in this.nativeHandlers)f(c,"",h=>this.nativeHandlers[c](ar(ar({},this.state.shared),{},{event:h,args:r})),void 0,!0)}for(const f in i)i[f]=LU(...i[f]);if(!l)return i;for(const f in i){const{device:c,capture:h,passive:m}=OU(f);this._targetEventStore.add(l,c,"",i[f],{capture:h,passive:m})}}}};function yd(e,r){e.gestures.add(r),e.gestureEventStores[r]=new pk(e,r),e.gestureTimeoutStores[r]=new lj}function uj(e,r){r.drag&&yd(e,"drag"),r.wheel&&yd(e,"wheel"),r.scroll&&yd(e,"scroll"),r.move&&yd(e,"move"),r.pinch&&yd(e,"pinch"),r.hover&&yd(e,"hover")}const hk=(e,r,t)=>(i,l,f,c={},h=!1)=>{var m,d;const g=(m=c.capture)!==null&&m!==void 0?m:r.capture,C=(d=c.passive)!==null&&d!==void 0?d:r.passive;let b=h?i:TU(i,l,g);t&&C&&(b+="Passive"),e[b]=e[b]||[],e[b].push(f)};function cj(e,r={},t,i){const l=W.useMemo(()=>new sj(e),[]);if(l.applyHandlers(e,i),l.applyConfig(r,t),W.useEffect(l.effect.bind(l)),W.useEffect(()=>l.clean.bind(l),[]),r.target===void 0)return l.bind.bind(l)}function fj(e,r){return ej(tj),cj({drag:e},r||{},"drag")}var fC=hh(),Nt=e=>ph(e,fC),dC=hh();Nt.write=e=>ph(e,dC);var Yg=hh();Nt.onStart=e=>ph(e,Yg);var pC=hh();Nt.onFrame=e=>ph(e,pC);var hC=hh();Nt.onFinish=e=>ph(e,hC);var xd=[];Nt.setTimeout=(e,r)=>{const t=Nt.now()+r,i=()=>{const f=xd.findIndex(c=>c.cancel==i);~f&&xd.splice(f,1),du-=~f?1:0},l={time:t,handler:e,cancel:i};return xd.splice(vk(t),0,l),du+=1,mk(),l};var vk=e=>~(~xd.findIndex(r=>r.time>e)||~xd.length);Nt.cancel=e=>{Yg.delete(e),pC.delete(e),hC.delete(e),fC.delete(e),dC.delete(e)},Nt.sync=e=>{mC=!0,Nt.batchedUpdates(e),mC=!1},Nt.throttle=e=>{let r;function t(){try{e(...r)}finally{r=null}}function i(...l){r=l,Nt.onStart(t)}return i.handler=e,i.cancel=()=>{Yg.delete(t),r=null},i};var vC=typeof window<"u"?window.requestAnimationFrame:()=>{};Nt.use=e=>vC=e,Nt.now=typeof performance<"u"?()=>performance.now():Date.now,Nt.batchedUpdates=e=>e(),Nt.catch=console.error,Nt.frameLoop="always",Nt.advance=()=>{Nt.frameLoop!=="demand"||yk()};var fu=-1,du=0,mC=!1;function ph(e,r){mC?(r.delete(e),e(0)):(r.add(e),mk())}function mk(){fu<0&&(fu=0,Nt.frameLoop!=="demand"&&vC(gk))}function dj(){fu=-1}function gk(){~fu&&(vC(gk),Nt.batchedUpdates(yk))}function yk(){const e=fu;fu=Nt.now();const r=vk(fu);if(r&&(xk(xd.splice(0,r),t=>t.handler()),du-=r),!du){dj();return}Yg.flush(),fC.flush(e?Math.min(64,fu-e):16.667),pC.flush(),dC.flush(),hC.flush()}function hh(){let e=new Set,r=e;return{add(t){du+=r==e&&!e.has(t)?1:0,e.add(t)},delete(t){return du-=r==e&&e.has(t)?1:0,e.delete(t)},flush(t){r.size&&(e=new Set,du-=r.size,xk(r,i=>i(t)&&e.add(i)),du+=e.size,r=e)}}}function xk(e,r){e.forEach(t=>{try{r(t)}catch(i){Nt.catch(i)}})}var pj=Object.defineProperty,hj=(e,r)=>{for(var t in r)pj(e,t,{get:r[t],enumerable:!0})},wo={};hj(wo,{assign:()=>mj,colors:()=>pu,createStringInterpolator:()=>xC,skipAnimation:()=>Ck,to:()=>bk,willAdvance:()=>bC});function gC(){}var vj=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),Ge={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 us(e,r){if(Ge.arr(e)){if(!Ge.arr(r)||e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}return e===r}var Qt=(e,r)=>e.forEach(r);function hl(e,r,t){if(Ge.arr(e)){for(let i=0;i<e.length;i++)r.call(t,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&r.call(t,e[i],i)}var Bi=e=>Ge.und(e)?[]:Ge.arr(e)?e:[e];function vh(e,r){if(e.size){const t=Array.from(e);e.clear(),Qt(t,r)}}var mh=(e,...r)=>vh(e,t=>t(...r)),yC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),xC,bk,pu=null,Ck=!1,bC=gC,mj=e=>{e.to&&(bk=e.to),e.now&&(Nt.now=e.now),e.colors!==void 0&&(pu=e.colors),e.skipAnimation!=null&&(Ck=e.skipAnimation),e.createStringInterpolator&&(xC=e.createStringInterpolator),e.requestAnimationFrame&&Nt.use(e.requestAnimationFrame),e.batchedUpdates&&(Nt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(bC=e.willAdvance),e.frameLoop&&(Nt.frameLoop=e.frameLoop)},gh=new Set,to=[],CC=[],qg=0,Gg={get idle(){return!gh.size&&!to.length},start(e){qg>e.priority?(gh.add(e),Nt.onStart(gj)):(wk(e),Nt(wC))},advance:wC,sort(e){if(qg)Nt.onFrame(()=>Gg.sort(e));else{const r=to.indexOf(e);~r&&(to.splice(r,1),_k(e))}},clear(){to=[],gh.clear()}};function gj(){gh.forEach(wk),gh.clear(),Nt(wC)}function wk(e){to.includes(e)||_k(e)}function _k(e){to.splice(yj(to,r=>r.priority>e.priority),0,e)}function wC(e){const r=CC;for(let t=0;t<to.length;t++){const i=to[t];qg=i.priority,i.idle||(bC(i),i.advance(e),i.idle||r.push(i))}return qg=0,CC=to,CC.length=0,to=r,to.length>0}function yj(e,r){const t=e.findIndex(r);return t<0?e.length:t}var xj=(e,r,t)=>Math.min(Math.max(t,e),r),bj={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},_o="[-+]?\\d*\\.?\\d+",Kg=_o+"%";function Wg(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Cj=new RegExp("rgb"+Wg(_o,_o,_o)),wj=new RegExp("rgba"+Wg(_o,_o,_o,_o)),_j=new RegExp("hsl"+Wg(_o,Kg,Kg)),Sj=new RegExp("hsla"+Wg(_o,Kg,Kg,_o)),Ej=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,kj=/^#([0-9a-fA-F]{6})$/,Tj=/^#([0-9a-fA-F]{8})$/;function Aj(e){let r;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(r=kj.exec(e))?parseInt(r[1]+"ff",16)>>>0:pu&&pu[e]!==void 0?pu[e]:(r=Cj.exec(e))?(bd(r[1])<<24|bd(r[2])<<16|bd(r[3])<<8|255)>>>0:(r=wj.exec(e))?(bd(r[1])<<24|bd(r[2])<<16|bd(r[3])<<8|Dk(r[4]))>>>0:(r=Ej.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=Tj.exec(e))?parseInt(r[1],16)>>>0:(r=Dj.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=_j.exec(e))?(Sk(Ek(r[1]),Qg(r[2]),Qg(r[3]))|255)>>>0:(r=Sj.exec(e))?(Sk(Ek(r[1]),Qg(r[2]),Qg(r[3]))|Dk(r[4]))>>>0:null}function _C(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(r-e)*6*t:t<1/2?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function Sk(e,r,t){const i=t<.5?t*(1+r):t+r-t*r,l=2*t-i,f=_C(l,i,e+1/3),c=_C(l,i,e),h=_C(l,i,e-1/3);return Math.round(f*255)<<24|Math.round(c*255)<<16|Math.round(h*255)<<8}function bd(e){const r=parseInt(e,10);return r<0?0:r>255?255:r}function Ek(e){return(parseFloat(e)%360+360)%360/360}function Dk(e){const r=parseFloat(e);return r<0?0:r>1?255:Math.round(r*255)}function Qg(e){const r=parseFloat(e);return r<0?0:r>100?1:r/100}function kk(e){let r=Aj(e);if(r===null)return e;r=r||0;const t=(r&4278190080)>>>24,i=(r&16711680)>>>16,l=(r&65280)>>>8,f=(r&255)/255;return`rgba(${t}, ${i}, ${l}, ${f})`}var yh=(e,r,t)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return yh({range:e,output:r,extrapolate:t});if(Ge.str(e.output[0]))return xC(e);const i=e,l=i.output,f=i.range||[0,1],c=i.extrapolateLeft||i.extrapolate||"extend",h=i.extrapolateRight||i.extrapolate||"extend",m=i.easing||(d=>d);return d=>{const g=Rj(d,f);return Oj(d,f[g],f[g+1],l[g],l[g+1],m,c,h,i.map)}};function Oj(e,r,t,i,l,f,c,h,m){let d=m?m(e):e;if(d<r){if(c==="identity")return d;c==="clamp"&&(d=r)}if(d>t){if(h==="identity")return d;h==="clamp"&&(d=t)}return i===l?i:r===t?e<=r?i:l:(r===-1/0?d=-d:t===1/0?d=d-r:d=(d-r)/(t-r),d=f(d),i===-1/0?d=-d:l===1/0?d=d+i:d=d*(l-i)+i,d)}function Rj(e,r){for(var t=1;t<r.length-1&&!(r[t]>=e);++t);return t-1}var Fj=(e,r="end")=>t=>{t=r==="end"?Math.min(t,.999):Math.max(t,.001);const i=t*e,l=r==="end"?Math.floor(i):Math.ceil(i);return xj(0,1,l/e)},Zg=1.70158,Xg=Zg*1.525,Tk=Zg+1,Ak=2*Math.PI/3,Ok=2*Math.PI/4.5,Jg=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,Nj={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=>Tk*e*e*e-Zg*e*e,easeOutBack:e=>1+Tk*Math.pow(e-1,3)+Zg*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xg+1)*2*e-Xg)/2:(Math.pow(2*e-2,2)*((Xg+1)*(e*2-2)+Xg)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Ak),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Ak)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ok))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ok)/2+1,easeInBounce:e=>1-Jg(1-e),easeOutBounce:Jg,easeInOutBounce:e=>e<.5?(1-Jg(1-2*e))/2:(1+Jg(2*e-1))/2,steps:Fj},xh=Symbol.for("FluidValue.get"),Cd=Symbol.for("FluidValue.observers"),no=e=>Boolean(e&&e[xh]),ui=e=>e&&e[xh]?e[xh]():e,Rk=e=>e[Cd]||null;function Mj(e,r){e.eventObserved?e.eventObserved(r):e(r)}function bh(e,r){const t=e[Cd];t&&t.forEach(i=>{Mj(i,r)})}var Fk=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Pj(this,e)}},Pj=(e,r)=>Nk(e,xh,r);function wd(e,r){if(e[xh]){let t=e[Cd];t||Nk(e,Cd,t=new Set),t.has(r)||(t.add(r),e.observerAdded&&e.observerAdded(t.size,r))}return r}function Ch(e,r){const t=e[Cd];if(t&&t.has(r)){const i=t.size-1;i?t.delete(r):e[Cd]=null,e.observerRemoved&&e.observerRemoved(i,r)}}var Nk=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),ey=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Bj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Mk=new RegExp(`(${ey.source})(%|[a-z]+)`,"i"),Lj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ty=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Pk=e=>{const[r,t]=zj(e);if(!r||yC())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(i)return i.trim();if(t&&t.startsWith("--")){const l=window.getComputedStyle(document.documentElement).getPropertyValue(t);return l||e}else{if(t&&ty.test(t))return Pk(t);if(t)return t}return e},zj=e=>{const r=ty.exec(e);if(!r)return[,];const[,t,i]=r;return[t,i]},SC,Uj=(e,r,t,i,l)=>`rgba(${Math.round(r)}, ${Math.round(t)}, ${Math.round(i)}, ${l})`,Bk=e=>{SC||(SC=pu?new RegExp(`(${Object.keys(pu).join("|")})(?!\\w)`,"g"):/^\b$/);const r=e.output.map(f=>ui(f).replace(ty,Pk).replace(Bj,kk).replace(SC,kk)),t=r.map(f=>f.match(ey).map(Number)),l=t[0].map((f,c)=>t.map(h=>{if(!(c in h))throw Error('The arity of each "output" value must be equal');return h[c]})).map(f=>yh({...e,output:f}));return f=>{var m;const c=!Mk.test(r[0])&&((m=r.find(d=>Mk.test(d)))==null?void 0:m.replace(ey,""));let h=0;return r[0].replace(ey,()=>`${l[h++](f)}${c||""}`).replace(Lj,Uj)}},EC="react-spring: ",Lk=e=>{const r=e;let t=!1;if(typeof r!="function")throw new TypeError(`${EC}once requires a function parameter`);return(...i)=>{t||(r(...i),t=!0)}},jj=Lk(console.warn);function Ij(){jj(`${EC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Hj=Lk(console.warn);function Vj(){Hj(`${EC}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 ny(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!yC()&&ty.test(e)||e in(pu||{}))}var DC=yC()?W.useEffect:W.useLayoutEffect,$j=()=>{const e=W.useRef(!1);return DC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function zk(){const e=W.useState()[1],r=$j();return()=>{r.current&&e(Math.random())}}function Yj(e,r){const[t]=W.useState(()=>({inputs:r,result:e()})),i=W.useRef(),l=i.current;let f=l;return f?Boolean(r&&f.inputs&&qj(r,f.inputs))||(f={inputs:r,result:e()}):f=t,W.useEffect(()=>{i.current=f,l==t&&(t.inputs=t.result=void 0)},[f]),f.result}function qj(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Uk=e=>W.useEffect(e,Gj),Gj=[];function jk(e){const r=W.useRef();return W.useEffect(()=>{r.current=e}),r.current}var wh=Symbol.for("Animated:node"),Kj=e=>!!e&&e[wh]===e,vl=e=>e&&e[wh],kC=(e,r)=>vj(e,wh,r),ry=e=>e&&e[wh]&&e[wh].getPayload(),Ik=class{constructor(){kC(this,this)}getPayload(){return this.payload||[]}},_h=class extends Ik{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _h(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,r){return Ge.num(e)&&(this.lastPosition=e,r&&(e=Math.round(e/r)*r,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Sh=class extends _h{constructor(e){super(0),this._string=null,this._toString=yh({output:[e,e]})}static create(e){return new Sh(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ge.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=yh({output:[this.getValue(),e]})),this._value=0,super.reset()}},ay={dependencies:null},iy=class extends Ik{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const r={};return hl(this.source,(t,i)=>{Kj(t)?r[i]=t.getValue(e):no(t)?r[i]=ui(t):e||(r[i]=t)}),r}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Qt(this.payload,e=>e.reset())}_makePayload(e){if(e){const r=new Set;return hl(e,this._addToPayload,r),Array.from(r)}}_addToPayload(e){ay.dependencies&&no(e)&&ay.dependencies.add(e);const r=ry(e);r&&Qt(r,t=>this.add(t))}},Hk=class extends iy{constructor(e){super(e)}static create(e){return new Hk(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const r=this.getPayload();return e.length==r.length?r.map((t,i)=>t.setValue(e[i])).some(Boolean):(super.setValue(e.map(Wj)),!0)}};function Wj(e){return(ny(e)?Sh:_h).create(e)}function TC(e){const r=vl(e);return r?r.constructor:Ge.arr(e)?Hk:ny(e)?Sh:_h}var Vk=(e,r)=>{const t=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return W.forwardRef((i,l)=>{const f=W.useRef(null),c=t&&W.useCallback(_=>{f.current=Xj(l,_)},[l]),[h,m]=Zj(i,r),d=zk(),g=()=>{const _=f.current;if(t&&!_)return;(_?r.applyAnimatedValues(_,h.getValue(!0)):!1)===!1&&d()},C=new Qj(g,m),b=W.useRef();DC(()=>(b.current=C,Qt(m,_=>wd(_,C)),()=>{b.current&&(Qt(b.current.deps,_=>Ch(_,b.current)),Nt.cancel(b.current.update))})),W.useEffect(g,[]),Uk(()=>()=>{const _=b.current;Qt(_.deps,k=>Ch(k,_))});const x=r.getComponentProps(h.getValue());return Ne.createElement(e,{...x,ref:c})})},Qj=class{constructor(e,r){this.update=e,this.deps=r}eventObserved(e){e.type=="change"&&Nt.write(this.update)}};function Zj(e,r){const t=new Set;return ay.dependencies=t,e.style&&(e={...e,style:r.createAnimatedStyle(e.style)}),e=new iy(e),ay.dependencies=null,[e,t]}function Xj(e,r){return e&&(Ge.fun(e)?e(r):e.current=r),r}var $k=Symbol.for("AnimatedComponent"),Jj=(e,{applyAnimatedValues:r=()=>!1,createAnimatedStyle:t=l=>new iy(l),getComponentProps:i=l=>l}={})=>{const l={applyAnimatedValues:r,createAnimatedStyle:t,getComponentProps:i},f=c=>{const h=Yk(c)||"Anonymous";return Ge.str(c)?c=f[c]||(f[c]=Vk(c,l)):c=c[$k]||(c[$k]=Vk(c,l)),c.displayName=`Animated(${h})`,c};return hl(e,(c,h)=>{Ge.arr(e)&&(h=Yk(c)),f[h]=f(c)}),{animated:f}},Yk=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Mc(e,...r){return Ge.fun(e)?e(...r):e}var Eh=(e,r)=>e===!0||!!(r&&e&&(Ge.fun(e)?e(r):Bi(e).includes(r))),qk=(e,r)=>Ge.obj(e)?r&&e[r]:e,Gk=(e,r)=>e.default===!0?e[r]:e.default?e.default[r]:void 0,eI=e=>e,AC=(e,r=eI)=>{let t=tI;e.default&&e.default!==!0&&(e=e.default,t=Object.keys(e));const i={};for(const l of t){const f=r(e[l],l);Ge.und(f)||(i[l]=f)}return i},tI=["config","onProps","onStart","onChange","onPause","onResume","onRest"],nI={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 rI(e){const r={};let t=0;if(hl(e,(i,l)=>{nI[l]||(r[l]=i,t++)}),t)return r}function Kk(e){const r=rI(e);if(r){const t={to:r};return hl(e,(i,l)=>l in r||(t[l]=i)),t}return{...e}}function Dh(e){return e=ui(e),Ge.arr(e)?e.map(Dh):ny(e)?wo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function aI(e){for(const r in e)return!0;return!1}function OC(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}function iI(e,r){var t;(t=e.ref)==null||t.delete(e),r==null||r.delete(e)}function oI(e,r){var t;r&&e.ref!==r&&((t=e.ref)==null||t.delete(e),r.add(e),e.ref=r)}var lI={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}},RC={...lI.default,mass:1,damping:1,easing:Nj.linear,clamp:!1},sI=class{constructor(){this.velocity=0,Object.assign(this,RC)}};function uI(e,r,t){t&&(t={...t},Wk(t,r),r={...t,...r}),Wk(e,r),Object.assign(e,r);for(const c in RC)e[c]==null&&(e[c]=RC[c]);let{frequency:i,damping:l}=e;const{mass:f}=e;return Ge.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*f,e.friction=4*Math.PI*l*f/i),e}function Wk(e,r){if(!Ge.und(r.decay))e.duration=void 0;else{const t=!Ge.und(r.tension)||!Ge.und(r.friction);(t||!Ge.und(r.frequency)||!Ge.und(r.damping)||!Ge.und(r.mass))&&(e.duration=void 0,e.decay=void 0),t&&(e.frequency=void 0)}}var Qk=[],cI=class{constructor(){this.changed=!1,this.values=Qk,this.toValues=null,this.fromValues=Qk,this.config=new sI,this.immediate=!1}};function Zk(e,{key:r,props:t,defaultProps:i,state:l,actions:f}){return new Promise((c,h)=>{let m,d,g=Eh(t.cancel??(i==null?void 0:i.cancel),r);if(g)x();else{Ge.und(t.pause)||(l.paused=Eh(t.pause,r));let _=i==null?void 0:i.pause;_!==!0&&(_=l.paused||Eh(_,r)),m=Mc(t.delay||0,r),_?(l.resumeQueue.add(b),f.pause()):(f.resume(),b())}function C(){l.resumeQueue.add(b),l.timeouts.delete(d),d.cancel(),m=d.time-Nt.now()}function b(){m>0&&!wo.skipAnimation?(l.delayed=!0,d=Nt.setTimeout(x,m),l.pauseQueue.add(C),l.timeouts.add(d)):x()}function x(){l.delayed&&(l.delayed=!1),l.pauseQueue.delete(C),l.timeouts.delete(d),e<=(l.cancelId||0)&&(g=!0);try{f.start({...t,callId:e,cancel:g},c)}catch(_){h(_)}}})}var FC=(e,r)=>r.length==1?r[0]:r.some(t=>t.cancelled)?_d(e.get()):r.every(t=>t.noop)?Xk(e.get()):So(e.get(),r.every(t=>t.finished)),Xk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),So=(e,r,t=!1)=>({value:e,finished:r,cancelled:t}),_d=e=>({value:e,cancelled:!0,finished:!1});function Jk(e,r,t,i){const{callId:l,parentId:f,onRest:c}=r,{asyncTo:h,promise:m}=t;return!f&&e===h&&!r.reset?m:t.promise=(async()=>{t.asyncId=l,t.asyncTo=e;const d=AC(r,(E,A)=>A==="onRest"?void 0:E);let g,C;const b=new Promise((E,A)=>(g=E,C=A)),x=E=>{const A=l<=(t.cancelId||0)&&_d(i)||l!==t.asyncId&&So(i,!1);if(A)throw E.result=A,C(E),E},_=(E,A)=>{const T=new eT,D=new tT;return(async()=>{if(wo.skipAnimation)throw kh(t),D.result=So(i,!1),C(D),D;x(T);const R=Ge.obj(E)?{...E}:{...A,to:E};R.parentId=l,hl(d,(z,M)=>{Ge.und(R[M])&&(R[M]=z)});const N=await i.start(R);return x(T),t.paused&&await new Promise(z=>{t.resumeQueue.add(z)}),N})()};let k;if(wo.skipAnimation)return kh(t),So(i,!1);try{let E;Ge.arr(e)?E=(async A=>{for(const T of A)await _(T)})(e):E=Promise.resolve(e(_,i.stop.bind(i))),await Promise.all([E.then(g),b]),k=So(i.get(),!0,!1)}catch(E){if(E instanceof eT)k=E.result;else if(E instanceof tT)k=E.result;else throw E}finally{l==t.asyncId&&(t.asyncId=f,t.asyncTo=f?h:void 0,t.promise=f?m:void 0)}return Ge.fun(c)&&Nt.batchedUpdates(()=>{c(k,i,i.item)}),k})()}function kh(e,r){vh(e.timeouts,t=>t.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,r&&(e.cancelId=r)}var eT=class 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.")}},tT=class extends Error{constructor(){super("SkipAnimationSignal")}},NC=e=>e instanceof MC,fI=1,MC=class extends Fk{constructor(){super(...arguments),this.id=fI++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vl(this);return e&&e.getValue()}to(...e){return wo.to(this,e)}interpolate(...e){return Ij(),wo.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,r=!1){bh(this,{type:"change",parent:this,value:e,idle:r})}_onPriorityChange(e){this.idle||Gg.sort(this),bh(this,{type:"priority",parent:this,priority:e})}},Pc=Symbol.for("SpringPhase"),nT=1,PC=2,BC=4,LC=e=>(e[Pc]&nT)>0,hu=e=>(e[Pc]&PC)>0,Th=e=>(e[Pc]&BC)>0,rT=(e,r)=>r?e[Pc]|=PC|nT:e[Pc]&=~PC,aT=(e,r)=>r?e[Pc]|=BC:e[Pc]&=~BC,dI=class extends MC{constructor(e,r){if(super(),this.animation=new cI,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,!Ge.und(e)||!Ge.und(r)){const t=Ge.obj(e)?{...e}:{...r,from:e};Ge.und(t.default)&&(t.default=!0),this.start(t)}}get idle(){return!(hu(this)||this._state.asyncTo)||Th(this)}get goal(){return ui(this.animation.to)}get velocity(){const e=vl(this);return e instanceof _h?e.lastVelocity||0:e.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return LC(this)}get isAnimating(){return hu(this)}get isPaused(){return Th(this)}get isDelayed(){return this._state.delayed}advance(e){let r=!0,t=!1;const i=this.animation;let{toValues:l}=i;const{config:f}=i,c=ry(i.to);!c&&no(i.to)&&(l=Bi(ui(i.to))),i.values.forEach((d,g)=>{if(d.done)return;const C=d.constructor==Sh?1:c?c[g].lastPosition:l[g];let b=i.immediate,x=C;if(!b){if(x=d.lastPosition,f.tension<=0){d.done=!0;return}let _=d.elapsedTime+=e;const k=i.fromValues[g],E=d.v0!=null?d.v0:d.v0=Ge.arr(f.velocity)?f.velocity[g]:f.velocity;let A;const T=f.precision||(k==C?.005:Math.min(1,Math.abs(C-k)*.001));if(Ge.und(f.duration))if(f.decay){const D=f.decay===!0?.998:f.decay,R=Math.exp(-(1-D)*_);x=k+E/(1-D)*(1-R),b=Math.abs(d.lastPosition-x)<=T,A=E*R}else{A=d.lastVelocity==null?E:d.lastVelocity;const D=f.restVelocity||T/10,R=f.clamp?0:f.bounce,N=!Ge.und(R),z=k==C?d.v0>0:k<C;let M,I=!1;const Y=1,B=Math.ceil(e/Y);for(let U=0;U<B&&(M=Math.abs(A)>D,!(!M&&(b=Math.abs(C-x)<=T,b)));++U){N&&(I=x==C||x>C==z,I&&(A=-A*R,x=C));const P=-f.tension*1e-6*(x-C),H=-f.friction*.001*A,V=(P+H)/f.mass;A=A+V*Y,x=x+A*Y}}else{let D=1;f.duration>0&&(this._memoizedDuration!==f.duration&&(this._memoizedDuration=f.duration,d.durationProgress>0&&(d.elapsedTime=f.duration*d.durationProgress,_=d.elapsedTime+=e)),D=(f.progress||0)+_/this._memoizedDuration,D=D>1?1:D<0?0:D,d.durationProgress=D),x=k+f.easing(D)*(C-k),A=(x-d.lastPosition)/e,b=D==1}d.lastVelocity=A,Number.isNaN(x)&&(b=!0)}c&&!c[g].done&&(b=!1),b?d.done=!0:r=!1,d.setValue(x,f.round)&&(t=!0)});const h=vl(this),m=h.getValue();if(r){const d=ui(i.to);(m!==d||t)&&!f.decay?(h.setValue(d),this._onChange(d)):t&&f.decay&&this._onChange(m),this._stop()}else t&&this._onChange(m)}set(e){return Nt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hu(this)){const{to:e,config:r}=this.animation;Nt.batchedUpdates(()=>{this._onStart(),r.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,r){let t;return Ge.und(e)?(t=this.queue||[],this.queue=[]):t=[Ge.obj(e)?e:{...r,to:e}],Promise.all(t.map(i=>this._update(i))).then(i=>FC(this,i))}stop(e){const{to:r}=this.animation;return this._focus(this.get()),kh(this._state,e&&this._lastCallId),Nt.batchedUpdates(()=>this._stop(r,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const r=this.key||"";let{to:t,from:i}=e;t=Ge.obj(t)?t[r]:t,(t==null||OC(t))&&(t=void 0),i=Ge.obj(i)?i[r]:i,i==null&&(i=void 0);const l={to:t,from:i};return LC(this)||(e.reverse&&([t,i]=[i,t]),i=ui(i),Ge.und(i)?vl(this)||this._set(t):this._set(i)),l}_update({...e},r){const{key:t,defaultProps:i}=this;e.default&&Object.assign(i,AC(e,(c,h)=>/^on/.test(h)?qk(c,t):c)),lT(this,e,"onProps"),Rh(this,"onProps",e,this);const l=this._prepareNode(e);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 f=this._state;return Zk(++this._lastCallId,{key:t,props:e,defaultProps:i,state:f,actions:{pause:()=>{Th(this)||(aT(this,!0),mh(f.pauseQueue),Rh(this,"onPause",So(this,Ah(this,this.animation.to)),this))},resume:()=>{Th(this)&&(aT(this,!1),hu(this)&&this._resume(),mh(f.resumeQueue),Rh(this,"onResume",So(this,Ah(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then(c=>{if(e.loop&&c.finished&&!(r&&c.noop)){const h=iT(e);if(h)return this._update(h,!0)}return c})}_merge(e,r,t){if(r.cancel)return this.stop(!0),t(_d(this));const i=!Ge.und(e.to),l=!Ge.und(e.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return t(_d(this));const{key:f,defaultProps:c,animation:h}=this,{to:m,from:d}=h;let{to:g=m,from:C=d}=e;l&&!i&&(!r.default||Ge.und(g))&&(g=C),r.reverse&&([g,C]=[C,g]);const b=!us(C,d);b&&(h.from=C),C=ui(C);const x=!us(g,m);x&&this._focus(g);const _=OC(r.to),{config:k}=h,{decay:E,velocity:A}=k;(i||l)&&(k.velocity=0),r.config&&!_&&uI(k,Mc(r.config,f),r.config!==c.config?Mc(c.config,f):void 0);let T=vl(this);if(!T||Ge.und(g))return t(So(this,!0));const D=Ge.und(r.reset)?l&&!r.default:!Ge.und(C)&&Eh(r.reset,f),R=D?C:this.get(),N=Dh(g),z=Ge.num(N)||Ge.arr(N)||ny(N),M=!_&&(!z||Eh(c.immediate||r.immediate,f));if(x){const U=TC(g);if(U!==T.constructor)if(M)T=this._set(N);else throw Error(`Cannot animate between ${T.constructor.name} and ${U.name}, as the "to" prop suggests`)}const I=T.constructor;let Y=no(g),B=!1;if(!Y){const U=D||!LC(this)&&b;(x||U)&&(B=us(Dh(R),N),Y=!B),(!us(h.immediate,M)&&!M||!us(k.decay,E)||!us(k.velocity,A))&&(Y=!0)}if(B&&hu(this)&&(h.changed&&!D?Y=!0:Y||this._stop(m)),!_&&((Y||no(m))&&(h.values=T.getPayload(),h.toValues=no(g)?null:I==Sh?[1]:Bi(N)),h.immediate!=M&&(h.immediate=M,!M&&!D&&this._set(m)),Y)){const{onRest:U}=h;Qt(hI,H=>lT(this,r,H));const P=So(this,Ah(this,m));mh(this._pendingCalls,P),this._pendingCalls.add(t),h.changed&&Nt.batchedUpdates(()=>{var H;h.changed=!D,U==null||U(P,this),D?Mc(c.onRest,P):(H=h.onStart)==null||H.call(h,P,this)})}D&&this._set(R),_?t(Jk(r.to,r,this._state,this)):Y?this._start():hu(this)&&!x?this._pendingCalls.add(t):t(Xk(R))}_focus(e){const r=this.animation;e!==r.to&&(Rk(this)&&this._detach(),r.to=e,Rk(this)&&this._attach())}_attach(){let e=0;const{to:r}=this.animation;no(r)&&(wd(r,this),NC(r)&&(e=r.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;no(e)&&Ch(e,this)}_set(e,r=!0){const t=ui(e);if(!Ge.und(t)){const i=vl(this);if(!i||!us(t,i.getValue())){const l=TC(t);!i||i.constructor!=l?kC(this,l.create(t)):i.setValue(t),i&&Nt.batchedUpdates(()=>{this._onChange(t,r)})}}return vl(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Rh(this,"onStart",So(this,Ah(this,e.to)),this))}_onChange(e,r){r||(this._onStart(),Mc(this.animation.onChange,e,this)),Mc(this.defaultProps.onChange,e,this),super._onChange(e,r)}_start(){const e=this.animation;vl(this).reset(ui(e.to)),e.immediate||(e.fromValues=e.values.map(r=>r.lastPosition)),hu(this)||(rT(this,!0),Th(this)||this._resume())}_resume(){wo.skipAnimation?this.finish():Gg.start(this)}_stop(e,r){if(hu(this)){rT(this,!1);const t=this.animation;Qt(t.values,l=>{l.done=!0}),t.toValues&&(t.onChange=t.onPause=t.onResume=void 0),bh(this,{type:"idle",parent:this});const i=r?_d(this.get()):So(this.get(),Ah(this,e??t.to));mh(this._pendingCalls,i),t.changed&&(t.changed=!1,Rh(this,"onRest",i,this))}}};function Ah(e,r){const t=Dh(r),i=Dh(e.get());return us(i,t)}function iT(e,r=e.loop,t=e.to){const i=Mc(r);if(i){const l=i!==!0&&Kk(i),f=(l||e).reverse,c=!l||l.reset;return Oh({...e,loop:r,default:!1,pause:void 0,to:!f||OC(t)?t:void 0,from:c?e.from:void 0,reset:c,...l})}}function Oh(e){const{to:r,from:t}=e=Kk(e),i=new Set;return Ge.obj(r)&&oT(r,i),Ge.obj(t)&&oT(t,i),e.keys=i.size?Array.from(i):null,e}function pI(e){const r=Oh(e);return Ge.und(r.default)&&(r.default=AC(r)),r}function oT(e,r){hl(e,(t,i)=>t!=null&&r.add(i))}var hI=["onStart","onRest","onChange","onPause","onResume"];function lT(e,r,t){e.animation[t]=r[t]!==Gk(r,t)?qk(r[t],e.key):void 0}function Rh(e,r,...t){var i,l,f,c;(l=(i=e.animation)[r])==null||l.call(i,...t),(c=(f=e.defaultProps)[r])==null||c.call(f,...t)}var vI=["onStart","onChange","onRest"],mI=1,gI=class{constructor(e,r){this.id=mI++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,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),r&&(this._flush=r),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((r,t)=>e[t]=r.get()),e}set(e){for(const r in e){const t=e[r];Ge.und(t)||this.springs[r].set(t)}}update(e){return e&&this.queue.push(Oh(e)),this}start(e){let{queue:r}=this;return e?r=Bi(e).map(Oh):this.queue=[],this._flush?this._flush(this,r):(pT(this,r),zC(this,r))}stop(e,r){if(e!==!!e&&(r=e),r){const t=this.springs;Qt(Bi(r),i=>t[i].stop(!!e))}else kh(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const r=this.springs;Qt(Bi(e),t=>r[t].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const r=this.springs;Qt(Bi(e),t=>r[t].resume())}return this}each(e){hl(this.springs,e)}_onFrame(){const{onStart:e,onChange:r,onRest:t}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,vh(e,([h,m])=>{m.value=this.get(),h(m,this,this._item)}));const f=!i&&this._started,c=l||f&&t.size?this.get():null;l&&r.size&&vh(r,([h,m])=>{m.value=c,h(m,this,this._item)}),f&&(this._started=!1,vh(t,([h,m])=>{m.value=c,h(m,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Nt.onFrame(this._onFrame)}};function zC(e,r){return Promise.all(r.map(t=>sT(e,t))).then(t=>FC(e,t))}async function sT(e,r,t){const{keys:i,to:l,from:f,loop:c,onRest:h,onResolve:m}=r,d=Ge.obj(r.default)&&r.default;c&&(r.loop=!1),l===!1&&(r.to=null),f===!1&&(r.from=null);const g=Ge.arr(l)||Ge.fun(l)?l:void 0;g?(r.to=void 0,r.onRest=void 0,d&&(d.onRest=void 0)):Qt(vI,k=>{const E=r[k];if(Ge.fun(E)){const A=e._events[k];r[k]=({finished:T,cancelled:D})=>{const R=A.get(E);R?(T||(R.finished=!1),D&&(R.cancelled=!0)):A.set(E,{value:null,finished:T||!1,cancelled:D||!1})},d&&(d[k]=r[k])}});const C=e._state;r.pause===!C.paused?(C.paused=r.pause,mh(r.pause?C.pauseQueue:C.resumeQueue)):C.paused&&(r.pause=!0);const b=(i||Object.keys(e.springs)).map(k=>e.springs[k].start(r)),x=r.cancel===!0||Gk(r,"cancel")===!0;(g||x&&C.asyncId)&&b.push(Zk(++e._lastAsyncId,{props:r,state:C,actions:{pause:gC,resume:gC,start(k,E){x?(kh(C,e._lastAsyncId),E(_d(e))):(k.onRest=h,E(Jk(g,k,C,e)))}}})),C.paused&&await new Promise(k=>{C.resumeQueue.add(k)});const _=FC(e,await Promise.all(b));if(c&&_.finished&&!(t&&_.noop)){const k=iT(r,c,l);if(k)return pT(e,[k]),sT(e,k,!0)}return m&&Nt.batchedUpdates(()=>m(_,e,e.item)),_}function uT(e,r){const t={...e.springs};return r&&Qt(Bi(r),i=>{Ge.und(i.keys)&&(i=Oh(i)),Ge.obj(i.to)||(i={...i,to:void 0}),dT(t,i,l=>fT(l))}),cT(e,t),t}function cT(e,r){hl(r,(t,i)=>{e.springs[i]||(e.springs[i]=t,wd(t,e))})}function fT(e,r){const t=new dI;return t.key=e,r&&wd(t,r),t}function dT(e,r,t){r.keys&&Qt(r.keys,i=>{(e[i]||(e[i]=t(i)))._prepareNode(r)})}function pT(e,r){Qt(r,t=>{dT(e.springs,t,i=>fT(i,e))})}var oy=({children:e,...r})=>{const t=W.useContext(ly),i=r.pause||!!t.pause,l=r.immediate||!!t.immediate;r=Yj(()=>({pause:i,immediate:l}),[i,l]);const{Provider:f}=ly;return Ne.createElement(f,{value:r},e)},ly=yI(oy,{});oy.Provider=ly.Provider,oy.Consumer=ly.Consumer;function yI(e,r){return Object.assign(e,Ne.createContext(r)),e.Provider._context=e,e.Consumer._context=e,e}var xI=()=>{const e=[],r=function(i){Vj();const l=[];return Qt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const h=t(i,f,c);h&&l.push(f.start(h))}}),l};r.current=e,r.add=function(i){e.includes(i)||e.push(i)},r.delete=function(i){const l=e.indexOf(i);~l&&e.splice(l,1)},r.pause=function(){return Qt(e,i=>i.pause(...arguments)),this},r.resume=function(){return Qt(e,i=>i.resume(...arguments)),this},r.set=function(i){Qt(e,(l,f)=>{const c=Ge.fun(i)?i(f,l):i;c&&l.set(c)})},r.start=function(i){const l=[];return Qt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const h=this._getProps(i,f,c);h&&l.push(f.start(h))}}),l},r.stop=function(){return Qt(e,i=>i.stop(...arguments)),this},r.update=function(i){return Qt(e,(l,f)=>l.update(this._getProps(i,l,f))),this};const t=function(i,l,f){return Ge.fun(i)?i(f,l):i};return r._getProps=t,r};function bI(e,r,t){const i=Ge.fun(r)&&r;i&&!t&&(t=[]);const l=W.useMemo(()=>i||arguments.length==3?xI():void 0,[]),f=W.useRef(0),c=zk(),h=W.useMemo(()=>({ctrls:[],queue:[],flush(A,T){const D=uT(A,T);return f.current>0&&!h.queue.length&&!Object.keys(D).some(N=>!A.springs[N])?zC(A,T):new Promise(N=>{cT(A,D),h.queue.push(()=>{N(zC(A,T))}),c()})}}),[]),m=W.useRef([...h.ctrls]),d=[],g=jk(e)||0;W.useMemo(()=>{Qt(m.current.slice(e,g),A=>{iI(A,l),A.stop(!0)}),m.current.length=e,C(g,e)},[e]),W.useMemo(()=>{C(0,Math.min(g,e))},t);function C(A,T){for(let D=A;D<T;D++){const R=m.current[D]||(m.current[D]=new gI(null,h.flush)),N=i?i(D,R):r[D];N&&(d[D]=pI(N))}}const b=m.current.map((A,T)=>uT(A,d[T])),x=W.useContext(oy),_=jk(x),k=x!==_&&aI(x);DC(()=>{f.current++,h.ctrls=m.current;const{queue:A}=h;A.length&&(h.queue=[],Qt(A,T=>T())),Qt(m.current,(T,D)=>{l==null||l.add(T),k&&T.start({default:x});const R=d[D];R&&(oI(T,R.ref),T.ref?T.queue.push(R):T.start(R))})}),Uk(()=>()=>{Qt(h.ctrls,A=>A.stop(!0))});const E=b.map(A=>({...A}));return l?[E,l]:E}function CI(e,r){const t=Ge.fun(e),[[i],l]=bI(1,t?e:[e],t?r||[]:r);return t||arguments.length==2?[i,l]:i}var wI=class extends MC{constructor(e,r){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yh(...r);const t=this._get(),i=TC(t);kC(this,i.create(t))}advance(e){const r=this._get(),t=this.get();us(r,t)||(vl(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&hT(this._active)&&UC(this)}_get(){const e=Ge.arr(this.source)?this.source.map(ui):Bi(ui(this.source));return this.calc(...e)}_start(){this.idle&&!hT(this._active)&&(this.idle=!1,Qt(ry(this),e=>{e.done=!1}),wo.skipAnimation?(Nt.batchedUpdates(()=>this.advance()),UC(this)):Gg.start(this))}_attach(){let e=1;Qt(Bi(this.source),r=>{no(r)&&wd(r,this),NC(r)&&(r.idle||this._active.add(r),e=Math.max(e,r.priority+1))}),this.priority=e,this._start()}_detach(){Qt(Bi(this.source),e=>{no(e)&&Ch(e,this)}),this._active.clear(),UC(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Bi(this.source).reduce((r,t)=>Math.max(r,(NC(t)?t.priority:0)+1),0))}};function _I(e){return e.idle!==!1}function hT(e){return!e.size||Array.from(e).every(_I)}function UC(e){e.idle||(e.idle=!0,Qt(ry(e),r=>{r.done=!0}),bh(e,{type:"idle",parent:e}))}wo.assign({createStringInterpolator:Bk,to:(e,r)=>new wI(e,r)});var vT=/^--/;function SI(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r=="number"&&r!==0&&!vT.test(e)&&!(Fh.hasOwnProperty(e)&&Fh[e])?r+"px":(""+r).trim()}var mT={};function EI(e,r){if(!e.nodeType||!e.setAttribute)return!1;const t=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:l,children:f,scrollTop:c,scrollLeft:h,viewBox:m,...d}=r,g=Object.values(d),C=Object.keys(d).map(b=>t||e.hasAttribute(b)?b:mT[b]||(mT[b]=b.replace(/([A-Z])/g,x=>"-"+x.toLowerCase())));f!==void 0&&(e.textContent=f);for(const b in l)if(l.hasOwnProperty(b)){const x=SI(b,l[b]);vT.test(b)?e.style.setProperty(b,x):e.style[b]=x}C.forEach((b,x)=>{e.setAttribute(b,g[x])}),i!==void 0&&(e.className=i),c!==void 0&&(e.scrollTop=c),h!==void 0&&(e.scrollLeft=h),m!==void 0&&e.setAttribute("viewBox",m)}var Fh={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},DI=(e,r)=>e+r.charAt(0).toUpperCase()+r.substring(1),kI=["Webkit","Ms","Moz","O"];Fh=Object.keys(Fh).reduce((e,r)=>(kI.forEach(t=>e[DI(t,r)]=e[r]),e),Fh);var TI=/^(matrix|translate|scale|rotate|skew)/,AI=/^(translate)/,OI=/^(rotate|skew)/,jC=(e,r)=>Ge.num(e)&&e!==0?e+r:e,sy=(e,r)=>Ge.arr(e)?e.every(t=>sy(t,r)):Ge.num(e)?e===r:parseFloat(e)===r,RI=class extends iy{constructor({x:e,y:r,z:t,...i}){const l=[],f=[];(e||r||t)&&(l.push([e||0,r||0,t||0]),f.push(c=>[`translate3d(${c.map(h=>jC(h,"px")).join(",")})`,sy(c,0)])),hl(i,(c,h)=>{if(h==="transform")l.push([c||""]),f.push(m=>[m,m===""]);else if(TI.test(h)){if(delete i[h],Ge.und(c))return;const m=AI.test(h)?"px":OI.test(h)?"deg":"";l.push(Bi(c)),f.push(h==="rotate3d"?([d,g,C,b])=>[`rotate3d(${d},${g},${C},${jC(b,m)})`,sy(b,0)]:d=>[`${h}(${d.map(g=>jC(g,m)).join(",")})`,sy(d,h.startsWith("scale")?1:0)])}}),l.length&&(i.transform=new FI(l,f)),super(i)}},FI=class extends Fk{constructor(e,r){super(),this.inputs=e,this.transforms=r,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",r=!0;return Qt(this.inputs,(t,i)=>{const l=ui(t[0]),[f,c]=this.transforms[i](Ge.arr(l)?l:t.map(ui));e+=" "+f,r=r&&c}),r?"none":e}observerAdded(e){e==1&&Qt(this.inputs,r=>Qt(r,t=>no(t)&&wd(t,this)))}observerRemoved(e){e==0&&Qt(this.inputs,r=>Qt(r,t=>no(t)&&Ch(t,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bh(this,e)}},NI=["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"];wo.assign({batchedUpdates:tu.exports.unstable_batchedUpdates,createStringInterpolator:Bk,colors:bj});var MI=Jj(NI,{applyAnimatedValues:EI,createAnimatedStyle:e=>new RI(e),getComponentProps:({scrollTop:e,scrollLeft:r,...t})=>t}),gT=MI.animated;function yT(e,r,t){let i=e;return r!==void 0&&(i=Math.max(e,r)),t!==void 0&&(i=Math.min(i,t)),i}const[xT]=wn("indicator"),PI=W.memo(e=>{var{vertical:r}=e,t=$a(e,["vertical"]);const i=[];for(let l=0;l<t.total;l++)i.push(Q("div",{className:Re(xT("dot",{active:t.current===l}))},l));return Q("div",Object.assign({className:Re(t.className,xT({vertical:r})),style:t.style},{children:i}))});let Nh=0;function IC(e){e?(Nh||document.body.classList.add("rv-toast--unclickable"),Nh+=1):Nh&&(Nh-=1,Nh||document.body.classList.remove("rv-toast--unclickable"))}function BI(e){return e===window}const bT=e=>{const r=e;if(BI(r)){const t=r.innerWidth,i=r.innerHeight;return{top:0,left:0,right:t,bottom:i,width:t,height:i}}return r&&r.getBoundingClientRect?r.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function LI(e,r,t){let i,l,f,c,h,m,d=0,g=!1,C=!1,b=!0;const x=!r&&r!==0&&typeof dd.requestAnimationFrame=="function";if(typeof e!="function")throw new TypeError("Expected a function");r=+r||0,fd(t)&&(g=!!t.leading,C="maxWait"in t,f=C?Math.max(+t.maxWait||0,r):f,b="trailing"in t?!!t.trailing:b);function _(B){const U=i,P=l;return i=l=void 0,d=B,c=e.apply(P,U),c}function k(B,U){return x?(dd.cancelAnimationFrame(h),dd.requestAnimationFrame(B)):setTimeout(()=>B(),U)}function E(B){if(x)return dd.cancelAnimationFrame(B);clearTimeout(B)}function A(B){return d=B,h=k(R,r),g?_(B):c}function T(B){const U=B-m,P=B-d,H=r-U;return C?Math.min(H,f-P):H}function D(B){const U=B-m,P=B-d;return m===void 0||U>=r||U<0||C&&P>=f}function R(){const B=Date.now();if(D(B))return N(B);h=k(R,T(B))}function N(B){return h=void 0,b&&i?_(B):(i=l=void 0,c)}function z(){h!==void 0&&E(h),d=0,i=m=l=h=void 0}function M(){return h===void 0?c:N(Date.now())}function I(){return h!==void 0}function Y(...B){const U=Date.now(),P=D(U);if(i=B,l=this,m=U,P){if(h===void 0)return A(m);if(C)return h=k(R,r),_(m)}return h===void 0&&(h=k(R,r)),c}return Y.cancel=z,Y.flush=M,Y.pending=I,Y}const tX="",[uy]=wn("toast"),zI=e=>{const r=ta(e,{type:"info",duration:2e3,position:"middle",transition:"rv-fade",loadingType:"circular",overlay:!1}),t=()=>{r.closeOnClick&&r.onClose()};W.useEffect(()=>{if(!r.visible){IC(!1);return}let f=!1;const c=r.visible&&r.forbidClick;f!==c&&(f=c,IC(f))},[r.visible,r.forbidClick]);const i=()=>{const{icon:f,type:c,iconSize:h,loadingType:m}=r;if(f||c==="success"||c==="fail"){const g=c==="fail"?Q(tC,{}):Q(FD,{});return W.cloneElement(f||g,{className:Re(uy("icon")),fontSize:h})}return c==="loading"?Q(eC,{className:Re(uy("loading")),type:m}):null},l=()=>{const{message:f}=r;return ea(f)&&f!==""?Q("div",Object.assign({className:Re(uy("info"))},{children:f})):null};return Be(sh,Object.assign({className:Re([uy([r.position,{[r.type]:!r.icon}]),r.className]),visible:r.visible,overlay:r.overlay,transition:r.transition,overlayClass:r.overlayClass,overlayStyle:r.overlayStyle,closeOnClickOverlay:r.closeOnClickOverlay,lockScroll:!1,onClick:t,onClose:r.onClose,onClosed:r.onClosed,onOpened:r.onOpened,teleport:r.teleport},{children:[i(),l()]}))},HC={message:"",className:"",type:"info",position:"middle",forbidClick:!1,duration:2e3,teleport:()=>document.body},VC=[];let CT=!1,$C=Jp({},HC);const cy=new Map;function wT(){let e=VC.pop();for(;e;)e(),e=VC.pop()}function UI(){setTimeout(wT)}const Bc=e=>{if(!Bg())return null;const r=_T(e),t={config:()=>{},clear:()=>null};let i=0;const{onClose:l,teleport:f}=r,c=document.createElement("div");return iC(f).appendChild(c),WD(Q(()=>{const d=Object.assign({duration:2e3},r),[g,C]=W.useState(!1),[b,x]=W.useState(Object.assign({},d)),_=W.useCallback(()=>{b.forbidClick&&IC(!1),C(!1),window.setTimeout(()=>{QD(c)&&c.parentNode&&c.parentNode.removeChild(c)},+b.duration||+HC.duration)},[c]),k=W.useCallback(()=>{C(!1),l&&l()},[]);return t.clear=_,t.config=W.useCallback(E=>{x(A=>typeof E=="function"?Object.assign(Object.assign({},A),E(A)):Object.assign(Object.assign({},A),E))},[x]),W.useEffect(()=>(C(!0),CT||wT(),VC.push(_),b.duration!==0&&"duration"in b&&(i=window.setTimeout(k,+b.duration)),()=>{i!==0&&window.clearTimeout(i)}),[]),Q(zI,Object.assign({},b,{visible:g,teleport:()=>c,onClose:k,onClosed:_}))},{}),c),t};function _T(e){return fd(e)?e:{message:e}}const jI=e=>r=>Bc(Object.assign(Object.assign(Object.assign(Object.assign({},$C),cy.get(e)),_T(r)),{type:e}));["info","loading","success","fail"].forEach(e=>{Bc[e]=jI(e)}),Bc.allowMultiple=(e=!0)=>{CT=e},Bc.clear=UI;function II(e,r){typeof e=="string"?cy.set(e,r):Jp($C,e)}Bc.setDefaultOptions=II,Bc.resetDefaultOptions=e=>{typeof e=="string"?cy.delete(e):($C=Jp({},HC),cy.clear())};const YC=Bc;function fy(){const e=W.useRef([]),r=W.useCallback(i=>l=>{l&&(e.current[i]=l)},[]),t=W.useCallback(()=>{e.current=[]},[]);return[e.current,r,t]}const ST=e=>{const{defaultValue:r,value:t}=e||{},[i,l]=W.useState(()=>{if(t!==void 0)return t;if(r!==void 0)return typeof r=="function"?r():r}),f=t!==void 0?t:i;function c(h){l(h)}return[f,c]},iX="",[HI]=wn("swiper-item"),ET=W.forwardRef((e,r)=>{const t=W.useRef(null);W.useImperativeHandle(r,()=>({self:t.current}));const[i]=sz(t,{rootMargin:"-0.1px",threshold:0,root:()=>{var l;return(l=e.trackRef)===null||l===void 0?void 0:l.current}});return Q("div",Object.assign({ref:t,className:Re(e.className,HI({hidden:e.autoHeight&&i===!1})),onClick:e.onClick,style:e.style},{children:e.children}))}),[Lc]=wn("swiper"),VI=W.forwardRef((e,r)=>{const t=ta(e,{initialSwipe:0,loop:!0,touchable:!0,enabled:!0,rubberband:!0,autoplay:!1,slideSize:100,trackOffset:0,stuckAtBoundary:!1,preventScroll:!0}),{loop:i,autoplay:l,vertical:f,duration:c,autoHeight:h}=t,m=f?"y":"x",d=t.slideSize/100,g=t.trackOffset/100,{validChildren:C,count:b}=W.useMemo(()=>{let X=0;return{validChildren:W.Children.map(t.children,q=>W.isValidElement(q)?q.type!==ET?null:(X++,q):null),count:X}},[t.children]),x=W.useRef(null),[_,k]=fy(),[E,A]=W.useState(()=>t.enabled),[T,D]=W.useState(t.initialSwipe),[R,N,z]=X2(!1),M=W.useMemo(()=>Object.assign({["--rv-swipe-slide-size"]:`${t.slideSize}%`,["--rv-swipe-track-offset"]:`${t.trackOffset}%`},t.style),[t.slideSize,t.trackOffset,t.style]),I=W.useMemo(()=>d*(b-1)<1?!1:i,[b,i,d]),Y=()=>{const X=x.current;return X?(f?X.offsetHeight:X.offsetWidth)*t.slideSize/100:0},B=X=>{let Z=0,q=b-1;return t.stuckAtBoundary&&(Z+=(1-d-g)/d,q-=(1-d-g)/d),yT(X,Z,q)},[{position:U},P]=CI(()=>({position:B(T)*100,config:{tension:200,friction:30,duration:c},onRest:()=>{if(z.current||!I)return;const X=U.get(),Z=100*b,q=qC(X,Z);q!==X&&P.start({position:q,immediate:!0})}}),[b]),H=fj(X=>{var Z;const q=Y();if(!q||!t.preventScroll&&DT(X.target,(Z=_[T])===null||Z===void 0?void 0:Z.self))return;const te=f?1:0,oe=X.offset[te],ae=X.direction[te],fe=X.velocity[te];if(N(!0),!X.last)P.start({position:oe*100/q,immediate:!0});else{const ve=Math.round((oe+Math.min(fe*2e3,q)*ae)/q);G(ve),window.setTimeout(()=>{N(!1)})}},{enabled:E,transform:([X,Z])=>[-X,-Z],from:()=>{const X=Y();return[U.get()/100*X,U.get()/100*X]},bounds:()=>{if(I)return{};const X=Y(),Z=B(0)*X,q=B(b-1)*X;return f?{top:Z,bottom:q}:{left:Z,right:q}},rubberband:t.rubberband,axis:m,preventScroll:m==="x"?t.preventScroll:!1,pointer:{touch:!0}}),V=()=>t.indicator===void 0||t.indicator===!0?Q("div",Object.assign({className:Re(Lc("indicator",{vertical:f}))},{children:Q(PI,Object.assign({},t.indicatorProps,{vertical:f,total:b,current:T}))})):typeof t.indicator=="function"?t.indicator(b,T):null;function G(X,Z=!1){const q=Math.round(X),te=I?qC(q,b):yT(q,0,b-1);D(te),P.start({position:(I?q:B(q))*100,immediate:Z})}const ee=()=>{G(Math.round(U.get()/100)+1)},ne=()=>{G(Math.round(U.get()/100)-1)};W.useImperativeHandle(r,()=>({activeIndex:T,swipeTo:G,swipeNext:ee,swipePrev:ne,enable:()=>{A(!0)},disable:()=>{A(!1)}})),th(()=>{const X=C.length-1;T>X&&G(X,!0)}),Rc(()=>{var X;(X=t.onChange)===null||X===void 0||X.call(t,T)},[T]),W.useEffect(()=>{if(!l||R)return Mi;const X=typeof l=="boolean"?5e3:l,Z=window.setInterval(()=>{ee()},X);return()=>{window.clearInterval(Z)}},[l,R]);const $=()=>I?Q("div",Object.assign({className:Re(Lc("track-inner",{vertical:f}))},{children:W.Children.map(C,(X,Z)=>Q(gT.div,Object.assign({className:Re(Lc("slide")),style:{[m]:U.to(q=>{let te=-q+Z*100;const oe=b*100,ae=oe/2;return te=qC(te+ae,oe)-ae,`${te}%`}),[f?"top":"left"]:`-${Z*100}%`}},{children:W.cloneElement(X,{ref:k(Z),autoHeight:h,trackRef:x})})))})):Q(gT.div,Object.assign({className:Re(Lc("track-inner")),style:{[m]:U.to(X=>`${-X}%`)}},{children:W.Children.map(C,(X,Z)=>Q("div",Object.assign({className:Re(Lc("slide"))},{children:W.cloneElement(X,{ref:k(Z),autoHeight:h})})))}));return b===0&&void 0,Be("div",Object.assign({className:Re(t.className,Lc({vertical:f})),style:M},{children:[Q("div",Object.assign({ref:x,className:Re(Lc("track",{"allow-touch-move":t.touchable})),onClickCapture:X=>{z.current&&X.stopPropagation()}},t.touchable?H():{},{children:$()})),V()]}))});function qC(e,r){const t=e%r;return t<0?t+r:t}function DT(e,r){return r?e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight?!0:e.parentElement&&e.parentElement!==r?DT(e.parentElement,r):!1:!1}const kT=Object.assign(VI,{Item:ET}),$I=e=>{const r=ta(e,{shape:"round",bindGroup:!0}),t=W.useRef(null),i=g=>r.parent&&r.bindGroup?r.parent.props[g]:null,l=W.useMemo(()=>i("disabled")||r.disabled,[r.parent,r.disabled]),f=W.useMemo(()=>i("direction")||null,[r.parent]),c=W.useMemo(()=>{const g=r.checkedColor||i("checkedColor");return g&&r.checked&&!l?{borderColor:g,backgroundColor:g}:{}},[r.checkedColor,r.checked,l]),h=g=>{const{target:C}=g,b=t.current,x=b===C||(b==null?void 0:b.contains(C));!l&&(x||!r.labelDisabled)&&r.onToggle&&r.onToggle(),r.onClick&&r.onClick(g)},m=()=>{const{bem:g,shape:C,checked:b}=r,x=r.iconSize||i("iconSize");return Q("div",Object.assign({ref:t,className:Re(g("icon",[C,{disabled:l,checked:b}])),style:{fontSize:dl(x)}},{children:r.iconRender?r.iconRender({checked:b,disabled:l}):Q(FD,{style:c})}))},d=()=>r.children?Q("span",Object.assign({className:r.bem("label",[r.labelPosition,{disabled:l}])},{children:r.children})):null;return Be("div",Object.assign({role:r.role,className:Re(r.bem([{disabled:l,"label-disabled":r.labelDisabled},f]),r.className),style:r.style,tabIndex:l?-1:0,"aria-checked":r.checked,onClick:h},{children:[r.labelPosition==="left"&&d(),m(),r.labelPosition!=="left"&&d()]}))},cX="";function YI(e){return[e.getFullYear(),e.getMonth()+1]}function GC(e,r){const t=e.getFullYear(),i=r.getFullYear();if(t===i){const l=e.getMonth(),f=r.getMonth();return l===f?0:l>f?1:-1}return t>i?1:-1}function ml(e,r){const t=GC(e,r);if(t===0){const i=e.getDate(),l=r.getDate();return i===l?0:i>l?1:-1}return t}const dy=e=>new Date(e),TT=e=>Array.isArray(e)?e.map(dy):dy(e);function KC(e,r){const t=dy(e);return t.setDate(t.getDate()+r),t}const AT=e=>KC(e,-1),OT=e=>KC(e,1),WC=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function qI(e){const r=e[0].getTime();return(e[1].getTime()-r)/(1e3*60*60*24)+1}function RT(e,r){let t=-1;const i=Array(e);for(;++t<e;)i[t]=r(t);return i}function GI(e){if(!e)return 0;for(;mD(parseInt(e,10));)if(e.length>1)e=e.slice(1);else return 0;return parseInt(e,10)}function QC(e,r){return 32-new Date(e,r-1,32).getDate()}const[Mh]=wn("calendar"),KI=e=>{const r=ta(e,{offset:0}),t=W.useMemo(()=>{const{item:d,index:g,color:C,offset:b,rowHeight:x}=r,_={height:x};if(d.type==="placeholder")return _.width="100%",_;if(g===0&&(_.marginLeft=`${100*b/7}%`),C)switch(d.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":_.background=C;break;case"middle":_.color=C;break}return _},[r.item,r.index,r.color,r.offset,r.rowHeight]),i=()=>{var d;r.item.type!=="disabled"&&((d=r.onClick)===null||d===void 0||d.call(r,r.item))},l=()=>{const{topInfo:d}=r.item;return d||r.topInfoRender?Q("div",Object.assign({className:Re(Mh("top-info"))},{children:r.topInfoRender?r.topInfoRender(r.item):d})):null},f=()=>{const{bottomInfo:d}=r.item;return d||r.bottomInfoRender?Q("div",Object.assign({className:Re(Mh("bottom-info"))},{children:r.bottomInfoRender?r.bottomInfoRender(r.item):d})):null},c=()=>{const{item:d,color:g,rowHeight:C}=r,{type:b,text:x}=d,_=Be(nn,{children:[l(),x,f()]});return b==="selected"?Q("div",Object.assign({className:Re(Mh("selected-day")),style:{width:C,height:C,background:g}},{children:_})):_},{type:h,className:m}=r.item;return h==="placeholder"?Q("div",{className:Re(Mh("day")),style:t}):Q("div",Object.assign({role:"gridcell",style:t,className:Re(Mh("day",h),m),tabIndex:h==="disabled"?void 0:-1,onClick:i},{children:c()}))},[py]=wn("calendar"),WI=W.forwardRef((e,r)=>{const[t,i]=W.useState(),l=W.useRef(),[f,c]=W.useState(),h=W.useRef(0),{locale:m}=W.useContext(md);W.useEffect(()=>{f&&(h.current=bT(f).height)},[f]);const d=W.useMemo(()=>e.formatMonthTitle?e.formatMonthTitle(e.date):m.vanCalendar.monthTitle(...YI(e.date)),[e.date,e.formatMonthTitle]),g=W.useMemo(()=>dl(e.rowHeight),[e.rowHeight]),C=W.useMemo(()=>{const B=e.date.getDay();return e.firstDayOfWeek?(B+7-e.firstDayOfWeek)%7:B},[e.date,e.firstDayOfWeek]),b=W.useMemo(()=>QC(e.date.getFullYear(),e.date.getMonth()+1),[e.date]),x=W.useMemo(()=>t||!e.lazyRender,[t]),_=()=>d,k=B=>{const U=e.showSubtitle?l.current:f,P=(U==null?void 0:U.getBoundingClientRect().top)-B.getBoundingClientRect().top+B.scrollTop;pD(B,P)},E=B=>{const U=P=>e.currentDate.some(H=>ml(H,P)===0);if(U(B)){const P=AT(B),H=OT(B),V=U(P),G=U(H);return V&&G?"multiple-middle":V?"end":G?"start":"multiple-selected"}return""},A=B=>{const[U,P]=e.currentDate;if(!U)return"";const H=ml(B,U);if(!P)return H===0?"start":"";const V=ml(B,P);return e.allowSameDay&&H===0&&V===0?"start-end":H===0?"start":V===0?"end":H>0&&V<0?"middle":""},T=B=>{const{type:U,minDate:P,maxDate:H,currentDate:V}=e;if(ml(B,P)<0||ml(B,H)>0)return"disabled";if(V===null)return"";if(Array.isArray(V)){if(U==="multiple")return E(B);if(U==="range")return A(B)}else if(U==="single")return ml(B,V)===0?"selected":"";return""},D=B=>{if(e.type==="range"){if(B==="start")return m.vanCalendar.start;if(B==="end")return m.vanCalendar.end;if(B==="start-end")return m.vanCalendar.startEnd}return null},R=()=>e.showMonthTitle?Q("div",Object.assign({className:Re(py("month-title"))},{children:d})):null,N=()=>e.showMark&&x?Q("div",Object.assign({className:Re(py("month-mark"))},{children:e.date.getMonth()+1})):null,z=W.useMemo(()=>{const B=Math.ceil((b+C)/7);return Array(B).fill({type:"placeholder"})},[b,C]),M=W.useMemo(()=>{const B=[],U=e.date.getFullYear(),P=e.date.getMonth();for(let H=1;H<=b;H++){const V=new Date(U,P,H),G=T(V);let ee={date:V,type:G,text:H,bottomInfo:D(G)};e.formatter&&(ee=e.formatter(ee)),B.push(ee)}return B},[T,e.date,e.formatter]),I=(B,U)=>Q(KI,{item:B,index:U,color:e.color,offset:C,rowHeight:g,onClick:e.onClick,topInfoRender:e.topInfoRender,bottomInfoRender:e.bottomInfoRender},U),Y=()=>Be("div",Object.assign({ref:l,role:"grid",className:Re(py("days"))},{children:[N(),(x?M:z).map(I)]}));return W.useImperativeHandle(r,()=>({getTitle:_,getHeight:()=>h.current,setVisible:i,scrollIntoView:k})),Be("div",Object.assign({className:Re(py("month")),ref:c},{children:[R(),Y()]}))}),[Ph]=wn("calendar"),QI=e=>{const{locale:r}=W.useContext(md),t=()=>{if(e.showTitle){const c=e.title||r.vanCalendar.title;return Q("div",Object.assign({className:Re(Ph("header-title"))},{children:c}))}return null},i=c=>{var h;(h=e.onClickSubtitle)===null||h===void 0||h.call(e,c)},l=()=>e.showSubtitle?Q("div",Object.assign({className:Re(Ph("header-subtitle")),onClick:i},{children:e.subtitle})):null,f=()=>{const{weekdays:c,firstDayOfWeek:h}=e,m=r.vanCalendar.weekdays,d=c?m.map((C,b)=>c[b]||C):m,g=[...d.slice(h,7),...d.slice(0,h)];return Q("div",Object.assign({className:Re(Ph("weekdays"))},{children:g.map((C,b)=>Q("span",Object.assign({className:Re(Ph("weekday"))},{children:C}),b))}))};return Be("div",Object.assign({className:Re(Ph("header"))},{children:[t(),l(),f()]}))},[Sd]=wn("calendar"),ZI=WC(),XI=(()=>{const e=WC();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())})(),JI=W.forwardRef((e,r)=>{var t,{className:i,style:l}=e,f=$a(e,["className","style"]);const c=ta(f,{round:!0,poppable:!0,showMark:!0,showTitle:!0,showConfirm:!0,showSubtitle:!0,closeOnPopstate:!0,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,defaultValue:null,type:"single",position:"bottom",maxRange:null,minDate:ZI,maxDate:XI,firstDayOfWeek:0,showRangePrompt:!0}),{locale:h}=W.useContext(md),[m,d]=nh({value:c.visible,defaultValue:!1,onChange:q=>{var te;q===!1&&((te=c.onClose)===null||te===void 0||te.call(c))}}),g=(q,te=c.minDate,oe=c.maxDate)=>ml(q,te)===-1?te:ml(q,oe)===1?oe:q,C=(q=c.defaultValue)=>{const{type:te,minDate:oe,maxDate:ae}=c;if(q===null)return q;const fe=WC();if(te==="range"){Array.isArray(q)||(q=[]);const ve=g(q[0]||fe,oe,AT(ae)),xe=g(q[1]||fe,OT(oe));return[ve,xe]}return te==="multiple"?Array.isArray(q)?q.map(ve=>g(ve)):[g(fe)]:((!q||Array.isArray(q))&&(q=fe),g(q))},b=W.useRef(),x=W.useRef(0),[_,k]=W.useState(C(c.value===void 0?c.defaultValue:c.value)),[E,A]=bD({subtitle:"",currentDate:_});Rc(()=>{c.value!==void 0&&JSON.stringify(_)!==JSON.stringify(c.value)&&k(c.value)},[c.value]),W.useEffect(()=>{JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_})},[_]);const[T,D]=fy(),R=W.useMemo(()=>c.firstDayOfWeek?+c.firstDayOfWeek%7:0,[c.firstDayOfWeek,c.firstDayOfWeek]),N=W.useMemo(()=>{const q=[],te=new Date(c.minDate);te.setDate(1);do q.push(new Date(te)),te.setMonth(te.getMonth()+1);while(GC(te,c.maxDate)!==1);return q},[c.minDate,c.maxDate]),z=W.useMemo(()=>{const{currentDate:q}=E;if(q){if(c.type==="range")return!q[0]||!q[1];if(c.type==="multiple")return!q.length}return!q},[c.type,E.currentDate]),M=()=>{var q;const te=WL(b.current),oe=te+x.current,ae=N.map((ke,De)=>T[De].getHeight()),fe=ae.reduce((ke,De)=>ke+De,0);if(oe>fe&&te>0)return;let ve=0,xe;const se=[-1,-1];for(let ke=0;ke<N.length;ke++){const De=T[ke];ve<=oe&&ve+ae[ke]>=te&&(se[1]=ke,xe||(xe=De,se[0]=ke),T[ke].showed||(T[ke].showed=!0,(q=c.onMonthShow)===null||q===void 0||q.call(c,{date:De.date,title:De.getTitle()}))),ve+=ae[ke]}N.forEach((ke,De)=>{const Pe=De>=se[0]-1&&De<=se[1]+1;T[De].setVisible(Pe)}),xe&&xe.getTitle()!==E.subtitle&&!c.horizontal&&A({subtitle:xe.getTitle()})},I=q=>{W2(()=>{N.some((te,oe)=>GC(te,q)===0?(b.current&&T[oe].scrollIntoView(b.current),!0):!1),M()})},Y=()=>{if(c.poppable&&!m)return;const{currentDate:q}=E;if(q){const te=c.type==="single"?q:q[0];I(te)}else W2(M)},B=()=>{W2(()=>{x.current=Math.floor(bT(b.current).height),Y()})},U=(q=C())=>{A({currentDate:q}),Y()},P=q=>{var te;const{maxRange:oe,rangePrompt:ae,showRangePrompt:fe}=c;return oe&&qI(q)>oe?(fe&&YC.info(ae||h.vanCalendar.rangePrompt(+oe)),(te=c.onOverRange)===null||te===void 0||te.call(c),!1):!0},H=()=>{var q;const te=TT(E.currentDate);c.poppable&&k(te),(q=c.onConfirm)===null||q===void 0||q.call(c,te),Z.close()},V=(q,te)=>{const oe=ae=>{var fe;E.currentDate=ae,A({currentDate:ae}),(fe=c.onSelect)===null||fe===void 0||fe.call(c,TT(E.currentDate))};if(te&&c.type==="range"&&!P(q)){c.showConfirm?oe([q[0],KC(q[0],+c.maxRange-1)]):oe(q);return}oe(q),te&&!c.showConfirm&&H()},G=q=>{var te;if(c.readOnly||!q.date)return;const{date:oe}=q,{type:ae}=c,{currentDate:fe}=E;if(ae==="range"){if(!fe){V([oe]);return}const[ve,xe]=fe;if(ve&&!xe){const se=ml(oe,ve);se===1?V([ve,oe],!0):se===-1?V([oe]):c.allowSameDay&&V([oe,oe],!0)}else V([oe])}else if(ae==="multiple"){if(!fe){V([oe]);return}let ve;if(E.currentDate.some((se,ke)=>{const De=ml(se,oe)===0;return De&&(ve=ke),De})){const[se]=fe.splice(ve,1);(te=c.onUnselect)===null||te===void 0||te.call(c,dy(se)),V([...fe])}else c.maxRange&&fe.length>=c.maxRange?YC(c.rangePrompt||`选择天数不能超过 ${c.maxRange} 天`):V([...fe,oe])}else V(oe,!0)},ee=(q,te)=>{const oe=!c.horizontal&&(te!==0||!c.showSubtitle);return Q(WI,Object.assign({ref:D(te),date:q,currentDate:E.currentDate,showMonthTitle:oe,firstDayOfWeek:R},cD(c,["type","color","minDate","maxDate","showMark","formatter","rowHeight","showSubtitle","lazyRender","allowSameDay","topInfoRender","bottomInfoRender","formatMonthTitle"]),{onClick:G}),te)},ne=()=>{if(c.footer)return c.footer;if(c.showConfirm){const q=z?c.confirmDisabledText:c.confirmText;return Q(ih,Object.assign({round:!0,block:!0,type:"danger",color:c.color,className:Re(Sd("confirm")),disabled:z,nativeType:"button",onClick:H},{children:q||h.vanCalendar.confirm}))}return null},$=()=>Q("div",Object.assign({className:Re(Sd("footer"),{"rv-safe-area-bottom":c.safeAreaInsetBottom})},{children:ne()})),X=()=>Be("div",Object.assign({className:Re(i,Sd()),style:l},{children:[Q(QI,{weekdays:c.weekdays,title:c.title,subtitle:c.subtitle||E.subtitle,showTitle:c.showTitle,showSubtitle:c.showSubtitle,firstDayOfWeek:R,onClickSubtitle:q=>{var te;(te=c.onClickSubtitle)===null||te===void 0||te.call(c,q)}}),c.horizontal?Q("div",Object.assign({ref:b,className:Re(Sd("horizontal-body"))},{children:Q(kT,Object.assign({indicator:()=>null,onChange:q=>{A({subtitle:T[q].getTitle()})}},{children:N.map((q,te)=>Q(kT.Item,{children:ee(q,te)},q))}))})):Q("div",Object.assign({ref:b,className:Re(Sd("body")),onScroll:M},{children:N.map(ee)})),$()]})),Z={toggle:()=>{c.poppable&&d(q=>!q)},open:()=>{c.poppable&&d(!0)},close:()=>{c.poppable&&d(!1)}};return W.useEffect(()=>{c.poppable||B()},[]),W.useEffect(()=>{c.poppable&&m&&B()},[m]),Rc(()=>{U(C(E.currentDate))},[c.type,c.minDate,c.maxDate]),W.useImperativeHandle(r,()=>Object.assign({reset:U,scrollToDate:I},Z)),c.poppable?Be(nn,{children:[Q(sh,Object.assign({visible:m,className:Re(Sd("popup")),round:c.round,position:c.position,closeable:c.showTitle||c.showSubtitle,closeOnPopstate:c.closeOnPopstate,closeOnClickOverlay:c.closeOnClickOverlay,onClose:Z.close,onClosed:()=>{var q;c.poppable&&JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_}),(q=c.onClosed)===null||q===void 0||q.call(c)}},{children:X()})),(t=c.children)===null||t===void 0?void 0:t.call(c,_,Z)]}):X()});function eH(e,r){var t;process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const i=CD(e),l=(t=r==null?void 0:r.wait)!==null&&t!==void 0?t:1e3,f=W.useMemo(()=>LI((...c)=>i.current(...c),l,r),[]);return wD(()=>{f.cancel()}),{run:f,cancel:f.cancel,flush:f.flush}}function tH(e,r,t){const[i,l]=W.useState({}),{run:f}=eH(()=>{l({})},t);W.useEffect(()=>f(),r),Rc(e,[i])}const vX="",FT=W.createContext({}),[nH]=wn("checkbox-group"),rH=W.forwardRef((e,r)=>{const[t,i]=fy(),[l,f]=ST({value:e.value,defaultValue:e.defaultValue}),c=(m={})=>{typeof m=="boolean"&&(m={checked:m});const{checked:d,skipDisabled:g}=m,b=t.filter(x=>x.props.bindGroup?x.props.disabled&&g?x.checked:d??!x.checked:!1).map(x=>x.props.name);f(b),e.onChange(b)},h=m=>{var d;f(m),(d=e.onChange)===null||d===void 0||d.call(e,m)};return W.useImperativeHandle(r,()=>({toggleAll:c})),Q(FT.Provider,Object.assign({value:{parent:{props:e},toggle:h,checked:l||[]}},{children:Q("div",Object.assign({className:Re(e.className,nH([e.direction]))},{children:W.Children.toArray(e.children).filter(Boolean).map((m,d)=>{var g;return((g=m.type)===null||g===void 0?void 0:g.displayName)!=="Checkbox"?m:W.cloneElement(m,{ref:i(d)})})}))}))}),[aH]=wn("checkbox"),NT=W.forwardRef((e,r)=>{const t=ta(e,{bindGroup:!0}),i=W.useContext(FT),{parent:l}=i,f=$a(i,["parent"]),[c,h]=ST({value:t.checked,defaultValue:t.defaultChecked}),m=C=>{const{name:b}=t,{max:x}=l.props,_=f.checked.slice();if(C)!(x&&_.length>=x)&&_.indexOf(b)===-1&&(_.push(b),t.bindGroup&&f.toggle(_));else{const k=_.indexOf(b);k!==-1&&(_.splice(k,1),t.bindGroup&&f.toggle(_))}},d=W.useMemo(()=>l&&t.bindGroup?f.checked.indexOf(t.name)!==-1:c,[f.checked,c]),g=(C=!d)=>{var b;l&&t.bindGroup?m(C):(h(C),(b=t.onChange)===null||b===void 0||b.call(t,C))};return W.useImperativeHandle(r,()=>({toggle:g,checked:d,props:t})),Q($I,Object.assign({},t,{bem:aH,role:"checkbox",parent:l,checked:d,className:t.className,bindGroup:t.bindGroup,onToggle:g}))});NT.displayName="Checkbox";const MT=Object.assign(NT,{Group:rH}),xX="",PT=200,BT=300,iH=15;function oH(e){const r=window.getComputedStyle(e),t=r.transform||r.webkitTransform,i=t.slice(7,t.length-1).split(", ")[5];return Number(i)}const[ZC]=wn("picker-column"),lH=W.memo(W.forwardRef((e,r)=>{const{locale:t}=W.useContext(md),{valueKey:i,textKey:l,itemHeight:f,visibleItemCount:c,placeholder:h,value:m}=e,d=W.useMemo(()=>gD(f),[f]),g=W.useMemo(()=>Array.isArray(e.options)&&!e.options.length?[]:h?[{[i]:void 0,[l]:h===!0?t.vanPicker.select:h},...e.options]:e.options,[e.options]),C=W.useRef(null),b=W.useRef(!1),x=W.useRef(0),_=W.useRef(null),k=W.useRef(0),E=W.useRef(0),[A,T,D]=bD({offset:0,duration:0}),R=ED(),N=W.useMemo(()=>d*(+c-1)/2,[d,c]),z=$=>{var X,Z;$=eh($,0,g.length);for(let q=$;q<g.length;q+=1)if(!(!((X=g[q])===null||X===void 0)&&X.disabled))return q;for(let q=$-1;q>=0;q-=1)if(!(!((Z=g[q])===null||Z===void 0)&&Z.disabled))return q;return null},M=$=>{e.onSelect($,e.index)},I=$=>{$=z($)||0;const X=-$*d,Z=()=>{var q;((q=g[$])===null||q===void 0?void 0:q[i])!==m&&M(g[$])};b.current&&X!==D.current.offset?_.current=Z:Z(),T({offset:X})},Y=$=>{$=z($)||0;const X=-$*d;T({offset:X})};th(()=>{if(g.length===0)m!==void 0&&M(void 0);else{let $=g.findIndex(X=>X[i]===m);$<0&&($=0,M(g[0])),Y($)}},[m,JSON.stringify(g)]);const B=$=>{b.current||e.readOnly||(_.current=null,T({duration:PT}),I($))},U=$=>eh(Math.round(-$/d),0,g.length-1),P=($,X)=>{const Z=Math.abs($/X);$=D.current.offset+Z/.003*($<0?-1:1);const q=U($);T({duration:+e.swipeDuration}),I(q)},H=()=>{b.current=!1,T({duration:0}),_.current&&(_.current(),_.current=null)},V=$=>{if(e.readOnly)return;R.start($);let{offset:X}=A;if(b.current){const Z=oH(C.current);X=Math.min(0,Z-N),x.current=X}else x.current=X;T({duration:0,offset:X}),k.current=Date.now(),E.current=x.current,_.current=null},G=$=>{if(e.readOnly)return;R.move($),R.isVertical()&&(b.current=!0);const X=eh(x.current+R.deltaY.current,-(g.length*d),d);T({offset:X});const Z=Date.now();Z-k.current>BT&&(k.current=Z,E.current=X)},ee=()=>{if(e.readOnly||!b.current)return;const $=D.current.offset-E.current,X=Date.now()-k.current;if(X<BT&&Math.abs($)>iH){P($,X);return}const q=U(D.current.offset);T({duration:PT}),I(q),setTimeout(()=>{b.current=!1},0)},ne=()=>{const $={height:`${e.itemHeight}px`};return g.map((X,Z)=>{const{disabled:q}=X,te={role:"button",style:$,tabIndex:q?-1:0,className:Re(ZC("item",{disabled:q,selected:X[i]===m})),onClick:()=>{B(Z)}},oe={className:"rv-ellipsis",children:X[l]};return W.createElement("li",Object.assign({},te,{key:Z}),e.optionRender?e.optionRender(X):Q("div",Object.assign({},oe)))})};return W.useImperativeHandle(r,()=>({stopMomentum:H})),Q("div",Object.assign({className:Re(ZC(),e.className),onTouchStart:V,onTouchMove:G,onTouchEnd:ee,onTouchCancel:ee},{children:Q("ul",Object.assign({ref:C,style:{transform:`translate3d(0, ${A.offset+N}px, 0)`,transitionDuration:`${A.duration}ms`,transitionProperty:A.duration?"all":"none"},className:Re(ZC("wrapper")),onTransitionEnd:H},{children:ne()}))}))}),(e,r)=>!(e.index!==r.index||e.value!==r.value||e.onSelect!==r.onSelect||JSON.stringify(e.options)!==JSON.stringify(r.options)));function sH(e,r){const{textKey:t,valueKey:i,childrenKey:l}=r,f=W.useMemo(()=>{if(e.some(d=>typeof d=="object"&&l in d))return"cascade";const m=e[0]||{};return typeof m=="object"?l in m?"cascade":"object":"plain"},[e,l]),c=W.useMemo(()=>{let h=0;function m(d,g){g>h&&(h=g);const C=g+1;d.forEach(b=>{b[l]&&m(b[l],C)})}return m(e,1),h},[e,l]);return f!=="cascade"?e:h=>{const m=[];let d=e,g=0;for(;;){m.push(d.map(x=>{var _;return{[t]:x[t],[i]:(_=x[i])!==null&&_!==void 0?_:x[t]}}));const C=h[g],b=d.find(x=>{var _;return((_=x[i])!==null&&_!==void 0?_:x[t])===C});if(!b||!b[l])break;d=b[l],g++}for(;g<c-1;)m.push([]),g++;return m}}function XC(e){let r=null;return()=>(r===null&&(r=e()),r)}function uH(e,r,t){const{textKey:i,valueKey:l}=r,f=XC(()=>{let d=typeof e=="function"?e(t):e;return Array.isArray(d[0])||(d=[d]),d.map(g=>g.map(C=>typeof C=="string"?{[i]:C,[l]:C}:(l in C||(C[l]=C[i]),C)))}),c=XC(()=>t.map((d,g)=>{var C;const b=f()[g];return b?(C=b.find(x=>x[l]===d))!==null&&C!==void 0?C:void 0:null})),h=XC(()=>t.map((d,g)=>{var C;const b=f()[g];return b&&(C=b.findIndex(x=>x[l]===d))!==null&&C!==void 0?C:null}));return{get columns(){return f()},get items(){return c()},get indexes(){return h()}}}function LT(e,r,t){const i=sH(e,r);return W.useMemo(()=>uH(i,r,t),[e,r,t])}const[cs]=wn("picker");function cH(e){const{locale:r}=W.useContext(md),t=W.useRef(null),[i,l]=fy(),{text:f,value:c,children:h}=Jp({text:"text",value:"value",children:"children"},e.columnsFieldNames),[m,d]=W.useState(e.value);W.useEffect(()=>{e.value!==void 0&&JSON.stringify(m)!==JSON.stringify(e.value)&&d(e.value)},[e.value]);const g=LT(e.columns,{textKey:f,valueKey:c,childrenKey:h},m),{columns:C,items:b,indexes:x}=g;tH(()=>{var I;JSON.stringify(e.value)!==JSON.stringify(m)&&((I=e.onChange)===null||I===void 0||I.call(e,m,b,x))},[m],{wait:100,leading:!1,trailing:!0});const _=W.useMemo(()=>gD(e.itemHeight),[e.itemHeight]),k=(I,Y)=>{d(B=>{const U=[...B];return U[Y]=I==null?void 0:I[c],U})},E=()=>{var I;i.forEach(Y=>Y.stopMomentum()),(I=e.onConfirm)===null||I===void 0||I.call(e,m,b,x)},A=()=>{var I;(I=e.onCancel)===null||I===void 0||I.call(e)},T=()=>e.title?Q("div",Object.assign({className:Re(cs("title"),"rv-ellipsis")},{children:e.title})):null,D=()=>{const I=e.cancelButtonText||r.cancel;return Q("button",Object.assign({type:"button",className:Re(cs("cancel")),onClick:A},{children:I}))},R=()=>{const I=e.confirmButtonText||r.confirm;return Q("button",Object.assign({type:"button",className:Re(cs("confirm")),onClick:E},{children:I}))},N=()=>e.showToolbar?Q("div",Object.assign({className:Re(cs("toolbar"))},{children:e.toolbar||Be(nn,{children:[D(),T(),R()]})})):null,z=()=>C.map((I,Y)=>{const B=Array.isArray(e.placeholder)?e.placeholder[Y]:e.placeholder;return Q(lH,{textKey:f,valueKey:c,ref:l(Y),placeholder:B,optionRender:e.optionRender,readOnly:e.readOnly,value:m[Y],itemHeight:_,index:Y,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,options:I,onSelect:k},Y)}),M=()=>{const I=_*e.visibleItemCount,Y={height:`${_}px`},B={height:`${I}px`},U={backgroundSize:`100% ${(I-_)/2}px`};return Be("div",Object.assign({ref:t,className:Re(cs("columns")),style:B},{children:[z(),Q("div",{className:Re(cs("mask")),style:U}),Q("div",{className:Re(Sz,cs("frame")),style:Y})]}))};return Z2("touchmove",K2,{target:t.current}),Be("div",Object.assign({className:Re(cs(),e.className)},{children:[e.toolbarPosition==="top"?N():null,e.loading?Q(eC,{className:Re(cs("loading"))}):null,e.columnsTop,M(),e.columnsBottom,e.toolbarPosition==="bottom"?N():null]}))}function fH(e,r){const t=ta(e,{columns:[],itemHeight:44,visibleItemCount:5,swipeDuration:300,showToolbar:!0,placeholder:!0,toolbarPosition:"top"}),{visible:i,popup:l,children:f,defaultValue:c=[]}=t,h=$a(t,["visible","popup","children","defaultValue"]),[m,d]=nh({value:i,defaultValue:!1,onChange:P=>{var H;P===!1&&((H=t.onClose)===null||H===void 0||H.call(t))}}),g={toggle:()=>{l&&d(P=>!P)},open:()=>{l&&d(!0)},close:()=>{l&&d(!1)}};W.useImperativeHandle(r,()=>g);const C=Array.isArray(t.value)?t.value:t.value!==void 0?[t.value]:void 0,b=Array.isArray(c)?c:c!==void 0?[c]:[],{text:x,value:_,children:k}=Jp({text:"text",value:"value",children:"children"},t.columnsFieldNames),E=W.useMemo(()=>{const P=t.columns[0]||{};return!(Array.isArray(P)||typeof P=="object"&&k in P)},[t.columns,k]),A=P=>E?P==null?void 0:P[0]:P,[T,D]=nh({value:C,defaultValue:b}),R=LT(t.columns,{textKey:x,valueKey:_,childrenKey:k},T),[N,z]=W.useState(T);W.useEffect(()=>{l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[m]),W.useEffect(()=>{!l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[T]);const M=(P,H,V)=>{var G;D(N,!0),(G=t.onConfirm)===null||G===void 0||G.call(t,A(P),A(H),A(V)),l&&g.close()},I=()=>{var P;(P=t.onCancel)===null||P===void 0||P.call(t),l&&g.close()},Y=TD((P,H,V)=>{var G,ee;z(P),l?m&&((G=t.onChange)===null||G===void 0||G.call(t,A(P),A(H),A(V))):(ee=t.onChange)===null||ee===void 0||ee.call(t,A(P),A(H),A(V))}),B=fd(l)?Object.assign({closeOnClickOverlay:!0},l):{closeOnClickOverlay:!0},U=Q(cH,Object.assign({},h,{value:N,onCancel:I,onConfirm:M,onChange:Y}));return l?Be(nn,{children:[Q(sh,Object.assign({round:!0,position:"bottom",visible:m,closeOnClickOverlay:!0,onClickOverlay:()=>{B!=null&&B.closeOnClickOverlay&&d(!1)}},B,{children:U})),f==null?void 0:f(A(T),A(R.items),g)]}):U}const JC=W.forwardRef(fH);function dH(e){return Object.prototype.toString.call(e)==="[object Date]"&&!mD(e.getTime())}const pH=W.forwardRef((e,r)=>{const t=ta(e,{type:"datetime",placeholder:!1,minDate:hH,maxDate:vH,formatter:(M,I)=>I}),{value:i,defaultValue:l,formatter:f,columnsOrder:c,type:h,filter:m,minDate:d,maxDate:g}=t,C=$a(t,["value","defaultValue","formatter","columnsOrder","type","filter","minDate","maxDate"]),b=M=>(dH(M)||(M=new Date),M=Math.max(M,d.getTime()),M=Math.min(M,g.getTime()),new Date(M)),[x,_,k]=X2(()=>b(i||l)),E=(M,I)=>{const Y=t[`${M}Date`],B=Y.getFullYear();let U=1,P=1,H=0,V=0;return M==="max"&&(U=12,P=QC(I.getFullYear(),I.getMonth()+1),H=23,V=59),I.getFullYear()===B&&(U=Y.getMonth()+1,I.getMonth()+1===U&&(P=Y.getDate(),I.getDate()===P&&(H=Y.getHours(),I.getHours()===H&&(V=Y.getMinutes())))),{[`${M}Year`]:B,[`${M}Month`]:U,[`${M}Date`]:P,[`${M}Hour`]:H,[`${M}Minute`]:V}},A=W.useMemo(()=>{const{maxYear:M,maxDate:I,maxMonth:Y,maxHour:B,maxMinute:U}=E("max",k.current),{minYear:P,minDate:H,minMonth:V,minHour:G,minMinute:ee}=E("min",k.current);let ne=[{type:"year",range:[P,M]},{type:"month",range:[V,Y]},{type:"day",range:[H,I]},{type:"hour",range:[G,B]},{type:"minute",range:[ee,U]}];switch(h){case"date":ne=ne.slice(0,3);break;case"year-month":ne=ne.slice(0,2);break;case"month-day":ne=ne.slice(1,3);break;case"datehour":ne=ne.slice(0,4);break}if(c){const $=c.concat(ne.map(X=>X.type));ne.sort((X,Z)=>$.indexOf(X.type)-$.indexOf(Z.type))}return ne.map(({type:$,range:X})=>{let Z=RT(X[1]-X[0]+1,q=>pl(X[0]+q));return m&&(Z=m($,Z)),{type:$,values:Z}})},[c,k.current,d,g]),T=W.useMemo(()=>A.map(M=>M.values.map(I=>f(M.type,I))),[A,f]),D=W.useMemo(()=>{const M=t.popup?b(k.current):k.current;return A.map(Y=>{switch(Y.type){case"year":return f("year",`${M.getFullYear()}`);case"month":return f("month",pl(M.getMonth()+1));case"day":return f("day",pl(M.getDate()));case"hour":return f("hour",pl(M.getHours()));case"minute":return f("minute",pl(M.getMinutes()));default:return""}})},[t.value,k.current,b]),R=M=>{const{type:I}=t,Y=ee=>{let ne=0;A.forEach((X,Z)=>{ee===X.type&&(ne=Z)});const{values:$}=A[ne];return GI($[M[ne]])};let B=null,U=null,P=null;I==="month-day"?(B=(x||d).getFullYear(),U=Y("month"),P=Y("day")):(B=Y("year"),U=Y("month"),P=I==="year-month"?1:Y("day"));const H=QC(B,U);P=P>H?H:P;let V=0,G=0;return I==="datehour"&&(V=+Y("hour")),I==="datetime"&&(V=+Y("hour"),G=+Y("minute")),b(new Date(B,U-1,P,V,G))},N=(M,I,Y)=>{var B;const U=R(Y);_(U),(B=t.onChange)===null||B===void 0||B.call(t,U)},z=()=>{var M;(M=t.onConfirm)===null||M===void 0||M.call(t,x)};return Rc(()=>{const M=b(i);M&&M.valueOf()!==(x==null?void 0:x.valueOf())&&_(M)},[i,m,d,g]),Q(JC,Object.assign({},C,{value:D,ref:r,columns:T,onChange:N,onConfirm:z,onCancel:t.onCancel},{children:(M,I,Y)=>{var B;return(B=t.children)===null||B===void 0?void 0:B.call(t,i||l,I,Y)}}))}),zT=new Date().getFullYear(),hH=new Date(zT-10,0,1),vH=new Date(zT+10,11,31),mH=pH,gH=W.forwardRef((e,r)=>{const t=ta(e,{minHour:0,maxHour:23,minMinute:0,maxMinute:59,placeholder:!1,defaultValue:"",formatter:(z,M)=>M}),{value:i,defaultValue:l,formatter:f,filter:c,minHour:h,maxHour:m,minMinute:d,maxMinute:g}=t,C=$a(t,["value","defaultValue","formatter","filter","minHour","maxHour","minMinute","maxMinute"]),b=z=>{z||(z=`${pl(h)}:${pl(d)}`);let[M,I]=z.split(":");return M=pl(eh(M,+h,+m)),I=pl(eh(I,+d,+g)),`${M}:${I}`},[x,_]=W.useState(()=>b(i===void 0?l:i)),k=W.useMemo(()=>[{type:"hour",range:[+h,+m]},{type:"minute",range:[+d,+g]}],[h,m,d,g]),E=W.useMemo(()=>k.map(({type:z,range:M})=>{let I=RT(M[1]-M[0]+1,Y=>pl(M[0]+Y));return c&&(I=c(z,I)),{type:z,values:I}}),[k]),A=W.useMemo(()=>E.map(z=>z.values.map(M=>f(z.type,M))),[E]),T=W.useMemo(()=>{const z=(t.popup?b(t.value):x).split(":");return[f("hour",z[0]),f("minute",z[1])]},[t.value,x,b]),D=()=>{var z;(z=t.onConfirm)===null||z===void 0||z.call(t,x)},R=()=>{var z;(z=t.onCancel)===null||z===void 0||z.call(t)},N=z=>{var M;const I=b(z.join(":"));_(I),(M=t.onChange)===null||M===void 0||M.call(t,I)};return Rc(()=>{const z=b(x);_(z)},[c,h,m,d,g]),Rc(()=>{const z=b(i);z!==x&&_(z)},[i]),Q(JC,Object.assign({},C,{ref:r,columns:A,value:T,onChange:N,onConfirm:D,onCancel:R},{children:(z,M,I)=>{var Y;return(Y=t.children)===null||Y===void 0?void 0:Y.call(t,i,M,I)}}))}),[UT]=wn("datetime-picker"),ew=W.forwardRef((e,r)=>e.type==="time"?Q(gH,Object.assign({ref:r,className:Re(UT())},e)):Q(mH,Object.assign({ref:r,className:Re(UT())},e)));function tw(e){return Array.isArray(e)?e:[e]}const SX="";function jT(e,r){this.v=e,this.k=r}function ka(e,r,t,i){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}ka=function(c,h,m,d){function g(C,b){ka(c,C,function(x){return this._invoke(C,b,x)})}h?l?l(c,h,{value:m,enumerable:!d,configurable:!d,writable:!d}):c[h]=m:(g("next",0),g("throw",1),g("return",2))},ka(e,r,t,i)}function nw(){var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function f(x,_,k,E){var A=_&&_.prototype instanceof h?_:h,T=Object.create(A.prototype);return ka(T,"_invoke",function(D,R,N){var z,M,I,Y=0,B=N||[],U=!1,P={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(G,ee){return z=G,M=0,I=e,P.n=ee,c}};function H(V,G){for(M=V,I=G,r=0;!U&&Y&&!ee&&r<B.length;r++){var ee,ne=B[r],$=P.p,X=ne[2];V>3?(ee=X===G)&&(I=ne[(M=ne[4])?5:(M=3,3)],ne[4]=ne[5]=e):ne[0]<=$&&((ee=V<2&&$<ne[1])?(M=0,P.v=G,P.n=ne[1]):$<X&&(ee=V<3||ne[0]>G||G>X)&&(ne[4]=V,ne[5]=G,P.n=X,M=0))}if(ee||V>1)return c;throw U=!0,G}return function(V,G,ee){if(Y>1)throw TypeError("Generator is already running");for(U&&G===1&&H(G,ee),M=G,I=ee;(r=M<2?e:I)||!U;){z||(M?M<3?(M>1&&(P.n=-1),H(M,I)):P.n=I:P.v=I);try{if(Y=2,z){if(M||(V="next"),r=z[V]){if(!(r=r.call(z,I)))throw TypeError("iterator result is not an object");if(!r.done)return r;I=r.value,M<2&&(M=0)}else M===1&&(r=z.return)&&r.call(z),M<2&&(I=TypeError("The iterator does not provide a '"+V+"' method"),M=1);z=e}else if((r=(U=P.n<0)?I:D.call(R,P))!==c)break}catch(ne){z=e,M=1,I=ne}finally{Y=1}}return{value:r,done:U}}}(x,k,E),!0),T}var c={};function h(){}function m(){}function d(){}r=Object.getPrototypeOf;var g=[][i]?r(r([][i]())):(ka(r={},i,function(){return this}),r),C=d.prototype=h.prototype=Object.create(g);function b(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,d):(x.__proto__=d,ka(x,l,"GeneratorFunction")),x.prototype=Object.create(C),x}return m.prototype=d,ka(C,"constructor",d),ka(d,"constructor",m),m.displayName="GeneratorFunction",ka(d,l,"GeneratorFunction"),ka(C),ka(C,l,"Generator"),ka(C,i,function(){return this}),ka(C,"toString",function(){return"[object Generator]"}),(nw=function(){return{w:f,m:b}})()}function hy(e,r){function t(l,f,c,h){try{var m=e[l](f),d=m.value;return d instanceof jT?r.resolve(d.v).then(function(g){t("next",g,c,h)},function(g){t("throw",g,c,h)}):r.resolve(d).then(function(g){m.value=g,c(m)},function(g){return t("throw",g,c,h)})}catch(g){h(g)}}var i;this.next||(ka(hy.prototype),ka(hy.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ka(this,"_invoke",function(l,f,c){function h(){return new r(function(m,d){t(l,c,m,d)})}return i=i?i.then(h,h):h()},!0)}function IT(e,r,t,i,l){return new hy(nw().w(e,r,t,i),l||Promise)}function yH(e,r,t,i,l){var f=IT(e,r,t,i,l);return f.next().then(function(c){return c.done?c.value:f.next()})}function xH(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function l(){for(;t.length;)if((i=t.pop())in r)return l.value=i,l.done=!1,l;return l.done=!0,l}}function HT(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(Br(e)+" is not iterable")}function ro(){var e=nw(),r=e.m(ro),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(c){var h=typeof c=="function"&&c.constructor;return!!h&&(h===t||(h.displayName||h.name)==="GeneratorFunction")}var l={throw:1,return:2,break:3,continue:3};function f(c){var h,m;return function(d){h||(h={stop:function(){return m(d.a,2)},catch:function(){return d.v},abrupt:function(C,b){return m(d.a,l[C],b)},delegateYield:function(C,b,x){return h.resultName=b,m(d.d,HT(C),x)},finish:function(C){return m(d.f,C)}},m=function(C,b,x){d.p=h.prev,d.n=h.next;try{return C(b,x)}finally{h.next=d.n}}),h.resultName&&(h[h.resultName]=d.v,h.resultName=void 0),h.sent=d.v,h.next=d.n;try{return c.call(this,h)}finally{d.p=h.prev,d.n=h.next}}}return(ro=function(){return{wrap:function(m,d,g,C){return e.w(f(m),d,g,C&&C.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(m,d){return new jT(m,d)},AsyncIterator:hy,async:function(m,d,g,C,b){return(i(d)?IT:yH)(f(m),d,g,C,b)},keys:xH,values:HT}})()}function VT(e,r,t,i,l,f,c){try{var h=e[f](c),m=h.value}catch(d){return void t(d)}h.done?r(m):Promise.resolve(m).then(i,l)}function Bh(e){return function(){var r=this,t=arguments;return new Promise(function(i,l){var f=e.apply(r,t);function c(m){VT(f,i,l,c,h,"next",m)}function h(m){VT(f,i,l,c,h,"throw",m)}c(void 0)})}}function bH(e){if(Array.isArray(e))return Cb(e)}function $T(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
+ `,e.getElementsByTagName("head")[0].appendChild(r)),e.body&&A6(e.body,"react-draggable-transparent-selection")}function rB(e){if(e)try{if(e.body&&O6(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const r=(e.defaultView||window).getSelection();r&&r.type!=="Caret"&&r.removeAllRanges()}}catch{}}function A6(e,r){e.classList?e.classList.add(r):e.className.match(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)")))||(e.className+=" ".concat(r))}function O6(e,r){e.classList?e.classList.remove(r):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(r,"(?!\\S)"),"g"),"")}var fl={};Object.defineProperty(fl,"__esModule",{value:!0}),fl.canDragX=oB,fl.canDragY=lB,fl.createCoreData=uB,fl.createDraggableData=cB,fl.getBoundPosition=aB,fl.getControlPosition=sB,fl.snapToGrid=iB;var Ni=cl,ud=sr;function aB(e,r,t){if(!e.props.bounds)return[r,t];let{bounds:i}=e.props;i=typeof i=="string"?i:fB(i);const l=O2(e);if(typeof i=="string"){const{ownerDocument:f}=l,c=f.defaultView;let h;if(i==="parent"?h=l.parentNode:h=f.querySelector(i),!(h instanceof c.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');const m=h,d=c.getComputedStyle(l),g=c.getComputedStyle(m);i={left:-l.offsetLeft+(0,Ni.int)(g.paddingLeft)+(0,Ni.int)(d.marginLeft),top:-l.offsetTop+(0,Ni.int)(g.paddingTop)+(0,Ni.int)(d.marginTop),right:(0,ud.innerWidth)(m)-(0,ud.outerWidth)(l)-l.offsetLeft+(0,Ni.int)(g.paddingRight)-(0,Ni.int)(d.marginRight),bottom:(0,ud.innerHeight)(m)-(0,ud.outerHeight)(l)-l.offsetTop+(0,Ni.int)(g.paddingBottom)-(0,Ni.int)(d.marginBottom)}}return(0,Ni.isNum)(i.right)&&(r=Math.min(r,i.right)),(0,Ni.isNum)(i.bottom)&&(t=Math.min(t,i.bottom)),(0,Ni.isNum)(i.left)&&(r=Math.max(r,i.left)),(0,Ni.isNum)(i.top)&&(t=Math.max(t,i.top)),[r,t]}function iB(e,r,t){const i=Math.round(r/e[0])*e[0],l=Math.round(t/e[1])*e[1];return[i,l]}function oB(e){return e.props.axis==="both"||e.props.axis==="x"}function lB(e){return e.props.axis==="both"||e.props.axis==="y"}function sB(e,r,t){const i=typeof r=="number"?(0,ud.getTouch)(e,r):null;if(typeof r=="number"&&!i)return null;const l=O2(t),f=t.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,ud.offsetXYFromParent)(i||e,f,t.props.scale)}function uB(e,r,t){const i=!(0,Ni.isNum)(e.lastX),l=O2(e);return i?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:t,x:r,y:t}:{node:l,deltaX:r-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:r,y:t}}function cB(e,r){const t=e.props.scale;return{node:r.node,x:e.state.x+r.deltaX/t,y:e.state.y+r.deltaY/t,deltaX:r.deltaX/t,deltaY:r.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function fB(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function O2(e){const r=e.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}var Tg={},Ag={};Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=dB;function dB(){}Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var R2=hB(W),li=N2(wt.exports),pB=N2(tu.exports),Ea=sr,lu=fl,F2=cl,qp=N2(Ag);function N2(e){return e&&e.__esModule?e:{default:e}}function R6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(R6=function(i){return i?t:r})(e)}function hB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=R6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function Va(e,r,t){return r=vB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function vB(e){var r=mB(e,"string");return typeof r=="symbol"?r:String(r)}function mB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}const bo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let su=bo.mouse,Og=class extends R2.Component{constructor(){super(...arguments),Va(this,"dragging",!1),Va(this,"lastX",NaN),Va(this,"lastY",NaN),Va(this,"touchIdentifier",null),Va(this,"mounted",!1),Va(this,"handleDragStart",r=>{if(this.props.onMouseDown(r),!this.props.allowAnyClick&&typeof r.button=="number"&&r.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:i}=t;if(this.props.disabled||!(r.target instanceof i.defaultView.Node)||this.props.handle&&!(0,Ea.matchesSelectorAndParentsTo)(r.target,this.props.handle,t)||this.props.cancel&&(0,Ea.matchesSelectorAndParentsTo)(r.target,this.props.cancel,t))return;r.type==="touchstart"&&r.preventDefault();const l=(0,Ea.getTouchIdentifier)(r);this.touchIdentifier=l;const f=(0,lu.getControlPosition)(r,l,this);if(f==null)return;const{x:c,y:h}=f,m=(0,lu.createCoreData)(this,c,h);(0,qp.default)("DraggableCore: handleDragStart: %j",m),(0,qp.default)("calling",this.props.onStart),!(this.props.onStart(r,m)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ea.addUserSelectStyles)(i),this.dragging=!0,this.lastX=c,this.lastY=h,(0,Ea.addEvent)(i,su.move,this.handleDrag),(0,Ea.addEvent)(i,su.stop,this.handleDragStop))}),Va(this,"handleDrag",r=>{const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let h=i-this.lastX,m=l-this.lastY;if([h,m]=(0,lu.snapToGrid)(this.props.grid,h,m),!h&&!m)return;i=this.lastX+h,l=this.lastY+m}const f=(0,lu.createCoreData)(this,i,l);if((0,qp.default)("DraggableCore: handleDrag: %j",f),this.props.onDrag(r,f)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const m=document.createEvent("MouseEvents");m.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(m)}return}this.lastX=i,this.lastY=l}),Va(this,"handleDragStop",r=>{if(!this.dragging)return;const t=(0,lu.getControlPosition)(r,this.touchIdentifier,this);if(t==null)return;let{x:i,y:l}=t;if(Array.isArray(this.props.grid)){let m=i-this.lastX||0,d=l-this.lastY||0;[m,d]=(0,lu.snapToGrid)(this.props.grid,m,d),i=this.lastX+m,l=this.lastY+d}const f=(0,lu.createCoreData)(this,i,l);if(this.props.onStop(r,f)===!1||this.mounted===!1)return!1;const h=this.findDOMNode();h&&this.props.enableUserSelectHack&&(0,Ea.removeUserSelectStyles)(h.ownerDocument),(0,qp.default)("DraggableCore: handleDragStop: %j",f),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,h&&((0,qp.default)("DraggableCore: Removing handlers"),(0,Ea.removeEvent)(h.ownerDocument,su.move,this.handleDrag),(0,Ea.removeEvent)(h.ownerDocument,su.stop,this.handleDragStop))}),Va(this,"onMouseDown",r=>(su=bo.mouse,this.handleDragStart(r))),Va(this,"onMouseUp",r=>(su=bo.mouse,this.handleDragStop(r))),Va(this,"onTouchStart",r=>(su=bo.touch,this.handleDragStart(r))),Va(this,"onTouchEnd",r=>(su=bo.touch,this.handleDragStop(r)))}componentDidMount(){this.mounted=!0;const r=this.findDOMNode();r&&(0,Ea.addEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const r=this.findDOMNode();if(r){const{ownerDocument:t}=r;(0,Ea.removeEvent)(t,bo.mouse.move,this.handleDrag),(0,Ea.removeEvent)(t,bo.touch.move,this.handleDrag),(0,Ea.removeEvent)(t,bo.mouse.stop,this.handleDragStop),(0,Ea.removeEvent)(t,bo.touch.stop,this.handleDragStop),(0,Ea.removeEvent)(r,bo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ea.removeUserSelectStyles)(t)}}findDOMNode(){var r,t;return(r=this.props)!==null&&r!==void 0&&r.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:pB.default.findDOMNode(this)}render(){return R2.cloneElement(R2.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Tg.default=Og,Va(Og,"displayName","DraggableCore"),Va(Og,"propTypes",{allowAnyClick:li.default.bool,children:li.default.node.isRequired,disabled:li.default.bool,enableUserSelectHack:li.default.bool,offsetParent:function(e,r){if(e[r]&&e[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:li.default.arrayOf(li.default.number),handle:li.default.string,cancel:li.default.string,nodeRef:li.default.object,onStart:li.default.func,onDrag:li.default.func,onStop:li.default.func,onMouseDown:li.default.func,scale:li.default.number,className:F2.dontSetMe,style:F2.dontSetMe,transform:F2.dontSetMe}),Va(Og,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return m.default}}),e.default=void 0;var r=b(W),t=g(wt.exports),i=g(tu.exports),l=g(PP),f=sr,c=fl,h=cl,m=g(Tg),d=g(Ag);function g(T){return T&&T.__esModule?T:{default:T}}function C(T){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(C=function(N){return N?R:D})(T)}function b(T,D){if(!D&&T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var R=C(D);if(R&&R.has(T))return R.get(T);var N={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in T)if(M!=="default"&&Object.prototype.hasOwnProperty.call(T,M)){var I=z?Object.getOwnPropertyDescriptor(T,M):null;I&&(I.get||I.set)?Object.defineProperty(N,M,I):N[M]=T[M]}return N.default=T,R&&R.set(T,N),N}function x(){return x=Object.assign?Object.assign.bind():function(T){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var N in R)Object.prototype.hasOwnProperty.call(R,N)&&(T[N]=R[N])}return T},x.apply(this,arguments)}function _(T,D,R){return D=k(D),D in T?Object.defineProperty(T,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[D]=R,T}function k(T){var D=E(T,"string");return typeof D=="symbol"?D:String(D)}function E(T,D){if(typeof T!="object"||T===null)return T;var R=T[Symbol.toPrimitive];if(R!==void 0){var N=R.call(T,D||"default");if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(T)}class A extends r.Component{static getDerivedStateFromProps(D,R){let{position:N}=D,{prevPropsPosition:z}=R;return N&&(!z||N.x!==z.x||N.y!==z.y)?((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:N,prevPropsPosition:z}),{x:N.x,y:N.y,prevPropsPosition:{...N}}):null}constructor(D){super(D),_(this,"onDragStart",(R,N)=>{if((0,d.default)("Draggable: onDragStart: %j",N),this.props.onStart(R,(0,c.createDraggableData)(this,N))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),_(this,"onDrag",(R,N)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",N);const z=(0,c.createDraggableData)(this,N),M={x:z.x,y:z.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Y,y:B}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[U,P]=(0,c.getBoundPosition)(this,M.x,M.y);M.x=U,M.y=P,M.slackX=this.state.slackX+(Y-M.x),M.slackY=this.state.slackY+(B-M.y),z.x=M.x,z.y=M.y,z.deltaX=M.x-this.state.x,z.deltaY=M.y-this.state.y}if(this.props.onDrag(R,z)===!1)return!1;this.setState(M)}),_(this,"onDragStop",(R,N)=>{if(!this.state.dragging||this.props.onStop(R,(0,c.createDraggableData)(this,N))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",N);const M={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:Y,y:B}=this.props.position;M.x=Y,M.y=B}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:D.position?D.position.x:D.defaultPosition.x,y:D.position?D.position.y:D.defaultPosition.y,prevPropsPosition:{...D.position},slackX:0,slackY:0,isElementSVG:!1},D.position&&(D.onDrag||D.onStop)}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var D,R;return(D=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&D!==void 0?D:i.default.findDOMNode(this)}render(){const{axis:D,bounds:R,children:N,defaultPosition:z,defaultClassName:M,defaultClassNameDragging:I,defaultClassNameDragged:Y,position:B,positionOffset:U,scale:P,...H}=this.props;let V={},G=null;const ne=!Boolean(B)||this.state.dragging,$=B||z,X={x:(0,c.canDragX)(this)&&ne?this.state.x:$.x,y:(0,c.canDragY)(this)&&ne?this.state.y:$.y};this.state.isElementSVG?G=(0,f.createSVGTransform)(X,U):V=(0,f.createCSSTransform)(X,U);const Z=(0,l.default)(N.props.className||"",M,{[I]:this.state.dragging,[Y]:this.state.dragged});return r.createElement(m.default,x({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(N),{className:Z,style:{...N.props.style,...V},transform:G}))}}e.default=A,_(A,"displayName","Draggable"),_(A,"propTypes",{...m.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:h.dontSetMe,style:h.dontSetMe,transform:h.dontSetMe}),_(A,"defaultProps",{...m.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(f6);const{default:F6,DraggableCore:gB}=f6;Dg.exports=F6,Dg.exports.default=F6,Dg.exports.DraggableCore=gB;var M2={};M2.__esModule=!0,M2.cloneElement=_B;var yB=xB(W);function xB(e){return e&&e.__esModule?e:{default:e}}function N6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function M6(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?N6(Object(t),!0).forEach(function(i){bB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function bB(e,r,t){return r=CB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function CB(e){var r=wB(e,"string");return typeof r=="symbol"?r:String(r)}function wB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _B(e,r){return r.style&&e.props.style&&(r.style=M6(M6({},e.props.style),r.style)),r.className&&e.props.className&&(r.className=e.props.className+" "+r.className),yB.default.cloneElement(e,r)}var Gp={};Gp.__esModule=!0,Gp.resizableProps=void 0;var zt=SB(wt.exports);function SB(e){return e&&e.__esModule?e:{default:e}}var EB={axis:zt.default.oneOf(["both","x","y","none"]),className:zt.default.string,children:zt.default.element.isRequired,draggableOpts:zt.default.shape({allowAnyClick:zt.default.bool,cancel:zt.default.string,children:zt.default.node,disabled:zt.default.bool,enableUserSelectHack:zt.default.bool,offsetParent:zt.default.node,grid:zt.default.arrayOf(zt.default.number),handle:zt.default.string,nodeRef:zt.default.object,onStart:zt.default.func,onDrag:zt.default.func,onStop:zt.default.func,onMouseDown:zt.default.func,scale:zt.default.number}),height:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="y"){var f;return(f=zt.default.number).isRequired.apply(f,t)}return zt.default.number.apply(zt.default,t)},handle:zt.default.oneOfType([zt.default.node,zt.default.func]),handleSize:zt.default.arrayOf(zt.default.number),lockAspectRatio:zt.default.bool,maxConstraints:zt.default.arrayOf(zt.default.number),minConstraints:zt.default.arrayOf(zt.default.number),onResizeStop:zt.default.func,onResizeStart:zt.default.func,onResize:zt.default.func,resizeHandles:zt.default.arrayOf(zt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:zt.default.number,width:function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var l=t[0];if(l.axis==="both"||l.axis==="x"){var f;return(f=zt.default.number).isRequired.apply(f,t)}return zt.default.number.apply(zt.default,t)}};Gp.resizableProps=EB,Yp.__esModule=!0,Yp.default=void 0;var Kp=OB(W),DB=Dg.exports,kB=M2,TB=Gp,AB=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function P6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(P6=function(l){return l?t:r})(e)}function OB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=P6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},P2.apply(this,arguments)}function RB(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function B6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function B2(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?B6(Object(t),!0).forEach(function(i){FB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):B6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function FB(e,r,t){return r=NB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function NB(e){var r=MB(e,"string");return typeof r=="symbol"?r:String(r)}function MB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function PB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,L2(e,r)}function L2(e,r){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},L2(e,r)}var z2=function(e){PB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.handleRefs={},i.lastHandleRect=null,i.slack=null,i}var t=r.prototype;return t.componentWillUnmount=function(){this.resetData()},t.resetData=function(){this.lastHandleRect=this.slack=null},t.runConstraints=function(l,f){var c=this.props,h=c.minConstraints,m=c.maxConstraints,d=c.lockAspectRatio;if(!h&&!m&&!d)return[l,f];if(d){var g=this.props.width/this.props.height,C=l-this.props.width,b=f-this.props.height;Math.abs(C)>Math.abs(b*g)?f=l/g:l=f*g}var x=l,_=f,k=this.slack||[0,0],E=k[0],A=k[1];return l+=E,f+=A,h&&(l=Math.max(h[0],l),f=Math.max(h[1],f)),m&&(l=Math.min(m[0],l),f=Math.min(m[1],f)),this.slack=[E+(x-l),A+(_-f)],[l,f]},t.resizeHandler=function(l,f){var c=this;return function(h,m){var d=m.node,g=m.deltaX,C=m.deltaY;l==="onResizeStart"&&c.resetData();var b=(c.props.axis==="both"||c.props.axis==="x")&&f!=="n"&&f!=="s",x=(c.props.axis==="both"||c.props.axis==="y")&&f!=="e"&&f!=="w";if(!(!b&&!x)){var _=f[0],k=f[f.length-1],E=d.getBoundingClientRect();if(c.lastHandleRect!=null){if(k==="w"){var A=E.left-c.lastHandleRect.left;g+=A}if(_==="n"){var T=E.top-c.lastHandleRect.top;C+=T}}c.lastHandleRect=E,k==="w"&&(g=-g),_==="n"&&(C=-C);var D=c.props.width+(b?g/c.props.transformScale:0),R=c.props.height+(x?C/c.props.transformScale:0),N=c.runConstraints(D,R);D=N[0],R=N[1];var z=D!==c.props.width||R!==c.props.height,M=typeof c.props[l]=="function"?c.props[l]:null,I=l==="onResize"&&!z;M&&!I&&(h.persist==null||h.persist(),M(h,{node:d,size:{width:D,height:R},handle:f})),l==="onResizeStop"&&c.resetData()}}},t.renderResizeHandle=function(l,f){var c=this.props.handle;if(!c)return Kp.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+l,ref:f});if(typeof c=="function")return c(l,f);var h=typeof c.type=="string",m=B2({ref:f},h?{}:{handleAxis:l});return Kp.cloneElement(c,m)},t.render=function(){var l=this,f=this.props,c=f.children,h=f.className,m=f.draggableOpts;f.width,f.height,f.handle,f.handleSize,f.lockAspectRatio,f.axis,f.minConstraints,f.maxConstraints,f.onResize,f.onResizeStop,f.onResizeStart;var d=f.resizeHandles;f.transformScale;var g=RB(f,AB);return(0,kB.cloneElement)(c,B2(B2({},g),{},{className:(h?h+" ":"")+"react-resizable",children:[].concat(c.props.children,d.map(function(C){var b,x=(b=l.handleRefs[C])!=null?b:l.handleRefs[C]=Kp.createRef();return Kp.createElement(DB.DraggableCore,P2({},m,{nodeRef:x,key:"resizableHandle-"+C,onStop:l.resizeHandler("onResizeStop",C),onStart:l.resizeHandler("onResizeStart",C),onDrag:l.resizeHandler("onResize",C)}),l.renderResizeHandle(C,x))}))}))},r}(Kp.Component);Yp.default=z2,z2.propTypes=TB.resizableProps,z2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Rg={};Rg.__esModule=!0,Rg.default=void 0;var U2=jB(W),BB=L6(wt.exports),LB=L6(Yp),zB=Gp,UB=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function L6(e){return e&&e.__esModule?e:{default:e}}function z6(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(z6=function(l){return l?t:r})(e)}function jB(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=z6(r);if(t&&t.has(e))return t.get(e);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var c=l?Object.getOwnPropertyDescriptor(e,f):null;c&&(c.get||c.set)?Object.defineProperty(i,f,c):i[f]=e[f]}return i.default=e,t&&t.set(e,i),i}function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},j2.apply(this,arguments)}function U6(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function Fg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?U6(Object(t),!0).forEach(function(i){IB(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U6(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function IB(e,r,t){return r=HB(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function HB(e){var r=VB(e,"string");return typeof r=="symbol"?r:String(r)}function VB(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function $B(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function YB(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,I2(e,r)}function I2(e,r){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},I2(e,r)}var j6=function(e){YB(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.state={width:i.props.width,height:i.props.height,propsWidth:i.props.width,propsHeight:i.props.height},i.onResize=function(h,m){var d=m.size;i.props.onResize?(h.persist==null||h.persist(),i.setState(d,function(){return i.props.onResize&&i.props.onResize(h,m)})):i.setState(d)},i}r.getDerivedStateFromProps=function(l,f){return f.propsWidth!==l.width||f.propsHeight!==l.height?{width:l.width,height:l.height,propsWidth:l.width,propsHeight:l.height}:null};var t=r.prototype;return t.render=function(){var l=this.props,f=l.handle,c=l.handleSize;l.onResize;var h=l.onResizeStart,m=l.onResizeStop,d=l.draggableOpts,g=l.minConstraints,C=l.maxConstraints,b=l.lockAspectRatio,x=l.axis;l.width,l.height;var _=l.resizeHandles,k=l.style,E=l.transformScale,A=$B(l,UB);return U2.createElement(LB.default,{axis:x,draggableOpts:d,handle:f,handleSize:c,height:this.state.height,lockAspectRatio:b,maxConstraints:C,minConstraints:g,onResizeStart:h,onResize:this.onResize,onResizeStop:m,resizeHandles:_,transformScale:E,width:this.state.width},U2.createElement("div",j2({},A,{style:Fg(Fg({},k),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},r}(U2.Component);Rg.default=j6,j6.propTypes=Fg(Fg({},zB.resizableProps),{},{children:BB.default.element}),x2.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var qB=x2.exports.Resizable=Yp.default;x2.exports.ResizableBox=Rg.default;const GB={search:"search-table-module_search_17add",table:"search-table-module_table_5f652"},KB=e=>{const{onResize:r,width:t,resizeable:i,...l}=e;return!t||!i?Q("th",{...l}):Q(qB,{width:t||200,height:0,onResize:r,draggableOpts:{enableUserSelectHack:!1},children:Q("th",{...l})})};function WB(e){const{tableProps:r={},searchProps:t,langId:i}=e,{minColumnWidth:l=200,resizeable:f=!1,tableId:c,storageKey:h="szld_table_cell_width",emptyText:m,...d}=r,[g,C]=W.useState(r.columns||[]),b=E=>{var T,D;let A=E.width||l;if(E.dataIndex&&c){const R=Array.isArray(E.dataIndex)?E.dataIndex.join("-"):String(E.dataIndex),N=(D=(T=jb(h))==null?void 0:T[c])==null?void 0:D[R];N&&(A=N)}return A};W.useEffect(()=>{const E=r.columns||[];if(E.length===0||!f){C(E);return}const A=E==null?void 0:E.filter(T=>!T.hidden).map(T=>T.dataIndex?{...T,width:b(T),onHeaderCell:D=>({width:D.width,resizeable:f,onResize:(R,{size:N})=>x(D,N)})}:T);A.length>0&&(A[A.length-1].minWidth=A[A.length-1].width,A[A.length-1].width=void 0),C(A)},[r.columns,c,l,f]);const x=(E,A)=>{C(T=>{const D=T==null?void 0:T.map(R=>R.dataIndex===E.dataIndex?{...R,width:A.width}:R);if(c){const R=jb(h)||{};R[c]=R[c]||{},D==null||D.forEach(N=>{if(N.dataIndex){const z=Array.isArray(N.dataIndex)?N.dataIndex.join("-"):String(N.dataIndex);R[c][z]=N.width}}),localStorage.setItem(h,JSON.stringify(R))}return D})},_={header:{cell:KB},...d==null?void 0:d.components},k=W.useMemo(()=>{var A;const E=T=>{let D=T.width||T.minWidth;return(!D||typeof D=="string")&&(D=l),D};return(A=g==null?void 0:g.map(T=>E(T)))==null?void 0:A.reduce((T,D)=>T+D,0)},[g,l]);return Be(nn,{children:[t&&Q(y2,{hiddenTitle:!0,...t,items:t.items}),Q(me.Table,{scroll:{x:k},...d,components:_,columns:g,className:rs(GB.table,r==null?void 0:r.className),locale:{emptyText:Q(me.Empty,{image:me.Empty.PRESENTED_IMAGE_SIMPLE,description:m})},pagination:typeof(r==null?void 0:r.pagination)=="boolean"?r.pagination:{showPrevNextJumpers:!0,showQuickJumper:!0,showSizeChanger:!0,showTotal:E=>i==="10001"?`共 ${E} 条`:`Total ${E} items`,...r==null?void 0:r.pagination}})]})}const QB={editableCellValueWrap:"editable-module_editableCellValueWrap_3b3d9"},I6=W.createContext(null),ZB=({index:e,...r})=>{const[t]=me.Form.useForm();return Q(me.Form,{form:t,component:!1,children:Q(I6.Provider,{value:t,children:Q("tr",{...r})})})};function XB(e){const{title:r,editable:t,children:i,dataIndex:l,record:f,rules:c,onChange:h,type:m="input",valueProps:d,initialValue:g,...C}=e,b=W.useRef(null),x=W.useContext(I6),_=async()=>{try{const A=await x.validateFields();h({...f,...A})}catch{}},k=()=>Q(c6,{valueType:m,valueProps:{...d,onBlur:_,onPressEnter:_},inputRef:b});let E=i;return t&&(E=Q(me.Form.Item,{style:{margin:0},initialValue:g||il.get(f,l),name:l,rules:c,children:k()})),Q("td",{...C,children:E})}function JB(e){const{columns:r,onChange:t,...i}=e,l={body:{row:ZB,cell:XB}},f=r==null?void 0:r.map(c=>c.editable?{...c,onCell:h=>({...c,record:h,onChange:t})}:c);return Q(me.Table,{...i,components:l,rowClassName:()=>QB.editableRow,columns:f})}const H6=e=>{const{auth:r=!0,...t}=e;return r?Q(me.Button,{...t}):null},eL=e=>{const{PId:r,auths:t,...i}=e,l=W.useMemo(()=>t?!!(typeof r=="number"&&t.find(f=>f.PId===r)||Array.isArray(r)&&t.filter(f=>r.includes(f.PId)).length>0):!1,[r,t]);return Q(H6,{...i,auth:l})},Wp={wrapper:"LoopSlide-module_wrapper_dde90",container:"LoopSlide-module_container_be123",scrollContent:"LoopSlide-module_scrollContent_36ed7",content:"LoopSlide-module_content_f392a"},tL=({speed:e=10,delay:r=1,timingFunction:t="linear",className:i="",style:l,children:f,height:c="100vh",mouseControl:h=!1,classes:m})=>{const d=W.useRef(null),g=W.useRef(null),C=W.useRef(null),b=W.useRef(null),x=W.useRef(0),_=W.useRef(),k=W.useRef(0),E=W.useMemo(()=>{if(!g.current||!C.current)return;const M=g.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());return Y*2-M.clientHeight<Y},[]),A=()=>{if(!g.current||!C.current)return;const M=g.current,I=C.current,Y=parseFloat(I.scrollHeight.toString());if(Y*2<=M.clientHeight){M.style.animation="none";return}const B=Y/M.clientHeight;M.style.setProperty("--content-height",`${Y}px`),M.style.animationDuration=`${e*B}s`,M.style.animationDelay=`${r}s`,M.style.animationTimingFunction=t};W.useEffect(()=>(A(),g.current&&(b.current=new ResizeObserver(A),b.current.observe(g.current)),()=>{b.current&&g.current&&b.current.unobserve(g.current)}),[e,r]);const T=()=>{h&&g.current&&(g.current.style.animationPlayState="paused")},D=()=>{h&&g.current&&(z(),g.current.style.animationPlayState="running")},R=()=>{if(!g.current||!h)return;const I=g.current.getAnimations()[0];if(I)if(Math.abs(x.current)>.1){const Y=performance.now(),B=Y-k.current;k.current=Y;const U=.95;x.current*=Math.pow(U,B/16);const P=I.currentTime||0;I.currentTime=P+x.current,_.current=requestAnimationFrame(R)}else x.current=0,z()},N=M=>{if(!h||!g.current)return;M.preventDefault();const I=M.deltaY,Y=.25;x.current+=I*Y;const B=50;x.current=Math.max(-B,Math.min(B,x.current)),_.current||(k.current=performance.now(),_.current=requestAnimationFrame(R))},z=()=>{_.current&&(cancelAnimationFrame(_.current),_.current=void 0)};return W.useEffect(()=>()=>{z()},[]),W.useEffect(()=>{const M=d.current;if(M)return h&&M.addEventListener("wheel",N,{passive:!1}),()=>{M.removeEventListener("wheel",N)}},[h]),Q("div",{ref:d,className:`${Wp.wrapper} ${i}`,style:{height:c,...l},onMouseEnter:T,onMouseLeave:D,children:Be("div",{ref:g,className:rs(Wp.container,m==null?void 0:m.container),children:[Q("div",{ref:C,className:rs(Wp.content,m==null?void 0:m.content),children:f}),Q("div",{className:rs(Wp.content,m==null?void 0:m.content),children:f}),E&&Q("div",{className:rs(Wp.content,m==null?void 0:m.content),children:f})]})})},Lr={main:"workflownode-module_main_dce7f",item:"workflownode-module_item_73d7c",tail:"workflownode-module_tail_3cb51",node:"workflownode-module_node_005fd",content:"workflownode-module_content_8334f",btn:"workflownode-module_btn_b0c06",collpase:"workflownode-module_collpase_f2468",title:"workflownode-module_title_cb34c",dateWrapper:"workflownode-module_dateWrapper_94849",remark:"workflownode-module_remark_4f910",itemActive:"workflownode-module_itemActive_2a29d",itemDone:"workflownode-module_itemDone_489bc",itemUnDo:"workflownode-module_itemUnDo_2914c"},V6=e=>{const{data:r,current:t,rowKey:i,renderContent:l}=e,[f,c]=W.useState(!1),h=W.useMemo(()=>e.currentIndex!==void 0?e.currentIndex:!t||r.length===0?0:r.findIndex(C=>C.PNId===t),[t,r]),m=W.useMemo(()=>h>1?f?0:h-1:0,[h,f]),d=()=>{c(!0)};return Be("ul",{className:Lr.main,children:[h>1&&!f&&Be("li",{className:rs(Lr.item,Lr.itemDone),children:[Q("div",{className:Lr.tail}),Q("div",{className:Lr.node}),Q("div",{className:Lr.content,children:Be("div",{className:Lr.collpase,children:[Be("div",{children:["已收起",Q("span",{children:h-1}),"个节点"]}),Be("a",{className:Lr.btn,onClick:d,children:["展开节点",Q(M7,{})]})]})})]}),r.slice(m).map((g,C)=>Be("li",{className:rs(Lr.item,h===C+m?Lr.itemActive:h>C+m?Lr.itemDone:Lr.itemUnDo),children:[Q("div",{className:Lr.tail}),Q("div",{className:Lr.node}),Be("div",{className:Lr.content,children:[l?l(g,C,f?h:h-m):Be(nn,{children:[Q("div",{className:Lr.title,children:g.PNName}),Be("div",{className:Lr.dateWrapper,children:[g.PlanFinishDate&&Be("span",{children:["预计完成时间: ",g.PlanFinishDate]}),g.UpdateTime&&Be("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",g.UpdateTime]})]}),g.Remark&&Q("div",{className:Lr.remark,children:g.Remark})]}),f&&h-1===C&&Be("a",{className:Lr.btn,onClick:()=>c(!1),children:["收起节点 ",Q(e9,{})]})]})]},typeof i=="string"?g[i]:i(g)))]})},nL=e=>{const{current:r,data:t,rowKey:i,renderContent:l,currentIndex:f,...c}=e;return(()=>{me.Modal.info({icon:null,title:"流程节点",width:700,content:Q(V6,{rowKey:i,renderContent:l,current:r,currentIndex:f,data:t}),closable:!0,footer:null,maskClosable:!0,...c})})(),null},$6={customPagination:"custom-pagination-module_customPagination_bb6f7",jumpBtns:"custom-pagination-module_jumpBtns_a6c0b"};function rL(e){const{totalText:r="共",unitText:t="条",jumpText:i="跳至",pageText:l="页",paginationProps:f}=e,[c,h]=W.useState(""),m=(f==null?void 0:f.pageSize)||10,d=b=>{h(b.target.value)},g=b=>{var x;h(""),!Number.isNaN(Number(b.target.value))&&((x=f==null?void 0:f.onChange)==null||x.call(f,Number(b.target.value),m))},C=b=>{var x;if(b.key==="Enter"){if(h(""),Number.isNaN(Number(c)))return;(x=f==null?void 0:f.onChange)==null||x.call(f,Number(c),m)}};return Be("div",{className:$6.customPagination,children:[Q(me.Pagination,{showTotal:b=>`${r} ${b} ${t}`,showSizeChanger:{options:[{label:`10 ${t}/${l}`,value:10},{label:`20 ${t}/${l}`,value:20},{label:`50 ${t}/${l}`,value:50},{label:`100 ${t}/${l}`,value:100}]},...f}),Be("div",{className:$6.jumpBtns,children:[i,Q(me.Input,{style:{width:"50px",margin:"0 8px"},value:c,onChange:d,onBlur:b=>g(b),onKeyDown:b=>C(b)}),l]})]})}var Y6={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Lt,function(){var t=1e3,i=6e4,l=36e5,f="millisecond",c="second",h="minute",m="hour",d="day",g="week",C="month",b="quarter",x="year",_="date",k="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,T={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(V){var G=["th","st","nd","rd"],ee=V%100;return"["+V+(G[(ee-20)%10]||G[ee]||G[0])+"]"}},D=function(V,G,ee){var ne=String(V);return!ne||ne.length>=G?V:""+Array(G+1-ne.length).join(ee)+V},R={s:D,z:function(V){var G=-V.utcOffset(),ee=Math.abs(G),ne=Math.floor(ee/60),$=ee%60;return(G<=0?"+":"-")+D(ne,2,"0")+":"+D($,2,"0")},m:function V(G,ee){if(G.date()<ee.date())return-V(ee,G);var ne=12*(ee.year()-G.year())+(ee.month()-G.month()),$=G.clone().add(ne,C),X=ee-$<0,Z=G.clone().add(ne+(X?-1:1),C);return+(-(ne+(ee-$)/(X?$-Z:Z-$))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:C,y:x,w:g,d,D:_,h:m,m:h,s:c,ms:f,Q:b}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},N="en",z={};z[N]=T;var M="$isDayjsObject",I=function(V){return V instanceof P||!(!V||!V[M])},Y=function V(G,ee,ne){var $;if(!G)return N;if(typeof G=="string"){var X=G.toLowerCase();z[X]&&($=X),ee&&(z[X]=ee,$=X);var Z=G.split("-");if(!$&&Z.length>1)return V(Z[0])}else{var q=G.name;z[q]=G,$=q}return!ne&&$&&(N=$),$||!ne&&N},B=function(V,G){if(I(V))return V.clone();var ee=typeof G=="object"?G:{};return ee.date=V,ee.args=arguments,new P(ee)},U=R;U.l=Y,U.i=I,U.w=function(V,G){return B(V,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var P=function(){function V(ee){this.$L=Y(ee.locale,null,!0),this.parse(ee),this.$x=this.$x||ee.x||{},this[M]=!0}var G=V.prototype;return G.parse=function(ee){this.$d=function(ne){var $=ne.date,X=ne.utc;if($===null)return new Date(NaN);if(U.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var Z=$.match(E);if(Z){var q=Z[2]-1||0,te=(Z[7]||"0").substring(0,3);return X?new Date(Date.UTC(Z[1],q,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,te)):new Date(Z[1],q,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,te)}}return new Date($)}(ee),this.init()},G.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},G.$utils=function(){return U},G.isValid=function(){return this.$d.toString()!==k},G.isSame=function(ee,ne){var $=B(ee);return this.startOf(ne)<=$&&$<=this.endOf(ne)},G.isAfter=function(ee,ne){return B(ee)<this.startOf(ne)},G.isBefore=function(ee,ne){return this.endOf(ne)<B(ee)},G.$g=function(ee,ne,$){return U.u(ee)?this[ne]:this.set($,ee)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(ee,ne){var $=this,X=!!U.u(ne)||ne,Z=U.p(ee),q=function(ke,De){var Pe=U.w($.$u?Date.UTC($.$y,De,ke):new Date($.$y,De,ke),$);return X?Pe:Pe.endOf(d)},te=function(ke,De){return U.w($.toDate()[ke].apply($.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(De)),$)},oe=this.$W,ae=this.$M,fe=this.$D,ve="set"+(this.$u?"UTC":"");switch(Z){case x:return X?q(1,0):q(31,11);case C:return X?q(1,ae):q(0,ae+1);case g:var xe=this.$locale().weekStart||0,se=(oe<xe?oe+7:oe)-xe;return q(X?fe-se:fe+(6-se),ae);case d:case _:return te(ve+"Hours",0);case m:return te(ve+"Minutes",1);case h:return te(ve+"Seconds",2);case c:return te(ve+"Milliseconds",3);default:return this.clone()}},G.endOf=function(ee){return this.startOf(ee,!1)},G.$set=function(ee,ne){var $,X=U.p(ee),Z="set"+(this.$u?"UTC":""),q=($={},$[d]=Z+"Date",$[_]=Z+"Date",$[C]=Z+"Month",$[x]=Z+"FullYear",$[m]=Z+"Hours",$[h]=Z+"Minutes",$[c]=Z+"Seconds",$[f]=Z+"Milliseconds",$)[X],te=X===d?this.$D+(ne-this.$W):ne;if(X===C||X===x){var oe=this.clone().set(_,1);oe.$d[q](te),oe.init(),this.$d=oe.set(_,Math.min(this.$D,oe.daysInMonth())).$d}else q&&this.$d[q](te);return this.init(),this},G.set=function(ee,ne){return this.clone().$set(ee,ne)},G.get=function(ee){return this[U.p(ee)]()},G.add=function(ee,ne){var $,X=this;ee=Number(ee);var Z=U.p(ne),q=function(ae){var fe=B(X);return U.w(fe.date(fe.date()+Math.round(ae*ee)),X)};if(Z===C)return this.set(C,this.$M+ee);if(Z===x)return this.set(x,this.$y+ee);if(Z===d)return q(1);if(Z===g)return q(7);var te=($={},$[h]=i,$[m]=l,$[c]=t,$)[Z]||1,oe=this.$d.getTime()+ee*te;return U.w(oe,this)},G.subtract=function(ee,ne){return this.add(-1*ee,ne)},G.format=function(ee){var ne=this,$=this.$locale();if(!this.isValid())return $.invalidDate||k;var X=ee||"YYYY-MM-DDTHH:mm:ssZ",Z=U.z(this),q=this.$H,te=this.$m,oe=this.$M,ae=$.weekdays,fe=$.months,ve=$.meridiem,xe=function(De,Pe,ge,$e){return De&&(De[Pe]||De(ne,X))||ge[Pe].slice(0,$e)},se=function(De){return U.s(q%12||12,De,"0")},ke=ve||function(De,Pe,ge){var $e=De<12?"AM":"PM";return ge?$e.toLowerCase():$e};return X.replace(A,function(De,Pe){return Pe||function(ge){switch(ge){case"YY":return String(ne.$y).slice(-2);case"YYYY":return U.s(ne.$y,4,"0");case"M":return oe+1;case"MM":return U.s(oe+1,2,"0");case"MMM":return xe($.monthsShort,oe,fe,3);case"MMMM":return xe(fe,oe);case"D":return ne.$D;case"DD":return U.s(ne.$D,2,"0");case"d":return String(ne.$W);case"dd":return xe($.weekdaysMin,ne.$W,ae,2);case"ddd":return xe($.weekdaysShort,ne.$W,ae,3);case"dddd":return ae[ne.$W];case"H":return String(q);case"HH":return U.s(q,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return ke(q,te,!0);case"A":return ke(q,te,!1);case"m":return String(te);case"mm":return U.s(te,2,"0");case"s":return String(ne.$s);case"ss":return U.s(ne.$s,2,"0");case"SSS":return U.s(ne.$ms,3,"0");case"Z":return Z}return null}(De)||Z.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(ee,ne,$){var X,Z=this,q=U.p(ne),te=B(ee),oe=(te.utcOffset()-this.utcOffset())*i,ae=this-te,fe=function(){return U.m(Z,te)};switch(q){case x:X=fe()/12;break;case C:X=fe();break;case b:X=fe()/3;break;case g:X=(ae-oe)/6048e5;break;case d:X=(ae-oe)/864e5;break;case m:X=ae/l;break;case h:X=ae/i;break;case c:X=ae/t;break;default:X=ae}return $?X:U.a(X)},G.daysInMonth=function(){return this.endOf(C).$D},G.$locale=function(){return z[this.$L]},G.locale=function(ee,ne){if(!ee)return this.$L;var $=this.clone(),X=Y(ee,ne,!0);return X&&($.$L=X),$},G.clone=function(){return U.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},V}(),H=P.prototype;return B.prototype=H,[["$ms",f],["$s",c],["$m",h],["$H",m],["$W",d],["$M",C],["$y",x],["$D",_]].forEach(function(V){H[V[1]]=function(G){return this.$g(G,V[0],V[1])}}),B.extend=function(V,G){return V.$i||(V(G,P,B),V.$i=!0),B},B.locale=Y,B.isDayjs=I,B.unix=function(V){return B(1e3*V)},B.en=z[N],B.Ls=z,B.p={},B})})(Y6);const Bt=Y6.exports,Qp=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Dc=e=>{var i,l,f,c,h,m;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default);if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t==null?void 0:t.split("~"),t=t.map(d=>d)}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(d=>Bt())}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const d=(c=e.json)==null?void 0:c["cascader-delimiter"];d&&(t=t.split(d).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return r==="time-picker"&&!t&&((h=e.json)!=null&&h["auto-generate"])&&((m=e.json)==null?void 0:m["auto-generate-type"])==="currenttime"&&(t=Bt().format("YYYY-MM-DD HH:mm:ss:ss")),e.attrtype===1&&(t=aL(e.children||[])),t||null},q6=e=>e&&e<Bt().startOf("day"),G6=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},aL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)},cd=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c})=>{var g;let h=[];const m=async C=>{var x;let b=[];if(c.classify)try{const _=await r(C,{asctypeid:c.classify});(x=_==null?void 0:_.data)!=null&&x.list&&Array.isArray(_.data.list)&&(b=_.data.list.map(k=>({label:`${k.dicid||""}-${k.info||""}`,value:`${k.dicid||""}-${k.info||""}`})))}catch{me.message.error("加载选项失败")}return b},d=async()=>{var C,b;try{const x=((C=c==null?void 0:c["key-field"])==null?void 0:C.list)||[],_=((b=c==null?void 0:c["key-field"])==null?void 0:b.delimiter)||"",k=c==null?void 0:c["field-names"];if(!x.length){me.message.error("请配置key-field");return}const E=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(E!=null&&E.data){const A=E==null?void 0:E.data,T=(A==null?void 0:A.list)||[];let D=[];Array.isArray(A)&&(D=A),Array.isArray(T)&&(D=T),k?h=D:h=D.map(R=>({label:G6(R,_,x),value:G6(R,_,x)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(h=((g=c.data)==null?void 0:g.map(C=>({label:C,value:C})))||[],c.options&&Array.isArray(c.options)&&(h=c.options)):c.inputType==="dictionary"?h=await m(t):c.inputType==="system-dictionary"&&(h=await m(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await d(),h};function iL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}let c={};e.forEach(h=>{for(let[m,d]of Object.entries(f)){const g=(d==null?void 0:d.list)??[],C=(d==null?void 0:d.delimiter)??"-",b=g.map(x=>h==null?void 0:h[x]);c[m]=b.join(C)}}),i(c)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}const K6=(e,r,t=!0)=>{const i=String(r);return e.find(l=>Object.values(l).some(f=>{const c=String(f);return t?c===i:c.includes(i)}))};function uu(e){try{return JSON.parse(e)}catch{return{}}}function Zp(e){if(!W6(e))return e;const r=atob(e),t=new Uint8Array(r.length);for(let i=0;i<r.length;i++)t[i]=r.charCodeAt(i);return new TextDecoder().decode(t)}function W6(e){return e?e.length%4!==0?!1:/^[A-Za-z0-9+/]+(?:=?=?)$/.test(e):!0}const oL=(e,r)=>{var b;let t=il.cloneDeep(e);const{attr_list:i=[]}=t,{isMobile:l=!1,guid:f,isListToObj:c=!1,isAutoFill:h=!0,onlyNumber:m=""}=e;let d=[];const g=(x,_)=>{try{const k=new Map(x.map((E,A)=>[E.attrid,A]));for(const[E,A]of Object.entries(_)){const T=k.get(E);if(T===void 0)continue;let D=x[T];if(!A&&A!==0){D.attrvalue="";continue}D=C(D,A,l)}x.forEach(E=>{E.children&&Array.isArray(E.children)&&E.children.length>0&&!Array.isArray(E.children[0])&&_[E.attrid]&&g(E.children,_[E.attrid]),E.children&&Array.isArray(E.children)&&E.children.length>0&&Array.isArray(E.children[0])&&E.children.forEach((A,T)=>{var D,R;A&&Array.isArray(A)&&((D=_==null?void 0:_[E.attrid])!=null&&D[T])&&g(A,(R=_==null?void 0:_[E.attrid])==null?void 0:R[T])})})}catch{}},C=(x,_,k)=>{var T,D,R,N;const E=(T=x.json)==null?void 0:T.input,A=(D=x.json)==null?void 0:D.format;switch(E){case"image":case"file":case"video":case"audio":const z=typeof _=="string"?JSON.parse(_):_;if(!Array.isArray(z)){x.attrvalue=JSON.stringify([]);return}const M=z.filter(B=>B.FileId),I=z.filter(B=>{var U;return B.status==="done"&&((U=B.response)==null?void 0:U.data)}).map(B=>B.response.data),Y=[...M,...I];d=[...d,...I],x.attrvalue=JSON.stringify(Y);break;case"cascader":if(Array.isArray(_)&&_.length>0){const B=((R=x.json)==null?void 0:R["cascader-delimiter"])||"/";x.attrvalue=_.join(B)}else x.attrvalue="";break;case"range-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>Bt(B).format(A||"YYYY-MM-DD")).join("~"):x.attrvalue="":Array.isArray(_)&&_.length>0?x.attrvalue=_.join("~"):x.attrvalue="";break;case"multiple-date-picker":k?Array.isArray(_)&&_.length>0?x.attrvalue=_==null?void 0:_.map(B=>Bt(B).format(A||"YYYY-MM-DD")).join(","):x.attrvalue=_:Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"checkbox":case"mult-select":Array.isArray(_)&&_.length>0?x.attrvalue=_.join(","):x.attrvalue=_;break;case"date-picker":_?x.attrvalue=Bt(_).format(A||"YYYY-MM-DD"):x.attrvalue="";break;case"time-picker":_?x.attrvalue=Bt(_).format(A||"YYYY-MM-DD HH:mm:ss"):x.attrvalue="";break;default:(N=x==null?void 0:x.json)!=null&&N["properties-multiple"]||(x.attrvalue=_);break}return x};return t.attr_list&&Array.isArray(t.attr_list)&&g(i,r),h&&((b=t==null?void 0:t.attr_list)==null||b.forEach(x=>{var k,E,A,T,D,R;const _=(x==null?void 0:x.attrvalue)||"";(k=x==null?void 0:x.json)!=null&&k["auto-generate"]&&((E=x==null?void 0:x.json)!=null&&E["auto-generate-type"])&&!_&&(((A=x==null?void 0:x.json)==null?void 0:A["auto-generate-type"])==="currenttime"&&(x.attrvalue=Bt().format("YYYY-MM-DD HH:mm:ss")),((T=x==null?void 0:x.json)==null?void 0:T["auto-generate-type"])==="guid"&&!_&&(x.attrvalue=m||f||"")),(D=x==null?void 0:x.json)!=null&&D.default&&!_&&(x.attrvalue=(R=x==null?void 0:x.json)==null?void 0:R.default)})),{updatedData:c?J6(t.attr_list||[]):t,uploadedFiles:d}},H2=(e,r,t)=>e.map(i=>{var c,h,m;const l=Q6(i,r,t),{children:f}=l;if(f&&!Array.isArray(f==null?void 0:f[0])&&(f!=null&&f.length)&&(l.children=[H2(f,r,t)]),l!=null&&l.children&&Array.isArray((c=l==null?void 0:l.children)==null?void 0:c[0])&&((h=l==null?void 0:l.children)!=null&&h.length)){const d=(m=l==null?void 0:l.children)==null?void 0:m.map(g=>g==null?void 0:g.map(C=>Q6(C,r,t)));l.children=d}return l}),Q6=(e,r,t)=>{var i,l;if(!e.json&&e.info)try{const f=e.info_base64===1?Zp(e.info):e.info,c=uu(f),h=il.cloneDeep(r)||{},{langConfig:m=[],attrLangConfig:d=[]}=h||{};return h==null||delete h.langConfig,m!=null&&m.length&&((i=c==null?void 0:c.data)!=null&&i.length)&&(c==null?void 0:c.inputType)==="local"&&(c.options=(l=c.data)==null?void 0:l.map(g=>({label:Ji(m,g),value:g})),c==null||delete c.data),t!=null&&t.includes(e.attrid)&&(c.hidden=!0),m!=null&&m.length&&(c!=null&&c["combination-name"])&&(c["combination-name"]=Ji(d,c["combination-name"])||Ji(m,c["combination-name"])),m!=null&&m.length&&(c!=null&&c["default-prompt"])&&(c["default-prompt"]=Ji(d,c["default-prompt"])),m!=null&&m.length&&(c!=null&&c.instruction)&&(c.instruction=Ji(d,c.instruction)),m!=null&&m.length&&(c!=null&&c["regexp-message"])&&(c["regexp-message"]=Ji(d,c["regexp-message"])),{...e,json:c,...h,info:JSON.stringify(c)}}catch{return{...e,json:{},...r}}return{...e,...r}},Z6=(e,r,t)=>H2(e,r,t),X6=(e,r,t)=>{const i=H2(e,r,t),l=i.filter(h=>{var m;return(m=h.json)==null?void 0:m.combination}).reduce((h,m)=>{const d=m.json["combination-id"];return d&&(h[d]||(h[d]=[]),h[d].push(m)),h},{}),f=new Set;Object.values(l).forEach(h=>{(h==null?void 0:h.length)!==0&&h.slice(1).forEach(m=>f.add(m.attrid))});const c=h=>h.filter(m=>!f.has(m.attrid)).map(m=>{var C;const d=(C=m.json)==null?void 0:C["combination-id"];if(d&&l[d]){const b={...m,json:{...m.json,combinations:l[d]}},{children:x}=b;return x&&Array.isArray(x==null?void 0:x[0])&&(x!=null&&x.length)&&(b.children=x==null?void 0:x.map(_=>c(_))),b}const{children:g}=m;return g&&Array.isArray(g==null?void 0:g[0])&&(g!=null&&g.length)&&(m.children=g==null?void 0:g.map(b=>c(b))),m});return c(i)},lL=async({number:e,key:r,sourceNumber:t,guidInterfaceName:i,SelPCParamInterfaceName:l,servicerAttrListInterfaceName:f,accepterAttrListInterfaceName:c,defaultAttrListInterfaceName:h,commonRequest:m,guidParams:d,pcParam:g,attrReqKey:C="asid",attrListExtraParams:b={}})=>new Promise(async(x,_)=>{var N,z,M,I;let k="",E=[],A={},T={};const D=await m(i||"FWDXGLCreateGUID",d||{"source-number":t});(D==null?void 0:D.ReturnValue)===1&&((N=D==null?void 0:D.data)!=null&&N.GUID)?k=D.data.GUID:_("获取GUID失败");const R=await m(l||"FWDXGLSelPCParam",g||{"source-number":t});if((R==null?void 0:R.ReturnValue)===1){const Y=(z=R.data[e])==null?void 0:z[r],B=(M=R.data[e])==null?void 0:M["properties-type"],U={server:f||"",accepter:c||""};T=R.data;const P=await m(U[B]||h,{[C]:Y,"source-number":t,...b});if((P==null?void 0:P.ReturnValue)===1&&P.data){const H=((I=P.data)==null?void 0:I.attr_list)||[];E=X6(H),A={...P.data,attr_list:E},x({baseData:A,newGUID:k,attrListConfigs:E,selPCParam:T})}else _("请配置属性集")}else _("获取配置失败")}),sL=async(e,r,t)=>await t(e,r);function uL(e){return e.replace(/-([a-z])/g,function(r,t){return t.toUpperCase()})}const J6=e=>{var l;function r(f){const c={};return f.forEach(h=>{var d,g,C,b,x,_,k;const m=`${h.attrid}_${h.attrtype}`;if(h.attrtype===1&&h.children.length>0&&!Array.isArray(h.children))c[m]={asid:((g=(d=h.children)==null?void 0:d[0])==null?void 0:g.asid)||"",data_list:[r(h.children)]};else if(h.attrtype===1&&h.children.length>0&&Array.isArray(h.children)){let{children:E=[],attrvalue:A}=h||{};A&&(A!=null&&A.length)&&Array.isArray(A)?E=A.map(T=>{var N,z,M,I;const D=(N=Object.values(T))==null?void 0:N.findIndex(Y=>Array.isArray(Y)),R=((z=Object.keys(T))==null?void 0:z[D])||"";if(R){const Y=((M=E==null?void 0:E[0])==null?void 0:M.find(U=>U.attrid===R))||{},{input:B}=(Y==null?void 0:Y.json)||{};if(["file","image","video","audio"].includes(B)){const U=((I=Object.values(T))==null?void 0:I[D])||[],P=U.filter(G=>G.FileId),H=U.filter(G=>{var ee;return G.status==="done"&&((ee=G.response)==null?void 0:ee.data)}).map(G=>G.response.data),V=[...P,...H];T[R]=V}}return nD((E==null?void 0:E[0])||[],T)}):(h.childAsid=((b=(C=E==null?void 0:E[0])==null?void 0:C[0])==null?void 0:b.asid)||"",E=[[]]),E!=null&&E.length&&Array.isArray(E==null?void 0:E[0])&&(c[m]={asid:((_=(x=E==null?void 0:E[0])==null?void 0:x[0])==null?void 0:_.asid)||h.childAsid||"",data_list:(E==null?void 0:E.length)&&((k=E==null?void 0:E[0])==null?void 0:k.length)&&E.map(T=>r(T))||[]})}else c[m]=h.attrvalue}),c}const t=((l=e[0])==null?void 0:l.asid)||"",i=[r(e)];return{data:{asid:t,data_list:i}}},eD=async({attrList:e,params:r,extra:t={},commonRequest:i})=>{var h;const l=await i("YLFWLRDataDetails",r),f=((h=l==null?void 0:l.data)==null?void 0:h.list)||[];return f.length?await Promise.all(f.map(async m=>await Promise.all((e==null?void 0:e.map(async g=>{const C={...g,...t};if(C.attrvalue=(m==null?void 0:m[g.attrid])||"",g.attrtype===1&&Array.isArray(g.children)&&g.children.length>0){const b=(m==null?void 0:m[g.attrid])||{};C.children=await eD({attrList:g.children,params:b,extra:t,commonRequest:i})}return C}))||[])))||[]:e.map(m=>({...m,...t,attrvalue:"",children:[]}))},kc=(e,r,t)=>{let i=[];return t.forEach(l=>{i.push(e==null?void 0:e[l])}),i.join(r||"-")},Ji=(e,r)=>{const t=e.find(i=>(i==null?void 0:i.dataid)===r);return(t==null?void 0:t.content)??r},tD=async({commonRequestWidthParams:e,commonRequest:r,interfaceTypeDict:t="YLZDDictList",interfaceTypeSysDict:i="YLZDSysConfigList",actionUrlKey:l="action-url",actionUrlExtraParams:f={},item:c,langConfig:h=[]})=>{var C;let m=[];const d=async b=>{var _;let x=[];if(c.classify)try{const k=await r(b,{asctypeid:c.classify});(_=k==null?void 0:k.data)!=null&&_.list&&Array.isArray(k.data.list)&&(x=k.data.list.map(E=>({label:`${E.dicid||""}-${E.info||""}`,value:`${E.dicid||""}-${E.info||""}`})))}catch{me.message.error("加载选项失败")}return x},g=async()=>{var b,x;try{const _=((b=c==null?void 0:c["key-field"])==null?void 0:b.list)||[],k=((x=c==null?void 0:c["key-field"])==null?void 0:x.delimiter)||"",E=c==null?void 0:c["field-names"];if(!_.length){me.message.error("请配置key-field");return}const A=await e({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{[l]:c==null?void 0:c["action-url"],...f});if(A!=null&&A.data){const T=A==null?void 0:A.data,D=(T==null?void 0:T.list)||[];let R=[];Array.isArray(T)&&(R=T),Array.isArray(D)&&(R=D),E?m=R:m=R.map(N=>({label:kc(N,k,_),value:kc(N,k,_)}))}}catch{me.message.error("加载选项失败")}};return c.inputType==="local"?(m=((C=c.data)==null?void 0:C.map(b=>({label:Ji(h,b),value:b})))||[],c.options&&Array.isArray(c.options)&&(m=c.options)):c.inputType==="dictionary"?m=await d(t):c.inputType==="system-dictionary"&&(m=await d(i)),c.inputType==="url"&&(c!=null&&c["action-url"])&&await g(),m},nD=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),cL=Object.freeze(Object.defineProperty({__proto__:null,getJson:uu,base64ToString:Zp,isBase64:W6,handleSubmitForm:oL,handleBaseAttrList:Z6,handleAttrList:X6,handleFormConfig:lL,handleOperationFile:sL,handleKebabToCamel:uL,handleAttrListToObj:J6,handleAttrListToObjDetail:eD,handleUrlOptions:kc,getTitle:Ji,handleSelectOptions:tD,handleObjDetailToSignleAttrList:nD},Symbol.toStringTag,{value:"Module"})),rD=async(e,r,t)=>{var i;try{const l=await r(t||"SERATTALLList",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.attr_list)||[]:[]}catch{}},fL=async(e,r,t)=>{var i;try{const l=await r(t||"YLFWLRDataDetails",e);return(l==null?void 0:l.ReturnValue)===1?((i=l==null?void 0:l.data)==null?void 0:i.list)||[]:[]}catch{}},V2=async(e,r,t)=>{var l;const i={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"};try{const f=await r(t||i,e);return(f==null?void 0:f.ReturnValue)===1?((l=f==null?void 0:f.data)==null?void 0:l.list)||[]:[]}catch{}},dL=async({params:e,commonRequestWidthParams:r,requestParams:t})=>{const i={PageName:"PCInstanceData",Controlname:"DataProcess"};try{return await r(t||i||{},e)}catch{}},pL=(e,r)=>e.map(t=>({...t,attrvalue:r[t.attrid]||""})),aD=(e,r,t)=>({style:{backgroundColor:r!==void 0&&r%2===1?(t==null?void 0:t[0])||"rgba(0, 77, 50, 0.16)":(t==null?void 0:t[1])||"rgba(0, 77, 50, 0.24)"}}),hL=(e,r="YYYY-MM-DD")=>(Object.entries(il.cloneDeep(e)).forEach(([t,i])=>{Array.isArray(i)&&i.length>0&&i[0]instanceof Date&&(e[t]=i.map(l=>Bt(l).format(r))),i instanceof Date&&(e[t]=Bt(i).format(r))}),e),vL=(e,r)=>{const t=Object.fromEntries(Object.entries(e).map(([l,f])=>[f,l])),i={};for(const[l,f]of Object.entries(r))t.hasOwnProperty(l)&&(i[t[l]]=f);return i},$2=async(e,r)=>{var t;try{const i=await r("YLKHDSelPCParam",{"source-number":e});return(i==null?void 0:i.ReturnValue)===1?((t=i==null?void 0:i.data)==null?void 0:t[e])||{}:null}catch{}},mL=Object.freeze(Object.defineProperty({__proto__:null,handleGetAttrList:rD,handleGetAttrDetail:fL,handleGetList:V2,handleCallSupportCode:dL,handleObjDetailToSignleAttrList:pL,handleSetTableRowColor:aD,handleFormatMobileDate:hL,handleNonUniversalHeader:vL,handleGetControlPanelConfig:$2},Symbol.toStringTag,{value:"Module"})),gL=(e,r)=>{const t=new URL(e),i=new URL(r);return t.protocol===i.protocol&&t.host===i.host&&t.port===i.port},yL=e=>{const r=String(e).split("/");return r[r.length-1]},xL=e=>{var t;return(t=e.headers.get("content-disposition"))==null?void 0:t.split(";")[1].split("=")[1]},iD=(e,r)=>{const t=r||yL(e);if(gL(e,window.location.href)){Y2(e,t);return}let i=r;fetch(e,{method:"get"}).then(l=>(i||(i=xL(l)),l.blob())).then(l=>{oD(l,i||t)}).catch(()=>{Y2(e,"")})},bL=e=>{for(var r=e.split(","),t=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]),l=i.length,f=new Uint8Array(l);l--;)f[l]=i.charCodeAt(l);return new Blob([f],{type:t})},oD=(e,r)=>{let t="";e instanceof Blob?t=window.URL.createObjectURL(e):t=window.URL.createObjectURL(bL(e));const i=window.navigator;if(i.msSaveOrOpenBlob){i.msSaveOrOpenBlob(e,r);return}Y2(t,r),window.URL.revokeObjectURL(t)},Y2=(e,r)=>{let t=document.createElement("a");t.style.display="none",t.href=e,t.target="_blank",t.download=r,document.body.appendChild(t),t.click(),document.body.removeChild(t)},CL=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:iD,downloadBlob:oD},Symbol.toStringTag,{value:"Module"}));function q2(){const{message:e,modal:r}=me.App.useApp(),t={},i=async({selListData:C,handleSearch:b,handleReset:x,detail:_,styles:k,attributeSetId:E,commonRequest:A,commonRequestWidthParams:T,getTitle:D,searchText:R="搜索",resetText:N="重置",langConfig:z=[]})=>{var M;try{C!=null&&C.length&&_&&C.forEach(V=>{var ee;const G=((ee=V["default-render-data"])==null?void 0:ee.key)||"";G&&(V.attrvalue=(_==null?void 0:_[G])||"")});const I=C.filter(V=>{var G;return((G=V.renderdata)==null?void 0:G.input)!=="tab"&&!(V!=null&&V["default-render-data"])}),Y=I.filter(V=>{var G;return["select","checkbox","radio","mult-select","cascader"].includes((G=V.renderdata)==null?void 0:G.input)});let B=[];if(Y!=null&&Y.length)if((M=t[E])!=null&&M.length)B=t[E];else{const V=await rD({asid:E},A);B=Z6(V)||[],t[E]=B||[]}const U=await Promise.all(I.map(async V=>{var te;const G=V.renderdata||{},{input:ee,width:ne}=G||{},$=(G==null?void 0:G["label-col"])||6,X=()=>{const oe=G["default-prompt"];if(D){if(typeof oe=="string"){const ae=D(E||"",oe),fe=g(ae);return ee==="range-picker"&&oe&&fe?JSON.parse(ae):ae}}else return oe||""};let Z="input";switch(ee){case"range-picker":Z="rangePicker";break;case"number":Z="inputNumber";break;case"select":case"checkbox":case"radio":case"textarea":Z=ee;break;case"mult-select":Z="select";break;case"time-picker":Z="timePicker";break;case"date-picker":Z="datePicker";break;case"cascader":Z="cascader";break;default:Z="input";break}const q={dataIndex:V.attrid,title:V.attrname||"",valueType:Z,valueProps:{placeholder:X()},colProps:{},formItemProps:{style:{marginBottom:10,width:typeof ne=="string"?`${ne}px`:ne||240},labelCol:{span:$}}};if(["select","checkbox","radio","mult-select","cascader"].includes(ee)){const oe=V.attrid||"",ae=B.find(xe=>xe.attrid===oe);let fe=(ae==null?void 0:ae.json)||{};!(fe!=null&&fe.inputType)&&(G!=null&&G["input-type"])&&(fe={...fe,inputType:G==null?void 0:G["input-type"],"action-url":G==null?void 0:G["action-url"],"field-names":G==null?void 0:G["field-names"],"key-field":{...G==null?void 0:G["key-field"]}});let ve=await tD({item:fe||{},commonRequest:A,commonRequestWidthParams:T,langConfig:z||[]});if(!(ve!=null&&ve.length)){const{data:xe=[]}=G||{};xe!=null&&xe.length&&(ve=xe==null?void 0:xe.map(se=>({label:se||"",value:se||""}))),(te=G==null?void 0:G.options)!=null&&te.length&&(ve=(G==null?void 0:G.options)||[])}if(ee==="cascader"){const xe=d(ve,G==null?void 0:G["field-names"]);q.valueProps.options=xe||[]}else q.valueProps.options=ve||[]}return q}));let P={color:"#ffffff",borderRadius:4,fontSize:14,height:32},H={color:"#333333",borderRadius:4,fontSize:14,height:32,borderColor:"#D9D9D9"};return C!=null&&C.length&&U.push({dataIndex:"btns",valueType:"btns",valueProps:[{btnType:"submit",title:R,type:"primary",shape:"default",style:{...P,...k==null?void 0:k.searchStyle},onClick:V=>b(V,C)},{btnType:"reset",title:N,style:{...H,...k==null?void 0:k.resetStyle},onClick:()=>x(C)}],colProps:{flex:"none"},formItemProps:{style:{marginBottom:10,minWidth:127}}}),{formItems:U,selList:C,attrList:B}}catch{return{formItems:[],selList:[],attrList:[]}}},l=({universalHeader:C,extraBtn:b,operationColumnConfig:x,attributeSetId:_,getTitle:k,downloadText:E="下载",isDefaultWidth:A=!0,otherLangPageId:T,objDefaultLangPageId:D="5000000"})=>{if(!(C!=null&&C.length))return e.error("请配置 universalHeader表头数据");const R=f(C),N=R==null?void 0:R.map(z=>{const M={title:_?(k==null?void 0:k(_,z==null?void 0:z["header-attribute-id"]))||"":(z==null?void 0:z["header-name"])||"",dataIndex:(z==null?void 0:z["header-attribute-id"])||"",width:A?(z==null?void 0:z["header-width"])||180:void 0,render:(B,U)=>{var P,H,V,G;if(B&&B&&typeof B=="string"&&(B!=null&&B.includes("FileName"))&&(B!=null&&B.includes("FilePath"))){try{const ee=JSON.parse(B);return ee!=null&&ee.length?Q(me.Flex,{vertical:!0,children:ee==null?void 0:ee.map(ne=>{const{FileName:$,FilePath:X}=ne||{};return Be(me.Space,{children:[Q("span",{children:$}),Q(me.Button,{type:"link",size:"small",onClick:()=>iD(X),children:E})]})})}):"-"}catch{}return Q(me.Space,{})}if(z!=null&&z["show-lang-data-id"]&&T){if(B&&B&&typeof B=="object"&&((P=Object.keys(B))!=null&&P.includes("delimiter"))){const{list:ee,delimiter:ne=","}=B||{},$=ee==null?void 0:ee.map(X=>{const Z=(X==null?void 0:X.split("|"))||[],q=(Z==null?void 0:Z.length)>1?Z[0]:D,te=(Z==null?void 0:Z.length)>1?Z[1]:Z[0];return k==null?void 0:k(q,te)});return Q("span",{dangerouslySetInnerHTML:{__html:((H=$==null?void 0:$.join(ne))==null?void 0:H.replace(/br/g,"<br>"))||"-"}})}return Q(me.Tooltip,{title:B,children:Q("span",{style:{cursor:"pointer"},children:k==null?void 0:k(T,B??"-")})})}if(B&&B&&typeof B=="object"&&((V=Object.keys(B))!=null&&V.includes("delimiter"))){const{list:ee,delimiter:ne=","}=B||{};return Q("span",{dangerouslySetInnerHTML:{__html:((G=ee==null?void 0:ee.join(ne))==null?void 0:G.replace(/br/g,"<br>"))||"-"}})}return B??"-"}},I=z==null?void 0:z["header-mul-attribute-id"],Y=z==null?void 0:z["show-btn"];return I&&I.list&&Array.isArray(I.list)?M.render=(B,U)=>{const{list:P,delimiter:H=","}=I,V=P.map(ee=>ee?U[ee]??"":"").filter(ee=>ee!==""),G=(V==null?void 0:V.join(H))??"-";return Y&&b?Be(nn,{children:[G??"-",b==null?void 0:b(U,G,z)]}):G||"-"}:Y&&b&&(M.render=(B,U)=>{const P=U[M.dataIndex]||"";return Be(nn,{children:[P||"-",b(U,P,z)]})}),M});return x&&(N!=null&&N.length)&&N.push(x),N},f=C=>C.slice().sort((b,x)=>{const _=typeof b["header-number"]=="number"?b["header-number"]:1/0,k=typeof x["header-number"]=="number"?x["header-number"]:1/0;return _-k}),c=async({commonRequest:C,refresh:b,interfaceType:x="YLFWLRInstanceDelete",record:_,configData:k,title:E,okText:A,cancelText:T,getTitle:D,pageID:R,deleteItem:N,okType:z="primary",cancelType:M="default"})=>{var I,Y;try{let B=(k==null?void 0:k["must-attrid"])||[];const U=(N==null?void 0:N["source-number"])||(N==null?void 0:N.sourceNumber)||"";if(!(B!=null&&B.length)&&U){const V=await C("YLKHDSelPCParam",{"source-number":Number(U)});V&&V.ReturnValue===1&&V.data&&(B=((Y=(I=V.data)==null?void 0:I[U])==null?void 0:Y["must-attrid"])||[])}if(!(B!=null&&B.length)){e.error("请先配置must-attrid");return}const P={};for(const[V,G]of Object.entries(_))B.includes(V)&&(P[V]=G);const H={instanceid:_==null?void 0:_.instanceid,asid:_==null?void 0:_.asid,...P};r.confirm({title:E||(N==null?void 0:N.title)||"",icon:null,okButtonProps:{type:z},cancelButtonProps:{type:M},okText:A||"",cancelText:T||"",onOk:()=>new Promise(async(V,G)=>{const ee=await C(x,H),ne=D&&D(R||"",ee==null?void 0:ee["msg-code"])||(ee==null?void 0:ee.msg);(ee==null?void 0:ee.ReturnValue)===1?(e.success(ne),b(),V(ee)):(e.error(ne||"删除失败"),G(ee))})})}catch{}},h=({values:C,currentSelList:b,currentActive:x,onSearch:_,tabItems:k})=>{const A={"sel-list":b.map(T=>{var I,Y;const{input:D,inputType:R}=(T==null?void 0:T.renderdata)||{};if(T==null?void 0:T["default-render-data"])return T;if(D==="tab"&&(R!=null&&R.startsWith("local-"))&&(k!=null&&k.length)&&(x||x===0)){const B=b.find(G=>D==="tab"&&(R==null?void 0:R.startsWith("local-"))),U=k[x],P=((I=B==null?void 0:B.renderdata["key-field"])==null?void 0:I.list)||[],H=((Y=B==null?void 0:B.renderdata["key-field"])==null?void 0:Y.delimiter)||"-",V=P==null?void 0:P.map(G=>U[G]||"").join(H);return{...T,attrvalue:V}}const z=C[T.attrid];let M;return z!=null&&(D==="cascader"&&Array.isArray(z)?M=z.join("|"):Array.isArray(z)&&["range-picker"].includes(D)?M=z.map(B=>{var U;return((U=B==null?void 0:B.format)==null?void 0:U.call(B,"YYYY-MM-DD"))||B}).join("~"):Array.isArray(z)?M=z:M=String(z)),{...T,attrvalue:M}}),...C};_(A)},m=({currentSelList:C,tabItems:b,currentActive:x,onSearch:_,setSelList:k})=>{const E=C.map(A=>{var T,D,R,N,z;if(((T=A.renderdata)==null?void 0:T.input)==="tab"&&(b!=null&&b.length)&&(x||x===0)){if((R=(D=A.renderdata)==null?void 0:D.inputType)!=null&&R.startsWith("local-")){const M=C.find(P=>{var H,V,G;return((H=P.renderdata)==null?void 0:H.input)==="tab"&&((G=(V=P.renderdata)==null?void 0:V.inputType)==null?void 0:G.startsWith("local-"))}),I=b[x],Y=((N=M==null?void 0:M.renderdata["key-field"])==null?void 0:N.list)||[],B=((z=M==null?void 0:M.renderdata["key-field"])==null?void 0:z.delimiter)||"-",U=Y==null?void 0:Y.map(P=>(I==null?void 0:I[P])||"").join(B);return{...A,attrvalue:U}}return A}return{...A,attrvalue:""}});k(E),_({"sel-list":E})},d=(C,b)=>{const{label:x,value:_,children:k}=b,E=A=>A.map(T=>{const D={label:T[x],value:T[_],children:[]};return Array.isArray(T[k])&&T[k].length>0&&(D.children=E(T[k])),D});return E(C)},g=C=>{if(typeof C!="string")return!1;try{const b=JSON.parse(C);return Array.isArray(b)}catch{return!1}};return{handleUniversalHeaderToColumns:l,handleSelListToFormItems:i,handleUniversalDelete:c,handleUniversalSearch:h,handleUniversalReset:m,isArrayString:g}}function wL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:h,form:m,langId:d,getTitle:g}=e,C=me.Form.useWatch(h,m),{message:b}=me.App.useApp(),x=r.input,[_,k]=W.useState(e.value),[E,A]=W.useState(!1),[T,D]=W.useState([]),[R,N]=W.useState([]),[z,M]=W.useState(!1),[I,Y]=W.useState({PageNum:1,PageSize:6}),[B,U]=W.useState([]),[P,H]=W.useState(0),[V,G]=W.useState(te()),{handleUniversalHeaderToColumns:ee}=q2();W.useEffect(()=>{E&&$()},[E,I]);const ne=(ae,fe)=>{D(ae),N(fe)},$=async()=>{var ae,fe,ve,xe,se;if(r.inputType==="url"&&(r!=null&&r["action-url"])){M(!0);try{const ke=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...I,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ke==null?void 0:ke.ReturnValue)===0){b.error(ke.msg),M(!1);return}const De=ke==null?void 0:ke.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map(($e,Me)=>{const et=(I.PageNum-1)*I.PageSize+Me;return{...$e,_rowKey:et}}),ge=(Pe==null?void 0:Pe.filter($e=>T.includes($e._rowKey)))||[];N(ge),U([...Pe||[]]),H((De==null?void 0:De.number)||0),M(!1)}catch{M(!1)}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ke={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...I};try{const Pe=await l(ke,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const $e=(ve=((fe=Pe==null?void 0:Pe.data)==null?void 0:fe.list)||[])==null?void 0:ve.map((Me,et)=>{const ut=(I.PageNum-1)*I.PageSize+et;return{...Me,_rowKey:ut}});H(((xe=Pe==null?void 0:Pe.data)==null?void 0:xe.number)||0),U([...$e])}const ge=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ge==null?void 0:ge.ReturnValue)===1){const $e=(se=ge==null?void 0:ge.data)==null?void 0:se[r==null?void 0:r["instance-source-number"]],Me=($e==null?void 0:$e["universal-header"])||[],et=($e==null?void 0:$e["attribute-set-id"])||"",ut=ee({universalHeader:Me,attributeSetId:et,getTitle:g,otherLangPageId:"5000000"})||[];G([...ut])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error")},X=()=>{var ae;if(!t){if(_){const fe=r==null?void 0:r["key-field"],ve=fe==null?void 0:fe[h],{delimiter:xe="-",list:se=[]}=ve||{};if(!fe){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ke=(ae=_==null?void 0:_.split(xe))==null?void 0:ae[0],De=B==null?void 0:B.findIndex($e=>Object.values($e).includes(ke));D([De]);break;case"modal-mult-select":const Pe=_==null?void 0:_.split(","),ge=Pe==null?void 0:Pe.map($e=>{var et;const Me=(et=$e.split(xe))==null?void 0:et[0];return B==null?void 0:B.findIndex(ut=>Me.includes((ut==null?void 0:ut.typeid)||(ut==null?void 0:ut.instanceid)))});D(ge);break}}A(!0)}},Z=async()=>{try{const ae=await iL(R,r,d);k((ae==null?void 0:ae[h])||""),e.onSure(ae),A(!1)}catch(ae){b.error(ae.msg||"参数错误")}},q=()=>{Y({...I,PageNum:1}),A(!1)};function te(){const ae=r["modal-field-list"];if(!ae)return[];let fe=[];for(let ve in ae){let xe=ae[ve];const se={dataIndex:ve,title:xe};fe=[...fe,se]}return fe}const oe=ae=>{Y({...I,PageNum:ae})};return Be(nn,{children:[Q(me.Select,{placeholder:Qp({json:r},d),onClick:X,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:E,onOk:Z,onCancel:q,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:ne},pagination:{total:P,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:E,onOk:Z,onCancel:q,width:r["modal-width"]??600,okButtonProps:{disabled:T.length===0},children:Q(me.Table,{columns:V,loading:z,dataSource:B,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:T,onChange:ne},pagination:{total:P,current:I.PageNum,pageSize:I.PageSize,onChange:oe}})})]})}var lD={exports:{}};(function(e,r){(function(t,i){e.exports=i()})(Lt,function(){var t="day";return function(i,l,f){var c=function(d){return d.add(4-d.isoWeekday(),t)},h=l.prototype;h.isoWeekYear=function(){return c(this).year()},h.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),t);var g,C,b,x,_=c(this),k=(g=this.isoWeekYear(),C=this.$u,b=(C?f.utc:f)().year(g).startOf("year"),x=4-b.isoWeekday(),b.isoWeekday()>4&&(x+=7),b.add(x,t));return _.diff(k,"week")+1},h.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var m=h.startOf;h.startOf=function(d,g){var C=this.$utils(),b=!!C.u(g)||g;return C.p(d)==="isoweek"?b?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):m.bind(this)(d,g)}}})})(lD);const sD=lD.exports;function _L(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:h}=me.App.useApp(),m=r.input,[d,g]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=G();W.useEffect(()=>{C&&U()},[C,D]);const B=(ne,$)=>{_(ne),E($)},U=async()=>{var ne;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const $=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if(($==null?void 0:$.ReturnValue)===0){h.error($.msg),T(!1);return}const X=$==null?void 0:$.data,Z=(ne=X==null?void 0:X.list)==null?void 0:ne.map((te,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...te,_rowKey:ae}}),q=(Z==null?void 0:Z.filter(te=>x.includes(te._rowKey)))||[];E(q),z([...Z||[]]),I((X==null?void 0:X.number)||0),T(!1)}catch($){T(!1),h.error($.msg||"参数错误")}return}h.error("请配置action-url")},P=()=>{var ne,$;if(!t){if(d){const X=((ne=r==null?void 0:r["key-field"])==null?void 0:ne.list)??[],Z=(($=r==null?void 0:r["key-field"])==null?void 0:$.delimiter)??"-";if(!X.length){h.error("请配置key-field");return}switch(m){case"modal-select":const q=d==null?void 0:d.split("-"),te=N==null?void 0:N.findIndex(fe=>q.includes((fe==null?void 0:fe.typeid)||(fe==null?void 0:fe.instanceid)));_([te]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(fe=>{var xe;const ve=(xe=fe.split(Z))==null?void 0:xe[0];return N==null?void 0:N.findIndex(se=>ve.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const ne=await SL(k,r,c);g(ne),e.onSure(ne),b(!1)}catch(ne){h.error(ne.msg||"参数错误")}},V=()=>{R({...D,PageNum:1}),b(!1)};function G(){const ne=r["modal-field-list"];let $=[];for(let X in ne){let Z=ne[X];const q={dataIndex:X,title:Z};$=[...$,q]}return $}const ee=ne=>{R({...D,PageNum:ne})};return Be(nn,{children:[Q(me.Select,{placeholder:Qp({json:r},c),onClick:P,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function SL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let h=e.map(m=>c.map(g=>m[g]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(h)}catch{l({msg:t==="10001"?"key-field参数配置错误":"key-field parameter configuration error"})}})}const EL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,handleUrlOptions:m,value:d,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x}=e,[_,k]=W.useState([]),[E,A]=W.useState(d||[]);W.useEffect(()=>{T()},[r.inputType,r.classify,r.data,r.options]);const T=async()=>{const D=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});k(D)};return Q(me.Checkbox.Group,{...l,options:_,value:E,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:D=>{A(D),t==null||t(D)},disabled:i})},DL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C="10001"})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(m);else if(e.inputType==="system-dictionary")T(m);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(U=>({label:`${U.dicid||""}-${U.info||""}`,value:`${U.dicid||""}-${U.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,G,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],U=(e==null?void 0:e["search-field"])||[],P=((G=e==null?void 0:e["key-field"])==null?void 0:G.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...g};M&&(U.forEach(ne=>{H[ne]=M[ne]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const ne=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=ne==null?void 0:ne.data)!=null&&ee.list&&Array.isArray(ne.data.list)){const $=ne.data.list.map(X=>({...X,label:`${X[B[0]]||""}${P}${X[B[1]]||""}`,value:`${X[B[0]]||""}${P}${X[B[1]]||""}`,children:[],isLeaf:(X==null?void 0:X.subcount)===0}));I($)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:"请选择",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const U=Y.findIndex(V=>V===B[0]);if(U===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const P=t.map(V=>V.split("-")[U]||"").filter(Boolean);let H=b;for(const[V,G]of P.entries()){if(V===P.length-1)break;const ee=H.filter(X=>X[B[0]]===G);if(ee.length===0)break;const ne=ee[0];if(ne.children&&ne.children.length>0){H=ne.children;continue}H=await N(ee)}}}})},kL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,langId:c})=>{const[h,m]=W.useState([]),[d,g]=W.useState(!1);W.useEffect(()=>{(async()=>{var D;if(e.inputType==="url"&&e["action-url"]){g(!0);try{const R=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(D=R==null?void 0:R.data)!=null&&D.list&&Array.isArray(R.data.list)?m(R.data.list):R!=null&&R.data&&Array.isArray(R.data)?m(R.data):Array.isArray(R==null?void 0:R.list)?m(R.list):(R==null?void 0:R.ReturnValue)===1&&(R!=null&&R.data)&&(Array.isArray(R.data)?m(R.data):m([R.data]))}catch{}finally{g(!1)}}else e.data&&Array.isArray(e.data)&&m(e.data)})()},[e.inputType,e["action-url"],e.data]);const C=T=>JSON.stringify(T),b=T=>{const D=C(T);return t===D},x=T=>{if(r)return;const D=C(T);i&&i(D)},_=e["card-image-width"]||200,k=e["card-image-height"]||100,E=e["card-image-field"],A=e["card-info-field"];return Q("div",{style:{...l},children:d?Q("div",{style:{textAlign:"center",padding:"20px"},children:"loading..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"50px"},children:h.map((T,D)=>{const R=b(T);return Be("div",{onClick:()=>x(T),style:{flex:"1 1 auto",width:`${_}px`,padding:"12px 0",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[T[E]&&Q("img",{src:T.picurl,alt:T[A]||"",style:{width:`${_}px`,height:`${k}px`,objectFit:"cover",borderRadius:"8px",marginBottom:"8px"},onError:N=>{N.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:R?"none":"1px solid #d9d9d9",backgroundColor:R?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:R&&Q(h8,{style:{fontSize:"12px",color:"#fff"}})}),T[A]||""]})})]},D)})})})},TL=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C,getTitle:b,attrid:x})=>{const[_,k]=W.useState([]),[E,A]=W.useState(!1),[T,D]=W.useState([]);W.useEffect(()=>{R()},[e.inputType,e.classify,e.data,e.options]);const R=async()=>{try{if(A(!0),e.inputType==="instance-url"&&(e!=null&&e["instance-source-number"])&&x){const z=e==null?void 0:e["key-field"];if(!z){me.message.warning("请配置key-field");return}const M={"source-number":e==null?void 0:e["instance-source-number"]};let I=await V2(M,i);const Y=await $2(e==null?void 0:e["instance-source-number"],l);if(Y){const B=(Y==null?void 0:Y["non-universal-header"])||[],U=(B==null?void 0:B.label)||[],P=(z==null?void 0:z[x])||{},H=I==null?void 0:I.map(V=>{const G=U==null?void 0:U.map(X=>V==null?void 0:V[X]).join("-"),{list:ee,delimiter:ne}=P,$=ee==null?void 0:ee.map(X=>V==null?void 0:V[X]).join(ne||"-");return G?{label:b==null?void 0:b("5000000",G),value:$}:null});k(H),D(I)}A(!1);return}const N=await cd({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,item:e});k(N),A(!1)}catch{A(!1)}};return Q(me.Select,{placeholder:Qp({json:e},C),mode:e.input==="mult-select"?"multiple":void 0,disabled:r,loading:E,showSearch:!0,value:f,filterOption:(N,z)=>{var M;return((M=z==null?void 0:z.label)==null?void 0:M.toLowerCase().indexOf(N.toLowerCase()))>=0},options:_,style:{...t},allowClear:!0,onChange:N=>{if(x&&(T==null?void 0:T.length)>0&&(e==null?void 0:e.inputType)==="instance-url"){const z=e==null?void 0:e["key-field"],M=K6(T,String(N)),I=Object.keys(z||{}),Y=I==null?void 0:I.reduce((B,U)=>{const{list:P,delimiter:H}=(z==null?void 0:z[U])||{},V=P==null?void 0:P.map(G=>M==null?void 0:M[G]).join(H||"-");return B[U]=V,B},{});c(Y);return}c(N)}})},AL={customUpload:"myUpload-module_customUpload_7c7d3"},OL=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),RL=e=>{const{langId:r="10001"}=e,{action:t,item:i,onChange:l,readonly:f=!1,relatedid:c,uploadText:h=r==="10001"?"上传文件":"Upload File",onRemove:m,list:d=[],uploadType:g,relatedidKey:C}=e,{message:b}=me.App.useApp(),x=(i==null?void 0:i["upload-accept"])||"*",_=i==null?void 0:i.input,k=i==null?void 0:i["upload-size"],E=(i==null?void 0:i["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{d&&d.length&&R(d)},[d]);const Y=async H=>{g==="image"&&(!H.url&&!H.preview&&(H.preview=await OL(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),l&&l(H)},U=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(r==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},P=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(nn,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:h})});return Be(nn,{children:[Q(me.Upload,{action:t,beforeUpload:U,listType:A,accept:x,fileList:D,onPreview:Y,data:{[C]:c},maxCount:E,onChange:B,onRemove:m,disabled:f,className:AL.customUpload,children:D.length>=E?null:P}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},FL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,value:m,interfaceTypeDict:d,interfaceTypeSysDict:g,actionUrlKey:C,actionUrlExtraParams:b}=e,[x,_]=W.useState([]);W.useEffect(()=>{k()},[r.inputType,r.classify,r.data,r.options]);const k=async()=>{const E=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:d,interfaceTypeSysDict:g,actionUrlKey:C,actionUrlExtraParams:b,item:r});_(E)};return Q(me.Radio.Group,{...l,options:x,onChange:t,disabled:i,value:m,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})};Bt.extend(sD);function NL(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:h,relatedidKey:m,actionUrlKey:d,actionUrlExtraParams:g,CustomModalComponent:C,isEdit:b,formShowType:x="form",langId:_,getTitle:k}=e,E=W.useRef([]),{message:A}=me.App.useApp();W.useEffect(()=>{l&&(E.current=l)},[l]);const T=W.useCallback(P=>Array.isArray(P)?P:(P==null?void 0:P.fileList)??[],[]),D=P=>{f(P)},R=W.useCallback(P=>{var ee,ne;const H=(ee=P.json)==null?void 0:ee.input,V=(ne=P.json)==null?void 0:ne.format,G={};switch(H){case"image":case"file":case"video":case"audio":G.getValueFromEvent=T;break;case"date-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM-DD"),G.getValueProps=$=>({value:$?Bt($):null});break;case"time-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM-DD HH:mm:ss"),G.getValueProps=$=>({value:$?Bt($):null});break;case"week-picker":G.getValueFromEvent=$=>`${$==null?void 0:$.year()}-${Bt($).isoWeek()}周`,G.getValueProps=$=>{if(!$)return{value:null};const[X,Z]=$.split("-"),q=Number(X),te=Number(Z.replace("周",""));return{value:Bt().year(q).isoWeek(te)}};break;case"month-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM"),G.getValueProps=$=>({value:$?Bt($):null});break;case"quarter-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY年第Q季度"),G.getValueProps=$=>({value:$?Bt($,V||"YYYY年第Q季度"):null});break;case"year-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY"),G.getValueProps=$=>({value:$?Bt($):null});break;case"second-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"HH:mm:ss"),G.getValueProps=$=>({value:$?Bt($,V||"HH:mm:ss"):null});break;case"range-picker":G.getValueFromEvent=$=>$==null?void 0:$.map(X=>X==null?void 0:X.format(V||"YYYY-MM-DD")),G.getValueProps=$=>{if(!($!=null&&$.length))return{value:null};if(typeof $=="string"){const X=$.split("~");return X.length>1?{value:(X==null?void 0:X.map(Z=>Bt(Z)))||null}:{value:[Bt($),Bt($)]}}return Array.isArray($)?{value:($==null?void 0:$.map(X=>Bt(X)))||null}:null};break;case"multiple-date-picker":G.getValueFromEvent=$=>$==null?void 0:$.map(X=>X==null?void 0:X.format(V||"YYYY-MM-DD")),G.getValueProps=$=>{if(typeof $=="string"){const X=$.split(",");return{value:(X==null?void 0:X.map(Z=>Bt(Z)))||null}}return Array.isArray($)?{value:($==null?void 0:$.map(X=>Bt(X)))||null}:null};break}return G},[T]),N=W.useCallback(({isActive:P})=>P?Q(w8,{style:{fontSize:18,color:"#999"}}):Q(E8,{style:{fontSize:18,color:"#999"}}),[]),z=(P,H)=>{var V,G,ee,ne,$;return Be(me.Flex,{gap:10,vertical:H==="flex",align:"center",children:[Q("span",{children:P.attrname}),((V=P==null?void 0:P.json)==null?void 0:V.instruction)&&H==="icon"&&Q(me.Tooltip,{title:(G=P==null?void 0:P.json)==null?void 0:G.instruction,children:Q(b8,{style:{color:((ee=P==null?void 0:P.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((ne=P==null?void 0:P.json)==null?void 0:ne["instruction-color"])??"red"},children:($=P==null?void 0:P.json)==null?void 0:$.instruction})]})},M=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,parentFormListField:q,isShowLabel:te=!0})=>{const oe=Dc(P);let ae=P.children||[];Array.isArray(ae==null?void 0:ae[0])&&ae.length&&(ae=ae[0]);const fe=ve=>{const xe=(q==null?void 0:q.parentName)||(q==null?void 0:q.name);return xe?Array.isArray(xe)?[...xe,P.attrid,ve.name]:[xe,P.attrid,ve.name]:[P.attrid,ve.name]};return Q(me.Col,{span:24/H,children:Q(me.Collapse,{bordered:!1,style:{backgroundColor:"transparent"},expandIcon:({isActive:ve})=>N({isActive:ve}),items:[{key:P.attrid,label:P.attrname,styles:{header:{paddingLeft:0}},children:Q(me.Form.List,{name:q?Array.isArray(q.name)?[...q.name,P.attrid]:[q.name,P.attrid]:P.attrid,initialValue:oe,children:(ve,{add:xe,remove:se})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[ve.map(ke=>{const De={...ke,parentName:fe(ke)};return Q(me.Card,{style:{width:Z+100},size:"small",title:`${P.attrname} ${ke.name+1}`,extra:!b&&Q(g8,{onClick:()=>{ve.length>1?se(ke.name):A.warning("至少需要保留一个!")}}),children:(ae||[]).map((Pe,ge)=>Q(W.Fragment,{children:U({item:Pe,readonly:V,colNum:H,instructionShowMode:G,relatedid:$,form:X,defaultWidth:Z,formItemStyle:ne,radioAlign:ee,isFormListItem:!0,formListField:De,isShowLabel:!0})},Pe.attrid||`child-${ge}`))},ke.key)}),!b&&Q(me.Flex,{style:{width:200},children:Be(me.Button,{type:"dashed",onClick:()=>xe(),block:!0,children:["+ ",_==="10001"?"新增":"Add"]})})]})})}]},P.attrid)})},[N,Dc]),I=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ae,fe,ve,xe,se,ke,De,Pe;if(((ae=P.json)==null?void 0:ae.hide)===!0)return Q(nn,{});if(P.attrtype===1)return M({itemWithJson:P,colNum:H,readonly:V,instructionShowMode:G,radioAlign:ee,formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z,parentFormListField:te,isShowLabel:oe});if(P.attrtype===2)return Q(nn,{children:"实例信息"});if(P.attrtype===0){const ge=Dc(P),$e=(fe=P.json)==null?void 0:fe["default-prompt"],Me=(ve=P.json)==null?void 0:ve.hidden,et=Qp(P,_),{combinations:ut=[]}=P.json||{};if(ut!=null&&ut.length)return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{label:(xe=P==null?void 0:P.json)==null?void 0:xe["combination-name"],required:(se=P.json)==null?void 0:se.must,children:Q(me.Space.Compact,{children:ut.map((Mt,Mn)=>{var kn,Vt,Hn,gr,ur;let Pn=Dc(Mt),sn=Z;const Jt={},cn=Mt.json.input||"text",Fn=ne==null?void 0:ne.find(Ye=>Ye.type===cn);if(Fn){const{width:Ye}=(Fn==null?void 0:Fn.style)||{};Ye&&(Jt.width=Ye)}const Bn=(kn=Mt==null?void 0:Mt.json)==null?void 0:kn["combination-width-ratio"];return Bn&&(sn=Z*Bn),Q(me.Form.Item,{hidden:(Vt=Mt.json)==null?void 0:Vt.hidden,name:te?Array.isArray(te.name)?[...te.name,Mt.attrid]:[te.name,Mt.attrid]:Mt.attrid,noStyle:!0,initialValue:Pn,rules:[...(Hn=Mt.json)!=null&&Hn.must?[{required:!0,message:$e||`${et}${Mt.attrname}`}]:[],...(gr=P.json)!=null&&gr.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((ur=P.json)==null?void 0:ur["regexp-message"])||`${P.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(Mt),children:B({item:Mt,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:sn,customWidth:Jt})},Mn)})})},`${P.attrid}+1`)});const Xt=q&&te?Array.isArray(te.name)?[...te.name,P.attrid]:[te.name,P.attrid]:P.attrid;return Q(me.Col,{span:24/H,children:Q(me.Form.Item,{name:Xt,label:oe&&z(P,G)||null,initialValue:ge,hidden:Me,rules:[...(ke=P.json)!=null&&ke.must?[{required:!0,message:`${et}${P.attrname}`}]:[],...(De=P.json)!=null&&De.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((Pe=P.json)==null?void 0:Pe["regexp-message"])||`${P.attrname}${_==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...R(P),children:B({item:P,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:Z})},P.attrid)})}return null},[z,Dc,R,M]),Y=async P=>{var H;try{const V=(H=P==null?void 0:P.response)==null?void 0:H.data;if(V){if(!r)return;const G=await r({Controlname:"DelFile",PageName:"initializationfile"},V);if((G==null?void 0:G.ReturnValue)!==1)return A.error(G==null?void 0:G.msg),!1}else D(P);return!0}catch{return!1}},B=({item:P,readonly:H=!1,formItemStyle:V=[],radioAlign:G="horizontal",relatedid:ee,form:ne,defaultWidth:$=358,customWidth:X={}})=>{var Pe,ge,$e,Me,et,ut,Xt,Mt,Mn,Pn,sn,Jt,cn,Fn,Bn,kn,Vt,Hn,gr,ur,Ye,it;const Z=P.json.input||"text",q=((Pe=P.json)==null?void 0:Pe.format)||"",te=P.attrid,oe=Dc(P),ae=((ge=P.json)==null?void 0:ge["default-prompt"])||"",fe=(($e=P.json)==null?void 0:$e["disable-date-goover"])||!1,ve=Qp(P,_),xe=P.json.length&&{maxLength:P.json.length}||{},se=V.find(rt=>rt.type===Z);let ke=(Me=P.json)==null?void 0:Me["input-width"];ke&&(ke=x==="table"?Number(ke)-32:ke);const De=ke||$;switch(Z){case"label":return Q(me.Input,{disabled:!0,value:((et=P.json)==null?void 0:et["label-value"])||P.attrvalue||((ut=P.json)==null?void 0:ut.default)||"-",style:{width:De,...se==null?void 0:se.style,...X}});case"text":return Q(me.Input,{placeholder:ae||ve,...xe,disabled:H||((Xt=P.json)==null?void 0:Xt.readonly),allowClear:!0,style:{width:De,...se==null?void 0:se.style,...X}});case"password":return Q(me.Input.Password,{placeholder:ae||ve,...xe,disabled:H||((Mt=P.json)==null?void 0:Mt.readonly),allowClear:!0,style:{width:De,...se==null?void 0:se.style,...X}});case"textarea":return Q(me.Input.TextArea,{allowClear:!0,placeholder:ae||ve,rows:5,...xe,disabled:H||((Mn=P.json)==null?void 0:Mn.readonly),style:{width:De,...se==null?void 0:se.style,...X}});case"number":return Q(me.InputNumber,{controls:!1,placeholder:ae||ve,...xe,disabled:H||((Pn=P.json)==null?void 0:Pn.readonly),style:{width:De,...se==null?void 0:se.style,...X}});case"select":case"mult-select":return Q(TL,{item:P.json,attrid:te,readonly:H||((sn=P.json)==null?void 0:sn.readonly),style:{width:De,...se==null?void 0:se.style,...X},commonRequestWidthParams:r,commonRequest:i,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,getTitle:k,langId:_,onChange:rt=>{alert(JSON.stringify(rt)+rt&&typeof rt=="object"&&!Array.isArray(rt)),rt&&typeof rt=="object"&&!Array.isArray(rt)&&ne.setFieldsValue({...ne.getFieldsValue(),...rt}),ne.setFieldValue(P.attrid,rt)}});case"modal-mult-select":case"modal-select":return Q(_L,{style:{width:De,...se==null?void 0:se.style,...X},item:P.json,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async rt=>{ne.setFieldValue(P.attrid,rt)},disabled:H||((Jt=P.json)==null?void 0:Jt.readonly),langId:_,CustomModalComponent:C});case"mul-field-modal-select":return Q(wL,{style:{width:De,...se==null?void 0:se.style,...X},item:P.json,form:ne,attrid:te,getTitle:k,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async rt=>{ne.setFieldsValue(rt)},disabled:H||((cn=P.json)==null?void 0:cn.readonly),CustomModalComponent:C,langId:_});case"date-picker":case"time-picker":case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":case"second-picker":{const rt={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};let $t;return Z==="date-picker"&&($t=fe?q6:void 0),Q(me.DatePicker,{showTime:Z==="time-picker",format:q||void 0,picker:rt[Z]||"date",disabled:H||((Fn=P.json)==null?void 0:Fn.readonly),disabledDate:$t,placement:"bottomLeft",style:{width:De,...se==null?void 0:se.style,...X}})}case"range-picker":return Q(me.DatePicker.RangePicker,{disabledDate:fe?q6:void 0,disabled:H||((Bn=P.json)==null?void 0:Bn.readonly),style:{width:De,...se==null?void 0:se.style,...X}});case"multiple-date-picker":return Q(me.DatePicker,{multiple:!0,maxTagCount:((kn=P==null?void 0:P.json)==null?void 0:kn["max-tag-count"])||2,disabled:H||((Vt=P.json)==null?void 0:Vt.readonly)||!1,style:{width:De,...se==null?void 0:se.style,...X}});case"radio":return Q(FL,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H||((Hn=P.json)==null?void 0:Hn.readonly),options:xe,handleUrlOptions:kc,value:oe,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,onChange:rt=>{ne.setFieldValue(P.attrid,rt.target.value)}});case"checkbox":return Q(EL,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H||((gr=P.json)==null?void 0:gr.readonly),options:xe,value:oe,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,onChange:rt=>{ne.setFieldValue(P.attrid,rt.join(","))}});case"audio":case"file":case"image":case"video":return Q(RL,{action:t&&t("initializationfile"),item:P.json,uploadType:Z,langId:_,list:oe,readonly:H||((ur=P.json)==null?void 0:ur.readonly),relatedid:ee,relatedidKey:m,onRemove:rt=>Y(rt)});case"cascader":return Q(DL,{commonRequestWidthParams:r,commonRequest:i,item:P.json,value:P.attrvalue,style:{width:De,...se==null?void 0:se.style,...X},interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:_});case"radio-card":return Q(kL,{item:P.json,readonly:H||((Ye=P.json)==null?void 0:Ye.readonly),onChange:rt=>{ne.setFieldValue(P.attrid,rt)},langId:_,commonRequestWidthParams:r});default:return Q(me.Input,{placeholder:ae||ve,...xe,showCount:!0,disabled:H||((it=P.json)==null?void 0:it.readonly),style:{width:De,...se==null?void 0:se.style,...X}})}},U=({item:P,readonly:H=!1,colNum:V=1,instructionShowMode:G="icon",relatedid:ee,form:ne,defaultWidth:$=358,formItemStyle:X,radioAlign:Z="horizontal",isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ve;const ae=P.info_base64===1?uu(Zp(P.info)):uu(P.info),fe={...P,json:{...P==null?void 0:P.json,...ae}};return((ve=fe.json)==null?void 0:ve.hide)===!0?null:Q(W.Fragment,{children:I({itemWithJson:fe,readonly:H,colNum:V,instructionShowMode:G,relatedid:ee,form:ne,defaultWidth:$,formItemStyle:X,radioAlign:Z,isFormListItem:q,formListField:te,isShowLabel:oe})},fe.attrid)};return{handleRenderItem:U,handleSetFormItemInitialValue:Dc}}const ML=W.forwardRef((e,r)=>{const{formConfig:t,form:i,readonly:l=!1,relatedid:f,colNum:c=1,colSpace:h=[0,0],instructionShowMode:m="flex",defaultWidth:d=358,commonRequestWidthParams:g,uploadAction:C,commonRequest:b,formItemStyle:x=[],radioAlign:_="horizontal",interfaceTypeChildren:k="YLLRDetailAttrlist",interfaceTypeDict:E="YLZDDictList",interfaceTypeSysDict:A="YLZDSysConfigList",relatedidKey:T="relatedid",actionUrlKey:D="action-url",actionUrlExtraParams:R={},CustomModalComponent:N,formShowType:z="form",formListItemWidth:M,formListItemName:I,isEdit:Y=!1,langId:B="10001",getTitle:U}=e,P=W.useRef([]),H=G=>{P.current.push(G)},{handleRenderItem:V}=NL({commonRequestWidthParams:g,uploadAction:C,commonRequest:b,updateDelFileList:H,formConfig:t,interfaceTypeChildren:k,interfaceTypeDict:E,interfaceTypeSysDict:A,relatedidKey:T,actionUrlKey:D,actionUrlExtraParams:R,CustomModalComponent:N,isEdit:Y,formShowType:z,langId:B,getTitle:U});return W.useImperativeHandle(r,()=>({getDelFileList:()=>P.current})),Q(nn,{children:z==="table"?Q(me.Form.List,{name:I||"customFormList",initialValue:[{}],children:(G,{add:ee,remove:ne})=>Be(me.Flex,{className:"custom-form-body",children:[Be("div",{className:"custom-form-list",children:[Q(me.Flex,{align:"center",style:{position:"relative",backgroundColor:"#004d32"},children:Q(me.Flex,{className:"custom-form-list-header",align:"center",children:t==null?void 0:t.map(($,X)=>{var q,te;const Z=((q=$==null?void 0:$.json)==null?void 0:q["input-width"])&&Number((te=$==null?void 0:$.json)==null?void 0:te["input-width"])||d;return Be(me.Flex,{style:{width:Z,flexShrink:0},align:"center",children:[X!==0&&Q("div",{className:"line"}),Q("div",{className:"custom-form-list-header-item",children:$.attrname})]},X)})})}),G.map($=>Q(me.Flex,{align:"center",className:"custom-form-list-item-container",children:Q(me.Flex,{className:"custom-form-list-item",align:"center",children:t==null?void 0:t.map((X,Z)=>{var te,oe;const q=((te=X==null?void 0:X.json)==null?void 0:te["input-width"])&&Number((oe=X==null?void 0:X.json)==null?void 0:oe["input-width"])||d;return Q(me.Flex,{align:"center",className:"custom-form-list-item-content",justify:"center",style:{width:q,flexShrink:0},children:V({item:X,readonly:l,colNum:c,instructionShowMode:m,relatedid:f,form:i,defaultWidth:d-30,formItemStyle:x,isFormListItem:!0,formListField:$,isShowLabel:!1})},X.attrid||`child-${Z}`)})})},$.key))]}),Be(me.Flex,{className:"operation",vertical:!0,children:[Q("a",{className:"custom-form-list-add-btn",onClick:()=>ee(),children:B==="10001"?"新增":"Add"}),(G==null?void 0:G.length)>0&&(G==null?void 0:G.map(($,X)=>Q("a",{className:"custom-form-list-del-btn",onClick:()=>ne($.key),children:B==="10001"?"删除":"Delete"},$.key)))]})]})}):Q(me.Row,{gutter:h,children:t.map((G,ee)=>Q(W.Fragment,{children:V({item:G,readonly:l,colNum:c,instructionShowMode:m,relatedid:f,form:i,defaultWidth:d,formItemStyle:x,radioAlign:_})},G.attrid||`form-item-${ee}`))})})}),uD=(e,r)=>{const{input:t=""}=(e==null?void 0:e.json)||{};let i="请输入",l="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(t)&&(i="请选择",l="Please select"),["image","file","video","audio"].includes(t)&&(i="请上传",l="Please upload"),r==="10001"?i:l},Tc=e=>{var i,l,f,c,h,m;const r=(i=e.json)==null?void 0:i.input;let t=e.attrvalue||((l=e.json)==null?void 0:l.default)||"";if(r==="label"&&t&&(t=((f=e.json)==null?void 0:f["label-value"])??t??"-"),r==="range-picker"&&t)try{t=t.map(d=>new Date(d))}catch{t=void 0}if(r==="multiple-date-picker"&&t)try{t=t==null?void 0:t.split(","),t=t.map(d=>new Date(d))}catch{t=void 0}if(r==="cascader"&&t&&typeof t=="string"){const d=(c=e.json)==null?void 0:c["cascader-delimiter"];d&&(t=t.split(d).filter(Boolean))}if(["mult-select","checkbox"].includes(r)&&t&&typeof t=="string"&&(t=t.split(",").filter(Boolean)),["image","video","audio","file"].includes(r)&&t)try{t=(Array.isArray(t)?t:JSON.parse(t)).map(g=>({...g,url:g.FilePath,name:g.FileName,uid:g.FileId}))}catch{t=[]}return r==="time-picker"&&!t&&((h=e.json)!=null&&h["auto-generate"])&&((m=e.json)==null?void 0:m["auto-generate-type"])==="currenttime"&&(t=Bt().format("YYYY-MM-DD HH:mm:ss:ss")),e.attrtype===1&&(t=PL(e.children||[])),t||void 0},PL=e=>{if(!(e!=null&&e.length))return[];const r=t=>t==null?void 0:t.map(i=>{const l={};return Array.isArray(i)&&i.forEach(f=>{var c;(c=f==null?void 0:f.children)!=null&&c.length?l[f.attrid]=r(f.children):l[f.attrid]=f.attrvalue}),l});return r(e)};function BL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,commonRequest:f,CustomModalComponent:c,attrid:h,form:m,langId:d,getTitle:g}=e,C=me.Form.useWatch(h,m),{message:b}=me.App.useApp(),x=r.input,{handleUniversalHeaderToColumns:_}=q2(),[k,E]=W.useState(e.value),[A,T]=W.useState(!1),[D,R]=W.useState([]),[N,z]=W.useState([]),[M,I]=W.useState(!1),[Y,B]=W.useState({PageNum:1,PageSize:6}),[U,P]=W.useState([]),[H,V]=W.useState(0),[G,ee]=W.useState(te());W.useEffect(()=>{A&&$()},[A,Y]);const ne=(ae,fe)=>{R(ae),z(fe)},$=async()=>{var ae,fe,ve,xe,se;if(r.inputType==="url"&&(r!=null&&r["action-url"])){I(!0);try{const ke=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...Y,...(r==null?void 0:r["action-url-extra-params"])||{}});if((ke==null?void 0:ke.ReturnValue)===0){b.error(ke.msg),I(!1);return}const De=ke==null?void 0:ke.data,Pe=(ae=De==null?void 0:De.list)==null?void 0:ae.map(($e,Me)=>{const et=(Y.PageNum-1)*Y.PageSize+Me;return{...$e,_rowKey:et}}),ge=(Pe==null?void 0:Pe.filter($e=>D.includes($e._rowKey)))||[];z(ge),P([...Pe||[]]),V((De==null?void 0:De.number)||0),I(!1)}catch(ke){I(!1),b.error(d==="10001"?ke.msg||"参数错误":"Failed to load data")}return}if(r.inputType==="instance-url"&&(r!=null&&r["instance-source-number"])){const ke={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},De={"source-number":r==null?void 0:r["instance-source-number"],...Y};try{const Pe=await l(ke,De);if((Pe==null?void 0:Pe.ReturnValue)===1){const $e=(ve=((fe=Pe==null?void 0:Pe.data)==null?void 0:fe.list)||[])==null?void 0:ve.map((Me,et)=>{const ut=(Y.PageNum-1)*Y.PageSize+et;return{...Me,_rowKey:ut}});V(((xe=Pe==null?void 0:Pe.data)==null?void 0:xe.number)||0),P([...$e])}const ge=await f("YLKHDSelPCParam",{"source-number":r==null?void 0:r["instance-source-number"]});if((ge==null?void 0:ge.ReturnValue)===1){const $e=(se=ge==null?void 0:ge.data)==null?void 0:se[r==null?void 0:r["instance-source-number"]],Me=($e==null?void 0:$e["universal-header"])||[],et=($e==null?void 0:$e["attribute-set-id"])||"",ut=_({universalHeader:Me,attributeSetId:et,getTitle:g,otherLangPageId:"5000000"})||[];ee([...ut])}}catch{}return}b.error(d==="10001"?"参数配置错误":"Parameter configuration error"),b.error(d==="10001"?"请配置action-url":"Please configure action-url")},X=()=>{var ae;if(!t){if(k){const fe=r==null?void 0:r["key-field"],ve=fe==null?void 0:fe[h],{delimiter:xe="-",list:se=[]}=ve||{};if(!fe){b.error(d==="10001"?"请配置key-field":"Please configure key-field");return}switch(x){case"mul-field-modal-select":const ke=(ae=k==null?void 0:k.split(xe))==null?void 0:ae[0],De=U==null?void 0:U.findIndex($e=>Object.values($e).includes(ke));R([De]);break;case"modal-mult-select":const Pe=k==null?void 0:k.split(","),ge=Pe==null?void 0:Pe.map($e=>{var et;const Me=(et=$e.split(xe))==null?void 0:et[0];return U==null?void 0:U.findIndex(ut=>Me.includes((ut==null?void 0:ut.typeid)||(ut==null?void 0:ut.instanceid)))});R(ge);break}}T(!0)}},Z=async()=>{try{const ae=await LL(N,r);E((ae==null?void 0:ae[h])||""),e.onSure(ae),T(!1)}catch(ae){b.error(d==="10001"?ae.msg||"参数错误":"Failed to load data")}},q=()=>{B({...Y,PageNum:1}),T(!1)};function te(){const ae=r["modal-field-list"];let fe=[];for(let ve in ae){let xe=ae[ve];const se={dataIndex:ve,title:xe};fe=[...fe,se]}return fe}const oe=ae=>{B({...Y,PageNum:ae})};return Be(nn,{children:[Q(me.Select,{placeholder:d==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:X,open:!1,value:C,disabled:t,style:i}),c&&Q(c,{title:r["modal-caption"]||"",open:A,onOk:Z,onCancel:q,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:G,loading:M,dataSource:U,rowKey:ae=>ae._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:ne},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})||Q(me.Modal,{title:r["modal-caption"],open:A,onOk:Z,onCancel:q,width:r["modal-width"]??600,okButtonProps:{disabled:D.length===0},children:Q(me.Table,{columns:G,loading:M,dataSource:U,rowKey:ae=>ae._rowKey,rowSelection:{type:x==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:D,onChange:ne},pagination:{total:H,current:Y.PageNum,pageSize:Y.PageSize,onChange:oe}})})]})}function LL(e,r){return new Promise((t,i)=>{try{var l=r["key-field"];if(!l){i({msg:"请配置key-field"});return}let f={};e.forEach(c=>{for(let[h,m]of Object.entries(l)){const d=(m==null?void 0:m.list)??[],g=(m==null?void 0:m.delimiter)??"-",C=d.map(b=>c==null?void 0:c[b]);f[h]=C.join(g)}}),t(f)}catch{i({msg:"key-field参数配置错误"})}})}function zL(e){const{item:r,disabled:t,style:i,commonRequestWidthParams:l,CustomModalComponent:f,langId:c}=e,{message:h}=me.App.useApp(),m=r.input,[d,g]=W.useState(e.value),[C,b]=W.useState(!1),[x,_]=W.useState([]),[k,E]=W.useState([]),[A,T]=W.useState(!1),[D,R]=W.useState({PageNum:1,PageSize:6}),[N,z]=W.useState([]),[M,I]=W.useState(0),Y=G();W.useEffect(()=>{C&&U()},[C,D]);const B=(ne,$)=>{_(ne),E($)},U=async()=>{var ne;if(r.inputType==="url"&&(r!=null&&r["action-url"])){T(!0);try{const $=await l({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":r==null?void 0:r["action-url"],...D});if(($==null?void 0:$.ReturnValue)===0){h.error($.msg),T(!1);return}const X=$==null?void 0:$.data,Z=(ne=X==null?void 0:X.list)==null?void 0:ne.map((te,oe)=>{const ae=(D.PageNum-1)*D.PageSize+oe;return{...te,_rowKey:ae}}),q=(Z==null?void 0:Z.filter(te=>x.includes(te._rowKey)))||[];E(q),z([...Z||[]]),I((X==null?void 0:X.number)||0),T(!1)}catch($){T(!1),h.error(c==="10001"?$.msg||"参数错误":"Failed to load data")}return}h.error(c==="10001"?"请配置action-url":"Please configure action-url")},P=()=>{var ne,$;if(!t){if(d){const X=((ne=r==null?void 0:r["key-field"])==null?void 0:ne.list)??[],Z=(($=r==null?void 0:r["key-field"])==null?void 0:$.delimiter)??"-";if(!X.length){h.error(c==="10001"?"请配置key-field":"Please configure key-field");return}switch(m){case"modal-select":const q=d==null?void 0:d.split("-"),te=N==null?void 0:N.findIndex(fe=>q.includes((fe==null?void 0:fe.typeid)||(fe==null?void 0:fe.instanceid)));_([te]);break;case"modal-mult-select":const oe=d==null?void 0:d.split(","),ae=oe==null?void 0:oe.map(fe=>{var xe;const ve=(xe=fe.split(Z))==null?void 0:xe[0];return N==null?void 0:N.findIndex(se=>ve.includes((se==null?void 0:se.typeid)||(se==null?void 0:se.instanceid)))});_(ae);break}}b(!0)}},H=async()=>{try{const ne=await UL(k,r,c);g(ne),e.onSure(ne),b(!1)}catch(ne){h.error(c==="10001"?ne.msg||"参数错误":"Failed to build value")}},V=()=>{R({...D,PageNum:1}),b(!1)};function G(){const ne=r["modal-field-list"];let $=[];for(let X in ne){let Z=ne[X];const q={dataIndex:X,title:Z};$=[...$,q]}return $}const ee=ne=>{R({...D,PageNum:ne})};return Be(nn,{children:[Q(me.Select,{placeholder:c==="10001"?(r==null?void 0:r["default-prompt"])||"请选择":"Please select",onClick:P,value:d,open:!1,disabled:t,style:i}),f&&Q(f,{title:r["modal-caption"]||"",open:C,onOk:H,onCancel:V,modalStyle:{width:r["modal-width"]??600,minHeight:r["modal-height"]??400},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})||Q(me.Modal,{title:r["modal-caption"],open:C,onOk:H,onCancel:V,width:r["modal-width"]??600,okButtonProps:{disabled:x.length===0},children:Q(me.Table,{columns:Y,loading:A,dataSource:N,rowKey:ne=>ne._rowKey,rowSelection:{type:m==="modal-select"?"radio":"checkbox",selectedRowKeys:x,onChange:B},pagination:{total:M,current:D.PageNum,pageSize:D.PageSize,onChange:ee}})})]})}function UL(e,r,t){return new Promise((i,l)=>{try{var f=r["key-field"];if(!f){l({msg:t==="10001"?"请配置key-field":"Please configure key-field"});return}var c=(f==null?void 0:f.list)??[];let h=e.map(m=>c.map(g=>m[g]).join((f==null?void 0:f.delimiter)||"-")).join(",");i(h)}catch{l({msg:t==="10001"?"key-field参数配置错误":"Failed to build value"})}})}const jL=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,handleUrlOptions:m,value:d,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]),[A,T]=W.useState(d||[]);W.useEffect(()=>{D()},[r.inputType,r.classify,r.data,r.options]);const D=async()=>{const R=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(R)};return Q(me.Checkbox.Group,{...l,options:k,value:A,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"},onChange:R=>{T(R),t==null||t(R)},disabled:i})},IL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f,commonRequest:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C})=>{const[b,x]=W.useState([]),[_,k]=W.useState(!1),{message:E}=me.App.useApp();W.useEffect(()=>{A()},[e.inputType,e.classify,e.data,e.options]);const A=async()=>{if(e.inputType==="local"){let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}else if(e.inputType==="dictionary")await T(m);else if(e.inputType==="system-dictionary")T(m);else if(e.inputType==="url"&&(e!=null&&e["action-url"])){const M=await R();M&&Array.isArray(M)&&x(M)}else{let M=[];e.data&&Array.isArray(e.data)?M=e.data.map(I=>({label:I,value:I})):e.options&&Array.isArray(e.options)&&(M=e.options),x(M)}},T=async M=>{var I;if(e.classify){k(!0);try{const Y=await c(M,{asctypeid:e.classify});if((I=Y==null?void 0:Y.data)!=null&&I.list&&Array.isArray(Y.data.list)){const B=Y.data.list.map(U=>({label:`${U.dicid||""}-${U.info||""}`,value:`${U.dicid||""}-${U.info||""}`}));x(B)}}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options")}finally{k(!1)}}},D=(M,I)=>{i&&i(M)},R=async M=>new Promise(async(I,Y)=>{var V,G,ee;const B=((V=e==null?void 0:e["key-field"])==null?void 0:V.list)||[],U=(e==null?void 0:e["search-field"])||[],P=((G=e==null?void 0:e["key-field"])==null?void 0:G.delimiter)||"-";if(!B.length){E.error(C==="10001"?"请配置key-field":"Please configure key-field");return}const H={[d]:e==null?void 0:e["action-url"],...g};M&&(U.forEach(ne=>{H[ne]=M[ne]||""}),H.level=Number(M.level||0)+1||""),k(!0);try{const ne=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},H);if((ee=ne==null?void 0:ne.data)!=null&&ee.list&&Array.isArray(ne.data.list)){const $=ne.data.list.map(X=>({...X,label:`${X[B[0]]||""}${P}${X[B[1]]||""}`,value:`${X[B[0]]||""}${P}${X[B[1]]||""}`,children:[],isLeaf:(X==null?void 0:X.subcount)===0}));I($)}Y([])}catch{E.error(C==="10001"?"加载选项失败":"Failed to load options"),Y([])}finally{Y([]),k(!1)}}),N=async M=>{const I=M[M.length-1],Y=await R(I)||[];return I.children=Y,x([...b]),Y},z=(M,I)=>I.some(Y=>Y.label.toLowerCase().includes(M.toLowerCase()));return Q(me.Cascader,{showSearch:{filter:z},loading:_,placeholder:C==="10001"?"请选择":"Please select",loadData:N,disabled:r,onChange:D,style:{...l},options:b,value:t,onOpenChange:async M=>{var I;if(M&&(t!=null&&t.length)){const Y=((I=e==null?void 0:e["key-field"])==null?void 0:I.list)||[],B=(e==null?void 0:e["search-field"])||[];if(!Y.length||!B.length){E.error(C==="10001"?"请配置key-field和search-field":"Please configure key-field and search-field");return}const U=Y.findIndex(V=>V===B[0]);if(U===-1){E.error(C==="10001"?"key-field与search-field配置不匹配":"key-field and search-field configuration does not match");return}const P=t.map(V=>V.split("-")[U]||"").filter(Boolean);let H=b;for(const[V,G]of P.entries()){if(V===P.length-1)break;const ee=H.filter(X=>X[B[0]]===G);if(ee.length===0)break;const ne=ee[0];if(ne.children&&ne.children.length>0){H=ne.children;continue}H=await N(ee)}}}})},HL=({item:e,readonly:r,value:t,onChange:i,style:l,commonRequestWidthParams:f})=>{const[c,h]=W.useState([]),[m,d]=W.useState(!1);W.useEffect(()=>{(async()=>{var T;if(e.inputType==="url"&&e["action-url"]){d(!0);try{const D=await f({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"]});(T=D==null?void 0:D.data)!=null&&T.list&&Array.isArray(D.data.list)?h(D.data.list):D!=null&&D.data&&Array.isArray(D.data)?h(D.data):Array.isArray(D==null?void 0:D.list)?h(D.list):(D==null?void 0:D.ReturnValue)===1&&(D!=null&&D.data)&&(Array.isArray(D.data)?h(D.data):h([D.data]))}catch{}finally{d(!1)}}else e.data&&Array.isArray(e.data)&&h(e.data)})()},[e.inputType,e["action-url"],e.data]);const g=A=>JSON.stringify(A),C=A=>{const T=g(A);return t===T},b=A=>{if(r)return;const T=g(A);i&&i(T)},x=e["card-image-width"]||200,_=e["card-image-height"]||100,k=e["card-image-field"],E=e["card-info-field"];return Q("div",{style:{...l},children:m?Q("div",{style:{textAlign:"center",padding:"20px"},children:"加载中..."}):Q("div",{style:{display:"flex",flexWrap:"wrap",gap:"0px"},children:c.map((A,T)=>{const D=C(A);return Be("div",{onClick:()=>b(A),style:{flex:"1 1 auto",width:`${x}px`,padding:"12px",cursor:r?"not-allowed":"pointer",opacity:r?.6:1,transition:"all 0.3s"},children:[A[k]&&Q("img",{src:A.picurl,alt:A[E]||"",style:{width:`${x}px`,height:`${_}px`,objectFit:"cover",borderRadius:"4px",marginBottom:"8px"},onError:R=>{R.currentTarget.style.display="none"}}),Q("div",{style:{fontSize:"14px",color:"#333333"},children:Be(me.Space,{size:6,children:[Q("div",{style:{width:"16px",height:"16px",borderRadius:"50%",border:D?"none":"1px solid #d9d9d9",backgroundColor:D?"var(--color-primary)":"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer"},children:D&&Q(h8,{style:{fontSize:"12px",color:"#fff"}})}),A[E]||""]})})]},T)})})})},XQ="";function Xp(e,r){if(!e)return r;let t;return typeof e=="function"?t=e():"current"in e?t=e.current:t=e,t}function Mi(){}const Jp=Object.assign,Ac=typeof window<"u";function ea(e){return e!=null}function Oc(e){return typeof e=="function"}function VL(e){return fd(e)&&Oc(e.then)&&Oc(e.catch)}function fd(e){return e!==null&&typeof e=="object"}function cD(e,r,t){return r.reduce((i,l)=>((!t||e[l]!==void 0)&&(i[l]=e[l]),i),{})}function G2(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((t,i)=>t+G2(e,i),""):Object.keys(r).reduce((t,i)=>t+(r[i]?G2(e,i):""),""):""}function $L(e){return(r,t)=>(r&&typeof r!="string"&&(t=r,r=""),r=r?`${e}__${r}`:e,`${r}${G2(r,t)}`)}function wn(e,r){return e=`${r||"rv"}-${e}`,[$L(e),e]}function YL(e){e.stopPropagation()}function K2(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&YL(e)}const qL={click:"onClick"};function fD(e,r){const t=Object.assign({},r.props);for(const i of e){const l=qL[i];t[l]=function(f){var c,h;f.stopPropagation(),(h=(c=r.props)[l])===null||h===void 0||h.call(c,f)}}return W.cloneElement(r,t)}const dd=Ac?window:global;let dD=Date.now();function GL(e){const r=Date.now(),t=Math.max(0,16-(r-dD)),i=setTimeout(e,t);return dD=r+t,i}function W2(e){return(dd.requestAnimationFrame||GL).call(dd,e)}function KL(){return Ac?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}function WL(e){const r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function QL(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ZL(e){pD(window,e)}function pD(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}const XL=KL();function hD(){XL&&ZL(QL())}function vD(e){return/^\d+(\.\d+)?$/.test(e)}function mD(e){return Number.isNaN?Number.isNaN(e):e!==e}function dl(e){if(ea(e))return e=String(e),vD(e)?`${e}px`:e}function JL(e){if(ea(e)){const r=dl(e);return{width:r,height:r}}return{}}let Q2;function ez(){if(!Q2){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;Q2=parseFloat(r)}return Q2}function tz(e){return e=e.replace(/rem/g,""),+e*ez()}function nz(e){return e=e.replace(/vw/g,""),+e*window.innerWidth/100}function rz(e){return e=e.replace(/vh/g,""),+e*window.innerHeight/100}function gD(e){if(typeof e=="number")return e;if(Ac){if(e.indexOf("rem")!==-1)return tz(e);if(e.indexOf("vw")!==-1)return nz(e);if(e.indexOf("vh")!==-1)return rz(e)}return parseFloat(e)}function eh(e,r,t){return Math.min(Math.max(e,r),t)}function yD(e,r,t){const i=e.indexOf(r);return i===-1?e:r==="-"&&i!==0?e.slice(0,i):e.slice(0,i+1)+e.slice(i).replace(t,"")}function az(e,r=!0,t=!0){r?e=yD(e,".",/\./g):e=e.split(".")[0],t?e=yD(e,"-",/-/g):e=e.replace(/-/,"");const i=r?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(i,"")}function pl(e,r=2){let t=`${e}`;for(;t.length<r;)t=`0${t}`;return t}let xD=!1;if(Ac)try{const e={};Object.defineProperty(e,"passive",{get(){xD=!0}}),window.addEventListener("test-passive",null,e)}catch{}function Z2(e,r,t={}){if(!Ac)return;const{target:i=window,passive:l=!1,capture:f=!1,depends:c=[]}=t;let h;const m=()=>{const g=Xp(i);g&&!h&&(g.addEventListener(e,r,xD?{capture:f,passive:l}:f),h=!0)},d=()=>{const g=Xp(i);g&&h&&(g.removeEventListener(e,r,f),h=!1)};W.useEffect(()=>(m(),()=>d()),[i,...c])}function X2(e){const[r,t]=W.useState(e),i=W.useRef(r),l=W.useCallback(f=>{t(c=>i.current=Oc(f)?f(c):f)},[r]);return[r,l,i]}const iz=()=>{const e=W.useRef(!1);return W.useEffect(()=>(e.current=!1,()=>{e.current=!0}),[]),e},bD=(e={})=>{const r=iz(),[t,i,l]=X2(e),f=W.useCallback(c=>{r.current||i(h=>Object.assign(Object.assign({},h),Oc(c)?c(h):c))},[]);return[t,f,l]},Rc=(e,r)=>{const t=W.useRef(!1);W.useEffect(()=>{if(!t.current)t.current=!0;else return e()},r)};function CD(e){const r=W.useRef(e);return r.current=e,r}const oz=process.env.NODE_ENV==="development";function nZ(e,r){}const wD=e=>{process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=CD(e);W.useEffect(()=>()=>{r.current()},[])};function _D(e,r){if(e===r)return!0;for(let t=0;t<e.length;t++)if(!Object.is(e[t],r[t]))return!1;return!0}const lz=(e=>(t,i,l)=>{const f=W.useRef(!1),c=W.useRef([]),h=W.useRef([]),m=W.useRef();e(()=>{var d;const C=(Array.isArray(l)?l:[l]).map(b=>Xp(b));if(!f.current){f.current=!0,c.current=C,h.current=i,m.current=t();return}(C.length!==c.current.length||!_D(C,c.current)||!_D(i,h.current))&&((d=m.current)===null||d===void 0||d.call(m),c.current=C,h.current=i,m.current=t())}),wD(()=>{var d;(d=m.current)===null||d===void 0||d.call(m),f.current=!1})})(W.useEffect);function sz(e,r){const[t,i]=W.useState(),[l,f]=W.useState();return lz(()=>{const c=Xp(e);if(!c)return;const h=new IntersectionObserver(m=>{for(const d of m)f(d.intersectionRatio),i(d.isIntersecting)},Object.assign(Object.assign({},r),{root:Xp(r==null?void 0:r.root)}));return h.observe(c),()=>{h.disconnect()}},[],e),[t,l]}const SD=10;function uz(e,r){return e>r&&e>SD?"horizontal":r>e&&r>SD?"vertical":""}function ED(){const e=W.useRef(0),r=W.useRef(0),t=W.useRef(0),i=W.useRef(0),l=W.useRef(0),f=W.useRef(0),c=W.useRef(""),h=W.useRef(null),m=()=>c.current==="vertical",d=()=>c.current==="horizontal",g=()=>{t.current=0,i.current=0,l.current=0,f.current=0,c.current="",h.current=null};return{move:x=>{const _=x.touches[0];t.current=_.clientX<0?0:_.clientX-e.current,i.current=_.clientY-r.current,l.current=Math.abs(t.current),f.current=Math.abs(i.current),h.current===null?h.current=!0:h.current=!1,c.current||(c.current=uz(l.current,f.current))},start:x=>{g(),e.current=x.touches[0].clientX,r.current=x.touches[0].clientY},reset:g,startX:e,startY:r,deltaX:t,deltaY:i,offsetX:l,offsetY:f,direction:c,isVertical:m,isHorizontal:d,firstMove:h}}const DD=/scroll|auto/i,cz=Ac?window:void 0;function fz(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function dz(e,r=cz){r===void 0&&(r=window);let t=e;for(;t&&t!==r&&fz(t);){const{overflowY:i}=window.getComputedStyle(t);if(DD.test(i)){if(t.tagName!=="BODY")return t;const l=window.getComputedStyle(t.parentNode).overflowY;if(DD.test(l))return t}t=t.parentNode}return r}const pz=e=>(r,t)=>{const i=W.useRef(!1);e(()=>()=>{i.current=!1},[]),e(()=>{if(!i.current)i.current=!0;else return r()},t)},th=Ac?W.useLayoutEffect:W.useEffect,hz=pz(th),kD=()=>{const[,e]=W.useState({});return W.useCallback(()=>e({}),[])};function TD(e){process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const r=W.useRef(e);r.current=W.useMemo(()=>e,[e]);const t=W.useRef();return t.current||(t.current=function(...i){return r.current.apply(this,i)}),t.current}function nh(e){const{value:r,defaultValue:t,onChange:i}=e,l=kD(),f=W.useRef(r!==void 0?r:t);r!==void 0&&(f.current=r);const c=TD((h,m)=>{const d=typeof h=="function"?h(f.current):h;!m&&d===f.current||(f.current=d,l(),i==null||i(d))});return[f.current,c]}const lZ="";function $a(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t}function J2(e,r,t,i){function l(f){return f instanceof t?f:new t(function(c){c(f)})}return new(t||(t=Promise))(function(f,c){function h(g){try{d(i.next(g))}catch(C){c(C)}}function m(g){try{d(i.throw(g))}catch(C){c(C)}}function d(g){g.done?f(g.value):l(g.value).then(h,m)}d((i=i.apply(e,r||[])).next())})}const sZ="",vz=({bem:e})=>Q(nn,{children:Array(12).fill(null).map((r,t)=>Q("i",{className:Re(e("line",String(t+1)))},t))}),mz=({bem:e})=>Q("svg",Object.assign({className:Re(e("circular")),viewBox:"25 25 50 50"},{children:Q("circle",{cx:"50",cy:"50",r:"20",fill:"none"})})),gz=({bem:e})=>Be("div",Object.assign({className:Re(e("ball"))},{children:[Q("div",{}),Q("div",{}),Q("div",{})]})),yz=e=>({spinner:Q(vz,{bem:e}),circular:Q(mz,{bem:e}),ball:Q(gz,{bem:e})}),[Ng]=wn("loading"),eC=e=>{const{className:r,type:t="circular",vertical:i,color:l,size:f,textColor:c,children:h,textSize:m}=e,d=W.useMemo(()=>Object.assign({color:l},JL(f)),[l,f]),g=()=>h?Q("span",Object.assign({className:Re(Ng("text")),style:{fontSize:dl(m),color:c??l}},{children:h})):null;return Be("div",Object.assign({className:Re(r,Ng([t,{vertical:i}])),style:e.style},{children:[Q("span",Object.assign({className:Re(Ng("spinner",t)),style:d},{children:yz(Ng)[t]})),g()]}))},xz="#fff",rh="rv-hairline",bz=`${rh}--top`,Cz=`${rh}--left`,wz=`${rh}--surround`,_z=`${rh}--top-bottom`,Sz=`${rh}-unset--top-bottom`,AD="rv-shadow",Ez="__REACT_VANT_COMPONENT",OD=W.createContext({}),[ah]=wn("button"),Dz=e=>{const{color:r,loading:t,className:i,hairline:l,loadingText:f,round:c,square:h,plain:m,block:d,loadingType:g,nativeType:C,iconPosition:b}=e,x=$a(e,["color","loading","className","hairline","loadingText","round","square","plain","block","loadingType","nativeType","iconPosition"]),{parent:_}=W.useContext(OD),k=W.useMemo(()=>e.size||(_==null?void 0:_.size)||"normal",[_==null?void 0:_.size,e.size]),E=W.useMemo(()=>e.type||(_==null?void 0:_.type)||"default",[_==null?void 0:_.type,e.type]),A=W.useMemo(()=>m??(_==null?void 0:_.plain),[_==null?void 0:_.plain,m]),T=W.useMemo(()=>d??(_==null?void 0:_.block),[_==null?void 0:_.block,d]),D=W.useMemo(()=>b||(_==null?void 0:_.iconPosition)||"left",[_==null?void 0:_.iconPosition,b]),R=W.useMemo(()=>{var G;return(G=e.disabled)!==null&&G!==void 0?G:_==null?void 0:_.disabled},[_==null?void 0:_.disabled,e.disabled]),N=W.useMemo(()=>C||(_==null?void 0:_.nativeType)||"button",[_==null?void 0:_.nativeType,C]),M=W.useMemo(()=>e.tag||(_==null?void 0:_.tag)||"button",[_==null?void 0:_.tag,e.tag]),I=Re(i,ah([E,k,{plain:A,loading:t,disabled:R,hairline:l,block:T,round:c,square:h}]),{[wz]:l},e.shadow&&`${AD}--${+e.shadow}`),Y=Object.assign({},e.style);r&&(Y.color=A?r:xz,A||(Y.background=r),r.indexOf("gradient")!==-1?Y.border=0:Y.borderColor=r);const B=G=>{!t&&!R&&e.onClick&&e.onClick(G)},U=()=>{if(t){const{loadingSize:G="20px"}=e;return Q(eC,{className:Re(ah("loading")),size:G,type:g,color:E==="default"?void 0:""})}return null},P=()=>e.loading?U():e.icon?W.cloneElement(e.icon,{className:Re(ah("icon"))}):null,H=()=>{let G;return t?G=f:G=e.children||e.text,G?Q("span",Object.assign({className:Re(ah("text"))},{children:G}),"text"):null};return Q(M,Object.assign({},x,{disabled:R,className:I,style:Y,type:N,onClick:B},{children:(()=>Be("div",Object.assign({className:Re(ah("content"))},{children:[D==="left"&&P(),H(),D==="right"&&P()]})))()}))},[kz]=wn("button-group"),ih=Object.assign(Dz,{Group:e=>{var{className:r,style:t,children:i,onClick:l}=e,f=$a(e,["className","style","children","onClick"]);return Q("div",Object.assign({onClick:h=>{f.disabled||l==null||l(h)},style:t,className:Re(r,kz([f.type,{round:f.round,plain:f.plain,disabled:f.disabled}]),f.shadow&&`${AD}--${+f.shadow}`)},{children:Q(OD.Provider,Object.assign({value:{parent:f}},{children:i}))}))}}),hZ="";function ta(...e){const r=Object.assign({},e[0]);return e.forEach(t=>{for(const i in t){const l=t[i];r[i]=r.hasOwnProperty(i)?r[i]:l}}),r}const[RD]=wn("badge"),Tz=e=>{const r=ta(e,{tag:"div",showZero:!0}),{content:t,max:i,dot:l,showZero:f,tag:c="div"}=r,h=c,m=()=>r.content?!0:ea(t)&&t!==""&&(f||+t!=0),d=()=>!l&&m()?ea(i)&&vD(t==null?void 0:t.toString())&&+t>i?`${i}+`:t:null,g=()=>{if(m()||r.dot){let C={background:r.color};if(r.offset){const[b,x]=r.offset;r.children?(C.top=dl(x),C.right=dl(b)):(C.marginTop=dl(x),C.marginLeft=dl(b))}return r.children||(C=Object.assign(Object.assign({},r.style),C)),Q("div",Object.assign({className:Re({[r.className]:r.className&&!r.children},RD({dot:r.dot,fixed:!!r.children})),style:C},{children:d()}))}return null};return r.children?Be(h,Object.assign({className:Re(RD("wrapper"),r.className),style:r.style,onClick:r.onClick,onTouchStart:r.onTouchStart},{children:[r.children,g()]})):g()},mZ="";var Az=globalThis&&globalThis.__rest||function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)r.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t};function Oz(e){return e.substring(3).replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")}const ls=W.forwardRef((e,r)=>{const{name:t="",className:i,style:l,spin:f,rotate:c,tabIndex:h,onClick:m,children:d}=e,g=Az(e,["name","className","style","spin","rotate","tabIndex","onClick","children"]),C={};c&&(C.msTransform=`rotate(${c}deg)`,C.transform=`rotate(${c}deg)`);const b=t?Oz(t):void 0;let x=h;x===void 0&&m&&(x=-1);const _=Object.assign({role:"img","aria-label":b,focusable:"false","data-icon":b,"aria-hidden":"true",preserveAspectRatio:"xMidYMid meet",ref:r,tabIndex:x,onClick:m,className:["rv-icon",b?`rv-icon-${b}`:"",f?"rv-icon--spin":"",i].join(" ").trim(),style:Object.assign(Object.assign({},l),C)},g);return W.cloneElement(d,_)}),Rz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M494.094 733.426a41.472 41.472 0 01-20.023-11.126L140.16 388.388c-16.272-16.271-16.272-42.653 0-58.925 16.271-16.272 42.653-16.272 58.925 0L503.66 634.037 808.186 329.51c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L533.2 722.347c-10.607 10.607-25.508 14.3-39.106 11.08z",fillRule:"evenodd"})),Fz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrowDown"},e,{ref:r}),Ne.createElement(Rz,null))),Nz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 01-11.127-20.023z",fillRule:"evenodd"})),Mz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrowLeft"},e,{ref:r}),Ne.createElement(Nz,null))),Pz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M513.176 285.05a41.472 41.472 0 0120.024 11.127L867.11 630.089c16.272 16.271 16.272 42.653 0 58.925s-42.654 16.272-58.925 0L503.612 384.44 199.085 688.967c-16.272 16.271-42.654 16.271-58.925 0-16.272-16.272-16.272-42.654 0-58.926L474.07 296.129c10.606-10.606 25.508-14.299 39.105-11.078z",fillRule:"evenodd"})),Bz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrowUp"},e,{ref:r}),Ne.createElement(Pz,null))),Lz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M711.156 508.035a41.472 41.472 0 01-11.126 20.023L366.12 861.97c-16.272 16.272-42.654 16.272-58.926 0s-16.272-42.654 0-58.926L611.767 498.47 307.241 193.944c-16.272-16.272-16.272-42.654 0-58.926 16.271-16.272 42.653-16.272 58.925 0L700.078 468.93c10.606 10.606 14.299 25.508 11.078 39.105z",fillRule:"evenodd"})),zz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgArrow"},e,{ref:r}),Ne.createElement(Lz,null))),Uz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M500 55.556c245.46 0 444.444 198.984 444.444 444.444S745.46 944.444 500 944.444 55.556 745.46 55.556 500 254.54 55.556 500 55.556zm176.441 267.887c-10.848-10.848-28.436-10.848-39.284 0L499.665 460.936 362.172 323.443c-10.848-10.848-28.436-10.848-39.284 0-10.848 10.848-10.848 28.436 0 39.284L460.38 500.22 322.888 637.713c-10.848 10.848-10.848 28.436 0 39.284 10.848 10.848 28.436 10.848 39.284 0l137.493-137.493 137.492 137.493c10.848 10.848 28.436 10.848 39.284 0 10.848-10.848 10.848-28.436 0-39.284L538.948 500.22l137.493-137.493c10.848-10.848 10.848-28.436 0-39.284z",fillRule:"evenodd"})),Mg=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgClear"},e,{ref:r}),Ne.createElement(Uz,null))),jz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M560.149 501.223l255.344 255.344c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L501.223 560.149 245.88 815.493c-16.272 16.272-42.654 16.272-58.925 0-16.272-16.272-16.272-42.654 0-58.926l255.344-255.344L186.954 245.88c-16.272-16.272-16.272-42.654 0-58.925 16.271-16.272 42.653-16.272 58.925 0l255.344 255.344 255.344-255.344c16.272-16.272 42.654-16.272 58.926 0 16.272 16.271 16.272 42.653 0 58.925L560.149 501.223z",fillRule:"nonzero"})),tC=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgCross"},e,{ref:r}),Ne.createElement(jz,null))),Iz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M537.5 537.5v325c0 20.71-16.79 37.5-37.5 37.5s-37.5-16.79-37.5-37.5v-325h-325c-20.71 0-37.5-16.79-37.5-37.5s16.79-37.5 37.5-37.5h325v-325c0-20.71 16.79-37.5 37.5-37.5s37.5 16.79 37.5 37.5v325h325c20.71 0 37.5 16.79 37.5 37.5s-16.79 37.5-37.5 37.5h-325z",fillRule:"nonzero"})),Hz=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgPlus"},e,{ref:r}),Ne.createElement(Iz,null))),Vz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M500 888.889c-214.389 0-388.889-174.5-388.889-388.889S285.611 111.111 500 111.111 888.889 285.611 888.889 500 714.389 888.889 500 888.889m0-833.333c-245.444 0-444.444 199-444.444 444.444 0 245.444 199 444.444 444.444 444.444 245.444 0 444.444-199 444.444-444.444 0-245.444-199-444.444-444.444-444.444m6.456 222.222c-44.612 0-80 12.778-105.612 39.055-26.277 25.667-39.055 60.445-39.055 105.056v1c0 17.944 14.444 32.444 32.389 32.444 17.889 0 32.389-14.5 32.389-32.444 0-.389-.111-1-.111-1 0-26.945 5.444-48.222 16.444-62.889 12.222-17.111 32.333-25.667 59.889-25.667 21.944 0 39.055 6.111 51.222 18.334 11.611 12.222 17.778 28.722 17.778 50.055 0 15.89-5.556 30.5-16.556 44.556l-10.389 11.61c-37.777 33.556-60.333 59-69.61 75.668-13.834 24.944-11.334 48-11.334 48 0 17.888 14.556 32.388 32.444 32.388 17.945 0 29.778-12.333 32.39-32.388 0 0 3.333-18.667 10.055-30.89 5.5-10.944 14.055-21.388 25-31.11 29.389-25.056 46.444-40.945 51.889-47.667 14.666-19.5 22.555-44.556 22.555-74.445 0-36.61-12.166-65.944-35.944-87.333-24.445-21.944-56.167-32.333-95.833-32.333m-10.417 357.15c-12.778 0-23.222 3.666-31.111 12.222-9.222 7.889-13.5 18.333-13.5 31.111 0 12.222 4.278 22.611 13.5 31.167 7.889 8.5 18.333 12.778 31.11 12.778 12.279 0 23.223-4.278 32.39-12.167 8.5-8.611 12.778-18.945 12.778-31.778 0-12.778-4.278-23.222-12.778-31.111-8.556-8.556-19.556-12.222-32.39-12.222",fillRule:"evenodd"})),$z=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgQuestionO"},e,{ref:r}),Ne.createElement(Vz,null))),Yz=e=>Ne.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},e),Ne.createElement("path",{d:"M119.415 524.046c-9.708-9.693-11.278-24.766-2.72-35.554l20.007-25.223c8.201-10.34 23.543-12.936 34.386-5.699l173.175 115.585c9.134 6.097 24.856 5.303 33.384-1.616l457.6-371.25c10.286-8.345 26.397-7.634 35.412 1.368l11.272 11.255c9.81 9.795 9.096 25.343-1.187 35.611l-491.14 490.414c-15.28 15.258-40.369 14.59-56.099-1.116l-214.09-213.775z",fillRule:"nonzero"})),FD=Ne.forwardRef((e,r)=>Ne.createElement(ls,Object.assign({name:"SvgSuccess"},e,{ref:r}),Ne.createElement(Yz,null))),kZ="",[ND]=wn("cell-group"),qz=e=>{const r=ta(e,{border:!0}),{title:t,border:i,inset:l,card:f}=r,c=f||l,h=()=>Q("div",Object.assign({className:Re(ND({inset:c}),{[_z]:!c&&i})},{children:r.children})),m=()=>t?Q("div",Object.assign({className:Re(ND("title"))},{children:t})):null;return Be("div",Object.assign({className:r.className,style:r.style},{children:[m(),h()]}))},[pd]=wn("cell"),MD=Object.assign(e=>{const r=()=>ea(e.label)?Q("div",Object.assign({className:Re(pd("label"),e.labelClass)},{children:e.label})):null,t=()=>ea(e.title)?Be("div",Object.assign({className:Re(pd("title"),e.titleClass),style:e.titleStyle},{children:[e.title,r()]})):null,i=()=>{const E=ea(e.title);return ea(e.children)||ea(e.value)?Q("div",Object.assign({className:Re(pd("value",{alone:!E}),e.valueClass)},{children:ea(e.children)?e.children:Q("span",{children:e.value})})):null},l=()=>e.icon?W.cloneElement(e.icon,{className:Re(pd("left-icon"))}):null,f=()=>{if(e.rightIcon)return e.rightIcon;if(e.isLink){const E=Re(pd("right-icon"));return e.arrowDirection==="left"?Q(Mz,{className:E}):e.arrowDirection==="up"?Q(Bz,{className:E}):e.arrowDirection==="down"?Q(Fz,{className:E}):Q(zz,{className:E})}return null},{className:c,style:h,size:m,center:d,border:g=!0,isLink:C,required:b,onClick:x}=e,_=C||e.clickable,k={center:d,required:b,clickable:_,borderless:!g};return m&&(k[m]=!!m),Be("div",Object.assign({style:h,className:Re(pd(k),c),role:_?"button":void 0,onClick:x},{children:[l(),t(),i(),f(),e.extra]}))},{Group:qz}),RZ="",FZ="";function Pg(e,r){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Pg(e,r)}function PD(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Pg(e,r)}function Gz(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function Kz(e,r){e.classList?e.classList.add(r):Gz(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function BD(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Wz(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=BD(e.className,r):e.setAttribute("class",BD(e.className&&e.className.baseVal||"",r))}const LD={disabled:!1};var Qz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.number,wt.exports.shape({enter:wt.exports.number,exit:wt.exports.number,appear:wt.exports.number}).isRequired]):null,Zz=process.env.NODE_ENV!=="production"?wt.exports.oneOfType([wt.exports.string,wt.exports.shape({enter:wt.exports.string,exit:wt.exports.string,active:wt.exports.string}),wt.exports.shape({enter:wt.exports.string,enterDone:wt.exports.string,enterActive:wt.exports.string,exit:wt.exports.string,exitDone:wt.exports.string,exitActive:wt.exports.string})]):null;const zD=W.createContext(null);var oh="unmounted",Fc="exited",Nc="entering",hd="entered",nC="exiting",ss=function(e){PD(r,e);function r(i,l){var f;f=e.call(this,i,l)||this;var c=l,h=c&&!c.isMounting?i.enter:i.appear,m;return f.appearStatus=null,i.in?h?(m=Fc,f.appearStatus=Nc):m=hd:i.unmountOnExit||i.mountOnEnter?m=oh:m=Fc,f.state={status:m},f.nextCallback=null,f}r.getDerivedStateFromProps=function(l,f){var c=l.in;return c&&f.status===oh?{status:Fc}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(l){var f=null;if(l!==this.props){var c=this.state.status;this.props.in?c!==Nc&&c!==hd&&(f=Nc):(c===Nc||c===hd)&&(f=nC)}this.updateStatus(!1,f)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var l=this.props.timeout,f,c,h;return f=c=h=l,l!=null&&typeof l!="number"&&(f=l.exit,c=l.enter,h=l.appear!==void 0?l.appear:c),{exit:f,enter:c,appear:h}},t.updateStatus=function(l,f){l===void 0&&(l=!1),f!==null?(this.cancelNextCallback(),f===Nc?this.performEnter(l):this.performExit()):this.props.unmountOnExit&&this.state.status===Fc&&this.setState({status:oh})},t.performEnter=function(l){var f=this,c=this.props.enter,h=this.context?this.context.isMounting:l,m=this.props.nodeRef?[h]:[fg.findDOMNode(this),h],d=m[0],g=m[1],C=this.getTimeouts(),b=h?C.appear:C.enter;if(!l&&!c||LD.disabled){this.safeSetState({status:hd},function(){f.props.onEntered(d)});return}this.props.onEnter(d,g),this.safeSetState({status:Nc},function(){f.props.onEntering(d,g),f.onTransitionEnd(b,function(){f.safeSetState({status:hd},function(){f.props.onEntered(d,g)})})})},t.performExit=function(){var l=this,f=this.props.exit,c=this.getTimeouts(),h=this.props.nodeRef?void 0:fg.findDOMNode(this);if(!f||LD.disabled){this.safeSetState({status:Fc},function(){l.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:nC},function(){l.props.onExiting(h),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:Fc},function(){l.props.onExited(h)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(l,f){f=this.setNextCallback(f),this.setState(l,f)},t.setNextCallback=function(l){var f=this,c=!0;return this.nextCallback=function(h){c&&(c=!1,f.nextCallback=null,l(h))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},t.onTransitionEnd=function(l,f){this.setNextCallback(f);var c=this.props.nodeRef?this.props.nodeRef.current:fg.findDOMNode(this),h=l==null&&!this.props.addEndListener;if(!c||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],d=m[0],g=m[1];this.props.addEndListener(d,g)}l!=null&&setTimeout(this.nextCallback,l)},t.render=function(){var l=this.state.status;if(l===oh)return null;var f=this.props,c=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var h=_b(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(zD.Provider,{value:null},typeof c=="function"?c(l,h):W.cloneElement(W.Children.only(c),h))},r}(W.Component);ss.contextType=zD,ss.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:wt.exports.shape({current:typeof Element>"u"?wt.exports.any:function(e,r,t,i,l,f){var c=e[r];return wt.exports.instanceOf(c&&"ownerDocument"in c?c.ownerDocument.defaultView.Element:Element)(e,r,t,i,l,f)}}),children:wt.exports.oneOfType([wt.exports.func.isRequired,wt.exports.element.isRequired]).isRequired,in:wt.exports.bool,mountOnEnter:wt.exports.bool,unmountOnExit:wt.exports.bool,appear:wt.exports.bool,enter:wt.exports.bool,exit:wt.exports.bool,timeout:function(r){var t=Qz;r.addEndListener||(t=t.isRequired);for(var i=arguments.length,l=new Array(i>1?i-1:0),f=1;f<i;f++)l[f-1]=arguments[f];return t.apply(void 0,[r].concat(l))},addEndListener:wt.exports.func,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}:{};function vd(){}ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vd,onEntering:vd,onEntered:vd,onExit:vd,onExiting:vd,onExited:vd},ss.UNMOUNTED=oh,ss.EXITED=Fc,ss.ENTERING=Nc,ss.ENTERED=hd,ss.EXITING=nC;const UD=ss;var Xz=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return Kz(r,i)})},rC=function(r,t){return r&&t&&t.split(" ").forEach(function(i){return Wz(r,i)})},aC=function(e){PD(r,e);function r(){for(var i,l=arguments.length,f=new Array(l),c=0;c<l;c++)f[c]=arguments[c];return i=e.call.apply(e,[this].concat(f))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(h,m){var d=i.resolveArguments(h,m),g=d[0],C=d[1];i.removeClasses(g,"exit"),i.addClass(g,C?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(h,m)},i.onEntering=function(h,m){var d=i.resolveArguments(h,m),g=d[0],C=d[1],b=C?"appear":"enter";i.addClass(g,b,"active"),i.props.onEntering&&i.props.onEntering(h,m)},i.onEntered=function(h,m){var d=i.resolveArguments(h,m),g=d[0],C=d[1],b=C?"appear":"enter";i.removeClasses(g,b),i.addClass(g,b,"done"),i.props.onEntered&&i.props.onEntered(h,m)},i.onExit=function(h){var m=i.resolveArguments(h),d=m[0];i.removeClasses(d,"appear"),i.removeClasses(d,"enter"),i.addClass(d,"exit","base"),i.props.onExit&&i.props.onExit(h)},i.onExiting=function(h){var m=i.resolveArguments(h),d=m[0];i.addClass(d,"exit","active"),i.props.onExiting&&i.props.onExiting(h)},i.onExited=function(h){var m=i.resolveArguments(h),d=m[0];i.removeClasses(d,"exit"),i.addClass(d,"exit","done"),i.props.onExited&&i.props.onExited(h)},i.resolveArguments=function(h,m){return i.props.nodeRef?[i.props.nodeRef.current,h]:[h,m]},i.getClassNames=function(h){var m=i.props.classNames,d=typeof m=="string",g=d&&m?m+"-":"",C=d?""+g+h:m[h],b=d?C+"-active":m[h+"Active"],x=d?C+"-done":m[h+"Done"];return{baseClassName:C,activeClassName:b,doneClassName:x}},i}var t=r.prototype;return t.addClass=function(l,f,c){var h=this.getClassNames(f)[c+"ClassName"],m=this.getClassNames("enter"),d=m.doneClassName;f==="appear"&&c==="done"&&d&&(h+=" "+d),c==="active"&&l&&l.scrollTop,h&&(this.appliedClasses[f][c]=h,Xz(l,h))},t.removeClasses=function(l,f){var c=this.appliedClasses[f],h=c.base,m=c.active,d=c.done;this.appliedClasses[f]={},h&&rC(l,h),m&&rC(l,m),d&&rC(l,d)},t.render=function(){var l=this.props;l.classNames;var f=_b(l,["classNames"]);return W.createElement(UD,Pr({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(W.Component);aC.defaultProps={classNames:""},aC.propTypes=process.env.NODE_ENV!=="production"?Pr({},UD.propTypes,{classNames:Zz,onEnter:wt.exports.func,onEntering:wt.exports.func,onEntered:wt.exports.func,onExit:wt.exports.func,onExiting:wt.exports.func,onExited:wt.exports.func}):{};const jD=aC;function hn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const NZ="",[Jz]=wn("overlay"),eU=e=>{const r=W.useRef(null),t=ta(e,{stopPropagation:["click"],lockScroll:!0,duration:300}),{visible:i,duration:l}=t,f=h=>{t.lockScroll&&K2(h,!0)},c=()=>{const h=Object.assign(Object.assign({zIndex:t.zIndex!==void 0?+t.zIndex:void 0,touchAction:t.lockScroll&&"none"},t.style),t.customStyle);return ea(l)&&(h.animationDuration=`${l}ms`),fD(t.stopPropagation,Q("div",Object.assign({ref:r,style:h,onClick:m=>{var d;m.target===m.currentTarget&&((d=t.onClick)===null||d===void 0||d.call(t,m))},className:Re(Jz(),t.className)},{children:t.children})))};return Z2("touchmove",f,{target:r}),Q(jD,Object.assign({nodeRef:r,mountOnEnter:!0,unmountOnExit:!0,in:i,timeout:l,classNames:"rv-fade"},{children:c()}))};function tU(e){const{interceptor:r,args:t,done:i,canceled:l}=e;if(r){const f=r.apply(null,t||[]);VL(f)?f.then(c=>{c?i():l&&l()}).catch(Mi):f?i():l&&l()}else i()}function iC(e){return(typeof e=="function"?e():e)||document.body}function Bg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nU(e,r){if(Bg()&&e){const t=iC(e);return tu.exports.createPortal(r,t)}return r}const rU=W.createContext({});let ID=!1;if(Bg())try{const e={};Object.defineProperty(e,"passive",{get(){ID=!0}}),window.addEventListener("test-passive",null,e)}catch{}let lh=0;const HD="rv-overflow-hidden";function aU(e,r){const t=ED(),i=c=>{t.move(c);const h=t.deltaY.current>0?"10":"01",m=dz(c.target,e.current);if(!m)return;const{scrollHeight:d,offsetHeight:g,scrollTop:C}=m;let b="11";C===0?b=g>=d?"00":"01":C+g>=d&&(b="10"),b!=="11"&&t.isVertical()&&!(parseInt(b,2)&parseInt(h,2))&&c.cancelable&&c.preventDefault()},l=()=>{document.addEventListener("touchstart",t.start),document.addEventListener("touchmove",i,ID?{passive:!1}:!1),lh||document.body.classList.add(HD),lh++},f=()=>{lh&&(document.removeEventListener("touchstart",t.start),document.removeEventListener("touchmove",i),lh--,lh||document.body.classList.remove(HD))};W.useEffect(()=>{if(r)return l(),()=>{f()}},[r])}let VD=2e3;const[Lg]=wn("popup"),sh=W.forwardRef((e,r)=>{var t;const i=ta(e,{duration:300,overlay:!0,lockScroll:!0,position:"center",closeIcon:Q(tC,{}),closeIconPosition:"top-right",closeOnClickOverlay:!0,stopPropagation:["click"],teleport:()=>document.body}),{round:l,closeable:f,title:c,description:h,children:m,duration:d,closeIcon:g,position:C}=i,b=W.useRef(!1),x=W.useRef((t=i.zIndex)!==null&&t!==void 0?t:VD),_=W.useRef(),[k,E]=W.useState(i.visible),[A,T]=W.useState(k),D=W.useMemo(()=>{const V=Object.assign({zIndex:x.current},i.style);if(ea(i.duration)){const G=i.position==="center"?"animationDuration":"transitionDuration";V[G]=`${i.duration}ms`}return V},[x.current,i.position,i.style,i.duration]),R=()=>{var V;i.zIndex!==void 0?x.current=+i.zIndex:x.current=VD++,b.current=!0,(V=i.onOpen)===null||V===void 0||V.call(i)},N=()=>{tU({interceptor:i.beforeClose,args:["close"],done:()=>{var V;b.current=!1,(V=i.onClose)===null||V===void 0||V.call(i)}})},z=V=>{var G;(G=i.onClickOverlay)===null||G===void 0||G.call(i,V),i.closeOnClickOverlay&&N()},M=()=>i.overlay?Q(eU,{visible:k,className:i.overlayClass,customStyle:i.overlayStyle,zIndex:x.current,duration:d,onClick:z}):null,I=V=>{i.onClickCloseIcon&&i.onClickCloseIcon(V),N()},Y=()=>{if(f){const{closeIconPosition:V}=i;return g?Q("div",Object.assign({className:Re(Lg("close-icon",V)),onClick:I},{children:g})):null}return null},B=()=>c?Q("div",Object.assign({className:Re(Lg("title"))},{children:c})):null,U=()=>h?Q("div",Object.assign({className:Re(Lg("description"))},{children:h})):null,P=()=>{const{safeAreaInsetBottom:V}=i;return fD(i.stopPropagation,Be("div",Object.assign({ref:_,style:Object.assign(Object.assign({},D),{display:!k&&!A?"none":void 0}),className:Re(Lg({round:l,[C]:C}),{"rv-safe-area-bottom":V},i.className),onClick:i.onClick},{children:[B(),U(),m,Y()]})))},H=()=>{const{transition:V,destroyOnClose:G,forceRender:ee}=i,ne=C==="center"?"rv-fade":`rv-popup-slide-${C}`;return Q(jD,Object.assign({in:k,nodeRef:_,timeout:d,classNames:V||ne,mountOnEnter:!ee,unmountOnExit:G,onEnter:R,onEntered:i.onOpened,onExited:()=>{var $;T(!1),($=i.onClosed)===null||$===void 0||$.call(i)}},{children:P()}))};return Z2("popstate",()=>{i.closeOnPopstate&&N()}),th(()=>{k&&T(!0)},[k]),th(()=>{E(i.visible)},[i.visible]),aU(_,k&&i.lockScroll),W.useImperativeHandle(r,()=>({popupRef:_})),nU(i.teleport,Be(rU.Provider,Object.assign({value:{visible:k}},{children:[M(),H()]})))}),LZ="",$D=W.createContext({}),[iU]=wn("action-bar"),oU=e=>{const r=ta(e,{safeAreaInsetBottom:!0}),t=W.useMemo(()=>W.Children.toArray(r.children),[r.children]);return Q($D.Provider,Object.assign({value:{parent:{children:t}}},{children:Q("div",Object.assign({className:Re(r.className,iU(),{"rv-safe-area-bottom":r.safeAreaInsetBottom}),style:r.style},{children:W.Children.toArray(r.children).filter(Boolean).map((i,l)=>W.cloneElement(i,{index:l}))}))}))},[YD]=wn("action-bar-icon"),lU=e=>{const r=()=>{const{badge:t,icon:i}=e;return i?Q(Tz,Object.assign({},t,{className:Re(YD("icon"))},{children:i})):null};return Be("div",Object.assign({role:"button",className:Re(e.className,YD()),style:e.style,tabIndex:0,onClick:e.onClick},{children:[r(),e.children||e.text]}))},[sU]=wn("action-bar-button"),uU=Object.assign(e=>{const{type:r,icon:t,text:i,color:l,loading:f,disabled:c,index:h}=e,{parent:m}=W.useContext($D),d=W.useMemo(()=>{if(m){const C=m.children[h-1];return!(C&&"isButton"in C.type)}return!1},[h,m]),g=W.useMemo(()=>{if(m){const C=m.children[h+1];return!(C&&"isButton"in C.type)}return!1},[h,m]);return Q(ih,Object.assign({className:Re(e.className,sU([r,{last:g,first:d}])),style:e.style,size:"large",type:r,icon:t,color:l,loading:f,disabled:c,onClick:e.onClick},{children:e.children?e.children:i}))},{isButton:!0}),oC=Object.assign(oU,{Icon:lU,Button:uU});function cU(e,r,t){const i=r[t];ea(i)&&(!Object.prototype.hasOwnProperty.call(e,t)||!fd(i)?e[t]=i:e[t]=qD(Object(e[t]),r[t]))}function qD(e,r){return Object.keys(r).forEach(t=>{cU(e,r,t)}),e}const fU={locale:qD({name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanPicker:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新...",loading:"加载中..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌信息"},vanAddressList:{add:"新增地址"}},{})},md=W.createContext(fU),[Co]=wn("dialog"),GD=e=>{const{locale:r}=W.useContext(md),t=ta(e,{transition:"rv-dialog-bounce",showConfirmButton:!0,closeOnPopstate:!0}),{width:i,title:l,theme:f,visible:c,message:h,className:m,messageAlign:d,closeOnClickOverlay:g,onClickCloseIcon:C}=t,b=$a(t,["width","title","theme","visible","message","className","messageAlign","closeOnClickOverlay","onClickCloseIcon"]),x=()=>t.title?Q("div",Object.assign({className:Re(Co("header",{isolated:!t.message&&!t.children}))},{children:l})):null,_=()=>t.children?Q("div",Object.assign({className:Re(Co("content"))},{children:t.children})):h?Q("div",Object.assign({className:Re(Co("content",{isolated:!l}))},{children:Q("div",Object.assign({className:Re(Co("message",{"has-title":l,[d]:d}))},{children:h}))})):null,k=()=>{var T,D,R,N,z,M;return Be("div",Object.assign({className:Re(bz,Co("footer"))},{children:[t.showCancelButton&&Q(ih,{size:"large",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),style:{color:t.cancelButtonColor},loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(ih,{size:"large",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm"),{[Cz]:t.showCancelButton}),round:f==="round-button"||void 0,style:{color:t.confirmButtonColor},loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},E=()=>{var T,D,R,N,z,M;return Be(oC,Object.assign({className:Re(Co("footer"))},{children:[t.showCancelButton&&Q(oC.Button,{type:"warning",text:t.cancelButtonText||r.cancel,className:Re(Co("cancel")),color:t.cancelButtonColor,loading:(T=t.cancelProps)===null||T===void 0?void 0:T.loading,disabled:(D=t.cancelProps)===null||D===void 0?void 0:D.disabled,onClick:!((R=t.cancelProps)===null||R===void 0)&&R.loading?Mi:t.onCancel}),t.showConfirmButton&&Q(oC.Button,{type:"danger",text:t.confirmButtonText||r.confirm,className:Re(Co("confirm")),color:t.confirmButtonColor,loading:(N=t.confirmProps)===null||N===void 0?void 0:N.loading,disabled:(z=t.confirmProps)===null||z===void 0?void 0:z.disabled,onClick:!((M=t.confirmProps)===null||M===void 0)&&M.loading?Mi:t.onConfirm})]}))},A=()=>t.footer?t.footer:t.theme==="round-button"?E():k();return Be(sh,Object.assign({},b,{visible:c,className:Re(Co([f]),m),style:{width:dl(i)},"aria-labelledby":l||h,closeOnClickOverlay:g,onClickCloseIcon:C,onClose:t.onClose,onClosed:t.onClosed},{children:[x(),_(),A()]}))};Number((W.version||"").split(".")[0]);const dU=Number((tu.exports.version||"").split(".")[0]),zg=Object.assign({},g9),{render:pU,unmountComponentAtNode:hU}=zg;let Ug;try{dU>=18&&zg.createRoot&&(Ug=zg.createRoot)}catch{}function KD(e){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:r}=zg;r&&typeof r=="object"&&(r.usingClientEntryPoint=e)}const jg="__react_vant_root__";function vU(e,r){pU(e,r)}function mU(e,r){KD(!0);const t=r[jg]||Ug(r);KD(!1),t.render(e),r[jg]=t}function WD(e,r){if(Ug){mU(e,r);return}vU(e,r)}function gU(e){return hU(e)}function yU(e){return J2(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var r;(r=e[jg])===null||r===void 0||r.unmount(),delete e[jg]})})}function QD(e){return Ug?yU(e):gU(e)}const gd=GD;gd.show=e=>{if(!Bg())return null;const r={overlay:!0,closeable:!1,closeIcon:Q(tC,{}),lockScroll:!0,transition:"rv-dialog-bounce",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1},{onClosed:t,onCancel:i=Mi,onConfirm:l=Mi,onClose:f=Mi,cancelProps:c,confirmProps:h}=e,m=$a(e,["onClosed","onCancel","onConfirm","onClose","cancelProps","confirmProps"]),d=iC(e.teleport),g=document.createElement("div");d.appendChild(g);let C=Mi;return WD(Q(()=>{const[x,_]=W.useState(!1),[k,E]=W.useState(!1),[A,T]=W.useState(!1);W.useEffect(()=>{_(!0)},[]),C=()=>{_(!1),f&&f()};const D=()=>{t&&t(),QD(g)&&g.parentNode&&g.parentNode.removeChild(g)},R=z=>J2(void 0,void 0,void 0,function*(){const M=setTimeout(()=>T(!0));(yield l(z))!==!1?(clearTimeout(M),C()):(clearTimeout(M),T(!1))}),N=(z,M)=>J2(void 0,void 0,void 0,function*(){if(M){C();return}const I=setTimeout(()=>E(!0));(yield i(z))!==!1?(clearTimeout(I),C()):(clearTimeout(I),E(!1))});return Q(GD,Object.assign({},r,m,{visible:x,teleport:()=>g,cancelProps:Object.assign({loading:k},c),confirmProps:Object.assign({loading:A},h),onClose:C,onCancel:N,onConfirm:R,onClosed:D}))},{}),g),C},gd.alert=e=>{const{onConfirm:r=Mi}=e;return new Promise(t=>{gd.show(Object.assign(Object.assign({},e),{onConfirm:i=>{r(i),t(i)}}))})},gd.confirm=e=>{const{onCancel:r=Mi,onConfirm:t=Mi}=e;return new Promise((i,l)=>{gd.show(Object.assign(Object.assign({showCancelButton:!0},e),{onCancel:f=>{r(f),l()},onConfirm:f=>{t(f),i(!0)}}))})};const xU=gd,[uh]=wn("input"),bU=W.forwardRef((e,r)=>{const t=ta(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),i=W.useRef(),[l,f]=W.useState(!1),c=W.useRef(!1),[h,m]=nh(t),{className:d,style:g,align:C,type:b,name:x,placeholder:_,disabled:k,readOnly:E,maxLength:A,autoFocus:T}=t,D=()=>{i!=null&&i.current&&i.current.focus()},R=()=>{i!=null&&i.current&&i.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{m("")},focus:D,blur:R,get nativeElement(){return i.current}}));const N=W.useMemo(()=>{if(t.clearable&&!E){const P=h!=="",H=t.clearTrigger==="always"||t.clearTrigger==="focus"&&l;return P&&H}return!1},[h,t.clearTrigger,l]),z=P=>{var H;let V=P;if(!c.current&&(ea(A)&&V.length>+A&&(V=V.slice(0,A),(H=t.onOverlimit)===null||H===void 0||H.call(t)),b==="number"||b==="digit")){const G=b==="number";V=az(V,G,G)}m(V)},M=P=>{var H;f(!0),(H=t.onFocus)===null||H===void 0||H.call(t,P),E&&R()},I=P=>{var H;f(!1),(H=t.onBlur)===null||H===void 0||H.call(t,P),hD()},Y=P=>{var H;(P.key==="Enter"||+P.charCode==13)&&(K2(P),t.type==="search"&&R()),(H=t.onKeyPress)===null||H===void 0||H.call(t,P)},B=()=>{let P=b,H;return b==="number"&&(P="text",H="decimal"),b==="digit"&&(P="tel",H="numeric"),Q("input",{value:h,type:P,inputMode:H,ref:i,name:x,className:Re(uh("control")),disabled:k,autoFocus:T,readOnly:E,placeholder:_||"",onBlur:I,onFocus:M,onChange:V=>{var G;return z((G=V==null?void 0:V.currentTarget)===null||G===void 0?void 0:G.value)},onKeyPress:Y,autoCapitalize:t.autoCapitalize,autoCorrect:t.autoCorrect,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,onCompositionStart:V=>{var G;c.current=!0,(G=t.onCompositionStart)===null||G===void 0||G.call(t,V)},onCompositionEnd:V=>{var G,ee;c.current=!1,(G=t.onCompositionEnd)===null||G===void 0||G.call(t,V),z((ee=V==null?void 0:V.currentTarget)===null||ee===void 0?void 0:ee.value)},onClick:t.onClick})},U=P=>{var H;m(""),(H=t.onClear)===null||H===void 0||H.call(t,P)};return Be("div",Object.assign({className:Re(uh([C]),d),style:g},{children:[t.prefix&&Q("div",Object.assign({className:Re(uh("prefix"))},{children:t.prefix})),B(),N&&W.cloneElement(t.clearIcon||Q(Mg,{}),{className:Re(uh("clear")),onTouchStart:U}),t.suffix&&Q("div",Object.assign({className:Re(uh("suffix"))},{children:t.suffix}))]}))}),[ch]=wn("textarea"),CU=W.forwardRef((e,r)=>{const t=ta(e,{rows:2,clearIcon:Q(Mg,{}),clearTrigger:"focus",defaultValue:""}),[i,l]=W.useState(!1),f=W.useRef(),c=W.useRef(!1),[h,m]=nh(t),{className:d,style:g,name:C,rows:b,placeholder:x,disabled:_,readOnly:k,maxLength:E,showWordLimit:A,autoFocus:T}=t,D=()=>{f!=null&&f.current&&f.current.focus()},R=()=>{f!=null&&f.current&&f.current.blur()};W.useImperativeHandle(r,()=>({clear:()=>{m("")},focus:D,blur:R,get nativeElement(){return f.current}}));const N=()=>{const H=f.current;if(!H)return;H.style.height="auto";let V=H.scrollHeight;if(fd(t.autoSize)){const{maxHeight:G,minHeight:ee}=t.autoSize;G&&(V=Math.min(V,G)),ee&&(V=Math.max(V,ee))}V&&(H.style.height=`${V}px`)};W.useEffect(()=>{N()},[h]);const z=W.useMemo(()=>ch("control",[{"min-height":!t.autoSize,clear:t.clearable}]),[t.autoSize]),M=H=>{var V;let G=H;c.current||ea(E)&&G.length>+E&&(G=G.slice(0,E),(V=t.onOverlimit)===null||V===void 0||V.call(t)),m(G)},I=H=>{var V;l(!0),(V=t.onFocus)===null||V===void 0||V.call(t,H),k&&R()},Y=H=>{var V;l(!1),(V=t.onBlur)===null||V===void 0||V.call(t,H),hD()},B=()=>{if(A){const H=(h?`${h}`:"").length;return Q("div",Object.assign({className:Re(ch("word-limit"))},{children:typeof A=="function"?A({currentCount:H,maxLength:E}):Be(nn,{children:[Q("span",Object.assign({className:Re(ch("word-num"))},{children:H})),E?`/${E}`:!1]})}))}return null},U=H=>{var V;m(""),(V=t.onClear)===null||V===void 0||V.call(t,H)},P=W.useMemo(()=>{if(t.clearable&&!k){const H=h!=="",V=t.clearTrigger==="always"||t.clearTrigger==="focus"&&i;return H&&V}return!1},[h,t.clearTrigger,i]);return Be("div",Object.assign({className:Re(ch(),d),style:g},{children:[Q("textarea",{ref:f,name:C,rows:b,className:Re(z),value:h,disabled:_,autoFocus:T,readOnly:k,placeholder:x||"",onBlur:Y,onFocus:I,onChange:H=>{var V;return M((V=H==null?void 0:H.currentTarget)===null||V===void 0?void 0:V.value)},onKeyPress:t.onKeyPress,onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,autoComplete:t.autoComplete,onCompositionStart:H=>{var V;c.current=!0,(V=t.onCompositionStart)===null||V===void 0||V.call(t,H)},onCompositionEnd:H=>{var V,G;c.current=!1,(V=t.onCompositionEnd)===null||V===void 0||V.call(t,H),M((G=H==null?void 0:H.currentTarget)===null||G===void 0?void 0:G.value)},onClick:t.onClick}),P&&W.cloneElement(t.clearIcon,{className:Re(ch("clear")),onTouchStart:U}),B()]}))}),ZZ="",XZ="",cu=Object.assign(bU,{TextArea:CU}),[Pi]=wn("field"),wU=W.forwardRef((e,r)=>{var t;const i=ta(e,{clearIcon:Q(Mg,{}),clearTrigger:"focus",formatTrigger:"onChange",defaultValue:""}),l=W.useRef(null),f=W.useRef(null),c=i.type==="textarea"?f:l,h=()=>{c.current&&c.current.focus()},m=()=>{c.current&&c.current.blur()},d=()=>{c.current&&c.current.clear()};W.useImperativeHandle(r,()=>({focus:h,blur:m,clear:d,get nativeElement(){return c.current.nativeElement}}));const g=q=>ea(i[q])?i[q]:null,C=()=>{const q=g("labelWidth");return q?{width:dl(q)}:{}},b=(q,te="onChange")=>{const{formatTrigger:oe,formatter:ae}=i;return ae&&te===oe?ae(q):q},x=q=>{var te;(te=i.onChange)===null||te===void 0||te.call(i,b(q))},_=()=>{const{value:q,defaultValue:te,align:oe,type:ae,placeholder:fe,name:ve,maxLength:xe,disabled:se,readOnly:ke,clearable:De,clearIcon:Pe,clearTrigger:ge,autoFocus:$e,onClear:Me,onBlur:et,onFocus:ut,onKeyPress:Xt,onOverlimit:Mt}=i;if(ea(i.children))return Q("div",Object.assign({className:Re(Pi("children"))},{children:i.children}));const Mn={value:q,onChange:x,placeholder:fe,name:ve,defaultValue:te,disabled:se,clearable:De,clearIcon:Pe,clearTrigger:ge,onClear:Me,onBlur:et,onFocus:ut,onKeyPress:Xt,onOverlimit:Mt,autoFocus:$e,readOnly:ke,maxLength:xe,onClick:i.onClickInput};return ae==="textarea"?Q(cu.TextArea,Object.assign({ref:f,autoSize:i.autoSize,showWordLimit:i.showWordLimit,rows:i.rows},Mn)):Q(cu,Object.assign({ref:l,type:ae,align:oe},Mn))},k=()=>{const{leftIcon:q,onClickLeftIcon:te}=i;return q?Q("div",Object.assign({className:Re(Pi("left-icon")),onClick:te},{children:q})):null},E=()=>{const{rightIcon:q,onClickRightIcon:te}=i;return q?Q("div",Object.assign({className:Re(Pi("right-icon")),onClick:te},{children:q})):null},A=()=>{const q=i.errorMessage;return q?Q("div",Object.assign({className:Re(Pi("error-message"))},{children:q})):null},T=()=>i.intro?Q("div",Object.assign({className:Re(Pi("intro"))},{children:i.intro})):null,D=()=>{const{tooltip:q}=i;if(q){let te=Q($z,{}),oe={message:q};if(!(W.isValidElement(q)||typeof q=="string")){const ae=q,{icon:fe}=ae,ve=$a(ae,["icon"]);te=fe||te,oe=ve}return Q("div",Object.assign({className:Re(Pi("tooltip")),onClick:()=>xU.show(oe)},{children:te}))}return null},R=()=>{const{label:q,colon:te}=i;return q?Be(nn,{children:[q,!!te&&":",D()]}):null},{size:N,center:z,border:M,isLink:I,required:Y,clickable:B,labelAlign:U,className:P,labelClass:H,valueClass:V,controlAlign:G,arrowDirection:ee,disabled:ne,titleStyle:$,error:X}=i,Z=(t=i.suffix)!==null&&t!==void 0?t:i.button;return Be(MD,Object.assign({title:R(),size:N,icon:k(),center:z,border:M,isLink:I,required:Y,clickable:B,extra:i.extra,titleStyle:Object.assign(Object.assign({},C()),$),valueClass:Re(Pi("value",[G]),V),titleClass:Re(Pi("label",U),H),arrowDirection:ee,onClick:i.onClick,style:i.style,className:Re(Pi({error:X,disabled:ne,[`label-${U}`]:U}),P)},{children:[Be("div",Object.assign({className:Re(Pi("body"))},{children:[i.prefix&&Q("div",Object.assign({className:Re(Pi("prefix"))},{children:i.prefix})),Q("div",Object.assign({className:Re(Pi("control-wrapper"))},{children:_()})),E(),Z&&Q("div",Object.assign({className:Re(Pi("suffix"))},{children:Z}))]})),A(),T()]}))}),_U=Symbol("field"),lC=Object.assign(wU,{[Ez]:_U});function SU(e,r,t){return Math.max(r,Math.min(e,t))}const Da={toVector(e,r){return e===void 0&&(e=r),Array.isArray(e)?e:[e,e]},add(e,r){return[e[0]+r[0],e[1]+r[1]]},sub(e,r){return[e[0]-r[0],e[1]-r[1]]},addTo(e,r){e[0]+=r[0],e[1]+=r[1]},subTo(e,r){e[0]-=r[0],e[1]-=r[1]}};function ZD(e,r,t){return r===0||Math.abs(r)===1/0?Math.pow(e,t*5):e*r*t/(r+t*e)}function XD(e,r,t,i=.15){return i===0?SU(e,r,t):e<r?-ZD(r-e,t-r,i)+r:e>t?+ZD(e-t,t-r,i)+t:e}function EU(e,[r,t],[i,l]){const[[f,c],[h,m]]=e;return[XD(r,f,c,i),XD(t,h,m,l)]}function si(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function JD(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,i)}return t}function ar(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?JD(Object(t),!0).forEach(function(i){si(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):JD(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}const ek={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 tk(e){return e?e[0].toUpperCase()+e.slice(1):""}const DU=["enter","leave"];function kU(e=!1,r){return e&&!DU.includes(r)}function TU(e,r="",t=!1){const i=ek[e],l=i&&i[r]||r;return"on"+tk(e)+tk(l)+(kU(t,l)?"Capture":"")}const AU=["gotpointercapture","lostpointercapture"];function OU(e){let r=e.substring(2).toLowerCase();const t=!!~r.indexOf("passive");t&&(r=r.replace("passive",""));const i=AU.includes(r)?"capturecapture":"capture",l=!!~r.indexOf(i);return l&&(r=r.replace("capture","")),{device:r,capture:l,passive:t}}function RU(e,r=""){const t=ek[e],i=t&&t[r]||r;return e+i}function Ig(e){return"touches"in e}function nk(e){return Ig(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function FU(e){return Array.from(e.touches).filter(r=>{var t,i;return r.target===e.currentTarget||((t=e.currentTarget)===null||t===void 0||(i=t.contains)===null||i===void 0?void 0:i.call(t,r.target))})}function NU(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function rk(e){return Ig(e)?NU(e)[0]:e}function MU(e){return FU(e).map(r=>r.identifier)}function sC(e){const r=rk(e);return Ig(e)?r.identifier:r.pointerId}function ak(e){const r=rk(e);return[r.clientX,r.clientY]}function PU(e){const r={};if("buttons"in e&&(r.buttons=e.buttons),"shiftKey"in e){const{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f}=e;Object.assign(r,{shiftKey:t,altKey:i,metaKey:l,ctrlKey:f})}return r}function Hg(e,...r){return typeof e=="function"?e(...r):e}function BU(){}function LU(...e){return e.length===0?BU:e.length===1?e[0]:function(){let r;for(const t of e)r=t.apply(this,arguments)||r;return r}}function ik(e,r){return Object.assign({},r,e||{})}const zU=32;class UU{constructor(r,t,i){this.ctrl=r,this.args=t,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(r){this.ctrl.state[this.key]=r}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:r,shared:t,ingKey:i,args:l}=this;t[i]=r._active=r.active=r._blocked=r._force=!1,r._step=[!1,!1],r.intentional=!1,r._movement=[0,0],r._distance=[0,0],r._direction=[0,0],r._delta=[0,0],r._bounds=[[-1/0,1/0],[-1/0,1/0]],r.args=l,r.axis=void 0,r.memo=void 0,r.elapsedTime=0,r.direction=[0,0],r.distance=[0,0],r.overflow=[0,0],r._movementBound=[!1,!1],r.velocity=[0,0],r.movement=[0,0],r.delta=[0,0],r.timeStamp=0}start(r){const t=this.state,i=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=r.target,t.currentTarget=r.currentTarget,t.lastOffset=i.from?Hg(i.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=r.timeStamp}computeValues(r){const t=this.state;t._values=r,t.values=this.config.transform(r)}computeInitial(){const r=this.state;r._initial=r._values,r.initial=r.values}compute(r){const{state:t,config:i,shared:l}=this;t.args=this.args;let f=0;if(r&&(t.event=r,i.preventDefault&&r.cancelable&&t.event.preventDefault(),t.type=r.type,l.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,l.locked=!!document.pointerLockElement,Object.assign(l,PU(r)),l.down=l.pressed=l.buttons%2===1||l.touches>0,f=r.timeStamp-t.timeStamp,t.timeStamp=r.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const z=t._delta.map(Math.abs);Da.addTo(t._distance,z)}this.axisIntent&&this.axisIntent(r);const[c,h]=t._movement,[m,d]=i.threshold,{_step:g,values:C}=t;if(i.hasCustomTransform?(g[0]===!1&&(g[0]=Math.abs(c)>=m&&C[0]),g[1]===!1&&(g[1]=Math.abs(h)>=d&&C[1])):(g[0]===!1&&(g[0]=Math.abs(c)>=m&&Math.sign(c)*m),g[1]===!1&&(g[1]=Math.abs(h)>=d&&Math.sign(h)*d)),t.intentional=g[0]!==!1||g[1]!==!1,!t.intentional)return;const b=[0,0];if(i.hasCustomTransform){const[z,M]=C;b[0]=g[0]!==!1?z-g[0]:0,b[1]=g[1]!==!1?M-g[1]:0}else b[0]=g[0]!==!1?c-g[0]:0,b[1]=g[1]!==!1?h-g[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(b);const x=t.offset,_=t._active&&!t._blocked||t.active;_&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=l[this.ingKey]=t._active,r&&(t.first&&("bounds"in i&&(t._bounds=Hg(i.bounds,t)),this.setup&&this.setup()),t.movement=b,this.computeOffset()));const[k,E]=t.offset,[[A,T],[D,R]]=t._bounds;t.overflow=[k<A?-1:k>T?1:0,E<D?-1:E>R?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 N=t._active?i.rubberband||[0,0]:[0,0];if(t.offset=EU(t._bounds,t.offset,N),t.delta=Da.sub(t.offset,x),this.computeMovement(),_&&(!t.last||f>zU)){t.delta=Da.sub(t.offset,x);const z=t.delta.map(Math.abs);Da.addTo(t.distance,z),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&f>0&&(t.velocity=[z[0]/f,z[1]/f])}}emit(){const r=this.state,t=this.shared,i=this.config;if(r._active||this.clean(),(r._blocked||!r.intentional)&&!r._force&&!i.triggerAllEvents)return;const l=this.handler(ar(ar(ar({},t),r),{},{[this.aliasKey]:r.values}));l!==void 0&&(r.memo=l)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function jU([e,r],t){const i=Math.abs(e),l=Math.abs(r);if(i>l&&i>t)return"x";if(l>i&&l>t)return"y"}class IU extends UU{constructor(...r){super(...r),si(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=Da.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Da.sub(this.state.offset,this.state.lastOffset)}axisIntent(r){const t=this.state,i=this.config;if(!t.axis&&r){const l=typeof i.axisThreshold=="object"?i.axisThreshold[nk(r)]:i.axisThreshold;t.axis=jU(t._movement,l)}t._blocked=(i.lockDirection||!!i.axis)&&!t.axis||!!i.axis&&i.axis!==t.axis}restrictToAxis(r){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":r[1]=0;break;case"y":r[0]=0;break}}}const ok=e=>e,lk=.15,uC={enabled(e=!0){return e},eventOptions(e,r,t){return ar(ar({},t.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[lk,lk];case!1:return[0,0];default:return Da.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Da.toVector(e)},transform(e,r,t){const i=e||t.shared.transform;if(this.hasCustomTransform=!!i,process.env.NODE_ENV==="development"){const l=i||ok;return f=>{const c=l(f);return!isFinite(c[0])||isFinite(c[1]),c}}return i||ok},threshold(e){return Da.toVector(e,0)}};process.env.NODE_ENV==="development"&&Object.assign(uC,{domTarget(e){if(e!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(e){if(e!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(e){if(e!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const HU=0,fh=ar(ar({},uC),{},{axis(e,r,{axis:t}){if(this.lockDirection=t==="lock",!this.lockDirection)return t},axisThreshold(e=HU){return e},bounds(e={}){if(typeof e=="function")return f=>fh.bounds(e(f));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:r=-1/0,right:t=1/0,top:i=-1/0,bottom:l=1/0}=e;return[[r,t],[i,l]]}}),Vg=10,sk={ArrowRight:(e=1)=>[Vg*e,0],ArrowLeft:(e=1)=>[-Vg*e,0],ArrowUp:(e=1)=>[0,-Vg*e],ArrowDown:(e=1)=>[0,Vg*e]};class VU extends IU{constructor(...r){super(...r),si(this,"ingKey","dragging")}reset(){super.reset();const r=this.state;r._pointerId=void 0,r._pointerActive=!1,r._keyboardActive=!1,r._preventScroll=!1,r._delayed=!1,r.swipe=[0,0],r.tap=!1,r.canceled=!1,r.cancel=this.cancel.bind(this)}setup(){const r=this.state;if(r._bounds instanceof HTMLElement){const t=r._bounds.getBoundingClientRect(),i=r.currentTarget.getBoundingClientRect(),l={left:t.left-i.left+r.offset[0],right:t.right-i.right+r.offset[0],top:t.top-i.top+r.offset[1],bottom:t.bottom-i.bottom+r.offset[1]};r._bounds=fh.bounds(l)}}cancel(){const r=this.state;r.canceled||(r.canceled=!0,r._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(r){const t=this.config,i=this.state;if(r.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(r.buttons):t.pointerButtons!==-1&&t.pointerButtons!==r.buttons))return;const l=this.ctrl.setEventIds(r);t.pointerCapture&&r.target.setPointerCapture(r.pointerId),!(l&&l.size>1&&i._pointerActive)&&(this.start(r),this.setupPointer(r),i._pointerId=sC(r),i._pointerActive=!0,this.computeValues(ak(r)),this.computeInitial(),t.preventScrollAxis&&nk(r)!=="mouse"?(i._active=!1,this.setupScrollPrevention(r)):t.delay>0?(this.setupDelayTrigger(r),t.triggerAllEvents&&(this.compute(r),this.emit())):this.startPointerDrag(r))}startPointerDrag(r){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(r),this.emit()}pointerMove(r){const t=this.state,i=this.config;if(!t._pointerActive||t.type===r.type&&r.timeStamp===t.timeStamp)return;const l=sC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;const f=ak(r);if(document.pointerLockElement===r.target?t._delta=[r.movementX,r.movementY]:(t._delta=Da.sub(f,t._values),this.computeValues(f)),Da.addTo(t._movement,t._delta),this.compute(r),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(r);return}if(i.preventScrollAxis&&!t._preventScroll)if(t.axis)if(t.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){t._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(r);return}else return;this.emit()}pointerUp(r){this.ctrl.setEventIds(r);try{this.config.pointerCapture&&r.target.hasPointerCapture(r.pointerId)&&r.target.releasePointerCapture(r.pointerId)}catch{process.env.NODE_ENV}const t=this.state,i=this.config;if(!t._active||!t._pointerActive)return;const l=sC(r);if(t._pointerId!==void 0&&l!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(r);const[f,c]=t._distance;if(t.tap=f<=i.tapsThreshold&&c<=i.tapsThreshold,t.tap&&i.filterTaps)t._force=!0;else{const[h,m]=t.direction,[d,g]=t.velocity,[C,b]=t.movement,[x,_]=i.swipe.velocity,[k,E]=i.swipe.distance,A=i.swipe.duration;t.elapsedTime<A&&(Math.abs(d)>x&&Math.abs(C)>k&&(t.swipe[0]=h),Math.abs(g)>_&&Math.abs(b)>E&&(t.swipe[1]=m))}this.emit()}pointerClick(r){this.state.tap||(r.preventDefault(),r.stopPropagation())}setupPointer(r){const t=this.config,i=t.device;if(process.env.NODE_ENV==="development")try{if(i==="pointer"&&t.preventScrollDelay===void 0){const l="uv"in r?r.sourceEvent.currentTarget:r.currentTarget;window.getComputedStyle(l).touchAction}}catch{}t.pointerLock&&r.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(r){this.state._preventScroll&&r.cancelable&&r.preventDefault()}setupScrollPrevention(r){this.state._preventScroll=!1,$U(r);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,r)}setupDelayTrigger(r){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(r)},this.config.delay)}keyDown(r){const t=sk[r.key];if(t){const i=this.state,l=r.shiftKey?10:r.altKey?.1:1;this.start(r),i._delta=t(l),i._keyboardActive=!0,Da.addTo(i._movement,i._delta),this.compute(r),this.emit()}}keyUp(r){r.key in sk&&(this.state._keyboardActive=!1,this.setActive(),this.compute(r),this.emit())}bind(r){const t=this.config.device;r(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(r(t,"change",this.pointerMove.bind(this)),r(t,"end",this.pointerUp.bind(this)),r(t,"cancel",this.pointerUp.bind(this)),r("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(r("key","down",this.keyDown.bind(this)),r("key","up",this.keyUp.bind(this))),this.config.filterTaps&&r("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function $U(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const dh=typeof window<"u"&&window.document&&window.document.createElement;function YU(){return dh&&"ontouchstart"in window}function uk(){return YU()||dh&&window.navigator.maxTouchPoints>1}function qU(){return dh&&"onpointerdown"in window}function GU(){return dh&&"exitPointerLock"in window.document}function KU(){try{return"constructor"in GestureEvent}catch{return!1}}const eo={isBrowser:dh,gesture:KU(),touch:uk(),touchscreen:uk(),pointer:qU(),pointerLock:GU()},WU=250,QU=180,ZU=.5,XU=50,JU=250,ck={mouse:0,touch:0,pen:8},fk=ar(ar({},fh),{},{device(e,r,{pointer:{touch:t=!1,lock:i=!1,mouse:l=!1}={}}){return this.pointerLock=i&&eo.pointerLock,eo.touch&&t?"touch":this.pointerLock?"mouse":eo.pointer&&!l?"pointer":eo.touch?"touch":"mouse"},preventScrollAxis(e,r,{preventScroll:t}){if(this.preventScrollDelay=typeof t=="number"?t:t||t===void 0&&e?WU:void 0,!(!eo.touchscreen||t===!1))return e||(t!==void 0?"y":void 0)},pointerCapture(e,r,{pointer:{capture:t=!0,buttons:i=1}={}}){return this.pointerButtons=i,!this.pointerLock&&this.device==="pointer"&&t},keys(e=!0){return e},threshold(e,r,{filterTaps:t=!1,tapsThreshold:i=3,axis:l=void 0}){const f=Da.toVector(e,t?i:l?1:0);return this.filterTaps=t,this.tapsThreshold=i,f},swipe({velocity:e=ZU,distance:r=XU,duration:t=JU}={}){return{velocity:this.transform(Da.toVector(e)),distance:this.transform(Da.toVector(r)),duration:t}},delay(e=0){switch(e){case!0:return QU;case!1:return 0;default:return e}},axisThreshold(e){return e?ar(ar({},ck),e):ck}});process.env.NODE_ENV==="development"&&Object.assign(fk,{useTouch(e){if(e!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(e){if(e!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(e){if(e!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}}),ar(ar({},uC),{},{device(e,r,{shared:t,pointer:{touch:i=!1}={}}){if(t.target&&!eo.touch&&eo.gesture)return"gesture";if(eo.touch&&i)return"touch";if(eo.touchscreen){if(eo.pointer)return"pointer";if(eo.touch)return"touch"}},bounds(e,r,{scaleBounds:t={},angleBounds:i={}}){const l=c=>{const h=ik(Hg(t,c),{min:-1/0,max:1/0});return[h.min,h.max]},f=c=>{const h=ik(Hg(i,c),{min:-1/0,max:1/0});return[h.min,h.max]};return typeof t!="function"&&typeof i!="function"?[l(),f()]:c=>[l(c),f(c)]},threshold(e,r,t){return this.lockDirection=t.axis==="lock",Da.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e}}),ar(ar({},fh),{},{mouseOnly:(e=!0)=>e}),ar(ar({},fh),{},{mouseOnly:(e=!0)=>e});const dk=new Map,cC=new Map;function ej(e){dk.set(e.key,e.engine),cC.set(e.key,e.resolver)}const tj={key:"drag",engine:VU,resolver:fk};function nj(e,r){if(e==null)return{};var t={},i=Object.keys(e),l,f;for(f=0;f<i.length;f++)l=i[f],!(r.indexOf(l)>=0)&&(t[l]=e[l]);return t}function rj(e,r){if(e==null)return{};var t=nj(e,r),i,l;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(e);for(l=0;l<f.length;l++)i=f[l],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}const aj={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=eo.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:r=!1}={}){return{passive:e,capture:r}},transform(e){return e}},ij=["target","eventOptions","window","enabled","transform"];function $g(e={},r){const t={};for(const[i,l]of Object.entries(r))switch(typeof l){case"function":if(process.env.NODE_ENV==="development"){const f=l.call(t,e[i],i,e);Number.isNaN(f)||(t[i]=f)}else t[i]=l.call(t,e[i],i,e);break;case"object":t[i]=$g(e[i],l);break;case"boolean":l&&(t[i]=e[i]);break}return t}function oj(e,r){const t=e,{target:i,eventOptions:l,window:f,enabled:c,transform:h}=t,m=rj(t,ij),d={shared:$g({target:i,eventOptions:l,window:f,enabled:c,transform:h},aj)};if(r){const g=cC.get(r);d[r]=$g(ar({shared:d.shared},m),g)}else for(const g in m){const C=cC.get(g);if(C)d[g]=$g(ar({shared:d.shared},m[g]),C);else if(process.env.NODE_ENV==="development"&&!["drag","pinch","scroll","wheel","move","hover"].includes(g)&&g==="domTarget")throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.")}return d}class pk{constructor(r,t){si(this,"_listeners",new Set),this._ctrl=r,this._gestureKey=t}add(r,t,i,l,f){const c=this._listeners,h=RU(t,i),m=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},d=ar(ar({},m),f);r.addEventListener(h,l,d);const g=()=>{r.removeEventListener(h,l,d),c.delete(g)};return c.add(g),g}clean(){this._listeners.forEach(r=>r()),this._listeners.clear()}}class lj{constructor(){si(this,"_timeouts",new Map)}add(r,t,i=140,...l){this.remove(r),this._timeouts.set(r,window.setTimeout(t,i,...l))}remove(r){const t=this._timeouts.get(r);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(r=>void window.clearTimeout(r)),this._timeouts.clear()}}let sj=class{constructor(r){si(this,"gestures",new Set),si(this,"_targetEventStore",new pk(this)),si(this,"gestureEventStores",{}),si(this,"gestureTimeoutStores",{}),si(this,"handlers",{}),si(this,"config",{}),si(this,"pointerIds",new Set),si(this,"touchIds",new Set),si(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),uj(this,r)}setEventIds(r){if(Ig(r))return this.touchIds=new Set(MU(r)),this.touchIds;if("pointerId"in r)return r.type==="pointerup"||r.type==="pointercancel"?this.pointerIds.delete(r.pointerId):r.type==="pointerdown"&&this.pointerIds.add(r.pointerId),this.pointerIds}applyHandlers(r,t){this.handlers=r,this.nativeHandlers=t}applyConfig(r,t){this.config=oj(r,t)}clean(){this._targetEventStore.clean();for(const r of this.gestures)this.gestureEventStores[r].clean(),this.gestureTimeoutStores[r].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...r){const t=this.config.shared,i={};let l;if(!(t.target&&(l=t.target(),!l))){if(t.enabled){for(const c of this.gestures){const h=this.config[c],m=hk(i,h.eventOptions,!!l);if(h.enabled){const d=dk.get(c);new d(this,r,c).bind(m)}}const f=hk(i,t.eventOptions,!!l);for(const c in this.nativeHandlers)f(c,"",h=>this.nativeHandlers[c](ar(ar({},this.state.shared),{},{event:h,args:r})),void 0,!0)}for(const f in i)i[f]=LU(...i[f]);if(!l)return i;for(const f in i){const{device:c,capture:h,passive:m}=OU(f);this._targetEventStore.add(l,c,"",i[f],{capture:h,passive:m})}}}};function yd(e,r){e.gestures.add(r),e.gestureEventStores[r]=new pk(e,r),e.gestureTimeoutStores[r]=new lj}function uj(e,r){r.drag&&yd(e,"drag"),r.wheel&&yd(e,"wheel"),r.scroll&&yd(e,"scroll"),r.move&&yd(e,"move"),r.pinch&&yd(e,"pinch"),r.hover&&yd(e,"hover")}const hk=(e,r,t)=>(i,l,f,c={},h=!1)=>{var m,d;const g=(m=c.capture)!==null&&m!==void 0?m:r.capture,C=(d=c.passive)!==null&&d!==void 0?d:r.passive;let b=h?i:TU(i,l,g);t&&C&&(b+="Passive"),e[b]=e[b]||[],e[b].push(f)};function cj(e,r={},t,i){const l=W.useMemo(()=>new sj(e),[]);if(l.applyHandlers(e,i),l.applyConfig(r,t),W.useEffect(l.effect.bind(l)),W.useEffect(()=>l.clean.bind(l),[]),r.target===void 0)return l.bind.bind(l)}function fj(e,r){return ej(tj),cj({drag:e},r||{},"drag")}var fC=hh(),Nt=e=>ph(e,fC),dC=hh();Nt.write=e=>ph(e,dC);var Yg=hh();Nt.onStart=e=>ph(e,Yg);var pC=hh();Nt.onFrame=e=>ph(e,pC);var hC=hh();Nt.onFinish=e=>ph(e,hC);var xd=[];Nt.setTimeout=(e,r)=>{const t=Nt.now()+r,i=()=>{const f=xd.findIndex(c=>c.cancel==i);~f&&xd.splice(f,1),du-=~f?1:0},l={time:t,handler:e,cancel:i};return xd.splice(vk(t),0,l),du+=1,mk(),l};var vk=e=>~(~xd.findIndex(r=>r.time>e)||~xd.length);Nt.cancel=e=>{Yg.delete(e),pC.delete(e),hC.delete(e),fC.delete(e),dC.delete(e)},Nt.sync=e=>{mC=!0,Nt.batchedUpdates(e),mC=!1},Nt.throttle=e=>{let r;function t(){try{e(...r)}finally{r=null}}function i(...l){r=l,Nt.onStart(t)}return i.handler=e,i.cancel=()=>{Yg.delete(t),r=null},i};var vC=typeof window<"u"?window.requestAnimationFrame:()=>{};Nt.use=e=>vC=e,Nt.now=typeof performance<"u"?()=>performance.now():Date.now,Nt.batchedUpdates=e=>e(),Nt.catch=console.error,Nt.frameLoop="always",Nt.advance=()=>{Nt.frameLoop!=="demand"||yk()};var fu=-1,du=0,mC=!1;function ph(e,r){mC?(r.delete(e),e(0)):(r.add(e),mk())}function mk(){fu<0&&(fu=0,Nt.frameLoop!=="demand"&&vC(gk))}function dj(){fu=-1}function gk(){~fu&&(vC(gk),Nt.batchedUpdates(yk))}function yk(){const e=fu;fu=Nt.now();const r=vk(fu);if(r&&(xk(xd.splice(0,r),t=>t.handler()),du-=r),!du){dj();return}Yg.flush(),fC.flush(e?Math.min(64,fu-e):16.667),pC.flush(),dC.flush(),hC.flush()}function hh(){let e=new Set,r=e;return{add(t){du+=r==e&&!e.has(t)?1:0,e.add(t)},delete(t){return du-=r==e&&e.has(t)?1:0,e.delete(t)},flush(t){r.size&&(e=new Set,du-=r.size,xk(r,i=>i(t)&&e.add(i)),du+=e.size,r=e)}}}function xk(e,r){e.forEach(t=>{try{r(t)}catch(i){Nt.catch(i)}})}var pj=Object.defineProperty,hj=(e,r)=>{for(var t in r)pj(e,t,{get:r[t],enumerable:!0})},wo={};hj(wo,{assign:()=>mj,colors:()=>pu,createStringInterpolator:()=>xC,skipAnimation:()=>Ck,to:()=>bk,willAdvance:()=>bC});function gC(){}var vj=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),Ge={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 us(e,r){if(Ge.arr(e)){if(!Ge.arr(r)||e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}return e===r}var Qt=(e,r)=>e.forEach(r);function hl(e,r,t){if(Ge.arr(e)){for(let i=0;i<e.length;i++)r.call(t,e[i],`${i}`);return}for(const i in e)e.hasOwnProperty(i)&&r.call(t,e[i],i)}var Bi=e=>Ge.und(e)?[]:Ge.arr(e)?e:[e];function vh(e,r){if(e.size){const t=Array.from(e);e.clear(),Qt(t,r)}}var mh=(e,...r)=>vh(e,t=>t(...r)),yC=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),xC,bk,pu=null,Ck=!1,bC=gC,mj=e=>{e.to&&(bk=e.to),e.now&&(Nt.now=e.now),e.colors!==void 0&&(pu=e.colors),e.skipAnimation!=null&&(Ck=e.skipAnimation),e.createStringInterpolator&&(xC=e.createStringInterpolator),e.requestAnimationFrame&&Nt.use(e.requestAnimationFrame),e.batchedUpdates&&(Nt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(bC=e.willAdvance),e.frameLoop&&(Nt.frameLoop=e.frameLoop)},gh=new Set,to=[],CC=[],qg=0,Gg={get idle(){return!gh.size&&!to.length},start(e){qg>e.priority?(gh.add(e),Nt.onStart(gj)):(wk(e),Nt(wC))},advance:wC,sort(e){if(qg)Nt.onFrame(()=>Gg.sort(e));else{const r=to.indexOf(e);~r&&(to.splice(r,1),_k(e))}},clear(){to=[],gh.clear()}};function gj(){gh.forEach(wk),gh.clear(),Nt(wC)}function wk(e){to.includes(e)||_k(e)}function _k(e){to.splice(yj(to,r=>r.priority>e.priority),0,e)}function wC(e){const r=CC;for(let t=0;t<to.length;t++){const i=to[t];qg=i.priority,i.idle||(bC(i),i.advance(e),i.idle||r.push(i))}return qg=0,CC=to,CC.length=0,to=r,to.length>0}function yj(e,r){const t=e.findIndex(r);return t<0?e.length:t}var xj=(e,r,t)=>Math.min(Math.max(t,e),r),bj={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},_o="[-+]?\\d*\\.?\\d+",Kg=_o+"%";function Wg(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Cj=new RegExp("rgb"+Wg(_o,_o,_o)),wj=new RegExp("rgba"+Wg(_o,_o,_o,_o)),_j=new RegExp("hsl"+Wg(_o,Kg,Kg)),Sj=new RegExp("hsla"+Wg(_o,Kg,Kg,_o)),Ej=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,kj=/^#([0-9a-fA-F]{6})$/,Tj=/^#([0-9a-fA-F]{8})$/;function Aj(e){let r;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(r=kj.exec(e))?parseInt(r[1]+"ff",16)>>>0:pu&&pu[e]!==void 0?pu[e]:(r=Cj.exec(e))?(bd(r[1])<<24|bd(r[2])<<16|bd(r[3])<<8|255)>>>0:(r=wj.exec(e))?(bd(r[1])<<24|bd(r[2])<<16|bd(r[3])<<8|Dk(r[4]))>>>0:(r=Ej.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=Tj.exec(e))?parseInt(r[1],16)>>>0:(r=Dj.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=_j.exec(e))?(Sk(Ek(r[1]),Qg(r[2]),Qg(r[3]))|255)>>>0:(r=Sj.exec(e))?(Sk(Ek(r[1]),Qg(r[2]),Qg(r[3]))|Dk(r[4]))>>>0:null}function _C(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(r-e)*6*t:t<1/2?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function Sk(e,r,t){const i=t<.5?t*(1+r):t+r-t*r,l=2*t-i,f=_C(l,i,e+1/3),c=_C(l,i,e),h=_C(l,i,e-1/3);return Math.round(f*255)<<24|Math.round(c*255)<<16|Math.round(h*255)<<8}function bd(e){const r=parseInt(e,10);return r<0?0:r>255?255:r}function Ek(e){return(parseFloat(e)%360+360)%360/360}function Dk(e){const r=parseFloat(e);return r<0?0:r>1?255:Math.round(r*255)}function Qg(e){const r=parseFloat(e);return r<0?0:r>100?1:r/100}function kk(e){let r=Aj(e);if(r===null)return e;r=r||0;const t=(r&4278190080)>>>24,i=(r&16711680)>>>16,l=(r&65280)>>>8,f=(r&255)/255;return`rgba(${t}, ${i}, ${l}, ${f})`}var yh=(e,r,t)=>{if(Ge.fun(e))return e;if(Ge.arr(e))return yh({range:e,output:r,extrapolate:t});if(Ge.str(e.output[0]))return xC(e);const i=e,l=i.output,f=i.range||[0,1],c=i.extrapolateLeft||i.extrapolate||"extend",h=i.extrapolateRight||i.extrapolate||"extend",m=i.easing||(d=>d);return d=>{const g=Rj(d,f);return Oj(d,f[g],f[g+1],l[g],l[g+1],m,c,h,i.map)}};function Oj(e,r,t,i,l,f,c,h,m){let d=m?m(e):e;if(d<r){if(c==="identity")return d;c==="clamp"&&(d=r)}if(d>t){if(h==="identity")return d;h==="clamp"&&(d=t)}return i===l?i:r===t?e<=r?i:l:(r===-1/0?d=-d:t===1/0?d=d-r:d=(d-r)/(t-r),d=f(d),i===-1/0?d=-d:l===1/0?d=d+i:d=d*(l-i)+i,d)}function Rj(e,r){for(var t=1;t<r.length-1&&!(r[t]>=e);++t);return t-1}var Fj=(e,r="end")=>t=>{t=r==="end"?Math.min(t,.999):Math.max(t,.001);const i=t*e,l=r==="end"?Math.floor(i):Math.ceil(i);return xj(0,1,l/e)},Zg=1.70158,Xg=Zg*1.525,Tk=Zg+1,Ak=2*Math.PI/3,Ok=2*Math.PI/4.5,Jg=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,Nj={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=>Tk*e*e*e-Zg*e*e,easeOutBack:e=>1+Tk*Math.pow(e-1,3)+Zg*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Xg+1)*2*e-Xg)/2:(Math.pow(2*e-2,2)*((Xg+1)*(e*2-2)+Xg)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*Ak),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*Ak)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ok))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ok)/2+1,easeInBounce:e=>1-Jg(1-e),easeOutBounce:Jg,easeInOutBounce:e=>e<.5?(1-Jg(1-2*e))/2:(1+Jg(2*e-1))/2,steps:Fj},xh=Symbol.for("FluidValue.get"),Cd=Symbol.for("FluidValue.observers"),no=e=>Boolean(e&&e[xh]),ui=e=>e&&e[xh]?e[xh]():e,Rk=e=>e[Cd]||null;function Mj(e,r){e.eventObserved?e.eventObserved(r):e(r)}function bh(e,r){const t=e[Cd];t&&t.forEach(i=>{Mj(i,r)})}var Fk=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Pj(this,e)}},Pj=(e,r)=>Nk(e,xh,r);function wd(e,r){if(e[xh]){let t=e[Cd];t||Nk(e,Cd,t=new Set),t.has(r)||(t.add(r),e.observerAdded&&e.observerAdded(t.size,r))}return r}function Ch(e,r){const t=e[Cd];if(t&&t.has(r)){const i=t.size-1;i?t.delete(r):e[Cd]=null,e.observerRemoved&&e.observerRemoved(i,r)}}var Nk=(e,r,t)=>Object.defineProperty(e,r,{value:t,writable:!0,configurable:!0}),ey=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Bj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Mk=new RegExp(`(${ey.source})(%|[a-z]+)`,"i"),Lj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ty=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Pk=e=>{const[r,t]=zj(e);if(!r||yC())return e;const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(i)return i.trim();if(t&&t.startsWith("--")){const l=window.getComputedStyle(document.documentElement).getPropertyValue(t);return l||e}else{if(t&&ty.test(t))return Pk(t);if(t)return t}return e},zj=e=>{const r=ty.exec(e);if(!r)return[,];const[,t,i]=r;return[t,i]},SC,Uj=(e,r,t,i,l)=>`rgba(${Math.round(r)}, ${Math.round(t)}, ${Math.round(i)}, ${l})`,Bk=e=>{SC||(SC=pu?new RegExp(`(${Object.keys(pu).join("|")})(?!\\w)`,"g"):/^\b$/);const r=e.output.map(f=>ui(f).replace(ty,Pk).replace(Bj,kk).replace(SC,kk)),t=r.map(f=>f.match(ey).map(Number)),l=t[0].map((f,c)=>t.map(h=>{if(!(c in h))throw Error('The arity of each "output" value must be equal');return h[c]})).map(f=>yh({...e,output:f}));return f=>{var m;const c=!Mk.test(r[0])&&((m=r.find(d=>Mk.test(d)))==null?void 0:m.replace(ey,""));let h=0;return r[0].replace(ey,()=>`${l[h++](f)}${c||""}`).replace(Lj,Uj)}},EC="react-spring: ",Lk=e=>{const r=e;let t=!1;if(typeof r!="function")throw new TypeError(`${EC}once requires a function parameter`);return(...i)=>{t||(r(...i),t=!0)}},jj=Lk(console.warn);function Ij(){jj(`${EC}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Hj=Lk(console.warn);function Vj(){Hj(`${EC}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 ny(e){return Ge.str(e)&&(e[0]=="#"||/\d/.test(e)||!yC()&&ty.test(e)||e in(pu||{}))}var DC=yC()?W.useEffect:W.useLayoutEffect,$j=()=>{const e=W.useRef(!1);return DC(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function zk(){const e=W.useState()[1],r=$j();return()=>{r.current&&e(Math.random())}}function Yj(e,r){const[t]=W.useState(()=>({inputs:r,result:e()})),i=W.useRef(),l=i.current;let f=l;return f?Boolean(r&&f.inputs&&qj(r,f.inputs))||(f={inputs:r,result:e()}):f=t,W.useEffect(()=>{i.current=f,l==t&&(t.inputs=t.result=void 0)},[f]),f.result}function qj(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Uk=e=>W.useEffect(e,Gj),Gj=[];function jk(e){const r=W.useRef();return W.useEffect(()=>{r.current=e}),r.current}var wh=Symbol.for("Animated:node"),Kj=e=>!!e&&e[wh]===e,vl=e=>e&&e[wh],kC=(e,r)=>vj(e,wh,r),ry=e=>e&&e[wh]&&e[wh].getPayload(),Ik=class{constructor(){kC(this,this)}getPayload(){return this.payload||[]}},_h=class extends Ik{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new _h(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,r){return Ge.num(e)&&(this.lastPosition=e,r&&(e=Math.round(e/r)*r,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Sh=class extends _h{constructor(e){super(0),this._string=null,this._toString=yh({output:[e,e]})}static create(e){return new Sh(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(Ge.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=yh({output:[this.getValue(),e]})),this._value=0,super.reset()}},ay={dependencies:null},iy=class extends Ik{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const r={};return hl(this.source,(t,i)=>{Kj(t)?r[i]=t.getValue(e):no(t)?r[i]=ui(t):e||(r[i]=t)}),r}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Qt(this.payload,e=>e.reset())}_makePayload(e){if(e){const r=new Set;return hl(e,this._addToPayload,r),Array.from(r)}}_addToPayload(e){ay.dependencies&&no(e)&&ay.dependencies.add(e);const r=ry(e);r&&Qt(r,t=>this.add(t))}},Hk=class extends iy{constructor(e){super(e)}static create(e){return new Hk(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const r=this.getPayload();return e.length==r.length?r.map((t,i)=>t.setValue(e[i])).some(Boolean):(super.setValue(e.map(Wj)),!0)}};function Wj(e){return(ny(e)?Sh:_h).create(e)}function TC(e){const r=vl(e);return r?r.constructor:Ge.arr(e)?Hk:ny(e)?Sh:_h}var Vk=(e,r)=>{const t=!Ge.fun(e)||e.prototype&&e.prototype.isReactComponent;return W.forwardRef((i,l)=>{const f=W.useRef(null),c=t&&W.useCallback(_=>{f.current=Xj(l,_)},[l]),[h,m]=Zj(i,r),d=zk(),g=()=>{const _=f.current;if(t&&!_)return;(_?r.applyAnimatedValues(_,h.getValue(!0)):!1)===!1&&d()},C=new Qj(g,m),b=W.useRef();DC(()=>(b.current=C,Qt(m,_=>wd(_,C)),()=>{b.current&&(Qt(b.current.deps,_=>Ch(_,b.current)),Nt.cancel(b.current.update))})),W.useEffect(g,[]),Uk(()=>()=>{const _=b.current;Qt(_.deps,k=>Ch(k,_))});const x=r.getComponentProps(h.getValue());return Ne.createElement(e,{...x,ref:c})})},Qj=class{constructor(e,r){this.update=e,this.deps=r}eventObserved(e){e.type=="change"&&Nt.write(this.update)}};function Zj(e,r){const t=new Set;return ay.dependencies=t,e.style&&(e={...e,style:r.createAnimatedStyle(e.style)}),e=new iy(e),ay.dependencies=null,[e,t]}function Xj(e,r){return e&&(Ge.fun(e)?e(r):e.current=r),r}var $k=Symbol.for("AnimatedComponent"),Jj=(e,{applyAnimatedValues:r=()=>!1,createAnimatedStyle:t=l=>new iy(l),getComponentProps:i=l=>l}={})=>{const l={applyAnimatedValues:r,createAnimatedStyle:t,getComponentProps:i},f=c=>{const h=Yk(c)||"Anonymous";return Ge.str(c)?c=f[c]||(f[c]=Vk(c,l)):c=c[$k]||(c[$k]=Vk(c,l)),c.displayName=`Animated(${h})`,c};return hl(e,(c,h)=>{Ge.arr(e)&&(h=Yk(c)),f[h]=f(c)}),{animated:f}},Yk=e=>Ge.str(e)?e:e&&Ge.str(e.displayName)?e.displayName:Ge.fun(e)&&e.name||null;function Mc(e,...r){return Ge.fun(e)?e(...r):e}var Eh=(e,r)=>e===!0||!!(r&&e&&(Ge.fun(e)?e(r):Bi(e).includes(r))),qk=(e,r)=>Ge.obj(e)?r&&e[r]:e,Gk=(e,r)=>e.default===!0?e[r]:e.default?e.default[r]:void 0,eI=e=>e,AC=(e,r=eI)=>{let t=tI;e.default&&e.default!==!0&&(e=e.default,t=Object.keys(e));const i={};for(const l of t){const f=r(e[l],l);Ge.und(f)||(i[l]=f)}return i},tI=["config","onProps","onStart","onChange","onPause","onResume","onRest"],nI={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 rI(e){const r={};let t=0;if(hl(e,(i,l)=>{nI[l]||(r[l]=i,t++)}),t)return r}function Kk(e){const r=rI(e);if(r){const t={to:r};return hl(e,(i,l)=>l in r||(t[l]=i)),t}return{...e}}function Dh(e){return e=ui(e),Ge.arr(e)?e.map(Dh):ny(e)?wo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function aI(e){for(const r in e)return!0;return!1}function OC(e){return Ge.fun(e)||Ge.arr(e)&&Ge.obj(e[0])}function iI(e,r){var t;(t=e.ref)==null||t.delete(e),r==null||r.delete(e)}function oI(e,r){var t;r&&e.ref!==r&&((t=e.ref)==null||t.delete(e),r.add(e),e.ref=r)}var lI={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}},RC={...lI.default,mass:1,damping:1,easing:Nj.linear,clamp:!1},sI=class{constructor(){this.velocity=0,Object.assign(this,RC)}};function uI(e,r,t){t&&(t={...t},Wk(t,r),r={...t,...r}),Wk(e,r),Object.assign(e,r);for(const c in RC)e[c]==null&&(e[c]=RC[c]);let{frequency:i,damping:l}=e;const{mass:f}=e;return Ge.und(i)||(i<.01&&(i=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/i,2)*f,e.friction=4*Math.PI*l*f/i),e}function Wk(e,r){if(!Ge.und(r.decay))e.duration=void 0;else{const t=!Ge.und(r.tension)||!Ge.und(r.friction);(t||!Ge.und(r.frequency)||!Ge.und(r.damping)||!Ge.und(r.mass))&&(e.duration=void 0,e.decay=void 0),t&&(e.frequency=void 0)}}var Qk=[],cI=class{constructor(){this.changed=!1,this.values=Qk,this.toValues=null,this.fromValues=Qk,this.config=new sI,this.immediate=!1}};function Zk(e,{key:r,props:t,defaultProps:i,state:l,actions:f}){return new Promise((c,h)=>{let m,d,g=Eh(t.cancel??(i==null?void 0:i.cancel),r);if(g)x();else{Ge.und(t.pause)||(l.paused=Eh(t.pause,r));let _=i==null?void 0:i.pause;_!==!0&&(_=l.paused||Eh(_,r)),m=Mc(t.delay||0,r),_?(l.resumeQueue.add(b),f.pause()):(f.resume(),b())}function C(){l.resumeQueue.add(b),l.timeouts.delete(d),d.cancel(),m=d.time-Nt.now()}function b(){m>0&&!wo.skipAnimation?(l.delayed=!0,d=Nt.setTimeout(x,m),l.pauseQueue.add(C),l.timeouts.add(d)):x()}function x(){l.delayed&&(l.delayed=!1),l.pauseQueue.delete(C),l.timeouts.delete(d),e<=(l.cancelId||0)&&(g=!0);try{f.start({...t,callId:e,cancel:g},c)}catch(_){h(_)}}})}var FC=(e,r)=>r.length==1?r[0]:r.some(t=>t.cancelled)?_d(e.get()):r.every(t=>t.noop)?Xk(e.get()):So(e.get(),r.every(t=>t.finished)),Xk=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),So=(e,r,t=!1)=>({value:e,finished:r,cancelled:t}),_d=e=>({value:e,cancelled:!0,finished:!1});function Jk(e,r,t,i){const{callId:l,parentId:f,onRest:c}=r,{asyncTo:h,promise:m}=t;return!f&&e===h&&!r.reset?m:t.promise=(async()=>{t.asyncId=l,t.asyncTo=e;const d=AC(r,(E,A)=>A==="onRest"?void 0:E);let g,C;const b=new Promise((E,A)=>(g=E,C=A)),x=E=>{const A=l<=(t.cancelId||0)&&_d(i)||l!==t.asyncId&&So(i,!1);if(A)throw E.result=A,C(E),E},_=(E,A)=>{const T=new eT,D=new tT;return(async()=>{if(wo.skipAnimation)throw kh(t),D.result=So(i,!1),C(D),D;x(T);const R=Ge.obj(E)?{...E}:{...A,to:E};R.parentId=l,hl(d,(z,M)=>{Ge.und(R[M])&&(R[M]=z)});const N=await i.start(R);return x(T),t.paused&&await new Promise(z=>{t.resumeQueue.add(z)}),N})()};let k;if(wo.skipAnimation)return kh(t),So(i,!1);try{let E;Ge.arr(e)?E=(async A=>{for(const T of A)await _(T)})(e):E=Promise.resolve(e(_,i.stop.bind(i))),await Promise.all([E.then(g),b]),k=So(i.get(),!0,!1)}catch(E){if(E instanceof eT)k=E.result;else if(E instanceof tT)k=E.result;else throw E}finally{l==t.asyncId&&(t.asyncId=f,t.asyncTo=f?h:void 0,t.promise=f?m:void 0)}return Ge.fun(c)&&Nt.batchedUpdates(()=>{c(k,i,i.item)}),k})()}function kh(e,r){vh(e.timeouts,t=>t.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,r&&(e.cancelId=r)}var eT=class 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.")}},tT=class extends Error{constructor(){super("SkipAnimationSignal")}},NC=e=>e instanceof MC,fI=1,MC=class extends Fk{constructor(){super(...arguments),this.id=fI++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vl(this);return e&&e.getValue()}to(...e){return wo.to(this,e)}interpolate(...e){return Ij(),wo.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,r=!1){bh(this,{type:"change",parent:this,value:e,idle:r})}_onPriorityChange(e){this.idle||Gg.sort(this),bh(this,{type:"priority",parent:this,priority:e})}},Pc=Symbol.for("SpringPhase"),nT=1,PC=2,BC=4,LC=e=>(e[Pc]&nT)>0,hu=e=>(e[Pc]&PC)>0,Th=e=>(e[Pc]&BC)>0,rT=(e,r)=>r?e[Pc]|=PC|nT:e[Pc]&=~PC,aT=(e,r)=>r?e[Pc]|=BC:e[Pc]&=~BC,dI=class extends MC{constructor(e,r){if(super(),this.animation=new cI,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,!Ge.und(e)||!Ge.und(r)){const t=Ge.obj(e)?{...e}:{...r,from:e};Ge.und(t.default)&&(t.default=!0),this.start(t)}}get idle(){return!(hu(this)||this._state.asyncTo)||Th(this)}get goal(){return ui(this.animation.to)}get velocity(){const e=vl(this);return e instanceof _h?e.lastVelocity||0:e.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return LC(this)}get isAnimating(){return hu(this)}get isPaused(){return Th(this)}get isDelayed(){return this._state.delayed}advance(e){let r=!0,t=!1;const i=this.animation;let{toValues:l}=i;const{config:f}=i,c=ry(i.to);!c&&no(i.to)&&(l=Bi(ui(i.to))),i.values.forEach((d,g)=>{if(d.done)return;const C=d.constructor==Sh?1:c?c[g].lastPosition:l[g];let b=i.immediate,x=C;if(!b){if(x=d.lastPosition,f.tension<=0){d.done=!0;return}let _=d.elapsedTime+=e;const k=i.fromValues[g],E=d.v0!=null?d.v0:d.v0=Ge.arr(f.velocity)?f.velocity[g]:f.velocity;let A;const T=f.precision||(k==C?.005:Math.min(1,Math.abs(C-k)*.001));if(Ge.und(f.duration))if(f.decay){const D=f.decay===!0?.998:f.decay,R=Math.exp(-(1-D)*_);x=k+E/(1-D)*(1-R),b=Math.abs(d.lastPosition-x)<=T,A=E*R}else{A=d.lastVelocity==null?E:d.lastVelocity;const D=f.restVelocity||T/10,R=f.clamp?0:f.bounce,N=!Ge.und(R),z=k==C?d.v0>0:k<C;let M,I=!1;const Y=1,B=Math.ceil(e/Y);for(let U=0;U<B&&(M=Math.abs(A)>D,!(!M&&(b=Math.abs(C-x)<=T,b)));++U){N&&(I=x==C||x>C==z,I&&(A=-A*R,x=C));const P=-f.tension*1e-6*(x-C),H=-f.friction*.001*A,V=(P+H)/f.mass;A=A+V*Y,x=x+A*Y}}else{let D=1;f.duration>0&&(this._memoizedDuration!==f.duration&&(this._memoizedDuration=f.duration,d.durationProgress>0&&(d.elapsedTime=f.duration*d.durationProgress,_=d.elapsedTime+=e)),D=(f.progress||0)+_/this._memoizedDuration,D=D>1?1:D<0?0:D,d.durationProgress=D),x=k+f.easing(D)*(C-k),A=(x-d.lastPosition)/e,b=D==1}d.lastVelocity=A,Number.isNaN(x)&&(b=!0)}c&&!c[g].done&&(b=!1),b?d.done=!0:r=!1,d.setValue(x,f.round)&&(t=!0)});const h=vl(this),m=h.getValue();if(r){const d=ui(i.to);(m!==d||t)&&!f.decay?(h.setValue(d),this._onChange(d)):t&&f.decay&&this._onChange(m),this._stop()}else t&&this._onChange(m)}set(e){return Nt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hu(this)){const{to:e,config:r}=this.animation;Nt.batchedUpdates(()=>{this._onStart(),r.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,r){let t;return Ge.und(e)?(t=this.queue||[],this.queue=[]):t=[Ge.obj(e)?e:{...r,to:e}],Promise.all(t.map(i=>this._update(i))).then(i=>FC(this,i))}stop(e){const{to:r}=this.animation;return this._focus(this.get()),kh(this._state,e&&this._lastCallId),Nt.batchedUpdates(()=>this._stop(r,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const r=this.key||"";let{to:t,from:i}=e;t=Ge.obj(t)?t[r]:t,(t==null||OC(t))&&(t=void 0),i=Ge.obj(i)?i[r]:i,i==null&&(i=void 0);const l={to:t,from:i};return LC(this)||(e.reverse&&([t,i]=[i,t]),i=ui(i),Ge.und(i)?vl(this)||this._set(t):this._set(i)),l}_update({...e},r){const{key:t,defaultProps:i}=this;e.default&&Object.assign(i,AC(e,(c,h)=>/^on/.test(h)?qk(c,t):c)),lT(this,e,"onProps"),Rh(this,"onProps",e,this);const l=this._prepareNode(e);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 f=this._state;return Zk(++this._lastCallId,{key:t,props:e,defaultProps:i,state:f,actions:{pause:()=>{Th(this)||(aT(this,!0),mh(f.pauseQueue),Rh(this,"onPause",So(this,Ah(this,this.animation.to)),this))},resume:()=>{Th(this)&&(aT(this,!1),hu(this)&&this._resume(),mh(f.resumeQueue),Rh(this,"onResume",So(this,Ah(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then(c=>{if(e.loop&&c.finished&&!(r&&c.noop)){const h=iT(e);if(h)return this._update(h,!0)}return c})}_merge(e,r,t){if(r.cancel)return this.stop(!0),t(_d(this));const i=!Ge.und(e.to),l=!Ge.und(e.from);if(i||l)if(r.callId>this._lastToId)this._lastToId=r.callId;else return t(_d(this));const{key:f,defaultProps:c,animation:h}=this,{to:m,from:d}=h;let{to:g=m,from:C=d}=e;l&&!i&&(!r.default||Ge.und(g))&&(g=C),r.reverse&&([g,C]=[C,g]);const b=!us(C,d);b&&(h.from=C),C=ui(C);const x=!us(g,m);x&&this._focus(g);const _=OC(r.to),{config:k}=h,{decay:E,velocity:A}=k;(i||l)&&(k.velocity=0),r.config&&!_&&uI(k,Mc(r.config,f),r.config!==c.config?Mc(c.config,f):void 0);let T=vl(this);if(!T||Ge.und(g))return t(So(this,!0));const D=Ge.und(r.reset)?l&&!r.default:!Ge.und(C)&&Eh(r.reset,f),R=D?C:this.get(),N=Dh(g),z=Ge.num(N)||Ge.arr(N)||ny(N),M=!_&&(!z||Eh(c.immediate||r.immediate,f));if(x){const U=TC(g);if(U!==T.constructor)if(M)T=this._set(N);else throw Error(`Cannot animate between ${T.constructor.name} and ${U.name}, as the "to" prop suggests`)}const I=T.constructor;let Y=no(g),B=!1;if(!Y){const U=D||!LC(this)&&b;(x||U)&&(B=us(Dh(R),N),Y=!B),(!us(h.immediate,M)&&!M||!us(k.decay,E)||!us(k.velocity,A))&&(Y=!0)}if(B&&hu(this)&&(h.changed&&!D?Y=!0:Y||this._stop(m)),!_&&((Y||no(m))&&(h.values=T.getPayload(),h.toValues=no(g)?null:I==Sh?[1]:Bi(N)),h.immediate!=M&&(h.immediate=M,!M&&!D&&this._set(m)),Y)){const{onRest:U}=h;Qt(hI,H=>lT(this,r,H));const P=So(this,Ah(this,m));mh(this._pendingCalls,P),this._pendingCalls.add(t),h.changed&&Nt.batchedUpdates(()=>{var H;h.changed=!D,U==null||U(P,this),D?Mc(c.onRest,P):(H=h.onStart)==null||H.call(h,P,this)})}D&&this._set(R),_?t(Jk(r.to,r,this._state,this)):Y?this._start():hu(this)&&!x?this._pendingCalls.add(t):t(Xk(R))}_focus(e){const r=this.animation;e!==r.to&&(Rk(this)&&this._detach(),r.to=e,Rk(this)&&this._attach())}_attach(){let e=0;const{to:r}=this.animation;no(r)&&(wd(r,this),NC(r)&&(e=r.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;no(e)&&Ch(e,this)}_set(e,r=!0){const t=ui(e);if(!Ge.und(t)){const i=vl(this);if(!i||!us(t,i.getValue())){const l=TC(t);!i||i.constructor!=l?kC(this,l.create(t)):i.setValue(t),i&&Nt.batchedUpdates(()=>{this._onChange(t,r)})}}return vl(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Rh(this,"onStart",So(this,Ah(this,e.to)),this))}_onChange(e,r){r||(this._onStart(),Mc(this.animation.onChange,e,this)),Mc(this.defaultProps.onChange,e,this),super._onChange(e,r)}_start(){const e=this.animation;vl(this).reset(ui(e.to)),e.immediate||(e.fromValues=e.values.map(r=>r.lastPosition)),hu(this)||(rT(this,!0),Th(this)||this._resume())}_resume(){wo.skipAnimation?this.finish():Gg.start(this)}_stop(e,r){if(hu(this)){rT(this,!1);const t=this.animation;Qt(t.values,l=>{l.done=!0}),t.toValues&&(t.onChange=t.onPause=t.onResume=void 0),bh(this,{type:"idle",parent:this});const i=r?_d(this.get()):So(this.get(),Ah(this,e??t.to));mh(this._pendingCalls,i),t.changed&&(t.changed=!1,Rh(this,"onRest",i,this))}}};function Ah(e,r){const t=Dh(r),i=Dh(e.get());return us(i,t)}function iT(e,r=e.loop,t=e.to){const i=Mc(r);if(i){const l=i!==!0&&Kk(i),f=(l||e).reverse,c=!l||l.reset;return Oh({...e,loop:r,default:!1,pause:void 0,to:!f||OC(t)?t:void 0,from:c?e.from:void 0,reset:c,...l})}}function Oh(e){const{to:r,from:t}=e=Kk(e),i=new Set;return Ge.obj(r)&&oT(r,i),Ge.obj(t)&&oT(t,i),e.keys=i.size?Array.from(i):null,e}function pI(e){const r=Oh(e);return Ge.und(r.default)&&(r.default=AC(r)),r}function oT(e,r){hl(e,(t,i)=>t!=null&&r.add(i))}var hI=["onStart","onRest","onChange","onPause","onResume"];function lT(e,r,t){e.animation[t]=r[t]!==Gk(r,t)?qk(r[t],e.key):void 0}function Rh(e,r,...t){var i,l,f,c;(l=(i=e.animation)[r])==null||l.call(i,...t),(c=(f=e.defaultProps)[r])==null||c.call(f,...t)}var vI=["onStart","onChange","onRest"],mI=1,gI=class{constructor(e,r){this.id=mI++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,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),r&&(this._flush=r),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((r,t)=>e[t]=r.get()),e}set(e){for(const r in e){const t=e[r];Ge.und(t)||this.springs[r].set(t)}}update(e){return e&&this.queue.push(Oh(e)),this}start(e){let{queue:r}=this;return e?r=Bi(e).map(Oh):this.queue=[],this._flush?this._flush(this,r):(pT(this,r),zC(this,r))}stop(e,r){if(e!==!!e&&(r=e),r){const t=this.springs;Qt(Bi(r),i=>t[i].stop(!!e))}else kh(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(Ge.und(e))this.start({pause:!0});else{const r=this.springs;Qt(Bi(e),t=>r[t].pause())}return this}resume(e){if(Ge.und(e))this.start({pause:!1});else{const r=this.springs;Qt(Bi(e),t=>r[t].resume())}return this}each(e){hl(this.springs,e)}_onFrame(){const{onStart:e,onChange:r,onRest:t}=this._events,i=this._active.size>0,l=this._changed.size>0;(i&&!this._started||l&&!this._started)&&(this._started=!0,vh(e,([h,m])=>{m.value=this.get(),h(m,this,this._item)}));const f=!i&&this._started,c=l||f&&t.size?this.get():null;l&&r.size&&vh(r,([h,m])=>{m.value=c,h(m,this,this._item)}),f&&(this._started=!1,vh(t,([h,m])=>{m.value=c,h(m,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Nt.onFrame(this._onFrame)}};function zC(e,r){return Promise.all(r.map(t=>sT(e,t))).then(t=>FC(e,t))}async function sT(e,r,t){const{keys:i,to:l,from:f,loop:c,onRest:h,onResolve:m}=r,d=Ge.obj(r.default)&&r.default;c&&(r.loop=!1),l===!1&&(r.to=null),f===!1&&(r.from=null);const g=Ge.arr(l)||Ge.fun(l)?l:void 0;g?(r.to=void 0,r.onRest=void 0,d&&(d.onRest=void 0)):Qt(vI,k=>{const E=r[k];if(Ge.fun(E)){const A=e._events[k];r[k]=({finished:T,cancelled:D})=>{const R=A.get(E);R?(T||(R.finished=!1),D&&(R.cancelled=!0)):A.set(E,{value:null,finished:T||!1,cancelled:D||!1})},d&&(d[k]=r[k])}});const C=e._state;r.pause===!C.paused?(C.paused=r.pause,mh(r.pause?C.pauseQueue:C.resumeQueue)):C.paused&&(r.pause=!0);const b=(i||Object.keys(e.springs)).map(k=>e.springs[k].start(r)),x=r.cancel===!0||Gk(r,"cancel")===!0;(g||x&&C.asyncId)&&b.push(Zk(++e._lastAsyncId,{props:r,state:C,actions:{pause:gC,resume:gC,start(k,E){x?(kh(C,e._lastAsyncId),E(_d(e))):(k.onRest=h,E(Jk(g,k,C,e)))}}})),C.paused&&await new Promise(k=>{C.resumeQueue.add(k)});const _=FC(e,await Promise.all(b));if(c&&_.finished&&!(t&&_.noop)){const k=iT(r,c,l);if(k)return pT(e,[k]),sT(e,k,!0)}return m&&Nt.batchedUpdates(()=>m(_,e,e.item)),_}function uT(e,r){const t={...e.springs};return r&&Qt(Bi(r),i=>{Ge.und(i.keys)&&(i=Oh(i)),Ge.obj(i.to)||(i={...i,to:void 0}),dT(t,i,l=>fT(l))}),cT(e,t),t}function cT(e,r){hl(r,(t,i)=>{e.springs[i]||(e.springs[i]=t,wd(t,e))})}function fT(e,r){const t=new dI;return t.key=e,r&&wd(t,r),t}function dT(e,r,t){r.keys&&Qt(r.keys,i=>{(e[i]||(e[i]=t(i)))._prepareNode(r)})}function pT(e,r){Qt(r,t=>{dT(e.springs,t,i=>fT(i,e))})}var oy=({children:e,...r})=>{const t=W.useContext(ly),i=r.pause||!!t.pause,l=r.immediate||!!t.immediate;r=Yj(()=>({pause:i,immediate:l}),[i,l]);const{Provider:f}=ly;return Ne.createElement(f,{value:r},e)},ly=yI(oy,{});oy.Provider=ly.Provider,oy.Consumer=ly.Consumer;function yI(e,r){return Object.assign(e,Ne.createContext(r)),e.Provider._context=e,e.Consumer._context=e,e}var xI=()=>{const e=[],r=function(i){Vj();const l=[];return Qt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const h=t(i,f,c);h&&l.push(f.start(h))}}),l};r.current=e,r.add=function(i){e.includes(i)||e.push(i)},r.delete=function(i){const l=e.indexOf(i);~l&&e.splice(l,1)},r.pause=function(){return Qt(e,i=>i.pause(...arguments)),this},r.resume=function(){return Qt(e,i=>i.resume(...arguments)),this},r.set=function(i){Qt(e,(l,f)=>{const c=Ge.fun(i)?i(f,l):i;c&&l.set(c)})},r.start=function(i){const l=[];return Qt(e,(f,c)=>{if(Ge.und(i))l.push(f.start());else{const h=this._getProps(i,f,c);h&&l.push(f.start(h))}}),l},r.stop=function(){return Qt(e,i=>i.stop(...arguments)),this},r.update=function(i){return Qt(e,(l,f)=>l.update(this._getProps(i,l,f))),this};const t=function(i,l,f){return Ge.fun(i)?i(f,l):i};return r._getProps=t,r};function bI(e,r,t){const i=Ge.fun(r)&&r;i&&!t&&(t=[]);const l=W.useMemo(()=>i||arguments.length==3?xI():void 0,[]),f=W.useRef(0),c=zk(),h=W.useMemo(()=>({ctrls:[],queue:[],flush(A,T){const D=uT(A,T);return f.current>0&&!h.queue.length&&!Object.keys(D).some(N=>!A.springs[N])?zC(A,T):new Promise(N=>{cT(A,D),h.queue.push(()=>{N(zC(A,T))}),c()})}}),[]),m=W.useRef([...h.ctrls]),d=[],g=jk(e)||0;W.useMemo(()=>{Qt(m.current.slice(e,g),A=>{iI(A,l),A.stop(!0)}),m.current.length=e,C(g,e)},[e]),W.useMemo(()=>{C(0,Math.min(g,e))},t);function C(A,T){for(let D=A;D<T;D++){const R=m.current[D]||(m.current[D]=new gI(null,h.flush)),N=i?i(D,R):r[D];N&&(d[D]=pI(N))}}const b=m.current.map((A,T)=>uT(A,d[T])),x=W.useContext(oy),_=jk(x),k=x!==_&&aI(x);DC(()=>{f.current++,h.ctrls=m.current;const{queue:A}=h;A.length&&(h.queue=[],Qt(A,T=>T())),Qt(m.current,(T,D)=>{l==null||l.add(T),k&&T.start({default:x});const R=d[D];R&&(oI(T,R.ref),T.ref?T.queue.push(R):T.start(R))})}),Uk(()=>()=>{Qt(h.ctrls,A=>A.stop(!0))});const E=b.map(A=>({...A}));return l?[E,l]:E}function CI(e,r){const t=Ge.fun(e),[[i],l]=bI(1,t?e:[e],t?r||[]:r);return t||arguments.length==2?[i,l]:i}var wI=class extends MC{constructor(e,r){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=yh(...r);const t=this._get(),i=TC(t);kC(this,i.create(t))}advance(e){const r=this._get(),t=this.get();us(r,t)||(vl(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&hT(this._active)&&UC(this)}_get(){const e=Ge.arr(this.source)?this.source.map(ui):Bi(ui(this.source));return this.calc(...e)}_start(){this.idle&&!hT(this._active)&&(this.idle=!1,Qt(ry(this),e=>{e.done=!1}),wo.skipAnimation?(Nt.batchedUpdates(()=>this.advance()),UC(this)):Gg.start(this))}_attach(){let e=1;Qt(Bi(this.source),r=>{no(r)&&wd(r,this),NC(r)&&(r.idle||this._active.add(r),e=Math.max(e,r.priority+1))}),this.priority=e,this._start()}_detach(){Qt(Bi(this.source),e=>{no(e)&&Ch(e,this)}),this._active.clear(),UC(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Bi(this.source).reduce((r,t)=>Math.max(r,(NC(t)?t.priority:0)+1),0))}};function _I(e){return e.idle!==!1}function hT(e){return!e.size||Array.from(e).every(_I)}function UC(e){e.idle||(e.idle=!0,Qt(ry(e),r=>{r.done=!0}),bh(e,{type:"idle",parent:e}))}wo.assign({createStringInterpolator:Bk,to:(e,r)=>new wI(e,r)});var vT=/^--/;function SI(e,r){return r==null||typeof r=="boolean"||r===""?"":typeof r=="number"&&r!==0&&!vT.test(e)&&!(Fh.hasOwnProperty(e)&&Fh[e])?r+"px":(""+r).trim()}var mT={};function EI(e,r){if(!e.nodeType||!e.setAttribute)return!1;const t=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:i,style:l,children:f,scrollTop:c,scrollLeft:h,viewBox:m,...d}=r,g=Object.values(d),C=Object.keys(d).map(b=>t||e.hasAttribute(b)?b:mT[b]||(mT[b]=b.replace(/([A-Z])/g,x=>"-"+x.toLowerCase())));f!==void 0&&(e.textContent=f);for(const b in l)if(l.hasOwnProperty(b)){const x=SI(b,l[b]);vT.test(b)?e.style.setProperty(b,x):e.style[b]=x}C.forEach((b,x)=>{e.setAttribute(b,g[x])}),i!==void 0&&(e.className=i),c!==void 0&&(e.scrollTop=c),h!==void 0&&(e.scrollLeft=h),m!==void 0&&e.setAttribute("viewBox",m)}var Fh={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},DI=(e,r)=>e+r.charAt(0).toUpperCase()+r.substring(1),kI=["Webkit","Ms","Moz","O"];Fh=Object.keys(Fh).reduce((e,r)=>(kI.forEach(t=>e[DI(t,r)]=e[r]),e),Fh);var TI=/^(matrix|translate|scale|rotate|skew)/,AI=/^(translate)/,OI=/^(rotate|skew)/,jC=(e,r)=>Ge.num(e)&&e!==0?e+r:e,sy=(e,r)=>Ge.arr(e)?e.every(t=>sy(t,r)):Ge.num(e)?e===r:parseFloat(e)===r,RI=class extends iy{constructor({x:e,y:r,z:t,...i}){const l=[],f=[];(e||r||t)&&(l.push([e||0,r||0,t||0]),f.push(c=>[`translate3d(${c.map(h=>jC(h,"px")).join(",")})`,sy(c,0)])),hl(i,(c,h)=>{if(h==="transform")l.push([c||""]),f.push(m=>[m,m===""]);else if(TI.test(h)){if(delete i[h],Ge.und(c))return;const m=AI.test(h)?"px":OI.test(h)?"deg":"";l.push(Bi(c)),f.push(h==="rotate3d"?([d,g,C,b])=>[`rotate3d(${d},${g},${C},${jC(b,m)})`,sy(b,0)]:d=>[`${h}(${d.map(g=>jC(g,m)).join(",")})`,sy(d,h.startsWith("scale")?1:0)])}}),l.length&&(i.transform=new FI(l,f)),super(i)}},FI=class extends Fk{constructor(e,r){super(),this.inputs=e,this.transforms=r,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",r=!0;return Qt(this.inputs,(t,i)=>{const l=ui(t[0]),[f,c]=this.transforms[i](Ge.arr(l)?l:t.map(ui));e+=" "+f,r=r&&c}),r?"none":e}observerAdded(e){e==1&&Qt(this.inputs,r=>Qt(r,t=>no(t)&&wd(t,this)))}observerRemoved(e){e==0&&Qt(this.inputs,r=>Qt(r,t=>no(t)&&Ch(t,this)))}eventObserved(e){e.type=="change"&&(this._value=null),bh(this,e)}},NI=["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"];wo.assign({batchedUpdates:tu.exports.unstable_batchedUpdates,createStringInterpolator:Bk,colors:bj});var MI=Jj(NI,{applyAnimatedValues:EI,createAnimatedStyle:e=>new RI(e),getComponentProps:({scrollTop:e,scrollLeft:r,...t})=>t}),gT=MI.animated;function yT(e,r,t){let i=e;return r!==void 0&&(i=Math.max(e,r)),t!==void 0&&(i=Math.min(i,t)),i}const[xT]=wn("indicator"),PI=W.memo(e=>{var{vertical:r}=e,t=$a(e,["vertical"]);const i=[];for(let l=0;l<t.total;l++)i.push(Q("div",{className:Re(xT("dot",{active:t.current===l}))},l));return Q("div",Object.assign({className:Re(t.className,xT({vertical:r})),style:t.style},{children:i}))});let Nh=0;function IC(e){e?(Nh||document.body.classList.add("rv-toast--unclickable"),Nh+=1):Nh&&(Nh-=1,Nh||document.body.classList.remove("rv-toast--unclickable"))}function BI(e){return e===window}const bT=e=>{const r=e;if(BI(r)){const t=r.innerWidth,i=r.innerHeight;return{top:0,left:0,right:t,bottom:i,width:t,height:i}}return r&&r.getBoundingClientRect?r.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function LI(e,r,t){let i,l,f,c,h,m,d=0,g=!1,C=!1,b=!0;const x=!r&&r!==0&&typeof dd.requestAnimationFrame=="function";if(typeof e!="function")throw new TypeError("Expected a function");r=+r||0,fd(t)&&(g=!!t.leading,C="maxWait"in t,f=C?Math.max(+t.maxWait||0,r):f,b="trailing"in t?!!t.trailing:b);function _(B){const U=i,P=l;return i=l=void 0,d=B,c=e.apply(P,U),c}function k(B,U){return x?(dd.cancelAnimationFrame(h),dd.requestAnimationFrame(B)):setTimeout(()=>B(),U)}function E(B){if(x)return dd.cancelAnimationFrame(B);clearTimeout(B)}function A(B){return d=B,h=k(R,r),g?_(B):c}function T(B){const U=B-m,P=B-d,H=r-U;return C?Math.min(H,f-P):H}function D(B){const U=B-m,P=B-d;return m===void 0||U>=r||U<0||C&&P>=f}function R(){const B=Date.now();if(D(B))return N(B);h=k(R,T(B))}function N(B){return h=void 0,b&&i?_(B):(i=l=void 0,c)}function z(){h!==void 0&&E(h),d=0,i=m=l=h=void 0}function M(){return h===void 0?c:N(Date.now())}function I(){return h!==void 0}function Y(...B){const U=Date.now(),P=D(U);if(i=B,l=this,m=U,P){if(h===void 0)return A(m);if(C)return h=k(R,r),_(m)}return h===void 0&&(h=k(R,r)),c}return Y.cancel=z,Y.flush=M,Y.pending=I,Y}const tX="",[uy]=wn("toast"),zI=e=>{const r=ta(e,{type:"info",duration:2e3,position:"middle",transition:"rv-fade",loadingType:"circular",overlay:!1}),t=()=>{r.closeOnClick&&r.onClose()};W.useEffect(()=>{if(!r.visible){IC(!1);return}let f=!1;const c=r.visible&&r.forbidClick;f!==c&&(f=c,IC(f))},[r.visible,r.forbidClick]);const i=()=>{const{icon:f,type:c,iconSize:h,loadingType:m}=r;if(f||c==="success"||c==="fail"){const g=c==="fail"?Q(tC,{}):Q(FD,{});return W.cloneElement(f||g,{className:Re(uy("icon")),fontSize:h})}return c==="loading"?Q(eC,{className:Re(uy("loading")),type:m}):null},l=()=>{const{message:f}=r;return ea(f)&&f!==""?Q("div",Object.assign({className:Re(uy("info"))},{children:f})):null};return Be(sh,Object.assign({className:Re([uy([r.position,{[r.type]:!r.icon}]),r.className]),visible:r.visible,overlay:r.overlay,transition:r.transition,overlayClass:r.overlayClass,overlayStyle:r.overlayStyle,closeOnClickOverlay:r.closeOnClickOverlay,lockScroll:!1,onClick:t,onClose:r.onClose,onClosed:r.onClosed,onOpened:r.onOpened,teleport:r.teleport},{children:[i(),l()]}))},HC={message:"",className:"",type:"info",position:"middle",forbidClick:!1,duration:2e3,teleport:()=>document.body},VC=[];let CT=!1,$C=Jp({},HC);const cy=new Map;function wT(){let e=VC.pop();for(;e;)e(),e=VC.pop()}function UI(){setTimeout(wT)}const Bc=e=>{if(!Bg())return null;const r=_T(e),t={config:()=>{},clear:()=>null};let i=0;const{onClose:l,teleport:f}=r,c=document.createElement("div");return iC(f).appendChild(c),WD(Q(()=>{const d=Object.assign({duration:2e3},r),[g,C]=W.useState(!1),[b,x]=W.useState(Object.assign({},d)),_=W.useCallback(()=>{b.forbidClick&&IC(!1),C(!1),window.setTimeout(()=>{QD(c)&&c.parentNode&&c.parentNode.removeChild(c)},+b.duration||+HC.duration)},[c]),k=W.useCallback(()=>{C(!1),l&&l()},[]);return t.clear=_,t.config=W.useCallback(E=>{x(A=>typeof E=="function"?Object.assign(Object.assign({},A),E(A)):Object.assign(Object.assign({},A),E))},[x]),W.useEffect(()=>(C(!0),CT||wT(),VC.push(_),b.duration!==0&&"duration"in b&&(i=window.setTimeout(k,+b.duration)),()=>{i!==0&&window.clearTimeout(i)}),[]),Q(zI,Object.assign({},b,{visible:g,teleport:()=>c,onClose:k,onClosed:_}))},{}),c),t};function _T(e){return fd(e)?e:{message:e}}const jI=e=>r=>Bc(Object.assign(Object.assign(Object.assign(Object.assign({},$C),cy.get(e)),_T(r)),{type:e}));["info","loading","success","fail"].forEach(e=>{Bc[e]=jI(e)}),Bc.allowMultiple=(e=!0)=>{CT=e},Bc.clear=UI;function II(e,r){typeof e=="string"?cy.set(e,r):Jp($C,e)}Bc.setDefaultOptions=II,Bc.resetDefaultOptions=e=>{typeof e=="string"?cy.delete(e):($C=Jp({},HC),cy.clear())};const YC=Bc;function fy(){const e=W.useRef([]),r=W.useCallback(i=>l=>{l&&(e.current[i]=l)},[]),t=W.useCallback(()=>{e.current=[]},[]);return[e.current,r,t]}const ST=e=>{const{defaultValue:r,value:t}=e||{},[i,l]=W.useState(()=>{if(t!==void 0)return t;if(r!==void 0)return typeof r=="function"?r():r}),f=t!==void 0?t:i;function c(h){l(h)}return[f,c]},iX="",[HI]=wn("swiper-item"),ET=W.forwardRef((e,r)=>{const t=W.useRef(null);W.useImperativeHandle(r,()=>({self:t.current}));const[i]=sz(t,{rootMargin:"-0.1px",threshold:0,root:()=>{var l;return(l=e.trackRef)===null||l===void 0?void 0:l.current}});return Q("div",Object.assign({ref:t,className:Re(e.className,HI({hidden:e.autoHeight&&i===!1})),onClick:e.onClick,style:e.style},{children:e.children}))}),[Lc]=wn("swiper"),VI=W.forwardRef((e,r)=>{const t=ta(e,{initialSwipe:0,loop:!0,touchable:!0,enabled:!0,rubberband:!0,autoplay:!1,slideSize:100,trackOffset:0,stuckAtBoundary:!1,preventScroll:!0}),{loop:i,autoplay:l,vertical:f,duration:c,autoHeight:h}=t,m=f?"y":"x",d=t.slideSize/100,g=t.trackOffset/100,{validChildren:C,count:b}=W.useMemo(()=>{let X=0;return{validChildren:W.Children.map(t.children,q=>W.isValidElement(q)?q.type!==ET?null:(X++,q):null),count:X}},[t.children]),x=W.useRef(null),[_,k]=fy(),[E,A]=W.useState(()=>t.enabled),[T,D]=W.useState(t.initialSwipe),[R,N,z]=X2(!1),M=W.useMemo(()=>Object.assign({["--rv-swipe-slide-size"]:`${t.slideSize}%`,["--rv-swipe-track-offset"]:`${t.trackOffset}%`},t.style),[t.slideSize,t.trackOffset,t.style]),I=W.useMemo(()=>d*(b-1)<1?!1:i,[b,i,d]),Y=()=>{const X=x.current;return X?(f?X.offsetHeight:X.offsetWidth)*t.slideSize/100:0},B=X=>{let Z=0,q=b-1;return t.stuckAtBoundary&&(Z+=(1-d-g)/d,q-=(1-d-g)/d),yT(X,Z,q)},[{position:U},P]=CI(()=>({position:B(T)*100,config:{tension:200,friction:30,duration:c},onRest:()=>{if(z.current||!I)return;const X=U.get(),Z=100*b,q=qC(X,Z);q!==X&&P.start({position:q,immediate:!0})}}),[b]),H=fj(X=>{var Z;const q=Y();if(!q||!t.preventScroll&&DT(X.target,(Z=_[T])===null||Z===void 0?void 0:Z.self))return;const te=f?1:0,oe=X.offset[te],ae=X.direction[te],fe=X.velocity[te];if(N(!0),!X.last)P.start({position:oe*100/q,immediate:!0});else{const ve=Math.round((oe+Math.min(fe*2e3,q)*ae)/q);G(ve),window.setTimeout(()=>{N(!1)})}},{enabled:E,transform:([X,Z])=>[-X,-Z],from:()=>{const X=Y();return[U.get()/100*X,U.get()/100*X]},bounds:()=>{if(I)return{};const X=Y(),Z=B(0)*X,q=B(b-1)*X;return f?{top:Z,bottom:q}:{left:Z,right:q}},rubberband:t.rubberband,axis:m,preventScroll:m==="x"?t.preventScroll:!1,pointer:{touch:!0}}),V=()=>t.indicator===void 0||t.indicator===!0?Q("div",Object.assign({className:Re(Lc("indicator",{vertical:f}))},{children:Q(PI,Object.assign({},t.indicatorProps,{vertical:f,total:b,current:T}))})):typeof t.indicator=="function"?t.indicator(b,T):null;function G(X,Z=!1){const q=Math.round(X),te=I?qC(q,b):yT(q,0,b-1);D(te),P.start({position:(I?q:B(q))*100,immediate:Z})}const ee=()=>{G(Math.round(U.get()/100)+1)},ne=()=>{G(Math.round(U.get()/100)-1)};W.useImperativeHandle(r,()=>({activeIndex:T,swipeTo:G,swipeNext:ee,swipePrev:ne,enable:()=>{A(!0)},disable:()=>{A(!1)}})),th(()=>{const X=C.length-1;T>X&&G(X,!0)}),Rc(()=>{var X;(X=t.onChange)===null||X===void 0||X.call(t,T)},[T]),W.useEffect(()=>{if(!l||R)return Mi;const X=typeof l=="boolean"?5e3:l,Z=window.setInterval(()=>{ee()},X);return()=>{window.clearInterval(Z)}},[l,R]);const $=()=>I?Q("div",Object.assign({className:Re(Lc("track-inner",{vertical:f}))},{children:W.Children.map(C,(X,Z)=>Q(gT.div,Object.assign({className:Re(Lc("slide")),style:{[m]:U.to(q=>{let te=-q+Z*100;const oe=b*100,ae=oe/2;return te=qC(te+ae,oe)-ae,`${te}%`}),[f?"top":"left"]:`-${Z*100}%`}},{children:W.cloneElement(X,{ref:k(Z),autoHeight:h,trackRef:x})})))})):Q(gT.div,Object.assign({className:Re(Lc("track-inner")),style:{[m]:U.to(X=>`${-X}%`)}},{children:W.Children.map(C,(X,Z)=>Q("div",Object.assign({className:Re(Lc("slide"))},{children:W.cloneElement(X,{ref:k(Z),autoHeight:h})})))}));return b===0&&void 0,Be("div",Object.assign({className:Re(t.className,Lc({vertical:f})),style:M},{children:[Q("div",Object.assign({ref:x,className:Re(Lc("track",{"allow-touch-move":t.touchable})),onClickCapture:X=>{z.current&&X.stopPropagation()}},t.touchable?H():{},{children:$()})),V()]}))});function qC(e,r){const t=e%r;return t<0?t+r:t}function DT(e,r){return r?e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight?!0:e.parentElement&&e.parentElement!==r?DT(e.parentElement,r):!1:!1}const kT=Object.assign(VI,{Item:ET}),$I=e=>{const r=ta(e,{shape:"round",bindGroup:!0}),t=W.useRef(null),i=g=>r.parent&&r.bindGroup?r.parent.props[g]:null,l=W.useMemo(()=>i("disabled")||r.disabled,[r.parent,r.disabled]),f=W.useMemo(()=>i("direction")||null,[r.parent]),c=W.useMemo(()=>{const g=r.checkedColor||i("checkedColor");return g&&r.checked&&!l?{borderColor:g,backgroundColor:g}:{}},[r.checkedColor,r.checked,l]),h=g=>{const{target:C}=g,b=t.current,x=b===C||(b==null?void 0:b.contains(C));!l&&(x||!r.labelDisabled)&&r.onToggle&&r.onToggle(),r.onClick&&r.onClick(g)},m=()=>{const{bem:g,shape:C,checked:b}=r,x=r.iconSize||i("iconSize");return Q("div",Object.assign({ref:t,className:Re(g("icon",[C,{disabled:l,checked:b}])),style:{fontSize:dl(x)}},{children:r.iconRender?r.iconRender({checked:b,disabled:l}):Q(FD,{style:c})}))},d=()=>r.children?Q("span",Object.assign({className:r.bem("label",[r.labelPosition,{disabled:l}])},{children:r.children})):null;return Be("div",Object.assign({role:r.role,className:Re(r.bem([{disabled:l,"label-disabled":r.labelDisabled},f]),r.className),style:r.style,tabIndex:l?-1:0,"aria-checked":r.checked,onClick:h},{children:[r.labelPosition==="left"&&d(),m(),r.labelPosition!=="left"&&d()]}))},cX="";function YI(e){return[e.getFullYear(),e.getMonth()+1]}function GC(e,r){const t=e.getFullYear(),i=r.getFullYear();if(t===i){const l=e.getMonth(),f=r.getMonth();return l===f?0:l>f?1:-1}return t>i?1:-1}function ml(e,r){const t=GC(e,r);if(t===0){const i=e.getDate(),l=r.getDate();return i===l?0:i>l?1:-1}return t}const dy=e=>new Date(e),TT=e=>Array.isArray(e)?e.map(dy):dy(e);function KC(e,r){const t=dy(e);return t.setDate(t.getDate()+r),t}const AT=e=>KC(e,-1),OT=e=>KC(e,1),WC=()=>{const e=new Date;return e.setHours(0,0,0,0),e};function qI(e){const r=e[0].getTime();return(e[1].getTime()-r)/(1e3*60*60*24)+1}function RT(e,r){let t=-1;const i=Array(e);for(;++t<e;)i[t]=r(t);return i}function GI(e){if(!e)return 0;for(;mD(parseInt(e,10));)if(e.length>1)e=e.slice(1);else return 0;return parseInt(e,10)}function QC(e,r){return 32-new Date(e,r-1,32).getDate()}const[Mh]=wn("calendar"),KI=e=>{const r=ta(e,{offset:0}),t=W.useMemo(()=>{const{item:d,index:g,color:C,offset:b,rowHeight:x}=r,_={height:x};if(d.type==="placeholder")return _.width="100%",_;if(g===0&&(_.marginLeft=`${100*b/7}%`),C)switch(d.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":_.background=C;break;case"middle":_.color=C;break}return _},[r.item,r.index,r.color,r.offset,r.rowHeight]),i=()=>{var d;r.item.type!=="disabled"&&((d=r.onClick)===null||d===void 0||d.call(r,r.item))},l=()=>{const{topInfo:d}=r.item;return d||r.topInfoRender?Q("div",Object.assign({className:Re(Mh("top-info"))},{children:r.topInfoRender?r.topInfoRender(r.item):d})):null},f=()=>{const{bottomInfo:d}=r.item;return d||r.bottomInfoRender?Q("div",Object.assign({className:Re(Mh("bottom-info"))},{children:r.bottomInfoRender?r.bottomInfoRender(r.item):d})):null},c=()=>{const{item:d,color:g,rowHeight:C}=r,{type:b,text:x}=d,_=Be(nn,{children:[l(),x,f()]});return b==="selected"?Q("div",Object.assign({className:Re(Mh("selected-day")),style:{width:C,height:C,background:g}},{children:_})):_},{type:h,className:m}=r.item;return h==="placeholder"?Q("div",{className:Re(Mh("day")),style:t}):Q("div",Object.assign({role:"gridcell",style:t,className:Re(Mh("day",h),m),tabIndex:h==="disabled"?void 0:-1,onClick:i},{children:c()}))},[py]=wn("calendar"),WI=W.forwardRef((e,r)=>{const[t,i]=W.useState(),l=W.useRef(),[f,c]=W.useState(),h=W.useRef(0),{locale:m}=W.useContext(md);W.useEffect(()=>{f&&(h.current=bT(f).height)},[f]);const d=W.useMemo(()=>e.formatMonthTitle?e.formatMonthTitle(e.date):m.vanCalendar.monthTitle(...YI(e.date)),[e.date,e.formatMonthTitle]),g=W.useMemo(()=>dl(e.rowHeight),[e.rowHeight]),C=W.useMemo(()=>{const B=e.date.getDay();return e.firstDayOfWeek?(B+7-e.firstDayOfWeek)%7:B},[e.date,e.firstDayOfWeek]),b=W.useMemo(()=>QC(e.date.getFullYear(),e.date.getMonth()+1),[e.date]),x=W.useMemo(()=>t||!e.lazyRender,[t]),_=()=>d,k=B=>{const U=e.showSubtitle?l.current:f,P=(U==null?void 0:U.getBoundingClientRect().top)-B.getBoundingClientRect().top+B.scrollTop;pD(B,P)},E=B=>{const U=P=>e.currentDate.some(H=>ml(H,P)===0);if(U(B)){const P=AT(B),H=OT(B),V=U(P),G=U(H);return V&&G?"multiple-middle":V?"end":G?"start":"multiple-selected"}return""},A=B=>{const[U,P]=e.currentDate;if(!U)return"";const H=ml(B,U);if(!P)return H===0?"start":"";const V=ml(B,P);return e.allowSameDay&&H===0&&V===0?"start-end":H===0?"start":V===0?"end":H>0&&V<0?"middle":""},T=B=>{const{type:U,minDate:P,maxDate:H,currentDate:V}=e;if(ml(B,P)<0||ml(B,H)>0)return"disabled";if(V===null)return"";if(Array.isArray(V)){if(U==="multiple")return E(B);if(U==="range")return A(B)}else if(U==="single")return ml(B,V)===0?"selected":"";return""},D=B=>{if(e.type==="range"){if(B==="start")return m.vanCalendar.start;if(B==="end")return m.vanCalendar.end;if(B==="start-end")return m.vanCalendar.startEnd}return null},R=()=>e.showMonthTitle?Q("div",Object.assign({className:Re(py("month-title"))},{children:d})):null,N=()=>e.showMark&&x?Q("div",Object.assign({className:Re(py("month-mark"))},{children:e.date.getMonth()+1})):null,z=W.useMemo(()=>{const B=Math.ceil((b+C)/7);return Array(B).fill({type:"placeholder"})},[b,C]),M=W.useMemo(()=>{const B=[],U=e.date.getFullYear(),P=e.date.getMonth();for(let H=1;H<=b;H++){const V=new Date(U,P,H),G=T(V);let ee={date:V,type:G,text:H,bottomInfo:D(G)};e.formatter&&(ee=e.formatter(ee)),B.push(ee)}return B},[T,e.date,e.formatter]),I=(B,U)=>Q(KI,{item:B,index:U,color:e.color,offset:C,rowHeight:g,onClick:e.onClick,topInfoRender:e.topInfoRender,bottomInfoRender:e.bottomInfoRender},U),Y=()=>Be("div",Object.assign({ref:l,role:"grid",className:Re(py("days"))},{children:[N(),(x?M:z).map(I)]}));return W.useImperativeHandle(r,()=>({getTitle:_,getHeight:()=>h.current,setVisible:i,scrollIntoView:k})),Be("div",Object.assign({className:Re(py("month")),ref:c},{children:[R(),Y()]}))}),[Ph]=wn("calendar"),QI=e=>{const{locale:r}=W.useContext(md),t=()=>{if(e.showTitle){const c=e.title||r.vanCalendar.title;return Q("div",Object.assign({className:Re(Ph("header-title"))},{children:c}))}return null},i=c=>{var h;(h=e.onClickSubtitle)===null||h===void 0||h.call(e,c)},l=()=>e.showSubtitle?Q("div",Object.assign({className:Re(Ph("header-subtitle")),onClick:i},{children:e.subtitle})):null,f=()=>{const{weekdays:c,firstDayOfWeek:h}=e,m=r.vanCalendar.weekdays,d=c?m.map((C,b)=>c[b]||C):m,g=[...d.slice(h,7),...d.slice(0,h)];return Q("div",Object.assign({className:Re(Ph("weekdays"))},{children:g.map((C,b)=>Q("span",Object.assign({className:Re(Ph("weekday"))},{children:C}),b))}))};return Be("div",Object.assign({className:Re(Ph("header"))},{children:[t(),l(),f()]}))},[Sd]=wn("calendar"),ZI=WC(),XI=(()=>{const e=WC();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())})(),JI=W.forwardRef((e,r)=>{var t,{className:i,style:l}=e,f=$a(e,["className","style"]);const c=ta(f,{round:!0,poppable:!0,showMark:!0,showTitle:!0,showConfirm:!0,showSubtitle:!0,closeOnPopstate:!0,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,defaultValue:null,type:"single",position:"bottom",maxRange:null,minDate:ZI,maxDate:XI,firstDayOfWeek:0,showRangePrompt:!0}),{locale:h}=W.useContext(md),[m,d]=nh({value:c.visible,defaultValue:!1,onChange:q=>{var te;q===!1&&((te=c.onClose)===null||te===void 0||te.call(c))}}),g=(q,te=c.minDate,oe=c.maxDate)=>ml(q,te)===-1?te:ml(q,oe)===1?oe:q,C=(q=c.defaultValue)=>{const{type:te,minDate:oe,maxDate:ae}=c;if(q===null)return q;const fe=WC();if(te==="range"){Array.isArray(q)||(q=[]);const ve=g(q[0]||fe,oe,AT(ae)),xe=g(q[1]||fe,OT(oe));return[ve,xe]}return te==="multiple"?Array.isArray(q)?q.map(ve=>g(ve)):[g(fe)]:((!q||Array.isArray(q))&&(q=fe),g(q))},b=W.useRef(),x=W.useRef(0),[_,k]=W.useState(C(c.value===void 0?c.defaultValue:c.value)),[E,A]=bD({subtitle:"",currentDate:_});Rc(()=>{c.value!==void 0&&JSON.stringify(_)!==JSON.stringify(c.value)&&k(c.value)},[c.value]),W.useEffect(()=>{JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_})},[_]);const[T,D]=fy(),R=W.useMemo(()=>c.firstDayOfWeek?+c.firstDayOfWeek%7:0,[c.firstDayOfWeek,c.firstDayOfWeek]),N=W.useMemo(()=>{const q=[],te=new Date(c.minDate);te.setDate(1);do q.push(new Date(te)),te.setMonth(te.getMonth()+1);while(GC(te,c.maxDate)!==1);return q},[c.minDate,c.maxDate]),z=W.useMemo(()=>{const{currentDate:q}=E;if(q){if(c.type==="range")return!q[0]||!q[1];if(c.type==="multiple")return!q.length}return!q},[c.type,E.currentDate]),M=()=>{var q;const te=WL(b.current),oe=te+x.current,ae=N.map((ke,De)=>T[De].getHeight()),fe=ae.reduce((ke,De)=>ke+De,0);if(oe>fe&&te>0)return;let ve=0,xe;const se=[-1,-1];for(let ke=0;ke<N.length;ke++){const De=T[ke];ve<=oe&&ve+ae[ke]>=te&&(se[1]=ke,xe||(xe=De,se[0]=ke),T[ke].showed||(T[ke].showed=!0,(q=c.onMonthShow)===null||q===void 0||q.call(c,{date:De.date,title:De.getTitle()}))),ve+=ae[ke]}N.forEach((ke,De)=>{const Pe=De>=se[0]-1&&De<=se[1]+1;T[De].setVisible(Pe)}),xe&&xe.getTitle()!==E.subtitle&&!c.horizontal&&A({subtitle:xe.getTitle()})},I=q=>{W2(()=>{N.some((te,oe)=>GC(te,q)===0?(b.current&&T[oe].scrollIntoView(b.current),!0):!1),M()})},Y=()=>{if(c.poppable&&!m)return;const{currentDate:q}=E;if(q){const te=c.type==="single"?q:q[0];I(te)}else W2(M)},B=()=>{W2(()=>{x.current=Math.floor(bT(b.current).height),Y()})},U=(q=C())=>{A({currentDate:q}),Y()},P=q=>{var te;const{maxRange:oe,rangePrompt:ae,showRangePrompt:fe}=c;return oe&&qI(q)>oe?(fe&&YC.info(ae||h.vanCalendar.rangePrompt(+oe)),(te=c.onOverRange)===null||te===void 0||te.call(c),!1):!0},H=()=>{var q;const te=TT(E.currentDate);c.poppable&&k(te),(q=c.onConfirm)===null||q===void 0||q.call(c,te),Z.close()},V=(q,te)=>{const oe=ae=>{var fe;E.currentDate=ae,A({currentDate:ae}),(fe=c.onSelect)===null||fe===void 0||fe.call(c,TT(E.currentDate))};if(te&&c.type==="range"&&!P(q)){c.showConfirm?oe([q[0],KC(q[0],+c.maxRange-1)]):oe(q);return}oe(q),te&&!c.showConfirm&&H()},G=q=>{var te;if(c.readOnly||!q.date)return;const{date:oe}=q,{type:ae}=c,{currentDate:fe}=E;if(ae==="range"){if(!fe){V([oe]);return}const[ve,xe]=fe;if(ve&&!xe){const se=ml(oe,ve);se===1?V([ve,oe],!0):se===-1?V([oe]):c.allowSameDay&&V([oe,oe],!0)}else V([oe])}else if(ae==="multiple"){if(!fe){V([oe]);return}let ve;if(E.currentDate.some((se,ke)=>{const De=ml(se,oe)===0;return De&&(ve=ke),De})){const[se]=fe.splice(ve,1);(te=c.onUnselect)===null||te===void 0||te.call(c,dy(se)),V([...fe])}else c.maxRange&&fe.length>=c.maxRange?YC(c.rangePrompt||`选择天数不能超过 ${c.maxRange} 天`):V([...fe,oe])}else V(oe,!0)},ee=(q,te)=>{const oe=!c.horizontal&&(te!==0||!c.showSubtitle);return Q(WI,Object.assign({ref:D(te),date:q,currentDate:E.currentDate,showMonthTitle:oe,firstDayOfWeek:R},cD(c,["type","color","minDate","maxDate","showMark","formatter","rowHeight","showSubtitle","lazyRender","allowSameDay","topInfoRender","bottomInfoRender","formatMonthTitle"]),{onClick:G}),te)},ne=()=>{if(c.footer)return c.footer;if(c.showConfirm){const q=z?c.confirmDisabledText:c.confirmText;return Q(ih,Object.assign({round:!0,block:!0,type:"danger",color:c.color,className:Re(Sd("confirm")),disabled:z,nativeType:"button",onClick:H},{children:q||h.vanCalendar.confirm}))}return null},$=()=>Q("div",Object.assign({className:Re(Sd("footer"),{"rv-safe-area-bottom":c.safeAreaInsetBottom})},{children:ne()})),X=()=>Be("div",Object.assign({className:Re(i,Sd()),style:l},{children:[Q(QI,{weekdays:c.weekdays,title:c.title,subtitle:c.subtitle||E.subtitle,showTitle:c.showTitle,showSubtitle:c.showSubtitle,firstDayOfWeek:R,onClickSubtitle:q=>{var te;(te=c.onClickSubtitle)===null||te===void 0||te.call(c,q)}}),c.horizontal?Q("div",Object.assign({ref:b,className:Re(Sd("horizontal-body"))},{children:Q(kT,Object.assign({indicator:()=>null,onChange:q=>{A({subtitle:T[q].getTitle()})}},{children:N.map((q,te)=>Q(kT.Item,{children:ee(q,te)},q))}))})):Q("div",Object.assign({ref:b,className:Re(Sd("body")),onScroll:M},{children:N.map(ee)})),$()]})),Z={toggle:()=>{c.poppable&&d(q=>!q)},open:()=>{c.poppable&&d(!0)},close:()=>{c.poppable&&d(!1)}};return W.useEffect(()=>{c.poppable||B()},[]),W.useEffect(()=>{c.poppable&&m&&B()},[m]),Rc(()=>{U(C(E.currentDate))},[c.type,c.minDate,c.maxDate]),W.useImperativeHandle(r,()=>Object.assign({reset:U,scrollToDate:I},Z)),c.poppable?Be(nn,{children:[Q(sh,Object.assign({visible:m,className:Re(Sd("popup")),round:c.round,position:c.position,closeable:c.showTitle||c.showSubtitle,closeOnPopstate:c.closeOnPopstate,closeOnClickOverlay:c.closeOnClickOverlay,onClose:Z.close,onClosed:()=>{var q;c.poppable&&JSON.stringify(E.currentDate)!==JSON.stringify(_)&&A({currentDate:_}),(q=c.onClosed)===null||q===void 0||q.call(c)}},{children:X()})),(t=c.children)===null||t===void 0?void 0:t.call(c,_,Z)]}):X()});function eH(e,r){var t;process.env.NODE_ENV==="development"&&(Oc(e)||void 0);const i=CD(e),l=(t=r==null?void 0:r.wait)!==null&&t!==void 0?t:1e3,f=W.useMemo(()=>LI((...c)=>i.current(...c),l,r),[]);return wD(()=>{f.cancel()}),{run:f,cancel:f.cancel,flush:f.flush}}function tH(e,r,t){const[i,l]=W.useState({}),{run:f}=eH(()=>{l({})},t);W.useEffect(()=>f(),r),Rc(e,[i])}const vX="",FT=W.createContext({}),[nH]=wn("checkbox-group"),rH=W.forwardRef((e,r)=>{const[t,i]=fy(),[l,f]=ST({value:e.value,defaultValue:e.defaultValue}),c=(m={})=>{typeof m=="boolean"&&(m={checked:m});const{checked:d,skipDisabled:g}=m,b=t.filter(x=>x.props.bindGroup?x.props.disabled&&g?x.checked:d??!x.checked:!1).map(x=>x.props.name);f(b),e.onChange(b)},h=m=>{var d;f(m),(d=e.onChange)===null||d===void 0||d.call(e,m)};return W.useImperativeHandle(r,()=>({toggleAll:c})),Q(FT.Provider,Object.assign({value:{parent:{props:e},toggle:h,checked:l||[]}},{children:Q("div",Object.assign({className:Re(e.className,nH([e.direction]))},{children:W.Children.toArray(e.children).filter(Boolean).map((m,d)=>{var g;return((g=m.type)===null||g===void 0?void 0:g.displayName)!=="Checkbox"?m:W.cloneElement(m,{ref:i(d)})})}))}))}),[aH]=wn("checkbox"),NT=W.forwardRef((e,r)=>{const t=ta(e,{bindGroup:!0}),i=W.useContext(FT),{parent:l}=i,f=$a(i,["parent"]),[c,h]=ST({value:t.checked,defaultValue:t.defaultChecked}),m=C=>{const{name:b}=t,{max:x}=l.props,_=f.checked.slice();if(C)!(x&&_.length>=x)&&_.indexOf(b)===-1&&(_.push(b),t.bindGroup&&f.toggle(_));else{const k=_.indexOf(b);k!==-1&&(_.splice(k,1),t.bindGroup&&f.toggle(_))}},d=W.useMemo(()=>l&&t.bindGroup?f.checked.indexOf(t.name)!==-1:c,[f.checked,c]),g=(C=!d)=>{var b;l&&t.bindGroup?m(C):(h(C),(b=t.onChange)===null||b===void 0||b.call(t,C))};return W.useImperativeHandle(r,()=>({toggle:g,checked:d,props:t})),Q($I,Object.assign({},t,{bem:aH,role:"checkbox",parent:l,checked:d,className:t.className,bindGroup:t.bindGroup,onToggle:g}))});NT.displayName="Checkbox";const MT=Object.assign(NT,{Group:rH}),xX="",PT=200,BT=300,iH=15;function oH(e){const r=window.getComputedStyle(e),t=r.transform||r.webkitTransform,i=t.slice(7,t.length-1).split(", ")[5];return Number(i)}const[ZC]=wn("picker-column"),lH=W.memo(W.forwardRef((e,r)=>{const{locale:t}=W.useContext(md),{valueKey:i,textKey:l,itemHeight:f,visibleItemCount:c,placeholder:h,value:m}=e,d=W.useMemo(()=>gD(f),[f]),g=W.useMemo(()=>Array.isArray(e.options)&&!e.options.length?[]:h?[{[i]:void 0,[l]:h===!0?t.vanPicker.select:h},...e.options]:e.options,[e.options]),C=W.useRef(null),b=W.useRef(!1),x=W.useRef(0),_=W.useRef(null),k=W.useRef(0),E=W.useRef(0),[A,T,D]=bD({offset:0,duration:0}),R=ED(),N=W.useMemo(()=>d*(+c-1)/2,[d,c]),z=$=>{var X,Z;$=eh($,0,g.length);for(let q=$;q<g.length;q+=1)if(!(!((X=g[q])===null||X===void 0)&&X.disabled))return q;for(let q=$-1;q>=0;q-=1)if(!(!((Z=g[q])===null||Z===void 0)&&Z.disabled))return q;return null},M=$=>{e.onSelect($,e.index)},I=$=>{$=z($)||0;const X=-$*d,Z=()=>{var q;((q=g[$])===null||q===void 0?void 0:q[i])!==m&&M(g[$])};b.current&&X!==D.current.offset?_.current=Z:Z(),T({offset:X})},Y=$=>{$=z($)||0;const X=-$*d;T({offset:X})};th(()=>{if(g.length===0)m!==void 0&&M(void 0);else{let $=g.findIndex(X=>X[i]===m);$<0&&($=0,M(g[0])),Y($)}},[m,JSON.stringify(g)]);const B=$=>{b.current||e.readOnly||(_.current=null,T({duration:PT}),I($))},U=$=>eh(Math.round(-$/d),0,g.length-1),P=($,X)=>{const Z=Math.abs($/X);$=D.current.offset+Z/.003*($<0?-1:1);const q=U($);T({duration:+e.swipeDuration}),I(q)},H=()=>{b.current=!1,T({duration:0}),_.current&&(_.current(),_.current=null)},V=$=>{if(e.readOnly)return;R.start($);let{offset:X}=A;if(b.current){const Z=oH(C.current);X=Math.min(0,Z-N),x.current=X}else x.current=X;T({duration:0,offset:X}),k.current=Date.now(),E.current=x.current,_.current=null},G=$=>{if(e.readOnly)return;R.move($),R.isVertical()&&(b.current=!0);const X=eh(x.current+R.deltaY.current,-(g.length*d),d);T({offset:X});const Z=Date.now();Z-k.current>BT&&(k.current=Z,E.current=X)},ee=()=>{if(e.readOnly||!b.current)return;const $=D.current.offset-E.current,X=Date.now()-k.current;if(X<BT&&Math.abs($)>iH){P($,X);return}const q=U(D.current.offset);T({duration:PT}),I(q),setTimeout(()=>{b.current=!1},0)},ne=()=>{const $={height:`${e.itemHeight}px`};return g.map((X,Z)=>{const{disabled:q}=X,te={role:"button",style:$,tabIndex:q?-1:0,className:Re(ZC("item",{disabled:q,selected:X[i]===m})),onClick:()=>{B(Z)}},oe={className:"rv-ellipsis",children:X[l]};return W.createElement("li",Object.assign({},te,{key:Z}),e.optionRender?e.optionRender(X):Q("div",Object.assign({},oe)))})};return W.useImperativeHandle(r,()=>({stopMomentum:H})),Q("div",Object.assign({className:Re(ZC(),e.className),onTouchStart:V,onTouchMove:G,onTouchEnd:ee,onTouchCancel:ee},{children:Q("ul",Object.assign({ref:C,style:{transform:`translate3d(0, ${A.offset+N}px, 0)`,transitionDuration:`${A.duration}ms`,transitionProperty:A.duration?"all":"none"},className:Re(ZC("wrapper")),onTransitionEnd:H},{children:ne()}))}))}),(e,r)=>!(e.index!==r.index||e.value!==r.value||e.onSelect!==r.onSelect||JSON.stringify(e.options)!==JSON.stringify(r.options)));function sH(e,r){const{textKey:t,valueKey:i,childrenKey:l}=r,f=W.useMemo(()=>{if(e.some(d=>typeof d=="object"&&l in d))return"cascade";const m=e[0]||{};return typeof m=="object"?l in m?"cascade":"object":"plain"},[e,l]),c=W.useMemo(()=>{let h=0;function m(d,g){g>h&&(h=g);const C=g+1;d.forEach(b=>{b[l]&&m(b[l],C)})}return m(e,1),h},[e,l]);return f!=="cascade"?e:h=>{const m=[];let d=e,g=0;for(;;){m.push(d.map(x=>{var _;return{[t]:x[t],[i]:(_=x[i])!==null&&_!==void 0?_:x[t]}}));const C=h[g],b=d.find(x=>{var _;return((_=x[i])!==null&&_!==void 0?_:x[t])===C});if(!b||!b[l])break;d=b[l],g++}for(;g<c-1;)m.push([]),g++;return m}}function XC(e){let r=null;return()=>(r===null&&(r=e()),r)}function uH(e,r,t){const{textKey:i,valueKey:l}=r,f=XC(()=>{let d=typeof e=="function"?e(t):e;return Array.isArray(d[0])||(d=[d]),d.map(g=>g.map(C=>typeof C=="string"?{[i]:C,[l]:C}:(l in C||(C[l]=C[i]),C)))}),c=XC(()=>t.map((d,g)=>{var C;const b=f()[g];return b?(C=b.find(x=>x[l]===d))!==null&&C!==void 0?C:void 0:null})),h=XC(()=>t.map((d,g)=>{var C;const b=f()[g];return b&&(C=b.findIndex(x=>x[l]===d))!==null&&C!==void 0?C:null}));return{get columns(){return f()},get items(){return c()},get indexes(){return h()}}}function LT(e,r,t){const i=sH(e,r);return W.useMemo(()=>uH(i,r,t),[e,r,t])}const[cs]=wn("picker");function cH(e){const{locale:r}=W.useContext(md),t=W.useRef(null),[i,l]=fy(),{text:f,value:c,children:h}=Jp({text:"text",value:"value",children:"children"},e.columnsFieldNames),[m,d]=W.useState(e.value);W.useEffect(()=>{e.value!==void 0&&JSON.stringify(m)!==JSON.stringify(e.value)&&d(e.value)},[e.value]);const g=LT(e.columns,{textKey:f,valueKey:c,childrenKey:h},m),{columns:C,items:b,indexes:x}=g;tH(()=>{var I;JSON.stringify(e.value)!==JSON.stringify(m)&&((I=e.onChange)===null||I===void 0||I.call(e,m,b,x))},[m],{wait:100,leading:!1,trailing:!0});const _=W.useMemo(()=>gD(e.itemHeight),[e.itemHeight]),k=(I,Y)=>{d(B=>{const U=[...B];return U[Y]=I==null?void 0:I[c],U})},E=()=>{var I;i.forEach(Y=>Y.stopMomentum()),(I=e.onConfirm)===null||I===void 0||I.call(e,m,b,x)},A=()=>{var I;(I=e.onCancel)===null||I===void 0||I.call(e)},T=()=>e.title?Q("div",Object.assign({className:Re(cs("title"),"rv-ellipsis")},{children:e.title})):null,D=()=>{const I=e.cancelButtonText||r.cancel;return Q("button",Object.assign({type:"button",className:Re(cs("cancel")),onClick:A},{children:I}))},R=()=>{const I=e.confirmButtonText||r.confirm;return Q("button",Object.assign({type:"button",className:Re(cs("confirm")),onClick:E},{children:I}))},N=()=>e.showToolbar?Q("div",Object.assign({className:Re(cs("toolbar"))},{children:e.toolbar||Be(nn,{children:[D(),T(),R()]})})):null,z=()=>C.map((I,Y)=>{const B=Array.isArray(e.placeholder)?e.placeholder[Y]:e.placeholder;return Q(lH,{textKey:f,valueKey:c,ref:l(Y),placeholder:B,optionRender:e.optionRender,readOnly:e.readOnly,value:m[Y],itemHeight:_,index:Y,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,options:I,onSelect:k},Y)}),M=()=>{const I=_*e.visibleItemCount,Y={height:`${_}px`},B={height:`${I}px`},U={backgroundSize:`100% ${(I-_)/2}px`};return Be("div",Object.assign({ref:t,className:Re(cs("columns")),style:B},{children:[z(),Q("div",{className:Re(cs("mask")),style:U}),Q("div",{className:Re(Sz,cs("frame")),style:Y})]}))};return Z2("touchmove",K2,{target:t.current}),Be("div",Object.assign({className:Re(cs(),e.className)},{children:[e.toolbarPosition==="top"?N():null,e.loading?Q(eC,{className:Re(cs("loading"))}):null,e.columnsTop,M(),e.columnsBottom,e.toolbarPosition==="bottom"?N():null]}))}function fH(e,r){const t=ta(e,{columns:[],itemHeight:44,visibleItemCount:5,swipeDuration:300,showToolbar:!0,placeholder:!0,toolbarPosition:"top"}),{visible:i,popup:l,children:f,defaultValue:c=[]}=t,h=$a(t,["visible","popup","children","defaultValue"]),[m,d]=nh({value:i,defaultValue:!1,onChange:P=>{var H;P===!1&&((H=t.onClose)===null||H===void 0||H.call(t))}}),g={toggle:()=>{l&&d(P=>!P)},open:()=>{l&&d(!0)},close:()=>{l&&d(!1)}};W.useImperativeHandle(r,()=>g);const C=Array.isArray(t.value)?t.value:t.value!==void 0?[t.value]:void 0,b=Array.isArray(c)?c:c!==void 0?[c]:[],{text:x,value:_,children:k}=Jp({text:"text",value:"value",children:"children"},t.columnsFieldNames),E=W.useMemo(()=>{const P=t.columns[0]||{};return!(Array.isArray(P)||typeof P=="object"&&k in P)},[t.columns,k]),A=P=>E?P==null?void 0:P[0]:P,[T,D]=nh({value:C,defaultValue:b}),R=LT(t.columns,{textKey:x,valueKey:_,childrenKey:k},T),[N,z]=W.useState(T);W.useEffect(()=>{l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[m]),W.useEffect(()=>{!l&&JSON.stringify(N)!==JSON.stringify(T)&&z(T)},[T]);const M=(P,H,V)=>{var G;D(N,!0),(G=t.onConfirm)===null||G===void 0||G.call(t,A(P),A(H),A(V)),l&&g.close()},I=()=>{var P;(P=t.onCancel)===null||P===void 0||P.call(t),l&&g.close()},Y=TD((P,H,V)=>{var G,ee;z(P),l?m&&((G=t.onChange)===null||G===void 0||G.call(t,A(P),A(H),A(V))):(ee=t.onChange)===null||ee===void 0||ee.call(t,A(P),A(H),A(V))}),B=fd(l)?Object.assign({closeOnClickOverlay:!0},l):{closeOnClickOverlay:!0},U=Q(cH,Object.assign({},h,{value:N,onCancel:I,onConfirm:M,onChange:Y}));return l?Be(nn,{children:[Q(sh,Object.assign({round:!0,position:"bottom",visible:m,closeOnClickOverlay:!0,onClickOverlay:()=>{B!=null&&B.closeOnClickOverlay&&d(!1)}},B,{children:U})),f==null?void 0:f(A(T),A(R.items),g)]}):U}const JC=W.forwardRef(fH);function dH(e){return Object.prototype.toString.call(e)==="[object Date]"&&!mD(e.getTime())}const pH=W.forwardRef((e,r)=>{const t=ta(e,{type:"datetime",placeholder:!1,minDate:hH,maxDate:vH,formatter:(M,I)=>I}),{value:i,defaultValue:l,formatter:f,columnsOrder:c,type:h,filter:m,minDate:d,maxDate:g}=t,C=$a(t,["value","defaultValue","formatter","columnsOrder","type","filter","minDate","maxDate"]),b=M=>(dH(M)||(M=new Date),M=Math.max(M,d.getTime()),M=Math.min(M,g.getTime()),new Date(M)),[x,_,k]=X2(()=>b(i||l)),E=(M,I)=>{const Y=t[`${M}Date`],B=Y.getFullYear();let U=1,P=1,H=0,V=0;return M==="max"&&(U=12,P=QC(I.getFullYear(),I.getMonth()+1),H=23,V=59),I.getFullYear()===B&&(U=Y.getMonth()+1,I.getMonth()+1===U&&(P=Y.getDate(),I.getDate()===P&&(H=Y.getHours(),I.getHours()===H&&(V=Y.getMinutes())))),{[`${M}Year`]:B,[`${M}Month`]:U,[`${M}Date`]:P,[`${M}Hour`]:H,[`${M}Minute`]:V}},A=W.useMemo(()=>{const{maxYear:M,maxDate:I,maxMonth:Y,maxHour:B,maxMinute:U}=E("max",k.current),{minYear:P,minDate:H,minMonth:V,minHour:G,minMinute:ee}=E("min",k.current);let ne=[{type:"year",range:[P,M]},{type:"month",range:[V,Y]},{type:"day",range:[H,I]},{type:"hour",range:[G,B]},{type:"minute",range:[ee,U]}];switch(h){case"date":ne=ne.slice(0,3);break;case"year-month":ne=ne.slice(0,2);break;case"month-day":ne=ne.slice(1,3);break;case"datehour":ne=ne.slice(0,4);break}if(c){const $=c.concat(ne.map(X=>X.type));ne.sort((X,Z)=>$.indexOf(X.type)-$.indexOf(Z.type))}return ne.map(({type:$,range:X})=>{let Z=RT(X[1]-X[0]+1,q=>pl(X[0]+q));return m&&(Z=m($,Z)),{type:$,values:Z}})},[c,k.current,d,g]),T=W.useMemo(()=>A.map(M=>M.values.map(I=>f(M.type,I))),[A,f]),D=W.useMemo(()=>{const M=t.popup?b(k.current):k.current;return A.map(Y=>{switch(Y.type){case"year":return f("year",`${M.getFullYear()}`);case"month":return f("month",pl(M.getMonth()+1));case"day":return f("day",pl(M.getDate()));case"hour":return f("hour",pl(M.getHours()));case"minute":return f("minute",pl(M.getMinutes()));default:return""}})},[t.value,k.current,b]),R=M=>{const{type:I}=t,Y=ee=>{let ne=0;A.forEach((X,Z)=>{ee===X.type&&(ne=Z)});const{values:$}=A[ne];return GI($[M[ne]])};let B=null,U=null,P=null;I==="month-day"?(B=(x||d).getFullYear(),U=Y("month"),P=Y("day")):(B=Y("year"),U=Y("month"),P=I==="year-month"?1:Y("day"));const H=QC(B,U);P=P>H?H:P;let V=0,G=0;return I==="datehour"&&(V=+Y("hour")),I==="datetime"&&(V=+Y("hour"),G=+Y("minute")),b(new Date(B,U-1,P,V,G))},N=(M,I,Y)=>{var B;const U=R(Y);_(U),(B=t.onChange)===null||B===void 0||B.call(t,U)},z=()=>{var M;(M=t.onConfirm)===null||M===void 0||M.call(t,x)};return Rc(()=>{const M=b(i);M&&M.valueOf()!==(x==null?void 0:x.valueOf())&&_(M)},[i,m,d,g]),Q(JC,Object.assign({},C,{value:D,ref:r,columns:T,onChange:N,onConfirm:z,onCancel:t.onCancel},{children:(M,I,Y)=>{var B;return(B=t.children)===null||B===void 0?void 0:B.call(t,i||l,I,Y)}}))}),zT=new Date().getFullYear(),hH=new Date(zT-10,0,1),vH=new Date(zT+10,11,31),mH=pH,gH=W.forwardRef((e,r)=>{const t=ta(e,{minHour:0,maxHour:23,minMinute:0,maxMinute:59,placeholder:!1,defaultValue:"",formatter:(z,M)=>M}),{value:i,defaultValue:l,formatter:f,filter:c,minHour:h,maxHour:m,minMinute:d,maxMinute:g}=t,C=$a(t,["value","defaultValue","formatter","filter","minHour","maxHour","minMinute","maxMinute"]),b=z=>{z||(z=`${pl(h)}:${pl(d)}`);let[M,I]=z.split(":");return M=pl(eh(M,+h,+m)),I=pl(eh(I,+d,+g)),`${M}:${I}`},[x,_]=W.useState(()=>b(i===void 0?l:i)),k=W.useMemo(()=>[{type:"hour",range:[+h,+m]},{type:"minute",range:[+d,+g]}],[h,m,d,g]),E=W.useMemo(()=>k.map(({type:z,range:M})=>{let I=RT(M[1]-M[0]+1,Y=>pl(M[0]+Y));return c&&(I=c(z,I)),{type:z,values:I}}),[k]),A=W.useMemo(()=>E.map(z=>z.values.map(M=>f(z.type,M))),[E]),T=W.useMemo(()=>{const z=(t.popup?b(t.value):x).split(":");return[f("hour",z[0]),f("minute",z[1])]},[t.value,x,b]),D=()=>{var z;(z=t.onConfirm)===null||z===void 0||z.call(t,x)},R=()=>{var z;(z=t.onCancel)===null||z===void 0||z.call(t)},N=z=>{var M;const I=b(z.join(":"));_(I),(M=t.onChange)===null||M===void 0||M.call(t,I)};return Rc(()=>{const z=b(x);_(z)},[c,h,m,d,g]),Rc(()=>{const z=b(i);z!==x&&_(z)},[i]),Q(JC,Object.assign({},C,{ref:r,columns:A,value:T,onChange:N,onConfirm:D,onCancel:R},{children:(z,M,I)=>{var Y;return(Y=t.children)===null||Y===void 0?void 0:Y.call(t,i,M,I)}}))}),[UT]=wn("datetime-picker"),ew=W.forwardRef((e,r)=>e.type==="time"?Q(gH,Object.assign({ref:r,className:Re(UT())},e)):Q(mH,Object.assign({ref:r,className:Re(UT())},e)));function tw(e){return Array.isArray(e)?e:[e]}const SX="";function jT(e,r){this.v=e,this.k=r}function ka(e,r,t,i){var l=Object.defineProperty;try{l({},"",{})}catch{l=0}ka=function(c,h,m,d){function g(C,b){ka(c,C,function(x){return this._invoke(C,b,x)})}h?l?l(c,h,{value:m,enumerable:!d,configurable:!d,writable:!d}):c[h]=m:(g("next",0),g("throw",1),g("return",2))},ka(e,r,t,i)}function nw(){var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function f(x,_,k,E){var A=_&&_.prototype instanceof h?_:h,T=Object.create(A.prototype);return ka(T,"_invoke",function(D,R,N){var z,M,I,Y=0,B=N||[],U=!1,P={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(G,ee){return z=G,M=0,I=e,P.n=ee,c}};function H(V,G){for(M=V,I=G,r=0;!U&&Y&&!ee&&r<B.length;r++){var ee,ne=B[r],$=P.p,X=ne[2];V>3?(ee=X===G)&&(I=ne[(M=ne[4])?5:(M=3,3)],ne[4]=ne[5]=e):ne[0]<=$&&((ee=V<2&&$<ne[1])?(M=0,P.v=G,P.n=ne[1]):$<X&&(ee=V<3||ne[0]>G||G>X)&&(ne[4]=V,ne[5]=G,P.n=X,M=0))}if(ee||V>1)return c;throw U=!0,G}return function(V,G,ee){if(Y>1)throw TypeError("Generator is already running");for(U&&G===1&&H(G,ee),M=G,I=ee;(r=M<2?e:I)||!U;){z||(M?M<3?(M>1&&(P.n=-1),H(M,I)):P.n=I:P.v=I);try{if(Y=2,z){if(M||(V="next"),r=z[V]){if(!(r=r.call(z,I)))throw TypeError("iterator result is not an object");if(!r.done)return r;I=r.value,M<2&&(M=0)}else M===1&&(r=z.return)&&r.call(z),M<2&&(I=TypeError("The iterator does not provide a '"+V+"' method"),M=1);z=e}else if((r=(U=P.n<0)?I:D.call(R,P))!==c)break}catch(ne){z=e,M=1,I=ne}finally{Y=1}}return{value:r,done:U}}}(x,k,E),!0),T}var c={};function h(){}function m(){}function d(){}r=Object.getPrototypeOf;var g=[][i]?r(r([][i]())):(ka(r={},i,function(){return this}),r),C=d.prototype=h.prototype=Object.create(g);function b(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,d):(x.__proto__=d,ka(x,l,"GeneratorFunction")),x.prototype=Object.create(C),x}return m.prototype=d,ka(C,"constructor",d),ka(d,"constructor",m),m.displayName="GeneratorFunction",ka(d,l,"GeneratorFunction"),ka(C),ka(C,l,"Generator"),ka(C,i,function(){return this}),ka(C,"toString",function(){return"[object Generator]"}),(nw=function(){return{w:f,m:b}})()}function hy(e,r){function t(l,f,c,h){try{var m=e[l](f),d=m.value;return d instanceof jT?r.resolve(d.v).then(function(g){t("next",g,c,h)},function(g){t("throw",g,c,h)}):r.resolve(d).then(function(g){m.value=g,c(m)},function(g){return t("throw",g,c,h)})}catch(g){h(g)}}var i;this.next||(ka(hy.prototype),ka(hy.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ka(this,"_invoke",function(l,f,c){function h(){return new r(function(m,d){t(l,c,m,d)})}return i=i?i.then(h,h):h()},!0)}function IT(e,r,t,i,l){return new hy(nw().w(e,r,t,i),l||Promise)}function yH(e,r,t,i,l){var f=IT(e,r,t,i,l);return f.next().then(function(c){return c.done?c.value:f.next()})}function xH(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function l(){for(;t.length;)if((i=t.pop())in r)return l.value=i,l.done=!1,l;return l.done=!0,l}}function HT(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(Br(e)+" is not iterable")}function ro(){var e=nw(),r=e.m(ro),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(c){var h=typeof c=="function"&&c.constructor;return!!h&&(h===t||(h.displayName||h.name)==="GeneratorFunction")}var l={throw:1,return:2,break:3,continue:3};function f(c){var h,m;return function(d){h||(h={stop:function(){return m(d.a,2)},catch:function(){return d.v},abrupt:function(C,b){return m(d.a,l[C],b)},delegateYield:function(C,b,x){return h.resultName=b,m(d.d,HT(C),x)},finish:function(C){return m(d.f,C)}},m=function(C,b,x){d.p=h.prev,d.n=h.next;try{return C(b,x)}finally{h.next=d.n}}),h.resultName&&(h[h.resultName]=d.v,h.resultName=void 0),h.sent=d.v,h.next=d.n;try{return c.call(this,h)}finally{d.p=h.prev,d.n=h.next}}}return(ro=function(){return{wrap:function(m,d,g,C){return e.w(f(m),d,g,C&&C.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(m,d){return new jT(m,d)},AsyncIterator:hy,async:function(m,d,g,C,b){return(i(d)?IT:yH)(f(m),d,g,C,b)},keys:xH,values:HT}})()}function VT(e,r,t,i,l,f,c){try{var h=e[f](c),m=h.value}catch(d){return void t(d)}h.done?r(m):Promise.resolve(m).then(i,l)}function Bh(e){return function(){var r=this,t=arguments;return new Promise(function(i,l){var f=e.apply(r,t);function c(m){VT(f,i,l,c,h,"next",m)}function h(m){VT(f,i,l,c,h,"throw",m)}c(void 0)})}}function bH(e){if(Array.isArray(e))return Cb(e)}function $T(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
197
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ln(e){return bH(e)||$T(e)||wb(e)||CH()}function rw(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function YT(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Y4(i.key),i)}}function aw(e,r,t){return r&&YT(e.prototype,r),t&&YT(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wH(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Pg(e,r)}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vy(e)}function qT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qT=function(){return!!e})()}function _H(e,r){if(r&&(Br(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hn(e)}function SH(e){var r=qT();return function(){var t,i=vy(e);if(r){var l=vy(this).constructor;t=Reflect.construct(i,arguments,l)}else t=i.apply(this,arguments);return _H(this,t)}}function iw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return W.Children.forEach(e,function(i){i==null&&!r.keepEmpty||(Array.isArray(i)?t=t.concat(iw(i)):u9(i)&&i.props?t=t.concat(iw(i.props.children,r)):t.push(i))}),t}function GT(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function l(f,c){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=i.has(f);if(Er(!m,"Warning: There may be circular references"),m)return!1;if(f===c)return!0;if(t&&h>1)return!1;i.add(f);var d=h+1;if(Array.isArray(f)){if(!Array.isArray(c)||f.length!==c.length)return!1;for(var g=0;g<f.length;g++)if(!l(f[g],c[g],d))return!1;return!0}if(f&&c&&Br(f)==="object"&&Br(c)==="object"){var C=Object.keys(f);return C.length!==Object.keys(c).length?!1:C.every(function(b){return l(f[b],c[b],d)})}return!1}return l(e,r)}var zc="RC_FORM_INTERNAL_HOOKS",Rn=function(){Er(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},vu=Ne.createContext({getFieldValue:Rn,getFieldsValue:Rn,getFieldError:Rn,getFieldWarning:Rn,getFieldsError:Rn,isFieldsTouched:Rn,isFieldTouched:Rn,isFieldValidating:Rn,isFieldsValidating:Rn,resetFields:Rn,setFields:Rn,setFieldValue:Rn,setFieldsValue:Rn,validateFields:Rn,submit:Rn,getInternalHooks:function(){return Rn(),{dispatch:Rn,initEntityValue:Rn,registerField:Rn,useSubscribe:Rn,setInitialValues:Rn,destroyForm:Rn,setCallbacks:Rn,registerWatch:Rn,getFields:Rn,setValidateMessages:Rn,setPreserve:Rn,getInitialValue:Rn}}}),my=Ne.createContext(null);function ow(e){return e==null?[]:Array.isArray(e)?e:[e]}function EH(e){return e&&!!e._init}function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Uc.apply(this,arguments)}function DH(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Lh(e,r)}function lw(e){return lw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lw(e)}function Lh(e,r){return Lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},Lh(e,r)}function kH(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gy(e,r,t){return kH()?gy=Reflect.construct.bind():gy=function(l,f,c){var h=[null];h.push.apply(h,f);var m=Function.bind.apply(l,h),d=new m;return c&&Lh(d,c.prototype),d},gy.apply(null,arguments)}function TH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sw(e){var r=typeof Map=="function"?new Map:void 0;return sw=function(i){if(i===null||!TH(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(i))return r.get(i);r.set(i,l)}function l(){return gy(i,arguments,lw(this).constructor)}return l.prototype=Object.create(i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),Lh(l,i)},sw(e)}var AH=/%[sdj%]/g,KT=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(KT=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(i){return typeof i=="string"})});function uw(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var i=t.field;r[i]=r[i]||[],r[i].push(t)}),r}function Li(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];var l=0,f=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var c=e.replace(AH,function(h){if(h==="%%")return"%";if(l>=f)return h;switch(h){case"%s":return String(t[l++]);case"%d":return Number(t[l++]);case"%j":try{return JSON.stringify(t[l++])}catch{return"[Circular]"}break;default:return h}});return c}return e}function OH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zr(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||OH(r)&&typeof e=="string"&&!e)}function RH(e,r,t){var i=[],l=0,f=e.length;function c(h){i.push.apply(i,h||[]),l++,l===f&&t(i)}e.forEach(function(h){r(h,c)})}function WT(e,r,t){var i=0,l=e.length;function f(c){if(c&&c.length){t(c);return}var h=i;i=i+1,h<l?r(e[h],f):t([])}f([])}function FH(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,e[t]||[])}),r}var QT=function(e){DH(r,e);function r(t,i){var l;return l=e.call(this,"Async Validation Error")||this,l.errors=t,l.fields=i,l}return r}(sw(Error));function NH(e,r,t,i,l){if(r.first){var f=new Promise(function(b,x){var _=function(A){return i(A),A.length?x(new QT(A,uw(A))):b(l)},k=FH(e);WT(k,t,_)});return f.catch(function(b){return b}),f}var c=r.firstFields===!0?Object.keys(e):r.firstFields||[],h=Object.keys(e),m=h.length,d=0,g=[],C=new Promise(function(b,x){var _=function(E){if(g.push.apply(g,E),d++,d===m)return i(g),g.length?x(new QT(g,uw(g))):b(l)};h.length||(i(g),b(l)),h.forEach(function(k){var E=e[k];c.indexOf(k)!==-1?WT(E,t,_):RH(E,t,_)})});return C.catch(function(b){return b}),C}function MH(e){return!!(e&&e.message!==void 0)}function PH(e,r){for(var t=e,i=0;i<r.length;i++){if(t==null)return t;t=t[r[i]]}return t}function ZT(e,r){return function(t){var i;return e.fullFields?i=PH(r,e.fullFields):i=r[t.field||e.fullField],MH(t)?(t.field=t.field||e.fullField,t.fieldValue=i,t):{message:typeof t=="function"?t():t,fieldValue:i,field:t.field||e.fullField}}}function XT(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var i=r[t];typeof i=="object"&&typeof e[t]=="object"?e[t]=Uc({},e[t],i):e[t]=i}}return e}var JT=function(r,t,i,l,f,c){r.required&&(!i.hasOwnProperty(r.field)||zr(t,c||r.type))&&l.push(Li(f.messages.required,r.fullField))},BH=function(r,t,i,l,f){(/^\s+$/.test(t)||t==="")&&l.push(Li(f.messages.whitespace,r.fullField))},yy,LH=function(){if(yy)return yy;var e="[a-fA-F\\d:]",r=function(R){return R&&R.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",l=(`
198
198
  (?:
199
199
  (?:`+i+":){7}(?:"+i+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
@@ -205,4 +205,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
205
205
  (?:`+i+":){1}(?:(?::"+i+"){0,4}:"+t+"|(?::"+i+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
206
206
  (?::(?:(?::`+i+"){0,5}:"+t+"|(?::"+i+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
207
207
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
208
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),f=new RegExp("(?:^"+t+"$)|(?:^"+l+"$)"),c=new RegExp("^"+t+"$"),h=new RegExp("^"+l+"$"),m=function(R){return R&&R.exact?f:new RegExp("(?:"+r(R)+t+r(R)+")|(?:"+r(R)+l+r(R)+")","g")};m.v4=function(D){return D&&D.exact?c:new RegExp(""+r(D)+t+r(D),"g")},m.v6=function(D){return D&&D.exact?h:new RegExp(""+r(D)+l+r(D),"g")};var d="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",C=m.v4().source,b=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",k="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",A='(?:[/?#][^\\s"]*)?',T="(?:"+d+"|www\\.)"+g+"(?:localhost|"+C+"|"+b+"|"+x+_+k+")"+E+A;return yy=new RegExp("(?:^"+T+"$)","i"),yy},e3={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},zh={integer:function(r){return zh.number(r)&&parseInt(r,10)===r},float:function(r){return zh.number(r)&&!zh.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!zh.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(e3.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(LH())},hex:function(r){return typeof r=="string"&&!!r.match(e3.hex)}},zH=function(r,t,i,l,f){if(r.required&&t===void 0){JT(r,t,i,l,f);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],h=r.type;c.indexOf(h)>-1?zh[h](t)||l.push(Li(f.messages.types[h],r.fullField,r.type)):h&&typeof t!==r.type&&l.push(Li(f.messages.types[h],r.fullField,r.type))},UH=function(r,t,i,l,f){var c=typeof r.len=="number",h=typeof r.min=="number",m=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=t,C=null,b=typeof t=="number",x=typeof t=="string",_=Array.isArray(t);if(b?C="number":x?C="string":_&&(C="array"),!C)return!1;_&&(g=t.length),x&&(g=t.replace(d,"_").length),c?g!==r.len&&l.push(Li(f.messages[C].len,r.fullField,r.len)):h&&!m&&g<r.min?l.push(Li(f.messages[C].min,r.fullField,r.min)):m&&!h&&g>r.max?l.push(Li(f.messages[C].max,r.fullField,r.max)):h&&m&&(g<r.min||g>r.max)&&l.push(Li(f.messages[C].range,r.fullField,r.min,r.max))},Ed="enum",jH=function(r,t,i,l,f){r[Ed]=Array.isArray(r[Ed])?r[Ed]:[],r[Ed].indexOf(t)===-1&&l.push(Li(f.messages[Ed],r.fullField,r[Ed].join(", ")))},IH=function(r,t,i,l,f){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var c=new RegExp(r.pattern);c.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},Kt={required:JT,whitespace:BH,type:zH,range:UH,enum:jH,pattern:IH},HH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t,"string")&&!r.required)return i();Kt.required(r,t,l,c,f,"string"),zr(t,"string")||(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f),Kt.pattern(r,t,l,c,f),r.whitespace===!0&&Kt.whitespace(r,t,l,c,f))}i(c)},VH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt.type(r,t,l,c,f)}i(c)},$H=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(t===""&&(t=void 0),zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},YH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt.type(r,t,l,c,f)}i(c)},qH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),zr(t)||Kt.type(r,t,l,c,f)}i(c)},GH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},KH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},WH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(t==null&&!r.required)return i();Kt.required(r,t,l,c,f,"array"),t!=null&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},QH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt.type(r,t,l,c,f)}i(c)},ZH="enum",XH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt[ZH](r,t,l,c,f)}i(c)},JH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t,"string")&&!r.required)return i();Kt.required(r,t,l,c,f),zr(t,"string")||Kt.pattern(r,t,l,c,f)}i(c)},eV=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t,"date")&&!r.required)return i();if(Kt.required(r,t,l,c,f),!zr(t,"date")){var m;t instanceof Date?m=t:m=new Date(t),Kt.type(r,m,l,c,f),m&&Kt.range(r,m.getTime(),l,c,f)}}i(c)},tV=function(r,t,i,l,f){var c=[],h=Array.isArray(t)?"array":typeof t;Kt.required(r,t,l,c,f,h),i(c)},cw=function(r,t,i,l,f){var c=r.type,h=[],m=r.required||!r.required&&l.hasOwnProperty(r.field);if(m){if(zr(t,c)&&!r.required)return i();Kt.required(r,t,l,h,f,c),zr(t,c)||Kt.type(r,t,l,h,f)}i(h)},nV=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f)}i(c)},Uh={string:HH,method:VH,number:$H,boolean:YH,regexp:qH,integer:GH,float:KH,array:WH,object:QH,enum:XH,pattern:JH,date:eV,url:cw,hex:cw,email:cw,required:tV,any:nV};function fw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var dw=fw(),jh=function(){function e(t){this.rules=null,this._messages=dw,this.define(t)}var r=e.prototype;return r.define=function(i){var l=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(f){var c=i[f];l.rules[f]=Array.isArray(c)?c:[c]})},r.messages=function(i){return i&&(this._messages=XT(fw(),i)),this._messages},r.validate=function(i,l,f){var c=this;l===void 0&&(l={}),f===void 0&&(f=function(){});var h=i,m=l,d=f;if(typeof m=="function"&&(d=m,m={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,h),Promise.resolve(h);function g(k){var E=[],A={};function T(R){if(Array.isArray(R)){var N;E=(N=E).concat.apply(N,R)}else E.push(R)}for(var D=0;D<k.length;D++)T(k[D]);E.length?(A=uw(E),d(E,A)):d(null,h)}if(m.messages){var C=this.messages();C===dw&&(C=fw()),XT(C,m.messages),m.messages=C}else m.messages=this.messages();var b={},x=m.keys||Object.keys(this.rules);x.forEach(function(k){var E=c.rules[k],A=h[k];E.forEach(function(T){var D=T;typeof D.transform=="function"&&(h===i&&(h=Uc({},h)),A=h[k]=D.transform(A)),typeof D=="function"?D={validator:D}:D=Uc({},D),D.validator=c.getValidationMethod(D),D.validator&&(D.field=k,D.fullField=D.fullField||k,D.type=c.getType(D),b[k]=b[k]||[],b[k].push({rule:D,value:A,source:h,field:k}))})});var _={};return NH(b,m,function(k,E){var A=k.rule,T=(A.type==="object"||A.type==="array")&&(typeof A.fields=="object"||typeof A.defaultField=="object");T=T&&(A.required||!A.required&&k.value),A.field=k.field;function D(z,M){return Uc({},M,{fullField:A.fullField+"."+z,fullFields:A.fullFields?[].concat(A.fullFields,[z]):[z]})}function R(z){z===void 0&&(z=[]);var M=Array.isArray(z)?z:[z];!m.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&A.message!==void 0&&(M=[].concat(A.message));var I=M.map(ZT(A,h));if(m.first&&I.length)return _[A.field]=1,E(I);if(!T)E(I);else{if(A.required&&!k.value)return A.message!==void 0?I=[].concat(A.message).map(ZT(A,h)):m.error&&(I=[m.error(A,Li(m.messages.required,A.field))]),E(I);var Y={};A.defaultField&&Object.keys(k.value).map(function(P){Y[P]=A.defaultField}),Y=Uc({},Y,k.rule.fields);var B={};Object.keys(Y).forEach(function(P){var H=Y[P],V=Array.isArray(H)?H:[H];B[P]=V.map(D.bind(null,P))});var U=new e(B);U.messages(m.messages),k.rule.options&&(k.rule.options.messages=m.messages,k.rule.options.error=m.error),U.validate(k.value,k.rule.options||m,function(P){var H=[];I&&I.length&&H.push.apply(H,I),P&&P.length&&H.push.apply(H,P),E(H.length?H:null)})}}var N;if(A.asyncValidator)N=A.asyncValidator(A,k.value,R,k.source,m);else if(A.validator){try{N=A.validator(A,k.value,R,k.source,m)}catch(z){console.error==null,m.suppressValidatorError||setTimeout(function(){throw z},0),R(z.message)}N===!0?R():N===!1?R(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||(A.fullField||A.field)+" fails"):N instanceof Array?R(N):N instanceof Error&&R(N.message)}N&&N.then&&N.then(function(){return R()},function(z){return R(z)})},function(k){g(k)},h)},r.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!Uh.hasOwnProperty(i.type))throw new Error(Li("Unknown rule type %s",i.type));return i.type||"string"},r.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var l=Object.keys(i),f=l.indexOf("message");return f!==-1&&l.splice(f,1),l.length===1&&l[0]==="required"?Uh.required:Uh[this.getType(i)]||void 0},e}();jh.register=function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Uh[r]=t},jh.warning=KT,jh.messages=dw,jh.validators=Uh;var zi="'${name}' is not a valid ${type}",t3={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zi,method:zi,array:zi,object:zi,number:zi,date:zi,boolean:zi,integer:zi,float:zi,regexp:zi,email:zi,url:zi,hex:zi},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function rV(e){return V4(e)||$T(e)||wb(e)||$4()}function gl(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function n3(e,r,t,i){if(!r.length)return t;var l=rV(r),f=l[0],c=l.slice(1),h;return!e&&typeof f=="number"?h=[]:Array.isArray(e)?h=ln(e):h=Ft({},e),i&&t===void 0&&c.length===1?delete h[f][c[0]]:h[f]=n3(h[f],c,t,i),h}function Eo(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!gl(e,r.slice(0,-1))?e:n3(e,r,t,i)}function aV(e){return Br(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function r3(e){return Array.isArray(e)?[]:{}}var iV=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ih(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r3(r[0]);return r.forEach(function(l){function f(c,h){var m=new Set(h),d=gl(l,c),g=Array.isArray(d);if(g||aV(d)){if(!m.has(d)){m.add(d);var C=gl(i,c);g?i=Eo(i,c,[]):(!C||Br(C)!=="object")&&(i=Eo(i,c,r3(d))),iV(d).forEach(function(b){f([].concat(ln(c),[b]),m)})}}else i=Eo(i,c,d)}f([])}),i}var a3=jh;function oV(e,r){return e.replace(/\$\{\w+\}/g,function(t){var i=t.slice(2,-1);return r[i]})}var i3="CODE_LOGIC_ERROR";function pw(e,r,t,i,l){return hw.apply(this,arguments)}function hw(){return hw=Bh(ro().mark(function e(r,t,i,l,f){var c,h,m,d,g,C,b,x,_;return ro().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=Ft({},i),delete c.ruleIndex,a3.warning=function(){},c.validator&&(h=c.validator,c.validator=function(){try{return h.apply(void 0,arguments)}catch{return Promise.reject(i3)}}),m=null,c&&c.type==="array"&&c.defaultField&&(m=c.defaultField,delete c.defaultField),d=new a3(Le({},r,[c])),g=Ih(t3,l.validateMessages),d.messages(g),C=[],E.prev=10,E.next=13,Promise.resolve(d.validate(Le({},r,t),Ft({},l)));case 13:E.next=18;break;case 15:E.prev=15,E.t0=E.catch(10),E.t0.errors&&(C=E.t0.errors.map(function(A,T){var D=A.message,R=D===i3?g.default:D;return Ne.isValidElement(R)?Ne.cloneElement(R,{key:"error_".concat(T)}):R}));case 18:if(!(!C.length&&m)){E.next=23;break}return E.next=21,Promise.all(t.map(function(A,T){return pw("".concat(r,".").concat(T),A,m,l,f)}));case 21:return b=E.sent,E.abrupt("return",b.reduce(function(A,T){return[].concat(ln(A),ln(T))},[]));case 23:return x=Ft(Ft({},i),{},{name:r,enum:(i.enum||[]).join(", ")},f),_=C.map(function(A){return typeof A=="string"?oV(A,x):A}),E.abrupt("return",_);case 26:case"end":return E.stop()}},e,null,[[10,15]])})),hw.apply(this,arguments)}function lV(e,r,t,i,l,f){var c=e.join("."),h=t.map(function(g,C){var b=g.validator,x=Ft(Ft({},g),{},{ruleIndex:C});return b&&(x.validator=function(_,k,E){var A=!1,T=function(){for(var N=arguments.length,z=new Array(N),M=0;M<N;M++)z[M]=arguments[M];Promise.resolve().then(function(){Er(!A,"Your validator function has already return a promise. `callback` will be ignored."),A||E.apply(void 0,z)})},D=b(_,k,T);A=D&&typeof D.then=="function"&&typeof D.catch=="function",Er(A,"`callback` is deprecated. Please return a promise instead."),A&&D.then(function(){E()}).catch(function(R){E(R||" ")})}),x}).sort(function(g,C){var b=g.warningOnly,x=g.ruleIndex,_=C.warningOnly,k=C.ruleIndex;return!!b==!!_?x-k:b?1:-1}),m;if(l===!0)m=new Promise(function(){var g=Bh(ro().mark(function C(b,x){var _,k,E;return ro().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:_=0;case 1:if(!(_<h.length)){T.next=12;break}return k=h[_],T.next=5,pw(c,r,k,i,f);case 5:if(E=T.sent,!E.length){T.next=9;break}return x([{errors:E,rule:k}]),T.abrupt("return");case 9:_+=1,T.next=1;break;case 12:b([]);case 13:case"end":return T.stop()}},C)}));return function(C,b){return g.apply(this,arguments)}}());else{var d=h.map(function(g){return pw(c,r,g,i,f).then(function(C){return{errors:C,rule:g}})});m=(l?uV(d):sV(d)).then(function(g){return Promise.reject(g)})}return m.catch(function(g){return g}),m}function sV(e){return vw.apply(this,arguments)}function vw(){return vw=Bh(ro().mark(function e(r){return ro().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(l){var f,c=(f=[]).concat.apply(f,ln(l));return c}));case 1:case"end":return i.stop()}},e)})),vw.apply(this,arguments)}function uV(e){return mw.apply(this,arguments)}function mw(){return mw=Bh(ro().mark(function e(r){var t;return ro().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return t=0,l.abrupt("return",new Promise(function(f){r.forEach(function(c){c.then(function(h){h.errors.length&&f([h]),t+=1,t===r.length&&f([])})})}));case 2:case"end":return l.stop()}},e)})),mw.apply(this,arguments)}function mr(e){return ow(e)}function o3(e,r){var t={};return r.forEach(function(i){var l=gl(e,i);t=Eo(t,i,l)}),t}function Dd(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return l3(r,i,t)})}function l3(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,l){return e[l]===i})}function cV(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Br(e)!=="object"||Br(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),l=new Set([].concat(t,i));return ln(l).every(function(f){var c=e[f],h=r[f];return typeof c=="function"&&typeof h=="function"?!0:c===h})}function fV(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Br(r.target)==="object"&&e in r.target?r.target[e]:r}function s3(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var l=e[r],f=r-t;return f>0?[].concat(ln(e.slice(0,t)),[l],ln(e.slice(t,r)),ln(e.slice(r+1,i))):f<0?[].concat(ln(e.slice(0,r)),ln(e.slice(r+1,t+1)),[l],ln(e.slice(t+1,i))):e}var dV=["name"],ao=[];function u3(e,r,t,i,l,f){return typeof e=="function"?e(r,t,"source"in f?{source:f.source}:{}):i!==l}var gw=function(e){wH(t,e);var r=SH(t);function t(i){var l;if(rw(this,t),l=r.call(this,i),Le(hn(l),"state",{resetCount:0}),Le(hn(l),"cancelRegisterFunc",null),Le(hn(l),"mounted",!1),Le(hn(l),"touched",!1),Le(hn(l),"dirty",!1),Le(hn(l),"validatePromise",void 0),Le(hn(l),"prevValidating",void 0),Le(hn(l),"errors",ao),Le(hn(l),"warnings",ao),Le(hn(l),"cancelRegister",function(){var m=l.props,d=m.preserve,g=m.isListField,C=m.name;l.cancelRegisterFunc&&l.cancelRegisterFunc(g,d,mr(C)),l.cancelRegisterFunc=null}),Le(hn(l),"getNamePath",function(){var m=l.props,d=m.name,g=m.fieldContext,C=g.prefixName,b=C===void 0?[]:C;return d!==void 0?[].concat(ln(b),ln(d)):[]}),Le(hn(l),"getRules",function(){var m=l.props,d=m.rules,g=d===void 0?[]:d,C=m.fieldContext;return g.map(function(b){return typeof b=="function"?b(C):b})}),Le(hn(l),"refresh",function(){l.mounted&&l.setState(function(m){var d=m.resetCount;return{resetCount:d+1}})}),Le(hn(l),"metaCache",null),Le(hn(l),"triggerMetaEvent",function(m){var d=l.props.onMetaChange;if(d){var g=Ft(Ft({},l.getMeta()),{},{destroy:m});GT(l.metaCache,g)||d(g),l.metaCache=g}else l.metaCache=null}),Le(hn(l),"onStoreChange",function(m,d,g){var C=l.props,b=C.shouldUpdate,x=C.dependencies,_=x===void 0?[]:x,k=C.onReset,E=g.store,A=l.getNamePath(),T=l.getValue(m),D=l.getValue(E),R=d&&Dd(d,A);switch(g.type==="valueUpdate"&&g.source==="external"&&!GT(T,D)&&(l.touched=!0,l.dirty=!0,l.validatePromise=null,l.errors=ao,l.warnings=ao,l.triggerMetaEvent()),g.type){case"reset":if(!d||R){l.touched=!1,l.dirty=!1,l.validatePromise=void 0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),k==null||k(),l.refresh();return}break;case"remove":{if(b){l.reRender();return}break}case"setField":{var N=g.data;if(R){"touched"in N&&(l.touched=N.touched),"validating"in N&&!("originRCField"in N)&&(l.validatePromise=N.validating?Promise.resolve([]):null),"errors"in N&&(l.errors=N.errors||ao),"warnings"in N&&(l.warnings=N.warnings||ao),l.dirty=!0,l.triggerMetaEvent(),l.reRender();return}else if("value"in N&&Dd(d,A,!0)){l.reRender();return}if(b&&!A.length&&u3(b,m,E,T,D,g)){l.reRender();return}break}case"dependenciesUpdate":{var z=_.map(mr);if(z.some(function(M){return Dd(g.relatedFields,M)})){l.reRender();return}break}default:if(R||(!_.length||A.length||b)&&u3(b,m,E,T,D,g)){l.reRender();return}break}b===!0&&l.reRender()}),Le(hn(l),"validateRules",function(m){var d=l.getNamePath(),g=l.getValue(),C=m||{},b=C.triggerName,x=C.validateOnly,_=x===void 0?!1:x,k=Promise.resolve().then(Bh(ro().mark(function E(){var A,T,D,R,N,z,M;return ro().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(l.mounted){Y.next=2;break}return Y.abrupt("return",[]);case 2:if(A=l.props,T=A.validateFirst,D=T===void 0?!1:T,R=A.messageVariables,N=A.validateDebounce,z=l.getRules(),b&&(z=z.filter(function(B){return B}).filter(function(B){var U=B.validateTrigger;if(!U)return!0;var P=ow(U);return P.includes(b)})),!(N&&b)){Y.next=10;break}return Y.next=8,new Promise(function(B){setTimeout(B,N)});case 8:if(l.validatePromise===k){Y.next=10;break}return Y.abrupt("return",[]);case 10:return M=lV(d,g,z,m,D,R),M.catch(function(B){return B}).then(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ao;if(l.validatePromise===k){var U;l.validatePromise=null;var P=[],H=[];(U=B.forEach)===null||U===void 0||U.call(B,function(V){var G=V.rule.warningOnly,ee=V.errors,ne=ee===void 0?ao:ee;G?H.push.apply(H,ln(ne)):P.push.apply(P,ln(ne))}),l.errors=P,l.warnings=H,l.triggerMetaEvent(),l.reRender()}}),Y.abrupt("return",M);case 13:case"end":return Y.stop()}},E)})));return _||(l.validatePromise=k,l.dirty=!0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),l.reRender()),k}),Le(hn(l),"isFieldValidating",function(){return!!l.validatePromise}),Le(hn(l),"isFieldTouched",function(){return l.touched}),Le(hn(l),"isFieldDirty",function(){if(l.dirty||l.props.initialValue!==void 0)return!0;var m=l.props.fieldContext,d=m.getInternalHooks(zc),g=d.getInitialValue;return g(l.getNamePath())!==void 0}),Le(hn(l),"getErrors",function(){return l.errors}),Le(hn(l),"getWarnings",function(){return l.warnings}),Le(hn(l),"isListField",function(){return l.props.isListField}),Le(hn(l),"isList",function(){return l.props.isList}),Le(hn(l),"isPreserve",function(){return l.props.preserve}),Le(hn(l),"getMeta",function(){l.prevValidating=l.isFieldValidating();var m={touched:l.isFieldTouched(),validating:l.prevValidating,errors:l.errors,warnings:l.warnings,name:l.getNamePath(),validated:l.validatePromise===null};return m}),Le(hn(l),"getOnlyChild",function(m){if(typeof m=="function"){var d=l.getMeta();return Ft(Ft({},l.getOnlyChild(m(l.getControlled(),d,l.props.fieldContext))),{},{isFunction:!0})}var g=iw(m);return g.length!==1||!Ne.isValidElement(g[0])?{child:g,isFunction:!1}:{child:g[0],isFunction:!1}}),Le(hn(l),"getValue",function(m){var d=l.props.fieldContext.getFieldsValue,g=l.getNamePath();return gl(m||d(!0),g)}),Le(hn(l),"getControlled",function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=l.props,g=d.name,C=d.trigger,b=d.validateTrigger,x=d.getValueFromEvent,_=d.normalize,k=d.valuePropName,E=d.getValueProps,A=d.fieldContext,T=b!==void 0?b:A.validateTrigger,D=l.getNamePath(),R=A.getInternalHooks,N=A.getFieldsValue,z=R(zc),M=z.dispatch,I=l.getValue(),Y=E||function(V){return Le({},k,V)},B=m[C],U=g!==void 0?Y(I):{};process.env.NODE_ENV!=="production"&&U&&Object.keys(U).forEach(function(V){Er(typeof U[V]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(V,")"))});var P=Ft(Ft({},m),U);P[C]=function(){l.touched=!0,l.dirty=!0,l.triggerMetaEvent();for(var V,G=arguments.length,ee=new Array(G),ne=0;ne<G;ne++)ee[ne]=arguments[ne];x?V=x.apply(void 0,ee):V=fV.apply(void 0,[k].concat(ee)),_&&(V=_(V,I,N(!0))),M({type:"updateValue",namePath:D,value:V}),B&&B.apply(void 0,ee)};var H=ow(T||[]);return H.forEach(function(V){var G=P[V];P[V]=function(){G&&G.apply(void 0,arguments);var ee=l.props.rules;ee&&ee.length&&M({type:"validateField",namePath:D,triggerName:V})}}),P}),i.fieldContext){var f=i.fieldContext.getInternalHooks,c=f(zc),h=c.initEntityValue;h(hn(l))}return l}return aw(t,[{key:"componentDidMount",value:function(){var l=this.props,f=l.shouldUpdate,c=l.fieldContext;if(this.mounted=!0,c){var h=c.getInternalHooks,m=h(zc),d=m.registerField;this.cancelRegisterFunc=d(this)}f===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var l=this.state.resetCount,f=this.props.children,c=this.getOnlyChild(f),h=c.child,m=c.isFunction,d;return m?d=h:Ne.isValidElement(h)?d=Ne.cloneElement(h,this.getControlled(h.props)):(Er(!h,"`children` of Field is not validate ReactElement."),d=h),Ne.createElement(Ne.Fragment,{key:l},d)}}]),t}(Ne.Component);Le(gw,"contextType",vu),Le(gw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function yw(e){var r=e.name,t=Sp(e,dV),i=Ne.useContext(vu),l=Ne.useContext(my),f=r!==void 0?mr(r):void 0,c="keep";return t.isListField||(c="_".concat((f||[]).join("_"))),process.env.NODE_ENV!=="production"&&t.preserve===!1&&t.isListField&&f.length<=1&&Er(!1,"`preserve` should not apply on Form.List fields."),Ne.createElement(gw,Pr({key:c,name:f,isListField:!!l},t,{fieldContext:i}))}function c3(e){var r=e.name,t=e.initialValue,i=e.children,l=e.rules,f=e.validateTrigger,c=e.isListField,h=Ne.useContext(vu),m=Ne.useContext(my),d=Ne.useRef({keys:[],id:0}),g=d.current,C=Ne.useMemo(function(){var k=mr(h.prefixName)||[];return[].concat(ln(k),ln(mr(r)))},[h.prefixName,r]),b=Ne.useMemo(function(){return Ft(Ft({},h),{},{prefixName:C})},[h,C]),x=Ne.useMemo(function(){return{getKey:function(E){var A=C.length,T=E[A];return[g.keys[T],E.slice(A+1)]}}},[C]);if(typeof i!="function")return Er(!1,"Form.List only accepts function as children."),null;var _=function(E,A,T){var D=T.source;return D==="internal"?!1:E!==A};return Ne.createElement(my.Provider,{value:x},Ne.createElement(vu.Provider,{value:b},Ne.createElement(yw,{name:[],shouldUpdate:_,rules:l,validateTrigger:f,initialValue:t,isList:!0,isListField:c??!!m},function(k,E){var A=k.value,T=A===void 0?[]:A,D=k.onChange,R=h.getFieldValue,N=function(){var Y=R(C||[]);return Y||[]},z={add:function(Y,B){var U=N();B>=0&&B<=U.length?(g.keys=[].concat(ln(g.keys.slice(0,B)),[g.id],ln(g.keys.slice(B))),D([].concat(ln(U.slice(0,B)),[Y],ln(U.slice(B))))):(process.env.NODE_ENV!=="production"&&(B<0||B>U.length)&&Er(!1,"The second parameter of the add function should be a valid positive number."),g.keys=[].concat(ln(g.keys),[g.id]),D([].concat(ln(U),[Y]))),g.id+=1},remove:function(Y){var B=N(),U=new Set(Array.isArray(Y)?Y:[Y]);U.size<=0||(g.keys=g.keys.filter(function(P,H){return!U.has(H)}),D(B.filter(function(P,H){return!U.has(H)})))},move:function(Y,B){if(Y!==B){var U=N();Y<0||Y>=U.length||B<0||B>=U.length||(g.keys=s3(g.keys,Y,B),D(s3(U,Y,B)))}}},M=T||[];return Array.isArray(M)||(M=[],process.env.NODE_ENV!=="production"&&Er(!1,"Current value of '".concat(C.join(" > "),"' is not an array type."))),i(M.map(function(I,Y){var B=g.keys[Y];return B===void 0&&(g.keys[Y]=g.id,B=g.keys[Y],g.id+=1),{name:Y,key:B,isListField:!0}}),z,E)})))}function pV(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(l,f){e.forEach(function(c,h){c.catch(function(m){return r=!0,m}).then(function(m){t-=1,i[h]=m,!(t>0)&&(r&&f(i),l(i))})})}):Promise.resolve([])}var f3="__@field_split__";function xw(e){return e.map(function(r){return"".concat(Br(r),":").concat(r)}).join(f3)}var kd=function(){function e(){rw(this,e),Le(this,"kvs",new Map)}return aw(e,[{key:"set",value:function(t,i){this.kvs.set(xw(t),i)}},{key:"get",value:function(t){return this.kvs.get(xw(t))}},{key:"update",value:function(t,i){var l=this.get(t),f=i(l);f?this.set(t,f):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(xw(t))}},{key:"map",value:function(t){return ln(this.kvs.entries()).map(function(i){var l=mc(i,2),f=l[0],c=l[1],h=f.split(f3);return t({key:h.map(function(m){var d=m.match(/^([^:]*):(.*)$/),g=mc(d,3),C=g[1],b=g[2];return C==="number"?Number(b):b}),value:c})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var l=i.key,f=i.value;return t[l.join(".")]=f,null}),t}}]),e}(),hV=["name"],vV=aw(function e(r){var t=this;rw(this,e),Le(this,"formHooked",!1),Le(this,"forceRootUpdate",void 0),Le(this,"subscribable",!0),Le(this,"store",{}),Le(this,"fieldEntities",[]),Le(this,"initialValues",{}),Le(this,"callbacks",{}),Le(this,"validateMessages",null),Le(this,"preserve",null),Le(this,"lastValidatePromise",null),Le(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),Le(this,"getInternalHooks",function(i){return i===zc?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(Er(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Le(this,"useSubscribe",function(i){t.subscribable=i}),Le(this,"prevWithoutPreserves",null),Le(this,"setInitialValues",function(i,l){if(t.initialValues=i||{},l){var f,c=Ih(i,t.store);(f=t.prevWithoutPreserves)===null||f===void 0||f.map(function(h){var m=h.key;c=Eo(c,m,gl(i,m))}),t.prevWithoutPreserves=null,t.updateStore(c)}}),Le(this,"destroyForm",function(){var i=new kd;t.getFieldEntities(!0).forEach(function(l){t.isMergedPreserve(l.isPreserve())||i.set(l.getNamePath(),!0)}),t.prevWithoutPreserves=i}),Le(this,"getInitialValue",function(i){var l=gl(t.initialValues,i);return i.length?Ih(l):l}),Le(this,"setCallbacks",function(i){t.callbacks=i}),Le(this,"setValidateMessages",function(i){t.validateMessages=i}),Le(this,"setPreserve",function(i){t.preserve=i}),Le(this,"watchList",[]),Le(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(l){return l!==i})}}),Le(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var l=t.getFieldsValue(),f=t.getFieldsValue(!0);t.watchList.forEach(function(c){c(l,f,i)})}}),Le(this,"timeoutId",null),Le(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||Er(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Le(this,"updateStore",function(i){t.store=i}),Le(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(l){return l.getNamePath().length}):t.fieldEntities}),Le(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,l=new kd;return t.getFieldEntities(i).forEach(function(f){var c=f.getNamePath();l.set(c,f)}),l}),Le(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var l=t.getFieldsMap(!0);return i.map(function(f){var c=mr(f);return l.get(c)||{INVALIDATE_NAME_PATH:mr(f)}})}),Le(this,"getFieldsValue",function(i,l){t.warningUnhooked();var f,c,h;if(i===!0||Array.isArray(i)?(f=i,c=l):i&&Br(i)==="object"&&(h=i.strict,c=i.filter),f===!0&&!c)return t.store;var m=t.getFieldEntitiesForNamePathList(Array.isArray(f)?f:null),d=[];return m.forEach(function(g){var C,b,x="INVALIDATE_NAME_PATH"in g?g.INVALIDATE_NAME_PATH:g.getNamePath();if(h){var _,k;if((_=(k=g).isList)!==null&&_!==void 0&&_.call(k))return}else if(!f&&(C=(b=g).isListField)!==null&&C!==void 0&&C.call(b))return;if(!c)d.push(x);else{var E="getMeta"in g?g.getMeta():null;c(E)&&d.push(x)}}),o3(t.store,d.map(mr))}),Le(this,"getFieldValue",function(i){t.warningUnhooked();var l=mr(i);return gl(t.store,l)}),Le(this,"getFieldsError",function(i){t.warningUnhooked();var l=t.getFieldEntitiesForNamePathList(i);return l.map(function(f,c){return f&&!("INVALIDATE_NAME_PATH"in f)?{name:f.getNamePath(),errors:f.getErrors(),warnings:f.getWarnings()}:{name:mr(i[c]),errors:[],warnings:[]}})}),Le(this,"getFieldError",function(i){t.warningUnhooked();var l=mr(i),f=t.getFieldsError([l])[0];return f.errors}),Le(this,"getFieldWarning",function(i){t.warningUnhooked();var l=mr(i),f=t.getFieldsError([l])[0];return f.warnings}),Le(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,l=new Array(i),f=0;f<i;f++)l[f]=arguments[f];var c=l[0],h=l[1],m,d=!1;l.length===0?m=null:l.length===1?Array.isArray(c)?(m=c.map(mr),d=!1):(m=null,d=c):(m=c.map(mr),d=h);var g=t.getFieldEntities(!0),C=function(E){return E.isFieldTouched()};if(!m)return d?g.every(function(k){return C(k)||k.isList()}):g.some(C);var b=new kd;m.forEach(function(k){b.set(k,[])}),g.forEach(function(k){var E=k.getNamePath();m.forEach(function(A){A.every(function(T,D){return E[D]===T})&&b.update(A,function(T){return[].concat(ln(T),[k])})})});var x=function(E){return E.some(C)},_=b.map(function(k){var E=k.value;return E});return d?_.every(x):_.some(x)}),Le(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),Le(this,"isFieldsValidating",function(i){t.warningUnhooked();var l=t.getFieldEntities();if(!i)return l.some(function(c){return c.isFieldValidating()});var f=i.map(mr);return l.some(function(c){var h=c.getNamePath();return Dd(f,h)&&c.isFieldValidating()})}),Le(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),Le(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=new kd,f=t.getFieldEntities(!0);f.forEach(function(m){var d=m.props.initialValue,g=m.getNamePath();if(d!==void 0){var C=l.get(g)||new Set;C.add({entity:m,value:d}),l.set(g,C)}});var c=function(d){d.forEach(function(g){var C=g.props.initialValue;if(C!==void 0){var b=g.getNamePath(),x=t.getInitialValue(b);if(x!==void 0)Er(!1,"Form already set 'initialValues' with path '".concat(b.join("."),"'. Field can not overwrite it."));else{var _=l.get(b);if(_&&_.size>1)Er(!1,"Multiple Field with path '".concat(b.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(_){var k=t.getFieldValue(b),E=g.isListField();!E&&(!i.skipExist||k===void 0)&&t.updateStore(Eo(t.store,b,ln(_)[0].value))}}}})},h;i.entities?h=i.entities:i.namePathList?(h=[],i.namePathList.forEach(function(m){var d=l.get(m);if(d){var g;(g=h).push.apply(g,ln(ln(d).map(function(C){return C.entity})))}})):h=f,c(h)}),Le(this,"resetFields",function(i){t.warningUnhooked();var l=t.store;if(!i){t.updateStore(Ih(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(l,null,{type:"reset"}),t.notifyWatch();return}var f=i.map(mr);f.forEach(function(c){var h=t.getInitialValue(c);t.updateStore(Eo(t.store,c,h))}),t.resetWithFieldInitialValue({namePathList:f}),t.notifyObservers(l,f,{type:"reset"}),t.notifyWatch(f)}),Le(this,"setFields",function(i){t.warningUnhooked();var l=t.store,f=[];i.forEach(function(c){var h=c.name,m=Sp(c,hV),d=mr(h);f.push(d),"value"in m&&t.updateStore(Eo(t.store,d,m.value)),t.notifyObservers(l,[d],{type:"setField",data:c})}),t.notifyWatch(f)}),Le(this,"getFields",function(){var i=t.getFieldEntities(!0),l=i.map(function(f){var c=f.getNamePath(),h=f.getMeta(),m=Ft(Ft({},h),{},{name:c,value:t.getFieldValue(c)});return Object.defineProperty(m,"originRCField",{value:!0}),m});return l}),Le(this,"initEntityValue",function(i){var l=i.props.initialValue;if(l!==void 0){var f=i.getNamePath(),c=gl(t.store,f);c===void 0&&t.updateStore(Eo(t.store,f,l))}}),Le(this,"isMergedPreserve",function(i){var l=i!==void 0?i:t.preserve;return l??!0}),Le(this,"registerField",function(i){t.fieldEntities.push(i);var l=i.getNamePath();if(t.notifyWatch([l]),i.props.initialValue!==void 0){var f=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(f,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(C){return C!==i}),!t.isMergedPreserve(h)&&(!c||m.length>1)){var d=c?void 0:t.getInitialValue(l);if(l.length&&t.getFieldValue(l)!==d&&t.fieldEntities.every(function(C){return!l3(C.getNamePath(),l)})){var g=t.store;t.updateStore(Eo(g,l,d,!0)),t.notifyObservers(g,[l],{type:"remove"}),t.triggerDependenciesUpdate(g,l)}}t.notifyWatch([l])}}),Le(this,"dispatch",function(i){switch(i.type){case"updateValue":{var l=i.namePath,f=i.value;t.updateValue(l,f);break}case"validateField":{var c=i.namePath,h=i.triggerName;t.validateFields([c],{triggerName:h});break}}}),Le(this,"notifyObservers",function(i,l,f){if(t.subscribable){var c=Ft(Ft({},f),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(h){var m=h.onStoreChange;m(i,l,c)})}else t.forceRootUpdate()}),Le(this,"triggerDependenciesUpdate",function(i,l){var f=t.getDependencyChildrenFields(l);return f.length&&t.validateFields(f),t.notifyObservers(i,f,{type:"dependenciesUpdate",relatedFields:[l].concat(ln(f))}),f}),Le(this,"updateValue",function(i,l){var f=mr(i),c=t.store;t.updateStore(Eo(t.store,f,l)),t.notifyObservers(c,[f],{type:"valueUpdate",source:"internal"}),t.notifyWatch([f]);var h=t.triggerDependenciesUpdate(c,f),m=t.callbacks.onValuesChange;if(m){var d=o3(t.store,[f]);m(d,t.getFieldsValue())}t.triggerOnFieldsChange([f].concat(ln(h)))}),Le(this,"setFieldsValue",function(i){t.warningUnhooked();var l=t.store;if(i){var f=Ih(t.store,i);t.updateStore(f)}t.notifyObservers(l,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),Le(this,"setFieldValue",function(i,l){t.setFields([{name:i,value:l}])}),Le(this,"getDependencyChildrenFields",function(i){var l=new Set,f=[],c=new kd;t.getFieldEntities().forEach(function(m){var d=m.props.dependencies;(d||[]).forEach(function(g){var C=mr(g);c.update(C,function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return b.add(m),b})})});var h=function m(d){var g=c.get(d)||new Set;g.forEach(function(C){if(!l.has(C)){l.add(C);var b=C.getNamePath();C.isFieldDirty()&&b.length&&(f.push(b),m(b))}})};return h(i),f}),Le(this,"triggerOnFieldsChange",function(i,l){var f=t.callbacks.onFieldsChange;if(f){var c=t.getFields();if(l){var h=new kd;l.forEach(function(d){var g=d.name,C=d.errors;h.set(g,C)}),c.forEach(function(d){d.errors=h.get(d.name)||d.errors})}var m=c.filter(function(d){var g=d.name;return Dd(i,g)});m.length&&f(m,c)}}),Le(this,"validateFields",function(i,l){t.warningUnhooked();var f,c;Array.isArray(i)||typeof i=="string"||typeof l=="string"?(f=i,c=l):c=i;var h=!!f,m=h?f.map(mr):[],d=[],g=String(Date.now()),C=new Set,b=c||{},x=b.recursive,_=b.dirty;t.getFieldEntities(!0).forEach(function(T){if(h||m.push(T.getNamePath()),!(!T.props.rules||!T.props.rules.length)&&!(_&&!T.isFieldDirty())){var D=T.getNamePath();if(C.add(D.join(g)),!h||Dd(m,D,x)){var R=T.validateRules(Ft({validateMessages:Ft(Ft({},t3),t.validateMessages)},c));d.push(R.then(function(){return{name:D,errors:[],warnings:[]}}).catch(function(N){var z,M=[],I=[];return(z=N.forEach)===null||z===void 0||z.call(N,function(Y){var B=Y.rule.warningOnly,U=Y.errors;B?I.push.apply(I,ln(U)):M.push.apply(M,ln(U))}),M.length?Promise.reject({name:D,errors:M,warnings:I}):{name:D,errors:M,warnings:I}}))}}});var k=pV(d);t.lastValidatePromise=k,k.catch(function(T){return T}).then(function(T){var D=T.map(function(R){var N=R.name;return N});t.notifyObservers(t.store,D,{type:"validateFinish"}),t.triggerOnFieldsChange(D,T)});var E=k.then(function(){return t.lastValidatePromise===k?Promise.resolve(t.getFieldsValue(m)):Promise.reject([])}).catch(function(T){var D=T.filter(function(R){return R&&R.errors.length});return Promise.reject({values:t.getFieldsValue(m),errorFields:D,outOfDate:t.lastValidatePromise!==k})});E.catch(function(T){return T});var A=m.filter(function(T){return C.has(T.join(g))});return t.triggerOnFieldsChange(A),E}),Le(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var l=t.callbacks.onFinish;if(l)try{l(i)}catch{}}).catch(function(i){var l=t.callbacks.onFinishFailed;l&&l(i)})}),this.forceRootUpdate=r});function bw(e){var r=Ne.useRef(),t=Ne.useState({}),i=mc(t,2),l=i[1];if(!r.current)if(e)r.current=e;else{var f=function(){l({})},c=new vV(f);r.current=c.getForm()}return[r.current]}var Cw=Ne.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mV=function(r){var t=r.validateMessages,i=r.onFormChange,l=r.onFormFinish,f=r.children,c=Ne.useContext(Cw),h=Ne.useRef({});return Ne.createElement(Cw.Provider,{value:Ft(Ft({},c),{},{validateMessages:Ft(Ft({},c.validateMessages),t),triggerFormChange:function(d,g){i&&i(d,{changedFields:g,forms:h.current}),c.triggerFormChange(d,g)},triggerFormFinish:function(d,g){l&&l(d,{values:g,forms:h.current}),c.triggerFormFinish(d,g)},registerForm:function(d,g){d&&(h.current=Ft(Ft({},h.current),{},Le({},d,g))),c.registerForm(d,g)},unregisterForm:function(d){var g=Ft({},h.current);delete g[d],h.current=g,c.unregisterForm(d)}})},f)},gV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],yV=function(r,t){var i=r.name,l=r.initialValues,f=r.fields,c=r.form,h=r.preserve,m=r.children,d=r.component,g=d===void 0?"form":d,C=r.validateMessages,b=r.validateTrigger,x=b===void 0?"onChange":b,_=r.onValuesChange,k=r.onFieldsChange,E=r.onFinish,A=r.onFinishFailed,T=Sp(r,gV),D=Ne.useContext(Cw),R=bw(c),N=mc(R,1),z=N[0],M=z.getInternalHooks(zc),I=M.useSubscribe,Y=M.setInitialValues,B=M.setCallbacks,U=M.setValidateMessages,P=M.setPreserve,H=M.destroyForm;Ne.useImperativeHandle(t,function(){return z}),Ne.useEffect(function(){return D.registerForm(i,z),function(){D.unregisterForm(i)}},[D,z,i]),U(Ft(Ft({},D.validateMessages),C)),B({onValuesChange:_,onFieldsChange:function(te){if(D.triggerFormChange(i,te),k){for(var oe=arguments.length,ae=new Array(oe>1?oe-1:0),fe=1;fe<oe;fe++)ae[fe-1]=arguments[fe];k.apply(void 0,[te].concat(ae))}},onFinish:function(te){D.triggerFormFinish(i,te),E&&E(te)},onFinishFailed:A}),P(h);var V=Ne.useRef(null);Y(l,!V.current),V.current||(V.current=!0),Ne.useEffect(function(){return H},[]);var G,ee=typeof m=="function";if(ee){var ne=z.getFieldsValue(!0);G=m(ne,z)}else G=m;I(!ee);var $=Ne.useRef();Ne.useEffect(function(){cV($.current||[],f||[])||z.setFields(f||[]),$.current=f},[f,z]);var X=Ne.useMemo(function(){return Ft(Ft({},z),{},{validateTrigger:x})},[z,x]),Z=Ne.createElement(my.Provider,{value:null},Ne.createElement(vu.Provider,{value:X},G));return g===!1?Z:Ne.createElement(g,Pr({},T,{onSubmit:function(te){te.preventDefault(),te.stopPropagation(),z.submit()},onReset:function(te){var oe;te.preventDefault(),z.resetFields(),(oe=T.onReset)===null||oe===void 0||oe.call(T,te)}}),Z)};function d3(e){try{return JSON.stringify(e)}catch{return Math.random()}}var xV=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=W.useRef(r);Er(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function ww(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],l=r[1],f=l===void 0?{}:l,c=EH(f)?{form:f}:f,h=c.form,m=W.useState(),d=mc(m,2),g=d[0],C=d[1],b=W.useMemo(function(){return d3(g)},[g]),x=W.useRef(b);x.current=b;var _=W.useContext(vu),k=h||_,E=k&&k._init;process.env.NODE_ENV!=="production"&&Er(r.length===2?h?E:!0:E,"useWatch requires a form instance since it can not auto detect from context.");var A=mr(i),T=W.useRef(A);return T.current=A,xV(A),W.useEffect(function(){if(E){var D=k.getFieldsValue,R=k.getInternalHooks,N=R(zc),z=N.registerWatch,M=function(U,P){var H=c.preserve?P:U;return typeof i=="function"?i(H):gl(H,T.current)},I=z(function(B,U){var P=M(B,U),H=d3(P);x.current!==H&&(x.current=H,C(P))}),Y=M(D(),D(!0));return g!==Y&&C(Y),I}},[E]),g}var bV=Ne.forwardRef(yV),Td=bV;Td.FormProvider=mV,Td.Field=yw,Td.List=c3,Td.useForm=bw,Td.useWatch=ww;const CV=e=>{const r=kD(),t=W.useContext(vu);return Be(nn,{children:[e.children(t.getFieldsValue(e.to),t),e.to.map(i=>Q(wV,{form:t,namePath:i,onChange:r},i.toString()))]})},wV=W.memo(e=>{const r=ww(e.namePath,e.form);return hz(()=>{e.onChange()},[r]),null}),_V={colon:!1,showValidateMessage:!0,border:!0,labelAlign:"left",controlAlign:"left"},_w=W.createContext(_V),[p3]=wn("form"),SV=W.forwardRef((e,r)=>{const{className:t,style:i,layout:l,footer:f,children:c,colon:h,required:m,border:d,labelAlign:g,controlAlign:C,showValidateMessage:b=!0}=e,x=$a(e,["className","style","layout","footer","children","colon","required","border","labelAlign","controlAlign","showValidateMessage"]);return Be(Td,Object.assign({className:Re(p3(),t),style:i,ref:r},x,{children:[Q(_w.Provider,Object.assign({value:{layout:l,colon:h,border:d,required:m,showValidateMessage:b,controlAlign:C,labelAlign:g}},{children:c})),f&&Q("div",Object.assign({className:Re(p3("footer"))},{children:f}))]}))});function EV(e){const r=e.prototype;return!!(r&&r.isReactComponent)}function DV(e){return typeof e=="function"&&!EV(e)&&e.defaultProps===void 0}function h3(e){return!ug.exports.isForwardRef(e)||ug.exports.isFragment(e)?!1:ug.exports.isMemo(e)?h3(e.type):!DV(e.type)}function kV(...e){let r;for(r=0;r<e.length&&e[r]===void 0;r++);return e[r]}const TV=W.memo(e=>{var{children:r}=e,t=$a(e,["children"]);return W.cloneElement(r,t)},(e,r)=>e.value===r.value&&e.update===r.update),[AV]=wn("form-item"),OV=e=>{var r,t,i,l,f,c;const{meta:h}=e,m=$a(e,["meta"]),d=W.useContext(_w),g=(r=e.layout)!==null&&r!==void 0?r:d.layout,C=(t=e.border)!==null&&t!==void 0?t:d.border,b=(i=e.colon)!==null&&i!==void 0?i:d.colon,x=(l=e.showValidateMessage)!==null&&l!==void 0?l:d.showValidateMessage,_=(f=e.labelAlign)!==null&&f!==void 0?f:d.labelAlign,k=(c=e.controlAlign)!==null&&c!==void 0?c:d.controlAlign,E=h&&h.errors.length>0,A=x&&E?h.errors[0]:null,T=Object.assign(Object.assign({},m),{className:Re(AV({vertical:g==="vertical"}),e.className),colon:b,error:x?!1:E,errorMessage:A,labelAlign:_,controlAlign:k,border:C});return Q(lC,Object.assign({},T,{children:e.children}))},xy=Object.assign(SV,{Item:e=>{const r=W.useContext(_w),{name:t,noStyle:i,rules:l,trigger:f="onChange",validateTrigger:c=f,shouldUpdate:h,dependencies:m,messageVariables:d,label:g,required:C,disabled:b,children:x,onClick:_}=e,k=$a(e,["name","noStyle","rules","trigger","validateTrigger","shouldUpdate","dependencies","messageVariables","label","required","disabled","children","onClick"]),E=cD(e,["style","className","tooltip","intro","colon","labelWidth","labelAlign","labelClass","showValidateMessage","controlAlign","errorMessageAlign","border","layout","isLink","size","arrowDirection","leftIcon","rightIcon","prefix","suffix"]),{validateTrigger:A}=W.useContext(vu),T=kV(c,A,f),D=W.useRef(null),R=W.useRef(0);R.current+=1;function N(I,Y,B,U){return i?I:Q(OV,Object.assign({htmlFor:Y,meta:B},E,{required:U,label:g,disabled:b,onClick:P=>_==null?void 0:_(P,D)},{children:I}))}const z=typeof x=="function";if(!t&&!z&&!e.dependencies)return N(x);let M={};return typeof g=="string"&&(M.label=g),d&&(M=Object.assign(Object.assign({},M),d)),Q(yw,Object.assign({},k,{name:t,shouldUpdate:h,dependencies:m,rules:l,trigger:f,validateTrigger:T},{children:(I,Y,B)=>{var U;let P=null;const H=C!==void 0?C:(U=r.required)!==null&&U!==void 0?U:l&&l.some(G=>!!(G&&typeof G=="object"&&G.required)),V=(tw(t).length&&Y?Y.name:[]).join("_");if(h&&m&&void 0,z)(h||m)&&!t?P=x(B):(h||m||void 0,t&&void 0);else if(m&&!t);else if(W.isValidElement(x)){x.props.defaultValue&&void 0;const G=Object.assign(Object.assign({},x.props),I);h3(x)&&(G.ref=ne=>{const $=x.ref;$&&(typeof $=="function"&&$(ne),"current"in $&&($.current=ne)),D.current=ne}),G.id||(G.id=V),b&&(G.disabled=b),new Set([...tw(f),...tw(T)]).forEach(ne=>{G[ne]=(...$)=>{var X,Z,q;(X=I[ne])===null||X===void 0||X.call(I,...$),(q=(Z=x.props)[ne])===null||q===void 0||q.call(Z,...$)}}),P=Q(TV,Object.assign({value:I[e.valuePropName||"value"],update:R.current},{children:W.cloneElement(x,G)}))}else t&&void 0,P=x;return N(P,V,Y,H)}}))},useForm:bw,List:c3,Subscribe:CV,useWatch:ww}),Hh={"checkbox-group":"index-module_checkbox-group_4684b",checkboxGroup:"index-module_checkbox-group_4684b","checkbox-group-header":"index-module_checkbox-group-header_192bd",checkboxGroupHeader:"index-module_checkbox-group-header_192bd","checkbox-group-content":"index-module_checkbox-group-content_f81a1",checkboxGroupContent:"index-module_checkbox-group-content_f81a1","checkbox-item":"index-module_checkbox-item_1b36c",checkboxItem:"index-module_checkbox-item_1b36c","checkbox-group-cancel":"index-module_checkbox-group-cancel_c5cfb",checkboxGroupCancel:"index-module_checkbox-group-cancel_c5cfb"},RV=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C,getTitle:b,attrid:x})=>{const[_,k]=W.useState([]),[E,A]=W.useState([]);W.useEffect(()=>{e.input==="mult-select"&&f&&Array.isArray(f)&&(z(f||[]),I(f||[]))},[f]),W.useEffect(()=>{T()},[e.inputType,e.classify,e.data,e.options]);const T=async()=>{if(e.inputType==="instance-url"&&(e!=null&&e["instance-source-number"])&&x){const B=e==null?void 0:e["key-field"];if(!B){YC("请配置key-field");return}const U={"source-number":e==null?void 0:e["instance-source-number"]};let P=await V2(U,i);const H=await $2(e==null?void 0:e["instance-source-number"],l);if(H){const V=(H==null?void 0:H["non-universal-header"])||[],G=(V==null?void 0:V.label)||[],ee=(B==null?void 0:B[x])||{},ne=P==null?void 0:P.map($=>{const X=G==null?void 0:G.map(oe=>$==null?void 0:$[oe]).join("-"),{list:Z,delimiter:q}=ee,te=Z==null?void 0:Z.map(oe=>$==null?void 0:$[oe]).join(q||"-");return X?{label:b==null?void 0:b("5000000",X),value:te}:null});k(ne),A(P)}return}const Y=await cd({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,item:e});k(Y)},[D,R]=W.useState(!1),[N,z]=W.useState([]),[M,I]=W.useState([]);return Q(nn,{children:e.input==="mult-select"?Be("div",{style:{width:"100%",...t},children:[Q(lC,{style:{padding:0},isLink:!0,readOnly:!0,value:M!=null&&M.length?M==null?void 0:M.join(","):"",onClick:()=>{r||(z([...M]),R(!0))},placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select"}),Q(sh,{visible:D,round:!0,position:"bottom",style:{height:"60vh"},onClose:()=>R(!1),children:Be("div",{className:Hh["checkbox-group"],children:[Be(me.Flex,{justify:"space-between",className:Hh["checkbox-group-header"],children:[Q("a",{className:Hh["checkbox-group-cancel"],onClick:()=>R(!1),children:C==="10001"?"取消":"Cancel"}),Q("a",{onClick:()=>{R(!1),I([...N]),c(N!=null&&N.length?N==null?void 0:N.join(","):"")},children:C==="10001"?"确定":"Confirm"})]}),Q("div",{style:{height:" calc(60vh - 70px)"},className:Hh["checkbox-group-content"],children:Q(MT.Group,{iconSize:"18",onChange:Y=>z(Y),value:N,children:_.map(Y=>Q(MT,{shape:"square",className:Hh["checkbox-item"],name:Y.value,children:Y.label},Y.value))})})]})})]}):Q(JC,{popup:!0,columns:_,placeholder:"",columnsFieldNames:{text:"label"},onConfirm:Y=>{if(x&&(E==null?void 0:E.length)>0&&(e==null?void 0:e.inputType)==="instance-url"){const B=e==null?void 0:e["key-field"],U=K6(E,String(Y)),P=Object.keys(B||{}),H=P==null?void 0:P.reduce((V,G)=>{const{list:ee,delimiter:ne}=(B==null?void 0:B[G])||{},$=ee==null?void 0:ee.map(X=>U==null?void 0:U[X]).join(ne||"-");return V[G]=$,V},{});c(H);return}c(Y)},children:(Y,B,U)=>{var H;Y=Y||f;let P="";return Array.isArray(Y)&&(P=(Y==null?void 0:Y.map(V=>{var G;return((G=_.find(ee=>ee.value===V))==null?void 0:G.label)||V}).join(","))||""),P=((H=_.find(V=>V.value===Y))==null?void 0:H.label)||Y,Q(lC,{style:{padding:0,...t},isLink:!0,readOnly:!0,clickable:!0,placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select",value:P,onClick:()=>{r||U.open()}})}})})},FV={customUpload:"myUpload-module_customUpload_5ec38"},NV=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),MV=e=>{const{action:r,item:t,onChange:i,readonly:l=!1,relatedid:f,uploadText:c,onRemove:h,list:m=[],uploadType:d,relatedidKey:g,langId:C}=e,{message:b}=me.App.useApp(),x=(t==null?void 0:t["upload-accept"])||"*",_=t==null?void 0:t.input,k=t==null?void 0:t["upload-size"],E=(t==null?void 0:t["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{m&&m.length&&R(m)},[m]);const Y=async H=>{d==="image"&&(!H.url&&!H.preview&&(H.preview=await NV(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),i&&i(H)},U=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(C==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},P=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(nn,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:c})});return Be(nn,{children:[Q(me.Upload,{action:r,beforeUpload:U,listType:A,accept:x,fileList:D,onPreview:Y,data:{[g]:f},maxCount:E,onChange:B,onRemove:h,disabled:l,className:FV.customUpload,children:D.length>=E?null:P}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},PV=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,handleUrlOptions:m,value:d,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]);W.useEffect(()=>{A()},[r.inputType,r.classify,r.data,r.options]);const A=async()=>{const T=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(T)};return Q(me.Radio.Group,{...l,options:k,onChange:t,disabled:i,value:d,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})},v3=e=>{const{value:r,onChange:t,langId:i,type:l}=e,[f,c]=W.useState(()=>{if(r)return Array.isArray(r)?r.map(m=>typeof m=="string"?Bt(m).toDate():m):typeof r=="string"?l==="multiple"?r.split(",").map(m=>typeof m=="string"?Bt(m).toDate():m):Bt(r).toDate():r});return W.useEffect(()=>{if(!r){c(void 0);return}Array.isArray(r)?c(r.map(m=>typeof m=="string"?Bt(m).toDate():m)):c(typeof r=="string"?Bt(r).toDate():r)},[r]),Q("div",{children:Q(JI,{type:l,value:f,onConfirm:m=>{if(t)if(Array.isArray(m)){const d=m.map(g=>Bt(g).format("YYYY-MM-DD"));t(d)}else{const d=Bt(m).format("YYYY-MM-DD");t(d)}},children:(m,d)=>(typeof m==="string"&&(m=m.split("~"),m.length===1&&(m=[m[0],m[1]])),Q(MD,{style:{padding:0},value:m?m.map(C=>Bt(C).format("YYYY-MM-DD")).join("~"):i==="10001"?"请选择日期":"Please select a date",onClick:C=>{d.open()}}))})})};Bt.extend(sD);function BV(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:h,relatedidKey:m,actionUrlKey:d,actionUrlExtraParams:g,CustomModalComponent:C,hideAttrList:b=[],langId:x="10001",getTitle:_,formListItemName:k="customFormList"}=e,E=W.useRef([]),{message:A}=me.App.useApp();W.useEffect(()=>{l&&(E.current=l)},[l]);const T=W.useCallback(P=>Array.isArray(P)?P:(P==null?void 0:P.fileList)??[],[]),D=P=>{f(P)},R=W.useCallback(P=>{var ee,ne;const H=(ee=P.json)==null?void 0:ee.input,V=(ne=P.json)==null?void 0:ne.format,G={};switch(H){case"date-picker":case"range-picker":case"second-picker":case"multiple-date-picker":case"time-picker":G.onClick=($,X)=>{var Z;(Z=X.current)==null||Z.open()},G.isLink=!0,G.trigger="onConfirm";break;case"image":case"file":case"video":case"audio":G.getValueFromEvent=T;break;case"week-picker":G.getValueFromEvent=$=>`${$==null?void 0:$.year()}-${Bt($).isoWeek()}周`,G.getValueProps=$=>{if(!$)return{value:null};const[X,Z]=$.split("-"),q=Number(X),te=Number(Z.replace("周",""));return{value:Bt().year(q).isoWeek(te)}};break;case"month-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM"),G.getValueProps=$=>({value:$?Bt($):null});break;case"quarter-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY年第Q季度"),G.getValueProps=$=>({value:$?Bt($,V||"YYYY年第Q季度"):null});break;case"year-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY"),G.getValueProps=$=>({value:$?Bt($):null});break}return G},[T]),N=W.useCallback(({isActive:P})=>P?Q(w8,{style:{fontSize:18,color:"#999"}}):Q(E8,{style:{fontSize:18,color:"#999"}}),[]),z=(P,H)=>{var V,G,ee,ne,$;return Be(me.Flex,{gap:10,vertical:H==="flex",align:"center",children:[Q("span",{children:P.attrname}),((V=P==null?void 0:P.json)==null?void 0:V.instruction)&&H==="icon"&&Q(me.Tooltip,{title:(G=P==null?void 0:P.json)==null?void 0:G.instruction,children:Q(b8,{style:{color:((ee=P==null?void 0:P.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((ne=P==null?void 0:P.json)==null?void 0:ne["instruction-color"])??"red"},children:($=P==null?void 0:P.json)==null?void 0:$.instruction})]})},M=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,parentFormListField:q,isShowLabel:te=!0})=>{const oe=Tc(P);let ae=P.children||[];Array.isArray(ae==null?void 0:ae[0])&&ae.length&&(ae=ae[0]);const fe=ve=>{const xe=(q==null?void 0:q.parentName)||(q==null?void 0:q.name);return xe?Array.isArray(xe)?[...xe,P.attrid,ve.name]:[xe,P.attrid,ve.name]:[P.attrid,ve.name]};return Q(me.Col,{span:24/H,children:Q(me.Collapse,{bordered:!1,defaultActiveKey:[P.attrid],style:{backgroundColor:"transparent"},expandIcon:({isActive:ve})=>N({isActive:ve}),items:[{key:P.attrid,label:P.attrname,styles:{header:{paddingLeft:0}},children:Q(xy.List,{name:q?Array.isArray(q.name)?[...q.name,P.attrid]:[q.name,P.attrid]:P.attrid,initialValue:oe,children:(ve,{add:xe,remove:se})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[ve.map(ke=>{const De={...ke,parentName:fe(ke)};return Q(me.Card,{style:{width:typeof Z=="number"?Z+100:Z},size:"small",title:`${P.attrname} ${ke.name+1}`,extra:Q(g8,{onClick:()=>{ve.length>1?se(ke.name):A.warning("至少需要保留一个!")}}),children:(ae||[]).map((Pe,ge)=>Q(W.Fragment,{children:U({item:Pe,readonly:V,colNum:H,instructionShowMode:G,relatedid:$,form:X,defaultWidth:Z,formItemStyle:ne,radioAlign:ee,isFormListItem:!0,formListField:De,isShowLabel:!0})},Pe.attrid||`child-${ge}`))},ke.key)}),Q(me.Flex,{style:{width:200},children:Q(me.Button,{type:"dashed",onClick:()=>xe(),block:!0,children:"+ 新增"})})]})})}]},P.attrid)})},[N,Tc]),I=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ae,fe,ve,xe,se,ke;if(((ae=P.json)==null?void 0:ae.hide)===!0||b!=null&&b.includes(P.attrid))return Q(nn,{});if(V=((fe=P.json)==null?void 0:fe.readonly)||V||!1,P.attrtype===1)return M({itemWithJson:P,colNum:H,readonly:V,instructionShowMode:G,radioAlign:ee,formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z,parentFormListField:te,isShowLabel:oe});if(P.attrtype===2)return Q(nn,{children:"实例信息"});if(P.attrtype===0){const De=Tc(P),Pe=(ve=P.json)==null?void 0:ve["default-prompt"],ge=uD(P,x),{combinations:$e=[]}=P.json||{};if($e!=null&&$e.length)return Q(me.Flex,{children:$e.map((et,ut)=>{var Jt,cn,Fn,Bn,kn,Vt,Hn;let Xt=Tc(et),Mt=Z;const Mn=et.json.input||"text",Pn=ne==null?void 0:ne.find(gr=>gr.type===Mn);Pn&&Pn!=null&&Pn.style;const sn=(Jt=et==null?void 0:et.json)==null?void 0:Jt["combination-width-ratio"];return sn&&(Mt=10*sn),Q(xy.Item,{style:{flex:Mt,pointerEvents:V?"none":"auto",opacity:V?.5:1},label:ut===0?(cn=P==null?void 0:P.json)==null?void 0:cn["combination-name"]:Q("div",{style:{visibility:"hidden"},children:(Fn=P==null?void 0:P.json)==null?void 0:Fn["combination-name"]}),required:ut===0?(Bn=et.json)==null?void 0:Bn.must:!1,name:te?Array.isArray(te.name)?[...te.name,et.attrid]:[te.name,et.attrid]:et.attrid,initialValue:Xt,rules:[...(kn=et.json)!=null&&kn.must?[{required:!0,message:Pe||`${ge}${et.attrname}`}]:[],...(Vt=P.json)!=null&&Vt.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((Hn=P.json)==null?void 0:Hn["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...R(et),children:B({item:et,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:Mt,customWidth:{width:"100%"},formListField:te})},ut)})});const Me=q&&te?Array.isArray(te.name)?[...te.name,P.attrid]:[te.name,P.attrid]:P.attrid;return Q(xy.Item,{border:!0,name:Me,label:oe&&z(P,G)||null,initialValue:De,style:{pointerEvents:V?"none":"auto",opacity:V?.5:1},rules:[...(xe=P.json)!=null&&xe.must?[{required:!0,message:`${ge}${P.attrname}`}]:[],...(se=P.json)!=null&&se.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((ke=P.json)==null?void 0:ke["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...R(P),children:B({item:P,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:Z,formListField:te})},P.attrid)}return null},[z,Tc,R,b,M]),Y=async P=>{var H;try{const V=(H=P==null?void 0:P.response)==null?void 0:H.data;if(V){if(!r)return;const G=await r({Controlname:"DelFile",PageName:"initializationfile"},V);if((G==null?void 0:G.ReturnValue)!==1)return A.error((G==null?void 0:G.msg)||"删除文件失败"),!1}else D(P);return!0}catch{return A.error("删除文件失败,请重试"),!1}},B=({item:P,readonly:H=!1,formItemStyle:V=[],radioAlign:G="horizontal",relatedid:ee,form:ne,defaultWidth:$=358,customWidth:X={},formListField:Z})=>{var ke,De,Pe;const q=P.json.input||"text",te=P.attrid,oe=Z?Array.isArray(Z.name)?[...Z.name,P.attrid]:[k,Z.name,P.attrid]:P.attrid,ae=Tc(P),fe=((ke=P.json)==null?void 0:ke["default-prompt"])||"",ve=uD(P,x),xe=P.json.length&&{maxLength:P.json.length}||{},se=V.find(ge=>ge.type===q);switch(q){case"label":return Q(cu,{disabled:!0,value:((De=P.json)==null?void 0:De["label-value"])||P.attrvalue||((Pe=P.json)==null?void 0:Pe.default)||"-",style:{width:$,...se==null?void 0:se.style,...X}});case"text":return Q(cu,{placeholder:fe||ve,...xe,disabled:H,clearable:!0,style:{width:$,...se==null?void 0:se.style,...X}});case"password":return Q(cu,{placeholder:fe||ve,...xe,disabled:H,type:"password",style:{width:$,...se==null?void 0:se.style,...X}});case"textarea":return Q(cu.TextArea,{placeholder:fe||ve,autoSize:{minHeight:80,maxHeight:120},...xe,disabled:H,style:{width:$,...se==null?void 0:se.style,...X}});case"number":return Q(cu,{placeholder:fe||ve,...xe,type:"number",disabled:H,style:{width:$,...se==null?void 0:se.style,...X}});case"mult-select":case"select":return Q(RV,{item:P.json,readonly:H,style:{width:$,...se==null?void 0:se.style,...X},commonRequestWidthParams:r,commonRequest:i,value:ae,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x,getTitle:_,attrid:te,onChange:ge=>{typeof ge=="object"&&!Array.isArray(ge)?ne.setFieldsValue({...ne.getFieldsValue(),...ge}):ne.setFieldValue(P.attrid,ge)}});case"modal-mult-select":case"modal-select":return Q(zL,{style:{width:$,...se==null?void 0:se.style,...X},item:P.json,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ge=>{ne.setFieldValue(P.attrid,ge)},disabled:H,langId:x,CustomModalComponent:C});case"mul-field-modal-select":return Q(BL,{style:{width:$,...se==null?void 0:se.style,...X},item:P.json,form:ne,attrid:te,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,langId:x,onSure:async ge=>{ne.setFieldsValue(ge)},disabled:H,CustomModalComponent:C,getTitle:_});case"date-picker":return Q(ew,{popup:!0,type:"date",children:ge=>ge?Bt(ge).format("YYYY-MM-DD"):x==="10001"?"请选择日期":"Please select a date"});case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":{const ge={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};return Q(me.DatePicker,{picker:ge[q]||"date",disabled:H,placement:"bottomLeft",style:{width:$,...se==null?void 0:se.style,...X}})}case"time-picker":return Q(ew,{popup:{round:!0},type:"datetime",title:x==="10001"?"选择年月日时分":"Select date and time",onConfirm:ge=>{ne.setFieldValue(P.attrid,ge)},children:ge=>ge?Q("span",{style:{color:"#333333"},children:Bt(ge).format("YYYY-MM-DD HH:mm")}):x==="10001"?"请选择时间":"Please select time"});case"second-picker":return Q(ew,{popup:{round:!0},type:"time",title:x==="10001"?"选择年月日":"Select time",onConfirm:ge=>{ne.setFieldValue(P.attrid,ge)},children:ge=>ge?Q("span",{style:{color:"#333333"},children:ge}):x==="10001"?"请选择时间":"Please select time"});case"range-picker":return Q(v3,{langId:x,value:ae,type:"range",onChange:ge=>{ne.setFieldValue(oe,ge)}});case"multiple-date-picker":return Q(v3,{langId:x,value:ae,type:"multiple",onChange:ge=>{ne.setFieldValue(oe,ge)}});case"radio":return Q(PV,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H,options:xe,handleUrlOptions:kc,value:ae,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x,onChange:ge=>{ne.setFieldValue(P.attrid,ge.target.value)}});case"checkbox":return Q(jL,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H,options:xe,value:ae,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x,onChange:ge=>{ne.setFieldValue(P.attrid,ge.join(","))}});case"audio":case"file":case"image":case"video":return Q(MV,{action:t&&t("initializationfile"),item:P.json,uploadType:q,list:ae,readonly:H,uploadText:x==="10001"?"上传文件":"Upload file",relatedid:ee,relatedidKey:m,langId:x,onRemove:ge=>Y(ge)});case"cascader":return Q(IL,{commonRequestWidthParams:r,commonRequest:i,item:P.json,value:P.attrvalue,style:{width:$,...se==null?void 0:se.style,...X},interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x});case"radio-card":return Q(HL,{item:P.json,readonly:H,onChange:ge=>{ne.setFieldValue(P.attrid,ge)},commonRequestWidthParams:r});default:return Q(cu,{placeholder:ve,...xe,clearable:!0,disabled:H,style:{width:$,...se==null?void 0:se.style,...X}})}},U=({item:P,readonly:H=!1,colNum:V=1,instructionShowMode:G="icon",relatedid:ee,form:ne,defaultWidth:$=358,formItemStyle:X,radioAlign:Z="horizontal",isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ve;const ae=P.info_base64===1?uu(Zp(P.info)):uu(P.info),fe={...P,json:{...P==null?void 0:P.json,...ae}};return((ve=fe.json)==null?void 0:ve.hide)===!0?null:Q(W.Fragment,{children:I({itemWithJson:fe,readonly:H,colNum:V,instructionShowMode:G,relatedid:ee,form:ne,defaultWidth:$,formItemStyle:X,radioAlign:Z,isFormListItem:q,formListField:te,isShowLabel:oe})},fe.attrid)};return{handleRenderItem:U,handleSetFormItemInitialValue:Tc}}const LV=W.forwardRef((e,r)=>{const{formConfig:t,setFormConfig:i,setAttrList:l,readonly:f=!1,relatedid:c,colNum:h=1,colSpace:m=[0,0],instructionShowMode:d="flex",defaultWidth:g="100%",commonRequestWidthParams:C,uploadAction:b,commonRequest:x,formItemStyle:_=[],radioAlign:k="horizontal",interfaceTypeChildren:E="YLLRDetailAttrlist",interfaceTypeDict:A="YLZDDictList",interfaceTypeSysDict:T="YLZDSysConfigList",relatedidKey:D="relatedid",actionUrlKey:R="action-url",actionUrlExtraParams:N={},CustomModalComponent:z,hideAttrList:M=[],formShowType:I="form",formListItemWidth:Y,formListItemName:B,langId:U="10001",getTitle:P,form:H}=e,V=W.useRef([]),G=ne=>{V.current.push(ne)},{handleRenderItem:ee}=BV({commonRequestWidthParams:C,uploadAction:b,commonRequest:x,setFormConfig:i,setAttrList:l,updateDelFileList:G,formConfig:t,interfaceTypeChildren:E,interfaceTypeDict:A,interfaceTypeSysDict:T,relatedidKey:D,actionUrlKey:R,actionUrlExtraParams:N,CustomModalComponent:z,hideAttrList:M,langId:U,getTitle:P,formListItemName:B});return W.useImperativeHandle(r,()=>({getDelFileList:()=>V.current})),Q(nn,{children:I==="table"?Q(xy.List,{name:B||"customFormList",initialValue:[{}],children:(ne,{add:$,remove:X})=>Be(nn,{children:[ne.map((Z,q)=>Be("div",{className:"form-list-item",style:{borderRadius:8,marginBottom:10},children:[Be(me.Flex,{justify:"space-between",style:{height:44,marginLeft:16,marginRight:16,borderBottom:"1px solid #E3E3E3"},align:"center",children:[Q("span",{style:{color:"#555555"},children:U==="10001"?`第${q+1}条`:`Record ${q+1}`}),ne.length>1&&Q("a",{style:{color:"#ff4d4f"},onClick:()=>X(q),children:U==="10001"?"删除":"Delete"})]}),Q("div",{className:"form-list-item__control",children:t==null?void 0:t.map((te,oe)=>Q(W.Fragment,{children:ee({item:te,readonly:f,colNum:h,instructionShowMode:d,relatedid:c,form:H,defaultWidth:(Y==null?void 0:Y[oe])||g,formItemStyle:_,isFormListItem:!0,formListField:Z})},oe))})]},q)),Q("div",{style:{padding:10},children:Q(ih,{plain:!0,icon:Q(Hz,{}),style:{width:"100%"},type:"primary",onClick:()=>$({}),children:U==="10001"?"新增":"Add"})})]})}):Q(me.Row,{gutter:m,children:t.map((ne,$)=>Q(W.Fragment,{children:ee({item:ne,readonly:f,colNum:h,instructionShowMode:d,relatedid:c,form:H,defaultWidth:g,formItemStyle:_,radioAlign:k})},ne.attrid||`form-item-${$}`))})})}),m3={phone:{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号码"},telephone:{pattern:/^[\d -]+$/,message:"请输入正确的电话号码"},email:{pattern:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,message:"请输入正确的邮箱地址"},httpUrl:{pattern:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/,message:"请输入合法的URL"},zipCode:{pattern:/^[0-9]{6}$/,message:"请输入正确的邮政编码"},specificKey:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D()()]*$/,message:"可输入字母、汉字、数字或()"},inputTextarea:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D-\u3002-\uff1f-\uff01-\uff0c-\u3001-\uff1b-\uff1a]*$/,message:"请输入字母、汉字或数字和中文常用字符:?!,、;。"},backendRestrict:{pattern:/^[^'"/\\]*$/,message:`不能输入特殊字符\\'/"`},onetoNinetyNine:{pattern:/^[1-9][0-9]{0,1}$/,message:"请输入1-99的整数"},passwordRule:{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z0-9]{8,12}$/,message:"密码应为字母大小写+数字8-12位组合"},passwordNewRule:{pattern:/^.*(?=.{8,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#¥%&*.()_+~/-]).*$/,message:"密码应为字母大小写+数字+常见字符!@#¥%&*.()_+~/- 8-12位组合"},pureNumber:{pattern:/^[1-9][0-9]*$/,message:"请输入整数类型"},onlyBlankRule:{pattern:/\S/,message:"输入内容不能只有空格"}},zV=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"}));class UV{constructor(r){Xf(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=r}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const r=document.getElementById(this.options.id),t=document.createElement("canvas");t.id=this.options.canvasId,t.width=Number(this.options.width),t.height=Number(this.options.height),t.style.cursor="pointer",t.innerHTML="您的浏览器版本不支持canvas",r&&r.appendChild(t),t.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const r=document.getElementById(this.options.canvasId);let t,i=[];if(r.getContext)t=r.getContext("2d");else return;t.textBaseline="middle",t.fillStyle=this.randomColor(180,240),t.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?i=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?i=this.options.numArr:i=this.options.letterArr;for(let l=1;l<=4;l++){const f=i[this.randomNum(0,i.length)];this.options.code+=f,t.font="20px SimHei",t.fillStyle=this.randomColor(50,160),t.shadowBlur=this.randomNum(-3,3),t.shadowColor="rgba(0, 0, 0, 0.3)";const c=Number(this.options.width)/5*l,h=Number(this.options.height)/2,m=this.randomNum(-30,30);t.translate(c,h),t.rotate(m*Math.PI/180),t.fillText(f,0,0),t.rotate(-m*Math.PI/180),t.translate(-c,-h)}for(let l=0;l<2;l++)t.strokeStyle=this.randomColor(40,180),t.beginPath(),t.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),t.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),t.stroke();for(let l=0;l<Number(this.options.width)/10;l++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),t.fill()}validate(r){const t=r.toLowerCase(),i=this.options.code.toLowerCase();return t==i}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(r,t){return Math.floor(Math.random()*(t-r)+r)}randomColor(r,t){const i=this.randomNum(r,t),l=this.randomNum(r,t),f=this.randomNum(r,t);return"rgb("+i+","+l+","+f+")"}}const jV=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:UV},Symbol.toStringTag,{value:"Module"}));var g3={exports:{}};function IV(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sw={exports:{}};const HV=U4(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var y3;function Zt(){return y3||(y3=1,function(e,r){(function(t,i){e.exports=i()})(Lt,function(){var t=t||function(i,l){var f;if(typeof window<"u"&&window.crypto&&(f=window.crypto),typeof self<"u"&&self.crypto&&(f=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(f=globalThis.crypto),!f&&typeof window<"u"&&window.msCrypto&&(f=window.msCrypto),!f&&typeof Lt<"u"&&Lt.crypto&&(f=Lt.crypto),!f&&typeof IV=="function")try{f=HV}catch{}var c=function(){if(f){if(typeof f.getRandomValues=="function")try{return f.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof f.randomBytes=="function")try{return f.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||function(){function T(){}return function(D){var R;return T.prototype=D,R=new T,T.prototype=null,R}}(),m={},d=m.lib={},g=d.Base=function(){return{extend:function(T){var D=h(this);return T&&D.mixIn(T),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var D in T)T.hasOwnProperty(D)&&(this[D]=T[D]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),C=d.WordArray=g.extend({init:function(T,D){T=this.words=T||[],D!=l?this.sigBytes=D:this.sigBytes=T.length*4},toString:function(T){return(T||x).stringify(this)},concat:function(T){var D=this.words,R=T.words,N=this.sigBytes,z=T.sigBytes;if(this.clamp(),N%4)for(var M=0;M<z;M++){var I=R[M>>>2]>>>24-M%4*8&255;D[N+M>>>2]|=I<<24-(N+M)%4*8}else for(var Y=0;Y<z;Y+=4)D[N+Y>>>2]=R[Y>>>2];return this.sigBytes+=z,this},clamp:function(){var T=this.words,D=this.sigBytes;T[D>>>2]&=4294967295<<32-D%4*8,T.length=i.ceil(D/4)},clone:function(){var T=g.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var D=[],R=0;R<T;R+=4)D.push(c());return new C.init(D,T)}}),b=m.enc={},x=b.Hex={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push((M>>>4).toString(16)),N.push((M&15).toString(16))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N+=2)R[N>>>3]|=parseInt(T.substr(N,2),16)<<24-N%8*4;return new C.init(R,D/2)}},_=b.Latin1={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push(String.fromCharCode(M))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N++)R[N>>>2]|=(T.charCodeAt(N)&255)<<24-N%4*8;return new C.init(R,D)}},k=b.Utf8={stringify:function(T){try{return decodeURIComponent(escape(_.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return _.parse(unescape(encodeURIComponent(T)))}},E=d.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=k.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var D,R=this._data,N=R.words,z=R.sigBytes,M=this.blockSize,I=M*4,Y=z/I;T?Y=i.ceil(Y):Y=i.max((Y|0)-this._minBufferSize,0);var B=Y*M,U=i.min(B*4,z);if(B){for(var P=0;P<B;P+=M)this._doProcessBlock(N,P);D=N.splice(0,B),R.sigBytes-=U}return new C.init(D,U)},clone:function(){var T=g.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0});d.Hasher=E.extend({cfg:g.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){T&&this._append(T);var D=this._doFinalize();return D},blockSize:16,_createHelper:function(T){return function(D,R){return new T.init(R).finalize(D)}},_createHmacHelper:function(T){return function(D,R){return new A.HMAC.init(T,R).finalize(D)}}});var A=m.algo={};return m}(Math);return t})}(Sw)),Sw.exports}var Ew={exports:{}},x3;function by(){return x3||(x3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.Base,h=f.WordArray,m=l.x64={};m.Word=c.extend({init:function(d,g){this.high=d,this.low=g}}),m.WordArray=c.extend({init:function(d,g){d=this.words=d||[],g!=i?this.sigBytes=g:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,g=d.length,C=[],b=0;b<g;b++){var x=d[b];C.push(x.high),C.push(x.low)}return h.create(C,this.sigBytes)},clone:function(){for(var d=c.clone.call(this),g=d.words=this.words.slice(0),C=g.length,b=0;b<C;b++)g[b]=g[b].clone();return d}})}(),t})}(Ew)),Ew.exports}var Dw={exports:{}},b3;function VV(){return b3||(b3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){if(typeof ArrayBuffer=="function"){var i=t,l=i.lib,f=l.WordArray,c=f.init,h=f.init=function(m){if(m instanceof ArrayBuffer&&(m=new Uint8Array(m)),(m instanceof Int8Array||typeof Uint8ClampedArray<"u"&&m instanceof Uint8ClampedArray||m instanceof Int16Array||m instanceof Uint16Array||m instanceof Int32Array||m instanceof Uint32Array||m instanceof Float32Array||m instanceof Float64Array)&&(m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength)),m instanceof Uint8Array){for(var d=m.byteLength,g=[],C=0;C<d;C++)g[C>>>2]|=m[C]<<24-C%4*8;c.call(this,g,d)}else c.apply(this,arguments)};h.prototype=f}}(),t.lib.WordArray})}(Dw)),Dw.exports}var kw={exports:{}},C3;function $V(){return C3||(C3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Utf16=c.Utf16BE={stringify:function(m){for(var d=m.words,g=m.sigBytes,C=[],b=0;b<g;b+=2){var x=d[b>>>2]>>>16-b%4*8&65535;C.push(String.fromCharCode(x))}return C.join("")},parse:function(m){for(var d=m.length,g=[],C=0;C<d;C++)g[C>>>1]|=m.charCodeAt(C)<<16-C%2*16;return f.create(g,d*2)}},c.Utf16LE={stringify:function(m){for(var d=m.words,g=m.sigBytes,C=[],b=0;b<g;b+=2){var x=h(d[b>>>2]>>>16-b%4*8&65535);C.push(String.fromCharCode(x))}return C.join("")},parse:function(m){for(var d=m.length,g=[],C=0;C<d;C++)g[C>>>1]|=h(m.charCodeAt(C)<<16-C%2*16);return f.create(g,d*2)}};function h(m){return m<<8&4278255360|m>>>8&16711935}}(),t.enc.Utf16})}(kw)),kw.exports}var Tw={exports:{}},w3;function jc(){return w3||(w3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64={stringify:function(m){var d=m.words,g=m.sigBytes,C=this._map;m.clamp();for(var b=[],x=0;x<g;x+=3)for(var _=d[x>>>2]>>>24-x%4*8&255,k=d[x+1>>>2]>>>24-(x+1)%4*8&255,E=d[x+2>>>2]>>>24-(x+2)%4*8&255,A=_<<16|k<<8|E,T=0;T<4&&x+T*.75<g;T++)b.push(C.charAt(A>>>6*(3-T)&63));var D=C.charAt(64);if(D)for(;b.length%4;)b.push(D);return b.join("")},parse:function(m){var d=m.length,g=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var b=0;b<g.length;b++)C[g.charCodeAt(b)]=b}var x=g.charAt(64);if(x){var _=m.indexOf(x);_!==-1&&(d=_)}return h(m,d,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function h(m,d,g){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=g[m.charCodeAt(x-1)]<<x%4*2,k=g[m.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64})}(Tw)),Tw.exports}var Aw={exports:{}},_3;function YV(){return _3||(_3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64url={stringify:function(m,d){d===void 0&&(d=!0);var g=m.words,C=m.sigBytes,b=d?this._safe_map:this._map;m.clamp();for(var x=[],_=0;_<C;_+=3)for(var k=g[_>>>2]>>>24-_%4*8&255,E=g[_+1>>>2]>>>24-(_+1)%4*8&255,A=g[_+2>>>2]>>>24-(_+2)%4*8&255,T=k<<16|E<<8|A,D=0;D<4&&_+D*.75<C;D++)x.push(b.charAt(T>>>6*(3-D)&63));var R=b.charAt(64);if(R)for(;x.length%4;)x.push(R);return x.join("")},parse:function(m,d){d===void 0&&(d=!0);var g=m.length,C=d?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var x=0;x<C.length;x++)b[C.charCodeAt(x)]=x}var _=C.charAt(64);if(_){var k=m.indexOf(_);k!==-1&&(g=k)}return h(m,g,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function h(m,d,g){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=g[m.charCodeAt(x-1)]<<x%4*2,k=g[m.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64url})}(Aw)),Aw.exports}var Ow={exports:{}},S3;function Ic(){return S3||(S3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.algo,d=[];(function(){for(var k=0;k<64;k++)d[k]=i.abs(i.sin(k+1))*4294967296|0})();var g=m.MD5=h.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,E){for(var A=0;A<16;A++){var T=E+A,D=k[T];k[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var R=this._hash.words,N=k[E+0],z=k[E+1],M=k[E+2],I=k[E+3],Y=k[E+4],B=k[E+5],U=k[E+6],P=k[E+7],H=k[E+8],V=k[E+9],G=k[E+10],ee=k[E+11],ne=k[E+12],$=k[E+13],X=k[E+14],Z=k[E+15],q=R[0],te=R[1],oe=R[2],ae=R[3];q=C(q,te,oe,ae,N,7,d[0]),ae=C(ae,q,te,oe,z,12,d[1]),oe=C(oe,ae,q,te,M,17,d[2]),te=C(te,oe,ae,q,I,22,d[3]),q=C(q,te,oe,ae,Y,7,d[4]),ae=C(ae,q,te,oe,B,12,d[5]),oe=C(oe,ae,q,te,U,17,d[6]),te=C(te,oe,ae,q,P,22,d[7]),q=C(q,te,oe,ae,H,7,d[8]),ae=C(ae,q,te,oe,V,12,d[9]),oe=C(oe,ae,q,te,G,17,d[10]),te=C(te,oe,ae,q,ee,22,d[11]),q=C(q,te,oe,ae,ne,7,d[12]),ae=C(ae,q,te,oe,$,12,d[13]),oe=C(oe,ae,q,te,X,17,d[14]),te=C(te,oe,ae,q,Z,22,d[15]),q=b(q,te,oe,ae,z,5,d[16]),ae=b(ae,q,te,oe,U,9,d[17]),oe=b(oe,ae,q,te,ee,14,d[18]),te=b(te,oe,ae,q,N,20,d[19]),q=b(q,te,oe,ae,B,5,d[20]),ae=b(ae,q,te,oe,G,9,d[21]),oe=b(oe,ae,q,te,Z,14,d[22]),te=b(te,oe,ae,q,Y,20,d[23]),q=b(q,te,oe,ae,V,5,d[24]),ae=b(ae,q,te,oe,X,9,d[25]),oe=b(oe,ae,q,te,I,14,d[26]),te=b(te,oe,ae,q,H,20,d[27]),q=b(q,te,oe,ae,$,5,d[28]),ae=b(ae,q,te,oe,M,9,d[29]),oe=b(oe,ae,q,te,P,14,d[30]),te=b(te,oe,ae,q,ne,20,d[31]),q=x(q,te,oe,ae,B,4,d[32]),ae=x(ae,q,te,oe,H,11,d[33]),oe=x(oe,ae,q,te,ee,16,d[34]),te=x(te,oe,ae,q,X,23,d[35]),q=x(q,te,oe,ae,z,4,d[36]),ae=x(ae,q,te,oe,Y,11,d[37]),oe=x(oe,ae,q,te,P,16,d[38]),te=x(te,oe,ae,q,G,23,d[39]),q=x(q,te,oe,ae,$,4,d[40]),ae=x(ae,q,te,oe,N,11,d[41]),oe=x(oe,ae,q,te,I,16,d[42]),te=x(te,oe,ae,q,U,23,d[43]),q=x(q,te,oe,ae,V,4,d[44]),ae=x(ae,q,te,oe,ne,11,d[45]),oe=x(oe,ae,q,te,Z,16,d[46]),te=x(te,oe,ae,q,M,23,d[47]),q=_(q,te,oe,ae,N,6,d[48]),ae=_(ae,q,te,oe,P,10,d[49]),oe=_(oe,ae,q,te,X,15,d[50]),te=_(te,oe,ae,q,B,21,d[51]),q=_(q,te,oe,ae,ne,6,d[52]),ae=_(ae,q,te,oe,I,10,d[53]),oe=_(oe,ae,q,te,G,15,d[54]),te=_(te,oe,ae,q,z,21,d[55]),q=_(q,te,oe,ae,H,6,d[56]),ae=_(ae,q,te,oe,Z,10,d[57]),oe=_(oe,ae,q,te,U,15,d[58]),te=_(te,oe,ae,q,$,21,d[59]),q=_(q,te,oe,ae,Y,6,d[60]),ae=_(ae,q,te,oe,ee,10,d[61]),oe=_(oe,ae,q,te,M,15,d[62]),te=_(te,oe,ae,q,V,21,d[63]),R[0]=R[0]+q|0,R[1]=R[1]+te|0,R[2]=R[2]+oe|0,R[3]=R[3]+ae|0},_doFinalize:function(){var k=this._data,E=k.words,A=this._nDataBytes*8,T=k.sigBytes*8;E[T>>>5]|=128<<24-T%32;var D=i.floor(A/4294967296),R=A;E[(T+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E[(T+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k.sigBytes=(E.length+1)*4,this._process();for(var N=this._hash,z=N.words,M=0;M<4;M++){var I=z[M];z[M]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return N},clone:function(){var k=h.clone.call(this);return k._hash=this._hash.clone(),k}});function C(k,E,A,T,D,R,N){var z=k+(E&A|~E&T)+D+N;return(z<<R|z>>>32-R)+E}function b(k,E,A,T,D,R,N){var z=k+(E&T|A&~T)+D+N;return(z<<R|z>>>32-R)+E}function x(k,E,A,T,D,R,N){var z=k+(E^A^T)+D+N;return(z<<R|z>>>32-R)+E}function _(k,E,A,T,D,R,N){var z=k+(A^(E|~T))+D+N;return(z<<R|z>>>32-R)+E}l.MD5=h._createHelper(g),l.HmacMD5=h._createHmacHelper(g)}(Math),t.MD5})}(Ow)),Ow.exports}var Rw={exports:{}},E3;function D3(){return E3||(E3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.Hasher,h=i.algo,m=[],d=h.SHA1=c.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,C){for(var b=this._hash.words,x=b[0],_=b[1],k=b[2],E=b[3],A=b[4],T=0;T<80;T++){if(T<16)m[T]=g[C+T]|0;else{var D=m[T-3]^m[T-8]^m[T-14]^m[T-16];m[T]=D<<1|D>>>31}var R=(x<<5|x>>>27)+A+m[T];T<20?R+=(_&k|~_&E)+1518500249:T<40?R+=(_^k^E)+1859775393:T<60?R+=(_&k|_&E|k&E)-1894007588:R+=(_^k^E)-899497514,A=E,E=k,k=_<<30|_>>>2,_=x,x=R}b[0]=b[0]+x|0,b[1]=b[1]+_|0,b[2]=b[2]+k|0,b[3]=b[3]+E|0,b[4]=b[4]+A|0},_doFinalize:function(){var g=this._data,C=g.words,b=this._nDataBytes*8,x=g.sigBytes*8;return C[x>>>5]|=128<<24-x%32,C[(x+64>>>9<<4)+14]=Math.floor(b/4294967296),C[(x+64>>>9<<4)+15]=b,g.sigBytes=C.length*4,this._process(),this._hash},clone:function(){var g=c.clone.call(this);return g._hash=this._hash.clone(),g}});i.SHA1=c._createHelper(d),i.HmacSHA1=c._createHmacHelper(d)}(),t.SHA1})}(Rw)),Rw.exports}var Fw={exports:{}},k3;function Nw(){return k3||(k3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.algo,d=[],g=[];(function(){function x(A){for(var T=i.sqrt(A),D=2;D<=T;D++)if(!(A%D))return!1;return!0}function _(A){return(A-(A|0))*4294967296|0}for(var k=2,E=0;E<64;)x(k)&&(E<8&&(d[E]=_(i.pow(k,1/2))),g[E]=_(i.pow(k,1/3)),E++),k++})();var C=[],b=m.SHA256=h.extend({_doReset:function(){this._hash=new c.init(d.slice(0))},_doProcessBlock:function(x,_){for(var k=this._hash.words,E=k[0],A=k[1],T=k[2],D=k[3],R=k[4],N=k[5],z=k[6],M=k[7],I=0;I<64;I++){if(I<16)C[I]=x[_+I]|0;else{var Y=C[I-15],B=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,U=C[I-2],P=(U<<15|U>>>17)^(U<<13|U>>>19)^U>>>10;C[I]=B+C[I-7]+P+C[I-16]}var H=R&N^~R&z,V=E&A^E&T^A&T,G=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),ee=(R<<26|R>>>6)^(R<<21|R>>>11)^(R<<7|R>>>25),ne=M+ee+H+g[I]+C[I],$=G+V;M=z,z=N,N=R,R=D+ne|0,D=T,T=A,A=E,E=ne+$|0}k[0]=k[0]+E|0,k[1]=k[1]+A|0,k[2]=k[2]+T|0,k[3]=k[3]+D|0,k[4]=k[4]+R|0,k[5]=k[5]+N|0,k[6]=k[6]+z|0,k[7]=k[7]+M|0},_doFinalize:function(){var x=this._data,_=x.words,k=this._nDataBytes*8,E=x.sigBytes*8;return _[E>>>5]|=128<<24-E%32,_[(E+64>>>9<<4)+14]=i.floor(k/4294967296),_[(E+64>>>9<<4)+15]=k,x.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var x=h.clone.call(this);return x._hash=this._hash.clone(),x}});l.SHA256=h._createHelper(b),l.HmacSHA256=h._createHmacHelper(b)}(Math),t.SHA256})}(Fw)),Fw.exports}var Mw={exports:{}},T3;function qV(){return T3||(T3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),Nw())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.algo,h=c.SHA256,m=c.SHA224=h.extend({_doReset:function(){this._hash=new f.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=h._doFinalize.call(this);return d.sigBytes-=4,d}});i.SHA224=h._createHelper(m),i.HmacSHA224=h._createHmacHelper(m)}(),t.SHA224})}(Mw)),Mw.exports}var Pw={exports:{}},A3;function O3(){return A3||(A3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),by())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.Hasher,c=i.x64,h=c.Word,m=c.WordArray,d=i.algo;function g(){return h.create.apply(h,arguments)}var C=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],b=[];(function(){for(var _=0;_<80;_++)b[_]=g()})();var x=d.SHA512=f.extend({_doReset:function(){this._hash=new m.init([new h.init(1779033703,4089235720),new h.init(3144134277,2227873595),new h.init(1013904242,4271175723),new h.init(2773480762,1595750129),new h.init(1359893119,2917565137),new h.init(2600822924,725511199),new h.init(528734635,4215389547),new h.init(1541459225,327033209)])},_doProcessBlock:function(_,k){for(var E=this._hash.words,A=E[0],T=E[1],D=E[2],R=E[3],N=E[4],z=E[5],M=E[6],I=E[7],Y=A.high,B=A.low,U=T.high,P=T.low,H=D.high,V=D.low,G=R.high,ee=R.low,ne=N.high,$=N.low,X=z.high,Z=z.low,q=M.high,te=M.low,oe=I.high,ae=I.low,fe=Y,ve=B,xe=U,se=P,ke=H,De=V,Pe=G,ge=ee,$e=ne,Me=$,et=X,ut=Z,Xt=q,Mt=te,Mn=oe,Pn=ae,sn=0;sn<80;sn++){var Jt,cn,Fn=b[sn];if(sn<16)cn=Fn.high=_[k+sn*2]|0,Jt=Fn.low=_[k+sn*2+1]|0;else{var Bn=b[sn-15],kn=Bn.high,Vt=Bn.low,Hn=(kn>>>1|Vt<<31)^(kn>>>8|Vt<<24)^kn>>>7,gr=(Vt>>>1|kn<<31)^(Vt>>>8|kn<<24)^(Vt>>>7|kn<<25),ur=b[sn-2],Ye=ur.high,at=ur.low,it=(Ye>>>19|at<<13)^(Ye<<3|at>>>29)^Ye>>>6,$t=(at>>>19|Ye<<13)^(at<<3|Ye>>>29)^(at>>>6|Ye<<26),Nn=b[sn-7],cr=Nn.high,Wn=Nn.low,Ur=b[sn-16],_n=Ur.high,ra=Ur.low;Jt=gr+Wn,cn=Hn+cr+(Jt>>>0<gr>>>0?1:0),Jt=Jt+$t,cn=cn+it+(Jt>>>0<$t>>>0?1:0),Jt=Jt+ra,cn=cn+_n+(Jt>>>0<ra>>>0?1:0),Fn.high=cn,Fn.low=Jt}var vn=$e&et^~$e&Xt,mn=Me&ut^~Me&Mt,yl=fe&xe^fe&ke^xe&ke,Do=ve&se^ve&De^se&De,xl=(fe>>>28|ve<<4)^(fe<<30|ve>>>2)^(fe<<25|ve>>>7),bl=(ve>>>28|fe<<4)^(ve<<30|fe>>>2)^(ve<<25|fe>>>7),gu=($e>>>14|Me<<18)^($e>>>18|Me<<14)^($e<<23|Me>>>9),ko=(Me>>>14|$e<<18)^(Me>>>18|$e<<14)^(Me<<23|$e>>>9),To=C[sn],Ao=To.high,Oo=To.low,Vn=Pn+ko,jr=Mn+gu+(Vn>>>0<Pn>>>0?1:0),Vn=Vn+mn,jr=jr+vn+(Vn>>>0<mn>>>0?1:0),Vn=Vn+Oo,jr=jr+Ao+(Vn>>>0<Oo>>>0?1:0),Vn=Vn+Jt,jr=jr+cn+(Vn>>>0<Jt>>>0?1:0),aa=bl+Do,Ya=xl+yl+(aa>>>0<bl>>>0?1:0);Mn=Xt,Pn=Mt,Xt=et,Mt=ut,et=$e,ut=Me,Me=ge+Vn|0,$e=Pe+jr+(Me>>>0<ge>>>0?1:0)|0,Pe=ke,ge=De,ke=xe,De=se,xe=fe,se=ve,ve=Vn+aa|0,fe=jr+Ya+(ve>>>0<Vn>>>0?1:0)|0}B=A.low=B+ve,A.high=Y+fe+(B>>>0<ve>>>0?1:0),P=T.low=P+se,T.high=U+xe+(P>>>0<se>>>0?1:0),V=D.low=V+De,D.high=H+ke+(V>>>0<De>>>0?1:0),ee=R.low=ee+ge,R.high=G+Pe+(ee>>>0<ge>>>0?1:0),$=N.low=$+Me,N.high=ne+$e+($>>>0<Me>>>0?1:0),Z=z.low=Z+ut,z.high=X+et+(Z>>>0<ut>>>0?1:0),te=M.low=te+Mt,M.high=q+Xt+(te>>>0<Mt>>>0?1:0),ae=I.low=ae+Pn,I.high=oe+Mn+(ae>>>0<Pn>>>0?1:0)},_doFinalize:function(){var _=this._data,k=_.words,E=this._nDataBytes*8,A=_.sigBytes*8;k[A>>>5]|=128<<24-A%32,k[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),k[(A+128>>>10<<5)+31]=E,_.sigBytes=k.length*4,this._process();var T=this._hash.toX32();return T},clone:function(){var _=f.clone.call(this);return _._hash=this._hash.clone(),_},blockSize:1024/32});i.SHA512=f._createHelper(x),i.HmacSHA512=f._createHmacHelper(x)}(),t.SHA512})}(Pw)),Pw.exports}var Bw={exports:{}},R3;function GV(){return R3||(R3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),by(),O3())})(Lt,function(t){return function(){var i=t,l=i.x64,f=l.Word,c=l.WordArray,h=i.algo,m=h.SHA512,d=h.SHA384=m.extend({_doReset:function(){this._hash=new c.init([new f.init(3418070365,3238371032),new f.init(1654270250,914150663),new f.init(2438529370,812702999),new f.init(355462360,4144912697),new f.init(1731405415,4290775857),new f.init(2394180231,1750603025),new f.init(3675008525,1694076839),new f.init(1203062813,3204075428)])},_doFinalize:function(){var g=m._doFinalize.call(this);return g.sigBytes-=16,g}});i.SHA384=m._createHelper(d),i.HmacSHA384=m._createHmacHelper(d)}(),t.SHA384})}(Bw)),Bw.exports}var Lw={exports:{}},F3;function KV(){return F3||(F3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),by())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.x64,d=m.Word,g=l.algo,C=[],b=[],x=[];(function(){for(var E=1,A=0,T=0;T<24;T++){C[E+5*A]=(T+1)*(T+2)/2%64;var D=A%5,R=(2*E+3*A)%5;E=D,A=R}for(var E=0;E<5;E++)for(var A=0;A<5;A++)b[E+5*A]=A+(2*E+3*A)%5*5;for(var N=1,z=0;z<24;z++){for(var M=0,I=0,Y=0;Y<7;Y++){if(N&1){var B=(1<<Y)-1;B<32?I^=1<<B:M^=1<<B-32}N&128?N=N<<1^113:N<<=1}x[z]=d.create(M,I)}})();var _=[];(function(){for(var E=0;E<25;E++)_[E]=d.create()})();var k=g.SHA3=h.extend({cfg:h.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var T=this._state,D=this.blockSize/2,R=0;R<D;R++){var N=E[A+2*R],z=E[A+2*R+1];N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360;var M=T[R];M.high^=z,M.low^=N}for(var I=0;I<24;I++){for(var Y=0;Y<5;Y++){for(var B=0,U=0,P=0;P<5;P++){var M=T[Y+5*P];B^=M.high,U^=M.low}var H=_[Y];H.high=B,H.low=U}for(var Y=0;Y<5;Y++)for(var V=_[(Y+4)%5],G=_[(Y+1)%5],ee=G.high,ne=G.low,B=V.high^(ee<<1|ne>>>31),U=V.low^(ne<<1|ee>>>31),P=0;P<5;P++){var M=T[Y+5*P];M.high^=B,M.low^=U}for(var $=1;$<25;$++){var B,U,M=T[$],X=M.high,Z=M.low,q=C[$];q<32?(B=X<<q|Z>>>32-q,U=Z<<q|X>>>32-q):(B=Z<<q-32|X>>>64-q,U=X<<q-32|Z>>>64-q);var te=_[b[$]];te.high=B,te.low=U}var oe=_[0],ae=T[0];oe.high=ae.high,oe.low=ae.low;for(var Y=0;Y<5;Y++)for(var P=0;P<5;P++){var $=Y+5*P,M=T[$],fe=_[$],ve=_[(Y+1)%5+5*P],xe=_[(Y+2)%5+5*P];M.high=fe.high^~ve.high&xe.high,M.low=fe.low^~ve.low&xe.low}var M=T[0],se=x[I];M.high^=se.high,M.low^=se.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var T=E.sigBytes*8,D=this.blockSize*32;A[T>>>5]|=1<<24-T%32,A[(i.ceil((T+1)/D)*D>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var R=this._state,N=this.cfg.outputLength/8,z=N/8,M=[],I=0;I<z;I++){var Y=R[I],B=Y.high,U=Y.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,U=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,M.push(U),M.push(B)}return new c.init(M,N)},clone:function(){for(var E=h.clone.call(this),A=E._state=this._state.slice(0),T=0;T<25;T++)A[T]=A[T].clone();return E}});l.SHA3=h._createHelper(k),l.HmacSHA3=h._createHmacHelper(k)}(Math),t.SHA3})}(Lw)),Lw.exports}var zw={exports:{}},N3;function WV(){return N3||(N3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),g=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=c.create([0,1518500249,1859775393,2400959708,2840853838]),_=c.create([1352829926,1548603684,1836072691,2053994217,0]),k=m.RIPEMD160=h.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(z,M){for(var I=0;I<16;I++){var Y=M+I,B=z[Y];z[Y]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var U=this._hash.words,P=x.words,H=_.words,V=d.words,G=g.words,ee=C.words,ne=b.words,$,X,Z,q,te,oe,ae,fe,ve,xe;oe=$=U[0],ae=X=U[1],fe=Z=U[2],ve=q=U[3],xe=te=U[4];for(var se,I=0;I<80;I+=1)se=$+z[M+V[I]]|0,I<16?se+=E(X,Z,q)+P[0]:I<32?se+=A(X,Z,q)+P[1]:I<48?se+=T(X,Z,q)+P[2]:I<64?se+=D(X,Z,q)+P[3]:se+=R(X,Z,q)+P[4],se=se|0,se=N(se,ee[I]),se=se+te|0,$=te,te=q,q=N(Z,10),Z=X,X=se,se=oe+z[M+G[I]]|0,I<16?se+=R(ae,fe,ve)+H[0]:I<32?se+=D(ae,fe,ve)+H[1]:I<48?se+=T(ae,fe,ve)+H[2]:I<64?se+=A(ae,fe,ve)+H[3]:se+=E(ae,fe,ve)+H[4],se=se|0,se=N(se,ne[I]),se=se+xe|0,oe=xe,xe=ve,ve=N(fe,10),fe=ae,ae=se;se=U[1]+Z+ve|0,U[1]=U[2]+q+xe|0,U[2]=U[3]+te+oe|0,U[3]=U[4]+$+ae|0,U[4]=U[0]+X+fe|0,U[0]=se},_doFinalize:function(){var z=this._data,M=z.words,I=this._nDataBytes*8,Y=z.sigBytes*8;M[Y>>>5]|=128<<24-Y%32,M[(Y+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.sigBytes=(M.length+1)*4,this._process();for(var B=this._hash,U=B.words,P=0;P<5;P++){var H=U[P];U[P]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return B},clone:function(){var z=h.clone.call(this);return z._hash=this._hash.clone(),z}});function E(z,M,I){return z^M^I}function A(z,M,I){return z&M|~z&I}function T(z,M,I){return(z|~M)^I}function D(z,M,I){return z&I|M&~I}function R(z,M,I){return z^(M|~I)}function N(z,M){return z<<M|z>>>32-M}l.RIPEMD160=h._createHelper(k),l.HmacRIPEMD160=h._createHmacHelper(k)}(),t.RIPEMD160})}(zw)),zw.exports}var Uw={exports:{}},M3;function jw(){return M3||(M3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){(function(){var i=t,l=i.lib,f=l.Base,c=i.enc,h=c.Utf8,m=i.algo;m.HMAC=f.extend({init:function(d,g){d=this._hasher=new d.init,typeof g=="string"&&(g=h.parse(g));var C=d.blockSize,b=C*4;g.sigBytes>b&&(g=d.finalize(g)),g.clamp();for(var x=this._oKey=g.clone(),_=this._iKey=g.clone(),k=x.words,E=_.words,A=0;A<C;A++)k[A]^=1549556828,E[A]^=909522486;x.sigBytes=_.sigBytes=b,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var g=this._hasher,C=g.finalize(d);g.reset();var b=g.finalize(this._oKey.clone().concat(C));return b}})})()})}(Uw)),Uw.exports}var Iw={exports:{}},P3;function QV(){return P3||(P3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),Nw(),jw())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,h=i.algo,m=h.SHA256,d=h.HMAC,g=h.PBKDF2=f.extend({cfg:f.extend({keySize:128/32,hasher:m,iterations:25e4}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,b){for(var x=this.cfg,_=d.create(x.hasher,C),k=c.create(),E=c.create([1]),A=k.words,T=E.words,D=x.keySize,R=x.iterations;A.length<D;){var N=_.update(b).finalize(E);_.reset();for(var z=N.words,M=z.length,I=N,Y=1;Y<R;Y++){I=_.finalize(I),_.reset();for(var B=I.words,U=0;U<M;U++)z[U]^=B[U]}k.concat(N),T[0]++}return k.sigBytes=D*4,k}});i.PBKDF2=function(C,b,x){return g.create(x).compute(C,b)}}(),t.PBKDF2})}(Iw)),Iw.exports}var Hw={exports:{}},B3;function mu(){return B3||(B3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),D3(),jw())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,h=i.algo,m=h.MD5,d=h.EvpKDF=f.extend({cfg:f.extend({keySize:128/32,hasher:m,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,C){for(var b,x=this.cfg,_=x.hasher.create(),k=c.create(),E=k.words,A=x.keySize,T=x.iterations;E.length<A;){b&&_.update(b),b=_.update(g).finalize(C),_.reset();for(var D=1;D<T;D++)b=_.finalize(b),_.reset();k.concat(b)}return k.sigBytes=A*4,k}});i.EvpKDF=function(g,C,b){return d.create(b).compute(g,C)}}(),t.EvpKDF})}(Hw)),Hw.exports}var Vw={exports:{}},L3;function na(){return L3||(L3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),mu())})(Lt,function(t){t.lib.Cipher||function(i){var l=t,f=l.lib,c=f.Base,h=f.WordArray,m=f.BufferedBlockAlgorithm,d=l.enc;d.Utf8;var g=d.Base64,C=l.algo,b=C.EvpKDF,x=f.Cipher=m.extend({cfg:c.extend(),createEncryptor:function(B,U){return this.create(this._ENC_XFORM_MODE,B,U)},createDecryptor:function(B,U){return this.create(this._DEC_XFORM_MODE,B,U)},init:function(B,U,P){this.cfg=this.cfg.extend(P),this._xformMode=B,this._key=U,this.reset()},reset:function(){m.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var U=this._doFinalize();return U},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(U){return typeof U=="string"?Y:z}return function(U){return{encrypt:function(P,H,V){return B(H).encrypt(U,P,H,V)},decrypt:function(P,H,V){return B(H).decrypt(U,P,H,V)}}}}()});f.StreamCipher=x.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var _=l.mode={},k=f.BlockCipherMode=c.extend({createEncryptor:function(B,U){return this.Encryptor.create(B,U)},createDecryptor:function(B,U){return this.Decryptor.create(B,U)},init:function(B,U){this._cipher=B,this._iv=U}}),E=_.CBC=function(){var B=k.extend();B.Encryptor=B.extend({processBlock:function(P,H){var V=this._cipher,G=V.blockSize;U.call(this,P,H,G),V.encryptBlock(P,H),this._prevBlock=P.slice(H,H+G)}}),B.Decryptor=B.extend({processBlock:function(P,H){var V=this._cipher,G=V.blockSize,ee=P.slice(H,H+G);V.decryptBlock(P,H),U.call(this,P,H,G),this._prevBlock=ee}});function U(P,H,V){var G,ee=this._iv;ee?(G=ee,this._iv=i):G=this._prevBlock;for(var ne=0;ne<V;ne++)P[H+ne]^=G[ne]}return B}(),A=l.pad={},T=A.Pkcs7={pad:function(B,U){for(var P=U*4,H=P-B.sigBytes%P,V=H<<24|H<<16|H<<8|H,G=[],ee=0;ee<H;ee+=4)G.push(V);var ne=h.create(G,H);B.concat(ne)},unpad:function(B){var U=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=U}};f.BlockCipher=x.extend({cfg:x.cfg.extend({mode:E,padding:T}),reset:function(){var B;x.reset.call(this);var U=this.cfg,P=U.iv,H=U.mode;this._xformMode==this._ENC_XFORM_MODE?B=H.createEncryptor:(B=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,P&&P.words):(this._mode=B.call(H,this,P&&P.words),this._mode.__creator=B)},_doProcessBlock:function(B,U){this._mode.processBlock(B,U)},_doFinalize:function(){var B,U=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(U.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),U.unpad(B)),B},blockSize:128/32});var D=f.CipherParams=c.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),R=l.format={},N=R.OpenSSL={stringify:function(B){var U,P=B.ciphertext,H=B.salt;return H?U=h.create([1398893684,1701076831]).concat(H).concat(P):U=P,U.toString(g)},parse:function(B){var U,P=g.parse(B),H=P.words;return H[0]==1398893684&&H[1]==1701076831&&(U=h.create(H.slice(2,4)),H.splice(0,4),P.sigBytes-=16),D.create({ciphertext:P,salt:U})}},z=f.SerializableCipher=c.extend({cfg:c.extend({format:N}),encrypt:function(B,U,P,H){H=this.cfg.extend(H);var V=B.createEncryptor(P,H),G=V.finalize(U),ee=V.cfg;return D.create({ciphertext:G,key:P,iv:ee.iv,algorithm:B,mode:ee.mode,padding:ee.padding,blockSize:B.blockSize,formatter:H.format})},decrypt:function(B,U,P,H){H=this.cfg.extend(H),U=this._parse(U,H.format);var V=B.createDecryptor(P,H).finalize(U.ciphertext);return V},_parse:function(B,U){return typeof B=="string"?U.parse(B,this):B}}),M=l.kdf={},I=M.OpenSSL={execute:function(B,U,P,H,V){if(H||(H=h.random(64/8)),V)var G=b.create({keySize:U+P,hasher:V}).compute(B,H);else var G=b.create({keySize:U+P}).compute(B,H);var ee=h.create(G.words.slice(U),P*4);return G.sigBytes=U*4,D.create({key:G,iv:ee,salt:H})}},Y=f.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:I}),encrypt:function(B,U,P,H){H=this.cfg.extend(H);var V=H.kdf.execute(P,B.keySize,B.ivSize,H.salt,H.hasher);H.iv=V.iv;var G=z.encrypt.call(this,B,U,V.key,H);return G.mixIn(V),G},decrypt:function(B,U,P,H){H=this.cfg.extend(H),U=this._parse(U,H.format);var V=H.kdf.execute(P,B.keySize,B.ivSize,U.salt,H.hasher);H.iv=V.iv;var G=z.decrypt.call(this,B,U,V.key,H);return G}})}()})}(Vw)),Vw.exports}var $w={exports:{}},z3;function ZV(){return z3||(z3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.CFB=function(){var i=t.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize;l.call(this,f,c,m,h),this._prevBlock=f.slice(c,c+m)}}),i.Decryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize,d=f.slice(c,c+m);l.call(this,f,c,m,h),this._prevBlock=d}});function l(f,c,h,m){var d,g=this._iv;g?(d=g.slice(0),this._iv=void 0):d=this._prevBlock,m.encryptBlock(d,0);for(var C=0;C<h;C++)f[c+C]^=d[C]}return i}(),t.mode.CFB})}($w)),$w.exports}var Yw={exports:{}},U3;function XV(){return U3||(U3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.CTR=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize,d=this._iv,g=this._counter;d&&(g=this._counter=d.slice(0),this._iv=void 0);var C=g.slice(0);h.encryptBlock(C,0),g[m-1]=g[m-1]+1|0;for(var b=0;b<m;b++)f[c+b]^=C[b]}});return i.Decryptor=l,i}(),t.mode.CTR})}(Yw)),Yw.exports}var qw={exports:{}},j3;function JV(){return j3||(j3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.CTRGladman=function(){var i=t.lib.BlockCipherMode.extend();function l(h){if((h>>24&255)===255){var m=h>>16&255,d=h>>8&255,g=h&255;m===255?(m=0,d===255?(d=0,g===255?g=0:++g):++d):++m,h=0,h+=m<<16,h+=d<<8,h+=g}else h+=1<<24;return h}function f(h){return(h[0]=l(h[0]))===0&&(h[1]=l(h[1])),h}var c=i.Encryptor=i.extend({processBlock:function(h,m){var d=this._cipher,g=d.blockSize,C=this._iv,b=this._counter;C&&(b=this._counter=C.slice(0),this._iv=void 0),f(b);var x=b.slice(0);d.encryptBlock(x,0);for(var _=0;_<g;_++)h[m+_]^=x[_]}});return i.Decryptor=c,i}(),t.mode.CTRGladman})}(qw)),qw.exports}var Gw={exports:{}},I3;function e$(){return I3||(I3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.OFB=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize,d=this._iv,g=this._keystream;d&&(g=this._keystream=d.slice(0),this._iv=void 0),h.encryptBlock(g,0);for(var C=0;C<m;C++)f[c+C]^=g[C]}});return i.Decryptor=l,i}(),t.mode.OFB})}(Gw)),Gw.exports}var Kw={exports:{}},H3;function t$(){return H3||(H3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.ECB=function(){var i=t.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(l,f){this._cipher.encryptBlock(l,f)}}),i.Decryptor=i.extend({processBlock:function(l,f){this._cipher.decryptBlock(l,f)}}),i}(),t.mode.ECB})}(Kw)),Kw.exports}var Ww={exports:{}},V3;function n$(){return V3||(V3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.AnsiX923={pad:function(i,l){var f=i.sigBytes,c=l*4,h=c-f%c,m=f+h-1;i.clamp(),i.words[m>>>2]|=h<<24-m%4*8,i.sigBytes+=h},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Ansix923})}(Ww)),Ww.exports}var Qw={exports:{}},$3;function r$(){return $3||($3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.Iso10126={pad:function(i,l){var f=l*4,c=f-i.sigBytes%f;i.concat(t.lib.WordArray.random(c-1)).concat(t.lib.WordArray.create([c<<24],1))},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Iso10126})}(Qw)),Qw.exports}var Zw={exports:{}},Y3;function a$(){return Y3||(Y3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.Iso97971={pad:function(i,l){i.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(i,l)},unpad:function(i){t.pad.ZeroPadding.unpad(i),i.sigBytes--}},t.pad.Iso97971})}(Zw)),Zw.exports}var Xw={exports:{}},q3;function i$(){return q3||(q3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.ZeroPadding={pad:function(i,l){var f=l*4;i.clamp(),i.sigBytes+=f-(i.sigBytes%f||f)},unpad:function(i){for(var l=i.words,f=i.sigBytes-1,f=i.sigBytes-1;f>=0;f--)if(l[f>>>2]>>>24-f%4*8&255){i.sigBytes=f+1;break}}},t.pad.ZeroPadding})}(Xw)),Xw.exports}var Jw={exports:{}},G3;function o$(){return G3||(G3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Jw)),Jw.exports}var e_={exports:{}},K3;function l$(){return K3||(K3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.CipherParams,h=l.enc,m=h.Hex,d=l.format;d.Hex={stringify:function(g){return g.ciphertext.toString(m)},parse:function(g){var C=m.parse(g);return c.create({ciphertext:C})}}}(),t.format.Hex})}(e_)),e_.exports}var t_={exports:{}},W3;function s$(){return W3||(W3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo,h=[],m=[],d=[],g=[],C=[],b=[],x=[],_=[],k=[],E=[];(function(){for(var D=[],R=0;R<256;R++)R<128?D[R]=R<<1:D[R]=R<<1^283;for(var N=0,z=0,R=0;R<256;R++){var M=z^z<<1^z<<2^z<<3^z<<4;M=M>>>8^M&255^99,h[N]=M,m[M]=N;var I=D[N],Y=D[I],B=D[Y],U=D[M]*257^M*16843008;d[N]=U<<24|U>>>8,g[N]=U<<16|U>>>16,C[N]=U<<8|U>>>24,b[N]=U;var U=B*16843009^Y*65537^I*257^N*16843008;x[M]=U<<24|U>>>8,_[M]=U<<16|U>>>16,k[M]=U<<8|U>>>24,E[M]=U,N?(N=I^D[D[D[B^I]]],z^=D[D[z]]):N=z=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],T=c.AES=f.extend({_doReset:function(){var D;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var R=this._keyPriorReset=this._key,N=R.words,z=R.sigBytes/4,M=this._nRounds=z+6,I=(M+1)*4,Y=this._keySchedule=[],B=0;B<I;B++)B<z?Y[B]=N[B]:(D=Y[B-1],B%z?z>6&&B%z==4&&(D=h[D>>>24]<<24|h[D>>>16&255]<<16|h[D>>>8&255]<<8|h[D&255]):(D=D<<8|D>>>24,D=h[D>>>24]<<24|h[D>>>16&255]<<16|h[D>>>8&255]<<8|h[D&255],D^=A[B/z|0]<<24),Y[B]=Y[B-z]^D);for(var U=this._invKeySchedule=[],P=0;P<I;P++){var B=I-P;if(P%4)var D=Y[B];else var D=Y[B-4];P<4||B<=4?U[P]=D:U[P]=x[h[D>>>24]]^_[h[D>>>16&255]]^k[h[D>>>8&255]]^E[h[D&255]]}}},encryptBlock:function(D,R){this._doCryptBlock(D,R,this._keySchedule,d,g,C,b,h)},decryptBlock:function(D,R){var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N,this._doCryptBlock(D,R,this._invKeySchedule,x,_,k,E,m);var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N},_doCryptBlock:function(D,R,N,z,M,I,Y,B){for(var U=this._nRounds,P=D[R]^N[0],H=D[R+1]^N[1],V=D[R+2]^N[2],G=D[R+3]^N[3],ee=4,ne=1;ne<U;ne++){var $=z[P>>>24]^M[H>>>16&255]^I[V>>>8&255]^Y[G&255]^N[ee++],X=z[H>>>24]^M[V>>>16&255]^I[G>>>8&255]^Y[P&255]^N[ee++],Z=z[V>>>24]^M[G>>>16&255]^I[P>>>8&255]^Y[H&255]^N[ee++],q=z[G>>>24]^M[P>>>16&255]^I[H>>>8&255]^Y[V&255]^N[ee++];P=$,H=X,V=Z,G=q}var $=(B[P>>>24]<<24|B[H>>>16&255]<<16|B[V>>>8&255]<<8|B[G&255])^N[ee++],X=(B[H>>>24]<<24|B[V>>>16&255]<<16|B[G>>>8&255]<<8|B[P&255])^N[ee++],Z=(B[V>>>24]<<24|B[G>>>16&255]<<16|B[P>>>8&255]<<8|B[H&255])^N[ee++],q=(B[G>>>24]<<24|B[P>>>16&255]<<16|B[H>>>8&255]<<8|B[V&255])^N[ee++];D[R]=$,D[R+1]=X,D[R+2]=Z,D[R+3]=q},keySize:256/32});i.AES=f._createHelper(T)}(),t.AES})}(t_)),t_.exports}var n_={exports:{}},Q3;function u$(){return Q3||(Q3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.BlockCipher,h=i.algo,m=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=h.DES=c.extend({_doReset:function(){for(var A=this._key,T=A.words,D=[],R=0;R<56;R++){var N=m[R]-1;D[R]=T[N>>>5]>>>31-N%32&1}for(var z=this._subKeys=[],M=0;M<16;M++){for(var I=z[M]=[],Y=g[M],R=0;R<24;R++)I[R/6|0]|=D[(d[R]-1+Y)%28]<<31-R%6,I[4+(R/6|0)]|=D[28+(d[R+24]-1+Y)%28]<<31-R%6;I[0]=I[0]<<1|I[0]>>>31;for(var R=1;R<7;R++)I[R]=I[R]>>>(R-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var B=this._invSubKeys=[],R=0;R<16;R++)B[R]=z[15-R]},encryptBlock:function(A,T){this._doCryptBlock(A,T,this._subKeys)},decryptBlock:function(A,T){this._doCryptBlock(A,T,this._invSubKeys)},_doCryptBlock:function(A,T,D){this._lBlock=A[T],this._rBlock=A[T+1],_.call(this,4,252645135),_.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),_.call(this,1,1431655765);for(var R=0;R<16;R++){for(var N=D[R],z=this._lBlock,M=this._rBlock,I=0,Y=0;Y<8;Y++)I|=C[Y][((M^N[Y])&b[Y])>>>0];this._lBlock=M,this._rBlock=z^I}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,_.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),A[T]=this._lBlock,A[T+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function _(A,T){var D=(this._lBlock>>>A^this._rBlock)&T;this._rBlock^=D,this._lBlock^=D<<A}function k(A,T){var D=(this._rBlock>>>A^this._lBlock)&T;this._lBlock^=D,this._rBlock^=D<<A}i.DES=c._createHelper(x);var E=h.TripleDES=c.extend({_doReset:function(){var A=this._key,T=A.words;if(T.length!==2&&T.length!==4&&T.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var D=T.slice(0,2),R=T.length<4?T.slice(0,2):T.slice(2,4),N=T.length<6?T.slice(0,2):T.slice(4,6);this._des1=x.createEncryptor(f.create(D)),this._des2=x.createEncryptor(f.create(R)),this._des3=x.createEncryptor(f.create(N))},encryptBlock:function(A,T){this._des1.encryptBlock(A,T),this._des2.decryptBlock(A,T),this._des3.encryptBlock(A,T)},decryptBlock:function(A,T){this._des3.decryptBlock(A,T),this._des2.encryptBlock(A,T),this._des1.decryptBlock(A,T)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=c._createHelper(E)}(),t.TripleDES})}(n_)),n_.exports}var r_={exports:{}},Z3;function c$(){return Z3||(Z3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,h=c.RC4=f.extend({_doReset:function(){for(var g=this._key,C=g.words,b=g.sigBytes,x=this._S=[],_=0;_<256;_++)x[_]=_;for(var _=0,k=0;_<256;_++){var E=_%b,A=C[E>>>2]>>>24-E%4*8&255;k=(k+x[_]+A)%256;var T=x[_];x[_]=x[k],x[k]=T}this._i=this._j=0},_doProcessBlock:function(g,C){g[C]^=m.call(this)},keySize:256/32,ivSize:0});function m(){for(var g=this._S,C=this._i,b=this._j,x=0,_=0;_<4;_++){C=(C+1)%256,b=(b+g[C])%256;var k=g[C];g[C]=g[b],g[b]=k,x|=g[(g[C]+g[b])%256]<<24-_*8}return this._i=C,this._j=b,x}i.RC4=f._createHelper(h);var d=c.RC4Drop=h.extend({cfg:h.cfg.extend({drop:192}),_doReset:function(){h._doReset.call(this);for(var g=this.cfg.drop;g>0;g--)m.call(this)}});i.RC4Drop=f._createHelper(d)}(),t.RC4})}(r_)),r_.exports}var a_={exports:{}},X3;function f$(){return X3||(X3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,h=[],m=[],d=[],g=c.Rabbit=f.extend({_doReset:function(){for(var b=this._key.words,x=this.cfg.iv,_=0;_<4;_++)b[_]=(b[_]<<8|b[_]>>>24)&16711935|(b[_]<<24|b[_]>>>8)&4278255360;var k=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],E=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var _=0;_<4;_++)C.call(this);for(var _=0;_<8;_++)E[_]^=k[_+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;E[0]^=R,E[1]^=z,E[2]^=N,E[3]^=M,E[4]^=R,E[5]^=z,E[6]^=N,E[7]^=M;for(var _=0;_<4;_++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),h[0]=_[0]^_[5]>>>16^_[3]<<16,h[1]=_[2]^_[7]>>>16^_[5]<<16,h[2]=_[4]^_[1]>>>16^_[7]<<16,h[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)h[k]=(h[k]<<8|h[k]>>>24)&16711935|(h[k]<<24|h[k]>>>8)&4278255360,b[x+k]^=h[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)m[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<m[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<m[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<m[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<m[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<m[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<m[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<m[6]>>>0?1:0)|0,this._b=x[7]>>>0<m[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.Rabbit=f._createHelper(g)}(),t.Rabbit})}(a_)),a_.exports}var i_={exports:{}},J3;function d$(){return J3||(J3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,h=[],m=[],d=[],g=c.RabbitLegacy=f.extend({_doReset:function(){var b=this._key.words,x=this.cfg.iv,_=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],k=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var E=0;E<4;E++)C.call(this);for(var E=0;E<8;E++)k[E]^=_[E+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;k[0]^=R,k[1]^=z,k[2]^=N,k[3]^=M,k[4]^=R,k[5]^=z,k[6]^=N,k[7]^=M;for(var E=0;E<4;E++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),h[0]=_[0]^_[5]>>>16^_[3]<<16,h[1]=_[2]^_[7]>>>16^_[5]<<16,h[2]=_[4]^_[1]>>>16^_[7]<<16,h[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)h[k]=(h[k]<<8|h[k]>>>24)&16711935|(h[k]<<24|h[k]>>>8)&4278255360,b[x+k]^=h[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)m[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<m[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<m[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<m[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<m[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<m[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<m[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<m[6]>>>0?1:0)|0,this._b=x[7]>>>0<m[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.RabbitLegacy=f._createHelper(g)}(),t.RabbitLegacy})}(i_)),i_.exports}var o_={exports:{}},eA;function p$(){return eA||(eA=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo;const h=16,m=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var g={pbox:[],sbox:[]};function C(E,A){let T=A>>24&255,D=A>>16&255,R=A>>8&255,N=A&255,z=E.sbox[0][T]+E.sbox[1][D];return z=z^E.sbox[2][R],z=z+E.sbox[3][N],z}function b(E,A,T){let D=A,R=T,N;for(let z=0;z<h;++z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[h],D=D^E.pbox[h+1],{left:D,right:R}}function x(E,A,T){let D=A,R=T,N;for(let z=h+1;z>1;--z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[1],D=D^E.pbox[0],{left:D,right:R}}function _(E,A,T){for(let M=0;M<4;M++){E.sbox[M]=[];for(let I=0;I<256;I++)E.sbox[M][I]=d[M][I]}let D=0;for(let M=0;M<h+2;M++)E.pbox[M]=m[M]^A[D],D++,D>=T&&(D=0);let R=0,N=0,z=0;for(let M=0;M<h+2;M+=2)z=b(E,R,N),R=z.left,N=z.right,E.pbox[M]=R,E.pbox[M+1]=N;for(let M=0;M<4;M++)for(let I=0;I<256;I+=2)z=b(E,R,N),R=z.left,N=z.right,E.sbox[M][I]=R,E.sbox[M][I+1]=N;return!0}var k=c.Blowfish=f.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,T=E.sigBytes/4;_(g,A,T)}},encryptBlock:function(E,A){var T=b(g,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},decryptBlock:function(E,A){var T=x(g,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=f._createHelper(k)}(),t.Blowfish})}(o_)),o_.exports}(function(e,r){(function(t,i,l){e.exports=i(Zt(),by(),VV(),$V(),jc(),YV(),Ic(),D3(),Nw(),qV(),O3(),GV(),KV(),WV(),jw(),QV(),mu(),na(),ZV(),XV(),JV(),e$(),t$(),n$(),r$(),a$(),i$(),o$(),l$(),s$(),u$(),c$(),f$(),d$(),p$())})(Lt,function(t){return t})})(g3);const fs=g3.exports;class h${constructor(){Xf(this,"salt","SzlDJd#4202")}encrypt(r){if(!r)return;const t=typeof r=="string"?r:JSON.stringify(r);return fs.AES.encrypt(t,this.salt).toString()}decrypt(r){if(r)return fs.AES.decrypt(r,this.salt).toString(fs.enc.Utf8)}}class v${constructor(r){Xf(this,"salt");this.salt=r}encrypt(r){return fs.HmacSHA512(r,this.salt).toString()}}const Kn=class{static rotateLeft(r,t){return r<<t|r>>>32-t}static FFj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|r&i|t&i}static GGj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|~r&i}static P0(r){return r^Kn.rotateLeft(r,9)^Kn.rotateLeft(r,17)}static P1(r){return r^Kn.rotateLeft(r,15)^Kn.rotateLeft(r,23)}static pad(r){const t=r.length*8,i=(448-(t+1)%512+512)%512,l=(t+1+i+64)/8,f=new Uint8Array(l);f.set(r),f[r.length]=128;const c=new Uint8Array(8);return new DataView(c.buffer).setBigUint64(0,BigInt(t),!1),f.set(c,l-8),f}static processBlock(r,t){const i=new Uint32Array(68),l=new Uint32Array(64);for(let x=0;x<16;x++){const _=new DataView(r.buffer,r.byteOffset+x*4,4);i[x]=_.getUint32(0,!1)}for(let x=16;x<68;x++)i[x]=Kn.P1(i[x-16]^i[x-9]^Kn.rotateLeft(i[x-3],15))^Kn.rotateLeft(i[x-13],7)^i[x-6];for(let x=0;x<64;x++)l[x]=i[x]^i[x+4];let f=t[0],c=t[1],h=t[2],m=t[3],d=t[4],g=t[5],C=t[6],b=t[7];for(let x=0;x<64;x++){const _=Kn.rotateLeft(Kn.rotateLeft(f,12)+d+Kn.rotateLeft(Kn.T[x],x),7),k=_^Kn.rotateLeft(f,12),E=Kn.FFj(f,c,h,x)+m+k+l[x],A=Kn.GGj(d,g,C,x)+b+_+i[x];m=h,h=Kn.rotateLeft(c,9),c=f,f=E,b=C,C=Kn.rotateLeft(g,19),g=d,d=Kn.P0(A)}t[0]^=f,t[1]^=c,t[2]^=h,t[3]^=m,t[4]^=d,t[5]^=g,t[6]^=C,t[7]^=b}static hash(r){const t=Kn.pad(r),i=new Uint32Array(Kn.IV);for(let c=0;c<t.length;c+=64){const h=t.slice(c,c+64);Kn.processBlock(h,i)}const l=new Uint8Array(32),f=new DataView(l.buffer);for(let c=0;c<8;c++)f.setUint32(c*4,i[c],!1);return l}static hashHex(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=Kn.hash(t);return Array.from(i).map(l=>l.toString(16).padStart(2,"0")).join("")}};let Hc=Kn;Xf(Hc,"IV",new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214])),Xf(Hc,"T",new Uint32Array(64)),(()=>{for(let r=0;r<16;r++)Kn.T[r]=2043430169;for(let r=16;r<64;r++)Kn.T[r]=2055708042})();class l_{constructor(r){Xf(this,"key");this.key=typeof r=="string"?new TextEncoder().encode(r):r}digest(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=64;let l;if(this.key.length>i)l=Hc.hash(this.key);else{l=new Uint8Array(i),l.set(this.key);for(let C=this.key.length;C<i;C++)l[C]=0}const f=new Uint8Array(i),c=new Uint8Array(i);for(let C=0;C<i;C++)f[C]=l[C]^54,c[C]=l[C]^92;const h=new Uint8Array(f.length+t.length);h.set(f),h.set(t,f.length);const m=Hc.hash(h),d=new Uint8Array(c.length+m.length);return d.set(c),d.set(m,c.length),Hc.hash(d)}digestHex(r){const t=this.digest(r);return Array.from(t).map(i=>i.toString(16).padStart(2,"0")).join("")}static hmac(r,t){return new l_(r).digestHex(t)}}function m$(e){const{imgKey:r="Img"}=e,{data:t,loading:i,error:l,refresh:f}=bb.useRequest(e.request,{debounceWait:300,ready:!0,retryCount:3});return{data:t,renderCaptcha:()=>l?Q(me.Button,{type:"link",title:"验证码加载失败,请重试",icon:Q(Q7,{}),onClick:f,children:"点击重试"}):Q("img",{src:il.get(t,[r]),style:{height:"100%",objectFit:"contain",cursor:"pointer"},onClick:f}),loading:i,refresh:f}}function g$(e){const{modal:r,message:t}=me.App.useApp(),[i]=me.Form.useForm(),l=[{dataIndex:"Password",title:"新密码",valueType:"password",valueProps:{placeholder:"请输入新密码"},formItemProps:{rules:[{required:!0,message:"请输入新密码"},m3.passwordNewRule]}},{dataIndex:"NewPassword",title:"确认密码",valueType:"password",valueProps:{placeholder:"请输入确认密码"},formItemProps:{rules:[{required:!0,message:"请输入确认密码"},({getFieldValue:c})=>({validator(h,m){return!m||c("Password")===m?Promise.resolve():Promise.reject(new Error("两次密码输入不一致"))}})]}}];return{handleChangePwd:bb.useLockFn(async(c,h)=>{const m=e==null?void 0:e.modalProps;let d;m!=null&&m.width&&(typeof m.width=="string"||typeof m.width=="number")&&(d=m.width),await r.confirm({title:h||"修改密码",icon:null,wrapClassName:"confirmWrapper",content:Q(y2,{items:l,formProps:{form:i,preserve:!1,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}}}),onOk(){return new Promise((g,C)=>{i.validateFields().then(b=>{c({values:b,resolve:g,reject:C})}).catch(b=>{C(b)})})},...m,width:d})})}}const y$="SzlDJd#4202";function x$(e){const[r,t]=W.useState(null);W.useEffect(()=>{i()},[]);const i=()=>{const l=fs.AES.decrypt(e,y$);try{const f=JSON.parse(l.toString(fs.enc.Utf8));t(f)}catch{}};return r}function b$(e){const{secertKey:r,storageKey:t}=e;return{onParse:f=>{const c=localStorage.getItem(t);if(!c){f(null);return}const h=fs.AES.decrypt(c,r);try{const m=JSON.parse(h.toString(fs.enc.Utf8));f(m)}catch{f(null)}},onSave:f=>{const c=fs.AES.encrypt(JSON.stringify({...f,timestamp:Date.now()}),r);z8(t,c.toString())}}}function C$(e){const{dataSource:r,rowKey:t,defaultRows:i=[]}=e,l=W.useRef(i),[f,c]=W.useState([]),[h,m]=W.useState([]);return W.useEffect(()=>{if(r&&r.length>0){const d=[...r,...l.current];l.current=d.filter((g,C,b)=>b.findIndex(x=>g[t]===x[t])===C)}},[r,t]),W.useEffect(()=>{if(l.current.length>0){let d=[];h.forEach(g=>{const C=l.current.find(b=>b[t]===g);C&&!d.map(b=>b[t]).includes(g)&&d.push(C)}),c(d)}},[l.current,h,t]),{selectedRows:f,selectedKeys:h,setSelectedKeys:m}}function w$({labelSpan:e=3,valueSpan:r=9,imgWidth:t=93,imgHeight:i=93,layoutType:l="row"}){const{message:f}=me.App.useApp(),c=(x,_)=>{try{const k=JSON.parse((x==null?void 0:x.attrvalue)||"{}")||"";return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Q("span",{style:{wordWrap:"break-word"},children:k==null?void 0:k.typename})]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:x==null?void 0:x.attrvalue})]})]},x==null?void 0:x.attrid)}catch{return f.error("房型数据格式错误,转json失败"),null}},h=(x,_)=>{if(typeof(x==null?void 0:x.attrvalue)!="string")return;const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("div",{style:{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:4},children:Q(me.Image,{style:{objectFit:"cover",padding:5},width:t,height:i,src:A==null?void 0:A.FilePath,alt:(x==null?void 0:x.attrname)||"-"})},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},m=(x,_)=>{const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("a",{onClick:()=>window.open(A==null?void 0:A.FilePath),children:(A==null?void 0:A.FileName)||"-"},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},d=(x,_,k,E)=>Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Be("span",{style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word",minWidth:0,flex:1},children:[k||""," ",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Be(me.Col,{span:r,style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word"},children:[k||"",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})]},x==null?void 0:x.attrid),g=({detailList:x=[],attrList:_=[],universalHeader:k=[],operationColumn:E,langConfig:A=[]})=>{var R;let T=[];k!=null&&k.length?T=k==null?void 0:k.map(N=>({title:N==null?void 0:N["header-name"],dataIndex:N==null?void 0:N["header-attribute-id"],key:N==null?void 0:N["header-attribute-id"],width:N==null?void 0:N["header-width"],render:(z,M)=>Ji(A||[],z)})):T=(R=_==null?void 0:_[0])==null?void 0:R.map(N=>{var z;return{title:N==null?void 0:N.attrname,dataIndex:N==null?void 0:N.attrid,key:N==null?void 0:N.attrid,width:((z=N==null?void 0:N.json)==null?void 0:z["input-width"])||200,render:(M,I)=>Ji(A||[],M)}}),E&&(T!=null&&T.length)&&T.push(E);let D=x;return _!=null&&_.length&&(D=_==null?void 0:_.map((N,z)=>({jxqyglbh:z,...C(N)}))),Q(me.Flex,{align:"center",style:{width:"100%"},children:Q(me.Table,{style:{width:"100%"},columns:T,scroll:{x:"max-content"},size:"small",rowKey:"jxqyglbh",onRow:aD,dataSource:D,pagination:!1})})},C=x=>x==null?void 0:x.reduce((_,k)=>(_[k==null?void 0:k.attrid]=k==null?void 0:k.attrvalue,_),{});return{renderDetail:bb.useMemoizedFn(({attrList:x=[],detailList:_=[],span:k=24,type:E="form",universalHeader:A=[],beforeExtraValue:T="",operationColumn:D,langConfig:R=[]})=>E==="table"?Q(W.Fragment,{children:g({detailList:_,attrList:x,universalHeader:A,operationColumn:D})}):Q(me.Row,{gutter:[10,8],children:x==null?void 0:x.map(N=>{if((N==null?void 0:N.attrtype)!==0)return Q(W.Fragment,{},N==null?void 0:N.attrid);const z=N.info_base64===1?uu(Zp(N.info)):uu(N.info);return(z==null?void 0:z.input)==="image"?h(N,k):["file","audio","video"].includes(z==null?void 0:z.input)?m(N,k):(z==null?void 0:z.input)==="radio-card"?c(N,k):d(N,k,T,R)})}))}}Dt.AES=h$,Dt.AuthButton=H6,Dt.BackHeader=d9,Dt.CoralButton=eL,Dt.CreateForm=y2,Dt.CustomPagination=rL,Dt.DynamicForm=ML,Dt.DynamicFormMobile=LV,Dt.EditTable=JB,Dt.FormRules=zV,Dt.HmacSHA512=v$,Dt.HmacSM3=l_,Dt.LoopSlide=tL,Dt.SearchTable=WB,Dt.UploadFile=s6,Dt.WorkFlowNode=V6,Dt.compressionImage=o6,Dt.download=CL,Dt.fileType=y9,Dt.method=cL,Dt.showWorkFlow=nL,Dt.szxkFunc=mL,Dt.useCaptcha=m$,Dt.useChangePwd=g$,Dt.useConfig=x$,Dt.useDetailRender=w$,Dt.useRemember=b$,Dt.useRowSelection=C$,Dt.useUniversalTable=q2,Dt.utils=k9,Dt.verfyCode=jV,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})});
208
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),f=new RegExp("(?:^"+t+"$)|(?:^"+l+"$)"),c=new RegExp("^"+t+"$"),h=new RegExp("^"+l+"$"),m=function(R){return R&&R.exact?f:new RegExp("(?:"+r(R)+t+r(R)+")|(?:"+r(R)+l+r(R)+")","g")};m.v4=function(D){return D&&D.exact?c:new RegExp(""+r(D)+t+r(D),"g")},m.v6=function(D){return D&&D.exact?h:new RegExp(""+r(D)+l+r(D),"g")};var d="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",C=m.v4().source,b=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",k="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",E="(?::\\d{2,5})?",A='(?:[/?#][^\\s"]*)?',T="(?:"+d+"|www\\.)"+g+"(?:localhost|"+C+"|"+b+"|"+x+_+k+")"+E+A;return yy=new RegExp("(?:^"+T+"$)","i"),yy},e3={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},zh={integer:function(r){return zh.number(r)&&parseInt(r,10)===r},float:function(r){return zh.number(r)&&!zh.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!zh.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(e3.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(LH())},hex:function(r){return typeof r=="string"&&!!r.match(e3.hex)}},zH=function(r,t,i,l,f){if(r.required&&t===void 0){JT(r,t,i,l,f);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],h=r.type;c.indexOf(h)>-1?zh[h](t)||l.push(Li(f.messages.types[h],r.fullField,r.type)):h&&typeof t!==r.type&&l.push(Li(f.messages.types[h],r.fullField,r.type))},UH=function(r,t,i,l,f){var c=typeof r.len=="number",h=typeof r.min=="number",m=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=t,C=null,b=typeof t=="number",x=typeof t=="string",_=Array.isArray(t);if(b?C="number":x?C="string":_&&(C="array"),!C)return!1;_&&(g=t.length),x&&(g=t.replace(d,"_").length),c?g!==r.len&&l.push(Li(f.messages[C].len,r.fullField,r.len)):h&&!m&&g<r.min?l.push(Li(f.messages[C].min,r.fullField,r.min)):m&&!h&&g>r.max?l.push(Li(f.messages[C].max,r.fullField,r.max)):h&&m&&(g<r.min||g>r.max)&&l.push(Li(f.messages[C].range,r.fullField,r.min,r.max))},Ed="enum",jH=function(r,t,i,l,f){r[Ed]=Array.isArray(r[Ed])?r[Ed]:[],r[Ed].indexOf(t)===-1&&l.push(Li(f.messages[Ed],r.fullField,r[Ed].join(", ")))},IH=function(r,t,i,l,f){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var c=new RegExp(r.pattern);c.test(t)||l.push(Li(f.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},Kt={required:JT,whitespace:BH,type:zH,range:UH,enum:jH,pattern:IH},HH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t,"string")&&!r.required)return i();Kt.required(r,t,l,c,f,"string"),zr(t,"string")||(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f),Kt.pattern(r,t,l,c,f),r.whitespace===!0&&Kt.whitespace(r,t,l,c,f))}i(c)},VH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt.type(r,t,l,c,f)}i(c)},$H=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(t===""&&(t=void 0),zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},YH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt.type(r,t,l,c,f)}i(c)},qH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),zr(t)||Kt.type(r,t,l,c,f)}i(c)},GH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},KH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},WH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(t==null&&!r.required)return i();Kt.required(r,t,l,c,f,"array"),t!=null&&(Kt.type(r,t,l,c,f),Kt.range(r,t,l,c,f))}i(c)},QH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt.type(r,t,l,c,f)}i(c)},ZH="enum",XH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f),t!==void 0&&Kt[ZH](r,t,l,c,f)}i(c)},JH=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t,"string")&&!r.required)return i();Kt.required(r,t,l,c,f),zr(t,"string")||Kt.pattern(r,t,l,c,f)}i(c)},eV=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t,"date")&&!r.required)return i();if(Kt.required(r,t,l,c,f),!zr(t,"date")){var m;t instanceof Date?m=t:m=new Date(t),Kt.type(r,m,l,c,f),m&&Kt.range(r,m.getTime(),l,c,f)}}i(c)},tV=function(r,t,i,l,f){var c=[],h=Array.isArray(t)?"array":typeof t;Kt.required(r,t,l,c,f,h),i(c)},cw=function(r,t,i,l,f){var c=r.type,h=[],m=r.required||!r.required&&l.hasOwnProperty(r.field);if(m){if(zr(t,c)&&!r.required)return i();Kt.required(r,t,l,h,f,c),zr(t,c)||Kt.type(r,t,l,h,f)}i(h)},nV=function(r,t,i,l,f){var c=[],h=r.required||!r.required&&l.hasOwnProperty(r.field);if(h){if(zr(t)&&!r.required)return i();Kt.required(r,t,l,c,f)}i(c)},Uh={string:HH,method:VH,number:$H,boolean:YH,regexp:qH,integer:GH,float:KH,array:WH,object:QH,enum:XH,pattern:JH,date:eV,url:cw,hex:cw,email:cw,required:tV,any:nV};function fw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var dw=fw(),jh=function(){function e(t){this.rules=null,this._messages=dw,this.define(t)}var r=e.prototype;return r.define=function(i){var l=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function(f){var c=i[f];l.rules[f]=Array.isArray(c)?c:[c]})},r.messages=function(i){return i&&(this._messages=XT(fw(),i)),this._messages},r.validate=function(i,l,f){var c=this;l===void 0&&(l={}),f===void 0&&(f=function(){});var h=i,m=l,d=f;if(typeof m=="function"&&(d=m,m={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,h),Promise.resolve(h);function g(k){var E=[],A={};function T(R){if(Array.isArray(R)){var N;E=(N=E).concat.apply(N,R)}else E.push(R)}for(var D=0;D<k.length;D++)T(k[D]);E.length?(A=uw(E),d(E,A)):d(null,h)}if(m.messages){var C=this.messages();C===dw&&(C=fw()),XT(C,m.messages),m.messages=C}else m.messages=this.messages();var b={},x=m.keys||Object.keys(this.rules);x.forEach(function(k){var E=c.rules[k],A=h[k];E.forEach(function(T){var D=T;typeof D.transform=="function"&&(h===i&&(h=Uc({},h)),A=h[k]=D.transform(A)),typeof D=="function"?D={validator:D}:D=Uc({},D),D.validator=c.getValidationMethod(D),D.validator&&(D.field=k,D.fullField=D.fullField||k,D.type=c.getType(D),b[k]=b[k]||[],b[k].push({rule:D,value:A,source:h,field:k}))})});var _={};return NH(b,m,function(k,E){var A=k.rule,T=(A.type==="object"||A.type==="array")&&(typeof A.fields=="object"||typeof A.defaultField=="object");T=T&&(A.required||!A.required&&k.value),A.field=k.field;function D(z,M){return Uc({},M,{fullField:A.fullField+"."+z,fullFields:A.fullFields?[].concat(A.fullFields,[z]):[z]})}function R(z){z===void 0&&(z=[]);var M=Array.isArray(z)?z:[z];!m.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&A.message!==void 0&&(M=[].concat(A.message));var I=M.map(ZT(A,h));if(m.first&&I.length)return _[A.field]=1,E(I);if(!T)E(I);else{if(A.required&&!k.value)return A.message!==void 0?I=[].concat(A.message).map(ZT(A,h)):m.error&&(I=[m.error(A,Li(m.messages.required,A.field))]),E(I);var Y={};A.defaultField&&Object.keys(k.value).map(function(P){Y[P]=A.defaultField}),Y=Uc({},Y,k.rule.fields);var B={};Object.keys(Y).forEach(function(P){var H=Y[P],V=Array.isArray(H)?H:[H];B[P]=V.map(D.bind(null,P))});var U=new e(B);U.messages(m.messages),k.rule.options&&(k.rule.options.messages=m.messages,k.rule.options.error=m.error),U.validate(k.value,k.rule.options||m,function(P){var H=[];I&&I.length&&H.push.apply(H,I),P&&P.length&&H.push.apply(H,P),E(H.length?H:null)})}}var N;if(A.asyncValidator)N=A.asyncValidator(A,k.value,R,k.source,m);else if(A.validator){try{N=A.validator(A,k.value,R,k.source,m)}catch(z){console.error==null,m.suppressValidatorError||setTimeout(function(){throw z},0),R(z.message)}N===!0?R():N===!1?R(typeof A.message=="function"?A.message(A.fullField||A.field):A.message||(A.fullField||A.field)+" fails"):N instanceof Array?R(N):N instanceof Error&&R(N.message)}N&&N.then&&N.then(function(){return R()},function(z){return R(z)})},function(k){g(k)},h)},r.getType=function(i){if(i.type===void 0&&i.pattern instanceof RegExp&&(i.type="pattern"),typeof i.validator!="function"&&i.type&&!Uh.hasOwnProperty(i.type))throw new Error(Li("Unknown rule type %s",i.type));return i.type||"string"},r.getValidationMethod=function(i){if(typeof i.validator=="function")return i.validator;var l=Object.keys(i),f=l.indexOf("message");return f!==-1&&l.splice(f,1),l.length===1&&l[0]==="required"?Uh.required:Uh[this.getType(i)]||void 0},e}();jh.register=function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Uh[r]=t},jh.warning=KT,jh.messages=dw,jh.validators=Uh;var zi="'${name}' is not a valid ${type}",t3={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zi,method:zi,array:zi,object:zi,number:zi,date:zi,boolean:zi,integer:zi,float:zi,regexp:zi,email:zi,url:zi,hex:zi},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};function rV(e){return V4(e)||$T(e)||wb(e)||$4()}function gl(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function n3(e,r,t,i){if(!r.length)return t;var l=rV(r),f=l[0],c=l.slice(1),h;return!e&&typeof f=="number"?h=[]:Array.isArray(e)?h=ln(e):h=Ft({},e),i&&t===void 0&&c.length===1?delete h[f][c[0]]:h[f]=n3(h[f],c,t,i),h}function Eo(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!gl(e,r.slice(0,-1))?e:n3(e,r,t,i)}function aV(e){return Br(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function r3(e){return Array.isArray(e)?[]:{}}var iV=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ih(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r3(r[0]);return r.forEach(function(l){function f(c,h){var m=new Set(h),d=gl(l,c),g=Array.isArray(d);if(g||aV(d)){if(!m.has(d)){m.add(d);var C=gl(i,c);g?i=Eo(i,c,[]):(!C||Br(C)!=="object")&&(i=Eo(i,c,r3(d))),iV(d).forEach(function(b){f([].concat(ln(c),[b]),m)})}}else i=Eo(i,c,d)}f([])}),i}var a3=jh;function oV(e,r){return e.replace(/\$\{\w+\}/g,function(t){var i=t.slice(2,-1);return r[i]})}var i3="CODE_LOGIC_ERROR";function pw(e,r,t,i,l){return hw.apply(this,arguments)}function hw(){return hw=Bh(ro().mark(function e(r,t,i,l,f){var c,h,m,d,g,C,b,x,_;return ro().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return c=Ft({},i),delete c.ruleIndex,a3.warning=function(){},c.validator&&(h=c.validator,c.validator=function(){try{return h.apply(void 0,arguments)}catch{return Promise.reject(i3)}}),m=null,c&&c.type==="array"&&c.defaultField&&(m=c.defaultField,delete c.defaultField),d=new a3(Le({},r,[c])),g=Ih(t3,l.validateMessages),d.messages(g),C=[],E.prev=10,E.next=13,Promise.resolve(d.validate(Le({},r,t),Ft({},l)));case 13:E.next=18;break;case 15:E.prev=15,E.t0=E.catch(10),E.t0.errors&&(C=E.t0.errors.map(function(A,T){var D=A.message,R=D===i3?g.default:D;return Ne.isValidElement(R)?Ne.cloneElement(R,{key:"error_".concat(T)}):R}));case 18:if(!(!C.length&&m)){E.next=23;break}return E.next=21,Promise.all(t.map(function(A,T){return pw("".concat(r,".").concat(T),A,m,l,f)}));case 21:return b=E.sent,E.abrupt("return",b.reduce(function(A,T){return[].concat(ln(A),ln(T))},[]));case 23:return x=Ft(Ft({},i),{},{name:r,enum:(i.enum||[]).join(", ")},f),_=C.map(function(A){return typeof A=="string"?oV(A,x):A}),E.abrupt("return",_);case 26:case"end":return E.stop()}},e,null,[[10,15]])})),hw.apply(this,arguments)}function lV(e,r,t,i,l,f){var c=e.join("."),h=t.map(function(g,C){var b=g.validator,x=Ft(Ft({},g),{},{ruleIndex:C});return b&&(x.validator=function(_,k,E){var A=!1,T=function(){for(var N=arguments.length,z=new Array(N),M=0;M<N;M++)z[M]=arguments[M];Promise.resolve().then(function(){Er(!A,"Your validator function has already return a promise. `callback` will be ignored."),A||E.apply(void 0,z)})},D=b(_,k,T);A=D&&typeof D.then=="function"&&typeof D.catch=="function",Er(A,"`callback` is deprecated. Please return a promise instead."),A&&D.then(function(){E()}).catch(function(R){E(R||" ")})}),x}).sort(function(g,C){var b=g.warningOnly,x=g.ruleIndex,_=C.warningOnly,k=C.ruleIndex;return!!b==!!_?x-k:b?1:-1}),m;if(l===!0)m=new Promise(function(){var g=Bh(ro().mark(function C(b,x){var _,k,E;return ro().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:_=0;case 1:if(!(_<h.length)){T.next=12;break}return k=h[_],T.next=5,pw(c,r,k,i,f);case 5:if(E=T.sent,!E.length){T.next=9;break}return x([{errors:E,rule:k}]),T.abrupt("return");case 9:_+=1,T.next=1;break;case 12:b([]);case 13:case"end":return T.stop()}},C)}));return function(C,b){return g.apply(this,arguments)}}());else{var d=h.map(function(g){return pw(c,r,g,i,f).then(function(C){return{errors:C,rule:g}})});m=(l?uV(d):sV(d)).then(function(g){return Promise.reject(g)})}return m.catch(function(g){return g}),m}function sV(e){return vw.apply(this,arguments)}function vw(){return vw=Bh(ro().mark(function e(r){return ro().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(l){var f,c=(f=[]).concat.apply(f,ln(l));return c}));case 1:case"end":return i.stop()}},e)})),vw.apply(this,arguments)}function uV(e){return mw.apply(this,arguments)}function mw(){return mw=Bh(ro().mark(function e(r){var t;return ro().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return t=0,l.abrupt("return",new Promise(function(f){r.forEach(function(c){c.then(function(h){h.errors.length&&f([h]),t+=1,t===r.length&&f([])})})}));case 2:case"end":return l.stop()}},e)})),mw.apply(this,arguments)}function mr(e){return ow(e)}function o3(e,r){var t={};return r.forEach(function(i){var l=gl(e,i);t=Eo(t,i,l)}),t}function Dd(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return l3(r,i,t)})}function l3(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,l){return e[l]===i})}function cV(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Br(e)!=="object"||Br(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),l=new Set([].concat(t,i));return ln(l).every(function(f){var c=e[f],h=r[f];return typeof c=="function"&&typeof h=="function"?!0:c===h})}function fV(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Br(r.target)==="object"&&e in r.target?r.target[e]:r}function s3(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var l=e[r],f=r-t;return f>0?[].concat(ln(e.slice(0,t)),[l],ln(e.slice(t,r)),ln(e.slice(r+1,i))):f<0?[].concat(ln(e.slice(0,r)),ln(e.slice(r+1,t+1)),[l],ln(e.slice(t+1,i))):e}var dV=["name"],ao=[];function u3(e,r,t,i,l,f){return typeof e=="function"?e(r,t,"source"in f?{source:f.source}:{}):i!==l}var gw=function(e){wH(t,e);var r=SH(t);function t(i){var l;if(rw(this,t),l=r.call(this,i),Le(hn(l),"state",{resetCount:0}),Le(hn(l),"cancelRegisterFunc",null),Le(hn(l),"mounted",!1),Le(hn(l),"touched",!1),Le(hn(l),"dirty",!1),Le(hn(l),"validatePromise",void 0),Le(hn(l),"prevValidating",void 0),Le(hn(l),"errors",ao),Le(hn(l),"warnings",ao),Le(hn(l),"cancelRegister",function(){var m=l.props,d=m.preserve,g=m.isListField,C=m.name;l.cancelRegisterFunc&&l.cancelRegisterFunc(g,d,mr(C)),l.cancelRegisterFunc=null}),Le(hn(l),"getNamePath",function(){var m=l.props,d=m.name,g=m.fieldContext,C=g.prefixName,b=C===void 0?[]:C;return d!==void 0?[].concat(ln(b),ln(d)):[]}),Le(hn(l),"getRules",function(){var m=l.props,d=m.rules,g=d===void 0?[]:d,C=m.fieldContext;return g.map(function(b){return typeof b=="function"?b(C):b})}),Le(hn(l),"refresh",function(){l.mounted&&l.setState(function(m){var d=m.resetCount;return{resetCount:d+1}})}),Le(hn(l),"metaCache",null),Le(hn(l),"triggerMetaEvent",function(m){var d=l.props.onMetaChange;if(d){var g=Ft(Ft({},l.getMeta()),{},{destroy:m});GT(l.metaCache,g)||d(g),l.metaCache=g}else l.metaCache=null}),Le(hn(l),"onStoreChange",function(m,d,g){var C=l.props,b=C.shouldUpdate,x=C.dependencies,_=x===void 0?[]:x,k=C.onReset,E=g.store,A=l.getNamePath(),T=l.getValue(m),D=l.getValue(E),R=d&&Dd(d,A);switch(g.type==="valueUpdate"&&g.source==="external"&&!GT(T,D)&&(l.touched=!0,l.dirty=!0,l.validatePromise=null,l.errors=ao,l.warnings=ao,l.triggerMetaEvent()),g.type){case"reset":if(!d||R){l.touched=!1,l.dirty=!1,l.validatePromise=void 0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),k==null||k(),l.refresh();return}break;case"remove":{if(b){l.reRender();return}break}case"setField":{var N=g.data;if(R){"touched"in N&&(l.touched=N.touched),"validating"in N&&!("originRCField"in N)&&(l.validatePromise=N.validating?Promise.resolve([]):null),"errors"in N&&(l.errors=N.errors||ao),"warnings"in N&&(l.warnings=N.warnings||ao),l.dirty=!0,l.triggerMetaEvent(),l.reRender();return}else if("value"in N&&Dd(d,A,!0)){l.reRender();return}if(b&&!A.length&&u3(b,m,E,T,D,g)){l.reRender();return}break}case"dependenciesUpdate":{var z=_.map(mr);if(z.some(function(M){return Dd(g.relatedFields,M)})){l.reRender();return}break}default:if(R||(!_.length||A.length||b)&&u3(b,m,E,T,D,g)){l.reRender();return}break}b===!0&&l.reRender()}),Le(hn(l),"validateRules",function(m){var d=l.getNamePath(),g=l.getValue(),C=m||{},b=C.triggerName,x=C.validateOnly,_=x===void 0?!1:x,k=Promise.resolve().then(Bh(ro().mark(function E(){var A,T,D,R,N,z,M;return ro().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(l.mounted){Y.next=2;break}return Y.abrupt("return",[]);case 2:if(A=l.props,T=A.validateFirst,D=T===void 0?!1:T,R=A.messageVariables,N=A.validateDebounce,z=l.getRules(),b&&(z=z.filter(function(B){return B}).filter(function(B){var U=B.validateTrigger;if(!U)return!0;var P=ow(U);return P.includes(b)})),!(N&&b)){Y.next=10;break}return Y.next=8,new Promise(function(B){setTimeout(B,N)});case 8:if(l.validatePromise===k){Y.next=10;break}return Y.abrupt("return",[]);case 10:return M=lV(d,g,z,m,D,R),M.catch(function(B){return B}).then(function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ao;if(l.validatePromise===k){var U;l.validatePromise=null;var P=[],H=[];(U=B.forEach)===null||U===void 0||U.call(B,function(V){var G=V.rule.warningOnly,ee=V.errors,ne=ee===void 0?ao:ee;G?H.push.apply(H,ln(ne)):P.push.apply(P,ln(ne))}),l.errors=P,l.warnings=H,l.triggerMetaEvent(),l.reRender()}}),Y.abrupt("return",M);case 13:case"end":return Y.stop()}},E)})));return _||(l.validatePromise=k,l.dirty=!0,l.errors=ao,l.warnings=ao,l.triggerMetaEvent(),l.reRender()),k}),Le(hn(l),"isFieldValidating",function(){return!!l.validatePromise}),Le(hn(l),"isFieldTouched",function(){return l.touched}),Le(hn(l),"isFieldDirty",function(){if(l.dirty||l.props.initialValue!==void 0)return!0;var m=l.props.fieldContext,d=m.getInternalHooks(zc),g=d.getInitialValue;return g(l.getNamePath())!==void 0}),Le(hn(l),"getErrors",function(){return l.errors}),Le(hn(l),"getWarnings",function(){return l.warnings}),Le(hn(l),"isListField",function(){return l.props.isListField}),Le(hn(l),"isList",function(){return l.props.isList}),Le(hn(l),"isPreserve",function(){return l.props.preserve}),Le(hn(l),"getMeta",function(){l.prevValidating=l.isFieldValidating();var m={touched:l.isFieldTouched(),validating:l.prevValidating,errors:l.errors,warnings:l.warnings,name:l.getNamePath(),validated:l.validatePromise===null};return m}),Le(hn(l),"getOnlyChild",function(m){if(typeof m=="function"){var d=l.getMeta();return Ft(Ft({},l.getOnlyChild(m(l.getControlled(),d,l.props.fieldContext))),{},{isFunction:!0})}var g=iw(m);return g.length!==1||!Ne.isValidElement(g[0])?{child:g,isFunction:!1}:{child:g[0],isFunction:!1}}),Le(hn(l),"getValue",function(m){var d=l.props.fieldContext.getFieldsValue,g=l.getNamePath();return gl(m||d(!0),g)}),Le(hn(l),"getControlled",function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=l.props,g=d.name,C=d.trigger,b=d.validateTrigger,x=d.getValueFromEvent,_=d.normalize,k=d.valuePropName,E=d.getValueProps,A=d.fieldContext,T=b!==void 0?b:A.validateTrigger,D=l.getNamePath(),R=A.getInternalHooks,N=A.getFieldsValue,z=R(zc),M=z.dispatch,I=l.getValue(),Y=E||function(V){return Le({},k,V)},B=m[C],U=g!==void 0?Y(I):{};process.env.NODE_ENV!=="production"&&U&&Object.keys(U).forEach(function(V){Er(typeof U[V]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(V,")"))});var P=Ft(Ft({},m),U);P[C]=function(){l.touched=!0,l.dirty=!0,l.triggerMetaEvent();for(var V,G=arguments.length,ee=new Array(G),ne=0;ne<G;ne++)ee[ne]=arguments[ne];x?V=x.apply(void 0,ee):V=fV.apply(void 0,[k].concat(ee)),_&&(V=_(V,I,N(!0))),M({type:"updateValue",namePath:D,value:V}),B&&B.apply(void 0,ee)};var H=ow(T||[]);return H.forEach(function(V){var G=P[V];P[V]=function(){G&&G.apply(void 0,arguments);var ee=l.props.rules;ee&&ee.length&&M({type:"validateField",namePath:D,triggerName:V})}}),P}),i.fieldContext){var f=i.fieldContext.getInternalHooks,c=f(zc),h=c.initEntityValue;h(hn(l))}return l}return aw(t,[{key:"componentDidMount",value:function(){var l=this.props,f=l.shouldUpdate,c=l.fieldContext;if(this.mounted=!0,c){var h=c.getInternalHooks,m=h(zc),d=m.registerField;this.cancelRegisterFunc=d(this)}f===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var l=this.state.resetCount,f=this.props.children,c=this.getOnlyChild(f),h=c.child,m=c.isFunction,d;return m?d=h:Ne.isValidElement(h)?d=Ne.cloneElement(h,this.getControlled(h.props)):(Er(!h,"`children` of Field is not validate ReactElement."),d=h),Ne.createElement(Ne.Fragment,{key:l},d)}}]),t}(Ne.Component);Le(gw,"contextType",vu),Le(gw,"defaultProps",{trigger:"onChange",valuePropName:"value"});function yw(e){var r=e.name,t=Sp(e,dV),i=Ne.useContext(vu),l=Ne.useContext(my),f=r!==void 0?mr(r):void 0,c="keep";return t.isListField||(c="_".concat((f||[]).join("_"))),process.env.NODE_ENV!=="production"&&t.preserve===!1&&t.isListField&&f.length<=1&&Er(!1,"`preserve` should not apply on Form.List fields."),Ne.createElement(gw,Pr({key:c,name:f,isListField:!!l},t,{fieldContext:i}))}function c3(e){var r=e.name,t=e.initialValue,i=e.children,l=e.rules,f=e.validateTrigger,c=e.isListField,h=Ne.useContext(vu),m=Ne.useContext(my),d=Ne.useRef({keys:[],id:0}),g=d.current,C=Ne.useMemo(function(){var k=mr(h.prefixName)||[];return[].concat(ln(k),ln(mr(r)))},[h.prefixName,r]),b=Ne.useMemo(function(){return Ft(Ft({},h),{},{prefixName:C})},[h,C]),x=Ne.useMemo(function(){return{getKey:function(E){var A=C.length,T=E[A];return[g.keys[T],E.slice(A+1)]}}},[C]);if(typeof i!="function")return Er(!1,"Form.List only accepts function as children."),null;var _=function(E,A,T){var D=T.source;return D==="internal"?!1:E!==A};return Ne.createElement(my.Provider,{value:x},Ne.createElement(vu.Provider,{value:b},Ne.createElement(yw,{name:[],shouldUpdate:_,rules:l,validateTrigger:f,initialValue:t,isList:!0,isListField:c??!!m},function(k,E){var A=k.value,T=A===void 0?[]:A,D=k.onChange,R=h.getFieldValue,N=function(){var Y=R(C||[]);return Y||[]},z={add:function(Y,B){var U=N();B>=0&&B<=U.length?(g.keys=[].concat(ln(g.keys.slice(0,B)),[g.id],ln(g.keys.slice(B))),D([].concat(ln(U.slice(0,B)),[Y],ln(U.slice(B))))):(process.env.NODE_ENV!=="production"&&(B<0||B>U.length)&&Er(!1,"The second parameter of the add function should be a valid positive number."),g.keys=[].concat(ln(g.keys),[g.id]),D([].concat(ln(U),[Y]))),g.id+=1},remove:function(Y){var B=N(),U=new Set(Array.isArray(Y)?Y:[Y]);U.size<=0||(g.keys=g.keys.filter(function(P,H){return!U.has(H)}),D(B.filter(function(P,H){return!U.has(H)})))},move:function(Y,B){if(Y!==B){var U=N();Y<0||Y>=U.length||B<0||B>=U.length||(g.keys=s3(g.keys,Y,B),D(s3(U,Y,B)))}}},M=T||[];return Array.isArray(M)||(M=[],process.env.NODE_ENV!=="production"&&Er(!1,"Current value of '".concat(C.join(" > "),"' is not an array type."))),i(M.map(function(I,Y){var B=g.keys[Y];return B===void 0&&(g.keys[Y]=g.id,B=g.keys[Y],g.id+=1),{name:Y,key:B,isListField:!0}}),z,E)})))}function pV(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(l,f){e.forEach(function(c,h){c.catch(function(m){return r=!0,m}).then(function(m){t-=1,i[h]=m,!(t>0)&&(r&&f(i),l(i))})})}):Promise.resolve([])}var f3="__@field_split__";function xw(e){return e.map(function(r){return"".concat(Br(r),":").concat(r)}).join(f3)}var kd=function(){function e(){rw(this,e),Le(this,"kvs",new Map)}return aw(e,[{key:"set",value:function(t,i){this.kvs.set(xw(t),i)}},{key:"get",value:function(t){return this.kvs.get(xw(t))}},{key:"update",value:function(t,i){var l=this.get(t),f=i(l);f?this.set(t,f):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(xw(t))}},{key:"map",value:function(t){return ln(this.kvs.entries()).map(function(i){var l=mc(i,2),f=l[0],c=l[1],h=f.split(f3);return t({key:h.map(function(m){var d=m.match(/^([^:]*):(.*)$/),g=mc(d,3),C=g[1],b=g[2];return C==="number"?Number(b):b}),value:c})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var l=i.key,f=i.value;return t[l.join(".")]=f,null}),t}}]),e}(),hV=["name"],vV=aw(function e(r){var t=this;rw(this,e),Le(this,"formHooked",!1),Le(this,"forceRootUpdate",void 0),Le(this,"subscribable",!0),Le(this,"store",{}),Le(this,"fieldEntities",[]),Le(this,"initialValues",{}),Le(this,"callbacks",{}),Le(this,"validateMessages",null),Le(this,"preserve",null),Le(this,"lastValidatePromise",null),Le(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),Le(this,"getInternalHooks",function(i){return i===zc?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(Er(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Le(this,"useSubscribe",function(i){t.subscribable=i}),Le(this,"prevWithoutPreserves",null),Le(this,"setInitialValues",function(i,l){if(t.initialValues=i||{},l){var f,c=Ih(i,t.store);(f=t.prevWithoutPreserves)===null||f===void 0||f.map(function(h){var m=h.key;c=Eo(c,m,gl(i,m))}),t.prevWithoutPreserves=null,t.updateStore(c)}}),Le(this,"destroyForm",function(){var i=new kd;t.getFieldEntities(!0).forEach(function(l){t.isMergedPreserve(l.isPreserve())||i.set(l.getNamePath(),!0)}),t.prevWithoutPreserves=i}),Le(this,"getInitialValue",function(i){var l=gl(t.initialValues,i);return i.length?Ih(l):l}),Le(this,"setCallbacks",function(i){t.callbacks=i}),Le(this,"setValidateMessages",function(i){t.validateMessages=i}),Le(this,"setPreserve",function(i){t.preserve=i}),Le(this,"watchList",[]),Le(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(l){return l!==i})}}),Le(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var l=t.getFieldsValue(),f=t.getFieldsValue(!0);t.watchList.forEach(function(c){c(l,f,i)})}}),Le(this,"timeoutId",null),Le(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||Er(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),Le(this,"updateStore",function(i){t.store=i}),Le(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(l){return l.getNamePath().length}):t.fieldEntities}),Le(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,l=new kd;return t.getFieldEntities(i).forEach(function(f){var c=f.getNamePath();l.set(c,f)}),l}),Le(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var l=t.getFieldsMap(!0);return i.map(function(f){var c=mr(f);return l.get(c)||{INVALIDATE_NAME_PATH:mr(f)}})}),Le(this,"getFieldsValue",function(i,l){t.warningUnhooked();var f,c,h;if(i===!0||Array.isArray(i)?(f=i,c=l):i&&Br(i)==="object"&&(h=i.strict,c=i.filter),f===!0&&!c)return t.store;var m=t.getFieldEntitiesForNamePathList(Array.isArray(f)?f:null),d=[];return m.forEach(function(g){var C,b,x="INVALIDATE_NAME_PATH"in g?g.INVALIDATE_NAME_PATH:g.getNamePath();if(h){var _,k;if((_=(k=g).isList)!==null&&_!==void 0&&_.call(k))return}else if(!f&&(C=(b=g).isListField)!==null&&C!==void 0&&C.call(b))return;if(!c)d.push(x);else{var E="getMeta"in g?g.getMeta():null;c(E)&&d.push(x)}}),o3(t.store,d.map(mr))}),Le(this,"getFieldValue",function(i){t.warningUnhooked();var l=mr(i);return gl(t.store,l)}),Le(this,"getFieldsError",function(i){t.warningUnhooked();var l=t.getFieldEntitiesForNamePathList(i);return l.map(function(f,c){return f&&!("INVALIDATE_NAME_PATH"in f)?{name:f.getNamePath(),errors:f.getErrors(),warnings:f.getWarnings()}:{name:mr(i[c]),errors:[],warnings:[]}})}),Le(this,"getFieldError",function(i){t.warningUnhooked();var l=mr(i),f=t.getFieldsError([l])[0];return f.errors}),Le(this,"getFieldWarning",function(i){t.warningUnhooked();var l=mr(i),f=t.getFieldsError([l])[0];return f.warnings}),Le(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,l=new Array(i),f=0;f<i;f++)l[f]=arguments[f];var c=l[0],h=l[1],m,d=!1;l.length===0?m=null:l.length===1?Array.isArray(c)?(m=c.map(mr),d=!1):(m=null,d=c):(m=c.map(mr),d=h);var g=t.getFieldEntities(!0),C=function(E){return E.isFieldTouched()};if(!m)return d?g.every(function(k){return C(k)||k.isList()}):g.some(C);var b=new kd;m.forEach(function(k){b.set(k,[])}),g.forEach(function(k){var E=k.getNamePath();m.forEach(function(A){A.every(function(T,D){return E[D]===T})&&b.update(A,function(T){return[].concat(ln(T),[k])})})});var x=function(E){return E.some(C)},_=b.map(function(k){var E=k.value;return E});return d?_.every(x):_.some(x)}),Le(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),Le(this,"isFieldsValidating",function(i){t.warningUnhooked();var l=t.getFieldEntities();if(!i)return l.some(function(c){return c.isFieldValidating()});var f=i.map(mr);return l.some(function(c){var h=c.getNamePath();return Dd(f,h)&&c.isFieldValidating()})}),Le(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),Le(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=new kd,f=t.getFieldEntities(!0);f.forEach(function(m){var d=m.props.initialValue,g=m.getNamePath();if(d!==void 0){var C=l.get(g)||new Set;C.add({entity:m,value:d}),l.set(g,C)}});var c=function(d){d.forEach(function(g){var C=g.props.initialValue;if(C!==void 0){var b=g.getNamePath(),x=t.getInitialValue(b);if(x!==void 0)Er(!1,"Form already set 'initialValues' with path '".concat(b.join("."),"'. Field can not overwrite it."));else{var _=l.get(b);if(_&&_.size>1)Er(!1,"Multiple Field with path '".concat(b.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(_){var k=t.getFieldValue(b),E=g.isListField();!E&&(!i.skipExist||k===void 0)&&t.updateStore(Eo(t.store,b,ln(_)[0].value))}}}})},h;i.entities?h=i.entities:i.namePathList?(h=[],i.namePathList.forEach(function(m){var d=l.get(m);if(d){var g;(g=h).push.apply(g,ln(ln(d).map(function(C){return C.entity})))}})):h=f,c(h)}),Le(this,"resetFields",function(i){t.warningUnhooked();var l=t.store;if(!i){t.updateStore(Ih(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(l,null,{type:"reset"}),t.notifyWatch();return}var f=i.map(mr);f.forEach(function(c){var h=t.getInitialValue(c);t.updateStore(Eo(t.store,c,h))}),t.resetWithFieldInitialValue({namePathList:f}),t.notifyObservers(l,f,{type:"reset"}),t.notifyWatch(f)}),Le(this,"setFields",function(i){t.warningUnhooked();var l=t.store,f=[];i.forEach(function(c){var h=c.name,m=Sp(c,hV),d=mr(h);f.push(d),"value"in m&&t.updateStore(Eo(t.store,d,m.value)),t.notifyObservers(l,[d],{type:"setField",data:c})}),t.notifyWatch(f)}),Le(this,"getFields",function(){var i=t.getFieldEntities(!0),l=i.map(function(f){var c=f.getNamePath(),h=f.getMeta(),m=Ft(Ft({},h),{},{name:c,value:t.getFieldValue(c)});return Object.defineProperty(m,"originRCField",{value:!0}),m});return l}),Le(this,"initEntityValue",function(i){var l=i.props.initialValue;if(l!==void 0){var f=i.getNamePath(),c=gl(t.store,f);c===void 0&&t.updateStore(Eo(t.store,f,l))}}),Le(this,"isMergedPreserve",function(i){var l=i!==void 0?i:t.preserve;return l??!0}),Le(this,"registerField",function(i){t.fieldEntities.push(i);var l=i.getNamePath();if(t.notifyWatch([l]),i.props.initialValue!==void 0){var f=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(f,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,h){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(C){return C!==i}),!t.isMergedPreserve(h)&&(!c||m.length>1)){var d=c?void 0:t.getInitialValue(l);if(l.length&&t.getFieldValue(l)!==d&&t.fieldEntities.every(function(C){return!l3(C.getNamePath(),l)})){var g=t.store;t.updateStore(Eo(g,l,d,!0)),t.notifyObservers(g,[l],{type:"remove"}),t.triggerDependenciesUpdate(g,l)}}t.notifyWatch([l])}}),Le(this,"dispatch",function(i){switch(i.type){case"updateValue":{var l=i.namePath,f=i.value;t.updateValue(l,f);break}case"validateField":{var c=i.namePath,h=i.triggerName;t.validateFields([c],{triggerName:h});break}}}),Le(this,"notifyObservers",function(i,l,f){if(t.subscribable){var c=Ft(Ft({},f),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(h){var m=h.onStoreChange;m(i,l,c)})}else t.forceRootUpdate()}),Le(this,"triggerDependenciesUpdate",function(i,l){var f=t.getDependencyChildrenFields(l);return f.length&&t.validateFields(f),t.notifyObservers(i,f,{type:"dependenciesUpdate",relatedFields:[l].concat(ln(f))}),f}),Le(this,"updateValue",function(i,l){var f=mr(i),c=t.store;t.updateStore(Eo(t.store,f,l)),t.notifyObservers(c,[f],{type:"valueUpdate",source:"internal"}),t.notifyWatch([f]);var h=t.triggerDependenciesUpdate(c,f),m=t.callbacks.onValuesChange;if(m){var d=o3(t.store,[f]);m(d,t.getFieldsValue())}t.triggerOnFieldsChange([f].concat(ln(h)))}),Le(this,"setFieldsValue",function(i){t.warningUnhooked();var l=t.store;if(i){var f=Ih(t.store,i);t.updateStore(f)}t.notifyObservers(l,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),Le(this,"setFieldValue",function(i,l){t.setFields([{name:i,value:l}])}),Le(this,"getDependencyChildrenFields",function(i){var l=new Set,f=[],c=new kd;t.getFieldEntities().forEach(function(m){var d=m.props.dependencies;(d||[]).forEach(function(g){var C=mr(g);c.update(C,function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return b.add(m),b})})});var h=function m(d){var g=c.get(d)||new Set;g.forEach(function(C){if(!l.has(C)){l.add(C);var b=C.getNamePath();C.isFieldDirty()&&b.length&&(f.push(b),m(b))}})};return h(i),f}),Le(this,"triggerOnFieldsChange",function(i,l){var f=t.callbacks.onFieldsChange;if(f){var c=t.getFields();if(l){var h=new kd;l.forEach(function(d){var g=d.name,C=d.errors;h.set(g,C)}),c.forEach(function(d){d.errors=h.get(d.name)||d.errors})}var m=c.filter(function(d){var g=d.name;return Dd(i,g)});m.length&&f(m,c)}}),Le(this,"validateFields",function(i,l){t.warningUnhooked();var f,c;Array.isArray(i)||typeof i=="string"||typeof l=="string"?(f=i,c=l):c=i;var h=!!f,m=h?f.map(mr):[],d=[],g=String(Date.now()),C=new Set,b=c||{},x=b.recursive,_=b.dirty;t.getFieldEntities(!0).forEach(function(T){if(h||m.push(T.getNamePath()),!(!T.props.rules||!T.props.rules.length)&&!(_&&!T.isFieldDirty())){var D=T.getNamePath();if(C.add(D.join(g)),!h||Dd(m,D,x)){var R=T.validateRules(Ft({validateMessages:Ft(Ft({},t3),t.validateMessages)},c));d.push(R.then(function(){return{name:D,errors:[],warnings:[]}}).catch(function(N){var z,M=[],I=[];return(z=N.forEach)===null||z===void 0||z.call(N,function(Y){var B=Y.rule.warningOnly,U=Y.errors;B?I.push.apply(I,ln(U)):M.push.apply(M,ln(U))}),M.length?Promise.reject({name:D,errors:M,warnings:I}):{name:D,errors:M,warnings:I}}))}}});var k=pV(d);t.lastValidatePromise=k,k.catch(function(T){return T}).then(function(T){var D=T.map(function(R){var N=R.name;return N});t.notifyObservers(t.store,D,{type:"validateFinish"}),t.triggerOnFieldsChange(D,T)});var E=k.then(function(){return t.lastValidatePromise===k?Promise.resolve(t.getFieldsValue(m)):Promise.reject([])}).catch(function(T){var D=T.filter(function(R){return R&&R.errors.length});return Promise.reject({values:t.getFieldsValue(m),errorFields:D,outOfDate:t.lastValidatePromise!==k})});E.catch(function(T){return T});var A=m.filter(function(T){return C.has(T.join(g))});return t.triggerOnFieldsChange(A),E}),Le(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var l=t.callbacks.onFinish;if(l)try{l(i)}catch{}}).catch(function(i){var l=t.callbacks.onFinishFailed;l&&l(i)})}),this.forceRootUpdate=r});function bw(e){var r=Ne.useRef(),t=Ne.useState({}),i=mc(t,2),l=i[1];if(!r.current)if(e)r.current=e;else{var f=function(){l({})},c=new vV(f);r.current=c.getForm()}return[r.current]}var Cw=Ne.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mV=function(r){var t=r.validateMessages,i=r.onFormChange,l=r.onFormFinish,f=r.children,c=Ne.useContext(Cw),h=Ne.useRef({});return Ne.createElement(Cw.Provider,{value:Ft(Ft({},c),{},{validateMessages:Ft(Ft({},c.validateMessages),t),triggerFormChange:function(d,g){i&&i(d,{changedFields:g,forms:h.current}),c.triggerFormChange(d,g)},triggerFormFinish:function(d,g){l&&l(d,{values:g,forms:h.current}),c.triggerFormFinish(d,g)},registerForm:function(d,g){d&&(h.current=Ft(Ft({},h.current),{},Le({},d,g))),c.registerForm(d,g)},unregisterForm:function(d){var g=Ft({},h.current);delete g[d],h.current=g,c.unregisterForm(d)}})},f)},gV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],yV=function(r,t){var i=r.name,l=r.initialValues,f=r.fields,c=r.form,h=r.preserve,m=r.children,d=r.component,g=d===void 0?"form":d,C=r.validateMessages,b=r.validateTrigger,x=b===void 0?"onChange":b,_=r.onValuesChange,k=r.onFieldsChange,E=r.onFinish,A=r.onFinishFailed,T=Sp(r,gV),D=Ne.useContext(Cw),R=bw(c),N=mc(R,1),z=N[0],M=z.getInternalHooks(zc),I=M.useSubscribe,Y=M.setInitialValues,B=M.setCallbacks,U=M.setValidateMessages,P=M.setPreserve,H=M.destroyForm;Ne.useImperativeHandle(t,function(){return z}),Ne.useEffect(function(){return D.registerForm(i,z),function(){D.unregisterForm(i)}},[D,z,i]),U(Ft(Ft({},D.validateMessages),C)),B({onValuesChange:_,onFieldsChange:function(te){if(D.triggerFormChange(i,te),k){for(var oe=arguments.length,ae=new Array(oe>1?oe-1:0),fe=1;fe<oe;fe++)ae[fe-1]=arguments[fe];k.apply(void 0,[te].concat(ae))}},onFinish:function(te){D.triggerFormFinish(i,te),E&&E(te)},onFinishFailed:A}),P(h);var V=Ne.useRef(null);Y(l,!V.current),V.current||(V.current=!0),Ne.useEffect(function(){return H},[]);var G,ee=typeof m=="function";if(ee){var ne=z.getFieldsValue(!0);G=m(ne,z)}else G=m;I(!ee);var $=Ne.useRef();Ne.useEffect(function(){cV($.current||[],f||[])||z.setFields(f||[]),$.current=f},[f,z]);var X=Ne.useMemo(function(){return Ft(Ft({},z),{},{validateTrigger:x})},[z,x]),Z=Ne.createElement(my.Provider,{value:null},Ne.createElement(vu.Provider,{value:X},G));return g===!1?Z:Ne.createElement(g,Pr({},T,{onSubmit:function(te){te.preventDefault(),te.stopPropagation(),z.submit()},onReset:function(te){var oe;te.preventDefault(),z.resetFields(),(oe=T.onReset)===null||oe===void 0||oe.call(T,te)}}),Z)};function d3(e){try{return JSON.stringify(e)}catch{return Math.random()}}var xV=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=W.useRef(r);Er(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function ww(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],l=r[1],f=l===void 0?{}:l,c=EH(f)?{form:f}:f,h=c.form,m=W.useState(),d=mc(m,2),g=d[0],C=d[1],b=W.useMemo(function(){return d3(g)},[g]),x=W.useRef(b);x.current=b;var _=W.useContext(vu),k=h||_,E=k&&k._init;process.env.NODE_ENV!=="production"&&Er(r.length===2?h?E:!0:E,"useWatch requires a form instance since it can not auto detect from context.");var A=mr(i),T=W.useRef(A);return T.current=A,xV(A),W.useEffect(function(){if(E){var D=k.getFieldsValue,R=k.getInternalHooks,N=R(zc),z=N.registerWatch,M=function(U,P){var H=c.preserve?P:U;return typeof i=="function"?i(H):gl(H,T.current)},I=z(function(B,U){var P=M(B,U),H=d3(P);x.current!==H&&(x.current=H,C(P))}),Y=M(D(),D(!0));return g!==Y&&C(Y),I}},[E]),g}var bV=Ne.forwardRef(yV),Td=bV;Td.FormProvider=mV,Td.Field=yw,Td.List=c3,Td.useForm=bw,Td.useWatch=ww;const CV=e=>{const r=kD(),t=W.useContext(vu);return Be(nn,{children:[e.children(t.getFieldsValue(e.to),t),e.to.map(i=>Q(wV,{form:t,namePath:i,onChange:r},i.toString()))]})},wV=W.memo(e=>{const r=ww(e.namePath,e.form);return hz(()=>{e.onChange()},[r]),null}),_V={colon:!1,showValidateMessage:!0,border:!0,labelAlign:"left",controlAlign:"left"},_w=W.createContext(_V),[p3]=wn("form"),SV=W.forwardRef((e,r)=>{const{className:t,style:i,layout:l,footer:f,children:c,colon:h,required:m,border:d,labelAlign:g,controlAlign:C,showValidateMessage:b=!0}=e,x=$a(e,["className","style","layout","footer","children","colon","required","border","labelAlign","controlAlign","showValidateMessage"]);return Be(Td,Object.assign({className:Re(p3(),t),style:i,ref:r},x,{children:[Q(_w.Provider,Object.assign({value:{layout:l,colon:h,border:d,required:m,showValidateMessage:b,controlAlign:C,labelAlign:g}},{children:c})),f&&Q("div",Object.assign({className:Re(p3("footer"))},{children:f}))]}))});function EV(e){const r=e.prototype;return!!(r&&r.isReactComponent)}function DV(e){return typeof e=="function"&&!EV(e)&&e.defaultProps===void 0}function h3(e){return!ug.exports.isForwardRef(e)||ug.exports.isFragment(e)?!1:ug.exports.isMemo(e)?h3(e.type):!DV(e.type)}function kV(...e){let r;for(r=0;r<e.length&&e[r]===void 0;r++);return e[r]}const TV=W.memo(e=>{var{children:r}=e,t=$a(e,["children"]);return W.cloneElement(r,t)},(e,r)=>e.value===r.value&&e.update===r.update),[AV]=wn("form-item"),OV=e=>{var r,t,i,l,f,c;const{meta:h}=e,m=$a(e,["meta"]),d=W.useContext(_w),g=(r=e.layout)!==null&&r!==void 0?r:d.layout,C=(t=e.border)!==null&&t!==void 0?t:d.border,b=(i=e.colon)!==null&&i!==void 0?i:d.colon,x=(l=e.showValidateMessage)!==null&&l!==void 0?l:d.showValidateMessage,_=(f=e.labelAlign)!==null&&f!==void 0?f:d.labelAlign,k=(c=e.controlAlign)!==null&&c!==void 0?c:d.controlAlign,E=h&&h.errors.length>0,A=x&&E?h.errors[0]:null,T=Object.assign(Object.assign({},m),{className:Re(AV({vertical:g==="vertical"}),e.className),colon:b,error:x?!1:E,errorMessage:A,labelAlign:_,controlAlign:k,border:C});return Q(lC,Object.assign({},T,{children:e.children}))},xy=Object.assign(SV,{Item:e=>{const r=W.useContext(_w),{name:t,noStyle:i,rules:l,trigger:f="onChange",validateTrigger:c=f,shouldUpdate:h,dependencies:m,messageVariables:d,label:g,required:C,disabled:b,children:x,onClick:_}=e,k=$a(e,["name","noStyle","rules","trigger","validateTrigger","shouldUpdate","dependencies","messageVariables","label","required","disabled","children","onClick"]),E=cD(e,["style","className","tooltip","intro","colon","labelWidth","labelAlign","labelClass","showValidateMessage","controlAlign","errorMessageAlign","border","layout","isLink","size","arrowDirection","leftIcon","rightIcon","prefix","suffix"]),{validateTrigger:A}=W.useContext(vu),T=kV(c,A,f),D=W.useRef(null),R=W.useRef(0);R.current+=1;function N(I,Y,B,U){return i?I:Q(OV,Object.assign({htmlFor:Y,meta:B},E,{required:U,label:g,disabled:b,onClick:P=>_==null?void 0:_(P,D)},{children:I}))}const z=typeof x=="function";if(!t&&!z&&!e.dependencies)return N(x);let M={};return typeof g=="string"&&(M.label=g),d&&(M=Object.assign(Object.assign({},M),d)),Q(yw,Object.assign({},k,{name:t,shouldUpdate:h,dependencies:m,rules:l,trigger:f,validateTrigger:T},{children:(I,Y,B)=>{var U;let P=null;const H=C!==void 0?C:(U=r.required)!==null&&U!==void 0?U:l&&l.some(G=>!!(G&&typeof G=="object"&&G.required)),V=(tw(t).length&&Y?Y.name:[]).join("_");if(h&&m&&void 0,z)(h||m)&&!t?P=x(B):(h||m||void 0,t&&void 0);else if(m&&!t);else if(W.isValidElement(x)){x.props.defaultValue&&void 0;const G=Object.assign(Object.assign({},x.props),I);h3(x)&&(G.ref=ne=>{const $=x.ref;$&&(typeof $=="function"&&$(ne),"current"in $&&($.current=ne)),D.current=ne}),G.id||(G.id=V),b&&(G.disabled=b),new Set([...tw(f),...tw(T)]).forEach(ne=>{G[ne]=(...$)=>{var X,Z,q;(X=I[ne])===null||X===void 0||X.call(I,...$),(q=(Z=x.props)[ne])===null||q===void 0||q.call(Z,...$)}}),P=Q(TV,Object.assign({value:I[e.valuePropName||"value"],update:R.current},{children:W.cloneElement(x,G)}))}else t&&void 0,P=x;return N(P,V,Y,H)}}))},useForm:bw,List:c3,Subscribe:CV,useWatch:ww}),Hh={"checkbox-group":"index-module_checkbox-group_4684b",checkboxGroup:"index-module_checkbox-group_4684b","checkbox-group-header":"index-module_checkbox-group-header_192bd",checkboxGroupHeader:"index-module_checkbox-group-header_192bd","checkbox-group-content":"index-module_checkbox-group-content_f81a1",checkboxGroupContent:"index-module_checkbox-group-content_f81a1","checkbox-item":"index-module_checkbox-item_1b36c",checkboxItem:"index-module_checkbox-item_1b36c","checkbox-group-cancel":"index-module_checkbox-group-cancel_c5cfb",checkboxGroupCancel:"index-module_checkbox-group-cancel_c5cfb"},RV=({item:e,readonly:r,style:t,commonRequestWidthParams:i,commonRequest:l,value:f,onChange:c,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,langId:C,getTitle:b,attrid:x})=>{const[_,k]=W.useState([]),[E,A]=W.useState([]);W.useEffect(()=>{e.input==="mult-select"&&f&&Array.isArray(f)&&(z(f||[]),I(f||[]))},[f]),W.useEffect(()=>{T()},[e.inputType,e.classify,e.data,e.options]);const T=async()=>{if(e.inputType==="instance-url"&&(e!=null&&e["instance-source-number"])&&x){const B=e==null?void 0:e["key-field"];if(!B){YC("请配置key-field");return}const U={"source-number":e==null?void 0:e["instance-source-number"]};let P=await V2(U,i);const H=await $2(e==null?void 0:e["instance-source-number"],l);if(H){const V=(H==null?void 0:H["non-universal-header"])||[],G=(V==null?void 0:V.label)||[],ee=(B==null?void 0:B[x])||{},ne=P==null?void 0:P.map($=>{const X=G==null?void 0:G.map(oe=>$==null?void 0:$[oe]).join("-"),{list:Z,delimiter:q}=ee,te=Z==null?void 0:Z.map(oe=>$==null?void 0:$[oe]).join(q||"-");return X?{label:b==null?void 0:b("5000000",X),value:te}:null});k(ne),A(P)}return}const Y=await cd({commonRequestWidthParams:i,commonRequest:l,interfaceTypeDict:h,interfaceTypeSysDict:m,actionUrlKey:d,actionUrlExtraParams:g,item:e});k(Y)},[D,R]=W.useState(!1),[N,z]=W.useState([]),[M,I]=W.useState([]);return Q(nn,{children:e.input==="mult-select"?Be("div",{style:{width:"100%",...t},children:[Q(lC,{style:{padding:0},isLink:!0,readOnly:!0,value:M!=null&&M.length?M==null?void 0:M.join(","):"",onClick:()=>{r||(z([...M]),R(!0))},placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select"}),Q(sh,{visible:D,round:!0,position:"bottom",style:{height:"60vh"},onClose:()=>R(!1),children:Be("div",{className:Hh["checkbox-group"],children:[Be(me.Flex,{justify:"space-between",className:Hh["checkbox-group-header"],children:[Q("a",{className:Hh["checkbox-group-cancel"],onClick:()=>R(!1),children:C==="10001"?"取消":"Cancel"}),Q("a",{onClick:()=>{R(!1),I([...N]),c(N!=null&&N.length?N==null?void 0:N.join(","):"")},children:C==="10001"?"确定":"Confirm"})]}),Q("div",{style:{height:" calc(60vh - 70px)"},className:Hh["checkbox-group-content"],children:Q(MT.Group,{iconSize:"18",onChange:Y=>z(Y),value:N,children:_.map(Y=>Q(MT,{shape:"square",className:Hh["checkbox-item"],name:Y.value,children:Y.label},Y.value))})})]})})]}):Q(JC,{popup:!0,columns:_,placeholder:"",columnsFieldNames:{text:"label"},onConfirm:Y=>{if(x&&(E==null?void 0:E.length)>0&&(e==null?void 0:e.inputType)==="instance-url"){const B=e==null?void 0:e["key-field"],U=K6(E,String(Y)),P=Object.keys(B||{}),H=P==null?void 0:P.reduce((V,G)=>{const{list:ee,delimiter:ne}=(B==null?void 0:B[G])||{},$=ee==null?void 0:ee.map(X=>U==null?void 0:U[X]).join(ne||"-");return V[G]=$,V},{});c(H);return}c(Y)},children:(Y,B,U)=>{var H;Y=Y||f;let P="";return Array.isArray(Y)&&(P=(Y==null?void 0:Y.map(V=>{var G;return((G=_.find(ee=>ee.value===V))==null?void 0:G.label)||V}).join(","))||""),P=((H=_.find(V=>V.value===Y))==null?void 0:H.label)||Y,Q(lC,{style:{padding:0,...t},isLink:!0,readOnly:!0,clickable:!0,placeholder:C==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":(e==null?void 0:e["default-prompt"])||"Please select",value:P,onClick:()=>{r||U.open()}})}})})},FV={customUpload:"myUpload-module_customUpload_5ec38"},NV=e=>new Promise((r,t)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>r(i.result),i.onerror=l=>t(l)}),MV=e=>{const{action:r,item:t,onChange:i,readonly:l=!1,relatedid:f,uploadText:c,onRemove:h,list:m=[],uploadType:d,relatedidKey:g,langId:C}=e,{message:b}=me.App.useApp(),x=(t==null?void 0:t["upload-accept"])||"*",_=t==null?void 0:t.input,k=t==null?void 0:t["upload-size"],E=(t==null?void 0:t["upload-max-count"])||1,[A,T]=W.useState(_==="image"?"picture-card":"text"),[D,R]=W.useState([]),[N,z]=W.useState(!1),[M,I]=W.useState("");W.useEffect(()=>{m&&m.length&&R(m)},[m]);const Y=async H=>{d==="image"&&(!H.url&&!H.preview&&(H.preview=await NV(H.originFileObj)),I(H.url||H.preview),z(!0))},B=({fileList:H})=>{R(H),i&&i(H)},U=H=>{if(!k)return!0;const V=H.size/1024/1024<Number(k);return V||b.error(C==="10001"?`请上传不超过${k}MB的文件`:`Please upload files smaller than ${k}MB`),V},P=_==="image"?Be("button",{style:{border:0,background:"none"},type:"button",children:[Q(Nb,{}),Q("div",{style:{marginTop:8},children:"Upload"})]}):Q(nn,{children:Q(me.Button,{style:{fontSize:14},icon:Q(Mb,{}),children:c})});return Be(nn,{children:[Q(me.Upload,{action:r,beforeUpload:U,listType:A,accept:x,fileList:D,onPreview:Y,data:{[g]:f},maxCount:E,onChange:B,onRemove:h,disabled:l,className:FV.customUpload,children:D.length>=E?null:P}),M&&Q(me.Image,{wrapperStyle:{display:"none"},preview:{visible:N,onVisibleChange:H=>z(H),afterOpenChange:H=>!H&&I("")},src:M})]})},PV=e=>{const{item:r,onChange:t,readonly:i=!1,options:l,radioAlign:f="horizontal",commonRequestWidthParams:c,commonRequest:h,handleUrlOptions:m,value:d,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,langId:_}=e;me.App.useApp();const[k,E]=W.useState([]);W.useEffect(()=>{A()},[r.inputType,r.classify,r.data,r.options]);const A=async()=>{const T=await cd({commonRequestWidthParams:c,commonRequest:h,interfaceTypeDict:g,interfaceTypeSysDict:C,actionUrlKey:b,actionUrlExtraParams:x,item:r});E(T)};return Q(me.Radio.Group,{...l,options:k,onChange:t,disabled:i,value:d,style:f==="vertical"?{display:"flex",flexDirection:"column",gap:"8px",width:"100%"}:{width:"100%"}})},v3=e=>{const{value:r,onChange:t,langId:i,type:l}=e,[f,c]=W.useState(()=>{if(r)return Array.isArray(r)?r.map(m=>typeof m=="string"?Bt(m).toDate():m):typeof r=="string"?l==="multiple"?r.split(",").map(m=>typeof m=="string"?Bt(m).toDate():m):Bt(r).toDate():r});return W.useEffect(()=>{if(!r){c(void 0);return}Array.isArray(r)?c(r.map(m=>typeof m=="string"?Bt(m).toDate():m)):c(typeof r=="string"?Bt(r).toDate():r)},[r]),Q("div",{children:Q(JI,{type:l,value:f,onConfirm:m=>{if(t)if(Array.isArray(m)){const d=m.map(g=>Bt(g).format("YYYY-MM-DD"));t(d)}else{const d=Bt(m).format("YYYY-MM-DD");t(d)}},children:(m,d)=>(typeof m==="string"&&(m=m.split("~"),m.length===1&&(m=[m[0],m[1]])),Q(MD,{style:{padding:0},value:m?m.map(C=>Bt(C).format("YYYY-MM-DD")).join("~"):i==="10001"?"请选择日期":"Please select a date",onClick:C=>{d.open()}}))})})};Bt.extend(sD);function BV(e){const{commonRequestWidthParams:r,uploadAction:t,commonRequest:i,formConfig:l,updateDelFileList:f,interfaceTypeDict:c,interfaceTypeSysDict:h,relatedidKey:m,actionUrlKey:d,actionUrlExtraParams:g,CustomModalComponent:C,hideAttrList:b=[],langId:x="10001",getTitle:_,formListItemName:k="customFormList"}=e,E=W.useRef([]),{message:A}=me.App.useApp();W.useEffect(()=>{l&&(E.current=l)},[l]);const T=W.useCallback(P=>Array.isArray(P)?P:(P==null?void 0:P.fileList)??[],[]),D=P=>{f(P)},R=W.useCallback(P=>{var ee,ne;const H=(ee=P.json)==null?void 0:ee.input,V=(ne=P.json)==null?void 0:ne.format,G={};switch(H){case"date-picker":case"range-picker":case"second-picker":case"multiple-date-picker":case"time-picker":G.onClick=($,X)=>{var Z;(Z=X.current)==null||Z.open()},G.isLink=!0,G.trigger="onConfirm";break;case"image":case"file":case"video":case"audio":G.getValueFromEvent=T;break;case"week-picker":G.getValueFromEvent=$=>`${$==null?void 0:$.year()}-${Bt($).isoWeek()}周`,G.getValueProps=$=>{if(!$)return{value:null};const[X,Z]=$.split("-"),q=Number(X),te=Number(Z.replace("周",""));return{value:Bt().year(q).isoWeek(te)}};break;case"month-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY-MM"),G.getValueProps=$=>({value:$?Bt($):null});break;case"quarter-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY年第Q季度"),G.getValueProps=$=>({value:$?Bt($,V||"YYYY年第Q季度"):null});break;case"year-picker":G.getValueFromEvent=$=>$==null?void 0:$.format(V||"YYYY"),G.getValueProps=$=>({value:$?Bt($):null});break}return G},[T]),N=W.useCallback(({isActive:P})=>P?Q(w8,{style:{fontSize:18,color:"#999"}}):Q(E8,{style:{fontSize:18,color:"#999"}}),[]),z=(P,H)=>{var V,G,ee,ne,$;return Be(me.Flex,{gap:10,vertical:H==="flex",align:"center",children:[Q("span",{children:P.attrname}),((V=P==null?void 0:P.json)==null?void 0:V.instruction)&&H==="icon"&&Q(me.Tooltip,{title:(G=P==null?void 0:P.json)==null?void 0:G.instruction,children:Q(b8,{style:{color:((ee=P==null?void 0:P.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||Q("span",{style:{color:((ne=P==null?void 0:P.json)==null?void 0:ne["instruction-color"])??"red"},children:($=P==null?void 0:P.json)==null?void 0:$.instruction})]})},M=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,parentFormListField:q,isShowLabel:te=!0})=>{const oe=Tc(P);let ae=P.children||[];Array.isArray(ae==null?void 0:ae[0])&&ae.length&&(ae=ae[0]);const fe=ve=>{const xe=(q==null?void 0:q.parentName)||(q==null?void 0:q.name);return xe?Array.isArray(xe)?[...xe,P.attrid,ve.name]:[xe,P.attrid,ve.name]:[P.attrid,ve.name]};return Q(me.Col,{span:24/H,children:Q(me.Collapse,{bordered:!1,defaultActiveKey:[P.attrid],style:{backgroundColor:"transparent"},expandIcon:({isActive:ve})=>N({isActive:ve}),items:[{key:P.attrid,label:P.attrname,styles:{header:{paddingLeft:0}},children:Q(xy.List,{name:q?Array.isArray(q.name)?[...q.name,P.attrid]:[q.name,P.attrid]:P.attrid,initialValue:oe,children:(ve,{add:xe,remove:se})=>Be("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[ve.map(ke=>{const De={...ke,parentName:fe(ke)};return Q(me.Card,{style:{width:typeof Z=="number"?Z+100:Z},size:"small",title:`${P.attrname} ${ke.name+1}`,extra:Q(g8,{onClick:()=>{ve.length>1?se(ke.name):A.warning("至少需要保留一个!")}}),children:(ae||[]).map((Pe,ge)=>Q(W.Fragment,{children:U({item:Pe,readonly:V,colNum:H,instructionShowMode:G,relatedid:$,form:X,defaultWidth:Z,formItemStyle:ne,radioAlign:ee,isFormListItem:!0,formListField:De,isShowLabel:!0})},Pe.attrid||`child-${ge}`))},ke.key)}),Q(me.Flex,{style:{width:200},children:Q(me.Button,{type:"dashed",onClick:()=>xe(),block:!0,children:"+ 新增"})})]})})}]},P.attrid)})},[N,Tc]),I=W.useCallback(({itemWithJson:P,colNum:H=1,readonly:V=!1,instructionShowMode:G="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z=358,isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ae,fe,ve,xe,se,ke;if(((ae=P.json)==null?void 0:ae.hide)===!0||b!=null&&b.includes(P.attrid))return Q(nn,{});if(V=((fe=P.json)==null?void 0:fe.readonly)||V||!1,P.attrtype===1)return M({itemWithJson:P,colNum:H,readonly:V,instructionShowMode:G,radioAlign:ee,formItemStyle:ne,relatedid:$,form:X,defaultWidth:Z,parentFormListField:te,isShowLabel:oe});if(P.attrtype===2)return Q(nn,{children:"实例信息"});if(P.attrtype===0){const De=Tc(P),Pe=(ve=P.json)==null?void 0:ve["default-prompt"],ge=uD(P,x),{combinations:$e=[]}=P.json||{};if($e!=null&&$e.length)return Q(me.Flex,{children:$e.map((et,ut)=>{var Jt,cn,Fn,Bn,kn,Vt,Hn;let Xt=Tc(et),Mt=Z;const Mn=et.json.input||"text",Pn=ne==null?void 0:ne.find(gr=>gr.type===Mn);Pn&&Pn!=null&&Pn.style;const sn=(Jt=et==null?void 0:et.json)==null?void 0:Jt["combination-width-ratio"];return sn&&(Mt=10*sn),Q(xy.Item,{style:{flex:Mt,pointerEvents:V?"none":"auto",opacity:V?.5:1},label:ut===0?(cn=P==null?void 0:P.json)==null?void 0:cn["combination-name"]:Q("div",{style:{visibility:"hidden"},children:(Fn=P==null?void 0:P.json)==null?void 0:Fn["combination-name"]}),required:ut===0?(Bn=et.json)==null?void 0:Bn.must:!1,name:te?Array.isArray(te.name)?[...te.name,et.attrid]:[te.name,et.attrid]:et.attrid,initialValue:Xt,rules:[...(kn=et.json)!=null&&kn.must?[{required:!0,message:Pe||`${ge}${et.attrname}`}]:[],...(Vt=P.json)!=null&&Vt.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((Hn=P.json)==null?void 0:Hn["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...R(et),children:B({item:et,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:Mt,customWidth:{width:"100%"},formListField:te})},ut)})});const Me=q&&te?Array.isArray(te.name)?[...te.name,P.attrid]:[te.name,P.attrid]:P.attrid;return Q(xy.Item,{border:!0,name:Me,label:oe&&z(P,G)||null,initialValue:De,style:{pointerEvents:V?"none":"auto",opacity:V?.5:1},rules:[...(xe=P.json)!=null&&xe.must?[{required:!0,message:`${ge}${P.attrname}`}]:[],...(se=P.json)!=null&&se.regexp?[{pattern:new RegExp(P.json.regexp.replace(/^\/|\/$/g,"")),message:((ke=P.json)==null?void 0:ke["regexp-message"])||`${P.attrname}格式不正确`}]:[]],...R(P),children:B({item:P,readonly:V,formItemStyle:ne,radioAlign:ee,relatedid:$,form:X,defaultWidth:Z,formListField:te})},P.attrid)}return null},[z,Tc,R,b,M]),Y=async P=>{var H;try{const V=(H=P==null?void 0:P.response)==null?void 0:H.data;if(V){if(!r)return;const G=await r({Controlname:"DelFile",PageName:"initializationfile"},V);if((G==null?void 0:G.ReturnValue)!==1)return A.error((G==null?void 0:G.msg)||"删除文件失败"),!1}else D(P);return!0}catch{return A.error("删除文件失败,请重试"),!1}},B=({item:P,readonly:H=!1,formItemStyle:V=[],radioAlign:G="horizontal",relatedid:ee,form:ne,defaultWidth:$=358,customWidth:X={},formListField:Z})=>{var ke,De,Pe;const q=P.json.input||"text",te=P.attrid,oe=Z?Array.isArray(Z.name)?[...Z.name,P.attrid]:[k,Z.name,P.attrid]:P.attrid,ae=Tc(P),fe=((ke=P.json)==null?void 0:ke["default-prompt"])||"",ve=uD(P,x),xe=P.json.length&&{maxLength:P.json.length}||{},se=V.find(ge=>ge.type===q);switch(q){case"label":return Q(cu,{disabled:!0,value:((De=P.json)==null?void 0:De["label-value"])||P.attrvalue||((Pe=P.json)==null?void 0:Pe.default)||"-",style:{width:$,...se==null?void 0:se.style,...X}});case"text":return Q(cu,{placeholder:fe||ve,...xe,disabled:H,clearable:!0,style:{width:$,...se==null?void 0:se.style,...X}});case"password":return Q(cu,{placeholder:fe||ve,...xe,disabled:H,type:"password",style:{width:$,...se==null?void 0:se.style,...X}});case"textarea":return Q(cu.TextArea,{placeholder:fe||ve,autoSize:{minHeight:80,maxHeight:120},...xe,disabled:H,style:{width:$,...se==null?void 0:se.style,...X}});case"number":return Q(cu,{placeholder:fe||ve,...xe,type:"number",disabled:H,style:{width:$,...se==null?void 0:se.style,...X}});case"mult-select":case"select":return Q(RV,{item:P.json,readonly:H,style:{width:$,...se==null?void 0:se.style,...X},commonRequestWidthParams:r,commonRequest:i,value:ae,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x,getTitle:_,attrid:te,onChange:ge=>{typeof ge=="object"&&!Array.isArray(ge)?ne.setFieldsValue({...ne.getFieldsValue(),...ge}):ne.setFieldValue(P.attrid,ge)}});case"modal-mult-select":case"modal-select":return Q(zL,{style:{width:$,...se==null?void 0:se.style,...X},item:P.json,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,onSure:async ge=>{ne.setFieldValue(P.attrid,ge)},disabled:H,langId:x,CustomModalComponent:C});case"mul-field-modal-select":return Q(BL,{style:{width:$,...se==null?void 0:se.style,...X},item:P.json,form:ne,attrid:te,value:P.attrvalue||P.json.default||"",commonRequestWidthParams:r,commonRequest:i,langId:x,onSure:async ge=>{ne.setFieldsValue(ge)},disabled:H,CustomModalComponent:C,getTitle:_});case"date-picker":return Q(ew,{popup:!0,type:"date",children:ge=>ge?Bt(ge).format("YYYY-MM-DD"):x==="10001"?"请选择日期":"Please select a date"});case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":{const ge={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};return Q(me.DatePicker,{picker:ge[q]||"date",disabled:H,placement:"bottomLeft",style:{width:$,...se==null?void 0:se.style,...X}})}case"time-picker":return Q(ew,{popup:{round:!0},type:"datetime",title:x==="10001"?"选择年月日时分":"Select date and time",onConfirm:ge=>{ne.setFieldValue(P.attrid,ge)},children:ge=>ge?Q("span",{style:{color:"#333333"},children:Bt(ge).format("YYYY-MM-DD HH:mm")}):x==="10001"?"请选择时间":"Please select time"});case"second-picker":return Q(ew,{popup:{round:!0},type:"time",title:x==="10001"?"选择年月日":"Select time",onConfirm:ge=>{ne.setFieldValue(P.attrid,ge)},children:ge=>ge?Q("span",{style:{color:"#333333"},children:ge}):x==="10001"?"请选择时间":"Please select time"});case"range-picker":return Q(v3,{langId:x,value:ae,type:"range",onChange:ge=>{ne.setFieldValue(oe,ge)}});case"multiple-date-picker":return Q(v3,{langId:x,value:ae,type:"multiple",onChange:ge=>{ne.setFieldValue(oe,ge)}});case"radio":return Q(PV,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H,options:xe,handleUrlOptions:kc,value:ae,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x,onChange:ge=>{ne.setFieldValue(P.attrid,ge.target.value)}});case"checkbox":return Q(jL,{radioAlign:G,commonRequest:i,commonRequestWidthParams:r,item:P.json,readonly:H,options:xe,value:ae,handleUrlOptions:kc,interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x,onChange:ge=>{ne.setFieldValue(P.attrid,ge.join(","))}});case"audio":case"file":case"image":case"video":return Q(MV,{action:t&&t("initializationfile"),item:P.json,uploadType:q,list:ae,readonly:H,uploadText:x==="10001"?"上传文件":"Upload file",relatedid:ee,relatedidKey:m,langId:x,onRemove:ge=>Y(ge)});case"cascader":return Q(IL,{commonRequestWidthParams:r,commonRequest:i,item:P.json,value:P.attrvalue,style:{width:$,...se==null?void 0:se.style,...X},interfaceTypeDict:c,interfaceTypeSysDict:h,actionUrlKey:d,actionUrlExtraParams:g,langId:x});case"radio-card":return Q(HL,{item:P.json,readonly:H,onChange:ge=>{ne.setFieldValue(P.attrid,ge)},commonRequestWidthParams:r});default:return Q(cu,{placeholder:ve,...xe,clearable:!0,disabled:H,style:{width:$,...se==null?void 0:se.style,...X}})}},U=({item:P,readonly:H=!1,colNum:V=1,instructionShowMode:G="icon",relatedid:ee,form:ne,defaultWidth:$=358,formItemStyle:X,radioAlign:Z="horizontal",isFormListItem:q=!1,formListField:te,isShowLabel:oe=!0})=>{var ve;const ae=P.info_base64===1?uu(Zp(P.info)):uu(P.info),fe={...P,json:{...P==null?void 0:P.json,...ae}};return((ve=fe.json)==null?void 0:ve.hide)===!0?null:Q(W.Fragment,{children:I({itemWithJson:fe,readonly:H,colNum:V,instructionShowMode:G,relatedid:ee,form:ne,defaultWidth:$,formItemStyle:X,radioAlign:Z,isFormListItem:q,formListField:te,isShowLabel:oe})},fe.attrid)};return{handleRenderItem:U,handleSetFormItemInitialValue:Tc}}const LV=W.forwardRef((e,r)=>{const{formConfig:t,setFormConfig:i,setAttrList:l,readonly:f=!1,relatedid:c,colNum:h=1,colSpace:m=[0,0],instructionShowMode:d="flex",defaultWidth:g="100%",commonRequestWidthParams:C,uploadAction:b,commonRequest:x,formItemStyle:_=[],radioAlign:k="horizontal",interfaceTypeChildren:E="YLLRDetailAttrlist",interfaceTypeDict:A="YLZDDictList",interfaceTypeSysDict:T="YLZDSysConfigList",relatedidKey:D="relatedid",actionUrlKey:R="action-url",actionUrlExtraParams:N={},CustomModalComponent:z,hideAttrList:M=[],formShowType:I="form",formListItemWidth:Y,formListItemName:B,langId:U="10001",getTitle:P,form:H}=e,V=W.useRef([]),G=ne=>{V.current.push(ne)},{handleRenderItem:ee}=BV({commonRequestWidthParams:C,uploadAction:b,commonRequest:x,setFormConfig:i,setAttrList:l,updateDelFileList:G,formConfig:t,interfaceTypeChildren:E,interfaceTypeDict:A,interfaceTypeSysDict:T,relatedidKey:D,actionUrlKey:R,actionUrlExtraParams:N,CustomModalComponent:z,hideAttrList:M,langId:U,getTitle:P,formListItemName:B});return W.useImperativeHandle(r,()=>({getDelFileList:()=>V.current})),Q(nn,{children:I==="table"?Q(xy.List,{name:B||"customFormList",initialValue:[{}],children:(ne,{add:$,remove:X})=>Be(nn,{children:[ne.map((Z,q)=>Be("div",{className:"form-list-item",style:{borderRadius:8,marginBottom:10},children:[Be(me.Flex,{justify:"space-between",style:{height:44,marginLeft:16,marginRight:16,borderBottom:"1px solid #E3E3E3"},align:"center",children:[Q("span",{style:{color:"#555555"},children:U==="10001"?`第${q+1}条`:`Record ${q+1}`}),ne.length>1&&Q("a",{style:{color:"#ff4d4f"},onClick:()=>X(q),children:U==="10001"?"删除":"Delete"})]}),Q("div",{className:"form-list-item__control",children:t==null?void 0:t.map((te,oe)=>Q(W.Fragment,{children:ee({item:te,readonly:f,colNum:h,instructionShowMode:d,relatedid:c,form:H,defaultWidth:(Y==null?void 0:Y[oe])||g,formItemStyle:_,isFormListItem:!0,formListField:Z})},oe))})]},q)),Q("div",{style:{padding:10},children:Q(ih,{plain:!0,icon:Q(Hz,{}),style:{width:"100%"},type:"primary",onClick:()=>$({}),children:U==="10001"?"新增":"Add"})})]})}):Q(me.Row,{gutter:m,children:t.map((ne,$)=>Q(W.Fragment,{children:ee({item:ne,readonly:f,colNum:h,instructionShowMode:d,relatedid:c,form:H,defaultWidth:g,formItemStyle:_,radioAlign:k})},ne.attrid||`form-item-${$}`))})})}),m3={phone:{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号码"},telephone:{pattern:/^[\d -]+$/,message:"请输入正确的电话号码"},email:{pattern:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,message:"请输入正确的邮箱地址"},httpUrl:{pattern:/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/,message:"请输入合法的URL"},zipCode:{pattern:/^[0-9]{6}$/,message:"请输入正确的邮政编码"},specificKey:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D()()]*$/,message:"可输入字母、汉字、数字或()"},inputTextarea:{pattern:/^[\w\u4E00-\u9FA5\uF900-\uFA2D-\u3002-\uff1f-\uff01-\uff0c-\u3001-\uff1b-\uff1a]*$/,message:"请输入字母、汉字或数字和中文常用字符:?!,、;。"},backendRestrict:{pattern:/^[^'"/\\]*$/,message:`不能输入特殊字符\\'/"`},onetoNinetyNine:{pattern:/^[1-9][0-9]{0,1}$/,message:"请输入1-99的整数"},passwordRule:{pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z0-9]{8,12}$/,message:"密码应为字母大小写+数字8-12位组合"},passwordNewRule:{pattern:/^.*(?=.{8,})(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#¥%&*.()_+~/-]).*$/,message:"密码应为字母大小写+数字+常见字符!@#¥%&*.()_+~/- 8-12位组合"},pureNumber:{pattern:/^[1-9][0-9]*$/,message:"请输入整数类型"},onlyBlankRule:{pattern:/\S/,message:"输入内容不能只有空格"}},zV=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"}));class UV{constructor(r){Xf(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=r}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const r=document.getElementById(this.options.id),t=document.createElement("canvas");t.id=this.options.canvasId,t.width=Number(this.options.width),t.height=Number(this.options.height),t.style.cursor="pointer",t.innerHTML="您的浏览器版本不支持canvas",r&&r.appendChild(t),t.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const r=document.getElementById(this.options.canvasId);let t,i=[];if(r.getContext)t=r.getContext("2d");else return;t.textBaseline="middle",t.fillStyle=this.randomColor(180,240),t.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?i=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?i=this.options.numArr:i=this.options.letterArr;for(let l=1;l<=4;l++){const f=i[this.randomNum(0,i.length)];this.options.code+=f,t.font="20px SimHei",t.fillStyle=this.randomColor(50,160),t.shadowBlur=this.randomNum(-3,3),t.shadowColor="rgba(0, 0, 0, 0.3)";const c=Number(this.options.width)/5*l,h=Number(this.options.height)/2,m=this.randomNum(-30,30);t.translate(c,h),t.rotate(m*Math.PI/180),t.fillText(f,0,0),t.rotate(-m*Math.PI/180),t.translate(-c,-h)}for(let l=0;l<2;l++)t.strokeStyle=this.randomColor(40,180),t.beginPath(),t.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),t.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),t.stroke();for(let l=0;l<Number(this.options.width)/10;l++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),t.fill()}validate(r){const t=r.toLowerCase(),i=this.options.code.toLowerCase();return t==i}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(r,t){return Math.floor(Math.random()*(t-r)+r)}randomColor(r,t){const i=this.randomNum(r,t),l=this.randomNum(r,t),f=this.randomNum(r,t);return"rgb("+i+","+l+","+f+")"}}const jV=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:UV},Symbol.toStringTag,{value:"Module"}));var g3={exports:{}};function IV(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Sw={exports:{}};const HV=U4(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var y3;function Zt(){return y3||(y3=1,function(e,r){(function(t,i){e.exports=i()})(Lt,function(){var t=t||function(i,l){var f;if(typeof window<"u"&&window.crypto&&(f=window.crypto),typeof self<"u"&&self.crypto&&(f=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(f=globalThis.crypto),!f&&typeof window<"u"&&window.msCrypto&&(f=window.msCrypto),!f&&typeof Lt<"u"&&Lt.crypto&&(f=Lt.crypto),!f&&typeof IV=="function")try{f=HV}catch{}var c=function(){if(f){if(typeof f.getRandomValues=="function")try{return f.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof f.randomBytes=="function")try{return f.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},h=Object.create||function(){function T(){}return function(D){var R;return T.prototype=D,R=new T,T.prototype=null,R}}(),m={},d=m.lib={},g=d.Base=function(){return{extend:function(T){var D=h(this);return T&&D.mixIn(T),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var T=this.extend();return T.init.apply(T,arguments),T},init:function(){},mixIn:function(T){for(var D in T)T.hasOwnProperty(D)&&(this[D]=T[D]);T.hasOwnProperty("toString")&&(this.toString=T.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),C=d.WordArray=g.extend({init:function(T,D){T=this.words=T||[],D!=l?this.sigBytes=D:this.sigBytes=T.length*4},toString:function(T){return(T||x).stringify(this)},concat:function(T){var D=this.words,R=T.words,N=this.sigBytes,z=T.sigBytes;if(this.clamp(),N%4)for(var M=0;M<z;M++){var I=R[M>>>2]>>>24-M%4*8&255;D[N+M>>>2]|=I<<24-(N+M)%4*8}else for(var Y=0;Y<z;Y+=4)D[N+Y>>>2]=R[Y>>>2];return this.sigBytes+=z,this},clamp:function(){var T=this.words,D=this.sigBytes;T[D>>>2]&=4294967295<<32-D%4*8,T.length=i.ceil(D/4)},clone:function(){var T=g.clone.call(this);return T.words=this.words.slice(0),T},random:function(T){for(var D=[],R=0;R<T;R+=4)D.push(c());return new C.init(D,T)}}),b=m.enc={},x=b.Hex={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push((M>>>4).toString(16)),N.push((M&15).toString(16))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N+=2)R[N>>>3]|=parseInt(T.substr(N,2),16)<<24-N%8*4;return new C.init(R,D/2)}},_=b.Latin1={stringify:function(T){for(var D=T.words,R=T.sigBytes,N=[],z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;N.push(String.fromCharCode(M))}return N.join("")},parse:function(T){for(var D=T.length,R=[],N=0;N<D;N++)R[N>>>2]|=(T.charCodeAt(N)&255)<<24-N%4*8;return new C.init(R,D)}},k=b.Utf8={stringify:function(T){try{return decodeURIComponent(escape(_.stringify(T)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(T){return _.parse(unescape(encodeURIComponent(T)))}},E=d.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(T){typeof T=="string"&&(T=k.parse(T)),this._data.concat(T),this._nDataBytes+=T.sigBytes},_process:function(T){var D,R=this._data,N=R.words,z=R.sigBytes,M=this.blockSize,I=M*4,Y=z/I;T?Y=i.ceil(Y):Y=i.max((Y|0)-this._minBufferSize,0);var B=Y*M,U=i.min(B*4,z);if(B){for(var P=0;P<B;P+=M)this._doProcessBlock(N,P);D=N.splice(0,B),R.sigBytes-=U}return new C.init(D,U)},clone:function(){var T=g.clone.call(this);return T._data=this._data.clone(),T},_minBufferSize:0});d.Hasher=E.extend({cfg:g.extend(),init:function(T){this.cfg=this.cfg.extend(T),this.reset()},reset:function(){E.reset.call(this),this._doReset()},update:function(T){return this._append(T),this._process(),this},finalize:function(T){T&&this._append(T);var D=this._doFinalize();return D},blockSize:16,_createHelper:function(T){return function(D,R){return new T.init(R).finalize(D)}},_createHmacHelper:function(T){return function(D,R){return new A.HMAC.init(T,R).finalize(D)}}});var A=m.algo={};return m}(Math);return t})}(Sw)),Sw.exports}var Ew={exports:{}},x3;function by(){return x3||(x3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.Base,h=f.WordArray,m=l.x64={};m.Word=c.extend({init:function(d,g){this.high=d,this.low=g}}),m.WordArray=c.extend({init:function(d,g){d=this.words=d||[],g!=i?this.sigBytes=g:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,g=d.length,C=[],b=0;b<g;b++){var x=d[b];C.push(x.high),C.push(x.low)}return h.create(C,this.sigBytes)},clone:function(){for(var d=c.clone.call(this),g=d.words=this.words.slice(0),C=g.length,b=0;b<C;b++)g[b]=g[b].clone();return d}})}(),t})}(Ew)),Ew.exports}var Dw={exports:{}},b3;function VV(){return b3||(b3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){if(typeof ArrayBuffer=="function"){var i=t,l=i.lib,f=l.WordArray,c=f.init,h=f.init=function(m){if(m instanceof ArrayBuffer&&(m=new Uint8Array(m)),(m instanceof Int8Array||typeof Uint8ClampedArray<"u"&&m instanceof Uint8ClampedArray||m instanceof Int16Array||m instanceof Uint16Array||m instanceof Int32Array||m instanceof Uint32Array||m instanceof Float32Array||m instanceof Float64Array)&&(m=new Uint8Array(m.buffer,m.byteOffset,m.byteLength)),m instanceof Uint8Array){for(var d=m.byteLength,g=[],C=0;C<d;C++)g[C>>>2]|=m[C]<<24-C%4*8;c.call(this,g,d)}else c.apply(this,arguments)};h.prototype=f}}(),t.lib.WordArray})}(Dw)),Dw.exports}var kw={exports:{}},C3;function $V(){return C3||(C3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Utf16=c.Utf16BE={stringify:function(m){for(var d=m.words,g=m.sigBytes,C=[],b=0;b<g;b+=2){var x=d[b>>>2]>>>16-b%4*8&65535;C.push(String.fromCharCode(x))}return C.join("")},parse:function(m){for(var d=m.length,g=[],C=0;C<d;C++)g[C>>>1]|=m.charCodeAt(C)<<16-C%2*16;return f.create(g,d*2)}},c.Utf16LE={stringify:function(m){for(var d=m.words,g=m.sigBytes,C=[],b=0;b<g;b+=2){var x=h(d[b>>>2]>>>16-b%4*8&65535);C.push(String.fromCharCode(x))}return C.join("")},parse:function(m){for(var d=m.length,g=[],C=0;C<d;C++)g[C>>>1]|=h(m.charCodeAt(C)<<16-C%2*16);return f.create(g,d*2)}};function h(m){return m<<8&4278255360|m>>>8&16711935}}(),t.enc.Utf16})}(kw)),kw.exports}var Tw={exports:{}},w3;function jc(){return w3||(w3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64={stringify:function(m){var d=m.words,g=m.sigBytes,C=this._map;m.clamp();for(var b=[],x=0;x<g;x+=3)for(var _=d[x>>>2]>>>24-x%4*8&255,k=d[x+1>>>2]>>>24-(x+1)%4*8&255,E=d[x+2>>>2]>>>24-(x+2)%4*8&255,A=_<<16|k<<8|E,T=0;T<4&&x+T*.75<g;T++)b.push(C.charAt(A>>>6*(3-T)&63));var D=C.charAt(64);if(D)for(;b.length%4;)b.push(D);return b.join("")},parse:function(m){var d=m.length,g=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var b=0;b<g.length;b++)C[g.charCodeAt(b)]=b}var x=g.charAt(64);if(x){var _=m.indexOf(x);_!==-1&&(d=_)}return h(m,d,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function h(m,d,g){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=g[m.charCodeAt(x-1)]<<x%4*2,k=g[m.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64})}(Tw)),Tw.exports}var Aw={exports:{}},_3;function YV(){return _3||(_3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.enc;c.Base64url={stringify:function(m,d){d===void 0&&(d=!0);var g=m.words,C=m.sigBytes,b=d?this._safe_map:this._map;m.clamp();for(var x=[],_=0;_<C;_+=3)for(var k=g[_>>>2]>>>24-_%4*8&255,E=g[_+1>>>2]>>>24-(_+1)%4*8&255,A=g[_+2>>>2]>>>24-(_+2)%4*8&255,T=k<<16|E<<8|A,D=0;D<4&&_+D*.75<C;D++)x.push(b.charAt(T>>>6*(3-D)&63));var R=b.charAt(64);if(R)for(;x.length%4;)x.push(R);return x.join("")},parse:function(m,d){d===void 0&&(d=!0);var g=m.length,C=d?this._safe_map:this._map,b=this._reverseMap;if(!b){b=this._reverseMap=[];for(var x=0;x<C.length;x++)b[C.charCodeAt(x)]=x}var _=C.charAt(64);if(_){var k=m.indexOf(_);k!==-1&&(g=k)}return h(m,g,b)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function h(m,d,g){for(var C=[],b=0,x=0;x<d;x++)if(x%4){var _=g[m.charCodeAt(x-1)]<<x%4*2,k=g[m.charCodeAt(x)]>>>6-x%4*2,E=_|k;C[b>>>2]|=E<<24-b%4*8,b++}return f.create(C,b)}}(),t.enc.Base64url})}(Aw)),Aw.exports}var Ow={exports:{}},S3;function Ic(){return S3||(S3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.algo,d=[];(function(){for(var k=0;k<64;k++)d[k]=i.abs(i.sin(k+1))*4294967296|0})();var g=m.MD5=h.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,E){for(var A=0;A<16;A++){var T=E+A,D=k[T];k[T]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}var R=this._hash.words,N=k[E+0],z=k[E+1],M=k[E+2],I=k[E+3],Y=k[E+4],B=k[E+5],U=k[E+6],P=k[E+7],H=k[E+8],V=k[E+9],G=k[E+10],ee=k[E+11],ne=k[E+12],$=k[E+13],X=k[E+14],Z=k[E+15],q=R[0],te=R[1],oe=R[2],ae=R[3];q=C(q,te,oe,ae,N,7,d[0]),ae=C(ae,q,te,oe,z,12,d[1]),oe=C(oe,ae,q,te,M,17,d[2]),te=C(te,oe,ae,q,I,22,d[3]),q=C(q,te,oe,ae,Y,7,d[4]),ae=C(ae,q,te,oe,B,12,d[5]),oe=C(oe,ae,q,te,U,17,d[6]),te=C(te,oe,ae,q,P,22,d[7]),q=C(q,te,oe,ae,H,7,d[8]),ae=C(ae,q,te,oe,V,12,d[9]),oe=C(oe,ae,q,te,G,17,d[10]),te=C(te,oe,ae,q,ee,22,d[11]),q=C(q,te,oe,ae,ne,7,d[12]),ae=C(ae,q,te,oe,$,12,d[13]),oe=C(oe,ae,q,te,X,17,d[14]),te=C(te,oe,ae,q,Z,22,d[15]),q=b(q,te,oe,ae,z,5,d[16]),ae=b(ae,q,te,oe,U,9,d[17]),oe=b(oe,ae,q,te,ee,14,d[18]),te=b(te,oe,ae,q,N,20,d[19]),q=b(q,te,oe,ae,B,5,d[20]),ae=b(ae,q,te,oe,G,9,d[21]),oe=b(oe,ae,q,te,Z,14,d[22]),te=b(te,oe,ae,q,Y,20,d[23]),q=b(q,te,oe,ae,V,5,d[24]),ae=b(ae,q,te,oe,X,9,d[25]),oe=b(oe,ae,q,te,I,14,d[26]),te=b(te,oe,ae,q,H,20,d[27]),q=b(q,te,oe,ae,$,5,d[28]),ae=b(ae,q,te,oe,M,9,d[29]),oe=b(oe,ae,q,te,P,14,d[30]),te=b(te,oe,ae,q,ne,20,d[31]),q=x(q,te,oe,ae,B,4,d[32]),ae=x(ae,q,te,oe,H,11,d[33]),oe=x(oe,ae,q,te,ee,16,d[34]),te=x(te,oe,ae,q,X,23,d[35]),q=x(q,te,oe,ae,z,4,d[36]),ae=x(ae,q,te,oe,Y,11,d[37]),oe=x(oe,ae,q,te,P,16,d[38]),te=x(te,oe,ae,q,G,23,d[39]),q=x(q,te,oe,ae,$,4,d[40]),ae=x(ae,q,te,oe,N,11,d[41]),oe=x(oe,ae,q,te,I,16,d[42]),te=x(te,oe,ae,q,U,23,d[43]),q=x(q,te,oe,ae,V,4,d[44]),ae=x(ae,q,te,oe,ne,11,d[45]),oe=x(oe,ae,q,te,Z,16,d[46]),te=x(te,oe,ae,q,M,23,d[47]),q=_(q,te,oe,ae,N,6,d[48]),ae=_(ae,q,te,oe,P,10,d[49]),oe=_(oe,ae,q,te,X,15,d[50]),te=_(te,oe,ae,q,B,21,d[51]),q=_(q,te,oe,ae,ne,6,d[52]),ae=_(ae,q,te,oe,I,10,d[53]),oe=_(oe,ae,q,te,G,15,d[54]),te=_(te,oe,ae,q,z,21,d[55]),q=_(q,te,oe,ae,H,6,d[56]),ae=_(ae,q,te,oe,Z,10,d[57]),oe=_(oe,ae,q,te,U,15,d[58]),te=_(te,oe,ae,q,$,21,d[59]),q=_(q,te,oe,ae,Y,6,d[60]),ae=_(ae,q,te,oe,ee,10,d[61]),oe=_(oe,ae,q,te,M,15,d[62]),te=_(te,oe,ae,q,V,21,d[63]),R[0]=R[0]+q|0,R[1]=R[1]+te|0,R[2]=R[2]+oe|0,R[3]=R[3]+ae|0},_doFinalize:function(){var k=this._data,E=k.words,A=this._nDataBytes*8,T=k.sigBytes*8;E[T>>>5]|=128<<24-T%32;var D=i.floor(A/4294967296),R=A;E[(T+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E[(T+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k.sigBytes=(E.length+1)*4,this._process();for(var N=this._hash,z=N.words,M=0;M<4;M++){var I=z[M];z[M]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return N},clone:function(){var k=h.clone.call(this);return k._hash=this._hash.clone(),k}});function C(k,E,A,T,D,R,N){var z=k+(E&A|~E&T)+D+N;return(z<<R|z>>>32-R)+E}function b(k,E,A,T,D,R,N){var z=k+(E&T|A&~T)+D+N;return(z<<R|z>>>32-R)+E}function x(k,E,A,T,D,R,N){var z=k+(E^A^T)+D+N;return(z<<R|z>>>32-R)+E}function _(k,E,A,T,D,R,N){var z=k+(A^(E|~T))+D+N;return(z<<R|z>>>32-R)+E}l.MD5=h._createHelper(g),l.HmacMD5=h._createHmacHelper(g)}(Math),t.MD5})}(Ow)),Ow.exports}var Rw={exports:{}},E3;function D3(){return E3||(E3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.Hasher,h=i.algo,m=[],d=h.SHA1=c.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,C){for(var b=this._hash.words,x=b[0],_=b[1],k=b[2],E=b[3],A=b[4],T=0;T<80;T++){if(T<16)m[T]=g[C+T]|0;else{var D=m[T-3]^m[T-8]^m[T-14]^m[T-16];m[T]=D<<1|D>>>31}var R=(x<<5|x>>>27)+A+m[T];T<20?R+=(_&k|~_&E)+1518500249:T<40?R+=(_^k^E)+1859775393:T<60?R+=(_&k|_&E|k&E)-1894007588:R+=(_^k^E)-899497514,A=E,E=k,k=_<<30|_>>>2,_=x,x=R}b[0]=b[0]+x|0,b[1]=b[1]+_|0,b[2]=b[2]+k|0,b[3]=b[3]+E|0,b[4]=b[4]+A|0},_doFinalize:function(){var g=this._data,C=g.words,b=this._nDataBytes*8,x=g.sigBytes*8;return C[x>>>5]|=128<<24-x%32,C[(x+64>>>9<<4)+14]=Math.floor(b/4294967296),C[(x+64>>>9<<4)+15]=b,g.sigBytes=C.length*4,this._process(),this._hash},clone:function(){var g=c.clone.call(this);return g._hash=this._hash.clone(),g}});i.SHA1=c._createHelper(d),i.HmacSHA1=c._createHmacHelper(d)}(),t.SHA1})}(Rw)),Rw.exports}var Fw={exports:{}},k3;function Nw(){return k3||(k3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.algo,d=[],g=[];(function(){function x(A){for(var T=i.sqrt(A),D=2;D<=T;D++)if(!(A%D))return!1;return!0}function _(A){return(A-(A|0))*4294967296|0}for(var k=2,E=0;E<64;)x(k)&&(E<8&&(d[E]=_(i.pow(k,1/2))),g[E]=_(i.pow(k,1/3)),E++),k++})();var C=[],b=m.SHA256=h.extend({_doReset:function(){this._hash=new c.init(d.slice(0))},_doProcessBlock:function(x,_){for(var k=this._hash.words,E=k[0],A=k[1],T=k[2],D=k[3],R=k[4],N=k[5],z=k[6],M=k[7],I=0;I<64;I++){if(I<16)C[I]=x[_+I]|0;else{var Y=C[I-15],B=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,U=C[I-2],P=(U<<15|U>>>17)^(U<<13|U>>>19)^U>>>10;C[I]=B+C[I-7]+P+C[I-16]}var H=R&N^~R&z,V=E&A^E&T^A&T,G=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),ee=(R<<26|R>>>6)^(R<<21|R>>>11)^(R<<7|R>>>25),ne=M+ee+H+g[I]+C[I],$=G+V;M=z,z=N,N=R,R=D+ne|0,D=T,T=A,A=E,E=ne+$|0}k[0]=k[0]+E|0,k[1]=k[1]+A|0,k[2]=k[2]+T|0,k[3]=k[3]+D|0,k[4]=k[4]+R|0,k[5]=k[5]+N|0,k[6]=k[6]+z|0,k[7]=k[7]+M|0},_doFinalize:function(){var x=this._data,_=x.words,k=this._nDataBytes*8,E=x.sigBytes*8;return _[E>>>5]|=128<<24-E%32,_[(E+64>>>9<<4)+14]=i.floor(k/4294967296),_[(E+64>>>9<<4)+15]=k,x.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var x=h.clone.call(this);return x._hash=this._hash.clone(),x}});l.SHA256=h._createHelper(b),l.HmacSHA256=h._createHmacHelper(b)}(Math),t.SHA256})}(Fw)),Fw.exports}var Mw={exports:{}},T3;function qV(){return T3||(T3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),Nw())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=i.algo,h=c.SHA256,m=c.SHA224=h.extend({_doReset:function(){this._hash=new f.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=h._doFinalize.call(this);return d.sigBytes-=4,d}});i.SHA224=h._createHelper(m),i.HmacSHA224=h._createHmacHelper(m)}(),t.SHA224})}(Mw)),Mw.exports}var Pw={exports:{}},A3;function O3(){return A3||(A3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),by())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.Hasher,c=i.x64,h=c.Word,m=c.WordArray,d=i.algo;function g(){return h.create.apply(h,arguments)}var C=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],b=[];(function(){for(var _=0;_<80;_++)b[_]=g()})();var x=d.SHA512=f.extend({_doReset:function(){this._hash=new m.init([new h.init(1779033703,4089235720),new h.init(3144134277,2227873595),new h.init(1013904242,4271175723),new h.init(2773480762,1595750129),new h.init(1359893119,2917565137),new h.init(2600822924,725511199),new h.init(528734635,4215389547),new h.init(1541459225,327033209)])},_doProcessBlock:function(_,k){for(var E=this._hash.words,A=E[0],T=E[1],D=E[2],R=E[3],N=E[4],z=E[5],M=E[6],I=E[7],Y=A.high,B=A.low,U=T.high,P=T.low,H=D.high,V=D.low,G=R.high,ee=R.low,ne=N.high,$=N.low,X=z.high,Z=z.low,q=M.high,te=M.low,oe=I.high,ae=I.low,fe=Y,ve=B,xe=U,se=P,ke=H,De=V,Pe=G,ge=ee,$e=ne,Me=$,et=X,ut=Z,Xt=q,Mt=te,Mn=oe,Pn=ae,sn=0;sn<80;sn++){var Jt,cn,Fn=b[sn];if(sn<16)cn=Fn.high=_[k+sn*2]|0,Jt=Fn.low=_[k+sn*2+1]|0;else{var Bn=b[sn-15],kn=Bn.high,Vt=Bn.low,Hn=(kn>>>1|Vt<<31)^(kn>>>8|Vt<<24)^kn>>>7,gr=(Vt>>>1|kn<<31)^(Vt>>>8|kn<<24)^(Vt>>>7|kn<<25),ur=b[sn-2],Ye=ur.high,it=ur.low,rt=(Ye>>>19|it<<13)^(Ye<<3|it>>>29)^Ye>>>6,$t=(it>>>19|Ye<<13)^(it<<3|Ye>>>29)^(it>>>6|Ye<<26),Nn=b[sn-7],cr=Nn.high,Wn=Nn.low,Ur=b[sn-16],_n=Ur.high,ra=Ur.low;Jt=gr+Wn,cn=Hn+cr+(Jt>>>0<gr>>>0?1:0),Jt=Jt+$t,cn=cn+rt+(Jt>>>0<$t>>>0?1:0),Jt=Jt+ra,cn=cn+_n+(Jt>>>0<ra>>>0?1:0),Fn.high=cn,Fn.low=Jt}var vn=$e&et^~$e&Xt,mn=Me&ut^~Me&Mt,yl=fe&xe^fe&ke^xe&ke,Do=ve&se^ve&De^se&De,xl=(fe>>>28|ve<<4)^(fe<<30|ve>>>2)^(fe<<25|ve>>>7),bl=(ve>>>28|fe<<4)^(ve<<30|fe>>>2)^(ve<<25|fe>>>7),gu=($e>>>14|Me<<18)^($e>>>18|Me<<14)^($e<<23|Me>>>9),ko=(Me>>>14|$e<<18)^(Me>>>18|$e<<14)^(Me<<23|$e>>>9),To=C[sn],Ao=To.high,Oo=To.low,Vn=Pn+ko,jr=Mn+gu+(Vn>>>0<Pn>>>0?1:0),Vn=Vn+mn,jr=jr+vn+(Vn>>>0<mn>>>0?1:0),Vn=Vn+Oo,jr=jr+Ao+(Vn>>>0<Oo>>>0?1:0),Vn=Vn+Jt,jr=jr+cn+(Vn>>>0<Jt>>>0?1:0),aa=bl+Do,Ya=xl+yl+(aa>>>0<bl>>>0?1:0);Mn=Xt,Pn=Mt,Xt=et,Mt=ut,et=$e,ut=Me,Me=ge+Vn|0,$e=Pe+jr+(Me>>>0<ge>>>0?1:0)|0,Pe=ke,ge=De,ke=xe,De=se,xe=fe,se=ve,ve=Vn+aa|0,fe=jr+Ya+(ve>>>0<Vn>>>0?1:0)|0}B=A.low=B+ve,A.high=Y+fe+(B>>>0<ve>>>0?1:0),P=T.low=P+se,T.high=U+xe+(P>>>0<se>>>0?1:0),V=D.low=V+De,D.high=H+ke+(V>>>0<De>>>0?1:0),ee=R.low=ee+ge,R.high=G+Pe+(ee>>>0<ge>>>0?1:0),$=N.low=$+Me,N.high=ne+$e+($>>>0<Me>>>0?1:0),Z=z.low=Z+ut,z.high=X+et+(Z>>>0<ut>>>0?1:0),te=M.low=te+Mt,M.high=q+Xt+(te>>>0<Mt>>>0?1:0),ae=I.low=ae+Pn,I.high=oe+Mn+(ae>>>0<Pn>>>0?1:0)},_doFinalize:function(){var _=this._data,k=_.words,E=this._nDataBytes*8,A=_.sigBytes*8;k[A>>>5]|=128<<24-A%32,k[(A+128>>>10<<5)+30]=Math.floor(E/4294967296),k[(A+128>>>10<<5)+31]=E,_.sigBytes=k.length*4,this._process();var T=this._hash.toX32();return T},clone:function(){var _=f.clone.call(this);return _._hash=this._hash.clone(),_},blockSize:1024/32});i.SHA512=f._createHelper(x),i.HmacSHA512=f._createHmacHelper(x)}(),t.SHA512})}(Pw)),Pw.exports}var Bw={exports:{}},R3;function GV(){return R3||(R3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),by(),O3())})(Lt,function(t){return function(){var i=t,l=i.x64,f=l.Word,c=l.WordArray,h=i.algo,m=h.SHA512,d=h.SHA384=m.extend({_doReset:function(){this._hash=new c.init([new f.init(3418070365,3238371032),new f.init(1654270250,914150663),new f.init(2438529370,812702999),new f.init(355462360,4144912697),new f.init(1731405415,4290775857),new f.init(2394180231,1750603025),new f.init(3675008525,1694076839),new f.init(1203062813,3204075428)])},_doFinalize:function(){var g=m._doFinalize.call(this);return g.sigBytes-=16,g}});i.SHA384=m._createHelper(d),i.HmacSHA384=m._createHmacHelper(d)}(),t.SHA384})}(Bw)),Bw.exports}var Lw={exports:{}},F3;function KV(){return F3||(F3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),by())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.x64,d=m.Word,g=l.algo,C=[],b=[],x=[];(function(){for(var E=1,A=0,T=0;T<24;T++){C[E+5*A]=(T+1)*(T+2)/2%64;var D=A%5,R=(2*E+3*A)%5;E=D,A=R}for(var E=0;E<5;E++)for(var A=0;A<5;A++)b[E+5*A]=A+(2*E+3*A)%5*5;for(var N=1,z=0;z<24;z++){for(var M=0,I=0,Y=0;Y<7;Y++){if(N&1){var B=(1<<Y)-1;B<32?I^=1<<B:M^=1<<B-32}N&128?N=N<<1^113:N<<=1}x[z]=d.create(M,I)}})();var _=[];(function(){for(var E=0;E<25;E++)_[E]=d.create()})();var k=g.SHA3=h.extend({cfg:h.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],A=0;A<25;A++)E[A]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,A){for(var T=this._state,D=this.blockSize/2,R=0;R<D;R++){var N=E[A+2*R],z=E[A+2*R+1];N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360;var M=T[R];M.high^=z,M.low^=N}for(var I=0;I<24;I++){for(var Y=0;Y<5;Y++){for(var B=0,U=0,P=0;P<5;P++){var M=T[Y+5*P];B^=M.high,U^=M.low}var H=_[Y];H.high=B,H.low=U}for(var Y=0;Y<5;Y++)for(var V=_[(Y+4)%5],G=_[(Y+1)%5],ee=G.high,ne=G.low,B=V.high^(ee<<1|ne>>>31),U=V.low^(ne<<1|ee>>>31),P=0;P<5;P++){var M=T[Y+5*P];M.high^=B,M.low^=U}for(var $=1;$<25;$++){var B,U,M=T[$],X=M.high,Z=M.low,q=C[$];q<32?(B=X<<q|Z>>>32-q,U=Z<<q|X>>>32-q):(B=Z<<q-32|X>>>64-q,U=X<<q-32|Z>>>64-q);var te=_[b[$]];te.high=B,te.low=U}var oe=_[0],ae=T[0];oe.high=ae.high,oe.low=ae.low;for(var Y=0;Y<5;Y++)for(var P=0;P<5;P++){var $=Y+5*P,M=T[$],fe=_[$],ve=_[(Y+1)%5+5*P],xe=_[(Y+2)%5+5*P];M.high=fe.high^~ve.high&xe.high,M.low=fe.low^~ve.low&xe.low}var M=T[0],se=x[I];M.high^=se.high,M.low^=se.low}},_doFinalize:function(){var E=this._data,A=E.words;this._nDataBytes*8;var T=E.sigBytes*8,D=this.blockSize*32;A[T>>>5]|=1<<24-T%32,A[(i.ceil((T+1)/D)*D>>>5)-1]|=128,E.sigBytes=A.length*4,this._process();for(var R=this._state,N=this.cfg.outputLength/8,z=N/8,M=[],I=0;I<z;I++){var Y=R[I],B=Y.high,U=Y.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,U=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,M.push(U),M.push(B)}return new c.init(M,N)},clone:function(){for(var E=h.clone.call(this),A=E._state=this._state.slice(0),T=0;T<25;T++)A[T]=A[T].clone();return E}});l.SHA3=h._createHelper(k),l.HmacSHA3=h._createHmacHelper(k)}(Math),t.SHA3})}(Lw)),Lw.exports}var zw={exports:{}},N3;function WV(){return N3||(N3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.WordArray,h=f.Hasher,m=l.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),g=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),C=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),b=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=c.create([0,1518500249,1859775393,2400959708,2840853838]),_=c.create([1352829926,1548603684,1836072691,2053994217,0]),k=m.RIPEMD160=h.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(z,M){for(var I=0;I<16;I++){var Y=M+I,B=z[Y];z[Y]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var U=this._hash.words,P=x.words,H=_.words,V=d.words,G=g.words,ee=C.words,ne=b.words,$,X,Z,q,te,oe,ae,fe,ve,xe;oe=$=U[0],ae=X=U[1],fe=Z=U[2],ve=q=U[3],xe=te=U[4];for(var se,I=0;I<80;I+=1)se=$+z[M+V[I]]|0,I<16?se+=E(X,Z,q)+P[0]:I<32?se+=A(X,Z,q)+P[1]:I<48?se+=T(X,Z,q)+P[2]:I<64?se+=D(X,Z,q)+P[3]:se+=R(X,Z,q)+P[4],se=se|0,se=N(se,ee[I]),se=se+te|0,$=te,te=q,q=N(Z,10),Z=X,X=se,se=oe+z[M+G[I]]|0,I<16?se+=R(ae,fe,ve)+H[0]:I<32?se+=D(ae,fe,ve)+H[1]:I<48?se+=T(ae,fe,ve)+H[2]:I<64?se+=A(ae,fe,ve)+H[3]:se+=E(ae,fe,ve)+H[4],se=se|0,se=N(se,ne[I]),se=se+xe|0,oe=xe,xe=ve,ve=N(fe,10),fe=ae,ae=se;se=U[1]+Z+ve|0,U[1]=U[2]+q+xe|0,U[2]=U[3]+te+oe|0,U[3]=U[4]+$+ae|0,U[4]=U[0]+X+fe|0,U[0]=se},_doFinalize:function(){var z=this._data,M=z.words,I=this._nDataBytes*8,Y=z.sigBytes*8;M[Y>>>5]|=128<<24-Y%32,M[(Y+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.sigBytes=(M.length+1)*4,this._process();for(var B=this._hash,U=B.words,P=0;P<5;P++){var H=U[P];U[P]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return B},clone:function(){var z=h.clone.call(this);return z._hash=this._hash.clone(),z}});function E(z,M,I){return z^M^I}function A(z,M,I){return z&M|~z&I}function T(z,M,I){return(z|~M)^I}function D(z,M,I){return z&I|M&~I}function R(z,M,I){return z^(M|~I)}function N(z,M){return z<<M|z>>>32-M}l.RIPEMD160=h._createHelper(k),l.HmacRIPEMD160=h._createHmacHelper(k)}(),t.RIPEMD160})}(zw)),zw.exports}var Uw={exports:{}},M3;function jw(){return M3||(M3=1,function(e,r){(function(t,i){e.exports=i(Zt())})(Lt,function(t){(function(){var i=t,l=i.lib,f=l.Base,c=i.enc,h=c.Utf8,m=i.algo;m.HMAC=f.extend({init:function(d,g){d=this._hasher=new d.init,typeof g=="string"&&(g=h.parse(g));var C=d.blockSize,b=C*4;g.sigBytes>b&&(g=d.finalize(g)),g.clamp();for(var x=this._oKey=g.clone(),_=this._iKey=g.clone(),k=x.words,E=_.words,A=0;A<C;A++)k[A]^=1549556828,E[A]^=909522486;x.sigBytes=_.sigBytes=b,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var g=this._hasher,C=g.finalize(d);g.reset();var b=g.finalize(this._oKey.clone().concat(C));return b}})})()})}(Uw)),Uw.exports}var Iw={exports:{}},P3;function QV(){return P3||(P3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),Nw(),jw())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,h=i.algo,m=h.SHA256,d=h.HMAC,g=h.PBKDF2=f.extend({cfg:f.extend({keySize:128/32,hasher:m,iterations:25e4}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,b){for(var x=this.cfg,_=d.create(x.hasher,C),k=c.create(),E=c.create([1]),A=k.words,T=E.words,D=x.keySize,R=x.iterations;A.length<D;){var N=_.update(b).finalize(E);_.reset();for(var z=N.words,M=z.length,I=N,Y=1;Y<R;Y++){I=_.finalize(I),_.reset();for(var B=I.words,U=0;U<M;U++)z[U]^=B[U]}k.concat(N),T[0]++}return k.sigBytes=D*4,k}});i.PBKDF2=function(C,b,x){return g.create(x).compute(C,b)}}(),t.PBKDF2})}(Iw)),Iw.exports}var Hw={exports:{}},B3;function mu(){return B3||(B3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),D3(),jw())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.Base,c=l.WordArray,h=i.algo,m=h.MD5,d=h.EvpKDF=f.extend({cfg:f.extend({keySize:128/32,hasher:m,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,C){for(var b,x=this.cfg,_=x.hasher.create(),k=c.create(),E=k.words,A=x.keySize,T=x.iterations;E.length<A;){b&&_.update(b),b=_.update(g).finalize(C),_.reset();for(var D=1;D<T;D++)b=_.finalize(b),_.reset();k.concat(b)}return k.sigBytes=A*4,k}});i.EvpKDF=function(g,C,b){return d.create(b).compute(g,C)}}(),t.EvpKDF})}(Hw)),Hw.exports}var Vw={exports:{}},L3;function na(){return L3||(L3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),mu())})(Lt,function(t){t.lib.Cipher||function(i){var l=t,f=l.lib,c=f.Base,h=f.WordArray,m=f.BufferedBlockAlgorithm,d=l.enc;d.Utf8;var g=d.Base64,C=l.algo,b=C.EvpKDF,x=f.Cipher=m.extend({cfg:c.extend(),createEncryptor:function(B,U){return this.create(this._ENC_XFORM_MODE,B,U)},createDecryptor:function(B,U){return this.create(this._DEC_XFORM_MODE,B,U)},init:function(B,U,P){this.cfg=this.cfg.extend(P),this._xformMode=B,this._key=U,this.reset()},reset:function(){m.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var U=this._doFinalize();return U},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(U){return typeof U=="string"?Y:z}return function(U){return{encrypt:function(P,H,V){return B(H).encrypt(U,P,H,V)},decrypt:function(P,H,V){return B(H).decrypt(U,P,H,V)}}}}()});f.StreamCipher=x.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var _=l.mode={},k=f.BlockCipherMode=c.extend({createEncryptor:function(B,U){return this.Encryptor.create(B,U)},createDecryptor:function(B,U){return this.Decryptor.create(B,U)},init:function(B,U){this._cipher=B,this._iv=U}}),E=_.CBC=function(){var B=k.extend();B.Encryptor=B.extend({processBlock:function(P,H){var V=this._cipher,G=V.blockSize;U.call(this,P,H,G),V.encryptBlock(P,H),this._prevBlock=P.slice(H,H+G)}}),B.Decryptor=B.extend({processBlock:function(P,H){var V=this._cipher,G=V.blockSize,ee=P.slice(H,H+G);V.decryptBlock(P,H),U.call(this,P,H,G),this._prevBlock=ee}});function U(P,H,V){var G,ee=this._iv;ee?(G=ee,this._iv=i):G=this._prevBlock;for(var ne=0;ne<V;ne++)P[H+ne]^=G[ne]}return B}(),A=l.pad={},T=A.Pkcs7={pad:function(B,U){for(var P=U*4,H=P-B.sigBytes%P,V=H<<24|H<<16|H<<8|H,G=[],ee=0;ee<H;ee+=4)G.push(V);var ne=h.create(G,H);B.concat(ne)},unpad:function(B){var U=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=U}};f.BlockCipher=x.extend({cfg:x.cfg.extend({mode:E,padding:T}),reset:function(){var B;x.reset.call(this);var U=this.cfg,P=U.iv,H=U.mode;this._xformMode==this._ENC_XFORM_MODE?B=H.createEncryptor:(B=H.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,P&&P.words):(this._mode=B.call(H,this,P&&P.words),this._mode.__creator=B)},_doProcessBlock:function(B,U){this._mode.processBlock(B,U)},_doFinalize:function(){var B,U=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(U.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),U.unpad(B)),B},blockSize:128/32});var D=f.CipherParams=c.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),R=l.format={},N=R.OpenSSL={stringify:function(B){var U,P=B.ciphertext,H=B.salt;return H?U=h.create([1398893684,1701076831]).concat(H).concat(P):U=P,U.toString(g)},parse:function(B){var U,P=g.parse(B),H=P.words;return H[0]==1398893684&&H[1]==1701076831&&(U=h.create(H.slice(2,4)),H.splice(0,4),P.sigBytes-=16),D.create({ciphertext:P,salt:U})}},z=f.SerializableCipher=c.extend({cfg:c.extend({format:N}),encrypt:function(B,U,P,H){H=this.cfg.extend(H);var V=B.createEncryptor(P,H),G=V.finalize(U),ee=V.cfg;return D.create({ciphertext:G,key:P,iv:ee.iv,algorithm:B,mode:ee.mode,padding:ee.padding,blockSize:B.blockSize,formatter:H.format})},decrypt:function(B,U,P,H){H=this.cfg.extend(H),U=this._parse(U,H.format);var V=B.createDecryptor(P,H).finalize(U.ciphertext);return V},_parse:function(B,U){return typeof B=="string"?U.parse(B,this):B}}),M=l.kdf={},I=M.OpenSSL={execute:function(B,U,P,H,V){if(H||(H=h.random(64/8)),V)var G=b.create({keySize:U+P,hasher:V}).compute(B,H);else var G=b.create({keySize:U+P}).compute(B,H);var ee=h.create(G.words.slice(U),P*4);return G.sigBytes=U*4,D.create({key:G,iv:ee,salt:H})}},Y=f.PasswordBasedCipher=z.extend({cfg:z.cfg.extend({kdf:I}),encrypt:function(B,U,P,H){H=this.cfg.extend(H);var V=H.kdf.execute(P,B.keySize,B.ivSize,H.salt,H.hasher);H.iv=V.iv;var G=z.encrypt.call(this,B,U,V.key,H);return G.mixIn(V),G},decrypt:function(B,U,P,H){H=this.cfg.extend(H),U=this._parse(U,H.format);var V=H.kdf.execute(P,B.keySize,B.ivSize,U.salt,H.hasher);H.iv=V.iv;var G=z.decrypt.call(this,B,U,V.key,H);return G}})}()})}(Vw)),Vw.exports}var $w={exports:{}},z3;function ZV(){return z3||(z3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.CFB=function(){var i=t.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize;l.call(this,f,c,m,h),this._prevBlock=f.slice(c,c+m)}}),i.Decryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize,d=f.slice(c,c+m);l.call(this,f,c,m,h),this._prevBlock=d}});function l(f,c,h,m){var d,g=this._iv;g?(d=g.slice(0),this._iv=void 0):d=this._prevBlock,m.encryptBlock(d,0);for(var C=0;C<h;C++)f[c+C]^=d[C]}return i}(),t.mode.CFB})}($w)),$w.exports}var Yw={exports:{}},U3;function XV(){return U3||(U3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.CTR=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize,d=this._iv,g=this._counter;d&&(g=this._counter=d.slice(0),this._iv=void 0);var C=g.slice(0);h.encryptBlock(C,0),g[m-1]=g[m-1]+1|0;for(var b=0;b<m;b++)f[c+b]^=C[b]}});return i.Decryptor=l,i}(),t.mode.CTR})}(Yw)),Yw.exports}var qw={exports:{}},j3;function JV(){return j3||(j3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.CTRGladman=function(){var i=t.lib.BlockCipherMode.extend();function l(h){if((h>>24&255)===255){var m=h>>16&255,d=h>>8&255,g=h&255;m===255?(m=0,d===255?(d=0,g===255?g=0:++g):++d):++m,h=0,h+=m<<16,h+=d<<8,h+=g}else h+=1<<24;return h}function f(h){return(h[0]=l(h[0]))===0&&(h[1]=l(h[1])),h}var c=i.Encryptor=i.extend({processBlock:function(h,m){var d=this._cipher,g=d.blockSize,C=this._iv,b=this._counter;C&&(b=this._counter=C.slice(0),this._iv=void 0),f(b);var x=b.slice(0);d.encryptBlock(x,0);for(var _=0;_<g;_++)h[m+_]^=x[_]}});return i.Decryptor=c,i}(),t.mode.CTRGladman})}(qw)),qw.exports}var Gw={exports:{}},I3;function e$(){return I3||(I3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.OFB=function(){var i=t.lib.BlockCipherMode.extend(),l=i.Encryptor=i.extend({processBlock:function(f,c){var h=this._cipher,m=h.blockSize,d=this._iv,g=this._keystream;d&&(g=this._keystream=d.slice(0),this._iv=void 0),h.encryptBlock(g,0);for(var C=0;C<m;C++)f[c+C]^=g[C]}});return i.Decryptor=l,i}(),t.mode.OFB})}(Gw)),Gw.exports}var Kw={exports:{}},H3;function t$(){return H3||(H3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.mode.ECB=function(){var i=t.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(l,f){this._cipher.encryptBlock(l,f)}}),i.Decryptor=i.extend({processBlock:function(l,f){this._cipher.decryptBlock(l,f)}}),i}(),t.mode.ECB})}(Kw)),Kw.exports}var Ww={exports:{}},V3;function n$(){return V3||(V3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.AnsiX923={pad:function(i,l){var f=i.sigBytes,c=l*4,h=c-f%c,m=f+h-1;i.clamp(),i.words[m>>>2]|=h<<24-m%4*8,i.sigBytes+=h},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Ansix923})}(Ww)),Ww.exports}var Qw={exports:{}},$3;function r$(){return $3||($3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.Iso10126={pad:function(i,l){var f=l*4,c=f-i.sigBytes%f;i.concat(t.lib.WordArray.random(c-1)).concat(t.lib.WordArray.create([c<<24],1))},unpad:function(i){var l=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=l}},t.pad.Iso10126})}(Qw)),Qw.exports}var Zw={exports:{}},Y3;function a$(){return Y3||(Y3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.Iso97971={pad:function(i,l){i.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(i,l)},unpad:function(i){t.pad.ZeroPadding.unpad(i),i.sigBytes--}},t.pad.Iso97971})}(Zw)),Zw.exports}var Xw={exports:{}},q3;function i$(){return q3||(q3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.ZeroPadding={pad:function(i,l){var f=l*4;i.clamp(),i.sigBytes+=f-(i.sigBytes%f||f)},unpad:function(i){for(var l=i.words,f=i.sigBytes-1,f=i.sigBytes-1;f>=0;f--)if(l[f>>>2]>>>24-f%4*8&255){i.sigBytes=f+1;break}}},t.pad.ZeroPadding})}(Xw)),Xw.exports}var Jw={exports:{}},G3;function o$(){return G3||(G3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Jw)),Jw.exports}var e_={exports:{}},K3;function l$(){return K3||(K3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),na())})(Lt,function(t){return function(i){var l=t,f=l.lib,c=f.CipherParams,h=l.enc,m=h.Hex,d=l.format;d.Hex={stringify:function(g){return g.ciphertext.toString(m)},parse:function(g){var C=m.parse(g);return c.create({ciphertext:C})}}}(),t.format.Hex})}(e_)),e_.exports}var t_={exports:{}},W3;function s$(){return W3||(W3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo,h=[],m=[],d=[],g=[],C=[],b=[],x=[],_=[],k=[],E=[];(function(){for(var D=[],R=0;R<256;R++)R<128?D[R]=R<<1:D[R]=R<<1^283;for(var N=0,z=0,R=0;R<256;R++){var M=z^z<<1^z<<2^z<<3^z<<4;M=M>>>8^M&255^99,h[N]=M,m[M]=N;var I=D[N],Y=D[I],B=D[Y],U=D[M]*257^M*16843008;d[N]=U<<24|U>>>8,g[N]=U<<16|U>>>16,C[N]=U<<8|U>>>24,b[N]=U;var U=B*16843009^Y*65537^I*257^N*16843008;x[M]=U<<24|U>>>8,_[M]=U<<16|U>>>16,k[M]=U<<8|U>>>24,E[M]=U,N?(N=I^D[D[D[B^I]]],z^=D[D[z]]):N=z=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],T=c.AES=f.extend({_doReset:function(){var D;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var R=this._keyPriorReset=this._key,N=R.words,z=R.sigBytes/4,M=this._nRounds=z+6,I=(M+1)*4,Y=this._keySchedule=[],B=0;B<I;B++)B<z?Y[B]=N[B]:(D=Y[B-1],B%z?z>6&&B%z==4&&(D=h[D>>>24]<<24|h[D>>>16&255]<<16|h[D>>>8&255]<<8|h[D&255]):(D=D<<8|D>>>24,D=h[D>>>24]<<24|h[D>>>16&255]<<16|h[D>>>8&255]<<8|h[D&255],D^=A[B/z|0]<<24),Y[B]=Y[B-z]^D);for(var U=this._invKeySchedule=[],P=0;P<I;P++){var B=I-P;if(P%4)var D=Y[B];else var D=Y[B-4];P<4||B<=4?U[P]=D:U[P]=x[h[D>>>24]]^_[h[D>>>16&255]]^k[h[D>>>8&255]]^E[h[D&255]]}}},encryptBlock:function(D,R){this._doCryptBlock(D,R,this._keySchedule,d,g,C,b,h)},decryptBlock:function(D,R){var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N,this._doCryptBlock(D,R,this._invKeySchedule,x,_,k,E,m);var N=D[R+1];D[R+1]=D[R+3],D[R+3]=N},_doCryptBlock:function(D,R,N,z,M,I,Y,B){for(var U=this._nRounds,P=D[R]^N[0],H=D[R+1]^N[1],V=D[R+2]^N[2],G=D[R+3]^N[3],ee=4,ne=1;ne<U;ne++){var $=z[P>>>24]^M[H>>>16&255]^I[V>>>8&255]^Y[G&255]^N[ee++],X=z[H>>>24]^M[V>>>16&255]^I[G>>>8&255]^Y[P&255]^N[ee++],Z=z[V>>>24]^M[G>>>16&255]^I[P>>>8&255]^Y[H&255]^N[ee++],q=z[G>>>24]^M[P>>>16&255]^I[H>>>8&255]^Y[V&255]^N[ee++];P=$,H=X,V=Z,G=q}var $=(B[P>>>24]<<24|B[H>>>16&255]<<16|B[V>>>8&255]<<8|B[G&255])^N[ee++],X=(B[H>>>24]<<24|B[V>>>16&255]<<16|B[G>>>8&255]<<8|B[P&255])^N[ee++],Z=(B[V>>>24]<<24|B[G>>>16&255]<<16|B[P>>>8&255]<<8|B[H&255])^N[ee++],q=(B[G>>>24]<<24|B[P>>>16&255]<<16|B[H>>>8&255]<<8|B[V&255])^N[ee++];D[R]=$,D[R+1]=X,D[R+2]=Z,D[R+3]=q},keySize:256/32});i.AES=f._createHelper(T)}(),t.AES})}(t_)),t_.exports}var n_={exports:{}},Q3;function u$(){return Q3||(Q3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.WordArray,c=l.BlockCipher,h=i.algo,m=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],C=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=h.DES=c.extend({_doReset:function(){for(var A=this._key,T=A.words,D=[],R=0;R<56;R++){var N=m[R]-1;D[R]=T[N>>>5]>>>31-N%32&1}for(var z=this._subKeys=[],M=0;M<16;M++){for(var I=z[M]=[],Y=g[M],R=0;R<24;R++)I[R/6|0]|=D[(d[R]-1+Y)%28]<<31-R%6,I[4+(R/6|0)]|=D[28+(d[R+24]-1+Y)%28]<<31-R%6;I[0]=I[0]<<1|I[0]>>>31;for(var R=1;R<7;R++)I[R]=I[R]>>>(R-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var B=this._invSubKeys=[],R=0;R<16;R++)B[R]=z[15-R]},encryptBlock:function(A,T){this._doCryptBlock(A,T,this._subKeys)},decryptBlock:function(A,T){this._doCryptBlock(A,T,this._invSubKeys)},_doCryptBlock:function(A,T,D){this._lBlock=A[T],this._rBlock=A[T+1],_.call(this,4,252645135),_.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),_.call(this,1,1431655765);for(var R=0;R<16;R++){for(var N=D[R],z=this._lBlock,M=this._rBlock,I=0,Y=0;Y<8;Y++)I|=C[Y][((M^N[Y])&b[Y])>>>0];this._lBlock=M,this._rBlock=z^I}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,_.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),_.call(this,16,65535),_.call(this,4,252645135),A[T]=this._lBlock,A[T+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function _(A,T){var D=(this._lBlock>>>A^this._rBlock)&T;this._rBlock^=D,this._lBlock^=D<<A}function k(A,T){var D=(this._rBlock>>>A^this._lBlock)&T;this._lBlock^=D,this._rBlock^=D<<A}i.DES=c._createHelper(x);var E=h.TripleDES=c.extend({_doReset:function(){var A=this._key,T=A.words;if(T.length!==2&&T.length!==4&&T.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var D=T.slice(0,2),R=T.length<4?T.slice(0,2):T.slice(2,4),N=T.length<6?T.slice(0,2):T.slice(4,6);this._des1=x.createEncryptor(f.create(D)),this._des2=x.createEncryptor(f.create(R)),this._des3=x.createEncryptor(f.create(N))},encryptBlock:function(A,T){this._des1.encryptBlock(A,T),this._des2.decryptBlock(A,T),this._des3.encryptBlock(A,T)},decryptBlock:function(A,T){this._des3.decryptBlock(A,T),this._des2.encryptBlock(A,T),this._des1.decryptBlock(A,T)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=c._createHelper(E)}(),t.TripleDES})}(n_)),n_.exports}var r_={exports:{}},Z3;function c$(){return Z3||(Z3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,h=c.RC4=f.extend({_doReset:function(){for(var g=this._key,C=g.words,b=g.sigBytes,x=this._S=[],_=0;_<256;_++)x[_]=_;for(var _=0,k=0;_<256;_++){var E=_%b,A=C[E>>>2]>>>24-E%4*8&255;k=(k+x[_]+A)%256;var T=x[_];x[_]=x[k],x[k]=T}this._i=this._j=0},_doProcessBlock:function(g,C){g[C]^=m.call(this)},keySize:256/32,ivSize:0});function m(){for(var g=this._S,C=this._i,b=this._j,x=0,_=0;_<4;_++){C=(C+1)%256,b=(b+g[C])%256;var k=g[C];g[C]=g[b],g[b]=k,x|=g[(g[C]+g[b])%256]<<24-_*8}return this._i=C,this._j=b,x}i.RC4=f._createHelper(h);var d=c.RC4Drop=h.extend({cfg:h.cfg.extend({drop:192}),_doReset:function(){h._doReset.call(this);for(var g=this.cfg.drop;g>0;g--)m.call(this)}});i.RC4Drop=f._createHelper(d)}(),t.RC4})}(r_)),r_.exports}var a_={exports:{}},X3;function f$(){return X3||(X3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,h=[],m=[],d=[],g=c.Rabbit=f.extend({_doReset:function(){for(var b=this._key.words,x=this.cfg.iv,_=0;_<4;_++)b[_]=(b[_]<<8|b[_]>>>24)&16711935|(b[_]<<24|b[_]>>>8)&4278255360;var k=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],E=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var _=0;_<4;_++)C.call(this);for(var _=0;_<8;_++)E[_]^=k[_+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;E[0]^=R,E[1]^=z,E[2]^=N,E[3]^=M,E[4]^=R,E[5]^=z,E[6]^=N,E[7]^=M;for(var _=0;_<4;_++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),h[0]=_[0]^_[5]>>>16^_[3]<<16,h[1]=_[2]^_[7]>>>16^_[5]<<16,h[2]=_[4]^_[1]>>>16^_[7]<<16,h[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)h[k]=(h[k]<<8|h[k]>>>24)&16711935|(h[k]<<24|h[k]>>>8)&4278255360,b[x+k]^=h[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)m[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<m[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<m[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<m[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<m[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<m[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<m[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<m[6]>>>0?1:0)|0,this._b=x[7]>>>0<m[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.Rabbit=f._createHelper(g)}(),t.Rabbit})}(a_)),a_.exports}var i_={exports:{}},J3;function d$(){return J3||(J3=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.StreamCipher,c=i.algo,h=[],m=[],d=[],g=c.RabbitLegacy=f.extend({_doReset:function(){var b=this._key.words,x=this.cfg.iv,_=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],k=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var E=0;E<4;E++)C.call(this);for(var E=0;E<8;E++)k[E]^=_[E+4&7];if(x){var A=x.words,T=A[0],D=A[1],R=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,N=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,z=R>>>16|N&4294901760,M=N<<16|R&65535;k[0]^=R,k[1]^=z,k[2]^=N,k[3]^=M,k[4]^=R,k[5]^=z,k[6]^=N,k[7]^=M;for(var E=0;E<4;E++)C.call(this)}},_doProcessBlock:function(b,x){var _=this._X;C.call(this),h[0]=_[0]^_[5]>>>16^_[3]<<16,h[1]=_[2]^_[7]>>>16^_[5]<<16,h[2]=_[4]^_[1]>>>16^_[7]<<16,h[3]=_[6]^_[3]>>>16^_[1]<<16;for(var k=0;k<4;k++)h[k]=(h[k]<<8|h[k]>>>24)&16711935|(h[k]<<24|h[k]>>>8)&4278255360,b[x+k]^=h[k]},blockSize:128/32,ivSize:64/32});function C(){for(var b=this._X,x=this._C,_=0;_<8;_++)m[_]=x[_];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<m[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<m[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<m[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<m[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<m[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<m[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<m[6]>>>0?1:0)|0,this._b=x[7]>>>0<m[7]>>>0?1:0;for(var _=0;_<8;_++){var k=b[_]+x[_],E=k&65535,A=k>>>16,T=((E*E>>>17)+E*A>>>15)+A*A,D=((k&4294901760)*k|0)+((k&65535)*k|0);d[_]=T^D}b[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,b[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,b[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,b[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,b[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,b[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,b[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,b[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.RabbitLegacy=f._createHelper(g)}(),t.RabbitLegacy})}(i_)),i_.exports}var o_={exports:{}},eA;function p$(){return eA||(eA=1,function(e,r){(function(t,i,l){e.exports=i(Zt(),jc(),Ic(),mu(),na())})(Lt,function(t){return function(){var i=t,l=i.lib,f=l.BlockCipher,c=i.algo;const h=16,m=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var g={pbox:[],sbox:[]};function C(E,A){let T=A>>24&255,D=A>>16&255,R=A>>8&255,N=A&255,z=E.sbox[0][T]+E.sbox[1][D];return z=z^E.sbox[2][R],z=z+E.sbox[3][N],z}function b(E,A,T){let D=A,R=T,N;for(let z=0;z<h;++z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[h],D=D^E.pbox[h+1],{left:D,right:R}}function x(E,A,T){let D=A,R=T,N;for(let z=h+1;z>1;--z)D=D^E.pbox[z],R=C(E,D)^R,N=D,D=R,R=N;return N=D,D=R,R=N,R=R^E.pbox[1],D=D^E.pbox[0],{left:D,right:R}}function _(E,A,T){for(let M=0;M<4;M++){E.sbox[M]=[];for(let I=0;I<256;I++)E.sbox[M][I]=d[M][I]}let D=0;for(let M=0;M<h+2;M++)E.pbox[M]=m[M]^A[D],D++,D>=T&&(D=0);let R=0,N=0,z=0;for(let M=0;M<h+2;M+=2)z=b(E,R,N),R=z.left,N=z.right,E.pbox[M]=R,E.pbox[M+1]=N;for(let M=0;M<4;M++)for(let I=0;I<256;I+=2)z=b(E,R,N),R=z.left,N=z.right,E.sbox[M][I]=R,E.sbox[M][I+1]=N;return!0}var k=c.Blowfish=f.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var E=this._keyPriorReset=this._key,A=E.words,T=E.sigBytes/4;_(g,A,T)}},encryptBlock:function(E,A){var T=b(g,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},decryptBlock:function(E,A){var T=x(g,E[A],E[A+1]);E[A]=T.left,E[A+1]=T.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=f._createHelper(k)}(),t.Blowfish})}(o_)),o_.exports}(function(e,r){(function(t,i,l){e.exports=i(Zt(),by(),VV(),$V(),jc(),YV(),Ic(),D3(),Nw(),qV(),O3(),GV(),KV(),WV(),jw(),QV(),mu(),na(),ZV(),XV(),JV(),e$(),t$(),n$(),r$(),a$(),i$(),o$(),l$(),s$(),u$(),c$(),f$(),d$(),p$())})(Lt,function(t){return t})})(g3);const fs=g3.exports;class h${constructor(){Xf(this,"salt","SzlDJd#4202")}encrypt(r){if(!r)return;const t=typeof r=="string"?r:JSON.stringify(r);return fs.AES.encrypt(t,this.salt).toString()}decrypt(r){if(r)return fs.AES.decrypt(r,this.salt).toString(fs.enc.Utf8)}}class v${constructor(r){Xf(this,"salt");this.salt=r}encrypt(r){return fs.HmacSHA512(r,this.salt).toString()}}const Kn=class{static rotateLeft(r,t){return r<<t|r>>>32-t}static FFj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|r&i|t&i}static GGj(r,t,i,l){return l>=0&&l<=15?r^t^i:r&t|~r&i}static P0(r){return r^Kn.rotateLeft(r,9)^Kn.rotateLeft(r,17)}static P1(r){return r^Kn.rotateLeft(r,15)^Kn.rotateLeft(r,23)}static pad(r){const t=r.length*8,i=(448-(t+1)%512+512)%512,l=(t+1+i+64)/8,f=new Uint8Array(l);f.set(r),f[r.length]=128;const c=new Uint8Array(8);return new DataView(c.buffer).setBigUint64(0,BigInt(t),!1),f.set(c,l-8),f}static processBlock(r,t){const i=new Uint32Array(68),l=new Uint32Array(64);for(let x=0;x<16;x++){const _=new DataView(r.buffer,r.byteOffset+x*4,4);i[x]=_.getUint32(0,!1)}for(let x=16;x<68;x++)i[x]=Kn.P1(i[x-16]^i[x-9]^Kn.rotateLeft(i[x-3],15))^Kn.rotateLeft(i[x-13],7)^i[x-6];for(let x=0;x<64;x++)l[x]=i[x]^i[x+4];let f=t[0],c=t[1],h=t[2],m=t[3],d=t[4],g=t[5],C=t[6],b=t[7];for(let x=0;x<64;x++){const _=Kn.rotateLeft(Kn.rotateLeft(f,12)+d+Kn.rotateLeft(Kn.T[x],x),7),k=_^Kn.rotateLeft(f,12),E=Kn.FFj(f,c,h,x)+m+k+l[x],A=Kn.GGj(d,g,C,x)+b+_+i[x];m=h,h=Kn.rotateLeft(c,9),c=f,f=E,b=C,C=Kn.rotateLeft(g,19),g=d,d=Kn.P0(A)}t[0]^=f,t[1]^=c,t[2]^=h,t[3]^=m,t[4]^=d,t[5]^=g,t[6]^=C,t[7]^=b}static hash(r){const t=Kn.pad(r),i=new Uint32Array(Kn.IV);for(let c=0;c<t.length;c+=64){const h=t.slice(c,c+64);Kn.processBlock(h,i)}const l=new Uint8Array(32),f=new DataView(l.buffer);for(let c=0;c<8;c++)f.setUint32(c*4,i[c],!1);return l}static hashHex(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=Kn.hash(t);return Array.from(i).map(l=>l.toString(16).padStart(2,"0")).join("")}};let Hc=Kn;Xf(Hc,"IV",new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214])),Xf(Hc,"T",new Uint32Array(64)),(()=>{for(let r=0;r<16;r++)Kn.T[r]=2043430169;for(let r=16;r<64;r++)Kn.T[r]=2055708042})();class l_{constructor(r){Xf(this,"key");this.key=typeof r=="string"?new TextEncoder().encode(r):r}digest(r){const t=typeof r=="string"?new TextEncoder().encode(r):r,i=64;let l;if(this.key.length>i)l=Hc.hash(this.key);else{l=new Uint8Array(i),l.set(this.key);for(let C=this.key.length;C<i;C++)l[C]=0}const f=new Uint8Array(i),c=new Uint8Array(i);for(let C=0;C<i;C++)f[C]=l[C]^54,c[C]=l[C]^92;const h=new Uint8Array(f.length+t.length);h.set(f),h.set(t,f.length);const m=Hc.hash(h),d=new Uint8Array(c.length+m.length);return d.set(c),d.set(m,c.length),Hc.hash(d)}digestHex(r){const t=this.digest(r);return Array.from(t).map(i=>i.toString(16).padStart(2,"0")).join("")}static hmac(r,t){return new l_(r).digestHex(t)}}function m$(e){const{imgKey:r="Img"}=e,{data:t,loading:i,error:l,refresh:f}=bb.useRequest(e.request,{debounceWait:300,ready:!0,retryCount:3});return{data:t,renderCaptcha:()=>l?Q(me.Button,{type:"link",title:"验证码加载失败,请重试",icon:Q(Q7,{}),onClick:f,children:"点击重试"}):Q("img",{src:il.get(t,[r]),style:{height:"100%",objectFit:"contain",cursor:"pointer"},onClick:f}),loading:i,refresh:f}}function g$(e){const{modal:r,message:t}=me.App.useApp(),[i]=me.Form.useForm(),l=[{dataIndex:"Password",title:"新密码",valueType:"password",valueProps:{placeholder:"请输入新密码"},formItemProps:{rules:[{required:!0,message:"请输入新密码"},m3.passwordNewRule]}},{dataIndex:"NewPassword",title:"确认密码",valueType:"password",valueProps:{placeholder:"请输入确认密码"},formItemProps:{rules:[{required:!0,message:"请输入确认密码"},({getFieldValue:c})=>({validator(h,m){return!m||c("Password")===m?Promise.resolve():Promise.reject(new Error("两次密码输入不一致"))}})]}}];return{handleChangePwd:bb.useLockFn(async(c,h)=>{const m=e==null?void 0:e.modalProps;let d;m!=null&&m.width&&(typeof m.width=="string"||typeof m.width=="number")&&(d=m.width),await r.confirm({title:h||"修改密码",icon:null,wrapClassName:"confirmWrapper",content:Q(y2,{items:l,formProps:{form:i,preserve:!1,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}}}),onOk(){return new Promise((g,C)=>{i.validateFields().then(b=>{c({values:b,resolve:g,reject:C})}).catch(b=>{C(b)})})},...m,width:d})})}}const y$="SzlDJd#4202";function x$(e){const[r,t]=W.useState(null);W.useEffect(()=>{i()},[]);const i=()=>{const l=fs.AES.decrypt(e,y$);try{const f=JSON.parse(l.toString(fs.enc.Utf8));t(f)}catch{}};return r}function b$(e){const{secertKey:r,storageKey:t}=e;return{onParse:f=>{const c=localStorage.getItem(t);if(!c){f(null);return}const h=fs.AES.decrypt(c,r);try{const m=JSON.parse(h.toString(fs.enc.Utf8));f(m)}catch{f(null)}},onSave:f=>{const c=fs.AES.encrypt(JSON.stringify({...f,timestamp:Date.now()}),r);z8(t,c.toString())}}}function C$(e){const{dataSource:r,rowKey:t,defaultRows:i=[]}=e,l=W.useRef(i),[f,c]=W.useState([]),[h,m]=W.useState([]);return W.useEffect(()=>{if(r&&r.length>0){const d=[...r,...l.current];l.current=d.filter((g,C,b)=>b.findIndex(x=>g[t]===x[t])===C)}},[r,t]),W.useEffect(()=>{if(l.current.length>0){let d=[];h.forEach(g=>{const C=l.current.find(b=>b[t]===g);C&&!d.map(b=>b[t]).includes(g)&&d.push(C)}),c(d)}},[l.current,h,t]),{selectedRows:f,selectedKeys:h,setSelectedKeys:m}}function w$({labelSpan:e=3,valueSpan:r=9,imgWidth:t=93,imgHeight:i=93,layoutType:l="row"}){const{message:f}=me.App.useApp(),c=(x,_)=>{try{const k=JSON.parse((x==null?void 0:x.attrvalue)||"{}")||"";return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Q("span",{style:{wordWrap:"break-word"},children:k==null?void 0:k.typename})]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:x==null?void 0:x.attrvalue})]})]},x==null?void 0:x.attrid)}catch{return f.error("房型数据格式错误,转json失败"),null}},h=(x,_)=>{if(typeof(x==null?void 0:x.attrvalue)!="string")return;const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("div",{style:{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:4},children:Q(me.Image,{style:{objectFit:"cover",padding:5},width:t,height:i,src:A==null?void 0:A.FilePath,alt:(x==null?void 0:x.attrname)||"-"})},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},m=(x,_)=>{const k=JSON.parse((x==null?void 0:x.attrvalue)||"[]"),E=()=>Q(me.Space,{wrap:!0,children:k.map((A,T)=>Q("a",{onClick:()=>window.open(A==null?void 0:A.FilePath),children:(A==null?void 0:A.FileName)||"-"},T))});return Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),E()]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Q(me.Col,{span:r,style:{wordWrap:"break-word"},children:E()})]})]},x==null?void 0:x.attrid)},d=(x,_,k,E)=>Be(W.Fragment,{children:[l==="flex"&&Q(me.Col,{span:_,children:Be(me.Flex,{children:[Be("span",{style:{flexShrink:0},children:[x==null?void 0:x.attrname,":"]}),Be("span",{style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word",minWidth:0,flex:1},children:[k||""," ",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})}),l==="row"&&Be(nn,{children:[Q(me.Col,{span:e,children:x==null?void 0:x.attrname}),Be(me.Col,{span:r,style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word"},children:[k||"",Ji(E||[],(x==null?void 0:x.attrvalue)||"-")]})]})]},x==null?void 0:x.attrid),g=({detailList:x=[],attrList:_=[],universalHeader:k=[],operationColumn:E,langConfig:A=[]})=>{var R;let T=[];k!=null&&k.length?T=k==null?void 0:k.map(N=>({title:N==null?void 0:N["header-name"],dataIndex:N==null?void 0:N["header-attribute-id"],key:N==null?void 0:N["header-attribute-id"],width:N==null?void 0:N["header-width"],render:(z,M)=>Ji(A||[],z)})):T=(R=_==null?void 0:_[0])==null?void 0:R.map(N=>{var z;return{title:N==null?void 0:N.attrname,dataIndex:N==null?void 0:N.attrid,key:N==null?void 0:N.attrid,width:((z=N==null?void 0:N.json)==null?void 0:z["input-width"])||200,render:(M,I)=>Ji(A||[],M)}}),E&&(T!=null&&T.length)&&T.push(E);let D=x;return _!=null&&_.length&&(D=_==null?void 0:_.map((N,z)=>({jxqyglbh:z,...C(N)}))),Q(me.Flex,{align:"center",style:{width:"100%"},children:Q(me.Table,{style:{width:"100%"},columns:T,scroll:{x:"max-content"},size:"small",rowKey:"jxqyglbh",onRow:aD,dataSource:D,pagination:!1})})},C=x=>x==null?void 0:x.reduce((_,k)=>(_[k==null?void 0:k.attrid]=k==null?void 0:k.attrvalue,_),{});return{renderDetail:bb.useMemoizedFn(({attrList:x=[],detailList:_=[],span:k=24,type:E="form",universalHeader:A=[],beforeExtraValue:T="",operationColumn:D,langConfig:R=[]})=>E==="table"?Q(W.Fragment,{children:g({detailList:_,attrList:x,universalHeader:A,operationColumn:D})}):Q(me.Row,{gutter:[10,8],children:x==null?void 0:x.map(N=>{if((N==null?void 0:N.attrtype)!==0)return Q(W.Fragment,{},N==null?void 0:N.attrid);const z=N.info_base64===1?uu(Zp(N.info)):uu(N.info);return(z==null?void 0:z.input)==="image"?h(N,k):["file","audio","video"].includes(z==null?void 0:z.input)?m(N,k):(z==null?void 0:z.input)==="radio-card"?c(N,k):d(N,k,T,R)})}))}}Dt.AES=h$,Dt.AuthButton=H6,Dt.BackHeader=d9,Dt.CoralButton=eL,Dt.CreateForm=y2,Dt.CustomPagination=rL,Dt.DynamicForm=ML,Dt.DynamicFormMobile=LV,Dt.EditTable=JB,Dt.FormRules=zV,Dt.HmacSHA512=v$,Dt.HmacSM3=l_,Dt.LoopSlide=tL,Dt.SearchTable=WB,Dt.UploadFile=s6,Dt.WorkFlowNode=V6,Dt.compressionImage=o6,Dt.download=CL,Dt.fileType=y9,Dt.method=cL,Dt.showWorkFlow=nL,Dt.szxkFunc=mL,Dt.useCaptcha=m$,Dt.useChangePwd=g$,Dt.useConfig=x$,Dt.useDetailRender=w$,Dt.useRemember=b$,Dt.useRowSelection=C$,Dt.useUniversalTable=q2,Dt.utils=k9,Dt.verfyCode=jV,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})});